unione-form-vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/editor.d.ts +52 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.umd.js +365 -0
- package/dist/lib/data.d.ts +62 -0
- package/dist/lib/utils.d.ts +10 -0
- package/dist/locales/index.d.ts +9 -0
- package/dist/locales/lang/en-US.d.ts +11 -0
- package/dist/locales/lang/global/en-US.d.ts +9 -0
- package/dist/locales/lang/global/zh-CN.d.ts +9 -0
- package/dist/locales/lang/pages/en-US.d.ts +4 -0
- package/dist/locales/lang/pages/zh-CN.d.ts +4 -0
- package/dist/locales/lang/routes/en-US.d.ts +4 -0
- package/dist/locales/lang/routes/zh-CN.d.ts +4 -0
- package/dist/locales/lang/zh-CN.d.ts +11 -0
- package/dist/page/page.vue.d.ts +36 -0
- package/dist/page/view.vue.d.ts +46 -0
- package/dist/style.css +1 -0
- package/dist/typing.d.ts +285 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/version.d.ts +2 -0
- package/dist/widgets/base/btn.vue.d.ts +40 -0
- package/dist/widgets/form/form.vue.d.ts +34 -0
- package/dist/widgets/form/render.vue.d.ts +38 -0
- package/dist/widgets/layout/tabs.vue.d.ts +28 -0
- package/dist/widgets/props/base/btnSetting.vue.d.ts +44 -0
- package/dist/widgets/props/data/dataDefine.vue.d.ts +25 -0
- package/dist/widgets/props/data/dataField.vue.d.ts +53 -0
- package/dist/widgets/props/data/dataFieldMange.vue.d.ts +10 -0
- package/dist/widgets/props/data/dataFieldSetting.vue.d.ts +10 -0
- package/dist/widgets/props/form/formSetting.vue.d.ts +20 -0
- package/dist/widgets/props/page/pageSetting.vue.d.ts +12 -0
- package/dist/widgets/props/query/querySetting.vue.d.ts +20 -0
- package/dist/widgets/props/table/tableSetting.vue.d.ts +20 -0
- package/dist/widgets/query/queryForm.vue.d.ts +38 -0
- package/dist/widgets/table/tableList.vue.d.ts +88 -0
- package/dist/widgets/widget.vue.d.ts +45 -0
- package/package.json +87 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
(function(un,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(un=typeof globalThis<"u"?globalThis:un||self,u(un.index={},un.Vue))})(this,function(un,u){"use strict";var ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R5(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gu={exports:{}};gu.exports,function(n,e){(function(t,o){o(e,u)})(ii,function(t,o){const r="0.0.3",s={ACCESS_TOKEN:"token",ACCESS_USER_INFO:"user_info"},l={security:{sm2PubKey:"04a684d7140aebfc83515a2312dac7ab836f3adc484627971b6936ad7d5575048caecf9c7eb07ed4dcee9d04cb3a7b1c514477b646b1ebe8245de215733baa5133",sm2PriKey:"4389c4329a001df855d14ec204d25bf12d4d631bf61bb02d0586a653e199e0da"},axios:{root:"/",admin:"/portal"}},d={constant:s,security:l.security,axios:l.axios};function h(i){return i?.constant&&(d.constant={...d.constant,...i.constant}),i?.security&&(d.security={...d.security,...i.security}),i?.axios&&(d.axios={...d.axios,...i.axios}),d}function m(i,a){return function(){return i.apply(a,arguments)}}const{toString:g}=Object.prototype,{getPrototypeOf:v}=Object,b=(i=>a=>{const c=g.call(a);return i[c]||(i[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),x=i=>(i=i.toLowerCase(),a=>b(a)===i),C=i=>a=>typeof a===i,{isArray:k}=Array,M=C("undefined");function _(i){return i!==null&&!M(i)&&i.constructor!==null&&!M(i.constructor)&&Q(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const E=x("ArrayBuffer");function F(i){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(i):a=i&&i.buffer&&E(i.buffer),a}const D=C("string"),Q=C("function"),Y=C("number"),L=i=>i!==null&&typeof i=="object",Z=i=>i===!0||i===!1,I=i=>{if(b(i)!=="object")return!1;const a=v(i);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in i)&&!(Symbol.iterator in i)},G=x("Date"),ae=x("File"),Oe=x("Blob"),Ue=x("FileList"),ke=i=>L(i)&&Q(i.pipe),re=i=>{let a;return i&&(typeof FormData=="function"&&i instanceof FormData||Q(i.append)&&((a=b(i))==="formdata"||a==="object"&&Q(i.toString)&&i.toString()==="[object FormData]"))},be=x("URLSearchParams"),[Ve,ve,$e,Ae]=["ReadableStream","Request","Response","Headers"].map(x),Se=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(i,a,{allOwnKeys:c=!1}={}){if(i===null||typeof i>"u")return;let f,p;if(typeof i!="object"&&(i=[i]),k(i))for(f=0,p=i.length;f<p;f++)a.call(null,i[f],f,i);else{const O=c?Object.getOwnPropertyNames(i):Object.keys(i),y=O.length;let w;for(f=0;f<y;f++)w=O[f],a.call(null,i[w],w,i)}}function Pe(i,a){a=a.toLowerCase();const c=Object.keys(i);let f=c.length,p;for(;f-- >0;)if(p=c[f],a===p.toLowerCase())return p;return null}const Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ii,bt=i=>!M(i)&&i!==Ze;function vo(){const{caseless:i}=bt(this)&&this||{},a={},c=(f,p)=>{const O=i&&Pe(a,p)||p;I(a[O])&&I(f)?a[O]=vo(a[O],f):I(f)?a[O]=vo({},f):k(f)?a[O]=f.slice():a[O]=f};for(let f=0,p=arguments.length;f<p;f++)arguments[f]&&ht(arguments[f],c);return a}const Re=(i,a,c,{allOwnKeys:f}={})=>(ht(a,(p,O)=>{c&&Q(p)?i[O]=m(p,c):i[O]=p},{allOwnKeys:f}),i),hn=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),ft=(i,a,c,f)=>{i.prototype=Object.create(a.prototype,f),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:a.prototype}),c&&Object.assign(i.prototype,c)},pn=(i,a,c,f)=>{let p,O,y;const w={};if(a=a||{},i==null)return a;do{for(p=Object.getOwnPropertyNames(i),O=p.length;O-- >0;)y=p[O],(!f||f(y,i,a))&&!w[y]&&(a[y]=i[y],w[y]=!0);i=c!==!1&&v(i)}while(i&&(!c||c(i,a))&&i!==Object.prototype);return a},xW=(i,a,c)=>{i=String(i),(c===void 0||c>i.length)&&(c=i.length),c-=a.length;const f=i.indexOf(a,c);return f!==-1&&f===c},wW=i=>{if(!i)return null;if(k(i))return i;let a=i.length;if(!Y(a))return null;const c=new Array(a);for(;a-- >0;)c[a]=i[a];return c},SW=(i=>a=>i&&a instanceof i)(typeof Uint8Array<"u"&&v(Uint8Array)),CW=(i,a)=>{const c=(i&&i[Symbol.iterator]).call(i);let f;for(;(f=c.next())&&!f.done;){const p=f.value;a.call(i,p[0],p[1])}},kW=(i,a)=>{let c;const f=[];for(;(c=i.exec(a))!==null;)f.push(c);return f},PW=x("HTMLFormElement"),EW=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,c,f){return c.toUpperCase()+f}),wP=(({hasOwnProperty:i})=>(a,c)=>i.call(a,c))(Object.prototype),TW=x("RegExp"),SP=(i,a)=>{const c=Object.getOwnPropertyDescriptors(i),f={};ht(c,(p,O)=>{let y;(y=a(p,O,i))!==!1&&(f[O]=y||p)}),Object.defineProperties(i,f)},_W=i=>{SP(i,(a,c)=>{if(Q(i)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const f=i[c];if(Q(f)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},NW=(i,a)=>{const c={},f=p=>{p.forEach(O=>{c[O]=!0})};return k(i)?f(i):f(String(i).split(a)),c},AW=()=>{},RW=(i,a)=>i!=null&&Number.isFinite(i=+i)?i:a,_O="abcdefghijklmnopqrstuvwxyz",CP="0123456789",kP={DIGIT:CP,ALPHA:_O,ALPHA_DIGIT:_O+_O.toUpperCase()+CP},MW=(i=16,a=kP.ALPHA_DIGIT)=>{let c="";const{length:f}=a;for(;i--;)c+=a[Math.random()*f|0];return c};function QW(i){return!!(i&&Q(i.append)&&i[Symbol.toStringTag]==="FormData"&&i[Symbol.iterator])}const IW=i=>{const a=new Array(10),c=(f,p)=>{if(L(f)){if(a.indexOf(f)>=0)return;if(!("toJSON"in f)){a[p]=f;const O=k(f)?[]:{};return ht(f,(y,w)=>{const S=c(y,p+1);!M(S)&&(O[w]=S)}),a[p]=void 0,O}}return f};return c(i,0)},DW=x("AsyncFunction"),BW=i=>i&&(L(i)||Q(i))&&Q(i.then)&&Q(i.catch),PP=((i,a)=>i?setImmediate:a?((c,f)=>(Ze.addEventListener("message",({source:p,data:O})=>{p===Ze&&O===c&&f.length&&f.shift()()},!1),p=>{f.push(p),Ze.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",Q(Ze.postMessage)),VW=typeof queueMicrotask<"u"?queueMicrotask.bind(Ze):typeof process<"u"&&process.nextTick||PP,me={isArray:k,isArrayBuffer:E,isBuffer:_,isFormData:re,isArrayBufferView:F,isString:D,isNumber:Y,isBoolean:Z,isObject:L,isPlainObject:I,isReadableStream:Ve,isRequest:ve,isResponse:$e,isHeaders:Ae,isUndefined:M,isDate:G,isFile:ae,isBlob:Oe,isRegExp:TW,isFunction:Q,isStream:ke,isURLSearchParams:be,isTypedArray:SW,isFileList:Ue,forEach:ht,merge:vo,extend:Re,trim:Se,stripBOM:hn,inherits:ft,toFlatObject:pn,kindOf:b,kindOfTest:x,endsWith:xW,toArray:wW,forEachEntry:CW,matchAll:kW,isHTMLForm:PW,hasOwnProperty:wP,hasOwnProp:wP,reduceDescriptors:SP,freezeMethods:_W,toObjectSet:NW,toCamelCase:EW,noop:AW,toFiniteNumber:RW,findKey:Pe,global:Ze,isContextDefined:bt,ALPHABET:kP,generateString:MW,isSpecCompliantForm:QW,toJSONObject:IW,isAsyncFn:DW,isThenable:BW,setImmediate:PP,asap:VW};function rt(i,a,c,f,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",a&&(this.code=a),c&&(this.config=c),f&&(this.request=f),p&&(this.response=p,this.status=p.status?p.status:null)}me.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}});const EP=rt.prototype,TP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{TP[i]={value:i}}),Object.defineProperties(rt,TP),Object.defineProperty(EP,"isAxiosError",{value:!0}),rt.from=(i,a,c,f,p,O)=>{const y=Object.create(EP);return me.toFlatObject(i,y,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),rt.call(y,i.message,a,c,f,p),y.cause=i,y.name=i.name,O&&Object.assign(y,O),y};const LW=null;function NO(i){return me.isPlainObject(i)||me.isArray(i)}function _P(i){return me.endsWith(i,"[]")?i.slice(0,-2):i}function NP(i,a,c){return i?i.concat(a).map(function(f,p){return f=_P(f),!c&&p?"["+f+"]":f}).join(c?".":""):a}function jW(i){return me.isArray(i)&&!i.some(NO)}const FW=me.toFlatObject(me,{},null,function(i){return/^is[A-Z]/.test(i)});function Nf(i,a,c){if(!me.isObject(i))throw new TypeError("target must be an object");a=a||new FormData,c=me.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(V,j){return!me.isUndefined(j[V])});const f=c.metaTokens,p=c.visitor||A,O=c.dots,y=c.indexes,w=(c.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(a);if(!me.isFunction(p))throw new TypeError("visitor must be a function");function S(V){if(V===null)return"";if(me.isDate(V))return V.toISOString();if(!w&&me.isBlob(V))throw new rt("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(V)||me.isTypedArray(V)?w&&typeof Blob=="function"?new Blob([V]):Buffer.from(V):V}function A(V,j,z){let K=V;if(V&&!z&&typeof V=="object"){if(me.endsWith(j,"{}"))j=f?j:j.slice(0,-2),V=JSON.stringify(V);else if(me.isArray(V)&&jW(V)||(me.isFileList(V)||me.endsWith(j,"[]"))&&(K=me.toArray(V)))return j=_P(j),K.forEach(function(H,X){!(me.isUndefined(H)||H===null)&&a.append(y===!0?NP([j],X,O):y===null?j:j+"[]",S(H))}),!1}return NO(V)?!0:(a.append(NP(z,j,O),S(V)),!1)}const T=[],P=Object.assign(FW,{defaultVisitor:A,convertValue:S,isVisitable:NO});function N(V,j){if(!me.isUndefined(V)){if(T.indexOf(V)!==-1)throw Error("Circular reference detected in "+j.join("."));T.push(V),me.forEach(V,function(z,K){(!(me.isUndefined(z)||z===null)&&p.call(a,z,me.isString(K)?K.trim():K,j,P))===!0&&N(z,j?j.concat(K):[K])}),T.pop()}}if(!me.isObject(i))throw new TypeError("data must be an object");return N(i),a}function AP(i){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(c){return a[c]})}function AO(i,a){this._pairs=[],i&&Nf(i,this,a)}const RP=AO.prototype;RP.append=function(i,a){this._pairs.push([i,a])},RP.toString=function(i){const a=i?function(c){return i.call(this,c,AP)}:AP;return this._pairs.map(function(c){return a(c[0])+"="+a(c[1])},"").join("&")};function ZW(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function MP(i,a,c){if(!a)return i;const f=c&&c.encode||ZW,p=c&&c.serialize;let O;if(p?O=p(a,c):O=me.isURLSearchParams(a)?a.toString():new AO(a,c).toString(f),O){const y=i.indexOf("#");y!==-1&&(i=i.slice(0,y)),i+=(i.indexOf("?")===-1?"?":"&")+O}return i}class QP{constructor(){this.handlers=[]}use(a,c,f){return this.handlers.push({fulfilled:a,rejected:c,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){me.forEach(this.handlers,function(c){c!==null&&a(c)})}}const IP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zW={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:AO,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},RO=typeof window<"u"&&typeof document<"u",MO=typeof navigator=="object"&&navigator||void 0,WW=RO&&(!MO||["ReactNative","NativeScript","NS"].indexOf(MO.product)<0),UW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HW=RO&&window.location.href||"http://localhost",no={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RO,hasStandardBrowserEnv:WW,hasStandardBrowserWebWorkerEnv:UW,navigator:MO,origin:HW},Symbol.toStringTag,{value:"Module"})),...zW};function XW(i,a){return Nf(i,new no.classes.URLSearchParams,Object.assign({visitor:function(c,f,p,O){return no.isNode&&me.isBuffer(c)?(this.append(f,c.toString("base64")),!1):O.defaultVisitor.apply(this,arguments)}},a))}function YW(i){return me.matchAll(/\w+|\[(\w*)]/g,i).map(a=>a[0]==="[]"?"":a[1]||a[0])}function GW(i){const a={},c=Object.keys(i);let f;const p=c.length;let O;for(f=0;f<p;f++)O=c[f],a[O]=i[O];return a}function DP(i){function a(c,f,p,O){let y=c[O++];if(y==="__proto__")return!0;const w=Number.isFinite(+y),S=O>=c.length;return y=!y&&me.isArray(p)?p.length:y,S?(me.hasOwnProp(p,y)?p[y]=[p[y],f]:p[y]=f,!w):((!p[y]||!me.isObject(p[y]))&&(p[y]=[]),a(c,f,p[y],O)&&me.isArray(p[y])&&(p[y]=GW(p[y])),!w)}if(me.isFormData(i)&&me.isFunction(i.entries)){const c={};return me.forEachEntry(i,(f,p)=>{a(YW(f),p,c,0)}),c}return null}function KW(i,a,c){if(me.isString(i))try{return(a||JSON.parse)(i),me.trim(i)}catch(f){if(f.name!=="SyntaxError")throw f}return(0,JSON.stringify)(i)}const Rc={transitional:IP,adapter:["xhr","http","fetch"],transformRequest:[function(i,a){const c=a.getContentType()||"",f=c.indexOf("application/json")>-1,p=me.isObject(i);if(p&&me.isHTMLForm(i)&&(i=new FormData(i)),me.isFormData(i))return f?JSON.stringify(DP(i)):i;if(me.isArrayBuffer(i)||me.isBuffer(i)||me.isStream(i)||me.isFile(i)||me.isBlob(i)||me.isReadableStream(i))return i;if(me.isArrayBufferView(i))return i.buffer;if(me.isURLSearchParams(i))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let O;if(p){if(c.indexOf("application/x-www-form-urlencoded")>-1)return XW(i,this.formSerializer).toString();if((O=me.isFileList(i))||c.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Nf(O?{"files[]":i}:i,y&&new y,this.formSerializer)}}return p||f?(a.setContentType("application/json",!1),KW(i)):i}],transformResponse:[function(i){const a=this.transitional||Rc.transitional,c=a&&a.forcedJSONParsing,f=this.responseType==="json";if(me.isResponse(i)||me.isReadableStream(i))return i;if(i&&me.isString(i)&&(c&&!this.responseType||f)){const p=!(a&&a.silentJSONParsing)&&f;try{return JSON.parse(i)}catch(O){if(p)throw O.name==="SyntaxError"?rt.from(O,rt.ERR_BAD_RESPONSE,this,null,this.response):O}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:no.classes.FormData,Blob:no.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],i=>{Rc.headers[i]={}});const JW=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$W=i=>{const a={};let c,f,p;return i&&i.split(`
|
|
2
|
+
`).forEach(function(O){p=O.indexOf(":"),c=O.substring(0,p).trim().toLowerCase(),f=O.substring(p+1).trim(),!(!c||a[c]&&JW[c])&&(c==="set-cookie"?a[c]?a[c].push(f):a[c]=[f]:a[c]=a[c]?a[c]+", "+f:f)}),a},BP=Symbol("internals");function Mc(i){return i&&String(i).trim().toLowerCase()}function Af(i){return i===!1||i==null?i:me.isArray(i)?i.map(Af):String(i)}function qW(i){const a=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=c.exec(i);)a[f[1]]=f[2];return a}const eU=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function QO(i,a,c,f,p){if(me.isFunction(f))return f.call(this,a,c);if(p&&(a=c),!!me.isString(a)){if(me.isString(f))return a.indexOf(f)!==-1;if(me.isRegExp(f))return f.test(a)}}function tU(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,c,f)=>c.toUpperCase()+f)}function nU(i,a){const c=me.toCamelCase(" "+a);["get","set","has"].forEach(f=>{Object.defineProperty(i,f+c,{value:function(p,O,y){return this[f].call(this,a,p,O,y)},configurable:!0})})}class oo{constructor(a){a&&this.set(a)}set(a,c,f){const p=this;function O(w,S,A){const T=Mc(S);if(!T)throw new Error("header name must be a non-empty string");const P=me.findKey(p,T);(!P||p[P]===void 0||A===!0||A===void 0&&p[P]!==!1)&&(p[P||S]=Af(w))}const y=(w,S)=>me.forEach(w,(A,T)=>O(A,T,S));if(me.isPlainObject(a)||a instanceof this.constructor)y(a,c);else if(me.isString(a)&&(a=a.trim())&&!eU(a))y($W(a),c);else if(me.isHeaders(a))for(const[w,S]of a.entries())O(S,w,f);else a!=null&&O(c,a,f);return this}get(a,c){if(a=Mc(a),a){const f=me.findKey(this,a);if(f){const p=this[f];if(!c)return p;if(c===!0)return qW(p);if(me.isFunction(c))return c.call(this,p,f);if(me.isRegExp(c))return c.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,c){if(a=Mc(a),a){const f=me.findKey(this,a);return!!(f&&this[f]!==void 0&&(!c||QO(this,this[f],f,c)))}return!1}delete(a,c){const f=this;let p=!1;function O(y){if(y=Mc(y),y){const w=me.findKey(f,y);w&&(!c||QO(f,f[w],w,c))&&(delete f[w],p=!0)}}return me.isArray(a)?a.forEach(O):O(a),p}clear(a){const c=Object.keys(this);let f=c.length,p=!1;for(;f--;){const O=c[f];(!a||QO(this,this[O],O,a,!0))&&(delete this[O],p=!0)}return p}normalize(a){const c=this,f={};return me.forEach(this,(p,O)=>{const y=me.findKey(f,O);if(y){c[y]=Af(p),delete c[O];return}const w=a?tU(O):String(O).trim();w!==O&&delete c[O],c[w]=Af(p),f[w]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const c=Object.create(null);return me.forEach(this,(f,p)=>{f!=null&&f!==!1&&(c[p]=a&&me.isArray(f)?f.join(", "):f)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,c])=>a+": "+c).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...c){const f=new this(a);return c.forEach(p=>f.set(p)),f}static accessor(a){const c=(this[BP]=this[BP]={accessors:{}}).accessors,f=this.prototype;function p(O){const y=Mc(O);c[y]||(nU(f,O),c[y]=!0)}return me.isArray(a)?a.forEach(p):p(a),this}}oo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),me.reduceDescriptors(oo.prototype,({value:i},a)=>{let c=a[0].toUpperCase()+a.slice(1);return{get:()=>i,set(f){this[c]=f}}}),me.freezeMethods(oo);function IO(i,a){const c=this||Rc,f=a||c,p=oo.from(f.headers);let O=f.data;return me.forEach(i,function(y){O=y.call(c,O,p.normalize(),a?a.status:void 0)}),p.normalize(),O}function VP(i){return!!(i&&i.__CANCEL__)}function za(i,a,c){rt.call(this,i??"canceled",rt.ERR_CANCELED,a,c),this.name="CanceledError"}me.inherits(za,rt,{__CANCEL__:!0});function LP(i,a,c){const f=c.config.validateStatus;!c.status||!f||f(c.status)?i(c):a(new rt("Request failed with status code "+c.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function oU(i){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return a&&a[1]||""}function iU(i,a){i=i||10;const c=new Array(i),f=new Array(i);let p=0,O=0,y;return a=a!==void 0?a:1e3,function(w){const S=Date.now(),A=f[O];y||(y=S),c[p]=w,f[p]=S;let T=O,P=0;for(;T!==p;)P+=c[T++],T=T%i;if(p=(p+1)%i,p===O&&(O=(O+1)%i),S-y<a)return;const N=A&&S-A;return N?Math.round(P*1e3/N):void 0}}function rU(i,a){let c=0,f=1e3/a,p,O;const y=(w,S=Date.now())=>{c=S,p=null,O&&(clearTimeout(O),O=null),i.apply(null,w)};return[(...w)=>{const S=Date.now(),A=S-c;A>=f?y(w,S):(p=w,O||(O=setTimeout(()=>{O=null,y(p)},f-A)))},()=>p&&y(p)]}const Rf=(i,a,c=3)=>{let f=0;const p=iU(50,250);return rU(O=>{const y=O.loaded,w=O.lengthComputable?O.total:void 0,S=y-f,A=p(S),T=y<=w;f=y;const P={loaded:y,total:w,progress:w?y/w:void 0,bytes:S,rate:A||void 0,estimated:A&&w&&T?(w-y)/A:void 0,event:O,lengthComputable:w!=null,[a?"download":"upload"]:!0};i(P)},c)},jP=(i,a)=>{const c=i!=null;return[f=>a[0]({lengthComputable:c,total:i,loaded:f}),a[1]]},FP=i=>(...a)=>me.asap(()=>i(...a)),sU=no.hasStandardBrowserEnv?function(){const i=no.navigator&&/(msie|trident)/i.test(no.navigator.userAgent),a=document.createElement("a");let c;function f(p){let O=p;return i&&(a.setAttribute("href",O),O=a.href),a.setAttribute("href",O),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return c=f(window.location.href),function(p){const O=me.isString(p)?f(p):p;return O.protocol===c.protocol&&O.host===c.host}}():function(){return function(){return!0}}(),aU=no.hasStandardBrowserEnv?{write(i,a,c,f,p,O){const y=[i+"="+encodeURIComponent(a)];me.isNumber(c)&&y.push("expires="+new Date(c).toGMTString()),me.isString(f)&&y.push("path="+f),me.isString(p)&&y.push("domain="+p),O===!0&&y.push("secure"),document.cookie=y.join("; ")},read(i){const a=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(i){this.write(i,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lU(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function cU(i,a){return a?i.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):i}function ZP(i,a){return i&&!lU(a)?cU(i,a):a}const zP=i=>i instanceof oo?{...i}:i;function ys(i,a){a=a||{};const c={};function f(A,T,P){return me.isPlainObject(A)&&me.isPlainObject(T)?me.merge.call({caseless:P},A,T):me.isPlainObject(T)?me.merge({},T):me.isArray(T)?T.slice():T}function p(A,T,P){if(me.isUndefined(T)){if(!me.isUndefined(A))return f(void 0,A,P)}else return f(A,T,P)}function O(A,T){if(!me.isUndefined(T))return f(void 0,T)}function y(A,T){if(me.isUndefined(T)){if(!me.isUndefined(A))return f(void 0,A)}else return f(void 0,T)}function w(A,T,P){if(P in a)return f(A,T);if(P in i)return f(void 0,A)}const S={url:O,method:O,data:O,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:w,headers:(A,T)=>p(zP(A),zP(T),!0)};return me.forEach(Object.keys(Object.assign({},i,a)),function(A){const T=S[A]||p,P=T(i[A],a[A],A);me.isUndefined(P)&&T!==w||(c[A]=P)}),c}const WP=i=>{const a=ys({},i);let{data:c,withXSRFToken:f,xsrfHeaderName:p,xsrfCookieName:O,headers:y,auth:w}=a;a.headers=y=oo.from(y),a.url=MP(ZP(a.baseURL,a.url),i.params,i.paramsSerializer),w&&y.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let S;if(me.isFormData(c)){if(no.hasStandardBrowserEnv||no.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((S=y.getContentType())!==!1){const[A,...T]=S?S.split(";").map(P=>P.trim()).filter(Boolean):[];y.setContentType([A||"multipart/form-data",...T].join("; "))}}if(no.hasStandardBrowserEnv&&(f&&me.isFunction(f)&&(f=f(a)),f||f!==!1&&sU(a.url))){const A=p&&O&&aU.read(O);A&&y.set(p,A)}return a},uU=typeof XMLHttpRequest<"u"&&function(i){return new Promise(function(a,c){const f=WP(i);let p=f.data;const O=oo.from(f.headers).normalize();let{responseType:y,onUploadProgress:w,onDownloadProgress:S}=f,A,T,P,N,V;function j(){N&&N(),V&&V(),f.cancelToken&&f.cancelToken.unsubscribe(A),f.signal&&f.signal.removeEventListener("abort",A)}let z=new XMLHttpRequest;z.open(f.method.toUpperCase(),f.url,!0),z.timeout=f.timeout;function K(){if(!z)return;const X=oo.from("getAllResponseHeaders"in z&&z.getAllResponseHeaders()),te={data:!y||y==="text"||y==="json"?z.responseText:z.response,status:z.status,statusText:z.statusText,headers:X,config:i,request:z};LP(function(J){a(J),j()},function(J){c(J),j()},te),z=null}"onloadend"in z?z.onloadend=K:z.onreadystatechange=function(){!z||z.readyState!==4||z.status===0&&!(z.responseURL&&z.responseURL.indexOf("file:")===0)||setTimeout(K)},z.onabort=function(){z&&(c(new rt("Request aborted",rt.ECONNABORTED,i,z)),z=null)},z.onerror=function(){c(new rt("Network Error",rt.ERR_NETWORK,i,z)),z=null},z.ontimeout=function(){let X=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const te=f.transitional||IP;f.timeoutErrorMessage&&(X=f.timeoutErrorMessage),c(new rt(X,te.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,i,z)),z=null},p===void 0&&O.setContentType(null),"setRequestHeader"in z&&me.forEach(O.toJSON(),function(X,te){z.setRequestHeader(te,X)}),me.isUndefined(f.withCredentials)||(z.withCredentials=!!f.withCredentials),y&&y!=="json"&&(z.responseType=f.responseType),S&&([P,V]=Rf(S,!0),z.addEventListener("progress",P)),w&&z.upload&&([T,N]=Rf(w),z.upload.addEventListener("progress",T),z.upload.addEventListener("loadend",N)),(f.cancelToken||f.signal)&&(A=X=>{z&&(c(!X||X.type?new za(null,i,z):X),z.abort(),z=null)},f.cancelToken&&f.cancelToken.subscribe(A),f.signal&&(f.signal.aborted?A():f.signal.addEventListener("abort",A)));const H=oU(f.url);if(H&&no.protocols.indexOf(H)===-1){c(new rt("Unsupported protocol "+H+":",rt.ERR_BAD_REQUEST,i));return}z.send(p||null)})},dU=(i,a)=>{const{length:c}=i=i?i.filter(Boolean):[];if(a||c){let f=new AbortController,p;const O=function(A){if(!p){p=!0,w();const T=A instanceof Error?A:this.reason;f.abort(T instanceof rt?T:new za(T instanceof Error?T.message:T))}};let y=a&&setTimeout(()=>{y=null,O(new rt(`timeout ${a} of ms exceeded`,rt.ETIMEDOUT))},a);const w=()=>{i&&(y&&clearTimeout(y),y=null,i.forEach(A=>{A.unsubscribe?A.unsubscribe(O):A.removeEventListener("abort",O)}),i=null)};i.forEach(A=>A.addEventListener("abort",O));const{signal:S}=f;return S.unsubscribe=()=>me.asap(w),S}},fU=function*(i,a){let c=i.byteLength;if(c<a){yield i;return}let f=0,p;for(;f<c;)p=f+a,yield i.slice(f,p),f=p},hU=async function*(i,a){for await(const c of pU(i))yield*fU(c,a)},pU=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const a=i.getReader();try{for(;;){const{done:c,value:f}=await a.read();if(c)break;yield f}}finally{await a.cancel()}},UP=(i,a,c,f)=>{const p=hU(i,a);let O=0,y,w=S=>{y||(y=!0,f&&f(S))};return new ReadableStream({async pull(S){try{const{done:A,value:T}=await p.next();if(A){w(),S.close();return}let P=T.byteLength;if(c){let N=O+=P;c(N)}S.enqueue(new Uint8Array(T))}catch(A){throw w(A),A}},cancel(S){return w(S),p.return()}},{highWaterMark:2})},Mf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",HP=Mf&&typeof ReadableStream=="function",mU=Mf&&(typeof TextEncoder=="function"?(i=>a=>i.encode(a))(new TextEncoder):async i=>new Uint8Array(await new Response(i).arrayBuffer())),XP=(i,...a)=>{try{return!!i(...a)}catch{return!1}},gU=HP&&XP(()=>{let i=!1;const a=new Request(no.origin,{body:new ReadableStream,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!a}),YP=64*1024,DO=HP&&XP(()=>me.isReadableStream(new Response("").body)),Qf={stream:DO&&(i=>i.body)};Mf&&(i=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Qf[a]&&(Qf[a]=me.isFunction(i[a])?c=>c[a]():(c,f)=>{throw new rt(`Response type '${a}' is not supported`,rt.ERR_NOT_SUPPORT,f)})})})(new Response);const OU=async i=>{if(i==null)return 0;if(me.isBlob(i))return i.size;if(me.isSpecCompliantForm(i))return(await new Request(no.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(me.isArrayBufferView(i)||me.isArrayBuffer(i))return i.byteLength;if(me.isURLSearchParams(i)&&(i=i+""),me.isString(i))return(await mU(i)).byteLength},vU=async(i,a)=>me.toFiniteNumber(i.getContentLength())??OU(a),BO={http:LW,xhr:uU,fetch:Mf&&(async i=>{let{url:a,method:c,data:f,signal:p,cancelToken:O,timeout:y,onDownloadProgress:w,onUploadProgress:S,responseType:A,headers:T,withCredentials:P="same-origin",fetchOptions:N}=WP(i);A=A?(A+"").toLowerCase():"text";let V=dU([p,O&&O.toAbortSignal()],y),j;const z=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let K;try{if(S&&gU&&c!=="get"&&c!=="head"&&(K=await vU(T,f))!==0){let se=new Request(a,{method:"POST",body:f,duplex:"half"}),le;if(me.isFormData(f)&&(le=se.headers.get("content-type"))&&T.setContentType(le),se.body){const[U,he]=jP(K,Rf(FP(S)));f=UP(se.body,YP,U,he)}}me.isString(P)||(P=P?"include":"omit");const H="credentials"in Request.prototype;j=new Request(a,{...N,signal:V,method:c.toUpperCase(),headers:T.normalize().toJSON(),body:f,duplex:"half",credentials:H?P:void 0});let X=await fetch(j);const te=DO&&(A==="stream"||A==="response");if(DO&&(w||te&&z)){const se={};["status","statusText","headers"].forEach(ue=>{se[ue]=X[ue]});const le=me.toFiniteNumber(X.headers.get("content-length")),[U,he]=w&&jP(le,Rf(FP(w),!0))||[];X=new Response(UP(X.body,YP,U,()=>{he&&he(),z&&z()}),se)}A=A||"text";let J=await Qf[me.findKey(Qf,A)||"text"](X,i);return!te&&z&&z(),await new Promise((se,le)=>{LP(se,le,{data:J,headers:oo.from(X.headers),status:X.status,statusText:X.statusText,config:i,request:j})})}catch(H){throw z&&z(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,i,j),{cause:H.cause||H}):rt.from(H,H&&H.code,i,j)}})};me.forEach(BO,(i,a)=>{if(i){try{Object.defineProperty(i,"name",{value:a})}catch{}Object.defineProperty(i,"adapterName",{value:a})}});const GP=i=>`- ${i}`,yU=i=>me.isFunction(i)||i===null||i===!1,KP={getAdapter:i=>{i=me.isArray(i)?i:[i];const{length:a}=i;let c,f;const p={};for(let O=0;O<a;O++){c=i[O];let y;if(f=c,!yU(c)&&(f=BO[(y=String(c)).toLowerCase()],f===void 0))throw new rt(`Unknown adapter '${y}'`);if(f)break;p[y||"#"+O]=f}if(!f){const O=Object.entries(p).map(([w,S])=>`adapter ${w} `+(S===!1?"is not supported by the environment":"is not available in the build"));let y=a?O.length>1?`since :
|
|
4
|
+
`+O.map(GP).join(`
|
|
5
|
+
`):" "+GP(O[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return f},adapters:BO};function VO(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new za(null,i)}function JP(i){return VO(i),i.headers=oo.from(i.headers),i.data=IO.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),KP.getAdapter(i.adapter||Rc.adapter)(i).then(function(a){return VO(i),a.data=IO.call(i,i.transformResponse,a),a.headers=oo.from(a.headers),a},function(a){return VP(a)||(VO(i),a&&a.response&&(a.response.data=IO.call(i,i.transformResponse,a.response),a.response.headers=oo.from(a.response.headers))),Promise.reject(a)})}const $P="1.7.7",LO={};["object","boolean","number","function","string","symbol"].forEach((i,a)=>{LO[i]=function(c){return typeof c===i||"a"+(a<1?"n ":" ")+i}});const qP={};LO.transitional=function(i,a,c){function f(p,O){return"[Axios v"+$P+"] Transitional option '"+p+"'"+O+(c?". "+c:"")}return(p,O,y)=>{if(i===!1)throw new rt(f(O," has been removed"+(a?" in "+a:"")),rt.ERR_DEPRECATED);return a&&!qP[O]&&(qP[O]=!0,console.warn(f(O," has been deprecated since v"+a+" and will be removed in the near future"))),i?i(p,O,y):!0}};function bU(i,a,c){if(typeof i!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const f=Object.keys(i);let p=f.length;for(;p-- >0;){const O=f[p],y=a[O];if(y){const w=i[O],S=w===void 0||y(w,O,i);if(S!==!0)throw new rt("option "+O+" must be "+S,rt.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new rt("Unknown option "+O,rt.ERR_BAD_OPTION)}}const jO={assertOptions:bU,validators:LO},Or=jO.validators;class bs{constructor(a){this.defaults=a,this.interceptors={request:new QP,response:new QP}}async request(a,c){try{return await this._request(a,c)}catch(f){if(f instanceof Error){let p;Error.captureStackTrace?Error.captureStackTrace(p={}):p=new Error;const O=p.stack?p.stack.replace(/^.+\n/,""):"";try{f.stack?O&&!String(f.stack).endsWith(O.replace(/^.+\n.+\n/,""))&&(f.stack+=`
|
|
6
|
+
`+O):f.stack=O}catch{}}throw f}}_request(a,c){typeof a=="string"?(c=c||{},c.url=a):c=a||{},c=ys(this.defaults,c);const{transitional:f,paramsSerializer:p,headers:O}=c;f!==void 0&&jO.assertOptions(f,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),p!=null&&(me.isFunction(p)?c.paramsSerializer={serialize:p}:jO.assertOptions(p,{encode:Or.function,serialize:Or.function},!0)),c.method=(c.method||this.defaults.method||"get").toLowerCase();let y=O&&me.merge(O.common,O[c.method]);O&&me.forEach(["delete","get","head","post","put","patch","common"],j=>{delete O[j]}),c.headers=oo.concat(y,O);const w=[];let S=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(c)===!1||(S=S&&j.synchronous,w.unshift(j.fulfilled,j.rejected))});const A=[];this.interceptors.response.forEach(function(j){A.push(j.fulfilled,j.rejected)});let T,P=0,N;if(!S){const j=[JP.bind(this),void 0];for(j.unshift.apply(j,w),j.push.apply(j,A),N=j.length,T=Promise.resolve(c);P<N;)T=T.then(j[P++],j[P++]);return T}N=w.length;let V=c;for(P=0;P<N;){const j=w[P++],z=w[P++];try{V=j(V)}catch(K){z.call(this,K);break}}try{T=JP.call(this,V)}catch(j){return Promise.reject(j)}for(P=0,N=A.length;P<N;)T=T.then(A[P++],A[P++]);return T}getUri(a){a=ys(this.defaults,a);const c=ZP(a.baseURL,a.url);return MP(c,a.params,a.paramsSerializer)}}me.forEach(["delete","get","head","options"],function(i){bs.prototype[i]=function(a,c){return this.request(ys(c||{},{method:i,url:a,data:(c||{}).data}))}}),me.forEach(["post","put","patch"],function(i){function a(c){return function(f,p,O){return this.request(ys(O||{},{method:i,headers:c?{"Content-Type":"multipart/form-data"}:{},url:f,data:p}))}}bs.prototype[i]=a(),bs.prototype[i+"Form"]=a(!0)});class FO{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(p){c=p});const f=this;this.promise.then(p=>{if(!f._listeners)return;let O=f._listeners.length;for(;O-- >0;)f._listeners[O](p);f._listeners=null}),this.promise.then=p=>{let O;const y=new Promise(w=>{f.subscribe(w),O=w}).then(p);return y.cancel=function(){f.unsubscribe(O)},y},a(function(p,O,y){f.reason||(f.reason=new za(p,O,y),c(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const c=this._listeners.indexOf(a);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const a=new AbortController,c=f=>{a.abort(f)};return this.subscribe(c),a.signal.unsubscribe=()=>this.unsubscribe(c),a.signal}static source(){let a;return{token:new FO(function(c){a=c}),cancel:a}}}function xU(i){return function(a){return i.apply(null,a)}}function wU(i){return me.isObject(i)&&i.isAxiosError===!0}const ZO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ZO).forEach(([i,a])=>{ZO[a]=i});function eE(i){const a=new bs(i),c=m(bs.prototype.request,a);return me.extend(c,bs.prototype,a,{allOwnKeys:!0}),me.extend(c,a,null,{allOwnKeys:!0}),c.create=function(f){return eE(ys(i,f))},c}const en=eE(Rc);en.Axios=bs,en.CanceledError=za,en.CancelToken=FO,en.isCancel=VP,en.VERSION=$P,en.toFormData=Nf,en.AxiosError=rt,en.Cancel=en.CanceledError,en.all=function(i){return Promise.all(i)},en.spread=xU,en.isAxiosError=wU,en.mergeConfig=ys,en.AxiosHeaders=oo,en.formToJSON=i=>DP(me.isHTMLForm(i)?new FormData(i):i),en.getAdapter=KP.getAdapter,en.HttpStatusCode=ZO,en.default=en;function Qc(i){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Qc(i)}function SU(i,a){if(Qc(i)!="object"||!i)return i;var c=i[Symbol.toPrimitive];if(c!==void 0){var f=c.call(i,a||"default");if(Qc(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function CU(i){var a=SU(i,"string");return Qc(a)=="symbol"?a:a+""}function kU(i,a,c){return(a=CU(a))in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}function tE(i,a){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);a&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(i,p).enumerable})),c.push.apply(c,f)}return c}function Ke(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?arguments[a]:{};a%2?tE(Object(c),!0).forEach(function(f){kU(i,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):tE(Object(c)).forEach(function(f){Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(c,f))})}return i}function q(){return q=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var c=arguments[a];for(var f in c)({}).hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i},q.apply(null,arguments)}const PU=Array.isArray,EU=i=>typeof i=="string",TU=i=>i!==null&&typeof i=="object";function Wa(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;return typeof i=="function"?i(a):i??c}function _U(i){let a;const c=new Promise(p=>{a=i(()=>{p(!0)})}),f=()=>{a?.()};return f.then=(p,O)=>c.then(p,O),f.promise=c,f}function Vt(){const i=[];for(let a=0;a<arguments.length;a++){const c=a<0||arguments.length<=a?void 0:arguments[a];if(c){if(EU(c))i.push(c);else if(PU(c))for(let f=0;f<c.length;f++){const p=Vt(c[f]);p&&i.push(p)}else if(TU(c))for(const f in c)c[f]&&i.push(f)}}return i.join(" ")}const NU=i=>i!=null&&i!=="",Ic=(i,a)=>{const c=q({},i);return Object.keys(a).forEach(f=>{const p=c[f];if(p)p.type||p.default?p.default=a[f]:p.def?p.def(a[f]):c[f]={type:p,default:a[f]};else throw new Error(`not have ${f} prop`)}),c},AU=Symbol("skipFlatten"),Dc=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const c=Array.isArray(i)?i:[i],f=[];return c.forEach(p=>{Array.isArray(p)?f.push(...Dc(p,a)):p&&p.type===o.Fragment?p.key===AU?f.push(p):f.push(...Dc(p.children,a)):p&&o.isVNode(p)?a&&!nE(p)?f.push(p):a||f.push(p):NU(p)&&f.push(p)}),f},If=i=>{var a;let c=((a=i?.vnode)===null||a===void 0?void 0:a.el)||i&&(i.$el||i);for(;c&&!c.tagName;)c=c.nextSibling;return c};function nE(i){return i&&(i.type===o.Comment||i.type===o.Fragment&&i.children.length===0||i.type===o.Text&&i.children.trim()==="")}function oE(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const a=[];return i.forEach(c=>{Array.isArray(c)?a.push(...c):c?.type===o.Fragment?a.push(...oE(c.children)):a.push(c)}),a.filter(c=>!nE(c))}let iE=i=>setTimeout(i,16),rE=i=>clearTimeout(i);typeof window<"u"&&"requestAnimationFrame"in window&&(iE=i=>window.requestAnimationFrame(i),rE=i=>window.cancelAnimationFrame(i));let sE=0;const zO=new Map;function aE(i){zO.delete(i)}function Bc(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sE+=1;const c=sE;function f(p){if(p===0)aE(c),i();else{const O=iE(()=>{f(p-1)});zO.set(c,O)}}return f(a),c}Bc.cancel=i=>{const a=zO.get(i);return aE(a),rE(a)};const Df=function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return a},WO=i=>{const a=i;return a.install=function(c){c.component(a.displayName||a.name,i)},i};function lE(){return{type:[Function,Array]}}function tn(i){return{type:Object,default:i}}function Ua(i){return{type:Boolean,default:i}}function UO(i,a){return{validator:()=>!0,default:i}}function cE(i){return{type:Array,default:i}}function uE(i){return{type:String,default:i}}function RU(i,a){return i?{type:i,default:a}:UO(a)}function MU(i,a,c,f){if(i&&i.addEventListener){let p=f;i.addEventListener(a,c,p)}return{remove:()=>{i&&i.removeEventListener&&i.removeEventListener(a,c)}}}const HO="anticon",QU=Symbol("GlobalFormContextKey"),IU=i=>{o.provide(QU,i)},DU=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:tn(),input:tn(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:tn(),pageHeader:tn(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:tn(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:tn(),pagination:tn(),theme:tn(),select:tn(),wave:tn()}),XO=Symbol("configProvider"),dE={getPrefixCls:(i,a)=>a||(i?`ant-${i}`:"ant"),iconPrefixCls:o.computed(()=>HO),getPopupContainer:o.computed(()=>()=>document.body),direction:o.computed(()=>"ltr")},Bf=()=>o.inject(XO,dE),BU=i=>o.provide(XO,i),fE=Symbol("DisabledContextKey"),YO=()=>o.inject(fE,o.ref(void 0)),VU=i=>{const a=YO();return o.provide(fE,o.computed(()=>{var c;return(c=i.value)!==null&&c!==void 0?c:a.value})),i},LU={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},jU={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},hE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},pE={lang:q({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},jU),timePickerLocale:q({},hE)},yo="${label} is not a valid ${type}",vr={locale:"en",Pagination:LU,DatePicker:pE,TimePicker:hE,Calendar:pE,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},mE=o.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(i,a){let{slots:c}=a;const f=o.inject("localeData",{}),p=o.computed(()=>{const{componentName:y="global",defaultLocale:w}=i,S=w||vr[y||"global"],{antLocale:A}=f,T=y&&A?A[y]:{};return q(q({},typeof S=="function"?S():S),T||{})}),O=o.computed(()=>{const{antLocale:y}=f,w=y&&y.locale;return y&&y.exist&&!w?vr.locale:w});return()=>{const y=i.children||c.default,{antLocale:w}=f;return y?.(p.value,O.value,w)}}});function GO(i,a,c){const f=o.inject("localeData",{});return[o.computed(()=>{const{antLocale:p}=f,O=o.unref(a)||vr[i],y=p?p[i]:{};return q(q(q({},typeof O=="function"?O():O),y||{}),o.unref(c)||{})})]}function KO(i){for(var a=0,c,f=0,p=i.length;p>=4;++f,p-=4)c=i.charCodeAt(f)&255|(i.charCodeAt(++f)&255)<<8|(i.charCodeAt(++f)&255)<<16|(i.charCodeAt(++f)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,a=(c&65535)*1540483477+((c>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(p){case 3:a^=(i.charCodeAt(f+2)&255)<<16;case 2:a^=(i.charCodeAt(f+1)&255)<<8;case 1:a^=i.charCodeAt(f)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}const gE="%";class FU{constructor(a){this.cache=new Map,this.instanceId=a}get(a){return this.cache.get(Array.isArray(a)?a.join(gE):a)||null}update(a,c){const f=Array.isArray(a)?a.join(gE):a,p=this.cache.get(f),O=c(p);O===null?this.cache.delete(f):this.cache.set(f,O)}}const OE="data-token-hash",xs="data-css-hash",ZU="data-cache-path",Ha="__cssinjs_instance__";function Vc(){const i=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const a=document.body.querySelectorAll(`style[${xs}]`)||[],{firstChild:c}=document.head;Array.from(a).forEach(p=>{p[Ha]=p[Ha]||i,p[Ha]===i&&document.head.insertBefore(p,c)});const f={};Array.from(document.querySelectorAll(`style[${xs}]`)).forEach(p=>{var O;const y=p.getAttribute(xs);f[y]?p[Ha]===i&&((O=p.parentNode)===null||O===void 0||O.removeChild(p)):f[y]=!0})}return new FU(i)}const vE=Symbol("StyleContextKey"),zU=()=>{var i,a,c;const f=o.getCurrentInstance();let p;if(f&&f.appContext){const O=(c=(a=(i=f.appContext)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.globalProperties)===null||c===void 0?void 0:c.__ANTDV_CSSINJS_CACHE__;O?p=O:(p=Vc(),f.appContext.config.globalProperties&&(f.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=p))}else p=Vc();return p},yE={cache:Vc(),defaultCache:!0,hashPriority:"low"},Vf=()=>{const i=zU();return o.inject(vE,o.shallowRef(q(q({},yE),{cache:i})))},WU=i=>{const a=Vf(),c=o.shallowRef(q(q({},yE),{cache:Vc()}));return o.watch([()=>o.unref(i),a],()=>{const f=q({},a.value),p=o.unref(i);Object.keys(p).forEach(y=>{const w=p[y];p[y]!==void 0&&(f[y]=w)});const{cache:O}=p;f.cache=f.cache||Vc(),f.defaultCache=!O&&a.value.defaultCache,c.value=f},{immediate:!0}),o.provide(vE,c),c},UU=()=>({autoClear:Ua(),mock:uE(),cache:tn(),defaultCache:Ua(),hashPriority:uE(),container:RU(),ssrInline:Ua(),transformers:cE(),linters:cE()});WO(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:UU(),setup(i,a){let{slots:c}=a;return WU(i),()=>{var f;return(f=c.default)===null||f===void 0?void 0:f.call(c)}}}));function HU(){return!1}let JO=!1;function XU(){return JO}const YU=process.env.NODE_ENV==="production"?HU:XU;if(process.env.NODE_ENV!=="production"&&n&&n.hot&&typeof window<"u"){const i=window;if(typeof i.webpackHotUpdate=="function"){const a=i.webpackHotUpdate;i.webpackHotUpdate=function(){return JO=!0,setTimeout(()=>{JO=!1},0),a(...arguments)}}}function bE(i,a,c,f){const p=Vf(),O=o.shallowRef(""),y=o.shallowRef();o.watchEffect(()=>{O.value=[i,...a.value].join("%")});const w=YU(),S=A=>{p.value.cache.update(A,T=>{const[P=0,N]=T||[];return P-1===0?(f?.(N,!1),null):[P-1,N]})};return o.watch(O,(A,T)=>{T&&S(T),p.value.cache.update(A,P=>{const[N=0,V]=P||[];let j=V;process.env.NODE_ENV!=="production"&&V&&w&&(f?.(j,w),j=null);const z=j||c();return[N+1,z]}),y.value=p.value.cache.get(O.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{S(O.value)}),y}function Xo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xE(i,a){return i&&i.contains?i.contains(a):!1}const wE="data-vc-order",GU="vc-util-key",$O=new Map;function SE(){let{mark:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i?i.startsWith("data-")?i:`data-${i}`:GU}function Lf(i){return i.attachTo?i.attachTo:document.querySelector("head")||document.body}function KU(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function CE(i){return Array.from(($O.get(i)||i).children).filter(a=>a.tagName==="STYLE")}function kE(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xo())return null;const{csp:c,prepend:f}=a,p=document.createElement("style");p.setAttribute(wE,KU(f)),c?.nonce&&(p.nonce=c?.nonce),p.innerHTML=i;const O=Lf(a),{firstChild:y}=O;if(f){if(f==="queue"){const w=CE(O).filter(S=>["prepend","prependQueue"].includes(S.getAttribute(wE)));if(w.length)return O.insertBefore(p,w[w.length-1].nextSibling),p}O.insertBefore(p,y)}else O.appendChild(p);return p}function PE(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=Lf(a);return CE(c).find(f=>f.getAttribute(SE(a))===i)}function jf(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=PE(i,a);c&&Lf(a).removeChild(c)}function JU(i,a){const c=$O.get(i);if(!c||!xE(document,c)){const f=kE("",a),{parentNode:p}=f;$O.set(i,p),i.removeChild(f)}}function Lc(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var f,p,O;const y=Lf(c);JU(y,c);const w=PE(a,c);if(w)return!((f=c.csp)===null||f===void 0)&&f.nonce&&w.nonce!==((p=c.csp)===null||p===void 0?void 0:p.nonce)&&(w.nonce=(O=c.csp)===null||O===void 0?void 0:O.nonce),w.innerHTML!==i&&(w.innerHTML=i),w;const S=kE(i,c);return S.setAttribute(SE(c),a),S}function $U(i,a){if(i.length!==a.length)return!1;for(let c=0;c<i.length;c++)if(i[c]!==a[c])return!1;return!0}class Xa{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f={map:this.cache};return a.forEach(p=>{var O;f?f=(O=f?.map)===null||O===void 0?void 0:O.get(p):f=void 0}),f?.value&&c&&(f.value[1]=this.cacheCallTimes++),f?.value}get(a){var c;return(c=this.internalGet(a,!0))===null||c===void 0?void 0:c[0]}has(a){return!!this.internalGet(a)}set(a,c){if(!this.has(a)){if(this.size()+1>Xa.MAX_CACHE_SIZE+Xa.MAX_CACHE_OFFSET){const[p]=this.keys.reduce((O,y)=>{const[,w]=O;return this.internalGet(y)[1]<w?[y,this.internalGet(y)[1]]:O},[this.keys[0],this.cacheCallTimes]);this.delete(p)}this.keys.push(a)}let f=this.cache;a.forEach((p,O)=>{if(O===a.length-1)f.set(p,{value:[c,this.cacheCallTimes++]});else{const y=f.get(p);y?y.map||(y.map=new Map):f.set(p,{map:new Map}),f=f.get(p).map}})}deleteByPath(a,c){var f;const p=a.get(c[0]);if(c.length===1)return p.map?a.set(c[0],{map:p.map}):a.delete(c[0]),(f=p.value)===null||f===void 0?void 0:f[0];const O=this.deleteByPath(p.map,c.slice(1));return(!p.map||p.map.size===0)&&!p.value&&a.delete(c[0]),O}delete(a){if(this.has(a))return this.keys=this.keys.filter(c=>!$U(c,a)),this.deleteByPath(this.cache,a)}}Xa.MAX_CACHE_SIZE=20,Xa.MAX_CACHE_OFFSET=5;let qO={};function qU(i,a){process.env.NODE_ENV!=="production"&&!i&&console!==void 0&&console.error(`Warning: ${a}`)}function eH(){qO={}}function tH(i,a,c){!a&&!qO[c]&&(i(!1,c),qO[c]=!0)}function ev(i,a){tH(qU,i,a)}function nH(){}let Ya=nH;process.env.NODE_ENV!=="production"&&(Ya=(i,a,c)=>{ev(i,`[ant-design-vue: ${a}] ${c}`),process.env.NODE_ENV==="test"&&eH()});let EE=0;class TE{constructor(a){this.derivatives=Array.isArray(a)?a:[a],this.id=EE,a.length===0&&Ya(a.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),EE+=1}getDerivativeToken(a){return this.derivatives.reduce((c,f)=>f(a,c),void 0)}}const tv=new Xa;function _E(i){const a=Array.isArray(i)?i:[i];return tv.has(a)||tv.set(a,new TE(a)),tv.get(a)}const NE=new WeakMap;function Ff(i){let a=NE.get(i)||"";return a||(Object.keys(i).forEach(c=>{const f=i[c];a+=c,f instanceof TE?a+=f.id:f&&typeof f=="object"?a+=Ff(f):a+=f}),NE.set(i,a)),a}function oH(i,a){return KO(`${a}_${Ff(i)}`)}const jc=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),AE="_bAmBoO_";function iH(i,a,c){var f,p;if(Xo()){Lc(i,jc);const O=document.createElement("div");O.style.position="fixed",O.style.left="0",O.style.top="0",a?.(O),document.body.appendChild(O),process.env.NODE_ENV!=="production"&&(O.innerHTML="Test",O.style.zIndex="9999999");const y=c?c(O):(f=getComputedStyle(O).content)===null||f===void 0?void 0:f.includes(AE);return(p=O.parentNode)===null||p===void 0||p.removeChild(O),jf(jc),y}return!1}let nv;function rH(){return nv===void 0&&(nv=iH(`@layer ${jc} { .${jc} { content: "${AE}"!important; } }`,i=>{i.className=jc})),nv}const RE={},sH=process.env.NODE_ENV==="production",aH=process.env.NODE_ENV==="prerender",lH=!sH&&!aH?"css-dev-only-do-not-override":"css",ws=new Map;function cH(i){ws.set(i,(ws.get(i)||0)+1)}function uH(i,a){typeof document<"u"&&document.querySelectorAll(`style[${OE}="${i}"]`).forEach(c=>{var f;c[Ha]===a&&((f=c.parentNode)===null||f===void 0||f.removeChild(c))})}const dH=0;function fH(i,a){ws.set(i,(ws.get(i)||0)-1);const c=Array.from(ws.keys()),f=c.filter(p=>(ws.get(p)||0)<=0);c.length-f.length>dH&&f.forEach(p=>{uH(p,a),ws.delete(p)})}const hH=(i,a,c,f)=>{const p=c.getDerivativeToken(i);let O=q(q({},p),a);return f&&(O=f(O)),O};function pH(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.ref({});const f=Vf(),p=o.computed(()=>q({},...a.value)),O=o.computed(()=>Ff(p.value)),y=o.computed(()=>Ff(c.value.override||RE));return bE("token",o.computed(()=>[c.value.salt||"",i.value.id,O.value,y.value]),()=>{const{salt:w="",override:S=RE,formatToken:A,getComputedToken:T}=c.value,P=T?T(p.value,S,i.value):hH(p.value,S,i.value,A),N=oH(P,w);P._tokenKey=N,cH(N);const V=`${lH}-${KO(N)}`;return P._hashId=V,[P,V]},w=>{var S;fH(w[0]._tokenKey,(S=f.value)===null||S===void 0?void 0:S.cache.instanceId)})}var mH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ME="comm",QE="rule",IE="decl",gH="@import",OH="@keyframes",vH="@layer",DE=Math.abs,ov=String.fromCharCode;function BE(i){return i.trim()}function Zf(i,a,c){return i.replace(a,c)}function yH(i,a,c){return i.indexOf(a,c)}function Fc(i,a){return i.charCodeAt(a)|0}function Ga(i,a,c){return i.slice(a,c)}function wi(i){return i.length}function bH(i){return i.length}function zf(i,a){return a.push(i),i}var Wf=1,Ka=1,VE=0,Io=0,nn=0,Ja="";function iv(i,a,c,f,p,O,y,w){return{value:i,root:a,parent:c,type:f,props:p,children:O,line:Wf,column:Ka,length:y,return:"",siblings:w}}function xH(){return nn}function wH(){return nn=Io>0?Fc(Ja,--Io):0,Ka--,nn===10&&(Ka=1,Wf--),nn}function Yo(){return nn=Io<VE?Fc(Ja,Io++):0,Ka++,nn===10&&(Ka=1,Wf++),nn}function yr(){return Fc(Ja,Io)}function Uf(){return Io}function Hf(i,a){return Ga(Ja,i,a)}function Zc(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SH(i){return Wf=Ka=1,VE=wi(Ja=i),Io=0,[]}function CH(i){return Ja="",i}function rv(i){return BE(Hf(Io-1,sv(i===91?i+2:i===40?i+1:i)))}function kH(i){for(;(nn=yr())&&nn<33;)Yo();return Zc(i)>2||Zc(nn)>3?"":" "}function PH(i,a){for(;--a&&Yo()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return Hf(i,Uf()+(a<6&&yr()==32&&Yo()==32))}function sv(i){for(;Yo();)switch(nn){case i:return Io;case 34:case 39:i!==34&&i!==39&&sv(nn);break;case 40:i===41&&sv(i);break;case 92:Yo();break}return Io}function EH(i,a){for(;Yo()&&i+nn!==57&&!(i+nn===84&&yr()===47););return"/*"+Hf(a,Io-1)+"*"+ov(i===47?i:Yo())}function TH(i){for(;!Zc(yr());)Yo();return Hf(i,Io)}function _H(i){return CH(Xf("",null,null,null,[""],i=SH(i),0,[0],i))}function Xf(i,a,c,f,p,O,y,w,S){for(var A=0,T=0,P=y,N=0,V=0,j=0,z=1,K=1,H=1,X=0,te="",J=p,se=O,le=f,U=te;K;)switch(j=X,X=Yo()){case 40:if(j!=108&&Fc(U,P-1)==58){yH(U+=Zf(rv(X),"&","&\f"),"&\f",DE(A?w[A-1]:0))!=-1&&(H=-1);break}case 34:case 39:case 91:U+=rv(X);break;case 9:case 10:case 13:case 32:U+=kH(j);break;case 92:U+=PH(Uf()-1,7);continue;case 47:switch(yr()){case 42:case 47:zf(NH(EH(Yo(),Uf()),a,c,S),S),(Zc(j||1)==5||Zc(yr()||1)==5)&&wi(U)&&Ga(U,-1,void 0)!==" "&&(U+=" ");break;default:U+="/"}break;case 123*z:w[A++]=wi(U)*H;case 125*z:case 59:case 0:switch(X){case 0:case 125:K=0;case 59+T:H==-1&&(U=Zf(U,/\f/g,"")),V>0&&(wi(U)-P||z===0&&j===47)&&zf(V>32?jE(U+";",f,c,P-1,S):jE(Zf(U," ","")+";",f,c,P-2,S),S);break;case 59:U+=";";default:if(zf(le=LE(U,a,c,A,T,p,w,te,J=[],se=[],P,O),O),X===123)if(T===0)Xf(U,a,le,le,J,O,P,w,se);else switch(N===99&&Fc(U,3)===110?100:N){case 100:case 108:case 109:case 115:Xf(i,le,le,f&&zf(LE(i,le,le,0,0,p,w,te,p,J=[],P,se),se),p,se,P,w,f?J:se);break;default:Xf(U,le,le,le,[""],se,0,w,se)}}A=T=V=0,z=H=1,te=U="",P=y;break;case 58:P=1+wi(U),V=j;default:if(z<1){if(X==123)--z;else if(X==125&&z++==0&&wH()==125)continue}switch(U+=ov(X),X*z){case 38:H=T>0?1:(U+="\f",-1);break;case 44:w[A++]=(wi(U)-1)*H,H=1;break;case 64:yr()===45&&(U+=rv(Yo())),N=yr(),T=P=wi(te=U+=TH(Uf())),X++;break;case 45:j===45&&wi(U)==2&&(z=0)}}return O}function LE(i,a,c,f,p,O,y,w,S,A,T,P){for(var N=p-1,V=p===0?O:[""],j=bH(V),z=0,K=0,H=0;z<f;++z)for(var X=0,te=Ga(i,N+1,N=DE(K=y[z])),J=i;X<j;++X)(J=BE(K>0?V[X]+" "+te:Zf(te,/&\f/g,V[X])))&&(S[H++]=J);return iv(i,a,c,p===0?QE:w,S,A,T,P)}function NH(i,a,c,f){return iv(i,a,c,ME,ov(xH()),Ga(i,2,-2),0,f)}function jE(i,a,c,f,p){return iv(i,a,c,IE,Ga(i,0,f),Ga(i,f+1,-1),f,p)}function av(i,a){for(var c="",f=0;f<i.length;f++)c+=a(i[f],f,i,a)||"";return c}function AH(i,a,c,f){switch(i.type){case vH:if(i.children.length)break;case gH:case IE:return i.return=i.return||i.value;case ME:return"";case OH:return i.return=i.value+"{"+av(i.children,f)+"}";case QE:if(!wi(i.value=i.props.join(",")))return""}return wi(c=av(i.children,f))?i.return=i.value+"{"+c+"}":""}function FE(i,a){const{path:c,parentSelectors:f}=a;ev(!1,`[Ant Design Vue CSS-in-JS] ${c?`Error in '${c}': `:""}${i}${f.length?` Selector info: ${f.join(" -> ")}`:""}`)}const RH=(i,a,c)=>{if(i==="content"){const f=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof a!="string"||["normal","none","initial","inherit","unset"].indexOf(a)===-1&&!f.test(a)&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'"))&&FE(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${a}"'\`.`,c)}},MH=(i,a,c)=>{i==="animation"&&c.hashId&&a!=="none"&&FE(`You seem to be using hashed animation '${a}', in which case 'animationName' with Keyframe as value is recommended.`,c)},ZE="data-ant-cssinjs-cache-path",QH="_FILE_STYLE__";let Ss,zE=!0;function IH(){var i;if(!Ss&&(Ss={},Xo())){const a=document.createElement("div");a.className=ZE,a.style.position="fixed",a.style.visibility="hidden",a.style.top="-9999px",document.body.appendChild(a);let c=getComputedStyle(a).content||"";c=c.replace(/^"/,"").replace(/"$/,""),c.split(";").forEach(p=>{const[O,y]=p.split(":");Ss[O]=y});const f=document.querySelector(`style[${ZE}]`);f&&(zE=!1,(i=f.parentNode)===null||i===void 0||i.removeChild(f)),document.body.removeChild(a)}}function DH(i){return IH(),!!Ss[i]}function BH(i){const a=Ss[i];let c=null;if(a&&Xo())if(zE)c=QH;else{const f=document.querySelector(`style[${xs}="${Ss[i]}"]`);f?c=f.innerHTML:delete Ss[i]}return[c,a]}const WE=Xo(),UE="_skip_check_",HE="_multi_value_";function XE(i){return av(_H(i),AH).replace(/\{%%%\:[^;];}/g,";")}function VH(i){return typeof i=="object"&&i&&(UE in i||HE in i)}function LH(i,a,c){if(!a)return i;const f=`.${a}`,p=c==="low"?`:where(${f})`:f;return i.split(",").map(O=>{var y;const w=O.trim().split(/\s+/);let S=w[0]||"";const A=((y=S.match(/^\w+/))===null||y===void 0?void 0:y[0])||"";return S=`${A}${p}${S.slice(A.length)}`,[S,...w.slice(1)].join(" ")}).join(",")}const YE=new Set;process.env.NODE_ENV;const lv=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:c,injectHash:f,parentSelectors:p}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:O,layer:y,path:w,hashPriority:S,transformers:A=[],linters:T=[]}=a;let P="",N={};function V(z){const K=z.getName(O);if(!N[K]){const[H]=lv(z.style,a,{root:!1,parentSelectors:p});N[K]=`@keyframes ${z.getName(O)}${H}`}}function j(z){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return z.forEach(H=>{Array.isArray(H)?j(H,K):H&&K.push(H)}),K}if(j(Array.isArray(i)?i:[i]).forEach(z=>{const K=typeof z=="string"&&!c?{}:z;if(typeof K=="string")P+=`${K}
|
|
7
|
+
`;else if(K._keyframe)V(K);else{const H=A.reduce((X,te)=>{var J;return((J=te?.visit)===null||J===void 0?void 0:J.call(te,X))||X},K);Object.keys(H).forEach(X=>{var te;const J=H[X];if(typeof J=="object"&&J&&(X!=="animationName"||!J._keyframe)&&!VH(J)){let se=!1,le=X.trim(),U=!1;(c||f)&&O?le.startsWith("@")?se=!0:le=LH(X,O,S):c&&!O&&(le==="&"||le==="")&&(le="",U=!0);const[he,ue]=lv(J,a,{root:U,injectHash:se,parentSelectors:[...p,le]});N=q(q({},N),ue),P+=`${le}${he}`}else{let se=function(U,he){process.env.NODE_ENV!=="production"&&(typeof J!="object"||!J?.[UE])&&[RH,MH,...T].forEach(ye=>ye(U,he,{path:w,hashId:O,parentSelectors:p}));const ue=U.replace(/[A-Z]/g,ye=>`-${ye.toLowerCase()}`);let ge=he;!mH[U]&&typeof ge=="number"&&ge!==0&&(ge=`${ge}px`),U==="animationName"&&he?._keyframe&&(V(he),ge=he.getName(O)),P+=`${ue}:${ge};`};const le=(te=J?.value)!==null&&te!==void 0?te:J;typeof J=="object"&&J?.[HE]&&Array.isArray(le)?le.forEach(U=>{se(X,U)}):se(X,le)}})}}),!c)P=`{${P}}`;else if(y&&rH()){const z=y.split(",");P=`@layer ${z[z.length-1].trim()} {${P}}`,z.length>1&&(P=`@layer ${y}{%%%:%}${P}`)}return[P,N]};function jH(i,a){return KO(`${i.join("%")}${a}`)}function cv(i,a){const c=Vf(),f=o.computed(()=>i.value.token._tokenKey),p=o.computed(()=>[f.value,...i.value.path]);let O=WE;return process.env.NODE_ENV!=="production"&&c.value.mock!==void 0&&(O=c.value.mock==="client"),bE("style",p,()=>{const{path:y,hashId:w,layer:S,nonce:A,clientOnly:T,order:P=0}=i.value,N=p.value.join("|");if(DH(N)){const[U,he]=BH(N);if(U)return[U,f.value,he,{},T,P]}const V=a(),{hashPriority:j,container:z,transformers:K,linters:H,cache:X}=c.value,[te,J]=lv(V,{hashId:w,hashPriority:j,layer:S,path:y.join("-"),transformers:K,linters:H}),se=XE(te),le=jH(p.value,se);if(O){const U={mark:xs,prepend:"queue",attachTo:z,priority:P},he=typeof A=="function"?A():A;he&&(U.csp={nonce:he});const ue=Lc(se,le,U);ue[Ha]=X.instanceId,ue.setAttribute(OE,f.value),process.env.NODE_ENV!=="production"&&ue.setAttribute(ZU,p.value.join("|")),Object.keys(J).forEach(ge=>{YE.has(ge)||(YE.add(ge),Lc(XE(J[ge]),`_effect-${ge}`,{mark:xs,prepend:"queue",attachTo:z}))})}return[se,f.value,le,J,T,P]},(y,w)=>{let[,,S]=y;(w||c.value.autoClear)&&WE&&jf(S,{mark:xs})}),y=>y}class Ut{constructor(a,c){this._keyframe=!0,this.name=a,this.style=c}getName(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return a?`${a}-${this.name}`:this.name}}const FH="4.2.3";function Tn(i,a){ZH(i)&&(i="100%");var c=zH(i);return i=a===360?i:Math.min(a,Math.max(0,parseFloat(i))),c&&(i=parseInt(String(i*a),10)/100),Math.abs(i-a)<1e-6?1:(a===360?i=(i<0?i%a+a:i%a)/parseFloat(String(a)):i=i%a/parseFloat(String(a)),i)}function Yf(i){return Math.min(1,Math.max(0,i))}function ZH(i){return typeof i=="string"&&i.indexOf(".")!==-1&&parseFloat(i)===1}function zH(i){return typeof i=="string"&&i.indexOf("%")!==-1}function GE(i){return i=parseFloat(i),(isNaN(i)||i<0||i>1)&&(i=1),i}function Gf(i){return i<=1?"".concat(Number(i)*100,"%"):i}function Cs(i){return i.length===1?"0"+i:String(i)}function WH(i,a,c){return{r:Tn(i,255)*255,g:Tn(a,255)*255,b:Tn(c,255)*255}}function KE(i,a,c){i=Tn(i,255),a=Tn(a,255),c=Tn(c,255);var f=Math.max(i,a,c),p=Math.min(i,a,c),O=0,y=0,w=(f+p)/2;if(f===p)y=0,O=0;else{var S=f-p;switch(y=w>.5?S/(2-f-p):S/(f+p),f){case i:O=(a-c)/S+(a<c?6:0);break;case a:O=(c-i)/S+2;break;case c:O=(i-a)/S+4;break}O/=6}return{h:O,s:y,l:w}}function uv(i,a,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(a-i)*(6*c):c<1/2?a:c<2/3?i+(a-i)*(2/3-c)*6:i}function UH(i,a,c){var f,p,O;if(i=Tn(i,360),a=Tn(a,100),c=Tn(c,100),a===0)p=c,O=c,f=c;else{var y=c<.5?c*(1+a):c+a-c*a,w=2*c-y;f=uv(w,y,i+1/3),p=uv(w,y,i),O=uv(w,y,i-1/3)}return{r:f*255,g:p*255,b:O*255}}function dv(i,a,c){i=Tn(i,255),a=Tn(a,255),c=Tn(c,255);var f=Math.max(i,a,c),p=Math.min(i,a,c),O=0,y=f,w=f-p,S=f===0?0:w/f;if(f===p)O=0;else{switch(f){case i:O=(a-c)/w+(a<c?6:0);break;case a:O=(c-i)/w+2;break;case c:O=(i-a)/w+4;break}O/=6}return{h:O,s:S,v:y}}function HH(i,a,c){i=Tn(i,360)*6,a=Tn(a,100),c=Tn(c,100);var f=Math.floor(i),p=i-f,O=c*(1-a),y=c*(1-p*a),w=c*(1-(1-p)*a),S=f%6,A=[c,y,O,O,w,c][S],T=[w,c,c,y,O,O][S],P=[O,O,w,c,c,y][S];return{r:A*255,g:T*255,b:P*255}}function fv(i,a,c,f){var p=[Cs(Math.round(i).toString(16)),Cs(Math.round(a).toString(16)),Cs(Math.round(c).toString(16))];return f&&p[0].startsWith(p[0].charAt(1))&&p[1].startsWith(p[1].charAt(1))&&p[2].startsWith(p[2].charAt(1))?p[0].charAt(0)+p[1].charAt(0)+p[2].charAt(0):p.join("")}function XH(i,a,c,f,p){var O=[Cs(Math.round(i).toString(16)),Cs(Math.round(a).toString(16)),Cs(Math.round(c).toString(16)),Cs(YH(f))];return p&&O[0].startsWith(O[0].charAt(1))&&O[1].startsWith(O[1].charAt(1))&&O[2].startsWith(O[2].charAt(1))&&O[3].startsWith(O[3].charAt(1))?O[0].charAt(0)+O[1].charAt(0)+O[2].charAt(0)+O[3].charAt(0):O.join("")}function YH(i){return Math.round(parseFloat(i)*255).toString(16)}function JE(i){return bo(i)/255}function bo(i){return parseInt(i,16)}function GH(i){return{r:i>>16,g:(i&65280)>>8,b:i&255}}var hv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function $a(i){var a={r:0,g:0,b:0},c=1,f=null,p=null,O=null,y=!1,w=!1;return typeof i=="string"&&(i=$H(i)),typeof i=="object"&&(Vi(i.r)&&Vi(i.g)&&Vi(i.b)?(a=WH(i.r,i.g,i.b),y=!0,w=String(i.r).substr(-1)==="%"?"prgb":"rgb"):Vi(i.h)&&Vi(i.s)&&Vi(i.v)?(f=Gf(i.s),p=Gf(i.v),a=HH(i.h,f,p),y=!0,w="hsv"):Vi(i.h)&&Vi(i.s)&&Vi(i.l)&&(f=Gf(i.s),O=Gf(i.l),a=UH(i.h,f,O),y=!0,w="hsl"),Object.prototype.hasOwnProperty.call(i,"a")&&(c=i.a)),c=GE(c),{ok:y,format:i.format||w,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:c}}var KH="[-\\+]?\\d+%?",JH="[-\\+]?\\d*\\.\\d+%?",br="(?:".concat(JH,")|(?:").concat(KH,")"),pv="[\\s|\\(]+(".concat(br,")[,|\\s]+(").concat(br,")[,|\\s]+(").concat(br,")\\s*\\)?"),mv="[\\s|\\(]+(".concat(br,")[,|\\s]+(").concat(br,")[,|\\s]+(").concat(br,")[,|\\s]+(").concat(br,")\\s*\\)?"),Go={CSS_UNIT:new RegExp(br),rgb:new RegExp("rgb"+pv),rgba:new RegExp("rgba"+mv),hsl:new RegExp("hsl"+pv),hsla:new RegExp("hsla"+mv),hsv:new RegExp("hsv"+pv),hsva:new RegExp("hsva"+mv),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $H(i){if(i=i.trim().toLowerCase(),i.length===0)return!1;var a=!1;if(hv[i])i=hv[i],a=!0;else if(i==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c=Go.rgb.exec(i);return c?{r:c[1],g:c[2],b:c[3]}:(c=Go.rgba.exec(i),c?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=Go.hsl.exec(i),c?{h:c[1],s:c[2],l:c[3]}:(c=Go.hsla.exec(i),c?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=Go.hsv.exec(i),c?{h:c[1],s:c[2],v:c[3]}:(c=Go.hsva.exec(i),c?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=Go.hex8.exec(i),c?{r:bo(c[1]),g:bo(c[2]),b:bo(c[3]),a:JE(c[4]),format:a?"name":"hex8"}:(c=Go.hex6.exec(i),c?{r:bo(c[1]),g:bo(c[2]),b:bo(c[3]),format:a?"name":"hex"}:(c=Go.hex4.exec(i),c?{r:bo(c[1]+c[1]),g:bo(c[2]+c[2]),b:bo(c[3]+c[3]),a:JE(c[4]+c[4]),format:a?"name":"hex8"}:(c=Go.hex3.exec(i),c?{r:bo(c[1]+c[1]),g:bo(c[2]+c[2]),b:bo(c[3]+c[3]),format:a?"name":"hex"}:!1)))))))))}function Vi(i){return!!Go.CSS_UNIT.exec(String(i))}var _n=function(){function i(a,c){a===void 0&&(a=""),c===void 0&&(c={});var f;if(a instanceof i)return a;typeof a=="number"&&(a=GH(a)),this.originalInput=a;var p=$a(a);this.originalInput=a,this.r=p.r,this.g=p.g,this.b=p.b,this.a=p.a,this.roundA=Math.round(100*this.a)/100,this.format=(f=c.format)!==null&&f!==void 0?f:p.format,this.gradientType=c.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=p.ok}return i.prototype.isDark=function(){return this.getBrightness()<128},i.prototype.isLight=function(){return!this.isDark()},i.prototype.getBrightness=function(){var a=this.toRgb();return(a.r*299+a.g*587+a.b*114)/1e3},i.prototype.getLuminance=function(){var a=this.toRgb(),c,f,p,O=a.r/255,y=a.g/255,w=a.b/255;return O<=.03928?c=O/12.92:c=Math.pow((O+.055)/1.055,2.4),y<=.03928?f=y/12.92:f=Math.pow((y+.055)/1.055,2.4),w<=.03928?p=w/12.92:p=Math.pow((w+.055)/1.055,2.4),.2126*c+.7152*f+.0722*p},i.prototype.getAlpha=function(){return this.a},i.prototype.setAlpha=function(a){return this.a=GE(a),this.roundA=Math.round(100*this.a)/100,this},i.prototype.isMonochrome=function(){var a=this.toHsl().s;return a===0},i.prototype.toHsv=function(){var a=dv(this.r,this.g,this.b);return{h:a.h*360,s:a.s,v:a.v,a:this.a}},i.prototype.toHsvString=function(){var a=dv(this.r,this.g,this.b),c=Math.round(a.h*360),f=Math.round(a.s*100),p=Math.round(a.v*100);return this.a===1?"hsv(".concat(c,", ").concat(f,"%, ").concat(p,"%)"):"hsva(".concat(c,", ").concat(f,"%, ").concat(p,"%, ").concat(this.roundA,")")},i.prototype.toHsl=function(){var a=KE(this.r,this.g,this.b);return{h:a.h*360,s:a.s,l:a.l,a:this.a}},i.prototype.toHslString=function(){var a=KE(this.r,this.g,this.b),c=Math.round(a.h*360),f=Math.round(a.s*100),p=Math.round(a.l*100);return this.a===1?"hsl(".concat(c,", ").concat(f,"%, ").concat(p,"%)"):"hsla(".concat(c,", ").concat(f,"%, ").concat(p,"%, ").concat(this.roundA,")")},i.prototype.toHex=function(a){return a===void 0&&(a=!1),fv(this.r,this.g,this.b,a)},i.prototype.toHexString=function(a){return a===void 0&&(a=!1),"#"+this.toHex(a)},i.prototype.toHex8=function(a){return a===void 0&&(a=!1),XH(this.r,this.g,this.b,this.a,a)},i.prototype.toHex8String=function(a){return a===void 0&&(a=!1),"#"+this.toHex8(a)},i.prototype.toHexShortString=function(a){return a===void 0&&(a=!1),this.a===1?this.toHexString(a):this.toHex8String(a)},i.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},i.prototype.toRgbString=function(){var a=Math.round(this.r),c=Math.round(this.g),f=Math.round(this.b);return this.a===1?"rgb(".concat(a,", ").concat(c,", ").concat(f,")"):"rgba(".concat(a,", ").concat(c,", ").concat(f,", ").concat(this.roundA,")")},i.prototype.toPercentageRgb=function(){var a=function(c){return"".concat(Math.round(Tn(c,255)*100),"%")};return{r:a(this.r),g:a(this.g),b:a(this.b),a:this.a}},i.prototype.toPercentageRgbString=function(){var a=function(c){return Math.round(Tn(c,255)*100)};return this.a===1?"rgb(".concat(a(this.r),"%, ").concat(a(this.g),"%, ").concat(a(this.b),"%)"):"rgba(".concat(a(this.r),"%, ").concat(a(this.g),"%, ").concat(a(this.b),"%, ").concat(this.roundA,")")},i.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var a="#"+fv(this.r,this.g,this.b,!1),c=0,f=Object.entries(hv);c<f.length;c++){var p=f[c],O=p[0],y=p[1];if(a===y)return O}return!1},i.prototype.toString=function(a){var c=!!a;a=a??this.format;var f=!1,p=this.a<1&&this.a>=0,O=!c&&p&&(a.startsWith("hex")||a==="name");return O?a==="name"&&this.a===0?this.toName():this.toRgbString():(a==="rgb"&&(f=this.toRgbString()),a==="prgb"&&(f=this.toPercentageRgbString()),(a==="hex"||a==="hex6")&&(f=this.toHexString()),a==="hex3"&&(f=this.toHexString(!0)),a==="hex4"&&(f=this.toHex8String(!0)),a==="hex8"&&(f=this.toHex8String()),a==="name"&&(f=this.toName()),a==="hsl"&&(f=this.toHslString()),a==="hsv"&&(f=this.toHsvString()),f||this.toHexString())},i.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},i.prototype.clone=function(){return new i(this.toString())},i.prototype.lighten=function(a){a===void 0&&(a=10);var c=this.toHsl();return c.l+=a/100,c.l=Yf(c.l),new i(c)},i.prototype.brighten=function(a){a===void 0&&(a=10);var c=this.toRgb();return c.r=Math.max(0,Math.min(255,c.r-Math.round(255*-(a/100)))),c.g=Math.max(0,Math.min(255,c.g-Math.round(255*-(a/100)))),c.b=Math.max(0,Math.min(255,c.b-Math.round(255*-(a/100)))),new i(c)},i.prototype.darken=function(a){a===void 0&&(a=10);var c=this.toHsl();return c.l-=a/100,c.l=Yf(c.l),new i(c)},i.prototype.tint=function(a){return a===void 0&&(a=10),this.mix("white",a)},i.prototype.shade=function(a){return a===void 0&&(a=10),this.mix("black",a)},i.prototype.desaturate=function(a){a===void 0&&(a=10);var c=this.toHsl();return c.s-=a/100,c.s=Yf(c.s),new i(c)},i.prototype.saturate=function(a){a===void 0&&(a=10);var c=this.toHsl();return c.s+=a/100,c.s=Yf(c.s),new i(c)},i.prototype.greyscale=function(){return this.desaturate(100)},i.prototype.spin=function(a){var c=this.toHsl(),f=(c.h+a)%360;return c.h=f<0?360+f:f,new i(c)},i.prototype.mix=function(a,c){c===void 0&&(c=50);var f=this.toRgb(),p=new i(a).toRgb(),O=c/100,y={r:(p.r-f.r)*O+f.r,g:(p.g-f.g)*O+f.g,b:(p.b-f.b)*O+f.b,a:(p.a-f.a)*O+f.a};return new i(y)},i.prototype.analogous=function(a,c){a===void 0&&(a=6),c===void 0&&(c=30);var f=this.toHsl(),p=360/c,O=[this];for(f.h=(f.h-(p*a>>1)+720)%360;--a;)f.h=(f.h+p)%360,O.push(new i(f));return O},i.prototype.complement=function(){var a=this.toHsl();return a.h=(a.h+180)%360,new i(a)},i.prototype.monochromatic=function(a){a===void 0&&(a=6);for(var c=this.toHsv(),f=c.h,p=c.s,O=c.v,y=[],w=1/a;a--;)y.push(new i({h:f,s:p,v:O})),O=(O+w)%1;return y},i.prototype.splitcomplement=function(){var a=this.toHsl(),c=a.h;return[this,new i({h:(c+72)%360,s:a.s,l:a.l}),new i({h:(c+216)%360,s:a.s,l:a.l})]},i.prototype.onBackground=function(a){var c=this.toRgb(),f=new i(a).toRgb(),p=c.a+f.a*(1-c.a);return new i({r:(c.r*c.a+f.r*f.a*(1-c.a))/p,g:(c.g*c.a+f.g*f.a*(1-c.a))/p,b:(c.b*c.a+f.b*f.a*(1-c.a))/p,a:p})},i.prototype.triad=function(){return this.polyad(3)},i.prototype.tetrad=function(){return this.polyad(4)},i.prototype.polyad=function(a){for(var c=this.toHsl(),f=c.h,p=[this],O=360/a,y=1;y<a;y++)p.push(new i({h:(f+y*O)%360,s:c.s,l:c.l}));return p},i.prototype.equals=function(a){return this.toRgbString()===new i(a).toRgbString()},i}(),Kf=2,$E=.16,qH=.05,eX=.05,tX=.15,qE=5,eT=4,nX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function tT(i){var a=i.r,c=i.g,f=i.b,p=dv(a,c,f);return{h:p.h*360,s:p.s,v:p.v}}function Jf(i){var a=i.r,c=i.g,f=i.b;return"#".concat(fv(a,c,f,!1))}function oX(i,a,c){var f=c/100,p={r:(a.r-i.r)*f+i.r,g:(a.g-i.g)*f+i.g,b:(a.b-i.b)*f+i.b};return p}function nT(i,a,c){var f;return Math.round(i.h)>=60&&Math.round(i.h)<=240?f=c?Math.round(i.h)-Kf*a:Math.round(i.h)+Kf*a:f=c?Math.round(i.h)+Kf*a:Math.round(i.h)-Kf*a,f<0?f+=360:f>=360&&(f-=360),f}function oT(i,a,c){if(i.h===0&&i.s===0)return i.s;var f;return c?f=i.s-$E*a:a===eT?f=i.s+$E:f=i.s+qH*a,f>1&&(f=1),c&&a===qE&&f>.1&&(f=.1),f<.06&&(f=.06),Number(f.toFixed(2))}function iT(i,a,c){var f;return c?f=i.v+eX*a:f=i.v-tX*a,f>1&&(f=1),Number(f.toFixed(2))}function ks(i){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[],f=$a(i),p=qE;p>0;p-=1){var O=tT(f),y=Jf($a({h:nT(O,p,!0),s:oT(O,p,!0),v:iT(O,p,!0)}));c.push(y)}c.push(Jf(f));for(var w=1;w<=eT;w+=1){var S=tT(f),A=Jf($a({h:nT(S,w),s:oT(S,w),v:iT(S,w)}));c.push(A)}return a.theme==="dark"?nX.map(function(T){var P=T.index,N=T.opacity,V=Jf(oX($a(a.backgroundColor||"#141414"),$a(c[P]),N*100));return V}):c}var gv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},$f={},Ov={};Object.keys(gv).forEach(function(i){$f[i]=ks(gv[i]),$f[i].primary=$f[i][5],Ov[i]=ks(gv[i],{theme:"dark",backgroundColor:"#141414"}),Ov[i].primary=Ov[i][5]});var iX=$f.blue;const rX=i=>{const{controlHeight:a}=i;return{controlHeightSM:a*.75,controlHeightXS:a*.5,controlHeightLG:a*1.25}};function sX(i){const{sizeUnit:a,sizeStep:c}=i;return{sizeXXL:a*(c+8),sizeXL:a*(c+4),sizeLG:a*(c+2),sizeMD:a*(c+1),sizeMS:a*c,size:a*c,sizeSM:a*(c-1),sizeXS:a*(c-2),sizeXXS:a*(c-3)}}const rT={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},qf=q(q({},rT),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
8
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
9
|
+
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function aX(i,a){let{generateColorPalettes:c,generateNeutralColorPalettes:f}=a;const{colorSuccess:p,colorWarning:O,colorError:y,colorInfo:w,colorPrimary:S,colorBgBase:A,colorTextBase:T}=i,P=c(S),N=c(p),V=c(O),j=c(y),z=c(w),K=f(A,T);return q(q({},K),{colorPrimaryBg:P[1],colorPrimaryBgHover:P[2],colorPrimaryBorder:P[3],colorPrimaryBorderHover:P[4],colorPrimaryHover:P[5],colorPrimary:P[6],colorPrimaryActive:P[7],colorPrimaryTextHover:P[8],colorPrimaryText:P[9],colorPrimaryTextActive:P[10],colorSuccessBg:N[1],colorSuccessBgHover:N[2],colorSuccessBorder:N[3],colorSuccessBorderHover:N[4],colorSuccessHover:N[4],colorSuccess:N[6],colorSuccessActive:N[7],colorSuccessTextHover:N[8],colorSuccessText:N[9],colorSuccessTextActive:N[10],colorErrorBg:j[1],colorErrorBgHover:j[2],colorErrorBorder:j[3],colorErrorBorderHover:j[4],colorErrorHover:j[5],colorError:j[6],colorErrorActive:j[7],colorErrorTextHover:j[8],colorErrorText:j[9],colorErrorTextActive:j[10],colorWarningBg:V[1],colorWarningBgHover:V[2],colorWarningBorder:V[3],colorWarningBorderHover:V[4],colorWarningHover:V[4],colorWarning:V[6],colorWarningActive:V[7],colorWarningTextHover:V[8],colorWarningText:V[9],colorWarningTextActive:V[10],colorInfoBg:z[1],colorInfoBgHover:z[2],colorInfoBorder:z[3],colorInfoBorderHover:z[4],colorInfoHover:z[4],colorInfo:z[6],colorInfoActive:z[7],colorInfoTextHover:z[8],colorInfoText:z[9],colorInfoTextActive:z[10],colorBgMask:new _n("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const lX=i=>{let a=i,c=i,f=i,p=i;return i<6&&i>=5?a=i+1:i<16&&i>=6?a=i+2:i>=16&&(a=16),i<7&&i>=5?c=4:i<8&&i>=7?c=5:i<14&&i>=8?c=6:i<16&&i>=14?c=7:i>=16&&(c=8),i<6&&i>=2?f=1:i>=6&&(f=2),i>4&&i<8?p=4:i>=8&&(p=6),{borderRadius:i>16?16:i,borderRadiusXS:f,borderRadiusSM:c,borderRadiusLG:a,borderRadiusOuter:p}};function cX(i){const{motionUnit:a,motionBase:c,borderRadius:f,lineWidth:p}=i;return q({motionDurationFast:`${(c+a).toFixed(1)}s`,motionDurationMid:`${(c+a*2).toFixed(1)}s`,motionDurationSlow:`${(c+a*3).toFixed(1)}s`,lineWidthBold:p+1},lX(f))}const Li=(i,a)=>new _n(i).setAlpha(a).toRgbString(),zc=(i,a)=>new _n(i).darken(a).toHexString(),uX=i=>{const a=ks(i);return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[4],6:a[5],7:a[6],8:a[4],9:a[5],10:a[6]}},dX=(i,a)=>{const c=i||"#fff",f=a||"#000";return{colorBgBase:c,colorTextBase:f,colorText:Li(f,.88),colorTextSecondary:Li(f,.65),colorTextTertiary:Li(f,.45),colorTextQuaternary:Li(f,.25),colorFill:Li(f,.15),colorFillSecondary:Li(f,.06),colorFillTertiary:Li(f,.04),colorFillQuaternary:Li(f,.02),colorBgLayout:zc(c,4),colorBgContainer:zc(c,0),colorBgElevated:zc(c,0),colorBgSpotlight:Li(f,.85),colorBorder:zc(c,15),colorBorderSecondary:zc(c,6)}};function fX(i){const a=new Array(10).fill(null).map((c,f)=>{const p=f-1,O=i*Math.pow(2.71828,p/5),y=f>1?Math.floor(O):Math.ceil(O);return Math.floor(y/2)*2});return a[1]=i,a.map(c=>{const f=c+8;return{size:c,lineHeight:f/c}})}const hX=i=>{const a=fX(i),c=a.map(p=>p.size),f=a.map(p=>p.lineHeight);return{fontSizeSM:c[0],fontSize:c[1],fontSizeLG:c[2],fontSizeXL:c[3],fontSizeHeading1:c[6],fontSizeHeading2:c[5],fontSizeHeading3:c[4],fontSizeHeading4:c[3],fontSizeHeading5:c[2],lineHeight:f[1],lineHeightLG:f[2],lineHeightSM:f[0],lineHeightHeading1:f[6],lineHeightHeading2:f[5],lineHeightHeading3:f[4],lineHeightHeading4:f[3],lineHeightHeading5:f[2]}};function pX(i){const a=Object.keys(rT).map(c=>{const f=ks(i[c]);return new Array(10).fill(1).reduce((p,O,y)=>(p[`${c}-${y+1}`]=f[y],p),{})}).reduce((c,f)=>(c=q(q({},c),f),c),{});return q(q(q(q(q(q(q({},i),a),aX(i,{generateColorPalettes:uX,generateNeutralColorPalettes:dX})),hX(i.fontSize)),sX(i)),rX(i)),cX(i))}function vv(i){return i>=0&&i<=255}function eh(i,a){const{r:c,g:f,b:p,a:O}=new _n(i).toRgb();if(O<1)return i;const{r:y,g:w,b:S}=new _n(a).toRgb();for(let A=.01;A<=1;A+=.01){const T=Math.round((c-y*(1-A))/A),P=Math.round((f-w*(1-A))/A),N=Math.round((p-S*(1-A))/A);if(vv(T)&&vv(P)&&vv(N))return new _n({r:T,g:P,b:N,a:Math.round(A*100)/100}).toRgbString()}return new _n({r:c,g:f,b:p,a:1}).toRgbString()}var mX=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};function gX(i){const{override:a}=i,c=mX(i,["override"]),f=q({},a);Object.keys(qf).forEach(N=>{delete f[N]});const p=q(q({},c),f),O=480,y=576,w=768,S=992,A=1200,T=1600,P=2e3;return q(q(q({},p),{colorLink:p.colorInfoText,colorLinkHover:p.colorInfoHover,colorLinkActive:p.colorInfoActive,colorFillContent:p.colorFillSecondary,colorFillContentHover:p.colorFill,colorFillAlter:p.colorFillQuaternary,colorBgContainerDisabled:p.colorFillTertiary,colorBorderBg:p.colorBgContainer,colorSplit:eh(p.colorBorderSecondary,p.colorBgContainer),colorTextPlaceholder:p.colorTextQuaternary,colorTextDisabled:p.colorTextQuaternary,colorTextHeading:p.colorText,colorTextLabel:p.colorTextSecondary,colorTextDescription:p.colorTextTertiary,colorTextLightSolid:p.colorWhite,colorHighlight:p.colorError,colorBgTextHover:p.colorFillSecondary,colorBgTextActive:p.colorFill,colorIcon:p.colorTextTertiary,colorIconHover:p.colorText,colorErrorOutline:eh(p.colorErrorBg,p.colorBgContainer),colorWarningOutline:eh(p.colorWarningBg,p.colorBgContainer),fontSizeIcon:p.fontSizeSM,lineWidth:p.lineWidth,controlOutlineWidth:p.lineWidth*2,controlInteractiveSize:p.controlHeight/2,controlItemBgHover:p.colorFillTertiary,controlItemBgActive:p.colorPrimaryBg,controlItemBgActiveHover:p.colorPrimaryBgHover,controlItemBgActiveDisabled:p.colorFill,controlTmpOutline:p.colorFillQuaternary,controlOutline:eh(p.colorPrimaryBg,p.colorBgContainer),lineType:p.lineType,borderRadius:p.borderRadius,borderRadiusXS:p.borderRadiusXS,borderRadiusSM:p.borderRadiusSM,borderRadiusLG:p.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:p.sizeXXS,paddingXS:p.sizeXS,paddingSM:p.sizeSM,padding:p.size,paddingMD:p.sizeMD,paddingLG:p.sizeLG,paddingXL:p.sizeXL,paddingContentHorizontalLG:p.sizeLG,paddingContentVerticalLG:p.sizeMS,paddingContentHorizontal:p.sizeMS,paddingContentVertical:p.sizeSM,paddingContentHorizontalSM:p.size,paddingContentVerticalSM:p.sizeXS,marginXXS:p.sizeXXS,marginXS:p.sizeXS,marginSM:p.sizeSM,margin:p.size,marginMD:p.sizeMD,marginLG:p.sizeLG,marginXL:p.sizeXL,marginXXL:p.sizeXXL,boxShadow:`
|
|
10
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
11
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
12
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
13
|
+
`,boxShadowSecondary:`
|
|
14
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
15
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
16
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
17
|
+
`,boxShadowTertiary:`
|
|
18
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
19
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
20
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
21
|
+
`,screenXS:O,screenXSMin:O,screenXSMax:y-1,screenSM:y,screenSMMin:y,screenSMMax:w-1,screenMD:w,screenMDMin:w,screenMDMax:S-1,screenLG:S,screenLGMin:S,screenLGMax:A-1,screenXL:A,screenXLMin:A,screenXLMax:T-1,screenXXL:T,screenXXLMin:T,screenXXLMax:P-1,screenXXXL:P,screenXXXLMin:P,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
|
|
22
|
+
0 1px 2px -2px ${new _n("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
23
|
+
0 3px 6px 0 ${new _n("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
24
|
+
0 5px 12px 4px ${new _n("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
25
|
+
`,boxShadowDrawerRight:`
|
|
26
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
27
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
28
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
29
|
+
`,boxShadowDrawerLeft:`
|
|
30
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
31
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
32
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
33
|
+
`,boxShadowDrawerUp:`
|
|
34
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
35
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
36
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
37
|
+
`,boxShadowDrawerDown:`
|
|
38
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
39
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
40
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
41
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),f)}const yv=i=>({boxSizing:"border-box",margin:0,padding:0,color:i.colorText,fontSize:i.fontSize,lineHeight:i.lineHeight,listStyle:"none",fontFamily:i.fontFamily}),OX=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),vX=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),yX=i=>({a:{color:i.colorLink,textDecoration:i.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${i.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:i.colorLinkHover},"&:active":{color:i.colorLinkActive},"&:active,\n &:hover":{textDecoration:i.linkHoverDecoration,outline:0},"&:focus":{textDecoration:i.linkFocusDecoration,outline:0},"&[disabled]":{color:i.colorTextDisabled,cursor:"not-allowed"}}}),bX=(i,a)=>{const{fontFamily:c,fontSize:f}=i,p=`[class^="${a}"], [class*=" ${a}"]`;return{[p]:{fontFamily:c,fontSize:f,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[p]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},xX=i=>({outline:`${i.lineWidthBold}px solid ${i.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),sT=i=>({"&:focus-visible":q({},xX(i))});function Ps(i,a,c){return f=>{const p=o.computed(()=>f?.value),[O,y,w]=Wc(),{getPrefixCls:S,iconPrefixCls:A}=Bf(),T=o.computed(()=>S()),P=o.computed(()=>({theme:O.value,token:y.value,hashId:w.value,path:["Shared",T.value]}));cv(P,()=>[{"&":yX(y.value)}]);const N=o.computed(()=>({theme:O.value,token:y.value,hashId:w.value,path:[i,p.value,A.value]}));return[cv(N,()=>{const{token:V,flush:j}=SX(y.value),z=typeof c=="function"?c(V):c,K=q(q({},z),y.value[i]),H=`.${p.value}`,X=xr(V,{componentCls:H,prefixCls:p.value,iconCls:`.${A.value}`,antCls:`.${T.value}`},K),te=a(X,{hashId:w.value,prefixCls:p.value,rootPrefixCls:T.value,iconPrefixCls:A.value,overrideComponentToken:y.value[i]});return j(i,K),[bX(y.value,p.value),te]}),w]}}const aT=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let bv=!0;function xr(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];if(!aT)return q({},...a);bv=!1;const f={};return a.forEach(p=>{Object.keys(p).forEach(O=>{Object.defineProperty(f,O,{configurable:!0,enumerable:!0,get:()=>p[O]})})}),bv=!0,f}function wX(){}function SX(i){let a,c=i,f=wX;return aT&&(a=new Set,c=new Proxy(i,{get(p,O){return bv&&a.add(O),p[O]}}),f=(p,O)=>{Array.from(a)}),{token:c,keys:a,flush:f}}const CX=_E(pX),lT={token:qf,hashed:!0},cT=Symbol("DesignTokenContext"),xv=o.shallowRef(),kX=i=>{o.provide(cT,i),o.watch(i,()=>{xv.value=o.unref(i),o.triggerRef(xv)},{immediate:!0,deep:!0})},PX=o.defineComponent({props:{value:tn()},setup(i,a){let{slots:c}=a;return kX(o.computed(()=>i.value)),()=>{var f;return(f=c.default)===null||f===void 0?void 0:f.call(c)}}});function Wc(){const i=o.inject(cT,o.computed(()=>xv.value||lT)),a=o.computed(()=>`${FH}-${i.value.hashed||""}`),c=o.computed(()=>i.value.theme||CX),f=pH(c,o.computed(()=>[qf,i.value.token]),o.computed(()=>({salt:a.value,override:q({override:i.value.token},i.value.components),formatToken:gX})));return[c,o.computed(()=>f.value[0]),o.computed(()=>i.value.hashed?f.value[1]:"")]}const uT=o.defineComponent({compatConfig:{MODE:3},setup(){const[,i]=Wc(),a=o.computed(()=>new _n(i.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>o.createVNode("svg",{style:a.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[o.createVNode("g",{fill:"none","fill-rule":"evenodd"},[o.createVNode("g",{transform:"translate(24 31.67)"},[o.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),o.createVNode("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),o.createVNode("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),o.createVNode("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),o.createVNode("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),o.createVNode("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),o.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[o.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),o.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});uT.PRESENTED_IMAGE_DEFAULT=!0;const dT=o.defineComponent({compatConfig:{MODE:3},setup(){const[,i]=Wc(),a=o.computed(()=>{const{colorFill:c,colorFillTertiary:f,colorFillQuaternary:p,colorBgContainer:O}=i.value;return{borderColor:new _n(c).onBackground(O).toHexString(),shadowColor:new _n(f).onBackground(O).toHexString(),contentColor:new _n(p).onBackground(O).toHexString()}});return()=>o.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[o.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[o.createVNode("ellipse",{fill:a.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),o.createVNode("g",{"fill-rule":"nonzero",stroke:a.value.borderColor},[o.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),o.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:a.value.contentColor},null)])])])}});dT.PRESENTED_IMAGE_SIMPLE=!0;const EX=i=>{const{componentCls:a,margin:c,marginXS:f,marginXL:p,fontSize:O,lineHeight:y}=i;return{[a]:{marginInline:f,fontSize:O,lineHeight:y,textAlign:"center",[`${a}-image`]:{height:i.emptyImgHeight,marginBottom:f,opacity:i.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${a}-footer`]:{marginTop:c},"&-normal":{marginBlock:p,color:i.colorTextDisabled,[`${a}-image`]:{height:i.emptyImgHeightMD}},"&-small":{marginBlock:f,color:i.colorTextDisabled,[`${a}-image`]:{height:i.emptyImgHeightSM}}}}},TX=Ps("Empty",i=>{const{componentCls:a,controlHeightLG:c}=i,f=xr(i,{emptyImgCls:`${a}-img`,emptyImgHeight:c*2.5,emptyImgHeightMD:c,emptyImgHeightSM:c*.875});return[EX(f)]});var _X=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};const fT=o.createVNode(uT,null,null),hT=o.createVNode(dT,null,null),NX=()=>({prefixCls:String,imageStyle:tn(),image:UO(),description:UO()}),wv=o.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:NX(),setup(i,a){let{slots:c={},attrs:f}=a;const{direction:p,prefixCls:O}=Si("empty",i),[y,w]=TX(O);return()=>{var S,A;const T=O.value,P=q(q({},i),f),{image:N=((S=c.image)===null||S===void 0?void 0:S.call(c))||fT,description:V=((A=c.description)===null||A===void 0?void 0:A.call(c))||void 0,imageStyle:j,class:z=""}=P,K=_X(P,["image","description","imageStyle","class"]);return y(o.createVNode(mE,{componentName:"Empty",children:H=>{const X=typeof V<"u"?V:H.description,te=typeof X=="string"?X:"empty";let J=null;return typeof N=="string"?J=o.createVNode("img",{alt:te,src:N},null):J=N,o.createVNode("div",Ke({class:Vt(T,z,w.value,{[`${T}-normal`]:N===hT,[`${T}-rtl`]:p.value==="rtl"})},K),[o.createVNode("div",{class:`${T}-image`,style:j},[J]),X&&o.createVNode("p",{class:`${T}-description`},[X]),c.default&&o.createVNode("div",{class:`${T}-footer`},[oE(c.default())])])}},null))}}});wv.PRESENTED_IMAGE_DEFAULT=fT,wv.PRESENTED_IMAGE_SIMPLE=hT;const Uc=WO(wv),pT=i=>{const{prefixCls:a}=Si("empty",i);return(c=>{switch(c){case"Table":case"List":return o.createVNode(Uc,{image:Uc.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createVNode(Uc,{image:Uc.PRESENTED_IMAGE_SIMPLE,class:`${a.value}-small`},null);default:return o.createVNode(Uc,null,null)}})(i.componentName)};function AX(i){return o.createVNode(pT,{componentName:i},null)}const mT=Symbol("SizeContextKey"),gT=()=>o.inject(mT,o.ref(void 0)),RX=i=>{const a=gT();return o.provide(mT,o.computed(()=>i.value||a.value)),i},Si=(i,a)=>{const c=gT(),f=YO(),p=o.inject(XO,q(q({},dE),{renderEmpty:U=>o.h(pT,{componentName:U})})),O=o.computed(()=>p.getPrefixCls(i,a.prefixCls)),y=o.computed(()=>{var U,he;return(U=a.direction)!==null&&U!==void 0?U:(he=p.direction)===null||he===void 0?void 0:he.value}),w=o.computed(()=>{var U;return(U=a.iconPrefixCls)!==null&&U!==void 0?U:p.iconPrefixCls.value}),S=o.computed(()=>p.getPrefixCls()),A=o.computed(()=>{var U;return(U=p.autoInsertSpaceInButton)===null||U===void 0?void 0:U.value}),T=p.renderEmpty,P=p.space,N=p.pageHeader,V=p.form,j=o.computed(()=>{var U,he;return(U=a.getTargetContainer)!==null&&U!==void 0?U:(he=p.getTargetContainer)===null||he===void 0?void 0:he.value}),z=o.computed(()=>{var U,he,ue;return(he=(U=a.getContainer)!==null&&U!==void 0?U:a.getPopupContainer)!==null&&he!==void 0?he:(ue=p.getPopupContainer)===null||ue===void 0?void 0:ue.value}),K=o.computed(()=>{var U,he;return(U=a.dropdownMatchSelectWidth)!==null&&U!==void 0?U:(he=p.dropdownMatchSelectWidth)===null||he===void 0?void 0:he.value}),H=o.computed(()=>{var U;return(a.virtual===void 0?((U=p.virtual)===null||U===void 0?void 0:U.value)!==!1:a.virtual!==!1)&&K.value!==!1}),X=o.computed(()=>a.size||c.value),te=o.computed(()=>{var U,he,ue;return(U=a.autocomplete)!==null&&U!==void 0?U:(ue=(he=p.input)===null||he===void 0?void 0:he.value)===null||ue===void 0?void 0:ue.autocomplete}),J=o.computed(()=>{var U;return(U=a.disabled)!==null&&U!==void 0?U:f.value}),se=o.computed(()=>{var U;return(U=a.csp)!==null&&U!==void 0?U:p.csp}),le=o.computed(()=>{var U,he;return(U=a.wave)!==null&&U!==void 0?U:(he=p.wave)===null||he===void 0?void 0:he.value});return{configProvider:p,prefixCls:O,direction:y,size:X,getTargetContainer:j,getPopupContainer:z,space:P,pageHeader:N,form:V,autoInsertSpaceInButton:A,renderEmpty:T,virtual:H,dropdownMatchSelectWidth:K,rootPrefixCls:S,getPrefixCls:p.getPrefixCls,autocomplete:te,csp:se,iconPrefixCls:w,disabled:J,select:p.select,wave:le}};function OT(i,a){const c=q({},i);for(let f=0;f<a.length;f+=1){const p=a[f];delete c[p]}return c}function MX(i,a){for(var c=0;c<a.length;c++){var f=a[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}function vT(i,a,c){return c&&MX(i,c),i}function th(){return(th=Object.assign||function(i){for(var a=1;a<arguments.length;a++){var c=arguments[a];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i}).apply(this,arguments)}function yT(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a}function bT(i,a){if(i==null)return{};var c,f,p={},O=Object.keys(i);for(f=0;f<O.length;f++)a.indexOf(c=O[f])>=0||(p[c]=i[c]);return p}function xT(i){return((a=i)!=null&&typeof a=="object"&&Array.isArray(a)===!1)==1&&Object.prototype.toString.call(i)==="[object Object]";var a}var wT=Object.prototype,ST=wT.toString,QX=wT.hasOwnProperty,CT=/^\s*function (\w+)/;function kT(i){var a,c=(a=i?.type)!==null&&a!==void 0?a:i;if(c){var f=c.toString().match(CT);return f?f[1]:""}return""}var Es=function(i){var a,c;return xT(i)!==!1&&typeof(a=i.constructor)=="function"&&xT(c=a.prototype)!==!1&&c.hasOwnProperty("isPrototypeOf")!==!1},PT=function(i){return i},Dn=PT;if(process.env.NODE_ENV!=="production"){var IX=typeof console<"u";Dn=IX?function(i){console.warn("[VueTypes warn]: "+i)}:PT}var Hc=function(i,a){return QX.call(i,a)},DX=Number.isInteger||function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i},qa=Array.isArray||function(i){return ST.call(i)==="[object Array]"},el=function(i){return ST.call(i)==="[object Function]"},nh=function(i){return Es(i)&&Hc(i,"_vueTypes_name")},ET=function(i){return Es(i)&&(Hc(i,"type")||["_vueTypes_name","validator","default","required"].some(function(a){return Hc(i,a)}))};function Sv(i,a){return Object.defineProperty(i.bind(a),"__original",{value:i})}function Ts(i,a,c){var f;c===void 0&&(c=!1);var p=!0,O="";f=Es(i)?i:{type:i};var y=nh(f)?f._vueTypes_name+" - ":"";if(ET(f)&&f.type!==null){if(f.type===void 0||f.type===!0||!f.required&&a===void 0)return p;qa(f.type)?(p=f.type.some(function(P){return Ts(P,a,!0)===!0}),O=f.type.map(function(P){return kT(P)}).join(" or ")):p=(O=kT(f))==="Array"?qa(a):O==="Object"?Es(a):O==="String"||O==="Number"||O==="Boolean"||O==="Function"?function(P){if(P==null)return"";var N=P.constructor.toString().match(CT);return N?N[1]:""}(a)===O:a instanceof f.type}if(!p){var w=y+'value "'+a+'" should be of type "'+O+'"';return c===!1?(Dn(w),!1):w}if(Hc(f,"validator")&&el(f.validator)){var S=Dn,A=[];if(Dn=function(P){A.push(P)},p=f.validator(a),Dn=S,!p){var T=(A.length>1?"* ":"")+A.join(`
|
|
42
|
+
* `);return A.length=0,c===!1?(Dn(T),p):T}}return p}function xo(i,a){var c=Object.defineProperties(a,{_vueTypes_name:{value:i,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(p){return p!==void 0||this.default?el(p)||Ts(this,p,!0)===!0?(this.default=qa(p)?function(){return[].concat(p)}:Es(p)?function(){return Object.assign({},p)}:p,this):(Dn(this._vueTypes_name+' - invalid default value: "'+p+'"'),this):this}}}),f=c.validator;return el(f)&&(c.validator=Sv(f,c)),c}function Ci(i,a){var c=xo(i,a);return Object.defineProperty(c,"validate",{value:function(f){return el(this.validator)&&Dn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
43
|
+
`+JSON.stringify(this)),this.validator=Sv(f,this),this}})}function TT(i,a,c){var f,p,O=(f=a,p={},Object.getOwnPropertyNames(f).forEach(function(P){p[P]=Object.getOwnPropertyDescriptor(f,P)}),Object.defineProperties({},p));if(O._vueTypes_name=i,!Es(c))return O;var y,w,S=c.validator,A=bT(c,["validator"]);if(el(S)){var T=O.validator;T&&(T=(w=(y=T).__original)!==null&&w!==void 0?w:y),O.validator=Sv(T?function(P){return T.call(this,P)&&S.call(this,P)}:S,O)}return Object.assign(O,A)}function oh(i){return i.replace(/^(?!\s*$)/gm," ")}var BX=function(){return Ci("any",{})},VX=function(){return Ci("function",{type:Function})},LX=function(){return Ci("boolean",{type:Boolean})},jX=function(){return Ci("string",{type:String})},FX=function(){return Ci("number",{type:Number})},ZX=function(){return Ci("array",{type:Array})},zX=function(){return Ci("object",{type:Object})},WX=function(){return xo("integer",{type:Number,validator:function(i){return DX(i)}})},UX=function(){return xo("symbol",{validator:function(i){return typeof i=="symbol"}})};function HX(i,a){if(a===void 0&&(a="custom validation failed"),typeof i!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return xo(i.name||"<<anonymous function>>",{validator:function(c){var f=i(c);return f||Dn(this._vueTypes_name+" - "+a),f}})}function XX(i){if(!qa(i))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var a='oneOf - value should be one of "'+i.join('", "')+'".',c=i.reduce(function(f,p){if(p!=null){var O=p.constructor;f.indexOf(O)===-1&&f.push(O)}return f},[]);return xo("oneOf",{type:c.length>0?c:void 0,validator:function(f){var p=i.indexOf(f)!==-1;return p||Dn(a),p}})}function YX(i){if(!qa(i))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var a=!1,c=[],f=0;f<i.length;f+=1){var p=i[f];if(ET(p)){if(nh(p)&&p._vueTypes_name==="oneOf"){c=c.concat(p.type);continue}if(el(p.validator)&&(a=!0),p.type!==!0&&p.type){c=c.concat(p.type);continue}}c.push(p)}return c=c.filter(function(O,y){return c.indexOf(O)===y}),xo("oneOfType",a?{type:c,validator:function(O){var y=[],w=i.some(function(S){var A=Ts(nh(S)&&S._vueTypes_name==="oneOf"?S.type||null:S,O,!0);return typeof A=="string"&&y.push(A),A===!0});return w||Dn("oneOfType - provided value does not match any of the "+y.length+` passed-in validators:
|
|
44
|
+
`+oh(y.join(`
|
|
45
|
+
`))),w}}:{type:c})}function GX(i){return xo("arrayOf",{type:Array,validator:function(a){var c,f=a.every(function(p){return(c=Ts(i,p,!0))===!0});return f||Dn(`arrayOf - value validation error:
|
|
46
|
+
`+oh(c)),f}})}function KX(i){return xo("instanceOf",{type:i})}function JX(i){return xo("objectOf",{type:Object,validator:function(a){var c,f=Object.keys(a).every(function(p){return(c=Ts(i,a[p],!0))===!0});return f||Dn(`objectOf - value validation error:
|
|
47
|
+
`+oh(c)),f}})}function $X(i){var a=Object.keys(i),c=a.filter(function(p){var O;return!!(!((O=i[p])===null||O===void 0)&&O.required)}),f=xo("shape",{type:Object,validator:function(p){var O=this;if(!Es(p))return!1;var y=Object.keys(p);if(c.length>0&&c.some(function(S){return y.indexOf(S)===-1})){var w=c.filter(function(S){return y.indexOf(S)===-1});return Dn(w.length===1?'shape - required property "'+w[0]+'" is not defined.':'shape - required properties "'+w.join('", "')+'" are not defined.'),!1}return y.every(function(S){if(a.indexOf(S)===-1)return O._vueTypes_isLoose===!0||(Dn('shape - shape definition does not include a "'+S+'" property. Allowed keys: "'+a.join('", "')+'".'),!1);var A=Ts(i[S],p[S],!0);return typeof A=="string"&&Dn('shape - "'+S+`" property validation error:
|
|
48
|
+
`+oh(A)),A===!0})}});return Object.defineProperty(f,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(f,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),f}var ki=function(){function i(){}return i.extend=function(a){var c=this;if(qa(a))return a.forEach(function(P){return c.extend(P)}),this;var f=a.name,p=a.validate,O=p!==void 0&&p,y=a.getter,w=y!==void 0&&y,S=bT(a,["name","validate","getter"]);if(Hc(this,f))throw new TypeError('[VueTypes error]: Type "'+f+'" already defined');var A,T=S.type;return nh(T)?(delete S.type,Object.defineProperty(this,f,w?{get:function(){return TT(f,T,S)}}:{value:function(){var P,N=TT(f,T,S);return N.validator&&(N.validator=(P=N.validator).bind.apply(P,[N].concat([].slice.call(arguments)))),N}})):(A=w?{get:function(){var P=Object.assign({},S);return O?Ci(f,P):xo(f,P)},enumerable:!0}:{value:function(){var P,N,V=Object.assign({},S);return P=O?Ci(f,V):xo(f,V),V.validator&&(P.validator=(N=V.validator).bind.apply(N,[P].concat([].slice.call(arguments)))),P},enumerable:!0},Object.defineProperty(this,f,A))},vT(i,null,[{key:"any",get:function(){return BX()}},{key:"func",get:function(){return VX().def(this.defaults.func)}},{key:"bool",get:function(){return LX().def(this.defaults.bool)}},{key:"string",get:function(){return jX().def(this.defaults.string)}},{key:"number",get:function(){return FX().def(this.defaults.number)}},{key:"array",get:function(){return ZX().def(this.defaults.array)}},{key:"object",get:function(){return zX().def(this.defaults.object)}},{key:"integer",get:function(){return WX().def(this.defaults.integer)}},{key:"symbol",get:function(){return UX()}}]),i}();function _T(i){var a;return i===void 0&&(i={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(a=function(c){function f(){return c.apply(this,arguments)||this}return yT(f,c),vT(f,null,[{key:"sensibleDefaults",get:function(){return th({},this.defaults)},set:function(p){this.defaults=p!==!1?th({},p!==!0?p:i):{}}}]),f}(ki)).defaults=th({},i),a}ki.defaults={},ki.custom=HX,ki.oneOf=XX,ki.instanceOf=KX,ki.oneOfType=YX,ki.arrayOf=GX,ki.objectOf=JX,ki.shape=$X,ki.utils={validate:function(i,a){return Ts(a,i,!0)===!0},toType:function(i,a,c){return c===void 0&&(c=!1),c?Ci(i,a):xo(i,a)}},function(i){function a(){return i.apply(this,arguments)||this}return yT(a,i),a}(_T());const Lt=_T({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Lt.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const NT=(i,a,c)=>{ev(i,`[ant-design-vue: ${a}] ${c}`)};function qX(i){let{prefixCls:a,animation:c,transitionName:f}=i;return c?{name:`${a}-${c}`}:f?{name:f}:{}}function eY(i,a,c){o.render(o.cloneVNode(i,q({},a)),c)}const tY=i=>{if(!i)return!1;if(i.offsetParent)return!0;if(i.getBBox){const a=i.getBBox();if(a.width||a.height)return!0}if(i.getBoundingClientRect){const a=i.getBoundingClientRect();if(a.width||a.height)return!0}return!1};var AT=typeof ii=="object"&&ii&&ii.Object===Object&&ii,nY=typeof self=="object"&&self&&self.Object===Object&&self,wr=AT||nY||Function("return this")(),ih=wr.Symbol,RT=Object.prototype,oY=RT.hasOwnProperty,iY=RT.toString,Xc=ih?ih.toStringTag:void 0;function rY(i){var a=oY.call(i,Xc),c=i[Xc];try{i[Xc]=void 0;var f=!0}catch{}var p=iY.call(i);return f&&(a?i[Xc]=c:delete i[Xc]),p}var sY=Object.prototype,aY=sY.toString;function lY(i){return aY.call(i)}var cY="[object Null]",uY="[object Undefined]",MT=ih?ih.toStringTag:void 0;function Yc(i){return i==null?i===void 0?uY:cY:MT&&MT in Object(i)?rY(i):lY(i)}function QT(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var dY="[object AsyncFunction]",fY="[object Function]",hY="[object GeneratorFunction]",pY="[object Proxy]";function IT(i){if(!QT(i))return!1;var a=Yc(i);return a==fY||a==hY||a==dY||a==pY}var Cv=wr["__core-js_shared__"],DT=function(){var i=/[^.]+$/.exec(Cv&&Cv.keys&&Cv.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function mY(i){return!!DT&&DT in i}var gY=Function.prototype,OY=gY.toString;function _s(i){if(i!=null){try{return OY.call(i)}catch{}try{return i+""}catch{}}return""}var vY=/[\\^$.*+?()[\]{}|]/g,yY=/^\[object .+?Constructor\]$/,bY=Function.prototype,xY=Object.prototype,wY=bY.toString,SY=xY.hasOwnProperty,CY=RegExp("^"+wY.call(SY).replace(vY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kY(i){if(!QT(i)||mY(i))return!1;var a=IT(i)?CY:yY;return a.test(_s(i))}function PY(i,a){return i?.[a]}function Gc(i,a){var c=PY(i,a);return kY(c)?c:void 0}var kv=Gc(wr,"Map"),EY=Array.isArray;function Pv(i){return i!=null&&typeof i=="object"}var TY="[object Arguments]";function BT(i){return Pv(i)&&Yc(i)==TY}var VT=Object.prototype,_Y=VT.hasOwnProperty,NY=VT.propertyIsEnumerable,AY=BT(function(){return arguments}())?BT:function(i){return Pv(i)&&_Y.call(i,"callee")&&!NY.call(i,"callee")};function RY(){return!1}var LT=typeof t=="object"&&t&&!t.nodeType&&t,jT=LT&&!0&&n&&!n.nodeType&&n,MY=jT&&jT.exports===LT,FT=MY?wr.Buffer:void 0,QY=FT?FT.isBuffer:void 0,IY=QY||RY,DY=9007199254740991;function ZT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=DY}var BY="[object Arguments]",VY="[object Array]",LY="[object Boolean]",jY="[object Date]",FY="[object Error]",ZY="[object Function]",zY="[object Map]",WY="[object Number]",UY="[object Object]",HY="[object RegExp]",XY="[object Set]",YY="[object String]",GY="[object WeakMap]",KY="[object ArrayBuffer]",JY="[object DataView]",$Y="[object Float32Array]",qY="[object Float64Array]",eG="[object Int8Array]",tG="[object Int16Array]",nG="[object Int32Array]",oG="[object Uint8Array]",iG="[object Uint8ClampedArray]",rG="[object Uint16Array]",sG="[object Uint32Array]",Rt={};Rt[$Y]=Rt[qY]=Rt[eG]=Rt[tG]=Rt[nG]=Rt[oG]=Rt[iG]=Rt[rG]=Rt[sG]=!0,Rt[BY]=Rt[VY]=Rt[KY]=Rt[LY]=Rt[JY]=Rt[jY]=Rt[FY]=Rt[ZY]=Rt[zY]=Rt[WY]=Rt[UY]=Rt[HY]=Rt[XY]=Rt[YY]=Rt[GY]=!1;function aG(i){return Pv(i)&&ZT(i.length)&&!!Rt[Yc(i)]}function lG(i){return function(a){return i(a)}}var zT=typeof t=="object"&&t&&!t.nodeType&&t,Kc=zT&&!0&&n&&!n.nodeType&&n,cG=Kc&&Kc.exports===zT,Ev=cG&&AT.process,WT=function(){try{var i=Kc&&Kc.require&&Kc.require("util").types;return i||Ev&&Ev.binding&&Ev.binding("util")}catch{}}(),UT=WT&&WT.isTypedArray,uG=UT?lG(UT):aG,dG=Object.prototype;function HT(i){var a=i&&i.constructor,c=typeof a=="function"&&a.prototype||dG;return i===c}function fG(i,a){return function(c){return i(a(c))}}var hG=fG(Object.keys,Object),pG=Object.prototype,mG=pG.hasOwnProperty;function gG(i){if(!HT(i))return hG(i);var a=[];for(var c in Object(i))mG.call(i,c)&&c!="constructor"&&a.push(c);return a}function OG(i){return i!=null&&ZT(i.length)&&!IT(i)}var Tv=Gc(wr,"DataView"),_v=Gc(wr,"Promise"),Nv=Gc(wr,"Set"),Av=Gc(wr,"WeakMap"),XT="[object Map]",vG="[object Object]",YT="[object Promise]",GT="[object Set]",KT="[object WeakMap]",JT="[object DataView]",yG=_s(Tv),bG=_s(kv),xG=_s(_v),wG=_s(Nv),SG=_s(Av),Ns=Yc;(Tv&&Ns(new Tv(new ArrayBuffer(1)))!=JT||kv&&Ns(new kv)!=XT||_v&&Ns(_v.resolve())!=YT||Nv&&Ns(new Nv)!=GT||Av&&Ns(new Av)!=KT)&&(Ns=function(i){var a=Yc(i),c=a==vG?i.constructor:void 0,f=c?_s(c):"";if(f)switch(f){case yG:return JT;case bG:return XT;case xG:return YT;case wG:return GT;case SG:return KT}return a}),Df("bottomLeft","bottomRight","topLeft","topRight");const $T=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return q(i?{name:i,appear:!0,enterFromClass:`${i}-enter ${i}-enter-prepare ${i}-enter-start`,enterActiveClass:`${i}-enter ${i}-enter-prepare`,enterToClass:`${i}-enter ${i}-enter-active`,leaveFromClass:` ${i}-leave`,leaveActiveClass:`${i}-leave ${i}-leave-active`,leaveToClass:`${i}-leave ${i}-leave-active`}:{css:!1},a)},qT=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return q(i?{name:i,appear:!0,appearActiveClass:`${i}`,appearToClass:`${i}-appear ${i}-appear-active`,enterFromClass:`${i}-appear ${i}-enter ${i}-appear-prepare ${i}-enter-prepare`,enterActiveClass:`${i}`,enterToClass:`${i}-enter ${i}-appear ${i}-appear-active ${i}-enter-active`,leaveActiveClass:`${i} ${i}-leave`,leaveToClass:`${i}-leave-active`}:{css:!1},a)},rh=(i,a,c)=>c!==void 0?c:`${i}-${a}`,e_=Symbol("PortalContextKey"),t_=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};o.provide(e_,{inTriggerContext:a.inTriggerContext,shouldRender:o.computed(()=>{const{sPopupVisible:c,popupRef:f,forceRender:p,autoDestroy:O}=i||{};let y=!1;return(c||f||p)&&(y=!0),!c&&O&&(y=!1),y})})},CG=()=>{t_({},{inTriggerContext:!1});const i=o.inject(e_,{shouldRender:o.computed(()=>!1),inTriggerContext:!1});return{shouldRender:o.computed(()=>i.shouldRender.value||i.inTriggerContext===!1)}},n_=o.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Lt.func.isRequired,didUpdate:Function},setup(i,a){let{slots:c}=a,f=!0,p;const{shouldRender:O}=CG();function y(){O.value&&(p=i.getContainer())}o.onBeforeMount(()=>{f=!1,y()}),o.onMounted(()=>{p||y()});const w=o.watch(O,()=>{O.value&&!p&&(p=i.getContainer()),p&&w()});return o.onUpdated(()=>{o.nextTick(()=>{var S;O.value&&((S=i.didUpdate)===null||S===void 0||S.call(i,i))})}),()=>{var S;return O.value?f?(S=c.default)===null||S===void 0?void 0:S.call(c):p?o.createVNode(o.Teleport,{to:p},c):null:null}}});let Rv;function kG(i){if(typeof document>"u")return 0;if(Rv===void 0){const a=document.createElement("div");a.style.width="100%",a.style.height="200px";const c=document.createElement("div"),f=c.style;f.position="absolute",f.top="0",f.left="0",f.pointerEvents="none",f.visibility="hidden",f.width="200px",f.height="150px",f.overflow="hidden",c.appendChild(a),document.body.appendChild(c);const p=a.offsetWidth;c.style.overflow="scroll";let O=a.offsetWidth;p===O&&(O=c.clientWidth),document.body.removeChild(c),Rv=p-O}return Rv}const PG=`vc-util-locker-${Date.now()}`;let o_=0;function EG(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function TG(i){const a=o.computed(()=>!!i&&!!i.value);o_+=1;const c=`${PG}_${o_}`;o.watchEffect(f=>{if(Xo()){if(a.value){const p=kG(),O=EG();Lc(`
|
|
49
|
+
html body {
|
|
50
|
+
overflow-y: hidden;
|
|
51
|
+
${O?`width: calc(100% - ${p}px);`:""}
|
|
52
|
+
}`,c)}else jf(c);f(()=>{jf(c)})}},{flush:"post"})}let As=0;const sh=Xo(),i_=i=>{if(!sh)return null;if(i){if(typeof i=="string")return document.querySelectorAll(i)[0];if(typeof i=="function")return i();if(typeof i=="object"&&i instanceof window.HTMLElement)return i}return document.body},_G=o.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Lt.any,visible:{type:Boolean,default:void 0},autoLock:Ua(),didUpdate:Function},setup(i,a){let{slots:c}=a;const f=o.shallowRef(),p=o.shallowRef(),O=o.shallowRef(),y=o.shallowRef(1),w=Xo()&&document.createElement("div"),S=()=>{var V,j;f.value===w&&((j=(V=f.value)===null||V===void 0?void 0:V.parentNode)===null||j===void 0||j.removeChild(f.value)),f.value=null};let A=null;const T=function(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]||f.value&&!f.value.parentNode?(A=i_(i.getContainer),A?(A.appendChild(f.value),!0):!1):!0},P=()=>sh?(f.value||(f.value=w,T(!0)),N(),f.value):null,N=()=>{const{wrapperClassName:V}=i;f.value&&V&&V!==f.value.className&&(f.value.className=V)};return o.onUpdated(()=>{N(),T()}),TG(o.computed(()=>i.autoLock&&i.visible&&Xo()&&(f.value===document.body||f.value===w))),o.onMounted(()=>{let V=!1;o.watch([()=>i.visible,()=>i.getContainer],(j,z)=>{let[K,H]=j,[X,te]=z;sh&&(A=i_(i.getContainer),A===document.body&&(K&&!X?As+=1:V&&(As-=1))),V&&(typeof H=="function"&&typeof te=="function"?H.toString()!==te.toString():H!==te)&&S(),V=!0},{immediate:!0,flush:"post"}),o.nextTick(()=>{T()||(O.value=Bc(()=>{y.value+=1}))})}),o.onBeforeUnmount(()=>{const{visible:V}=i;sh&&A===document.body&&(As=V&&As?As-1:As),S(),Bc.cancel(O.value)}),()=>{const{forceRender:V,visible:j}=i;let z=null;const K={getOpenCount:()=>As,getContainer:P};return y.value&&(V||j||p.value)&&(z=o.createVNode(n_,{getContainer:P,ref:p,didUpdate:i.didUpdate},{default:()=>{var H;return(H=c.default)===null||H===void 0?void 0:H.call(c,K)}})),z}}}),et={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(i){const{keyCode:a}=i;if(i.altKey&&!i.ctrlKey||i.metaKey||a>=et.F1&&a<=et.F12)return!1;switch(a){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(i){if(i>=et.ZERO&&i<=et.NINE||i>=et.NUM_ZERO&&i<=et.NUM_MULTIPLY||i>=et.A&&i<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&i===0)return!0;switch(i){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},r_=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
53
|
+
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
54
|
+
charset checked classid classname colspan cols content contenteditable contextmenu
|
|
55
|
+
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
56
|
+
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
|
57
|
+
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
|
58
|
+
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
|
59
|
+
mediagroup method min minlength multiple muted name novalidate nonce open
|
|
60
|
+
optimum pattern placeholder poster preload radiogroup readonly rel required
|
|
61
|
+
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
|
62
|
+
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
|
63
|
+
summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
|
64
|
+
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
|
65
|
+
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
|
66
|
+
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
67
|
+
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
68
|
+
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
69
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),NG="aria-",AG="data-";function s_(i,a){return i.indexOf(a)===0}function RG(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c;a===!1?c={aria:!0,data:!0,attr:!0}:a===!0?c={aria:!0}:c=q({},a);const f={};return Object.keys(i).forEach(p=>{(c.aria&&(p==="role"||s_(p,NG))||c.data&&s_(p,AG)||c.attr&&(r_.includes(p)||r_.includes(p.toLowerCase())))&&(f[p]=i[p])}),f}function Rs(i){const a=typeof i=="function"?i():i,c=o.ref(a);function f(p){c.value=p}return[c,f]}var MG=Symbol("iconContext"),a_=function(){return o.inject(MG,{prefixCls:o.ref("anticon"),rootClassName:o.ref(""),csp:o.ref()})};function Mv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function QG(i,a){return i&&i.contains?i.contains(a):!1}var l_="data-vc-order",IG="vc-icon-key",Qv=new Map;function c_(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.mark;return a?a.startsWith("data-")?a:"data-".concat(a):IG}function Iv(i){if(i.attachTo)return i.attachTo;var a=document.querySelector("head");return a||document.body}function DG(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function u_(i){return Array.from((Qv.get(i)||i).children).filter(function(a){return a.tagName==="STYLE"})}function d_(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mv())return null;var c=a.csp,f=a.prepend,p=document.createElement("style");p.setAttribute(l_,DG(f)),c&&c.nonce&&(p.nonce=c.nonce),p.innerHTML=i;var O=Iv(a),y=O.firstChild;if(f){if(f==="queue"){var w=u_(O).filter(function(S){return["prepend","prependQueue"].includes(S.getAttribute(l_))});if(w.length)return O.insertBefore(p,w[w.length-1].nextSibling),p}O.insertBefore(p,y)}else O.appendChild(p);return p}function BG(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=Iv(a);return u_(c).find(function(f){return f.getAttribute(c_(a))===i})}function VG(i,a){var c=Qv.get(i);if(!c||!QG(document,c)){var f=d_("",a),p=f.parentNode;Qv.set(i,p),i.removeChild(f)}}function LG(i,a){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=Iv(c);VG(f,c);var p=BG(a,c);if(p)return c.csp&&c.csp.nonce&&p.nonce!==c.csp.nonce&&(p.nonce=c.csp.nonce),p.innerHTML!==i&&(p.innerHTML=i),p;var O=d_(i,c);return O.setAttribute(c_(c),a),O}function f_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){jG(i,p,c[p])})}return i}function jG(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}function FG(i,a){process.env.NODE_ENV!=="production"&&!i&&console!==void 0&&console.error("Warning: ".concat(a))}function ZG(i,a){FG(i,"[@ant-design/icons-vue] ".concat(a))}function h_(i){return typeof i=="object"&&typeof i.name=="string"&&typeof i.theme=="string"&&(typeof i.icon=="object"||typeof i.icon=="function")}function Dv(i,a,c){return c?o.h(i.tag,f_({key:a},c,i.attrs),(i.children||[]).map(function(f,p){return Dv(f,"".concat(a,"-").concat(i.tag,"-").concat(p))})):o.h(i.tag,f_({key:a},i.attrs),(i.children||[]).map(function(f,p){return Dv(f,"".concat(a,"-").concat(i.tag,"-").concat(p))}))}function p_(i){return ks(i)[0]}function m_(i){return i?Array.isArray(i)?i:[i]:[]}var zG=`
|
|
70
|
+
.anticon {
|
|
71
|
+
display: inline-block;
|
|
72
|
+
color: inherit;
|
|
73
|
+
font-style: normal;
|
|
74
|
+
line-height: 0;
|
|
75
|
+
text-align: center;
|
|
76
|
+
text-transform: none;
|
|
77
|
+
vertical-align: -0.125em;
|
|
78
|
+
text-rendering: optimizeLegibility;
|
|
79
|
+
-webkit-font-smoothing: antialiased;
|
|
80
|
+
-moz-osx-font-smoothing: grayscale;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.anticon > * {
|
|
84
|
+
line-height: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.anticon svg {
|
|
88
|
+
display: inline-block;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.anticon::before {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.anticon .anticon-icon {
|
|
96
|
+
display: block;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.anticon[tabindex] {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.anticon-spin::before,
|
|
104
|
+
.anticon-spin {
|
|
105
|
+
display: inline-block;
|
|
106
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
107
|
+
animation: loadingCircle 1s infinite linear;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@-webkit-keyframes loadingCircle {
|
|
111
|
+
100% {
|
|
112
|
+
-webkit-transform: rotate(360deg);
|
|
113
|
+
transform: rotate(360deg);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes loadingCircle {
|
|
118
|
+
100% {
|
|
119
|
+
-webkit-transform: rotate(360deg);
|
|
120
|
+
transform: rotate(360deg);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;function g_(i){return i&&i.getRootNode&&i.getRootNode()}function WG(i){return Mv()?g_(i)instanceof ShadowRoot:!1}function UG(i){return WG(i)?g_(i):null}var HG=function(){var i=a_(),a=i.prefixCls,c=i.csp,f=o.getCurrentInstance(),p=zG;a&&(p=p.replace(/anticon/g,a.value)),o.nextTick(function(){if(Mv()){var O=f.vnode.el,y=UG(O);LG(p,"@ant-design-vue-icons",{prepend:!0,csp:c.value,attachTo:y})}})},XG=["icon","primaryColor","secondaryColor"];function YG(i,a){if(i==null)return{};var c=GG(i,a),f,p;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(i);for(p=0;p<O.length;p++)f=O[p],!(a.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(i,f)&&(c[f]=i[f])}return c}function GG(i,a){if(i==null)return{};var c={},f=Object.keys(i),p,O;for(O=0;O<f.length;O++)p=f[O],!(a.indexOf(p)>=0)&&(c[p]=i[p]);return c}function ah(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){KG(i,p,c[p])})}return i}function KG(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Jc=o.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function JG(i){var a=i.primaryColor,c=i.secondaryColor;Jc.primaryColor=a,Jc.secondaryColor=c||p_(a),Jc.calculated=!!c}function $G(){return ah({},Jc)}var Sr=function(i,a){var c=ah({},i,a.attrs),f=c.icon,p=c.primaryColor,O=c.secondaryColor,y=YG(c,XG),w=Jc;if(p&&(w={primaryColor:p,secondaryColor:O||p_(p)}),ZG(h_(f),"icon should be icon definiton, but got ".concat(f)),!h_(f))return null;var S=f;return S&&typeof S.icon=="function"&&(S=ah({},S,{icon:S.icon(w.primaryColor,w.secondaryColor)})),Dv(S.icon,"svg-".concat(S.name),ah({},y,{"data-icon":S.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Sr.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Sr.inheritAttrs=!1,Sr.displayName="IconBase",Sr.getTwoToneColors=$G,Sr.setTwoToneColors=JG;function qG(i,a){return oK(i)||nK(i,a)||tK(i,a)||eK()}function eK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
124
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tK(i,a){if(i){if(typeof i=="string")return O_(i,a);var c=Object.prototype.toString.call(i).slice(8,-1);if(c==="Object"&&i.constructor&&(c=i.constructor.name),c==="Map"||c==="Set")return Array.from(i);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return O_(i,a)}}function O_(i,a){(a==null||a>i.length)&&(a=i.length);for(var c=0,f=new Array(a);c<a;c++)f[c]=i[c];return f}function nK(i,a){var c=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(c!=null){var f=[],p=!0,O=!1,y,w;try{for(c=c.call(i);!(p=(y=c.next()).done)&&(f.push(y.value),!(a&&f.length===a));p=!0);}catch(S){O=!0,w=S}finally{try{!p&&c.return!=null&&c.return()}finally{if(O)throw w}}return f}}function oK(i){if(Array.isArray(i))return i}function v_(i){var a=m_(i),c=qG(a,2),f=c[0],p=c[1];return Sr.setTwoToneColors({primaryColor:f,secondaryColor:p})}function iK(){var i=Sr.getTwoToneColors();return i.calculated?[i.primaryColor,i.secondaryColor]:i.primaryColor}var rK=o.defineComponent({name:"InsertStyles",setup:function(){return HG(),function(){return null}}}),sK=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function aK(i,a){return dK(i)||uK(i,a)||cK(i,a)||lK()}function lK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cK(i,a){if(i){if(typeof i=="string")return y_(i,a);var c=Object.prototype.toString.call(i).slice(8,-1);if(c==="Object"&&i.constructor&&(c=i.constructor.name),c==="Map"||c==="Set")return Array.from(i);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y_(i,a)}}function y_(i,a){(a==null||a>i.length)&&(a=i.length);for(var c=0,f=new Array(a);c<a;c++)f[c]=i[c];return f}function uK(i,a){var c=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(c!=null){var f=[],p=!0,O=!1,y,w;try{for(c=c.call(i);!(p=(y=c.next()).done)&&(f.push(y.value),!(a&&f.length===a));p=!0);}catch(S){O=!0,w=S}finally{try{!p&&c.return!=null&&c.return()}finally{if(O)throw w}}return f}}function dK(i){if(Array.isArray(i))return i}function b_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){$c(i,p,c[p])})}return i}function $c(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}function fK(i,a){if(i==null)return{};var c=hK(i,a),f,p;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(i);for(p=0;p<O.length;p++)f=O[p],!(a.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(i,f)&&(c[f]=i[f])}return c}function hK(i,a){if(i==null)return{};var c={},f=Object.keys(i),p,O;for(O=0;O<f.length;O++)p=f[O],!(a.indexOf(p)>=0)&&(c[p]=i[p]);return c}v_(iX.primary);var Zn=function(i,a){var c,f=b_({},i,a.attrs),p=f.class,O=f.icon,y=f.spin,w=f.rotate,S=f.tabindex,A=f.twoToneColor,T=f.onClick,P=fK(f,sK),N=a_(),V=N.prefixCls,j=N.rootClassName,z=(c={},$c(c,j.value,!!j.value),$c(c,V.value,!0),$c(c,"".concat(V.value,"-").concat(O.name),!!O.name),$c(c,"".concat(V.value,"-spin"),!!y||O.name==="loading"),c),K=S;K===void 0&&T&&(K=-1);var H=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,X=m_(A),te=aK(X,2),J=te[0],se=te[1];return o.createVNode("span",b_({role:"img","aria-label":O.name},P,{onClick:T,class:[z,p],tabindex:K}),[o.createVNode(Sr,{icon:O,primaryColor:J,secondaryColor:se,style:H},null),o.createVNode(rK,null,null)])};Zn.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Zn.displayName="AntdIcon",Zn.inheritAttrs=!1,Zn.getTwoToneColor=iK,Zn.setTwoToneColor=v_;var pK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function x_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){mK(i,p,c[p])})}return i}function mK(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Ms=function(i,a){var c=x_({},i,a.attrs);return o.createVNode(Zn,x_({},c,{icon:pK}),null)};Ms.displayName="LoadingOutlined",Ms.inheritAttrs=!1;var gK={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function w_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){OK(i,p,c[p])})}return i}function OK(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var tl=function(i,a){var c=w_({},i,a.attrs);return o.createVNode(Zn,w_({},c,{icon:gK}),null)};tl.displayName="CloseOutlined",tl.inheritAttrs=!1;var vK={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function S_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){yK(i,p,c[p])})}return i}function yK(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Qs=function(i,a){var c=S_({},i,a.attrs);return o.createVNode(Zn,S_({},c,{icon:vK}),null)};Qs.displayName="CloseCircleFilled",Qs.inheritAttrs=!1;function C_(i){const a=Symbol("contextKey");return{useProvide:(c,f)=>{const p=o.reactive({});return o.provide(a,p),o.watchEffect(()=>{q(p,c,f||{})}),p},useInject:()=>o.inject(a,i)||{}}}const bK=i=>{const{componentCls:a}=i;return{[a]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},xK=i=>{const{componentCls:a}=i;return{[a]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${a}-item`]:{"&:empty":{display:"none"}}}}},wK=Ps("Space",i=>[xK(i),bK(i)]);var SK="[object Map]",CK="[object Set]",kK=Object.prototype,PK=kK.hasOwnProperty;function k_(i){if(i==null)return!0;if(OG(i)&&(EY(i)||typeof i=="string"||typeof i.splice=="function"||IY(i)||uG(i)||AY(i)))return!i.length;var a=Ns(i);if(a==SK||a==CK)return!i.size;if(HT(i))return!gG(i).length;for(var c in i)if(PK.call(i,c))return!1;return!0}const EK=()=>({compactSize:String,compactDirection:Lt.oneOf(Df("horizontal","vertical")).def("horizontal"),isFirstItem:Ua(),isLastItem:Ua()}),lh=C_(null),TK=(i,a)=>{const c=lh.useInject(),f=o.computed(()=>{if(!c||k_(c))return"";const{compactDirection:p,isFirstItem:O,isLastItem:y}=c,w=p==="vertical"?"-vertical-":"-";return Vt({[`${i.value}-compact${w}item`]:!0,[`${i.value}-compact${w}first-item`]:O,[`${i.value}-compact${w}last-item`]:y,[`${i.value}-compact${w}item-rtl`]:a.value==="rtl"})});return{compactSize:o.computed(()=>c?.compactSize),compactDirection:o.computed(()=>c?.compactDirection),compactItemClassnames:f}};o.defineComponent({name:"NoCompactStyle",setup(i,a){let{slots:c}=a;return lh.useProvide(null),()=>{var f;return(f=c.default)===null||f===void 0?void 0:f.call(c)}}});const _K=()=>({prefixCls:String,size:{type:String},direction:Lt.oneOf(Df("horizontal","vertical")).def("horizontal"),align:Lt.oneOf(Df("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),NK=o.defineComponent({name:"CompactItem",props:EK(),setup(i,a){let{slots:c}=a;return lh.useProvide(i),()=>{var f;return(f=c.default)===null||f===void 0?void 0:f.call(c)}}});o.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:_K(),setup(i,a){let{attrs:c,slots:f}=a;const{prefixCls:p,direction:O}=Si("space-compact",i),y=lh.useInject(),[w,S]=wK(p),A=o.computed(()=>Vt(p.value,S.value,{[`${p.value}-rtl`]:O.value==="rtl",[`${p.value}-block`]:i.block,[`${p.value}-vertical`]:i.direction==="vertical"}));return()=>{var T;const P=Dc(((T=f.default)===null||T===void 0?void 0:T.call(f))||[]);return P.length===0?null:w(o.createVNode("div",Ke(Ke({},c),{},{class:[A.value,c.class]}),[P.map((N,V)=>{var j;const z=N&&N.key||`${p.value}-item-${V}`,K=!y||k_(y);return o.createVNode(NK,{key:z,compactSize:(j=i.size)!==null&&j!==void 0?j:"middle",compactDirection:i.direction,isFirstItem:V===0&&(K||y?.isFirstItem),isLastItem:V===P.length-1&&(K||y?.isLastItem)},{default:()=>[N]})})]))}}});const AK=i=>({animationDuration:i,animationFillMode:"both"}),RK=i=>({animationDuration:i,animationFillMode:"both"}),P_=function(i,a,c,f){const p=arguments.length>4&&arguments[4]!==void 0&&arguments[4]?"&":"";return{[`
|
|
126
|
+
${p}${i}-enter,
|
|
127
|
+
${p}${i}-appear
|
|
128
|
+
`]:q(q({},AK(f)),{animationPlayState:"paused"}),[`${p}${i}-leave`]:q(q({},RK(f)),{animationPlayState:"paused"}),[`
|
|
129
|
+
${p}${i}-enter${i}-enter-active,
|
|
130
|
+
${p}${i}-appear${i}-appear-active
|
|
131
|
+
`]:{animationName:a,animationPlayState:"running"},[`${p}${i}-leave${i}-leave-active`]:{animationName:c,animationPlayState:"running",pointerEvents:"none"}}},MK=new Ut("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),QK=new Ut("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),IK=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:c}=i,f=`${c}-fade`,p=a?"&":"";return[P_(f,MK,QK,i.motionDurationMid,a),{[`
|
|
132
|
+
${p}${f}-enter,
|
|
133
|
+
${p}${f}-appear
|
|
134
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${p}${f}-leave`]:{animationTimingFunction:"linear"}}]},DK=new Ut("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),BK=new Ut("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),E_=new Ut("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),T_=new Ut("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),VK=new Ut("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),LK=new Ut("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),jK=new Ut("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),FK=new Ut("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ZK=new Ut("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zK=new Ut("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),WK=new Ut("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UK=new Ut("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),HK={zoom:{inKeyframes:DK,outKeyframes:BK},"zoom-big":{inKeyframes:E_,outKeyframes:T_},"zoom-big-fast":{inKeyframes:E_,outKeyframes:T_},"zoom-left":{inKeyframes:jK,outKeyframes:FK},"zoom-right":{inKeyframes:ZK,outKeyframes:zK},"zoom-up":{inKeyframes:VK,outKeyframes:LK},"zoom-down":{inKeyframes:WK,outKeyframes:UK}},XK=(i,a)=>{const{antCls:c}=i,f=`${c}-${a}`,{inKeyframes:p,outKeyframes:O}=HK[a];return[P_(f,p,O,i.motionDurationMid),{[`
|
|
135
|
+
${f}-enter,
|
|
136
|
+
${f}-appear
|
|
137
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:i.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${f}-leave`]:{animationTimingFunction:i.motionEaseInOutCirc}}]};function YK(i,a,c){const{focusElCls:f,focus:p,borderElCls:O}=c,y=O?"> *":"",w=["hover",p?"focus":null,"active"].filter(Boolean).map(S=>`&:${S} ${y}`).join(",");return{[`&-item:not(${a}-last-item)`]:{marginInlineEnd:-i.lineWidth},"&-item":q(q({[w]:{zIndex:2}},f?{[`&${f}`]:{zIndex:2}}:{}),{[`&[disabled] ${y}`]:{zIndex:0}})}}function GK(i,a,c){const{borderElCls:f}=c,p=f?`> ${f}`:"";return{[`&-item:not(${a}-first-item):not(${a}-last-item) ${p}`]:{borderRadius:0},[`&-item:not(${a}-last-item)${a}-first-item`]:{[`& ${p}, &${i}-sm ${p}, &${i}-lg ${p}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${a}-first-item)${a}-last-item`]:{[`& ${p}, &${i}-sm ${p}, &${i}-lg ${p}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function KK(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:c}=i,f=`${c}-compact`;return{[f]:q(q({},YK(i,f,a)),GK(c,f,a))}}var JK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function __(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){$K(i,p,c[p])})}return i}function $K(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Bv=function(i,a){var c=__({},i,a.attrs);return o.createVNode(Zn,__({},c,{icon:JK}),null)};Bv.displayName="CheckCircleOutlined",Bv.inheritAttrs=!1;var qK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function N_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){eJ(i,p,c[p])})}return i}function eJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Vv=function(i,a){var c=N_({},i,a.attrs);return o.createVNode(Zn,N_({},c,{icon:qK}),null)};Vv.displayName="ExclamationCircleOutlined",Vv.inheritAttrs=!1;var tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function A_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){nJ(i,p,c[p])})}return i}function nJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Lv=function(i,a){var c=A_({},i,a.attrs);return o.createVNode(Zn,A_({},c,{icon:tJ}),null)};Lv.displayName="InfoCircleOutlined",Lv.inheritAttrs=!1;var oJ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function R_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){iJ(i,p,c[p])})}return i}function iJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var jv=function(i,a){var c=R_({},i,a.attrs);return o.createVNode(Zn,R_({},c,{icon:oJ}),null)};jv.displayName="CloseCircleOutlined",jv.inheritAttrs=!1;var rJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function M_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){sJ(i,p,c[p])})}return i}function sJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Is=function(i,a){var c=M_({},i,a.attrs);return o.createVNode(Zn,M_({},c,{icon:rJ}),null)};Is.displayName="CheckCircleFilled",Is.inheritAttrs=!1;var aJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function Q_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){lJ(i,p,c[p])})}return i}function lJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Ds=function(i,a){var c=Q_({},i,a.attrs);return o.createVNode(Zn,Q_({},c,{icon:aJ}),null)};Ds.displayName="ExclamationCircleFilled",Ds.inheritAttrs=!1;var cJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function I_(i){for(var a=1;a<arguments.length;a++){var c=arguments[a]!=null?Object(arguments[a]):{},f=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(c).filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable}))),f.forEach(function(p){uJ(i,p,c[p])})}return i}function uJ(i,a,c){return a in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,i}var Bs=function(i,a){var c=I_({},i,a.attrs);return o.createVNode(Zn,I_({},c,{icon:cJ}),null)};Bs.displayName="InfoCircleFilled",Bs.inheritAttrs=!1;const dJ=i=>{const{componentCls:a,colorPrimary:c}=i;return{[a]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${c})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${i.motionEaseOutCirc}`,`opacity 2s ${i.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},fJ=Ps("Wave",i=>[dJ(i)]);function hJ(i){const a=(i||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return a&&a[1]&&a[2]&&a[3]?!(a[1]===a[2]&&a[2]===a[3]):!0}function Fv(i){return i&&i!=="#fff"&&i!=="#ffffff"&&i!=="rgb(255, 255, 255)"&&i!=="rgba(255, 255, 255, 1)"&&hJ(i)&&!/rgba\((?:\d*, ){3}0\)/.test(i)&&i!=="transparent"}function pJ(i){const{borderTopColor:a,borderColor:c,backgroundColor:f}=getComputedStyle(i);return Fv(a)?a:Fv(c)?c:Fv(f)?f:null}function Zv(i){return Number.isNaN(i)?0:i}const mJ=o.defineComponent({props:{target:tn(),className:String},setup(i){const a=o.shallowRef(null),[c,f]=Rs(null),[p,O]=Rs([]),[y,w]=Rs(0),[S,A]=Rs(0),[T,P]=Rs(0),[N,V]=Rs(0),[j,z]=Rs(!1);function K(){const{target:U}=i,he=getComputedStyle(U);f(pJ(U));const ue=he.position==="static",{borderLeftWidth:ge,borderTopWidth:ye}=he;w(ue?U.offsetLeft:Zv(-parseFloat(ge))),A(ue?U.offsetTop:Zv(-parseFloat(ye))),P(U.offsetWidth),V(U.offsetHeight);const{borderTopLeftRadius:Xe,borderTopRightRadius:We,borderBottomLeftRadius:Me,borderBottomRightRadius:ie}=he;O([Xe,We,ie,Me].map(ce=>Zv(parseFloat(ce))))}let H,X,te;const J=()=>{clearTimeout(te),Bc.cancel(X),H?.disconnect()},se=()=>{var U;const he=(U=a.value)===null||U===void 0?void 0:U.parentElement;he&&(o.render(null,he),he.parentElement&&he.parentElement.removeChild(he))};o.onMounted(()=>{J(),te=setTimeout(()=>{se()},5e3);const{target:U}=i;U&&(X=Bc(()=>{K(),z(!0)}),typeof ResizeObserver<"u"&&(H=new ResizeObserver(K),H.observe(U)))}),o.onBeforeUnmount(()=>{J()});const le=U=>{U.propertyName==="opacity"&&se()};return()=>{if(!j.value)return null;const U={left:`${y.value}px`,top:`${S.value}px`,width:`${T.value}px`,height:`${N.value}px`,borderRadius:p.value.map(he=>`${he}px`).join(" ")};return c&&(U["--wave-color"]=c.value),o.createVNode(o.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[o.createVNode("div",{ref:a,class:i.className,style:U,onTransitionend:le},null)]})}}});function gJ(i,a){const c=document.createElement("div");c.style.position="absolute",c.style.left="0px",c.style.top="0px",i?.insertBefore(c,i?.firstChild),o.render(o.createVNode(mJ,{target:i,className:a},null),c)}function OJ(i,a,c){function f(){var p;const O=If(i);!((p=c?.value)===null||p===void 0)&&p.disabled||!O||gJ(O,a.value)}return f}const vJ=o.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(i,a){let{slots:c}=a;const f=o.getCurrentInstance(),{prefixCls:p,wave:O}=Si("wave",i),[,y]=fJ(p),w=OJ(f,o.computed(()=>Vt(p.value,y.value)),O);let S;const A=()=>{If(f).removeEventListener("click",S,!0)};return o.onMounted(()=>{o.watch(()=>i.disabled,()=>{A(),o.nextTick(()=>{const T=If(f);T?.removeEventListener("click",S,!0),!(!T||T.nodeType!==1||i.disabled)&&(S=P=>{P.target.tagName==="INPUT"||!tY(P.target)||!T.getAttribute||T.getAttribute("disabled")||T.disabled||T.className.includes("disabled")||T.className.includes("-leave")||w()},T.addEventListener("click",S,!0))})},{immediate:!0,flush:"post"})}),o.onBeforeUnmount(()=>{A()}),()=>{var T;return(T=c.default)===null||T===void 0?void 0:T.call(c)[0]}}});function D_(i){return i==="danger"?{danger:!0}:{type:i}}const yJ=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Lt.any,href:String,target:String,title:String,onClick:lE(),onMousedown:lE()}),B_=i=>{i&&(i.style.width="0px",i.style.opacity="0",i.style.transform="scale(0)")},V_=i=>{o.nextTick(()=>{i&&(i.style.width=`${i.scrollWidth}px`,i.style.opacity="1",i.style.transform="scale(1)")})},L_=i=>{i&&i.style&&(i.style.width=null,i.style.opacity=null,i.style.transform=null)},bJ=o.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(i){return()=>{const{existIcon:a,prefixCls:c,loading:f}=i;if(a)return o.createVNode("span",{class:`${c}-loading-icon`},[o.createVNode(Ms,null,null)]);const p=!!f;return o.createVNode(o.Transition,{name:`${c}-loading-icon-motion`,onBeforeEnter:B_,onEnter:V_,onAfterEnter:L_,onBeforeLeave:V_,onLeave:O=>{setTimeout(()=>{B_(O)})},onAfterLeave:L_},{default:()=>[p?o.createVNode("span",{class:`${c}-loading-icon`},[o.createVNode(Ms,null,null)]):null]})}}}),j_=(i,a)=>({[`> span, > ${i}`]:{"&:not(:last-child)":{[`&, & > ${i}`]:{"&:not(:disabled)":{borderInlineEndColor:a}}},"&:not(:first-child)":{[`&, & > ${i}`]:{"&:not(:disabled)":{borderInlineStartColor:a}}}}}),xJ=i=>{const{componentCls:a,fontSize:c,lineWidth:f,colorPrimaryHover:p,colorErrorHover:O}=i;return{[`${a}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${a}`]:{"&:not(:last-child)":{[`&, & > ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-f,[`&, & > ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[a]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${a}-icon-only`]:{fontSize:c}},j_(`${a}-primary`,p),j_(`${a}-danger`,O)]}};function wJ(i,a){return{[`&-item:not(${a}-last-item)`]:{marginBottom:-i.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function SJ(i,a){return{[`&-item:not(${a}-first-item):not(${a}-last-item)`]:{borderRadius:0},[`&-item${a}-first-item:not(${a}-last-item)`]:{[`&, &${i}-sm, &${i}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${a}-last-item:not(${a}-first-item)`]:{[`&, &${i}-sm, &${i}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function CJ(i){const a=`${i.componentCls}-compact-vertical`;return{[a]:q(q({},wJ(i,a)),SJ(i.componentCls,a))}}const kJ=i=>{const{componentCls:a,iconCls:c}=i;return{[a]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${i.lineWidth}px ${i.lineType} transparent`,cursor:"pointer",transition:`all ${i.motionDurationMid} ${i.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:i.lineHeight,color:i.colorText,"> span":{display:"inline-block"},[`> ${c} + span, > span + ${c}`]:{marginInlineStart:i.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":q({},sT(i)),[`&-icon-only${a}-compact-item`]:{flex:"none"},[`&-compact-item${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-i.lineWidth,insetInlineStart:-i.lineWidth,display:"inline-block",width:i.lineWidth,height:`calc(100% + ${i.lineWidth*2}px)`,backgroundColor:i.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-vertical-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-i.lineWidth,insetInlineStart:-i.lineWidth,display:"inline-block",width:`calc(100% + ${i.lineWidth*2}px)`,height:i.lineWidth,backgroundColor:i.colorPrimaryHover,content:'""'}}}}}}},ji=(i,a)=>({"&:not(:disabled)":{"&:hover":i,"&:active":a}}),PJ=i=>({minWidth:i.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),EJ=i=>({borderRadius:i.controlHeight,paddingInlineStart:i.controlHeight/2,paddingInlineEnd:i.controlHeight/2}),zv=i=>({cursor:"not-allowed",borderColor:i.colorBorder,color:i.colorTextDisabled,backgroundColor:i.colorBgContainerDisabled,boxShadow:"none"}),ch=(i,a,c,f,p,O,y)=>({[`&${i}-background-ghost`]:q(q({color:a||void 0,backgroundColor:"transparent",borderColor:c||void 0,boxShadow:"none"},ji(q({backgroundColor:"transparent"},O),q({backgroundColor:"transparent"},y))),{"&:disabled":{cursor:"not-allowed",color:f||void 0,borderColor:p||void 0}})}),Wv=i=>({"&:disabled":q({},zv(i))}),F_=i=>q({},Wv(i)),uh=i=>({"&:disabled":{cursor:"not-allowed",color:i.colorTextDisabled}}),Z_=i=>q(q(q(q(q({},F_(i)),{backgroundColor:i.colorBgContainer,borderColor:i.colorBorder,boxShadow:`0 ${i.controlOutlineWidth}px 0 ${i.controlTmpOutline}`}),ji({color:i.colorPrimaryHover,borderColor:i.colorPrimaryHover},{color:i.colorPrimaryActive,borderColor:i.colorPrimaryActive})),ch(i.componentCls,i.colorBgContainer,i.colorBgContainer,i.colorTextDisabled,i.colorBorder)),{[`&${i.componentCls}-dangerous`]:q(q(q({color:i.colorError,borderColor:i.colorError},ji({color:i.colorErrorHover,borderColor:i.colorErrorBorderHover},{color:i.colorErrorActive,borderColor:i.colorErrorActive})),ch(i.componentCls,i.colorError,i.colorError,i.colorTextDisabled,i.colorBorder)),Wv(i))}),TJ=i=>q(q(q(q(q({},F_(i)),{color:i.colorTextLightSolid,backgroundColor:i.colorPrimary,boxShadow:`0 ${i.controlOutlineWidth}px 0 ${i.controlOutline}`}),ji({color:i.colorTextLightSolid,backgroundColor:i.colorPrimaryHover},{color:i.colorTextLightSolid,backgroundColor:i.colorPrimaryActive})),ch(i.componentCls,i.colorPrimary,i.colorPrimary,i.colorTextDisabled,i.colorBorder,{color:i.colorPrimaryHover,borderColor:i.colorPrimaryHover},{color:i.colorPrimaryActive,borderColor:i.colorPrimaryActive})),{[`&${i.componentCls}-dangerous`]:q(q(q({backgroundColor:i.colorError,boxShadow:`0 ${i.controlOutlineWidth}px 0 ${i.colorErrorOutline}`},ji({backgroundColor:i.colorErrorHover},{backgroundColor:i.colorErrorActive})),ch(i.componentCls,i.colorError,i.colorError,i.colorTextDisabled,i.colorBorder,{color:i.colorErrorHover,borderColor:i.colorErrorHover},{color:i.colorErrorActive,borderColor:i.colorErrorActive})),Wv(i))}),_J=i=>q(q({},Z_(i)),{borderStyle:"dashed"}),NJ=i=>q(q(q({color:i.colorLink},ji({color:i.colorLinkHover},{color:i.colorLinkActive})),uh(i)),{[`&${i.componentCls}-dangerous`]:q(q({color:i.colorError},ji({color:i.colorErrorHover},{color:i.colorErrorActive})),uh(i))}),AJ=i=>q(q(q({},ji({color:i.colorText,backgroundColor:i.colorBgTextHover},{color:i.colorText,backgroundColor:i.colorBgTextActive})),uh(i)),{[`&${i.componentCls}-dangerous`]:q(q({color:i.colorError},uh(i)),ji({color:i.colorErrorHover,backgroundColor:i.colorErrorBg},{color:i.colorErrorHover,backgroundColor:i.colorErrorBg}))}),RJ=i=>q(q({},zv(i)),{[`&${i.componentCls}:hover`]:q({},zv(i))}),MJ=i=>{const{componentCls:a}=i;return{[`${a}-default`]:Z_(i),[`${a}-primary`]:TJ(i),[`${a}-dashed`]:_J(i),[`${a}-link`]:NJ(i),[`${a}-text`]:AJ(i),[`${a}-disabled`]:RJ(i)}},Uv=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:c,iconCls:f,controlHeight:p,fontSize:O,lineHeight:y,lineWidth:w,borderRadius:S,buttonPaddingHorizontal:A}=i,T=Math.max(0,(p-O*y)/2-w),P=A-w,N=`${c}-icon-only`;return[{[`${c}${a}`]:{fontSize:O,height:p,padding:`${T}px ${P}px`,borderRadius:S,[`&${N}`]:{width:p,paddingInlineStart:0,paddingInlineEnd:0,[`&${c}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${c}-loading`]:{opacity:i.opacityLoading,cursor:"default"},[`${c}-loading-icon`]:{transition:`width ${i.motionDurationSlow} ${i.motionEaseInOut}, opacity ${i.motionDurationSlow} ${i.motionEaseInOut}`},[`&:not(${N}) ${c}-loading-icon > ${f}`]:{marginInlineEnd:i.marginXS}}},{[`${c}${c}-circle${a}`]:PJ(i)},{[`${c}${c}-round${a}`]:EJ(i)}]},QJ=i=>Uv(i),IJ=i=>{const a=xr(i,{controlHeight:i.controlHeightSM,padding:i.paddingXS,buttonPaddingHorizontal:8,borderRadius:i.borderRadiusSM});return Uv(a,`${i.componentCls}-sm`)},DJ=i=>{const a=xr(i,{controlHeight:i.controlHeightLG,fontSize:i.fontSizeLG,borderRadius:i.borderRadiusLG});return Uv(a,`${i.componentCls}-lg`)},BJ=i=>{const{componentCls:a}=i;return{[a]:{[`&${a}-block`]:{width:"100%"}}}},VJ=Ps("Button",i=>{const{controlTmpOutline:a,paddingContentHorizontal:c}=i,f=xr(i,{colorOutlineDefault:a,buttonPaddingHorizontal:c});return[kJ(f),IJ(f),QJ(f),DJ(f),BJ(f),MJ(f),xJ(f),KK(i,{focus:!1}),CJ(i)]}),LJ=()=>({prefixCls:String,size:{type:String}}),z_=C_(),Hv=o.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:LJ(),setup(i,a){let{slots:c}=a;const{prefixCls:f,direction:p}=Si("btn-group",i),[,,O]=Wc();z_.useProvide(o.reactive({size:o.computed(()=>i.size)}));const y=o.computed(()=>{const{size:w}=i;let S="";switch(w){case"large":S="lg";break;case"small":S="sm";break;case"middle":case void 0:break;default:NT(!w,"Button.Group","Invalid prop `size`.")}return{[`${f.value}`]:!0,[`${f.value}-${S}`]:S,[`${f.value}-rtl`]:p.value==="rtl",[O.value]:!0}});return()=>{var w;return o.createVNode("div",{class:y.value},[Dc((w=c.default)===null||w===void 0?void 0:w.call(c))])}}}),W_=/^[\u4e00-\u9fa5]{2}$/,U_=W_.test.bind(W_);function dh(i){return i==="text"||i==="link"}const Vs=o.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ic(yJ(),{type:"default"}),slots:Object,setup(i,a){let{slots:c,attrs:f,emit:p,expose:O}=a;const{prefixCls:y,autoInsertSpaceInButton:w,direction:S,size:A}=Si("btn",i),[T,P]=VJ(y),N=z_.useInject(),V=YO(),j=o.computed(()=>{var We;return(We=i.disabled)!==null&&We!==void 0?We:V.value}),z=o.shallowRef(null),K=o.shallowRef(void 0);let H=!1;const X=o.shallowRef(!1),te=o.shallowRef(!1),J=o.computed(()=>w.value!==!1),{compactSize:se,compactItemClassnames:le}=TK(y,S),U=o.computed(()=>typeof i.loading=="object"&&i.loading.delay?i.loading.delay||!0:!!i.loading);o.watch(U,We=>{clearTimeout(K.value),typeof U.value=="number"?K.value=setTimeout(()=>{X.value=We},U.value):X.value=We},{immediate:!0});const he=o.computed(()=>{const{type:We,shape:Me="default",ghost:ie,block:ce,danger:Ne}=i,xe=y.value,ze={large:"lg",small:"sm",middle:void 0},Ye=se.value||N?.size||A.value,ot=Ye&&ze[Ye]||"";return[le.value,{[P.value]:!0,[`${xe}`]:!0,[`${xe}-${Me}`]:Me!=="default"&&Me,[`${xe}-${We}`]:We,[`${xe}-${ot}`]:ot,[`${xe}-loading`]:X.value,[`${xe}-background-ghost`]:ie&&!dh(We),[`${xe}-two-chinese-chars`]:te.value&&J.value,[`${xe}-block`]:ce,[`${xe}-dangerous`]:!!Ne,[`${xe}-rtl`]:S.value==="rtl"}]}),ue=()=>{const We=z.value;if(!We||w.value===!1)return;const Me=We.textContent;H&&U_(Me)?te.value||(te.value=!0):te.value&&(te.value=!1)},ge=We=>{if(X.value||j.value){We.preventDefault();return}p("click",We)},ye=We=>{p("mousedown",We)},Xe=(We,Me)=>{const ie=Me?" ":"";if(We.type===o.Text){let ce=We.children.trim();return U_(ce)&&(ce=ce.split("").join(ie)),o.createVNode("span",null,[ce])}return We};return o.watchEffect(()=>{NT(!(i.ghost&&dh(i.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),o.onMounted(ue),o.onUpdated(ue),o.onBeforeUnmount(()=>{K.value&&clearTimeout(K.value)}),O({focus:()=>{var We;(We=z.value)===null||We===void 0||We.focus()},blur:()=>{var We;(We=z.value)===null||We===void 0||We.blur()}}),()=>{var We,Me;const{icon:ie=(We=c.icon)===null||We===void 0?void 0:We.call(c)}=i,ce=Dc((Me=c.default)===null||Me===void 0?void 0:Me.call(c));H=ce.length===1&&!ie&&!dh(i.type);const{type:Ne,htmlType:xe,href:ze,title:Ye,target:ot}=i,ut=X.value?"loading":ie,xt=q(q({},f),{title:Ye,disabled:j.value,class:[he.value,f.class,{[`${y.value}-icon-only`]:ce.length===0&&!!ut}],onClick:ge,onMousedown:ye});j.value||delete xt.disabled;const wt=ie&&!X.value?ie:o.createVNode(bJ,{existIcon:!!ie,prefixCls:y.value,loading:!!X.value},null),Tt=ce.map(Ht=>Xe(Ht,H&&J.value));if(ze!==void 0)return T(o.createVNode("a",Ke(Ke({},xt),{},{href:ze,target:ot,ref:z}),[wt,Tt]));let mn=o.createVNode("button",Ke(Ke({},xt),{},{ref:z,type:xe}),[wt,Tt]);if(!dh(Ne)){const Ht=function(){return mn}();mn=o.createVNode(vJ,{ref:"wave",disabled:!!X.value},{default:()=>[Ht]})}return T(mn)}}});Vs.Group=Hv,Vs.install=function(i){return i.component(Vs.name,Vs),i.component(Hv.name,Hv),i};var fh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ii<"u"?ii:typeof self<"u"?self:{};function Xv(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var H_={exports:{}};(function(i,a){(function(c,f){i.exports=f()})(fh,function(){var c=1e3,f=6e4,p=36e5,O="millisecond",y="second",w="minute",S="hour",A="day",T="week",P="month",N="quarter",V="year",j="date",z="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Me){var ie=["th","st","nd","rd"],ce=Me%100;return"["+Me+(ie[(ce-20)%10]||ie[ce]||ie[0])+"]"}},te=function(Me,ie,ce){var Ne=String(Me);return!Ne||Ne.length>=ie?Me:""+Array(ie+1-Ne.length).join(ce)+Me},J={s:te,z:function(Me){var ie=-Me.utcOffset(),ce=Math.abs(ie),Ne=Math.floor(ce/60),xe=ce%60;return(ie<=0?"+":"-")+te(Ne,2,"0")+":"+te(xe,2,"0")},m:function Me(ie,ce){if(ie.date()<ce.date())return-Me(ce,ie);var Ne=12*(ce.year()-ie.year())+(ce.month()-ie.month()),xe=ie.clone().add(Ne,P),ze=ce-xe<0,Ye=ie.clone().add(Ne+(ze?-1:1),P);return+(-(Ne+(ce-xe)/(ze?xe-Ye:Ye-xe))||0)},a:function(Me){return Me<0?Math.ceil(Me)||0:Math.floor(Me)},p:function(Me){return{M:P,y:V,w:T,d:A,D:j,h:S,m:w,s:y,ms:O,Q:N}[Me]||String(Me||"").toLowerCase().replace(/s$/,"")},u:function(Me){return Me===void 0}},se="en",le={};le[se]=X;var U="$isDayjsObject",he=function(Me){return Me instanceof Xe||!(!Me||!Me[U])},ue=function Me(ie,ce,Ne){var xe;if(!ie)return se;if(typeof ie=="string"){var ze=ie.toLowerCase();le[ze]&&(xe=ze),ce&&(le[ze]=ce,xe=ze);var Ye=ie.split("-");if(!xe&&Ye.length>1)return Me(Ye[0])}else{var ot=ie.name;le[ot]=ie,xe=ot}return!Ne&&xe&&(se=xe),xe||!Ne&&se},ge=function(Me,ie){if(he(Me))return Me.clone();var ce=typeof ie=="object"?ie:{};return ce.date=Me,ce.args=arguments,new Xe(ce)},ye=J;ye.l=ue,ye.i=he,ye.w=function(Me,ie){return ge(Me,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var Xe=function(){function Me(ce){this.$L=ue(ce.locale,null,!0),this.parse(ce),this.$x=this.$x||ce.x||{},this[U]=!0}var ie=Me.prototype;return ie.parse=function(ce){this.$d=function(Ne){var xe=Ne.date,ze=Ne.utc;if(xe===null)return new Date(NaN);if(ye.u(xe))return new Date;if(xe instanceof Date)return new Date(xe);if(typeof xe=="string"&&!/Z$/i.test(xe)){var Ye=xe.match(K);if(Ye){var ot=Ye[2]-1||0,ut=(Ye[7]||"0").substring(0,3);return ze?new Date(Date.UTC(Ye[1],ot,Ye[3]||1,Ye[4]||0,Ye[5]||0,Ye[6]||0,ut)):new Date(Ye[1],ot,Ye[3]||1,Ye[4]||0,Ye[5]||0,Ye[6]||0,ut)}}return new Date(xe)}(ce),this.init()},ie.init=function(){var ce=this.$d;this.$y=ce.getFullYear(),this.$M=ce.getMonth(),this.$D=ce.getDate(),this.$W=ce.getDay(),this.$H=ce.getHours(),this.$m=ce.getMinutes(),this.$s=ce.getSeconds(),this.$ms=ce.getMilliseconds()},ie.$utils=function(){return ye},ie.isValid=function(){return this.$d.toString()!==z},ie.isSame=function(ce,Ne){var xe=ge(ce);return this.startOf(Ne)<=xe&&xe<=this.endOf(Ne)},ie.isAfter=function(ce,Ne){return ge(ce)<this.startOf(Ne)},ie.isBefore=function(ce,Ne){return this.endOf(Ne)<ge(ce)},ie.$g=function(ce,Ne,xe){return ye.u(ce)?this[Ne]:this.set(xe,ce)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(ce,Ne){var xe=this,ze=!!ye.u(Ne)||Ne,Ye=ye.p(ce),ot=function(Xt,on){var ao=ye.w(xe.$u?Date.UTC(xe.$y,on,Xt):new Date(xe.$y,on,Xt),xe);return ze?ao:ao.endOf(A)},ut=function(Xt,on){return ye.w(xe.toDate()[Xt].apply(xe.toDate("s"),(ze?[0,0,0,0]:[23,59,59,999]).slice(on)),xe)},xt=this.$W,wt=this.$M,Tt=this.$D,mn="set"+(this.$u?"UTC":"");switch(Ye){case V:return ze?ot(1,0):ot(31,11);case P:return ze?ot(1,wt):ot(0,wt+1);case T:var Ht=this.$locale().weekStart||0,so=(xt<Ht?xt+7:xt)-Ht;return ot(ze?Tt-so:Tt+(6-so),wt);case A:case j:return ut(mn+"Hours",0);case S:return ut(mn+"Minutes",1);case w:return ut(mn+"Seconds",2);case y:return ut(mn+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(ce){return this.startOf(ce,!1)},ie.$set=function(ce,Ne){var xe,ze=ye.p(ce),Ye="set"+(this.$u?"UTC":""),ot=(xe={},xe[A]=Ye+"Date",xe[j]=Ye+"Date",xe[P]=Ye+"Month",xe[V]=Ye+"FullYear",xe[S]=Ye+"Hours",xe[w]=Ye+"Minutes",xe[y]=Ye+"Seconds",xe[O]=Ye+"Milliseconds",xe)[ze],ut=ze===A?this.$D+(Ne-this.$W):Ne;if(ze===P||ze===V){var xt=this.clone().set(j,1);xt.$d[ot](ut),xt.init(),this.$d=xt.set(j,Math.min(this.$D,xt.daysInMonth())).$d}else ot&&this.$d[ot](ut);return this.init(),this},ie.set=function(ce,Ne){return this.clone().$set(ce,Ne)},ie.get=function(ce){return this[ye.p(ce)]()},ie.add=function(ce,Ne){var xe,ze=this;ce=Number(ce);var Ye=ye.p(Ne),ot=function(wt){var Tt=ge(ze);return ye.w(Tt.date(Tt.date()+Math.round(wt*ce)),ze)};if(Ye===P)return this.set(P,this.$M+ce);if(Ye===V)return this.set(V,this.$y+ce);if(Ye===A)return ot(1);if(Ye===T)return ot(7);var ut=(xe={},xe[w]=f,xe[S]=p,xe[y]=c,xe)[Ye]||1,xt=this.$d.getTime()+ce*ut;return ye.w(xt,this)},ie.subtract=function(ce,Ne){return this.add(-1*ce,Ne)},ie.format=function(ce){var Ne=this,xe=this.$locale();if(!this.isValid())return xe.invalidDate||z;var ze=ce||"YYYY-MM-DDTHH:mm:ssZ",Ye=ye.z(this),ot=this.$H,ut=this.$m,xt=this.$M,wt=xe.weekdays,Tt=xe.months,mn=xe.meridiem,Ht=function(on,ao,ei,ko){return on&&(on[ao]||on(Ne,ze))||ei[ao].slice(0,ko)},so=function(on){return ye.s(ot%12||12,on,"0")},Xt=mn||function(on,ao,ei){var ko=on<12?"AM":"PM";return ei?ko.toLowerCase():ko};return ze.replace(H,function(on,ao){return ao||function(ei){switch(ei){case"YY":return String(Ne.$y).slice(-2);case"YYYY":return ye.s(Ne.$y,4,"0");case"M":return xt+1;case"MM":return ye.s(xt+1,2,"0");case"MMM":return Ht(xe.monthsShort,xt,Tt,3);case"MMMM":return Ht(Tt,xt);case"D":return Ne.$D;case"DD":return ye.s(Ne.$D,2,"0");case"d":return String(Ne.$W);case"dd":return Ht(xe.weekdaysMin,Ne.$W,wt,2);case"ddd":return Ht(xe.weekdaysShort,Ne.$W,wt,3);case"dddd":return wt[Ne.$W];case"H":return String(ot);case"HH":return ye.s(ot,2,"0");case"h":return so(1);case"hh":return so(2);case"a":return Xt(ot,ut,!0);case"A":return Xt(ot,ut,!1);case"m":return String(ut);case"mm":return ye.s(ut,2,"0");case"s":return String(Ne.$s);case"ss":return ye.s(Ne.$s,2,"0");case"SSS":return ye.s(Ne.$ms,3,"0");case"Z":return Ye}return null}(on)||Ye.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(ce,Ne,xe){var ze,Ye=this,ot=ye.p(Ne),ut=ge(ce),xt=(ut.utcOffset()-this.utcOffset())*f,wt=this-ut,Tt=function(){return ye.m(Ye,ut)};switch(ot){case V:ze=Tt()/12;break;case P:ze=Tt();break;case N:ze=Tt()/3;break;case T:ze=(wt-xt)/6048e5;break;case A:ze=(wt-xt)/864e5;break;case S:ze=wt/p;break;case w:ze=wt/f;break;case y:ze=wt/c;break;default:ze=wt}return xe?ze:ye.a(ze)},ie.daysInMonth=function(){return this.endOf(P).$D},ie.$locale=function(){return le[this.$L]},ie.locale=function(ce,Ne){if(!ce)return this.$L;var xe=this.clone(),ze=ue(ce,Ne,!0);return ze&&(xe.$L=ze),xe},ie.clone=function(){return ye.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},Me}(),We=Xe.prototype;return ge.prototype=We,[["$ms",O],["$s",y],["$m",w],["$H",S],["$W",A],["$M",P],["$y",V],["$D",j]].forEach(function(Me){We[Me[1]]=function(ie){return this.$g(ie,Me[0],Me[1])}}),ge.extend=function(Me,ie){return Me.$i||(Me(ie,Xe,ge),Me.$i=!0),ge},ge.locale=ue,ge.isDayjs=he,ge.unix=function(Me){return ge(1e3*Me)},ge.en=le[se],ge.Ls=le,ge.p={},ge})})(H_);var X_=H_.exports;const jJ=Xv(X_),FJ=()=>Xo()&&window.document.documentElement;let hh=q({},vr.Modal);function ZJ(i){i?hh=q(q({},hh),i):hh=q({},vr.Modal)}function zJ(){return hh}const Yv="internalMark",ph=o.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(i,a){let{slots:c}=a;Ya(i.ANT_MARK__===Yv,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const f=o.reactive({antLocale:q(q({},i.locale),{exist:!0}),ANT_MARK__:Yv});return o.provide("localeData",f),o.watch(()=>i.locale,p=>{ZJ(p&&p.Modal),f.antLocale=q(q({},p),{exist:!0})},{immediate:!0}),()=>{var p;return(p=c.default)===null||p===void 0?void 0:p.call(c)}}});ph.install=function(i){return i.component(ph.name,ph),i};const WJ=WO(ph),mh=o.defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(i,a){let{attrs:c,slots:f}=a,p,O=!1;const y=o.computed(()=>i.duration===void 0?4.5:i.duration),w=()=>{y.value&&!O&&(p=setTimeout(()=>{A()},y.value*1e3))},S=()=>{p&&(clearTimeout(p),p=null)},A=P=>{P&&P.stopPropagation(),S();const{onClose:N,noticeKey:V}=i;N&&N(V)},T=()=>{S(),w()};return o.onMounted(()=>{w()}),o.onUnmounted(()=>{O=!0,S()}),o.watch([y,()=>i.updateMark,()=>i.visible],(P,N)=>{let[V,j,z]=P,[K,H,X]=N;(V!==K||j!==H||z!==X&&X)&&T()},{flush:"post"}),()=>{var P,N;const{prefixCls:V,closable:j,closeIcon:z=(P=f.closeIcon)===null||P===void 0?void 0:P.call(f),onClick:K,holder:H}=i,{class:X,style:te}=c,J=`${V}-notice`,se=Object.keys(c).reduce((U,he)=>((he.startsWith("data-")||he.startsWith("aria-")||he==="role")&&(U[he]=c[he]),U),{}),le=o.createVNode("div",Ke({class:Vt(J,X,{[`${J}-closable`]:j}),style:te,onMouseenter:S,onMouseleave:w,onClick:K},se),[o.createVNode("div",{class:`${J}-content`},[(N=f.default)===null||N===void 0?void 0:N.call(f)]),j?o.createVNode("a",{tabindex:0,onClick:A,class:`${J}-close`},[z||o.createVNode("span",{class:`${J}-close-x`},null)]):null]);return H?o.createVNode(o.Teleport,{to:H},{default:()=>le}):le}}});var UJ=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};let Y_=0;const HJ=Date.now();function G_(){const i=Y_;return Y_+=1,`rcNotification_${HJ}_${i}`}const gh=o.defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(i,a){let{attrs:c,expose:f,slots:p}=a;const O=new Map,y=o.ref([]),w=o.computed(()=>{const{prefixCls:T,animation:P="fade"}=i;let N=i.transitionName;return!N&&P&&(N=`${T}-${P}`),qT(N)}),S=(T,P)=>{const N=T.key||G_(),V=q(q({},T),{key:N}),{maxCount:j}=i,z=y.value.map(H=>H.notice.key).indexOf(N),K=y.value.concat();z!==-1?K.splice(z,1,{notice:V,holderCallback:P}):(j&&y.value.length>=j&&(V.key=K[0].notice.key,V.updateMark=G_(),V.userPassKey=N,K.shift()),K.push({notice:V,holderCallback:P})),y.value=K},A=T=>{y.value=y.value.filter(P=>{let{notice:{key:N,userPassKey:V}}=P;return(V||N)!==T})};return f({add:S,remove:A,notices:y}),()=>{var T;const{prefixCls:P,closeIcon:N=(T=p.closeIcon)===null||T===void 0?void 0:T.call(p,{prefixCls:P})}=i,V=y.value.map((z,K)=>{let{notice:H,holderCallback:X}=z;const te=K===y.value.length-1?H.updateMark:void 0,{key:J,userPassKey:se}=H,{content:le}=H,U=q(q(q({prefixCls:P,closeIcon:typeof N=="function"?N({prefixCls:P}):N},H),H.props),{key:J,noticeKey:se||J,updateMark:te,onClose:he=>{var ue;A(he),(ue=H.onClose)===null||ue===void 0||ue.call(H)},onClick:H.onClick});return X?o.createVNode("div",{key:J,class:`${P}-hook-holder`,ref:he=>{typeof J>"u"||(he?(O.set(J,he),X(he,U)):O.delete(J))}},null):o.createVNode(mh,Ke(Ke({},U),{},{class:Vt(U.class,i.hashId)}),{default:()=>[typeof le=="function"?le({prefixCls:P}):le]})}),j={[P]:1,[c.class]:!!c.class,[i.hashId]:!0};return o.createVNode("div",{class:j,style:c.style||{top:"65px",left:"50%"}},[o.createVNode(o.TransitionGroup,Ke({tag:"div"},w.value),{default:()=>[V]})])}}});gh.newInstance=function(i,a){const c=i||{},{name:f="notification",getContainer:p,appContext:O,prefixCls:y,rootPrefixCls:w,transitionName:S,hasTransitionName:A,useStyle:T}=c,P=UJ(c,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),N=document.createElement("div");p?p().appendChild(N):document.body.appendChild(N);const V=o.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(z,K){let{attrs:H}=K;const X=o.shallowRef(),te=o.computed(()=>Nn.getPrefixCls(f,y)),[,J]=T(te);return o.onMounted(()=>{a({notice(se){var le;(le=X.value)===null||le===void 0||le.add(se)},removeNotice(se){var le;(le=X.value)===null||le===void 0||le.remove(se)},destroy(){o.render(null,N),N.parentNode&&N.parentNode.removeChild(N)},component:X})}),()=>{const se=Nn,le=se.getRootPrefixCls(w,te.value),U=A?S:`${te.value}-${S}`;return o.createVNode(SN,Ke(Ke({},se),{},{prefixCls:le}),{default:()=>[o.createVNode(gh,Ke(Ke({ref:X},H),{},{prefixCls:te.value,transitionName:U,hashId:J.value}),null)]})}}}),j=o.createVNode(V,P);j.appContext=O||j.appContext,o.render(j,N)};let K_=0;const XJ=Date.now();function J_(){const i=K_;return K_+=1,`rcNotification_${XJ}_${i}`}const YJ=o.defineComponent({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(i,a){let{attrs:c,slots:f}=a;const p=new Map,O=o.computed(()=>i.notices),y=o.computed(()=>{let T=i.transitionName;if(!T&&i.animation)switch(typeof i.animation){case"string":T=i.animation;break;case"function":T=i.animation().name;break;case"object":T=i.animation.name;break;default:T=`${i.prefixCls}-fade`;break}return qT(T)}),w=T=>i.remove(T),S=o.ref({});o.watch(O,()=>{const T={};Object.keys(S.value).forEach(P=>{T[P]=[]}),i.notices.forEach(P=>{const{placement:N="topRight"}=P.notice;N&&(T[N]=T[N]||[],T[N].push(P))}),S.value=T});const A=o.computed(()=>Object.keys(S.value));return()=>{var T;const{prefixCls:P,closeIcon:N=(T=f.closeIcon)===null||T===void 0?void 0:T.call(f,{prefixCls:P})}=i,V=A.value.map(j=>{var z,K;const H=S.value[j],X=(z=i.getClassName)===null||z===void 0?void 0:z.call(i,j),te=(K=i.getStyles)===null||K===void 0?void 0:K.call(i,j),J=H.map((U,he)=>{let{notice:ue,holderCallback:ge}=U;const ye=he===O.value.length-1?ue.updateMark:void 0,{key:Xe,userPassKey:We}=ue,{content:Me}=ue,ie=q(q(q({prefixCls:P,closeIcon:typeof N=="function"?N({prefixCls:P}):N},ue),ue.props),{key:Xe,noticeKey:We||Xe,updateMark:ye,onClose:ce=>{var Ne;w(ce),(Ne=ue.onClose)===null||Ne===void 0||Ne.call(ue)},onClick:ue.onClick});return ge?o.createVNode("div",{key:Xe,class:`${P}-hook-holder`,ref:ce=>{typeof Xe>"u"||(ce?(p.set(Xe,ce),ge(ce,ie)):p.delete(Xe))}},null):o.createVNode(mh,Ke(Ke({},ie),{},{class:Vt(ie.class,i.hashId)}),{default:()=>[typeof Me=="function"?Me({prefixCls:P}):Me]})}),se={[P]:1,[`${P}-${j}`]:1,[c.class]:!!c.class,[i.hashId]:!0,[X]:!!X};function le(){var U;H.length>0||(Reflect.deleteProperty(S.value,j),(U=i.onAllRemoved)===null||U===void 0||U.call(i))}return o.createVNode("div",{key:j,class:se,style:c.style||te||{top:"65px",left:"50%"}},[o.createVNode(o.TransitionGroup,Ke(Ke({tag:"div"},y.value),{},{onAfterLeave:le}),{default:()=>[J]})])});return o.createVNode(n_,{getContainer:i.getContainer},{default:()=>[V]})}}});var GJ=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};const KJ=()=>document.body;let $_=0;function JJ(){const i={};for(var a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return c.forEach(p=>{p&&Object.keys(p).forEach(O=>{const y=p[O];y!==void 0&&(i[O]=y)})}),i}function q_(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:a=KJ,motion:c,prefixCls:f,maxCount:p,getClassName:O,getStyles:y,onAllRemoved:w}=i,S=GJ(i,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),A=o.shallowRef([]),T=o.shallowRef(),P=(H,X)=>{const te=H.key||J_(),J=q(q({},H),{key:te}),se=A.value.map(U=>U.notice.key).indexOf(te),le=A.value.concat();se!==-1?le.splice(se,1,{notice:J,holderCallback:X}):(p&&A.value.length>=p&&(J.key=le[0].notice.key,J.updateMark=J_(),J.userPassKey=te,le.shift()),le.push({notice:J,holderCallback:X})),A.value=le},N=H=>{A.value=A.value.filter(X=>{let{notice:{key:te,userPassKey:J}}=X;return(J||te)!==H})},V=()=>{A.value=[]},j=()=>o.createVNode(YJ,{ref:T,prefixCls:f,maxCount:p,notices:A.value,remove:N,getClassName:O,getStyles:y,animation:c,hashId:i.hashId,onAllRemoved:w,getContainer:a},null),z=o.shallowRef([]),K={open:H=>{const X=JJ(S,H);(X.key===null||X.key===void 0)&&(X.key=`vc-notification-${$_}`,$_+=1),z.value=[...z.value,{type:"open",config:X}]},close:H=>{z.value=[...z.value,{type:"close",key:H}]},destroy:()=>{z.value=[...z.value,{type:"destroy"}]}};return o.watch(z,()=>{z.value.length&&(z.value.forEach(H=>{switch(H.type){case"open":P(H.config);break;case"close":N(H.key);break;case"destroy":V();break}}),z.value=[])}),[K,j]}const $J=i=>{const{componentCls:a,iconCls:c,boxShadowSecondary:f,colorBgElevated:p,colorSuccess:O,colorError:y,colorWarning:w,colorInfo:S,fontSizeLG:A,motionEaseInOutCirc:T,motionDurationSlow:P,marginXS:N,paddingXS:V,borderRadiusLG:j,zIndexPopup:z,messageNoticeContentPadding:K}=i,H=new Ut("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:V,transform:"translateY(0)",opacity:1}}),X=new Ut("MessageMoveOut",{"0%":{maxHeight:i.height,padding:V,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[a]:q(q({},yv(i)),{position:"fixed",top:N,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:z,[`${a}-move-up`]:{animationFillMode:"forwards"},[`
|
|
138
|
+
${a}-move-up-appear,
|
|
139
|
+
${a}-move-up-enter
|
|
140
|
+
`]:{animationName:H,animationDuration:P,animationPlayState:"paused",animationTimingFunction:T},[`
|
|
141
|
+
${a}-move-up-appear${a}-move-up-appear-active,
|
|
142
|
+
${a}-move-up-enter${a}-move-up-enter-active
|
|
143
|
+
`]:{animationPlayState:"running"},[`${a}-move-up-leave`]:{animationName:X,animationDuration:P,animationPlayState:"paused",animationTimingFunction:T},[`${a}-move-up-leave${a}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${a}-notice`]:{padding:V,textAlign:"center",[c]:{verticalAlign:"text-bottom",marginInlineEnd:N,fontSize:A},[`${a}-notice-content`]:{display:"inline-block",padding:K,background:p,borderRadius:j,boxShadow:f,pointerEvents:"all"},[`${a}-success ${c}`]:{color:O},[`${a}-error ${c}`]:{color:y},[`${a}-warning ${c}`]:{color:w},[`
|
|
144
|
+
${a}-info ${c},
|
|
145
|
+
${a}-loading ${c}`]:{color:S}}},{[`${a}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},Gv=Ps("Message",i=>{const a=xr(i,{messageNoticeContentPadding:`${(i.controlHeightLG-i.fontSize*i.lineHeight)/2}px ${i.paddingSM}px`});return[$J(a)]},i=>({height:150,zIndexPopup:i.zIndexPopupBase+10})),qJ={info:o.createVNode(Bs,null,null),success:o.createVNode(Is,null,null),error:o.createVNode(Qs,null,null),warning:o.createVNode(Ds,null,null),loading:o.createVNode(Ms,null,null)},eN=o.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(i,a){let{slots:c}=a;return()=>{var f;return o.createVNode("div",{class:Vt(`${i.prefixCls}-custom-content`,`${i.prefixCls}-${i.type}`)},[i.icon||qJ[i.type],o.createVNode("span",null,[(f=c.default)===null||f===void 0?void 0:f.call(c)])])}}});o.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(i,a){let{slots:c,attrs:f}=a;var p;const{getPrefixCls:O}=Bf(),y=o.computed(()=>i.prefixCls||O("message")),[,w]=Gv(y);return o.createVNode(mh,Ke(Ke({},f),{},{prefixCls:y.value,class:Vt(w.value,`${y.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[o.createVNode(eN,{prefixCls:y.value,type:i.type,icon:i.icon},{default:()=>[(p=c.default)===null||p===void 0?void 0:p.call(c)]})]})}});var e$=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};const t$=8,n$=3,o$=o.defineComponent({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(i,a){let{expose:c}=a;var f,p;const{getPrefixCls:O,getPopupContainer:y}=Si("message",i),w=o.computed(()=>O("message",i.prefixCls)),[,S]=Gv(w),A=()=>{var z;const K=(z=i.top)!==null&&z!==void 0?z:t$;return{left:"50%",transform:"translateX(-50%)",top:typeof K=="number"?`${K}px`:K}},T=()=>Vt(S.value,i.rtl?`${w.value}-rtl`:""),P=()=>{var z;return qX({prefixCls:w.value,animation:(z=i.animation)!==null&&z!==void 0?z:"move-up",transitionName:i.transitionName})},N=o.createVNode("span",{class:`${w.value}-close-x`},[o.createVNode(tl,{class:`${w.value}-close-icon`},null)]),[V,j]=q_({getStyles:A,prefixCls:w.value,getClassName:T,motion:P,closable:!1,closeIcon:N,duration:(f=i.duration)!==null&&f!==void 0?f:n$,getContainer:(p=i.staticGetContainer)!==null&&p!==void 0?p:y.value,maxCount:i.maxCount,onAllRemoved:i.onAllRemoved});return c(q(q({},V),{prefixCls:w,hashId:S})),j}});let tN=0;function i$(i){const a=o.shallowRef(null),c=Symbol("messageHolderKey"),f=y=>{var w;(w=a.value)===null||w===void 0||w.close(y)},p=y=>{if(!a.value){const te=()=>{};return te.then=()=>{},te}const{open:w,prefixCls:S,hashId:A}=a.value,T=`${S}-notice`,{content:P,icon:N,type:V,key:j,class:z,onClose:K}=y,H=e$(y,["content","icon","type","key","class","onClose"]);let X=j;return X==null&&(tN+=1,X=`antd-message-${tN}`),_U(te=>(w(q(q({},H),{key:X,content:()=>o.createVNode(eN,{prefixCls:S,type:V,icon:typeof N=="function"?N():N},{default:()=>[typeof P=="function"?P():P]}),placement:"top",class:Vt(V&&`${T}-${V}`,A,z),onClose:()=>{K?.(),te()}})),()=>{f(X)}))},O={open:p,destroy:y=>{var w;y!==void 0?f(y):(w=a.value)===null||w===void 0||w.destroy()}};return["info","success","warning","error","loading"].forEach(y=>{const w=(S,A,T)=>{let P;S&&typeof S=="object"&&"content"in S?P=S:P={content:S};let N,V;typeof A=="function"?V=A:(N=A,V=T);const j=q(q({onClose:V,duration:N},P),{type:y});return p(j)};O[y]=w}),[O,()=>o.createVNode(o$,Ke(Ke({key:c},i),{},{ref:a}),null)]}function r$(i){return i$(i)}let nN=3,oN,zn,s$=1,iN="",rN="move-up",sN=!1,aN=()=>document.body,lN,cN=!1;function a$(){return s$++}function l$(i){i.top!==void 0&&(oN=i.top,zn=null),i.duration!==void 0&&(nN=i.duration),i.prefixCls!==void 0&&(iN=i.prefixCls),i.getContainer!==void 0&&(aN=i.getContainer,zn=null),i.transitionName!==void 0&&(rN=i.transitionName,zn=null,sN=!0),i.maxCount!==void 0&&(lN=i.maxCount,zn=null),i.rtl!==void 0&&(cN=i.rtl)}function c$(i,a){if(zn){a(zn);return}gh.newInstance({appContext:i.appContext,prefixCls:i.prefixCls||iN,rootPrefixCls:i.rootPrefixCls,transitionName:rN,hasTransitionName:sN,style:{top:oN},getContainer:aN||i.getPopupContainer,maxCount:lN,name:"message",useStyle:Gv},c=>{if(zn){a(zn);return}zn=c,a(c)})}const uN={info:Bs,success:Is,error:Qs,warning:Ds,loading:Ms},u$=Object.keys(uN);function d$(i){const a=i.duration!==void 0?i.duration:nN,c=i.key||a$(),f=new Promise(O=>{const y=()=>(typeof i.onClose=="function"&&i.onClose(),O(!0));c$(i,w=>{w.notice({key:c,duration:a,style:i.style||{},class:i.class,content:S=>{let{prefixCls:A}=S;const T=uN[i.type],P=T?o.createVNode(T,null,null):"",N=Vt(`${A}-custom-content`,{[`${A}-${i.type}`]:i.type,[`${A}-rtl`]:cN===!0});return o.createVNode("div",{class:N},[typeof i.icon=="function"?i.icon():i.icon||P,o.createVNode("span",null,[typeof i.content=="function"?i.content():i.content])])},onClose:y,onClick:i.onClick})})}),p=()=>{zn&&zn.removeNotice(c)};return p.then=(O,y)=>f.then(O,y),p.promise=f,p}function f$(i){return Object.prototype.toString.call(i)==="[object Object]"&&!!i.content}const Fi={open:d$,config:l$,destroy(i){if(zn)if(i){const{removeNotice:a}=zn;a(i)}else{const{destroy:a}=zn;a(),zn=null}}};function h$(i,a){i[a]=(c,f,p)=>f$(c)?i.open(q(q({},c),{type:a})):(typeof f=="function"&&(p=f,f=void 0),i.open({content:c,duration:f,type:a,onClose:p}))}u$.forEach(i=>h$(Fi,i)),Fi.warn=Fi.warning,Fi.useMessage=r$;const p$=i=>{const{componentCls:a,width:c,notificationMarginEdge:f}=i,p=new Ut("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),O=new Ut("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),y=new Ut("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:c},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${a}-top, &${a}-bottom`]:{marginInline:0},[`&${a}-top`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:p}},[`&${a}-bottom`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:O}},[`&${a}-topLeft, &${a}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:f,[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:y}}}},m$=i=>{const{iconCls:a,componentCls:c,boxShadowSecondary:f,fontSizeLG:p,notificationMarginBottom:O,borderRadiusLG:y,colorSuccess:w,colorInfo:S,colorWarning:A,colorError:T,colorTextHeading:P,notificationBg:N,notificationPadding:V,notificationMarginEdge:j,motionDurationMid:z,motionEaseInOut:K,fontSize:H,lineHeight:X,width:te,notificationIconSize:J}=i,se=`${c}-notice`,le=new Ut("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:te},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),U=new Ut("antNotificationFadeOut",{"0%":{maxHeight:i.animationMaxHeight,marginBottom:O,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[c]:q(q(q(q({},yv(i)),{position:"fixed",zIndex:i.zIndexPopup,marginInlineEnd:j,[`${c}-hook-holder`]:{position:"relative"},[`&${c}-top, &${c}-bottom`]:{[`${c}-notice`]:{marginInline:"auto auto"}},[`&${c}-topLeft, &${c}-bottomLeft`]:{[`${c}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${c}-fade-enter, ${c}-fade-appear`]:{animationDuration:i.motionDurationMid,animationTimingFunction:K,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${c}-fade-leave`]:{animationTimingFunction:K,animationFillMode:"both",animationDuration:z,animationPlayState:"paused"},[`${c}-fade-enter${c}-fade-enter-active, ${c}-fade-appear${c}-fade-appear-active`]:{animationName:le,animationPlayState:"running"},[`${c}-fade-leave${c}-fade-leave-active`]:{animationName:U,animationPlayState:"running"}}),p$(i)),{"&-rtl":{direction:"rtl",[`${c}-notice-btn`]:{float:"left"}}})},{[se]:{position:"relative",width:te,maxWidth:`calc(100vw - ${j*2}px)`,marginBottom:O,marginInlineStart:"auto",padding:V,overflow:"hidden",lineHeight:X,wordWrap:"break-word",background:N,borderRadius:y,boxShadow:f,[`${c}-close-icon`]:{fontSize:H,cursor:"pointer"},[`${se}-message`]:{marginBottom:i.marginXS,color:P,fontSize:p,lineHeight:i.lineHeightLG},[`${se}-description`]:{fontSize:H},[`&${se}-closable ${se}-message`]:{paddingInlineEnd:i.paddingLG},[`${se}-with-icon ${se}-message`]:{marginBottom:i.marginXS,marginInlineStart:i.marginSM+J,fontSize:p},[`${se}-with-icon ${se}-description`]:{marginInlineStart:i.marginSM+J,fontSize:H},[`${se}-icon`]:{position:"absolute",fontSize:J,lineHeight:0,[`&-success${a}`]:{color:w},[`&-info${a}`]:{color:S},[`&-warning${a}`]:{color:A},[`&-error${a}`]:{color:T}},[`${se}-close`]:{position:"absolute",top:i.notificationPaddingVertical,insetInlineEnd:i.notificationPaddingHorizontal,color:i.colorIcon,outline:"none",width:i.notificationCloseButtonSize,height:i.notificationCloseButtonSize,borderRadius:i.borderRadiusSM,transition:`background-color ${i.motionDurationMid}, color ${i.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:i.colorIconHover,backgroundColor:i.wireframe?"transparent":i.colorFillContent}},[`${se}-btn`]:{float:"right",marginTop:i.marginSM}}},{[`${se}-pure-panel`]:{margin:0}}]},Kv=Ps("Notification",i=>{const a=i.paddingMD,c=i.paddingLG,f=xr(i,{notificationBg:i.colorBgElevated,notificationPaddingVertical:a,notificationPaddingHorizontal:c,notificationPadding:`${i.paddingMD}px ${i.paddingContentHorizontalLG}px`,notificationMarginBottom:i.margin,notificationMarginEdge:i.marginLG,animationMaxHeight:150,notificationIconSize:i.fontSizeLG*i.lineHeightLG,notificationCloseButtonSize:i.controlHeightLG*.55});return[m$(f)]},i=>({zIndexPopup:i.zIndexPopupBase+50,width:384}));function dN(i,a){return a||o.createVNode("span",{class:`${i}-close-x`},[o.createVNode(tl,{class:`${i}-close-icon`},null)])}o.createVNode(Bs,null,null),o.createVNode(Is,null,null),o.createVNode(Qs,null,null),o.createVNode(Ds,null,null),o.createVNode(Ms,null,null);const g$={success:Is,info:Bs,error:Qs,warning:Ds};function fN(i){let{prefixCls:a,icon:c,type:f,message:p,description:O,btn:y}=i,w=null;if(c)w=o.createVNode("span",{class:`${a}-icon`},[Wa(c)]);else if(f){const S=g$[f];w=o.createVNode(S,{class:`${a}-icon ${a}-icon-${f}`},null)}return o.createVNode("div",{class:Vt({[`${a}-with-icon`]:w}),role:"alert"},[w,o.createVNode("div",{class:`${a}-message`},[p]),o.createVNode("div",{class:`${a}-description`},[O]),y&&o.createVNode("div",{class:`${a}-btn`},[y])])}o.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(i){const{getPrefixCls:a}=Si("notification",i),c=o.computed(()=>i.prefixCls||a("notification")),f=o.computed(()=>`${c.value}-notice`),[,p]=Kv(c);return()=>o.createVNode(mh,Ke(Ke({},i),{},{prefixCls:c.value,class:Vt(p.value,`${f.value}-pure-panel`),noticeKey:"pure",duration:null,closable:i.closable,closeIcon:dN(c.value,i.closeIcon)}),{default:()=>[o.createVNode(fN,{prefixCls:f.value,icon:i.icon,type:i.type,message:i.message,description:i.description,btn:i.btn},null)]})}});function hN(i,a,c){let f;switch(a=typeof a=="number"?`${a}px`:a,c=typeof c=="number"?`${c}px`:c,i){case"top":f={left:"50%",transform:"translateX(-50%)",right:"auto",top:a,bottom:"auto"};break;case"topLeft":f={left:0,top:a,bottom:"auto"};break;case"topRight":f={right:0,top:a,bottom:"auto"};break;case"bottom":f={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:c};break;case"bottomLeft":f={left:0,top:"auto",bottom:c};break;default:f={right:0,top:"auto",bottom:c};break}return f}function O$(i){return{name:`${i}-fade`}}var v$=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};const pN=24,y$=4.5,b$=o.defineComponent({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(i,a){let{expose:c}=a;const{getPrefixCls:f,getPopupContainer:p}=Si("notification",i),O=o.computed(()=>i.prefixCls||f("notification")),y=N=>{var V,j;return hN(N,(V=i.top)!==null&&V!==void 0?V:pN,(j=i.bottom)!==null&&j!==void 0?j:pN)},[,w]=Kv(O),S=()=>Vt(w.value,{[`${O.value}-rtl`]:i.rtl}),A=()=>O$(O.value),[T,P]=q_({prefixCls:O.value,getStyles:y,getClassName:S,motion:A,closable:!0,closeIcon:dN(O.value),duration:y$,getContainer:()=>{var N,V;return((N=i.getPopupContainer)===null||N===void 0?void 0:N.call(i))||((V=p.value)===null||V===void 0?void 0:V.call(p))||document.body},maxCount:i.maxCount,hashId:w.value,onAllRemoved:i.onAllRemoved});return c(q(q({},T),{prefixCls:O.value,hashId:w})),P}});function x$(i){const a=o.shallowRef(null),c=Symbol("notificationHolderKey"),f=O=>{if(!a.value)return;const{open:y,prefixCls:w,hashId:S}=a.value,A=`${w}-notice`,{message:T,description:P,icon:N,type:V,btn:j,class:z}=O,K=v$(O,["message","description","icon","type","btn","class"]);return y(q(q({placement:"topRight"},K),{content:()=>o.createVNode(fN,{prefixCls:A,icon:typeof N=="function"?N():N,type:V,message:typeof T=="function"?T():T,description:typeof P=="function"?P():P,btn:typeof j=="function"?j():j},null),class:Vt(V&&`${A}-${V}`,S,z)}))},p={open:f,destroy:O=>{var y,w;O!==void 0?(y=a.value)===null||y===void 0||y.close(O):(w=a.value)===null||w===void 0||w.destroy()}};return["success","info","warning","error"].forEach(O=>{p[O]=y=>f(q(q({},y),{type:O}))}),[p,()=>o.createVNode(b$,Ke(Ke({key:c},i),{},{ref:a}),null)]}function w$(i){return x$(i)}const Ls={};let mN=4.5,gN="24px",ON="24px",Jv="",vN="topRight",yN=()=>document.body,bN=null,$v=!1,xN;function S$(i){const{duration:a,placement:c,bottom:f,top:p,getContainer:O,closeIcon:y,prefixCls:w}=i;w!==void 0&&(Jv=w),a!==void 0&&(mN=a),c!==void 0&&(vN=c),f!==void 0&&(ON=typeof f=="number"?`${f}px`:f),p!==void 0&&(gN=typeof p=="number"?`${p}px`:p),O!==void 0&&(yN=O),y!==void 0&&(bN=y),i.rtl!==void 0&&($v=i.rtl),i.maxCount!==void 0&&(xN=i.maxCount)}function C$(i,a){let{prefixCls:c,placement:f=vN,getContainer:p=yN,top:O,bottom:y,closeIcon:w=bN,appContext:S}=i;const{getPrefixCls:A}=I$(),T=A("notification",c||Jv),P=`${T}-${f}-${$v}`,N=Ls[P];if(N){Promise.resolve(N).then(j=>{a(j)});return}const V=Vt(`${T}-${f}`,{[`${T}-rtl`]:$v===!0});gh.newInstance({name:"notification",prefixCls:c||Jv,useStyle:Kv,class:V,style:hN(f,O??gN,y??ON),appContext:S,getContainer:p,closeIcon:j=>{let{prefixCls:z}=j;return o.createVNode("span",{class:`${z}-close-x`},[Wa(w,{},o.createVNode(tl,{class:`${z}-close-icon`},null))])},maxCount:xN,hasTransitionName:!0},j=>{Ls[P]=j,a(j)})}const k$={success:Bv,info:Lv,error:jv,warning:Vv};function P$(i){const{icon:a,type:c,description:f,message:p,btn:O}=i,y=i.duration===void 0?mN:i.duration;C$(i,w=>{w.notice({content:S=>{let{prefixCls:A}=S;const T=`${A}-notice`;let P=null;if(a)P=()=>o.createVNode("span",{class:`${T}-icon`},[Wa(a)]);else if(c){const N=k$[c];P=()=>o.createVNode(N,{class:`${T}-icon ${T}-icon-${c}`},null)}return o.createVNode("div",{class:P?`${T}-with-icon`:""},[P&&P(),o.createVNode("div",{class:`${T}-message`},[!f&&P?o.createVNode("span",{class:`${T}-message-single-line-auto-margin`},null):null,Wa(p)]),o.createVNode("div",{class:`${T}-description`},[Wa(f)]),O?o.createVNode("span",{class:`${T}-btn`},[Wa(O)]):null])},duration:y,closable:!0,onClose:i.onClose,onClick:i.onClick,key:i.key,style:i.style||{},class:i.class})})}const nl={open:P$,close(i){Object.keys(Ls).forEach(a=>Promise.resolve(Ls[a]).then(c=>{c.removeNotice(i)}))},config:S$,destroy(){Object.keys(Ls).forEach(i=>{Promise.resolve(Ls[i]).then(a=>{a.destroy()}),delete Ls[i]})}};["success","info","warning","error"].forEach(i=>{nl[i]=a=>nl.open(q(q({},a),{type:i}))}),nl.warn=nl.warning,nl.useNotification=w$;const E$=`-ant-${Date.now()}-${Math.random()}`;function T$(i,a){const c={},f=(O,y)=>{let w=O.clone();return w=y?.(w)||w,w.toRgbString()},p=(O,y)=>{const w=new _n(O),S=ks(w.toRgbString());c[`${y}-color`]=f(w),c[`${y}-color-disabled`]=S[1],c[`${y}-color-hover`]=S[4],c[`${y}-color-active`]=S[6],c[`${y}-color-outline`]=w.clone().setAlpha(.2).toRgbString(),c[`${y}-color-deprecated-bg`]=S[0],c[`${y}-color-deprecated-border`]=S[2]};if(a.primaryColor){p(a.primaryColor,"primary");const O=new _n(a.primaryColor),y=ks(O.toRgbString());y.forEach((S,A)=>{c[`primary-${A+1}`]=S}),c["primary-color-deprecated-l-35"]=f(O,S=>S.lighten(35)),c["primary-color-deprecated-l-20"]=f(O,S=>S.lighten(20)),c["primary-color-deprecated-t-20"]=f(O,S=>S.tint(20)),c["primary-color-deprecated-t-50"]=f(O,S=>S.tint(50)),c["primary-color-deprecated-f-12"]=f(O,S=>S.setAlpha(S.getAlpha()*.12));const w=new _n(y[0]);c["primary-color-active-deprecated-f-30"]=f(w,S=>S.setAlpha(S.getAlpha()*.3)),c["primary-color-active-deprecated-d-02"]=f(w,S=>S.darken(2))}return a.successColor&&p(a.successColor,"success"),a.warningColor&&p(a.warningColor,"warning"),a.errorColor&&p(a.errorColor,"error"),a.infoColor&&p(a.infoColor,"info"),`
|
|
146
|
+
:root {
|
|
147
|
+
${Object.keys(c).map(O=>`--${i}-${O}: ${c[O]};`).join(`
|
|
148
|
+
`)}
|
|
149
|
+
}
|
|
150
|
+
`.trim()}function _$(i,a){const c=T$(i,a);Xo()?Lc(c,`${E$}-dynamic-theme`):Ya(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const N$=i=>{const[a,c]=Wc();return cv(o.computed(()=>({theme:a.value,token:c.value,hashId:"",path:["ant-design-icons",i.value]})),()=>[{[`.${i.value}`]:q(q({},OX()),{[`.${i.value} .${i.value}-icon`]:{display:"block"}})}])};function A$(i,a){const c=o.computed(()=>i?.value||{}),f=o.computed(()=>c.value.inherit===!1||!a?.value?lT:a.value);return o.computed(()=>{if(!i?.value)return a?.value;const p=q({},f.value.components);return Object.keys(i.value.components||{}).forEach(O=>{p[O]=q(q({},p[O]),i.value.components[O])}),q(q(q({},f.value),c.value),{token:q(q({},f.value.token),c.value.token),components:p})})}var R$=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};const M$="ant";function ol(){return Nn.prefixCls||M$}function wN(){return Nn.iconPrefixCls||HO}const qv=o.reactive({}),Nn=o.reactive({});o.watchEffect(()=>{q(Nn,qv),Nn.prefixCls=ol(),Nn.iconPrefixCls=wN(),Nn.getPrefixCls=(i,a)=>a||(i?`${Nn.prefixCls}-${i}`:Nn.prefixCls),Nn.getRootPrefixCls=()=>Nn.prefixCls?Nn.prefixCls:ol()});let ey;const Q$=i=>{ey&&ey(),ey=o.watchEffect(()=>{q(qv,o.reactive(i)),q(Nn,o.reactive(i))}),i.theme&&_$(ol(),i.theme)},I$=()=>({getPrefixCls:(i,a)=>a||(i?`${ol()}-${i}`:ol()),getIconPrefixCls:wN,getRootPrefixCls:()=>Nn.prefixCls?Nn.prefixCls:ol()}),qc=o.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:DU(),setup(i,a){let{slots:c}=a;const f=Bf(),p=(ie,ce)=>{const{prefixCls:Ne="ant"}=i;if(ce)return ce;const xe=Ne||f.getPrefixCls("");return ie?`${xe}-${ie}`:xe},O=o.computed(()=>i.iconPrefixCls||f.iconPrefixCls.value||HO),y=o.computed(()=>O.value!==f.iconPrefixCls.value),w=o.computed(()=>{var ie;return i.csp||((ie=f.csp)===null||ie===void 0?void 0:ie.value)}),S=N$(O),A=A$(o.computed(()=>i.theme),o.computed(()=>{var ie;return(ie=f.theme)===null||ie===void 0?void 0:ie.value})),T=ie=>(i.renderEmpty||c.renderEmpty||f.renderEmpty||AX)(ie),P=o.computed(()=>{var ie,ce;return(ie=i.autoInsertSpaceInButton)!==null&&ie!==void 0?ie:(ce=f.autoInsertSpaceInButton)===null||ce===void 0?void 0:ce.value}),N=o.computed(()=>{var ie;return i.locale||((ie=f.locale)===null||ie===void 0?void 0:ie.value)});o.watch(N,()=>{qv.locale=N.value},{immediate:!0});const V=o.computed(()=>{var ie;return i.direction||((ie=f.direction)===null||ie===void 0?void 0:ie.value)}),j=o.computed(()=>{var ie,ce;return(ie=i.space)!==null&&ie!==void 0?ie:(ce=f.space)===null||ce===void 0?void 0:ce.value}),z=o.computed(()=>{var ie,ce;return(ie=i.virtual)!==null&&ie!==void 0?ie:(ce=f.virtual)===null||ce===void 0?void 0:ce.value}),K=o.computed(()=>{var ie,ce;return(ie=i.dropdownMatchSelectWidth)!==null&&ie!==void 0?ie:(ce=f.dropdownMatchSelectWidth)===null||ce===void 0?void 0:ce.value}),H=o.computed(()=>{var ie;return i.getTargetContainer!==void 0?i.getTargetContainer:(ie=f.getTargetContainer)===null||ie===void 0?void 0:ie.value}),X=o.computed(()=>{var ie;return i.getPopupContainer!==void 0?i.getPopupContainer:(ie=f.getPopupContainer)===null||ie===void 0?void 0:ie.value}),te=o.computed(()=>{var ie;return i.pageHeader!==void 0?i.pageHeader:(ie=f.pageHeader)===null||ie===void 0?void 0:ie.value}),J=o.computed(()=>{var ie;return i.input!==void 0?i.input:(ie=f.input)===null||ie===void 0?void 0:ie.value}),se=o.computed(()=>{var ie;return i.pagination!==void 0?i.pagination:(ie=f.pagination)===null||ie===void 0?void 0:ie.value}),le=o.computed(()=>{var ie;return i.form!==void 0?i.form:(ie=f.form)===null||ie===void 0?void 0:ie.value}),U=o.computed(()=>{var ie;return i.select!==void 0?i.select:(ie=f.select)===null||ie===void 0?void 0:ie.value}),he=o.computed(()=>i.componentSize),ue=o.computed(()=>i.componentDisabled),ge=o.computed(()=>{var ie,ce;return(ie=i.wave)!==null&&ie!==void 0?ie:(ce=f.wave)===null||ce===void 0?void 0:ce.value}),ye={csp:w,autoInsertSpaceInButton:P,locale:N,direction:V,space:j,virtual:z,dropdownMatchSelectWidth:K,getPrefixCls:p,iconPrefixCls:O,theme:o.computed(()=>{var ie,ce;return(ie=A.value)!==null&&ie!==void 0?ie:(ce=f.theme)===null||ce===void 0?void 0:ce.value}),renderEmpty:T,getTargetContainer:H,getPopupContainer:X,pageHeader:te,input:J,pagination:se,form:le,select:U,componentSize:he,componentDisabled:ue,transformCellText:o.computed(()=>i.transformCellText),wave:ge},Xe=o.computed(()=>{const ie=A.value||{},{algorithm:ce,token:Ne}=ie,xe=R$(ie,["algorithm","token"]),ze=ce&&(!Array.isArray(ce)||ce.length>0)?_E(ce):void 0;return q(q({},xe),{theme:ze,token:q(q({},qf),Ne)})}),We=o.computed(()=>{var ie,ce;let Ne={};return N.value&&(Ne=((ie=N.value.Form)===null||ie===void 0?void 0:ie.defaultValidateMessages)||((ce=vr.Form)===null||ce===void 0?void 0:ce.defaultValidateMessages)||{}),i.form&&i.form.validateMessages&&(Ne=q(q({},Ne),i.form.validateMessages)),Ne});BU(ye),IU({validateMessages:We}),RX(he),VU(ue);const Me=ie=>{var ce,Ne;let xe=y.value?S((ce=c.default)===null||ce===void 0?void 0:ce.call(c)):(Ne=c.default)===null||Ne===void 0?void 0:Ne.call(c);if(i.theme){const ze=function(){return xe}();xe=o.createVNode(PX,{value:Xe.value},{default:()=>[ze]})}return o.createVNode(WJ,{locale:N.value||ie,ANT_MARK__:Yv},{default:()=>[xe]})};return o.watchEffect(()=>{V.value&&(Fi.config({rtl:V.value==="rtl"}),nl.config({rtl:V.value==="rtl"}))}),()=>o.createVNode(mE,{children:(ie,ce,Ne)=>Me(Ne)},null)}});qc.config=Q$,qc.install=function(i){i.component(qc.name,qc)};const SN=qc;function ty(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Lt.shape({x:Number,y:Number}).loose,title:Lt.any,footer:Lt.any,transitionName:String,maskTransitionName:String,animation:Lt.any,maskAnimation:Lt.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Lt.any,maskProps:Lt.any,wrapProps:Lt.any,getContainer:Lt.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Lt.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function CN(i,a,c){let f=a;return!f&&c&&(f=`${i}-${c}`),f}let kN=-1;function D$(){return kN+=1,kN}function PN(i,a){let c=i[`page${a?"Y":"X"}Offset`];const f=`scroll${a?"Top":"Left"}`;if(typeof c!="number"){const p=i.document;c=p.documentElement[f],typeof c!="number"&&(c=p.body[f])}return c}function B$(i){const a=i.getBoundingClientRect(),c={left:a.left,top:a.top},f=i.ownerDocument,p=f.defaultView||f.parentWindow;return c.left+=PN(p),c.top+=PN(p,!0),c}const EN={width:0,height:0,overflow:"hidden",outline:"none"},V$=o.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:q(q({},ty()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(i,a){let{expose:c,slots:f,attrs:p}=a;const O=o.ref(),y=o.ref(),w=o.ref();c({focus:()=>{var N;(N=O.value)===null||N===void 0||N.focus()},changeActive:N=>{const{activeElement:V}=document;N&&V===y.value?O.value.focus():!N&&V===O.value&&y.value.focus()}});const S=o.ref(),A=o.computed(()=>{const{width:N,height:V}=i,j={};return N!==void 0&&(j.width=typeof N=="number"?`${N}px`:N),V!==void 0&&(j.height=typeof V=="number"?`${V}px`:V),S.value&&(j.transformOrigin=S.value),j}),T=()=>{o.nextTick(()=>{if(w.value){const N=B$(w.value);S.value=i.mousePosition?`${i.mousePosition.x-N.left}px ${i.mousePosition.y-N.top}px`:""}})},P=N=>{i.onVisibleChanged(N)};return()=>{var N,V,j,z;const{prefixCls:K,footer:H=(N=f.footer)===null||N===void 0?void 0:N.call(f),title:X=(V=f.title)===null||V===void 0?void 0:V.call(f),ariaId:te,closable:J,closeIcon:se=(j=f.closeIcon)===null||j===void 0?void 0:j.call(f),onClose:le,bodyStyle:U,bodyProps:he,onMousedown:ue,onMouseup:ge,visible:ye,modalRender:Xe=f.modalRender,destroyOnClose:We,motionName:Me}=i;let ie;H&&(ie=o.createVNode("div",{class:`${K}-footer`},[H]));let ce;X&&(ce=o.createVNode("div",{class:`${K}-header`},[o.createVNode("div",{class:`${K}-title`,id:te},[X])]));let Ne;J&&(Ne=o.createVNode("button",{type:"button",onClick:le,"aria-label":"Close",class:`${K}-close`},[se||o.createVNode("span",{class:`${K}-close-x`},null)]));const xe=o.createVNode("div",{class:`${K}-content`},[Ne,ce,o.createVNode("div",Ke({class:`${K}-body`,style:U},he),[(z=f.default)===null||z===void 0?void 0:z.call(f)]),ie]),ze=$T(Me);return o.createVNode(o.Transition,Ke(Ke({},ze),{},{onBeforeEnter:T,onAfterEnter:()=>P(!0),onAfterLeave:()=>P(!1)}),{default:()=>[ye||!We?o.withDirectives(o.createVNode("div",Ke(Ke({},p),{},{ref:w,key:"dialog-element",role:"document",style:[A.value,p.style],class:[K,p.class],onMousedown:ue,onMouseup:ge}),[o.createVNode("div",{tabindex:0,ref:O,style:EN,"aria-hidden":"true"},null),Xe?Xe({originVNode:xe}):xe,o.createVNode("div",{tabindex:0,ref:y,style:EN,"aria-hidden":"true"},null)]),[[o.vShow,ye]]):null]})}}}),L$=o.defineComponent({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(i,a){return()=>{const{prefixCls:c,visible:f,maskProps:p,motionName:O}=i,y=$T(O);return o.createVNode(o.Transition,y,{default:()=>[o.withDirectives(o.createVNode("div",Ke({class:`${c}-mask`},p),null),[[o.vShow,f]])]})}}}),TN=o.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ic(q(q({},ty()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(i,a){let{attrs:c,slots:f}=a;const p=o.shallowRef(),O=o.shallowRef(),y=o.shallowRef(),w=o.shallowRef(i.visible),S=o.shallowRef(`vcDialogTitle${D$()}`),A=H=>{var X,te;if(H)xE(O.value,document.activeElement)||(p.value=document.activeElement,(X=y.value)===null||X===void 0||X.focus());else{const J=w.value;if(w.value=!1,i.mask&&p.value&&i.focusTriggerAfterClose){try{p.value.focus({preventScroll:!0})}catch{}p.value=null}J&&((te=i.afterClose)===null||te===void 0||te.call(i))}},T=H=>{var X;(X=i.onClose)===null||X===void 0||X.call(i,H)},P=o.shallowRef(!1),N=o.shallowRef(),V=()=>{clearTimeout(N.value),P.value=!0},j=()=>{N.value=setTimeout(()=>{P.value=!1})},z=H=>{if(!i.maskClosable)return null;P.value?P.value=!1:O.value===H.target&&T(H)},K=H=>{if(i.keyboard&&H.keyCode===et.ESC){H.stopPropagation(),T(H);return}i.visible&&H.keyCode===et.TAB&&y.value.changeActive(!H.shiftKey)};return o.watch(()=>i.visible,()=>{i.visible&&(w.value=!0)},{flush:"post"}),o.onBeforeUnmount(()=>{var H;clearTimeout(N.value),(H=i.scrollLocker)===null||H===void 0||H.unLock()}),o.watchEffect(()=>{var H,X;(H=i.scrollLocker)===null||H===void 0||H.unLock(),w.value&&((X=i.scrollLocker)===null||X===void 0||X.lock())}),()=>{const{prefixCls:H,mask:X,visible:te,maskTransitionName:J,maskAnimation:se,zIndex:le,wrapClassName:U,rootClassName:he,wrapStyle:ue,closable:ge,maskProps:ye,maskStyle:Xe,transitionName:We,animation:Me,wrapProps:ie,title:ce=f.title}=i,{style:Ne,class:xe}=c;return o.createVNode("div",Ke({class:[`${H}-root`,he]},RG(i,{data:!0})),[o.createVNode(L$,{prefixCls:H,visible:X&&te,motionName:CN(H,J,se),style:q({zIndex:le},Xe),maskProps:ye},null),o.createVNode("div",Ke({tabIndex:-1,onKeydown:K,class:Vt(`${H}-wrap`,U),ref:O,onClick:z,role:"dialog","aria-labelledby":ce?S.value:null,style:q(q({zIndex:le},ue),{display:w.value?null:"none"})},ie),[o.createVNode(V$,Ke(Ke({},OT(i,["scrollLocker"])),{},{style:Ne,class:xe,onMousedown:V,onMouseup:j,ref:y,closable:ge,ariaId:S.value,prefixCls:H,visible:te,onClose:T,onVisibleChanged:A,motionName:CN(H,We,Me)}),f)])])}}}),j$=ty(),F$=o.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ic(j$,{visible:!1}),setup(i,a){let{attrs:c,slots:f}=a;const p=o.ref(i.visible);return t_({},{inTriggerContext:!1}),o.watch(()=>i.visible,()=>{i.visible&&(p.value=!0)},{flush:"post"}),()=>{const{visible:O,getContainer:y,forceRender:w,destroyOnClose:S=!1,afterClose:A}=i;let T=q(q(q({},i),c),{ref:"_component",key:"dialog"});return y===!1?o.createVNode(TN,Ke(Ke({},T),{},{getOpenCount:()=>2}),f):!w&&S&&!p.value?null:o.createVNode(_G,{autoLock:!0,visible:O,forceRender:w,getContainer:y},{default:P=>(T=q(q(q({},T),P),{afterClose:()=>{A?.(),p.value=!1}}),o.createVNode(TN,T,f))})}}});function _N(i){return{position:i,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Z$=i=>{const{componentCls:a}=i;return[{[`${a}-root`]:{[`${a}${i.antCls}-zoom-enter, ${a}${i.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:i.motionDurationSlow,userSelect:"none"},[`${a}${i.antCls}-zoom-leave ${a}-content`]:{pointerEvents:"none"},[`${a}-mask`]:q(q({},_N("fixed")),{zIndex:i.zIndexPopupBase,height:"100%",backgroundColor:i.colorBgMask,[`${a}-hidden`]:{display:"none"}}),[`${a}-wrap`]:q(q({},_N("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${a}-root`]:IK(i)}]},z$=i=>{const{componentCls:a}=i;return[{[`${a}-root`]:{[`${a}-wrap`]:{zIndex:i.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${a}-wrap-rtl`]:{direction:"rtl"},[`${a}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[a]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${i.screenSMMax})`]:{[a]:{maxWidth:"calc(100vw - 16px)",margin:`${i.marginXS} auto`},[`${a}-centered`]:{[a]:{flex:1}}}}},{[a]:q(q({},yv(i)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${i.margin*2}px)`,margin:"0 auto",paddingBottom:i.paddingLG,[`${a}-title`]:{margin:0,color:i.modalHeadingColor,fontWeight:i.fontWeightStrong,fontSize:i.modalHeaderTitleFontSize,lineHeight:i.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${a}-content`]:{position:"relative",backgroundColor:i.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:i.borderRadiusLG,boxShadow:i.boxShadowSecondary,pointerEvents:"auto",padding:`${i.paddingMD}px ${i.paddingContentHorizontalLG}px`},[`${a}-close`]:q({position:"absolute",top:(i.modalHeaderCloseSize-i.modalCloseBtnSize)/2,insetInlineEnd:(i.modalHeaderCloseSize-i.modalCloseBtnSize)/2,zIndex:i.zIndexPopupBase+10,padding:0,color:i.modalCloseColor,fontWeight:i.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:i.borderRadiusSM,width:i.modalConfirmIconSize,height:i.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${i.motionDurationMid}, background-color ${i.motionDurationMid}`,"&-x":{display:"block",fontSize:i.fontSizeLG,fontStyle:"normal",lineHeight:`${i.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:i.modalIconHoverColor,backgroundColor:i.wireframe?"transparent":i.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:i.wireframe?"transparent":i.colorFillContentHover}},sT(i)),[`${a}-header`]:{color:i.colorText,background:i.modalHeaderBg,borderRadius:`${i.borderRadiusLG}px ${i.borderRadiusLG}px 0 0`,marginBottom:i.marginXS},[`${a}-body`]:{fontSize:i.fontSize,lineHeight:i.lineHeight,wordWrap:"break-word"},[`${a}-footer`]:{textAlign:"end",background:i.modalFooterBg,marginTop:i.marginSM,[`${i.antCls}-btn + ${i.antCls}-btn:not(${i.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:i.marginXS}},[`${a}-open`]:{overflow:"hidden"}})},{[`${a}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${a}-content,
|
|
151
|
+
${a}-body,
|
|
152
|
+
${a}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${a}-confirm-body`]:{marginBottom:"auto"}}}]},W$=i=>{const{componentCls:a}=i,c=`${a}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${i.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:q({},vX()),[`${c}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${c}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:i.colorTextHeading,fontWeight:i.fontWeightStrong,fontSize:i.modalHeaderTitleFontSize,lineHeight:i.modalHeaderTitleLineHeight,[`+ ${c}-content`]:{marginBlockStart:i.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${i.modalConfirmIconSize+i.marginSM}px)`}},[`${c}-content`]:{color:i.colorText,fontSize:i.fontSize},[`> ${i.iconCls}`]:{flex:"none",marginInlineEnd:i.marginSM,fontSize:i.modalConfirmIconSize,[`+ ${c}-title`]:{flex:1},[`+ ${c}-title + ${c}-content`]:{marginInlineStart:i.modalConfirmIconSize+i.marginSM}}},[`${c}-btns`]:{textAlign:"end",marginTop:i.marginSM,[`${i.antCls}-btn + ${i.antCls}-btn`]:{marginBottom:0,marginInlineStart:i.marginXS}}},[`${c}-error ${c}-body > ${i.iconCls}`]:{color:i.colorError},[`${c}-warning ${c}-body > ${i.iconCls},
|
|
153
|
+
${c}-confirm ${c}-body > ${i.iconCls}`]:{color:i.colorWarning},[`${c}-info ${c}-body > ${i.iconCls}`]:{color:i.colorInfo},[`${c}-success ${c}-body > ${i.iconCls}`]:{color:i.colorSuccess},[`${a}-zoom-leave ${a}-btns`]:{pointerEvents:"none"}}},U$=i=>{const{componentCls:a}=i;return{[`${a}-root`]:{[`${a}-wrap-rtl`]:{direction:"rtl",[`${a}-confirm-body`]:{direction:"rtl"}}}}},H$=i=>{const{componentCls:a,antCls:c}=i,f=`${a}-confirm`;return{[a]:{[`${a}-content`]:{padding:0},[`${a}-header`]:{padding:i.modalHeaderPadding,borderBottom:`${i.modalHeaderBorderWidth}px ${i.modalHeaderBorderStyle} ${i.modalHeaderBorderColorSplit}`,marginBottom:0},[`${a}-body`]:{padding:i.modalBodyPadding},[`${a}-footer`]:{padding:`${i.modalFooterPaddingVertical}px ${i.modalFooterPaddingHorizontal}px`,borderTop:`${i.modalFooterBorderWidth}px ${i.modalFooterBorderStyle} ${i.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${i.borderRadiusLG}px ${i.borderRadiusLG}px`,marginTop:0}},[f]:{[`${c}-modal-body`]:{padding:`${i.padding*2}px ${i.padding*2}px ${i.paddingLG}px`},[`${f}-body`]:{[`> ${i.iconCls}`]:{marginInlineEnd:i.margin,[`+ ${f}-title + ${f}-content`]:{marginInlineStart:i.modalConfirmIconSize+i.margin}}},[`${f}-btns`]:{marginTop:i.marginLG}}}},X$=Ps("Modal",i=>{const a=i.padding,c=i.fontSizeHeading5,f=i.lineHeightHeading5,p=xr(i,{modalBodyPadding:i.paddingLG,modalHeaderBg:i.colorBgElevated,modalHeaderPadding:`${a}px ${i.paddingLG}px`,modalHeaderBorderWidth:i.lineWidth,modalHeaderBorderStyle:i.lineType,modalHeaderTitleLineHeight:f,modalHeaderTitleFontSize:c,modalHeaderBorderColorSplit:i.colorSplit,modalHeaderCloseSize:f*c+a*2,modalContentBg:i.colorBgElevated,modalHeadingColor:i.colorTextHeading,modalCloseColor:i.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:i.colorSplit,modalFooterBorderStyle:i.lineType,modalFooterPaddingVertical:i.paddingXS,modalFooterPaddingHorizontal:i.padding,modalFooterBorderWidth:i.lineWidth,modalConfirmTitleFontSize:i.fontSizeLG,modalIconHoverColor:i.colorIconHover,modalConfirmIconSize:i.fontSize*i.lineHeight,modalCloseBtnSize:i.controlHeightLG*.55});return[z$(p),W$(p),U$(p),Z$(p),i.wireframe&&H$(p),XK(p,"zoom")]}),Y$={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var G$=function(i,a){var c={};for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&a.indexOf(f)<0&&(c[f]=i[f]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,f=Object.getOwnPropertySymbols(i);p<f.length;p++)a.indexOf(f[p])<0&&Object.prototype.propertyIsEnumerable.call(i,f[p])&&(c[f[p]]=i[f[p]]);return c};let ny;const K$=i=>{ny={x:i.pageX,y:i.pageY},setTimeout(()=>ny=null,100)};FJ()&&MU(document.documentElement,"click",K$,!0);const J$=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Lt.any,closable:{type:Boolean,default:void 0},closeIcon:Lt.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Lt.any,okText:Lt.any,okType:String,cancelText:Lt.any,icon:Lt.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:tn(),cancelButtonProps:tn(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:tn(),maskStyle:tn(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:tn()}),yt=o.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ic(J$(),{width:520,confirmLoading:!1,okType:"primary"}),setup(i,a){let{emit:c,slots:f,attrs:p}=a;const[O]=GO("Modal"),{prefixCls:y,rootPrefixCls:w,direction:S,getPopupContainer:A}=Si("modal",i),[T,P]=X$(y);Ya(i.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const N=z=>{c("update:visible",!1),c("update:open",!1),c("cancel",z),c("change",!1)},V=z=>{c("ok",z)},j=()=>{var z,K;const{okText:H=(z=f.okText)===null||z===void 0?void 0:z.call(f),okType:X,cancelText:te=(K=f.cancelText)===null||K===void 0?void 0:K.call(f),confirmLoading:J}=i;return o.createVNode(o.Fragment,null,[o.createVNode(Vs,Ke({onClick:N},i.cancelButtonProps),{default:()=>[te||O.value.cancelText]}),o.createVNode(Vs,Ke(Ke({},D_(X)),{},{loading:J,onClick:V},i.okButtonProps),{default:()=>[H||O.value.okText]})])};return()=>{var z,K;const{prefixCls:H,visible:X,open:te,wrapClassName:J,centered:se,getContainer:le,closeIcon:U=(z=f.closeIcon)===null||z===void 0?void 0:z.call(f),focusTriggerAfterClose:he=!0}=i,ue=G$(i,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),ge=Vt(J,{[`${y.value}-centered`]:!!se,[`${y.value}-wrap-rtl`]:S.value==="rtl"});return T(o.createVNode(F$,Ke(Ke(Ke({},ue),p),{},{rootClassName:P.value,class:Vt(P.value,p.class),getContainer:le||A?.value,prefixCls:y.value,wrapClassName:ge,visible:te??X,onClose:N,focusTriggerAfterClose:he,transitionName:rh(w.value,"zoom",i.transitionName),maskTransitionName:rh(w.value,"fade",i.maskTransitionName),mousePosition:(K=ue.mousePosition)!==null&&K!==void 0?K:ny}),q(q({},f),{footer:f.footer||j,closeIcon:()=>o.createVNode("span",{class:`${y.value}-close-x`},[U||o.createVNode(tl,{class:`${y.value}-close-icon`},null)])})))}}}),$$=()=>{const i=o.shallowRef(!1);return o.onBeforeUnmount(()=>{i.value=!0}),i},q$={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:tn(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function NN(i){return!!(i&&i.then)}const AN=o.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:q$,setup(i,a){let{slots:c}=a;const f=o.shallowRef(!1),p=o.shallowRef(),O=o.shallowRef(!1);let y;const w=$$();o.onMounted(()=>{i.autofocus&&(y=setTimeout(()=>{var P,N;return(N=(P=If(p.value))===null||P===void 0?void 0:P.focus)===null||N===void 0?void 0:N.call(P)}))}),o.onBeforeUnmount(()=>{clearTimeout(y)});const S=function(){for(var P,N=arguments.length,V=new Array(N),j=0;j<N;j++)V[j]=arguments[j];(P=i.close)===null||P===void 0||P.call(i,...V)},A=P=>{NN(P)&&(O.value=!0,P.then(function(){w.value||(O.value=!1),S(...arguments),f.value=!1},N=>(w.value||(O.value=!1),f.value=!1,Promise.reject(N))))},T=P=>{const{actionFn:N}=i;if(f.value)return;if(f.value=!0,!N){S();return}let V;if(i.emitEvent){if(V=N(P),i.quitOnNullishReturnValue&&!NN(V)){f.value=!1,S(P);return}}else if(N.length)V=N(i.close),f.value=!1;else if(V=N(),!V){S();return}A(V)};return()=>{const{type:P,prefixCls:N,buttonProps:V}=i;return o.createVNode(Vs,Ke(Ke(Ke({},D_(P)),{},{onClick:T,loading:O.value,prefixCls:N},V),{},{ref:p}),c)}}});function il(i){return typeof i=="function"?i():i}const RN=o.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(i,a){let{attrs:c}=a;const[f]=GO("Modal");return process.env.NODE_ENV!=="production"&&Ya(i.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:p,onCancel:O,onOk:y,close:w,okText:S,closable:A=!1,zIndex:T,afterClose:P,keyboard:N,centered:V,getContainer:j,maskStyle:z,okButtonProps:K,cancelButtonProps:H,okCancel:X,width:te=416,mask:J=!0,maskClosable:se=!1,type:le,open:U,title:he,content:ue,direction:ge,closeIcon:ye,modalRender:Xe,focusTriggerAfterClose:We,rootPrefixCls:Me,bodyStyle:ie,wrapClassName:ce,footer:Ne}=i;let xe=p;if(!p&&p!==null)switch(le){case"info":xe=o.createVNode(Bs,null,null);break;case"success":xe=o.createVNode(Is,null,null);break;case"error":xe=o.createVNode(Qs,null,null);break;default:xe=o.createVNode(Ds,null,null)}const ze=i.okType||"primary",Ye=i.prefixCls||"ant-modal",ot=`${Ye}-confirm`,ut=c.style||{},xt=X??le==="confirm",wt=i.autoFocusButton===null?!1:i.autoFocusButton||"ok",Tt=`${Ye}-confirm`,mn=Vt(Tt,`${Tt}-${i.type}`,{[`${Tt}-rtl`]:ge==="rtl"},c.class),Ht=f.value,so=xt&&o.createVNode(AN,{actionFn:O,close:w,autofocus:wt==="cancel",buttonProps:H,prefixCls:`${Me}-btn`},{default:()=>[il(i.cancelText)||Ht.cancelText]});return o.createVNode(yt,{prefixCls:Ye,class:mn,wrapClassName:Vt({[`${Tt}-centered`]:!!V},ce),onCancel:Xt=>w?.({triggerCancel:!0},Xt),open:U,title:"",footer:"",transitionName:rh(Me,"zoom",i.transitionName),maskTransitionName:rh(Me,"fade",i.maskTransitionName),mask:J,maskClosable:se,maskStyle:z,style:ut,bodyStyle:ie,width:te,zIndex:T,afterClose:P,keyboard:N,centered:V,getContainer:j,closable:A,closeIcon:ye,modalRender:Xe,focusTriggerAfterClose:We},{default:()=>[o.createVNode("div",{class:`${ot}-body-wrapper`},[o.createVNode("div",{class:`${ot}-body`},[il(xe),he===void 0?null:o.createVNode("span",{class:`${ot}-title`},[il(he)]),o.createVNode("div",{class:`${ot}-content`},[il(ue)])]),Ne!==void 0?il(Ne):o.createVNode("div",{class:`${ot}-btns`},[so,o.createVNode(AN,{type:ze,actionFn:y,close:w,autofocus:wt==="ok",buttonProps:K,prefixCls:`${Me}-btn`},{default:()=>[il(S)||(xt?Ht.okText:Ht.justOkText)]})])])]})}}}),js=[],eu=i=>{const a=document.createDocumentFragment();let c=q(q({},OT(i,["parentContext","appContext"])),{close:O,open:!0}),f=null;function p(){f&&(o.render(null,a),f=null);for(var A=arguments.length,T=new Array(A),P=0;P<A;P++)T[P]=arguments[P];const N=T.some(V=>V&&V.triggerCancel);i.onCancel&&N&&i.onCancel(()=>{},...T.slice(1));for(let V=0;V<js.length;V++)if(js[V]===O){js.splice(V,1);break}}function O(){for(var A=arguments.length,T=new Array(A),P=0;P<A;P++)T[P]=arguments[P];c=q(q({},c),{open:!1,afterClose:()=>{typeof i.afterClose=="function"&&i.afterClose(),p.apply(this,T)}}),c.visible&&delete c.visible,y(c)}function y(A){typeof A=="function"?c=A(c):c=q(q({},c),A),f&&eY(f,c,a)}const w=A=>{const T=Nn,P=T.prefixCls,N=A.prefixCls||`${P}-modal`,V=T.iconPrefixCls,j=zJ();return o.createVNode(SN,Ke(Ke({},T),{},{prefixCls:P}),{default:()=>[o.createVNode(RN,Ke(Ke({},A),{},{rootPrefixCls:P,prefixCls:N,iconPrefixCls:V,locale:j,cancelText:A.cancelText||j.cancelText}),null)]})};function S(A){const T=o.createVNode(w,q({},A));return T.appContext=i.parentContext||i.appContext||T.appContext,o.render(T,a),T}return f=S(c),js.push(O),{destroy:O,update:y}};function MN(i){return q(q({},i),{type:"warning"})}function QN(i){return q(q({},i),{type:"info"})}function IN(i){return q(q({},i),{type:"success"})}function DN(i){return q(q({},i),{type:"error"})}function BN(i){return q(q({},i),{type:"confirm"})}const eq=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),tq=o.defineComponent({name:"HookModal",inheritAttrs:!1,props:Ic(eq(),{config:{width:520,okType:"primary"}}),setup(i,a){let{expose:c}=a;var f;const p=o.computed(()=>i.open),O=o.computed(()=>i.config),{direction:y,getPrefixCls:w}=Bf(),S=w("modal"),A=w(),T=()=>{var j,z;i?.afterClose(),(z=(j=O.value).afterClose)===null||z===void 0||z.call(j)},P=function(){i.destroyAction(...arguments)};c({destroy:P});const N=(f=O.value.okCancel)!==null&&f!==void 0?f:O.value.type==="confirm",[V]=GO("Modal",vr.Modal);return()=>o.createVNode(RN,Ke(Ke({prefixCls:S,rootPrefixCls:A},O.value),{},{close:P,open:p.value,afterClose:T,okText:O.value.okText||(N?V?.value.okText:V?.value.justOkText),direction:O.value.direction||y.value,cancelText:O.value.cancelText||V?.value.cancelText}),null)}});let VN=0;const nq=o.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(i,a){let{expose:c}=a;const f=o.shallowRef([]);return c({addModal:p=>(f.value.push(p),f.value=f.value.slice(),()=>{f.value=f.value.filter(O=>O!==p)})}),()=>f.value.map(p=>p())}});function oq(){const i=o.shallowRef(null),a=o.shallowRef([]);o.watch(a,()=>{a.value.length&&([...a.value].forEach(O=>{O()}),a.value=[])},{immediate:!0});const c=O=>function(y){var w;VN+=1;const S=o.shallowRef(!0),A=o.shallowRef(null),T=o.shallowRef(o.unref(y)),P=o.shallowRef({});o.watch(()=>y,K=>{z(q(q({},o.isRef(K)?K.value:K),P.value))});const N=function(){S.value=!1;for(var K=arguments.length,H=new Array(K),X=0;X<K;X++)H[X]=arguments[X];const te=H.some(J=>J&&J.triggerCancel);T.value.onCancel&&te&&T.value.onCancel(()=>{},...H.slice(1))};let V;const j=()=>o.createVNode(tq,{key:`modal-${VN}`,config:O(T.value),ref:A,open:S.value,destroyAction:N,afterClose:()=>{V?.()}},null);V=(w=i.value)===null||w===void 0?void 0:w.addModal(j),V&&js.push(V);const z=K=>{T.value=q(q({},T.value),K)};return{destroy:()=>{A.value?N():a.value=[...a.value,N]},update:K=>{P.value=K,A.value?z(K):a.value=[...a.value,()=>z(K)]}}},f=o.computed(()=>({info:c(QN),success:c(IN),error:c(DN),warning:c(MN),confirm:c(BN)})),p=Symbol("modalHolderKey");return[f.value,()=>o.createVNode(nq,{key:p,ref:i},null)]}function LN(i){return eu(MN(i))}yt.useModal=oq,yt.info=function(i){return eu(QN(i))},yt.success=function(i){return eu(IN(i))},yt.error=function(i){return eu(DN(i))},yt.warning=LN,yt.warn=LN,yt.confirm=function(i){return eu(BN(i))},yt.destroyAll=function(){for(;js.length;){const i=js.pop();i&&i()}},yt.install=function(i){return i.component(yt.name,yt),i};/*!
|
|
154
|
+
* shared v10.0.0
|
|
155
|
+
* (c) 2024 kazuya kawaguchi
|
|
156
|
+
* Released under the MIT License.
|
|
157
|
+
*/const Ko=typeof window<"u";let wo,Fs;if(process.env.NODE_ENV!=="production"){const i=Ko&&window.performance;i&&i.mark&&i.measure&&i.clearMarks&&i.clearMeasures&&(wo=a=>{i.mark(a)},Fs=(a,c,f)=>{i.measure(a,c,f),i.clearMarks(c),i.clearMarks(f)})}const iq=/\{([0-9a-zA-Z]+)\}/g;function Oh(i,...a){return a.length===1&&Ot(a[0])&&(a=a[0]),(!a||!a.hasOwnProperty)&&(a={}),i.replace(iq,(c,f)=>a.hasOwnProperty(f)?a[f]:"")}const Pi=(i,a=!1)=>a?Symbol.for(i):Symbol(i),rq=(i,a,c)=>sq({l:i,k:a,s:c}),sq=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ln=i=>typeof i=="number"&&isFinite(i),aq=i=>zN(i)==="[object Date]",rl=i=>zN(i)==="[object RegExp]",vh=i=>lt(i)&&Object.keys(i).length===0,cn=Object.assign;let jN;const Zs=()=>jN||(jN=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ii<"u"?ii:{});function FN(i){return i.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const lq=Object.prototype.hasOwnProperty;function yh(i,a){return lq.call(i,a)}const jt=Array.isArray,kt=i=>typeof i=="function",Ie=i=>typeof i=="string",gt=i=>typeof i=="boolean",Ot=i=>i!==null&&typeof i=="object",cq=i=>Ot(i)&&kt(i.then)&&kt(i.catch),ZN=Object.prototype.toString,zN=i=>ZN.call(i),lt=i=>{if(!Ot(i))return!1;const a=Object.getPrototypeOf(i);return a===null||a.constructor===Object},uq=i=>i==null?"":jt(i)||lt(i)&&i.toString===ZN?JSON.stringify(i,null,2):String(i);function oy(i,a=""){return i.reduce((c,f,p)=>p===0?c+f:c+a+f,"")}const WN=2;function dq(i,a=0,c=i.length){const f=i.split(/\r?\n/);let p=0;const O=[];for(let y=0;y<f.length;y++)if(p+=f[y].length+1,p>=a){for(let w=y-WN;w<=y+WN||c>p;w++){if(w<0||w>=f.length)continue;const S=w+1;O.push(`${S}${" ".repeat(3-String(S).length)}| ${f[w]}`);const A=f[w].length;if(w===y){const T=a-(p-A)+1,P=Math.max(1,c>p?A-T:c-a);O.push(" | "+" ".repeat(T)+"^".repeat(P))}else if(w>y){if(c>p){const T=Math.max(Math.min(c-p,A),1);O.push(" | "+"^".repeat(T))}p+=A+1}}break}return O.join(`
|
|
158
|
+
`)}function Cr(i,a){typeof console<"u"&&(console.warn("[intlify] "+i),a&&console.warn(a.stack))}const UN={};function HN(i){UN[i]||(UN[i]=!0,Cr(i))}function iy(){const i=new Map;return{events:i,on(a,c){const f=i.get(a);f&&f.push(c)||i.set(a,[c])},off(a,c){const f=i.get(a);f&&f.splice(f.indexOf(c)>>>0,1)},emit(a,c){(i.get(a)||[]).slice().map(f=>f(c)),(i.get("*")||[]).slice().map(f=>f(a,c))}}}const bh=i=>!Ot(i)||jt(i);function xh(i,a){if(bh(i)||bh(a))throw new Error("Invalid value");const c=[{src:i,des:a}];for(;c.length;){const{src:f,des:p}=c.pop();Object.keys(f).forEach(O=>{bh(f[O])||bh(p[O])?p[O]=f[O]:c.push({src:f[O],des:p[O]})})}}/*!
|
|
159
|
+
* message-compiler v10.0.0
|
|
160
|
+
* (c) 2024 kazuya kawaguchi
|
|
161
|
+
* Released under the MIT License.
|
|
162
|
+
*/function fq(i,a,c){return{line:i,column:a,offset:c}}function ry(i,a,c){return{start:i,end:a}}const tt={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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},hq=17,pq={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function sl(i,a,c={}){const{domain:f,messages:p,args:O}=c,y=process.env.NODE_ENV!=="production"?Oh((p||pq)[i]||"",...O||[]):i,w=new SyntaxError(String(y));return w.code=i,a&&(w.location=a),w.domain=f,w}function mq(i){throw i}const gq=/<\/?[\w\s="/.':;#-\/]+>/,Oq=i=>gq.test(i),Zi=" ",vq="\r",io=`
|
|
163
|
+
`,yq="\u2028",bq="\u2029";function xq(i){const a=i;let c=0,f=1,p=1,O=0;const y=U=>a[U]===vq&&a[U+1]===io,w=U=>a[U]===io,S=U=>a[U]===bq,A=U=>a[U]===yq,T=U=>y(U)||w(U)||S(U)||A(U),P=()=>c,N=()=>f,V=()=>p,j=()=>O,z=U=>y(U)||S(U)||A(U)?io:a[U],K=()=>z(c),H=()=>z(c+O);function X(){return O=0,T(c)&&(f++,p=0),y(c)&&c++,c++,p++,a[c]}function te(){return y(c+O)&&O++,O++,a[c+O]}function J(){c=0,f=1,p=1,O=0}function se(U=0){O=U}function le(){const U=c+O;for(;U!==c;)X();O=0}return{index:P,line:N,column:V,peekOffset:j,charAt:z,currentChar:K,currentPeek:H,next:X,peek:te,reset:J,resetPeek:se,skipToPeek:le}}const kr=void 0,XN="'",wq="tokenizer";function Sq(i,a={}){const c=a.location!==!1,f=xq(i),p=()=>f.index(),O=()=>fq(f.line(),f.column(),f.index()),y=O(),w=p(),S={currentType:13,offset:w,startLoc:y,endLoc:y,lastType:13,lastOffset:w,lastStartLoc:y,lastEndLoc:y,braceNest:0,inLinked:!1,text:""},A=()=>S,{onError:T}=a;function P(ee,ne,_e,...Je){const at=A();if(ne.column+=_e,ne.offset+=_e,T){const fe=c?ry(at.startLoc,ne):null,Ee=sl(ee,fe,{domain:wq,args:Je});T(Ee)}}function N(ee,ne,_e){ee.endLoc=O(),ee.currentType=ne;const Je={type:ne};return c&&(Je.loc=ry(ee.startLoc,ee.endLoc)),_e!=null&&(Je.value=_e),Je}const V=ee=>N(ee,13);function j(ee,ne){return ee.currentChar()===ne?(ee.next(),ne):(P(tt.EXPECTED_TOKEN,O(),0,ne),"")}function z(ee){let ne="";for(;ee.currentPeek()===Zi||ee.currentPeek()===io;)ne+=ee.currentPeek(),ee.peek();return ne}function K(ee){const ne=z(ee);return ee.skipToPeek(),ne}function H(ee){if(ee===kr)return!1;const ne=ee.charCodeAt(0);return ne>=97&&ne<=122||ne>=65&&ne<=90||ne===95}function X(ee){if(ee===kr)return!1;const ne=ee.charCodeAt(0);return ne>=48&&ne<=57}function te(ee,ne){const{currentType:_e}=ne;if(_e!==2)return!1;z(ee);const Je=H(ee.currentPeek());return ee.resetPeek(),Je}function J(ee,ne){const{currentType:_e}=ne;if(_e!==2)return!1;z(ee);const Je=ee.currentPeek()==="-"?ee.peek():ee.currentPeek(),at=X(Je);return ee.resetPeek(),at}function se(ee,ne){const{currentType:_e}=ne;if(_e!==2)return!1;z(ee);const Je=ee.currentPeek()===XN;return ee.resetPeek(),Je}function le(ee,ne){const{currentType:_e}=ne;if(_e!==7)return!1;z(ee);const Je=ee.currentPeek()===".";return ee.resetPeek(),Je}function U(ee,ne){const{currentType:_e}=ne;if(_e!==8)return!1;z(ee);const Je=H(ee.currentPeek());return ee.resetPeek(),Je}function he(ee,ne){const{currentType:_e}=ne;if(!(_e===7||_e===11))return!1;z(ee);const Je=ee.currentPeek()===":";return ee.resetPeek(),Je}function ue(ee,ne){const{currentType:_e}=ne;if(_e!==9)return!1;const Je=()=>{const fe=ee.currentPeek();return fe==="{"?H(ee.peek()):fe==="@"||fe==="|"||fe===":"||fe==="."||fe===Zi||!fe?!1:fe===io?(ee.peek(),Je()):ye(ee,!1)},at=Je();return ee.resetPeek(),at}function ge(ee){z(ee);const ne=ee.currentPeek()==="|";return ee.resetPeek(),ne}function ye(ee,ne=!0){const _e=(at=!1,fe="")=>{const Ee=ee.currentPeek();return Ee==="{"||Ee==="@"||!Ee?at:Ee==="|"?!(fe===Zi||fe===io):Ee===Zi?(ee.peek(),_e(!0,Zi)):Ee===io?(ee.peek(),_e(!0,io)):!0},Je=_e();return ne&&ee.resetPeek(),Je}function Xe(ee,ne){const _e=ee.currentChar();return _e===kr?kr:ne(_e)?(ee.next(),_e):null}function We(ee){const ne=ee.charCodeAt(0);return ne>=97&&ne<=122||ne>=65&&ne<=90||ne>=48&&ne<=57||ne===95||ne===36}function Me(ee){return Xe(ee,We)}function ie(ee){const ne=ee.charCodeAt(0);return ne>=97&&ne<=122||ne>=65&&ne<=90||ne>=48&&ne<=57||ne===95||ne===36||ne===45}function ce(ee){return Xe(ee,ie)}function Ne(ee){const ne=ee.charCodeAt(0);return ne>=48&&ne<=57}function xe(ee){return Xe(ee,Ne)}function ze(ee){const ne=ee.charCodeAt(0);return ne>=48&&ne<=57||ne>=65&&ne<=70||ne>=97&&ne<=102}function Ye(ee){return Xe(ee,ze)}function ot(ee){let ne="",_e="";for(;ne=xe(ee);)_e+=ne;return _e}function ut(ee){let ne="";for(;;){const _e=ee.currentChar();if(_e==="{"||_e==="}"||_e==="@"||_e==="|"||!_e)break;if(_e===Zi||_e===io)if(ye(ee))ne+=_e,ee.next();else{if(ge(ee))break;ne+=_e,ee.next()}else ne+=_e,ee.next()}return ne}function xt(ee){K(ee);let ne="",_e="";for(;ne=ce(ee);)_e+=ne;return ee.currentChar()===kr&&P(tt.UNTERMINATED_CLOSING_BRACE,O(),0),_e}function wt(ee){K(ee);let ne="";return ee.currentChar()==="-"?(ee.next(),ne+=`-${ot(ee)}`):ne+=ot(ee),ee.currentChar()===kr&&P(tt.UNTERMINATED_CLOSING_BRACE,O(),0),ne}function Tt(ee){return ee!==XN&&ee!==io}function mn(ee){K(ee),j(ee,"'");let ne="",_e="";for(;ne=Xe(ee,Tt);)ne==="\\"?_e+=Ht(ee):_e+=ne;const Je=ee.currentChar();return Je===io||Je===kr?(P(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,O(),0),Je===io&&(ee.next(),j(ee,"'")),_e):(j(ee,"'"),_e)}function Ht(ee){const ne=ee.currentChar();switch(ne){case"\\":case"'":return ee.next(),`\\${ne}`;case"u":return so(ee,ne,4);case"U":return so(ee,ne,6);default:return P(tt.UNKNOWN_ESCAPE_SEQUENCE,O(),0,ne),""}}function so(ee,ne,_e){j(ee,ne);let Je="";for(let at=0;at<_e;at++){const fe=Ye(ee);if(!fe){P(tt.INVALID_UNICODE_ESCAPE_SEQUENCE,O(),0,`\\${ne}${Je}${ee.currentChar()}`);break}Je+=fe}return`\\${ne}${Je}`}function Xt(ee){return ee!=="{"&&ee!=="}"&&ee!==Zi&&ee!==io}function on(ee){K(ee);let ne="",_e="";for(;ne=Xe(ee,Xt);)_e+=ne;return _e}function ao(ee){let ne="",_e="";for(;ne=Me(ee);)_e+=ne;return _e}function ei(ee){const ne=_e=>{const Je=ee.currentChar();return Je==="{"||Je==="@"||Je==="|"||Je==="("||Je===")"||!Je||Je===Zi?_e:(_e+=Je,ee.next(),ne(_e))};return ne("")}function ko(ee){K(ee);const ne=j(ee,"|");return K(ee),ne}function Gs(ee,ne){let _e=null;switch(ee.currentChar()){case"{":return ne.braceNest>=1&&P(tt.NOT_ALLOW_NEST_PLACEHOLDER,O(),0),ee.next(),_e=N(ne,2,"{"),K(ee),ne.braceNest++,_e;case"}":return ne.braceNest>0&&ne.currentType===2&&P(tt.EMPTY_PLACEHOLDER,O(),0),ee.next(),_e=N(ne,3,"}"),ne.braceNest--,ne.braceNest>0&&K(ee),ne.inLinked&&ne.braceNest===0&&(ne.inLinked=!1),_e;case"@":return ne.braceNest>0&&P(tt.UNTERMINATED_CLOSING_BRACE,O(),0),_e=Mr(ee,ne)||V(ne),ne.braceNest=0,_e;default:{let Je=!0,at=!0,fe=!0;if(ge(ee))return ne.braceNest>0&&P(tt.UNTERMINATED_CLOSING_BRACE,O(),0),_e=N(ne,1,ko(ee)),ne.braceNest=0,ne.inLinked=!1,_e;if(ne.braceNest>0&&(ne.currentType===4||ne.currentType===5||ne.currentType===6))return P(tt.UNTERMINATED_CLOSING_BRACE,O(),0),ne.braceNest=0,Ks(ee,ne);if(Je=te(ee,ne))return _e=N(ne,4,xt(ee)),K(ee),_e;if(at=J(ee,ne))return _e=N(ne,5,wt(ee)),K(ee),_e;if(fe=se(ee,ne))return _e=N(ne,6,mn(ee)),K(ee),_e;if(!Je&&!at&&!fe)return _e=N(ne,12,on(ee)),P(tt.INVALID_TOKEN_IN_PLACEHOLDER,O(),0,_e.value),K(ee),_e;break}}return _e}function Mr(ee,ne){const{currentType:_e}=ne;let Je=null;const at=ee.currentChar();switch((_e===7||_e===8||_e===11||_e===9)&&(at===io||at===Zi)&&P(tt.INVALID_LINKED_FORMAT,O(),0),at){case"@":return ee.next(),Je=N(ne,7,"@"),ne.inLinked=!0,Je;case".":return K(ee),ee.next(),N(ne,8,".");case":":return K(ee),ee.next(),N(ne,9,":");default:return ge(ee)?(Je=N(ne,1,ko(ee)),ne.braceNest=0,ne.inLinked=!1,Je):le(ee,ne)||he(ee,ne)?(K(ee),Mr(ee,ne)):U(ee,ne)?(K(ee),N(ne,11,ao(ee))):ue(ee,ne)?(K(ee),at==="{"?Gs(ee,ne)||Je:N(ne,10,ei(ee))):(_e===7&&P(tt.INVALID_LINKED_FORMAT,O(),0),ne.braceNest=0,ne.inLinked=!1,Ks(ee,ne))}}function Ks(ee,ne){let _e={type:13};if(ne.braceNest>0)return Gs(ee,ne)||V(ne);if(ne.inLinked)return Mr(ee,ne)||V(ne);switch(ee.currentChar()){case"{":return Gs(ee,ne)||V(ne);case"}":return P(tt.UNBALANCED_CLOSING_BRACE,O(),0),ee.next(),N(ne,3,"}");case"@":return Mr(ee,ne)||V(ne);default:{if(ge(ee))return _e=N(ne,1,ko(ee)),ne.braceNest=0,ne.inLinked=!1,_e;if(ye(ee))return N(ne,0,ut(ee));break}}return _e}function pu(){const{currentType:ee,offset:ne,startLoc:_e,endLoc:Je}=S;return S.lastType=ee,S.lastOffset=ne,S.lastStartLoc=_e,S.lastEndLoc=Je,S.offset=p(),S.startLoc=O(),f.currentChar()===kr?N(S,13):Ks(f,S)}return{nextToken:pu,currentOffset:p,currentPosition:O,context:A}}const Cq="parser",kq=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Pq(i,a,c){switch(i){case"\\\\":return"\\";case"\\'":return"'";default:{const f=parseInt(a||c,16);return f<=55295||f>=57344?String.fromCodePoint(f):"�"}}}function Eq(i={}){const a=i.location!==!1,{onError:c}=i;function f(H,X,te,J,...se){const le=H.currentPosition();if(le.offset+=J,le.column+=J,c){const U=a?ry(te,le):null,he=sl(X,U,{domain:Cq,args:se});c(he)}}function p(H,X,te){const J={type:H};return a&&(J.start=X,J.end=X,J.loc={start:te,end:te}),J}function O(H,X,te,J){a&&(H.end=X,H.loc&&(H.loc.end=te))}function y(H,X){const te=H.context(),J=p(3,te.offset,te.startLoc);return J.value=X,O(J,H.currentOffset(),H.currentPosition()),J}function w(H,X){const te=H.context(),{lastOffset:J,lastStartLoc:se}=te,le=p(5,J,se);return le.index=parseInt(X,10),H.nextToken(),O(le,H.currentOffset(),H.currentPosition()),le}function S(H,X){const te=H.context(),{lastOffset:J,lastStartLoc:se}=te,le=p(4,J,se);return le.key=X,H.nextToken(),O(le,H.currentOffset(),H.currentPosition()),le}function A(H,X){const te=H.context(),{lastOffset:J,lastStartLoc:se}=te,le=p(9,J,se);return le.value=X.replace(kq,Pq),H.nextToken(),O(le,H.currentOffset(),H.currentPosition()),le}function T(H){const X=H.nextToken(),te=H.context(),{lastOffset:J,lastStartLoc:se}=te,le=p(8,J,se);return X.type!==11?(f(H,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,te.lastStartLoc,0),le.value="",O(le,J,se),{nextConsumeToken:X,node:le}):(X.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,te.lastStartLoc,0,Ei(X)),le.value=X.value||"",O(le,H.currentOffset(),H.currentPosition()),{node:le})}function P(H,X){const te=H.context(),J=p(7,te.offset,te.startLoc);return J.value=X,O(J,H.currentOffset(),H.currentPosition()),J}function N(H){const X=H.context(),te=p(6,X.offset,X.startLoc);let J=H.nextToken();if(J.type===8){const se=T(H);te.modifier=se.node,J=se.nextConsumeToken||H.nextToken()}switch(J.type!==9&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(J)),J=H.nextToken(),J.type===2&&(J=H.nextToken()),J.type){case 10:J.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(J)),te.key=P(H,J.value||"");break;case 4:J.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(J)),te.key=S(H,J.value||"");break;case 5:J.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(J)),te.key=w(H,J.value||"");break;case 6:J.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(J)),te.key=A(H,J.value||"");break;default:{f(H,tt.UNEXPECTED_EMPTY_LINKED_KEY,X.lastStartLoc,0);const se=H.context(),le=p(7,se.offset,se.startLoc);return le.value="",O(le,se.offset,se.startLoc),te.key=le,O(te,se.offset,se.startLoc),{nextConsumeToken:J,node:te}}}return O(te,H.currentOffset(),H.currentPosition()),{node:te}}function V(H){const X=H.context(),te=X.currentType===1?H.currentOffset():X.offset,J=X.currentType===1?X.endLoc:X.startLoc,se=p(2,te,J);se.items=[];let le=null;do{const ue=le||H.nextToken();switch(le=null,ue.type){case 0:ue.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(ue)),se.items.push(y(H,ue.value||""));break;case 5:ue.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(ue)),se.items.push(w(H,ue.value||""));break;case 4:ue.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(ue)),se.items.push(S(H,ue.value||""));break;case 6:ue.value==null&&f(H,tt.UNEXPECTED_LEXICAL_ANALYSIS,X.lastStartLoc,0,Ei(ue)),se.items.push(A(H,ue.value||""));break;case 7:{const ge=N(H);se.items.push(ge.node),le=ge.nextConsumeToken||null;break}}}while(X.currentType!==13&&X.currentType!==1);const U=X.currentType===1?X.lastOffset:H.currentOffset(),he=X.currentType===1?X.lastEndLoc:H.currentPosition();return O(se,U,he),se}function j(H,X,te,J){const se=H.context();let le=J.items.length===0;const U=p(1,X,te);U.cases=[],U.cases.push(J);do{const he=V(H);le||(le=he.items.length===0),U.cases.push(he)}while(se.currentType!==13);return le&&f(H,tt.MUST_HAVE_MESSAGES_IN_PLURAL,te,0),O(U,H.currentOffset(),H.currentPosition()),U}function z(H){const X=H.context(),{offset:te,startLoc:J}=X,se=V(H);return X.currentType===13?se:j(H,te,J,se)}function K(H){const X=Sq(H,cn({},i)),te=X.context(),J=p(0,te.offset,te.startLoc);return a&&J.loc&&(J.loc.source=H),J.body=z(X),i.onCacheKey&&(J.cacheKey=i.onCacheKey(H)),te.currentType!==13&&f(X,tt.UNEXPECTED_LEXICAL_ANALYSIS,te.lastStartLoc,0,H[te.offset]||""),O(J,X.currentOffset(),X.currentPosition()),J}return{parse:K}}function Ei(i){if(i.type===13)return"EOF";const a=(i.value||"").replace(/\r?\n/gu,"\\n");return a.length>10?a.slice(0,9)+"…":a}function Tq(i,a={}){const c={ast:i,helpers:new Set};return{context:()=>c,helper:f=>(c.helpers.add(f),f)}}function YN(i,a){for(let c=0;c<i.length;c++)sy(i[c],a)}function sy(i,a){switch(i.type){case 1:YN(i.cases,a),a.helper("plural");break;case 2:YN(i.items,a);break;case 6:{sy(i.key,a),a.helper("linked"),a.helper("type");break}case 5:a.helper("interpolate"),a.helper("list");break;case 4:a.helper("interpolate"),a.helper("named");break}}function _q(i,a={}){const c=Tq(i);c.helper("normalize"),i.body&&sy(i.body,c);const f=c.context();i.helpers=Array.from(f.helpers)}function Nq(i){const a=i.body;return a.type===2?GN(a):a.cases.forEach(c=>GN(c)),i}function GN(i){if(i.items.length===1){const a=i.items[0];(a.type===3||a.type===9)&&(i.static=a.value,delete a.value)}else{const a=[];for(let c=0;c<i.items.length;c++){const f=i.items[c];if(!(f.type===3||f.type===9)||f.value==null)break;a.push(f.value)}if(a.length===i.items.length){i.static=oy(a);for(let c=0;c<i.items.length;c++){const f=i.items[c];(f.type===3||f.type===9)&&delete f.value}}}}const Aq="minifier";function al(i){switch(i.t=i.type,i.type){case 0:{const a=i;al(a.body),a.b=a.body,delete a.body;break}case 1:{const a=i,c=a.cases;for(let f=0;f<c.length;f++)al(c[f]);a.c=c,delete a.cases;break}case 2:{const a=i,c=a.items;for(let f=0;f<c.length;f++)al(c[f]);a.i=c,delete a.items,a.static&&(a.s=a.static,delete a.static);break}case 3:case 9:case 8:case 7:{const a=i;a.value&&(a.v=a.value,delete a.value);break}case 6:{const a=i;al(a.key),a.k=a.key,delete a.key,a.modifier&&(al(a.modifier),a.m=a.modifier,delete a.modifier);break}case 5:{const a=i;a.i=a.index,delete a.index;break}case 4:{const a=i;a.k=a.key,delete a.key;break}default:if(process.env.NODE_ENV!=="production")throw sl(tt.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Aq,args:[i.type]})}delete i.type}const Rq="parser";function Mq(i,a){const{sourceMap:c,filename:f,breakLineCode:p,needIndent:O}=a,y=a.location!==!1,w={filename:f,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:p,needIndent:O,indentLevel:0};y&&i.loc&&(w.source=i.loc.source);const S=()=>w;function A(j,z){w.code+=j}function T(j,z=!0){const K=z?p:"";A(O?K+" ".repeat(j):K)}function P(j=!0){const z=++w.indentLevel;j&&T(z)}function N(j=!0){const z=--w.indentLevel;j&&T(z)}function V(){T(w.indentLevel)}return{context:S,push:A,indent:P,deindent:N,newline:V,helper:j=>`_${j}`,needIndent:()=>w.needIndent}}function Qq(i,a){const{helper:c}=i;i.push(`${c("linked")}(`),ll(i,a.key),a.modifier?(i.push(", "),ll(i,a.modifier),i.push(", _type")):i.push(", undefined, _type"),i.push(")")}function Iq(i,a){const{helper:c,needIndent:f}=i;i.push(`${c("normalize")}([`),i.indent(f());const p=a.items.length;for(let O=0;O<p&&(ll(i,a.items[O]),O!==p-1);O++)i.push(", ");i.deindent(f()),i.push("])")}function Dq(i,a){const{helper:c,needIndent:f}=i;if(a.cases.length>1){i.push(`${c("plural")}([`),i.indent(f());const p=a.cases.length;for(let O=0;O<p&&(ll(i,a.cases[O]),O!==p-1);O++)i.push(", ");i.deindent(f()),i.push("])")}}function Bq(i,a){a.body?ll(i,a.body):i.push("null")}function ll(i,a){const{helper:c}=i;switch(a.type){case 0:Bq(i,a);break;case 1:Dq(i,a);break;case 2:Iq(i,a);break;case 6:Qq(i,a);break;case 8:i.push(JSON.stringify(a.value),a);break;case 7:i.push(JSON.stringify(a.value),a);break;case 5:i.push(`${c("interpolate")}(${c("list")}(${a.index}))`,a);break;case 4:i.push(`${c("interpolate")}(${c("named")}(${JSON.stringify(a.key)}))`,a);break;case 9:i.push(JSON.stringify(a.value),a);break;case 3:i.push(JSON.stringify(a.value),a);break;default:if(process.env.NODE_ENV!=="production")throw sl(tt.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Rq,args:[a.type]})}}const Vq=(i,a={})=>{const c=Ie(a.mode)?a.mode:"normal",f=Ie(a.filename)?a.filename:"message.intl",p=!!a.sourceMap,O=a.breakLineCode!=null?a.breakLineCode:c==="arrow"?";":`
|
|
164
|
+
`,y=a.needIndent?a.needIndent:c!=="arrow",w=i.helpers||[],S=Mq(i,{mode:c,filename:f,sourceMap:p,breakLineCode:O,needIndent:y});S.push(c==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),S.indent(y),w.length>0&&(S.push(`const { ${oy(w.map(P=>`${P}: _${P}`),", ")} } = ctx`),S.newline()),S.push("return "),ll(S,i),S.deindent(y),S.push("}"),delete i.helpers;const{code:A,map:T}=S.context();return{ast:i,code:A,map:T?T.toJSON():void 0}};function Lq(i,a={}){const c=cn({},a),f=!!c.jit,p=!!c.minify,O=c.optimize==null?!0:c.optimize,y=Eq(c).parse(i);return f?(O&&Nq(y),p&&al(y),{ast:y,code:""}):(_q(y,c),Vq(y,c))}/*!
|
|
165
|
+
* core-base v10.0.0
|
|
166
|
+
* (c) 2024 kazuya kawaguchi
|
|
167
|
+
* Released under the MIT License.
|
|
168
|
+
*/function jq(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ay(i){return a=>Fq(a,i)}function Fq(i,a){const c=a.b||a.body;if((c.t||c.type)===1){const f=c,p=f.c||f.cases;return i.plural(p.reduce((O,y)=>[...O,KN(i,y)],[]))}else return KN(i,c)}function KN(i,a){const c=a.s||a.static;if(c)return i.type==="text"?c:i.normalize([c]);{const f=(a.i||a.items).reduce((p,O)=>[...p,ly(i,O)],[]);return i.normalize(f)}}function ly(i,a){const c=a.t||a.type;switch(c){case 3:{const f=a;return f.v||f.value}case 9:{const f=a;return f.v||f.value}case 4:{const f=a;return i.interpolate(i.named(f.k||f.key))}case 5:{const f=a;return i.interpolate(i.list(f.i!=null?f.i:f.index))}case 6:{const f=a,p=f.m||f.modifier;return i.linked(ly(i,f.k||f.key),p?ly(i,p):void 0,i.type)}case 7:{const f=a;return f.v||f.value}case 8:{const f=a;return f.v||f.value}default:throw new Error(`unhandled node type on format message part: ${c}`)}}const Zq="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function zq(i,a){a&&Oq(i)&&Cr(Oh(Zq,{source:i}))}const Wq=i=>i;let wh=Object.create(null);const Pr=i=>Ot(i)&&(i.t===0||i.type===0)&&("b"in i||"body"in i);function Uq(i,a={}){let c=!1;const f=a.onError||mq;return a.onError=p=>{c=!0,f(p)},{...Lq(i,a),detectError:c}}function Hq(i,a){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ie(i)){const c=gt(a.warnHtmlMessage)?a.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&zq(i,c);const f=(a.onCacheKey||Wq)(i),p=wh[f];if(p)return p;const{ast:O,detectError:y}=Uq(i,{...a,location:process.env.NODE_ENV!=="production",jit:!0}),w=ay(O);return y?w:wh[f]=w}else{if(process.env.NODE_ENV!=="production"&&!Pr(i))return Cr(`the message that is resolve with key '${a.key}' is not supported for jit compilation`),()=>i;const c=i.cacheKey;return c?wh[c]||(wh[c]=ay(i)):ay(i)}}let tu=null;function Xq(i){tu=i}function Yq(i,a,c){tu&&tu.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:a,meta:c})}const Gq=Kq("function:translate");function Kq(i){return a=>tu&&tu.emit(i,a)}const Bn={INVALID_ARGUMENT:hq,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Jq=24;function zi(i){return sl(i,null,process.env.NODE_ENV!=="production"?{messages:$q}:void 0)}const $q={[Bn.INVALID_ARGUMENT]:"Invalid arguments",[Bn.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Bn.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Bn.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Bn.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Bn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Bn.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function cy(i,a){return a.locale!=null?JN(a.locale):JN(i.locale)}let uy;function JN(i){if(Ie(i))return i;if(kt(i)){if(i.resolvedOnce&&uy!=null)return uy;if(i.constructor.name==="Function"){const a=i();if(cq(a))throw zi(Bn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return uy=a}else throw zi(Bn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw zi(Bn.NOT_SUPPORT_LOCALE_TYPE)}function qq(i,a,c){return[...new Set([c,...jt(a)?a:Ot(a)?Object.keys(a):Ie(a)?[a]:[c]])]}function $N(i,a,c){const f=Ie(c)?c:nu,p=i;p.__localeChainCache||(p.__localeChainCache=new Map);let O=p.__localeChainCache.get(f);if(!O){O=[];let y=[c];for(;jt(y);)y=qN(O,y,a);const w=jt(a)||!lt(a)?a:a.default?a.default:null;y=Ie(w)?[w]:w,jt(y)&&qN(O,y,!1),p.__localeChainCache.set(f,O)}return O}function qN(i,a,c){let f=!0;for(let p=0;p<a.length&>(f);p++){const O=a[p];Ie(O)&&(f=eee(i,a[p],c))}return f}function eee(i,a,c){let f;const p=a.split("-");do{const O=p.join("-");f=tee(i,O,c),p.splice(-1,1)}while(p.length&&f===!0);return f}function tee(i,a,c){let f=!1;if(!i.includes(a)&&(f=!0,a)){f=a[a.length-1]!=="!";const p=a.replace(/!/g,"");i.push(p),(jt(c)||lt(c))&&c[p]&&(f=c[p])}return f}const Er=[];Er[0]={w:[0],i:[3,0],"[":[4],o:[7]},Er[1]={w:[1],".":[2],"[":[4],o:[7]},Er[2]={w:[2],i:[3,0],0:[3,0]},Er[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Er[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Er[5]={"'":[4,0],o:8,l:[5,0]},Er[6]={'"':[4,0],o:8,l:[6,0]};const nee=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function oee(i){return nee.test(i)}function iee(i){const a=i.charCodeAt(0),c=i.charCodeAt(i.length-1);return a===c&&(a===34||a===39)?i.slice(1,-1):i}function ree(i){if(i==null)return"o";switch(i.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return i;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 see(i){const a=i.trim();return i.charAt(0)==="0"&&isNaN(parseInt(i))?!1:oee(a)?iee(a):"*"+a}function aee(i){const a=[];let c=-1,f=0,p=0,O,y,w,S,A,T,P;const N=[];N[0]=()=>{y===void 0?y=w:y+=w},N[1]=()=>{y!==void 0&&(a.push(y),y=void 0)},N[2]=()=>{N[0](),p++},N[3]=()=>{if(p>0)p--,f=4,N[0]();else{if(p=0,y===void 0||(y=see(y),y===!1))return!1;N[1]()}};function V(){const j=i[c+1];if(f===5&&j==="'"||f===6&&j==='"')return c++,w="\\"+j,N[0](),!0}for(;f!==null;)if(c++,O=i[c],!(O==="\\"&&V())){if(S=ree(O),P=Er[f],A=P[S]||P.l||8,A===8||(f=A[0],A[1]!==void 0&&(T=N[A[1]],T&&(w=O,T()===!1))))return;if(f===7)return a}}const eA=new Map;function lee(i,a){return Ot(i)?i[a]:null}function cee(i,a){if(!Ot(i))return null;let c=eA.get(a);if(c||(c=aee(a),c&&eA.set(a,c)),!c)return null;const f=c.length;let p=i,O=0;for(;O<f;){const y=p[c[O]];if(y===void 0||kt(p))return null;p=y,O++}return p}const ro={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},uee=8,dee={[ro.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ro.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ro.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ro.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ro.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ro.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ro.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function zs(i,...a){return Oh(dee[i],...a)}const fee="10.0.0",Sh=-1,nu="en-US",Ch="",tA=i=>`${i.charAt(0).toLocaleUpperCase()}${i.substr(1)}`;function hee(){return{upper:(i,a)=>a==="text"&&Ie(i)?i.toUpperCase():a==="vnode"&&Ot(i)&&"__v_isVNode"in i?i.children.toUpperCase():i,lower:(i,a)=>a==="text"&&Ie(i)?i.toLowerCase():a==="vnode"&&Ot(i)&&"__v_isVNode"in i?i.children.toLowerCase():i,capitalize:(i,a)=>a==="text"&&Ie(i)?tA(i):a==="vnode"&&Ot(i)&&"__v_isVNode"in i?tA(i.children):i}}let nA;function pee(i){nA=i}let oA;function mee(i){oA=i}let iA;function gee(i){iA=i}let rA=null;const sA=i=>{rA=i},Oee=()=>rA;let aA=0;function vee(i={}){const a=kt(i.onWarn)?i.onWarn:Cr,c=Ie(i.version)?i.version:fee,f=Ie(i.locale)||kt(i.locale)?i.locale:nu,p=kt(f)?nu:f,O=jt(i.fallbackLocale)||lt(i.fallbackLocale)||Ie(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:p,y=lt(i.messages)?i.messages:{[p]:{}},w=lt(i.datetimeFormats)?i.datetimeFormats:{[p]:{}},S=lt(i.numberFormats)?i.numberFormats:{[p]:{}},A=cn({},i.modifiers||{},hee()),T=i.pluralRules||{},P=kt(i.missing)?i.missing:null,N=gt(i.missingWarn)||rl(i.missingWarn)?i.missingWarn:!0,V=gt(i.fallbackWarn)||rl(i.fallbackWarn)?i.fallbackWarn:!0,j=!!i.fallbackFormat,z=!!i.unresolving,K=kt(i.postTranslation)?i.postTranslation:null,H=lt(i.processor)?i.processor:null,X=gt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,te=!!i.escapeParameter,J=kt(i.messageCompiler)?i.messageCompiler:nA;process.env.NODE_ENV!=="production"&&kt(i.messageCompiler)&&HN(zs(ro.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const se=kt(i.messageResolver)?i.messageResolver:oA||lee,le=kt(i.localeFallbacker)?i.localeFallbacker:iA||qq,U=Ot(i.fallbackContext)?i.fallbackContext:void 0,he=i,ue=Ot(he.__datetimeFormatters)?he.__datetimeFormatters:new Map,ge=Ot(he.__numberFormatters)?he.__numberFormatters:new Map,ye=Ot(he.__meta)?he.__meta:{};aA++;const Xe={version:c,cid:aA,locale:f,fallbackLocale:O,messages:y,modifiers:A,pluralRules:T,missing:P,missingWarn:N,fallbackWarn:V,fallbackFormat:j,unresolving:z,postTranslation:K,processor:H,warnHtmlMessage:X,escapeParameter:te,messageCompiler:J,messageResolver:se,localeFallbacker:le,fallbackContext:U,onWarn:a,__meta:ye};return Xe.datetimeFormats=w,Xe.numberFormats=S,Xe.__datetimeFormatters=ue,Xe.__numberFormatters=ge,process.env.NODE_ENV!=="production"&&(Xe.__v_emitter=he.__v_emitter!=null?he.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Yq(Xe,c,ye),Xe}function kh(i,a){return i instanceof RegExp?i.test(a):i}function lA(i,a){return i instanceof RegExp?i.test(a):i}function dy(i,a,c,f,p){const{missing:O,onWarn:y}=i;if(process.env.NODE_ENV!=="production"){const w=i.__v_emitter;w&&w.emit("missing",{locale:c,key:a,type:p,groupId:`${p}:${a}`})}if(O!==null){const w=O(i,c,a,p);return Ie(w)?w:a}else return process.env.NODE_ENV!=="production"&&lA(f,a)&&y(zs(ro.NOT_FOUND_KEY,{key:a,locale:c})),a}function ou(i,a,c){const f=i;f.__localeChainCache=new Map,i.localeFallbacker(i,c,a)}function cA(i,a){return i===a?!1:i.split("-")[0]===a.split("-")[0]}function yee(i,a){const c=a.indexOf(i);if(c===-1)return!1;for(let f=c+1;f<a.length;f++)if(cA(i,a[f]))return!0;return!1}const uA=typeof Intl<"u",dA={dateTimeFormat:uA&&typeof Intl.DateTimeFormat<"u",numberFormat:uA&&typeof Intl.NumberFormat<"u"};function fA(i,...a){const{datetimeFormats:c,unresolving:f,fallbackLocale:p,onWarn:O,localeFallbacker:y}=i,{__datetimeFormatters:w}=i;if(process.env.NODE_ENV!=="production"&&!dA.dateTimeFormat)return O(zs(ro.CANNOT_FORMAT_DATE)),Ch;const[S,A,T,P]=fy(...a),N=gt(T.missingWarn)?T.missingWarn:i.missingWarn,V=gt(T.fallbackWarn)?T.fallbackWarn:i.fallbackWarn,j=!!T.part,z=cy(i,T),K=y(i,p,z);if(!Ie(S)||S==="")return new Intl.DateTimeFormat(z,P).format(A);let H={},X,te=null,J=z,se=null;const le="datetime format";for(let ue=0;ue<K.length;ue++){if(X=se=K[ue],process.env.NODE_ENV!=="production"&&z!==X&&kh(V,S)&&O(zs(ro.FALLBACK_TO_DATE_FORMAT,{key:S,target:X})),process.env.NODE_ENV!=="production"&&z!==X){const ge=i.__v_emitter;ge&&ge.emit("fallback",{type:le,key:S,from:J,to:se,groupId:`${le}:${S}`})}if(H=c[X]||{},te=H[S],lt(te))break;dy(i,S,X,N,le),J=se}if(!lt(te)||!Ie(X))return f?Sh:S;let U=`${X}__${S}`;vh(P)||(U=`${U}__${JSON.stringify(P)}`);let he=w.get(U);return he||(he=new Intl.DateTimeFormat(X,cn({},te,P)),w.set(U,he)),j?he.formatToParts(A):he.format(A)}const hA=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fy(...i){const[a,c,f,p]=i,O={};let y={},w;if(Ie(a)){const S=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!S)throw zi(Bn.INVALID_ISO_DATE_ARGUMENT);const A=S[3]?S[3].trim().startsWith("T")?`${S[1].trim()}${S[3].trim()}`:`${S[1].trim()}T${S[3].trim()}`:S[1].trim();w=new Date(A);try{w.toISOString()}catch{throw zi(Bn.INVALID_ISO_DATE_ARGUMENT)}}else if(aq(a)){if(isNaN(a.getTime()))throw zi(Bn.INVALID_DATE_ARGUMENT);w=a}else if(ln(a))w=a;else throw zi(Bn.INVALID_ARGUMENT);return Ie(c)?O.key=c:lt(c)&&Object.keys(c).forEach(S=>{hA.includes(S)?y[S]=c[S]:O[S]=c[S]}),Ie(f)?O.locale=f:lt(f)&&(y=f),lt(p)&&(y=p),[O.key||"",w,O,y]}function pA(i,a,c){const f=i;for(const p in c){const O=`${a}__${p}`;f.__datetimeFormatters.has(O)&&f.__datetimeFormatters.delete(O)}}function mA(i,...a){const{numberFormats:c,unresolving:f,fallbackLocale:p,onWarn:O,localeFallbacker:y}=i,{__numberFormatters:w}=i;if(process.env.NODE_ENV!=="production"&&!dA.numberFormat)return O(zs(ro.CANNOT_FORMAT_NUMBER)),Ch;const[S,A,T,P]=hy(...a),N=gt(T.missingWarn)?T.missingWarn:i.missingWarn,V=gt(T.fallbackWarn)?T.fallbackWarn:i.fallbackWarn,j=!!T.part,z=cy(i,T),K=y(i,p,z);if(!Ie(S)||S==="")return new Intl.NumberFormat(z,P).format(A);let H={},X,te=null,J=z,se=null;const le="number format";for(let ue=0;ue<K.length;ue++){if(X=se=K[ue],process.env.NODE_ENV!=="production"&&z!==X&&kh(V,S)&&O(zs(ro.FALLBACK_TO_NUMBER_FORMAT,{key:S,target:X})),process.env.NODE_ENV!=="production"&&z!==X){const ge=i.__v_emitter;ge&&ge.emit("fallback",{type:le,key:S,from:J,to:se,groupId:`${le}:${S}`})}if(H=c[X]||{},te=H[S],lt(te))break;dy(i,S,X,N,le),J=se}if(!lt(te)||!Ie(X))return f?Sh:S;let U=`${X}__${S}`;vh(P)||(U=`${U}__${JSON.stringify(P)}`);let he=w.get(U);return he||(he=new Intl.NumberFormat(X,cn({},te,P)),w.set(U,he)),j?he.formatToParts(A):he.format(A)}const gA=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function hy(...i){const[a,c,f,p]=i,O={};let y={};if(!ln(a))throw zi(Bn.INVALID_ARGUMENT);const w=a;return Ie(c)?O.key=c:lt(c)&&Object.keys(c).forEach(S=>{gA.includes(S)?y[S]=c[S]:O[S]=c[S]}),Ie(f)?O.locale=f:lt(f)&&(y=f),lt(p)&&(y=p),[O.key||"",w,O,y]}function OA(i,a,c){const f=i;for(const p in c){const O=`${a}__${p}`;f.__numberFormatters.has(O)&&f.__numberFormatters.delete(O)}}const bee=i=>i,xee=i=>"",wee="text",See=i=>i.length===0?"":oy(i),Cee=uq;function vA(i,a){return i=Math.abs(i),a===2?i?i>1?1:0:1:i?Math.min(i,2):0}function kee(i){const a=ln(i.pluralIndex)?i.pluralIndex:-1;return i.named&&(ln(i.named.count)||ln(i.named.n))?ln(i.named.count)?i.named.count:ln(i.named.n)?i.named.n:a:a}function Pee(i,a){a.count||(a.count=i),a.n||(a.n=i)}function Eee(i={}){const a=i.locale,c=kee(i),f=Ot(i.pluralRules)&&Ie(a)&&kt(i.pluralRules[a])?i.pluralRules[a]:vA,p=Ot(i.pluralRules)&&Ie(a)&&kt(i.pluralRules[a])?vA:void 0,O=K=>K[f(c,K.length,p)],y=i.list||[],w=K=>y[K],S=i.named||{};ln(i.pluralIndex)&&Pee(c,S);const A=K=>S[K];function T(K,H){return(kt(i.messages)?i.messages(K,!!H):Ot(i.messages)?i.messages[K]:!1)||(i.parent?i.parent.message(K):xee)}const P=K=>i.modifiers?i.modifiers[K]:bee,N=lt(i.processor)&&kt(i.processor.normalize)?i.processor.normalize:See,V=lt(i.processor)&&kt(i.processor.interpolate)?i.processor.interpolate:Cee,j=lt(i.processor)&&Ie(i.processor.type)?i.processor.type:wee,z={list:w,named:A,plural:O,linked:(K,...H)=>{const[X,te]=H;let J="text",se="";H.length===1?Ot(X)?(se=X.modifier||se,J=X.type||J):Ie(X)&&(se=X||se):H.length===2&&(Ie(X)&&(se=X||se),Ie(te)&&(J=te||J));const le=T(K,!0)(z),U=J==="vnode"&&jt(le)&&se?le[0]:le;return se?P(se)(U,J):U},message:T,type:j,interpolate:V,normalize:N,values:cn({},y,S)};return z}const yA=()=>"",Jo=i=>kt(i);function bA(i,...a){const{fallbackFormat:c,postTranslation:f,unresolving:p,messageCompiler:O,fallbackLocale:y,messages:w}=i,[S,A]=py(...a),T=gt(A.missingWarn)?A.missingWarn:i.missingWarn,P=gt(A.fallbackWarn)?A.fallbackWarn:i.fallbackWarn,N=gt(A.escapeParameter)?A.escapeParameter:i.escapeParameter,V=!!A.resolvedMessage,j=Ie(A.default)||gt(A.default)?gt(A.default)?O?S:()=>S:A.default:c?O?S:()=>S:null,z=c||j!=null&&(Ie(j)||kt(j)),K=cy(i,A);N&&Tee(A);let[H,X,te]=V?[S,K,w[K]||{}]:xA(i,S,K,y,P,T),J=H,se=S;if(!V&&!(Ie(J)||Pr(J)||Jo(J))&&z&&(J=j,se=J),!V&&(!(Ie(J)||Pr(J)||Jo(J))||!Ie(X)))return p?Sh:S;if(process.env.NODE_ENV!=="production"&&Ie(J)&&i.messageCompiler==null)return Cr(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${S}'.`),S;let le=!1;const U=()=>{le=!0},he=Jo(J)?J:wA(i,S,X,J,se,U);if(le)return J;const ue=Ree(i,X,te,A),ge=Eee(ue),ye=_ee(i,he,ge),Xe=f?f(ye,S):ye;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const We={timestamp:Date.now(),key:Ie(S)?S:Jo(J)?J.key:"",locale:X||(Jo(J)?J.locale:""),format:Ie(J)?J:Jo(J)?J.source:"",message:Xe};We.meta=cn({},i.__meta,{}),Gq(We)}return Xe}function Tee(i){jt(i.list)?i.list=i.list.map(a=>Ie(a)?FN(a):a):Ot(i.named)&&Object.keys(i.named).forEach(a=>{Ie(i.named[a])&&(i.named[a]=FN(i.named[a]))})}function xA(i,a,c,f,p,O){const{messages:y,onWarn:w,messageResolver:S,localeFallbacker:A}=i,T=A(i,f,c);let P={},N,V=null,j=c,z=null;const K="translate";for(let H=0;H<T.length;H++){if(N=z=T[H],process.env.NODE_ENV!=="production"&&c!==N&&!cA(c,N)&&kh(p,a)&&w(zs(ro.FALLBACK_TO_TRANSLATE,{key:a,target:N})),process.env.NODE_ENV!=="production"&&c!==N){const se=i.__v_emitter;se&&se.emit("fallback",{type:K,key:a,from:j,to:z,groupId:`${K}:${a}`})}P=y[N]||{};let X=null,te,J;if(process.env.NODE_ENV!=="production"&&Ko&&(X=window.performance.now(),te="intlify-message-resolve-start",J="intlify-message-resolve-end",wo&&wo(te)),(V=S(P,a))===null&&(V=P[a]),process.env.NODE_ENV!=="production"&&Ko){const se=window.performance.now(),le=i.__v_emitter;le&&X&&V&&le.emit("message-resolve",{type:"message-resolve",key:a,message:V,time:se-X,groupId:`${K}:${a}`}),te&&J&&wo&&Fs&&(wo(J),Fs("intlify message resolve",te,J))}if(Ie(V)||Pr(V)||Jo(V))break;if(!yee(N,T)){const se=dy(i,a,N,O,K);se!==a&&(V=se)}j=z}return[V,N,P]}function wA(i,a,c,f,p,O){const{messageCompiler:y,warnHtmlMessage:w}=i;if(Jo(f)){const N=f;return N.locale=N.locale||c,N.key=N.key||a,N}if(y==null){const N=()=>f;return N.locale=c,N.key=a,N}let S=null,A,T;process.env.NODE_ENV!=="production"&&Ko&&(S=window.performance.now(),A="intlify-message-compilation-start",T="intlify-message-compilation-end",wo&&wo(A));const P=y(f,Nee(i,c,p,f,w,O));if(process.env.NODE_ENV!=="production"&&Ko){const N=window.performance.now(),V=i.__v_emitter;V&&S&&V.emit("message-compilation",{type:"message-compilation",message:f,time:N-S,groupId:`translate:${a}`}),A&&T&&wo&&Fs&&(wo(T),Fs("intlify message compilation",A,T))}return P.locale=c,P.key=a,P.source=f,P}function _ee(i,a,c){let f=null,p,O;process.env.NODE_ENV!=="production"&&Ko&&(f=window.performance.now(),p="intlify-message-evaluation-start",O="intlify-message-evaluation-end",wo&&wo(p));const y=a(c);if(process.env.NODE_ENV!=="production"&&Ko){const w=window.performance.now(),S=i.__v_emitter;S&&f&&S.emit("message-evaluation",{type:"message-evaluation",value:y,time:w-f,groupId:`translate:${a.key}`}),p&&O&&wo&&Fs&&(wo(O),Fs("intlify message evaluation",p,O))}return y}function py(...i){const[a,c,f]=i,p={};if(!Ie(a)&&!ln(a)&&!Jo(a)&&!Pr(a))throw zi(Bn.INVALID_ARGUMENT);const O=ln(a)?String(a):a;return ln(c)?p.plural=c:Ie(c)?p.default=c:lt(c)&&!vh(c)?p.named=c:jt(c)&&(p.list=c),ln(f)?p.plural=f:Ie(f)?p.default=f:lt(f)&&cn(p,f),[O,p]}function Nee(i,a,c,f,p,O){return{locale:a,key:c,warnHtmlMessage:p,onError:y=>{if(O&&O(y),process.env.NODE_ENV!=="production"){const w=Aee(f),S=`Message compilation error: ${y.message}`,A=y.location&&w&&dq(w,y.location.start.offset,y.location.end.offset),T=i.__v_emitter;T&&w&&T.emit("compile-error",{message:w,error:y.message,start:y.location&&y.location.start.offset,end:y.location&&y.location.end.offset,groupId:`translate:${c}`}),console.error(A?`${S}
|
|
169
|
+
${A}`:S)}else throw y},onCacheKey:y=>rq(a,c,y)}}function Aee(i){if(Ie(i))return i;if(i.loc&&i.loc.source)return i.loc.source}function Ree(i,a,c,f){const{modifiers:p,pluralRules:O,messageResolver:y,fallbackLocale:w,fallbackWarn:S,missingWarn:A,fallbackContext:T}=i,P={locale:a,modifiers:p,pluralRules:O,messages:(N,V)=>{let j=y(c,N);if(j==null&&(T||V)){const[,,z]=xA(T||i,N,a,w,S,A);j=y(z,N)}if(Ie(j)||Pr(j)){let z=!1;const K=wA(i,N,a,j,N,()=>{z=!0});return z?yA:K}else return Jo(j)?j:yA}};return i.processor&&(P.processor=i.processor),f.list&&(P.list=f.list),f.named&&(P.named=f.named),ln(f.plural)&&(P.pluralIndex=f.plural),P}jq();function Mee(){return SA().__VUE_DEVTOOLS_GLOBAL_HOOK__}function SA(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Qee=typeof Proxy=="function",Iee="devtools-plugin:setup",Dee="plugin:settings:set";let iu,my;function Bee(){var i;return iu!==void 0||(typeof window<"u"&&window.performance?(iu=!0,my=window.performance):typeof globalThis<"u"&&!((i=globalThis.perf_hooks)===null||i===void 0)&&i.performance?(iu=!0,my=globalThis.perf_hooks.performance):iu=!1),iu}function Vee(){return Bee()?my.now():Date.now()}class Lee{constructor(a,c){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=c;const f={};if(a.settings)for(const y in a.settings){const w=a.settings[y];f[y]=w.defaultValue}const p=`__vue-devtools-plugin-settings__${a.id}`;let O=Object.assign({},f);try{const y=localStorage.getItem(p),w=JSON.parse(y);Object.assign(O,w)}catch{}this.fallbacks={getSettings(){return O},setSettings(y){try{localStorage.setItem(p,JSON.stringify(y))}catch{}O=y},now(){return Vee()}},c&&c.on(Dee,(y,w)=>{y===this.plugin.id&&this.fallbacks.setSettings(w)}),this.proxiedOn=new Proxy({},{get:(y,w)=>this.target?this.target.on[w]:(...S)=>{this.onQueue.push({method:w,args:S})}}),this.proxiedTarget=new Proxy({},{get:(y,w)=>this.target?this.target[w]:w==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(w)?(...S)=>(this.targetQueue.push({method:w,args:S,resolve:()=>{}}),this.fallbacks[w](...S)):(...S)=>new Promise(A=>{this.targetQueue.push({method:w,args:S,resolve:A})})})}async setRealTarget(a){this.target=a;for(const c of this.onQueue)this.target.on[c.method](...c.args);for(const c of this.targetQueue)c.resolve(await this.target[c.method](...c.args))}}function jee(i,a){const c=i,f=SA(),p=Mee(),O=Qee&&c.enableEarlyProxy;if(p&&(f.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!O))p.emit(Iee,i,a);else{const y=O?new Lee(c,p):null;(f.__VUE_DEVTOOLS_PLUGINS__=f.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:c,setupFn:a,proxy:y}),y&&a(y.proxiedTarget)}}/*!
|
|
170
|
+
* vue-i18n v10.0.0
|
|
171
|
+
* (c) 2024 kazuya kawaguchi
|
|
172
|
+
* Released under the MIT License.
|
|
173
|
+
*/const Fee="10.0.0";function Zee(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zs().__INTLIFY_PROD_DEVTOOLS__=!1)}const Tr={FALLBACK_TO_ROOT:uee,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},zee={[Tr.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Tr.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Tr.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Tr.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function Ph(i,...a){return Oh(zee[i],...a)}const Pt={UNEXPECTED_RETURN_TYPE:Jq,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Wn(i,...a){return sl(i,null,process.env.NODE_ENV!=="production"?{messages:Wee,args:a}:void 0)}const Wee={[Pt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Pt.INVALID_ARGUMENT]:"Invalid argument",[Pt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Pt.NOT_INSTALLED]:"Need to install with `app.use` function",[Pt.UNEXPECTED_ERROR]:"Unexpected error",[Pt.REQUIRED_VALUE]:"Required in value: {0}",[Pt.INVALID_VALUE]:"Invalid value",[Pt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Pt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Pt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Pt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},gy=Pi("__translateVNode"),Oy=Pi("__datetimeParts"),vy=Pi("__numberParts"),Ws=Pi("__enableEmitter"),ru=Pi("__disableEmitter"),CA=Pi("__setPluralRules"),kA=Pi("__injectWithOption"),yy=Pi("__dispose");function su(i){if(!Ot(i))return i;for(const a in i)if(yh(i,a))if(!a.includes("."))Ot(i[a])&&su(i[a]);else{const c=a.split("."),f=c.length-1;let p=i,O=!1;for(let y=0;y<f;y++){if(c[y]in p||(p[c[y]]={}),!Ot(p[c[y]])){process.env.NODE_ENV!=="production"&&Cr(Ph(Tr.IGNORE_OBJ_FLATTEN,{key:c[y]})),O=!0;break}p=p[c[y]]}O||(p[c[f]]=i[a],delete i[a]),Ot(p[c[f]])&&su(p[c[f]])}return i}function by(i,a){const{messages:c,__i18n:f,messageResolver:p,flatJson:O}=a,y=lt(c)?c:jt(f)?{}:{[i]:{}};if(jt(f)&&f.forEach(w=>{if("locale"in w&&"resource"in w){const{locale:S,resource:A}=w;S?(y[S]=y[S]||{},xh(A,y[S])):xh(A,y)}else Ie(w)&&xh(JSON.parse(w),y)}),p==null&&O)for(const w in y)yh(y,w)&&su(y[w]);return y}function Uee(i){return i.type}function PA(i,a,c){let f=Ot(a.messages)?a.messages:{};"__i18nGlobal"in c&&(f=by(i.locale.value,{messages:f,__i18n:c.__i18nGlobal}));const p=Object.keys(f);p.length&&p.forEach(O=>{i.mergeLocaleMessage(O,f[O])});{if(Ot(a.datetimeFormats)){const O=Object.keys(a.datetimeFormats);O.length&&O.forEach(y=>{i.mergeDateTimeFormat(y,a.datetimeFormats[y])})}if(Ot(a.numberFormats)){const O=Object.keys(a.numberFormats);O.length&&O.forEach(y=>{i.mergeNumberFormat(y,a.numberFormats[y])})}}}function EA(i){return o.createVNode(o.Text,null,i,0)}const TA=()=>[],Hee=()=>!1;let _A=0;function NA(i){return(a,c,f,p)=>i(c,f,o.getCurrentInstance()||void 0,p)}function xy(i={}){const{__root:a,__injectWithOption:c}=i,f=a===void 0,p=i.flatJson,O=Ko?o.ref:o.shallowRef;let y=gt(i.inheritLocale)?i.inheritLocale:!0;const w=O(a&&y?a.locale.value:Ie(i.locale)?i.locale:nu),S=O(a&&y?a.fallbackLocale.value:Ie(i.fallbackLocale)||jt(i.fallbackLocale)||lt(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:w.value),A=O(by(w.value,i)),T=O(lt(i.datetimeFormats)?i.datetimeFormats:{[w.value]:{}}),P=O(lt(i.numberFormats)?i.numberFormats:{[w.value]:{}});let N=a?a.missingWarn:gt(i.missingWarn)||rl(i.missingWarn)?i.missingWarn:!0,V=a?a.fallbackWarn:gt(i.fallbackWarn)||rl(i.fallbackWarn)?i.fallbackWarn:!0,j=a?a.fallbackRoot:gt(i.fallbackRoot)?i.fallbackRoot:!0,z=!!i.fallbackFormat,K=kt(i.missing)?i.missing:null,H=kt(i.missing)?NA(i.missing):null,X=kt(i.postTranslation)?i.postTranslation:null,te=a?a.warnHtmlMessage:gt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,J=!!i.escapeParameter;const se=a?a.modifiers:lt(i.modifiers)?i.modifiers:{};let le=i.pluralRules||a&&a.pluralRules,U;U=(()=>{f&&sA(null);const fe={version:Fee,locale:w.value,fallbackLocale:S.value,messages:A.value,modifiers:se,pluralRules:le,missing:H===null?void 0:H,missingWarn:N,fallbackWarn:V,fallbackFormat:z,unresolving:!0,postTranslation:X===null?void 0:X,warnHtmlMessage:te,escapeParameter:J,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};fe.datetimeFormats=T.value,fe.numberFormats=P.value,fe.__datetimeFormatters=lt(U)?U.__datetimeFormatters:void 0,fe.__numberFormatters=lt(U)?U.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(fe.__v_emitter=lt(U)?U.__v_emitter:void 0);const Ee=vee(fe);return f&&sA(Ee),Ee})(),ou(U,w.value,S.value);function he(){return[w.value,S.value,A.value,T.value,P.value]}const ue=o.computed({get:()=>w.value,set:fe=>{w.value=fe,U.locale=w.value}}),ge=o.computed({get:()=>S.value,set:fe=>{S.value=fe,U.fallbackLocale=S.value,ou(U,w.value,fe)}}),ye=o.computed(()=>A.value),Xe=o.computed(()=>T.value),We=o.computed(()=>P.value);function Me(){return kt(X)?X:null}function ie(fe){X=fe,U.postTranslation=fe}function ce(){return K}function Ne(fe){fe!==null&&(H=NA(fe)),K=fe,U.missing=H}function xe(fe,Ee){return fe!=="translate"||!Ee.resolvedMessage}const ze=(fe,Ee,vt,Ft,Ui,ml)=>{he();let Qr;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,f||(U.fallbackContext=a?Oee():void 0),Qr=fe(U)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,f||(U.fallbackContext=void 0)}if(vt!=="translate exists"&&ln(Qr)&&Qr===Sh||vt==="translate exists"&&!Qr){const[Hi,Vy]=Ee();if(process.env.NODE_ENV!=="production"&&a&&Ie(Hi)&&xe(vt,Vy)&&(j&&(kh(V,Hi)||lA(N,Hi))&&Cr(Ph(Tr.FALLBACK_TO_ROOT,{key:Hi,type:vt})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ih}=U;Ih&&j&&Ih.emit("fallback",{type:vt,key:Hi,to:"global",groupId:`${vt}:${Hi}`})}return a&&j?Ft(a):Ui(Hi)}else{if(ml(Qr))return Qr;throw Wn(Pt.UNEXPECTED_RETURN_TYPE)}};function Ye(...fe){return ze(Ee=>Reflect.apply(bA,null,[Ee,...fe]),()=>py(...fe),"translate",Ee=>Reflect.apply(Ee.t,Ee,[...fe]),Ee=>Ee,Ee=>Ie(Ee))}function ot(...fe){const[Ee,vt,Ft]=fe;if(Ft&&!Ot(Ft))throw Wn(Pt.INVALID_ARGUMENT);return Ye(Ee,vt,cn({resolvedMessage:!0},Ft||{}))}function ut(...fe){return ze(Ee=>Reflect.apply(fA,null,[Ee,...fe]),()=>fy(...fe),"datetime format",Ee=>Reflect.apply(Ee.d,Ee,[...fe]),()=>Ch,Ee=>Ie(Ee))}function xt(...fe){return ze(Ee=>Reflect.apply(mA,null,[Ee,...fe]),()=>hy(...fe),"number format",Ee=>Reflect.apply(Ee.n,Ee,[...fe]),()=>Ch,Ee=>Ie(Ee))}function wt(fe){return fe.map(Ee=>Ie(Ee)||ln(Ee)||gt(Ee)?EA(String(Ee)):Ee)}const Tt={normalize:wt,interpolate:fe=>fe,type:"vnode"};function mn(...fe){return ze(Ee=>{let vt;const Ft=Ee;try{Ft.processor=Tt,vt=Reflect.apply(bA,null,[Ft,...fe])}finally{Ft.processor=null}return vt},()=>py(...fe),"translate",Ee=>Ee[gy](...fe),Ee=>[EA(Ee)],Ee=>jt(Ee))}function Ht(...fe){return ze(Ee=>Reflect.apply(mA,null,[Ee,...fe]),()=>hy(...fe),"number format",Ee=>Ee[vy](...fe),TA,Ee=>Ie(Ee)||jt(Ee))}function so(...fe){return ze(Ee=>Reflect.apply(fA,null,[Ee,...fe]),()=>fy(...fe),"datetime format",Ee=>Ee[Oy](...fe),TA,Ee=>Ie(Ee)||jt(Ee))}function Xt(fe){le=fe,U.pluralRules=le}function on(fe,Ee){return ze(()=>{if(!fe)return!1;const vt=Ie(Ee)?Ee:w.value,Ft=ko(vt),Ui=U.messageResolver(Ft,fe);return Pr(Ui)||Jo(Ui)||Ie(Ui)},()=>[fe],"translate exists",vt=>Reflect.apply(vt.te,vt,[fe,Ee]),Hee,vt=>gt(vt))}function ao(fe){let Ee=null;const vt=$N(U,S.value,w.value);for(let Ft=0;Ft<vt.length;Ft++){const Ui=A.value[vt[Ft]]||{},ml=U.messageResolver(Ui,fe);if(ml!=null){Ee=ml;break}}return Ee}function ei(fe){return ao(fe)??(a?a.tm(fe)||{}:{})}function ko(fe){return A.value[fe]||{}}function Gs(fe,Ee){if(p){const vt={[fe]:Ee};for(const Ft in vt)yh(vt,Ft)&&su(vt[Ft]);Ee=vt[fe]}A.value[fe]=Ee,U.messages=A.value}function Mr(fe,Ee){A.value[fe]=A.value[fe]||{};const vt={[fe]:Ee};if(p)for(const Ft in vt)yh(vt,Ft)&&su(vt[Ft]);Ee=vt[fe],xh(Ee,A.value[fe]),U.messages=A.value}function Ks(fe){return T.value[fe]||{}}function pu(fe,Ee){T.value[fe]=Ee,U.datetimeFormats=T.value,pA(U,fe,Ee)}function ee(fe,Ee){T.value[fe]=cn(T.value[fe]||{},Ee),U.datetimeFormats=T.value,pA(U,fe,Ee)}function ne(fe){return P.value[fe]||{}}function _e(fe,Ee){P.value[fe]=Ee,U.numberFormats=P.value,OA(U,fe,Ee)}function Je(fe,Ee){P.value[fe]=cn(P.value[fe]||{},Ee),U.numberFormats=P.value,OA(U,fe,Ee)}_A++,a&&Ko&&(o.watch(a.locale,fe=>{y&&(w.value=fe,U.locale=fe,ou(U,w.value,S.value))}),o.watch(a.fallbackLocale,fe=>{y&&(S.value=fe,U.fallbackLocale=fe,ou(U,w.value,S.value))}));const at={id:_A,locale:ue,fallbackLocale:ge,get inheritLocale(){return y},set inheritLocale(fe){y=fe,fe&&a&&(w.value=a.locale.value,S.value=a.fallbackLocale.value,ou(U,w.value,S.value))},get availableLocales(){return Object.keys(A.value).sort()},messages:ye,get modifiers(){return se},get pluralRules(){return le||{}},get isGlobal(){return f},get missingWarn(){return N},set missingWarn(fe){N=fe,U.missingWarn=N},get fallbackWarn(){return V},set fallbackWarn(fe){V=fe,U.fallbackWarn=V},get fallbackRoot(){return j},set fallbackRoot(fe){j=fe},get fallbackFormat(){return z},set fallbackFormat(fe){z=fe,U.fallbackFormat=z},get warnHtmlMessage(){return te},set warnHtmlMessage(fe){te=fe,U.warnHtmlMessage=fe},get escapeParameter(){return J},set escapeParameter(fe){J=fe,U.escapeParameter=fe},t:Ye,getLocaleMessage:ko,setLocaleMessage:Gs,mergeLocaleMessage:Mr,getPostTranslationHandler:Me,setPostTranslationHandler:ie,getMissingHandler:ce,setMissingHandler:Ne,[CA]:Xt};return at.datetimeFormats=Xe,at.numberFormats=We,at.rt=ot,at.te=on,at.tm=ei,at.d=ut,at.n=xt,at.getDateTimeFormat=Ks,at.setDateTimeFormat=pu,at.mergeDateTimeFormat=ee,at.getNumberFormat=ne,at.setNumberFormat=_e,at.mergeNumberFormat=Je,at[kA]=c,at[gy]=mn,at[Oy]=so,at[vy]=Ht,process.env.NODE_ENV!=="production"&&(at[Ws]=fe=>{U.__v_emitter=fe},at[ru]=()=>{U.__v_emitter=void 0}),at}const AA="vue-i18n: composer properties",wy={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Xee={"vue-i18n-resource-inspector":"Search for scopes ..."},Yee={"vue-i18n-timeline":16764185};let Sy;async function Gee(i,a){return new Promise((c,f)=>{try{jee({id:"vue-devtools-plugin-vue-i18n",label:wy["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[AA],app:i},p=>{Sy=p,p.on.visitComponentTree(({componentInstance:y,treeNode:w})=>{Kee(y,w,a)}),p.on.inspectComponent(({componentInstance:y,instanceData:w})=>{y.vnode.el&&y.vnode.el.__VUE_I18N__&&w&&(a.mode==="legacy"?y.vnode.el.__VUE_I18N__!==a.global.__composer&&MA(w,y.vnode.el.__VUE_I18N__):MA(w,y.vnode.el.__VUE_I18N__))}),p.addInspector({id:"vue-i18n-resource-inspector",label:wy["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Xee["vue-i18n-resource-inspector"]}),p.on.getInspectorTree(y=>{y.app===i&&y.inspectorId==="vue-i18n-resource-inspector"&&tte(y,a)});const O=new Map;p.on.getInspectorState(async y=>{if(y.app===i&&y.inspectorId==="vue-i18n-resource-inspector")if(p.unhighlightElement(),ote(y,a),y.nodeId==="global"){if(!O.has(y.app)){const[w]=await p.getComponentInstances(y.app);O.set(y.app,w)}p.highlightElement(O.get(y.app))}else{const w=nte(y.nodeId,a);w&&p.highlightElement(w)}}),p.on.editInspectorState(y=>{y.app===i&&y.inspectorId==="vue-i18n-resource-inspector"&&rte(y,a)}),p.addTimelineLayer({id:"vue-i18n-timeline",label:wy["vue-i18n-timeline"],color:Yee["vue-i18n-timeline"]}),c(!0)})}catch(p){console.error(p),f(!1)}})}function RA(i){return i.type.name||i.type.displayName||i.type.__file||"Anonymous"}function Kee(i,a,c){const f=c.mode==="composition"?c.global:c.global.__composer;if(i&&i.vnode.el&&i.vnode.el.__VUE_I18N__&&i.vnode.el.__VUE_I18N__!==f){const p={label:`i18n (${RA(i)} Scope)`,textColor:0,backgroundColor:16764185};a.tags.push(p)}}function MA(i,a){const c=AA;i.state.push({type:c,key:"locale",editable:!0,value:a.locale.value}),i.state.push({type:c,key:"availableLocales",editable:!1,value:a.availableLocales}),i.state.push({type:c,key:"fallbackLocale",editable:!0,value:a.fallbackLocale.value}),i.state.push({type:c,key:"inheritLocale",editable:!0,value:a.inheritLocale}),i.state.push({type:c,key:"messages",editable:!1,value:Cy(a.messages.value)}),i.state.push({type:c,key:"datetimeFormats",editable:!1,value:a.datetimeFormats.value}),i.state.push({type:c,key:"numberFormats",editable:!1,value:a.numberFormats.value})}function Cy(i){const a={};return Object.keys(i).forEach(c=>{const f=i[c];kt(f)&&"source"in f?a[c]=ete(f):Pr(f)&&f.loc&&f.loc.source?a[c]=f.loc.source:Ot(f)?a[c]=Cy(f):a[c]=f}),a}const Jee={"<":"<",">":">",'"':""","&":"&"};function $ee(i){return i.replace(/[<>"&]/g,qee)}function qee(i){return Jee[i]||i}function ete(i){return{_custom:{type:"function",display:`<span>ƒ</span> ${i.source?`("${$ee(i.source)}")`:"(?)"}`}}}function tte(i,a){i.rootNodes.push({id:"global",label:"Global Scope"});const c=a.mode==="composition"?a.global:a.global.__composer;for(const[f,p]of a.__instances){const O=a.mode==="composition"?p:p.__composer;c!==O&&i.rootNodes.push({id:O.id.toString(),label:`${RA(f)} Scope`})}}function nte(i,a){let c=null;if(i!=="global"){for(const[f,p]of a.__instances.entries())if(p.id.toString()===i){c=f;break}}return c}function QA(i,a){if(i==="global")return a.mode==="composition"?a.global:a.global.__composer;{const c=Array.from(a.__instances.values()).find(f=>f.id.toString()===i);return c?a.mode==="composition"?c:c.__composer:null}}function ote(i,a){const c=QA(i.nodeId,a);return c&&(i.state=ite(c)),null}function ite(i){const a={},c="Locale related info",f=[{type:c,key:"locale",editable:!0,value:i.locale.value},{type:c,key:"fallbackLocale",editable:!0,value:i.fallbackLocale.value},{type:c,key:"availableLocales",editable:!1,value:i.availableLocales},{type:c,key:"inheritLocale",editable:!0,value:i.inheritLocale}];a[c]=f;const p="Locale messages info",O=[{type:p,key:"messages",editable:!1,value:Cy(i.messages.value)}];a[p]=O;{const y="Datetime formats info",w=[{type:y,key:"datetimeFormats",editable:!1,value:i.datetimeFormats.value}];a[y]=w;const S="Datetime formats info",A=[{type:S,key:"numberFormats",editable:!1,value:i.numberFormats.value}];a[S]=A}return a}function au(i,a){if(Sy){let c;a&&"groupId"in a&&(c=a.groupId,delete a.groupId),Sy.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:i,groupId:c,time:Date.now(),meta:{},data:a||{},logType:i==="compile-error"?"error":i==="fallback"||i==="missing"?"warning":"default"}})}}function rte(i,a){const c=QA(i.nodeId,a);if(c){const[f]=i.path;f==="locale"&&Ie(i.state.value)?c.locale.value=i.state.value:f==="fallbackLocale"&&(Ie(i.state.value)||jt(i.state.value)||Ot(i.state.value))?c.fallbackLocale.value=i.state.value:f==="inheritLocale"&>(i.state.value)&&(c.inheritLocale=i.state.value)}}function ste(i){const a=Ie(i.locale)?i.locale:nu,c=Ie(i.fallbackLocale)||jt(i.fallbackLocale)||lt(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:a,f=kt(i.missing)?i.missing:void 0,p=gt(i.silentTranslationWarn)||rl(i.silentTranslationWarn)?!i.silentTranslationWarn:!0,O=gt(i.silentFallbackWarn)||rl(i.silentFallbackWarn)?!i.silentFallbackWarn:!0,y=gt(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.formatFallbackMessages,S=lt(i.modifiers)?i.modifiers:{},A=i.pluralizationRules,T=kt(i.postTranslation)?i.postTranslation:void 0,P=Ie(i.warnHtmlInMessage)?i.warnHtmlInMessage!=="off":!0,N=!!i.escapeParameterHtml,V=gt(i.sync)?i.sync:!0;let j=i.messages;if(lt(i.sharedMessages)){const se=i.sharedMessages;j=Object.keys(se).reduce((le,U)=>{const he=le[U]||(le[U]={});return cn(he,se[U]),le},j||{})}const{__i18n:z,__root:K,__injectWithOption:H}=i,X=i.datetimeFormats,te=i.numberFormats,J=i.flatJson;return{locale:a,fallbackLocale:c,messages:j,flatJson:J,datetimeFormats:X,numberFormats:te,missing:f,missingWarn:p,fallbackWarn:O,fallbackRoot:y,fallbackFormat:w,modifiers:S,pluralRules:A,postTranslation:T,warnHtmlMessage:P,escapeParameter:N,messageResolver:i.messageResolver,inheritLocale:V,__i18n:z,__root:K,__injectWithOption:H}}function ky(i={}){const a=xy(ste(i)),{__extender:c}=i,f={id:a.id,get locale(){return a.locale.value},set locale(p){a.locale.value=p},get fallbackLocale(){return a.fallbackLocale.value},set fallbackLocale(p){a.fallbackLocale.value=p},get messages(){return a.messages.value},get datetimeFormats(){return a.datetimeFormats.value},get numberFormats(){return a.numberFormats.value},get availableLocales(){return a.availableLocales},get missing(){return a.getMissingHandler()},set missing(p){a.setMissingHandler(p)},get silentTranslationWarn(){return gt(a.missingWarn)?!a.missingWarn:a.missingWarn},set silentTranslationWarn(p){a.missingWarn=gt(p)?!p:p},get silentFallbackWarn(){return gt(a.fallbackWarn)?!a.fallbackWarn:a.fallbackWarn},set silentFallbackWarn(p){a.fallbackWarn=gt(p)?!p:p},get modifiers(){return a.modifiers},get formatFallbackMessages(){return a.fallbackFormat},set formatFallbackMessages(p){a.fallbackFormat=p},get postTranslation(){return a.getPostTranslationHandler()},set postTranslation(p){a.setPostTranslationHandler(p)},get sync(){return a.inheritLocale},set sync(p){a.inheritLocale=p},get warnHtmlInMessage(){return a.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(p){a.warnHtmlMessage=p!=="off"},get escapeParameterHtml(){return a.escapeParameter},set escapeParameterHtml(p){a.escapeParameter=p},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...p){return Reflect.apply(a.t,a,[...p])},rt(...p){return Reflect.apply(a.rt,a,[...p])},tc(...p){const[O,y,w]=p,S={plural:1};let A=null,T=null;if(process.env.NODE_ENV!=="production"&&HN(Ph(Tr.DEPRECATE_TC)),!Ie(O))throw Wn(Pt.INVALID_ARGUMENT);const P=O;return Ie(y)?S.locale=y:ln(y)?S.plural=y:jt(y)?A=y:lt(y)&&(T=y),Ie(w)?S.locale=w:jt(w)?A=w:lt(w)&&(T=w),Reflect.apply(a.t,a,[P,A||T||{},S])},te(p,O){return a.te(p,O)},tm(p){return a.tm(p)},getLocaleMessage(p){return a.getLocaleMessage(p)},setLocaleMessage(p,O){a.setLocaleMessage(p,O)},mergeLocaleMessage(p,O){a.mergeLocaleMessage(p,O)},d(...p){return Reflect.apply(a.d,a,[...p])},getDateTimeFormat(p){return a.getDateTimeFormat(p)},setDateTimeFormat(p,O){a.setDateTimeFormat(p,O)},mergeDateTimeFormat(p,O){a.mergeDateTimeFormat(p,O)},n(...p){return Reflect.apply(a.n,a,[...p])},getNumberFormat(p){return a.getNumberFormat(p)},setNumberFormat(p,O){a.setNumberFormat(p,O)},mergeNumberFormat(p,O){a.mergeNumberFormat(p,O)}};return f.__extender=c,process.env.NODE_ENV!=="production"&&(f.__enableEmitter=p=>{const O=a;O[Ws]&&O[Ws](p)},f.__disableEmitter=()=>{const p=a;p[ru]&&p[ru]()}),f}function ate(i,a,c){return{beforeCreate(){const f=o.getCurrentInstance();if(!f)throw Wn(Pt.UNEXPECTED_ERROR);const p=this.$options;if(p.i18n){const O=p.i18n;if(p.__i18n&&(O.__i18n=p.__i18n),O.__root=a,this===this.$root)this.$i18n=IA(i,O);else{O.__injectWithOption=!0,O.__extender=c.__vueI18nExtend,this.$i18n=ky(O);const y=this.$i18n;y.__extender&&(y.__disposer=y.__extender(this.$i18n))}}else if(p.__i18n)if(this===this.$root)this.$i18n=IA(i,p);else{this.$i18n=ky({__i18n:p.__i18n,__injectWithOption:!0,__extender:c.__vueI18nExtend,__root:a});const O=this.$i18n;O.__extender&&(O.__disposer=O.__extender(this.$i18n))}else this.$i18n=i;p.__i18nGlobal&&PA(a,p,p),this.$t=(...O)=>this.$i18n.t(...O),this.$rt=(...O)=>this.$i18n.rt(...O),this.$tc=(...O)=>this.$i18n.tc(...O),this.$te=(O,y)=>this.$i18n.te(O,y),this.$d=(...O)=>this.$i18n.d(...O),this.$n=(...O)=>this.$i18n.n(...O),this.$tm=O=>this.$i18n.tm(O),c.__setInstance(f,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const f=this.$i18n;this.$el.__VUE_I18N__=f.__composer;const p=this.__v_emitter=iy();f.__enableEmitter&&f.__enableEmitter(p),p.on("*",au)}},unmounted(){const f=o.getCurrentInstance();if(!f)throw Wn(Pt.UNEXPECTED_ERROR);const p=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",au),delete this.__v_emitter),this.$i18n&&(p.__disableEmitter&&p.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,p.__disposer&&(p.__disposer(),delete p.__disposer,delete p.__extender),c.__deleteInstance(f),delete this.$i18n}}}function IA(i,a){i.locale=a.locale||i.locale,i.fallbackLocale=a.fallbackLocale||i.fallbackLocale,i.missing=a.missing||i.missing,i.silentTranslationWarn=a.silentTranslationWarn||i.silentFallbackWarn,i.silentFallbackWarn=a.silentFallbackWarn||i.silentFallbackWarn,i.formatFallbackMessages=a.formatFallbackMessages||i.formatFallbackMessages,i.postTranslation=a.postTranslation||i.postTranslation,i.warnHtmlInMessage=a.warnHtmlInMessage||i.warnHtmlInMessage,i.escapeParameterHtml=a.escapeParameterHtml||i.escapeParameterHtml,i.sync=a.sync||i.sync,i.__composer[CA](a.pluralizationRules||i.pluralizationRules);const c=by(i.locale,{messages:a.messages,__i18n:a.__i18n});return Object.keys(c).forEach(f=>i.mergeLocaleMessage(f,c[f])),a.datetimeFormats&&Object.keys(a.datetimeFormats).forEach(f=>i.mergeDateTimeFormat(f,a.datetimeFormats[f])),a.numberFormats&&Object.keys(a.numberFormats).forEach(f=>i.mergeNumberFormat(f,a.numberFormats[f])),i}const Py={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:i=>i==="parent"||i==="global",default:"parent"},i18n:{type:Object}};function lte({slots:i},a){return a.length===1&&a[0]==="default"?(i.default?i.default():[]).reduce((c,f)=>[...c,...f.type===o.Fragment?f.children:[f]],[]):a.reduce((c,f)=>{const p=i[f];return p&&(c[f]=p()),c},{})}function DA(){return o.Fragment}const BA=o.defineComponent({name:"i18n-t",props:cn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:i=>ln(i)||!isNaN(i)}},Py),setup(i,a){const{slots:c,attrs:f}=a,p=i.i18n||Wi({useScope:i.scope,__useComponent:!0});return()=>{const O=Object.keys(c).filter(P=>P!=="_"),y={};i.locale&&(y.locale=i.locale),i.plural!==void 0&&(y.plural=Ie(i.plural)?+i.plural:i.plural);const w=lte(a,O),S=p[gy](i.keypath,w,y),A=cn({},f),T=Ie(i.tag)||Ot(i.tag)?i.tag:DA();return o.h(T,A,S)}}});function cte(i){return jt(i)&&!Ie(i[0])}function VA(i,a,c,f){const{slots:p,attrs:O}=a;return()=>{const y={part:!0};let w={};i.locale&&(y.locale=i.locale),Ie(i.format)?y.key=i.format:Ot(i.format)&&(Ie(i.format.key)&&(y.key=i.format.key),w=Object.keys(i.format).reduce((N,V)=>c.includes(V)?cn({},N,{[V]:i.format[V]}):N,{}));const S=f(i.value,y,w);let A=[y.key];jt(S)?A=S.map((N,V)=>{const j=p[N.type],z=j?j({[N.type]:N.value,index:V,parts:S}):[N.value];return cte(z)&&(z[0].key=`${N.type}-${V}`),z}):Ie(S)&&(A=[S]);const T=cn({},O),P=Ie(i.tag)||Ot(i.tag)?i.tag:DA();return o.h(P,T,A)}}const LA=o.defineComponent({name:"i18n-n",props:cn({value:{type:Number,required:!0},format:{type:[String,Object]}},Py),setup(i,a){const c=i.i18n||Wi({useScope:i.scope,__useComponent:!0});return VA(i,a,gA,(...f)=>c[vy](...f))}}),jA=o.defineComponent({name:"i18n-d",props:cn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Py),setup(i,a){const c=i.i18n||Wi({useScope:i.scope,__useComponent:!0});return VA(i,a,hA,(...f)=>c[Oy](...f))}});function ute(i,a){const c=i;if(i.mode==="composition")return c.__getInstance(a)||i.global;{const f=c.__getInstance(a);return f!=null?f.__composer:i.global.__composer}}function dte(i){const a=c=>{const{instance:f,value:p}=c;if(!f||!f.$)throw Wn(Pt.UNEXPECTED_ERROR);const O=ute(i,f.$),y=FA(p);return[Reflect.apply(O.t,O,[...ZA(y)]),O]};return{created:(c,f)=>{const[p,O]=a(f);Ko&&i.global===O&&(c.__i18nWatcher=o.watch(O.locale,()=>{f.instance&&f.instance.$forceUpdate()})),c.__composer=O,c.textContent=p},unmounted:c=>{Ko&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:f})=>{if(c.__composer){const p=c.__composer,O=FA(f);c.textContent=Reflect.apply(p.t,p,[...ZA(O)])}},getSSRProps:c=>{const[f]=a(c);return{textContent:f}}}}function FA(i){if(Ie(i))return{path:i};if(lt(i)){if(!("path"in i))throw Wn(Pt.REQUIRED_VALUE,"path");return i}else throw Wn(Pt.INVALID_VALUE)}function ZA(i){const{path:a,locale:c,args:f,choice:p,plural:O}=i,y={},w=f||{};return Ie(c)&&(y.locale=c),ln(p)&&(y.plural=p),ln(O)&&(y.plural=O),[a,w,y]}function fte(i,a,...c){const f=lt(c[0])?c[0]:{};(!gt(f.globalInstall)||f.globalInstall)&&([BA.name,"I18nT"].forEach(p=>i.component(p,BA)),[LA.name,"I18nN"].forEach(p=>i.component(p,LA)),[jA.name,"I18nD"].forEach(p=>i.component(p,jA))),i.directive("t",dte(a))}const hte=Pi("global-vue-i18n");function pte(i={},a){const c=__VUE_I18N_LEGACY_API__&>(i.legacy)?i.legacy:__VUE_I18N_LEGACY_API__,f=gt(i.globalInjection)?i.globalInjection:!0,p=new Map,[O,y]=mte(i,c),w=Pi(process.env.NODE_ENV!=="production"?"vue-i18n":"");function S(N){return p.get(N)||null}function A(N,V){p.set(N,V)}function T(N){p.delete(N)}const P={get mode(){return __VUE_I18N_LEGACY_API__&&c?"legacy":"composition"},async install(N,...V){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=P),N.__VUE_I18N_SYMBOL__=w,N.provide(N.__VUE_I18N_SYMBOL__,P),lt(V[0])){const K=V[0];P.__composerExtend=K.__composerExtend,P.__vueI18nExtend=K.__vueI18nExtend}let j=null;!c&&f&&(j=Ste(N,P.global)),__VUE_I18N_FULL_INSTALL__&&fte(N,P,...V),__VUE_I18N_LEGACY_API__&&c&&N.mixin(ate(y,y.__composer,P));const z=N.unmount;if(N.unmount=()=>{j&&j(),P.dispose(),z()},process.env.NODE_ENV!=="production"){if(!await Gee(N,P))throw Wn(Pt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const K=iy();if(c){const H=y;H.__enableEmitter&&H.__enableEmitter(K)}else{const H=y;H[Ws]&&H[Ws](K)}K.on("*",au)}},get global(){return y},dispose(){O.stop()},__instances:p,__getInstance:S,__setInstance:A,__deleteInstance:T};return P}function Wi(i={}){const a=o.getCurrentInstance();if(a==null)throw Wn(Pt.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Wn(Pt.NOT_INSTALLED);const c=gte(a),f=vte(c),p=Uee(a),O=Ote(i,p);if(O==="global")return PA(f,i,p),f;if(O==="parent"){let S=yte(c,a,i.__useComponent);return S==null&&(process.env.NODE_ENV!=="production"&&Cr(Ph(Tr.NOT_FOUND_PARENT_SCOPE)),S=f),S}const y=c;let w=y.__getInstance(a);if(w==null){const S=cn({},i);"__i18n"in p&&(S.__i18n=p.__i18n),f&&(S.__root=f),w=xy(S),y.__composerExtend&&(w[yy]=y.__composerExtend(w)),xte(y,a,w),y.__setInstance(a,w)}return w}function mte(i,a,c){const f=o.effectScope(),p=__VUE_I18N_LEGACY_API__&&a?f.run(()=>ky(i)):f.run(()=>xy(i));if(p==null)throw Wn(Pt.UNEXPECTED_ERROR);return[f,p]}function gte(i){const a=o.inject(i.isCE?hte:i.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw Wn(i.isCE?Pt.NOT_INSTALLED_WITH_PROVIDE:Pt.UNEXPECTED_ERROR);return a}function Ote(i,a){return vh(i)?"__i18n"in a?"local":"global":i.useScope?i.useScope:"local"}function vte(i){return i.mode==="composition"?i.global:i.global.__composer}function yte(i,a,c=!1){let f=null;const p=a.root;let O=bte(a,c);for(;O!=null;){const y=i;if(i.mode==="composition")f=y.__getInstance(O);else if(__VUE_I18N_LEGACY_API__){const w=y.__getInstance(O);w!=null&&(f=w.__composer,c&&f&&!f[kA]&&(f=null))}if(f!=null||p===O)break;O=O.parent}return f}function bte(i,a=!1){return i==null?null:a&&i.vnode.ctx||i.parent}function xte(i,a,c){let f=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&a.vnode.el){a.vnode.el.__VUE_I18N__=c,f=iy();const p=c;p[Ws]&&p[Ws](f),f.on("*",au)}},a),o.onUnmounted(()=>{const p=c;process.env.NODE_ENV!=="production"&&a.vnode.el&&a.vnode.el.__VUE_I18N__&&(f&&f.off("*",au),p[ru]&&p[ru](),delete a.vnode.el.__VUE_I18N__),i.__deleteInstance(a);const O=p[yy];O&&(O(),delete p[yy])},a)}const wte=["locale","fallbackLocale","availableLocales"],zA=["t","rt","d","n","tm","te"];function Ste(i,a){const c=Object.create(null);return wte.forEach(f=>{const p=Object.getOwnPropertyDescriptor(a,f);if(!p)throw Wn(Pt.UNEXPECTED_ERROR);const O=o.isRef(p.value)?{get(){return p.value.value},set(y){p.value.value=y}}:{get(){return p.get&&p.get()}};Object.defineProperty(c,f,O)}),i.config.globalProperties.$i18n=c,zA.forEach(f=>{const p=Object.getOwnPropertyDescriptor(a,f);if(!p||!p.value)throw Wn(Pt.UNEXPECTED_ERROR);Object.defineProperty(i.config.globalProperties,`$${f}`,p)}),()=>{delete i.config.globalProperties.$i18n,zA.forEach(f=>{delete i.config.globalProperties[`$${f}`]})}}if(Zee(),pee(Hq),mee(cee),gee($N),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const i=Zs();i.__INTLIFY__=!0,Xq(i.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Us={};function Cte(i,a){const c=h(a?{axios:a}:{}),f=O=>(O.response&&(O.response.status===403&&console.log("error:403"),O.response.status===402&&console.log("error:402"),O.response.status===401&&console.log("error:401")),Promise.reject(O)),p=c.axios;Object.keys(p).forEach(O=>{const y=en.create({baseURL:p[O],timeout:6e4});y.interceptors.request.use(w=>{const S=sessionStorage.getItem(c.constant.ACCESS_TOKEN);return S&&(w.headers[c.constant.ACCESS_TOKEN]=S),w.headers["X-Axios-With"]=!0,w},f),y.interceptors.response.use(w=>(w.status===402&&console.log("error:402"),w.headers["content-type"]=="application/json"?w.data:w),f),y.toFind=(w,S)=>new Promise((A,T)=>{const P=Wi(),N=Fi.loading(S?.loading||P.t("axios.process.loading"));y({method:"post",...w}).then(V=>{if(!S||!S.custome)if(V.success)yt.success({title:P.t("axios.find.success.title"),content:P.t("axios.find.success.message")}),A(V);else{let j=P.t("axios.find.error.message");S?.useMessage&&(j=V.message||j),yt.error({title:P.t("axios.find.error.title"),content:j}),T({error:j,...V})}else A(V)}).catch(V=>{const j=P.t("axios.find.error.exception");yt.error({title:P.t("axios.find.error.title"),content:j}),T({error:j,...V})}).finally(()=>{N()})}),y.toSave=(w,S)=>new Promise((A,T)=>{const P=Wi(),N=Fi.loading(S?.loading||P.t("axios.process.loading"));y({method:"post",...w}).then(V=>{if(!S||!S.custome)if(V.success)yt.success({title:P.t("axios.save.success.title"),content:P.t("axios.save.success.message")}),A(V);else{let j=P.t("axios.save.error.message");S?.useMessage&&(j=V.message||j),yt.error({title:P.t("axios.save.error.title"),content:j}),T({error:j,...V})}else A(V)}).catch(V=>{const j=P.t("axios.save.error.exception");yt.error({title:P.t("axios.save.error.title"),content:j}),T({error:j,...V})}).finally(()=>{N()})}),y.toUpdate=(w,S)=>new Promise((A,T)=>{const P=Wi(),N=Fi.loading(S?.loading||P.t("axios.process.loading"));y({method:"post",...w}).then(V=>{if(!S||!S.custome)if(V.success)yt.success({title:P.t("axios.update.success.title"),content:P.t("axios.update.success.message")}),A(V);else{let j=P.t("axios.update.error.message");S?.useMessage&&(j=V.message||j),yt.error({title:P.t("axios.update.error.title"),content:j}),T({error:j,...V})}else A(V)}).catch(V=>{const j=P.t("axios.update.error.exception");yt.error({title:P.t("axios.update.error.title"),content:j}),T({error:j,...V})}).finally(()=>{N()})}),y.toDelete=(w,S)=>new Promise((A,T)=>{const P=Wi();if(!w.data||Array.isArray(w.data)&&w.data.length==0||typeof w.data=="object"&&Object.keys(w.data).length==0){const V=P.t("axios.delete.error.notempty");yt.error({title:P.t("axios.delete.error.title"),content:V}),T(V)}const N=()=>{const V=Fi.loading(S?.loading||P.t("axios.process.loading"));y({method:"post",...w}).then(j=>{if(!S||!S.custome)if(j.success)yt.success({title:P.t("axios.delete.success.title"),content:P.t("axios.delete.success.message")}),A(j);else{let z=P.t("axios.delete.error.message");S?.useMessage&&(z=j.message||z),yt.error({title:P.t("axios.delete.error.title"),content:z}),T({error:z,...j})}else A(j)}).catch(j=>{const z=P.t("axios.delete.error.exception");yt.error({title:P.t("axios.delete.error.title"),content:z}),T({error:z,...j})}).finally(()=>{V()})};yt.confirm({title:P.t("axios.delete.confirm.title"),content:P.t("axios.delete.confirm.message"),onOk:()=>{N()}})}),Us[O]=y}),i.provide("axios",Us)}Us.install=Cte;function WA(){const i=Wi();return{confirm:a=>yt.confirm({title:i.t("dialog.confirm.title"),...a}),info:a=>yt.info({title:i.t("dialog.info.title"),...a}),warning:a=>yt.warning({title:i.t("dialog.warning.title"),...a}),error:a=>yt.error({title:i.t("dialog.error.title"),content:"操作失败",...a||{}}),success:a=>yt.success({title:i.t("dialog.success.title"),content:"操作成功",...a||{}})}}var kte=!1;function Eh(i,a,c){return Array.isArray(i)?(i.length=Math.max(i.length,a),i.splice(a,1,c),c):(i[a]=c,c)}function Ey(i,a){if(Array.isArray(i)){i.splice(a,1);return}delete i[a]}/*!
|
|
174
|
+
* pinia v2.2.2
|
|
175
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
176
|
+
* @license MIT
|
|
177
|
+
*/let lu;const Th=i=>lu=i,Pte=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Hs(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}var cu;(function(i){i.direct="direct",i.patchObject="patch object",i.patchFunction="patch function"})(cu||(cu={}));const uu=typeof window<"u";function UA(i,a){for(const c in a){const f=a[c];if(!(c in i))continue;const p=i[c];Hs(p)&&Hs(f)&&!o.isRef(f)&&!o.isReactive(f)?i[c]=UA(p,f):i[c]=f}return i}const HA=()=>{};function XA(i,a,c,f=HA){i.push(a);const p=()=>{const O=i.indexOf(a);O>-1&&(i.splice(O,1),f())};return!c&&o.getCurrentScope()&&o.onScopeDispose(p),p}function cl(i,...a){i.slice().forEach(c=>{c(...a)})}const Ete=i=>i(),YA=Symbol(),Ty=Symbol();function _y(i,a){i instanceof Map&&a instanceof Map?a.forEach((c,f)=>i.set(f,c)):i instanceof Set&&a instanceof Set&&a.forEach(i.add,i);for(const c in a){if(!a.hasOwnProperty(c))continue;const f=a[c],p=i[c];Hs(p)&&Hs(f)&&i.hasOwnProperty(c)&&!o.isRef(f)&&!o.isReactive(f)?i[c]=_y(p,f):i[c]=f}return i}const Tte=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function _te(i){return!Hs(i)||!i.hasOwnProperty(Tte)}const{assign:Do}=Object;function GA(i){return!!(o.isRef(i)&&i.effect)}function KA(i,a,c,f){const{state:p,actions:O,getters:y}=a,w=c.state.value[i];let S;function A(){!w&&(process.env.NODE_ENV==="production"||!f)&&(c.state.value[i]=p?p():{});const T=process.env.NODE_ENV!=="production"&&f?o.toRefs(o.ref(p?p():{}).value):o.toRefs(c.state.value[i]);return Do(T,O,Object.keys(y||{}).reduce((P,N)=>(process.env.NODE_ENV!=="production"&&N in T&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${N}" in store "${i}".`),P[N]=o.markRaw(o.computed(()=>{Th(c);const V=c._s.get(i);return y[N].call(V,V)})),P),{}))}return S=Ny(i,A,a,c,f,!0),S}function Ny(i,a,c={},f,p,O){let y;const w=Do({actions:{}},c);if(process.env.NODE_ENV!=="production"&&!f._e.active)throw new Error("Pinia destroyed");const S={deep:!0};process.env.NODE_ENV!=="production"&&!kte&&(S.onTrigger=ue=>{A?V=ue:A==!1&&!U._hotUpdating&&(Array.isArray(V)?V.push(ue):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let A,T,P=[],N=[],V;const j=f.state.value[i];!O&&!j&&(process.env.NODE_ENV==="production"||!p)&&(f.state.value[i]={});const z=o.ref({});let K;function H(ue){let ge;A=T=!1,process.env.NODE_ENV!=="production"&&(V=[]),typeof ue=="function"?(ue(f.state.value[i]),ge={type:cu.patchFunction,storeId:i,events:V}):(_y(f.state.value[i],ue),ge={type:cu.patchObject,payload:ue,storeId:i,events:V});const ye=K=Symbol();o.nextTick().then(()=>{K===ye&&(A=!0)}),T=!0,cl(P,ge,f.state.value[i])}const X=O?function(){const{state:ue}=c,ge=ue?ue():{};this.$patch(ye=>{Do(ye,ge)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${i}" is built using the setup syntax and does not implement $reset().`)}:HA;function te(){y.stop(),P=[],N=[],f._s.delete(i)}const J=(ue,ge="")=>{if(YA in ue)return ue[Ty]=ge,ue;const ye=function(){Th(f);const Xe=Array.from(arguments),We=[],Me=[];function ie(xe){We.push(xe)}function ce(xe){Me.push(xe)}cl(N,{args:Xe,name:ye[Ty],store:U,after:ie,onError:ce});let Ne;try{Ne=ue.apply(this&&this.$id===i?this:U,Xe)}catch(xe){throw cl(Me,xe),xe}return Ne instanceof Promise?Ne.then(xe=>(cl(We,xe),xe)).catch(xe=>(cl(Me,xe),Promise.reject(xe))):(cl(We,Ne),Ne)};return ye[YA]=!0,ye[Ty]=ge,ye},se=o.markRaw({actions:{},getters:{},state:[],hotState:z}),le={_p:f,$id:i,$onAction:XA.bind(null,N),$patch:H,$reset:X,$subscribe(ue,ge={}){const ye=XA(P,ue,ge.detached,()=>Xe()),Xe=y.run(()=>o.watch(()=>f.state.value[i],We=>{(ge.flush==="sync"?T:A)&&ue({storeId:i,type:cu.direct,events:V},We)},Do({},S,ge)));return ye},$dispose:te},U=o.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&uu?Do({_hmrPayload:se,_customProperties:o.markRaw(new Set)},le):le);f._s.set(i,U);const he=(f._a&&f._a.runWithContext||Ete)(()=>f._e.run(()=>(y=o.effectScope()).run(()=>a({action:J}))));for(const ue in he){const ge=he[ue];if(o.isRef(ge)&&!GA(ge)||o.isReactive(ge))process.env.NODE_ENV!=="production"&&p?Eh(z.value,ue,o.toRef(he,ue)):O||(j&&_te(ge)&&(o.isRef(ge)?ge.value=j[ue]:_y(ge,j[ue])),f.state.value[i][ue]=ge),process.env.NODE_ENV!=="production"&&se.state.push(ue);else if(typeof ge=="function"){const ye=process.env.NODE_ENV!=="production"&&p?ge:J(ge,ue);he[ue]=ye,process.env.NODE_ENV!=="production"&&(se.actions[ue]=ge),w.actions[ue]=ge}else process.env.NODE_ENV!=="production"&&GA(ge)&&(se.getters[ue]=O?c.getters[ue]:ge,uu&&(he._getters||(he._getters=o.markRaw([]))).push(ue))}if(Do(U,he),Do(o.toRaw(U),he),Object.defineProperty(U,"$state",{get:()=>process.env.NODE_ENV!=="production"&&p?z.value:f.state.value[i],set:ue=>{if(process.env.NODE_ENV!=="production"&&p)throw new Error("cannot set hotState");H(ge=>{Do(ge,ue)})}}),process.env.NODE_ENV!=="production"&&(U._hotUpdate=o.markRaw(ue=>{U._hotUpdating=!0,ue._hmrPayload.state.forEach(ge=>{if(ge in U.$state){const ye=ue.$state[ge],Xe=U.$state[ge];typeof ye=="object"&&Hs(ye)&&Hs(Xe)?UA(ye,Xe):ue.$state[ge]=Xe}Eh(U,ge,o.toRef(ue.$state,ge))}),Object.keys(U.$state).forEach(ge=>{ge in ue.$state||Ey(U,ge)}),A=!1,T=!1,f.state.value[i]=o.toRef(ue._hmrPayload,"hotState"),T=!0,o.nextTick().then(()=>{A=!0});for(const ge in ue._hmrPayload.actions){const ye=ue[ge];Eh(U,ge,J(ye,ge))}for(const ge in ue._hmrPayload.getters){const ye=ue._hmrPayload.getters[ge],Xe=O?o.computed(()=>(Th(f),ye.call(U,U))):ye;Eh(U,ge,Xe)}Object.keys(U._hmrPayload.getters).forEach(ge=>{ge in ue._hmrPayload.getters||Ey(U,ge)}),Object.keys(U._hmrPayload.actions).forEach(ge=>{ge in ue._hmrPayload.actions||Ey(U,ge)}),U._hmrPayload=ue._hmrPayload,U._getters=ue._getters,U._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&uu){const ue={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(ge=>{Object.defineProperty(U,ge,Do({value:U[ge]},ue))})}return f._p.forEach(ue=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&uu){const ge=y.run(()=>ue({store:U,app:f._a,pinia:f,options:w}));Object.keys(ge||{}).forEach(ye=>U._customProperties.add(ye)),Do(U,ge)}else Do(U,y.run(()=>ue({store:U,app:f._a,pinia:f,options:w})))}),process.env.NODE_ENV!=="production"&&U.$state&&typeof U.$state=="object"&&typeof U.$state.constructor=="function"&&!U.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
178
|
+
state: () => new MyClass()
|
|
179
|
+
Found in store "${U.$id}".`),j&&O&&c.hydrate&&c.hydrate(U.$state,j),A=!0,T=!0,U}function Nte(i,a,c){let f,p;const O=typeof a=="function";f=i,p=O?c:a;function y(w,S){const A=o.hasInjectionContext();if(w=(process.env.NODE_ENV==="test"&&lu&&lu._testing?null:w)||(A?o.inject(Pte,null):null),w&&Th(w),process.env.NODE_ENV!=="production"&&!lu)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
180
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
181
|
+
This will fail in production.`);w=lu,w._s.has(f)||(O?Ny(f,a,p,w):KA(f,p,w),process.env.NODE_ENV!=="production"&&(y._pinia=w));const T=w._s.get(f);if(process.env.NODE_ENV!=="production"&&S){const P="__hot:"+f,N=O?Ny(P,a,p,w,!0):KA(P,Do({},p),w,!0);S._hotUpdate(N),delete w.state.value[P],w._s.delete(P)}if(process.env.NODE_ENV!=="production"&&uu){const P=o.getCurrentInstance();if(P&&P.proxy&&!S){const N=P.proxy,V="_pStores"in N?N._pStores:N._pStores={};V[f]=T}}return T}return y.$id=f,y}const JA=Nte("unione-session",()=>{const i=o.ref({}),a=o.ref({}),c=h(),f=Wi();function p(){return(!i.value||!i.value.id)&&P(),!!i.value.id}function O(N){return new Promise((V,j)=>{Us.admin({url:"/api/security/login",method:"post",data:N}).then(z=>{z.success?(i.value=z.principal,S(c.constant.ACCESS_USER_INFO,JSON.stringify(z.principal)),S(c.constant.ACCESS_TOKEN,z.token),V(z)):j(z)}).catch(z=>{j(z)})})}function y(){yt.confirm({title:f.t("store.session.logout.comfirm.title"),content:f.t("store.session.logout.comfirm.content"),onOk:()=>{T(c.constant.ACCESS_TOKEN),T(c.constant.ACCESS_USER_INFO)}})}function w(){return A(c.constant.ACCESS_TOKEN)}function S(N,V){a[N]=V,sessionStorage.setItem(N,V)}function A(N){return a[N]||(a[N]=sessionStorage.getItem(N)),a[N]}function T(N){return delete a[N],sessionStorage.removeItem(N)}function P(){if(!i.value||!i.value.id){const N=A(c.constant.ACCESS_USER_INFO)||"{}";i.value=JSON.parse(N)}return i.value}return{getPrincipal:P,doLogin:O,doLogout:y,isLogin:p,getToken:w,setStorage:S,getStorage:A,delStorage:T}}),Ate={submit:"提交","submit.ok":"已提交","submit.error":"提交失败","confirm.ok":"确定","confirm.cancel":"取消","global.setting.title":"设置"},Rte={"store.session.logout.comfirm.title":"确认信息","store.session.logout.comfirm.content":"确定要退出系统么?","dialog.confirm.title":"确认信息","dialog.info.title":"提示信息","dialog.warning.title":"警告信息","dialog.error.title":"错误信息","dialog.success.title":"成功信息","axios.process.loading":"数据处理中...","axios.delete.confirm.title":"确认信息","axios.delete.confirm.message":"请确认是否要删除该数据?","axios.delete.error.title":"错误信息","axios.delete.error.notempty":"请选择要删除的数据!","axios.delete.error.message":"数据删除失败!","axios.delete.error.exception":"数据删除失败,未知异常!","axios.delete.success.title":"成功信息","axios.delete.success.message":"数据删除成功!","axios.update.error.title":"错误信息","axios.update.error.message":"数据更新失败!","axios.update.error.exception":"数据更新失败,未知异常!","axios.update.success.title":"成功信息","axios.update.success.message":"数据更新成功!","axios.save.error.title":"错误信息","axios.save.error.message":"数据保存失败!","axios.save.error.exception":"数据保存失败,未知异常!","axios.save.success.title":"成功信息","axios.save.success.message":"数据保存成功!","axios.find.error.title":"错误信息","axios.find.error.message":"数据查询失败!","axios.find.error.exception":"数据查询失败,未知异常!","axios.find.success.title":"成功信息","axios.find.success.message":"数据查询成功!"},Mte={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},$A={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Ay={lang:q({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Mte),timePickerLocale:q({},$A)};Ay.lang.ok="确定";const So="${label}不是一个有效的${type}",Qte={locale:"zh-cn",Pagination:Y$,DatePicker:Ay,TimePicker:$A,Calendar:Ay,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:So,method:So,array:So,object:So,number:So,date:So,boolean:So,integer:So,float:So,regexp:So,email:So,url:So,hex:So},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}};var qA={exports:{}};(function(i,a){(function(c,f){i.exports=f(X_)})(fh,function(c){function f(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var p=f(c),O={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(y,w){return w==="W"?y+"周":y+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(y,w){var S=100*y+w;return S<600?"凌晨":S<900?"早上":S<1100?"上午":S<1300?"中午":S<1800?"下午":"晚上"}};return p.default.locale(O,null,!0),O})})(qA);var Ite=qA.exports;const Ry={localeName:"zh-CN",...Qte,dayjs:Xv(Ite),...Ate,...Rte},Dte={submit:"Submit","submit.ok":"Submitted","submit.error":"Submit Failed","confirm.ok":"Yes","confirm.cancel":"No","global.setting.title":"Settings"},Bte={"store.session.logout.comfirm.title":"Confirm message","store.session.logout.comfirm.content":"Are you sure you want out of the system?","dialog.confirm.title":"Confirm message","dialog.info.title":"Prompt message","dialog.warning.title":"Warning message","dialog.error.title":"Error message","dialog.success.title":"Success message","axios.process.loading":"Data processing...","axios.delete.confirm.title":"Confirm message","axios.delete.confirm.message":"Please confirm whether you want to delete this data?","axios.delete.error.title":"Error message","axios.delete.error.notempty":"Please select the data you want to delete!","axios.delete.error.message":"Data deletion failure!","axios.delete.error.exception":"Data deletion failed because an unknown exception occurred. Procedure!","axios.delete.success.title":"Success message","axios.delete.success.message":"Data deletion succeeded!","axios.update.error.title":"Error message","axios.update.error.message":"Data update failure!","axios.update.error.exception":"Data update failed because an unknown exception occurred. Procedure!","axios.update.success.title":"Success message","axios.update.success.message":"Data update succeeded!","axios.save.error.title":"Error message","axios.save.error.message":"Data save failure!","axios.save.error.exception":"Data save failed because an unknown exception occurred. Procedure!","axios.save.success.title":"Success message","axios.save.success.message":"Data save succeeded!","axios.find.error.title":"Error message","axios.find.error.message":"Data find failure!","axios.find.error.exception":"Data find failed because an unknown exception occurred. Procedure!","axios.find.success.title":"Success message","axios.find.success.message":"Data find succeeded!"};var e5={exports:{}};(function(i,a){(function(c,f){i.exports=f()})(fh,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(c){var f=["th","st","nd","rd"],p=c%100;return"["+c+(f[(p-20)%10]||f[p]||f[0])+"]"}}})})(e5);var Vte=e5.exports;const Lte={localeName:"en-US",...vr,dayjs:Xv(Vte),...Dte,...Bte},t5="zh-CN",n5=Ry,jte=o.ref([Ry,Lte]),du=o.ref(Ry),My=pte({legacy:!1,missingWarn:!1,fallbackWarn:!1,locale:t5,messages:{[t5]:n5}});jJ.locale(n5.dayjs);function Fte(i){My.global.locale.value=i;const a=document.querySelector("html");return a&&a.setAttribute("lang",i),i}function Zte(i,a){return new Promise((c,f)=>{const p=My.global,O=jte.value.filter(y=>y.localeName==i);if(a)if(typeof a=="function")a().then(y=>{if(O.length==0){const w={...y,localeName:i};p.setLocaleMessage(i,w)}else du.value={...O[0],...y},p.setLocaleMessage(i,du.value)});else if(O.length==0){const y={...a,localeName:i};p.setLocaleMessage(i,y)}else du.value={...O[0],...a},p.setLocaleMessage(i,du.value);else O.length>0?p.setLocaleMessage(i,O[0]):f("local language not defined ,lang:"+i);c(Fte(i))})}const Qy={i18n:My,loadLanguage:Zte,langMessage:du};var o5={exports:{}};(function(i,a){(function(){var c,f=0xdeadbeefcafe,p=(f&16777215)==15715070;function O(R,B,W){R!=null&&(typeof R=="number"?this.fromNumber(R,B,W):B==null&&typeof R!="string"?this.fromString(R,256):this.fromString(R,B))}function y(){return new O(null)}function w(R,B,W,oe,Ce,Te){for(;--Te>=0;){var De=B*this[R++]+W[oe]+Ce;Ce=Math.floor(De/67108864),W[oe++]=De&67108863}return Ce}function S(R,B,W,oe,Ce,Te){for(var De=B&32767,je=B>>15;--Te>=0;){var Mt=this[R]&32767,On=this[R++]>>15,Vo=je*Mt+On*De;Mt=De*Mt+((Vo&32767)<<15)+W[oe]+(Ce&1073741823),Ce=(Mt>>>30)+(Vo>>>15)+je*On+(Ce>>>30),W[oe++]=Mt&1073741823}return Ce}function A(R,B,W,oe,Ce,Te){for(var De=B&16383,je=B>>14;--Te>=0;){var Mt=this[R]&16383,On=this[R++]>>14,Vo=je*Mt+On*De;Mt=De*Mt+((Vo&16383)<<14)+W[oe]+Ce,Ce=(Mt>>28)+(Vo>>14)+je*On,W[oe++]=Mt&268435455}return Ce}var T=typeof navigator<"u";T&&p&&navigator.appName=="Microsoft Internet Explorer"?(O.prototype.am=S,c=30):T&&p&&navigator.appName!="Netscape"?(O.prototype.am=w,c=26):(O.prototype.am=A,c=28),O.prototype.DB=c,O.prototype.DM=(1<<c)-1,O.prototype.DV=1<<c;var P=52;O.prototype.FV=Math.pow(2,P),O.prototype.F1=P-c,O.prototype.F2=2*c-P;var N="0123456789abcdefghijklmnopqrstuvwxyz",V=new Array,j,z;for(j=48,z=0;z<=9;++z)V[j++]=z;for(j=97,z=10;z<36;++z)V[j++]=z;for(j=65,z=10;z<36;++z)V[j++]=z;function K(R){return N.charAt(R)}function H(R,B){var W=V[R.charCodeAt(B)];return W??-1}function X(R){for(var B=this.t-1;B>=0;--B)R[B]=this[B];R.t=this.t,R.s=this.s}function te(R){this.t=1,this.s=R<0?-1:0,R>0?this[0]=R:R<-1?this[0]=R+this.DV:this.t=0}function J(R){var B=y();return B.fromInt(R),B}function se(R,B){var W;if(B==16)W=4;else if(B==8)W=3;else if(B==256)W=8;else if(B==2)W=1;else if(B==32)W=5;else if(B==4)W=2;else{this.fromRadix(R,B);return}this.t=0,this.s=0;for(var oe=R.length,Ce=!1,Te=0;--oe>=0;){var De=W==8?R[oe]&255:H(R,oe);if(De<0){R.charAt(oe)=="-"&&(Ce=!0);continue}Ce=!1,Te==0?this[this.t++]=De:Te+W>this.DB?(this[this.t-1]|=(De&(1<<this.DB-Te)-1)<<Te,this[this.t++]=De>>this.DB-Te):this[this.t-1]|=De<<Te,Te+=W,Te>=this.DB&&(Te-=this.DB)}W==8&&R[0]&128&&(this.s=-1,Te>0&&(this[this.t-1]|=(1<<this.DB-Te)-1<<Te)),this.clamp(),Ce&&O.ZERO.subTo(this,this)}function le(){for(var R=this.s&this.DM;this.t>0&&this[this.t-1]==R;)--this.t}function U(R){if(this.s<0)return"-"+this.negate().toString(R);var B;if(R==16)B=4;else if(R==8)B=3;else if(R==2)B=1;else if(R==32)B=5;else if(R==4)B=2;else return this.toRadix(R);var W=(1<<B)-1,oe,Ce=!1,Te="",De=this.t,je=this.DB-De*this.DB%B;if(De-- >0)for(je<this.DB&&(oe=this[De]>>je)>0&&(Ce=!0,Te=K(oe));De>=0;)je<B?(oe=(this[De]&(1<<je)-1)<<B-je,oe|=this[--De]>>(je+=this.DB-B)):(oe=this[De]>>(je-=B)&W,je<=0&&(je+=this.DB,--De)),oe>0&&(Ce=!0),Ce&&(Te+=K(oe));return Ce?Te:"0"}function he(){var R=y();return O.ZERO.subTo(this,R),R}function ue(){return this.s<0?this.negate():this}function ge(R){var B=this.s-R.s;if(B!=0)return B;var W=this.t;if(B=W-R.t,B!=0)return this.s<0?-B:B;for(;--W>=0;)if((B=this[W]-R[W])!=0)return B;return 0}function ye(R){var B=1,W;return(W=R>>>16)!=0&&(R=W,B+=16),(W=R>>8)!=0&&(R=W,B+=8),(W=R>>4)!=0&&(R=W,B+=4),(W=R>>2)!=0&&(R=W,B+=2),(W=R>>1)!=0&&(R=W,B+=1),B}function Xe(){return this.t<=0?0:this.DB*(this.t-1)+ye(this[this.t-1]^this.s&this.DM)}function We(R,B){var W;for(W=this.t-1;W>=0;--W)B[W+R]=this[W];for(W=R-1;W>=0;--W)B[W]=0;B.t=this.t+R,B.s=this.s}function Me(R,B){for(var W=R;W<this.t;++W)B[W-R]=this[W];B.t=Math.max(this.t-R,0),B.s=this.s}function ie(R,B){var W=R%this.DB,oe=this.DB-W,Ce=(1<<oe)-1,Te=Math.floor(R/this.DB),De=this.s<<W&this.DM,je;for(je=this.t-1;je>=0;--je)B[je+Te+1]=this[je]>>oe|De,De=(this[je]&Ce)<<W;for(je=Te-1;je>=0;--je)B[je]=0;B[Te]=De,B.t=this.t+Te+1,B.s=this.s,B.clamp()}function ce(R,B){B.s=this.s;var W=Math.floor(R/this.DB);if(W>=this.t){B.t=0;return}var oe=R%this.DB,Ce=this.DB-oe,Te=(1<<oe)-1;B[0]=this[W]>>oe;for(var De=W+1;De<this.t;++De)B[De-W-1]|=(this[De]&Te)<<Ce,B[De-W]=this[De]>>oe;oe>0&&(B[this.t-W-1]|=(this.s&Te)<<Ce),B.t=this.t-W,B.clamp()}function Ne(R,B){for(var W=0,oe=0,Ce=Math.min(R.t,this.t);W<Ce;)oe+=this[W]-R[W],B[W++]=oe&this.DM,oe>>=this.DB;if(R.t<this.t){for(oe-=R.s;W<this.t;)oe+=this[W],B[W++]=oe&this.DM,oe>>=this.DB;oe+=this.s}else{for(oe+=this.s;W<R.t;)oe-=R[W],B[W++]=oe&this.DM,oe>>=this.DB;oe-=R.s}B.s=oe<0?-1:0,oe<-1?B[W++]=this.DV+oe:oe>0&&(B[W++]=oe),B.t=W,B.clamp()}function xe(R,B){var W=this.abs(),oe=R.abs(),Ce=W.t;for(B.t=Ce+oe.t;--Ce>=0;)B[Ce]=0;for(Ce=0;Ce<oe.t;++Ce)B[Ce+W.t]=W.am(0,oe[Ce],B,Ce,0,W.t);B.s=0,B.clamp(),this.s!=R.s&&O.ZERO.subTo(B,B)}function ze(R){for(var B=this.abs(),W=R.t=2*B.t;--W>=0;)R[W]=0;for(W=0;W<B.t-1;++W){var oe=B.am(W,B[W],R,2*W,0,1);(R[W+B.t]+=B.am(W+1,2*B[W],R,2*W+1,oe,B.t-W-1))>=B.DV&&(R[W+B.t]-=B.DV,R[W+B.t+1]=1)}R.t>0&&(R[R.t-1]+=B.am(W,B[W],R,2*W,0,1)),R.s=0,R.clamp()}function Ye(R,B,W){var oe=R.abs();if(!(oe.t<=0)){var Ce=this.abs();if(Ce.t<oe.t){B?.fromInt(0),W!=null&&this.copyTo(W);return}W==null&&(W=y());var Te=y(),De=this.s,je=R.s,Mt=this.DB-ye(oe[oe.t-1]);Mt>0?(oe.lShiftTo(Mt,Te),Ce.lShiftTo(Mt,W)):(oe.copyTo(Te),Ce.copyTo(W));var On=Te.t,Vo=Te[On-1];if(Vo!=0){var Eo=Vo*(1<<this.F1)+(On>1?Te[On-2]>>this.F2:0),Xi=this.FV/Eo,Bh=(1<<this.F1)/Eo,ni=1<<this.F2,oi=W.t,Vh=oi-On,Ir=B??y();for(Te.dlShiftTo(Vh,Ir),W.compareTo(Ir)>=0&&(W[W.t++]=1,W.subTo(Ir,W)),O.ONE.dlShiftTo(On,Ir),Ir.subTo(Te,Te);Te.t<On;)Te[Te.t++]=0;for(;--Vh>=0;){var Zy=W[--oi]==Vo?this.DM:Math.floor(W[oi]*Xi+(W[oi-1]+ni)*Bh);if((W[oi]+=Te.am(0,Zy,W,Vh,0,On))<Zy)for(Te.dlShiftTo(Vh,Ir),W.subTo(Ir,W);W[oi]<--Zy;)W.subTo(Ir,W)}B!=null&&(W.drShiftTo(On,B),De!=je&&O.ZERO.subTo(B,B)),W.t=On,W.clamp(),Mt>0&&W.rShiftTo(Mt,W),De<0&&O.ZERO.subTo(W,W)}}}function ot(R){var B=y();return this.abs().divRemTo(R,null,B),this.s<0&&B.compareTo(O.ZERO)>0&&R.subTo(B,B),B}function ut(R){this.m=R}function xt(R){return R.s<0||R.compareTo(this.m)>=0?R.mod(this.m):R}function wt(R){return R}function Tt(R){R.divRemTo(this.m,null,R)}function mn(R,B,W){R.multiplyTo(B,W),this.reduce(W)}function Ht(R,B){R.squareTo(B),this.reduce(B)}ut.prototype.convert=xt,ut.prototype.revert=wt,ut.prototype.reduce=Tt,ut.prototype.mulTo=mn,ut.prototype.sqrTo=Ht;function so(){if(this.t<1)return 0;var R=this[0];if(!(R&1))return 0;var B=R&3;return B=B*(2-(R&15)*B)&15,B=B*(2-(R&255)*B)&255,B=B*(2-((R&65535)*B&65535))&65535,B=B*(2-R*B%this.DV)%this.DV,B>0?this.DV-B:-B}function Xt(R){this.m=R,this.mp=R.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<R.DB-15)-1,this.mt2=2*R.t}function on(R){var B=y();return R.abs().dlShiftTo(this.m.t,B),B.divRemTo(this.m,null,B),R.s<0&&B.compareTo(O.ZERO)>0&&this.m.subTo(B,B),B}function ao(R){var B=y();return R.copyTo(B),this.reduce(B),B}function ei(R){for(;R.t<=this.mt2;)R[R.t++]=0;for(var B=0;B<this.m.t;++B){var W=R[B]&32767,oe=W*this.mpl+((W*this.mph+(R[B]>>15)*this.mpl&this.um)<<15)&R.DM;for(W=B+this.m.t,R[W]+=this.m.am(0,oe,R,B,0,this.m.t);R[W]>=R.DV;)R[W]-=R.DV,R[++W]++}R.clamp(),R.drShiftTo(this.m.t,R),R.compareTo(this.m)>=0&&R.subTo(this.m,R)}function ko(R,B){R.squareTo(B),this.reduce(B)}function Gs(R,B,W){R.multiplyTo(B,W),this.reduce(W)}Xt.prototype.convert=on,Xt.prototype.revert=ao,Xt.prototype.reduce=ei,Xt.prototype.mulTo=Gs,Xt.prototype.sqrTo=ko;function Mr(){return(this.t>0?this[0]&1:this.s)==0}function Ks(R,B){if(R>4294967295||R<1)return O.ONE;var W=y(),oe=y(),Ce=B.convert(this),Te=ye(R)-1;for(Ce.copyTo(W);--Te>=0;)if(B.sqrTo(W,oe),(R&1<<Te)>0)B.mulTo(oe,Ce,W);else{var De=W;W=oe,oe=De}return B.revert(W)}function pu(R,B){var W;return R<256||B.isEven()?W=new ut(B):W=new Xt(B),this.exp(R,W)}O.prototype.copyTo=X,O.prototype.fromInt=te,O.prototype.fromString=se,O.prototype.clamp=le,O.prototype.dlShiftTo=We,O.prototype.drShiftTo=Me,O.prototype.lShiftTo=ie,O.prototype.rShiftTo=ce,O.prototype.subTo=Ne,O.prototype.multiplyTo=xe,O.prototype.squareTo=ze,O.prototype.divRemTo=Ye,O.prototype.invDigit=so,O.prototype.isEven=Mr,O.prototype.exp=Ks,O.prototype.toString=U,O.prototype.negate=he,O.prototype.abs=ue,O.prototype.compareTo=ge,O.prototype.bitLength=Xe,O.prototype.mod=ot,O.prototype.modPowInt=pu,O.ZERO=J(0),O.ONE=J(1);function ee(){var R=y();return this.copyTo(R),R}function ne(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function _e(){return this.t==0?this.s:this[0]<<24>>24}function Je(){return this.t==0?this.s:this[0]<<16>>16}function at(R){return Math.floor(Math.LN2*this.DB/Math.log(R))}function fe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ee(R){if(R==null&&(R=10),this.signum()==0||R<2||R>36)return"0";var B=this.chunkSize(R),W=Math.pow(R,B),oe=J(W),Ce=y(),Te=y(),De="";for(this.divRemTo(oe,Ce,Te);Ce.signum()>0;)De=(W+Te.intValue()).toString(R).substr(1)+De,Ce.divRemTo(oe,Ce,Te);return Te.intValue().toString(R)+De}function vt(R,B){this.fromInt(0),B==null&&(B=10);for(var W=this.chunkSize(B),oe=Math.pow(B,W),Ce=!1,Te=0,De=0,je=0;je<R.length;++je){var Mt=H(R,je);if(Mt<0){R.charAt(je)=="-"&&this.signum()==0&&(Ce=!0);continue}De=B*De+Mt,++Te>=W&&(this.dMultiply(oe),this.dAddOffset(De,0),Te=0,De=0)}Te>0&&(this.dMultiply(Math.pow(B,Te)),this.dAddOffset(De,0)),Ce&&O.ZERO.subTo(this,this)}function Ft(R,B,W){if(typeof B=="number")if(R<2)this.fromInt(1);else for(this.fromNumber(R,W),this.testBit(R-1)||this.bitwiseTo(O.ONE.shiftLeft(R-1),Ly,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(B);)this.dAddOffset(2,0),this.bitLength()>R&&this.subTo(O.ONE.shiftLeft(R-1),this);else{var oe=new Array,Ce=R&7;oe.length=(R>>3)+1,B.nextBytes(oe),Ce>0?oe[0]&=(1<<Ce)-1:oe[0]=0,this.fromString(oe,256)}}function Ui(){var R=this.t,B=new Array;B[0]=this.s;var W=this.DB-R*this.DB%8,oe,Ce=0;if(R-- >0)for(W<this.DB&&(oe=this[R]>>W)!=(this.s&this.DM)>>W&&(B[Ce++]=oe|this.s<<this.DB-W);R>=0;)W<8?(oe=(this[R]&(1<<W)-1)<<8-W,oe|=this[--R]>>(W+=this.DB-8)):(oe=this[R]>>(W-=8)&255,W<=0&&(W+=this.DB,--R)),oe&128&&(oe|=-256),Ce==0&&(this.s&128)!=(oe&128)&&++Ce,(Ce>0||oe!=this.s)&&(B[Ce++]=oe);return B}function ml(R){return this.compareTo(R)==0}function Qr(R){return this.compareTo(R)<0?this:R}function Hi(R){return this.compareTo(R)>0?this:R}function Vy(R,B,W){var oe,Ce,Te=Math.min(R.t,this.t);for(oe=0;oe<Te;++oe)W[oe]=B(this[oe],R[oe]);if(R.t<this.t){for(Ce=R.s&this.DM,oe=Te;oe<this.t;++oe)W[oe]=B(this[oe],Ce);W.t=this.t}else{for(Ce=this.s&this.DM,oe=Te;oe<R.t;++oe)W[oe]=B(Ce,R[oe]);W.t=R.t}W.s=B(this.s,R.s),W.clamp()}function Ih(R,B){return R&B}function Mne(R){var B=y();return this.bitwiseTo(R,Ih,B),B}function Ly(R,B){return R|B}function Qne(R){var B=y();return this.bitwiseTo(R,Ly,B),B}function C5(R,B){return R^B}function Ine(R){var B=y();return this.bitwiseTo(R,C5,B),B}function k5(R,B){return R&~B}function Dne(R){var B=y();return this.bitwiseTo(R,k5,B),B}function Bne(){for(var R=y(),B=0;B<this.t;++B)R[B]=this.DM&~this[B];return R.t=this.t,R.s=~this.s,R}function Vne(R){var B=y();return R<0?this.rShiftTo(-R,B):this.lShiftTo(R,B),B}function Lne(R){var B=y();return R<0?this.lShiftTo(-R,B):this.rShiftTo(R,B),B}function jne(R){if(R==0)return-1;var B=0;return R&65535||(R>>=16,B+=16),R&255||(R>>=8,B+=8),R&15||(R>>=4,B+=4),R&3||(R>>=2,B+=2),R&1||++B,B}function Fne(){for(var R=0;R<this.t;++R)if(this[R]!=0)return R*this.DB+jne(this[R]);return this.s<0?this.t*this.DB:-1}function Zne(R){for(var B=0;R!=0;)R&=R-1,++B;return B}function zne(){for(var R=0,B=this.s&this.DM,W=0;W<this.t;++W)R+=Zne(this[W]^B);return R}function Wne(R){var B=Math.floor(R/this.DB);return B>=this.t?this.s!=0:(this[B]&1<<R%this.DB)!=0}function Une(R,B){var W=O.ONE.shiftLeft(R);return this.bitwiseTo(W,B,W),W}function Hne(R){return this.changeBit(R,Ly)}function Xne(R){return this.changeBit(R,k5)}function Yne(R){return this.changeBit(R,C5)}function Gne(R,B){for(var W=0,oe=0,Ce=Math.min(R.t,this.t);W<Ce;)oe+=this[W]+R[W],B[W++]=oe&this.DM,oe>>=this.DB;if(R.t<this.t){for(oe+=R.s;W<this.t;)oe+=this[W],B[W++]=oe&this.DM,oe>>=this.DB;oe+=this.s}else{for(oe+=this.s;W<R.t;)oe+=R[W],B[W++]=oe&this.DM,oe>>=this.DB;oe+=R.s}B.s=oe<0?-1:0,oe>0?B[W++]=oe:oe<-1&&(B[W++]=this.DV+oe),B.t=W,B.clamp()}function Kne(R){var B=y();return this.addTo(R,B),B}function Jne(R){var B=y();return this.subTo(R,B),B}function $ne(R){var B=y();return this.multiplyTo(R,B),B}function qne(){var R=y();return this.squareTo(R),R}function eoe(R){var B=y();return this.divRemTo(R,B,null),B}function toe(R){var B=y();return this.divRemTo(R,null,B),B}function noe(R){var B=y(),W=y();return this.divRemTo(R,B,W),new Array(B,W)}function ooe(R){this[this.t]=this.am(0,R-1,this,0,0,this.t),++this.t,this.clamp()}function ioe(R,B){if(R!=0){for(;this.t<=B;)this[this.t++]=0;for(this[B]+=R;this[B]>=this.DV;)this[B]-=this.DV,++B>=this.t&&(this[this.t++]=0),++this[B]}}function mu(){}function P5(R){return R}function roe(R,B,W){R.multiplyTo(B,W)}function soe(R,B){R.squareTo(B)}mu.prototype.convert=P5,mu.prototype.revert=P5,mu.prototype.mulTo=roe,mu.prototype.sqrTo=soe;function aoe(R){return this.exp(R,new mu)}function loe(R,B,W){var oe=Math.min(this.t+R.t,B);for(W.s=0,W.t=oe;oe>0;)W[--oe]=0;var Ce;for(Ce=W.t-this.t;oe<Ce;++oe)W[oe+this.t]=this.am(0,R[oe],W,oe,0,this.t);for(Ce=Math.min(R.t,B);oe<Ce;++oe)this.am(0,R[oe],W,oe,0,B-oe);W.clamp()}function coe(R,B,W){--B;var oe=W.t=this.t+R.t-B;for(W.s=0;--oe>=0;)W[oe]=0;for(oe=Math.max(B-this.t,0);oe<R.t;++oe)W[this.t+oe-B]=this.am(B-oe,R[oe],W,0,0,this.t+oe-B);W.clamp(),W.drShiftTo(1,W)}function Js(R){this.r2=y(),this.q3=y(),O.ONE.dlShiftTo(2*R.t,this.r2),this.mu=this.r2.divide(R),this.m=R}function uoe(R){if(R.s<0||R.t>2*this.m.t)return R.mod(this.m);if(R.compareTo(this.m)<0)return R;var B=y();return R.copyTo(B),this.reduce(B),B}function doe(R){return R}function foe(R){for(R.drShiftTo(this.m.t-1,this.r2),R.t>this.m.t+1&&(R.t=this.m.t+1,R.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);R.compareTo(this.r2)<0;)R.dAddOffset(1,this.m.t+1);for(R.subTo(this.r2,R);R.compareTo(this.m)>=0;)R.subTo(this.m,R)}function hoe(R,B){R.squareTo(B),this.reduce(B)}function poe(R,B,W){R.multiplyTo(B,W),this.reduce(W)}Js.prototype.convert=uoe,Js.prototype.revert=doe,Js.prototype.reduce=foe,Js.prototype.mulTo=poe,Js.prototype.sqrTo=hoe;function moe(R,B){var W=R.bitLength(),oe,Ce=J(1),Te;if(W<=0)return Ce;W<18?oe=1:W<48?oe=3:W<144?oe=4:W<768?oe=5:oe=6,W<8?Te=new ut(B):B.isEven()?Te=new Js(B):Te=new Xt(B);var De=new Array,je=3,Mt=oe-1,On=(1<<oe)-1;if(De[1]=Te.convert(this),oe>1){var Vo=y();for(Te.sqrTo(De[1],Vo);je<=On;)De[je]=y(),Te.mulTo(Vo,De[je-2],De[je]),je+=2}var Eo=R.t-1,Xi,Bh=!0,ni=y(),oi;for(W=ye(R[Eo])-1;Eo>=0;){for(W>=Mt?Xi=R[Eo]>>W-Mt&On:(Xi=(R[Eo]&(1<<W+1)-1)<<Mt-W,Eo>0&&(Xi|=R[Eo-1]>>this.DB+W-Mt)),je=oe;!(Xi&1);)Xi>>=1,--je;if((W-=je)<0&&(W+=this.DB,--Eo),Bh)De[Xi].copyTo(Ce),Bh=!1;else{for(;je>1;)Te.sqrTo(Ce,ni),Te.sqrTo(ni,Ce),je-=2;je>0?Te.sqrTo(Ce,ni):(oi=Ce,Ce=ni,ni=oi),Te.mulTo(ni,De[Xi],Ce)}for(;Eo>=0&&!(R[Eo]&1<<W);)Te.sqrTo(Ce,ni),oi=Ce,Ce=ni,ni=oi,--W<0&&(W=this.DB-1,--Eo)}return Te.revert(Ce)}function goe(R){var B=this.s<0?this.negate():this.clone(),W=R.s<0?R.negate():R.clone();if(B.compareTo(W)<0){var oe=B;B=W,W=oe}var Ce=B.getLowestSetBit(),Te=W.getLowestSetBit();if(Te<0)return B;for(Ce<Te&&(Te=Ce),Te>0&&(B.rShiftTo(Te,B),W.rShiftTo(Te,W));B.signum()>0;)(Ce=B.getLowestSetBit())>0&&B.rShiftTo(Ce,B),(Ce=W.getLowestSetBit())>0&&W.rShiftTo(Ce,W),B.compareTo(W)>=0?(B.subTo(W,B),B.rShiftTo(1,B)):(W.subTo(B,W),W.rShiftTo(1,W));return Te>0&&W.lShiftTo(Te,W),W}function Ooe(R){if(R<=0)return 0;var B=this.DV%R,W=this.s<0?R-1:0;if(this.t>0)if(B==0)W=this[0]%R;else for(var oe=this.t-1;oe>=0;--oe)W=(B*W+this[oe])%R;return W}function voe(R){var B=R.isEven();if(this.isEven()&&B||R.signum()==0)return O.ZERO;for(var W=R.clone(),oe=this.clone(),Ce=J(1),Te=J(0),De=J(0),je=J(1);W.signum()!=0;){for(;W.isEven();)W.rShiftTo(1,W),B?((!Ce.isEven()||!Te.isEven())&&(Ce.addTo(this,Ce),Te.subTo(R,Te)),Ce.rShiftTo(1,Ce)):Te.isEven()||Te.subTo(R,Te),Te.rShiftTo(1,Te);for(;oe.isEven();)oe.rShiftTo(1,oe),B?((!De.isEven()||!je.isEven())&&(De.addTo(this,De),je.subTo(R,je)),De.rShiftTo(1,De)):je.isEven()||je.subTo(R,je),je.rShiftTo(1,je);W.compareTo(oe)>=0?(W.subTo(oe,W),B&&Ce.subTo(De,Ce),Te.subTo(je,Te)):(oe.subTo(W,oe),B&&De.subTo(Ce,De),je.subTo(Te,je))}if(oe.compareTo(O.ONE)!=0)return O.ZERO;if(je.compareTo(R)>=0)return je.subtract(R);if(je.signum()<0)je.addTo(R,je);else return je;return je.signum()<0?je.add(R):je}var Hn=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],yoe=(1<<26)/Hn[Hn.length-1];function boe(R){var B,W=this.abs();if(W.t==1&&W[0]<=Hn[Hn.length-1]){for(B=0;B<Hn.length;++B)if(W[0]==Hn[B])return!0;return!1}if(W.isEven())return!1;for(B=1;B<Hn.length;){for(var oe=Hn[B],Ce=B+1;Ce<Hn.length&&oe<yoe;)oe*=Hn[Ce++];for(oe=W.modInt(oe);B<Ce;)if(oe%Hn[B++]==0)return!1}return W.millerRabin(R)}function xoe(R){var B=this.subtract(O.ONE),W=B.getLowestSetBit();if(W<=0)return!1;var oe=B.shiftRight(W);R=R+1>>1,R>Hn.length&&(R=Hn.length);for(var Ce=y(),Te=0;Te<R;++Te){Ce.fromInt(Hn[Math.floor(Math.random()*Hn.length)]);var De=Ce.modPow(oe,this);if(De.compareTo(O.ONE)!=0&&De.compareTo(B)!=0){for(var je=1;je++<W&&De.compareTo(B)!=0;)if(De=De.modPowInt(2,this),De.compareTo(O.ONE)==0)return!1;if(De.compareTo(B)!=0)return!1}}return!0}O.prototype.chunkSize=at,O.prototype.toRadix=Ee,O.prototype.fromRadix=vt,O.prototype.fromNumber=Ft,O.prototype.bitwiseTo=Vy,O.prototype.changeBit=Une,O.prototype.addTo=Gne,O.prototype.dMultiply=ooe,O.prototype.dAddOffset=ioe,O.prototype.multiplyLowerTo=loe,O.prototype.multiplyUpperTo=coe,O.prototype.modInt=Ooe,O.prototype.millerRabin=xoe,O.prototype.clone=ee,O.prototype.intValue=ne,O.prototype.byteValue=_e,O.prototype.shortValue=Je,O.prototype.signum=fe,O.prototype.toByteArray=Ui,O.prototype.equals=ml,O.prototype.min=Qr,O.prototype.max=Hi,O.prototype.and=Mne,O.prototype.or=Qne,O.prototype.xor=Ine,O.prototype.andNot=Dne,O.prototype.not=Bne,O.prototype.shiftLeft=Vne,O.prototype.shiftRight=Lne,O.prototype.getLowestSetBit=Fne,O.prototype.bitCount=zne,O.prototype.testBit=Wne,O.prototype.setBit=Hne,O.prototype.clearBit=Xne,O.prototype.flipBit=Yne,O.prototype.add=Kne,O.prototype.subtract=Jne,O.prototype.multiply=$ne,O.prototype.divide=eoe,O.prototype.remainder=toe,O.prototype.divideAndRemainder=noe,O.prototype.modPow=moe,O.prototype.modInverse=voe,O.prototype.pow=aoe,O.prototype.gcd=goe,O.prototype.isProbablePrime=boe,O.prototype.square=qne,O.prototype.Barrett=Js;var Dh,Po,gn;function woe(R){Po[gn++]^=R&255,Po[gn++]^=R>>8&255,Po[gn++]^=R>>16&255,Po[gn++]^=R>>24&255,gn>=Fy&&(gn-=Fy)}function E5(){woe(new Date().getTime())}if(Po==null){Po=new Array,gn=0;var ti;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var T5=new Uint8Array(32);for(window.crypto.getRandomValues(T5),ti=0;ti<32;++ti)Po[gn++]=T5[ti]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var _5=window.crypto.random(32);for(ti=0;ti<_5.length;++ti)Po[gn++]=_5.charCodeAt(ti)&255}}for(;gn<Fy;)ti=Math.floor(65536*Math.random()),Po[gn++]=ti>>>8,Po[gn++]=ti&255;gn=0,E5()}function Soe(){if(Dh==null){for(E5(),Dh=Eoe(),Dh.init(Po),gn=0;gn<Po.length;++gn)Po[gn]=0;gn=0}return Dh.next()}function Coe(R){var B;for(B=0;B<R.length;++B)R[B]=Soe()}function N5(){}N5.prototype.nextBytes=Coe;function jy(){this.i=0,this.j=0,this.S=new Array}function koe(R){var B,W,oe;for(B=0;B<256;++B)this.S[B]=B;for(W=0,B=0;B<256;++B)W=W+this.S[B]+R[B%R.length]&255,oe=this.S[B],this.S[B]=this.S[W],this.S[W]=oe;this.i=0,this.j=0}function Poe(){var R;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,R=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=R,this.S[R+this.S[this.i]&255]}jy.prototype.init=koe,jy.prototype.next=Poe;function Eoe(){return new jy}var Fy=256;i.exports={default:O,BigInteger:O,SecureRandom:N5}}).call(fh)})(o5);var _h=o5.exports;const{BigInteger:ul}=_h;function zte(i){let a=i.toString(16);if(a[0]!=="-")a.length%2===1?a="0"+a:a.match(/^[0-7]/)||(a="00"+a);else{a=a.substr(1);let c=a.length;c%2===1?c+=1:a.match(/^[0-7]/)||(c+=2);let f="";for(let p=0;p<c;p++)f+="f";f=new ul(f,16),a=f.xor(i).add(ul.ONE),a=a.toString(16).replace(/^-/,"")}return a}class i5{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const a=this.v.length/2;let c=a.toString(16);return c.length%2===1&&(c="0"+c),a<128?c:(128+c.length/2).toString(16)+c}getValue(){return""}}class r5 extends i5{constructor(a){super(),this.t="02",a&&(this.v=zte(a))}getValue(){return this.v}}class Wte extends i5{constructor(a){super(),this.t="30",this.asn1Array=a}getValue(){return this.v=this.asn1Array.map(a=>a.getEncodedHex()).join(""),this.v}}function s5(i,a){return+i[a+2]<8?1:+i.substr(a+2,2)&128}function a5(i,a){const c=s5(i,a),f=i.substr(a+2,c*2);return f?(+f[0]<8?new ul(f,16):new ul(f.substr(2),16)).intValue():-1}function Iy(i,a){const c=s5(i,a);return a+(c+1)*2}var Ute={encodeDer(i,a){const c=new r5(i),f=new r5(a);return new Wte([c,f]).getEncodedHex()},decodeDer(i){const a=Iy(i,0),c=Iy(i,a),f=a5(i,a),p=i.substr(c,f*2),O=c+p.length,y=Iy(i,O),w=a5(i,O),S=i.substr(y,w*2),A=new ul(p,16),T=new ul(S,16);return{r:A,s:T}}};const{BigInteger:Un}=_h,l5=new Un("2"),c5=new Un("3");class _r{constructor(a,c){this.x=c,this.q=a}equals(a){return a===this?!0:this.q.equals(a.q)&&this.x.equals(a.x)}toBigInteger(){return this.x}negate(){return new _r(this.q,this.x.negate().mod(this.q))}add(a){return new _r(this.q,this.x.add(a.toBigInteger()).mod(this.q))}subtract(a){return new _r(this.q,this.x.subtract(a.toBigInteger()).mod(this.q))}multiply(a){return new _r(this.q,this.x.multiply(a.toBigInteger()).mod(this.q))}divide(a){return new _r(this.q,this.x.multiply(a.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new _r(this.q,this.x.square().mod(this.q))}}class Nr{constructor(a,c,f,p){this.curve=a,this.x=c,this.y=f,this.z=p??Un.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(a){return a===this?!0:this.isInfinity()?a.isInfinity():a.isInfinity()?this.isInfinity():a.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(a.z)).mod(this.curve.q).equals(Un.ZERO)?a.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(a.z)).mod(this.curve.q).equals(Un.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Un.ZERO)&&!this.y.toBigInteger().equals(Un.ZERO)}negate(){return new Nr(this.curve,this.x,this.y.negate(),this.z)}add(a){if(this.isInfinity())return a;if(a.isInfinity())return this;const c=this.x.toBigInteger(),f=this.y.toBigInteger(),p=this.z,O=a.x.toBigInteger(),y=a.y.toBigInteger(),w=a.z,S=this.curve.q,A=c.multiply(w).mod(S),T=O.multiply(p).mod(S),P=A.subtract(T),N=f.multiply(w).mod(S),V=y.multiply(p).mod(S),j=N.subtract(V);if(Un.ZERO.equals(P))return Un.ZERO.equals(j)?this.twice():this.curve.infinity;const z=A.add(T),K=p.multiply(w).mod(S),H=P.square().mod(S),X=P.multiply(H).mod(S),te=K.multiply(j.square()).subtract(z.multiply(H)).mod(S),J=P.multiply(te).mod(S),se=j.multiply(H.multiply(A).subtract(te)).subtract(N.multiply(X)).mod(S),le=X.multiply(K).mod(S);return new Nr(this.curve,this.curve.fromBigInteger(J),this.curve.fromBigInteger(se),le)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const a=this.x.toBigInteger(),c=this.y.toBigInteger(),f=this.z,p=this.curve.q,O=this.curve.a.toBigInteger(),y=a.square().multiply(c5).add(O.multiply(f.square())).mod(p),w=c.shiftLeft(1).multiply(f).mod(p),S=c.square().mod(p),A=S.multiply(a).multiply(f).mod(p),T=w.square().mod(p),P=y.square().subtract(A.shiftLeft(3)).mod(p),N=w.multiply(P).mod(p),V=y.multiply(A.shiftLeft(2).subtract(P)).subtract(T.shiftLeft(1).multiply(S)).mod(p),j=w.multiply(T).mod(p);return new Nr(this.curve,this.curve.fromBigInteger(N),this.curve.fromBigInteger(V),j)}multiply(a){if(this.isInfinity())return this;if(!a.signum())return this.curve.infinity;const c=a.multiply(c5),f=this.negate();let p=this;for(let O=c.bitLength()-2;O>0;O--){p=p.twice();const y=c.testBit(O),w=a.testBit(O);y!==w&&(p=p.add(y?this:f))}return p}}var Hte={ECPointFp:Nr,ECCurveFp:class{constructor(i,a,c){this.q=i,this.a=this.fromBigInteger(a),this.b=this.fromBigInteger(c),this.infinity=new Nr(this,null,null)}equals(i){return i===this?!0:this.q.equals(i.q)&&this.a.equals(i.a)&&this.b.equals(i.b)}fromBigInteger(i){return new _r(this.q,i)}decodePointHex(i){switch(parseInt(i.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const a=this.fromBigInteger(new Un(i.substr(2),16));let c=this.fromBigInteger(a.multiply(a.square()).add(a.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Un("4")).add(Un.ONE),this.q));return c.toBigInteger().mod(l5).equals(new Un(i.substr(0,2),16).subtract(l5))||(c=c.negate()),new Nr(this,a,c);case 4:case 6:case 7:const f=(i.length-2)/2,p=i.substr(2,f),O=i.substr(f+2,f);return new Nr(this,this.fromBigInteger(new Un(p,16)),this.fromBigInteger(new Un(O,16)));default:return null}}}};const{BigInteger:$o,SecureRandom:Xte}=_h,{ECCurveFp:Yte}=Hte,Gte=new Xte,{curve:dl,G:Kte,n:u5}=d5();function Jte(){return dl}function d5(){const i=new $o("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),a=new $o("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),c=new $o("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),f=new Yte(i,a,c),p=f.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),O=new $o("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:f,G:p,n:O}}function $te(i,a,c){const f=(i?new $o(i,a,c):new $o(u5.bitLength(),Gte)).mod(u5.subtract($o.ONE)).add($o.ONE),p=fu(f.toString(16),64),O=Kte.multiply(f),y=fu(O.getX().toBigInteger().toString(16),64),w=fu(O.getY().toBigInteger().toString(16),64),S="04"+y+w;return{privateKey:p,publicKey:S}}function qte(i){if(i.length!==130)throw new Error("Invalid public key to compress");const a=(i.length-2)/2,c=i.substr(2,a),f=new $o(i.substr(a+2,a),16);let p="03";return f.mod(new $o("2")).equals($o.ZERO)&&(p="02"),p+c}function ene(i){i=unescape(encodeURIComponent(i));const a=i.length,c=[];for(let p=0;p<a;p++)c[p>>>2]|=(i.charCodeAt(p)&255)<<24-p%4*8;const f=[];for(let p=0;p<a;p++){const O=c[p>>>2]>>>24-p%4*8&255;f.push((O>>>4).toString(16)),f.push((O&15).toString(16))}return f.join("")}function fu(i,a){return i.length>=a?i:new Array(a-i.length+1).join("0")+i}function tne(i){return i.map(a=>(a=a.toString(16),a.length===1?"0"+a:a)).join("")}function nne(i){const a=[];let c=0;for(let f=0;f<i.length*2;f+=2)a[f>>>3]|=parseInt(i[c],10)<<24-f%8*4,c++;try{const f=[];for(let p=0;p<i.length;p++){const O=a[p>>>2]>>>24-p%4*8&255;f.push(String.fromCharCode(O))}return decodeURIComponent(escape(f.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function one(i){const a=[];let c=i.length;c%2!==0&&(i=fu(i,c+1)),c=i.length;for(let f=0;f<c;f+=2)a.push(parseInt(i.substr(f,2),16));return a}function ine(i){const a=dl.decodePointHex(i);if(!a)return!1;const c=a.getX();return a.getY().square().equals(c.multiply(c.square()).add(c.multiply(dl.a)).add(dl.b))}function rne(i,a){const c=dl.decodePointHex(i);if(!c)return!1;const f=dl.decodePointHex(a);return f?c.equals(f):!1}var sne={getGlobalCurve:Jte,generateEcparam:d5,generateKeyPairHex:$te,compressPublicKeyHex:qte,utf8ToHex:ene,leftPad:fu,arrayToHex:tne,arrayToUtf8:nne,hexToArray:one,verifyPublicKey:ine,comparePublicKeyHex:rne};const qo=new Uint32Array(68),Dy=new Uint32Array(64);function Bo(i,a){const c=a&31;return i<<c|i>>>32-c}function f5(i,a){const c=[];for(let f=i.length-1;f>=0;f--)c[f]=(i[f]^a[f])&255;return c}function ane(i){return i^Bo(i,9)^Bo(i,17)}function lne(i){return i^Bo(i,15)^Bo(i,23)}function Nh(i){let a=i.length*8,c=a%512;c=c>=448?512-c%448-1:448-c-1;const f=new Array((c-7)/8),p=new Array(8);for(let T=0,P=f.length;T<P;T++)f[T]=0;for(let T=0,P=p.length;T<P;T++)p[T]=0;a=a.toString(2);for(let T=7;T>=0;T--)if(a.length>8){const P=a.length-8;p[T]=parseInt(a.substr(P),2),a=a.substr(0,P)}else a.length>0&&(p[T]=parseInt(a,2),a="");const O=new Uint8Array([...i,128,...f,...p]),y=new DataView(O.buffer,0),w=O.length/64,S=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let T=0;T<w;T++){qo.fill(0),Dy.fill(0);const P=16*T;for(let ye=0;ye<16;ye++)qo[ye]=y.getUint32((P+ye)*4,!1);for(let ye=16;ye<68;ye++)qo[ye]=lne(qo[ye-16]^qo[ye-9]^Bo(qo[ye-3],15))^Bo(qo[ye-13],7)^qo[ye-6];for(let ye=0;ye<64;ye++)Dy[ye]=qo[ye]^qo[ye+4];const N=2043430169,V=2055708042;let j=S[0],z=S[1],K=S[2],H=S[3],X=S[4],te=S[5],J=S[6],se=S[7],le,U,he,ue,ge;for(let ye=0;ye<64;ye++)ge=ye>=0&&ye<=15?N:V,le=Bo(Bo(j,12)+X+Bo(ge,ye),7),U=le^Bo(j,12),he=(ye>=0&&ye<=15?j^z^K:j&z|j&K|z&K)+H+U+Dy[ye],ue=(ye>=0&&ye<=15?X^te^J:X&te|~X&J)+se+le+qo[ye],H=K,K=Bo(z,9),z=j,j=he,se=J,J=Bo(te,19),te=X,X=ane(ue);S[0]^=j,S[1]^=z,S[2]^=K,S[3]^=H,S[4]^=X,S[5]^=te,S[6]^=J,S[7]^=se}const A=[];for(let T=0,P=S.length;T<P;T++){const N=S[T];A.push((N&4278190080)>>>24,(N&16711680)>>>16,(N&65280)>>>8,N&255)}return A}const hu=64,h5=new Uint8Array(hu),p5=new Uint8Array(hu);for(let i=0;i<hu;i++)h5[i]=54,p5[i]=92;function cne(i,a){for(a.length>hu&&(a=Nh(a));a.length<hu;)a.push(0);const c=f5(a,h5),f=f5(a,p5),p=Nh([...c,...i]);return Nh([...f,...p])}var m5={sm3:Nh,hmac:cne};const{BigInteger:Co}=_h,{encodeDer:une,decodeDer:dne}=Ute,st=sne,fl=m5.sm3,{G:Xs,curve:g5,n:hl}=st.generateEcparam(),O5=0;function fne(i,a,c=1){i=typeof i=="string"?st.hexToArray(st.utf8ToHex(i)):Array.prototype.slice.call(i),a=st.getGlobalCurve().decodePointHex(a);const f=st.generateKeyPairHex(),p=new Co(f.privateKey,16);let O=f.publicKey;O.length>128&&(O=O.substr(O.length-128));const y=a.multiply(p),w=st.hexToArray(st.leftPad(y.getX().toBigInteger().toRadix(16),64)),S=st.hexToArray(st.leftPad(y.getY().toBigInteger().toRadix(16),64)),A=st.arrayToHex(fl([].concat(w,i,S)));let T=1,P=0,N=[];const V=[].concat(w,S),j=()=>{N=fl([...V,T>>24&255,T>>16&255,T>>8&255,T&255]),T++,P=0};j();for(let K=0,H=i.length;K<H;K++)P===N.length&&j(),i[K]^=N[P++]&255;const z=st.arrayToHex(i);return c===O5?O+z+A:O+A+z}function hne(i,a,c=1,{output:f="string"}={}){a=new Co(a,16);let p=i.substr(128,64),O=i.substr(192);c===O5&&(p=i.substr(i.length-64),O=i.substr(128,i.length-128-64));const y=st.hexToArray(O),w=st.getGlobalCurve().decodePointHex("04"+i.substr(0,128)).multiply(a),S=st.hexToArray(st.leftPad(w.getX().toBigInteger().toRadix(16),64)),A=st.hexToArray(st.leftPad(w.getY().toBigInteger().toRadix(16),64));let T=1,P=0,N=[];const V=[].concat(S,A),j=()=>{N=fl([...V,T>>24&255,T>>16&255,T>>8&255,T&255]),T++,P=0};j();for(let z=0,K=y.length;z<K;z++)P===N.length&&j(),y[z]^=N[P++]&255;return st.arrayToHex(fl([].concat(S,y,A)))===p.toLowerCase()?f==="array"?y:st.arrayToUtf8(y):f==="array"?[]:""}function pne(i,a,{pointPool:c,der:f,hash:p,publicKey:O,userId:y}={}){let w=typeof i=="string"?st.utf8ToHex(i):st.arrayToHex(i);p&&(O=O||y5(a),w=v5(w,O,y));const S=new Co(a,16),A=new Co(w,16);let T=null,P=null,N=null;do{do{let V;c&&c.length?V=c.pop():V=b5(),T=V.k,P=A.add(V.x1).mod(hl)}while(P.equals(Co.ZERO)||P.add(T).equals(hl));N=S.add(Co.ONE).modInverse(hl).multiply(T.subtract(P.multiply(S))).mod(hl)}while(N.equals(Co.ZERO));return f?une(P,N):st.leftPad(P.toString(16),64)+st.leftPad(N.toString(16),64)}function mne(i,a,c,{der:f,hash:p,userId:O}={}){let y=typeof i=="string"?st.utf8ToHex(i):st.arrayToHex(i);p&&(y=v5(y,c,O));let w,S;if(f){const j=dne(a);w=j.r,S=j.s}else w=new Co(a.substring(0,64),16),S=new Co(a.substring(64),16);const A=g5.decodePointHex(c),T=new Co(y,16),P=w.add(S).mod(hl);if(P.equals(Co.ZERO))return!1;const N=Xs.multiply(S).add(A.multiply(P)),V=T.add(N.getX().toBigInteger()).mod(hl);return w.equals(V)}function v5(i,a,c="1234567812345678"){c=st.utf8ToHex(c);const f=st.leftPad(Xs.curve.a.toBigInteger().toRadix(16),64),p=st.leftPad(Xs.curve.b.toBigInteger().toRadix(16),64),O=st.leftPad(Xs.getX().toBigInteger().toRadix(16),64),y=st.leftPad(Xs.getY().toBigInteger().toRadix(16),64);let w,S;if(a.length===128)w=a.substr(0,64),S=a.substr(64,64);else{const N=Xs.curve.decodePointHex(a);w=st.leftPad(N.getX().toBigInteger().toRadix(16),64),S=st.leftPad(N.getY().toBigInteger().toRadix(16),64)}const A=st.hexToArray(c+f+p+O+y+w+S),T=c.length*4;A.unshift(T&255),A.unshift(T>>8&255);const P=fl(A);return st.arrayToHex(fl(P.concat(st.hexToArray(i))))}function y5(i){const a=Xs.multiply(new Co(i,16)),c=st.leftPad(a.getX().toBigInteger().toString(16),64),f=st.leftPad(a.getY().toBigInteger().toString(16),64);return"04"+c+f}function b5(){const i=st.generateKeyPairHex(),a=g5.decodePointHex(i.publicKey);return i.k=new Co(i.privateKey,16),i.x1=a.getX().toBigInteger(),i}var gne={generateKeyPairHex:st.generateKeyPairHex,compressPublicKeyHex:st.compressPublicKeyHex,comparePublicKeyHex:st.comparePublicKeyHex,doEncrypt:fne,doDecrypt:hne,doSignature:pne,doVerifySignature:mne,getPublicKeyFromPrivateKey:y5,getPoint:b5,verifyPublicKey:st.verifyPublicKey};const{sm3:One,hmac:vne}=m5;function yne(i,a){return i.length>=a?i:new Array(a-i.length+1).join("0")+i}function x5(i){return i.map(a=>(a=a.toString(16),a.length===1?"0"+a:a)).join("")}function bne(i){const a=[];let c=i.length;c%2!==0&&(i=yne(i,c+1)),c=i.length;for(let f=0;f<c;f+=2)a.push(parseInt(i.substr(f,2),16));return a}function xne(i){const a=[];for(let c=0,f=i.length;c<f;c++){const p=i.codePointAt(c);if(p<=127)a.push(p);else if(p<=2047)a.push(192|p>>>6),a.push(128|p&63);else if(p<=55295||p>=57344&&p<=65535)a.push(224|p>>>12),a.push(128|p>>>6&63),a.push(128|p&63);else if(p>=65536&&p<=1114111)c++,a.push(240|p>>>18&28),a.push(128|p>>>12&63),a.push(128|p>>>6&63),a.push(128|p&63);else throw a.push(p),new Error("input is not supported")}return a}var wne=function(i,a){if(i=typeof i=="string"?xne(i):Array.prototype.slice.call(i),a){if((a.mode||"hmac")!=="hmac")throw new Error("invalid mode");let c=a.key;if(!c)throw new Error("invalid key");return c=typeof c=="string"?bne(c):Array.prototype.slice.call(c),x5(vne(i,c))}return x5(One(i))};const Ar=0,Sne=32,Ys=16,Ah=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],Rh=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function By(i){const a=[];for(let c=0,f=i.length;c<f;c+=2)a.push(parseInt(i.substr(c,2),16));return a}function Cne(i){return i.map(a=>(a=a.toString(16),a.length===1?"0"+a:a)).join("")}function kne(i){const a=[];for(let c=0,f=i.length;c<f;c++){const p=i.codePointAt(c);if(p<=127)a.push(p);else if(p<=2047)a.push(192|p>>>6),a.push(128|p&63);else if(p<=55295||p>=57344&&p<=65535)a.push(224|p>>>12),a.push(128|p>>>6&63),a.push(128|p&63);else if(p>=65536&&p<=1114111)c++,a.push(240|p>>>18&28),a.push(128|p>>>12&63),a.push(128|p>>>6&63),a.push(128|p&63);else throw a.push(p),new Error("input is not supported")}return a}function Pne(i){const a=[];for(let c=0,f=i.length;c<f;c++)i[c]>=240&&i[c]<=247?(a.push(String.fromCodePoint(((i[c]&7)<<18)+((i[c+1]&63)<<12)+((i[c+2]&63)<<6)+(i[c+3]&63))),c+=3):i[c]>=224&&i[c]<=239?(a.push(String.fromCodePoint(((i[c]&15)<<12)+((i[c+1]&63)<<6)+(i[c+2]&63))),c+=2):i[c]>=192&&i[c]<=223?(a.push(String.fromCodePoint(((i[c]&31)<<6)+(i[c+1]&63))),c++):a.push(String.fromCodePoint(i[c]));return a.join("")}function pl(i,a){const c=a&31;return i<<c|i>>>32-c}function Rr(i){return(Ah[i>>>24&255]&255)<<24|(Ah[i>>>16&255]&255)<<16|(Ah[i>>>8&255]&255)<<8|Ah[i&255]&255}function Mh(i){return i^pl(i,2)^pl(i,10)^pl(i,18)^pl(i,24)}function Qh(i){return i^pl(i,13)^pl(i,23)}function Ene(i,a,c){const f=new Array(4),p=new Array(4);for(let O=0;O<4;O++)p[0]=i[4*O]&255,p[1]=i[4*O+1]&255,p[2]=i[4*O+2]&255,p[3]=i[4*O+3]&255,f[O]=p[0]<<24|p[1]<<16|p[2]<<8|p[3];for(let O=0,y;O<32;O+=4)y=f[1]^f[2]^f[3]^c[O+0],f[0]^=Mh(Rr(y)),y=f[2]^f[3]^f[0]^c[O+1],f[1]^=Mh(Rr(y)),y=f[3]^f[0]^f[1]^c[O+2],f[2]^=Mh(Rr(y)),y=f[0]^f[1]^f[2]^c[O+3],f[3]^=Mh(Rr(y));for(let O=0;O<16;O+=4)a[O]=f[3-O/4]>>>24&255,a[O+1]=f[3-O/4]>>>16&255,a[O+2]=f[3-O/4]>>>8&255,a[O+3]=f[3-O/4]&255}function Tne(i,a,c){const f=new Array(4),p=new Array(4);for(let O=0;O<4;O++)p[0]=i[0+4*O]&255,p[1]=i[1+4*O]&255,p[2]=i[2+4*O]&255,p[3]=i[3+4*O]&255,f[O]=p[0]<<24|p[1]<<16|p[2]<<8|p[3];f[0]^=2746333894,f[1]^=1453994832,f[2]^=1736282519,f[3]^=2993693404;for(let O=0,y;O<32;O+=4)y=f[1]^f[2]^f[3]^Rh[O+0],a[O+0]=f[0]^=Qh(Rr(y)),y=f[2]^f[3]^f[0]^Rh[O+1],a[O+1]=f[1]^=Qh(Rr(y)),y=f[3]^f[0]^f[1]^Rh[O+2],a[O+2]=f[2]^=Qh(Rr(y)),y=f[0]^f[1]^f[2]^Rh[O+3],a[O+3]=f[3]^=Qh(Rr(y));if(c===Ar)for(let O=0,y;O<16;O++)y=a[O],a[O]=a[31-O],a[31-O]=y}function w5(i,a,c,{padding:f="pkcs#7",mode:p,iv:O=[],output:y="string"}={}){if(p==="cbc"&&(typeof O=="string"&&(O=By(O)),O.length!==128/8))throw new Error("iv is invalid");if(typeof a=="string"&&(a=By(a)),a.length!==128/8)throw new Error("key is invalid");if(typeof i=="string"?c!==Ar?i=kne(i):i=By(i):i=[...i],(f==="pkcs#5"||f==="pkcs#7")&&c!==Ar){const N=Ys-i.length%Ys;for(let V=0;V<N;V++)i.push(N)}const w=new Array(Sne);Tne(a,w,c);const S=[];let A=O,T=i.length,P=0;for(;T>=Ys;){const N=i.slice(P,P+16),V=new Array(16);if(p==="cbc")for(let j=0;j<Ys;j++)c!==Ar&&(N[j]^=A[j]);Ene(N,V,w);for(let j=0;j<Ys;j++)p==="cbc"&&c===Ar&&(V[j]^=A[j]),S[P+j]=V[j];p==="cbc"&&(c!==Ar?A=V:A=N),T-=Ys,P+=Ys}if((f==="pkcs#5"||f==="pkcs#7")&&c===Ar){const N=S.length,V=S[N-1];for(let j=1;j<=V;j++)if(S[N-j]!==V)throw new Error("padding is invalid");S.splice(N-V,V)}return y!=="array"?c!==Ar?Cne(S):Pne(S):S}var _ne={encrypt(i,a,c){return w5(i,a,1,c)},decrypt(i,a,c){return w5(i,a,0,c)}},Nne={sm2:gne,sm3:wne,sm4:_ne};function Ane(i){return"04"+Nne.sm2.doEncrypt(i,l.security.sm2PubKey,1)}const S5={sm2Encrypt:Ane},Rne={version:r,axios:Us.axios,loadConfig:h,useDialog:WA,locales:Qy,useSessionStore:JA,utils:S5,install(i,a){return h(a),Us.install(i,a?.axios),i.use(Qy.i18n),i}};t.axios=Us,t.default=Rne,t.loadConfig=h,t.locales=Qy,t.useDialog=WA,t.useSessionStore=JA,t.utils=S5,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(gu,gu.exports);var Lh=gu.exports;const jh=R5(Lh),M5={...{...{submit:"提交","submit.ok":"已提交","submit.error":"提交失败","confirm.ok":"确定","confirm.cancel":"取消","global.setting.title":"设置"},...{"pages.home":"首页"},...{"pages.layouts.userLayout.title":"user layout"}}},Q5={...{submit:"Submit","submit.ok":"Submitted","submit.error":"Submit Failed","confirm.ok":"Yes","confirm.cancel":"No","global.setting.title":"Settings"},...{"pages.home":"Home"},...{"pages.layouts.userLayout.title":"user layout"}},I5=u.ref([M5,Q5]);function D5(n,e){return jh.locales.loadLanguage(n,()=>new Promise((t,o)=>{const r=I5.value.filter(s=>s.localeName==n);if(e)if(typeof e=="function")e().then(s=>{if(r.length==0){const l={...s,localeName:n};t(l)}else{const l={...r[0],...s};t(l)}});else if(r.length==0){const s={...e,localeName:n};t(s)}else{const s={...r[0],...e};t(s)}else r.length>0?t(r[0]):o("local language not defined ,lang:"+n)}))}const Fh={...jh.locales};Fh.loadLanguage=D5;function zy(n,e){return function(){return n.apply(e,arguments)}}const{toString:B5}=Object.prototype,{getPrototypeOf:Zh}=Object,Ou=(n=>e=>{const t=B5.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Lo=n=>(n=n.toLowerCase(),e=>Ou(e)===n),vu=n=>e=>typeof e===n,{isArray:$s}=Array,gl=vu("undefined");function V5(n){return n!==null&&!gl(n)&&n.constructor!==null&&!gl(n.constructor)&&lo(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Wy=Lo("ArrayBuffer");function L5(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Wy(n.buffer),e}const j5=vu("string"),lo=vu("function"),Uy=vu("number"),yu=n=>n!==null&&typeof n=="object",F5=n=>n===!0||n===!1,bu=n=>{if(Ou(n)!=="object")return!1;const e=Zh(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Z5=Lo("Date"),z5=Lo("File"),W5=Lo("Blob"),U5=Lo("FileList"),H5=n=>yu(n)&&lo(n.pipe),X5=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||lo(n.append)&&((e=Ou(n))==="formdata"||e==="object"&&lo(n.toString)&&n.toString()==="[object FormData]"))},Y5=Lo("URLSearchParams"),[G5,K5,J5,$5]=["ReadableStream","Request","Response","Headers"].map(Lo),q5=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ol(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let o,r;if(typeof n!="object"&&(n=[n]),$s(n))for(o=0,r=n.length;o<r;o++)e.call(null,n[o],o,n);else{const s=t?Object.getOwnPropertyNames(n):Object.keys(n),l=s.length;let d;for(o=0;o<l;o++)d=s[o],e.call(null,n[d],d,n)}}function Hy(n,e){e=e.toLowerCase();const t=Object.keys(n);let o=t.length,r;for(;o-- >0;)if(r=t[o],e===r.toLowerCase())return r;return null}const Dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xy=n=>!gl(n)&&n!==Dr;function zh(){const{caseless:n}=Xy(this)&&this||{},e={},t=(o,r)=>{const s=n&&Hy(e,r)||r;bu(e[s])&&bu(o)?e[s]=zh(e[s],o):bu(o)?e[s]=zh({},o):$s(o)?e[s]=o.slice():e[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Ol(arguments[o],t);return e}const eR=(n,e,t,{allOwnKeys:o}={})=>(Ol(e,(r,s)=>{t&&lo(r)?n[s]=zy(r,t):n[s]=r},{allOwnKeys:o}),n),tR=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),nR=(n,e,t,o)=>{n.prototype=Object.create(e.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},oR=(n,e,t,o)=>{let r,s,l;const d={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)l=r[s],(!o||o(l,n,e))&&!d[l]&&(e[l]=n[l],d[l]=!0);n=t!==!1&&Zh(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},iR=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const o=n.indexOf(e,t);return o!==-1&&o===t},rR=n=>{if(!n)return null;if($s(n))return n;let e=n.length;if(!Uy(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},sR=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Zh(Uint8Array)),aR=(n,e)=>{const o=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(n,s[0],s[1])}},lR=(n,e)=>{let t;const o=[];for(;(t=n.exec(e))!==null;)o.push(t);return o},cR=Lo("HTMLFormElement"),uR=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,o,r){return o.toUpperCase()+r}),Yy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),dR=Lo("RegExp"),Gy=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),o={};Ol(t,(r,s)=>{let l;(l=e(r,s,n))!==!1&&(o[s]=l||r)}),Object.defineProperties(n,o)},fR=n=>{Gy(n,(e,t)=>{if(lo(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const o=n[t];if(lo(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},hR=(n,e)=>{const t={},o=r=>{r.forEach(s=>{t[s]=!0})};return $s(n)?o(n):o(String(n).split(e)),t},pR=()=>{},mR=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Wh="abcdefghijklmnopqrstuvwxyz",Ky="0123456789",Jy={DIGIT:Ky,ALPHA:Wh,ALPHA_DIGIT:Wh+Wh.toUpperCase()+Ky},gR=(n=16,e=Jy.ALPHA_DIGIT)=>{let t="";const{length:o}=e;for(;n--;)t+=e[Math.random()*o|0];return t};function OR(n){return!!(n&&lo(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const vR=n=>{const e=new Array(10),t=(o,r)=>{if(yu(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[r]=o;const s=$s(o)?[]:{};return Ol(o,(l,d)=>{const h=t(l,r+1);!gl(h)&&(s[d]=h)}),e[r]=void 0,s}}return o};return t(n,0)},yR=Lo("AsyncFunction"),bR=n=>n&&(yu(n)||lo(n))&&lo(n.then)&&lo(n.catch),$y=((n,e)=>n?setImmediate:e?((t,o)=>(Dr.addEventListener("message",({source:r,data:s})=>{r===Dr&&s===t&&o.length&&o.shift()()},!1),r=>{o.push(r),Dr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",lo(Dr.postMessage)),xR=typeof queueMicrotask<"u"?queueMicrotask.bind(Dr):typeof process<"u"&&process.nextTick||$y,pe={isArray:$s,isArrayBuffer:Wy,isBuffer:V5,isFormData:X5,isArrayBufferView:L5,isString:j5,isNumber:Uy,isBoolean:F5,isObject:yu,isPlainObject:bu,isReadableStream:G5,isRequest:K5,isResponse:J5,isHeaders:$5,isUndefined:gl,isDate:Z5,isFile:z5,isBlob:W5,isRegExp:dR,isFunction:lo,isStream:H5,isURLSearchParams:Y5,isTypedArray:sR,isFileList:U5,forEach:Ol,merge:zh,extend:eR,trim:q5,stripBOM:tR,inherits:nR,toFlatObject:oR,kindOf:Ou,kindOfTest:Lo,endsWith:iR,toArray:rR,forEachEntry:aR,matchAll:lR,isHTMLForm:cR,hasOwnProperty:Yy,hasOwnProp:Yy,reduceDescriptors:Gy,freezeMethods:fR,toObjectSet:hR,toCamelCase:uR,noop:pR,toFiniteNumber:mR,findKey:Hy,global:Dr,isContextDefined:Xy,ALPHABET:Jy,generateString:gR,isSpecCompliantForm:OR,toJSONObject:vR,isAsyncFn:yR,isThenable:bR,setImmediate:$y,asap:xR};function it(n,e,t,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}pe.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const qy=it.prototype,e0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{e0[n]={value:n}}),Object.defineProperties(it,e0),Object.defineProperty(qy,"isAxiosError",{value:!0}),it.from=(n,e,t,o,r,s)=>{const l=Object.create(qy);return pe.toFlatObject(n,l,function(h){return h!==Error.prototype},d=>d!=="isAxiosError"),it.call(l,n.message,e,t,o,r),l.cause=n,l.name=n.name,s&&Object.assign(l,s),l};const wR=null;function Uh(n){return pe.isPlainObject(n)||pe.isArray(n)}function t0(n){return pe.endsWith(n,"[]")?n.slice(0,-2):n}function n0(n,e,t){return n?n.concat(e).map(function(r,s){return r=t0(r),!t&&s?"["+r+"]":r}).join(t?".":""):e}function SR(n){return pe.isArray(n)&&!n.some(Uh)}const CR=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function xu(n,e,t){if(!pe.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=pe.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,M){return!pe.isUndefined(M[k])});const o=t.metaTokens,r=t.visitor||g,s=t.dots,l=t.indexes,h=(t.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(e);if(!pe.isFunction(r))throw new TypeError("visitor must be a function");function m(C){if(C===null)return"";if(pe.isDate(C))return C.toISOString();if(!h&&pe.isBlob(C))throw new it("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(C)||pe.isTypedArray(C)?h&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function g(C,k,M){let _=C;if(C&&!M&&typeof C=="object"){if(pe.endsWith(k,"{}"))k=o?k:k.slice(0,-2),C=JSON.stringify(C);else if(pe.isArray(C)&&SR(C)||(pe.isFileList(C)||pe.endsWith(k,"[]"))&&(_=pe.toArray(C)))return k=t0(k),_.forEach(function(F,D){!(pe.isUndefined(F)||F===null)&&e.append(l===!0?n0([k],D,s):l===null?k:k+"[]",m(F))}),!1}return Uh(C)?!0:(e.append(n0(M,k,s),m(C)),!1)}const v=[],b=Object.assign(CR,{defaultVisitor:g,convertValue:m,isVisitable:Uh});function x(C,k){if(!pe.isUndefined(C)){if(v.indexOf(C)!==-1)throw Error("Circular reference detected in "+k.join("."));v.push(C),pe.forEach(C,function(_,E){(!(pe.isUndefined(_)||_===null)&&r.call(e,_,pe.isString(E)?E.trim():E,k,b))===!0&&x(_,k?k.concat(E):[E])}),v.pop()}}if(!pe.isObject(n))throw new TypeError("data must be an object");return x(n),e}function o0(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Hh(n,e){this._pairs=[],n&&xu(n,this,e)}const i0=Hh.prototype;i0.append=function(e,t){this._pairs.push([e,t])},i0.toString=function(e){const t=e?function(o){return e.call(this,o,o0)}:o0;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function kR(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r0(n,e,t){if(!e)return n;const o=t&&t.encode||kR,r=t&&t.serialize;let s;if(r?s=r(e,t):s=pe.isURLSearchParams(e)?e.toString():new Hh(e,t).toString(o),s){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class s0{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(o){o!==null&&e(o)})}}const a0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},PR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Hh,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Xh=typeof window<"u"&&typeof document<"u",Yh=typeof navigator=="object"&&navigator||void 0,ER=Xh&&(!Yh||["ReactNative","NativeScript","NS"].indexOf(Yh.product)<0),TR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_R=Xh&&window.location.href||"http://localhost",Xn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xh,hasStandardBrowserEnv:ER,hasStandardBrowserWebWorkerEnv:TR,navigator:Yh,origin:_R},Symbol.toStringTag,{value:"Module"})),...PR};function NR(n,e){return xu(n,new Xn.classes.URLSearchParams,Object.assign({visitor:function(t,o,r,s){return Xn.isNode&&pe.isBuffer(t)?(this.append(o,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function AR(n){return pe.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function RR(n){const e={},t=Object.keys(n);let o;const r=t.length;let s;for(o=0;o<r;o++)s=t[o],e[s]=n[s];return e}function l0(n){function e(t,o,r,s){let l=t[s++];if(l==="__proto__")return!0;const d=Number.isFinite(+l),h=s>=t.length;return l=!l&&pe.isArray(r)?r.length:l,h?(pe.hasOwnProp(r,l)?r[l]=[r[l],o]:r[l]=o,!d):((!r[l]||!pe.isObject(r[l]))&&(r[l]=[]),e(t,o,r[l],s)&&pe.isArray(r[l])&&(r[l]=RR(r[l])),!d)}if(pe.isFormData(n)&&pe.isFunction(n.entries)){const t={};return pe.forEachEntry(n,(o,r)=>{e(AR(o),r,t,0)}),t}return null}function MR(n,e,t){if(pe.isString(n))try{return(e||JSON.parse)(n),pe.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(t||JSON.stringify)(n)}const vl={transitional:a0,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const o=t.getContentType()||"",r=o.indexOf("application/json")>-1,s=pe.isObject(e);if(s&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return r?JSON.stringify(l0(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e)||pe.isReadableStream(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return NR(e,this.formSerializer).toString();if((d=pe.isFileList(e))||o.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return xu(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),MR(e)):e}],transformResponse:[function(e){const t=this.transitional||vl.transitional,o=t&&t.forcedJSONParsing,r=this.responseType==="json";if(pe.isResponse(e)||pe.isReadableStream(e))return e;if(e&&pe.isString(e)&&(o&&!this.responseType||r)){const l=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(d){if(l)throw d.name==="SyntaxError"?it.from(d,it.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xn.classes.FormData,Blob:Xn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],n=>{vl.headers[n]={}});const QR=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IR=n=>{const e={};let t,o,r;return n&&n.split(`
|
|
182
|
+
`).forEach(function(l){r=l.indexOf(":"),t=l.substring(0,r).trim().toLowerCase(),o=l.substring(r+1).trim(),!(!t||e[t]&&QR[t])&&(t==="set-cookie"?e[t]?e[t].push(o):e[t]=[o]:e[t]=e[t]?e[t]+", "+o:o)}),e},c0=Symbol("internals");function yl(n){return n&&String(n).trim().toLowerCase()}function wu(n){return n===!1||n==null?n:pe.isArray(n)?n.map(wu):String(n)}function DR(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=t.exec(n);)e[o[1]]=o[2];return e}const BR=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Gh(n,e,t,o,r){if(pe.isFunction(o))return o.call(this,e,t);if(r&&(e=t),!!pe.isString(e)){if(pe.isString(o))return e.indexOf(o)!==-1;if(pe.isRegExp(o))return o.test(e)}}function VR(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o)}function LR(n,e){const t=pe.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+t,{value:function(r,s,l){return this[o].call(this,e,r,s,l)},configurable:!0})})}class Yn{constructor(e){e&&this.set(e)}set(e,t,o){const r=this;function s(d,h,m){const g=yl(h);if(!g)throw new Error("header name must be a non-empty string");const v=pe.findKey(r,g);(!v||r[v]===void 0||m===!0||m===void 0&&r[v]!==!1)&&(r[v||h]=wu(d))}const l=(d,h)=>pe.forEach(d,(m,g)=>s(m,g,h));if(pe.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(pe.isString(e)&&(e=e.trim())&&!BR(e))l(IR(e),t);else if(pe.isHeaders(e))for(const[d,h]of e.entries())s(h,d,o);else e!=null&&s(t,e,o);return this}get(e,t){if(e=yl(e),e){const o=pe.findKey(this,e);if(o){const r=this[o];if(!t)return r;if(t===!0)return DR(r);if(pe.isFunction(t))return t.call(this,r,o);if(pe.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=yl(e),e){const o=pe.findKey(this,e);return!!(o&&this[o]!==void 0&&(!t||Gh(this,this[o],o,t)))}return!1}delete(e,t){const o=this;let r=!1;function s(l){if(l=yl(l),l){const d=pe.findKey(o,l);d&&(!t||Gh(o,o[d],d,t))&&(delete o[d],r=!0)}}return pe.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let o=t.length,r=!1;for(;o--;){const s=t[o];(!e||Gh(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const t=this,o={};return pe.forEach(this,(r,s)=>{const l=pe.findKey(o,s);if(l){t[l]=wu(r),delete t[s];return}const d=e?VR(s):String(s).trim();d!==s&&delete t[s],t[d]=wu(r),o[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(t[r]=e&&pe.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
183
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const o=new this(e);return t.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[c0]=this[c0]={accessors:{}}).accessors,r=this.prototype;function s(l){const d=yl(l);o[d]||(LR(r,l),o[d]=!0)}return pe.isArray(e)?e.forEach(s):s(e),this}}Yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Yn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(o){this[t]=o}}}),pe.freezeMethods(Yn);function Kh(n,e){const t=this||vl,o=e||t,r=Yn.from(o.headers);let s=o.data;return pe.forEach(n,function(d){s=d.call(t,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function u0(n){return!!(n&&n.__CANCEL__)}function qs(n,e,t){it.call(this,n??"canceled",it.ERR_CANCELED,e,t),this.name="CanceledError"}pe.inherits(qs,it,{__CANCEL__:!0});function d0(n,e,t){const o=t.config.validateStatus;!t.status||!o||o(t.status)?n(t):e(new it("Request failed with status code "+t.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function jR(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function FR(n,e){n=n||10;const t=new Array(n),o=new Array(n);let r=0,s=0,l;return e=e!==void 0?e:1e3,function(h){const m=Date.now(),g=o[s];l||(l=m),t[r]=h,o[r]=m;let v=s,b=0;for(;v!==r;)b+=t[v++],v=v%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),m-l<e)return;const x=g&&m-g;return x?Math.round(b*1e3/x):void 0}}function ZR(n,e){let t=0,o=1e3/e,r,s;const l=(m,g=Date.now())=>{t=g,r=null,s&&(clearTimeout(s),s=null),n.apply(null,m)};return[(...m)=>{const g=Date.now(),v=g-t;v>=o?l(m,g):(r=m,s||(s=setTimeout(()=>{s=null,l(r)},o-v)))},()=>r&&l(r)]}const Su=(n,e,t=3)=>{let o=0;const r=FR(50,250);return ZR(s=>{const l=s.loaded,d=s.lengthComputable?s.total:void 0,h=l-o,m=r(h),g=l<=d;o=l;const v={loaded:l,total:d,progress:d?l/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&g?(d-l)/m:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(v)},t)},f0=(n,e)=>{const t=n!=null;return[o=>e[0]({lengthComputable:t,total:n,loaded:o}),e[1]]},h0=n=>(...e)=>pe.asap(()=>n(...e)),zR=Xn.hasStandardBrowserEnv?function(){const e=Xn.navigator&&/(msie|trident)/i.test(Xn.navigator.userAgent),t=document.createElement("a");let o;function r(s){let l=s;return e&&(t.setAttribute("href",l),l=t.href),t.setAttribute("href",l),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return o=r(window.location.href),function(l){const d=pe.isString(l)?r(l):l;return d.protocol===o.protocol&&d.host===o.host}}():function(){return function(){return!0}}(),WR=Xn.hasStandardBrowserEnv?{write(n,e,t,o,r,s){const l=[n+"="+encodeURIComponent(e)];pe.isNumber(t)&&l.push("expires="+new Date(t).toGMTString()),pe.isString(o)&&l.push("path="+o),pe.isString(r)&&l.push("domain="+r),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UR(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function HR(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function p0(n,e){return n&&!UR(e)?HR(n,e):e}const m0=n=>n instanceof Yn?{...n}:n;function Br(n,e){e=e||{};const t={};function o(m,g,v){return pe.isPlainObject(m)&&pe.isPlainObject(g)?pe.merge.call({caseless:v},m,g):pe.isPlainObject(g)?pe.merge({},g):pe.isArray(g)?g.slice():g}function r(m,g,v){if(pe.isUndefined(g)){if(!pe.isUndefined(m))return o(void 0,m,v)}else return o(m,g,v)}function s(m,g){if(!pe.isUndefined(g))return o(void 0,g)}function l(m,g){if(pe.isUndefined(g)){if(!pe.isUndefined(m))return o(void 0,m)}else return o(void 0,g)}function d(m,g,v){if(v in e)return o(m,g);if(v in n)return o(void 0,m)}const h={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:d,headers:(m,g)=>r(m0(m),m0(g),!0)};return pe.forEach(Object.keys(Object.assign({},n,e)),function(g){const v=h[g]||r,b=v(n[g],e[g],g);pe.isUndefined(b)&&v!==d||(t[g]=b)}),t}const g0=n=>{const e=Br({},n);let{data:t,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:l,auth:d}=e;e.headers=l=Yn.from(l),e.url=r0(p0(e.baseURL,e.url),n.params,n.paramsSerializer),d&&l.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let h;if(pe.isFormData(t)){if(Xn.hasStandardBrowserEnv||Xn.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((h=l.getContentType())!==!1){const[m,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];l.setContentType([m||"multipart/form-data",...g].join("; "))}}if(Xn.hasStandardBrowserEnv&&(o&&pe.isFunction(o)&&(o=o(e)),o||o!==!1&&zR(e.url))){const m=r&&s&&WR.read(s);m&&l.set(r,m)}return e},XR=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,o){const r=g0(n);let s=r.data;const l=Yn.from(r.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=r,g,v,b,x,C;function k(){x&&x(),C&&C(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let M=new XMLHttpRequest;M.open(r.method.toUpperCase(),r.url,!0),M.timeout=r.timeout;function _(){if(!M)return;const F=Yn.from("getAllResponseHeaders"in M&&M.getAllResponseHeaders()),Q={data:!d||d==="text"||d==="json"?M.responseText:M.response,status:M.status,statusText:M.statusText,headers:F,config:n,request:M};d0(function(L){t(L),k()},function(L){o(L),k()},Q),M=null}"onloadend"in M?M.onloadend=_:M.onreadystatechange=function(){!M||M.readyState!==4||M.status===0&&!(M.responseURL&&M.responseURL.indexOf("file:")===0)||setTimeout(_)},M.onabort=function(){M&&(o(new it("Request aborted",it.ECONNABORTED,n,M)),M=null)},M.onerror=function(){o(new it("Network Error",it.ERR_NETWORK,n,M)),M=null},M.ontimeout=function(){let D=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const Q=r.transitional||a0;r.timeoutErrorMessage&&(D=r.timeoutErrorMessage),o(new it(D,Q.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,M)),M=null},s===void 0&&l.setContentType(null),"setRequestHeader"in M&&pe.forEach(l.toJSON(),function(D,Q){M.setRequestHeader(Q,D)}),pe.isUndefined(r.withCredentials)||(M.withCredentials=!!r.withCredentials),d&&d!=="json"&&(M.responseType=r.responseType),m&&([b,C]=Su(m,!0),M.addEventListener("progress",b)),h&&M.upload&&([v,x]=Su(h),M.upload.addEventListener("progress",v),M.upload.addEventListener("loadend",x)),(r.cancelToken||r.signal)&&(g=F=>{M&&(o(!F||F.type?new qs(null,n,M):F),M.abort(),M=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const E=jR(r.url);if(E&&Xn.protocols.indexOf(E)===-1){o(new it("Unsupported protocol "+E+":",it.ERR_BAD_REQUEST,n));return}M.send(s||null)})},YR=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let o=new AbortController,r;const s=function(m){if(!r){r=!0,d();const g=m instanceof Error?m:this.reason;o.abort(g instanceof it?g:new qs(g instanceof Error?g.message:g))}};let l=e&&setTimeout(()=>{l=null,s(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const d=()=>{n&&(l&&clearTimeout(l),l=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(s):m.removeEventListener("abort",s)}),n=null)};n.forEach(m=>m.addEventListener("abort",s));const{signal:h}=o;return h.unsubscribe=()=>pe.asap(d),h}},GR=function*(n,e){let t=n.byteLength;if(!e||t<e){yield n;return}let o=0,r;for(;o<t;)r=o+e,yield n.slice(o,r),o=r},KR=async function*(n,e){for await(const t of JR(n))yield*GR(t,e)},JR=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:o}=await e.read();if(t)break;yield o}}finally{await e.cancel()}},O0=(n,e,t,o)=>{const r=KR(n,e);let s=0,l,d=h=>{l||(l=!0,o&&o(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await r.next();if(m){d(),h.close();return}let v=g.byteLength;if(t){let b=s+=v;t(b)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),r.return()}},{highWaterMark:2})},Cu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",v0=Cu&&typeof ReadableStream=="function",$R=Cu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),y0=(n,...e)=>{try{return!!n(...e)}catch{return!1}},qR=v0&&y0(()=>{let n=!1;const e=new Request(Xn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),b0=64*1024,Jh=v0&&y0(()=>pe.isReadableStream(new Response("").body)),ku={stream:Jh&&(n=>n.body)};Cu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ku[e]&&(ku[e]=pe.isFunction(n[e])?t=>t[e]():(t,o)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,o)})})})(new Response);const eM=async n=>{if(n==null)return 0;if(pe.isBlob(n))return n.size;if(pe.isSpecCompliantForm(n))return(await new Request(Xn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(n)||pe.isArrayBuffer(n))return n.byteLength;if(pe.isURLSearchParams(n)&&(n=n+""),pe.isString(n))return(await $R(n)).byteLength},tM=async(n,e)=>{const t=pe.toFiniteNumber(n.getContentLength());return t??eM(e)},$h={http:wR,xhr:XR,fetch:Cu&&(async n=>{let{url:e,method:t,data:o,signal:r,cancelToken:s,timeout:l,onDownloadProgress:d,onUploadProgress:h,responseType:m,headers:g,withCredentials:v="same-origin",fetchOptions:b}=g0(n);m=m?(m+"").toLowerCase():"text";let x=YR([r,s&&s.toAbortSignal()],l),C;const k=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let M;try{if(h&&qR&&t!=="get"&&t!=="head"&&(M=await tM(g,o))!==0){let Q=new Request(e,{method:"POST",body:o,duplex:"half"}),Y;if(pe.isFormData(o)&&(Y=Q.headers.get("content-type"))&&g.setContentType(Y),Q.body){const[L,Z]=f0(M,Su(h0(h)));o=O0(Q.body,b0,L,Z)}}pe.isString(v)||(v=v?"include":"omit");const _="credentials"in Request.prototype;C=new Request(e,{...b,signal:x,method:t.toUpperCase(),headers:g.normalize().toJSON(),body:o,duplex:"half",credentials:_?v:void 0});let E=await fetch(C);const F=Jh&&(m==="stream"||m==="response");if(Jh&&(d||F&&k)){const Q={};["status","statusText","headers"].forEach(I=>{Q[I]=E[I]});const Y=pe.toFiniteNumber(E.headers.get("content-length")),[L,Z]=d&&f0(Y,Su(h0(d),!0))||[];E=new Response(O0(E.body,b0,L,()=>{Z&&Z(),k&&k()}),Q)}m=m||"text";let D=await ku[pe.findKey(ku,m)||"text"](E,n);return!F&&k&&k(),await new Promise((Q,Y)=>{d0(Q,Y,{data:D,headers:Yn.from(E.headers),status:E.status,statusText:E.statusText,config:n,request:C})})}catch(_){throw k&&k(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,n,C),{cause:_.cause||_}):it.from(_,_&&_.code,n,C)}})};pe.forEach($h,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const x0=n=>`- ${n}`,nM=n=>pe.isFunction(n)||n===null||n===!1,w0={getAdapter:n=>{n=pe.isArray(n)?n:[n];const{length:e}=n;let t,o;const r={};for(let s=0;s<e;s++){t=n[s];let l;if(o=t,!nM(t)&&(o=$h[(l=String(t)).toLowerCase()],o===void 0))throw new it(`Unknown adapter '${l}'`);if(o)break;r[l||"#"+s]=o}if(!o){const s=Object.entries(r).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let l=e?s.length>1?`since :
|
|
184
|
+
`+s.map(x0).join(`
|
|
185
|
+
`):" "+x0(s[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:$h};function qh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new qs(null,n)}function S0(n){return qh(n),n.headers=Yn.from(n.headers),n.data=Kh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),w0.getAdapter(n.adapter||vl.adapter)(n).then(function(o){return qh(n),o.data=Kh.call(n,n.transformResponse,o),o.headers=Yn.from(o.headers),o},function(o){return u0(o)||(qh(n),o&&o.response&&(o.response.data=Kh.call(n,n.transformResponse,o.response),o.response.headers=Yn.from(o.response.headers))),Promise.reject(o)})}const C0="1.7.7",ep={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{ep[n]=function(o){return typeof o===n||"a"+(e<1?"n ":" ")+n}});const k0={};ep.transitional=function(e,t,o){function r(s,l){return"[Axios v"+C0+"] Transitional option '"+s+"'"+l+(o?". "+o:"")}return(s,l,d)=>{if(e===!1)throw new it(r(l," has been removed"+(t?" in "+t:"")),it.ERR_DEPRECATED);return t&&!k0[l]&&(k0[l]=!0,console.warn(r(l," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,l,d):!0}};function oM(n,e,t){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let r=o.length;for(;r-- >0;){const s=o[r],l=e[s];if(l){const d=n[s],h=d===void 0||l(d,s,n);if(h!==!0)throw new it("option "+s+" must be "+h,it.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new it("Unknown option "+s,it.ERR_BAD_OPTION)}}const tp={assertOptions:oM,validators:ep},Yi=tp.validators;class Vr{constructor(e){this.defaults=e,this.interceptors={request:new s0,response:new s0}}async request(e,t){try{return await this._request(e,t)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
186
|
+
`+s):o.stack=s}catch{}}throw o}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Br(this.defaults,t);const{transitional:o,paramsSerializer:r,headers:s}=t;o!==void 0&&tp.assertOptions(o,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),r!=null&&(pe.isFunction(r)?t.paramsSerializer={serialize:r}:tp.assertOptions(r,{encode:Yi.function,serialize:Yi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[t.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),t.headers=Yn.concat(l,s);const d=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(t)===!1||(h=h&&k.synchronous,d.unshift(k.fulfilled,k.rejected))});const m=[];this.interceptors.response.forEach(function(k){m.push(k.fulfilled,k.rejected)});let g,v=0,b;if(!h){const C=[S0.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,m),b=C.length,g=Promise.resolve(t);v<b;)g=g.then(C[v++],C[v++]);return g}b=d.length;let x=t;for(v=0;v<b;){const C=d[v++],k=d[v++];try{x=C(x)}catch(M){k.call(this,M);break}}try{g=S0.call(this,x)}catch(C){return Promise.reject(C)}for(v=0,b=m.length;v<b;)g=g.then(m[v++],m[v++]);return g}getUri(e){e=Br(this.defaults,e);const t=p0(e.baseURL,e.url);return r0(t,e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],function(e){Vr.prototype[e]=function(t,o){return this.request(Br(o||{},{method:e,url:t,data:(o||{}).data}))}}),pe.forEach(["post","put","patch"],function(e){function t(o){return function(s,l,d){return this.request(Br(d||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Vr.prototype[e]=t(),Vr.prototype[e+"Form"]=t(!0)});class np{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const l=new Promise(d=>{o.subscribe(d),s=d}).then(r);return l.cancel=function(){o.unsubscribe(s)},l},e(function(s,l,d){o.reason||(o.reason=new qs(s,l,d),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=o=>{e.abort(o)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new np(function(r){e=r}),cancel:e}}}function iM(n){return function(t){return n.apply(null,t)}}function rM(n){return pe.isObject(n)&&n.isAxiosError===!0}const op={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(op).forEach(([n,e])=>{op[e]=n});function P0(n){const e=new Vr(n),t=zy(Vr.prototype.request,e);return pe.extend(t,Vr.prototype,e,{allOwnKeys:!0}),pe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return P0(Br(n,r))},t}const Yt=P0(vl);Yt.Axios=Vr,Yt.CanceledError=qs,Yt.CancelToken=np,Yt.isCancel=u0,Yt.VERSION=C0,Yt.toFormData=xu,Yt.AxiosError=it,Yt.Cancel=Yt.CanceledError,Yt.all=function(e){return Promise.all(e)},Yt.spread=iM,Yt.isAxiosError=rM,Yt.mergeConfig=Br,Yt.AxiosHeaders=Yn,Yt.formToJSON=n=>l0(pe.isHTMLForm(n)?new FormData(n):n),Yt.getAdapter=w0.getAdapter,Yt.HttpStatusCode=op,Yt.default=Yt;function bl(n){"@babel/helpers - typeof";return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bl(n)}function sM(n,e){if(bl(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e||"default");if(bl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aM(n){var e=sM(n,"string");return bl(e)=="symbol"?e:e+""}function lM(n,e,t){return(e=aM(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function E0(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function Ge(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?E0(Object(t),!0).forEach(function(o){lM(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E0(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function $(){return $=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},$.apply(null,arguments)}const cM=Array.isArray,uM=n=>typeof n=="string",dM=n=>n!==null&&typeof n=="object";function ea(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return typeof n=="function"?n(e):n??t}function fM(n){let e;const t=new Promise(r=>{e=n(()=>{r(!0)})}),o=()=>{e?.()};return o.then=(r,s)=>t.then(r,s),o.promise=t,o}function It(){const n=[];for(let e=0;e<arguments.length;e++){const t=e<0||arguments.length<=e?void 0:arguments[e];if(t){if(uM(t))n.push(t);else if(cM(t))for(let o=0;o<t.length;o++){const r=It(t[o]);r&&n.push(r)}else if(dM(t))for(const o in t)t[o]&&n.push(o)}}return n.join(" ")}const hM=n=>n!=null&&n!=="",xl=(n,e)=>{const t=$({},n);return Object.keys(e).forEach(o=>{const r=t[o];if(r)r.type||r.default?r.default=e[o]:r.def?r.def(e[o]):t[o]={type:r,default:e[o]};else throw new Error(`not have ${o} prop`)}),t},pM=Symbol("skipFlatten"),wl=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=Array.isArray(n)?n:[n],o=[];return t.forEach(r=>{Array.isArray(r)?o.push(...wl(r,e)):r&&r.type===u.Fragment?r.key===pM?o.push(r):o.push(...wl(r.children,e)):r&&u.isVNode(r)?e&&!T0(r)?o.push(r):e||o.push(r):hM(r)&&o.push(r)}),o},Pu=n=>{var e;let t=((e=n?.vnode)===null||e===void 0?void 0:e.el)||n&&(n.$el||n);for(;t&&!t.tagName;)t=t.nextSibling;return t};function T0(n){return n&&(n.type===u.Comment||n.type===u.Fragment&&n.children.length===0||n.type===u.Text&&n.children.trim()==="")}function _0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return n.forEach(t=>{Array.isArray(t)?e.push(...t):t?.type===u.Fragment?e.push(..._0(t.children)):e.push(t)}),e.filter(t=>!T0(t))}let N0=n=>setTimeout(n,16),A0=n=>clearTimeout(n);typeof window<"u"&&"requestAnimationFrame"in window&&(N0=n=>window.requestAnimationFrame(n),A0=n=>window.cancelAnimationFrame(n));let R0=0;const ip=new Map;function M0(n){ip.delete(n)}function Sl(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;R0+=1;const t=R0;function o(r){if(r===0)M0(t),n();else{const s=N0(()=>{o(r-1)});ip.set(t,s)}}return o(e),t}Sl.cancel=n=>{const e=ip.get(n);return M0(e),A0(e)};const Eu=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return e},rp=n=>{const e=n;return e.install=function(t){t.component(e.displayName||e.name,n)},n};function Q0(){return{type:[Function,Array]}}function Gt(n){return{type:Object,default:n}}function ta(n){return{type:Boolean,default:n}}function sp(n,e){const t={validator:()=>!0,default:n};return t}function I0(n){return{type:Array,default:n}}function D0(n){return{type:String,default:n}}function mM(n,e){return n?{type:n,default:e}:sp(e)}function gM(n,e,t,o){if(n&&n.addEventListener){let r=o;n.addEventListener(e,t,r)}return{remove:()=>{n&&n.removeEventListener&&n.removeEventListener(e,t)}}}const ap="anticon",OM=Symbol("GlobalFormContextKey"),vM=n=>{u.provide(OM,n)},yM=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Gt(),input:Gt(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Gt(),pageHeader:Gt(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Gt(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Gt(),pagination:Gt(),theme:Gt(),select:Gt(),wave:Gt()}),lp=Symbol("configProvider"),B0={getPrefixCls:(n,e)=>e||(n?`ant-${n}`:"ant"),iconPrefixCls:u.computed(()=>ap),getPopupContainer:u.computed(()=>()=>document.body),direction:u.computed(()=>"ltr")},Tu=()=>u.inject(lp,B0),bM=n=>u.provide(lp,n),V0=Symbol("DisabledContextKey"),cp=()=>u.inject(V0,u.ref(void 0)),xM=n=>{const e=cp();return u.provide(V0,u.computed(()=>{var t;return(t=n.value)!==null&&t!==void 0?t:e.value})),n},wM={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},SM={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},L0={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},j0={lang:$({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},SM),timePickerLocale:$({},L0)},co="${label} is not a valid ${type}",Lr={locale:"en",Pagination:wM,DatePicker:j0,TimePicker:L0,Calendar:j0,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:co,method:co,array:co,object:co,number:co,date:co,boolean:co,integer:co,float:co,regexp:co,email:co,url:co,hex:co},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},F0=u.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(n,e){let{slots:t}=e;const o=u.inject("localeData",{}),r=u.computed(()=>{const{componentName:l="global",defaultLocale:d}=n,h=d||Lr[l||"global"],{antLocale:m}=o,g=l&&m?m[l]:{};return $($({},typeof h=="function"?h():h),g||{})}),s=u.computed(()=>{const{antLocale:l}=o,d=l&&l.locale;return l&&l.exist&&!d?Lr.locale:d});return()=>{const l=n.children||t.default,{antLocale:d}=o;return l?.(r.value,s.value,d)}}});function up(n,e,t){const o=u.inject("localeData",{});return[u.computed(()=>{const{antLocale:s}=o,l=u.unref(e)||Lr[n],d=s?s[n]:{};return $($($({},typeof l=="function"?l():l),d||{}),u.unref(t)||{})})]}function dp(n){for(var e=0,t,o=0,r=n.length;r>=4;++o,r-=4)t=n.charCodeAt(o)&255|(n.charCodeAt(++o)&255)<<8|(n.charCodeAt(++o)&255)<<16|(n.charCodeAt(++o)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(n.charCodeAt(o+2)&255)<<16;case 2:e^=(n.charCodeAt(o+1)&255)<<8;case 1:e^=n.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const Z0="%";class CM{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(Z0):e)||null}update(e,t){const o=Array.isArray(e)?e.join(Z0):e,r=this.cache.get(o),s=t(r);s===null?this.cache.delete(o):this.cache.set(o,s)}}const z0="data-token-hash",jr="data-css-hash",kM="data-cache-path",na="__cssinjs_instance__";function Cl(){const n=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${jr}]`)||[],{firstChild:t}=document.head;Array.from(e).forEach(r=>{r[na]=r[na]||n,r[na]===n&&document.head.insertBefore(r,t)});const o={};Array.from(document.querySelectorAll(`style[${jr}]`)).forEach(r=>{var s;const l=r.getAttribute(jr);o[l]?r[na]===n&&((s=r.parentNode)===null||s===void 0||s.removeChild(r)):o[l]=!0})}return new CM(n)}const W0=Symbol("StyleContextKey"),PM=()=>{var n,e,t;const o=u.getCurrentInstance();let r;if(o&&o.appContext){const s=(t=(e=(n=o.appContext)===null||n===void 0?void 0:n.config)===null||e===void 0?void 0:e.globalProperties)===null||t===void 0?void 0:t.__ANTDV_CSSINJS_CACHE__;s?r=s:(r=Cl(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Cl();return r},U0={cache:Cl(),defaultCache:!0,hashPriority:"low"},_u=()=>{const n=PM();return u.inject(W0,u.shallowRef($($({},U0),{cache:n})))},EM=n=>{const e=_u(),t=u.shallowRef($($({},U0),{cache:Cl()}));return u.watch([()=>u.unref(n),e],()=>{const o=$({},e.value),r=u.unref(n);Object.keys(r).forEach(l=>{const d=r[l];r[l]!==void 0&&(o[l]=d)});const{cache:s}=r;o.cache=o.cache||Cl(),o.defaultCache=!s&&e.value.defaultCache,t.value=o},{immediate:!0}),u.provide(W0,t),t},TM=()=>({autoClear:ta(),mock:D0(),cache:Gt(),defaultCache:ta(),hashPriority:D0(),container:mM(),ssrInline:ta(),transformers:I0(),linters:I0()});rp(u.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:TM(),setup(n,e){let{slots:t}=e;return EM(n),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}));function _M(){return!1}let fp=!1;function NM(){return fp}const AM=process.env.NODE_ENV==="production"?_M:NM;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const n=window;if(typeof n.webpackHotUpdate=="function"){const e=n.webpackHotUpdate;n.webpackHotUpdate=function(){return fp=!0,setTimeout(()=>{fp=!1},0),e(...arguments)}}}function H0(n,e,t,o){const r=_u(),s=u.shallowRef(""),l=u.shallowRef();u.watchEffect(()=>{s.value=[n,...e.value].join("%")});const d=AM(),h=m=>{r.value.cache.update(m,g=>{const[v=0,b]=g||[];return v-1===0?(o?.(b,!1),null):[v-1,b]})};return u.watch(s,(m,g)=>{g&&h(g),r.value.cache.update(m,v=>{const[b=0,x]=v||[];let C=x;process.env.NODE_ENV!=="production"&&x&&d&&(o?.(C,d),C=null);const k=C||t();return[b+1,k]}),l.value=r.value.cache.get(s.value)[1]},{immediate:!0}),u.onBeforeUnmount(()=>{h(s.value)}),l}function jo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function X0(n,e){return n&&n.contains?n.contains(e):!1}const Y0="data-vc-order",RM="vc-util-key",hp=new Map;function G0(){let{mark:n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n?n.startsWith("data-")?n:`data-${n}`:RM}function Nu(n){return n.attachTo?n.attachTo:document.querySelector("head")||document.body}function MM(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function K0(n){return Array.from((hp.get(n)||n).children).filter(e=>e.tagName==="STYLE")}function J0(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jo())return null;const{csp:t,prepend:o}=e,r=document.createElement("style");r.setAttribute(Y0,MM(o)),t?.nonce&&(r.nonce=t?.nonce),r.innerHTML=n;const s=Nu(e),{firstChild:l}=s;if(o){if(o==="queue"){const d=K0(s).filter(h=>["prepend","prependQueue"].includes(h.getAttribute(Y0)));if(d.length)return s.insertBefore(r,d[d.length-1].nextSibling),r}s.insertBefore(r,l)}else s.appendChild(r);return r}function $0(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const t=Nu(e);return K0(t).find(o=>o.getAttribute(G0(e))===n)}function Au(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const t=$0(n,e);t&&Nu(e).removeChild(t)}function QM(n,e){const t=hp.get(n);if(!t||!X0(document,t)){const o=J0("",e),{parentNode:r}=o;hp.set(n,r),n.removeChild(o)}}function kl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,s;const l=Nu(t);QM(l,t);const d=$0(e,t);if(d)return!((o=t.csp)===null||o===void 0)&&o.nonce&&d.nonce!==((r=t.csp)===null||r===void 0?void 0:r.nonce)&&(d.nonce=(s=t.csp)===null||s===void 0?void 0:s.nonce),d.innerHTML!==n&&(d.innerHTML=n),d;const h=J0(n,t);return h.setAttribute(G0(t),e),h}function IM(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}class oa{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return e.forEach(r=>{var s;o?o=(s=o?.map)===null||s===void 0?void 0:s.get(r):o=void 0}),o?.value&&t&&(o.value[1]=this.cacheCallTimes++),o?.value}get(e){var t;return(t=this.internalGet(e,!0))===null||t===void 0?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>oa.MAX_CACHE_SIZE+oa.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((s,l)=>{const[,d]=s;return this.internalGet(l)[1]<d?[l,this.internalGet(l)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(e)}let o=this.cache;e.forEach((r,s)=>{if(s===e.length-1)o.set(r,{value:[t,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(e,t){var o;const r=e.get(t[0]);if(t.length===1)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),(o=r.value)===null||o===void 0?void 0:o[0];const s=this.deleteByPath(r.map,t.slice(1));return(!r.map||r.map.size===0)&&!r.value&&e.delete(t[0]),s}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!IM(t,e)),this.deleteByPath(this.cache,e)}}oa.MAX_CACHE_SIZE=20,oa.MAX_CACHE_OFFSET=5;let pp={};function DM(n,e){process.env.NODE_ENV!=="production"&&!n&&console!==void 0&&console.error(`Warning: ${e}`)}function BM(){pp={}}function VM(n,e,t){!e&&!pp[t]&&(n(!1,t),pp[t]=!0)}function mp(n,e){VM(DM,n,e)}function LM(){}let ia=LM;process.env.NODE_ENV!=="production"&&(ia=(n,e,t)=>{mp(n,`[ant-design-vue: ${e}] ${t}`),process.env.NODE_ENV==="test"&&BM()});let q0=0;class eb{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=q0,e.length===0&&ia(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),q0+=1}getDerivativeToken(e){return this.derivatives.reduce((t,o)=>o(e,t),void 0)}}const gp=new oa;function tb(n){const e=Array.isArray(n)?n:[n];return gp.has(e)||gp.set(e,new eb(e)),gp.get(e)}const nb=new WeakMap;function Ru(n){let e=nb.get(n)||"";return e||(Object.keys(n).forEach(t=>{const o=n[t];e+=t,o instanceof eb?e+=o.id:o&&typeof o=="object"?e+=Ru(o):e+=o}),nb.set(n,e)),e}function jM(n,e){return dp(`${e}_${Ru(n)}`)}const Pl=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),ob="_bAmBoO_";function FM(n,e,t){var o,r;if(jo()){kl(n,Pl);const s=document.createElement("div");s.style.position="fixed",s.style.left="0",s.style.top="0",e?.(s),document.body.appendChild(s),process.env.NODE_ENV!=="production"&&(s.innerHTML="Test",s.style.zIndex="9999999");const l=t?t(s):(o=getComputedStyle(s).content)===null||o===void 0?void 0:o.includes(ob);return(r=s.parentNode)===null||r===void 0||r.removeChild(s),Au(Pl),l}return!1}let Op;function ZM(){return Op===void 0&&(Op=FM(`@layer ${Pl} { .${Pl} { content: "${ob}"!important; } }`,n=>{n.className=Pl})),Op}const ib={},zM=process.env.NODE_ENV==="production",WM=process.env.NODE_ENV==="prerender",UM=!zM&&!WM?"css-dev-only-do-not-override":"css",Fr=new Map;function HM(n){Fr.set(n,(Fr.get(n)||0)+1)}function XM(n,e){typeof document<"u"&&document.querySelectorAll(`style[${z0}="${n}"]`).forEach(o=>{var r;o[na]===e&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const YM=0;function GM(n,e){Fr.set(n,(Fr.get(n)||0)-1);const t=Array.from(Fr.keys()),o=t.filter(r=>(Fr.get(r)||0)<=0);t.length-o.length>YM&&o.forEach(r=>{XM(r,e),Fr.delete(r)})}const KM=(n,e,t,o)=>{const r=t.getDerivativeToken(n);let s=$($({},r),e);return o&&(s=o(s)),s};function JM(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.ref({});const o=_u(),r=u.computed(()=>$({},...e.value)),s=u.computed(()=>Ru(r.value)),l=u.computed(()=>Ru(t.value.override||ib));return H0("token",u.computed(()=>[t.value.salt||"",n.value.id,s.value,l.value]),()=>{const{salt:h="",override:m=ib,formatToken:g,getComputedToken:v}=t.value,b=v?v(r.value,m,n.value):KM(r.value,m,n.value,g),x=jM(b,h);b._tokenKey=x,HM(x);const C=`${UM}-${dp(x)}`;return b._hashId=C,[b,C]},h=>{var m;GM(h[0]._tokenKey,(m=o.value)===null||m===void 0?void 0:m.cache.instanceId)})}var $M={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rb="comm",sb="rule",ab="decl",qM="@import",e4="@keyframes",t4="@layer",lb=Math.abs,vp=String.fromCharCode;function cb(n){return n.trim()}function Mu(n,e,t){return n.replace(e,t)}function n4(n,e,t){return n.indexOf(e,t)}function El(n,e){return n.charCodeAt(e)|0}function ra(n,e,t){return n.slice(e,t)}function ri(n){return n.length}function o4(n){return n.length}function Qu(n,e){return e.push(n),n}var Iu=1,sa=1,ub=0,To=0,Kt=0,aa="";function yp(n,e,t,o,r,s,l,d){return{value:n,root:e,parent:t,type:o,props:r,children:s,line:Iu,column:sa,length:l,return:"",siblings:d}}function i4(){return Kt}function r4(){return Kt=To>0?El(aa,--To):0,sa--,Kt===10&&(sa=1,Iu--),Kt}function Fo(){return Kt=To<ub?El(aa,To++):0,sa++,Kt===10&&(sa=1,Iu++),Kt}function Gi(){return El(aa,To)}function Du(){return To}function Bu(n,e){return ra(aa,n,e)}function Tl(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function s4(n){return Iu=sa=1,ub=ri(aa=n),To=0,[]}function a4(n){return aa="",n}function bp(n){return cb(Bu(To-1,xp(n===91?n+2:n===40?n+1:n)))}function l4(n){for(;(Kt=Gi())&&Kt<33;)Fo();return Tl(n)>2||Tl(Kt)>3?"":" "}function c4(n,e){for(;--e&&Fo()&&!(Kt<48||Kt>102||Kt>57&&Kt<65||Kt>70&&Kt<97););return Bu(n,Du()+(e<6&&Gi()==32&&Fo()==32))}function xp(n){for(;Fo();)switch(Kt){case n:return To;case 34:case 39:n!==34&&n!==39&&xp(Kt);break;case 40:n===41&&xp(n);break;case 92:Fo();break}return To}function u4(n,e){for(;Fo()&&n+Kt!==57;)if(n+Kt===84&&Gi()===47)break;return"/*"+Bu(e,To-1)+"*"+vp(n===47?n:Fo())}function d4(n){for(;!Tl(Gi());)Fo();return Bu(n,To)}function f4(n){return a4(Vu("",null,null,null,[""],n=s4(n),0,[0],n))}function Vu(n,e,t,o,r,s,l,d,h){for(var m=0,g=0,v=l,b=0,x=0,C=0,k=1,M=1,_=1,E=0,F="",D=r,Q=s,Y=o,L=F;M;)switch(C=E,E=Fo()){case 40:if(C!=108&&El(L,v-1)==58){n4(L+=Mu(bp(E),"&","&\f"),"&\f",lb(m?d[m-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:L+=bp(E);break;case 9:case 10:case 13:case 32:L+=l4(C);break;case 92:L+=c4(Du()-1,7);continue;case 47:switch(Gi()){case 42:case 47:Qu(h4(u4(Fo(),Du()),e,t,h),h),(Tl(C||1)==5||Tl(Gi()||1)==5)&&ri(L)&&ra(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*k:d[m++]=ri(L)*_;case 125*k:case 59:case 0:switch(E){case 0:case 125:M=0;case 59+g:_==-1&&(L=Mu(L,/\f/g,"")),x>0&&(ri(L)-v||k===0&&C===47)&&Qu(x>32?fb(L+";",o,t,v-1,h):fb(Mu(L," ","")+";",o,t,v-2,h),h);break;case 59:L+=";";default:if(Qu(Y=db(L,e,t,m,g,r,d,F,D=[],Q=[],v,s),s),E===123)if(g===0)Vu(L,e,Y,Y,D,s,v,d,Q);else switch(b===99&&El(L,3)===110?100:b){case 100:case 108:case 109:case 115:Vu(n,Y,Y,o&&Qu(db(n,Y,Y,0,0,r,d,F,r,D=[],v,Q),Q),r,Q,v,d,o?D:Q);break;default:Vu(L,Y,Y,Y,[""],Q,0,d,Q)}}m=g=x=0,k=_=1,F=L="",v=l;break;case 58:v=1+ri(L),x=C;default:if(k<1){if(E==123)--k;else if(E==125&&k++==0&&r4()==125)continue}switch(L+=vp(E),E*k){case 38:_=g>0?1:(L+="\f",-1);break;case 44:d[m++]=(ri(L)-1)*_,_=1;break;case 64:Gi()===45&&(L+=bp(Fo())),b=Gi(),g=v=ri(F=L+=d4(Du())),E++;break;case 45:C===45&&ri(L)==2&&(k=0)}}return s}function db(n,e,t,o,r,s,l,d,h,m,g,v){for(var b=r-1,x=r===0?s:[""],C=o4(x),k=0,M=0,_=0;k<o;++k)for(var E=0,F=ra(n,b+1,b=lb(M=l[k])),D=n;E<C;++E)(D=cb(M>0?x[E]+" "+F:Mu(F,/&\f/g,x[E])))&&(h[_++]=D);return yp(n,e,t,r===0?sb:d,h,m,g,v)}function h4(n,e,t,o){return yp(n,e,t,rb,vp(i4()),ra(n,2,-2),0,o)}function fb(n,e,t,o,r){return yp(n,e,t,ab,ra(n,0,o),ra(n,o+1,-1),o,r)}function wp(n,e){for(var t="",o=0;o<n.length;o++)t+=e(n[o],o,n,e)||"";return t}function p4(n,e,t,o){switch(n.type){case t4:if(n.children.length)break;case qM:case ab:return n.return=n.return||n.value;case rb:return"";case e4:return n.return=n.value+"{"+wp(n.children,o)+"}";case sb:if(!ri(n.value=n.props.join(",")))return""}return ri(t=wp(n.children,o))?n.return=n.value+"{"+t+"}":""}function hb(n,e){const{path:t,parentSelectors:o}=e;mp(!1,`[Ant Design Vue CSS-in-JS] ${t?`Error in '${t}': `:""}${n}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}const m4=(n,e,t)=>{if(n==="content"){const o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!o.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&hb(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,t)}},g4=(n,e,t)=>{n==="animation"&&t.hashId&&e!=="none"&&hb(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,t)},pb="data-ant-cssinjs-cache-path",O4="_FILE_STYLE__";let Zr,mb=!0;function v4(){var n;if(!Zr&&(Zr={},jo())){const e=document.createElement("div");e.className=pb,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[s,l]=r.split(":");Zr[s]=l});const o=document.querySelector(`style[${pb}]`);o&&(mb=!1,(n=o.parentNode)===null||n===void 0||n.removeChild(o)),document.body.removeChild(e)}}function y4(n){return v4(),!!Zr[n]}function b4(n){const e=Zr[n];let t=null;if(e&&jo())if(mb)t=O4;else{const o=document.querySelector(`style[${jr}="${Zr[n]}"]`);o?t=o.innerHTML:delete Zr[n]}return[t,e]}const gb=jo(),Ob="_skip_check_",vb="_multi_value_";function yb(n){return wp(f4(n),p4).replace(/\{%%%\:[^;];}/g,";")}function x4(n){return typeof n=="object"&&n&&(Ob in n||vb in n)}function w4(n,e,t){if(!e)return n;const o=`.${e}`,r=t==="low"?`:where(${o})`:o;return n.split(",").map(l=>{var d;const h=l.trim().split(/\s+/);let m=h[0]||"";const g=((d=m.match(/^\w+/))===null||d===void 0?void 0:d[0])||"";return m=`${g}${r}${m.slice(g.length)}`,[m,...h.slice(1)].join(" ")}).join(",")}const Sp=new Set;process.env.NODE_ENV;const Cp=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:t,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:s,layer:l,path:d,hashPriority:h,transformers:m=[],linters:g=[]}=e;let v="",b={};function x(M){const _=M.getName(s);if(!b[_]){const[E]=Cp(M.style,e,{root:!1,parentSelectors:r});b[_]=`@keyframes ${M.getName(s)}${E}`}}function C(M){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return M.forEach(E=>{Array.isArray(E)?C(E,_):E&&_.push(E)}),_}if(C(Array.isArray(n)?n:[n]).forEach(M=>{const _=typeof M=="string"&&!t?{}:M;if(typeof _=="string")v+=`${_}
|
|
187
|
+
`;else if(_._keyframe)x(_);else{const E=m.reduce((F,D)=>{var Q;return((Q=D?.visit)===null||Q===void 0?void 0:Q.call(D,F))||F},_);Object.keys(E).forEach(F=>{var D;const Q=E[F];if(typeof Q=="object"&&Q&&(F!=="animationName"||!Q._keyframe)&&!x4(Q)){let Y=!1,L=F.trim(),Z=!1;(t||o)&&s?L.startsWith("@")?Y=!0:L=w4(F,s,h):t&&!s&&(L==="&"||L==="")&&(L="",Z=!0);const[I,G]=Cp(Q,e,{root:Z,injectHash:Y,parentSelectors:[...r,L]});b=$($({},b),G),v+=`${L}${I}`}else{let Y=function(Z,I){process.env.NODE_ENV!=="production"&&(typeof Q!="object"||!Q?.[Ob])&&[m4,g4,...g].forEach(Oe=>Oe(Z,I,{path:d,hashId:s,parentSelectors:r}));const G=Z.replace(/[A-Z]/g,Oe=>`-${Oe.toLowerCase()}`);let ae=I;!$M[Z]&&typeof ae=="number"&&ae!==0&&(ae=`${ae}px`),Z==="animationName"&&I?._keyframe&&(x(I),ae=I.getName(s)),v+=`${G}:${ae};`};const L=(D=Q?.value)!==null&&D!==void 0?D:Q;typeof Q=="object"&&Q?.[vb]&&Array.isArray(L)?L.forEach(Z=>{Y(F,Z)}):Y(F,L)}})}}),!t)v=`{${v}}`;else if(l&&ZM()){const M=l.split(",");v=`@layer ${M[M.length-1].trim()} {${v}}`,M.length>1&&(v=`@layer ${l}{%%%:%}${v}`)}return[v,b]};function S4(n,e){return dp(`${n.join("%")}${e}`)}function kp(n,e){const t=_u(),o=u.computed(()=>n.value.token._tokenKey),r=u.computed(()=>[o.value,...n.value.path]);let s=gb;return process.env.NODE_ENV!=="production"&&t.value.mock!==void 0&&(s=t.value.mock==="client"),H0("style",r,()=>{const{path:l,hashId:d,layer:h,nonce:m,clientOnly:g,order:v=0}=n.value,b=r.value.join("|");if(y4(b)){const[L,Z]=b4(b);if(L)return[L,o.value,Z,{},g,v]}const x=e(),{hashPriority:C,container:k,transformers:M,linters:_,cache:E}=t.value,[F,D]=Cp(x,{hashId:d,hashPriority:C,layer:h,path:l.join("-"),transformers:M,linters:_}),Q=yb(F),Y=S4(r.value,Q);if(s){const L={mark:jr,prepend:"queue",attachTo:k,priority:v},Z=typeof m=="function"?m():m;Z&&(L.csp={nonce:Z});const I=kl(Q,Y,L);I[na]=E.instanceId,I.setAttribute(z0,o.value),process.env.NODE_ENV!=="production"&&I.setAttribute(kM,r.value.join("|")),Object.keys(D).forEach(G=>{Sp.has(G)||(Sp.add(G),kl(yb(D[G]),`_effect-${G}`,{mark:jr,prepend:"queue",attachTo:k}))})}return[Q,o.value,Y,D,g,v]},(l,d)=>{let[,,h]=l;(d||t.value.autoClear)&&gb&&Au(h,{mark:jr})}),l=>l}class Zt{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const C4="4.2.4";function vn(n,e){k4(n)&&(n="100%");var t=P4(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function Lu(n){return Math.min(1,Math.max(0,n))}function k4(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function P4(n){return typeof n=="string"&&n.indexOf("%")!==-1}function bb(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function ju(n){return n<=1?"".concat(Number(n)*100,"%"):n}function zr(n){return n.length===1?"0"+n:String(n)}function E4(n,e,t){return{r:vn(n,255)*255,g:vn(e,255)*255,b:vn(t,255)*255}}function xb(n,e,t){n=vn(n,255),e=vn(e,255),t=vn(t,255);var o=Math.max(n,e,t),r=Math.min(n,e,t),s=0,l=0,d=(o+r)/2;if(o===r)l=0,s=0;else{var h=o-r;switch(l=d>.5?h/(2-o-r):h/(o+r),o){case n:s=(e-t)/h+(e<t?6:0);break;case e:s=(t-n)/h+2;break;case t:s=(n-e)/h+4;break}s/=6}return{h:s,s:l,l:d}}function Pp(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function T4(n,e,t){var o,r,s;if(n=vn(n,360),e=vn(e,100),t=vn(t,100),e===0)r=t,s=t,o=t;else{var l=t<.5?t*(1+e):t+e-t*e,d=2*t-l;o=Pp(d,l,n+1/3),r=Pp(d,l,n),s=Pp(d,l,n-1/3)}return{r:o*255,g:r*255,b:s*255}}function Ep(n,e,t){n=vn(n,255),e=vn(e,255),t=vn(t,255);var o=Math.max(n,e,t),r=Math.min(n,e,t),s=0,l=o,d=o-r,h=o===0?0:d/o;if(o===r)s=0;else{switch(o){case n:s=(e-t)/d+(e<t?6:0);break;case e:s=(t-n)/d+2;break;case t:s=(n-e)/d+4;break}s/=6}return{h:s,s:h,v:l}}function _4(n,e,t){n=vn(n,360)*6,e=vn(e,100),t=vn(t,100);var o=Math.floor(n),r=n-o,s=t*(1-e),l=t*(1-r*e),d=t*(1-(1-r)*e),h=o%6,m=[t,l,s,s,d,t][h],g=[d,t,t,l,s,s][h],v=[s,s,d,t,t,l][h];return{r:m*255,g:g*255,b:v*255}}function Tp(n,e,t,o){var r=[zr(Math.round(n).toString(16)),zr(Math.round(e).toString(16)),zr(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function N4(n,e,t,o,r){var s=[zr(Math.round(n).toString(16)),zr(Math.round(e).toString(16)),zr(Math.round(t).toString(16)),zr(A4(o))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function A4(n){return Math.round(parseFloat(n)*255).toString(16)}function wb(n){return uo(n)/255}function uo(n){return parseInt(n,16)}function R4(n){return{r:n>>16,g:(n&65280)>>8,b:n&255}}var _p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function la(n){var e={r:0,g:0,b:0},t=1,o=null,r=null,s=null,l=!1,d=!1;return typeof n=="string"&&(n=I4(n)),typeof n=="object"&&(Ti(n.r)&&Ti(n.g)&&Ti(n.b)?(e=E4(n.r,n.g,n.b),l=!0,d=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Ti(n.h)&&Ti(n.s)&&Ti(n.v)?(o=ju(n.s),r=ju(n.v),e=_4(n.h,o,r),l=!0,d="hsv"):Ti(n.h)&&Ti(n.s)&&Ti(n.l)&&(o=ju(n.s),s=ju(n.l),e=T4(n.h,o,s),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=bb(t),{ok:l,format:n.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var M4="[-\\+]?\\d+%?",Q4="[-\\+]?\\d*\\.\\d+%?",Ki="(?:".concat(Q4,")|(?:").concat(M4,")"),Np="[\\s|\\(]+(".concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")\\s*\\)?"),Ap="[\\s|\\(]+(".concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")[,|\\s]+(").concat(Ki,")\\s*\\)?"),Zo={CSS_UNIT:new RegExp(Ki),rgb:new RegExp("rgb"+Np),rgba:new RegExp("rgba"+Ap),hsl:new RegExp("hsl"+Np),hsla:new RegExp("hsla"+Ap),hsv:new RegExp("hsv"+Np),hsva:new RegExp("hsva"+Ap),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function I4(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(_p[n])n=_p[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Zo.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=Zo.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Zo.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=Zo.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Zo.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=Zo.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Zo.hex8.exec(n),t?{r:uo(t[1]),g:uo(t[2]),b:uo(t[3]),a:wb(t[4]),format:e?"name":"hex8"}:(t=Zo.hex6.exec(n),t?{r:uo(t[1]),g:uo(t[2]),b:uo(t[3]),format:e?"name":"hex"}:(t=Zo.hex4.exec(n),t?{r:uo(t[1]+t[1]),g:uo(t[2]+t[2]),b:uo(t[3]+t[3]),a:wb(t[4]+t[4]),format:e?"name":"hex8"}:(t=Zo.hex3.exec(n),t?{r:uo(t[1]+t[1]),g:uo(t[2]+t[2]),b:uo(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function Ti(n){return!!Zo.CSS_UNIT.exec(String(n))}var yn=function(){function n(e,t){e===void 0&&(e=""),t===void 0&&(t={});var o;if(e instanceof n)return e;typeof e=="number"&&(e=R4(e)),this.originalInput=e;var r=la(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=t.format)!==null&&o!==void 0?o:r.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},n.prototype.getLuminance=function(){var e=this.toRgb(),t,o,r,s=e.r/255,l=e.g/255,d=e.b/255;return s<=.03928?t=s/12.92:t=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),d<=.03928?r=d/12.92:r=Math.pow((d+.055)/1.055,2.4),.2126*t+.7152*o+.0722*r},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(e){return this.a=bb(e),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},n.prototype.toHsv=function(){var e=Ep(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},n.prototype.toHsvString=function(){var e=Ep(this.r,this.g,this.b),t=Math.round(e.h*360),o=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var e=xb(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},n.prototype.toHslString=function(){var e=xb(this.r,this.g,this.b),t=Math.round(e.h*360),o=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(e){return e===void 0&&(e=!1),Tp(this.r,this.g,this.b,e)},n.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},n.prototype.toHex8=function(e){return e===void 0&&(e=!1),N4(this.r,this.g,this.b,this.a,e)},n.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},n.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(o,")"):"rgba(".concat(e,", ").concat(t,", ").concat(o,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(vn(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(vn(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+Tp(this.r,this.g,this.b,!1),t=0,o=Object.entries(_p);t<o.length;t++){var r=o[t],s=r[0],l=r[1];if(e===l)return s}return!1},n.prototype.toString=function(e){var t=!!e;e=e??this.format;var o=!1,r=this.a<1&&this.a>=0,s=!t&&r&&(e.startsWith("hex")||e==="name");return s?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(o=this.toRgbString()),e==="prgb"&&(o=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(o=this.toHexString()),e==="hex3"&&(o=this.toHexString(!0)),e==="hex4"&&(o=this.toHex8String(!0)),e==="hex8"&&(o=this.toHex8String()),e==="name"&&(o=this.toName()),e==="hsl"&&(o=this.toHslString()),e==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=Lu(t.l),new n(t)},n.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new n(t)},n.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=Lu(t.l),new n(t)},n.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},n.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},n.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=Lu(t.s),new n(t)},n.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=Lu(t.s),new n(t)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(e){var t=this.toHsl(),o=(t.h+e)%360;return t.h=o<0?360+o:o,new n(t)},n.prototype.mix=function(e,t){t===void 0&&(t=50);var o=this.toRgb(),r=new n(e).toRgb(),s=t/100,l={r:(r.r-o.r)*s+o.r,g:(r.g-o.g)*s+o.g,b:(r.b-o.b)*s+o.b,a:(r.a-o.a)*s+o.a};return new n(l)},n.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var o=this.toHsl(),r=360/t,s=[this];for(o.h=(o.h-(r*e>>1)+720)%360;--e;)o.h=(o.h+r)%360,s.push(new n(o));return s},n.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new n(e)},n.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),o=t.h,r=t.s,s=t.v,l=[],d=1/e;e--;)l.push(new n({h:o,s:r,v:s})),s=(s+d)%1;return l},n.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new n({h:(t+72)%360,s:e.s,l:e.l}),new n({h:(t+216)%360,s:e.s,l:e.l})]},n.prototype.onBackground=function(e){var t=this.toRgb(),o=new n(e).toRgb(),r=t.a+o.a*(1-t.a);return new n({r:(t.r*t.a+o.r*o.a*(1-t.a))/r,g:(t.g*t.a+o.g*o.a*(1-t.a))/r,b:(t.b*t.a+o.b*o.a*(1-t.a))/r,a:r})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(e){for(var t=this.toHsl(),o=t.h,r=[this],s=360/e,l=1;l<e;l++)r.push(new n({h:(o+l*s)%360,s:t.s,l:t.l}));return r},n.prototype.equals=function(e){return this.toRgbString()===new n(e).toRgbString()},n}(),Fu=2,Sb=.16,D4=.05,B4=.05,V4=.15,Cb=5,kb=4,L4=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Pb(n){var e=n.r,t=n.g,o=n.b,r=Ep(e,t,o);return{h:r.h*360,s:r.s,v:r.v}}function Zu(n){var e=n.r,t=n.g,o=n.b;return"#".concat(Tp(e,t,o,!1))}function j4(n,e,t){var o=t/100,r={r:(e.r-n.r)*o+n.r,g:(e.g-n.g)*o+n.g,b:(e.b-n.b)*o+n.b};return r}function Eb(n,e,t){var o;return Math.round(n.h)>=60&&Math.round(n.h)<=240?o=t?Math.round(n.h)-Fu*e:Math.round(n.h)+Fu*e:o=t?Math.round(n.h)+Fu*e:Math.round(n.h)-Fu*e,o<0?o+=360:o>=360&&(o-=360),o}function Tb(n,e,t){if(n.h===0&&n.s===0)return n.s;var o;return t?o=n.s-Sb*e:e===kb?o=n.s+Sb:o=n.s+D4*e,o>1&&(o=1),t&&e===Cb&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function _b(n,e,t){var o;return t?o=n.v+B4*e:o=n.v-V4*e,o>1&&(o=1),Number(o.toFixed(2))}function Wr(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=la(n),r=Cb;r>0;r-=1){var s=Pb(o),l=Zu(la({h:Eb(s,r,!0),s:Tb(s,r,!0),v:_b(s,r,!0)}));t.push(l)}t.push(Zu(o));for(var d=1;d<=kb;d+=1){var h=Pb(o),m=Zu(la({h:Eb(h,d),s:Tb(h,d),v:_b(h,d)}));t.push(m)}return e.theme==="dark"?L4.map(function(g){var v=g.index,b=g.opacity,x=Zu(j4(la(e.backgroundColor||"#141414"),la(t[v]),b*100));return x}):t}var Rp={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},zu={},Mp={};Object.keys(Rp).forEach(function(n){zu[n]=Wr(Rp[n]),zu[n].primary=zu[n][5],Mp[n]=Wr(Rp[n],{theme:"dark",backgroundColor:"#141414"}),Mp[n].primary=Mp[n][5]});var F4=zu.blue;const Z4=n=>{const{controlHeight:e}=n;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function z4(n){const{sizeUnit:e,sizeStep:t}=n;return{sizeXXL:e*(t+8),sizeXL:e*(t+4),sizeLG:e*(t+2),sizeMD:e*(t+1),sizeMS:e*t,size:e*t,sizeSM:e*(t-1),sizeXS:e*(t-2),sizeXXS:e*(t-3)}}const Nb={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Wu=$($({},Nb),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
188
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
189
|
+
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function W4(n,e){let{generateColorPalettes:t,generateNeutralColorPalettes:o}=e;const{colorSuccess:r,colorWarning:s,colorError:l,colorInfo:d,colorPrimary:h,colorBgBase:m,colorTextBase:g}=n,v=t(h),b=t(r),x=t(s),C=t(l),k=t(d),M=o(m,g);return $($({},M),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:x[1],colorWarningBgHover:x[2],colorWarningBorder:x[3],colorWarningBorderHover:x[4],colorWarningHover:x[4],colorWarning:x[6],colorWarningActive:x[7],colorWarningTextHover:x[8],colorWarningText:x[9],colorWarningTextActive:x[10],colorInfoBg:k[1],colorInfoBgHover:k[2],colorInfoBorder:k[3],colorInfoBorderHover:k[4],colorInfoHover:k[4],colorInfo:k[6],colorInfoActive:k[7],colorInfoTextHover:k[8],colorInfoText:k[9],colorInfoTextActive:k[10],colorBgMask:new yn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const U4=n=>{let e=n,t=n,o=n,r=n;return n<6&&n>=5?e=n+1:n<16&&n>=6?e=n+2:n>=16&&(e=16),n<7&&n>=5?t=4:n<8&&n>=7?t=5:n<14&&n>=8?t=6:n<16&&n>=14?t=7:n>=16&&(t=8),n<6&&n>=2?o=1:n>=6&&(o=2),n>4&&n<8?r=4:n>=8&&(r=6),{borderRadius:n>16?16:n,borderRadiusXS:o,borderRadiusSM:t,borderRadiusLG:e,borderRadiusOuter:r}};function H4(n){const{motionUnit:e,motionBase:t,borderRadius:o,lineWidth:r}=n;return $({motionDurationFast:`${(t+e).toFixed(1)}s`,motionDurationMid:`${(t+e*2).toFixed(1)}s`,motionDurationSlow:`${(t+e*3).toFixed(1)}s`,lineWidthBold:r+1},U4(o))}const _i=(n,e)=>new yn(n).setAlpha(e).toRgbString(),_l=(n,e)=>new yn(n).darken(e).toHexString(),X4=n=>{const e=Wr(n);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Y4=(n,e)=>{const t=n||"#fff",o=e||"#000";return{colorBgBase:t,colorTextBase:o,colorText:_i(o,.88),colorTextSecondary:_i(o,.65),colorTextTertiary:_i(o,.45),colorTextQuaternary:_i(o,.25),colorFill:_i(o,.15),colorFillSecondary:_i(o,.06),colorFillTertiary:_i(o,.04),colorFillQuaternary:_i(o,.02),colorBgLayout:_l(t,4),colorBgContainer:_l(t,0),colorBgElevated:_l(t,0),colorBgSpotlight:_i(o,.85),colorBorder:_l(t,15),colorBorderSecondary:_l(t,6)}};function G4(n){const e=new Array(10).fill(null).map((t,o)=>{const r=o-1,s=n*Math.pow(2.71828,r/5),l=o>1?Math.floor(s):Math.ceil(s);return Math.floor(l/2)*2});return e[1]=n,e.map(t=>{const o=t+8;return{size:t,lineHeight:o/t}})}const K4=n=>{const e=G4(n),t=e.map(r=>r.size),o=e.map(r=>r.lineHeight);return{fontSizeSM:t[0],fontSize:t[1],fontSizeLG:t[2],fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function J4(n){const e=Object.keys(Nb).map(t=>{const o=Wr(n[t]);return new Array(10).fill(1).reduce((r,s,l)=>(r[`${t}-${l+1}`]=o[l],r),{})}).reduce((t,o)=>(t=$($({},t),o),t),{});return $($($($($($($({},n),e),W4(n,{generateColorPalettes:X4,generateNeutralColorPalettes:Y4})),K4(n.fontSize)),z4(n)),Z4(n)),H4(n))}function Qp(n){return n>=0&&n<=255}function Uu(n,e){const{r:t,g:o,b:r,a:s}=new yn(n).toRgb();if(s<1)return n;const{r:l,g:d,b:h}=new yn(e).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((t-l*(1-m))/m),v=Math.round((o-d*(1-m))/m),b=Math.round((r-h*(1-m))/m);if(Qp(g)&&Qp(v)&&Qp(b))return new yn({r:g,g:v,b,a:Math.round(m*100)/100}).toRgbString()}return new yn({r:t,g:o,b:r,a:1}).toRgbString()}var $4=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};function q4(n){const{override:e}=n,t=$4(n,["override"]),o=$({},e);Object.keys(Wu).forEach(x=>{delete o[x]});const r=$($({},t),o),s=480,l=576,d=768,h=992,m=1200,g=1600,v=2e3;return $($($({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Uu(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Uu(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Uu(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Uu(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
190
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
191
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
192
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
193
|
+
`,boxShadowSecondary:`
|
|
194
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
195
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
196
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
197
|
+
`,boxShadowTertiary:`
|
|
198
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
199
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
200
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
201
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:h-1,screenLG:h,screenLGMin:h,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,screenXXLMax:v-1,screenXXXL:v,screenXXXLMin:v,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
|
|
202
|
+
0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
203
|
+
0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
204
|
+
0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
205
|
+
`,boxShadowDrawerRight:`
|
|
206
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
207
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
208
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
209
|
+
`,boxShadowDrawerLeft:`
|
|
210
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
211
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
212
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
213
|
+
`,boxShadowDrawerUp:`
|
|
214
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
215
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
216
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
217
|
+
`,boxShadowDrawerDown:`
|
|
218
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
219
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
220
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
221
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Ip=n=>({boxSizing:"border-box",margin:0,padding:0,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,listStyle:"none",fontFamily:n.fontFamily}),eQ=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),tQ=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nQ=n=>({a:{color:n.colorLink,textDecoration:n.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${n.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:n.colorLinkHover},"&:active":{color:n.colorLinkActive},"&:active,\n &:hover":{textDecoration:n.linkHoverDecoration,outline:0},"&:focus":{textDecoration:n.linkFocusDecoration,outline:0},"&[disabled]":{color:n.colorTextDisabled,cursor:"not-allowed"}}}),oQ=(n,e)=>{const{fontFamily:t,fontSize:o}=n,r=`[class^="${e}"], [class*=" ${e}"]`;return{[r]:{fontFamily:t,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},iQ=n=>({outline:`${n.lineWidthBold}px solid ${n.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ab=n=>({"&:focus-visible":$({},iQ(n))});function Ur(n,e,t){return o=>{const r=u.computed(()=>o?.value),[s,l,d]=Nl(),{getPrefixCls:h,iconPrefixCls:m}=Tu(),g=u.computed(()=>h()),v=u.computed(()=>({theme:s.value,token:l.value,hashId:d.value,path:["Shared",g.value]}));kp(v,()=>[{"&":nQ(l.value)}]);const b=u.computed(()=>({theme:s.value,token:l.value,hashId:d.value,path:[n,r.value,m.value]}));return[kp(b,()=>{const{token:x,flush:C}=sQ(l.value),k=typeof t=="function"?t(x):t,M=$($({},k),l.value[n]),_=`.${r.value}`,E=Ji(x,{componentCls:_,prefixCls:r.value,iconCls:`.${m.value}`,antCls:`.${g.value}`},M),F=e(E,{hashId:d.value,prefixCls:r.value,rootPrefixCls:g.value,iconPrefixCls:m.value,overrideComponentToken:l.value[n]});return C(n,M),[oQ(l.value,r.value),F]}),d]}}const Rb=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Dp=!0;function Ji(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];if(!Rb)return $({},...e);Dp=!1;const o={};return e.forEach(r=>{Object.keys(r).forEach(l=>{Object.defineProperty(o,l,{configurable:!0,enumerable:!0,get:()=>r[l]})})}),Dp=!0,o}function rQ(){}function sQ(n){let e,t=n,o=rQ;return Rb&&(e=new Set,t=new Proxy(n,{get(r,s){return Dp&&e.add(s),r[s]}}),o=(r,s)=>{Array.from(e)}),{token:t,keys:e,flush:o}}const aQ=tb(J4),Mb={token:Wu,hashed:!0},Qb=Symbol("DesignTokenContext"),Bp=u.shallowRef(),lQ=n=>{u.provide(Qb,n),u.watch(n,()=>{Bp.value=u.unref(n),u.triggerRef(Bp)},{immediate:!0,deep:!0})},cQ=u.defineComponent({props:{value:Gt()},setup(n,e){let{slots:t}=e;return lQ(u.computed(()=>n.value)),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}});function Nl(){const n=u.inject(Qb,u.computed(()=>Bp.value||Mb)),e=u.computed(()=>`${C4}-${n.value.hashed||""}`),t=u.computed(()=>n.value.theme||aQ),o=JM(t,u.computed(()=>[Wu,n.value.token]),u.computed(()=>({salt:e.value,override:$({override:n.value.token},n.value.components),formatToken:q4})));return[t,u.computed(()=>o.value[0]),u.computed(()=>n.value.hashed?o.value[1]:"")]}const Ib=u.defineComponent({compatConfig:{MODE:3},setup(){const[,n]=Nl(),e=u.computed(()=>new yn(n.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>u.createVNode("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("g",{fill:"none","fill-rule":"evenodd"},[u.createVNode("g",{transform:"translate(24 31.67)"},[u.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),u.createVNode("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),u.createVNode("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),u.createVNode("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),u.createVNode("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),u.createVNode("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),u.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[u.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),u.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});Ib.PRESENTED_IMAGE_DEFAULT=!0;const Db=u.defineComponent({compatConfig:{MODE:3},setup(){const[,n]=Nl(),e=u.computed(()=>{const{colorFill:t,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:s}=n.value;return{borderColor:new yn(t).onBackground(s).toHexString(),shadowColor:new yn(o).onBackground(s).toHexString(),contentColor:new yn(r).onBackground(s).toHexString()}});return()=>u.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[u.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[u.createVNode("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),u.createVNode("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[u.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),u.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:e.value.contentColor},null)])])])}});Db.PRESENTED_IMAGE_SIMPLE=!0;const uQ=n=>{const{componentCls:e,margin:t,marginXS:o,marginXL:r,fontSize:s,lineHeight:l}=n;return{[e]:{marginInline:o,fontSize:s,lineHeight:l,textAlign:"center",[`${e}-image`]:{height:n.emptyImgHeight,marginBottom:o,opacity:n.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${e}-footer`]:{marginTop:t},"&-normal":{marginBlock:r,color:n.colorTextDisabled,[`${e}-image`]:{height:n.emptyImgHeightMD}},"&-small":{marginBlock:o,color:n.colorTextDisabled,[`${e}-image`]:{height:n.emptyImgHeightSM}}}}},dQ=Ur("Empty",n=>{const{componentCls:e,controlHeightLG:t}=n,o=Ji(n,{emptyImgCls:`${e}-img`,emptyImgHeight:t*2.5,emptyImgHeightMD:t,emptyImgHeightSM:t*.875});return[uQ(o)]});var fQ=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};const Bb=u.createVNode(Ib,null,null),Vb=u.createVNode(Db,null,null),hQ=()=>({prefixCls:String,imageStyle:Gt(),image:sp(),description:sp()}),Vp=u.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:hQ(),setup(n,e){let{slots:t={},attrs:o}=e;const{direction:r,prefixCls:s}=si("empty",n),[l,d]=dQ(s);return()=>{var h,m;const g=s.value,v=$($({},n),o),{image:b=((h=t.image)===null||h===void 0?void 0:h.call(t))||Bb,description:x=((m=t.description)===null||m===void 0?void 0:m.call(t))||void 0,imageStyle:C,class:k=""}=v,M=fQ(v,["image","description","imageStyle","class"]);return l(u.createVNode(F0,{componentName:"Empty",children:_=>{const E=typeof x<"u"?x:_.description,F=typeof E=="string"?E:"empty";let D=null;return typeof b=="string"?D=u.createVNode("img",{alt:F,src:b},null):D=b,u.createVNode("div",Ge({class:It(g,k,d.value,{[`${g}-normal`]:b===Vb,[`${g}-rtl`]:r.value==="rtl"})},M),[u.createVNode("div",{class:`${g}-image`,style:C},[D]),E&&u.createVNode("p",{class:`${g}-description`},[E]),t.default&&u.createVNode("div",{class:`${g}-footer`},[_0(t.default())])])}},null))}}});Vp.PRESENTED_IMAGE_DEFAULT=Bb,Vp.PRESENTED_IMAGE_SIMPLE=Vb;const Al=rp(Vp),Lb=n=>{const{prefixCls:e}=si("empty",n);return(o=>{switch(o){case"Table":case"List":return u.createVNode(Al,{image:Al.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return u.createVNode(Al,{image:Al.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return u.createVNode(Al,null,null)}})(n.componentName)};function pQ(n){return u.createVNode(Lb,{componentName:n},null)}const jb=Symbol("SizeContextKey"),Fb=()=>u.inject(jb,u.ref(void 0)),mQ=n=>{const e=Fb();return u.provide(jb,u.computed(()=>n.value||e.value)),n},si=(n,e)=>{const t=Fb(),o=cp(),r=u.inject(lp,$($({},B0),{renderEmpty:L=>u.h(Lb,{componentName:L})})),s=u.computed(()=>r.getPrefixCls(n,e.prefixCls)),l=u.computed(()=>{var L,Z;return(L=e.direction)!==null&&L!==void 0?L:(Z=r.direction)===null||Z===void 0?void 0:Z.value}),d=u.computed(()=>{var L;return(L=e.iconPrefixCls)!==null&&L!==void 0?L:r.iconPrefixCls.value}),h=u.computed(()=>r.getPrefixCls()),m=u.computed(()=>{var L;return(L=r.autoInsertSpaceInButton)===null||L===void 0?void 0:L.value}),g=r.renderEmpty,v=r.space,b=r.pageHeader,x=r.form,C=u.computed(()=>{var L,Z;return(L=e.getTargetContainer)!==null&&L!==void 0?L:(Z=r.getTargetContainer)===null||Z===void 0?void 0:Z.value}),k=u.computed(()=>{var L,Z,I;return(Z=(L=e.getContainer)!==null&&L!==void 0?L:e.getPopupContainer)!==null&&Z!==void 0?Z:(I=r.getPopupContainer)===null||I===void 0?void 0:I.value}),M=u.computed(()=>{var L,Z;return(L=e.dropdownMatchSelectWidth)!==null&&L!==void 0?L:(Z=r.dropdownMatchSelectWidth)===null||Z===void 0?void 0:Z.value}),_=u.computed(()=>{var L;return(e.virtual===void 0?((L=r.virtual)===null||L===void 0?void 0:L.value)!==!1:e.virtual!==!1)&&M.value!==!1}),E=u.computed(()=>e.size||t.value),F=u.computed(()=>{var L,Z,I;return(L=e.autocomplete)!==null&&L!==void 0?L:(I=(Z=r.input)===null||Z===void 0?void 0:Z.value)===null||I===void 0?void 0:I.autocomplete}),D=u.computed(()=>{var L;return(L=e.disabled)!==null&&L!==void 0?L:o.value}),Q=u.computed(()=>{var L;return(L=e.csp)!==null&&L!==void 0?L:r.csp}),Y=u.computed(()=>{var L,Z;return(L=e.wave)!==null&&L!==void 0?L:(Z=r.wave)===null||Z===void 0?void 0:Z.value});return{configProvider:r,prefixCls:s,direction:l,size:E,getTargetContainer:C,getPopupContainer:k,space:v,pageHeader:b,form:x,autoInsertSpaceInButton:m,renderEmpty:g,virtual:_,dropdownMatchSelectWidth:M,rootPrefixCls:h,getPrefixCls:r.getPrefixCls,autocomplete:F,csp:Q,iconPrefixCls:d,disabled:D,select:r.select,wave:Y}};function Zb(n,e){const t=$({},n);for(let o=0;o<e.length;o+=1){const r=e[o];delete t[r]}return t}function gQ(n,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}function zb(n,e,t){return t&&gQ(n,t),n}function Hu(){return(Hu=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n}).apply(this,arguments)}function Wb(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}function Ub(n,e){if(n==null)return{};var t,o,r={},s=Object.keys(n);for(o=0;o<s.length;o++)e.indexOf(t=s[o])>=0||(r[t]=n[t]);return r}function Hb(n){return((e=n)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(n)==="[object Object]";var e}var Xb=Object.prototype,Yb=Xb.toString,OQ=Xb.hasOwnProperty,Gb=/^\s*function (\w+)/;function Kb(n){var e,t=(e=n?.type)!==null&&e!==void 0?e:n;if(t){var o=t.toString().match(Gb);return o?o[1]:""}return""}var Hr=function(n){var e,t;return Hb(n)!==!1&&typeof(e=n.constructor)=="function"&&Hb(t=e.prototype)!==!1&&t.hasOwnProperty("isPrototypeOf")!==!1},Jb=function(n){return n},An=Jb;if(process.env.NODE_ENV!=="production"){var vQ=typeof console<"u";An=vQ?function(n){console.warn("[VueTypes warn]: "+n)}:Jb}var Rl=function(n,e){return OQ.call(n,e)},yQ=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},ca=Array.isArray||function(n){return Yb.call(n)==="[object Array]"},ua=function(n){return Yb.call(n)==="[object Function]"},Xu=function(n){return Hr(n)&&Rl(n,"_vueTypes_name")},$b=function(n){return Hr(n)&&(Rl(n,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Rl(n,e)}))};function Lp(n,e){return Object.defineProperty(n.bind(e),"__original",{value:n})}function Xr(n,e,t){var o;t===void 0&&(t=!1);var r=!0,s="";o=Hr(n)?n:{type:n};var l=Xu(o)?o._vueTypes_name+" - ":"";if($b(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&e===void 0)return r;ca(o.type)?(r=o.type.some(function(v){return Xr(v,e,!0)===!0}),s=o.type.map(function(v){return Kb(v)}).join(" or ")):r=(s=Kb(o))==="Array"?ca(e):s==="Object"?Hr(e):s==="String"||s==="Number"||s==="Boolean"||s==="Function"?function(v){if(v==null)return"";var b=v.constructor.toString().match(Gb);return b?b[1]:""}(e)===s:e instanceof o.type}if(!r){var d=l+'value "'+e+'" should be of type "'+s+'"';return t===!1?(An(d),!1):d}if(Rl(o,"validator")&&ua(o.validator)){var h=An,m=[];if(An=function(v){m.push(v)},r=o.validator(e),An=h,!r){var g=(m.length>1?"* ":"")+m.join(`
|
|
222
|
+
* `);return m.length=0,t===!1?(An(g),r):g}}return r}function fo(n,e){var t=Object.defineProperties(e,{_vueTypes_name:{value:n,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?ua(r)||Xr(this,r,!0)===!0?(this.default=ca(r)?function(){return[].concat(r)}:Hr(r)?function(){return Object.assign({},r)}:r,this):(An(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=t.validator;return ua(o)&&(t.validator=Lp(o,t)),t}function ai(n,e){var t=fo(n,e);return Object.defineProperty(t,"validate",{value:function(o){return ua(this.validator)&&An(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
223
|
+
`+JSON.stringify(this)),this.validator=Lp(o,this),this}})}function qb(n,e,t){var o,r,s=(o=e,r={},Object.getOwnPropertyNames(o).forEach(function(v){r[v]=Object.getOwnPropertyDescriptor(o,v)}),Object.defineProperties({},r));if(s._vueTypes_name=n,!Hr(t))return s;var l,d,h=t.validator,m=Ub(t,["validator"]);if(ua(h)){var g=s.validator;g&&(g=(d=(l=g).__original)!==null&&d!==void 0?d:l),s.validator=Lp(g?function(v){return g.call(this,v)&&h.call(this,v)}:h,s)}return Object.assign(s,m)}function Yu(n){return n.replace(/^(?!\s*$)/gm," ")}var bQ=function(){return ai("any",{})},xQ=function(){return ai("function",{type:Function})},wQ=function(){return ai("boolean",{type:Boolean})},SQ=function(){return ai("string",{type:String})},CQ=function(){return ai("number",{type:Number})},kQ=function(){return ai("array",{type:Array})},PQ=function(){return ai("object",{type:Object})},EQ=function(){return fo("integer",{type:Number,validator:function(n){return yQ(n)}})},TQ=function(){return fo("symbol",{validator:function(n){return typeof n=="symbol"}})};function _Q(n,e){if(e===void 0&&(e="custom validation failed"),typeof n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return fo(n.name||"<<anonymous function>>",{validator:function(t){var o=n(t);return o||An(this._vueTypes_name+" - "+e),o}})}function NQ(n){if(!ca(n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+n.join('", "')+'".',t=n.reduce(function(o,r){if(r!=null){var s=r.constructor;o.indexOf(s)===-1&&o.push(s)}return o},[]);return fo("oneOf",{type:t.length>0?t:void 0,validator:function(o){var r=n.indexOf(o)!==-1;return r||An(e),r}})}function AQ(n){if(!ca(n))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,t=[],o=0;o<n.length;o+=1){var r=n[o];if($b(r)){if(Xu(r)&&r._vueTypes_name==="oneOf"){t=t.concat(r.type);continue}if(ua(r.validator)&&(e=!0),r.type!==!0&&r.type){t=t.concat(r.type);continue}}t.push(r)}return t=t.filter(function(s,l){return t.indexOf(s)===l}),fo("oneOfType",e?{type:t,validator:function(s){var l=[],d=n.some(function(h){var m=Xr(Xu(h)&&h._vueTypes_name==="oneOf"?h.type||null:h,s,!0);return typeof m=="string"&&l.push(m),m===!0});return d||An("oneOfType - provided value does not match any of the "+l.length+` passed-in validators:
|
|
224
|
+
`+Yu(l.join(`
|
|
225
|
+
`))),d}}:{type:t})}function RQ(n){return fo("arrayOf",{type:Array,validator:function(e){var t,o=e.every(function(r){return(t=Xr(n,r,!0))===!0});return o||An(`arrayOf - value validation error:
|
|
226
|
+
`+Yu(t)),o}})}function MQ(n){return fo("instanceOf",{type:n})}function QQ(n){return fo("objectOf",{type:Object,validator:function(e){var t,o=Object.keys(e).every(function(r){return(t=Xr(n,e[r],!0))===!0});return o||An(`objectOf - value validation error:
|
|
227
|
+
`+Yu(t)),o}})}function IQ(n){var e=Object.keys(n),t=e.filter(function(r){var s;return!!(!((s=n[r])===null||s===void 0)&&s.required)}),o=fo("shape",{type:Object,validator:function(r){var s=this;if(!Hr(r))return!1;var l=Object.keys(r);if(t.length>0&&t.some(function(h){return l.indexOf(h)===-1})){var d=t.filter(function(h){return l.indexOf(h)===-1});return An(d.length===1?'shape - required property "'+d[0]+'" is not defined.':'shape - required properties "'+d.join('", "')+'" are not defined.'),!1}return l.every(function(h){if(e.indexOf(h)===-1)return s._vueTypes_isLoose===!0||(An('shape - shape definition does not include a "'+h+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var m=Xr(n[h],r[h],!0);return typeof m=="string"&&An('shape - "'+h+`" property validation error:
|
|
228
|
+
`+Yu(m)),m===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var li=function(){function n(){}return n.extend=function(e){var t=this;if(ca(e))return e.forEach(function(v){return t.extend(v)}),this;var o=e.name,r=e.validate,s=r!==void 0&&r,l=e.getter,d=l!==void 0&&l,h=Ub(e,["name","validate","getter"]);if(Rl(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var m,g=h.type;return Xu(g)?(delete h.type,Object.defineProperty(this,o,d?{get:function(){return qb(o,g,h)}}:{value:function(){var v,b=qb(o,g,h);return b.validator&&(b.validator=(v=b.validator).bind.apply(v,[b].concat([].slice.call(arguments)))),b}})):(m=d?{get:function(){var v=Object.assign({},h);return s?ai(o,v):fo(o,v)},enumerable:!0}:{value:function(){var v,b,x=Object.assign({},h);return v=s?ai(o,x):fo(o,x),x.validator&&(v.validator=(b=x.validator).bind.apply(b,[v].concat([].slice.call(arguments)))),v},enumerable:!0},Object.defineProperty(this,o,m))},zb(n,null,[{key:"any",get:function(){return bQ()}},{key:"func",get:function(){return xQ().def(this.defaults.func)}},{key:"bool",get:function(){return wQ().def(this.defaults.bool)}},{key:"string",get:function(){return SQ().def(this.defaults.string)}},{key:"number",get:function(){return CQ().def(this.defaults.number)}},{key:"array",get:function(){return kQ().def(this.defaults.array)}},{key:"object",get:function(){return PQ().def(this.defaults.object)}},{key:"integer",get:function(){return EQ().def(this.defaults.integer)}},{key:"symbol",get:function(){return TQ()}}]),n}();function e1(n){var e;return n===void 0&&(n={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(t){function o(){return t.apply(this,arguments)||this}return Wb(o,t),zb(o,null,[{key:"sensibleDefaults",get:function(){return Hu({},this.defaults)},set:function(r){this.defaults=r!==!1?Hu({},r!==!0?r:n):{}}}]),o}(li)).defaults=Hu({},n),e}li.defaults={},li.custom=_Q,li.oneOf=NQ,li.instanceOf=MQ,li.oneOfType=AQ,li.arrayOf=RQ,li.objectOf=QQ,li.shape=IQ,li.utils={validate:function(n,e){return Xr(e,n,!0)===!0},toType:function(n,e,t){return t===void 0&&(t=!1),t?ai(n,e):fo(n,e)}},function(n){function e(){return n.apply(this,arguments)||this}return Wb(e,n),e}(e1());const Dt=e1({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Dt.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const t1=(n,e,t)=>{mp(n,`[ant-design-vue: ${e}] ${t}`)};function DQ(n){let{prefixCls:e,animation:t,transitionName:o}=n;return t?{name:`${e}-${t}`}:o?{name:o}:{}}function BQ(n,e,t){u.render(u.cloneVNode(n,$({},e)),t)}const VQ=n=>{if(!n)return!1;if(n.offsetParent)return!0;if(n.getBBox){const e=n.getBBox();if(e.width||e.height)return!0}if(n.getBoundingClientRect){const e=n.getBoundingClientRect();if(e.width||e.height)return!0}return!1};var n1=typeof global=="object"&&global&&global.Object===Object&&global,LQ=typeof self=="object"&&self&&self.Object===Object&&self,$i=n1||LQ||Function("return this")(),Gu=$i.Symbol,o1=Object.prototype,jQ=o1.hasOwnProperty,FQ=o1.toString,Ml=Gu?Gu.toStringTag:void 0;function ZQ(n){var e=jQ.call(n,Ml),t=n[Ml];try{n[Ml]=void 0;var o=!0}catch{}var r=FQ.call(n);return o&&(e?n[Ml]=t:delete n[Ml]),r}var zQ=Object.prototype,WQ=zQ.toString;function UQ(n){return WQ.call(n)}var HQ="[object Null]",XQ="[object Undefined]",i1=Gu?Gu.toStringTag:void 0;function Ql(n){return n==null?n===void 0?XQ:HQ:i1&&i1 in Object(n)?ZQ(n):UQ(n)}function r1(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var YQ="[object AsyncFunction]",GQ="[object Function]",KQ="[object GeneratorFunction]",JQ="[object Proxy]";function s1(n){if(!r1(n))return!1;var e=Ql(n);return e==GQ||e==KQ||e==YQ||e==JQ}var jp=$i["__core-js_shared__"],a1=function(){var n=/[^.]+$/.exec(jp&&jp.keys&&jp.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function $Q(n){return!!a1&&a1 in n}var qQ=Function.prototype,e3=qQ.toString;function Yr(n){if(n!=null){try{return e3.call(n)}catch{}try{return n+""}catch{}}return""}var t3=/[\\^$.*+?()[\]{}|]/g,n3=/^\[object .+?Constructor\]$/,o3=Function.prototype,i3=Object.prototype,r3=o3.toString,s3=i3.hasOwnProperty,a3=RegExp("^"+r3.call(s3).replace(t3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l3(n){if(!r1(n)||$Q(n))return!1;var e=s1(n)?a3:n3;return e.test(Yr(n))}function c3(n,e){return n?.[e]}function Il(n,e){var t=c3(n,e);return l3(t)?t:void 0}var Fp=Il($i,"Map"),u3=Array.isArray;function Zp(n){return n!=null&&typeof n=="object"}var d3="[object Arguments]";function l1(n){return Zp(n)&&Ql(n)==d3}var c1=Object.prototype,f3=c1.hasOwnProperty,h3=c1.propertyIsEnumerable,p3=l1(function(){return arguments}())?l1:function(n){return Zp(n)&&f3.call(n,"callee")&&!h3.call(n,"callee")};function m3(){return!1}var u1=typeof un=="object"&&un&&!un.nodeType&&un,d1=u1&&typeof module=="object"&&module&&!module.nodeType&&module,g3=d1&&d1.exports===u1,f1=g3?$i.Buffer:void 0,O3=f1?f1.isBuffer:void 0,v3=O3||m3,y3=9007199254740991;function h1(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=y3}var b3="[object Arguments]",x3="[object Array]",w3="[object Boolean]",S3="[object Date]",C3="[object Error]",k3="[object Function]",P3="[object Map]",E3="[object Number]",T3="[object Object]",_3="[object RegExp]",N3="[object Set]",A3="[object String]",R3="[object WeakMap]",M3="[object ArrayBuffer]",Q3="[object DataView]",I3="[object Float32Array]",D3="[object Float64Array]",B3="[object Int8Array]",V3="[object Int16Array]",L3="[object Int32Array]",j3="[object Uint8Array]",F3="[object Uint8ClampedArray]",Z3="[object Uint16Array]",z3="[object Uint32Array]",_t={};_t[I3]=_t[D3]=_t[B3]=_t[V3]=_t[L3]=_t[j3]=_t[F3]=_t[Z3]=_t[z3]=!0,_t[b3]=_t[x3]=_t[M3]=_t[w3]=_t[Q3]=_t[S3]=_t[C3]=_t[k3]=_t[P3]=_t[E3]=_t[T3]=_t[_3]=_t[N3]=_t[A3]=_t[R3]=!1;function W3(n){return Zp(n)&&h1(n.length)&&!!_t[Ql(n)]}function U3(n){return function(e){return n(e)}}var p1=typeof un=="object"&&un&&!un.nodeType&&un,Dl=p1&&typeof module=="object"&&module&&!module.nodeType&&module,H3=Dl&&Dl.exports===p1,zp=H3&&n1.process,m1=function(){try{var n=Dl&&Dl.require&&Dl.require("util").types;return n||zp&&zp.binding&&zp.binding("util")}catch{}}(),g1=m1&&m1.isTypedArray,X3=g1?U3(g1):W3,Y3=Object.prototype;function O1(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Y3;return n===t}function G3(n,e){return function(t){return n(e(t))}}var K3=G3(Object.keys,Object),J3=Object.prototype,$3=J3.hasOwnProperty;function q3(n){if(!O1(n))return K3(n);var e=[];for(var t in Object(n))$3.call(n,t)&&t!="constructor"&&e.push(t);return e}function eI(n){return n!=null&&h1(n.length)&&!s1(n)}var Wp=Il($i,"DataView"),Up=Il($i,"Promise"),Hp=Il($i,"Set"),Xp=Il($i,"WeakMap"),v1="[object Map]",tI="[object Object]",y1="[object Promise]",b1="[object Set]",x1="[object WeakMap]",w1="[object DataView]",nI=Yr(Wp),oI=Yr(Fp),iI=Yr(Up),rI=Yr(Hp),sI=Yr(Xp),Gr=Ql;(Wp&&Gr(new Wp(new ArrayBuffer(1)))!=w1||Fp&&Gr(new Fp)!=v1||Up&&Gr(Up.resolve())!=y1||Hp&&Gr(new Hp)!=b1||Xp&&Gr(new Xp)!=x1)&&(Gr=function(n){var e=Ql(n),t=e==tI?n.constructor:void 0,o=t?Yr(t):"";if(o)switch(o){case nI:return w1;case oI:return v1;case iI:return y1;case rI:return b1;case sI:return x1}return e}),Eu("bottomLeft","bottomRight","topLeft","topRight");const S1=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $(n?{name:n,appear:!0,enterFromClass:`${n}-enter ${n}-enter-prepare ${n}-enter-start`,enterActiveClass:`${n}-enter ${n}-enter-prepare`,enterToClass:`${n}-enter ${n}-enter-active`,leaveFromClass:` ${n}-leave`,leaveActiveClass:`${n}-leave ${n}-leave-active`,leaveToClass:`${n}-leave ${n}-leave-active`}:{css:!1},e)},C1=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $(n?{name:n,appear:!0,appearActiveClass:`${n}`,appearToClass:`${n}-appear ${n}-appear-active`,enterFromClass:`${n}-appear ${n}-enter ${n}-appear-prepare ${n}-enter-prepare`,enterActiveClass:`${n}`,enterToClass:`${n}-enter ${n}-appear ${n}-appear-active ${n}-enter-active`,leaveActiveClass:`${n} ${n}-leave`,leaveToClass:`${n}-leave-active`}:{css:!1},e)},Ku=(n,e,t)=>t!==void 0?t:`${n}-${e}`,k1=Symbol("PortalContextKey"),P1=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};u.provide(k1,{inTriggerContext:e.inTriggerContext,shouldRender:u.computed(()=>{const{sPopupVisible:t,popupRef:o,forceRender:r,autoDestroy:s}=n||{};let l=!1;return(t||o||r)&&(l=!0),!t&&s&&(l=!1),l})})},aI=()=>{P1({},{inTriggerContext:!1});const n=u.inject(k1,{shouldRender:u.computed(()=>!1),inTriggerContext:!1});return{shouldRender:u.computed(()=>n.shouldRender.value||n.inTriggerContext===!1)}},E1=u.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Dt.func.isRequired,didUpdate:Function},setup(n,e){let{slots:t}=e,o=!0,r;const{shouldRender:s}=aI();function l(){s.value&&(r=n.getContainer())}u.onBeforeMount(()=>{o=!1,l()}),u.onMounted(()=>{r||l()});const d=u.watch(s,()=>{s.value&&!r&&(r=n.getContainer()),r&&d()});return u.onUpdated(()=>{u.nextTick(()=>{var h;s.value&&((h=n.didUpdate)===null||h===void 0||h.call(n,n))})}),()=>{var h;return s.value?o?(h=t.default)===null||h===void 0?void 0:h.call(t):r?u.createVNode(u.Teleport,{to:r},t):null:null}}});let Yp;function lI(n){if(typeof document>"u")return 0;if(Yp===void 0){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),o=t.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const r=e.offsetWidth;t.style.overflow="scroll";let s=e.offsetWidth;r===s&&(s=t.clientWidth),document.body.removeChild(t),Yp=r-s}return Yp}const cI=`vc-util-locker-${Date.now()}`;let T1=0;function uI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function dI(n){const e=u.computed(()=>!!n&&!!n.value);T1+=1;const t=`${cI}_${T1}`;u.watchEffect(o=>{if(jo()){if(e.value){const r=lI(),s=uI();kl(`
|
|
229
|
+
html body {
|
|
230
|
+
overflow-y: hidden;
|
|
231
|
+
${s?`width: calc(100% - ${r}px);`:""}
|
|
232
|
+
}`,t)}else Au(t);o(()=>{Au(t)})}},{flush:"post"})}let Kr=0;const Ju=jo(),_1=n=>{if(!Ju)return null;if(n){if(typeof n=="string")return document.querySelectorAll(n)[0];if(typeof n=="function")return n();if(typeof n=="object"&&n instanceof window.HTMLElement)return n}return document.body},fI=u.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Dt.any,visible:{type:Boolean,default:void 0},autoLock:ta(),didUpdate:Function},setup(n,e){let{slots:t}=e;const o=u.shallowRef(),r=u.shallowRef(),s=u.shallowRef(),l=u.shallowRef(1),d=jo()&&document.createElement("div"),h=()=>{var x,C;o.value===d&&((C=(x=o.value)===null||x===void 0?void 0:x.parentNode)===null||C===void 0||C.removeChild(o.value)),o.value=null};let m=null;const g=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(m=_1(n.getContainer),m?(m.appendChild(o.value),!0):!1):!0},v=()=>Ju?(o.value||(o.value=d,g(!0)),b(),o.value):null,b=()=>{const{wrapperClassName:x}=n;o.value&&x&&x!==o.value.className&&(o.value.className=x)};return u.onUpdated(()=>{b(),g()}),dI(u.computed(()=>n.autoLock&&n.visible&&jo()&&(o.value===document.body||o.value===d))),u.onMounted(()=>{let x=!1;u.watch([()=>n.visible,()=>n.getContainer],(C,k)=>{let[M,_]=C,[E,F]=k;Ju&&(m=_1(n.getContainer),m===document.body&&(M&&!E?Kr+=1:x&&(Kr-=1))),x&&(typeof _=="function"&&typeof F=="function"?_.toString()!==F.toString():_!==F)&&h(),x=!0},{immediate:!0,flush:"post"}),u.nextTick(()=>{g()||(s.value=Sl(()=>{l.value+=1}))})}),u.onBeforeUnmount(()=>{const{visible:x}=n;Ju&&m===document.body&&(Kr=x&&Kr?Kr-1:Kr),h(),Sl.cancel(s.value)}),()=>{const{forceRender:x,visible:C}=n;let k=null;const M={getOpenCount:()=>Kr,getContainer:v};return l.value&&(x||C||r.value)&&(k=u.createVNode(E1,{getContainer:v,ref:r,didUpdate:n.didUpdate},{default:()=>{var _;return(_=t.default)===null||_===void 0?void 0:_.call(t,M)}})),k}}}),qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=qe.F1&&t<=qe.F12)return!1;switch(t){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=qe.ZERO&&e<=qe.NINE||e>=qe.NUM_ZERO&&e<=qe.NUM_MULTIPLY||e>=qe.A&&e<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},N1=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
233
|
+
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
234
|
+
charset checked classid classname colspan cols content contenteditable contextmenu
|
|
235
|
+
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
236
|
+
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
|
237
|
+
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
|
238
|
+
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
|
239
|
+
mediagroup method min minlength multiple muted name novalidate nonce open
|
|
240
|
+
optimum pattern placeholder poster preload radiogroup readonly rel required
|
|
241
|
+
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
|
242
|
+
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
|
243
|
+
summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
|
244
|
+
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
|
245
|
+
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
|
246
|
+
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
247
|
+
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
248
|
+
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
249
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),hI="aria-",pI="data-";function A1(n,e){return n.indexOf(e)===0}function mI(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;e===!1?t={aria:!0,data:!0,attr:!0}:e===!0?t={aria:!0}:t=$({},e);const o={};return Object.keys(n).forEach(r=>{(t.aria&&(r==="role"||A1(r,hI))||t.data&&A1(r,pI)||t.attr&&(N1.includes(r)||N1.includes(r.toLowerCase())))&&(o[r]=n[r])}),o}function Jr(n){const e=typeof n=="function"?n():n,t=u.ref(e);function o(r){t.value=r}return[t,o]}var gI=Symbol("iconContext"),R1=function(){return u.inject(gI,{prefixCls:u.ref("anticon"),rootClassName:u.ref(""),csp:u.ref()})};function Gp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OI(n,e){return n&&n.contains?n.contains(e):!1}var M1="data-vc-order",vI="vc-icon-key",Kp=new Map;function Q1(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):vI}function Jp(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function yI(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function I1(n){return Array.from((Kp.get(n)||n).children).filter(function(e){return e.tagName==="STYLE"})}function D1(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Gp())return null;var t=e.csp,o=e.prepend,r=document.createElement("style");r.setAttribute(M1,yI(o)),t&&t.nonce&&(r.nonce=t.nonce),r.innerHTML=n;var s=Jp(e),l=s.firstChild;if(o){if(o==="queue"){var d=I1(s).filter(function(h){return["prepend","prependQueue"].includes(h.getAttribute(M1))});if(d.length)return s.insertBefore(r,d[d.length-1].nextSibling),r}s.insertBefore(r,l)}else s.appendChild(r);return r}function bI(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Jp(e);return I1(t).find(function(o){return o.getAttribute(Q1(e))===n})}function xI(n,e){var t=Kp.get(n);if(!t||!OI(document,t)){var o=D1("",e),r=o.parentNode;Kp.set(n,r),n.removeChild(o)}}function wI(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Jp(t);xI(o,t);var r=bI(e,t);if(r)return t.csp&&t.csp.nonce&&r.nonce!==t.csp.nonce&&(r.nonce=t.csp.nonce),r.innerHTML!==n&&(r.innerHTML=n),r;var s=D1(n,t);return s.setAttribute(Q1(t),e),s}function B1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){SI(n,r,t[r])})}return n}function SI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function CI(n,e){process.env.NODE_ENV!=="production"&&!n&&console!==void 0&&console.error("Warning: ".concat(e))}function kI(n,e){CI(n,"[@ant-design/icons-vue] ".concat(e))}function V1(n){return typeof n=="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(typeof n.icon=="object"||typeof n.icon=="function")}function $p(n,e,t){return t?u.h(n.tag,B1({key:e},t,n.attrs),(n.children||[]).map(function(o,r){return $p(o,"".concat(e,"-").concat(n.tag,"-").concat(r))})):u.h(n.tag,B1({key:e},n.attrs),(n.children||[]).map(function(o,r){return $p(o,"".concat(e,"-").concat(n.tag,"-").concat(r))}))}function L1(n){return Wr(n)[0]}function j1(n){return n?Array.isArray(n)?n:[n]:[]}var PI=`
|
|
250
|
+
.anticon {
|
|
251
|
+
display: inline-block;
|
|
252
|
+
color: inherit;
|
|
253
|
+
font-style: normal;
|
|
254
|
+
line-height: 0;
|
|
255
|
+
text-align: center;
|
|
256
|
+
text-transform: none;
|
|
257
|
+
vertical-align: -0.125em;
|
|
258
|
+
text-rendering: optimizeLegibility;
|
|
259
|
+
-webkit-font-smoothing: antialiased;
|
|
260
|
+
-moz-osx-font-smoothing: grayscale;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.anticon > * {
|
|
264
|
+
line-height: 1;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.anticon svg {
|
|
268
|
+
display: inline-block;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.anticon::before {
|
|
272
|
+
display: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.anticon .anticon-icon {
|
|
276
|
+
display: block;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.anticon[tabindex] {
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.anticon-spin::before,
|
|
284
|
+
.anticon-spin {
|
|
285
|
+
display: inline-block;
|
|
286
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
287
|
+
animation: loadingCircle 1s infinite linear;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@-webkit-keyframes loadingCircle {
|
|
291
|
+
100% {
|
|
292
|
+
-webkit-transform: rotate(360deg);
|
|
293
|
+
transform: rotate(360deg);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@keyframes loadingCircle {
|
|
298
|
+
100% {
|
|
299
|
+
-webkit-transform: rotate(360deg);
|
|
300
|
+
transform: rotate(360deg);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
`;function F1(n){return n&&n.getRootNode&&n.getRootNode()}function EI(n){return Gp()?F1(n)instanceof ShadowRoot:!1}function TI(n){return EI(n)?F1(n):null}var _I=function(){var e=R1(),t=e.prefixCls,o=e.csp,r=u.getCurrentInstance(),s=PI;t&&(s=s.replace(/anticon/g,t.value)),u.nextTick(function(){if(Gp()){var l=r.vnode.el,d=TI(l);wI(s,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:d})}})},NI=["icon","primaryColor","secondaryColor"];function AI(n,e){if(n==null)return{};var t=RI(n,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(r=0;r<s.length;r++)o=s[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(t[o]=n[o])}return t}function RI(n,e){if(n==null)return{};var t={},o=Object.keys(n),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}function $u(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){MI(n,r,t[r])})}return n}function MI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Bl=u.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function QI(n){var e=n.primaryColor,t=n.secondaryColor;Bl.primaryColor=e,Bl.secondaryColor=t||L1(e),Bl.calculated=!!t}function II(){return $u({},Bl)}var qi=function(e,t){var o=$u({},e,t.attrs),r=o.icon,s=o.primaryColor,l=o.secondaryColor,d=AI(o,NI),h=Bl;if(s&&(h={primaryColor:s,secondaryColor:l||L1(s)}),kI(V1(r),"icon should be icon definiton, but got ".concat(r)),!V1(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=$u({},m,{icon:m.icon(h.primaryColor,h.secondaryColor)})),$p(m.icon,"svg-".concat(m.name),$u({},d,{"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};qi.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},qi.inheritAttrs=!1,qi.displayName="IconBase",qi.getTwoToneColors=II,qi.setTwoToneColors=QI;function DI(n,e){return jI(n)||LI(n,e)||VI(n,e)||BI()}function BI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
304
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VI(n,e){if(n){if(typeof n=="string")return Z1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Z1(n,e)}}function Z1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}function LI(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var o=[],r=!0,s=!1,l,d;try{for(t=t.call(n);!(r=(l=t.next()).done)&&(o.push(l.value),!(e&&o.length===e));r=!0);}catch(h){s=!0,d=h}finally{try{!r&&t.return!=null&&t.return()}finally{if(s)throw d}}return o}}function jI(n){if(Array.isArray(n))return n}function z1(n){var e=j1(n),t=DI(e,2),o=t[0],r=t[1];return qi.setTwoToneColors({primaryColor:o,secondaryColor:r})}function FI(){var n=qi.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var ZI=u.defineComponent({name:"InsertStyles",setup:function(){return _I(),function(){return null}}}),zI=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function WI(n,e){return YI(n)||XI(n,e)||HI(n,e)||UI()}function UI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
305
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HI(n,e){if(n){if(typeof n=="string")return W1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W1(n,e)}}function W1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}function XI(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var o=[],r=!0,s=!1,l,d;try{for(t=t.call(n);!(r=(l=t.next()).done)&&(o.push(l.value),!(e&&o.length===e));r=!0);}catch(h){s=!0,d=h}finally{try{!r&&t.return!=null&&t.return()}finally{if(s)throw d}}return o}}function YI(n){if(Array.isArray(n))return n}function U1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Vl(n,r,t[r])})}return n}function Vl(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function GI(n,e){if(n==null)return{};var t=KI(n,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(r=0;r<s.length;r++)o=s[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(t[o]=n[o])}return t}function KI(n,e){if(n==null)return{};var t={},o=Object.keys(n),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}z1(F4.primary);var Rn=function(e,t){var o,r=U1({},e,t.attrs),s=r.class,l=r.icon,d=r.spin,h=r.rotate,m=r.tabindex,g=r.twoToneColor,v=r.onClick,b=GI(r,zI),x=R1(),C=x.prefixCls,k=x.rootClassName,M=(o={},Vl(o,k.value,!!k.value),Vl(o,C.value,!0),Vl(o,"".concat(C.value,"-").concat(l.name),!!l.name),Vl(o,"".concat(C.value,"-spin"),!!d||l.name==="loading"),o),_=m;_===void 0&&v&&(_=-1);var E=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,F=j1(g),D=WI(F,2),Q=D[0],Y=D[1];return u.createVNode("span",U1({role:"img","aria-label":l.name},b,{onClick:v,class:[M,s],tabindex:_}),[u.createVNode(qi,{icon:l,primaryColor:Q,secondaryColor:Y,style:E},null),u.createVNode(ZI,null,null)])};Rn.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Rn.displayName="AntdIcon",Rn.inheritAttrs=!1,Rn.getTwoToneColor=FI,Rn.setTwoToneColor=z1;var JI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function H1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){$I(n,r,t[r])})}return n}function $I(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var $r=function(e,t){var o=H1({},e,t.attrs);return u.createVNode(Rn,H1({},o,{icon:JI}),null)};$r.displayName="LoadingOutlined",$r.inheritAttrs=!1;var qI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function X1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){e6(n,r,t[r])})}return n}function e6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var da=function(e,t){var o=X1({},e,t.attrs);return u.createVNode(Rn,X1({},o,{icon:qI}),null)};da.displayName="CloseOutlined",da.inheritAttrs=!1;var t6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Y1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){n6(n,r,t[r])})}return n}function n6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var qr=function(e,t){var o=Y1({},e,t.attrs);return u.createVNode(Rn,Y1({},o,{icon:t6}),null)};qr.displayName="CloseCircleFilled",qr.inheritAttrs=!1;function G1(n){const e=Symbol("contextKey");return{useProvide:(r,s)=>{const l=u.reactive({});return u.provide(e,l),u.watchEffect(()=>{$(l,r,s||{})}),l},useInject:()=>u.inject(e,n)||{}}}const o6=n=>{const{componentCls:e}=n;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},i6=n=>{const{componentCls:e}=n;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}},r6=Ur("Space",n=>[i6(n),o6(n)]);var s6="[object Map]",a6="[object Set]",l6=Object.prototype,c6=l6.hasOwnProperty;function K1(n){if(n==null)return!0;if(eI(n)&&(u3(n)||typeof n=="string"||typeof n.splice=="function"||v3(n)||X3(n)||p3(n)))return!n.length;var e=Gr(n);if(e==s6||e==a6)return!n.size;if(O1(n))return!q3(n).length;for(var t in n)if(c6.call(n,t))return!1;return!0}const u6=()=>({compactSize:String,compactDirection:Dt.oneOf(Eu("horizontal","vertical")).def("horizontal"),isFirstItem:ta(),isLastItem:ta()}),qu=G1(null),d6=(n,e)=>{const t=qu.useInject(),o=u.computed(()=>{if(!t||K1(t))return"";const{compactDirection:r,isFirstItem:s,isLastItem:l}=t,d=r==="vertical"?"-vertical-":"-";return It({[`${n.value}-compact${d}item`]:!0,[`${n.value}-compact${d}first-item`]:s,[`${n.value}-compact${d}last-item`]:l,[`${n.value}-compact${d}item-rtl`]:e.value==="rtl"})});return{compactSize:u.computed(()=>t?.compactSize),compactDirection:u.computed(()=>t?.compactDirection),compactItemClassnames:o}};u.defineComponent({name:"NoCompactStyle",setup(n,e){let{slots:t}=e;return qu.useProvide(null),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}});const f6=()=>({prefixCls:String,size:{type:String},direction:Dt.oneOf(Eu("horizontal","vertical")).def("horizontal"),align:Dt.oneOf(Eu("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),h6=u.defineComponent({name:"CompactItem",props:u6(),setup(n,e){let{slots:t}=e;return qu.useProvide(n),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}});u.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:f6(),setup(n,e){let{attrs:t,slots:o}=e;const{prefixCls:r,direction:s}=si("space-compact",n),l=qu.useInject(),[d,h]=r6(r),m=u.computed(()=>It(r.value,h.value,{[`${r.value}-rtl`]:s.value==="rtl",[`${r.value}-block`]:n.block,[`${r.value}-vertical`]:n.direction==="vertical"}));return()=>{var g;const v=wl(((g=o.default)===null||g===void 0?void 0:g.call(o))||[]);return v.length===0?null:d(u.createVNode("div",Ge(Ge({},t),{},{class:[m.value,t.class]}),[v.map((b,x)=>{var C;const k=b&&b.key||`${r.value}-item-${x}`,M=!l||K1(l);return u.createVNode(h6,{key:k,compactSize:(C=n.size)!==null&&C!==void 0?C:"middle",compactDirection:n.direction,isFirstItem:x===0&&(M||l?.isFirstItem),isLastItem:x===v.length-1&&(M||l?.isLastItem)},{default:()=>[b]})})]))}}});const p6=n=>({animationDuration:n,animationFillMode:"both"}),m6=n=>({animationDuration:n,animationFillMode:"both"}),J1=function(n,e,t,o){const s=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
306
|
+
${s}${n}-enter,
|
|
307
|
+
${s}${n}-appear
|
|
308
|
+
`]:$($({},p6(o)),{animationPlayState:"paused"}),[`${s}${n}-leave`]:$($({},m6(o)),{animationPlayState:"paused"}),[`
|
|
309
|
+
${s}${n}-enter${n}-enter-active,
|
|
310
|
+
${s}${n}-appear${n}-appear-active
|
|
311
|
+
`]:{animationName:e,animationPlayState:"running"},[`${s}${n}-leave${n}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},g6=new Zt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),O6=new Zt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),v6=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:t}=n,o=`${t}-fade`,r=e?"&":"";return[J1(o,g6,O6,n.motionDurationMid,e),{[`
|
|
312
|
+
${r}${o}-enter,
|
|
313
|
+
${r}${o}-appear
|
|
314
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},y6=new Zt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b6=new Zt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$1=new Zt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),q1=new Zt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),x6=new Zt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),w6=new Zt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),S6=new Zt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),C6=new Zt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),k6=new Zt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P6=new Zt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),E6=new Zt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),T6=new Zt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_6={zoom:{inKeyframes:y6,outKeyframes:b6},"zoom-big":{inKeyframes:$1,outKeyframes:q1},"zoom-big-fast":{inKeyframes:$1,outKeyframes:q1},"zoom-left":{inKeyframes:S6,outKeyframes:C6},"zoom-right":{inKeyframes:k6,outKeyframes:P6},"zoom-up":{inKeyframes:x6,outKeyframes:w6},"zoom-down":{inKeyframes:E6,outKeyframes:T6}},N6=(n,e)=>{const{antCls:t}=n,o=`${t}-${e}`,{inKeyframes:r,outKeyframes:s}=_6[e];return[J1(o,r,s,n.motionDurationMid),{[`
|
|
315
|
+
${o}-enter,
|
|
316
|
+
${o}-appear
|
|
317
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:n.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]};function A6(n,e,t){const{focusElCls:o,focus:r,borderElCls:s}=t,l=s?"> *":"",d=["hover",r?"focus":null,"active"].filter(Boolean).map(h=>`&:${h} ${l}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-n.lineWidth},"&-item":$($({[d]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function R6(n,e,t){const{borderElCls:o}=t,r=o?`> ${o}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${r}, &${n}-sm ${r}, &${n}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${r}, &${n}-sm ${r}, &${n}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function M6(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:t}=n,o=`${t}-compact`;return{[o]:$($({},A6(n,o,e)),R6(t,o,e))}}var Q6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function ex(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){I6(n,r,t[r])})}return n}function I6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var qp=function(e,t){var o=ex({},e,t.attrs);return u.createVNode(Rn,ex({},o,{icon:Q6}),null)};qp.displayName="CheckCircleOutlined",qp.inheritAttrs=!1;var D6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function tx(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){B6(n,r,t[r])})}return n}function B6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var em=function(e,t){var o=tx({},e,t.attrs);return u.createVNode(Rn,tx({},o,{icon:D6}),null)};em.displayName="ExclamationCircleOutlined",em.inheritAttrs=!1;var V6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function nx(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){L6(n,r,t[r])})}return n}function L6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var tm=function(e,t){var o=nx({},e,t.attrs);return u.createVNode(Rn,nx({},o,{icon:V6}),null)};tm.displayName="InfoCircleOutlined",tm.inheritAttrs=!1;var j6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function ox(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){F6(n,r,t[r])})}return n}function F6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var nm=function(e,t){var o=ox({},e,t.attrs);return u.createVNode(Rn,ox({},o,{icon:j6}),null)};nm.displayName="CloseCircleOutlined",nm.inheritAttrs=!1;var Z6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function ix(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){z6(n,r,t[r])})}return n}function z6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var es=function(e,t){var o=ix({},e,t.attrs);return u.createVNode(Rn,ix({},o,{icon:Z6}),null)};es.displayName="CheckCircleFilled",es.inheritAttrs=!1;var W6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function rx(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){U6(n,r,t[r])})}return n}function U6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ts=function(e,t){var o=rx({},e,t.attrs);return u.createVNode(Rn,rx({},o,{icon:W6}),null)};ts.displayName="ExclamationCircleFilled",ts.inheritAttrs=!1;var H6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function sx(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){X6(n,r,t[r])})}return n}function X6(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ns=function(e,t){var o=sx({},e,t.attrs);return u.createVNode(Rn,sx({},o,{icon:H6}),null)};ns.displayName="InfoCircleFilled",ns.inheritAttrs=!1;const Y6=n=>{const{componentCls:e,colorPrimary:t}=n;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${n.motionEaseOutCirc}`,`opacity 2s ${n.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},G6=Ur("Wave",n=>[Y6(n)]);function K6(n){const e=(n||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}function om(n){return n&&n!=="#fff"&&n!=="#ffffff"&&n!=="rgb(255, 255, 255)"&&n!=="rgba(255, 255, 255, 1)"&&K6(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&n!=="transparent"}function J6(n){const{borderTopColor:e,borderColor:t,backgroundColor:o}=getComputedStyle(n);return om(e)?e:om(t)?t:om(o)?o:null}function im(n){return Number.isNaN(n)?0:n}const $6=u.defineComponent({props:{target:Gt(),className:String},setup(n){const e=u.shallowRef(null),[t,o]=Jr(null),[r,s]=Jr([]),[l,d]=Jr(0),[h,m]=Jr(0),[g,v]=Jr(0),[b,x]=Jr(0),[C,k]=Jr(!1);function M(){const{target:L}=n,Z=getComputedStyle(L);o(J6(L));const I=Z.position==="static",{borderLeftWidth:G,borderTopWidth:ae}=Z;d(I?L.offsetLeft:im(-parseFloat(G))),m(I?L.offsetTop:im(-parseFloat(ae))),v(L.offsetWidth),x(L.offsetHeight);const{borderTopLeftRadius:Oe,borderTopRightRadius:Ue,borderBottomLeftRadius:ke,borderBottomRightRadius:re}=Z;s([Oe,Ue,re,ke].map(be=>im(parseFloat(be))))}let _,E,F;const D=()=>{clearTimeout(F),Sl.cancel(E),_?.disconnect()},Q=()=>{var L;const Z=(L=e.value)===null||L===void 0?void 0:L.parentElement;Z&&(u.render(null,Z),Z.parentElement&&Z.parentElement.removeChild(Z))};u.onMounted(()=>{D(),F=setTimeout(()=>{Q()},5e3);const{target:L}=n;L&&(E=Sl(()=>{M(),k(!0)}),typeof ResizeObserver<"u"&&(_=new ResizeObserver(M),_.observe(L)))}),u.onBeforeUnmount(()=>{D()});const Y=L=>{L.propertyName==="opacity"&&Q()};return()=>{if(!C.value)return null;const L={left:`${l.value}px`,top:`${h.value}px`,width:`${g.value}px`,height:`${b.value}px`,borderRadius:r.value.map(Z=>`${Z}px`).join(" ")};return t&&(L["--wave-color"]=t.value),u.createVNode(u.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[u.createVNode("div",{ref:e,class:n.className,style:L,onTransitionend:Y},null)]})}}});function q6(n,e){const t=document.createElement("div");return t.style.position="absolute",t.style.left="0px",t.style.top="0px",n?.insertBefore(t,n?.firstChild),u.render(u.createVNode($6,{target:n,className:e},null),t),()=>{u.render(null,t),t.parentElement&&t.parentElement.removeChild(t)}}function e8(n,e){const t=u.getCurrentInstance();let o;function r(){var s;const l=Pu(t);o?.(),!(!((s=e?.value)===null||s===void 0)&&s.disabled||!l)&&(o=q6(l,n.value))}return u.onBeforeUnmount(()=>{o?.()}),r}const t8=u.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(n,e){let{slots:t}=e;const o=u.getCurrentInstance(),{prefixCls:r,wave:s}=si("wave",n),[,l]=G6(r),d=e8(u.computed(()=>It(r.value,l.value)),s);let h;const m=()=>{Pu(o).removeEventListener("click",h,!0)};return u.onMounted(()=>{u.watch(()=>n.disabled,()=>{m(),u.nextTick(()=>{const g=Pu(o);g?.removeEventListener("click",h,!0),!(!g||g.nodeType!==1||n.disabled)&&(h=v=>{v.target.tagName==="INPUT"||!VQ(v.target)||!g.getAttribute||g.getAttribute("disabled")||g.disabled||g.className.includes("disabled")||g.className.includes("-leave")||d()},g.addEventListener("click",h,!0))})},{immediate:!0,flush:"post"})}),u.onBeforeUnmount(()=>{m()}),()=>{var g;return(g=t.default)===null||g===void 0?void 0:g.call(t)[0]}}});function ax(n){return n==="danger"?{danger:!0}:{type:n}}const n8=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Dt.any,href:String,target:String,title:String,onClick:Q0(),onMousedown:Q0()}),lx=n=>{n&&(n.style.width="0px",n.style.opacity="0",n.style.transform="scale(0)")},cx=n=>{u.nextTick(()=>{n&&(n.style.width=`${n.scrollWidth}px`,n.style.opacity="1",n.style.transform="scale(1)")})},ux=n=>{n&&n.style&&(n.style.width=null,n.style.opacity=null,n.style.transform=null)},o8=u.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(n){return()=>{const{existIcon:e,prefixCls:t,loading:o}=n;if(e)return u.createVNode("span",{class:`${t}-loading-icon`},[u.createVNode($r,null,null)]);const r=!!o;return u.createVNode(u.Transition,{name:`${t}-loading-icon-motion`,onBeforeEnter:lx,onEnter:cx,onAfterEnter:ux,onBeforeLeave:cx,onLeave:s=>{setTimeout(()=>{lx(s)})},onAfterLeave:ux},{default:()=>[r?u.createVNode("span",{class:`${t}-loading-icon`},[u.createVNode($r,null,null)]):null]})}}}),dx=(n,e)=>({[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),i8=n=>{const{componentCls:e,fontSize:t,lineWidth:o,colorPrimaryHover:r,colorErrorHover:s}=n;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:t}},dx(`${e}-primary`,r),dx(`${e}-danger`,s)]}};function r8(n,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-n.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function s8(n,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function a8(n){const e=`${n.componentCls}-compact-vertical`;return{[e]:$($({},r8(n,e)),s8(n.componentCls,e))}}const l8=n=>{const{componentCls:e,iconCls:t}=n;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${n.lineWidth}px ${n.lineType} transparent`,cursor:"pointer",transition:`all ${n.motionDurationMid} ${n.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:n.lineHeight,color:n.colorText,"> span":{display:"inline-block"},[`> ${t} + span, > span + ${t}`]:{marginInlineStart:n.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":$({},Ab(n)),[`&-icon-only${e}-compact-item`]:{flex:"none"},[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-n.lineWidth,insetInlineStart:-n.lineWidth,display:"inline-block",width:n.lineWidth,height:`calc(100% + ${n.lineWidth*2}px)`,backgroundColor:n.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-n.lineWidth,insetInlineStart:-n.lineWidth,display:"inline-block",width:`calc(100% + ${n.lineWidth*2}px)`,height:n.lineWidth,backgroundColor:n.colorPrimaryHover,content:'""'}}}}}}},Ni=(n,e)=>({"&:not(:disabled)":{"&:hover":n,"&:active":e}}),c8=n=>({minWidth:n.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),u8=n=>({borderRadius:n.controlHeight,paddingInlineStart:n.controlHeight/2,paddingInlineEnd:n.controlHeight/2}),rm=n=>({cursor:"not-allowed",borderColor:n.colorBorder,color:n.colorTextDisabled,backgroundColor:n.colorBgContainerDisabled,boxShadow:"none"}),ed=(n,e,t,o,r,s,l)=>({[`&${n}-background-ghost`]:$($({color:e||void 0,backgroundColor:"transparent",borderColor:t||void 0,boxShadow:"none"},Ni($({backgroundColor:"transparent"},s),$({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),sm=n=>({"&:disabled":$({},rm(n))}),fx=n=>$({},sm(n)),td=n=>({"&:disabled":{cursor:"not-allowed",color:n.colorTextDisabled}}),hx=n=>$($($($($({},fx(n)),{backgroundColor:n.colorBgContainer,borderColor:n.colorBorder,boxShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlTmpOutline}`}),Ni({color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive})),ed(n.componentCls,n.colorBgContainer,n.colorBgContainer,n.colorTextDisabled,n.colorBorder)),{[`&${n.componentCls}-dangerous`]:$($($({color:n.colorError,borderColor:n.colorError},Ni({color:n.colorErrorHover,borderColor:n.colorErrorBorderHover},{color:n.colorErrorActive,borderColor:n.colorErrorActive})),ed(n.componentCls,n.colorError,n.colorError,n.colorTextDisabled,n.colorBorder)),sm(n))}),d8=n=>$($($($($({},fx(n)),{color:n.colorTextLightSolid,backgroundColor:n.colorPrimary,boxShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlOutline}`}),Ni({color:n.colorTextLightSolid,backgroundColor:n.colorPrimaryHover},{color:n.colorTextLightSolid,backgroundColor:n.colorPrimaryActive})),ed(n.componentCls,n.colorPrimary,n.colorPrimary,n.colorTextDisabled,n.colorBorder,{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive})),{[`&${n.componentCls}-dangerous`]:$($($({backgroundColor:n.colorError,boxShadow:`0 ${n.controlOutlineWidth}px 0 ${n.colorErrorOutline}`},Ni({backgroundColor:n.colorErrorHover},{backgroundColor:n.colorErrorActive})),ed(n.componentCls,n.colorError,n.colorError,n.colorTextDisabled,n.colorBorder,{color:n.colorErrorHover,borderColor:n.colorErrorHover},{color:n.colorErrorActive,borderColor:n.colorErrorActive})),sm(n))}),f8=n=>$($({},hx(n)),{borderStyle:"dashed"}),h8=n=>$($($({color:n.colorLink},Ni({color:n.colorLinkHover},{color:n.colorLinkActive})),td(n)),{[`&${n.componentCls}-dangerous`]:$($({color:n.colorError},Ni({color:n.colorErrorHover},{color:n.colorErrorActive})),td(n))}),p8=n=>$($($({},Ni({color:n.colorText,backgroundColor:n.colorBgTextHover},{color:n.colorText,backgroundColor:n.colorBgTextActive})),td(n)),{[`&${n.componentCls}-dangerous`]:$($({color:n.colorError},td(n)),Ni({color:n.colorErrorHover,backgroundColor:n.colorErrorBg},{color:n.colorErrorHover,backgroundColor:n.colorErrorBg}))}),m8=n=>$($({},rm(n)),{[`&${n.componentCls}:hover`]:$({},rm(n))}),g8=n=>{const{componentCls:e}=n;return{[`${e}-default`]:hx(n),[`${e}-primary`]:d8(n),[`${e}-dashed`]:f8(n),[`${e}-link`]:h8(n),[`${e}-text`]:p8(n),[`${e}-disabled`]:m8(n)}},am=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:t,iconCls:o,controlHeight:r,fontSize:s,lineHeight:l,lineWidth:d,borderRadius:h,buttonPaddingHorizontal:m}=n,g=Math.max(0,(r-s*l)/2-d),v=m-d,b=`${t}-icon-only`;return[{[`${t}${e}`]:{fontSize:s,height:r,padding:`${g}px ${v}px`,borderRadius:h,[`&${b}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${t}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${t}-loading`]:{opacity:n.opacityLoading,cursor:"default"},[`${t}-loading-icon`]:{transition:`width ${n.motionDurationSlow} ${n.motionEaseInOut}, opacity ${n.motionDurationSlow} ${n.motionEaseInOut}`},[`&:not(${b}) ${t}-loading-icon > ${o}`]:{marginInlineEnd:n.marginXS}}},{[`${t}${t}-circle${e}`]:c8(n)},{[`${t}${t}-round${e}`]:u8(n)}]},O8=n=>am(n),v8=n=>{const e=Ji(n,{controlHeight:n.controlHeightSM,padding:n.paddingXS,buttonPaddingHorizontal:8,borderRadius:n.borderRadiusSM});return am(e,`${n.componentCls}-sm`)},y8=n=>{const e=Ji(n,{controlHeight:n.controlHeightLG,fontSize:n.fontSizeLG,borderRadius:n.borderRadiusLG});return am(e,`${n.componentCls}-lg`)},b8=n=>{const{componentCls:e}=n;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},x8=Ur("Button",n=>{const{controlTmpOutline:e,paddingContentHorizontal:t}=n,o=Ji(n,{colorOutlineDefault:e,buttonPaddingHorizontal:t});return[l8(o),v8(o),O8(o),y8(o),b8(o),g8(o),i8(o),M6(n,{focus:!1}),a8(n)]}),w8=()=>({prefixCls:String,size:{type:String}}),px=G1(),lm=u.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:w8(),setup(n,e){let{slots:t}=e;const{prefixCls:o,direction:r}=si("btn-group",n),[,,s]=Nl();px.useProvide(u.reactive({size:u.computed(()=>n.size)}));const l=u.computed(()=>{const{size:d}=n;let h="";switch(d){case"large":h="lg";break;case"small":h="sm";break;case"middle":case void 0:break;default:t1(!d,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${h}`]:h,[`${o.value}-rtl`]:r.value==="rtl",[s.value]:!0}});return()=>{var d;return u.createVNode("div",{class:l.value},[wl((d=t.default)===null||d===void 0?void 0:d.call(t))])}}}),mx=/^[\u4e00-\u9fa5]{2}$/,gx=mx.test.bind(mx);function nd(n){return n==="text"||n==="link"}const os=u.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:xl(n8(),{type:"default"}),slots:Object,setup(n,e){let{slots:t,attrs:o,emit:r,expose:s}=e;const{prefixCls:l,autoInsertSpaceInButton:d,direction:h,size:m}=si("btn",n),[g,v]=x8(l),b=px.useInject(),x=cp(),C=u.computed(()=>{var re;return(re=n.disabled)!==null&&re!==void 0?re:x.value}),k=u.shallowRef(null),M=u.shallowRef(void 0);let _=!1;const E=u.shallowRef(!1),F=u.shallowRef(!1),D=u.computed(()=>d.value!==!1),{compactSize:Q,compactItemClassnames:Y}=d6(l,h),L=u.computed(()=>typeof n.loading=="object"&&n.loading.delay?n.loading.delay||!0:!!n.loading);u.watch(L,re=>{clearTimeout(M.value),typeof L.value=="number"?M.value=setTimeout(()=>{E.value=re},L.value):E.value=re},{immediate:!0});const Z=u.computed(()=>{const{type:re,shape:be="default",ghost:Ve,block:ve,danger:$e}=n,Ae=l.value,Se={large:"lg",small:"sm",middle:void 0},ht=Q.value||b?.size||m.value,Pe=ht&&Se[ht]||"";return[Y.value,{[v.value]:!0,[`${Ae}`]:!0,[`${Ae}-${be}`]:be!=="default"&&be,[`${Ae}-${re}`]:re,[`${Ae}-${Pe}`]:Pe,[`${Ae}-loading`]:E.value,[`${Ae}-background-ghost`]:Ve&&!nd(re),[`${Ae}-two-chinese-chars`]:F.value&&D.value,[`${Ae}-block`]:ve,[`${Ae}-dangerous`]:!!$e,[`${Ae}-rtl`]:h.value==="rtl"}]}),I=()=>{const re=k.value;if(!re||d.value===!1)return;const be=re.textContent;_&&gx(be)?F.value||(F.value=!0):F.value&&(F.value=!1)},G=re=>{if(E.value||C.value){re.preventDefault();return}r("click",re)},ae=re=>{r("mousedown",re)},Oe=(re,be)=>{const Ve=be?" ":"";if(re.type===u.Text){let ve=re.children.trim();return gx(ve)&&(ve=ve.split("").join(Ve)),u.createVNode("span",null,[ve])}return re};return u.watchEffect(()=>{t1(!(n.ghost&&nd(n.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),u.onMounted(I),u.onUpdated(I),u.onBeforeUnmount(()=>{M.value&&clearTimeout(M.value)}),s({focus:()=>{var re;(re=k.value)===null||re===void 0||re.focus()},blur:()=>{var re;(re=k.value)===null||re===void 0||re.blur()}}),()=>{var re,be;const{icon:Ve=(re=t.icon)===null||re===void 0?void 0:re.call(t)}=n,ve=wl((be=t.default)===null||be===void 0?void 0:be.call(t));_=ve.length===1&&!Ve&&!nd(n.type);const{type:$e,htmlType:Ae,href:Se,title:ht,target:Pe}=n,Ze=E.value?"loading":Ve,bt=$($({},o),{title:ht,disabled:C.value,class:[Z.value,o.class,{[`${l.value}-icon-only`]:ve.length===0&&!!Ze}],onClick:G,onMousedown:ae});C.value||delete bt.disabled;const vo=Ve&&!E.value?Ve:u.createVNode(o8,{existIcon:!!Ve,prefixCls:l.value,loading:!!E.value},null),Re=ve.map(ft=>Oe(ft,_&&D.value));if(Se!==void 0)return g(u.createVNode("a",Ge(Ge({},bt),{},{href:Se,target:Pe,ref:k}),[vo,Re]));let hn=u.createVNode("button",Ge(Ge({},bt),{},{ref:k,type:Ae}),[vo,Re]);if(!nd($e)){const ft=function(){return hn}();hn=u.createVNode(t8,{ref:"wave",disabled:!!E.value},{default:()=>[ft]})}return g(hn)}}});os.Group=lm,os.install=function(n){return n.component(os.name,os),n.component(lm.name,lm),n};const S8=()=>jo()&&window.document.documentElement;let od=$({},Lr.Modal);function C8(n){n?od=$($({},od),n):od=$({},Lr.Modal)}function k8(){return od}const cm="internalMark",id=u.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(n,e){let{slots:t}=e;ia(n.ANT_MARK__===cm,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const o=u.reactive({antLocale:$($({},n.locale),{exist:!0}),ANT_MARK__:cm});return u.provide("localeData",o),u.watch(()=>n.locale,r=>{C8(r&&r.Modal),o.antLocale=$($({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}});id.install=function(n){return n.component(id.name,id),n};const P8=rp(id),rd=u.defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(n,e){let{attrs:t,slots:o}=e,r,s=!1;const l=u.computed(()=>n.duration===void 0?4.5:n.duration),d=()=>{l.value&&!s&&(r=setTimeout(()=>{m()},l.value*1e3))},h=()=>{r&&(clearTimeout(r),r=null)},m=v=>{v&&v.stopPropagation(),h();const{onClose:b,noticeKey:x}=n;b&&b(x)},g=()=>{h(),d()};return u.onMounted(()=>{d()}),u.onUnmounted(()=>{s=!0,h()}),u.watch([l,()=>n.updateMark,()=>n.visible],(v,b)=>{let[x,C,k]=v,[M,_,E]=b;(x!==M||C!==_||k!==E&&E)&&g()},{flush:"post"}),()=>{var v,b;const{prefixCls:x,closable:C,closeIcon:k=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClick:M,holder:_}=n,{class:E,style:F}=t,D=`${x}-notice`,Q=Object.keys(t).reduce((L,Z)=>((Z.startsWith("data-")||Z.startsWith("aria-")||Z==="role")&&(L[Z]=t[Z]),L),{}),Y=u.createVNode("div",Ge({class:It(D,E,{[`${D}-closable`]:C}),style:F,onMouseenter:h,onMouseleave:d,onClick:M},Q),[u.createVNode("div",{class:`${D}-content`},[(b=o.default)===null||b===void 0?void 0:b.call(o)]),C?u.createVNode("a",{tabindex:0,onClick:m,class:`${D}-close`},[k||u.createVNode("span",{class:`${D}-close-x`},null)]):null]);return _?u.createVNode(u.Teleport,{to:_},{default:()=>Y}):Y}}});var E8=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};let Ox=0;const T8=Date.now();function vx(){const n=Ox;return Ox+=1,`rcNotification_${T8}_${n}`}const sd=u.defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(n,e){let{attrs:t,expose:o,slots:r}=e;const s=new Map,l=u.ref([]),d=u.computed(()=>{const{prefixCls:g,animation:v="fade"}=n;let b=n.transitionName;return!b&&v&&(b=`${g}-${v}`),C1(b)}),h=(g,v)=>{const b=g.key||vx(),x=$($({},g),{key:b}),{maxCount:C}=n,k=l.value.map(_=>_.notice.key).indexOf(b),M=l.value.concat();k!==-1?M.splice(k,1,{notice:x,holderCallback:v}):(C&&l.value.length>=C&&(x.key=M[0].notice.key,x.updateMark=vx(),x.userPassKey=b,M.shift()),M.push({notice:x,holderCallback:v})),l.value=M},m=g=>{l.value=u.toRaw(l.value).filter(v=>{let{notice:{key:b,userPassKey:x}}=v;return(x||b)!==g})};return o({add:h,remove:m,notices:l}),()=>{var g;const{prefixCls:v,closeIcon:b=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r,{prefixCls:v})}=n,x=l.value.map((k,M)=>{let{notice:_,holderCallback:E}=k;const F=M===l.value.length-1?_.updateMark:void 0,{key:D,userPassKey:Q}=_,{content:Y}=_,L=$($($({prefixCls:v,closeIcon:typeof b=="function"?b({prefixCls:v}):b},_),_.props),{key:D,noticeKey:Q||D,updateMark:F,onClose:Z=>{var I;m(Z),(I=_.onClose)===null||I===void 0||I.call(_)},onClick:_.onClick});return E?u.createVNode("div",{key:D,class:`${v}-hook-holder`,ref:Z=>{typeof D>"u"||(Z?(s.set(D,Z),E(Z,L)):s.delete(D))}},null):u.createVNode(rd,Ge(Ge({},L),{},{class:It(L.class,n.hashId)}),{default:()=>[typeof Y=="function"?Y({prefixCls:v}):Y]})}),C={[v]:1,[t.class]:!!t.class,[n.hashId]:!0};return u.createVNode("div",{class:C,style:t.style||{top:"65px",left:"50%"}},[u.createVNode(u.TransitionGroup,Ge({tag:"div"},d.value),{default:()=>[x]})])}}});sd.newInstance=function(e,t){const o=e||{},{name:r="notification",getContainer:s,appContext:l,prefixCls:d,rootPrefixCls:h,transitionName:m,hasTransitionName:g,useStyle:v}=o,b=E8(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),x=document.createElement("div");s?s().appendChild(x):document.body.appendChild(x);const C=u.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(M,_){let{attrs:E}=_;const F=u.shallowRef(),D=u.computed(()=>bn.getPrefixCls(r,d)),[,Q]=v(D);return u.onMounted(()=>{t({notice(Y){var L;(L=F.value)===null||L===void 0||L.add(Y)},removeNotice(Y){var L;(L=F.value)===null||L===void 0||L.remove(Y)},destroy(){u.render(null,x),x.parentNode&&x.parentNode.removeChild(x)},component:F})}),()=>{const Y=bn,L=Y.getRootPrefixCls(h,D.value),Z=g?m:`${D.value}-${m}`;return u.createVNode(Hx,Ge(Ge({},Y),{},{prefixCls:L}),{default:()=>[u.createVNode(sd,Ge(Ge({ref:F},E),{},{prefixCls:D.value,transitionName:Z,hashId:Q.value}),null)]})}}}),k=u.createVNode(C,b);k.appContext=l||k.appContext,u.render(k,x)};let yx=0;const _8=Date.now();function bx(){const n=yx;return yx+=1,`rcNotification_${_8}_${n}`}const N8=u.defineComponent({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(n,e){let{attrs:t,slots:o}=e;const r=new Map,s=u.computed(()=>n.notices),l=u.computed(()=>{let g=n.transitionName;if(!g&&n.animation)switch(typeof n.animation){case"string":g=n.animation;break;case"function":g=n.animation().name;break;case"object":g=n.animation.name;break;default:g=`${n.prefixCls}-fade`;break}return C1(g)}),d=g=>n.remove(g),h=u.ref({});u.watch(s,()=>{const g={};Object.keys(h.value).forEach(v=>{g[v]=[]}),n.notices.forEach(v=>{const{placement:b="topRight"}=v.notice;b&&(g[b]=g[b]||[],g[b].push(v))}),h.value=g});const m=u.computed(()=>Object.keys(h.value));return()=>{var g;const{prefixCls:v,closeIcon:b=(g=o.closeIcon)===null||g===void 0?void 0:g.call(o,{prefixCls:v})}=n,x=m.value.map(C=>{var k,M;const _=h.value[C],E=(k=n.getClassName)===null||k===void 0?void 0:k.call(n,C),F=(M=n.getStyles)===null||M===void 0?void 0:M.call(n,C),D=_.map((L,Z)=>{let{notice:I,holderCallback:G}=L;const ae=Z===s.value.length-1?I.updateMark:void 0,{key:Oe,userPassKey:Ue}=I,{content:ke}=I,re=$($($({prefixCls:v,closeIcon:typeof b=="function"?b({prefixCls:v}):b},I),I.props),{key:Oe,noticeKey:Ue||Oe,updateMark:ae,onClose:be=>{var Ve;d(be),(Ve=I.onClose)===null||Ve===void 0||Ve.call(I)},onClick:I.onClick});return G?u.createVNode("div",{key:Oe,class:`${v}-hook-holder`,ref:be=>{typeof Oe>"u"||(be?(r.set(Oe,be),G(be,re)):r.delete(Oe))}},null):u.createVNode(rd,Ge(Ge({},re),{},{class:It(re.class,n.hashId)}),{default:()=>[typeof ke=="function"?ke({prefixCls:v}):ke]})}),Q={[v]:1,[`${v}-${C}`]:1,[t.class]:!!t.class,[n.hashId]:!0,[E]:!!E};function Y(){var L;_.length>0||(Reflect.deleteProperty(h.value,C),(L=n.onAllRemoved)===null||L===void 0||L.call(n))}return u.createVNode("div",{key:C,class:Q,style:t.style||F||{top:"65px",left:"50%"}},[u.createVNode(u.TransitionGroup,Ge(Ge({tag:"div"},l.value),{},{onAfterLeave:Y}),{default:()=>[D]})])});return u.createVNode(E1,{getContainer:n.getContainer},{default:()=>[x]})}}});var A8=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};const R8=()=>document.body;let xx=0;function M8(){const n={};for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.forEach(r=>{r&&Object.keys(r).forEach(s=>{const l=r[s];l!==void 0&&(n[s]=l)})}),n}function wx(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:e=R8,motion:t,prefixCls:o,maxCount:r,getClassName:s,getStyles:l,onAllRemoved:d}=n,h=A8(n,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),m=u.shallowRef([]),g=u.shallowRef(),v=(_,E)=>{const F=_.key||bx(),D=$($({},_),{key:F}),Q=m.value.map(L=>L.notice.key).indexOf(F),Y=m.value.concat();Q!==-1?Y.splice(Q,1,{notice:D,holderCallback:E}):(r&&m.value.length>=r&&(D.key=Y[0].notice.key,D.updateMark=bx(),D.userPassKey=F,Y.shift()),Y.push({notice:D,holderCallback:E})),m.value=Y},b=_=>{m.value=m.value.filter(E=>{let{notice:{key:F,userPassKey:D}}=E;return(D||F)!==_})},x=()=>{m.value=[]},C=()=>u.createVNode(N8,{ref:g,prefixCls:o,maxCount:r,notices:m.value,remove:b,getClassName:s,getStyles:l,animation:t,hashId:n.hashId,onAllRemoved:d,getContainer:e},null),k=u.shallowRef([]),M={open:_=>{const E=M8(h,_);(E.key===null||E.key===void 0)&&(E.key=`vc-notification-${xx}`,xx+=1),k.value=[...k.value,{type:"open",config:E}]},close:_=>{k.value=[...k.value,{type:"close",key:_}]},destroy:()=>{k.value=[...k.value,{type:"destroy"}]}};return u.watch(k,()=>{k.value.length&&(k.value.forEach(_=>{switch(_.type){case"open":v(_.config);break;case"close":b(_.key);break;case"destroy":x();break}}),k.value=[])}),[M,C]}const Q8=n=>{const{componentCls:e,iconCls:t,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:s,colorError:l,colorWarning:d,colorInfo:h,fontSizeLG:m,motionEaseInOutCirc:g,motionDurationSlow:v,marginXS:b,paddingXS:x,borderRadiusLG:C,zIndexPopup:k,messageNoticeContentPadding:M}=n,_=new Zt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:x,transform:"translateY(0)",opacity:1}}),E=new Zt("MessageMoveOut",{"0%":{maxHeight:n.height,padding:x,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:$($({},Ip(n)),{position:"fixed",top:b,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:k,[`${e}-move-up`]:{animationFillMode:"forwards"},[`
|
|
318
|
+
${e}-move-up-appear,
|
|
319
|
+
${e}-move-up-enter
|
|
320
|
+
`]:{animationName:_,animationDuration:v,animationPlayState:"paused",animationTimingFunction:g},[`
|
|
321
|
+
${e}-move-up-appear${e}-move-up-appear-active,
|
|
322
|
+
${e}-move-up-enter${e}-move-up-enter-active
|
|
323
|
+
`]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:E,animationDuration:v,animationPlayState:"paused",animationTimingFunction:g},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${e}-notice`]:{padding:x,textAlign:"center",[t]:{verticalAlign:"text-bottom",marginInlineEnd:b,fontSize:m},[`${e}-notice-content`]:{display:"inline-block",padding:M,background:r,borderRadius:C,boxShadow:o,pointerEvents:"all"},[`${e}-success ${t}`]:{color:s},[`${e}-error ${t}`]:{color:l},[`${e}-warning ${t}`]:{color:d},[`
|
|
324
|
+
${e}-info ${t},
|
|
325
|
+
${e}-loading ${t}`]:{color:h}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},um=Ur("Message",n=>{const e=Ji(n,{messageNoticeContentPadding:`${(n.controlHeightLG-n.fontSize*n.lineHeight)/2}px ${n.paddingSM}px`});return[Q8(e)]},n=>({height:150,zIndexPopup:n.zIndexPopupBase+10})),I8={info:u.createVNode(ns,null,null),success:u.createVNode(es,null,null),error:u.createVNode(qr,null,null),warning:u.createVNode(ts,null,null),loading:u.createVNode($r,null,null)},Sx=u.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(n,e){let{slots:t}=e;return()=>{var o;return u.createVNode("div",{class:It(`${n.prefixCls}-custom-content`,`${n.prefixCls}-${n.type}`)},[n.icon||I8[n.type],u.createVNode("span",null,[(o=t.default)===null||o===void 0?void 0:o.call(t)])])}}});u.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(n,e){let{slots:t,attrs:o}=e;var r;const{getPrefixCls:s}=Tu(),l=u.computed(()=>n.prefixCls||s("message")),[,d]=um(l);return u.createVNode(rd,Ge(Ge({},o),{},{prefixCls:l.value,class:It(d.value,`${l.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[u.createVNode(Sx,{prefixCls:l.value,type:n.type,icon:n.icon},{default:()=>[(r=t.default)===null||r===void 0?void 0:r.call(t)]})]})}});var D8=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};const B8=8,V8=3,L8=u.defineComponent({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(n,e){let{expose:t}=e;var o,r;const{getPrefixCls:s,getPopupContainer:l}=si("message",n),d=u.computed(()=>s("message",n.prefixCls)),[,h]=um(d),m=()=>{var k;const M=(k=n.top)!==null&&k!==void 0?k:B8;return{left:"50%",transform:"translateX(-50%)",top:typeof M=="number"?`${M}px`:M}},g=()=>It(h.value,n.rtl?`${d.value}-rtl`:""),v=()=>{var k;return DQ({prefixCls:d.value,animation:(k=n.animation)!==null&&k!==void 0?k:"move-up",transitionName:n.transitionName})},b=u.createVNode("span",{class:`${d.value}-close-x`},[u.createVNode(da,{class:`${d.value}-close-icon`},null)]),[x,C]=wx({getStyles:m,prefixCls:d.value,getClassName:g,motion:v,closable:!1,closeIcon:b,duration:(o=n.duration)!==null&&o!==void 0?o:V8,getContainer:(r=n.staticGetContainer)!==null&&r!==void 0?r:l.value,maxCount:n.maxCount,onAllRemoved:n.onAllRemoved});return t($($({},x),{prefixCls:d,hashId:h})),C}});let Cx=0;function j8(n){const e=u.shallowRef(null),t=Symbol("messageHolderKey"),o=h=>{var m;(m=e.value)===null||m===void 0||m.close(h)},r=h=>{if(!e.value){const Q=()=>{};return Q.then=()=>{},Q}const{open:m,prefixCls:g,hashId:v}=e.value,b=`${g}-notice`,{content:x,icon:C,type:k,key:M,class:_,onClose:E}=h,F=D8(h,["content","icon","type","key","class","onClose"]);let D=M;return D==null&&(Cx+=1,D=`antd-message-${Cx}`),fM(Q=>(m($($({},F),{key:D,content:()=>u.createVNode(Sx,{prefixCls:g,type:k,icon:typeof C=="function"?C():C},{default:()=>[typeof x=="function"?x():x]}),placement:"top",class:It(k&&`${b}-${k}`,v,_),onClose:()=>{E?.(),Q()}})),()=>{o(D)}))},l={open:r,destroy:h=>{var m;h!==void 0?o(h):(m=e.value)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(h=>{const m=(g,v,b)=>{let x;g&&typeof g=="object"&&"content"in g?x=g:x={content:g};let C,k;typeof v=="function"?k=v:(C=v,k=b);const M=$($({onClose:k,duration:C},x),{type:h});return r(M)};l[h]=m}),[l,()=>u.createVNode(L8,Ge(Ge({key:t},n),{},{ref:e}),null)]}function F8(n){return j8(n)}let kx=3,Px,Vn,Z8=1,Ex="",Tx="move-up",_x=!1,Nx=()=>document.body,Ax,Rx=!1;function z8(){return Z8++}function W8(n){n.top!==void 0&&(Px=n.top,Vn=null),n.duration!==void 0&&(kx=n.duration),n.prefixCls!==void 0&&(Ex=n.prefixCls),n.getContainer!==void 0&&(Nx=n.getContainer,Vn=null),n.transitionName!==void 0&&(Tx=n.transitionName,Vn=null,_x=!0),n.maxCount!==void 0&&(Ax=n.maxCount,Vn=null),n.rtl!==void 0&&(Rx=n.rtl)}function U8(n,e){if(Vn){e(Vn);return}sd.newInstance({appContext:n.appContext,prefixCls:n.prefixCls||Ex,rootPrefixCls:n.rootPrefixCls,transitionName:Tx,hasTransitionName:_x,style:{top:Px},getContainer:Nx||n.getPopupContainer,maxCount:Ax,name:"message",useStyle:um},t=>{if(Vn){e(Vn);return}Vn=t,e(t)})}const Mx={info:ns,success:es,error:qr,warning:ts,loading:$r},H8=Object.keys(Mx);function X8(n){const e=n.duration!==void 0?n.duration:kx,t=n.key||z8(),o=new Promise(s=>{const l=()=>(typeof n.onClose=="function"&&n.onClose(),s(!0));U8(n,d=>{d.notice({key:t,duration:e,style:n.style||{},class:n.class,content:h=>{let{prefixCls:m}=h;const g=Mx[n.type],v=g?u.createVNode(g,null,null):"",b=It(`${m}-custom-content`,{[`${m}-${n.type}`]:n.type,[`${m}-rtl`]:Rx===!0});return u.createVNode("div",{class:b},[typeof n.icon=="function"?n.icon():n.icon||v,u.createVNode("span",null,[typeof n.content=="function"?n.content():n.content])])},onClose:l,onClick:n.onClick})})}),r=()=>{Vn&&Vn.removeNotice(t)};return r.then=(s,l)=>o.then(s,l),r.promise=o,r}function Y8(n){return Object.prototype.toString.call(n)==="[object Object]"&&!!n.content}const fa={open:X8,config:W8,destroy(n){if(Vn)if(n){const{removeNotice:e}=Vn;e(n)}else{const{destroy:e}=Vn;e(),Vn=null}}};function G8(n,e){n[e]=(t,o,r)=>Y8(t)?n.open($($({},t),{type:e})):(typeof o=="function"&&(r=o,o=void 0),n.open({content:t,duration:o,type:e,onClose:r}))}H8.forEach(n=>G8(fa,n)),fa.warn=fa.warning,fa.useMessage=F8;const K8=n=>{const{componentCls:e,width:t,notificationMarginEdge:o}=n,r=new Zt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),s=new Zt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),l=new Zt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:t},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${e}-top, &${e}-bottom`]:{marginInline:0},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:r}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:s}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:l}}}},J8=n=>{const{iconCls:e,componentCls:t,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:s,borderRadiusLG:l,colorSuccess:d,colorInfo:h,colorWarning:m,colorError:g,colorTextHeading:v,notificationBg:b,notificationPadding:x,notificationMarginEdge:C,motionDurationMid:k,motionEaseInOut:M,fontSize:_,lineHeight:E,width:F,notificationIconSize:D}=n,Q=`${t}-notice`,Y=new Zt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:F},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),L=new Zt("antNotificationFadeOut",{"0%":{maxHeight:n.animationMaxHeight,marginBottom:s,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:$($($($({},Ip(n)),{position:"fixed",zIndex:n.zIndexPopup,marginInlineEnd:C,[`${t}-hook-holder`]:{position:"relative"},[`&${t}-top, &${t}-bottom`]:{[`${t}-notice`]:{marginInline:"auto auto"}},[`&${t}-topLeft, &${t}-bottomLeft`]:{[`${t}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:n.motionDurationMid,animationTimingFunction:M,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:M,animationFillMode:"both",animationDuration:k,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:Y,animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:L,animationPlayState:"running"}}),K8(n)),{"&-rtl":{direction:"rtl",[`${t}-notice-btn`]:{float:"left"}}})},{[Q]:{position:"relative",width:F,maxWidth:`calc(100vw - ${C*2}px)`,marginBottom:s,marginInlineStart:"auto",padding:x,overflow:"hidden",lineHeight:E,wordWrap:"break-word",background:b,borderRadius:l,boxShadow:o,[`${t}-close-icon`]:{fontSize:_,cursor:"pointer"},[`${Q}-message`]:{marginBottom:n.marginXS,color:v,fontSize:r,lineHeight:n.lineHeightLG},[`${Q}-description`]:{fontSize:_},[`&${Q}-closable ${Q}-message`]:{paddingInlineEnd:n.paddingLG},[`${Q}-with-icon ${Q}-message`]:{marginBottom:n.marginXS,marginInlineStart:n.marginSM+D,fontSize:r},[`${Q}-with-icon ${Q}-description`]:{marginInlineStart:n.marginSM+D,fontSize:_},[`${Q}-icon`]:{position:"absolute",fontSize:D,lineHeight:0,[`&-success${e}`]:{color:d},[`&-info${e}`]:{color:h},[`&-warning${e}`]:{color:m},[`&-error${e}`]:{color:g}},[`${Q}-close`]:{position:"absolute",top:n.notificationPaddingVertical,insetInlineEnd:n.notificationPaddingHorizontal,color:n.colorIcon,outline:"none",width:n.notificationCloseButtonSize,height:n.notificationCloseButtonSize,borderRadius:n.borderRadiusSM,transition:`background-color ${n.motionDurationMid}, color ${n.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:n.colorIconHover,backgroundColor:n.wireframe?"transparent":n.colorFillContent}},[`${Q}-btn`]:{float:"right",marginTop:n.marginSM}}},{[`${Q}-pure-panel`]:{margin:0}}]},dm=Ur("Notification",n=>{const e=n.paddingMD,t=n.paddingLG,o=Ji(n,{notificationBg:n.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:t,notificationPadding:`${n.paddingMD}px ${n.paddingContentHorizontalLG}px`,notificationMarginBottom:n.margin,notificationMarginEdge:n.marginLG,animationMaxHeight:150,notificationIconSize:n.fontSizeLG*n.lineHeightLG,notificationCloseButtonSize:n.controlHeightLG*.55});return[J8(o)]},n=>({zIndexPopup:n.zIndexPopupBase+50,width:384}));function Qx(n,e){return e||u.createVNode("span",{class:`${n}-close-x`},[u.createVNode(da,{class:`${n}-close-icon`},null)])}u.createVNode(ns,null,null),u.createVNode(es,null,null),u.createVNode(qr,null,null),u.createVNode(ts,null,null),u.createVNode($r,null,null);const $8={success:es,info:ns,error:qr,warning:ts};function Ix(n){let{prefixCls:e,icon:t,type:o,message:r,description:s,btn:l}=n,d=null;if(t)d=u.createVNode("span",{class:`${e}-icon`},[ea(t)]);else if(o){const h=$8[o];d=u.createVNode(h,{class:`${e}-icon ${e}-icon-${o}`},null)}return u.createVNode("div",{class:It({[`${e}-with-icon`]:d}),role:"alert"},[d,u.createVNode("div",{class:`${e}-message`},[r]),u.createVNode("div",{class:`${e}-description`},[s]),l&&u.createVNode("div",{class:`${e}-btn`},[l])])}u.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(n){const{getPrefixCls:e}=si("notification",n),t=u.computed(()=>n.prefixCls||e("notification")),o=u.computed(()=>`${t.value}-notice`),[,r]=dm(t);return()=>u.createVNode(rd,Ge(Ge({},n),{},{prefixCls:t.value,class:It(r.value,`${o.value}-pure-panel`),noticeKey:"pure",duration:null,closable:n.closable,closeIcon:Qx(t.value,n.closeIcon)}),{default:()=>[u.createVNode(Ix,{prefixCls:o.value,icon:n.icon,type:n.type,message:n.message,description:n.description,btn:n.btn},null)]})}});function Dx(n,e,t){let o;switch(e=typeof e=="number"?`${e}px`:e,t=typeof t=="number"?`${t}px`:t,n){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":o={left:0,top:e,bottom:"auto"};break;case"topRight":o={right:0,top:e,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case"bottomLeft":o={left:0,top:"auto",bottom:t};break;default:o={right:0,top:"auto",bottom:t};break}return o}function q8(n){return{name:`${n}-fade`}}var eD=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};const Bx=24,tD=4.5,nD=u.defineComponent({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(n,e){let{expose:t}=e;const{getPrefixCls:o,getPopupContainer:r}=si("notification",n),s=u.computed(()=>n.prefixCls||o("notification")),l=b=>{var x,C;return Dx(b,(x=n.top)!==null&&x!==void 0?x:Bx,(C=n.bottom)!==null&&C!==void 0?C:Bx)},[,d]=dm(s),h=()=>It(d.value,{[`${s.value}-rtl`]:n.rtl}),m=()=>q8(s.value),[g,v]=wx({prefixCls:s.value,getStyles:l,getClassName:h,motion:m,closable:!0,closeIcon:Qx(s.value),duration:tD,getContainer:()=>{var b,x;return((b=n.getPopupContainer)===null||b===void 0?void 0:b.call(n))||((x=r.value)===null||x===void 0?void 0:x.call(r))||document.body},maxCount:n.maxCount,hashId:d.value,onAllRemoved:n.onAllRemoved});return t($($({},g),{prefixCls:s.value,hashId:d})),v}});function oD(n){const e=u.shallowRef(null),t=Symbol("notificationHolderKey"),o=d=>{if(!e.value)return;const{open:h,prefixCls:m,hashId:g}=e.value,v=`${m}-notice`,{message:b,description:x,icon:C,type:k,btn:M,class:_}=d,E=eD(d,["message","description","icon","type","btn","class"]);return h($($({placement:"topRight"},E),{content:()=>u.createVNode(Ix,{prefixCls:v,icon:typeof C=="function"?C():C,type:k,message:typeof b=="function"?b():b,description:typeof x=="function"?x():x,btn:typeof M=="function"?M():M},null),class:It(k&&`${v}-${k}`,g,_)}))},s={open:o,destroy:d=>{var h,m;d!==void 0?(h=e.value)===null||h===void 0||h.close(d):(m=e.value)===null||m===void 0||m.destroy()}};return["success","info","warning","error"].forEach(d=>{s[d]=h=>o($($({},h),{type:d}))}),[s,()=>u.createVNode(nD,Ge(Ge({key:t},n),{},{ref:e}),null)]}function iD(n){return oD(n)}const is={};let Vx=4.5,Lx="24px",jx="24px",fm="",Fx="topRight",Zx=()=>document.body,zx=null,hm=!1,Wx;function rD(n){const{duration:e,placement:t,bottom:o,top:r,getContainer:s,closeIcon:l,prefixCls:d}=n;d!==void 0&&(fm=d),e!==void 0&&(Vx=e),t!==void 0&&(Fx=t),o!==void 0&&(jx=typeof o=="number"?`${o}px`:o),r!==void 0&&(Lx=typeof r=="number"?`${r}px`:r),s!==void 0&&(Zx=s),l!==void 0&&(zx=l),n.rtl!==void 0&&(hm=n.rtl),n.maxCount!==void 0&&(Wx=n.maxCount)}function sD(n,e){let{prefixCls:t,placement:o=Fx,getContainer:r=Zx,top:s,bottom:l,closeIcon:d=zx,appContext:h}=n;const{getPrefixCls:m}=OD(),g=m("notification",t||fm),v=`${g}-${o}-${hm}`,b=is[v];if(b){Promise.resolve(b).then(C=>{e(C)});return}const x=It(`${g}-${o}`,{[`${g}-rtl`]:hm===!0});sd.newInstance({name:"notification",prefixCls:t||fm,useStyle:dm,class:x,style:Dx(o,s??Lx,l??jx),appContext:h,getContainer:r,closeIcon:C=>{let{prefixCls:k}=C;return u.createVNode("span",{class:`${k}-close-x`},[ea(d,{},u.createVNode(da,{class:`${k}-close-icon`},null))])},maxCount:Wx,hasTransitionName:!0},C=>{is[v]=C,e(C)})}const aD={success:qp,info:tm,error:nm,warning:em};function lD(n){const{icon:e,type:t,description:o,message:r,btn:s}=n,l=n.duration===void 0?Vx:n.duration;sD(n,d=>{d.notice({content:h=>{let{prefixCls:m}=h;const g=`${m}-notice`;let v=null;if(e)v=()=>u.createVNode("span",{class:`${g}-icon`},[ea(e)]);else if(t){const b=aD[t];v=()=>u.createVNode(b,{class:`${g}-icon ${g}-icon-${t}`},null)}return u.createVNode("div",{class:v?`${g}-with-icon`:""},[v&&v(),u.createVNode("div",{class:`${g}-message`},[!o&&v?u.createVNode("span",{class:`${g}-message-single-line-auto-margin`},null):null,ea(r)]),u.createVNode("div",{class:`${g}-description`},[ea(o)]),s?u.createVNode("span",{class:`${g}-btn`},[ea(s)]):null])},duration:l,closable:!0,onClose:n.onClose,onClick:n.onClick,key:n.key,style:n.style||{},class:n.class})})}const ha={open:lD,close(n){Object.keys(is).forEach(e=>Promise.resolve(is[e]).then(t=>{t.removeNotice(n)}))},config:rD,destroy(){Object.keys(is).forEach(n=>{Promise.resolve(is[n]).then(e=>{e.destroy()}),delete is[n]})}};["success","info","warning","error"].forEach(n=>{ha[n]=e=>ha.open($($({},e),{type:n}))}),ha.warn=ha.warning,ha.useNotification=iD;const cD=`-ant-${Date.now()}-${Math.random()}`;function uD(n,e){const t={},o=(l,d)=>{let h=l.clone();return h=d?.(h)||h,h.toRgbString()},r=(l,d)=>{const h=new yn(l),m=Wr(h.toRgbString());t[`${d}-color`]=o(h),t[`${d}-color-disabled`]=m[1],t[`${d}-color-hover`]=m[4],t[`${d}-color-active`]=m[6],t[`${d}-color-outline`]=h.clone().setAlpha(.2).toRgbString(),t[`${d}-color-deprecated-bg`]=m[0],t[`${d}-color-deprecated-border`]=m[2]};if(e.primaryColor){r(e.primaryColor,"primary");const l=new yn(e.primaryColor),d=Wr(l.toRgbString());d.forEach((m,g)=>{t[`primary-${g+1}`]=m}),t["primary-color-deprecated-l-35"]=o(l,m=>m.lighten(35)),t["primary-color-deprecated-l-20"]=o(l,m=>m.lighten(20)),t["primary-color-deprecated-t-20"]=o(l,m=>m.tint(20)),t["primary-color-deprecated-t-50"]=o(l,m=>m.tint(50)),t["primary-color-deprecated-f-12"]=o(l,m=>m.setAlpha(m.getAlpha()*.12));const h=new yn(d[0]);t["primary-color-active-deprecated-f-30"]=o(h,m=>m.setAlpha(m.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=o(h,m=>m.darken(2))}return e.successColor&&r(e.successColor,"success"),e.warningColor&&r(e.warningColor,"warning"),e.errorColor&&r(e.errorColor,"error"),e.infoColor&&r(e.infoColor,"info"),`
|
|
326
|
+
:root {
|
|
327
|
+
${Object.keys(t).map(l=>`--${n}-${l}: ${t[l]};`).join(`
|
|
328
|
+
`)}
|
|
329
|
+
}
|
|
330
|
+
`.trim()}function dD(n,e){const t=uD(n,e);jo()?kl(t,`${cD}-dynamic-theme`):ia(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const fD=n=>{const[e,t]=Nl();return kp(u.computed(()=>({theme:e.value,token:t.value,hashId:"",path:["ant-design-icons",n.value]})),()=>[{[`.${n.value}`]:$($({},eQ()),{[`.${n.value} .${n.value}-icon`]:{display:"block"}})}])};function hD(n,e){const t=u.computed(()=>n?.value||{}),o=u.computed(()=>t.value.inherit===!1||!e?.value?Mb:e.value);return u.computed(()=>{if(!n?.value)return e?.value;const s=$({},o.value.components);return Object.keys(n.value.components||{}).forEach(l=>{s[l]=$($({},s[l]),n.value.components[l])}),$($($({},o.value),t.value),{token:$($({},o.value.token),t.value.token),components:s})})}var pD=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};const mD="ant";function pa(){return bn.prefixCls||mD}function Ux(){return bn.iconPrefixCls||ap}const pm=u.reactive({}),bn=u.reactive({});u.watchEffect(()=>{$(bn,pm),bn.prefixCls=pa(),bn.iconPrefixCls=Ux(),bn.getPrefixCls=(n,e)=>e||(n?`${bn.prefixCls}-${n}`:bn.prefixCls),bn.getRootPrefixCls=()=>bn.prefixCls?bn.prefixCls:pa()});let mm;const gD=n=>{mm&&mm(),mm=u.watchEffect(()=>{$(pm,u.reactive(n)),$(bn,u.reactive(n))}),n.theme&&dD(pa(),n.theme)},OD=()=>({getPrefixCls:(n,e)=>e||(n?`${pa()}-${n}`:pa()),getIconPrefixCls:Ux,getRootPrefixCls:()=>bn.prefixCls?bn.prefixCls:pa()}),Ll=u.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:yM(),setup(n,e){let{slots:t}=e;const o=Tu(),r=(re,be)=>{const{prefixCls:Ve="ant"}=n;if(be)return be;const ve=Ve||o.getPrefixCls("");return re?`${ve}-${re}`:ve},s=u.computed(()=>n.iconPrefixCls||o.iconPrefixCls.value||ap),l=u.computed(()=>s.value!==o.iconPrefixCls.value),d=u.computed(()=>{var re;return n.csp||((re=o.csp)===null||re===void 0?void 0:re.value)}),h=fD(s),m=hD(u.computed(()=>n.theme),u.computed(()=>{var re;return(re=o.theme)===null||re===void 0?void 0:re.value})),g=re=>(n.renderEmpty||t.renderEmpty||o.renderEmpty||pQ)(re),v=u.computed(()=>{var re,be;return(re=n.autoInsertSpaceInButton)!==null&&re!==void 0?re:(be=o.autoInsertSpaceInButton)===null||be===void 0?void 0:be.value}),b=u.computed(()=>{var re;return n.locale||((re=o.locale)===null||re===void 0?void 0:re.value)});u.watch(b,()=>{pm.locale=b.value},{immediate:!0});const x=u.computed(()=>{var re;return n.direction||((re=o.direction)===null||re===void 0?void 0:re.value)}),C=u.computed(()=>{var re,be;return(re=n.space)!==null&&re!==void 0?re:(be=o.space)===null||be===void 0?void 0:be.value}),k=u.computed(()=>{var re,be;return(re=n.virtual)!==null&&re!==void 0?re:(be=o.virtual)===null||be===void 0?void 0:be.value}),M=u.computed(()=>{var re,be;return(re=n.dropdownMatchSelectWidth)!==null&&re!==void 0?re:(be=o.dropdownMatchSelectWidth)===null||be===void 0?void 0:be.value}),_=u.computed(()=>{var re;return n.getTargetContainer!==void 0?n.getTargetContainer:(re=o.getTargetContainer)===null||re===void 0?void 0:re.value}),E=u.computed(()=>{var re;return n.getPopupContainer!==void 0?n.getPopupContainer:(re=o.getPopupContainer)===null||re===void 0?void 0:re.value}),F=u.computed(()=>{var re;return n.pageHeader!==void 0?n.pageHeader:(re=o.pageHeader)===null||re===void 0?void 0:re.value}),D=u.computed(()=>{var re;return n.input!==void 0?n.input:(re=o.input)===null||re===void 0?void 0:re.value}),Q=u.computed(()=>{var re;return n.pagination!==void 0?n.pagination:(re=o.pagination)===null||re===void 0?void 0:re.value}),Y=u.computed(()=>{var re;return n.form!==void 0?n.form:(re=o.form)===null||re===void 0?void 0:re.value}),L=u.computed(()=>{var re;return n.select!==void 0?n.select:(re=o.select)===null||re===void 0?void 0:re.value}),Z=u.computed(()=>n.componentSize),I=u.computed(()=>n.componentDisabled),G=u.computed(()=>{var re,be;return(re=n.wave)!==null&&re!==void 0?re:(be=o.wave)===null||be===void 0?void 0:be.value}),ae={csp:d,autoInsertSpaceInButton:v,locale:b,direction:x,space:C,virtual:k,dropdownMatchSelectWidth:M,getPrefixCls:r,iconPrefixCls:s,theme:u.computed(()=>{var re,be;return(re=m.value)!==null&&re!==void 0?re:(be=o.theme)===null||be===void 0?void 0:be.value}),renderEmpty:g,getTargetContainer:_,getPopupContainer:E,pageHeader:F,input:D,pagination:Q,form:Y,select:L,componentSize:Z,componentDisabled:I,transformCellText:u.computed(()=>n.transformCellText),wave:G},Oe=u.computed(()=>{const re=m.value||{},{algorithm:be,token:Ve}=re,ve=pD(re,["algorithm","token"]),$e=be&&(!Array.isArray(be)||be.length>0)?tb(be):void 0;return $($({},ve),{theme:$e,token:$($({},Wu),Ve)})}),Ue=u.computed(()=>{var re,be;let Ve={};return b.value&&(Ve=((re=b.value.Form)===null||re===void 0?void 0:re.defaultValidateMessages)||((be=Lr.Form)===null||be===void 0?void 0:be.defaultValidateMessages)||{}),n.form&&n.form.validateMessages&&(Ve=$($({},Ve),n.form.validateMessages)),Ve});bM(ae),vM({validateMessages:Ue}),mQ(Z),xM(I);const ke=re=>{var be,Ve;let ve=l.value?h((be=t.default)===null||be===void 0?void 0:be.call(t)):(Ve=t.default)===null||Ve===void 0?void 0:Ve.call(t);if(n.theme){const $e=function(){return ve}();ve=u.createVNode(cQ,{value:Oe.value},{default:()=>[$e]})}return u.createVNode(P8,{locale:b.value||re,ANT_MARK__:cm},{default:()=>[ve]})};return u.watchEffect(()=>{x.value&&(fa.config({rtl:x.value==="rtl"}),ha.config({rtl:x.value==="rtl"}))}),()=>u.createVNode(F0,{children:(re,be,Ve)=>ke(Ve)},null)}});Ll.config=gD,Ll.install=function(n){n.component(Ll.name,Ll)};const Hx=Ll;function gm(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Dt.shape({x:Number,y:Number}).loose,title:Dt.any,footer:Dt.any,transitionName:String,maskTransitionName:String,animation:Dt.any,maskAnimation:Dt.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Dt.any,maskProps:Dt.any,wrapProps:Dt.any,getContainer:Dt.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Dt.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Xx(n,e,t){let o=e;return!o&&t&&(o=`${n}-${t}`),o}let Yx=-1;function vD(){return Yx+=1,Yx}function Gx(n,e){let t=n[`page${e?"Y":"X"}Offset`];const o=`scroll${e?"Top":"Left"}`;if(typeof t!="number"){const r=n.document;t=r.documentElement[o],typeof t!="number"&&(t=r.body[o])}return t}function yD(n){const e=n.getBoundingClientRect(),t={left:e.left,top:e.top},o=n.ownerDocument,r=o.defaultView||o.parentWindow;return t.left+=Gx(r),t.top+=Gx(r,!0),t}const Kx={width:0,height:0,overflow:"hidden",outline:"none"},bD=u.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:$($({},gm()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(n,e){let{expose:t,slots:o,attrs:r}=e;const s=u.ref(),l=u.ref(),d=u.ref();t({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},changeActive:b=>{const{activeElement:x}=document;b&&x===l.value?s.value.focus():!b&&x===s.value&&l.value.focus()}});const h=u.ref(),m=u.computed(()=>{const{width:b,height:x}=n,C={};return b!==void 0&&(C.width=typeof b=="number"?`${b}px`:b),x!==void 0&&(C.height=typeof x=="number"?`${x}px`:x),h.value&&(C.transformOrigin=h.value),C}),g=()=>{u.nextTick(()=>{if(d.value){const b=yD(d.value);h.value=n.mousePosition?`${n.mousePosition.x-b.left}px ${n.mousePosition.y-b.top}px`:""}})},v=b=>{n.onVisibleChanged(b)};return()=>{var b,x,C,k;const{prefixCls:M,footer:_=(b=o.footer)===null||b===void 0?void 0:b.call(o),title:E=(x=o.title)===null||x===void 0?void 0:x.call(o),ariaId:F,closable:D,closeIcon:Q=(C=o.closeIcon)===null||C===void 0?void 0:C.call(o),onClose:Y,bodyStyle:L,bodyProps:Z,onMousedown:I,onMouseup:G,visible:ae,modalRender:Oe=o.modalRender,destroyOnClose:Ue,motionName:ke}=n;let re;_&&(re=u.createVNode("div",{class:`${M}-footer`},[_]));let be;E&&(be=u.createVNode("div",{class:`${M}-header`},[u.createVNode("div",{class:`${M}-title`,id:F},[E])]));let Ve;D&&(Ve=u.createVNode("button",{type:"button",onClick:Y,"aria-label":"Close",class:`${M}-close`},[Q||u.createVNode("span",{class:`${M}-close-x`},null)]));const ve=u.createVNode("div",{class:`${M}-content`},[Ve,be,u.createVNode("div",Ge({class:`${M}-body`,style:L},Z),[(k=o.default)===null||k===void 0?void 0:k.call(o)]),re]),$e=S1(ke);return u.createVNode(u.Transition,Ge(Ge({},$e),{},{onBeforeEnter:g,onAfterEnter:()=>v(!0),onAfterLeave:()=>v(!1)}),{default:()=>[ae||!Ue?u.withDirectives(u.createVNode("div",Ge(Ge({},r),{},{ref:d,key:"dialog-element",role:"document",style:[m.value,r.style],class:[M,r.class],onMousedown:I,onMouseup:G}),[u.createVNode("div",{tabindex:0,ref:s,style:Kx,"aria-hidden":"true"},null),Oe?Oe({originVNode:ve}):ve,u.createVNode("div",{tabindex:0,ref:l,style:Kx,"aria-hidden":"true"},null)]),[[u.vShow,ae]]):null]})}}}),xD=u.defineComponent({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(n,e){return()=>{const{prefixCls:t,visible:o,maskProps:r,motionName:s}=n,l=S1(s);return u.createVNode(u.Transition,l,{default:()=>[u.withDirectives(u.createVNode("div",Ge({class:`${t}-mask`},r),null),[[u.vShow,o]])]})}}}),Jx=u.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:xl($($({},gm()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(n,e){let{attrs:t,slots:o}=e;const r=u.shallowRef(),s=u.shallowRef(),l=u.shallowRef(),d=u.shallowRef(n.visible),h=u.shallowRef(`vcDialogTitle${vD()}`),m=_=>{var E,F;if(_)X0(s.value,document.activeElement)||(r.value=document.activeElement,(E=l.value)===null||E===void 0||E.focus());else{const D=d.value;if(d.value=!1,n.mask&&r.value&&n.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}D&&((F=n.afterClose)===null||F===void 0||F.call(n))}},g=_=>{var E;(E=n.onClose)===null||E===void 0||E.call(n,_)},v=u.shallowRef(!1),b=u.shallowRef(),x=()=>{clearTimeout(b.value),v.value=!0},C=()=>{b.value=setTimeout(()=>{v.value=!1})},k=_=>{if(!n.maskClosable)return null;v.value?v.value=!1:s.value===_.target&&g(_)},M=_=>{if(n.keyboard&&_.keyCode===qe.ESC){_.stopPropagation(),g(_);return}n.visible&&_.keyCode===qe.TAB&&l.value.changeActive(!_.shiftKey)};return u.watch(()=>n.visible,()=>{n.visible&&(d.value=!0)},{flush:"post"}),u.onBeforeUnmount(()=>{var _;clearTimeout(b.value),(_=n.scrollLocker)===null||_===void 0||_.unLock()}),u.watchEffect(()=>{var _,E;(_=n.scrollLocker)===null||_===void 0||_.unLock(),d.value&&((E=n.scrollLocker)===null||E===void 0||E.lock())}),()=>{const{prefixCls:_,mask:E,visible:F,maskTransitionName:D,maskAnimation:Q,zIndex:Y,wrapClassName:L,rootClassName:Z,wrapStyle:I,closable:G,maskProps:ae,maskStyle:Oe,transitionName:Ue,animation:ke,wrapProps:re,title:be=o.title}=n,{style:Ve,class:ve}=t;return u.createVNode("div",Ge({class:[`${_}-root`,Z]},mI(n,{data:!0})),[u.createVNode(xD,{prefixCls:_,visible:E&&F,motionName:Xx(_,D,Q),style:$({zIndex:Y},Oe),maskProps:ae},null),u.createVNode("div",Ge({tabIndex:-1,onKeydown:M,class:It(`${_}-wrap`,L),ref:s,onClick:k,role:"dialog","aria-labelledby":be?h.value:null,style:$($({zIndex:Y},I),{display:d.value?null:"none"})},re),[u.createVNode(bD,Ge(Ge({},Zb(n,["scrollLocker"])),{},{style:Ve,class:ve,onMousedown:x,onMouseup:C,ref:l,closable:G,ariaId:h.value,prefixCls:_,visible:F,onClose:g,onVisibleChanged:m,motionName:Xx(_,Ue,ke)}),o)])])}}}),wD=gm(),SD=u.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:xl(wD,{visible:!1}),setup(n,e){let{attrs:t,slots:o}=e;const r=u.ref(n.visible);return P1({},{inTriggerContext:!1}),u.watch(()=>n.visible,()=>{n.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:s,getContainer:l,forceRender:d,destroyOnClose:h=!1,afterClose:m}=n;let g=$($($({},n),t),{ref:"_component",key:"dialog"});return l===!1?u.createVNode(Jx,Ge(Ge({},g),{},{getOpenCount:()=>2}),o):!d&&h&&!r.value?null:u.createVNode(fI,{autoLock:!0,visible:s,forceRender:d,getContainer:l},{default:v=>(g=$($($({},g),v),{afterClose:()=>{m?.(),r.value=!1}}),u.createVNode(Jx,g,o))})}}});function $x(n){return{position:n,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const CD=n=>{const{componentCls:e}=n;return[{[`${e}-root`]:{[`${e}${n.antCls}-zoom-enter, ${e}${n.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:n.motionDurationSlow,userSelect:"none"},[`${e}${n.antCls}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:$($({},$x("fixed")),{zIndex:n.zIndexPopupBase,height:"100%",backgroundColor:n.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:$($({},$x("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:v6(n)}]},kD=n=>{const{componentCls:e}=n;return[{[`${e}-root`]:{[`${e}-wrap`]:{zIndex:n.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${n.screenSMMax})`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${n.marginXS} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:$($({},Ip(n)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${n.margin*2}px)`,margin:"0 auto",paddingBottom:n.paddingLG,[`${e}-title`]:{margin:0,color:n.modalHeadingColor,fontWeight:n.fontWeightStrong,fontSize:n.modalHeaderTitleFontSize,lineHeight:n.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:n.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:n.borderRadiusLG,boxShadow:n.boxShadowSecondary,pointerEvents:"auto",padding:`${n.paddingMD}px ${n.paddingContentHorizontalLG}px`},[`${e}-close`]:$({position:"absolute",top:(n.modalHeaderCloseSize-n.modalCloseBtnSize)/2,insetInlineEnd:(n.modalHeaderCloseSize-n.modalCloseBtnSize)/2,zIndex:n.zIndexPopupBase+10,padding:0,color:n.modalCloseColor,fontWeight:n.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:n.borderRadiusSM,width:n.modalConfirmIconSize,height:n.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${n.motionDurationMid}, background-color ${n.motionDurationMid}`,"&-x":{display:"block",fontSize:n.fontSizeLG,fontStyle:"normal",lineHeight:`${n.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:n.modalIconHoverColor,backgroundColor:n.wireframe?"transparent":n.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:n.wireframe?"transparent":n.colorFillContentHover}},Ab(n)),[`${e}-header`]:{color:n.colorText,background:n.modalHeaderBg,borderRadius:`${n.borderRadiusLG}px ${n.borderRadiusLG}px 0 0`,marginBottom:n.marginXS},[`${e}-body`]:{fontSize:n.fontSize,lineHeight:n.lineHeight,wordWrap:"break-word"},[`${e}-footer`]:{textAlign:"end",background:n.modalFooterBg,marginTop:n.marginSM,[`${n.antCls}-btn + ${n.antCls}-btn:not(${n.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:n.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,
|
|
331
|
+
${e}-body,
|
|
332
|
+
${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},PD=n=>{const{componentCls:e}=n,t=`${e}-confirm`;return{[t]:{"&-rtl":{direction:"rtl"},[`${n.antCls}-modal-header`]:{display:"none"},[`${t}-body-wrapper`]:$({},tQ()),[`${t}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${t}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:n.colorTextHeading,fontWeight:n.fontWeightStrong,fontSize:n.modalHeaderTitleFontSize,lineHeight:n.modalHeaderTitleLineHeight,[`+ ${t}-content`]:{marginBlockStart:n.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${n.modalConfirmIconSize+n.marginSM}px)`}},[`${t}-content`]:{color:n.colorText,fontSize:n.fontSize},[`> ${n.iconCls}`]:{flex:"none",marginInlineEnd:n.marginSM,fontSize:n.modalConfirmIconSize,[`+ ${t}-title`]:{flex:1},[`+ ${t}-title + ${t}-content`]:{marginInlineStart:n.modalConfirmIconSize+n.marginSM}}},[`${t}-btns`]:{textAlign:"end",marginTop:n.marginSM,[`${n.antCls}-btn + ${n.antCls}-btn`]:{marginBottom:0,marginInlineStart:n.marginXS}}},[`${t}-error ${t}-body > ${n.iconCls}`]:{color:n.colorError},[`${t}-warning ${t}-body > ${n.iconCls},
|
|
333
|
+
${t}-confirm ${t}-body > ${n.iconCls}`]:{color:n.colorWarning},[`${t}-info ${t}-body > ${n.iconCls}`]:{color:n.colorInfo},[`${t}-success ${t}-body > ${n.iconCls}`]:{color:n.colorSuccess},[`${e}-zoom-leave ${e}-btns`]:{pointerEvents:"none"}}},ED=n=>{const{componentCls:e}=n;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},TD=n=>{const{componentCls:e,antCls:t}=n,o=`${e}-confirm`;return{[e]:{[`${e}-content`]:{padding:0},[`${e}-header`]:{padding:n.modalHeaderPadding,borderBottom:`${n.modalHeaderBorderWidth}px ${n.modalHeaderBorderStyle} ${n.modalHeaderBorderColorSplit}`,marginBottom:0},[`${e}-body`]:{padding:n.modalBodyPadding},[`${e}-footer`]:{padding:`${n.modalFooterPaddingVertical}px ${n.modalFooterPaddingHorizontal}px`,borderTop:`${n.modalFooterBorderWidth}px ${n.modalFooterBorderStyle} ${n.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${n.borderRadiusLG}px ${n.borderRadiusLG}px`,marginTop:0}},[o]:{[`${t}-modal-body`]:{padding:`${n.padding*2}px ${n.padding*2}px ${n.paddingLG}px`},[`${o}-body`]:{[`> ${n.iconCls}`]:{marginInlineEnd:n.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:n.modalConfirmIconSize+n.margin}}},[`${o}-btns`]:{marginTop:n.marginLG}}}},_D=Ur("Modal",n=>{const e=n.padding,t=n.fontSizeHeading5,o=n.lineHeightHeading5,r=Ji(n,{modalBodyPadding:n.paddingLG,modalHeaderBg:n.colorBgElevated,modalHeaderPadding:`${e}px ${n.paddingLG}px`,modalHeaderBorderWidth:n.lineWidth,modalHeaderBorderStyle:n.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:t,modalHeaderBorderColorSplit:n.colorSplit,modalHeaderCloseSize:o*t+e*2,modalContentBg:n.colorBgElevated,modalHeadingColor:n.colorTextHeading,modalCloseColor:n.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:n.colorSplit,modalFooterBorderStyle:n.lineType,modalFooterPaddingVertical:n.paddingXS,modalFooterPaddingHorizontal:n.padding,modalFooterBorderWidth:n.lineWidth,modalConfirmTitleFontSize:n.fontSizeLG,modalIconHoverColor:n.colorIconHover,modalConfirmIconSize:n.fontSize*n.lineHeight,modalCloseBtnSize:n.controlHeightLG*.55});return[kD(r),PD(r),ED(r),CD(r),n.wireframe&&TD(r),N6(r,"zoom")]});var ND=function(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(t[o[r]]=n[o[r]]);return t};let Om;const AD=n=>{Om={x:n.pageX,y:n.pageY},setTimeout(()=>Om=null,100)};S8()&&gM(document.documentElement,"click",AD,!0);const RD=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Dt.any,closable:{type:Boolean,default:void 0},closeIcon:Dt.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Dt.any,okText:Dt.any,okType:String,cancelText:Dt.any,icon:Dt.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Gt(),cancelButtonProps:Gt(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Gt(),maskStyle:Gt(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Gt()}),Bt=u.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:xl(RD(),{width:520,confirmLoading:!1,okType:"primary"}),setup(n,e){let{emit:t,slots:o,attrs:r}=e;const[s]=up("Modal"),{prefixCls:l,rootPrefixCls:d,direction:h,getPopupContainer:m}=si("modal",n),[g,v]=_D(l);ia(n.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const b=k=>{t("update:visible",!1),t("update:open",!1),t("cancel",k),t("change",!1)},x=k=>{t("ok",k)},C=()=>{var k,M;const{okText:_=(k=o.okText)===null||k===void 0?void 0:k.call(o),okType:E,cancelText:F=(M=o.cancelText)===null||M===void 0?void 0:M.call(o),confirmLoading:D}=n;return u.createVNode(u.Fragment,null,[u.createVNode(os,Ge({onClick:b},n.cancelButtonProps),{default:()=>[F||s.value.cancelText]}),u.createVNode(os,Ge(Ge({},ax(E)),{},{loading:D,onClick:x},n.okButtonProps),{default:()=>[_||s.value.okText]})])};return()=>{var k,M;const{prefixCls:_,visible:E,open:F,wrapClassName:D,centered:Q,getContainer:Y,closeIcon:L=(k=o.closeIcon)===null||k===void 0?void 0:k.call(o),focusTriggerAfterClose:Z=!0}=n,I=ND(n,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),G=It(D,{[`${l.value}-centered`]:!!Q,[`${l.value}-wrap-rtl`]:h.value==="rtl"});return g(u.createVNode(SD,Ge(Ge(Ge({},I),r),{},{rootClassName:v.value,class:It(v.value,r.class),getContainer:Y||m?.value,prefixCls:l.value,wrapClassName:G,visible:F??E,onClose:b,focusTriggerAfterClose:Z,transitionName:Ku(d.value,"zoom",n.transitionName),maskTransitionName:Ku(d.value,"fade",n.maskTransitionName),mousePosition:(M=I.mousePosition)!==null&&M!==void 0?M:Om}),$($({},o),{footer:o.footer||C,closeIcon:()=>u.createVNode("span",{class:`${l.value}-close-x`},[L||u.createVNode(da,{class:`${l.value}-close-icon`},null)])})))}}}),MD=()=>{const n=u.shallowRef(!1);return u.onBeforeUnmount(()=>{n.value=!0}),n},QD={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Gt(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function qx(n){return!!(n&&n.then)}const ew=u.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:QD,setup(n,e){let{slots:t}=e;const o=u.shallowRef(!1),r=u.shallowRef(),s=u.shallowRef(!1);let l;const d=MD();u.onMounted(()=>{n.autofocus&&(l=setTimeout(()=>{var v,b;return(b=(v=Pu(r.value))===null||v===void 0?void 0:v.focus)===null||b===void 0?void 0:b.call(v)}))}),u.onBeforeUnmount(()=>{clearTimeout(l)});const h=function(){for(var v,b=arguments.length,x=new Array(b),C=0;C<b;C++)x[C]=arguments[C];(v=n.close)===null||v===void 0||v.call(n,...x)},m=v=>{qx(v)&&(s.value=!0,v.then(function(){d.value||(s.value=!1),h(...arguments),o.value=!1},b=>(d.value||(s.value=!1),o.value=!1,Promise.reject(b))))},g=v=>{const{actionFn:b}=n;if(o.value)return;if(o.value=!0,!b){h();return}let x;if(n.emitEvent){if(x=b(v),n.quitOnNullishReturnValue&&!qx(x)){o.value=!1,h(v);return}}else if(b.length)x=b(n.close),o.value=!1;else if(x=b(),!x){h();return}m(x)};return()=>{const{type:v,prefixCls:b,buttonProps:x}=n;return u.createVNode(os,Ge(Ge(Ge({},ax(v)),{},{onClick:g,loading:s.value,prefixCls:b},x),{},{ref:r}),t)}}});function ma(n){return typeof n=="function"?n():n}const tw=u.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(n,e){let{attrs:t}=e;const[o]=up("Modal");return process.env.NODE_ENV!=="production"&&ia(n.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:r,onCancel:s,onOk:l,close:d,okText:h,closable:m=!1,zIndex:g,afterClose:v,keyboard:b,centered:x,getContainer:C,maskStyle:k,okButtonProps:M,cancelButtonProps:_,okCancel:E,width:F=416,mask:D=!0,maskClosable:Q=!1,type:Y,open:L,title:Z,content:I,direction:G,closeIcon:ae,modalRender:Oe,focusTriggerAfterClose:Ue,rootPrefixCls:ke,bodyStyle:re,wrapClassName:be,footer:Ve}=n;let ve=r;if(!r&&r!==null)switch(Y){case"info":ve=u.createVNode(ns,null,null);break;case"success":ve=u.createVNode(es,null,null);break;case"error":ve=u.createVNode(qr,null,null);break;default:ve=u.createVNode(ts,null,null)}const $e=n.okType||"primary",Ae=n.prefixCls||"ant-modal",Se=`${Ae}-confirm`,ht=t.style||{},Pe=E??Y==="confirm",Ze=n.autoFocusButton===null?!1:n.autoFocusButton||"ok",bt=`${Ae}-confirm`,vo=It(bt,`${bt}-${n.type}`,{[`${bt}-rtl`]:G==="rtl"},t.class),Re=o.value,hn=Pe&&u.createVNode(ew,{actionFn:s,close:d,autofocus:Ze==="cancel",buttonProps:_,prefixCls:`${ke}-btn`},{default:()=>[ma(n.cancelText)||Re.cancelText]});return u.createVNode(Bt,{prefixCls:Ae,class:vo,wrapClassName:It({[`${bt}-centered`]:!!x},be),onCancel:ft=>d?.({triggerCancel:!0},ft),open:L,title:"",footer:"",transitionName:Ku(ke,"zoom",n.transitionName),maskTransitionName:Ku(ke,"fade",n.maskTransitionName),mask:D,maskClosable:Q,maskStyle:k,style:ht,bodyStyle:re,width:F,zIndex:g,afterClose:v,keyboard:b,centered:x,getContainer:C,closable:m,closeIcon:ae,modalRender:Oe,focusTriggerAfterClose:Ue},{default:()=>[u.createVNode("div",{class:`${Se}-body-wrapper`},[u.createVNode("div",{class:`${Se}-body`},[ma(ve),Z===void 0?null:u.createVNode("span",{class:`${Se}-title`},[ma(Z)]),u.createVNode("div",{class:`${Se}-content`},[ma(I)])]),Ve!==void 0?ma(Ve):u.createVNode("div",{class:`${Se}-btns`},[hn,u.createVNode(ew,{type:$e,actionFn:l,close:d,autofocus:Ze==="ok",buttonProps:M,prefixCls:`${ke}-btn`},{default:()=>[ma(h)||(Pe?Re.okText:Re.justOkText)]})])])]})}}}),rs=[],jl=n=>{const e=document.createDocumentFragment();let t=$($({},Zb(n,["parentContext","appContext"])),{close:s,open:!0}),o=null;function r(){o&&(u.render(null,e),o=null);for(var m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];const b=g.some(x=>x&&x.triggerCancel);n.onCancel&&b&&n.onCancel(()=>{},...g.slice(1));for(let x=0;x<rs.length;x++)if(rs[x]===s){rs.splice(x,1);break}}function s(){for(var m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];t=$($({},t),{open:!1,afterClose:()=>{typeof n.afterClose=="function"&&n.afterClose(),r.apply(this,g)}}),t.visible&&delete t.visible,l(t)}function l(m){typeof m=="function"?t=m(t):t=$($({},t),m),o&&BQ(o,t,e)}const d=m=>{const g=bn,v=g.prefixCls,b=m.prefixCls||`${v}-modal`,x=g.iconPrefixCls,C=k8();return u.createVNode(Hx,Ge(Ge({},g),{},{prefixCls:v}),{default:()=>[u.createVNode(tw,Ge(Ge({},m),{},{rootPrefixCls:v,prefixCls:b,iconPrefixCls:x,locale:C,cancelText:m.cancelText||C.cancelText}),null)]})};function h(m){const g=u.createVNode(d,$({},m));return g.appContext=n.parentContext||n.appContext||g.appContext,u.render(g,e),g}return o=h(t),rs.push(s),{destroy:s,update:l}};function nw(n){return $($({},n),{type:"warning"})}function ow(n){return $($({},n),{type:"info"})}function iw(n){return $($({},n),{type:"success"})}function rw(n){return $($({},n),{type:"error"})}function sw(n){return $($({},n),{type:"confirm"})}const ID=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),DD=u.defineComponent({name:"HookModal",inheritAttrs:!1,props:xl(ID(),{config:{width:520,okType:"primary"}}),setup(n,e){let{expose:t}=e;var o;const r=u.computed(()=>n.open),s=u.computed(()=>n.config),{direction:l,getPrefixCls:d}=Tu(),h=d("modal"),m=d(),g=()=>{var C,k;n?.afterClose(),(k=(C=s.value).afterClose)===null||k===void 0||k.call(C)},v=function(){n.destroyAction(...arguments)};t({destroy:v});const b=(o=s.value.okCancel)!==null&&o!==void 0?o:s.value.type==="confirm",[x]=up("Modal",Lr.Modal);return()=>u.createVNode(tw,Ge(Ge({prefixCls:h,rootPrefixCls:m},s.value),{},{close:v,open:r.value,afterClose:g,okText:s.value.okText||(b?x?.value.okText:x?.value.justOkText),direction:s.value.direction||l.value,cancelText:s.value.cancelText||x?.value.cancelText}),null)}});let aw=0;const BD=u.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(n,e){let{expose:t}=e;const o=u.shallowRef([]);return t({addModal:s=>(o.value.push(s),o.value=o.value.slice(),()=>{o.value=o.value.filter(l=>l!==s)})}),()=>o.value.map(s=>s())}});function VD(){const n=u.shallowRef(null),e=u.shallowRef([]);u.watch(e,()=>{e.value.length&&([...e.value].forEach(l=>{l()}),e.value=[])},{immediate:!0});const t=s=>function(d){var h;aw+=1;const m=u.shallowRef(!0),g=u.shallowRef(null),v=u.shallowRef(u.unref(d)),b=u.shallowRef({});u.watch(()=>d,F=>{M($($({},u.isRef(F)?F.value:F),b.value))});const x=function(){m.value=!1;for(var F=arguments.length,D=new Array(F),Q=0;Q<F;Q++)D[Q]=arguments[Q];const Y=D.some(L=>L&&L.triggerCancel);v.value.onCancel&&Y&&v.value.onCancel(()=>{},...D.slice(1))};let C;const k=()=>u.createVNode(DD,{key:`modal-${aw}`,config:s(v.value),ref:g,open:m.value,destroyAction:x,afterClose:()=>{C?.()}},null);C=(h=n.value)===null||h===void 0?void 0:h.addModal(k),C&&rs.push(C);const M=F=>{v.value=$($({},v.value),F)};return{destroy:()=>{g.value?x():e.value=[...e.value,x]},update:F=>{b.value=F,g.value?M(F):e.value=[...e.value,()=>M(F)]}}},o=u.computed(()=>({info:t(ow),success:t(iw),error:t(rw),warning:t(nw),confirm:t(sw)})),r=Symbol("modalHolderKey");return[o.value,()=>u.createVNode(BD,{key:r,ref:n},null)]}function lw(n){return jl(nw(n))}Bt.useModal=VD,Bt.info=function(e){return jl(ow(e))},Bt.success=function(e){return jl(iw(e))},Bt.error=function(e){return jl(rw(e))},Bt.warning=lw,Bt.warn=lw,Bt.confirm=function(e){return jl(sw(e))},Bt.destroyAll=function(){for(;rs.length;){const e=rs.pop();e&&e()}},Bt.install=function(n){return n.component(Bt.name,Bt),n};var LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};function cw(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){jD(n,r,t[r])})}return n}function jD(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ai=function(e,t){var o=cw({},e,t.attrs);return u.createVNode(Rn,cw({},o,{icon:LD}),null)};Ai.displayName="FormOutlined",Ai.inheritAttrs=!1;class vm{define;model;$css;$settings;$widgetList;$widgetMap;$dataModels;$dataModelMap;$axios;$axiosProccess;constructor(e={sn:"new_",title:"新建页面",types:"setting",vers:1,configs:"{}"},t={widgetList:[],dataModels:[]}){this.model=u.ref("run"),this.define=u.ref(e),this.$css=u.ref(t.css||""),this.$widgetList=u.ref([]),this.$widgetMap=u.ref({}),this.$dataModels=u.ref([]),this.$dataModelMap=u.ref({}),this.$settings=u.ref({ctx:"/portal",timeout:6e4,...t.settings}),this.$axiosProccess=u.ref({}),this.$initAxios(),this.loadConfig(t)}$initAxios(){this.$axios=Yt.create({baseURL:this.$settings.value.ctx,timeout:this.$settings.value.timeout})}load(e,t){if(this.define.value.sn=e,e=="new_"){t&&this.loadConfig(t);return}const o=sessionStorage.getItem("PAGE_CONFIG:"+e);if(o){this.loadConfig(JSON.parse(o));return}this.$axios({url:"/api/page/define/load/"+e,method:"post"}).then(({data:r})=>{console.log("page loaded",r),r.success&&(this.define.value=r.body,this.define.value.configs||(this.define.value.configs="{}"),this.loadConfig(JSON.parse(this.define.value.configs)),sessionStorage.setItem("PAGE_CONFIG:"+e,this.define.value.configs))})}save(){return new Promise((e,t)=>{if(this.$axiosProccess.value.save){console.warn("unione form editor save process runing,sn:"+this.define.value.sn),t();return}this.$axiosProccess.value.save=!0;const o={widgetList:this.$widgetList.value,dataModels:this.$dataModels.value,settings:this.$settings},r={...this.define.value};r.configs=JSON.stringify(o),this.$axios({url:"/api/page/define/save",method:"post",data:r}).then(({data:s})=>{this.$axiosProccess.value.save=!1,s.success?(fa.success(s.message),this.define.value=s.body,sessionStorage.setItem("PAGE_CONFIG:"+s.sn,s.configs),e(s.body)):(Bt.error({title:"错误信息",content:s.message}),t())}).catch(s=>{console.error("页面配置保存失败",s),Bt.error({title:"错误信息",content:"页面配置保存失败"})}).finally(()=>{this.$axiosProccess.value.save=!1})})}loadConfig(e){this.$widgetList.value=e.widgetList||[],this.$widgetMap.value={},this.$processWidget(this.$widgetList.value),this.$dataModels.value=e.dataModels||[],this.$dataModelMap.value={},this.$dataModels.value.forEach(t=>{this.$dataModelMap.value[t.sn]=t})}setModel(e){this.model.value=e}widget(e,t){if(t){const o={...t,wid:e};this.$widgetMap.value[e]||(this.$widgetList.value.push(o),o.configs?.widgets&&this.$processWidget(o.configs.widgets)),this.$widgetMap.value[e]=o}else return this.$widgetMap.value[e]}widgets(e){if(e)this.$widgetList.value=e,this.$widgetMap.value={},this.$processWidget(e);else return this.$widgetList.value}$processWidget(e){e.forEach(t=>{this.$widgetMap.value[t.wid]=t,t.configs?.widgets&&this.$processWidget(t.configs.widgets)})}dataModel(e,t){if(t){const o={...t,sn:e};this.$dataModelMap.value[e]||this.$dataModels.value.push(o),this.$dataModelMap.value[e]=o}else return this.$dataModelMap.value[e]}dataModels(e){if(e)this.$dataModels.value=e,this.$dataModelMap.value={},e.forEach(t=>{this.$dataModelMap.value[t.sn]=t});else return this.$dataModels.value}settings(e){if(e)this.$settings.value={...this.$settings.value,...e};else return this.$settings.value||{}}}const FD={class:"widget-setting-dialog"},ZD=u.defineComponent({__name:"widget",props:{model:{type:String,required:!1},settingTitle:{type:String,default:"组件设置"},custome:{type:Boolean,default:!1}},emits:["setting","saving"],setup(n,{emit:e}){const t=e,o=u.ref();function r(){o.value?.open(),t("setting")}function s(){t("saving"),o.value?.close()}return(l,d)=>{const h=u.resolveComponent("SettingOutlined"),m=u.resolveComponent("a-tooltip"),g=u.resolveComponent("a-modal");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["unione-widget",n.model])},[u.createVNode(m,{title:n.settingTitle},{default:u.withCtx(()=>[n.model=="edit"&&(l.$slots["widget-setting"]||n.custome)?(u.openBlock(),u.createBlock(h,{key:0,class:"widget-setting",onClick:r})):u.createCommentVNode("",!0)]),_:1},8,["title"]),u.renderSlot(l.$slots,"default",{},void 0,!0),n.model=="edit"&&l.$slots["widget-setting"]?(u.openBlock(),u.createBlock(g,{key:0,title:n.settingTitle,ref_key:"settingModal",ref:o,centered:"",width:"80%",onOk:s},{default:u.withCtx(()=>[u.createElementVNode("div",FD,[u.renderSlot(l.$slots,"widget-setting",{},void 0,!0)])]),_:3},8,["title"])):u.createCommentVNode("",!0)],2)}}}),dn=(n,e)=>{const t=n.__vccOpts||n;for(const[o,r]of e)t[o]=r;return t},ga=dn(ZD,[["__scopeId","data-v-af42a5b2"]]);class pt{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,o){[e,t]=Oa(this,e,t);let r=[];return this.decompose(0,e,r,2),o.length&&o.decompose(0,o.length,r,3),this.decompose(t,this.length,r,1),ci.from(r,this.length-(t-e)+o.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Oa(this,e,t);let o=[];return this.decompose(e,t,o,0),ci.from(o,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),o=this.length-this.scanIdentical(e,-1),r=new Fl(this),s=new Fl(e);for(let l=t,d=t;;){if(r.next(l),s.next(l),l=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(d+=r.value.length,r.done||d>=o)return!0}}iter(e=1){return new Fl(this,e)}iterRange(e,t=this.length){return new dw(this,e,t)}iterLines(e,t){let o;if(e==null)o=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;o=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fw(o)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?pt.empty:e.length<=32?new zt(e):ci.from(zt.split(e,[]))}}class zt extends pt{constructor(e,t=zD(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,o,r){for(let s=0;;s++){let l=this.text[s],d=r+l.length;if((t?o:d)>=e)return new WD(r,d,o,l);r=d+1,o++}}decompose(e,t,o,r){let s=e<=0&&t>=this.length?this:new zt(uw(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let l=o.pop(),d=ad(s.text,l.text.slice(),0,s.length);if(d.length<=32)o.push(new zt(d,l.length+s.length));else{let h=d.length>>1;o.push(new zt(d.slice(0,h)),new zt(d.slice(h)))}}else o.push(s)}replace(e,t,o){if(!(o instanceof zt))return super.replace(e,t,o);[e,t]=Oa(this,e,t);let r=ad(this.text,ad(o.text,uw(this.text,0,e)),t),s=this.length+o.length-(t-e);return r.length<=32?new zt(r,s):ci.from(zt.split(r,[]),s)}sliceString(e,t=this.length,o=`
|
|
334
|
+
`){[e,t]=Oa(this,e,t);let r="";for(let s=0,l=0;s<=t&&l<this.text.length;l++){let d=this.text[l],h=s+d.length;s>e&&l&&(r+=o),e<h&&t>s&&(r+=d.slice(Math.max(0,e-s),t-s)),s=h+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let o=[],r=-1;for(let s of e)o.push(s),r+=s.length+1,o.length==32&&(t.push(new zt(o,r)),o=[],r=-1);return r>-1&&t.push(new zt(o,r)),t}}class ci extends pt{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let o of e)this.lines+=o.lines}lineInner(e,t,o,r){for(let s=0;;s++){let l=this.children[s],d=r+l.length,h=o+l.lines-1;if((t?h:d)>=e)return l.lineInner(e,t,o,r);r=d+1,o=h+1}}decompose(e,t,o,r){for(let s=0,l=0;l<=t&&s<this.children.length;s++){let d=this.children[s],h=l+d.length;if(e<=h&&t>=l){let m=r&((l<=e?1:0)|(h>=t?2:0));l>=e&&h<=t&&!m?o.push(d):d.decompose(e-l,t-l,o,m)}l=h+1}}replace(e,t,o){if([e,t]=Oa(this,e,t),o.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let l=this.children[r],d=s+l.length;if(e>=s&&t<=d){let h=l.replace(e-s,t-s,o),m=this.lines-l.lines+h.lines;if(h.lines<m>>4&&h.lines>m>>6){let g=this.children.slice();return g[r]=h,new ci(g,this.length-(t-e)+o.length)}return super.replace(s,d,h)}s=d+1}return super.replace(e,t,o)}sliceString(e,t=this.length,o=`
|
|
335
|
+
`){[e,t]=Oa(this,e,t);let r="";for(let s=0,l=0;s<this.children.length&&l<=t;s++){let d=this.children[s],h=l+d.length;l>e&&s&&(r+=o),e<h&&t>l&&(r+=d.sliceString(e-l,t-l,o)),l=h+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ci))return 0;let o=0,[r,s,l,d]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==l||s==d)return o;let h=this.children[r],m=e.children[s];if(h!=m)return o+h.scanIdentical(m,t);o+=h.length+1}}static from(e,t=e.reduce((o,r)=>o+r.length+1,-1)){let o=0;for(let x of e)o+=x.lines;if(o<32){let x=[];for(let C of e)C.flatten(x);return new zt(x,t)}let r=Math.max(32,o>>5),s=r<<1,l=r>>1,d=[],h=0,m=-1,g=[];function v(x){let C;if(x.lines>s&&x instanceof ci)for(let k of x.children)v(k);else x.lines>l&&(h>l||!h)?(b(),d.push(x)):x instanceof zt&&h&&(C=g[g.length-1])instanceof zt&&x.lines+C.lines<=32?(h+=x.lines,m+=x.length+1,g[g.length-1]=new zt(C.text.concat(x.text),C.length+1+x.length)):(h+x.lines>r&&b(),h+=x.lines,m+=x.length+1,g.push(x))}function b(){h!=0&&(d.push(g.length==1?g[0]:ci.from(g,m)),m=-1,h=g.length=0)}for(let x of e)v(x);return b(),d.length==1?d[0]:new ci(d,t)}}pt.empty=new zt([""],0);function zD(n){let e=-1;for(let t of n)e+=t.length+1;return e}function ad(n,e,t=0,o=1e9){for(let r=0,s=0,l=!0;s<n.length&&r<=o;s++){let d=n[s],h=r+d.length;h>=t&&(h>o&&(d=d.slice(0,o-r)),r<t&&(d=d.slice(t-r)),l?(e[e.length-1]+=d,l=!1):e.push(d)),r=h+1}return e}function uw(n,e,t){return ad(n,[""],e,t)}class Fl{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof zt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let o=this.nodes.length-1,r=this.nodes[o],s=this.offsets[o],l=s>>1,d=r instanceof zt?r.text.length:r.children.length;if(l==(t>0?d:0)){if(o==0)return this.done=!0,this.value="",this;t>0&&this.offsets[o-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[o]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
336
|
+
`,this;e--}else if(r instanceof zt){let h=r.text[l+(t<0?-1:0)];if(this.offsets[o]+=t,h.length>Math.max(0,e))return this.value=e==0?h:t>0?h.slice(e):h.slice(0,h.length-e),this;e-=h.length}else{let h=r.children[l+(t<0?-1:0)];e>h.length?(e-=h.length,this.offsets[o]+=t):(t<0&&this.offsets[o]--,this.nodes.push(h),this.offsets.push(t>0?1:(h instanceof zt?h.text.length:h.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class dw{constructor(e,t,o){this.value="",this.done=!1,this.cursor=new Fl(e,t>o?-1:1),this.pos=t>o?e.length:0,this.from=Math.min(t,o),this.to=Math.max(t,o)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let o=t<0?this.pos-this.from:this.to-this.pos;e>o&&(e=o),o-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=o?r:t<0?r.slice(r.length-o):r.slice(0,o),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class fw{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:o,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):o?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(pt.prototype[Symbol.iterator]=function(){return this.iter()},Fl.prototype[Symbol.iterator]=dw.prototype[Symbol.iterator]=fw.prototype[Symbol.iterator]=function(){return this});class WD{constructor(e,t,o,r){this.from=e,this.to=t,this.number=o,this.text=r}get length(){return this.to-this.from}}function Oa(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let va="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<va.length;n++)va[n]+=va[n-1];function UD(n){for(let e=1;e<va.length;e+=2)if(va[e]>n)return va[e-1]<=n;return!1}function hw(n){return n>=127462&&n<=127487}const pw=8205;function xn(n,e,t=!0,o=!0){return(t?mw:HD)(n,e,o)}function mw(n,e,t){if(e==n.length)return e;e&&gw(n.charCodeAt(e))&&Ow(n.charCodeAt(e-1))&&e--;let o=wn(n,e);for(e+=_o(o);e<n.length;){let r=wn(n,e);if(o==pw||r==pw||t&&UD(r))e+=_o(r),o=r;else if(hw(r)){let s=0,l=e-2;for(;l>=0&&hw(wn(n,l));)s++,l-=2;if(s%2==0)break;e+=2}else break}return e}function HD(n,e,t){for(;e>0;){let o=mw(n,e-2,t);if(o<e)return o;e--}return 0}function gw(n){return n>=56320&&n<57344}function Ow(n){return n>=55296&&n<56320}function wn(n,e){let t=n.charCodeAt(e);if(!Ow(t)||e+1==n.length)return t;let o=n.charCodeAt(e+1);return gw(o)?(t-55296<<10)+(o-56320)+65536:t}function ym(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function _o(n){return n<65536?1:2}const bm=/\r\n?|\n/;var Sn=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Sn||(Sn={}));class ui{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let o=this.sections[t+1];e+=o<0?this.sections[t]:o}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,o=0,r=0;t<this.sections.length;){let s=this.sections[t++],l=this.sections[t++];l<0?(e(o,r,s),r+=s):r+=l,o+=s}}iterChangedRanges(e,t=!1){xm(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];r<0?e.push(o,r):e.push(r,o)}return new ui(e)}composeDesc(e){return this.empty?e:e.empty?this:vw(this,e)}mapDesc(e,t=!1){return e.empty?this:wm(this,e,t)}mapPos(e,t=-1,o=Sn.Simple){let r=0,s=0;for(let l=0;l<this.sections.length;){let d=this.sections[l++],h=this.sections[l++],m=r+d;if(h<0){if(m>e)return s+(e-r);s+=d}else{if(o!=Sn.Simple&&m>=e&&(o==Sn.TrackDel&&r<e&&m>e||o==Sn.TrackBefore&&r<e||o==Sn.TrackAfter&&m>e))return null;if(m>e||m==e&&t<0&&!d)return e==r||t<0?s:s+h;s+=h}r=m}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let o=0,r=0;o<this.sections.length&&r<=t;){let s=this.sections[o++],l=this.sections[o++],d=r+s;if(l>=0&&r<=t&&d>=e)return r<e&&d>t?"cover":!0;r=d}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+o+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ui(e)}static create(e){return new ui(e)}}class rn extends ui{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return xm(this,(t,o,r,s,l)=>e=e.replace(r,r+(o-t),l),!1),e}mapDesc(e,t=!1){return wm(this,e,t,!0)}invert(e){let t=this.sections.slice(),o=[];for(let r=0,s=0;r<t.length;r+=2){let l=t[r],d=t[r+1];if(d>=0){t[r]=d,t[r+1]=l;let h=r>>1;for(;o.length<h;)o.push(pt.empty);o.push(l?e.slice(s,s+l):pt.empty)}s+=l}return new rn(t,o)}compose(e){return this.empty?e:e.empty?this:vw(this,e,!0)}map(e,t=!1){return e.empty?this:wm(this,e,t,!0)}iterChanges(e,t=!1){xm(this,e,t)}get desc(){return ui.create(this.sections)}filter(e){let t=[],o=[],r=[],s=new Zl(this);e:for(let l=0,d=0;;){let h=l==e.length?1e9:e[l++];for(;d<h||d==h&&s.len==0;){if(s.done)break e;let g=Math.min(s.len,h-d);Mn(r,g,-1);let v=s.ins==-1?-1:s.off==0?s.ins:0;Mn(t,g,v),v>0&&er(o,t,s.text),s.forward(g),d+=g}let m=e[l++];for(;d<m;){if(s.done)break e;let g=Math.min(s.len,m-d);Mn(t,g,-1),Mn(r,g,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(g),d+=g}}return{changes:new rn(t,o),filtered:ui.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let o=this.sections[t],r=this.sections[t+1];r<0?e.push(o):r==0?e.push([o]):e.push([o].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,o){let r=[],s=[],l=0,d=null;function h(g=!1){if(!g&&!r.length)return;l<t&&Mn(r,t-l,-1);let v=new rn(r,s);d=d?d.compose(v.map(d)):v,r=[],s=[],l=0}function m(g){if(Array.isArray(g))for(let v of g)m(v);else if(g instanceof rn){if(g.length!=t)throw new RangeError(`Mismatched change set length (got ${g.length}, expected ${t})`);h(),d=d?d.compose(g.map(d)):g}else{let{from:v,to:b=v,insert:x}=g;if(v>b||v<0||b>t)throw new RangeError(`Invalid change range ${v} to ${b} (in doc of length ${t})`);let C=x?typeof x=="string"?pt.of(x.split(o||bm)):x:pt.empty,k=C.length;if(v==b&&k==0)return;v<l&&h(),v>l&&Mn(r,v-l,-1),Mn(r,b-v,k),er(s,r,C),l=b}}return m(e),h(!d),d}static empty(e){return new rn(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],o=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((l,d)=>d&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;o.length<r;)o.push(pt.empty);o[r]=pt.of(s.slice(1)),t.push(s[0],o[r].length)}}}return new rn(t,o)}static createSet(e,t){return new rn(e,t)}}function Mn(n,e,t,o=!1){if(e==0&&t<=0)return;let r=n.length-2;r>=0&&t<=0&&t==n[r+1]?n[r]+=e:e==0&&n[r]==0?n[r+1]+=t:o?(n[r]+=e,n[r+1]+=t):n.push(e,t)}function er(n,e,t){if(t.length==0)return;let o=e.length-2>>1;if(o<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<o;)n.push(pt.empty);n.push(t)}}function xm(n,e,t){let o=n.inserted;for(let r=0,s=0,l=0;l<n.sections.length;){let d=n.sections[l++],h=n.sections[l++];if(h<0)r+=d,s+=d;else{let m=r,g=s,v=pt.empty;for(;m+=d,g+=h,h&&o&&(v=v.append(o[l-2>>1])),!(t||l==n.sections.length||n.sections[l+1]<0);)d=n.sections[l++],h=n.sections[l++];e(r,m,s,g,v),r=m,s=g}}}function wm(n,e,t,o=!1){let r=[],s=o?[]:null,l=new Zl(n),d=new Zl(e);for(let h=-1;;)if(l.ins==-1&&d.ins==-1){let m=Math.min(l.len,d.len);Mn(r,m,-1),l.forward(m),d.forward(m)}else if(d.ins>=0&&(l.ins<0||h==l.i||l.off==0&&(d.len<l.len||d.len==l.len&&!t))){let m=d.len;for(Mn(r,d.ins,-1);m;){let g=Math.min(l.len,m);l.ins>=0&&h<l.i&&l.len<=g&&(Mn(r,0,l.ins),s&&er(s,r,l.text),h=l.i),l.forward(g),m-=g}d.next()}else if(l.ins>=0){let m=0,g=l.len;for(;g;)if(d.ins==-1){let v=Math.min(g,d.len);m+=v,g-=v,d.forward(v)}else if(d.ins==0&&d.len<g)g-=d.len,d.next();else break;Mn(r,m,h<l.i?l.ins:0),s&&h<l.i&&er(s,r,l.text),h=l.i,l.forward(l.len-g)}else{if(l.done&&d.done)return s?rn.createSet(r,s):ui.create(r);throw new Error("Mismatched change set lengths")}}function vw(n,e,t=!1){let o=[],r=t?[]:null,s=new Zl(n),l=new Zl(e);for(let d=!1;;){if(s.done&&l.done)return r?rn.createSet(o,r):ui.create(o);if(s.ins==0)Mn(o,s.len,0,d),s.next();else if(l.len==0&&!l.done)Mn(o,0,l.ins,d),r&&er(r,o,l.text),l.next();else{if(s.done||l.done)throw new Error("Mismatched change set lengths");{let h=Math.min(s.len2,l.len),m=o.length;if(s.ins==-1){let g=l.ins==-1?-1:l.off?0:l.ins;Mn(o,h,g,d),r&&g&&er(r,o,l.text)}else l.ins==-1?(Mn(o,s.off?0:s.len,h,d),r&&er(r,o,s.textBit(h))):(Mn(o,s.off?0:s.len,l.off?0:l.ins,d),r&&!l.off&&er(r,o,l.text));d=(s.ins>h||l.ins>=0&&l.len>h)&&(d||o.length>m),s.forward2(h),l.forward(h)}}}}class Zl{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?pt.empty:e[t]}textBit(e){let{inserted:t}=this.set,o=this.i-2>>1;return o>=t.length&&!e?pt.empty:t[o].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ss{constructor(e,t,o){this.from=e,this.to=t,this.flags=o}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let o,r;return this.empty?o=r=e.mapPos(this.from,t):(o=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),o==this.from&&r==this.to?this:new ss(o,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return we.range(e,t);let o=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return we.range(this.anchor,o)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return we.range(e.anchor,e.head)}static create(e,t,o){return new ss(e,t,o)}}class we{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:we.create(this.ranges.map(o=>o.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;o<this.ranges.length;o++)if(!this.ranges[o].eq(e.ranges[o],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new we([this.main],0)}addRange(e,t=!0){return we.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let o=this.ranges.slice();return o[t]=e,we.create(o,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new we(e.ranges.map(t=>ss.fromJSON(t)),e.main)}static single(e,t=e){return new we([we.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let o=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=o:s.from<o)return we.normalized(e.slice(),t);o=s.to}return new we(e,t)}static cursor(e,t=0,o,r){return ss.create(e,e,(t==0?0:t<0?8:16)|(o==null?7:Math.min(6,o))|(r??16777215)<<6)}static range(e,t,o,r){let s=(o??16777215)<<6|(r==null?7:Math.min(6,r));return t<e?ss.create(t,e,48|s):ss.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let o=e[t];e.sort((r,s)=>r.from-s.from),t=e.indexOf(o);for(let r=1;r<e.length;r++){let s=e[r],l=e[r-1];if(s.empty?s.from<=l.to:s.from<l.to){let d=l.from,h=Math.max(s.to,l.to);r<=t&&t--,e.splice(--r,2,s.anchor>s.head?we.range(h,d):we.range(d,h))}}return new we(e,t)}}function yw(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Sm=0;class Le{constructor(e,t,o,r,s){this.combine=e,this.compareInput=t,this.compare=o,this.isStatic=r,this.id=Sm++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new Le(e.combine||(t=>t),e.compareInput||((t,o)=>t===o),e.compare||(e.combine?(t,o)=>t===o:Cm),!!e.static,e.enables)}of(e){return new ld([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ld(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ld(e,this,2,t)}from(e,t){return t||(t=o=>o),this.compute([e],o=>t(o.field(e)))}}function Cm(n,e){return n==e||n.length==e.length&&n.every((t,o)=>t===e[o])}class ld{constructor(e,t,o,r){this.dependencies=e,this.facet=t,this.type=o,this.value=r,this.id=Sm++}dynamicSlot(e){var t;let o=this.value,r=this.facet.compareInput,s=this.id,l=e[s]>>1,d=this.type==2,h=!1,m=!1,g=[];for(let v of this.dependencies)v=="doc"?h=!0:v=="selection"?m=!0:((t=e[v.id])!==null&&t!==void 0?t:1)&1||g.push(e[v.id]);return{create(v){return v.values[l]=o(v),1},update(v,b){if(h&&b.docChanged||m&&(b.docChanged||b.selection)||km(v,g)){let x=o(v);if(d?!bw(x,v.values[l],r):!r(x,v.values[l]))return v.values[l]=x,1}return 0},reconfigure:(v,b)=>{let x,C=b.config.address[s];if(C!=null){let k=ud(b,C);if(this.dependencies.every(M=>M instanceof Le?b.facet(M)===v.facet(M):M instanceof fn?b.field(M,!1)==v.field(M,!1):!0)||(d?bw(x=o(v),k,r):r(x=o(v),k)))return v.values[l]=k,0}else x=o(v);return v.values[l]=x,1}}}}function bw(n,e,t){if(n.length!=e.length)return!1;for(let o=0;o<n.length;o++)if(!t(n[o],e[o]))return!1;return!0}function km(n,e){let t=!1;for(let o of e)Ul(n,o)&1&&(t=!0);return t}function XD(n,e,t){let o=t.map(h=>n[h.id]),r=t.map(h=>h.type),s=o.filter(h=>!(h&1)),l=n[e.id]>>1;function d(h){let m=[];for(let g=0;g<o.length;g++){let v=ud(h,o[g]);if(r[g]==2)for(let b of v)m.push(b);else m.push(v)}return e.combine(m)}return{create(h){for(let m of o)Ul(h,m);return h.values[l]=d(h),1},update(h,m){if(!km(h,s))return 0;let g=d(h);return e.compare(g,h.values[l])?0:(h.values[l]=g,1)},reconfigure(h,m){let g=km(h,o),v=m.config.facets[e.id],b=m.facet(e);if(v&&!g&&Cm(t,v))return h.values[l]=b,0;let x=d(h);return e.compare(x,b)?(h.values[l]=b,0):(h.values[l]=x,1)}}}const xw=Le.define({static:!0});class fn{constructor(e,t,o,r,s){this.id=e,this.createF=t,this.updateF=o,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let t=new fn(Sm++,e.create,e.update,e.compare||((o,r)=>o===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(xw).find(o=>o.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:o=>(o.values[t]=this.create(o),1),update:(o,r)=>{let s=o.values[t],l=this.updateF(s,r);return this.compareF(s,l)?0:(o.values[t]=l,1)},reconfigure:(o,r)=>r.config.address[this.id]!=null?(o.values[t]=r.field(this),0):(o.values[t]=this.create(o),1)}}init(e){return[this,xw.of({field:this,create:e})]}get extension(){return this}}const as={lowest:4,low:3,default:2,high:1,highest:0};function zl(n){return e=>new ww(e,n)}const tr={highest:zl(as.highest),high:zl(as.high),default:zl(as.default),low:zl(as.low),lowest:zl(as.lowest)};class ww{constructor(e,t){this.inner=e,this.prec=t}}class Wl{of(e){return new Pm(this,e)}reconfigure(e){return Wl.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Pm{constructor(e,t){this.compartment=e,this.inner=t}}class cd{constructor(e,t,o,r,s,l){for(this.base=e,this.compartments=t,this.dynamicSlots=o,this.address=r,this.staticValues=s,this.facets=l,this.statusTemplate=[];this.statusTemplate.length<o.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,o){let r=[],s=Object.create(null),l=new Map;for(let b of YD(e,t,l))b instanceof fn?r.push(b):(s[b.facet.id]||(s[b.facet.id]=[])).push(b);let d=Object.create(null),h=[],m=[];for(let b of r)d[b.id]=m.length<<1,m.push(x=>b.slot(x));let g=o?.config.facets;for(let b in s){let x=s[b],C=x[0].facet,k=g&&g[b]||[];if(x.every(M=>M.type==0))if(d[C.id]=h.length<<1|1,Cm(k,x))h.push(o.facet(C));else{let M=C.combine(x.map(_=>_.value));h.push(o&&C.compare(M,o.facet(C))?o.facet(C):M)}else{for(let M of x)M.type==0?(d[M.id]=h.length<<1|1,h.push(M.value)):(d[M.id]=m.length<<1,m.push(_=>M.dynamicSlot(_)));d[C.id]=m.length<<1,m.push(M=>XD(M,C,x))}}let v=m.map(b=>b(d));return new cd(e,l,v,d,h,s)}}function YD(n,e,t){let o=[[],[],[],[],[]],r=new Map;function s(l,d){let h=r.get(l);if(h!=null){if(h<=d)return;let m=o[h].indexOf(l);m>-1&&o[h].splice(m,1),l instanceof Pm&&t.delete(l.compartment)}if(r.set(l,d),Array.isArray(l))for(let m of l)s(m,d);else if(l instanceof Pm){if(t.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let m=e.get(l.compartment)||l.inner;t.set(l.compartment,m),s(m,d)}else if(l instanceof ww)s(l.inner,l.prec);else if(l instanceof fn)o[d].push(l),l.provides&&s(l.provides,d);else if(l instanceof ld)o[d].push(l),l.facet.extensions&&s(l.facet.extensions,as.default);else{let m=l.extension;if(!m)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(m,d)}}return s(n,as.default),o.reduce((l,d)=>l.concat(d))}function Ul(n,e){if(e&1)return 2;let t=e>>1,o=n.status[t];if(o==4)throw new Error("Cyclic dependency between fields and/or facets");if(o&2)return o;n.status[t]=4;let r=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|r}function ud(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Sw=Le.define(),Em=Le.define({combine:n=>n.some(e=>e),static:!0}),Cw=Le.define({combine:n=>n.length?n[0]:void 0,static:!0}),kw=Le.define(),Pw=Le.define(),Ew=Le.define(),Tw=Le.define({combine:n=>n.length?n[0]:!1});class Ri{constructor(e,t){this.type=e,this.value=t}static define(){return new GD}}class GD{of(e){return new Ri(this,e)}}class KD{constructor(e){this.map=e}of(e){return new nt(this,e)}}class nt{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new nt(this.type,t)}is(e){return this.type==e}static define(e={}){return new KD(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let o=[];for(let r of e){let s=r.map(t);s&&o.push(s)}return o}}nt.reconfigure=nt.define(),nt.appendConfig=nt.define();class Jt{constructor(e,t,o,r,s,l){this.startState=e,this.changes=t,this.selection=o,this.effects=r,this.annotations=s,this.scrollIntoView=l,this._doc=null,this._state=null,o&&yw(o,t.newLength),s.some(d=>d.type==Jt.time)||(this.annotations=s.concat(Jt.time.of(Date.now())))}static create(e,t,o,r,s,l){return new Jt(e,t,o,r,s,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Jt.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Jt.time=Ri.define(),Jt.userEvent=Ri.define(),Jt.addToHistory=Ri.define(),Jt.remote=Ri.define();function JD(n,e){let t=[];for(let o=0,r=0;;){let s,l;if(o<n.length&&(r==e.length||e[r]>=n[o]))s=n[o++],l=n[o++];else if(r<e.length)s=e[r++],l=e[r++];else return t;!t.length||t[t.length-1]<s?t.push(s,l):t[t.length-1]<l&&(t[t.length-1]=l)}}function _w(n,e,t){var o;let r,s,l;return t?(r=e.changes,s=rn.empty(e.changes.length),l=n.changes.compose(e.changes)):(r=e.changes.map(n.changes),s=n.changes.mapDesc(e.changes,!0),l=n.changes.compose(r)),{changes:l,selection:e.selection?e.selection.map(s):(o=n.selection)===null||o===void 0?void 0:o.map(r),effects:nt.mapEffects(n.effects,r).concat(nt.mapEffects(e.effects,s)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Tm(n,e,t){let o=e.selection,r=ya(e.annotations);return e.userEvent&&(r=r.concat(Jt.userEvent.of(e.userEvent))),{changes:e.changes instanceof rn?e.changes:rn.of(e.changes||[],t,n.facet(Cw)),selection:o&&(o instanceof we?o:we.single(o.anchor,o.head)),effects:ya(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function Nw(n,e,t){let o=Tm(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let l=!!e[s].sequential;o=_w(o,Tm(n,e[s],l?o.changes.newLength:n.doc.length),l)}let r=Jt.create(n,o.changes,o.selection,o.effects,o.annotations,o.scrollIntoView);return qD(t?$D(r):r)}function $D(n){let e=n.startState,t=!0;for(let r of e.facet(kw)){let s=r(n);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:JD(t,s))}if(t!==!0){let r,s;if(t===!1)s=n.changes.invertedDesc,r=rn.empty(e.doc.length);else{let l=n.changes.filter(t);r=l.changes,s=l.filtered.mapDesc(l.changes).invertedDesc}n=Jt.create(e,r,n.selection&&n.selection.map(s),nt.mapEffects(n.effects,s),n.annotations,n.scrollIntoView)}let o=e.facet(Pw);for(let r=o.length-1;r>=0;r--){let s=o[r](n);s instanceof Jt?n=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Jt?n=s[0]:n=Nw(e,ya(s),!1)}return n}function qD(n){let e=n.startState,t=e.facet(Ew),o=n;for(let r=t.length-1;r>=0;r--){let s=t[r](n);s&&Object.keys(s).length&&(o=_w(o,Tm(e,s,n.changes.newLength),!0))}return o==n?n:Jt.create(e,n.changes,n.selection,o.effects,o.annotations,o.scrollIntoView)}const eB=[];function ya(n){return n==null?eB:Array.isArray(n)?n:[n]}var Qt=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(Qt||(Qt={}));const tB=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let _m;try{_m=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function nB(n){if(_m)return _m.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||tB.test(t)))return!0}return!1}function oB(n){return e=>{if(!/\S/.test(e))return Qt.Space;if(nB(e))return Qt.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return Qt.Word;return Qt.Other}}class dt{constructor(e,t,o,r,s,l){this.config=e,this.doc=t,this.selection=o,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,l&&(l._state=this);for(let d=0;d<this.config.dynamicSlots.length;d++)Ul(this,d<<1);this.computeSlot=null}field(e,t=!0){let o=this.config.address[e.id];if(o==null){if(t)throw new RangeError("Field is not present in this state");return}return Ul(this,o),ud(this,o)}update(...e){return Nw(this,e,!0)}applyTransaction(e){let t=this.config,{base:o,compartments:r}=t;for(let d of e.effects)d.is(Wl.reconfigure)?(t&&(r=new Map,t.compartments.forEach((h,m)=>r.set(m,h)),t=null),r.set(d.value.compartment,d.value.extension)):d.is(nt.reconfigure)?(t=null,o=d.value):d.is(nt.appendConfig)&&(t=null,o=ya(o).concat(d.value));let s;t?s=e.startState.values.slice():(t=cd.resolve(o,r,this),s=new dt(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(h,m)=>m.reconfigure(h,this),null).values);let l=e.startState.facet(Em)?e.newSelection:e.newSelection.asSingle();new dt(t,e.newDoc,l,s,(d,h)=>h.update(d,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:we.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,o=e(t.ranges[0]),r=this.changes(o.changes),s=[o.range],l=ya(o.effects);for(let d=1;d<t.ranges.length;d++){let h=e(t.ranges[d]),m=this.changes(h.changes),g=m.map(r);for(let b=0;b<d;b++)s[b]=s[b].map(g);let v=r.mapDesc(m,!0);s.push(h.range.map(v)),r=r.compose(g),l=nt.mapEffects(l,g).concat(nt.mapEffects(ya(h.effects),v))}return{changes:r,selection:we.create(s,t.mainIndex),effects:l}}changes(e=[]){return e instanceof rn?e:rn.of(e,this.doc.length,this.facet(dt.lineSeparator))}toText(e){return pt.of(e.split(this.facet(dt.lineSeparator)||bm))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Ul(this,t),ud(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let o in e){let r=e[o];r instanceof fn&&this.config.address[r.id]!=null&&(t[o]=r.spec.toJSON(this.field(e[o]),this))}return t}static fromJSON(e,t={},o){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(o){for(let s in o)if(Object.prototype.hasOwnProperty.call(e,s)){let l=o[s],d=e[s];r.push(l.init(h=>l.spec.fromJSON(d,h)))}}return dt.create({doc:e.doc,selection:we.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=cd.resolve(e.extensions||[],new Map),o=e.doc instanceof pt?e.doc:pt.of((e.doc||"").split(t.staticFacet(dt.lineSeparator)||bm)),r=e.selection?e.selection instanceof we?e.selection:we.single(e.selection.anchor,e.selection.head):we.single(0);return yw(r,o.length),t.staticFacet(Em)||(r=r.asSingle()),new dt(t,o,r,t.dynamicSlots.map(()=>null),(s,l)=>l.create(s),null)}get tabSize(){return this.facet(dt.tabSize)}get lineBreak(){return this.facet(dt.lineSeparator)||`
|
|
337
|
+
`}get readOnly(){return this.facet(Tw)}phrase(e,...t){for(let o of this.facet(dt.phrases))if(Object.prototype.hasOwnProperty.call(o,e)){e=o[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(o,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?o:t[s-1]})),e}languageDataAt(e,t,o=-1){let r=[];for(let s of this.facet(Sw))for(let l of s(this,t,o))Object.prototype.hasOwnProperty.call(l,e)&&r.push(l[e]);return r}charCategorizer(e){return oB(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:o,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),l=e-o,d=e-o;for(;l>0;){let h=xn(t,l,!1);if(s(t.slice(h,l))!=Qt.Word)break;l=h}for(;d<r;){let h=xn(t,d);if(s(t.slice(d,h))!=Qt.Word)break;d=h}return l==d?null:we.range(l+o,d+o)}}dt.allowMultipleSelections=Em,dt.tabSize=Le.define({combine:n=>n.length?n[0]:4}),dt.lineSeparator=Cw,dt.readOnly=Tw,dt.phrases=Le.define({compare(n,e){let t=Object.keys(n),o=Object.keys(e);return t.length==o.length&&t.every(r=>n[r]==e[r])}}),dt.languageData=Sw,dt.changeFilter=kw,dt.transactionFilter=Pw,dt.transactionExtender=Ew,Wl.reconfigure=nt.define();function di(n,e,t={}){let o={};for(let r of n)for(let s of Object.keys(r)){let l=r[s],d=o[s];if(d===void 0)o[s]=l;else if(!(d===l||l===void 0))if(Object.hasOwnProperty.call(t,s))o[s]=t[s](d,l);else throw new Error("Config merge conflict for field "+s)}for(let r in e)o[r]===void 0&&(o[r]=e[r]);return o}class ls{eq(e){return this==e}range(e,t=e){return Nm.create(e,t,this)}}ls.prototype.startSide=ls.prototype.endSide=0,ls.prototype.point=!1,ls.prototype.mapMode=Sn.TrackDel;let Nm=class A5{constructor(e,t,o){this.from=e,this.to=t,this.value=o}static create(e,t,o){return new A5(e,t,o)}};function Am(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Rm{constructor(e,t,o,r){this.from=e,this.to=t,this.value=o,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,o,r=0){let s=o?this.to:this.from;for(let l=r,d=s.length;;){if(l==d)return l;let h=l+d>>1,m=s[h]-e||(o?this.value[h].endSide:this.value[h].startSide)-t;if(h==l)return m>=0?l:d;m>=0?d=h:l=h+1}}between(e,t,o,r){for(let s=this.findIndex(t,-1e9,!0),l=this.findIndex(o,1e9,!1,s);s<l;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let o=[],r=[],s=[],l=-1,d=-1;for(let h=0;h<this.value.length;h++){let m=this.value[h],g=this.from[h]+e,v=this.to[h]+e,b,x;if(g==v){let C=t.mapPos(g,m.startSide,m.mapMode);if(C==null||(b=x=C,m.startSide!=m.endSide&&(x=t.mapPos(g,m.endSide),x<b)))continue}else if(b=t.mapPos(g,m.startSide),x=t.mapPos(v,m.endSide),b>x||b==x&&m.startSide>0&&m.endSide<=0)continue;(x-b||m.endSide-m.startSide)<0||(l<0&&(l=b),m.point&&(d=Math.max(d,x-b)),o.push(m),r.push(b-l),s.push(x-l))}return{mapped:o.length?new Rm(r,s,o,d):null,pos:l}}}class mt{constructor(e,t,o,r){this.chunkPos=e,this.chunk=t,this.nextLayer=o,this.maxPoint=r}static create(e,t,o,r){return new mt(e,t,o,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:o=!1,filterFrom:r=0,filterTo:s=this.length}=e,l=e.filter;if(t.length==0&&!l)return this;if(o&&(t=t.slice().sort(Am)),this.isEmpty)return t.length?mt.of(t):this;let d=new Rw(this,null,-1).goto(0),h=0,m=[],g=new nr;for(;d.value||h<t.length;)if(h<t.length&&(d.from-t[h].from||d.startSide-t[h].value.startSide)>=0){let v=t[h++];g.addInner(v.from,v.to,v.value)||m.push(v)}else d.rangeIndex==1&&d.chunkIndex<this.chunk.length&&(h==t.length||this.chunkEnd(d.chunkIndex)<t[h].from)&&(!l||r>this.chunkEnd(d.chunkIndex)||s<this.chunkPos[d.chunkIndex])&&g.addChunk(this.chunkPos[d.chunkIndex],this.chunk[d.chunkIndex])?d.nextChunk():((!l||r>d.to||s<d.from||l(d.from,d.to,d.value))&&(g.addInner(d.from,d.to,d.value)||m.push(Nm.create(d.from,d.to,d.value))),d.next());return g.finishInner(this.nextLayer.isEmpty&&!m.length?mt.empty:this.nextLayer.update({add:m,filter:l,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],o=[],r=-1;for(let l=0;l<this.chunk.length;l++){let d=this.chunkPos[l],h=this.chunk[l],m=e.touchesRange(d,d+h.length);if(m===!1)r=Math.max(r,h.maxPoint),t.push(h),o.push(e.mapPos(d));else if(m===!0){let{mapped:g,pos:v}=h.map(d,e);g&&(r=Math.max(r,g.maxPoint),t.push(g),o.push(v))}}let s=this.nextLayer.map(e);return t.length==0?s:new mt(o,t,s||mt.empty,r)}between(e,t,o){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],l=this.chunk[r];if(t>=s&&e<=s+l.length&&l.between(s,e-s,t-s,o)===!1)return}this.nextLayer.between(e,t,o)}}iter(e=0){return Hl.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Hl.from(e).goto(t)}static compare(e,t,o,r,s=-1){let l=e.filter(v=>v.maxPoint>0||!v.isEmpty&&v.maxPoint>=s),d=t.filter(v=>v.maxPoint>0||!v.isEmpty&&v.maxPoint>=s),h=Aw(l,d,o),m=new Xl(l,h,s),g=new Xl(d,h,s);o.iterGaps((v,b,x)=>Mw(m,v,g,b,x,r)),o.empty&&o.length==0&&Mw(m,0,g,0,0,r)}static eq(e,t,o=0,r){r==null&&(r=999999999);let s=e.filter(g=>!g.isEmpty&&t.indexOf(g)<0),l=t.filter(g=>!g.isEmpty&&e.indexOf(g)<0);if(s.length!=l.length)return!1;if(!s.length)return!0;let d=Aw(s,l),h=new Xl(s,d,0).goto(o),m=new Xl(l,d,0).goto(o);for(;;){if(h.to!=m.to||!Qm(h.active,m.active)||h.point&&(!m.point||!h.point.eq(m.point)))return!1;if(h.to>r)return!0;h.next(),m.next()}}static spans(e,t,o,r,s=-1){let l=new Xl(e,null,s).goto(t),d=t,h=l.openStart;for(;;){let m=Math.min(l.to,o);if(l.point){let g=l.activeForPoint(l.to),v=l.pointFrom<t?g.length+1:l.point.startSide<0?g.length:Math.min(g.length,h);r.point(d,m,l.point,g,v,l.pointRank),h=Math.min(l.openEnd(m),g.length)}else m>d&&(r.span(d,m,l.active,h),h=l.openEnd(m));if(l.to>o)return h+(l.point&&l.to>o?1:0);d=l.to,l.next()}}static of(e,t=!1){let o=new nr;for(let r of e instanceof Nm?[e]:t?iB(e):e)o.add(r.from,r.to,r.value);return o.finish()}static join(e){if(!e.length)return mt.empty;let t=e[e.length-1];for(let o=e.length-2;o>=0;o--)for(let r=e[o];r!=mt.empty;r=r.nextLayer)t=new mt(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}mt.empty=new mt([],[],null,-1);function iB(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let o=n[t];if(Am(e,o)>0)return n.slice().sort(Am);e=o}return n}mt.empty.nextLayer=mt.empty;class nr{finishChunk(e){this.chunks.push(new Rm(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,o){this.addInner(e,t,o)||(this.nextLayer||(this.nextLayer=new nr)).add(e,t,o)}addInner(e,t,o){let r=e-this.lastTo||o.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||o.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=o,this.lastFrom=e,this.lastTo=t,this.value.push(o),o.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let o=t.value.length-1;return this.last=t.value[o],this.lastFrom=t.from[o]+e,this.lastTo=t.to[o]+e,!0}finish(){return this.finishInner(mt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=mt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Aw(n,e,t){let o=new Map;for(let s of n)for(let l=0;l<s.chunk.length;l++)s.chunk[l].maxPoint<=0&&o.set(s.chunk[l],s.chunkPos[l]);let r=new Set;for(let s of e)for(let l=0;l<s.chunk.length;l++){let d=o.get(s.chunk[l]);d!=null&&(t?t.mapPos(d):d)==s.chunkPos[l]&&!t?.touchesRange(d,d+s.chunk[l].length)&&r.add(s.chunk[l])}return r}class Rw{constructor(e,t,o,r=0){this.layer=e,this.skip=t,this.minPoint=o,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,o){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,o=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!o||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],o=e+t.from[this.rangeIndex];if(this.from=o,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Hl{constructor(e){this.heap=e}static from(e,t=null,o=-1){let r=[];for(let s=0;s<e.length;s++)for(let l=e[s];!l.isEmpty;l=l.nextLayer)l.maxPoint>=o&&r.push(new Rw(l,t,o,s));return r.length==1?r[0]:new Hl(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let o of this.heap)o.goto(e,t);for(let o=this.heap.length>>1;o>=0;o--)Mm(this.heap,o);return this.next(),this}forward(e,t){for(let o of this.heap)o.forward(e,t);for(let o=this.heap.length>>1;o>=0;o--)Mm(this.heap,o);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Mm(this.heap,0)}}}function Mm(n,e){for(let t=n[e];;){let o=(e<<1)+1;if(o>=n.length)break;let r=n[o];if(o+1<n.length&&r.compare(n[o+1])>=0&&(r=n[o+1],o++),t.compare(r)<0)break;n[o]=t,n[e]=r,e=o}}class Xl{constructor(e,t,o){this.minPoint=o,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Hl.from(e,t,o)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){dd(this.active,e),dd(this.activeTo,e),dd(this.activeRank,e),this.minActive=Qw(this.active,this.activeTo)}addActive(e){let t=0,{value:o,to:r,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||r-this.activeTo[t])>0;)t++;fd(this.active,t,o),fd(this.activeTo,t,r),fd(this.activeRank,t,s),e&&fd(e,t,this.cursor.from),this.minActive=Qw(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let o=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),o&&dd(o,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(o),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(o){this.openStart=0;for(let r=o.length-1;r>=0&&o[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let o=this.active.length-1;o>=0&&!(this.activeRank[o]<this.pointRank);o--)(this.activeTo[o]>e||this.activeTo[o]==e&&this.active[o].endSide>=this.point.endSide)&&t.push(this.active[o]);return t.reverse()}openEnd(e){let t=0;for(let o=this.activeTo.length-1;o>=0&&this.activeTo[o]>e;o--)t++;return t}}function Mw(n,e,t,o,r,s){n.goto(e),t.goto(o);let l=o+r,d=o,h=o-e;for(;;){let m=n.to+h-t.to||n.endSide-t.endSide,g=m<0?n.to+h:t.to,v=Math.min(g,l);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&Qm(n.activeForPoint(n.to),t.activeForPoint(t.to))||s.comparePoint(d,v,n.point,t.point):v>d&&!Qm(n.active,t.active)&&s.compareRange(d,v,n.active,t.active),g>l)break;d=g,m<=0&&n.next(),m>=0&&t.next()}}function Qm(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function dd(n,e){for(let t=e,o=n.length-1;t<o;t++)n[t]=n[t+1];n.pop()}function fd(n,e,t){for(let o=n.length-1;o>=e;o--)n[o+1]=n[o];n[e]=t}function Qw(n,e){let t=-1,o=1e9;for(let r=0;r<e.length;r++)(e[r]-o||n[r].endSide-n[t].endSide)<0&&(t=r,o=e[r]);return t}function ba(n,e,t=n.length){let o=0;for(let r=0;r<t;)n.charCodeAt(r)==9?(o+=e-o%e,r++):(o++,r=xn(n,r));return o}function Im(n,e,t,o){for(let r=0,s=0;;){if(s>=e)return r;if(r==n.length)break;s+=n.charCodeAt(r)==9?t-s%t:1,r=xn(n,r)}return o===!0?-1:n.length}const Dm="ͼ",Iw=typeof Symbol>"u"?"__"+Dm:Symbol.for(Dm),Bm=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Dw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class or{constructor(e,t){this.rules=[];let{finish:o}=t||{};function r(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function s(l,d,h,m){let g=[],v=/^@(\w+)\b/.exec(l[0]),b=v&&v[1]=="keyframes";if(v&&d==null)return h.push(l[0]+";");for(let x in d){let C=d[x];if(/&/.test(x))s(x.split(/,\s*/).map(k=>l.map(M=>k.replace(/&/,M))).reduce((k,M)=>k.concat(M)),C,h);else if(C&&typeof C=="object"){if(!v)throw new RangeError("The value of a property ("+x+") should be a primitive value.");s(r(x),C,g,b)}else C!=null&&g.push(x.replace(/_.*/,"").replace(/[A-Z]/g,k=>"-"+k.toLowerCase())+": "+C+";")}(g.length||b)&&h.push((o&&!v&&!m?l.map(o):l).join(", ")+" {"+g.join(" ")+"}")}for(let l in e)s(r(l),e[l],this.rules)}getRules(){return this.rules.join(`
|
|
338
|
+
`)}static newName(){let e=Dw[Iw]||1;return Dw[Iw]=e+1,Dm+e.toString(36)}static mount(e,t,o){let r=e[Bm],s=o&&o.nonce;r?s&&r.setNonce(s):r=new rB(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let Bw=new Map;class rB{constructor(e,t){let o=e.ownerDocument||e,r=o.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=Bw.get(o);if(s)return e[Bm]=s;this.sheet=new r.CSSStyleSheet,Bw.set(o,this)}else this.styleTag=o.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Bm]=this}mount(e,t){let o=this.sheet,r=0,s=0;for(let l=0;l<e.length;l++){let d=e[l],h=this.modules.indexOf(d);if(h<s&&h>-1&&(this.modules.splice(h,1),s--,h=-1),h==-1){if(this.modules.splice(s++,0,d),o)for(let m=0;m<d.rules.length;m++)o.insertRule(d.rules[m],r++)}else{for(;s<h;)r+=this.modules[s++].rules.length;r+=d.rules.length,s++}}if(o)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let l="";for(let h=0;h<this.modules.length;h++)l+=this.modules[h].getRules()+`
|
|
339
|
+
`;this.styleTag.textContent=l;let d=t.head||t;this.styleTag.parentNode!=d&&d.insertBefore(this.styleTag,d.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var ir={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Yl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},sB=typeof navigator<"u"&&/Mac/.test(navigator.platform),aB=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Cn=0;Cn<10;Cn++)ir[48+Cn]=ir[96+Cn]=String(Cn);for(var Cn=1;Cn<=24;Cn++)ir[Cn+111]="F"+Cn;for(var Cn=65;Cn<=90;Cn++)ir[Cn]=String.fromCharCode(Cn+32),Yl[Cn]=String.fromCharCode(Cn);for(var Vm in ir)Yl.hasOwnProperty(Vm)||(Yl[Vm]=ir[Vm]);function lB(n){var e=sB&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||aB&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Yl:ir)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Gl(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function Lm(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function cB(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hd(n,e){if(!e.anchorNode)return!1;try{return Lm(n,e.anchorNode)}catch{return!1}}function xa(n){return n.nodeType==3?us(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Kl(n,e,t,o){return t?Vw(n,e,t,o,-1)||Vw(n,e,t,o,1):!1}function cs(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function pd(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Vw(n,e,t,o,r){for(;;){if(n==t&&e==o)return!0;if(e==(r<0?0:Mi(n))){if(n.nodeName=="DIV")return!1;let s=n.parentNode;if(!s||s.nodeType!=1)return!1;e=cs(n)+(r<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?Mi(n):0}else return!1}}function Mi(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Jl(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function uB(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Lw(n,e){let t=e.width/n.offsetWidth,o=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(e.height-n.offsetHeight)<1)&&(o=1),{scaleX:t,scaleY:o}}function dB(n,e,t,o,r,s,l,d){let h=n.ownerDocument,m=h.defaultView||window;for(let g=n,v=!1;g&&!v;)if(g.nodeType==1){let b,x=g==h.body,C=1,k=1;if(x)b=uB(m);else{if(/^(fixed|sticky)$/.test(getComputedStyle(g).position)&&(v=!0),g.scrollHeight<=g.clientHeight&&g.scrollWidth<=g.clientWidth){g=g.assignedSlot||g.parentNode;continue}let E=g.getBoundingClientRect();({scaleX:C,scaleY:k}=Lw(g,E)),b={left:E.left,right:E.left+g.clientWidth*C,top:E.top,bottom:E.top+g.clientHeight*k}}let M=0,_=0;if(r=="nearest")e.top<b.top?(_=-(b.top-e.top+l),t>0&&e.bottom>b.bottom+_&&(_=e.bottom-b.bottom+_+l)):e.bottom>b.bottom&&(_=e.bottom-b.bottom+l,t<0&&e.top-_<b.top&&(_=-(b.top+_-e.top+l)));else{let E=e.bottom-e.top,F=b.bottom-b.top;_=(r=="center"&&E<=F?e.top+E/2-F/2:r=="start"||r=="center"&&t<0?e.top-l:e.bottom-F+l)-b.top}if(o=="nearest"?e.left<b.left?(M=-(b.left-e.left+s),t>0&&e.right>b.right+M&&(M=e.right-b.right+M+s)):e.right>b.right&&(M=e.right-b.right+s,t<0&&e.left<b.left+M&&(M=-(b.left+M-e.left+s))):M=(o=="center"?e.left+(e.right-e.left)/2-(b.right-b.left)/2:o=="start"==d?e.left-s:e.right-(b.right-b.left)+s)-b.left,M||_)if(x)m.scrollBy(M,_);else{let E=0,F=0;if(_){let D=g.scrollTop;g.scrollTop+=_/k,F=(g.scrollTop-D)*k}if(M){let D=g.scrollLeft;g.scrollLeft+=M/C,E=(g.scrollLeft-D)*C}e={left:e.left-E,top:e.top-F,right:e.right-E,bottom:e.bottom-F},E&&Math.abs(E-M)<1&&(o="nearest"),F&&Math.abs(F-_)<1&&(r="nearest")}if(x)break;g=g.assignedSlot||g.parentNode}else if(g.nodeType==11)g=g.host;else break}function fB(n){let e=n.ownerDocument,t,o;for(let r=n.parentNode;r&&!(r==e.body||t&&o);)if(r.nodeType==1)!o&&r.scrollHeight>r.clientHeight&&(o=r),!t&&r.scrollWidth>r.clientWidth&&(t=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:t,y:o}}class hB{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:o}=e;this.set(t,Math.min(e.anchorOffset,t?Mi(t):0),o,Math.min(e.focusOffset,o?Mi(o):0))}set(e,t,o,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=o,this.focusOffset=r}}let wa=null;function jw(n){if(n.setActive)return n.setActive();if(wa)return n.focus(wa);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(wa==null?{get preventScroll(){return wa={preventScroll:!0},!0}}:void 0),!wa){wa=!1;for(let t=0;t<e.length;){let o=e[t++],r=e[t++],s=e[t++];o.scrollTop!=r&&(o.scrollTop=r),o.scrollLeft!=s&&(o.scrollLeft=s)}}}let Fw;function us(n,e,t=e){let o=Fw||(Fw=document.createRange());return o.setEnd(n,t),o.setStart(n,e),o}function Sa(n,e,t,o){let r={key:e,code:e,keyCode:t,which:t,cancelable:!0};o&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=o);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,n.dispatchEvent(s);let l=new KeyboardEvent("keyup",r);return l.synthetic=!0,n.dispatchEvent(l),s.defaultPrevented||l.defaultPrevented}function pB(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function Zw(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function mB(n,e){let t=e.focusNode,o=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=o)return!1;for(o=Math.min(o,Mi(t));;)if(o){if(t.nodeType!=1)return!1;let r=t.childNodes[o-1];r.contentEditable=="false"?o--:(t=r,o=Mi(t))}else{if(t==n)return!0;o=cs(t),t=t.parentNode}}function zw(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function Ww(n,e){for(let t=n,o=e;;){if(t.nodeType==3&&o>0)return{node:t,offset:o};if(t.nodeType==1&&o>0){if(t.contentEditable=="false")return null;t=t.childNodes[o-1],o=Mi(t)}else if(t.parentNode&&!pd(t))o=cs(t),t=t.parentNode;else return null}}function Uw(n,e){for(let t=n,o=e;;){if(t.nodeType==3&&o<t.nodeValue.length)return{node:t,offset:o};if(t.nodeType==1&&o<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[o],o=0}else if(t.parentNode&&!pd(t))o=cs(t)+1,t=t.parentNode;else return null}}class Qn{constructor(e,t,o=!0){this.node=e,this.offset=t,this.precise=o}static before(e,t){return new Qn(e.parentNode,cs(e),t)}static after(e,t){return new Qn(e.parentNode,cs(e)+1,t)}}const jm=[];class St{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let o of this.children){if(o==e)return t;t+=o.length+o.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let o=this.dom,r=null,s;for(let l of this.children){if(l.flags&7){if(!l.dom&&(s=r?r.nextSibling:o.firstChild)){let d=St.get(s);(!d||!d.parent&&d.canReuseDOM(l))&&l.reuseDOM(s)}l.sync(e,t),l.flags&=-8}if(s=r?r.nextSibling:o.firstChild,t&&!t.written&&t.node==o&&s!=l.dom&&(t.written=!0),l.dom.parentNode==o)for(;s&&s!=l.dom;)s=Hw(s);else o.insertBefore(l.dom,s);r=l.dom}for(s=r?r.nextSibling:o.firstChild,s&&t&&t.node==o&&(t.written=!0);s;)s=Hw(s)}else if(this.flags&1)for(let o of this.children)o.flags&7&&(o.sync(e,t),o.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let o;if(e==this.dom)o=this.dom.childNodes[t];else{let r=Mi(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?o=e:o=e.nextSibling}if(o==this.dom.firstChild)return 0;for(;o&&!St.get(o);)o=o.nextSibling;if(!o)return this.length;for(let r=0,s=0;;r++){let l=this.children[r];if(l.dom==o)return s;s+=l.length+l.breakAfter}}domBoundsAround(e,t,o=0){let r=-1,s=-1,l=-1,d=-1;for(let h=0,m=o,g=o;h<this.children.length;h++){let v=this.children[h],b=m+v.length;if(m<e&&b>t)return v.domBoundsAround(e,t,m);if(b>=e&&r==-1&&(r=h,s=m),m>t&&v.dom.parentNode==this.dom){l=h,d=g;break}g=b,m=b+v.breakAfter}return{from:s,to:d<0?o+this.length:d,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l<this.children.length&&l>=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,o=jm){this.markDirty();for(let r=e;r<t;r++){let s=this.children[r];s.parent==this&&o.indexOf(s)<0&&s.destroy()}this.children.splice(e,t-e,...o);for(let r=0;r<o.length;r++)o[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Xw(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,o,r,s,l){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}St.prototype.breakAfter=0;function Hw(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Xw{constructor(e,t,o){this.children=e,this.pos=t,this.i=o,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let o=this.children[--this.i];this.pos-=o.length+o.breakAfter}}}function Yw(n,e,t,o,r,s,l,d,h){let{children:m}=n,g=m.length?m[e]:null,v=s.length?s[s.length-1]:null,b=v?v.breakAfter:l;if(!(e==o&&g&&!l&&!b&&s.length<2&&g.merge(t,r,s.length?v:null,t==0,d,h))){if(o<m.length){let x=m[o];x&&(r<x.length||x.breakAfter&&v?.breakAfter)?(e==o&&(x=x.split(r),r=0),!b&&v&&x.merge(0,r,v,!0,0,h)?s[s.length-1]=x:((r||x.children.length&&!x.children[0].length)&&x.merge(0,r,null,!1,0,h),s.push(x))):x?.breakAfter&&(v?v.breakAfter=1:l=1),o++}for(g&&(g.breakAfter=l,t>0&&(!l&&s.length&&g.merge(t,g.length,s[0],!1,d,0)?g.breakAfter=s.shift().breakAfter:(t<g.length||g.children.length&&g.children[g.children.length-1].length==0)&&g.merge(t,g.length,null,!1,d,0),e++));e<o&&s.length;)if(m[o-1].become(s[s.length-1]))o--,s.pop(),h=s.length?0:d;else if(m[e].become(s[0]))e++,s.shift(),d=s.length?0:h;else break;!s.length&&e&&o<m.length&&!m[e-1].breakAfter&&m[o].merge(0,0,m[e-1],!1,d,h)&&e--,(e<o||s.length)&&n.replaceChildren(e,o,s)}}function Gw(n,e,t,o,r,s){let l=n.childCursor(),{i:d,off:h}=l.findPos(t,1),{i:m,off:g}=l.findPos(e,-1),v=e-t;for(let b of o)v+=b.length;n.length+=v,Yw(n,m,g,d,h,o,0,r,s)}let Gn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Fm=typeof document<"u"?document:{documentElement:{style:{}}};const Zm=/Edge\/(\d+)/.exec(Gn.userAgent),Kw=/MSIE \d/.test(Gn.userAgent),zm=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gn.userAgent),md=!!(Kw||zm||Zm),Jw=!md&&/gecko\/(\d+)/i.test(Gn.userAgent),Wm=!md&&/Chrome\/(\d+)/.exec(Gn.userAgent),$w="webkitFontSmoothing"in Fm.documentElement.style,qw=!md&&/Apple Computer/.test(Gn.vendor),eS=qw&&(/Mobile\/\w+/.test(Gn.userAgent)||Gn.maxTouchPoints>2);var Fe={mac:eS||/Mac/.test(Gn.platform),windows:/Win/.test(Gn.platform),linux:/Linux|X11/.test(Gn.platform),ie:md,ie_version:Kw?Fm.documentMode||6:zm?+zm[1]:Zm?+Zm[1]:0,gecko:Jw,gecko_version:Jw?+(/Firefox\/(\d+)/.exec(Gn.userAgent)||[0,0])[1]:0,chrome:!!Wm,chrome_version:Wm?+Wm[1]:0,ios:eS,android:/Android\b/.test(Gn.userAgent),webkit:$w,safari:qw,webkit_version:$w?+(/\bAppleWebKit\/(\d+)/.exec(Gn.userAgent)||[0,0])[1]:0,tabSize:Fm.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const gB=256;class zo extends St{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,o){return this.flags&8||o&&(!(o instanceof zo)||this.length-(t-e)+o.length>gB||o.flags&8)?!1:(this.text=this.text.slice(0,e)+(o?o.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new zo(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Qn(this.dom,e)}domBoundsAround(e,t,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return OB(this.dom,e,t)}}class Qi extends St{constructor(e,t=[],o=0){super(),this.mark=e,this.children=t,this.length=o;for(let r of t)r.setParent(this)}setAttrs(e){if(Zw(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,o,r,s,l){return o&&(!(o instanceof Qi&&o.mark.eq(this.mark))||e&&s<=0||t<this.length&&l<=0)?!1:(Gw(this,e,t,o?o.children.slice():[],s-1,l-1),this.markDirty(),!0)}split(e){let t=[],o=0,r=-1,s=0;for(let d of this.children){let h=o+d.length;h>e&&t.push(o<e?d.split(e-o):d),r<0&&o>=e&&(r=s),o=h,s++}let l=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Qi(this.mark,t,l)}domAtPos(e){return tS(this,e)}coordsAt(e,t){return oS(this,e,t)}}function OB(n,e,t){let o=n.nodeValue.length;e>o&&(e=o);let r=e,s=e,l=0;e==0&&t<0||e==o&&t>=0?Fe.chrome||Fe.gecko||(e?(r--,l=1):s<o&&(s++,l=-1)):t<0?r--:s<o&&s++;let d=us(n,r,s).getClientRects();if(!d.length)return null;let h=d[(l?l<0:t>=0)?0:d.length-1];return Fe.safari&&!l&&h.width==0&&(h=Array.prototype.find.call(d,m=>m.width)||h),l?Jl(h,l<0):h||null}class rr extends St{static create(e,t,o){return new rr(e,t,o)}constructor(e,t,o){super(),this.widget=e,this.length=t,this.side=o,this.prevWidget=null}split(e){let t=rr.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,o,r,s,l){return o&&(!(o instanceof rr)||!this.widget.compare(o.widget)||e>0&&s<=0||t<this.length&&l<=0)?!1:(this.length=e+(o?o.length:0)+(this.length-t),!0)}become(e){return e instanceof rr&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return pt.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,o=t&&t.state.doc,r=this.posAtStart;return o?o.slice(r,r+this.length):pt.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Qn.before(this.dom):Qn.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let o=this.widget.coordsAt(this.dom,e,t);if(o)return o;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let l=this.side?this.side<0:e>0;for(let d=l?r.length-1:0;s=r[d],!(e>0?d==0:d==r.length-1||s.top<s.bottom);d+=l?-1:1);return Jl(s,!l)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ca extends St{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Ca&&e.side==this.side}split(){return new Ca(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Qn.before(this.dom):Qn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return pt.empty}get isHidden(){return!0}}zo.prototype.children=rr.prototype.children=Ca.prototype.children=jm;function tS(n,e){let t=n.dom,{children:o}=n,r=0;for(let s=0;r<o.length;r++){let l=o[r],d=s+l.length;if(!(d==s&&l.getSide()<=0)){if(e>s&&e<d&&l.dom.parentNode==t)return l.domAtPos(e-s);if(e<=s)break;s=d}}for(let s=r;s>0;s--){let l=o[s-1];if(l.dom.parentNode==t)return l.domAtPos(l.length)}for(let s=r;s<o.length;s++){let l=o[s];if(l.dom.parentNode==t)return l.domAtPos(0)}return new Qn(t,0)}function nS(n,e,t){let o,{children:r}=n;t>0&&e instanceof Qi&&r.length&&(o=r[r.length-1])instanceof Qi&&o.mark.eq(e.mark)?nS(o,e.children[0],t-1):(r.push(e),e.setParent(n)),n.length+=e.length}function oS(n,e,t){let o=null,r=-1,s=null,l=-1;function d(m,g){for(let v=0,b=0;v<m.children.length&&b<=g;v++){let x=m.children[v],C=b+x.length;C>=g&&(x.children.length?d(x,g-b):(!s||s.isHidden&&t>0)&&(C>g||b==C&&x.getSide()>0)?(s=x,l=g-b):(b<g||b==C&&x.getSide()<0&&!x.isHidden)&&(o=x,r=g-b)),b=C}}d(n,e);let h=(t<0?o:s)||o||s;return h?h.coordsAt(Math.max(0,h==o?r:l),t):vB(n)}function vB(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=xa(e);return t[t.length-1]||null}function Um(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const iS=Object.create(null);function gd(n,e,t){if(n==e)return!0;n||(n=iS),e||(e=iS);let o=Object.keys(n),r=Object.keys(e);if(o.length-(t&&o.indexOf(t)>-1?1:0)!=r.length-(t&&r.indexOf(t)>-1?1:0))return!1;for(let s of o)if(s!=t&&(r.indexOf(s)==-1||n[s]!==e[s]))return!1;return!0}function Hm(n,e,t){let o=!1;if(e)for(let r in e)t&&r in t||(o=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(o=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return o}function yB(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let o=n.attributes[t];e[o.name]=o.value}return e}class fi{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,o){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ln=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(Ln||(Ln={}));class He extends ls{constructor(e,t,o,r){super(),this.startSide=e,this.endSide=t,this.widget=o,this.spec=r}get heightRelevant(){return!1}static mark(e){return new $l(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),o=!!e.block;return t+=o&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new sr(e,t,t,o,e.widget||null,!1)}static replace(e){let t=!!e.block,o,r;if(e.isBlockGap)o=-5e8,r=4e8;else{let{start:s,end:l}=rS(e,t);o=(s?t?-3e8:-1:5e8)-1,r=(l?t?2e8:1:-6e8)+1}return new sr(e,o,r,t,e.widget||null,!0)}static line(e){return new ql(e)}static set(e,t=!1){return mt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}He.none=mt.empty;class $l extends He{constructor(e){let{start:t,end:o}=rS(e);super(t?-1:5e8,o?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,o;return this==e||e instanceof $l&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((o=e.attrs)===null||o===void 0?void 0:o.class))&&gd(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}$l.prototype.point=!1;class ql extends He{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ql&&this.spec.class==e.spec.class&&gd(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ql.prototype.mapMode=Sn.TrackBefore,ql.prototype.point=!0;class sr extends He{constructor(e,t,o,r,s,l){super(t,o,s,e),this.block=r,this.isReplace=l,this.mapMode=r?t<=0?Sn.TrackBefore:Sn.TrackAfter:Sn.TrackDel}get type(){return this.startSide!=this.endSide?Ln.WidgetRange:this.startSide<=0?Ln.WidgetBefore:Ln.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof sr&&bB(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}sr.prototype.point=!0;function rS(n,e=!1){let{inclusiveStart:t,inclusiveEnd:o}=n;return t==null&&(t=n.inclusive),o==null&&(o=n.inclusive),{start:t??e,end:o??e}}function bB(n,e){return n==e||!!(n&&e&&n.compare(e))}function Xm(n,e,t,o=0){let r=t.length-1;r>=0&&t[r]+o>=n?t[r]=Math.max(t[r],e):t.push(n,e)}class $t extends St{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,o,r,s,l){if(o){if(!(o instanceof $t))return!1;this.dom||o.transferDOM(this)}return r&&this.setDeco(o?o.attrs:null),Gw(this,e,t,o?o.children.slice():[],s,l),!0}split(e){let t=new $t;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:o,off:r}=this.childPos(e);r&&(t.append(this.children[o].split(r),0),this.children[o].merge(r,this.children[o].length,null,!1,0,0),o++);for(let s=o;s<this.children.length;s++)t.append(this.children[s],0);for(;o>0&&this.children[o-1].length==0;)this.children[--o].destroy();return this.children.length=o,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){gd(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){nS(this,e,t)}addLineDeco(e){let t=e.spec.attributes,o=e.spec.class;t&&(this.attrs=Um(t,this.attrs||{})),o&&(this.attrs=Um({class:o},this.attrs||{}))}domAtPos(e){return tS(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var o;this.dom?this.flags&4&&(Zw(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Hm(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&St.get(r)instanceof Qi;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((o=St.get(r))===null||o===void 0?void 0:o.isEditable)==!1&&(!Fe.ios||!this.children.some(s=>s instanceof zo))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let o of this.children){if(!(o instanceof zo)||/[^ -~]/.test(o.text))return null;let r=xa(o.dom);if(r.length!=1)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let o=oS(this,e,t);if(!this.children.length&&o&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=o.bottom-o.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight<s){let l=(s-r.textHeight)/2;return{top:o.top+l,bottom:o.bottom-l,left:o.left,right:o.left}}}return o}become(e){return e instanceof $t&&this.children.length==0&&e.children.length==0&&gd(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let o=0,r=0;o<e.children.length;o++){let s=e.children[o],l=r+s.length;if(l>=t){if(s instanceof $t)return s;if(l>t)break}r=l+s.breakAfter}return null}}class Ii extends St{constructor(e,t,o){super(),this.widget=e,this.length=t,this.deco=o,this.breakAfter=0,this.prevWidget=null}merge(e,t,o,r,s,l){return o&&(!(o instanceof Ii)||!this.widget.compare(o.widget)||e>0&&s<=0||t<this.length&&l<=0)?!1:(this.length=e+(o?o.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?Qn.before(this.dom):Qn.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let o=new Ii(this.widget,t,this.deco);return o.breakAfter=this.breakAfter,o}get children(){return jm}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):pt.empty}domBoundsAround(){return null}become(e){return e instanceof Ii&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let o=this.widget.coordsAt(this.dom,e,t);return o||(this.widget instanceof Ym?null:Jl(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:o}=this.deco;return t==o?!1:e<0?t<0:o>0}}class Ym extends fi{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class ec{constructor(e,t,o,r){this.doc=e,this.pos=t,this.end=o,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Ii&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new $t),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Od(new Ca(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Ii)&&this.getLine()}buildText(e,t,o){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:l,done:d}=this.cursor.next(this.skip);if(this.skip=0,d)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-o)),this.getLine().append(Od(new zo(this.text.slice(this.textOff,this.textOff+r)),t),o),this.atCursorPos=!0,this.textOff+=r,e-=r,o=0}}span(e,t,o,r){this.buildText(t-e,o,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,o,r,s,l){if(this.disallowBlockEffectsFor[l]&&o instanceof sr){if(o.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let d=t-e;if(o instanceof sr)if(o.block)o.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Ii(o.widget||ka.block,d,o));else{let h=rr.create(o.widget||ka.inline,d,d?0:o.startSide),m=this.atCursorPos&&!h.isEditable&&s<=r.length&&(e<t||o.startSide>0),g=!h.isEditable&&(e<t||s>r.length||o.startSide<=0),v=this.getLine();this.pendingBuffer==2&&!m&&!h.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),m&&(v.append(Od(new Ca(1),r),s),s=r.length+Math.max(0,s-r.length)),v.append(Od(h,r),s),this.atCursorPos=g,this.pendingBuffer=g?e<t||s>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(o);d&&(this.textOff+d<=this.text.length?this.textOff+=d:(this.skip+=d-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,o,r,s){let l=new ec(e,t,o,s);return l.openEnd=mt.spans(r,t,o,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function Od(n,e){for(let t of e)n=new Qi(t,[n],n.length);return n}class ka extends fi{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ka.inline=new ka("span"),ka.block=new ka("div");var Nt=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Nt||(Nt={}));const ds=Nt.LTR,Gm=Nt.RTL;function sS(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const xB=sS("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),wB=sS("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Km=Object.create(null),hi=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);Km[e]=t,Km[t]=-e}function aS(n){return n<=247?xB[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?wB[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const SB=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ar{get dir(){return this.level%2?Gm:ds}constructor(e,t,o){this.from=e,this.to=t,this.level=o}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,o,r){let s=-1;for(let l=0;l<e.length;l++){let d=e[l];if(d.from<=t&&d.to>=t){if(d.level==o)return l;(s<0||(r!=0?r<0?d.from<t:d.to>t:e[s].level>d.level))&&(s=l)}}if(s<0)throw new RangeError("Index out of range");return s}}function lS(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let o=n[t],r=e[t];if(o.from!=r.from||o.to!=r.to||o.direction!=r.direction||!lS(o.inner,r.inner))return!1}return!0}const Ct=[];function CB(n,e,t,o,r){for(let s=0;s<=o.length;s++){let l=s?o[s-1].to:e,d=s<o.length?o[s].from:t,h=s?256:r;for(let m=l,g=h,v=h;m<d;m++){let b=aS(n.charCodeAt(m));b==512?b=g:b==8&&v==4&&(b=16),Ct[m]=b==4?2:b,b&7&&(v=b),g=b}for(let m=l,g=h,v=h;m<d;m++){let b=Ct[m];if(b==128)m<d-1&&g==Ct[m+1]&&g&24?b=Ct[m]=g:Ct[m]=256;else if(b==64){let x=m+1;for(;x<d&&Ct[x]==64;)x++;let C=m&&g==8||x<t&&Ct[x]==8?v==1?1:8:256;for(let k=m;k<x;k++)Ct[k]=C;m=x-1}else b==8&&v==1&&(Ct[m]=1);g=b,b&7&&(v=b)}}}function kB(n,e,t,o,r){let s=r==1?2:1;for(let l=0,d=0,h=0;l<=o.length;l++){let m=l?o[l-1].to:e,g=l<o.length?o[l].from:t;for(let v=m,b,x,C;v<g;v++)if(x=Km[b=n.charCodeAt(v)])if(x<0){for(let k=d-3;k>=0;k-=3)if(hi[k+1]==-x){let M=hi[k+2],_=M&2?r:M&4?M&1?s:r:0;_&&(Ct[v]=Ct[hi[k]]=_),d=k;break}}else{if(hi.length==189)break;hi[d++]=v,hi[d++]=b,hi[d++]=h}else if((C=Ct[v])==2||C==1){let k=C==r;h=k?0:1;for(let M=d-3;M>=0;M-=3){let _=hi[M+2];if(_&2)break;if(k)hi[M+2]|=2;else{if(_&4)break;hi[M+2]|=4}}}}}function PB(n,e,t,o){for(let r=0,s=o;r<=t.length;r++){let l=r?t[r-1].to:n,d=r<t.length?t[r].from:e;for(let h=l;h<d;){let m=Ct[h];if(m==256){let g=h+1;for(;;)if(g==d){if(r==t.length)break;g=t[r++].to,d=r<t.length?t[r].from:e}else if(Ct[g]==256)g++;else break;let v=s==1,b=(g<e?Ct[g]:o)==1,x=v==b?v?1:2:o;for(let C=g,k=r,M=k?t[k-1].to:n;C>h;)C==M&&(C=t[--k].from,M=k?t[k-1].to:n),Ct[--C]=x;h=g}else s=m,h++}}}function Jm(n,e,t,o,r,s,l){let d=o%2?2:1;if(o%2==r%2)for(let h=e,m=0;h<t;){let g=!0,v=!1;if(m==s.length||h<s[m].from){let k=Ct[h];k!=d&&(g=!1,v=k==16)}let b=!g&&d==1?[]:null,x=g?o:o+1,C=h;e:for(;;)if(m<s.length&&C==s[m].from){if(v)break e;let k=s[m];if(!g)for(let M=k.to,_=m+1;;){if(M==t)break e;if(_<s.length&&s[_].from==M)M=s[_++].to;else{if(Ct[M]==d)break e;break}}if(m++,b)b.push(k);else{k.from>h&&l.push(new ar(h,k.from,x));let M=k.direction==ds!=!(x%2);$m(n,M?o+1:o,r,k.inner,k.from,k.to,l),h=k.to}C=k.to}else{if(C==t||(g?Ct[C]!=d:Ct[C]==d))break;C++}b?Jm(n,h,C,o+1,r,b,l):h<C&&l.push(new ar(h,C,x)),h=C}else for(let h=t,m=s.length;h>e;){let g=!0,v=!1;if(!m||h>s[m-1].to){let k=Ct[h-1];k!=d&&(g=!1,v=k==16)}let b=!g&&d==1?[]:null,x=g?o:o+1,C=h;e:for(;;)if(m&&C==s[m-1].to){if(v)break e;let k=s[--m];if(!g)for(let M=k.from,_=m;;){if(M==e)break e;if(_&&s[_-1].to==M)M=s[--_].from;else{if(Ct[M-1]==d)break e;break}}if(b)b.push(k);else{k.to<h&&l.push(new ar(k.to,h,x));let M=k.direction==ds!=!(x%2);$m(n,M?o+1:o,r,k.inner,k.from,k.to,l),h=k.from}C=k.from}else{if(C==e||(g?Ct[C-1]!=d:Ct[C-1]==d))break;C--}b?Jm(n,C,h,o+1,r,b,l):C<h&&l.push(new ar(C,h,x)),h=C}}function $m(n,e,t,o,r,s,l){let d=e%2?2:1;CB(n,r,s,o,d),kB(n,r,s,o,d),PB(r,s,o,d),Jm(n,r,s,e,t,o,l)}function EB(n,e,t){if(!n)return[new ar(0,0,e==Gm?1:0)];if(e==ds&&!t.length&&!SB.test(n))return cS(n.length);if(t.length)for(;n.length>Ct.length;)Ct[Ct.length]=256;let o=[],r=e==ds?0:1;return $m(n,r,r,t,0,n.length,o),o}function cS(n){return[new ar(0,n,0)]}let uS="";function TB(n,e,t,o,r){var s;let l=o.head-n.from,d=ar.find(e,l,(s=o.bidiLevel)!==null&&s!==void 0?s:-1,o.assoc),h=e[d],m=h.side(r,t);if(l==m){let b=d+=r?1:-1;if(b<0||b>=e.length)return null;h=e[d=b],l=h.side(!r,t),m=h.side(r,t)}let g=xn(n.text,l,h.forward(r,t));(g<h.from||g>h.to)&&(g=m),uS=n.text.slice(Math.min(l,g),Math.max(l,g));let v=d==(r?e.length-1:0)?null:e[d+(r?1:-1)];return v&&g==m&&v.level+(r?0:1)<h.level?we.cursor(v.side(!r,t)+n.from,v.forward(r,t)?1:-1,v.level):we.cursor(g+n.from,h.forward(r,t)?-1:1,h.level)}function _B(n,e,t){for(let o=e;o<t;o++){let r=aS(n.charCodeAt(o));if(r==1)return ds;if(r==2||r==4)return Gm}return ds}const dS=Le.define(),fS=Le.define(),hS=Le.define(),pS=Le.define(),qm=Le.define(),mS=Le.define(),gS=Le.define(),eg=Le.define(),tg=Le.define(),OS=Le.define({combine:n=>n.some(e=>e)}),vS=Le.define({combine:n=>n.some(e=>e)}),yS=Le.define();class Pa{constructor(e,t="nearest",o="nearest",r=5,s=5,l=!1){this.range=e,this.y=t,this.x=o,this.yMargin=r,this.xMargin=s,this.isSnapshot=l}map(e){return e.empty?this:new Pa(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Pa(we.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const vd=nt.define({map:(n,e)=>n.map(e)}),bS=nt.define();function Kn(n,e,t){let o=n.facet(pS);o.length?o[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const lr=Le.define({combine:n=>n.length?n[0]:!0});let NB=0;const tc=Le.define();class Wt{constructor(e,t,o,r,s){this.id=e,this.create=t,this.domEventHandlers=o,this.domEventObservers=r,this.extension=s(this)}static define(e,t){const{eventHandlers:o,eventObservers:r,provide:s,decorations:l}=t||{};return new Wt(NB++,e,o,r,d=>{let h=[tc.of(d)];return l&&h.push(nc.of(m=>{let g=m.plugin(d);return g?l(g):He.none})),s&&h.push(s(d)),h})}static fromClass(e,t){return Wt.define(o=>new e(o),t)}}class ng{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(o){if(Kn(t.state,o,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Kn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(o){Kn(e.state,o,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const xS=Le.define(),og=Le.define(),nc=Le.define(),wS=Le.define(),ig=Le.define(),SS=Le.define();function CS(n,e){let t=n.state.facet(SS);if(!t.length)return t;let o=t.map(s=>s instanceof Function?s(n):s),r=[];return mt.spans(o,e.from,e.to,{point(){},span(s,l,d,h){let m=s-e.from,g=l-e.from,v=r;for(let b=d.length-1;b>=0;b--,h--){let x=d[b].spec.bidiIsolate,C;if(x==null&&(x=_B(e.text,m,g)),h>0&&v.length&&(C=v[v.length-1]).to==m&&C.direction==x)C.to=g,v=C.inner;else{let k={from:m,to:g,direction:x,inner:[]};v.push(k),v=k.inner}}}}),r}const kS=Le.define();function PS(n){let e=0,t=0,o=0,r=0;for(let s of n.state.facet(kS)){let l=s(n);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(t=Math.max(t,l.right)),l.top!=null&&(o=Math.max(o,l.top)),l.bottom!=null&&(r=Math.max(r,l.bottom)))}return{left:e,right:t,top:o,bottom:r}}const oc=Le.define();class No{constructor(e,t,o,r){this.fromA=e,this.toA=t,this.fromB=o,this.toB=r}join(e){return new No(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,o=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>o.toA)){if(r.toA<o.fromA)break;o=o.join(r),e.splice(t-1,1)}}return e.splice(t,0,o),e}static extendWithRanges(e,t){if(t.length==0)return e;let o=[];for(let r=0,s=0,l=0,d=0;;r++){let h=r==e.length?null:e[r],m=l-d,g=h?h.fromB:1e9;for(;s<t.length&&t[s]<g;){let v=t[s],b=t[s+1],x=Math.max(d,v),C=Math.min(g,b);if(x<=C&&new No(x+m,C+m,x,C).addToSet(o),b>g)break;s+=2}if(!h)return o;new No(h.fromA,h.toA,h.fromB,h.toB).addToSet(o),l=h.toA,d=h.toB}}}class yd{constructor(e,t,o){this.view=e,this.state=t,this.transactions=o,this.flags=0,this.startState=e.state,this.changes=rn.empty(this.startState.doc.length);for(let s of o)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,l,d,h)=>r.push(new No(s,l,d,h))),this.changedRanges=r}static create(e,t,o){return new yd(e,t,o)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class ES extends St{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=He.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new $t],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new No(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let o=e.changedRanges;this.minWidth>0&&o.length&&(o.every(({fromA:m,toA:g})=>g<this.minWidthFrom||m>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?r=this.domChanged.newSel.head:!BB(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?RB(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:m,to:g}=this.hasComposition;o=new No(m,g,e.changes.mapPos(m,-1),e.changes.mapPos(g,1)).addToSet(o.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Fe.ie||Fe.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=this.decorations,d=this.updateDeco(),h=IB(l,d,e.changes);return o=No.extendWithRanges(o,h),!(this.flags&7)&&o.length==0?!1:(this.updateInner(o,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,o){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,o);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Fe.chrome||Fe.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||r.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let l of this.children)l instanceof Ii&&l.widget instanceof Ym&&s.push(l.dom);r.updateGaps(s)}updateChildren(e,t,o){let r=o?o.range.addToSet(e.slice()):e,s=this.childCursor(t);for(let l=r.length-1;;l--){let d=l>=0?r[l]:null;if(!d)break;let{fromA:h,toA:m,fromB:g,toB:v}=d,b,x,C,k;if(o&&o.range.fromB<v&&o.range.toB>g){let D=ec.build(this.view.state.doc,g,o.range.fromB,this.decorations,this.dynamicDecorationMap),Q=ec.build(this.view.state.doc,o.range.toB,v,this.decorations,this.dynamicDecorationMap);x=D.breakAtStart,C=D.openStart,k=Q.openEnd;let Y=this.compositionView(o);Q.breakAtStart?Y.breakAfter=1:Q.content.length&&Y.merge(Y.length,Y.length,Q.content[0],!1,Q.openStart,0)&&(Y.breakAfter=Q.content[0].breakAfter,Q.content.shift()),D.content.length&&Y.merge(0,0,D.content[D.content.length-1],!0,0,D.openEnd)&&D.content.pop(),b=D.content.concat(Y).concat(Q.content)}else({content:b,breakAtStart:x,openStart:C,openEnd:k}=ec.build(this.view.state.doc,g,v,this.decorations,this.dynamicDecorationMap));let{i:M,off:_}=s.findPos(m,1),{i:E,off:F}=s.findPos(h,-1);Yw(this,E,F,M,_,b,x,C,k)}o&&this.fixCompositionDOM(o)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let o of t.effects)o.is(bS)&&(this.editContextFormatting=o.value)}compositionView(e){let t=new zo(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new Qi(r,[t],t.length);let o=new $t;return o.append(t,0),o}fixCompositionDOM(e){let t=(s,l)=>{l.flags|=8|(l.children.some(h=>h.flags&7)?1:0),this.markedForComposition.add(l);let d=St.get(s);d&&d!=l&&(d.dom=null),l.setDOM(s)},o=this.childPos(e.range.fromB,1),r=this.children[o.i];t(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)o=r.childPos(o.off,1),r=r.children[o.i],t(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let o=this.view.root.activeElement,r=o==this.dom,s=!r&&hd(this.dom,this.view.observer.selectionRange)&&!(o&&this.dom.contains(o));if(!(r||t||s))return;let l=this.forceSelection;this.forceSelection=!1;let d=this.view.state.selection.main,h=this.moveToLine(this.domAtPos(d.anchor)),m=d.empty?h:this.moveToLine(this.domAtPos(d.head));if(Fe.gecko&&d.empty&&!this.hasComposition&&AB(h)){let v=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(v,h.node.childNodes[h.offset]||null)),h=m=new Qn(v,0),l=!0}let g=this.view.observer.selectionRange;(l||!g.focusNode||(!Kl(h.node,h.offset,g.anchorNode,g.anchorOffset)||!Kl(m.node,m.offset,g.focusNode,g.focusOffset))&&!this.suppressWidgetCursorChange(g,d))&&(this.view.observer.ignore(()=>{Fe.android&&Fe.chrome&&this.dom.contains(g.focusNode)&&DB(g.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let v=Gl(this.view.root);if(v)if(d.empty){if(Fe.gecko){let b=MB(h.node,h.offset);if(b&&b!=3){let x=(b==1?Ww:Uw)(h.node,h.offset);x&&(h=new Qn(x.node,x.offset))}}v.collapse(h.node,h.offset),d.bidiLevel!=null&&v.caretBidiLevel!==void 0&&(v.caretBidiLevel=d.bidiLevel)}else if(v.extend){v.collapse(h.node,h.offset);try{v.extend(m.node,m.offset)}catch{}}else{let b=document.createRange();d.anchor>d.head&&([h,m]=[m,h]),b.setEnd(m.node,m.offset),b.setStart(h.node,h.offset),v.removeAllRanges(),v.addRange(b)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),o&&o.focus())}),this.view.observer.setSelectionRange(h,m)),this.impreciseAnchor=h.precise?null:new Qn(g.anchorNode,g.anchorOffset),this.impreciseHead=m.precise?null:new Qn(g.focusNode,g.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Kl(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,o=Gl(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!o||!t.empty||!t.assoc||!o.modify)return;let l=$t.find(this,t.head);if(!l)return;let d=l.posAtStart;if(t.head==d||t.head==d+l.length)return;let h=this.coordsAt(t.head,-1),m=this.coordsAt(t.head,1);if(!h||!m||h.bottom>m.top)return;let g=this.domAtPos(t.head+t.assoc);o.collapse(g.node,g.offset),o.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let v=e.observer.selectionRange;e.docView.posFromDOM(v.anchorNode,v.anchorOffset)!=t.from&&o.collapse(r,s)}moveToLine(e){let t=this.dom,o;if(e.node!=t)return e;for(let r=e.offset;!o&&r<t.childNodes.length;r++){let s=St.get(t.childNodes[r]);s instanceof $t&&(o=s.domAtPos(0))}for(let r=e.offset-1;!o&&r>=0;r--){let s=St.get(t.childNodes[r]);s instanceof $t&&(o=s.domAtPos(s.length))}return o?new Qn(o.node,o.offset,!0):e}nearest(e){for(let t=e;t;){let o=St.get(t);if(o&&o.rootView==this)return o;t=t.parentNode}return null}posFromDOM(e,t){let o=this.nearest(e);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(e,t)+o.posAtStart}domAtPos(e){let{i:t,off:o}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let r=this.children[t];if(o<r.length||r instanceof $t)break;t++,o=0}return this.children[t].domAtPos(o)}coordsAt(e,t){let o=null,r=0;for(let s=this.length,l=this.children.length-1;l>=0;l--){let d=this.children[l],h=s-d.breakAfter,m=h-d.length;if(h<e)break;if(m<=e&&(m<e||d.covers(-1))&&(h>e||d.covers(1))&&(!o||d instanceof $t&&!(o instanceof $t&&t>=0)))o=d,r=m;else if(o&&m==e&&h==e&&d instanceof Ii&&Math.abs(t)<2){if(d.deco.startSide<0)break;l&&(o=null)}s=m}return o?o.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:o}=this.childPos(e,1),r=this.children[t];if(!(r instanceof $t))return null;for(;r.children.length;){let{i:d,off:h}=r.childPos(o,1);for(;;d++){if(d==r.children.length)return null;if((r=r.children[d]).length)break}o=h}if(!(r instanceof zo))return null;let s=xn(r.text,o);if(s==o)return null;let l=us(r.dom,o,s).getClientRects();for(let d=0;d<l.length;d++){let h=l[d];if(d==l.length-1||h.top<h.bottom&&h.left<h.right)return h}return null}measureVisibleLineHeights(e){let t=[],{from:o,to:r}=e,s=this.view.contentDOM.clientWidth,l=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,d=-1,h=this.view.textDirection==Nt.LTR;for(let m=0,g=0;g<this.children.length;g++){let v=this.children[g],b=m+v.length;if(b>r)break;if(m>=o){let x=v.dom.getBoundingClientRect();if(t.push(x.height),l){let C=v.dom.lastChild,k=C?xa(C):[];if(k.length){let M=k[k.length-1],_=h?M.right-x.left:x.right-M.left;_>d&&(d=_,this.minWidth=s,this.minWidthFrom=m,this.minWidthTo=b)}}}m=b+v.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Nt.RTL:Nt.LTR}measureTextSize(){for(let s of this.children)if(s instanceof $t){let l=s.measureTextSize();if(l)return l}let e=document.createElement("div"),t,o,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=xa(e.firstChild)[0];t=e.getBoundingClientRect().height,o=s?s.width/27:7,r=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:o,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Xw(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let o=0,r=0;;r++){let s=r==t.viewports.length?null:t.viewports[r],l=s?s.from-1:this.length;if(l>o){let d=(t.lineBlockAt(l).bottom-t.lineBlockAt(o).top)/this.view.scaleY;e.push(He.replace({widget:new Ym(d),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!s)break;o=s.to+1}return He.set(e)}updateDeco(){let e=1,t=this.view.state.facet(nc).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),o=!1,r=this.view.state.facet(wS).map((s,l)=>{let d=typeof s=="function";return d&&(o=!0),d?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=o,t.push(mt.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let m=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=m.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let m of this.view.state.facet(yS))try{if(m(this.view,e.range,e))return!0}catch(g){Kn(this.view.state,g,"scroll handler")}let{range:t}=e,o=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),r;if(!o)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(o={left:Math.min(o.left,r.left),top:Math.min(o.top,r.top),right:Math.max(o.right,r.right),bottom:Math.max(o.bottom,r.bottom)});let s=PS(this.view),l={left:o.left-s.left,top:o.top-s.top,right:o.right+s.right,bottom:o.bottom+s.bottom},{offsetWidth:d,offsetHeight:h}=this.view.scrollDOM;dB(this.view.scrollDOM,l,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,d),-d),Math.max(Math.min(e.yMargin,h),-h),this.view.textDirection==Nt.LTR)}}function AB(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function TS(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let o=Ww(t.focusNode,t.focusOffset),r=Uw(t.focusNode,t.focusOffset),s=o||r;if(r&&o&&r.node!=o.node){let d=St.get(r.node);if(!d||d instanceof zo&&d.text!=r.node.nodeValue)s=r;else if(n.docView.lastCompositionAfterCursor){let h=St.get(o.node);!h||h instanceof zo&&h.text!=o.node.nodeValue||(s=r)}}if(n.docView.lastCompositionAfterCursor=s!=o,!s)return null;let l=e-s.offset;return{from:l,to:l+s.node.nodeValue.length,node:s.node}}function RB(n,e,t){let o=TS(n,t);if(!o)return null;let{node:r,from:s,to:l}=o,d=r.nodeValue;if(/[\n\r]/.test(d)||n.state.doc.sliceString(o.from,o.to)!=d)return null;let h=e.invertedDesc,m=new No(h.mapPos(s),h.mapPos(l),s,l),g=[];for(let v=r.parentNode;;v=v.parentNode){let b=St.get(v);if(b instanceof Qi)g.push({node:v,deco:b.mark});else{if(b instanceof $t||v.nodeName=="DIV"&&v.parentNode==n.contentDOM)return{range:m,text:r,marks:g,line:v};if(v!=n.contentDOM)g.push({node:v,deco:new $l({inclusive:!0,attributes:yB(v),tagName:v.tagName.toLowerCase()})});else return null}}}function MB(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let QB=class{constructor(){this.changes=[]}compareRange(e,t){Xm(e,t,this.changes)}comparePoint(e,t){Xm(e,t,this.changes)}};function IB(n,e,t){let o=new QB;return mt.compare(n,e,t,o),o.changes}function DB(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function BB(n,e){let t=!1;return e&&n.iterChangedRanges((o,r)=>{o<e.to&&r>e.from&&(t=!0)}),t}function VB(n,e,t=1){let o=n.charCategorizer(e),r=n.doc.lineAt(e),s=e-r.from;if(r.length==0)return we.cursor(e);s==0?t=1:s==r.length&&(t=-1);let l=s,d=s;t<0?l=xn(r.text,s,!1):d=xn(r.text,s);let h=o(r.text.slice(l,d));for(;l>0;){let m=xn(r.text,l,!1);if(o(r.text.slice(m,l))!=h)break;l=m}for(;d<r.length;){let m=xn(r.text,d);if(o(r.text.slice(d,m))!=h)break;d=m}return we.range(l+r.from,d+r.from)}function LB(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function jB(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function rg(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function _S(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function NS(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function sg(n,e,t){let o,r,s,l,d=!1,h,m,g,v;for(let C=n.firstChild;C;C=C.nextSibling){let k=xa(C);for(let M=0;M<k.length;M++){let _=k[M];r&&rg(r,_)&&(_=_S(NS(_,r.bottom),r.top));let E=LB(e,_),F=jB(t,_);if(E==0&&F==0)return C.nodeType==3?AS(C,e,t):sg(C,e,t);if(!o||l>F||l==F&&s>E){o=C,r=_,s=E,l=F;let D=F?t<_.top?-1:1:E?e<_.left?-1:1:0;d=!D||(D>0?M<k.length-1:M>0)}E==0?t>_.bottom&&(!g||g.bottom<_.bottom)?(h=C,g=_):t<_.top&&(!v||v.top>_.top)&&(m=C,v=_):g&&rg(g,_)?g=NS(g,_.bottom):v&&rg(v,_)&&(v=_S(v,_.top))}}if(g&&g.bottom>=t?(o=h,r=g):v&&v.top<=t&&(o=m,r=v),!o)return{node:n,offset:0};let b=Math.max(r.left,Math.min(r.right,e));if(o.nodeType==3)return AS(o,b,t);if(d&&o.contentEditable!="false")return sg(o,b,t);let x=Array.prototype.indexOf.call(n.childNodes,o)+(e>=(r.left+r.right)/2?1:0);return{node:n,offset:x}}function AS(n,e,t){let o=n.nodeValue.length,r=-1,s=1e9,l=0;for(let d=0;d<o;d++){let h=us(n,d,d+1).getClientRects();for(let m=0;m<h.length;m++){let g=h[m];if(g.top==g.bottom)continue;l||(l=e-g.left);let v=(g.top>t?g.top-t:t-g.bottom)-1;if(g.left-1<=e&&g.right+1>=e&&v<s){let b=e>=(g.left+g.right)/2,x=b;if((Fe.chrome||Fe.gecko)&&us(n,d).getBoundingClientRect().left==g.right&&(x=!b),v<=0)return{node:n,offset:d+(x?1:0)};r=d+(x?1:0),s=v}}}return{node:n,offset:r>-1?r:l>0?n.nodeValue.length:0}}function RS(n,e,t,o=-1){var r,s;let l=n.contentDOM.getBoundingClientRect(),d=l.top+n.viewState.paddingTop,h,{docHeight:m}=n.viewState,{x:g,y:v}=e,b=v-d;if(b<0)return 0;if(b>m)return n.state.doc.length;for(let D=n.viewState.heightOracle.textHeight/2,Q=!1;h=n.elementAtHeight(b),h.type!=Ln.Text;)for(;b=o>0?h.bottom+D:h.top-D,!(b>=0&&b<=m);){if(Q)return t?null:0;Q=!0,o=-o}v=d+b;let x=h.from;if(x<n.viewport.from)return n.viewport.from==0?0:t?null:MS(n,l,h,g,v);if(x>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:MS(n,l,h,g,v);let C=n.dom.ownerDocument,k=n.root.elementFromPoint?n.root:C,M=k.elementFromPoint(g,v);M&&!n.contentDOM.contains(M)&&(M=null),M||(g=Math.max(l.left+1,Math.min(l.right-1,g)),M=k.elementFromPoint(g,v),M&&!n.contentDOM.contains(M)&&(M=null));let _,E=-1;if(M&&((r=n.docView.nearest(M))===null||r===void 0?void 0:r.isEditable)!=!1){if(C.caretPositionFromPoint){let D=C.caretPositionFromPoint(g,v);D&&({offsetNode:_,offset:E}=D)}else if(C.caretRangeFromPoint){let D=C.caretRangeFromPoint(g,v);D&&({startContainer:_,startOffset:E}=D,(!n.contentDOM.contains(_)||Fe.safari&&FB(_,E,g)||Fe.chrome&&ZB(_,E,g))&&(_=void 0))}}if(!_||!n.docView.dom.contains(_)){let D=$t.find(n.docView,x);if(!D)return b>h.top+h.height/2?h.to:h.from;({node:_,offset:E}=sg(D.dom,g,v))}let F=n.docView.nearest(_);if(!F)return null;if(F.isWidget&&((s=F.dom)===null||s===void 0?void 0:s.nodeType)==1){let D=F.dom.getBoundingClientRect();return e.y<D.top||e.y<=D.bottom&&e.x<=(D.left+D.right)/2?F.posAtStart:F.posAtEnd}else return F.localPosFromDOM(_,E)+F.posAtStart}function MS(n,e,t,o,r){let s=Math.round((o-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let d=n.viewState.heightOracle.textHeight,h=Math.floor((r-t.top-(n.defaultLineHeight-d)*.5)/d);s+=h*n.viewState.heightOracle.lineLength}let l=n.state.sliceDoc(t.from,t.to);return t.from+Im(l,s,n.state.tabSize)}function FB(n,e,t){let o;if(n.nodeType!=3||e!=(o=n.nodeValue.length))return!1;for(let r=n.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return us(n,o-1,o).getBoundingClientRect().left>t}function ZB(n,e,t){if(e!=0)return!1;for(let r=n;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let o=n.nodeType==1?n.getBoundingClientRect():us(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-o.left>5}function ag(n,e){let t=n.lineBlockAt(e);if(Array.isArray(t.type)){for(let o of t.type)if(o.to>e||o.to==e&&(o.to==t.to||o.type==Ln.Text))return o}return t}function zB(n,e,t,o){let r=ag(n,e.head),s=!o||r.type!=Ln.Text||!(n.lineWrapping||r.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let l=n.dom.getBoundingClientRect(),d=n.textDirectionAt(r.from),h=n.posAtCoords({x:t==(d==Nt.LTR)?l.right-1:l.left+1,y:(s.top+s.bottom)/2});if(h!=null)return we.cursor(h,t?-1:1)}return we.cursor(t?r.to:r.from,t?-1:1)}function QS(n,e,t,o){let r=n.state.doc.lineAt(e.head),s=n.bidiSpans(r),l=n.textDirectionAt(r.from);for(let d=e,h=null;;){let m=TB(r,s,l,d,t),g=uS;if(!m){if(r.number==(t?n.state.doc.lines:1))return d;g=`
|
|
340
|
+
`,r=n.state.doc.line(r.number+(t?1:-1)),s=n.bidiSpans(r),m=n.visualLineSide(r,!t)}if(h){if(!h(g))return d}else{if(!o)return m;h=o(g)}d=m}}function WB(n,e,t){let o=n.state.charCategorizer(e),r=o(t);return s=>{let l=o(s);return r==Qt.Space&&(r=l),r==l}}function UB(n,e,t,o){let r=e.head,s=t?1:-1;if(r==(t?n.state.doc.length:0))return we.cursor(r,e.assoc);let l=e.goalColumn,d,h=n.contentDOM.getBoundingClientRect(),m=n.coordsAtPos(r,e.assoc||-1),g=n.documentTop;if(m)l==null&&(l=m.left-h.left),d=s<0?m.top:m.bottom;else{let x=n.viewState.lineBlockAt(r);l==null&&(l=Math.min(h.right-h.left,n.defaultCharacterWidth*(r-x.from))),d=(s<0?x.top:x.bottom)+g}let v=h.left+l,b=o??n.viewState.heightOracle.textHeight>>1;for(let x=0;;x+=10){let C=d+(b+x)*s,k=RS(n,{x:v,y:C},!1,s);if(C<h.top||C>h.bottom||(s<0?k<r:k>r)){let M=n.docView.coordsForChar(k),_=!M||C<M.top?-1:1;return we.cursor(k,_,void 0,l)}}}function bd(n,e,t){for(;;){let o=0;for(let r of n)r.between(e-1,e+1,(s,l,d)=>{if(e>s&&e<l){let h=o||t||(e-s<l-e?-1:1);e=h<0?s:l,o=h}});if(!o)return e}}function lg(n,e,t){let o=bd(n.state.facet(ig).map(r=>r(n)),t.from,e.head>t.from?-1:1);return o==t.from?t:we.cursor(o,o<t.from?1:-1)}const ic="";class HB{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(dt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ic}readRange(e,t){if(!e)return this;let o=e.parentNode;for(let r=e;;){this.findPointBefore(o,r);let s=this.text.length;this.readNode(r);let l=r.nextSibling;if(l==t)break;let d=St.get(r),h=St.get(l);(d&&h?d.breakAfter:(d?d.breakAfter:pd(r))||pd(l)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=l}return this.findPointBefore(o,t),this}readTextNode(e){let t=e.nodeValue;for(let o of this.points)o.node==e&&(o.pos=this.text.length+Math.min(o.offset,t.length));for(let o=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,l=1,d;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,o),l=this.lineSeparator.length):(d=r.exec(t))&&(s=d.index,l=d[0].length),this.append(t.slice(o,s<0?t.length:s)),s<0)break;if(this.lineBreak(),l>1)for(let h of this.points)h.node==e&&h.pos>this.text.length&&(h.pos-=l-1);o=s+l}}readNode(e){if(e.cmIgnore)return;let t=St.get(e),o=t&&t.overrideDOMText;if(o!=null){this.findPointInside(e,o.length);for(let r=o.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let o of this.points)o.node==e&&e.childNodes[o.offset]==t&&(o.pos=this.text.length)}findPointInside(e,t){for(let o of this.points)(e.nodeType==3?o.node==e:e.contains(o.node))&&(o.pos=this.text.length+(XB(e,o.node,o.offset)?t:0))}}function XB(n,e,t){for(;;){if(!e||t<Mi(e))return!1;if(e==n)return!0;t=cs(e)+1,e=e.parentNode}}class IS{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class YB{constructor(e,t,o,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:s,impreciseAnchor:l}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,o,0))){let d=s||l?[]:JB(e),h=new HB(d,e.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=$B(d,this.bounds.from)}else{let d=e.observer.selectionRange,h=s&&s.node==d.focusNode&&s.offset==d.focusOffset||!Lm(e.contentDOM,d.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(d.focusNode,d.focusOffset),m=l&&l.node==d.anchorNode&&l.offset==d.anchorOffset||!Lm(e.contentDOM,d.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(d.anchorNode,d.anchorOffset),g=e.viewport;if((Fe.ios||Fe.chrome)&&e.state.selection.main.empty&&h!=m&&(g.from>0||g.to<e.state.doc.length)){let v=Math.min(h,m),b=Math.max(h,m),x=g.from-v,C=g.to-b;(x==0||x==1||v==0)&&(C==0||C==-1||b==e.state.doc.length)&&(h=0,m=e.state.doc.length)}this.newSel=we.single(m,h)}}}function DS(n,e){let t,{newSel:o}=e,r=n.state.selection.main,s=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:d}=e.bounds,h=r.from,m=null;(s===8||Fe.android&&e.text.length<d-l)&&(h=r.to,m="end");let g=KB(n.state.doc.sliceString(l,d,ic),e.text,h-l,m);g&&(Fe.chrome&&s==13&&g.toB==g.from+2&&e.text.slice(g.from,g.toB)==ic+ic&&g.toB--,t={from:l+g.from,to:l+g.toA,insert:pt.of(e.text.slice(g.from,g.toB).split(ic))})}else o&&(!n.hasFocus&&n.state.facet(lr)||o.main.eq(r))&&(o=null);if(!t&&!o)return!1;if(!t&&e.typeOver&&!r.empty&&o&&o.main.empty?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,r.to)}:t&&t.from>=r.from&&t.to<=r.to&&(t.from!=r.from||t.to!=r.to)&&r.to-r.from-(t.to-t.from)<=4?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,r.to))}:(Fe.mac||Fe.android)&&t&&t.from==t.to&&t.from==r.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(o&&t.insert.length==2&&(o=we.single(o.main.anchor-1,o.main.head-1)),t={from:r.from,to:r.to,insert:pt.of([" "])}):Fe.chrome&&t&&t.from==t.to&&t.from==r.head&&t.insert.toString()==`
|
|
341
|
+
`&&n.lineWrapping&&(o&&(o=we.single(o.main.anchor-1,o.main.head-1)),t={from:r.from,to:r.to,insert:pt.of([" "])}),t)return cg(n,t,o,s);if(o&&!o.main.eq(r)){let l=!1,d="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(l=!0),d=n.inputState.lastSelectionOrigin),n.dispatch({selection:o,scrollIntoView:l,userEvent:d}),!0}else return!1}function cg(n,e,t,o=-1){if(Fe.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(Fe.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Sa(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||o==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Sa(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Sa(n.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let l,d=()=>l||(l=GB(n,e,t));return n.state.facet(mS).some(h=>h(n,e.from,e.to,s,d))||n.dispatch(d()),!0}function GB(n,e,t){let o,r=n.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let d=s.from<e.from?r.sliceDoc(s.from,e.from):"",h=s.to>e.to?r.sliceDoc(e.to,s.to):"";o=r.replaceSelection(n.state.toText(d+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let d=r.changes(e),h=t&&t.main.to<=d.newLength?t.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let m=n.state.sliceDoc(e.from,e.to),g,v=t&&TS(n,t.main.head);if(v){let C=e.insert.length-(e.to-e.from);g={from:v.from,to:v.to-C}}else g=n.state.doc.lineAt(s.head);let b=s.to-e.to,x=s.to-s.from;o=r.changeByRange(C=>{if(C.from==s.from&&C.to==s.to)return{changes:d,range:h||C.map(d)};let k=C.to-b,M=k-m.length;if(C.to-C.from!=x||n.state.sliceDoc(M,k)!=m||C.to>=g.from&&C.from<=g.to)return{range:C};let _=r.changes({from:M,to:k,insert:e.insert}),E=C.to-s.to;return{changes:_,range:h?we.range(Math.max(0,h.anchor+E),Math.max(0,h.head+E)):C.map(_)}})}else o={changes:d,selection:h&&r.selection.replaceRange(h)}}let l="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=!1)),r.update(o,{userEvent:l,scrollIntoView:!0})}function KB(n,e,t,o){let r=Math.min(n.length,e.length),s=0;for(;s<r&&n.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&n.length==e.length)return null;let l=n.length,d=e.length;for(;l>0&&d>0&&n.charCodeAt(l-1)==e.charCodeAt(d-1);)l--,d--;if(o=="end"){let h=Math.max(0,s-Math.min(l,d));t-=l+h-s}if(l<s&&n.length<e.length){let h=t<=s&&t>=l?s-t:0;s-=h,d=s+(d-l),l=s}else if(d<s){let h=t<=s&&t>=d?s-t:0;s-=h,l=s+(l-d),d=s}return{from:s,toA:l,toB:d}}function JB(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:o,focusNode:r,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new IS(t,o)),(r!=t||s!=o)&&e.push(new IS(r,s))),e}function $B(n,e){if(n.length==0)return null;let t=n[0].pos,o=n.length==2?n[1].pos:t;return t>-1&&o>-1?we.single(t+e,o+e):null}class qB{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Fe.safari&&e.contentDOM.addEventListener("input",()=>null),Fe.gecko&&mV(e.contentDOM.ownerDocument)}handleEvent(e){!aV(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let o=this.handlers[e];if(o){for(let r of o.observers)r(this.view,t);for(let r of o.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=eV(e),o=this.handlers,r=this.view.contentDOM;for(let s in t)if(s!="scroll"){let l=!t[s].handlers.length,d=o[s];d&&l!=!d.handlers.length&&(r.removeEventListener(s,this.handleEvent),d=null),d||r.addEventListener(s,this.handleEvent,{passive:l})}for(let s in o)s!="scroll"&&!t[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&LS.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Fe.android&&Fe.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return Fe.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=VS.find(o=>o.keyCode==e.keyCode))&&!e.ctrlKey||tV.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Sa(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Fe.safari&&!Fe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function BS(n,e){return(t,o)=>{try{return e.call(n,o,t)}catch(r){Kn(t.state,r)}}}function eV(n){let e=Object.create(null);function t(o){return e[o]||(e[o]={observers:[],handlers:[]})}for(let o of n){let r=o.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let l=r.domEventHandlers[s];l&&t(s).handlers.push(BS(o.value,l))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let l=r.domEventObservers[s];l&&t(s).observers.push(BS(o.value,l))}}for(let o in Wo)t(o).handlers.push(Wo[o]);for(let o in Ao)t(o).observers.push(Ao[o]);return e}const VS=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],tV="dthko",LS=[16,17,18,20,91,92,224,225],xd=6;function wd(n){return Math.max(0,n)*.7+8}function nV(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class oV{constructor(e,t,o,r){this.view=e,this.startEvent=t,this.style=o,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=fB(e.contentDOM),this.atoms=e.state.facet(ig).map(l=>l(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(dt.allowMultipleSelections)&&iV(e,t),this.dragging=sV(e,t)&&YS(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&nV(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,o=0,r=0,s=0,l=this.view.win.innerWidth,d=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:l}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:d}=this.scrollParents.y.getBoundingClientRect());let h=PS(this.view);e.clientX-h.left<=r+xd?t=-wd(r-e.clientX):e.clientX+h.right>=l-xd&&(t=wd(e.clientX-l)),e.clientY-h.top<=s+xd?o=-wd(s-e.clientY):e.clientY+h.bottom>=d-xd&&(o=wd(e.clientY-d)),this.setScrollSpeed(t,o)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let o=0;o<e.ranges.length;o++){let r=e.ranges[o],s=null;if(r.empty){let l=bd(this.atoms,r.from,0);l!=r.from&&(s=we.cursor(l,-1))}else{let l=bd(this.atoms,r.from,-1),d=bd(this.atoms,r.to,1);(l!=r.from||d!=r.to)&&(s=we.range(r.from==r.anchor?l:d,r.from==r.head?l:d))}s&&(t||(t=e.ranges.slice()),t[o]=s)}return t?we.create(t,e.mainIndex):e}select(e){let{view:t}=this,o=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!o.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:o,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function iV(n,e){let t=n.state.facet(dS);return t.length?t[0](e):Fe.mac?e.metaKey:e.ctrlKey}function rV(n,e){let t=n.state.facet(fS);return t.length?t[0](e):Fe.mac?!e.altKey:!e.ctrlKey}function sV(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let o=Gl(n.root);if(!o||o.rangeCount==0)return!0;let r=o.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let l=r[s];if(l.left<=e.clientX&&l.right>=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function aV(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,o;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(o=St.get(t))&&o.ignoreEvent(e))return!1;return!0}const Wo=Object.create(null),Ao=Object.create(null),jS=Fe.ie&&Fe.ie_version<15||Fe.ios&&Fe.webkit_version<604;function lV(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),FS(n,t.value)},50)}function Sd(n,e,t){for(let o of n.facet(e))t=o(t,n);return t}function FS(n,e){e=Sd(n.state,eg,e);let{state:t}=n,o,r=1,s=t.toText(e),l=s.lines==t.selection.ranges.length;if(ug!=null&&t.selection.ranges.every(h=>h.empty)&&ug==s.toString()){let h=-1;o=t.changeByRange(m=>{let g=t.doc.lineAt(m.from);if(g.from==h)return{range:m};h=g.from;let v=t.toText((l?s.line(r++).text:e)+t.lineBreak);return{changes:{from:g.from,insert:v},range:we.cursor(m.from+v.length)}})}else l?o=t.changeByRange(h=>{let m=s.line(r++);return{changes:{from:h.from,to:h.to,insert:m.text},range:we.cursor(h.from+m.length)}}):o=t.replaceSelection(s);n.dispatch(o,{userEvent:"input.paste",scrollIntoView:!0})}Ao.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft},Wo.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1),Ao.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")},Ao.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")},Wo.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let o of n.state.facet(hS))if(t=o(n,e),t)break;if(!t&&e.button==0&&(t=dV(n,e)),t){let o=!n.hasFocus;n.inputState.startMouseSelection(new oV(n,e,t,o)),o&&n.observer.ignore(()=>{jw(n.contentDOM);let s=n.root.activeElement;s&&!s.contains(n.contentDOM)&&s.blur()});let r=n.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function ZS(n,e,t,o){if(o==1)return we.cursor(e,t);if(o==2)return VB(n.state,e,t);{let r=$t.find(n.docView,e),s=n.state.doc.lineAt(r?r.posAtEnd:e),l=r?r.posAtStart:s.from,d=r?r.posAtEnd:s.to;return d<n.state.doc.length&&d==s.to&&d++,we.range(l,d)}}let zS=(n,e,t)=>e>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function cV(n,e,t,o){let r=$t.find(n.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let l=r.coordsAt(s,-1);if(l&&zS(t,o,l))return-1;let d=r.coordsAt(s,1);return d&&zS(t,o,d)?1:l&&l.bottom>=o?-1:1}function WS(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:cV(n,t,e.clientX,e.clientY)}}const uV=Fe.ie&&Fe.ie_version<=11;let US=null,HS=0,XS=0;function YS(n){if(!uV)return n.detail;let e=US,t=XS;return US=n,XS=Date.now(),HS=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(HS+1)%3:1}function dV(n,e){let t=WS(n,e),o=YS(e),r=n.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),r=r.map(s.changes))},get(s,l,d){let h=WS(n,s),m,g=ZS(n,h.pos,h.bias,o);if(t.pos!=h.pos&&!l){let v=ZS(n,t.pos,t.bias,o),b=Math.min(v.from,g.from),x=Math.max(v.to,g.to);g=b<g.from?we.range(b,x):we.range(x,b)}return l?r.replaceRange(r.main.extend(g.from,g.to)):d&&o==1&&r.ranges.length>1&&(m=fV(r,h.pos))?m:d?r.addRange(g):we.create([g])}}}function fV(n,e){for(let t=0;t<n.ranges.length;t++){let{from:o,to:r}=n.ranges[t];if(o<=e&&r>=e)return we.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}Wo.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let r=n.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,l=s+r.length;(s>=t.to||l<=t.from)&&(t=we.range(s,l))}}let{inputState:o}=n;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",Sd(n.state,tg,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1},Wo.dragend=n=>(n.inputState.draggedContent=null,!1);function GS(n,e,t,o){if(t=Sd(n.state,eg,t),!t)return;let r=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=n.inputState,l=o&&s&&rV(n,e)?{from:s.from,to:s.to}:null,d={from:r,insert:t},h=n.state.changes(l?[l,d]:d);n.focus(),n.dispatch({changes:h,selection:{anchor:h.mapPos(r,-1),head:h.mapPos(r,1)},userEvent:l?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Wo.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let o=Array(t.length),r=0,s=()=>{++r==t.length&&GS(n,e,o.filter(l=>l!=null).join(n.state.lineBreak),!1)};for(let l=0;l<t.length;l++){let d=new FileReader;d.onerror=s,d.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(d.result)||(o[l]=d.result),s()},d.readAsText(t[l])}return!0}else{let o=e.dataTransfer.getData("Text");if(o)return GS(n,e,o,!0),!0}return!1},Wo.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=jS?null:e.clipboardData;return t?(FS(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(lV(n),!1)};function hV(n,e){let t=n.dom.parentNode;if(!t)return;let o=t.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=e,o.focus(),o.selectionEnd=e.length,o.selectionStart=0,setTimeout(()=>{o.remove(),n.focus()},50)}function pV(n){let e=[],t=[],o=!1;for(let r of n.selection.ranges)r.empty||(e.push(n.sliceDoc(r.from,r.to)),t.push(r));if(!e.length){let r=-1;for(let{from:s}of n.selection.ranges){let l=n.doc.lineAt(s);l.number>r&&(e.push(l.text),t.push({from:l.from,to:Math.min(n.doc.length,l.to+1)})),r=l.number}o=!0}return{text:Sd(n,tg,e.join(n.lineBreak)),ranges:t,linewise:o}}let ug=null;Wo.copy=Wo.cut=(n,e)=>{let{text:t,ranges:o,linewise:r}=pV(n.state);if(!t&&!r)return!1;ug=r?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let s=jS?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(hV(n,t),!1)};const KS=Ri.define();function JS(n,e){let t=[];for(let o of n.facet(gS)){let r=o(n,e);r&&t.push(r)}return t?n.update({effects:t,annotations:KS.of(!0)}):null}function $S(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=JS(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ao.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),$S(n)},Ao.blur=n=>{n.observer.clearSelectionRange(),$S(n)},Ao.compositionstart=Ao.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))},Ao.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,Fe.chrome&&Fe.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))},Ao.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()},Wo.beforeinput=(n,e)=>{var t,o;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let s=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),l=e.getTargetRanges();if(s&&l.length){let d=l[0],h=n.posAtDOM(d.startContainer,d.startOffset),m=n.posAtDOM(d.endContainer,d.endOffset);return cg(n,{from:h,to:m,insert:n.state.toText(s)},null),!0}}let r;if(Fe.chrome&&Fe.android&&(r=VS.find(s=>s.inputType==e.inputType))&&(n.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let s=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var l;(((l=window.visualViewport)===null||l===void 0?void 0:l.height)||0)>s+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return Fe.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),Fe.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ao.compositionend(n,e),20),!1};const qS=new Set;function mV(n){qS.has(n)||(qS.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const eC=["pre-wrap","normal","pre-line","break-spaces"];let Ea=!1;function tC(){Ea=!1}class gV{constructor(e){this.lineWrapping=e,this.doc=pt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let o=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(o+=Math.max(0,Math.ceil((t-e-o*this.lineLength*.5)/this.lineLength))),this.lineHeight*o}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return eC.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let o=0;o<e.length;o++){let r=e[o];r<0?o++:this.heightSamples[Math.floor(r*10)]||(t=!0,this.heightSamples[Math.floor(r*10)]=!0)}return t}refresh(e,t,o,r,s,l){let d=eC.indexOf(e)>-1,h=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=d;if(this.lineWrapping=d,this.lineHeight=t,this.charWidth=o,this.textHeight=r,this.lineLength=s,h){this.heightSamples={};for(let m=0;m<l.length;m++){let g=l[m];g<0?m++:this.heightSamples[Math.floor(g*10)]=!0}}return h}}class OV{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class pi{constructor(e,t,o,r,s){this.from=e,this.length=t,this.top=o,this.height=r,this._content=s}get type(){return typeof this._content=="number"?Ln.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof sr?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new pi(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var At=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(At||(At={}));const Cd=.001;class jn{constructor(e,t,o=2){this.length=e,this.height=t,this.flags=o}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Cd&&(Ea=!0),this.height=e)}replace(e,t,o){return jn.of(o)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,o,r){let s=this,l=o.doc;for(let d=r.length-1;d>=0;d--){let{fromA:h,toA:m,fromB:g,toB:v}=r[d],b=s.lineAt(h,At.ByPosNoHeight,o.setDoc(t),0,0),x=b.to>=m?b:s.lineAt(m,At.ByPosNoHeight,o,0,0);for(v+=x.to-m,m=x.to;d>0&&b.from<=r[d-1].toA;)h=r[d-1].fromA,g=r[d-1].fromB,d--,h<b.from&&(b=s.lineAt(h,At.ByPosNoHeight,o,0,0));g+=b.from-h,h=b.from;let C=dg.build(o.setDoc(l),e,g,v);s=kd(s,s.replace(h,m,C))}return s.updateHeight(o,0)}static empty(){return new ho(0,0)}static of(e){if(e.length==1)return e[0];let t=0,o=e.length,r=0,s=0;for(;;)if(t==o)if(r>s*2){let d=e[t-1];d.break?e.splice(--t,1,d.left,null,d.right):e.splice(--t,1,d.left,d.right),o+=1+d.break,r-=d.size}else if(s>r*2){let d=e[o];d.break?e.splice(o,1,d.left,null,d.right):e.splice(o,1,d.left,d.right),o+=2+d.break,s-=d.size}else break;else if(r<s){let d=e[t++];d&&(r+=d.size)}else{let d=e[--o];d&&(s+=d.size)}let l=0;return e[t-1]==null?(l=1,t--):e[t]==null&&(l=1,o++),new vV(jn.of(e.slice(0,t)),l,jn.of(e.slice(o)))}}function kd(n,e){return n==e?n:(n.constructor!=e.constructor&&(Ea=!0),e)}jn.prototype.size=1;class nC extends jn{constructor(e,t,o){super(e,t),this.deco=o}blockAt(e,t,o,r){return new pi(r,this.length,o,this.height,this.deco||0)}lineAt(e,t,o,r,s){return this.blockAt(0,o,r,s)}forEachLine(e,t,o,r,s,l){e<=s+this.length&&t>=s&&l(this.blockAt(0,o,r,s))}updateHeight(e,t=0,o=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ho extends nC{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,o,r){return new pi(r,this.length,o,this.height,this.breaks)}replace(e,t,o){let r=o[0];return o.length==1&&(r instanceof ho||r instanceof kn&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof kn?r=new ho(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):jn.of(o)}updateHeight(e,t=0,o=!1,r){return r&&r.from<=t&&r.more?this.setHeight(r.heights[r.index++]):(o||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class kn extends jn{constructor(e){super(e,0)}heightMetrics(e,t){let o=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-o+1,l,d=0;if(e.lineWrapping){let h=Math.min(this.height,e.lineHeight*s);l=h/s,this.length>s+1&&(d=(this.height-h)/(this.length-s-1))}else l=this.height/s;return{firstLine:o,lastLine:r,perLine:l,perChar:d}}blockAt(e,t,o,r){let{firstLine:s,lastLine:l,perLine:d,perChar:h}=this.heightMetrics(t,r);if(t.lineWrapping){let m=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-o)/this.height))*this.length)),g=t.doc.lineAt(m),v=d+g.length*h,b=Math.max(o,e-v/2);return new pi(g.from,g.length,b,v,0)}else{let m=Math.max(0,Math.min(l-s,Math.floor((e-o)/d))),{from:g,length:v}=t.doc.line(s+m);return new pi(g,v,o+d*m,d,0)}}lineAt(e,t,o,r,s){if(t==At.ByHeight)return this.blockAt(e,o,r,s);if(t==At.ByPosNoHeight){let{from:x,to:C}=o.doc.lineAt(e);return new pi(x,C-x,0,0,0)}let{firstLine:l,perLine:d,perChar:h}=this.heightMetrics(o,s),m=o.doc.lineAt(e),g=d+m.length*h,v=m.number-l,b=r+d*v+h*(m.from-s-v);return new pi(m.from,m.length,Math.max(r,Math.min(b,r+this.height-g)),g,0)}forEachLine(e,t,o,r,s,l){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:d,perLine:h,perChar:m}=this.heightMetrics(o,s);for(let g=e,v=r;g<=t;){let b=o.doc.lineAt(g);if(g==e){let C=b.number-d;v+=h*C+m*(e-s-C)}let x=h+m*b.length;l(new pi(b.from,b.length,v,x,0)),v+=x,g=b.to+1}}replace(e,t,o){let r=this.length-t;if(r>0){let s=o[o.length-1];s instanceof kn?o[o.length-1]=new kn(s.length+r):o.push(null,new kn(r-1))}if(e>0){let s=o[0];s instanceof kn?o[0]=new kn(e+s.length):o.unshift(new kn(e-1),null)}return jn.of(o)}decomposeLeft(e,t){t.push(new kn(e-1),null)}decomposeRight(e,t){t.push(null,new kn(this.length-e-1))}updateHeight(e,t=0,o=!1,r){let s=t+this.length;if(r&&r.from<=t+this.length&&r.more){let l=[],d=Math.max(t,r.from),h=-1;for(r.from>t&&l.push(new kn(r.from-t-1).updateHeight(e,t));d<=s&&r.more;){let g=e.doc.lineAt(d).length;l.length&&l.push(null);let v=r.heights[r.index++];h==-1?h=v:Math.abs(v-h)>=Cd&&(h=-2);let b=new ho(g,v);b.outdated=!1,l.push(b),d+=g+1}d<=s&&l.push(null,new kn(s-d).updateHeight(e,d));let m=jn.of(l);return(h<0||Math.abs(m.height-this.height)>=Cd||Math.abs(h-this.heightMetrics(e,t).perLine)>=Cd)&&(Ea=!0),kd(this,m)}else(o||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class vV extends jn{constructor(e,t,o){super(e.length+t+o.length,e.height+o.height,t|(e.outdated||o.outdated?2:0)),this.left=e,this.right=o,this.size=e.size+o.size}get break(){return this.flags&1}blockAt(e,t,o,r){let s=o+this.left.height;return e<s?this.left.blockAt(e,t,o,r):this.right.blockAt(e,t,s,r+this.left.length+this.break)}lineAt(e,t,o,r,s){let l=r+this.left.height,d=s+this.left.length+this.break,h=t==At.ByHeight?e<l:e<d,m=h?this.left.lineAt(e,t,o,r,s):this.right.lineAt(e,t,o,l,d);if(this.break||(h?m.to<d:m.from>d))return m;let g=t==At.ByPosNoHeight?At.ByPosNoHeight:At.ByPos;return h?m.join(this.right.lineAt(d,g,o,l,d)):this.left.lineAt(d,g,o,r,s).join(m)}forEachLine(e,t,o,r,s,l){let d=r+this.left.height,h=s+this.left.length+this.break;if(this.break)e<h&&this.left.forEachLine(e,t,o,r,s,l),t>=h&&this.right.forEachLine(e,t,o,d,h,l);else{let m=this.lineAt(h,At.ByPos,o,r,s);e<m.from&&this.left.forEachLine(e,m.from-1,o,r,s,l),m.to>=e&&m.from<=t&&l(m),t>m.to&&this.right.forEachLine(m.to+1,t,o,d,h,l)}}replace(e,t,o){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,o),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,o));let s=[];e>0&&this.decomposeLeft(e,s);let l=s.length;for(let d of o)s.push(d);if(e>0&&oC(s,l-1),t<this.length){let d=s.length;this.decomposeRight(t,s),oC(s,d)}return jn.of(s)}decomposeLeft(e,t){let o=this.left.length;if(e<=o)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(o++,e>=o&&t.push(null)),e>o&&this.right.decomposeLeft(e-o,t)}decomposeRight(e,t){let o=this.left.length,r=o+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<o&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?jn.of(this.break?[e,null,t]:[e,t]):(this.left=kd(this.left,e),this.right=kd(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,o=!1,r){let{left:s,right:l}=this,d=t+s.length+this.break,h=null;return r&&r.from<=t+s.length&&r.more?h=s=s.updateHeight(e,t,o,r):s.updateHeight(e,t,o),r&&r.from<=d+l.length&&r.more?h=l=l.updateHeight(e,d,o,r):l.updateHeight(e,d,o),h?this.balanced(s,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function oC(n,e){let t,o;n[e]==null&&(t=n[e-1])instanceof kn&&(o=n[e+1])instanceof kn&&n.splice(e-1,3,new kn(t.length+1+o.length))}const yV=5;class dg{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let o=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof ho?r.length+=o-this.pos:(o>this.pos||!this.isCovered)&&this.nodes.push(new ho(o-this.pos,-1)),this.writtenTo=o,t>o&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,o){if(e<t||o.heightRelevant){let r=o.widget?o.widget.estimatedHeight:0,s=o.widget?o.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let l=t-e;o.block?this.addBlock(new nC(l,r,o)):(l||s||r>=yV)&&this.addLineDeco(r,s,l)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ho(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let o=new kn(t-e);return this.oracle.doc.lineAt(e).to==t&&(o.flags|=4),o}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ho)return e;let t=new ho(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,o){let r=this.ensureLine();r.length+=o,r.collapsed+=o,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+o}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof ho)&&!this.isCovered?this.nodes.push(new ho(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let o=e;for(let r of this.nodes)r instanceof ho&&r.updateHeight(this.oracle,o),o+=r?r.length:1;return this.nodes}static build(e,t,o,r){let s=new dg(o,e);return mt.spans(t,o,r,s,0),s.finish(o)}}function bV(n,e,t){let o=new xV;return mt.compare(n,e,t,o,0),o.changes}class xV{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,o,r){(e<t||o&&o.heightRelevant||r&&r.heightRelevant)&&Xm(e,t,this.changes,5)}}function wV(n,e){let t=n.getBoundingClientRect(),o=n.ownerDocument,r=o.defaultView||window,s=Math.max(0,t.left),l=Math.min(r.innerWidth,t.right),d=Math.max(0,t.top),h=Math.min(r.innerHeight,t.bottom);for(let m=n.parentNode;m&&m!=o.body;)if(m.nodeType==1){let g=m,v=window.getComputedStyle(g);if((g.scrollHeight>g.clientHeight||g.scrollWidth>g.clientWidth)&&v.overflow!="visible"){let b=g.getBoundingClientRect();s=Math.max(s,b.left),l=Math.min(l,b.right),d=Math.max(d,b.top),h=Math.min(m==n.parentNode?r.innerHeight:h,b.bottom)}m=v.position=="absolute"||v.position=="fixed"?g.offsetParent:g.parentNode}else if(m.nodeType==11)m=m.host;else break;return{left:s-t.left,right:Math.max(s,l)-t.left,top:d-(t.top+e),bottom:Math.max(d,h)-(t.top+e)}}function SV(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class fg{constructor(e,t,o){this.from=e,this.to=t,this.size=o}static same(e,t){if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],s=t[o];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,t){return He.replace({widget:new CV(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class CV extends fi{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class iC{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=rC,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Nt.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(og).some(o=>typeof o!="function"&&o.class=="cm-lineWrapping");this.heightOracle=new gV(t),this.stateDeco=e.facet(nc).filter(o=>typeof o!="function"),this.heightMap=jn.empty().applyChanges(this.stateDeco,pt.empty,this.heightOracle.setDoc(e.doc),[new No(0,0,0,e.doc.length)]);for(let o=0;o<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());o++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=He.set(this.lineGaps.map(o=>o.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let o=0;o<=1;o++){let r=o?t.head:t.anchor;if(!e.some(({from:s,to:l})=>r>=s&&r<=l)){let{from:s,to:l}=this.lineBlockAt(r);e.push(new Pd(s,l))}}return this.viewports=e.sort((o,r)=>o.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?rC:new hg(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(rc(e,this.scaler))})}update(e,t=null){this.state=e.state;let o=this.stateDeco;this.stateDeco=this.state.facet(nc).filter(g=>typeof g!="function");let r=e.changedRanges,s=No.extendWithRanges(r,bV(o,this.stateDeco,e?e.changes:rn.empty(this.state.doc.length))),l=this.heightMap.height,d=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);tC(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=l||Ea)&&(e.flags|=2),d?(this.scrollAnchorPos=e.changes.mapPos(d.from,-1),this.scrollAnchorHeight=d.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let h=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<h.from||t.range.head>h.to)||!this.viewportIsAppropriate(h))&&(h=this.getViewport(0,t));let m=h.from!=this.viewport.from||h.to!=this.viewport.to;this.viewport=h,e.flags|=this.updateForViewport(),(m||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(vS)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,o=window.getComputedStyle(t),r=this.heightOracle,s=o.whiteSpace;this.defaultTextDirection=o.direction=="rtl"?Nt.RTL:Nt.LTR;let l=this.heightOracle.mustRefreshForWrapping(s),d=t.getBoundingClientRect(),h=l||this.mustMeasureContent||this.contentDOMHeight!=d.height;this.contentDOMHeight=d.height,this.mustMeasureContent=!1;let m=0,g=0;if(d.width&&d.height){let{scaleX:D,scaleY:Q}=Lw(t,d);(D>.005&&Math.abs(this.scaleX-D)>.005||Q>.005&&Math.abs(this.scaleY-Q)>.005)&&(this.scaleX=D,this.scaleY=Q,m|=8,l=h=!0)}let v=(parseInt(o.paddingTop)||0)*this.scaleY,b=(parseInt(o.paddingBottom)||0)*this.scaleY;(this.paddingTop!=v||this.paddingBottom!=b)&&(this.paddingTop=v,this.paddingBottom=b,m|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(h=!0),this.editorWidth=e.scrollDOM.clientWidth,m|=8);let x=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=x&&(this.scrollAnchorHeight=-1,this.scrollTop=x),this.scrolledToBottom=zw(e.scrollDOM);let C=(this.printing?SV:wV)(t,this.paddingTop),k=C.top-this.pixelViewport.top,M=C.bottom-this.pixelViewport.bottom;this.pixelViewport=C;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(h=!0)),!this.inView&&!this.scrollTarget)return 0;let E=d.width;if((this.contentDOMWidth!=E||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=d.width,this.editorHeight=e.scrollDOM.clientHeight,m|=8),h){let D=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(D)&&(l=!0),l||r.lineWrapping&&Math.abs(E-this.contentDOMWidth)>r.charWidth){let{lineHeight:Q,charWidth:Y,textHeight:L}=e.docView.measureTextSize();l=Q>0&&r.refresh(s,Q,Y,L,E/Y,D),l&&(e.docView.minWidth=0,m|=8)}k>0&&M>0?g=Math.max(k,M):k<0&&M<0&&(g=Math.min(k,M)),tC();for(let Q of this.viewports){let Y=Q.from==this.viewport.from?D:e.docView.measureVisibleLineHeights(Q);this.heightMap=(l?jn.empty().applyChanges(this.stateDeco,pt.empty,this.heightOracle,[new No(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,l,new OV(Q.from,Y))}Ea&&(m|=2)}let F=!this.viewportIsAppropriate(this.viewport,g)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return F&&(m&2&&(m|=this.updateScaler()),this.viewport=this.getViewport(g,this.scrollTarget),m|=this.updateForViewport()),(m&2||F)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),m|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),m}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let o=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:l,visibleBottom:d}=this,h=new Pd(r.lineAt(l-o*1e3,At.ByHeight,s,0,0).from,r.lineAt(d+(1-o)*1e3,At.ByHeight,s,0,0).to);if(t){let{head:m}=t.range;if(m<h.from||m>h.to){let g=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),v=r.lineAt(m,At.ByPos,s,0,0),b;t.y=="center"?b=(v.top+v.bottom)/2-g/2:t.y=="start"||t.y=="nearest"&&m<h.from?b=v.top:b=v.bottom-g,h=new Pd(r.lineAt(b-1e3/2,At.ByHeight,s,0,0).from,r.lineAt(b+g+1e3/2,At.ByHeight,s,0,0).to)}}return h}mapViewport(e,t){let o=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Pd(this.heightMap.lineAt(o,At.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,At.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},o=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,At.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,At.ByPos,this.heightOracle,0,0),{visibleTop:l,visibleBottom:d}=this;return(e==0||r<=l-Math.max(10,Math.min(-o,250)))&&(t==this.state.doc.length||s>=d+Math.max(10,Math.min(o,250)))&&r>l-2*1e3&&s<d+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let o=[];for(let r of e)t.touchesRange(r.from,r.to)||o.push(new fg(t.mapPos(r.from),t.mapPos(r.to),r.size));return o}ensureLineGaps(e,t){let o=this.heightOracle.lineWrapping,r=o?1e4:2e3,s=r>>1,l=r<<1;if(this.defaultTextDirection!=Nt.LTR&&!o)return[];let d=[],h=(g,v,b,x)=>{if(v-g<s)return;let C=this.state.selection.main,k=[C.from];C.empty||k.push(C.to);for(let _ of k)if(_>g&&_<v){h(g,_-10,b,x),h(_+10,v,b,x);return}let M=PV(e,_=>_.from>=b.from&&_.to<=b.to&&Math.abs(_.from-g)<s&&Math.abs(_.to-v)<s&&!k.some(E=>_.from<E&&_.to>E));if(!M){if(v<b.to&&t&&o&&t.visibleRanges.some(_=>_.from<=v&&_.to>=v)){let _=t.moveToLineBoundary(we.cursor(v),!1,!0).head;_>g&&(v=_)}M=new fg(g,v,this.gapSize(b,g,v,x))}d.push(M)},m=g=>{if(g.length<l||g.type!=Ln.Text)return;let v=kV(g.from,g.to,this.stateDeco);if(v.total<l)return;let b=this.scrollTarget?this.scrollTarget.range.head:null,x,C;if(o){let k=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,M,_;if(b!=null){let E=Td(v,b),F=((this.visibleBottom-this.visibleTop)/2+k)/g.height;M=E-F,_=E+F}else M=(this.visibleTop-g.top-k)/g.height,_=(this.visibleBottom-g.top+k)/g.height;x=Ed(v,M),C=Ed(v,_)}else{let k=v.total*this.heightOracle.charWidth,M=r*this.heightOracle.charWidth,_,E;if(b!=null){let F=Td(v,b),D=((this.pixelViewport.right-this.pixelViewport.left)/2+M)/k;_=F-D,E=F+D}else _=(this.pixelViewport.left-M)/k,E=(this.pixelViewport.right+M)/k;x=Ed(v,_),C=Ed(v,E)}x>g.from&&h(g.from,x,g,v),C<g.to&&h(C,g.to,g,v)};for(let g of this.viewportLines)Array.isArray(g.type)?g.type.forEach(m):m(g);return d}gapSize(e,t,o,r){let s=Td(r,o)-Td(r,t);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){fg.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=He.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];mt.spans(e,this.viewport.from,this.viewport.to,{span(r,s){t.push({from:r,to:s})},point(){}},20);let o=t.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=t[s].from||r.to!=t[s].to);return this.visibleRanges=t,o?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||rc(this.heightMap.lineAt(e,At.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||rc(this.heightMap.lineAt(this.scaler.fromDOM(e),At.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return rc(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Pd{constructor(e,t){this.from=e,this.to=t}}function kV(n,e,t){let o=[],r=n,s=0;return mt.spans(t,n,e,{span(){},point(l,d){l>r&&(o.push({from:r,to:l}),s+=l-r),r=d}},20),r<e&&(o.push({from:r,to:e}),s+=e-r),{total:s,ranges:o}}function Ed({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let o=Math.floor(n*t);for(let r=0;;r++){let{from:s,to:l}=e[r],d=l-s;if(o<=d)return s+o;o-=d}}function Td(n,e){let t=0;for(let{from:o,to:r}of n.ranges){if(e<=r){t+=e-o;break}t+=r-o}return t/n.total}function PV(n,e){for(let t of n)if(e(t))return t}const rC={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class hg{constructor(e,t,o){let r=0,s=0,l=0;this.viewports=o.map(({from:d,to:h})=>{let m=t.lineAt(d,At.ByPos,e,0,0).top,g=t.lineAt(h,At.ByPos,e,0,0).bottom;return r+=g-m,{from:d,to:h,top:m,bottom:g,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let d of this.viewports)d.domTop=l+(d.top-s)*this.scale,l=d.domBottom=d.domTop+(d.bottom-d.top),s=d.bottom}toDOM(e){for(let t=0,o=0,r=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return r+(e-o)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);o=s.bottom,r=s.domBottom}}fromDOM(e){for(let t=0,o=0,r=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return o+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);o=s.bottom,r=s.domBottom}}eq(e){return e instanceof hg?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,o)=>t.from==e.viewports[o].from&&t.to==e.viewports[o].to):!1}}function rc(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),o=e.toDOM(n.bottom);return new pi(n.from,n.length,t,o-t,Array.isArray(n._content)?n._content.map(r=>rc(r,e)):n._content)}const _d=Le.define({combine:n=>n.join(" ")}),pg=Le.define({combine:n=>n.indexOf(!0)>-1}),mg=or.newName(),sC=or.newName(),aC=or.newName(),lC={"&light":"."+sC,"&dark":"."+aC};function gg(n,e,t){return new or(e,{finish(o){return/&/.test(o)?o.replace(/&\w*/,r=>{if(r=="&")return n;if(!t||!t[r])throw new RangeError(`Unsupported selector: ${r}`);return t[r]}):n+" "+o}})}const EV=gg("."+mg,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},lC),TV={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Og=Fe.ie&&Fe.ie_version<=11;class _V{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new hB,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let o of t)this.queue.push(o);(Fe.ie&&Fe.ie_version<=11||Fe.ios&&e.composing)&&t.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(Fe.chrome&&Fe.chrome_version<126)&&(this.editContext=new AV(e),e.state.facet(lr)&&(e.contentDOM.editContext=this.editContext.editContext)),Og&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,o)=>t!=e[o]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:o}=this,r=this.selectionRange;if(o.state.facet(lr)?o.root.activeElement!=this.dom:!hd(o.dom,r))return;let s=r.anchorNode&&o.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(Fe.ie&&Fe.ie_version<=11||Fe.android&&Fe.chrome)&&!o.state.selection.main.empty&&r.focusNode&&Kl(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Gl(e.root);if(!t)return!1;let o=Fe.safari&&e.root.nodeType==11&&cB(this.dom.ownerDocument)==this.dom&&NV(this.view,t)||t;if(!o||this.selectionRange.eq(o))return!1;let r=hd(this.dom,o);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&mB(this.dom,o)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(o),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let o=this.dom;o;)if(o.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==o?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(o),o=o.assignedSlot||o.parentNode;else if(o.nodeType==11)o=o.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);for(let o of this.scrollTargets=t)o.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,TV),Og&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Og&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var o;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Sa(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((o=this.delayedAndroidKey)===null||o===void 0)&&o.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,o=-1,r=!1;for(let s of e){let l=this.readMutation(s);l&&(l.typeOver&&(r=!0),t==-1?{from:t,to:o}=l:(t=Math.min(l.from,t),o=Math.max(l.to,o)))}return{from:t,to:o,typeOver:r}}readChange(){let{from:e,to:t,typeOver:o}=this.processRecords(),r=this.selectionChanged&&hd(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new YB(this.view,e,t,o);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let o=this.view.state,r=DS(this.view,t);return this.view.state==o&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let o=cC(t,e.previousSibling||e.target.previousSibling,-1),r=cC(t,e.nextSibling||e.target.nextSibling,1);return{from:o?t.posAfter(o):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(lr)!=e.state.facet(lr)&&(e.view.contentDOM.editContext=e.state.facet(lr)?this.editContext.editContext:null))}destroy(){var e,t,o;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(o=this.resizeScroll)===null||o===void 0||o.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function cC(n,e,t){for(;e;){let o=St.get(e);if(o&&o.parent==n)return o;let r=e.parentNode;e=r!=n.dom?r:t>0?e.nextSibling:e.previousSibling}return null}function uC(n,e){let t=e.startContainer,o=e.startOffset,r=e.endContainer,s=e.endOffset,l=n.docView.domAtPos(n.state.selection.main.anchor);return Kl(l.node,l.offset,r,s)&&([t,o,r,s]=[r,s,t,o]),{anchorNode:t,anchorOffset:o,focusNode:r,focusOffset:s}}function NV(n,e){if(e.getComposedRanges){let r=e.getComposedRanges(n.root)[0];if(r)return uC(n,r)}let t=null;function o(r){r.preventDefault(),r.stopImmediatePropagation(),t=r.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",o,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",o,!0),t?uC(n,t):null}class AV{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=o=>{let{anchor:r}=e.state.selection.main,s={from:this.toEditorPos(o.updateRangeStart),to:this.toEditorPos(o.updateRangeEnd),insert:pt.of(o.text.split(`
|
|
342
|
+
`))};s.from==this.from&&r<this.from?s.from=r:s.to==this.to&&r>this.to&&(s.to=r),!(s.from==s.to&&!s.insert.length)&&(this.pendingContextChange=s,e.state.readOnly||cg(e,s,we.single(this.toEditorPos(o.selectionStart),this.toEditorPos(o.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=o=>{let r=[],s=null;for(let l=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);l<d;l++){let h=e.coordsForChar(l);s=h&&new DOMRect(h.left,h.top,h.right-h.left,h.bottom-h.top)||s||new DOMRect,r.push(s)}t.updateCharacterBounds(o.rangeStart,r)},this.handlers.textformatupdate=o=>{let r=[];for(let s of o.getTextFormats()){let l=s.underlineStyle,d=s.underlineThickness;if(l!="None"&&d!="None"){let h=`text-decoration: underline ${l=="Dashed"?"dashed ":l=="Squiggle"?"wavy ":""}${d=="Thin"?1:2}px`;r.push(He.mark({attributes:{style:h}}).range(this.toEditorPos(s.rangeStart),this.toEditorPos(s.rangeEnd)))}}e.dispatch({effects:bS.of(He.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let o in this.handlers)t.addEventListener(o,this.handlers[o]);this.measureReq={read:o=>{this.editContext.updateControlBounds(o.contentDOM.getBoundingClientRect());let r=Gl(o.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,o=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,l,d,h,m)=>{if(o)return;let g=m.length-(l-s);if(r&&l>=r.to)if(r.from==s&&r.to==l&&r.insert.eq(m)){r=this.pendingContextChange=null,t+=g,this.to+=g;return}else r=null,this.revertPending(e.state);if(s+=t,l+=t,l<=this.from)this.from+=g,this.to+=g;else if(s<this.to){if(s<this.from||l>this.to||this.to-this.from+m.length>3e4){o=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(l),m.toString()),this.to+=g}t+=g}),r&&!o&&this.revertPending(e.state),!o}update(e){let t=this.pendingContextChange;!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,o=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=o||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(o,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class Be{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(r=>r.forEach(s=>o(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||pB(e.parent)||document,this.viewState=new iC(e.state||dt.create(e)),e.scrollTo&&e.scrollTo.is(vd)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(tc).map(r=>new ng(r));for(let r of this.plugins)r.update(this);this.observer=new _V(this),this.inputState=new qB(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ES(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof Jt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,o=!1,r,s=this.state;for(let b of e){if(b.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=b.state}if(this.destroyed){this.viewState.state=s;return}let l=this.hasFocus,d=0,h=null;e.some(b=>b.annotation(KS))?(this.inputState.notifiedFocused=l,d=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,h=JS(s,l),h||(d=1));let m=this.observer.delayedAndroidKey,g=null;if(m?(this.observer.clearDelayedAndroidKey(),g=this.observer.readChange(),(g&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(g=null)):this.observer.clear(),s.facet(dt.phrases)!=this.state.facet(dt.phrases))return this.setState(s);r=yd.create(this,s,e),r.flags|=d;let v=this.viewState.scrollTarget;try{this.updateState=2;for(let b of e){if(v&&(v=v.map(b.changes)),b.scrollIntoView){let{main:x}=b.state.selection;v=new Pa(x.empty?x:we.cursor(x.head,x.head>x.anchor?-1:1))}for(let x of b.effects)x.is(vd)&&(v=x.value.clip(this.state))}this.viewState.update(r,v),this.bidiCache=Nd.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(oc)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(b=>b.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(_d)!=r.state.facet(_d)&&(this.viewState.mustMeasureContent=!0),(t||o||v||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let b of this.state.facet(qm))try{b(r)}catch(x){Kn(this.state,x,"update listener")}(h||g)&&Promise.resolve().then(()=>{h&&this.state==h.startState&&this.dispatch(h),g&&!DS(this,g)&&m.force&&Sa(this.contentDOM,m.key,m.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let o of this.plugins)o.destroy(this);this.viewState=new iC(e),this.plugins=e.facet(tc).map(o=>new ng(o)),this.pluginMap.clear();for(let o of this.plugins)o.update(this);this.docView.destroy(),this.docView=new ES(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(tc),o=e.state.facet(tc);if(t!=o){let r=[];for(let s of o){let l=t.indexOf(s);if(l<0)r.push(new ng(s));else{let d=this.plugins[l];d.mustUpdate=e,r.push(d)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);t!=o&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(o){Kn(this.state,o,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,o=this.scrollDOM,r=o.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:l}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let d=0;;d++){if(l<0)if(zw(o))s=-1,l=this.viewState.heightMap.height;else{let x=this.viewState.scrollAnchorAt(r);s=x.from,l=x.top}this.updateState=1;let h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(d>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let m=[];h&4||([this.measureRequests,m]=[m,this.measureRequests]);let g=m.map(x=>{try{return x.read(this)}catch(C){return Kn(this.state,C),dC}}),v=yd.create(this,this.state,[]),b=!1;v.flags|=h,t?t.flags|=h:t=v,this.updateState=2,v.empty||(this.updatePlugins(v),this.inputState.update(v),this.updateAttrs(),b=this.docView.update(v),b&&this.docViewUpdate());for(let x=0;x<m.length;x++)if(g[x]!=dC)try{let C=m[x];C.write&&C.write(g[x],this)}catch(C){Kn(this.state,C)}if(b&&this.docView.updateSelection(!0),!v.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,l=-1;continue}else{let C=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-l;if(C>1||C<-1){r=r+C,o.scrollTop=r/this.scaleY,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let d of this.state.facet(qm))d(t)}get themeClasses(){return mg+" "+(this.state.facet(pg)?aC:sC)+" "+this.state.facet(_d)}updateAttrs(){let e=fC(this,xS,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(lr)?"true":"false",class:"cm-content",style:`${Fe.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),fC(this,og,t);let o=this.observer.ignore(()=>{let r=Hm(this.contentDOM,this.contentAttrs,t),s=Hm(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=t,o}showAnnouncements(e){let t=!0;for(let o of e)for(let r of o.effects)if(r.is(Be.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(oc);let e=this.state.facet(Be.cspNonce);or.mount(this.root,this.styleModules.concat(EV).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(o=>o.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,o){return lg(this,e,QS(this,e,t,o))}moveByGroup(e,t){return lg(this,e,QS(this,e,t,o=>WB(this,e.head,o)))}visualLineSide(e,t){let o=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=o[t?o.length-1:0];return we.cursor(s.side(t,r)+e.from,s.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,o=!0){return zB(this,e,t,o)}moveVertically(e,t,o){return lg(this,e,UB(this,e,t,o))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),RS(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let o=this.docView.coordsAt(e,t);if(!o||o.left==o.right)return o;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),l=s[ar.find(s,e-r.from,-1,t)];return Jl(o,l.dir==Nt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(OS)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>RV)return cS(e.length);let t=this.textDirectionAt(e.from),o;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||lS(s.isolates,o=CS(this,e))))return s.order;o||(o=CS(this,e));let r=EB(e.text,t,o);return this.bidiCache.push(new Nd(e.from,e.to,t,o,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Fe.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{jw(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return vd.of(new Pa(typeof e=="number"?we.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,o=this.viewState.scrollAnchorAt(e);return vd.of(new Pa(we.cursor(o.from),"start","start",o.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Wt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Wt.define(()=>({}),{eventObservers:e})}static theme(e,t){let o=or.newName(),r=[_d.of(o),oc.of(gg(`.${o}`,e))];return t&&t.dark&&r.push(pg.of(!0)),r}static baseTheme(e){return tr.lowest(oc.of(gg("."+mg,e,lC)))}static findFromDOM(e){var t;let o=e.querySelector(".cm-content"),r=o&&St.get(o)||St.get(e);return((t=r?.rootView)===null||t===void 0?void 0:t.view)||null}}Be.styleModule=oc,Be.inputHandler=mS,Be.clipboardInputFilter=eg,Be.clipboardOutputFilter=tg,Be.scrollHandler=yS,Be.focusChangeEffect=gS,Be.perLineTextDirection=OS,Be.exceptionSink=pS,Be.updateListener=qm,Be.editable=lr,Be.mouseSelectionStyle=hS,Be.dragMovesSelection=fS,Be.clickAddsSelectionRange=dS,Be.decorations=nc,Be.outerDecorations=wS,Be.atomicRanges=ig,Be.bidiIsolatedRanges=SS,Be.scrollMargins=kS,Be.darkTheme=pg,Be.cspNonce=Le.define({combine:n=>n.length?n[0]:""}),Be.contentAttributes=og,Be.editorAttributes=xS,Be.lineWrapping=Be.contentAttributes.of({class:"cm-lineWrapping"}),Be.announce=nt.define();const RV=4096,dC={};class Nd{constructor(e,t,o,r,s,l){this.from=e,this.to=t,this.dir=o,this.isolates=r,this.fresh=s,this.order=l}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let o=[],r=e.length?e[e.length-1].dir:Nt.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let l=e[s];l.dir==r&&!t.touchesRange(l.from,l.to)&&o.push(new Nd(t.mapPos(l.from,1),t.mapPos(l.to,-1),l.dir,l.isolates,!1,l.order))}return o}}function fC(n,e,t){for(let o=n.state.facet(e),r=o.length-1;r>=0;r--){let s=o[r],l=typeof s=="function"?s(n):s;l&&Um(l,t)}return t}const MV=Fe.mac?"mac":Fe.windows?"win":Fe.linux?"linux":"key";function QV(n,e){const t=n.split(/-(?!$)/);let o=t[t.length-1];o=="Space"&&(o=" ");let r,s,l,d;for(let h=0;h<t.length-1;++h){const m=t[h];if(/^(cmd|meta|m)$/i.test(m))d=!0;else if(/^a(lt)?$/i.test(m))r=!0;else if(/^(c|ctrl|control)$/i.test(m))s=!0;else if(/^s(hift)?$/i.test(m))l=!0;else if(/^mod$/i.test(m))e=="mac"?d=!0:s=!0;else throw new Error("Unrecognized modifier name: "+m)}return r&&(o="Alt-"+o),s&&(o="Ctrl-"+o),d&&(o="Meta-"+o),l&&(o="Shift-"+o),o}function Ad(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const IV=tr.default(Be.domEventHandlers({keydown(n,e){return mC(pC(e.state),n,e,"editor")}})),sc=Le.define({enables:IV}),hC=new WeakMap;function pC(n){let e=n.facet(sc),t=hC.get(e);return t||hC.set(e,t=VV(e.reduce((o,r)=>o.concat(r),[]))),t}function DV(n,e,t){return mC(pC(n.state),e,n,t)}let cr=null;const BV=4e3;function VV(n,e=MV){let t=Object.create(null),o=Object.create(null),r=(l,d)=>{let h=o[l];if(h==null)o[l]=d;else if(h!=d)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},s=(l,d,h,m,g)=>{var v,b;let x=t[l]||(t[l]=Object.create(null)),C=d.split(/ (?!$)/).map(_=>QV(_,e));for(let _=1;_<C.length;_++){let E=C.slice(0,_).join(" ");r(E,!0),x[E]||(x[E]={preventDefault:!0,stopPropagation:!1,run:[F=>{let D=cr={view:F,prefix:E,scope:l};return setTimeout(()=>{cr==D&&(cr=null)},BV),!0}]})}let k=C.join(" ");r(k,!1);let M=x[k]||(x[k]={preventDefault:!1,stopPropagation:!1,run:((b=(v=x._any)===null||v===void 0?void 0:v.run)===null||b===void 0?void 0:b.slice())||[]});h&&M.run.push(h),m&&(M.preventDefault=!0),g&&(M.stopPropagation=!0)};for(let l of n){let d=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let m of d){let g=t[m]||(t[m]=Object.create(null));g._any||(g._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:v}=l;for(let b in g)g[b].run.push(x=>v(x,vg))}let h=l[e]||l.key;if(h)for(let m of d)s(m,h,l.run,l.preventDefault,l.stopPropagation),l.shift&&s(m,"Shift-"+h,l.shift,l.preventDefault,l.stopPropagation)}return t}let vg=null;function mC(n,e,t,o){vg=e;let r=lB(e),s=wn(r,0),l=_o(s)==r.length&&r!=" ",d="",h=!1,m=!1,g=!1;cr&&cr.view==t&&cr.scope==o&&(d=cr.prefix+" ",LS.indexOf(e.keyCode)<0&&(m=!0,cr=null));let v=new Set,b=M=>{if(M){for(let _ of M.run)if(!v.has(_)&&(v.add(_),_(t)))return M.stopPropagation&&(g=!0),!0;M.preventDefault&&(M.stopPropagation&&(g=!0),m=!0)}return!1},x=n[o],C,k;return x&&(b(x[d+Ad(r,e,!l)])?h=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Fe.windows&&e.ctrlKey&&e.altKey)&&(C=ir[e.keyCode])&&C!=r?(b(x[d+Ad(C,e,!0)])||e.shiftKey&&(k=Yl[e.keyCode])!=r&&k!=C&&b(x[d+Ad(k,e,!1)]))&&(h=!0):l&&e.shiftKey&&b(x[d+Ad(r,e,!0)])&&(h=!0),!h&&b(x._any)&&(h=!0)),m&&(h=!0),h&&g&&e.stopPropagation(),vg=null,h}class ac{constructor(e,t,o,r,s){this.className=e,this.left=t,this.top=o,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,o){if(o.empty){let r=e.coordsAtPos(o.head,o.assoc||1);if(!r)return[];let s=gC(e);return[new ac(t,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return LV(e,t,o)}}function gC(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Nt.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function OC(n,e,t,o){let r=n.coordsAtPos(e,t*2);if(!r)return o;let s=n.dom.getBoundingClientRect(),l=(r.top+r.bottom)/2,d=n.posAtCoords({x:s.left+1,y:l}),h=n.posAtCoords({x:s.right-1,y:l});return d==null||h==null?o:{from:Math.max(o.from,Math.min(d,h)),to:Math.min(o.to,Math.max(d,h))}}function LV(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let o=Math.max(t.from,n.viewport.from),r=Math.min(t.to,n.viewport.to),s=n.textDirection==Nt.LTR,l=n.contentDOM,d=l.getBoundingClientRect(),h=gC(n),m=l.querySelector(".cm-line"),g=m&&window.getComputedStyle(m),v=d.left+(g?parseInt(g.paddingLeft)+Math.min(0,parseInt(g.textIndent)):0),b=d.right-(g?parseInt(g.paddingRight):0),x=ag(n,o),C=ag(n,r),k=x.type==Ln.Text?x:null,M=C.type==Ln.Text?C:null;if(k&&(n.lineWrapping||x.widgetLineBreaks)&&(k=OC(n,o,1,k)),M&&(n.lineWrapping||C.widgetLineBreaks)&&(M=OC(n,r,-1,M)),k&&M&&k.from==M.from&&k.to==M.to)return E(F(t.from,t.to,k));{let Q=k?F(t.from,null,k):D(x,!1),Y=M?F(null,t.to,M):D(C,!0),L=[];return(k||x).to<(M||C).from-(k&&M?1:0)||x.widgetLineBreaks>1&&Q.bottom+n.defaultLineHeight/2<Y.top?L.push(_(v,Q.bottom,b,Y.top)):Q.bottom<Y.top&&n.elementAtHeight((Q.bottom+Y.top)/2).type==Ln.Text&&(Q.bottom=Y.top=(Q.bottom+Y.top)/2),E(Q).concat(L).concat(E(Y))}function _(Q,Y,L,Z){return new ac(e,Q-h.left,Y-h.top-.01,L-Q,Z-Y+.01)}function E({top:Q,bottom:Y,horizontal:L}){let Z=[];for(let I=0;I<L.length;I+=2)Z.push(_(L[I],Q,L[I+1],Y));return Z}function F(Q,Y,L){let Z=1e9,I=-1e9,G=[];function ae(ke,re,be,Ve,ve){let $e=n.coordsAtPos(ke,ke==L.to?-2:2),Ae=n.coordsAtPos(be,be==L.from?2:-2);!$e||!Ae||(Z=Math.min($e.top,Ae.top,Z),I=Math.max($e.bottom,Ae.bottom,I),ve==Nt.LTR?G.push(s&&re?v:$e.left,s&&Ve?b:Ae.right):G.push(!s&&Ve?v:Ae.left,!s&&re?b:$e.right))}let Oe=Q??L.from,Ue=Y??L.to;for(let ke of n.visibleRanges)if(ke.to>Oe&&ke.from<Ue)for(let re=Math.max(ke.from,Oe),be=Math.min(ke.to,Ue);;){let Ve=n.state.doc.lineAt(re);for(let ve of n.bidiSpans(Ve)){let $e=ve.from+Ve.from,Ae=ve.to+Ve.from;if($e>=be)break;Ae>re&&ae(Math.max($e,re),Q==null&&$e<=Oe,Math.min(Ae,be),Y==null&&Ae>=Ue,ve.dir)}if(re=Ve.to+1,re>=be)break}return G.length==0&&ae(Oe,Q==null,Ue,Y==null,n.textDirection),{top:Z,bottom:I,horizontal:G}}function D(Q,Y){let L=d.top+(Y?Q.top:Q.bottom);return{top:L,bottom:L,horizontal:[]}}}function jV(n,e){return n.constructor==e.constructor&&n.eq(e)}class FV{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Rd)!=e.state.facet(Rd)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,o=e.facet(Rd);for(;t<o.length&&o[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,o)=>!jV(t,this.drawn[o]))){let t=this.dom.firstChild,o=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[o].constructor&&r.update(t,this.drawn[o])?(t=t.nextSibling,o++):this.dom.insertBefore(r.draw(),t);for(;t;){let r=t.nextSibling;t.remove(),t=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Rd=Le.define();function vC(n){return[Wt.define(e=>new FV(e,n)),Rd.of(n)]}const yC=!Fe.ios,lc=Le.define({combine(n){return di(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function ZV(n={}){return[lc.of(n),zV,WV,UV,vS.of(!0)]}function bC(n){return n.startState.facet(lc)!=n.state.facet(lc)}const zV=vC({above:!0,markers(n){let{state:e}=n,t=e.facet(lc),o=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty?!s||yC:t.drawRangeCursor){let l=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",d=r.empty?r:we.cursor(r.head,r.head>r.anchor?-1:1);for(let h of ac.forRange(n,l,d))o.push(h)}}return o},update(n,e){n.transactions.some(o=>o.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=bC(n);return t&&xC(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){xC(e.state,n)},class:"cm-cursorLayer"});function xC(n,e){e.style.animationDuration=n.facet(lc).cursorBlinkRate+"ms"}const WV=vC({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:ac.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||bC(n)},class:"cm-selectionLayer"}),yg={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};yC&&(yg[".cm-line"].caretColor=yg[".cm-content"].caretColor="transparent !important");const UV=tr.highest(Be.theme(yg)),wC=nt.define({map(n,e){return n==null?null:e.mapPos(n)}}),cc=fn.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,o)=>o.is(wC)?o.value:t,n)}}),HV=Wt.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(cc);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(cc)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(cc),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let o=n.scrollDOM.getBoundingClientRect();return{left:t.left-o.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-o.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(cc)!=n&&this.view.dispatch({effects:wC.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function XV(){return[cc,HV]}function SC(n,e,t,o,r){e.lastIndex=0;for(let s=n.iterRange(t,o),l=t,d;!s.next().done;l+=s.value.length)if(!s.lineBreak)for(;d=e.exec(s.value);)r(l+d.index,d)}function YV(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let o=[];for(let{from:r,to:s}of t)r=Math.max(n.state.doc.lineAt(r).from,r-e),s=Math.min(n.state.doc.lineAt(s).to,s+e),o.length&&o[o.length-1].to>=r?o[o.length-1].to=s:o.push({from:r,to:s});return o}class GV{constructor(e){const{regexp:t,decoration:o,decorate:r,boundary:s,maxLength:l=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(d,h,m,g)=>r(g,m,m+d[0].length,d,h);else if(typeof o=="function")this.addMatch=(d,h,m,g)=>{let v=o(d,h,m);v&&g(m,m+d[0].length,v)};else if(o)this.addMatch=(d,h,m,g)=>g(m,m+d[0].length,o);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=l}createDeco(e){let t=new nr,o=t.add.bind(t);for(let{from:r,to:s}of YV(e,this.maxLength))SC(e.state.doc,this.regexp,r,s,(l,d)=>this.addMatch(d,e,l,o));return t.finish()}updateDeco(e,t){let o=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,l,d,h)=>{h>e.view.viewport.from&&d<e.view.viewport.to&&(o=Math.min(d,o),r=Math.max(h,r))}),e.viewportChanged||r-o>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),o,r):t}updateRange(e,t,o,r){for(let s of e.visibleRanges){let l=Math.max(s.from,o),d=Math.min(s.to,r);if(d>l){let h=e.state.doc.lineAt(l),m=h.to<d?e.state.doc.lineAt(d):h,g=Math.max(s.from,h.from),v=Math.min(s.to,m.to);if(this.boundary){for(;l>h.from;l--)if(this.boundary.test(h.text[l-1-h.from])){g=l;break}for(;d<m.to;d++)if(this.boundary.test(m.text[d-m.from])){v=d;break}}let b=[],x,C=(k,M,_)=>b.push(_.range(k,M));if(h==m)for(this.regexp.lastIndex=g-h.from;(x=this.regexp.exec(h.text))&&x.index<v-h.from;)this.addMatch(x,e,x.index+h.from,C);else SC(e.state.doc,this.regexp,g,v,(k,M)=>this.addMatch(M,e,k,C));t=t.update({filterFrom:g,filterTo:v,filter:(k,M)=>k<g||M>v,add:b})}}return t}}const bg=/x/.unicode!=null?"gu":"g",KV=new RegExp(`[\0-\b
|
|
343
|
+
--\u2028\u2029\uFEFF-]`,bg),JV={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let xg=null;function $V(){var n;if(xg==null&&typeof document<"u"&&document.body){let e=document.body.style;xg=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return xg||!1}const Md=Le.define({combine(n){let e=di(n,{render:null,specialChars:KV,addSpecialChars:null});return(e.replaceTabs=!$V())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,bg)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,bg)),e}});function qV(n={}){return[Md.of(n),eL()]}let CC=null;function eL(){return CC||(CC=Wt.fromClass(class{constructor(n){this.view=n,this.decorations=He.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Md)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new GV({regexp:n.specialChars,decoration:(e,t,o)=>{let{doc:r}=t.state,s=wn(e[0],0);if(s==9){let l=r.lineAt(o),d=t.state.tabSize,h=ba(l.text,d,o-l.from);return He.replace({widget:new iL((d-h%d)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=He.replace({widget:new oL(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(Md);n.startState.facet(Md)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const tL="•";function nL(n){return n>=32?tL:n==10?"":String.fromCharCode(9216+n)}class oL extends fi{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=nL(this.code),o=e.state.phrase("Control character")+" "+(JV[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,o,t);if(r)return r;let s=document.createElement("span");return s.textContent=t,s.title=o,s.setAttribute("aria-label",o),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class iL extends fi{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function rL(){return aL}const sL=He.line({class:"cm-activeLine"}),aL=Wt.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let o of n.state.selection.ranges){let r=n.lineBlockAt(o.head);r.from>e&&(t.push(sL.range(r.from)),e=r.from)}return He.set(t)}},{decorations:n=>n.decorations});class lL extends fi{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?xa(e.firstChild):[];if(!t.length)return null;let o=window.getComputedStyle(e.parentNode),r=Jl(t[0],o.direction!="rtl"),s=parseInt(o.lineHeight);return r.bottom-r.top>s*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+s}:r}ignoreEvent(){return!1}}function cL(n){return Wt.fromClass(class{constructor(e){this.view=e,this.placeholder=n?He.set([He.widget({widget:new lL(n),side:1}).range(0)]):He.none}get decorations(){return this.view.state.doc.length?He.none:this.placeholder}},{decorations:e=>e.decorations})}const wg=2e3;function uL(n,e,t){let o=Math.min(e.line,t.line),r=Math.max(e.line,t.line),s=[];if(e.off>wg||t.off>wg||e.col<0||t.col<0){let l=Math.min(e.off,t.off),d=Math.max(e.off,t.off);for(let h=o;h<=r;h++){let m=n.doc.line(h);m.length<=d&&s.push(we.range(m.from+l,m.to+d))}}else{let l=Math.min(e.col,t.col),d=Math.max(e.col,t.col);for(let h=o;h<=r;h++){let m=n.doc.line(h),g=Im(m.text,l,n.tabSize,!0);if(g<0)s.push(we.cursor(m.to));else{let v=Im(m.text,d,n.tabSize);s.push(we.range(m.from+g,m.from+v))}}}return s}function dL(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function kC(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),o=n.state.doc.lineAt(t),r=t-o.from,s=r>wg?-1:r==o.length?dL(n,e.clientX):ba(o.text,n.state.tabSize,t-o.from);return{line:o.number,col:s,off:r}}function fL(n,e){let t=kC(n,e),o=n.state.selection;return t?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(t.line).from),l=r.state.doc.lineAt(s);t={line:l.number,col:t.col,off:Math.min(t.off,l.length)},o=o.map(r.changes)}},get(r,s,l){let d=kC(n,r);if(!d)return o;let h=uL(n.state,t,d);return h.length?l?we.create(h.concat(o.ranges)):we.create(h):o}}:null}function hL(n){let e=t=>t.altKey&&t.button==0;return Be.mouseSelectionStyle.of((t,o)=>e(o)?fL(t,o):null)}const pL={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},mL={style:"cursor: crosshair"};function gL(n={}){let[e,t]=pL[n.key||"Alt"],o=Wt.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[o,Be.contentAttributes.of(r=>{var s;return!((s=r.plugin(o))===null||s===void 0)&&s.isDown?mL:null})]}const uc="-10000px";class PC{constructor(e,t,o,r){this.facet=t,this.createTooltipView=o,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(l=>l);let s=null;this.tooltipViews=this.tooltips.map(l=>s=o(l,s))}update(e,t){var o;let r=e.state.facet(this.facet),s=r.filter(h=>h);if(r===this.input){for(let h of this.tooltipViews)h.update&&h.update(e);return!1}let l=[],d=t?[]:null;for(let h=0;h<s.length;h++){let m=s[h],g=-1;if(m){for(let v=0;v<this.tooltips.length;v++){let b=this.tooltips[v];b&&b.create==m.create&&(g=v)}if(g<0)l[h]=this.createTooltipView(m,h?l[h-1]:null),d&&(d[h]=!!m.above);else{let v=l[h]=this.tooltipViews[g];d&&(d[h]=t[g]),v.update&&v.update(e)}}}for(let h of this.tooltipViews)l.indexOf(h)<0&&(this.removeTooltipView(h),(o=h.destroy)===null||o===void 0||o.call(h));return t&&(d.forEach((h,m)=>t[m]=h),t.length=d.length),this.input=r,this.tooltips=s,this.tooltipViews=l,!0}}function OL(n){let{win:e}=n;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Sg=Le.define({combine:n=>{var e,t,o;return{position:Fe.ios?"absolute":((e=n.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(r=>r.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((o=n.find(r=>r.tooltipSpace))===null||o===void 0?void 0:o.tooltipSpace)||OL}}}),EC=new WeakMap,Cg=Wt.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Sg);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new PC(n,kg,(t,o)=>this.createTooltip(t,o),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,o=n.state.facet(Sg);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;t=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),o=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",t.dom.appendChild(r)}return t.dom.style.position=this.position,t.dom.style.top=uc,t.dom.style.left="0px",this.container.insertBefore(t.dom,o),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(n=o.destroy)===null||n===void 0||n.call(o);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=this.view.dom.getBoundingClientRect(),e=1,t=1,o=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(Fe.gecko)o=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==uc&&r.style.left=="0px"){let s=r.getBoundingClientRect();o=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(o||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map((r,s)=>{let l=this.manager.tooltipViews[s];return l.getCoords?l.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(Sg).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:o}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let d of this.manager.tooltipViews)d.dom.style.position="absolute"}let{editor:t,space:o,scaleX:r,scaleY:s}=n,l=[];for(let d=0;d<this.manager.tooltips.length;d++){let h=this.manager.tooltips[d],m=this.manager.tooltipViews[d],{dom:g}=m,v=n.pos[d],b=n.size[d];if(!v||v.bottom<=Math.max(t.top,o.top)||v.top>=Math.min(t.bottom,o.bottom)||v.right<Math.max(t.left,o.left)-.1||v.left>Math.min(t.right,o.right)+.1){g.style.top=uc;continue}let x=h.arrow?m.dom.querySelector(".cm-tooltip-arrow"):null,C=x?7:0,k=b.right-b.left,M=(e=EC.get(m))!==null&&e!==void 0?e:b.bottom-b.top,_=m.offset||yL,E=this.view.textDirection==Nt.LTR,F=b.width>o.right-o.left?E?o.left:o.right-b.width:E?Math.max(o.left,Math.min(v.left-(x?14:0)+_.x,o.right-k)):Math.min(Math.max(o.left,v.left-k+(x?14:0)-_.x),o.right-k),D=this.above[d];!h.strictSide&&(D?v.top-(b.bottom-b.top)-_.y<o.top:v.bottom+(b.bottom-b.top)+_.y>o.bottom)&&D==o.bottom-v.bottom>v.top-o.top&&(D=this.above[d]=!D);let Q=(D?v.top-o.top:o.bottom-v.bottom)-C;if(Q<M&&m.resize!==!1){if(Q<this.view.defaultLineHeight){g.style.top=uc;continue}EC.set(m,M),g.style.height=(M=Q)/s+"px"}else g.style.height&&(g.style.height="");let Y=D?v.top-M-C-_.y:v.bottom+C+_.y,L=F+k;if(m.overlap!==!0)for(let Z of l)Z.left<L&&Z.right>F&&Z.top<Y+M&&Z.bottom>Y&&(Y=D?Z.top-M-2-C:Z.bottom+C+2);if(this.position=="absolute"?(g.style.top=(Y-n.parent.top)/s+"px",g.style.left=(F-n.parent.left)/r+"px"):(g.style.top=Y/s+"px",g.style.left=F/r+"px"),x){let Z=v.left+(E?_.x:-_.x)-(F+14-7);x.style.left=Z/r+"px"}m.overlap!==!0&&l.push({left:F,top:Y,right:L,bottom:Y+M}),g.classList.toggle("cm-tooltip-above",D),g.classList.toggle("cm-tooltip-below",!D),m.positioned&&m.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=uc}},{eventObservers:{scroll(){this.maybeMeasure()}}}),vL=Be.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),yL={x:0,y:0},kg=Le.define({enables:[Cg,vL]}),Qd=Le.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class Id{static create(e){return new Id(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new PC(e,Qd,(t,o)=>this.createHostedView(t,o),t=>t.dom.remove())}createHostedView(e,t){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(o.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let o of this.manager.tooltipViews){let r=o[e];if(r!==void 0){if(t===void 0)t=r;else if(t!==r)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const bL=kg.compute([Qd],n=>{let e=n.facet(Qd);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var o;return(o=t.end)!==null&&o!==void 0?o:t.pos})),create:Id.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class xL{constructor(e,t,o,r,s){this.view=e,this.source=t,this.field=o,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,o=e.docView.nearest(t.target);if(!o)return;let r,s=1;if(o instanceof rr)r=o.posAtStart;else{if(r=e.posAtCoords(t),r==null)return;let d=e.coordsAtPos(r);if(!d||t.y<d.top||t.y>d.bottom||t.x<d.left-e.defaultCharacterWidth||t.x>d.right+e.defaultCharacterWidth)return;let h=e.bidiSpans(e.state.doc.lineAt(r)).find(g=>g.from<=r&&g.to>=r),m=h&&h.dir==Nt.RTL?-1:1;s=t.x<d.left?-m:m}let l=this.source(e,r,s);if(l?.then){let d=this.pending={pos:r};l.then(h=>{this.pending==d&&(this.pending=null,h&&!(Array.isArray(h)&&!h.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(h)?h:[h])}))},h=>Kn(e.state,h,"hover tooltip"))}else l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])})}get tooltip(){let e=this.view.plugin(Cg),t=e?e.manager.tooltips.findIndex(o=>o.create==Id.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!wL(s.dom,e)||this.pending){let{pos:l}=r[0]||this.pending,d=(o=(t=r[0])===null||t===void 0?void 0:t.end)!==null&&o!==void 0?o:l;(l==d?this.view.posAtCoords(this.lastMove)!=l:!SL(this.view,l,d,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:o}=this;o&&o.dom.contains(e.relatedTarget)?this.watchTooltipLeave(o.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=o=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(o.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Dd=4;function wL(n,e){let{left:t,right:o,top:r,bottom:s}=n.getBoundingClientRect(),l;if(l=n.querySelector(".cm-tooltip-arrow")){let d=l.getBoundingClientRect();r=Math.min(d.top,r),s=Math.max(d.bottom,s)}return e.clientX>=t-Dd&&e.clientX<=o+Dd&&e.clientY>=r-Dd&&e.clientY<=s+Dd}function SL(n,e,t,o,r,s){let l=n.scrollDOM.getBoundingClientRect(),d=n.documentTop+n.documentPadding.top+n.contentHeight;if(l.left>o||l.right<o||l.top>r||Math.min(l.bottom,d)<r)return!1;let h=n.posAtCoords({x:o,y:r},!1);return h>=e&&h<=t}function CL(n,e={}){let t=nt.define(),o=fn.define({create(){return[]},update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(l=>!e.hideOn(s,l))),s.docChanged)){let l=[];for(let d of r){let h=s.changes.mapPos(d.pos,-1,Sn.TrackDel);if(h!=null){let m=Object.assign(Object.create(null),d);m.pos=h,m.end!=null&&(m.end=s.changes.mapPos(m.end)),l.push(m)}}r=l}for(let l of s.effects)l.is(t)&&(r=l.value),l.is(kL)&&(r=[]);return r},provide:r=>Qd.from(r)});return{active:o,extension:[o,Wt.define(r=>new xL(r,n,o,t,e.hoverTime||300)),bL]}}function TC(n,e){let t=n.plugin(Cg);if(!t)return null;let o=t.manager.tooltips.indexOf(e);return o<0?null:t.manager.tooltipViews[o]}const kL=nt.define(),_C=Le.define({combine(n){let e,t;for(let o of n)e=e||o.topContainer,t=t||o.bottomContainer;return{topContainer:e,bottomContainer:t}}});function dc(n,e){let t=n.plugin(NC),o=t?t.specs.indexOf(e):-1;return o>-1?t.panels[o]:null}const NC=Wt.fromClass(class{constructor(n){this.input=n.state.facet(fc),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet(_C);this.top=new Bd(n,!0,e.topContainer),this.bottom=new Bd(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet(_C);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Bd(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Bd(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(fc);if(t!=this.input){let o=t.filter(h=>h),r=[],s=[],l=[],d=[];for(let h of o){let m=this.specs.indexOf(h),g;m<0?(g=h(n.view),d.push(g)):(g=this.panels[m],g.update&&g.update(n)),r.push(g),(g.top?s:l).push(g)}this.specs=o,this.panels=r,this.top.sync(s),this.bottom.sync(l);for(let h of d)h.dom.classList.add("cm-panel"),h.mount&&h.mount()}else for(let o of this.panels)o.update&&o.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>Be.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Bd{constructor(e,t,o){this.view=e,this.top=t,this.container=o,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=AC(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=AC(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function AC(n){let e=n.nextSibling;return n.remove(),e}const fc=Le.define({enables:NC});class Di extends ls{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Di.prototype.elementClass="",Di.prototype.toDOM=void 0,Di.prototype.mapMode=Sn.TrackBefore,Di.prototype.startSide=Di.prototype.endSide=-1,Di.prototype.point=!0;const Vd=Le.define(),PL=Le.define(),EL={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},hc=Le.define();function TL(n){return[MC(),hc.of(Object.assign(Object.assign({},EL),n))]}const RC=Le.define({combine:n=>n.some(e=>e)});function MC(n){return[_L]}const _L=Wt.fromClass(class{constructor(n){this.view=n,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(hc).map(e=>new IC(n,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!n.state.facet(RC),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,o=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(o<(t.to-t.from)*.8)}n.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(RC)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&this.dom.remove();let t=mt.iter(this.view.state.facet(Vd),this.view.viewport.from),o=[],r=this.gutters.map(s=>new NL(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(s.type)){let l=!0;for(let d of s.type)if(d.type==Ln.Text&&l){Pg(t,o,d.from);for(let h of r)h.line(this.view,d,o);l=!1}else if(d.widget)for(let h of r)h.widget(this.view,d)}else if(s.type==Ln.Text){Pg(t,o,s.from);for(let l of r)l.line(this.view,s,o)}else if(s.widget)for(let l of r)l.widget(this.view,s);for(let s of r)s.finish();n&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(n){let e=n.startState.facet(hc),t=n.state.facet(hc),o=n.docChanged||n.heightChanged||n.viewportChanged||!mt.eq(n.startState.facet(Vd),n.state.facet(Vd),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let r of this.gutters)r.update(n)&&(o=!0);else{o=!0;let r=[];for(let s of t){let l=e.indexOf(s);l<0?r.push(new IC(this.view,s)):(this.gutters[l].update(n),r.push(this.gutters[l]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)this.dom.appendChild(s.dom);this.gutters=r}return o}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove()}},{provide:n=>Be.scrollMargins.of(e=>{let t=e.plugin(n);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Nt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function QC(n){return Array.isArray(n)?n:[n]}function Pg(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class NL{constructor(e,t,o){this.gutter=e,this.height=o,this.i=0,this.cursor=mt.iter(e.markers,t.from)}addElement(e,t,o){let{gutter:r}=this,s=(t.top-this.height)/e.scaleY,l=t.height/e.scaleY;if(this.i==r.elements.length){let d=new DC(e,l,s,o);r.elements.push(d),r.dom.appendChild(d.dom)}else r.elements[this.i].update(e,l,s,o);this.height=t.bottom,this.i++}line(e,t,o){let r=[];Pg(this.cursor,r,t.from),o.length&&(r=r.concat(o));let s=this.gutter.config.lineMarker(e,t,r);s&&r.unshift(s);let l=this.gutter;r.length==0&&!l.config.renderEmptyElements||this.addElement(e,t,r)}widget(e,t){let o=this.gutter.config.widgetMarker(e,t.widget,t),r=o?[o]:null;for(let s of e.state.facet(PL)){let l=s(e,t.widget,t);l&&(r||(r=[])).push(l)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class IC{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let o in t.domEventHandlers)this.dom.addEventListener(o,r=>{let s=r.target,l;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let h=s.getBoundingClientRect();l=(h.top+h.bottom)/2}else l=r.clientY;let d=e.lineBlockAtHeight(l-e.documentTop);t.domEventHandlers[o](e,d,r)&&r.preventDefault()});this.markers=QC(t.markers(e)),t.initialSpacer&&(this.spacer=new DC(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=QC(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let o=e.view.viewport;return!mt.eq(this.markers,t,o.from,o.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class DC{constructor(e,t,o,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,o,r)}update(e,t,o,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=o&&(this.dom.style.marginTop=(this.above=o)?o+"px":""),AL(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let o="cm-gutterElement",r=this.dom.firstChild;for(let s=0,l=0;;){let d=l,h=s<t.length?t[s++]:null,m=!1;if(h){let g=h.elementClass;g&&(o+=" "+g);for(let v=l;v<this.markers.length;v++)if(this.markers[v].compare(h)){d=v,m=!0;break}}else d=this.markers.length;for(;l<d;){let g=this.markers[l++];if(g.toDOM){g.destroy(r);let v=r.nextSibling;r.remove(),r=v}}if(!h)break;h.toDOM&&(m?r=r.nextSibling:this.dom.insertBefore(h.toDOM(e),r)),m&&l++}this.dom.className=o,this.markers=t}destroy(){this.setMarkers(null,[])}}function AL(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const RL=Le.define(),ML=Le.define(),Ta=Le.define({combine(n){return di(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let o=Object.assign({},e);for(let r in t){let s=o[r],l=t[r];o[r]=s?(d,h,m)=>s(d,h,m)||l(d,h,m):l}return o}})}});class Eg extends Di{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Tg(n,e){return n.state.facet(Ta).formatNumber(e,n.state)}const QL=hc.compute([Ta],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(RL)},lineMarker(e,t,o){return o.some(r=>r.toDOM)?null:new Eg(Tg(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,o)=>{for(let r of e.state.facet(ML)){let s=r(e,t,o);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(Ta)!=e.state.facet(Ta),initialSpacer(e){return new Eg(Tg(e,BC(e.state.doc.lines)))},updateSpacer(e,t){let o=Tg(t.view,BC(t.view.state.doc.lines));return o==e.number?e:new Eg(o)},domEventHandlers:n.facet(Ta).domEventHandlers}));function IL(n={}){return[Ta.of(n),MC(),QL]}function BC(n){let e=9;for(;e<n;)e=e*10+9;return e}const DL=new class extends Di{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},BL=Vd.compute(["selection"],n=>{let e=[],t=-1;for(let o of n.selection.ranges){let r=n.doc.lineAt(o.head).from;r>t&&(t=r,e.push(DL.range(r)))}return mt.of(e)});function VL(){return BL}const VC=1024;let LL=0;class _g{constructor(e,t){this.from=e,this.to=t}}class ct{constructor(e={}){this.id=LL++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Jn.match(e)),t=>{let o=e(t);return o===void 0?null:[this,o]}}}ct.closedBy=new ct({deserialize:n=>n.split(" ")}),ct.openedBy=new ct({deserialize:n=>n.split(" ")}),ct.group=new ct({deserialize:n=>n.split(" ")}),ct.isolate=new ct({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}}),ct.contextHash=new ct({perNode:!0}),ct.lookAhead=new ct({perNode:!0}),ct.mounted=new ct({perNode:!0});class Ld{constructor(e,t,o){this.tree=e,this.overlay=t,this.parser=o}static get(e){return e&&e.props&&e.props[ct.mounted.id]}}const jL=Object.create(null);class Jn{constructor(e,t,o,r=0){this.name=e,this.props=t,this.id=o,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):jL,o=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Jn(e.name||"",t,e.id,o);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ct.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let o in e)for(let r of o.split(" "))t[r]=e[o];return o=>{for(let r=o.prop(ct.group),s=-1;s<(r?r.length:0);s++){let l=t[s<0?o.name:r[s]];if(l)return l}}}}Jn.none=new Jn("",Object.create(null),0,8);class Ng{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let o of this.types){let r=null;for(let s of e){let l=s(o);l&&(r||(r=Object.assign({},o.props)),r[l[0].id]=l[1])}t.push(r?new Jn(o.name,r,o.id,o.flags):o)}return new Ng(t)}}const jd=new WeakMap,LC=new WeakMap;var sn;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(sn||(sn={}));class qt{constructor(e,t,o,r,s){if(this.type=e,this.children=t,this.positions=o,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[l,d]of s)this.props[typeof l=="number"?l:l.id]=d}}toString(){let e=Ld.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let o of this.children){let r=o.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Mg(this.topNode,e)}cursorAt(e,t=0,o=0){let r=jd.get(this)||this.topNode,s=new Mg(r);return s.moveTo(e,t),jd.set(this,s._tree),s}get topNode(){return new $n(this,0,0,null)}resolve(e,t=0){let o=pc(jd.get(this)||this.topNode,e,t,!1);return jd.set(this,o),o}resolveInner(e,t=0){let o=pc(LC.get(this)||this.topNode,e,t,!0);return LC.set(this,o),o}resolveStack(e,t=0){return zL(this,e,t)}iterate(e){let{enter:t,leave:o,from:r=0,to:s=this.length}=e,l=e.mode||0,d=(l&sn.IncludeAnonymous)>0;for(let h=this.cursor(l|sn.IncludeAnonymous);;){let m=!1;if(h.from<=s&&h.to>=r&&(!d&&h.type.isAnonymous||t(h)!==!1)){if(h.firstChild())continue;m=!0}for(;m&&o&&(d||!h.type.isAnonymous)&&o(h),!h.nextSibling();){if(!h.parent())return;m=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Ig(Jn.none,this.children,this.positions,0,this.children.length,0,this.length,(t,o,r)=>new qt(this.type,t,o,r,this.propValues),e.makeTree||((t,o,r)=>new qt(Jn.none,t,o,r)))}static build(e){return WL(e)}}qt.empty=new qt(Jn.none,[],[],0);class Ag{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Ag(this.buffer,this.index)}}class ur{constructor(e,t,o){this.buffer=e,this.length=t,this.set=o}get type(){return Jn.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],o=this.buffer[e+3],r=this.set.types[t],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,o==e)return s;let l=[];for(;e<o;)l.push(this.childString(e)),e=this.buffer[e+3];return s+"("+l.join(",")+")"}findChild(e,t,o,r,s){let{buffer:l}=this,d=-1;for(let h=e;h!=t&&!(jC(s,r,l[h+1],l[h+2])&&(d=h,o>0));h=l[h+3]);return d}slice(e,t,o){let r=this.buffer,s=new Uint16Array(t-e),l=0;for(let d=e,h=0;d<t;){s[h++]=r[d++],s[h++]=r[d++]-o;let m=s[h++]=r[d++]-o;s[h++]=r[d++]-e,l=Math.max(l,m)}return new ur(s,l,this.set)}}function jC(n,e,t,o){switch(n){case-2:return t<e;case-1:return o>=e&&t<e;case 0:return t<e&&o>e;case 1:return t<=e&&o>e;case 2:return o>e;case 4:return!0}}function pc(n,e,t,o){for(var r;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let l=!o&&n instanceof $n&&n.index<0?null:n.parent;if(!l)return n;n=l}let s=o?0:sn.IgnoreOverlays;if(o)for(let l=n,d=l.parent;d;l=d,d=l.parent)l instanceof $n&&l.index<0&&((r=d.enter(e,t,s))===null||r===void 0?void 0:r.from)!=l.from&&(n=d);for(;;){let l=n.enter(e,t,s);if(!l)return n;n=l}}class FC{cursor(e=0){return new Mg(this,e)}getChild(e,t=null,o=null){let r=ZC(this,e,t,o);return r.length?r[0]:null}getChildren(e,t=null,o=null){return ZC(this,e,t,o)}resolve(e,t=0){return pc(this,e,t,!1)}resolveInner(e,t=0){return pc(this,e,t,!0)}matchContext(e){return Rg(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),o=this;for(;t;){let r=t.lastChild;if(!r||r.to!=t.to)break;r.type.isError&&r.from==r.to?(o=t,t=r.prevSibling):t=r}return o}get node(){return this}get next(){return this.parent}}class $n extends FC{constructor(e,t,o,r){super(),this._tree=e,this.from=t,this.index=o,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,o,r,s=0){for(let l=this;;){for(let{children:d,positions:h}=l._tree,m=t>0?d.length:-1;e!=m;e+=t){let g=d[e],v=h[e]+l.from;if(jC(r,o,v,v+g.length)){if(g instanceof ur){if(s&sn.ExcludeBuffers)continue;let b=g.findChild(0,g.buffer.length,t,o-v,r);if(b>-1)return new mi(new FL(l,g,e,v),null,b)}else if(s&sn.IncludeAnonymous||!g.type.isAnonymous||Qg(g)){let b;if(!(s&sn.IgnoreMounts)&&(b=Ld.get(g))&&!b.overlay)return new $n(b.tree,v,e,l);let x=new $n(g,v,e,l);return s&sn.IncludeAnonymous||!x.type.isAnonymous?x:x.nextChild(t<0?g.children.length-1:0,t,o,r)}}}if(s&sn.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+t:e=t<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,o=0){let r;if(!(o&sn.IgnoreOverlays)&&(r=Ld.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:l,to:d}of r.overlay)if((t>0?l<=s:l<s)&&(t<0?d>=s:d>s))return new $n(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,o)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function ZC(n,e,t,o){let r=n.cursor(),s=[];if(!r.firstChild())return s;if(t!=null){for(let l=!1;!l;)if(l=r.type.is(t),!r.nextSibling())return s}for(;;){if(o!=null&&r.type.is(o))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return o==null?s:[]}}function Rg(n,e,t=e.length-1){for(let o=n.parent;t>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(e[t]&&e[t]!=o.name)return!1;t--}}return!0}class FL{constructor(e,t,o,r){this.parent=e,this.buffer=t,this.index=o,this.start=r}}class mi extends FC{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,o){super(),this.context=e,this._parent=t,this.index=o,this.type=e.buffer.set.types[e.buffer.buffer[o]]}child(e,t,o){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,o);return s<0?null:new mi(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,o=0){if(o&sn.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new mi(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new mi(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new mi(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:o}=this.context,r=this.index+4,s=o.buffer[this.index+3];if(s>r){let l=o.buffer[this.index+1];e.push(o.slice(r,s,l)),t.push(0)}return new qt(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function zC(n){if(!n.length)return null;let e=0,t=n[0];for(let s=1;s<n.length;s++){let l=n[s];(l.from>t.from||l.to<t.to)&&(t=l,e=s)}let o=t instanceof $n&&t.index<0?null:t.parent,r=n.slice();return o?r[e]=o:r.splice(e,1),new ZL(r,t)}class ZL{constructor(e,t){this.heads=e,this.node=t}get next(){return zC(this.heads)}}function zL(n,e,t){let o=n.resolveInner(e,t),r=null;for(let s=o instanceof $n?o:o.context.parent;s;s=s.parent)if(s.index<0){let l=s.parent;(r||(r=[o])).push(l.resolve(e,t)),s=l}else{let l=Ld.get(s.tree);if(l&&l.overlay&&l.overlay[0].from<=e&&l.overlay[l.overlay.length-1].to>=e){let d=new $n(l.tree,l.overlay[0].from+s.from,-1,s);(r||(r=[o])).push(pc(d,e,t,!1))}}return r?zC(r):o}class Mg{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof $n)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let o=e._parent;o;o=o._parent)this.stack.unshift(o.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:o,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=o+r.buffer[e+1],this.to=o+r.buffer[e+2],!0}yield(e){return e?e instanceof $n?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,o){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,o,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,o);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,o=this.mode){return this.buffer?o&sn.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,o))}parent(){if(!this.buffer)return this.yieldNode(this.mode&sn.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&sn.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,o=this.stack.length-1;if(e<0){let r=o<0?0:this.stack[o]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{let r=t.buffer[this.index+3];if(r<(o<0?t.buffer.length:t.buffer[this.stack[o]+3]))return this.yieldBuf(r)}return o<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,o,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:o}=r)}else({index:t,_parent:o}=this._tree);for(;o;{index:t,_parent:o}=o)if(t>-1)for(let s=t+e,l=e<0?-1:o._tree.children.length;s!=l;s+=e){let d=o._tree.children[s];if(this.mode&sn.IncludeAnonymous||d instanceof ur||!d.type.isAnonymous||Qg(d))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,o=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let l=e;l;l=l._parent)if(l.index==r){if(r==this.index)return l;t=l,o=s+1;break e}r=this.stack[--s]}for(let r=o;r<this.stack.length;r++)t=new mi(this.buffer,t,this.stack[r]);return this.bufferNode=new mi(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let o=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){o++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!o)return;this.parent(),o--,r=!0}}}matchContext(e){if(!this.buffer)return Rg(this.node,e);let{buffer:t}=this.buffer,{types:o}=t.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return Rg(this.node,e,r);let l=o[t.buffer[this.stack[s]]];if(!l.isAnonymous){if(e[r]&&e[r]!=l.name)return!1;r--}}return!0}}function Qg(n){return n.children.some(e=>e instanceof ur||!e.type.isAnonymous||Qg(e))}function WL(n){var e;let{buffer:t,nodeSet:o,maxBufferLength:r=VC,reused:s=[],minRepeatType:l=o.types.length}=n,d=Array.isArray(t)?new Ag(t,t.length):t,h=o.types,m=0,g=0;function v(Q,Y,L,Z,I,G){let{id:ae,start:Oe,end:Ue,size:ke}=d,re=g;for(;ke<0;)if(d.next(),ke==-1){let Ae=s[ae];L.push(Ae),Z.push(Oe-Q);return}else if(ke==-3){m=ae;return}else if(ke==-4){g=ae;return}else throw new RangeError(`Unrecognized record size: ${ke}`);let be=h[ae],Ve,ve,$e=Oe-Q;if(Ue-Oe<=r&&(ve=M(d.pos-Y,I))){let Ae=new Uint16Array(ve.size-ve.skip),Se=d.pos-ve.size,ht=Ae.length;for(;d.pos>Se;)ht=_(ve.start,Ae,ht);Ve=new ur(Ae,Ue-ve.start,o),$e=ve.start-Q}else{let Ae=d.pos-ke;d.next();let Se=[],ht=[],Pe=ae>=l?ae:-1,Ze=0,bt=Ue;for(;d.pos>Ae;)Pe>=0&&d.id==Pe&&d.size>=0?(d.end<=bt-r&&(C(Se,ht,Oe,Ze,d.end,bt,Pe,re),Ze=Se.length,bt=d.end),d.next()):G>2500?b(Oe,Ae,Se,ht):v(Oe,Ae,Se,ht,Pe,G+1);if(Pe>=0&&Ze>0&&Ze<Se.length&&C(Se,ht,Oe,Ze,Oe,bt,Pe,re),Se.reverse(),ht.reverse(),Pe>-1&&Ze>0){let vo=x(be);Ve=Ig(be,Se,ht,0,Se.length,0,Ue-Oe,vo,vo)}else Ve=k(be,Se,ht,Ue-Oe,re-Ue)}L.push(Ve),Z.push($e)}function b(Q,Y,L,Z){let I=[],G=0,ae=-1;for(;d.pos>Y;){let{id:Oe,start:Ue,end:ke,size:re}=d;if(re>4)d.next();else{if(ae>-1&&Ue<ae)break;ae<0&&(ae=ke-r),I.push(Oe,Ue,ke),G++,d.next()}}if(G){let Oe=new Uint16Array(G*4),Ue=I[I.length-2];for(let ke=I.length-3,re=0;ke>=0;ke-=3)Oe[re++]=I[ke],Oe[re++]=I[ke+1]-Ue,Oe[re++]=I[ke+2]-Ue,Oe[re++]=re;L.push(new ur(Oe,I[2]-Ue,o)),Z.push(Ue-Q)}}function x(Q){return(Y,L,Z)=>{let I=0,G=Y.length-1,ae,Oe;if(G>=0&&(ae=Y[G])instanceof qt){if(!G&&ae.type==Q&&ae.length==Z)return ae;(Oe=ae.prop(ct.lookAhead))&&(I=L[G]+ae.length+Oe)}return k(Q,Y,L,Z,I)}}function C(Q,Y,L,Z,I,G,ae,Oe){let Ue=[],ke=[];for(;Q.length>Z;)Ue.push(Q.pop()),ke.push(Y.pop()+L-I);Q.push(k(o.types[ae],Ue,ke,G-I,Oe-G)),Y.push(I-L)}function k(Q,Y,L,Z,I=0,G){if(m){let ae=[ct.contextHash,m];G=G?[ae].concat(G):[ae]}if(I>25){let ae=[ct.lookAhead,I];G=G?[ae].concat(G):[ae]}return new qt(Q,Y,L,Z,G)}function M(Q,Y){let L=d.fork(),Z=0,I=0,G=0,ae=L.end-r,Oe={size:0,start:0,skip:0};e:for(let Ue=L.pos-Q;L.pos>Ue;){let ke=L.size;if(L.id==Y&&ke>=0){Oe.size=Z,Oe.start=I,Oe.skip=G,G+=4,Z+=4,L.next();continue}let re=L.pos-ke;if(ke<0||re<Ue||L.start<ae)break;let be=L.id>=l?4:0,Ve=L.start;for(L.next();L.pos>re;){if(L.size<0)if(L.size==-3)be+=4;else break e;else L.id>=l&&(be+=4);L.next()}I=Ve,Z+=ke,G+=be}return(Y<0||Z==Q)&&(Oe.size=Z,Oe.start=I,Oe.skip=G),Oe.size>4?Oe:void 0}function _(Q,Y,L){let{id:Z,start:I,end:G,size:ae}=d;if(d.next(),ae>=0&&Z<l){let Oe=L;if(ae>4){let Ue=d.pos-(ae-4);for(;d.pos>Ue;)L=_(Q,Y,L)}Y[--L]=Oe,Y[--L]=G-Q,Y[--L]=I-Q,Y[--L]=Z}else ae==-3?m=Z:ae==-4&&(g=Z);return L}let E=[],F=[];for(;d.pos>0;)v(n.start||0,n.bufferStart||0,E,F,-1,0);let D=(e=n.length)!==null&&e!==void 0?e:E.length?F[0]+E[0].length:0;return new qt(h[n.topID],E.reverse(),F.reverse(),D)}const WC=new WeakMap;function Fd(n,e){if(!n.isAnonymous||e instanceof ur||e.type!=n)return 1;let t=WC.get(e);if(t==null){t=1;for(let o of e.children){if(o.type!=n||!(o instanceof qt)){t=1;break}t+=Fd(n,o)}WC.set(e,t)}return t}function Ig(n,e,t,o,r,s,l,d,h){let m=0;for(let C=o;C<r;C++)m+=Fd(n,e[C]);let g=Math.ceil(m*1.5/8),v=[],b=[];function x(C,k,M,_,E){for(let F=M;F<_;){let D=F,Q=k[F],Y=Fd(n,C[F]);for(F++;F<_;F++){let L=Fd(n,C[F]);if(Y+L>=g)break;Y+=L}if(F==D+1){if(Y>g){let L=C[D];x(L.children,L.positions,0,L.children.length,k[D]+E);continue}v.push(C[D])}else{let L=k[F-1]+C[F-1].length-Q;v.push(Ig(n,C,k,D,F,Q,L,null,h))}b.push(Q+E-s)}}return x(e,t,o,r,0),(d||h)(v,b,l)}class UL{constructor(){this.map=new WeakMap}setBuffer(e,t,o){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,o)}getBuffer(e,t){let o=this.map.get(e);return o&&o.get(t)}set(e,t){e instanceof mi?this.setBuffer(e.context.buffer,e.index,t):e instanceof $n&&this.map.set(e.tree,t)}get(e){return e instanceof mi?this.getBuffer(e.context.buffer,e.index):e instanceof $n?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class fs{constructor(e,t,o,r,s=!1,l=!1){this.from=e,this.to=t,this.tree=o,this.offset=r,this.open=(s?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],o=!1){let r=[new fs(0,e.length,e,0,!1,o)];for(let s of t)s.to>e.length&&r.push(s);return r}static applyChanges(e,t,o=128){if(!t.length)return e;let r=[],s=1,l=e.length?e[0]:null;for(let d=0,h=0,m=0;;d++){let g=d<t.length?t[d]:null,v=g?g.fromA:1e9;if(v-h>=o)for(;l&&l.from<v;){let b=l;if(h>=b.from||v<=b.to||m){let x=Math.max(b.from,h)-m,C=Math.min(b.to,v)-m;b=x>=C?null:new fs(x,C,b.tree,b.offset+m,d>0,!!g)}if(b&&r.push(b),l.to>v)break;l=s<e.length?e[s++]:null}if(!g)break;h=g.toA,m=g.toA-g.toB}return r}}class UC{startParse(e,t,o){return typeof e=="string"&&(e=new HL(e)),o=o?o.length?o.map(r=>new _g(r.from,r.to)):[new _g(0,0)]:[new _g(0,e.length)],this.createParse(e,t||[],o)}parse(e,t,o){let r=this.startParse(e,t,o);for(;;){let s=r.advance();if(s)return s}}}class HL{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new ct({perNode:!0});let XL=0;class Ro{constructor(e,t,o,r){this.name=e,this.set=t,this.base=o,this.modified=r,this.id=XL++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let o=typeof e=="string"?e:"?";if(e instanceof Ro&&(t=e),t?.base)throw new Error("Can not derive from a modified tag");let r=new Ro(o,[],null,[]);if(r.set.push(r),t)for(let s of t.set)r.set.push(s);return r}static defineModifier(e){let t=new Zd(e);return o=>o.modified.indexOf(t)>-1?o:Zd.get(o.base||o,o.modified.concat(t).sort((r,s)=>r.id-s.id))}}let YL=0;class Zd{constructor(e){this.name=e,this.instances=[],this.id=YL++}static get(e,t){if(!t.length)return e;let o=t[0].instances.find(d=>d.base==e&&GL(t,d.modified));if(o)return o;let r=[],s=new Ro(e.name,r,e,t);for(let d of t)d.instances.push(s);let l=KL(t);for(let d of e.set)if(!d.modified.length)for(let h of l)r.push(Zd.get(d,h));return s}}function GL(n,e){return n.length==e.length&&n.every((t,o)=>t==e[o])}function KL(n){let e=[[]];for(let t=0;t<n.length;t++)for(let o=0,r=e.length;o<r;o++)e.push(e[o].concat(n[t]));return e.sort((t,o)=>o.length-t.length)}function HC(n){let e=Object.create(null);for(let t in n){let o=n[t];Array.isArray(o)||(o=[o]);for(let r of t.split(" "))if(r){let s=[],l=2,d=r;for(let v=0;;){if(d=="..."&&v>0&&v+3==r.length){l=1;break}let b=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(d);if(!b)throw new RangeError("Invalid path: "+r);if(s.push(b[0]=="*"?"":b[0][0]=='"'?JSON.parse(b[0]):b[0]),v+=b[0].length,v==r.length)break;let x=r[v++];if(v==r.length&&x=="!"){l=0;break}if(x!="/")throw new RangeError("Invalid path: "+r);d=r.slice(v)}let h=s.length-1,m=s[h];if(!m)throw new RangeError("Invalid path: "+r);let g=new zd(o,l,h>0?s.slice(0,h):null);e[m]=g.sort(e[m])}}return XC.add(e)}const XC=new ct;class zd{constructor(e,t,o,r){this.tags=e,this.mode=t,this.context=o,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}zd.empty=new zd([],2,null);function YC(n,e){let t=Object.create(null);for(let s of n)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let l of s.tag)t[l.id]=s.class;let{scope:o,all:r=null}=e||{};return{style:s=>{let l=r;for(let d of s)for(let h of d.set){let m=t[h.id];if(m){l=l?l+" "+m:m;break}}return l},scope:o}}function JL(n,e){let t=null;for(let o of n){let r=o.style(e);r&&(t=t?t+" "+r:r)}return t}function $L(n,e,t,o=0,r=n.length){let s=new qL(o,Array.isArray(e)?e:[e],t);s.highlightRange(n.cursor(),o,r,"",s.highlighters),s.flush(r)}class qL{constructor(e,t,o){this.at=e,this.highlighters=t,this.span=o,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,o,r,s){let{type:l,from:d,to:h}=e;if(d>=o||h<=t)return;l.isTop&&(s=this.highlighters.filter(x=>!x.scope||x.scope(l)));let m=r,g=e7(e)||zd.empty,v=JL(s,g.tags);if(v&&(m&&(m+=" "),m+=v,g.mode==1&&(r+=(r?" ":"")+v)),this.startSpan(Math.max(t,d),m),g.opaque)return;let b=e.tree&&e.tree.prop(ct.mounted);if(b&&b.overlay){let x=e.node.enter(b.overlay[0].from+d,1),C=this.highlighters.filter(M=>!M.scope||M.scope(b.tree.type)),k=e.firstChild();for(let M=0,_=d;;M++){let E=M<b.overlay.length?b.overlay[M]:null,F=E?E.from+d:h,D=Math.max(t,_),Q=Math.min(o,F);if(D<Q&&k)for(;e.from<Q&&(this.highlightRange(e,D,Q,r,s),this.startSpan(Math.min(Q,e.to),m),!(e.to>=F||!e.nextSibling())););if(!E||F>o)break;_=E.to+d,_>t&&(this.highlightRange(x.cursor(),Math.max(t,E.from+d),Math.min(o,_),"",C),this.startSpan(Math.min(o,_),m))}k&&e.parent()}else if(e.firstChild()){b&&(r="");do if(!(e.to<=t)){if(e.from>=o)break;this.highlightRange(e,t,o,r,s),this.startSpan(Math.min(o,e.to),m)}while(e.nextSibling());e.parent()}}}function e7(n){let e=n.type.prop(XC);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const Qe=Ro.define,Wd=Qe(),dr=Qe(),GC=Qe(dr),KC=Qe(dr),fr=Qe(),Ud=Qe(fr),Dg=Qe(fr),gi=Qe(),hs=Qe(gi),Oi=Qe(),vi=Qe(),Bg=Qe(),mc=Qe(Bg),Hd=Qe(),de={comment:Wd,lineComment:Qe(Wd),blockComment:Qe(Wd),docComment:Qe(Wd),name:dr,variableName:Qe(dr),typeName:GC,tagName:Qe(GC),propertyName:KC,attributeName:Qe(KC),className:Qe(dr),labelName:Qe(dr),namespace:Qe(dr),macroName:Qe(dr),literal:fr,string:Ud,docString:Qe(Ud),character:Qe(Ud),attributeValue:Qe(Ud),number:Dg,integer:Qe(Dg),float:Qe(Dg),bool:Qe(fr),regexp:Qe(fr),escape:Qe(fr),color:Qe(fr),url:Qe(fr),keyword:Oi,self:Qe(Oi),null:Qe(Oi),atom:Qe(Oi),unit:Qe(Oi),modifier:Qe(Oi),operatorKeyword:Qe(Oi),controlKeyword:Qe(Oi),definitionKeyword:Qe(Oi),moduleKeyword:Qe(Oi),operator:vi,derefOperator:Qe(vi),arithmeticOperator:Qe(vi),logicOperator:Qe(vi),bitwiseOperator:Qe(vi),compareOperator:Qe(vi),updateOperator:Qe(vi),definitionOperator:Qe(vi),typeOperator:Qe(vi),controlOperator:Qe(vi),punctuation:Bg,separator:Qe(Bg),bracket:mc,angleBracket:Qe(mc),squareBracket:Qe(mc),paren:Qe(mc),brace:Qe(mc),content:gi,heading:hs,heading1:Qe(hs),heading2:Qe(hs),heading3:Qe(hs),heading4:Qe(hs),heading5:Qe(hs),heading6:Qe(hs),contentSeparator:Qe(gi),list:Qe(gi),quote:Qe(gi),emphasis:Qe(gi),strong:Qe(gi),link:Qe(gi),monospace:Qe(gi),strikethrough:Qe(gi),inserted:Qe(),deleted:Qe(),changed:Qe(),invalid:Qe(),meta:Hd,documentMeta:Qe(Hd),annotation:Qe(Hd),processingInstruction:Qe(Hd),definition:Ro.defineModifier("definition"),constant:Ro.defineModifier("constant"),function:Ro.defineModifier("function"),standard:Ro.defineModifier("standard"),local:Ro.defineModifier("local"),special:Ro.defineModifier("special")};for(let n in de){let e=de[n];e instanceof Ro&&(e.name=n)}YC([{tag:de.link,class:"tok-link"},{tag:de.heading,class:"tok-heading"},{tag:de.emphasis,class:"tok-emphasis"},{tag:de.strong,class:"tok-strong"},{tag:de.keyword,class:"tok-keyword"},{tag:de.atom,class:"tok-atom"},{tag:de.bool,class:"tok-bool"},{tag:de.url,class:"tok-url"},{tag:de.labelName,class:"tok-labelName"},{tag:de.inserted,class:"tok-inserted"},{tag:de.deleted,class:"tok-deleted"},{tag:de.literal,class:"tok-literal"},{tag:de.string,class:"tok-string"},{tag:de.number,class:"tok-number"},{tag:[de.regexp,de.escape,de.special(de.string)],class:"tok-string2"},{tag:de.variableName,class:"tok-variableName"},{tag:de.local(de.variableName),class:"tok-variableName tok-local"},{tag:de.definition(de.variableName),class:"tok-variableName tok-definition"},{tag:de.special(de.variableName),class:"tok-variableName2"},{tag:de.definition(de.propertyName),class:"tok-propertyName tok-definition"},{tag:de.typeName,class:"tok-typeName"},{tag:de.namespace,class:"tok-namespace"},{tag:de.className,class:"tok-className"},{tag:de.macroName,class:"tok-macroName"},{tag:de.propertyName,class:"tok-propertyName"},{tag:de.operator,class:"tok-operator"},{tag:de.comment,class:"tok-comment"},{tag:de.meta,class:"tok-meta"},{tag:de.invalid,class:"tok-invalid"},{tag:de.punctuation,class:"tok-punctuation"}]);var Vg;const _a=new ct;function JC(n){return Le.define({combine:n?e=>e.concat(n):void 0})}const Lg=new ct;class Uo{constructor(e,t,o=[],r=""){this.data=e,this.name=r,dt.prototype.hasOwnProperty("tree")||Object.defineProperty(dt.prototype,"tree",{get(){return an(this)}}),this.parser=t,this.extension=[hr.of(this),dt.languageData.of((s,l,d)=>{let h=$C(s,l,d),m=h.type.prop(_a);if(!m)return[];let g=s.facet(m),v=h.type.prop(Lg);if(v){let b=h.resolve(l-h.from,d);for(let x of v)if(x.test(b,s)){let C=s.facet(x.facet);return x.type=="replace"?C:C.concat(g)}}return g})].concat(o)}isActiveAt(e,t,o=-1){return $C(e,t,o).type.prop(_a)==this.data}findRegions(e){let t=e.facet(hr);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let o=[],r=(s,l)=>{if(s.prop(_a)==this.data){o.push({from:l,to:l+s.length});return}let d=s.prop(ct.mounted);if(d){if(d.tree.prop(_a)==this.data){if(d.overlay)for(let h of d.overlay)o.push({from:h.from+l,to:h.to+l});else o.push({from:l,to:l+s.length});return}else if(d.overlay){let h=o.length;if(r(d.tree,d.overlay[0].from+l),o.length>h)return}}for(let h=0;h<s.children.length;h++){let m=s.children[h];m instanceof qt&&r(m,s.positions[h]+l)}};return r(an(e),0),o}get allowsNesting(){return!0}}Uo.setState=nt.define();function $C(n,e,t){let o=n.facet(hr),r=an(n).topNode;if(!o||o.allowsNesting)for(let s=r;s;s=s.enter(e,t,sn.ExcludeBuffers))s.type.isTop&&(r=s);return r}class Xd extends Uo{constructor(e,t,o){super(e,t,[],o),this.parser=t}static define(e){let t=JC(e.languageData);return new Xd(t,e.parser.configure({props:[_a.add(o=>o.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xd(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function an(n){let e=n.field(Uo.state,!1);return e?e.tree:qt.empty}class t7{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let o=this.cursorPos-this.string.length;return e<o||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-o,t-o)}}let gc=null;class Yd{constructor(e,t,o=[],r,s,l,d,h){this.parser=e,this.state=t,this.fragments=o,this.tree=r,this.treeLen=s,this.viewport=l,this.skipped=d,this.scheduleOn=h,this.parse=null,this.tempSkipped=[]}static create(e,t,o){return new Yd(e,t,[],qt.empty,0,o,[],null)}startParse(){return this.parser.startParse(new t7(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=qt.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var o;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(fs.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(o=this.parse.stoppedAt)!==null&&o!==void 0?o:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(fs.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=gc;gc=this;try{return e()}finally{gc=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=qC(e,t.from,t.to);return e}changes(e,t){let{fragments:o,tree:r,treeLen:s,viewport:l,skipped:d}=this;if(this.takeTree(),!e.empty){let h=[];if(e.iterChangedRanges((m,g,v,b)=>h.push({fromA:m,toA:g,fromB:v,toB:b})),o=fs.applyChanges(o,h),r=qt.empty,s=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){d=[];for(let m of this.skipped){let g=e.mapPos(m.from,1),v=e.mapPos(m.to,-1);g<v&&d.push({from:g,to:v})}}}return new Yd(this.parser,t,o,r,s,l,d,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let o=0;o<this.skipped.length;o++){let{from:r,to:s}=this.skipped[o];r<e.to&&s>e.from&&(this.fragments=qC(this.fragments,r,s),this.skipped.splice(o--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends UC{createParse(t,o,r){let s=r[0].from,l=r[r.length-1].to;return{parsedPos:s,advance(){let h=gc;if(h){for(let m of r)h.tempSkipped.push(m);e&&(h.scheduleOn=h.scheduleOn?Promise.all([h.scheduleOn,e]):e)}return this.parsedPos=l,new qt(Jn.none,[],[],l-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return gc}}function qC(n,e,t){return fs.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Na{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),o=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,o)||t.takeTree(),new Na(t)}static init(e){let t=Math.min(3e3,e.doc.length),o=Yd.create(e.facet(hr).parser,e,{from:0,to:t});return o.work(20,t)||o.takeTree(),new Na(o)}}Uo.state=fn.define({create:Na.init,update(n,e){for(let t of e.effects)if(t.is(Uo.setState))return t.value;return e.startState.facet(hr)!=e.state.facet(hr)?Na.init(e.state):n.apply(e)}});let ek=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(ek=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const jg=typeof navigator<"u"&&(!((Vg=navigator.scheduling)===null||Vg===void 0)&&Vg.isInputPending)?()=>navigator.scheduling.isInputPending():null,n7=Wt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Uo.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Uo.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=ek(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:o,viewport:{to:r}}=this.view,s=o.field(Uo.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let l=Date.now()+Math.min(this.chunkBudget,100,e&&!jg?Math.max(25,e.timeRemaining()-5):1e9),d=s.context.treeLen<r&&o.doc.length>r+1e3,h=s.context.work(()=>jg&&jg()||Date.now()>l,r+(d?0:1e5));this.chunkBudget-=Date.now()-t,(h||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Uo.setState.of(new Na(s.context))})),this.chunkBudget>0&&!(h&&!d)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Kn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),hr=Le.define({combine(n){return n.length?n[0]:null},enables:n=>[Uo.state,n7,Be.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class o7{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const i7=Le.define(),Oc=Le.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Gd(n){let e=n.facet(Oc);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function vc(n,e){let t="",o=n.tabSize,r=n.facet(Oc)[0];if(r==" "){for(;e>=o;)t+=" ",e-=o;r=" "}for(let s=0;s<e;s++)t+=r;return t}function Fg(n,e){n instanceof dt&&(n=new Kd(n));for(let o of n.state.facet(i7)){let r=o(n,e);if(r!==void 0)return r}let t=an(n.state);return t.length>=e?r7(n,t,e):null}class Kd{constructor(e,t={}){this.state=e,this.options=t,this.unit=Gd(e)}lineAt(e,t=1){let o=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=o.from&&r<=o.to?s&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:o.text.slice(r-o.from),from:r}:{text:o.text.slice(0,r-o.from),from:o.from}:o}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:o,from:r}=this.lineAt(e,t);return o.slice(e-r,Math.min(o.length,e+100-r))}column(e,t=1){let{text:o,from:r}=this.lineAt(e,t),s=this.countColumn(o,e-r),l=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return l>-1&&(s+=l-this.countColumn(o,o.search(/\S|$/))),s}countColumn(e,t=e.length){return ba(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:o,from:r}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let l=s(r);if(l>-1)return l}return this.countColumn(o,o.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const tk=new ct;function r7(n,e,t){let o=e.resolveStack(t),r=o.node.enterUnfinishedNodesBefore(t);if(r!=o.node){let s=[];for(let l=r;l!=o.node;l=l.parent)s.push(l);for(let l=s.length-1;l>=0;l--)o={node:s[l],next:o}}return nk(o,n,t)}function nk(n,e,t){for(let o=n;o;o=o.next){let r=a7(o.node);if(r)return r(Zg.create(e,t,o))}return 0}function s7(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function a7(n){let e=n.type.prop(tk);if(e)return e;let t=n.firstChild,o;if(t&&(o=t.type.prop(ct.closedBy))){let r=n.lastChild,s=r&&o.indexOf(r.name)>-1;return l=>ok(l,!0,1,void 0,s&&!s7(l)?r.from:void 0)}return n.parent==null?l7:null}function l7(){return 0}class Zg extends Kd{constructor(e,t,o){super(e.state,e.options),this.base=e,this.pos=t,this.context=o}get node(){return this.context.node}static create(e,t,o){return new Zg(e,t,o)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let o=e.resolve(t.from);for(;o.parent&&o.parent.from==o.from;)o=o.parent;if(c7(o,e))break;t=this.state.doc.lineAt(o.from)}return this.lineIndent(t.from)}continue(){return nk(this.context.next,this.base,this.pos)}}function c7(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function u7(n){let e=n.node,t=e.childAfter(e.from),o=e.lastChild;if(!t)return null;let r=n.options.simulateBreak,s=n.state.doc.lineAt(t.from),l=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let d=t.to;;){let h=e.childAfter(d);if(!h||h==o)return null;if(!h.type.isSkipped)return h.from<l?t:null;d=h.to}}function d7({closing:n,align:e=!0,units:t=1}){return o=>ok(o,e,t,n)}function ok(n,e,t,o,r){let s=n.textAfter,l=s.match(/^\s*/)[0].length,d=o&&s.slice(l,l+o.length)==o||r==n.pos+l,h=e?u7(n):null;return h?d?n.column(h.from):n.column(h.to):n.baseIndent+(d?0:n.unit*t)}const f7=n=>n.baseIndent;function zg({except:n,units:e=1}={}){return t=>{let o=n&&n.test(t.textAfter);return t.baseIndent+(o?0:e*t.unit)}}const h7=200;function p7(){return dt.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:o}=n.newSelection.main,r=t.lineAt(o);if(o>r.from+h7)return n;let s=t.sliceString(r.from,o);if(!e.some(m=>m.test(s)))return n;let{state:l}=n,d=-1,h=[];for(let{head:m}of l.selection.ranges){let g=l.doc.lineAt(m);if(g.from==d)continue;d=g.from;let v=Fg(l,g.from);if(v==null)continue;let b=/^\s*/.exec(g.text)[0],x=vc(l,v);b!=x&&h.push({from:g.from,to:g.from+b.length,insert:x})}return h.length?[n,{changes:h,sequential:!0}]:n})}const m7=Le.define(),ik=new ct;function g7(n){let e=n.firstChild,t=n.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?n.to:t.from}:null}function O7(n,e,t){let o=an(n);if(o.length<t)return null;let r=o.resolveStack(t,1),s=null;for(let l=r;l;l=l.next){let d=l.node;if(d.to<=t||d.from>t)continue;if(s&&d.from<e)break;let h=d.type.prop(ik);if(h&&(d.to<o.length-50||o.length==n.doc.length||!v7(d))){let m=h(d,n);m&&m.from<=t&&m.from>=e&&m.to>t&&(s=m)}}return s}function v7(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function Jd(n,e,t){for(let o of n.facet(m7)){let r=o(n,e,t);if(r)return r}return O7(n,e,t)}function rk(n,e){let t=e.mapPos(n.from,1),o=e.mapPos(n.to,-1);return t>=o?void 0:{from:t,to:o}}const $d=nt.define({map:rk}),yc=nt.define({map:rk});function sk(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(o=>o.from<=t&&o.to>=t)||e.push(n.lineBlockAt(t));return e}const ps=fn.define({create(){return He.none},update(n,e){n=n.map(e.changes);for(let t of e.effects)if(t.is($d)&&!y7(n,t.value.from,t.value.to)){let{preparePlaceholder:o}=e.state.facet(ck),r=o?He.replace({widget:new C7(o(e.state,t.value))}):fk;n=n.update({add:[r.range(t.value.from,t.value.to)]})}else t.is(yc)&&(n=n.update({filter:(o,r)=>t.value.from!=o||t.value.to!=r,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:o}=e.selection.main;n.between(o,o,(r,s)=>{r<o&&s>o&&(t=!0)}),t&&(n=n.update({filterFrom:o,filterTo:o,filter:(r,s)=>s<=o||r>=o}))}return n},provide:n=>Be.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(o,r)=>{t.push(o,r)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let o=n[t++],r=n[t++];if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(fk.range(o,r))}return He.set(e,!0)}});function qd(n,e,t){var o;let r=null;return(o=n.field(ps,!1))===null||o===void 0||o.between(e,t,(s,l)=>{(!r||r.from>s)&&(r={from:s,to:l})}),r}function y7(n,e,t){let o=!1;return n.between(e,e,(r,s)=>{r==e&&s==t&&(o=!0)}),o}function ak(n,e){return n.field(ps,!1)?e:e.concat(nt.appendConfig.of(uk()))}const b7=n=>{for(let e of sk(n)){let t=Jd(n.state,e.from,e.to);if(t)return n.dispatch({effects:ak(n.state,[$d.of(t),lk(n,t)])}),!0}return!1},x7=n=>{if(!n.state.field(ps,!1))return!1;let e=[];for(let t of sk(n)){let o=qd(n.state,t.from,t.to);o&&e.push(yc.of(o),lk(n,o,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function lk(n,e,t=!0){let o=n.state.doc.lineAt(e.from).number,r=n.state.doc.lineAt(e.to).number;return Be.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${o} ${n.state.phrase("to")} ${r}.`)}const w7=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:b7},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:x7},{key:"Ctrl-Alt-[",run:n=>{let{state:e}=n,t=[];for(let o=0;o<e.doc.length;){let r=n.lineBlockAt(o),s=Jd(e,r.from,r.to);s&&t.push($d.of(s)),o=(s?n.lineBlockAt(s.to):r).to+1}return t.length&&n.dispatch({effects:ak(n.state,t)}),!!t.length}},{key:"Ctrl-Alt-]",run:n=>{let e=n.state.field(ps,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(o,r)=>{t.push(yc.of({from:o,to:r}))}),n.dispatch({effects:t}),!0}}],S7={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ck=Le.define({combine(n){return di(n,S7)}});function uk(n){return[ps,E7]}function dk(n,e){let{state:t}=n,o=t.facet(ck),r=l=>{let d=n.lineBlockAt(n.posAtDOM(l.target)),h=qd(n.state,d.from,d.to);h&&n.dispatch({effects:yc.of(h)}),l.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(n,r,e);let s=document.createElement("span");return s.textContent=o.placeholderText,s.setAttribute("aria-label",t.phrase("folded code")),s.title=t.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const fk=He.replace({widget:new class extends fi{toDOM(n){return dk(n,null)}}});class C7 extends fi{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return dk(e,this.value)}}const k7={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Wg extends Di{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function P7(n={}){let e=Object.assign(Object.assign({},k7),n),t=new Wg(e,!0),o=new Wg(e,!1),r=Wt.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(hr)!=l.state.facet(hr)||l.startState.field(ps,!1)!=l.state.field(ps,!1)||an(l.startState)!=an(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let d=new nr;for(let h of l.viewportLineBlocks){let m=qd(l.state,h.from,h.to)?o:Jd(l.state,h.from,h.to)?t:null;m&&d.add(h.from,h.from,m)}return d.finish()}}),{domEventHandlers:s}=e;return[r,TL({class:"cm-foldGutter",markers(l){var d;return((d=l.plugin(r))===null||d===void 0?void 0:d.markers)||mt.empty},initialSpacer(){return new Wg(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(l,d,h)=>{if(s.click&&s.click(l,d,h))return!0;let m=qd(l.state,d.from,d.to);if(m)return l.dispatch({effects:yc.of(m)}),!0;let g=Jd(l.state,d.from,d.to);return g?(l.dispatch({effects:$d.of(g)}),!0):!1}})}),uk()]}const E7=Be.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ef{constructor(e,t){this.specs=e;let o;function r(d){let h=or.newName();return(o||(o=Object.create(null)))["."+h]=d,h}const s=typeof t.all=="string"?t.all:t.all?r(t.all):void 0,l=t.scope;this.scope=l instanceof Uo?d=>d.prop(_a)==l.data:l?d=>d==l:void 0,this.style=YC(e.map(d=>({tag:d.tag,class:d.class||r(Object.assign({},d,{tag:null}))})),{all:s}).style,this.module=o?new or(o):null,this.themeType=t.themeType}static define(e,t){return new ef(e,t||{})}}const Ug=Le.define(),hk=Le.define({combine(n){return n.length?[n[0]]:null}});function Hg(n){let e=n.facet(Ug);return e.length?e:n.facet(hk)}function T7(n,e){let t=[N7],o;return n instanceof ef&&(n.module&&t.push(Be.styleModule.of(n.module)),o=n.themeType),e?.fallback?t.push(hk.of(n)):o?t.push(Ug.computeN([Be.darkTheme],r=>r.facet(Be.darkTheme)==(o=="dark")?[n]:[])):t.push(Ug.of(n)),t}class _7{constructor(e){this.markCache=Object.create(null),this.tree=an(e.state),this.decorations=this.buildDeco(e,Hg(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=an(e.state),o=Hg(e.state),r=o!=Hg(e.startState),{viewport:s}=e.view,l=e.changes.mapPos(this.decoratedTo,1);t.length<s.to&&!r&&t.type==this.tree.type&&l>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=l):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,o),this.decoratedTo=s.to)}buildDeco(e,t){if(!t||!this.tree.length)return He.none;let o=new nr;for(let{from:r,to:s}of e.visibleRanges)$L(this.tree,t,(l,d,h)=>{o.add(l,d,this.markCache[h]||(this.markCache[h]=He.mark({class:h})))},r,s);return o.finish()}}const N7=tr.high(Wt.fromClass(_7,{decorations:n=>n.decorations})),A7=ef.define([{tag:de.meta,color:"#404740"},{tag:de.link,textDecoration:"underline"},{tag:de.heading,textDecoration:"underline",fontWeight:"bold"},{tag:de.emphasis,fontStyle:"italic"},{tag:de.strong,fontWeight:"bold"},{tag:de.strikethrough,textDecoration:"line-through"},{tag:de.keyword,color:"#708"},{tag:[de.atom,de.bool,de.url,de.contentSeparator,de.labelName],color:"#219"},{tag:[de.literal,de.inserted],color:"#164"},{tag:[de.string,de.deleted],color:"#a11"},{tag:[de.regexp,de.escape,de.special(de.string)],color:"#e40"},{tag:de.definition(de.variableName),color:"#00f"},{tag:de.local(de.variableName),color:"#30a"},{tag:[de.typeName,de.namespace],color:"#085"},{tag:de.className,color:"#167"},{tag:[de.special(de.variableName),de.macroName],color:"#256"},{tag:de.definition(de.propertyName),color:"#00c"},{tag:de.comment,color:"#940"},{tag:de.invalid,color:"#f00"}]),R7=Be.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),pk=1e4,mk="()[]{}",gk=Le.define({combine(n){return di(n,{afterCursor:!0,brackets:mk,maxScanDistance:pk,renderMatch:I7})}}),M7=He.mark({class:"cm-matchingBracket"}),Q7=He.mark({class:"cm-nonmatchingBracket"});function I7(n){let e=[],t=n.matched?M7:Q7;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const D7=[fn.define({create(){return He.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],o=e.state.facet(gk);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=yi(e.state,r.head,-1,o)||r.head>0&&yi(e.state,r.head-1,1,o)||o.afterCursor&&(yi(e.state,r.head,1,o)||r.head<e.state.doc.length&&yi(e.state,r.head+1,-1,o));s&&(t=t.concat(o.renderMatch(s,e.state)))}return He.set(t,!0)},provide:n=>Be.decorations.from(n)}),R7];function B7(n={}){return[gk.of(n),D7]}const V7=new ct;function Xg(n,e,t){let o=n.prop(e<0?ct.openedBy:ct.closedBy);if(o)return o;if(n.name.length==1){let r=t.indexOf(n.name);if(r>-1&&r%2==(e<0?1:0))return[t[r+e]]}return null}function Yg(n){let e=n.type.prop(V7);return e?e(n.node):n}function yi(n,e,t,o={}){let r=o.maxScanDistance||pk,s=o.brackets||mk,l=an(n),d=l.resolveInner(e,t);for(let h=d;h;h=h.parent){let m=Xg(h.type,t,s);if(m&&h.from<h.to){let g=Yg(h);if(g&&(t>0?e>=g.from&&e<g.to:e>g.from&&e<=g.to))return L7(n,e,t,h,g,m,s)}}return j7(n,e,t,l,d.type,r,s)}function L7(n,e,t,o,r,s,l){let d=o.parent,h={from:r.from,to:r.to},m=0,g=d?.cursor();if(g&&(t<0?g.childBefore(o.from):g.childAfter(o.to)))do if(t<0?g.to<=o.from:g.from>=o.to){if(m==0&&s.indexOf(g.type.name)>-1&&g.from<g.to){let v=Yg(g);return{start:h,end:v?{from:v.from,to:v.to}:void 0,matched:!0}}else if(Xg(g.type,t,l))m++;else if(Xg(g.type,-t,l)){if(m==0){let v=Yg(g);return{start:h,end:v&&v.from<v.to?{from:v.from,to:v.to}:void 0,matched:!1}}m--}}while(t<0?g.prevSibling():g.nextSibling());return{start:h,matched:!1}}function j7(n,e,t,o,r,s,l){let d=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),h=l.indexOf(d);if(h<0||h%2==0!=t>0)return null;let m={from:t<0?e-1:e,to:t>0?e+1:e},g=n.doc.iterRange(e,t>0?n.doc.length:0),v=0;for(let b=0;!g.next().done&&b<=s;){let x=g.value;t<0&&(b+=x.length);let C=e+b*t;for(let k=t>0?0:x.length-1,M=t>0?x.length:-1;k!=M;k+=t){let _=l.indexOf(x[k]);if(!(_<0||o.resolveInner(C+k,1).type!=r))if(_%2==0==t>0)v++;else{if(v==1)return{start:m,end:{from:C+k,to:C+k+1},matched:_>>1==h>>1};v--}}t>0&&(b+=x.length)}return g.done?{start:m,matched:!1}:null}const F7=Object.create(null),Ok=[Jn.none],vk=[],yk=Object.create(null),Z7=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Z7[n]=z7(F7,e);function Gg(n,e){vk.indexOf(n)>-1||(vk.push(n),console.warn(e))}function z7(n,e){let t=[];for(let d of e.split(" ")){let h=[];for(let m of d.split(".")){let g=n[m]||de[m];g?typeof g=="function"?h.length?h=h.map(g):Gg(m,`Modifier ${m} used at start of tag`):h.length?Gg(m,`Tag ${m} used as modifier`):h=Array.isArray(g)?g:[g]:Gg(m,`Unknown highlighting tag ${m}`)}for(let m of h)t.push(m)}if(!t.length)return 0;let o=e.replace(/ /g,"_"),r=o+" "+t.map(d=>d.id),s=yk[r];if(s)return s.id;let l=yk[r]=Jn.define({id:Ok.length,name:o,props:[HC({[o]:t})]});return Ok.push(l),l.id}Nt.RTL,Nt.LTR;const W7=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),o=Jg(n.state,t.from);return o.line?U7(n):o.block?X7(n):!1};function Kg(n,e){return({state:t,dispatch:o})=>{if(t.readOnly)return!1;let r=n(e,t);return r?(o(t.update(r)),!0):!1}}const U7=Kg(K7,0),H7=Kg(bk,0),X7=Kg((n,e)=>bk(n,e,G7(e)),0);function Jg(n,e){let t=n.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const bc=50;function Y7(n,{open:e,close:t},o,r){let s=n.sliceDoc(o-bc,o),l=n.sliceDoc(r,r+bc),d=/\s*$/.exec(s)[0].length,h=/^\s*/.exec(l)[0].length,m=s.length-d;if(s.slice(m-e.length,m)==e&&l.slice(h,h+t.length)==t)return{open:{pos:o-d,margin:d&&1},close:{pos:r+h,margin:h&&1}};let g,v;r-o<=2*bc?g=v=n.sliceDoc(o,r):(g=n.sliceDoc(o,o+bc),v=n.sliceDoc(r-bc,r));let b=/^\s*/.exec(g)[0].length,x=/\s*$/.exec(v)[0].length,C=v.length-x-t.length;return g.slice(b,b+e.length)==e&&v.slice(C,C+t.length)==t?{open:{pos:o+b+e.length,margin:/\s/.test(g.charAt(b+e.length))?1:0},close:{pos:r-x-t.length,margin:/\s/.test(v.charAt(C-1))?1:0}}:null}function G7(n){let e=[];for(let t of n.selection.ranges){let o=n.doc.lineAt(t.from),r=t.to<=o.to?o:n.doc.lineAt(t.to),s=e.length-1;s>=0&&e[s].to>o.from?e[s].to=r.to:e.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:r.to})}return e}function bk(n,e,t=e.selection.ranges){let o=t.map(s=>Jg(e,s.from).block);if(!o.every(s=>s))return null;let r=t.map((s,l)=>Y7(e,o[l],s.from,s.to));if(n!=2&&!r.every(s=>s))return{changes:e.changes(t.map((s,l)=>r[l]?[]:[{from:s.from,insert:o[l].open+" "},{from:s.to,insert:" "+o[l].close}]))};if(n!=1&&r.some(s=>s)){let s=[];for(let l=0,d;l<r.length;l++)if(d=r[l]){let h=o[l],{open:m,close:g}=d;s.push({from:m.pos-h.open.length,to:m.pos+m.margin},{from:g.pos-g.margin,to:g.pos+h.close.length})}return{changes:s}}return null}function K7(n,e,t=e.selection.ranges){let o=[],r=-1;for(let{from:s,to:l}of t){let d=o.length,h=1e9,m=Jg(e,s).line;if(m){for(let g=s;g<=l;){let v=e.doc.lineAt(g);if(v.from>r&&(s==l||l>v.from)){r=v.from;let b=/^\s*/.exec(v.text)[0].length,x=b==v.length,C=v.text.slice(b,b+m.length)==m?b:-1;b<v.text.length&&b<h&&(h=b),o.push({line:v,comment:C,token:m,indent:b,empty:x,single:!1})}g=v.to+1}if(h<1e9)for(let g=d;g<o.length;g++)o[g].indent<o[g].line.text.length&&(o[g].indent=h);o.length==d+1&&(o[d].single=!0)}}if(n!=2&&o.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:d,token:h,indent:m,empty:g,single:v}of o)(v||!g)&&s.push({from:d.from+m,insert:h+" "});let l=e.changes(s);return{changes:l,selection:e.selection.map(l,1)}}else if(n!=1&&o.some(s=>s.comment>=0)){let s=[];for(let{line:l,comment:d,token:h}of o)if(d>=0){let m=l.from+d,g=m+h.length;l.text[g-l.from]==" "&&g++,s.push({from:m,to:g})}return{changes:s}}return null}const $g=Ri.define(),J7=Ri.define(),$7=Le.define(),xk=Le.define({combine(n){return di(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(o,r)=>e(o,r)||t(o,r)})}}),wk=fn.define({create(){return bi.empty},update(n,e){let t=e.state.facet(xk),o=e.annotation($g);if(o){let h=qn.fromTransaction(e,o.selection),m=o.side,g=m==0?n.undone:n.done;return h?g=nf(g,g.length,t.minDepth,h):g=kk(g,e.startState.selection),new bi(m==0?o.rest:g,m==0?g:o.rest)}let r=e.annotation(J7);if((r=="full"||r=="before")&&(n=n.isolate()),e.annotation(Jt.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let s=qn.fromTransaction(e),l=e.annotation(Jt.time),d=e.annotation(Jt.userEvent);return s?n=n.addChanges(s,l,d,t,e):e.selection&&(n=n.addSelection(e.startState.selection,l,d,t.newGroupDelay)),(r=="full"||r=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new bi(n.done.map(qn.fromJSON),n.undone.map(qn.fromJSON))}});function q7(n={}){return[wk,xk.of(n),Be.domEventHandlers({beforeinput(e,t){let o=e.inputType=="historyUndo"?Sk:e.inputType=="historyRedo"?qg:null;return o?(e.preventDefault(),o(t)):!1}})]}function tf(n,e){return function({state:t,dispatch:o}){if(!e&&t.readOnly)return!1;let r=t.field(wk,!1);if(!r)return!1;let s=r.pop(n,t,e);return s?(o(s),!0):!1}}const Sk=tf(0,!1),qg=tf(1,!1),ej=tf(0,!0),tj=tf(1,!0);class qn{constructor(e,t,o,r,s){this.changes=e,this.effects=t,this.mapped=o,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new qn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,o;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(o=this.startSelection)===null||o===void 0?void 0:o.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new qn(e.changes&&rn.fromJSON(e.changes),[],e.mapped&&ui.fromJSON(e.mapped),e.startSelection&&we.fromJSON(e.startSelection),e.selectionsAfter.map(we.fromJSON))}static fromTransaction(e,t){let o=Mo;for(let r of e.startState.facet($7)){let s=r(e);s.length&&(o=o.concat(s))}return!o.length&&e.changes.empty?null:new qn(e.changes.invert(e.startState.doc),o,void 0,t||e.startState.selection,Mo)}static selection(e){return new qn(void 0,Mo,void 0,void 0,e)}}function nf(n,e,t,o){let r=e+1>t+20?e-t-1:0,s=n.slice(r,e);return s.push(o),s}function nj(n,e){let t=[],o=!1;return n.iterChangedRanges((r,s)=>t.push(r,s)),e.iterChangedRanges((r,s,l,d)=>{for(let h=0;h<t.length;){let m=t[h++],g=t[h++];d>=m&&l<=g&&(o=!0)}}),o}function oj(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,o)=>t.empty!=e.ranges[o].empty).length===0}function Ck(n,e){return n.length?e.length?n.concat(e):n:e}const Mo=[],ij=200;function kk(n,e){if(n.length){let t=n[n.length-1],o=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-ij));return o.length&&o[o.length-1].eq(e)?n:(o.push(e),nf(n,n.length-1,1e9,t.setSelAfter(o)))}else return[qn.selection([e])]}function rj(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function eO(n,e){if(!n.length)return n;let t=n.length,o=Mo;for(;t;){let r=sj(n[t-1],e,o);if(r.changes&&!r.changes.empty||r.effects.length){let s=n.slice(0,t);return s[t-1]=r,s}else e=r.mapped,t--,o=r.selectionsAfter}return o.length?[qn.selection(o)]:Mo}function sj(n,e,t){let o=Ck(n.selectionsAfter.length?n.selectionsAfter.map(d=>d.map(e)):Mo,t);if(!n.changes)return qn.selection(o);let r=n.changes.map(e),s=e.mapDesc(n.changes,!0),l=n.mapped?n.mapped.composeDesc(s):s;return new qn(r,nt.mapEffects(n.effects,e),l,n.startSelection.map(s),o)}const aj=/^(input\.type|delete)($|\.)/;class bi{constructor(e,t,o=0,r=void 0){this.done=e,this.undone=t,this.prevTime=o,this.prevUserEvent=r}isolate(){return this.prevTime?new bi(this.done,this.undone):this}addChanges(e,t,o,r,s){let l=this.done,d=l[l.length-1];return d&&d.changes&&!d.changes.empty&&e.changes&&(!o||aj.test(o))&&(!d.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,nj(d.changes,e.changes))||o=="input.type.compose")?l=nf(l,l.length-1,r.minDepth,new qn(e.changes.compose(d.changes),Ck(nt.mapEffects(e.effects,d.changes),d.effects),d.mapped,d.startSelection,Mo)):l=nf(l,l.length,r.minDepth,e),new bi(l,Mo,t,o)}addSelection(e,t,o,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Mo;return s.length>0&&t-this.prevTime<r&&o==this.prevUserEvent&&o&&/^select($|\.)/.test(o)&&oj(s[s.length-1],e)?this:new bi(kk(this.done,e),this.undone,t,o)}addMapping(e){return new bi(eO(this.done,e),eO(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,o){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],l=s.selectionsAfter[0]||t.selection;if(o&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:$g.of({side:e,rest:rj(r),selection:l}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let d=r.length==1?Mo:r.slice(0,r.length-1);return s.mapped&&(d=eO(d,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:$g.of({side:e,rest:d,selection:l}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}bi.empty=new bi(Mo,Mo);const lj=[{key:"Mod-z",run:Sk,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:qg,preventDefault:!0},{linux:"Ctrl-Shift-z",run:qg,preventDefault:!0},{key:"Mod-u",run:ej,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:tj,preventDefault:!0}];function Aa(n,e){return we.create(n.ranges.map(e),n.mainIndex)}function xi(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ho({state:n,dispatch:e},t){let o=Aa(n.selection,t);return o.eq(n.selection,!0)?!1:(e(xi(n,o)),!0)}function of(n,e){return we.cursor(e?n.to:n.from)}function Pk(n,e){return Ho(n,t=>t.empty?n.moveByChar(t,e):of(t,e))}function In(n){return n.textDirectionAt(n.state.selection.main.head)==Nt.LTR}const Ek=n=>Pk(n,!In(n)),Tk=n=>Pk(n,In(n));function _k(n,e){return Ho(n,t=>t.empty?n.moveByGroup(t,e):of(t,e))}const cj=n=>_k(n,!In(n)),uj=n=>_k(n,In(n));function dj(n,e,t){if(e.type.prop(t))return!0;let o=e.to-e.from;return o&&(o>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function rf(n,e,t){let o=an(n).resolveInner(e.head),r=t?ct.closedBy:ct.openedBy;for(let h=e.head;;){let m=t?o.childAfter(h):o.childBefore(h);if(!m)break;dj(n,m,r)?o=m:h=t?m.to:m.from}let s=o.type.prop(r),l,d;return s&&(l=t?yi(n,o.from,1):yi(n,o.to,-1))&&l.matched?d=t?l.end.to:l.end.from:d=t?o.to:o.from,we.cursor(d,t?-1:1)}const fj=n=>Ho(n,e=>rf(n.state,e,!In(n))),hj=n=>Ho(n,e=>rf(n.state,e,In(n)));function Nk(n,e){return Ho(n,t=>{if(!t.empty)return of(t,e);let o=n.moveVertically(t,e);return o.head!=t.head?o:n.moveToLineBoundary(t,e)})}const Ak=n=>Nk(n,!1),Rk=n=>Nk(n,!0);function Mk(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,o=0,r;if(e){for(let s of n.state.facet(Be.scrollMargins)){let l=s(n);l?.top&&(t=Math.max(l?.top,t)),l?.bottom&&(o=Math.max(l?.bottom,o))}r=n.scrollDOM.clientHeight-t-o}else r=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:o,selfScroll:e,height:Math.max(n.defaultLineHeight,r-5)}}function Qk(n,e){let t=Mk(n),{state:o}=n,r=Aa(o.selection,l=>l.empty?n.moveVertically(l,e,t.height):of(l,e));if(r.eq(o.selection))return!1;let s;if(t.selfScroll){let l=n.coordsAtPos(o.selection.main.head),d=n.scrollDOM.getBoundingClientRect(),h=d.top+t.marginTop,m=d.bottom-t.marginBottom;l&&l.top>h&&l.bottom<m&&(s=Be.scrollIntoView(r.main.head,{y:"start",yMargin:l.top-h}))}return n.dispatch(xi(o,r),{effects:s}),!0}const Ik=n=>Qk(n,!1),tO=n=>Qk(n,!0);function pr(n,e,t){let o=n.lineBlockAt(e.head),r=n.moveToLineBoundary(e,t);if(r.head==e.head&&r.head!=(t?o.to:o.from)&&(r=n.moveToLineBoundary(e,t,!1)),!t&&r.head==o.from&&o.length){let s=/^\s*/.exec(n.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;s&&e.head!=o.from+s&&(r=we.cursor(o.from+s))}return r}const pj=n=>Ho(n,e=>pr(n,e,!0)),mj=n=>Ho(n,e=>pr(n,e,!1)),gj=n=>Ho(n,e=>pr(n,e,!In(n))),Oj=n=>Ho(n,e=>pr(n,e,In(n))),vj=n=>Ho(n,e=>we.cursor(n.lineBlockAt(e.head).from,1)),yj=n=>Ho(n,e=>we.cursor(n.lineBlockAt(e.head).to,-1));function bj(n,e,t){let o=!1,r=Aa(n.selection,s=>{let l=yi(n,s.head,-1)||yi(n,s.head,1)||s.head>0&&yi(n,s.head-1,1)||s.head<n.doc.length&&yi(n,s.head+1,-1);if(!l||!l.end)return s;o=!0;let d=l.start.from==s.head?l.end.to:l.end.from;return we.cursor(d)});return o?(e(xi(n,r)),!0):!1}const xj=({state:n,dispatch:e})=>bj(n,e);function Qo(n,e){let t=Aa(n.state.selection,o=>{let r=e(o);return we.range(o.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(xi(n.state,t)),!0)}function Dk(n,e){return Qo(n,t=>n.moveByChar(t,e))}const Bk=n=>Dk(n,!In(n)),Vk=n=>Dk(n,In(n));function Lk(n,e){return Qo(n,t=>n.moveByGroup(t,e))}const wj=n=>Lk(n,!In(n)),Sj=n=>Lk(n,In(n)),Cj=n=>Qo(n,e=>rf(n.state,e,!In(n))),kj=n=>Qo(n,e=>rf(n.state,e,In(n)));function jk(n,e){return Qo(n,t=>n.moveVertically(t,e))}const Fk=n=>jk(n,!1),Zk=n=>jk(n,!0);function zk(n,e){return Qo(n,t=>n.moveVertically(t,e,Mk(n).height))}const Wk=n=>zk(n,!1),Uk=n=>zk(n,!0),Pj=n=>Qo(n,e=>pr(n,e,!0)),Ej=n=>Qo(n,e=>pr(n,e,!1)),Tj=n=>Qo(n,e=>pr(n,e,!In(n))),_j=n=>Qo(n,e=>pr(n,e,In(n))),Nj=n=>Qo(n,e=>we.cursor(n.lineBlockAt(e.head).from)),Aj=n=>Qo(n,e=>we.cursor(n.lineBlockAt(e.head).to)),Hk=({state:n,dispatch:e})=>(e(xi(n,{anchor:0})),!0),Xk=({state:n,dispatch:e})=>(e(xi(n,{anchor:n.doc.length})),!0),Yk=({state:n,dispatch:e})=>(e(xi(n,{anchor:n.selection.main.anchor,head:0})),!0),Gk=({state:n,dispatch:e})=>(e(xi(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),Rj=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),Mj=({state:n,dispatch:e})=>{let t=af(n).map(({from:o,to:r})=>we.range(o,Math.min(r+1,n.doc.length)));return e(n.update({selection:we.create(t),userEvent:"select"})),!0},Qj=({state:n,dispatch:e})=>{let t=Aa(n.selection,o=>{let r=an(n),s=r.resolveStack(o.from,1);if(o.empty){let l=r.resolveStack(o.from,-1);l.node.from>=s.node.from&&l.node.to<=s.node.to&&(s=l)}for(let l=s;l;l=l.next){let{node:d}=l;if((d.from<o.from&&d.to>=o.to||d.to>o.to&&d.from<=o.from)&&l.next)return we.range(d.to,d.from)}return o});return t.eq(n.selection)?!1:(e(xi(n,t)),!0)},Ij=({state:n,dispatch:e})=>{let t=n.selection,o=null;return t.ranges.length>1?o=we.create([t.main]):t.main.empty||(o=we.create([we.cursor(t.main.head)])),o?(e(xi(n,o)),!0):!1};function xc(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:o}=n,r=o.changeByRange(s=>{let{from:l,to:d}=s;if(l==d){let h=e(s);h<l?(t="delete.backward",h=sf(n,h,!1)):h>l&&(t="delete.forward",h=sf(n,h,!0)),l=Math.min(l,h),d=Math.max(d,h)}else l=sf(n,l,!1),d=sf(n,d,!0);return l==d?{range:s}:{changes:{from:l,to:d},range:we.cursor(l,l<s.head?-1:1)}});return r.changes.empty?!1:(n.dispatch(o.update(r,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?Be.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function sf(n,e,t){if(n instanceof Be)for(let o of n.state.facet(Be.atomicRanges).map(r=>r(n)))o.between(e,e,(r,s)=>{r<e&&s>e&&(e=t?s:r)});return e}const Kk=(n,e,t)=>xc(n,o=>{let r=o.from,{state:s}=n,l=s.doc.lineAt(r),d,h;if(t&&!e&&r>l.from&&r<l.from+200&&!/[^ \t]/.test(d=l.text.slice(0,r-l.from))){if(d[d.length-1]==" ")return r-1;let m=ba(d,s.tabSize),g=m%Gd(s)||Gd(s);for(let v=0;v<g&&d[d.length-1-v]==" ";v++)r--;h=r}else h=xn(l.text,r-l.from,e,e)+l.from,h==r&&l.number!=(e?s.doc.lines:1)?h+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(l.text.slice(h-l.from,r-l.from))&&(h=xn(l.text,h-l.from,!1,!1)+l.from);return h}),nO=n=>Kk(n,!1,!0),Jk=n=>Kk(n,!0,!1),$k=(n,e)=>xc(n,t=>{let o=t.head,{state:r}=n,s=r.doc.lineAt(o),l=r.charCategorizer(o);for(let d=null;;){if(o==(e?s.to:s.from)){o==t.head&&s.number!=(e?r.doc.lines:1)&&(o+=e?1:-1);break}let h=xn(s.text,o-s.from,e)+s.from,m=s.text.slice(Math.min(o,h)-s.from,Math.max(o,h)-s.from),g=l(m);if(d!=null&&g!=d)break;(m!=" "||o!=t.head)&&(d=g),o=h}return o}),qk=n=>$k(n,!1),Dj=n=>$k(n,!0),Bj=n=>xc(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),Vj=n=>xc(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Lj=n=>xc(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),jj=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:pt.of(["",""])},range:we.cursor(o.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Fj=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(o=>{if(!o.empty||o.from==0||o.from==n.doc.length)return{range:o};let r=o.from,s=n.doc.lineAt(r),l=r==s.from?r-1:xn(s.text,r-s.from,!1)+s.from,d=r==s.to?r+1:xn(s.text,r-s.from,!0)+s.from;return{changes:{from:l,to:d,insert:n.doc.slice(r,d).append(n.doc.slice(l,r))},range:we.cursor(d)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function af(n){let e=[],t=-1;for(let o of n.selection.ranges){let r=n.doc.lineAt(o.from),s=n.doc.lineAt(o.to);if(!o.empty&&o.to==s.from&&(s=n.doc.lineAt(o.to-1)),t>=r.number){let l=e[e.length-1];l.to=s.to,l.ranges.push(o)}else e.push({from:r.from,to:s.to,ranges:[o]});t=s.number+1}return e}function e2(n,e,t){if(n.readOnly)return!1;let o=[],r=[];for(let s of af(n)){if(t?s.to==n.doc.length:s.from==0)continue;let l=n.doc.lineAt(t?s.to+1:s.from-1),d=l.length+1;if(t){o.push({from:s.to,to:l.to},{from:s.from,insert:l.text+n.lineBreak});for(let h of s.ranges)r.push(we.range(Math.min(n.doc.length,h.anchor+d),Math.min(n.doc.length,h.head+d)))}else{o.push({from:l.from,to:s.from},{from:s.to,insert:n.lineBreak+l.text});for(let h of s.ranges)r.push(we.range(h.anchor-d,h.head-d))}}return o.length?(e(n.update({changes:o,scrollIntoView:!0,selection:we.create(r,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Zj=({state:n,dispatch:e})=>e2(n,e,!1),zj=({state:n,dispatch:e})=>e2(n,e,!0);function t2(n,e,t){if(n.readOnly)return!1;let o=[];for(let r of af(n))t?o.push({from:r.from,insert:n.doc.slice(r.from,r.to)+n.lineBreak}):o.push({from:r.to,insert:n.lineBreak+n.doc.slice(r.from,r.to)});return e(n.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Wj=({state:n,dispatch:e})=>t2(n,e,!1),Uj=({state:n,dispatch:e})=>t2(n,e,!0),Hj=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(af(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),o=Aa(e.selection,r=>{let s;if(n.lineWrapping){let l=n.lineBlockAt(r.head),d=n.coordsAtPos(r.head,r.assoc||1);d&&(s=l.bottom+n.documentTop-d.bottom+n.defaultLineHeight/2)}return n.moveVertically(r,!0,s)}).map(t);return n.dispatch({changes:t,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Xj(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=an(n).resolveInner(e),o=t.childBefore(e),r=t.childAfter(e),s;return o&&r&&o.to<=e&&r.from>=e&&(s=o.type.prop(ct.closedBy))&&s.indexOf(r.name)>-1&&n.doc.lineAt(o.to).from==n.doc.lineAt(r.from).from&&!/\S/.test(n.sliceDoc(o.to,r.from))?{from:o.to,to:r.from}:null}const Yj=n2(!1),Gj=n2(!0);function n2(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let o=e.changeByRange(r=>{let{from:s,to:l}=r,d=e.doc.lineAt(s),h=!n&&s==l&&Xj(e,s);n&&(s=l=(l<=d.to?d:e.doc.lineAt(l)).to);let m=new Kd(e,{simulateBreak:s,simulateDoubleBreak:!!h}),g=Fg(m,s);for(g==null&&(g=ba(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));l<d.to&&/\s/.test(d.text[l-d.from]);)l++;h?{from:s,to:l}=h:s>d.from&&s<d.from+100&&!/\S/.test(d.text.slice(0,s))&&(s=d.from);let v=["",vc(e,g)];return h&&v.push(vc(e,m.lineIndent(d.from,-1))),{changes:{from:s,to:l,insert:pt.of(v)},range:we.cursor(s+1+v[1].length)}});return t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function oO(n,e){let t=-1;return n.changeByRange(o=>{let r=[];for(let l=o.from;l<=o.to;){let d=n.doc.lineAt(l);d.number>t&&(o.empty||o.to>d.from)&&(e(d,r,o),t=d.number),l=d.to+1}let s=n.changes(r);return{changes:r,range:we.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}})}const Kj=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),o=new Kd(n,{overrideIndentation:s=>{let l=t[s];return l??-1}}),r=oO(n,(s,l,d)=>{let h=Fg(o,s.from);if(h==null)return;/\S/.test(s.text)||(h=0);let m=/^\s*/.exec(s.text)[0],g=vc(n,h);(m!=g||d.from<s.from+m.length)&&(t[s.from]=h,l.push({from:s.from,to:s.from+m.length,insert:g}))});return r.changes.empty||e(n.update(r,{userEvent:"indent"})),!0},o2=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(oO(n,(t,o)=>{o.push({from:t.from,insert:n.facet(Oc)})}),{userEvent:"input.indent"})),!0),i2=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(oO(n,(t,o)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let s=ba(r,n.tabSize),l=0,d=vc(n,Math.max(0,s-Gd(n)));for(;l<r.length&&l<d.length&&r.charCodeAt(l)==d.charCodeAt(l);)l++;o.push({from:t.from+l,to:t.from+r.length,insert:d.slice(l)})}),{userEvent:"delete.dedent"})),!0),Jj=n=>(n.setTabFocusMode(),!0),$j=[{key:"Ctrl-b",run:Ek,shift:Bk,preventDefault:!0},{key:"Ctrl-f",run:Tk,shift:Vk},{key:"Ctrl-p",run:Ak,shift:Fk},{key:"Ctrl-n",run:Rk,shift:Zk},{key:"Ctrl-a",run:vj,shift:Nj},{key:"Ctrl-e",run:yj,shift:Aj},{key:"Ctrl-d",run:Jk},{key:"Ctrl-h",run:nO},{key:"Ctrl-k",run:Bj},{key:"Ctrl-Alt-h",run:qk},{key:"Ctrl-o",run:jj},{key:"Ctrl-t",run:Fj},{key:"Ctrl-v",run:tO}],qj=[{key:"ArrowLeft",run:Ek,shift:Bk,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:cj,shift:wj,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:gj,shift:Tj,preventDefault:!0},{key:"ArrowRight",run:Tk,shift:Vk,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:uj,shift:Sj,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Oj,shift:_j,preventDefault:!0},{key:"ArrowUp",run:Ak,shift:Fk,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Hk,shift:Yk},{mac:"Ctrl-ArrowUp",run:Ik,shift:Wk},{key:"ArrowDown",run:Rk,shift:Zk,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Xk,shift:Gk},{mac:"Ctrl-ArrowDown",run:tO,shift:Uk},{key:"PageUp",run:Ik,shift:Wk},{key:"PageDown",run:tO,shift:Uk},{key:"Home",run:mj,shift:Ej,preventDefault:!0},{key:"Mod-Home",run:Hk,shift:Yk},{key:"End",run:pj,shift:Pj,preventDefault:!0},{key:"Mod-End",run:Xk,shift:Gk},{key:"Enter",run:Yj},{key:"Mod-a",run:Rj},{key:"Backspace",run:nO,shift:nO},{key:"Delete",run:Jk},{key:"Mod-Backspace",mac:"Alt-Backspace",run:qk},{key:"Mod-Delete",mac:"Alt-Delete",run:Dj},{mac:"Mod-Backspace",run:Vj},{mac:"Mod-Delete",run:Lj}].concat($j.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),eF=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:fj,shift:Cj},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:hj,shift:kj},{key:"Alt-ArrowUp",run:Zj},{key:"Shift-Alt-ArrowUp",run:Wj},{key:"Alt-ArrowDown",run:zj},{key:"Shift-Alt-ArrowDown",run:Uj},{key:"Escape",run:Ij},{key:"Mod-Enter",run:Gj},{key:"Alt-l",mac:"Ctrl-l",run:Mj},{key:"Mod-i",run:Qj,preventDefault:!0},{key:"Mod-[",run:i2},{key:"Mod-]",run:o2},{key:"Mod-Alt-\\",run:Kj},{key:"Shift-Mod-k",run:Hj},{key:"Shift-Mod-\\",run:xj},{key:"Mod-/",run:W7},{key:"Alt-A",run:H7},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Jj}].concat(qj),tF={key:"Tab",run:o2,shift:i2};function Et(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=t[o];typeof r=="string"?n.setAttribute(o,r):r!=null&&(n[o]=r)}e++}for(;e<arguments.length;e++)r2(n,arguments[e]);return n}function r2(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)r2(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}const s2=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class Ra{constructor(e,t,o=0,r=e.length,s,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(o,r),this.bufferStart=o,this.normalize=s?d=>s(s2(d)):s2,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return wn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ym(e),o=this.bufferStart+this.bufferPos;this.bufferPos+=_o(e);let r=this.normalize(t);for(let s=0,l=o;;s++){let d=r.charCodeAt(s),h=this.match(d,l,this.bufferPos+this.bufferStart);if(s==r.length-1){if(h)return this.value=h,this;break}l==o&&s<t.length&&t.charCodeAt(s)==d&&l++}}}match(e,t,o){let r=null;for(let s=0;s<this.matches.length;s+=2){let l=this.matches[s],d=!1;this.query.charCodeAt(l)==e&&(l==this.query.length-1?r={from:this.matches[s+1],to:o}:(this.matches[s]++,d=!0)),d||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:t,to:o}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(Ra.prototype[Symbol.iterator]=function(){return this});const a2={from:-1,to:-1,match:/.*/.exec("")},iO="gm"+(/x/.unicode==null?"":"u");class l2{constructor(e,t,o,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=a2,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new c2(e,t,o,r,s);this.re=new RegExp(t,iO+(o?.ignoreCase?"i":"")),this.test=o?.test,this.iter=e.iter();let l=e.lineAt(r);this.curLineStart=l.from,this.matchPos=lf(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let o=this.curLineStart+t.index,r=o+t[0].length;if(this.matchPos=lf(this.text,r+(o==r?1:0)),o==this.curLineStart+this.curLine.length&&this.nextLine(),(o<r||o>this.value.to)&&(!this.test||this.test(o,r,t)))return this.value={from:o,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const rO=new WeakMap;class Ma{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,o){let r=rO.get(e);if(!r||r.from>=o||r.to<=t){let d=new Ma(t,e.sliceString(t,o));return rO.set(e,d),d}if(r.from==t&&r.to==o)return r;let{text:s,from:l}=r;return l>t&&(s=e.sliceString(t,l)+s,l=t),r.to<o&&(s+=e.sliceString(r.to,o)),rO.set(e,new Ma(l,s)),new Ma(t,s.slice(t-l,o-l))}}class c2{constructor(e,t,o,r,s){this.text=e,this.to=s,this.done=!1,this.value=a2,this.matchPos=lf(e,r),this.re=new RegExp(t,iO+(o?.ignoreCase?"i":"")),this.test=o?.test,this.flat=Ma.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let o=this.flat.from+t.index,r=o+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(o,r,t)))return this.value={from:o,to:r,match:t},this.matchPos=lf(this.text,r+(o==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ma.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(l2.prototype[Symbol.iterator]=c2.prototype[Symbol.iterator]=function(){return this});function nF(n){try{return new RegExp(n,iO),!0}catch{return!1}}function lf(n,e){if(e>=n.length)return e;let t=n.lineAt(e),o;for(;e<t.to&&(o=t.text.charCodeAt(e-t.from))>=56320&&o<57344;)e++;return e}function sO(n){let e=String(n.state.doc.lineAt(n.state.selection.main.head).number),t=Et("input",{class:"cm-textfield",name:"line",value:e}),o=Et("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),n.dispatch({effects:cf.of(!1)}),n.focus()):s.keyCode==13&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},Et("label",n.state.phrase("Go to line"),": ",t)," ",Et("button",{class:"cm-button",type:"submit"},n.state.phrase("go")));function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!s)return;let{state:l}=n,d=l.doc.lineAt(l.selection.main.head),[,h,m,g,v]=s,b=g?+g.slice(1):0,x=m?+m:d.number;if(m&&v){let M=x/100;h&&(M=M*(h=="-"?-1:1)+d.number/l.doc.lines),x=Math.round(l.doc.lines*M)}else m&&h&&(x=x*(h=="-"?-1:1)+d.number);let C=l.doc.line(Math.max(1,Math.min(l.doc.lines,x))),k=we.cursor(C.from+Math.max(0,Math.min(b,C.length)));n.dispatch({effects:[cf.of(!1),Be.scrollIntoView(k.from,{y:"center"})],selection:k}),n.focus()}return{dom:o}}const cf=nt.define(),u2=fn.define({create(){return!0},update(n,e){for(let t of e.effects)t.is(cf)&&(n=t.value);return n},provide:n=>fc.from(n,e=>e?sO:null)}),oF=n=>{let e=dc(n,sO);if(!e){let t=[cf.of(!0)];n.state.field(u2,!1)==null&&t.push(nt.appendConfig.of([u2,iF])),n.dispatch({effects:t}),e=dc(n,sO)}return e&&e.dom.querySelector("input").select(),!0},iF=Be.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),rF={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},sF=Le.define({combine(n){return di(n,rF,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function aF(n){return[fF,dF]}const lF=He.mark({class:"cm-selectionMatch"}),cF=He.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function d2(n,e,t,o){return(t==0||n(e.sliceDoc(t-1,t))!=Qt.Word)&&(o==e.doc.length||n(e.sliceDoc(o,o+1))!=Qt.Word)}function uF(n,e,t,o){return n(e.sliceDoc(t,t+1))==Qt.Word&&n(e.sliceDoc(o-1,o))==Qt.Word}const dF=Wt.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(sF),{state:t}=n,o=t.selection;if(o.ranges.length>1)return He.none;let r=o.main,s,l=null;if(r.empty){if(!e.highlightWordAroundCursor)return He.none;let h=t.wordAt(r.head);if(!h)return He.none;l=t.charCategorizer(r.head),s=t.sliceDoc(h.from,h.to)}else{let h=r.to-r.from;if(h<e.minSelectionLength||h>200)return He.none;if(e.wholeWords){if(s=t.sliceDoc(r.from,r.to),l=t.charCategorizer(r.head),!(d2(l,t,r.from,r.to)&&uF(l,t,r.from,r.to)))return He.none}else if(s=t.sliceDoc(r.from,r.to),!s)return He.none}let d=[];for(let h of n.visibleRanges){let m=new Ra(t.doc,s,h.from,h.to);for(;!m.next().done;){let{from:g,to:v}=m.value;if((!l||d2(l,t,g,v))&&(r.empty&&g<=r.from&&v>=r.to?d.push(cF.range(g,v)):(g>=r.to||v<=r.from)&&d.push(lF.range(g,v)),d.length>e.maxMatches))return He.none}}return He.set(d)}},{decorations:n=>n.decorations}),fF=Be.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),hF=({state:n,dispatch:e})=>{let{selection:t}=n,o=we.create(t.ranges.map(r=>n.wordAt(r.head)||we.cursor(r.head)),t.mainIndex);return o.eq(t)?!1:(e(n.update({selection:o})),!0)};function pF(n,e){let{main:t,ranges:o}=n.selection,r=n.wordAt(t.head),s=r&&r.from==t.from&&r.to==t.to;for(let l=!1,d=new Ra(n.doc,e,o[o.length-1].to);;)if(d.next(),d.done){if(l)return null;d=new Ra(n.doc,e,0,Math.max(0,o[o.length-1].from-1)),l=!0}else{if(l&&o.some(h=>h.from==d.value.from))continue;if(s){let h=n.wordAt(d.value.from);if(!h||h.from!=d.value.from||h.to!=d.value.to)continue}return d.value}}const mF=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(s=>s.from===s.to))return hF({state:n,dispatch:e});let o=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(s=>n.sliceDoc(s.from,s.to)!=o))return!1;let r=pF(n,o);return r?(e(n.update({selection:n.selection.addRange(we.range(r.from,r.to),!1),effects:Be.scrollIntoView(r.to)})),!0):!1},Qa=Le.define({combine(n){return di(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new EF(e),scrollToMatch:e=>Be.scrollIntoView(e)})}});class f2{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||nF(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,o)=>o=="n"?`
|
|
344
|
+
`:o=="r"?"\r":o=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new yF(this):new OF(this)}getCursor(e,t=0,o){let r=e.doc?e:dt.create({doc:e});return o==null&&(o=r.doc.length),this.regexp?Da(this,r,t,o):Ia(this,r,t,o)}}class h2{constructor(e){this.spec=e}}function Ia(n,e,t,o){return new Ra(e.doc,n.unquoted,t,o,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?gF(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function gF(n,e){return(t,o,r,s)=>((s>t||s+r.length<o)&&(s=Math.max(0,t-2),r=n.sliceString(s,Math.min(n.length,o+2))),(e(uf(r,t-s))!=Qt.Word||e(df(r,t-s))!=Qt.Word)&&(e(df(r,o-s))!=Qt.Word||e(uf(r,o-s))!=Qt.Word))}class OF extends h2{constructor(e){super(e)}nextMatch(e,t,o){let r=Ia(this.spec,e,o,e.doc.length).nextOverlapping();return r.done&&(r=Ia(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,t,o){for(let r=o;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),l=Ia(this.spec,e,s,r),d=null;for(;!l.nextOverlapping().done;)d=l.value;if(d)return d;if(s==t)return null;r-=1e4}}prevMatch(e,t,o){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,o,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let o=Ia(this.spec,e,0,e.doc.length),r=[];for(;!o.next().done;){if(r.length>=t)return null;r.push(o.value)}return r}highlight(e,t,o,r){let s=Ia(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function Da(n,e,t,o){return new l2(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?vF(e.charCategorizer(e.selection.main.head)):void 0},t,o)}function uf(n,e){return n.slice(xn(n,e,!1),e)}function df(n,e){return n.slice(e,xn(n,e))}function vF(n){return(e,t,o)=>!o[0].length||(n(uf(o.input,o.index))!=Qt.Word||n(df(o.input,o.index))!=Qt.Word)&&(n(df(o.input,o.index+o[0].length))!=Qt.Word||n(uf(o.input,o.index+o[0].length))!=Qt.Word)}class yF extends h2{nextMatch(e,t,o){let r=Da(this.spec,e,o,e.doc.length).next();return r.done&&(r=Da(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,o){for(let r=1;;r++){let s=Math.max(t,o-r*1e4),l=Da(this.spec,e,s,o),d=null;for(;!l.next().done;)d=l.value;if(d&&(s==t||d.from>s+10))return d;if(s==t)return null}}prevMatch(e,t,o){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,o,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,o)=>o=="$"?"$":o=="&"?e.match[0]:o!="0"&&+o<e.match.length?e.match[o]:t)}matchAll(e,t){let o=Da(this.spec,e,0,e.doc.length),r=[];for(;!o.next().done;){if(r.length>=t)return null;r.push(o.value)}return r}highlight(e,t,o,r){let s=Da(this.spec,e,Math.max(0,t-250),Math.min(o+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const wc=nt.define(),aO=nt.define(),mr=fn.define({create(n){return new lO(uO(n).create(),null)},update(n,e){for(let t of e.effects)t.is(wc)?n=new lO(t.value.create(),n.panel):t.is(aO)&&(n=new lO(n.query,t.value?cO:null));return n},provide:n=>fc.from(n,e=>e.panel)});class lO{constructor(e,t){this.query=e,this.panel=t}}const bF=He.mark({class:"cm-searchMatch"}),xF=He.mark({class:"cm-searchMatch cm-searchMatch-selected"}),wF=Wt.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(mr))}update(n){let e=n.state.field(mr);(e!=n.startState.field(mr)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return He.none;let{view:t}=this,o=new nr;for(let r=0,s=t.visibleRanges,l=s.length;r<l;r++){let{from:d,to:h}=s[r];for(;r<l-1&&h>s[r+1].from-2*250;)h=s[++r].to;n.highlight(t.state,d,h,(m,g)=>{let v=t.state.selection.ranges.some(b=>b.from==m&&b.to==g);o.add(m,g,v?xF:bF)})}return o.finish()}},{decorations:n=>n.decorations});function Sc(n){return e=>{let t=e.state.field(mr,!1);return t&&t.query.spec.valid?n(e,t):O2(e)}}const ff=Sc((n,{query:e})=>{let{to:t}=n.state.selection.main,o=e.nextMatch(n.state,t,t);if(!o)return!1;let r=we.single(o.from,o.to),s=n.state.facet(Qa);return n.dispatch({selection:r,effects:[dO(n,o),s.scrollToMatch(r.main,n)],userEvent:"select.search"}),g2(n),!0}),hf=Sc((n,{query:e})=>{let{state:t}=n,{from:o}=t.selection.main,r=e.prevMatch(t,o,o);if(!r)return!1;let s=we.single(r.from,r.to),l=n.state.facet(Qa);return n.dispatch({selection:s,effects:[dO(n,r),l.scrollToMatch(s.main,n)],userEvent:"select.search"}),g2(n),!0}),SF=Sc((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:we.create(t.map(o=>we.range(o.from,o.to))),userEvent:"select.search.matches"}),!0)}),CF=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:o,to:r}=t.main,s=[],l=0;for(let d=new Ra(n.doc,n.sliceDoc(o,r));!d.next().done;){if(s.length>1e3)return!1;d.value.from==o&&(l=s.length),s.push(we.range(d.value.from,d.value.to))}return e(n.update({selection:we.create(s,l),userEvent:"select.search.matches"})),!0},p2=Sc((n,{query:e})=>{let{state:t}=n,{from:o,to:r}=t.selection.main;if(t.readOnly)return!1;let s=e.nextMatch(t,o,o);if(!s)return!1;let l=[],d,h,m=[];if(s.from==o&&s.to==r&&(h=t.toText(e.getReplacement(s)),l.push({from:s.from,to:s.to,insert:h}),s=e.nextMatch(t,s.from,s.to),m.push(Be.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(o).number)+"."))),s){let g=l.length==0||l[0].from>=s.to?0:s.to-s.from-h.length;d=we.single(s.from-g,s.to-g),m.push(dO(n,s)),m.push(t.facet(Qa).scrollToMatch(d.main,n))}return n.dispatch({changes:l,selection:d,effects:m,userEvent:"input.replace"}),!0}),kF=Sc((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(r=>{let{from:s,to:l}=r;return{from:s,to:l,insert:e.getReplacement(r)}});if(!t.length)return!1;let o=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:Be.announce.of(o),userEvent:"input.replace.all"}),!0});function cO(n){return n.state.facet(Qa).createPanel(n)}function uO(n,e){var t,o,r,s,l;let d=n.selection.main,h=d.empty||d.to>d.from+100?"":n.sliceDoc(d.from,d.to);if(e&&!h)return e;let m=n.facet(Qa);return new f2({search:((t=e?.literal)!==null&&t!==void 0?t:m.literal)?h:h.replace(/\n/g,"\\n"),caseSensitive:(o=e?.caseSensitive)!==null&&o!==void 0?o:m.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:m.literal,regexp:(s=e?.regexp)!==null&&s!==void 0?s:m.regexp,wholeWord:(l=e?.wholeWord)!==null&&l!==void 0?l:m.wholeWord})}function m2(n){let e=dc(n,cO);return e&&e.dom.querySelector("[main-field]")}function g2(n){let e=m2(n);e&&e==n.root.activeElement&&e.select()}const O2=n=>{let e=n.state.field(mr,!1);if(e&&e.panel){let t=m2(n);if(t&&t!=n.root.activeElement){let o=uO(n.state,e.query.spec);o.valid&&n.dispatch({effects:wc.of(o)}),t.focus(),t.select()}}else n.dispatch({effects:[aO.of(!0),e?wc.of(uO(n.state,e.query.spec)):nt.appendConfig.of(_F)]});return!0},v2=n=>{let e=n.state.field(mr,!1);if(!e||!e.panel)return!1;let t=dc(n,cO);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:aO.of(!1)}),!0},PF=[{key:"Mod-f",run:O2,scope:"editor search-panel"},{key:"F3",run:ff,shift:hf,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ff,shift:hf,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:v2,scope:"editor search-panel"},{key:"Mod-Shift-l",run:CF},{key:"Mod-Alt-g",run:oF},{key:"Mod-d",run:mF,preventDefault:!0}];class EF{constructor(e){this.view=e;let t=this.query=e.state.field(mr).query.spec;this.commit=this.commit.bind(this),this.searchField=Et("input",{value:t.search,placeholder:po(e,"Find"),"aria-label":po(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Et("input",{value:t.replace,placeholder:po(e,"Replace"),"aria-label":po(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Et("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Et("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Et("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function o(r,s,l){return Et("button",{class:"cm-button",name:r,onclick:s,type:"button"},l)}this.dom=Et("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,o("next",()=>ff(e),[po(e,"next")]),o("prev",()=>hf(e),[po(e,"previous")]),o("select",()=>SF(e),[po(e,"all")]),Et("label",null,[this.caseField,po(e,"match case")]),Et("label",null,[this.reField,po(e,"regexp")]),Et("label",null,[this.wordField,po(e,"by word")]),...e.state.readOnly?[]:[Et("br"),this.replaceField,o("replace",()=>p2(e),[po(e,"replace")]),o("replaceAll",()=>kF(e),[po(e,"replace all")])],Et("button",{name:"close",onclick:()=>v2(e),"aria-label":po(e,"close"),type:"button"},["×"])])}commit(){let e=new f2({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:wc.of(e)}))}keydown(e){DV(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?hf:ff)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),p2(this.view))}update(e){for(let t of e.transactions)for(let o of t.effects)o.is(wc)&&!o.value.eq(this.query)&&this.setQuery(o.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Qa).top}}function po(n,e){return n.state.phrase(e)}const pf=30,mf=/[\s\.,:;?!]/;function dO(n,{from:e,to:t}){let o=n.state.doc.lineAt(e),r=n.state.doc.lineAt(t).to,s=Math.max(o.from,e-pf),l=Math.min(r,t+pf),d=n.state.sliceDoc(s,l);if(s!=o.from){for(let h=0;h<pf;h++)if(!mf.test(d[h+1])&&mf.test(d[h])){d=d.slice(h);break}}if(l!=r){for(let h=d.length-1;h>d.length-pf;h--)if(!mf.test(d[h-1])&&mf.test(d[h])){d=d.slice(0,h);break}}return Be.announce.of(`${n.state.phrase("current match")}. ${d} ${n.state.phrase("on line")} ${o.number}.`)}const TF=Be.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_F=[mr,tr.low(wF),TF];class y2{constructor(e,t,o,r){this.state=e,this.pos=t,this.explicit=o,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=an(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),o=Math.max(t.from,this.pos-250),r=t.text.slice(o-t.from,this.pos-t.from),s=r.search(S2(e,!1));return s<0?null:{from:o+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,o){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),o&&o.onDocChange&&(this.abortOnDocChange=!0))}}function b2(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function NF(n){let e=Object.create(null),t=Object.create(null);for(let{label:r}of n){e[r[0]]=!0;for(let s=1;s<r.length;s++)t[r[s]]=!0}let o=b2(e)+b2(t)+"*$";return[new RegExp("^"+o),new RegExp(o)]}function x2(n){let e=n.map(r=>typeof r=="string"?{label:r}:r),[t,o]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:NF(e);return r=>{let s=r.matchBefore(o);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:t}:null}}function AF(n,e){return t=>{for(let o=an(t.state).resolveInner(t.pos,-1);o;o=o.parent){if(n.indexOf(o.name)>-1)return null;if(o.type.isTop)break}return e(t)}}class w2{constructor(e,t,o,r){this.completion=e,this.source=t,this.match=o,this.score=r}}function gr(n){return n.selection.main.from}function S2(n,e){var t;let{source:o}=n,r=e&&o[0]!="^",s=o[o.length-1]!="$";return!r&&!s?n:new RegExp(`${r?"^":""}(?:${o})${s?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const fO=Ri.define();function RF(n,e,t,o){let{main:r}=n.selection,s=t-r.from,l=o-r.from;return Object.assign(Object.assign({},n.changeByRange(d=>{if(d!=r&&t!=o&&n.sliceDoc(d.from+s,d.from+l)!=n.sliceDoc(t,o))return{range:d};let h=n.toText(e);return{changes:{from:d.from+s,to:o==r.from?d.to:d.from+l,insert:h},range:we.cursor(d.from+s+h.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const C2=new WeakMap;function MF(n){if(!Array.isArray(n))return n;let e=C2.get(n);return e||C2.set(n,e=x2(n)),e}const gf=nt.define(),Cc=nt.define();class QF{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let o=wn(e,t),r=_o(o);this.chars.push(o);let s=e.slice(t,t+r),l=s.toUpperCase();this.folded.push(wn(l==s?s.toLowerCase():l,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:o,any:r,precise:s,byWord:l}=this;if(t.length==1){let E=wn(e,0),F=_o(E),D=F==e.length?0:-100;if(E!=t[0])if(E==o[0])D+=-200;else return null;return this.ret(D,[0,F])}let d=e.indexOf(this.pattern);if(d==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let h=t.length,m=0;if(d<0){for(let E=0,F=Math.min(e.length,200);E<F&&m<h;){let D=wn(e,E);(D==t[m]||D==o[m])&&(r[m++]=E),E+=_o(D)}if(m<h)return null}let g=0,v=0,b=!1,x=0,C=-1,k=-1,M=/[a-z]/.test(e),_=!0;for(let E=0,F=Math.min(e.length,200),D=0;E<F&&v<h;){let Q=wn(e,E);d<0&&(g<h&&Q==t[g]&&(s[g++]=E),x<h&&(Q==t[x]||Q==o[x]?(x==0&&(C=E),k=E+1,x++):x=0));let Y,L=Q<255?Q>=48&&Q<=57||Q>=97&&Q<=122?2:Q>=65&&Q<=90?1:0:(Y=ym(Q))!=Y.toLowerCase()?1:Y!=Y.toUpperCase()?2:0;(!E||L==1&&M||D==0&&L!=0)&&(t[v]==Q||o[v]==Q&&(b=!0)?l[v++]=E:l.length&&(_=!1)),D=L,E+=_o(Q)}return v==h&&l[0]==0&&_?this.result(-100+(b?-200:0),l,e):x==h&&C==0?this.ret(-200-e.length+(k==e.length?0:-100),[0,k]):d>-1?this.ret(-700-e.length,[d,d+this.pattern.length]):x==h?this.ret(-900-e.length,[C,k]):v==h?this.result(-100+(b?-200:0)+-700+(_?0:-1100),l,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,o){let r=[],s=0;for(let l of t){let d=l+(this.astral?_o(wn(o,l)):1);s&&r[s-1]==l?r[s-1]=d:(r[s++]=l,r[s++]=d)}return this.ret(e-o.length,r)}}class IF{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),o=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return o==null?null:(this.matched=[0,t.length],this.score=o+(e.length==this.pattern.length?0:-100),this)}}const Pn=Le.define({combine(n){return di(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:DF,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>o=>k2(e(o),t(o)),optionClass:(e,t)=>o=>k2(e(o),t(o)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function k2(n,e){return n?e?n+" "+e:n:e}function DF(n,e,t,o,r,s){let l=n.textDirection==Nt.RTL,d=l,h=!1,m="top",g,v,b=e.left-r.left,x=r.right-e.right,C=o.right-o.left,k=o.bottom-o.top;if(d&&b<Math.min(C,x)?d=!1:!d&&x<Math.min(C,b)&&(d=!0),C<=(d?b:x))g=Math.max(r.top,Math.min(t.top,r.bottom-k))-e.top,v=Math.min(400,d?b:x);else{h=!0,v=Math.min(400,(l?e.right:r.right-e.left)-30);let E=r.bottom-e.bottom;E>=k||E>e.top?g=t.bottom-e.top:(m="bottom",g=e.bottom-t.top)}let M=(e.bottom-e.top)/s.offsetHeight,_=(e.right-e.left)/s.offsetWidth;return{style:`${m}: ${g/M}px; max-width: ${v/_}px`,class:"cm-completionInfo-"+(h?l?"left-narrow":"right-narrow":d?"left":"right")}}function BF(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let o=document.createElement("div");return o.classList.add("cm-completionIcon"),t.type&&o.classList.add(...t.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),o.setAttribute("aria-hidden","true"),o},position:20}),e.push({render(t,o,r,s){let l=document.createElement("span");l.className="cm-completionLabel";let d=t.displayLabel||t.label,h=0;for(let m=0;m<s.length;){let g=s[m++],v=s[m++];g>h&&l.appendChild(document.createTextNode(d.slice(h,g)));let b=l.appendChild(document.createElement("span"));b.appendChild(document.createTextNode(d.slice(g,v))),b.className="cm-completionMatchedText",h=v}return h<d.length&&l.appendChild(document.createTextNode(d.slice(h))),l},position:50},{render(t){if(!t.detail)return null;let o=document.createElement("span");return o.className="cm-completionDetail",o.textContent=t.detail,o},position:80}),e.sort((t,o)=>t.position-o.position).map(t=>t.render)}function hO(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let r=Math.floor(e/t);return{from:r*t,to:(r+1)*t}}let o=Math.floor((n-e)/t);return{from:n-(o+1)*t,to:n-o*t}}class VF{constructor(e,t,o){this.view=e,this.stateField=t,this.applyCompletion=o,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:h=>this.placeInfo(h),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:s,selected:l}=r.open,d=e.state.facet(Pn);this.optionContent=BF(d),this.optionClass=d.optionClass,this.tooltipClass=d.tooltipClass,this.range=hO(s.length,l,d.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",h=>{let{options:m}=e.state.field(t).open;for(let g=h.target,v;g&&g!=this.dom;g=g.parentNode)if(g.nodeName=="LI"&&(v=/-(\d+)$/.exec(g.id))&&+v[1]<m.length){this.applyCompletion(e,m[+v[1]]),h.preventDefault();return}}),this.dom.addEventListener("focusout",h=>{let m=e.state.field(this.stateField,!1);m&&m.tooltip&&e.state.facet(Pn).closeOnBlur&&h.relatedTarget!=e.contentDOM&&e.dispatch({effects:Cc.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let o=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),o!=r){let{options:s,selected:l,disabled:d}=o.open;(!r.open||r.open.options!=s)&&(this.range=hO(s.length,l,e.state.facet(Pn).maxRenderedOptions),this.showOptions(s,o.id)),this.updateSel(),d!=((t=r.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!d)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let o of this.currentClass.split(" "))o&&this.dom.classList.remove(o);for(let o of t.split(" "))o&&this.dom.classList.add(o);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=hO(t.options.length,t.selected,this.view.state.facet(Pn).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:o}=t.options[t.selected],{info:r}=o;if(!r)return;let s=typeof r=="string"?document.createTextNode(r):r(o);if(!s)return;"then"in s?s.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,o)}).catch(l=>Kn(this.view.state,l,"completion info")):this.addInfoPane(s,o)}}addInfoPane(e,t){this.destroyInfo();let o=this.info=document.createElement("div");if(o.className="cm-tooltip cm-completionInfo",e.nodeType!=null)o.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;o.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(o),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let o=this.list.firstChild,r=this.range.from;o;o=o.nextSibling,r++)o.nodeName!="LI"||!o.id?r--:r==e?o.hasAttribute("aria-selected")||(o.setAttribute("aria-selected","true"),t=o):o.hasAttribute("aria-selected")&&o.removeAttribute("aria-selected");return t&&jF(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),o=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let l=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return r.top>Math.min(s.bottom,t.bottom)-10||r.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(Pn).positionInfo(this.view,t,r,o,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,o){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let l=o.from;l<o.to;l++){let{completion:d,match:h}=e[l],{section:m}=d;if(m){let b=typeof m=="string"?m:m.name;if(b!=s&&(l>o.from||o.from==0))if(s=b,typeof m!="string"&&m.header)r.appendChild(m.header(m));else{let x=r.appendChild(document.createElement("completion-section"));x.textContent=b}}const g=r.appendChild(document.createElement("li"));g.id=t+"-"+l,g.setAttribute("role","option");let v=this.optionClass(d);v&&(g.className=v);for(let b of this.optionContent){let x=b(d,this.view.state,this.view,h);x&&g.appendChild(x)}}return o.from&&r.classList.add("cm-completionListIncompleteTop"),o.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function LF(n,e){return t=>new VF(t,n,e)}function jF(n,e){let t=n.getBoundingClientRect(),o=e.getBoundingClientRect(),r=t.height/n.offsetHeight;o.top<t.top?n.scrollTop-=(t.top-o.top)/r:o.bottom>t.bottom&&(n.scrollTop+=(o.bottom-t.bottom)/r)}function P2(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function FF(n,e){let t=[],o=null,r=m=>{t.push(m);let{section:g}=m.completion;if(g){o||(o=[]);let v=typeof g=="string"?g:g.name;o.some(b=>b.name==v)||o.push(typeof g=="string"?{name:v}:g)}},s=e.facet(Pn);for(let m of n)if(m.hasResult()){let g=m.result.getMatch;if(m.result.filter===!1)for(let v of m.result.options)r(new w2(v,m.source,g?g(v):[],1e9-t.length));else{let v=e.sliceDoc(m.from,m.to),b,x=s.filterStrict?new IF(v):new QF(v);for(let C of m.result.options)if(b=x.match(C.label)){let k=C.displayLabel?g?g(C,b.matched):[]:b.matched;r(new w2(C,m.source,k,b.score+(C.boost||0)))}}}if(o){let m=Object.create(null),g=0,v=(b,x)=>{var C,k;return((C=b.rank)!==null&&C!==void 0?C:1e9)-((k=x.rank)!==null&&k!==void 0?k:1e9)||(b.name<x.name?-1:1)};for(let b of o.sort(v))g-=1e5,m[b.name]=g;for(let b of t){let{section:x}=b.completion;x&&(b.score+=m[typeof x=="string"?x:x.name])}}let l=[],d=null,h=s.compareCompletions;for(let m of t.sort((g,v)=>v.score-g.score||h(g.completion,v.completion))){let g=m.completion;!d||d.label!=g.label||d.detail!=g.detail||d.type!=null&&g.type!=null&&d.type!=g.type||d.apply!=g.apply||d.boost!=g.boost?l.push(m):P2(m.completion)>P2(d)&&(l[l.length-1]=m),d=m.completion}return l}class Ba{constructor(e,t,o,r,s,l){this.options=e,this.attrs=t,this.tooltip=o,this.timestamp=r,this.selected=s,this.disabled=l}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Ba(this.options,E2(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,o,r,s){let l=FF(e,t);if(!l.length)return r&&e.some(h=>h.state==1)?new Ba(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let d=t.facet(Pn).selectOnOpen?0:-1;if(r&&r.selected!=d&&r.selected!=-1){let h=r.options[r.selected].completion;for(let m=0;m<l.length;m++)if(l[m].completion==h){d=m;break}}return new Ba(l,E2(o,d),{pos:e.reduce((h,m)=>m.hasResult()?Math.min(h,m.from):h,1e8),create:XF,above:s.aboveCursor},r?r.timestamp:Date.now(),d,!1)}map(e){return new Ba(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Of{constructor(e,t,o){this.active=e,this.id=t,this.open=o}static start(){return new Of(UF,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,o=t.facet(Pn),s=(o.override||t.languageDataAt("autocomplete",gr(t)).map(MF)).map(d=>(this.active.find(m=>m.source==d)||new mo(d,this.active.some(m=>m.state!=0)?1:0)).update(e,o));s.length==this.active.length&&s.every((d,h)=>d==this.active[h])&&(s=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||s.some(d=>d.hasResult()&&e.changes.touchesRange(d.from,d.to))||!ZF(s,this.active)?l=Ba.build(s,t,this.id,l,o):l&&l.disabled&&!s.some(d=>d.state==1)&&(l=null),!l&&s.every(d=>d.state!=1)&&s.some(d=>d.hasResult())&&(s=s.map(d=>d.hasResult()?new mo(d.source,0):d));for(let d of e.effects)d.is(N2)&&(l=l&&l.setSelected(d.value,this.id));return s==this.active&&l==this.open?this:new Of(s,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?zF:WF}}function ZF(n,e){if(n==e)return!0;for(let t=0,o=0;;){for(;t<n.length&&!n[t].hasResult;)t++;for(;o<e.length&&!e[o].hasResult;)o++;let r=t==n.length,s=o==e.length;if(r||s)return r==s;if(n[t++].result!=e[o++].result)return!1}}const zF={"aria-autocomplete":"list"},WF={};function E2(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const UF=[];function T2(n,e){if(n.isUserEvent("input.complete")){let o=n.annotation(fO);if(o&&e.activateOnCompletion(o))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class mo{constructor(e,t,o=-1){this.source=e,this.state=t,this.explicitPos=o}hasResult(){return!1}update(e,t){let o=T2(e,t),r=this;(o&8||o&16&&this.touches(e))&&(r=new mo(r.source,0)),o&4&&r.state==0&&(r=new mo(this.source,1)),r=r.updateFor(e,o);for(let s of e.effects)if(s.is(gf))r=new mo(r.source,1,s.value?gr(e.state):-1);else if(s.is(Cc))r=new mo(r.source,0);else if(s.is(_2))for(let l of s.value)l.source==r.source&&(r=l);return r}updateFor(e,t){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new mo(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(gr(e.state))}}class Va extends mo{constructor(e,t,o,r,s){super(e,2,t),this.result=o,this.from=r,this.to=s}hasResult(){return!0}updateFor(e,t){var o;if(!(t&3))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let s=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),d=gr(e.state);if((this.explicitPos<0?d<=s:d<this.from)||d>l||!r||t&2&&gr(e.startState)==this.from)return new mo(this.source,t&4?1:0);let h=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return HF(r.validFor,e.state,s,l)?new Va(this.source,h,r,s,l):r.update&&(r=r.update(r,s,l,new y2(e.state,d,h>=0)))?new Va(this.source,h,r,r.from,(o=r.to)!==null&&o!==void 0?o:gr(e.state)):new mo(this.source,1,h)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Va(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new mo(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function HF(n,e,t,o){if(!n)return!1;let r=e.sliceDoc(t,o);return typeof n=="function"?n(r,t,o,e):S2(n,!0).test(r)}const _2=nt.define({map(n,e){return n.map(t=>t.map(e))}}),N2=nt.define(),eo=fn.define({create(){return Of.start()},update(n,e){return n.update(e)},provide:n=>[kg.from(n,e=>e.tooltip),Be.contentAttributes.from(n,e=>e.attrs)]});function pO(n,e){const t=e.completion.apply||e.completion.label;let o=n.state.field(eo).active.find(r=>r.source==e.source);return o instanceof Va?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},RF(n.state,t,o.from,o.to)),{annotations:fO.of(e.completion)})):t(n,e.completion,o.from,o.to),!0):!1}const XF=LF(eo,pO);function vf(n,e="option"){return t=>{let o=t.state.field(eo,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp<t.state.facet(Pn).interactionDelay)return!1;let r=1,s;e=="page"&&(s=TC(t,o.open.tooltip))&&(r=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:l}=o.open.options,d=o.open.selected>-1?o.open.selected+r*(n?1:-1):n?0:l-1;return d<0?d=e=="page"?0:l-1:d>=l&&(d=e=="page"?l-1:0),t.dispatch({effects:N2.of(d)}),!0}}const YF=n=>{let e=n.state.field(eo,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(Pn).interactionDelay?!1:pO(n,e.open.options[e.open.selected])},A2=n=>n.state.field(eo,!1)?(n.dispatch({effects:gf.of(!0)}),!0):!1,GF=n=>{let e=n.state.field(eo,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:Cc.of(null)}),!0)};class KF{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const JF=50,$F=1e3,qF=Wt.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(eo).active)e.state==1&&this.startQuery(e)}update(n){let e=n.state.field(eo),t=n.state.facet(Pn);if(!n.selectionSet&&!n.docChanged&&n.startState.field(eo)==e)return;let o=n.transactions.some(s=>{let l=T2(s,t);return l&8||(s.selection||s.docChanged)&&!(l&3)});for(let s=0;s<this.running.length;s++){let l=this.running[s];if(o||l.context.abortOnDocChange&&n.docChanged||l.updates.length+n.transactions.length>JF&&Date.now()-l.time>$F){for(let d of l.context.abortListeners)try{d()}catch(h){Kn(this.view.state,h)}l.context.abortListeners=null,this.running.splice(s--,1)}else l.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(s=>s.effects.some(l=>l.is(gf)))&&(this.pendingStart=!0);let r=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.state==1&&!this.running.some(l=>l.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let s of n.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(eo);for(let t of e.active)t.state==1&&!this.running.some(o=>o.active.source==t.source)&&this.startQuery(t)}startQuery(n){let{state:e}=this.view,t=gr(e),o=new y2(e,t,n.explicitPos==t,this.view),r=new KF(n,o);this.running.push(r),Promise.resolve(n.source(o)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:Cc.of(null)}),Kn(this.view.state,s)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Pn).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Pn);for(let o=0;o<this.running.length;o++){let r=this.running[o];if(r.done===void 0)continue;if(this.running.splice(o--,1),r.done){let l=new Va(r.active.source,r.active.explicitPos,r.done,r.done.from,(n=r.done.to)!==null&&n!==void 0?n:gr(r.updates.length?r.updates[0].startState:this.view.state));for(let d of r.updates)l=l.update(d,t);if(l.hasResult()){e.push(l);continue}}let s=this.view.state.field(eo).active.find(l=>l.source==r.active.source);if(s&&s.state==1)if(r.done==null){let l=new mo(r.active.source,0);for(let d of r.updates)l=l.update(d,t);l.state!=1&&e.push(l)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:_2.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(eo,!1);if(e&&e.tooltip&&this.view.state.facet(Pn).closeOnBlur){let t=e.open&&TC(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Cc.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:gf.of(!1)}),20),this.composing=0}}}),e9=typeof navigator=="object"&&/Win/.test(navigator.platform),t9=tr.highest(Be.domEventHandlers({keydown(n,e){let t=e.state.field(eo,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(e9&&n.altKey)||n.metaKey)return!1;let o=t.open.options[t.open.selected],r=t.active.find(l=>l.source==o.source),s=o.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(n.key)>-1&&pO(e,o),!1}})),R2=Be.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class n9{constructor(e,t,o,r){this.field=e,this.line=t,this.from=o,this.to=r}}class mO{constructor(e,t,o){this.field=e,this.from=t,this.to=o}map(e){let t=e.mapPos(this.from,-1,Sn.TrackDel),o=e.mapPos(this.to,1,Sn.TrackDel);return t==null||o==null?null:new mO(this.field,t,o)}}class gO{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let o=[],r=[t],s=e.doc.lineAt(t),l=/^\s*/.exec(s.text)[0];for(let h of this.lines){if(o.length){let m=l,g=/^\t*/.exec(h)[0].length;for(let v=0;v<g;v++)m+=e.facet(Oc);r.push(t+m.length-g),h=m+h.slice(g)}o.push(h),t+=h.length+1}let d=this.fieldPositions.map(h=>new mO(h.field,r[h.line]+h.from,r[h.line]+h.to));return{text:o,ranges:d}}static parse(e){let t=[],o=[],r=[],s;for(let l of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(l);){let d=s[1]?+s[1]:null,h=s[2]||s[3]||"",m=-1,g=h.replace(/\\[{}]/g,v=>v[1]);for(let v=0;v<t.length;v++)(d!=null?t[v].seq==d:g&&t[v].name==g)&&(m=v);if(m<0){let v=0;for(;v<t.length&&(d==null||t[v].seq!=null&&t[v].seq<d);)v++;t.splice(v,0,{seq:d,name:g}),m=v;for(let b of r)b.field>=m&&b.field++}r.push(new n9(m,o.length,s.index,s.index+g.length)),l=l.slice(0,s.index)+h+l.slice(s.index+s[0].length)}l=l.replace(/\\([{}])/g,(d,h,m)=>{for(let g of r)g.line==o.length&&g.from>m&&(g.from--,g.to--);return h}),o.push(l)}return new gO(o,r)}}let o9=He.widget({widget:new class extends fi{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),i9=He.mark({class:"cm-snippetField"});class La{constructor(e,t){this.ranges=e,this.active=t,this.deco=He.set(e.map(o=>(o.from==o.to?o9:i9).range(o.from,o.to)))}map(e){let t=[];for(let o of this.ranges){let r=o.map(e);if(!r)return null;t.push(r)}return new La(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(o=>o.field==this.active&&o.from<=t.from&&o.to>=t.to))}}const kc=nt.define({map(n,e){return n&&n.map(e)}}),r9=nt.define(),Pc=fn.define({create(){return null},update(n,e){for(let t of e.effects){if(t.is(kc))return t.value;if(t.is(r9)&&n)return new La(n.ranges,t.value)}return n&&e.docChanged&&(n=n.map(e.changes)),n&&e.selection&&!n.selectionInsideField(e.selection)&&(n=null),n},provide:n=>Be.decorations.from(n,e=>e?e.deco:He.none)});function OO(n,e){return we.create(n.filter(t=>t.field==e).map(t=>we.range(t.from,t.to)))}function s9(n){let e=gO.parse(n);return(t,o,r,s)=>{let{text:l,ranges:d}=e.instantiate(t.state,r),h={changes:{from:r,to:s,insert:pt.of(l)},scrollIntoView:!0,annotations:o?[fO.of(o),Jt.userEvent.of("input.complete")]:void 0};if(d.length&&(h.selection=OO(d,0)),d.some(m=>m.field>0)){let m=new La(d,0),g=h.effects=[kc.of(m)];t.state.field(Pc,!1)===void 0&&g.push(nt.appendConfig.of([Pc,l9,c9,R2]))}t.dispatch(t.state.update(h))}}function M2(n){return({state:e,dispatch:t})=>{let o=e.field(Pc,!1);if(!o||n<0&&o.active==0)return!1;let r=o.active+n,s=n>0&&!o.ranges.some(l=>l.field==r+n);return t(e.update({selection:OO(o.ranges,r),effects:kc.of(s?null:new La(o.ranges,r)),scrollIntoView:!0})),!0}}const a9=[{key:"Tab",run:M2(1),shift:M2(-1)},{key:"Escape",run:({state:n,dispatch:e})=>n.field(Pc,!1)?(e(n.update({effects:kc.of(null)})),!0):!1}],Q2=Le.define({combine(n){return n.length?n[0]:a9}}),l9=tr.highest(sc.compute([Q2],n=>n.facet(Q2)));function to(n,e){return Object.assign(Object.assign({},e),{apply:s9(n)})}const c9=Be.domEventHandlers({mousedown(n,e){let t=e.state.field(Pc,!1),o;if(!t||(o=e.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let r=t.ranges.find(s=>s.from<=o&&s.to>=o);return!r||r.field==t.active?!1:(e.dispatch({selection:OO(t.ranges,r.field),effects:kc.of(t.ranges.some(s=>s.field>r.field)?new La(t.ranges,r.field):null),scrollIntoView:!0}),!0)}}),Ec={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ms=nt.define({map(n,e){let t=e.mapPos(n,-1,Sn.TrackAfter);return t??void 0}}),vO=new class extends ls{};vO.startSide=1,vO.endSide=-1;const I2=fn.define({create(){return mt.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:o=>o>=t.from&&o<=t.to})}for(let t of e.effects)t.is(ms)&&(n=n.update({add:[vO.range(t.value,t.value+1)]}));return n}});function u9(){return[f9,I2]}const yO="()[]{}<>";function D2(n){for(let e=0;e<yO.length;e+=2)if(yO.charCodeAt(e)==n)return yO.charAt(e+1);return ym(n<128?n:n+1)}function B2(n,e){return n.languageDataAt("closeBrackets",e)[0]||Ec}const d9=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),f9=Be.inputHandler.of((n,e,t,o)=>{if((d9?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let r=n.state.selection.main;if(o.length>2||o.length==2&&_o(wn(o,0))==1||e!=r.from||t!=r.to)return!1;let s=p9(n.state,o);return s?(n.dispatch(s),!0):!1}),h9=[{key:"Backspace",run:({state:n,dispatch:e})=>{if(n.readOnly)return!1;let o=B2(n,n.selection.main.head).brackets||Ec.brackets,r=null,s=n.changeByRange(l=>{if(l.empty){let d=m9(n.doc,l.head);for(let h of o)if(h==d&&yf(n.doc,l.head)==D2(wn(h,0)))return{changes:{from:l.head-h.length,to:l.head+h.length},range:we.cursor(l.head-h.length)}}return{range:r=l}});return r||e(n.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function p9(n,e){let t=B2(n,n.selection.main.head),o=t.brackets||Ec.brackets;for(let r of o){let s=D2(wn(r,0));if(e==r)return s==r?v9(n,r,o.indexOf(r+r+r)>-1,t):g9(n,r,s,t.before||Ec.before);if(e==s&&V2(n,n.selection.main.from))return O9(n,r,s)}return null}function V2(n,e){let t=!1;return n.field(I2).between(0,n.doc.length,o=>{o==e&&(t=!0)}),t}function yf(n,e){let t=n.sliceString(e,e+2);return t.slice(0,_o(wn(t,0)))}function m9(n,e){let t=n.sliceString(e-2,e);return _o(wn(t,0))==t.length?t:t.slice(1)}function g9(n,e,t,o){let r=null,s=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:t,from:l.to}],effects:ms.of(l.to+e.length),range:we.range(l.anchor+e.length,l.head+e.length)};let d=yf(n.doc,l.head);return!d||/\s/.test(d)||o.indexOf(d)>-1?{changes:{insert:e+t,from:l.head},effects:ms.of(l.head+e.length),range:we.cursor(l.head+e.length)}:{range:r=l}});return r?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function O9(n,e,t){let o=null,r=n.changeByRange(s=>s.empty&&yf(n.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:we.cursor(s.head+t.length)}:o={range:s});return o?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function v9(n,e,t,o){let r=o.stringPrefixes||Ec.stringPrefixes,s=null,l=n.changeByRange(d=>{if(!d.empty)return{changes:[{insert:e,from:d.from},{insert:e,from:d.to}],effects:ms.of(d.to+e.length),range:we.range(d.anchor+e.length,d.head+e.length)};let h=d.head,m=yf(n.doc,h),g;if(m==e){if(L2(n,h))return{changes:{insert:e+e,from:h},effects:ms.of(h+e.length),range:we.cursor(h+e.length)};if(V2(n,h)){let b=t&&n.sliceDoc(h,h+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:h,to:h+b.length,insert:b},range:we.cursor(h+b.length)}}}else{if(t&&n.sliceDoc(h-2*e.length,h)==e+e&&(g=j2(n,h-2*e.length,r))>-1&&L2(n,g))return{changes:{insert:e+e+e+e,from:h},effects:ms.of(h+e.length),range:we.cursor(h+e.length)};if(n.charCategorizer(h)(m)!=Qt.Word&&j2(n,h,r)>-1&&!y9(n,h,e,r))return{changes:{insert:e+e,from:h},effects:ms.of(h+e.length),range:we.cursor(h+e.length)}}return{range:s=d}});return s?null:n.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function L2(n,e){let t=an(n).resolveInner(e+1);return t.parent&&t.from==e}function y9(n,e,t,o){let r=an(n).resolveInner(e,-1),s=o.reduce((l,d)=>Math.max(l,d.length),0);for(let l=0;l<5;l++){let d=n.sliceDoc(r.from,Math.min(r.to,r.from+t.length+s)),h=d.indexOf(t);if(!h||h>-1&&o.indexOf(d.slice(0,h))>-1){let g=r.firstChild;for(;g&&g.from==r.from&&g.to-g.from>t.length+h;){if(n.sliceDoc(g.to-t.length,g.to)==t)return!1;g=g.firstChild}return!0}let m=r.to==e&&r.parent;if(!m)break;r=m}return!1}function j2(n,e,t){let o=n.charCategorizer(e);if(o(n.sliceDoc(e-1,e))!=Qt.Word)return e;for(let r of t){let s=e-r.length;if(n.sliceDoc(s,e)==r&&o(n.sliceDoc(s-1,s))!=Qt.Word)return s}return-1}function b9(n={}){return[t9,eo,Pn.of(n),qF,x9,R2]}const F2=[{key:"Ctrl-Space",run:A2},{mac:"Alt-`",run:A2},{key:"Escape",run:GF},{key:"ArrowDown",run:vf(!0)},{key:"ArrowUp",run:vf(!1)},{key:"PageDown",run:vf(!0,"page")},{key:"PageUp",run:vf(!1,"page")},{key:"Enter",run:YF}],x9=tr.highest(sc.computeN([Pn],n=>n.facet(Pn).defaultKeymap?[F2]:[]));class w9{constructor(e,t,o){this.from=e,this.to=t,this.diagnostic=o}}class gs{constructor(e,t,o){this.diagnostics=e,this.panel=t,this.selected=o}static init(e,t,o){let r=e,s=o.facet(Tc).markerFilter;s&&(r=s(r,o));let l=He.set(r.map(d=>d.from==d.to||d.from==d.to-1&&o.doc.lineAt(d.from).to==d.from?He.widget({widget:new N9(d),diagnostic:d}).range(d.from):He.mark({attributes:{class:"cm-lintRange cm-lintRange-"+d.severity+(d.markClass?" "+d.markClass:"")},diagnostic:d}).range(d.from,d.to)),!0);return new gs(l,t,ja(l))}}function ja(n,e=null,t=0){let o=null;return n.between(t,1e9,(r,s,{spec:l})=>{if(!(e&&l.diagnostic!=e))return o=new w9(r,s,l.diagnostic),!1}),o}function S9(n,e){let t=e.pos,o=e.end||t,r=n.state.facet(Tc).hideOn(n,t,o);if(r!=null)return r;let s=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(l=>l.is(Z2))||n.changes.touchesRange(s.from,Math.max(s.to,o)))}function C9(n,e){return n.field(go,!1)?e:e.concat(nt.appendConfig.of(M9))}const Z2=nt.define(),bO=nt.define(),z2=nt.define(),go=fn.define({create(){return new gs(He.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),o=null,r=n.panel;if(n.selected){let s=e.changes.mapPos(n.selected.from,1);o=ja(t,n.selected.diagnostic,s)||ja(t,null,s)}!t.size&&r&&e.state.facet(Tc).autoPanel&&(r=null),n=new gs(t,r,o)}for(let t of e.effects)if(t.is(Z2)){let o=e.state.facet(Tc).autoPanel?t.value.length?_c.open:null:n.panel;n=gs.init(t.value,o,e.state)}else t.is(bO)?n=new gs(n.diagnostics,t.value?_c.open:null,n.selected):t.is(z2)&&(n=new gs(n.diagnostics,n.panel,t.value));return n},provide:n=>[fc.from(n,e=>e.panel),Be.decorations.from(n,e=>e.diagnostics)]}),k9=He.mark({class:"cm-lintRange cm-lintRange-active"});function P9(n,e,t){let{diagnostics:o}=n.state.field(go),r=[],s=2e8,l=0;o.between(e-(t<0?1:0),e+(t>0?1:0),(h,m,{spec:g})=>{e>=h&&e<=m&&(h==m||(e>h||t>0)&&(e<m||t<0))&&(r.push(g.diagnostic),s=Math.min(h,s),l=Math.max(m,l))});let d=n.state.facet(Tc).tooltipFilter;return d&&(r=d(r,n.state)),r.length?{pos:s,end:l,above:n.state.doc.lineAt(s).to<l,create(){return{dom:E9(n,r)}}}:null}function E9(n,e){return Et("ul",{class:"cm-tooltip-lint"},e.map(t=>H2(n,t,!1)))}const T9=n=>{let e=n.state.field(go,!1);(!e||!e.panel)&&n.dispatch({effects:C9(n.state,[bO.of(!0)])});let t=dc(n,_c.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},W2=n=>{let e=n.state.field(go,!1);return!e||!e.panel?!1:(n.dispatch({effects:bO.of(!1)}),!0)},_9=[{key:"Mod-Shift-m",run:T9,preventDefault:!0},{key:"F8",run:n=>{let e=n.state.field(go,!1);if(!e)return!1;let t=n.state.selection.main,o=e.diagnostics.iter(t.to+1);return!o.value&&(o=e.diagnostics.iter(0),!o.value||o.from==t.from&&o.to==t.to)?!1:(n.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),!0)}}],Tc=Le.define({combine(n){return Object.assign({sources:n.map(e=>e.source).filter(e=>e!=null)},di(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?o=>e(o)||t(o):e:t}))}});function U2(n){let e=[];if(n)e:for(let{name:t}of n){for(let o=0;o<t.length;o++){let r=t[o];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function H2(n,e,t){var o;let r=t?U2(e.actions):[];return Et("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Et("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(o=e.actions)===null||o===void 0?void 0:o.map((s,l)=>{let d=!1,h=b=>{if(b.preventDefault(),d)return;d=!0;let x=ja(n.state.field(go).diagnostics,e);x&&s.apply(n,x.from,x.to)},{name:m}=s,g=r[l]?m.indexOf(r[l]):-1,v=g<0?m:[m.slice(0,g),Et("u",m.slice(g,g+1)),m.slice(g+1)];return Et("button",{type:"button",class:"cm-diagnosticAction",onclick:h,onmousedown:h,"aria-label":` Action: ${m}${g<0?"":` (access key "${r[l]})"`}.`},v)}),e.source&&Et("div",{class:"cm-diagnosticSource"},e.source))}class N9 extends fi{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Et("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class X2{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=H2(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class _c{constructor(e){this.view=e,this.items=[];let t=r=>{if(r.keyCode==27)W2(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],l=U2(s.actions);for(let d=0;d<l.length;d++)if(l[d].toUpperCase().charCodeAt(0)==r.keyCode){let h=ja(this.view.state.field(go).diagnostics,s);h&&s.actions[d].apply(e,h.from,h.to)}}else return;r.preventDefault()},o=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=Et("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:o}),this.dom=Et("div",{class:"cm-panel-lint"},this.list,Et("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>W2(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(go).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(go),o=0,r=!1,s=null;for(e.between(0,this.view.state.doc.length,(l,d,{spec:h})=>{let m=-1,g;for(let v=o;v<this.items.length;v++)if(this.items[v].diagnostic==h.diagnostic){m=v;break}m<0?(g=new X2(this.view,h.diagnostic),this.items.splice(o,0,g),r=!0):(g=this.items[m],m>o&&(this.items.splice(o,m-o),r=!0)),t&&g.diagnostic==t.diagnostic?g.dom.hasAttribute("aria-selected")||(g.dom.setAttribute("aria-selected","true"),s=g):g.dom.hasAttribute("aria-selected")&&g.dom.removeAttribute("aria-selected"),o++});o<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new X2(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:d})=>{let h=d.height/this.list.offsetHeight;l.top<d.top?this.list.scrollTop-=(d.top-l.top)/h:l.bottom>d.bottom&&(this.list.scrollTop+=(l.bottom-d.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let o=e;e=o.nextSibling,o.remove()}for(let o of this.items)if(o.dom.parentNode==this.list){for(;e!=o.dom;)t();e=o.dom.nextSibling}else this.list.insertBefore(o.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(go),o=ja(t.diagnostics,this.items[e].diagnostic);o&&this.view.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:z2.of(o)})}static open(e){return new _c(e)}}function A9(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function bf(n){return A9(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const R9=Be.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:bf("#d11")},".cm-lintRange-warning":{backgroundImage:bf("orange")},".cm-lintRange-info":{backgroundImage:bf("#999")},".cm-lintRange-hint":{backgroundImage:bf("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),M9=[go,Be.decorations.compute([go],n=>{let{selected:e,panel:t}=n.field(go);return!e||!t||e.from==e.to?He.none:He.set([k9.range(e.from,e.to)])}),CL(P9,{hideOn:S9}),R9],Q9=[IL(),VL(),qV(),q7(),P7(),ZV(),XV(),dt.allowMultipleSelections.of(!0),p7(),T7(A7,{fallback:!0}),B7(),u9(),b9(),hL(),gL(),rL(),aF(),sc.of([...h9,...eF,...PF,...lj,...w7,...F2,..._9])];/*!
|
|
345
|
+
* VueCodemirror v6.1.1
|
|
346
|
+
* Copyright (c) Surmon. All rights reserved.
|
|
347
|
+
* Released under the MIT License.
|
|
348
|
+
* Surmon
|
|
349
|
+
*/var I9=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[Q9]}),D9=Symbol("vue-codemirror-global-config"),Fn,B9=function(n){var e=n.onUpdate,t=n.onChange,o=n.onFocus,r=n.onBlur,s=function(l,d){var h={};for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&d.indexOf(m)<0&&(h[m]=l[m]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var g=0;for(m=Object.getOwnPropertySymbols(l);g<m.length;g++)d.indexOf(m[g])<0&&Object.prototype.propertyIsEnumerable.call(l,m[g])&&(h[m[g]]=l[m[g]])}return h}(n,["onUpdate","onChange","onFocus","onBlur"]);return dt.create({doc:s.doc,selection:s.selection,extensions:(Array.isArray(s.extensions)?s.extensions:[s.extensions]).concat([Be.updateListener.of(function(l){e(l),l.docChanged&&t(l.state.doc.toString(),l),l.focusChanged&&(l.view.hasFocus?o(l):r(l))})])})},Fa=function(n){var e=new Wl;return{compartment:e,run:function(t){e.get(n.state)?n.dispatch({effects:e.reconfigure(t)}):n.dispatch({effects:nt.appendConfig.of(e.of(t))})}}},Y2=function(n,e){var t=Fa(n),o=t.compartment,r=t.run;return function(s){var l=o.get(n.state);r(s??l!==e?e:[])}},xf={type:Boolean,default:void 0},V9={autofocus:xf,disabled:xf,indentWithTab:xf,tabSize:Number,placeholder:String,style:Object,autoDestroy:xf,phrases:Object,root:Object,extensions:Array,selection:Object},L9={modelValue:{type:String,default:""}},j9=Object.assign(Object.assign({},V9),L9);(function(n){n.Change="change",n.Update="update",n.Focus="focus",n.Blur="blur",n.Ready="ready",n.ModelUpdate="update:modelValue"})(Fn||(Fn={}));var Os={};Os[Fn.Change]=function(n,e){return!0},Os[Fn.Update]=function(n){return!0},Os[Fn.Focus]=function(n){return!0},Os[Fn.Blur]=function(n){return!0},Os[Fn.Ready]=function(n){return!0};var G2={};G2[Fn.ModelUpdate]=Os[Fn.Change];var F9=Object.assign(Object.assign({},Os),G2),Z9=u.defineComponent({name:"VueCodemirror",props:Object.assign({},j9),emits:Object.assign({},F9),setup:function(n,e){var t=u.shallowRef(),o=u.shallowRef(),r=u.shallowRef(),s=Object.assign(Object.assign({},I9),u.inject(D9,{})),l=u.computed(function(){var d={};return Object.keys(u.toRaw(n)).forEach(function(h){var m;h!=="modelValue"&&(d[h]=(m=n[h])!==null&&m!==void 0?m:s[h])}),d});return u.onMounted(function(){var d;o.value=B9({doc:n.modelValue,selection:l.value.selection,extensions:(d=s.extensions)!==null&&d!==void 0?d:[],onFocus:function(m){return e.emit(Fn.Focus,m)},onBlur:function(m){return e.emit(Fn.Blur,m)},onUpdate:function(m){return e.emit(Fn.Update,m)},onChange:function(m,g){m!==n.modelValue&&(e.emit(Fn.Change,m,g),e.emit(Fn.ModelUpdate,m,g))}}),r.value=function(m){return new Be(Object.assign({},m))}({state:o.value,parent:t.value,root:l.value.root});var h=function(m){var g=function(){return m.state.doc.toString()},v=Fa(m).run,b=Y2(m,[Be.editable.of(!1),dt.readOnly.of(!0)]),x=Y2(m,sc.of([tF])),C=Fa(m).run,k=Fa(m).run,M=Fa(m).run,_=Fa(m).run;return{focus:function(){return m.focus()},getDoc:g,setDoc:function(E){E!==g()&&m.dispatch({changes:{from:0,to:m.state.doc.length,insert:E}})},reExtensions:v,toggleDisabled:b,toggleIndentWithTab:x,setTabSize:function(E){C([dt.tabSize.of(E),Oc.of(" ".repeat(E))])},setPhrases:function(E){k([dt.phrases.of(E)])},setPlaceholder:function(E){M(cL(E))},setStyle:function(E){E===void 0&&(E={}),_(Be.theme({"&":Object.assign({},E)}))}}}(r.value);u.watch(function(){return n.modelValue},function(m){m!==h.getDoc()&&h.setDoc(m)}),u.watch(function(){return n.extensions},function(m){return h.reExtensions(m||[])},{immediate:!0}),u.watch(function(){return l.value.disabled},function(m){return h.toggleDisabled(m)},{immediate:!0}),u.watch(function(){return l.value.indentWithTab},function(m){return h.toggleIndentWithTab(m)},{immediate:!0}),u.watch(function(){return l.value.tabSize},function(m){return h.setTabSize(m)},{immediate:!0}),u.watch(function(){return l.value.phrases},function(m){return h.setPhrases(m||{})},{immediate:!0}),u.watch(function(){return l.value.placeholder},function(m){return h.setPlaceholder(m)},{immediate:!0}),u.watch(function(){return l.value.style},function(m){return h.setStyle(m)},{immediate:!0}),l.value.autofocus&&h.focus(),e.emit(Fn.Ready,{state:o.value,view:r.value,container:t.value})}),u.onBeforeUnmount(function(){l.value.autoDestroy&&r.value&&function(d){d.destroy()}(r.value)}),function(){return u.h("div",{class:"v-codemirror",style:{display:"contents"},ref:t})}}}),wf=Z9;class Sf{constructor(e,t,o,r,s,l,d,h,m,g=0,v){this.p=e,this.stack=t,this.state=o,this.reducePos=r,this.pos=s,this.score=l,this.buffer=d,this.bufferBase=h,this.curContext=m,this.lookAhead=g,this.parent=v}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,o=0){let r=e.parser.context;return new Sf(e,[],t,o,o,0,[],0,r?new K2(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let o=e>>19,r=e&65535,{parser:s}=this.p,l=this.reducePos<this.pos-25;l&&this.setLookAhead(this.pos);let d=s.dynamicPrecedence(r);if(d&&(this.score+=d),o==0){this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,l?8:4,!0),this.reduceContext(r,this.reducePos);return}let h=this.stack.length-(o-1)*3-(e&262144?6:0),m=h?this.stack[h-2]:this.p.ranges[0].from,g=this.reducePos-m;g>=2e3&&!(!((t=this.p.parser.nodeSet.types[r])===null||t===void 0)&&t.isAnonymous)&&(m==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=g):this.p.lastBigReductionSize<g&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=m,this.p.lastBigReductionSize=g));let v=h?this.stack[h-1]:0,b=this.bufferBase+this.buffer.length-v;if(r<s.minRepeatTerm||e&131072){let x=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,m,x,b+4,!0)}if(e&262144)this.state=this.stack[h];else{let x=this.stack[h-3];this.state=s.getGoto(x,r,!0)}for(;this.stack.length>h;)this.stack.pop();this.reduceContext(r,m)}storeNode(e,t,o,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let l=this,d=this.buffer.length;if(d==0&&l.parent&&(d=l.bufferBase-l.parent.bufferBase,l=l.parent),d>0&&l.buffer[d-4]==0&&l.buffer[d-1]>-1){if(t==o)return;if(l.buffer[d-2]>=t){l.buffer[d-2]=o;return}}}if(!s||this.pos==o)this.buffer.push(e,t,o,r);else{let l=this.buffer.length;if(l>0&&this.buffer[l-4]!=0){let d=!1;for(let h=l;h>0&&this.buffer[h-2]>o;h-=4)if(this.buffer[h-1]>=0){d=!0;break}if(d)for(;l>0&&this.buffer[l-2]>o;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4)}this.buffer[l]=e,this.buffer[l+1]=t,this.buffer[l+2]=o,this.buffer[l+3]=r}}shift(e,t,o,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,o),t<=this.p.parser.maxNode&&this.buffer.push(t,o,r,4);else{let s=e,{parser:l}=this.p;(r>this.pos||t<=l.maxNode)&&(this.pos=r,l.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,o),this.shiftContext(t,o),t<=l.maxNode&&this.buffer.push(t,o,r,4)}}apply(e,t,o,r){e&65536?this.reduce(e):this.shift(e,t,o,r)}useNode(e,t){let o=this.p.reused.length-1;(o<0||this.p.reused[o]!=e)&&(this.p.reused.push(e),o++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(o,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let o=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new Sf(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,o,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let o=e<=this.p.parser.maxNode;o&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,o?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new z9(this);;){let o=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(o==0)return!1;if(!(o&65536))return!0;t.reduce(o)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let s=0,l;s<t.length;s+=2)(l=t[s+1])!=this.state&&this.p.parser.hasAction(l,e)&&r.push(t[s],l);if(this.stack.length<120)for(let s=0;r.length<8&&s<t.length;s+=2){let l=t[s+1];r.some((d,h)=>h&1&&d==l)||r.push(t[s],l)}t=r}let o=[];for(let r=0;r<t.length&&o.length<4;r+=2){let s=t[r+1];if(s==this.state)continue;let l=this.split();l.pushState(s,this.pos),l.storeNode(0,l.pos,l.pos,4,!0),l.shiftContext(t[r],this.pos),l.reducePos=this.pos,l.score-=200,o.push(l)}return o}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let o=t>>19,r=t&65535,s=this.stack.length-o*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let l=this.findForcedReduction();if(l==null)return!1;t=l}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],o=(r,s)=>{if(!t.includes(r))return t.push(r),e.allActions(r,l=>{if(!(l&393216))if(l&65536){let d=(l>>19)-s;if(d>1){let h=l&65535,m=this.stack.length-d*3;if(m>=0&&e.getGoto(this.stack[m],h,!1)>=0)return d<<19|65536|h}}else{let d=o(l,s+1);if(d!=null)return d}})};return o(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new K2(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class K2{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class z9{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,o=e>>19;o==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(o-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class Cf{constructor(e,t,o){this.stack=e,this.pos=t,this.index=o,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Cf(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Cf(this.stack,this.pos,this.index)}}function Nc(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let o=0,r=0;o<n.length;){let s=0;for(;;){let l=n.charCodeAt(o++),d=!1;if(l==126){s=65535;break}l>=92&&l--,l>=34&&l--;let h=l-32;if(h>=46&&(h-=46,d=!0),s+=h,d)break;s*=46}t?t[r++]=s:t=new e(s)}return t}class kf{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const J2=new kf;class W9{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=J2,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let o=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<o.from;){if(!r)return null;let l=this.ranges[--r];s-=o.from-l.to,o=l}for(;t<0?s>o.to:s>=o.to;){if(r==this.ranges.length-1)return null;let l=this.ranges[++r];s+=l.from-o.to,o=l}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,o,r;if(t>=0&&t<this.chunk.length)o=this.pos+e,r=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(o=s,o>=this.chunk2Pos&&o<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(o-this.chunk2Pos);else{let l=this.rangeIndex,d=this.range;for(;d.to<=o;)d=this.ranges[++l];this.chunk2=this.input.chunk(this.chunk2Pos=o),o+this.chunk2.length>d.to&&(this.chunk2=this.chunk2.slice(0,d.to-o)),r=this.chunk2.charCodeAt(0)}}return o>=this.token.lookAhead&&(this.token.lookAhead=o+1),r}acceptToken(e,t=0){let o=t?this.resolveOffset(t,-1):this.pos;if(o==null||o<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=o}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=J2,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let o="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(o+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return o}}class Za{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:o}=t.p;$2(this.data,e,t,this.id,o.data,o.tokenPrecTable)}}Za.prototype.contextual=Za.prototype.fallback=Za.prototype.extend=!1;class xO{constructor(e,t,o){this.precTable=t,this.elseToken=o,this.data=typeof e=="string"?Nc(e):e}token(e,t){let o=e.pos,r=0;for(;;){let s=e.next<0,l=e.resolveOffset(1,1);if($2(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,l==null)break;e.reset(l,e.token)}r&&(e.reset(o,e.token),e.acceptToken(this.elseToken,r))}}xO.prototype.contextual=Za.prototype.fallback=Za.prototype.extend=!1;class Pf{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function $2(n,e,t,o,r,s){let l=0,d=1<<o,{dialect:h}=t.p.parser;e:for(;d&n[l];){let m=n[l+1];for(let x=l+3;x<m;x+=2)if((n[x+1]&d)>0){let C=n[x];if(h.allows(C)&&(e.token.value==-1||e.token.value==C||U9(C,e.token.value,r,s))){e.acceptToken(C);break}}let g=e.next,v=0,b=n[l+2];if(e.next<0&&b>v&&n[m+b*3-3]==65535){l=n[m+b*3-1];continue e}for(;v<b;){let x=v+b>>1,C=m+x+(x<<1),k=n[C],M=n[C+1]||65536;if(g<k)b=x;else if(g>=M)v=x+1;else{l=n[C+2],e.advance();continue e}}break}}function q2(n,e,t){for(let o=e,r;(r=n[o])!=65535;o++)if(r==t)return o-e;return-1}function U9(n,e,t,o){let r=q2(t,o,e);return r<0||q2(t,o,n)<r}const Oo=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let wO=null;function eP(n,e,t){let o=n.cursor(sn.IncludeAnonymous);for(o.moveTo(e);;)if(!(t<0?o.childBefore(e):o.childAfter(e)))for(;;){if((t<0?o.to<e:o.from>e)&&!o.type.isError)return t<0?Math.max(0,Math.min(o.to-1,e-25)):Math.min(n.length,Math.max(o.from+1,e+25));if(t<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return t<0?0:n.length}}class H9{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?eP(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?eP(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let o=this.trees[t],r=this.index[t];if(r==o.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=o.children[r],l=this.start[t]+o.positions[r];if(l>e)return this.nextStart=l,null;if(s instanceof qt){if(l==e){if(l<this.safeFrom)return null;let d=l+s.length;if(d<=this.safeTo){let h=s.prop(ct.lookAhead);if(!h||d+h<this.fragment.to)return s}}this.index[t]++,l+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(l),this.index.push(0))}else this.index[t]++,this.nextStart=l+s.length}}}class X9{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(o=>new kf)}getActions(e){let t=0,o=null,{parser:r}=e.p,{tokenizers:s}=r,l=r.stateSlot(e.state,3),d=e.curContext?e.curContext.hash:0,h=0;for(let m=0;m<s.length;m++){if(!(1<<m&l))continue;let g=s[m],v=this.tokens[m];if(!(o&&!g.fallback)&&((g.contextual||v.start!=e.pos||v.mask!=l||v.context!=d)&&(this.updateCachedToken(v,g,e),v.mask=l,v.context=d),v.lookAhead>v.end+25&&(h=Math.max(v.lookAhead,h)),v.value!=0)){let b=t;if(v.extended>-1&&(t=this.addActions(e,v.extended,v.end,t)),t=this.addActions(e,v.value,v.end,t),!g.extend&&(o=v,t>b))break}}for(;this.actions.length>t;)this.actions.pop();return h&&e.setLookAhead(h),!o&&e.pos==this.stream.end&&(o=new kf,o.value=e.p.parser.eofTerm,o.start=o.end=e.pos,t=this.addActions(e,o.value,o.end,t)),this.mainToken=o,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new kf,{pos:o,p:r}=e;return t.start=o,t.end=Math.min(o+1,r.stream.end),t.value=o==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,o){let r=this.stream.clipPos(o.pos);if(t.token(this.stream.reset(r,e),o),e.value>-1){let{parser:s}=o.p;for(let l=0;l<s.specialized.length;l++)if(s.specialized[l]==e.value){let d=s.specializers[l](this.stream.read(e.start,e.end),o);if(d>=0&&o.p.parser.dialect.allows(d>>1)){d&1?e.extended=d>>1:e.value=d>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,o,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=o,r}addActions(e,t,o,r){let{state:s}=e,{parser:l}=e.p,{data:d}=l;for(let h=0;h<2;h++)for(let m=l.stateSlot(s,h?2:1);;m+=3){if(d[m]==65535)if(d[m+1]==1)m=Bi(d,m+2);else{r==0&&d[m+1]==2&&(r=this.putAction(Bi(d,m+2),t,o,r));break}d[m]==t&&(r=this.putAction(Bi(d,m+1),t,o,r))}return r}}class Y9{constructor(e,t,o,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new W9(t,r),this.tokens=new X9(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[Sf.start(this,e.top[0],s)],this.fragments=o.length&&this.stream.end-s>e.bufferLength*4?new H9(o,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,o=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[l]=e;for(;l.forceReduce()&&l.stack.length&&l.stack[l.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let l=0;l<e.length;l++){let d=e[l];for(;;){if(this.tokens.mainToken=null,d.pos>t)o.push(d);else{if(this.advanceStack(d,o,e))continue;{r||(r=[],s=[]),r.push(d);let h=this.tokens.getMainToken(d);s.push(h.value,h.end)}}break}}if(!o.length){let l=r&&J9(r);if(l)return Oo&&console.log("Finish with "+this.stackID(l)),this.stackToTree(l);if(this.parser.strict)throw Oo&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&r){let l=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,o);if(l)return Oo&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){let l=this.recovering==1?1:this.recovering*3;if(o.length>l)for(o.sort((d,h)=>h.score-d.score);o.length>l;)o.pop();o.some(d=>d.reducePos>t)&&this.recovering--}else if(o.length>1){e:for(let l=0;l<o.length-1;l++){let d=o[l];for(let h=l+1;h<o.length;h++){let m=o[h];if(d.sameState(m)||d.buffer.length>500&&m.buffer.length>500)if((d.score-m.score||d.buffer.length-m.buffer.length)>0)o.splice(h--,1);else{o.splice(l--,1);continue e}}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(let l=1;l<o.length;l++)o[l].pos<this.minStackPos&&(this.minStackPos=o[l].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,o){let r=e.pos,{parser:s}=this,l=Oo?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let m=e.curContext&&e.curContext.tracker.strict,g=m?e.curContext.hash:0;for(let v=this.fragments.nodeAt(r);v;){let b=this.parser.nodeSet.types[v.type.id]==v.type?s.getGoto(e.state,v.type.id):-1;if(b>-1&&v.length&&(!m||(v.prop(ct.contextHash)||0)==g))return e.useNode(v,b),Oo&&console.log(l+this.stackID(e)+` (via reuse of ${s.getName(v.type.id)})`),!0;if(!(v instanceof qt)||v.children.length==0||v.positions[0]>0)break;let x=v.children[0];if(x instanceof qt&&v.positions[0]==0)v=x;else break}}let d=s.stateSlot(e.state,4);if(d>0)return e.reduce(d),Oo&&console.log(l+this.stackID(e)+` (via always-reduce ${s.getName(d&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let h=this.tokens.getActions(e);for(let m=0;m<h.length;){let g=h[m++],v=h[m++],b=h[m++],x=m==h.length||!o,C=x?e:e.split(),k=this.tokens.mainToken;if(C.apply(g,v,k?k.start:C.pos,b),Oo&&console.log(l+this.stackID(C)+` (via ${g&65536?`reduce of ${s.getName(g&65535)}`:"shift"} for ${s.getName(v)} @ ${r}${C==e?"":", split"})`),x)return!0;C.pos>r?t.push(C):o.push(C)}return!1}advanceFully(e,t){let o=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>o)return tP(e,t),!0}}runRecovery(e,t,o){let r=null,s=!1;for(let l=0;l<e.length;l++){let d=e[l],h=t[l<<1],m=t[(l<<1)+1],g=Oo?this.stackID(d)+" -> ":"";if(d.deadEnd&&(s||(s=!0,d.restart(),Oo&&console.log(g+this.stackID(d)+" (restarted)"),this.advanceFully(d,o))))continue;let v=d.split(),b=g;for(let x=0;v.forceReduce()&&x<10&&(Oo&&console.log(b+this.stackID(v)+" (via force-reduce)"),!this.advanceFully(v,o));x++)Oo&&(b=this.stackID(v)+" -> ");for(let x of d.recoverByInsert(h))Oo&&console.log(g+this.stackID(x)+" (via recover-insert)"),this.advanceFully(x,o);this.stream.end>d.pos?(m==d.pos&&(m++,h=0),d.recoverByDelete(h,m),Oo&&console.log(g+this.stackID(d)+` (via recover-delete ${this.parser.getName(h)})`),tP(d,o)):(!r||r.score<d.score)&&(r=d)}return r}stackToTree(e){return e.close(),qt.build({buffer:Cf.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(wO||(wO=new WeakMap)).get(e);return t||wO.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function tP(n,e){for(let t=0;t<e.length;t++){let o=e[t];if(o.pos==n.pos&&o.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class G9{constructor(e,t,o){this.source=e,this.flags=t,this.disabled=o}allows(e){return!this.disabled||this.disabled[e]==0}}const SO=n=>n;class K9{constructor(e){this.start=e.start,this.shift=e.shift||SO,this.reduce=e.reduce||SO,this.reuse=e.reuse||SO,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ef extends UC{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let d=0;d<e.repeatNodeCount;d++)t.push("");let o=Object.keys(e.topRules).map(d=>e.topRules[d][1]),r=[];for(let d=0;d<t.length;d++)r.push([]);function s(d,h,m){r[d].push([h,h.deserialize(String(m))])}if(e.nodeProps)for(let d of e.nodeProps){let h=d[0];typeof h=="string"&&(h=ct[h]);for(let m=1;m<d.length;){let g=d[m++];if(g>=0)s(g,h,d[m++]);else{let v=d[m+-g];for(let b=-g;b>0;b--)s(d[m++],h,v);m++}}}this.nodeSet=new Ng(t.map((d,h)=>Jn.define({name:h>=this.minRepeatTerm?void 0:d,id:h,props:r[h],top:o.indexOf(h)>-1,error:h==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(h)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=VC;let l=Nc(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let d=0;d<this.specializerSpecs.length;d++)this.specialized[d]=this.specializerSpecs[d].term;this.specializers=this.specializerSpecs.map(nP),this.states=Nc(e.states,Uint32Array),this.data=Nc(e.stateData),this.goto=Nc(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(d=>typeof d=="number"?new Za(l,d):d),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,o){let r=new Y9(this,e,t,o);for(let s of this.wrappers)r=s(r,e,t,o);return r}getGoto(e,t,o=!1){let r=this.goto;if(t>=r[0])return-1;for(let s=r[t+1];;){let l=r[s++],d=l&1,h=r[s++];if(d&&o)return h;for(let m=s+(l>>1);s<m;s++)if(r[s]==e)return h;if(d)return-1}}hasAction(e,t){let o=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),l;;s+=3){if((l=o[s])==65535)if(o[s+1]==1)l=o[s=Bi(o,s+2)];else{if(o[s+1]==2)return Bi(o,s+2);break}if(l==t||l==0)return Bi(o,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,o=>o==t?!0:null)}allActions(e,t){let o=this.stateSlot(e,4),r=o?t(o):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=Bi(this.data,s+2);else break;r=t(Bi(this.data,s+1))}return r}nextStates(e){let t=[];for(let o=this.stateSlot(e,1);;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=Bi(this.data,o+2);else break;if(!(this.data[o+2]&1)){let r=this.data[o+1];t.some((s,l)=>l&1&&s==r)||t.push(this.data[o],r)}}return t}configure(e){let t=Object.assign(Object.create(Ef.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let o=this.topRules[e.top];if(!o)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=o}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(o=>{let r=e.tokenizers.find(s=>s.from==o);return r?r.to:o})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((o,r)=>{let s=e.specializers.find(d=>d.from==o.external);if(!s)return o;let l=Object.assign(Object.assign({},o),{external:s.to});return t.specializers[r]=nP(l),l})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),o=t.map(()=>!1);if(e)for(let s of e.split(" ")){let l=t.indexOf(s);l>=0&&(o[l]=!0)}let r=null;for(let s=0;s<t.length;s++)if(!o[s])for(let l=this.dialects[t[s]],d;(d=this.data[l++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[d]=1;return new G9(e,o,r)}static deserialize(e){return new Ef(e)}}function Bi(n,e){return n[e]|n[e+1]<<16}function J9(n){let e=null;for(let t of n){let o=t.p.stoppedAt;(t.pos==t.p.stream.end||o!=null&&t.pos>o)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function nP(n){if(n.external){let e=n.extend?1:0;return(t,o)=>n.external(t,o)<<1|e}return n.get}const $9=312,oP=1,q9=2,eZ=3,tZ=4,nZ=313,oZ=315,iZ=316,rZ=5,sZ=6,aZ=0,CO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],iP=125,lZ=59,kO=47,cZ=42,uZ=43,dZ=45,fZ=60,hZ=44,pZ=63,mZ=46,gZ=new K9({start:!1,shift(n,e){return e==rZ||e==sZ||e==oZ?n:e==iZ},strict:!1}),OZ=new Pf((n,e)=>{let{next:t}=n;(t==iP||t==-1||e.context)&&n.acceptToken(nZ)},{contextual:!0,fallback:!0}),vZ=new Pf((n,e)=>{let{next:t}=n,o;CO.indexOf(t)>-1||t==kO&&((o=n.peek(1))==kO||o==cZ)||t!=iP&&t!=lZ&&t!=-1&&!e.context&&n.acceptToken($9)},{contextual:!0}),yZ=new Pf((n,e)=>{let{next:t}=n;if(t==uZ||t==dZ){if(n.advance(),t==n.next){n.advance();let o=!e.context&&e.canShift(oP);n.acceptToken(o?oP:q9)}}else t==pZ&&n.peek(1)==mZ&&(n.advance(),n.advance(),(n.next<48||n.next>57)&&n.acceptToken(eZ))},{contextual:!0});function PO(n,e){return n>=65&&n<=90||n>=97&&n<=122||n==95||n>=192||!e&&n>=48&&n<=57}const bZ=new Pf((n,e)=>{if(n.next!=fZ||!e.dialectEnabled(aZ)||(n.advance(),n.next==kO))return;let t=0;for(;CO.indexOf(n.next)>-1;)n.advance(),t++;if(PO(n.next,!0)){for(n.advance(),t++;PO(n.next,!1);)n.advance(),t++;for(;CO.indexOf(n.next)>-1;)n.advance(),t++;if(n.next==hZ)return;for(let o=0;;o++){if(o==7){if(!PO(n.next,!0))return;break}if(n.next!="extends".charCodeAt(o))break;n.advance(),t++}}n.acceptToken(tZ,-t)}),xZ=HC({"get set async static":de.modifier,"for while do if else switch try catch finally return throw break continue default case":de.controlKeyword,"in of await yield void typeof delete instanceof":de.operatorKeyword,"let var const using function class extends":de.definitionKeyword,"import export from":de.moduleKeyword,"with debugger as new":de.keyword,TemplateString:de.special(de.string),super:de.atom,BooleanLiteral:de.bool,this:de.self,null:de.null,Star:de.modifier,VariableName:de.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":de.function(de.variableName),VariableDefinition:de.definition(de.variableName),Label:de.labelName,PropertyName:de.propertyName,PrivatePropertyName:de.special(de.propertyName),"CallExpression/MemberExpression/PropertyName":de.function(de.propertyName),"FunctionDeclaration/VariableDefinition":de.function(de.definition(de.variableName)),"ClassDeclaration/VariableDefinition":de.definition(de.className),PropertyDefinition:de.definition(de.propertyName),PrivatePropertyDefinition:de.definition(de.special(de.propertyName)),UpdateOp:de.updateOperator,"LineComment Hashbang":de.lineComment,BlockComment:de.blockComment,Number:de.number,String:de.string,Escape:de.escape,ArithOp:de.arithmeticOperator,LogicOp:de.logicOperator,BitOp:de.bitwiseOperator,CompareOp:de.compareOperator,RegExp:de.regexp,Equals:de.definitionOperator,Arrow:de.function(de.punctuation),": Spread":de.punctuation,"( )":de.paren,"[ ]":de.squareBracket,"{ }":de.brace,"InterpolationStart InterpolationEnd":de.special(de.brace),".":de.derefOperator,", ;":de.separator,"@":de.meta,TypeName:de.typeName,TypeDefinition:de.definition(de.typeName),"type enum interface implements namespace module declare":de.definitionKeyword,"abstract global Privacy readonly override":de.modifier,"is keyof unique infer":de.operatorKeyword,JSXAttributeValue:de.attributeValue,JSXText:de.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":de.angleBracket,"JSXIdentifier JSXNameSpacedName":de.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":de.attributeName,"JSXBuiltin/JSXIdentifier":de.standard(de.tagName)}),wZ={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},SZ={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},CZ={__proto__:null,"<":187},kZ=Ef.deserialize({version:14,states:"$BUQ%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOQ`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UOFkQMnO'#D`OOOO'#I_'#I_OFrO!0LbO,59xOOQ?Mr,59x,59xOGQQ^O'#I`OGeQWO'#JoOIdQrO'#JoO+}Q^O'#JoOIkQWO,5:OOJRQWO'#EmOJ`QWO'#KOOJkQWO'#J}OJkQWO'#J}OJsQWO,5;ZOJxQWO'#J|OOQ?Mv,5:Z,5:ZOKPQ^O,5:ZOL}Q?NdO,5:cOMnQWO,5:kONXQ?MxO'#J{ON`QWO'#JzO9WQWO'#JzONtQWO'#JzON|QWO,5;YO! RQWO'#JzO!#WQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#vQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$^QWO,5=[O!$cQ^O,5;WO!&fQ7[O'#EhO!(PQWO,5;WO!(UQ^O'#DvO!(`Q`O,5;aO!(hQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(vQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*yQ?MxO,5<gO%[Q^O,5;bO!&fQ7[O,5;bO!+hQ7[O,5;bO!-YQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-aQ&jO'#FiO!.^Q&jO'#KSO!-xQ&jO'#KSO!.eQ&jO'#KSOOQO'#KS'#KSO!.yQ&jO,5<ROOOS,5<_,5<_O!/[Q^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/cQ&jO'#FwOOQ?Mr,5<P,5<PO!0SQ!LQO'#CvOOQ?Mr'#Cz'#CzO!0gO!0LbO'#DOO!1TQ7[O,5<dO!1[QWO,5<fO!2wQ$ISO'#GVO!3UQWO'#GWO!3ZQWO'#GWO!4yQ$ISO'#G[O!5uQ`O'#G`OOQO'#Gk'#GkO!+oQ7[O'#GjOOQO'#Gm'#GmO!+oQ7[O'#GlO!6hQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6rQWO'#JfO!7QQWO'#JeO!7YQWO'#CuOOQ?Mr'#Cx'#CxO!7bQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+oQ7[O'#F}O!+oQ7[O'#GPO!7gQWO'#GRO!7lQWO'#GSO!3ZQWO'#GYO!+oQ7[O'#G_O!7qQWO'#EnO!8`QWO,5<eOOQ?Mp'#Cr'#CrO!8hQWO'#EoO!9bQ`O'#EpOOQ?Mp'#J|'#J|O!9iQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;hQ?NdO,5:_O!9]Q`O,5:]O!>RQ?NdO,5:gO%[Q^O,5:gO!@iQ?NdO,5:iOOQO,5@v,5@vO!AYQ7[O,5=[O!AhQ?MxO'#JdO9RQWO'#JdO!AyQ?MxO,59ZO!BUQ`O,59ZO!B^Q7[O,59ZO:VQ7[O,59ZO!BiQWO,5;WO!BqQWO'#H^O!CVQWO'#K`O%[Q^O,5;|O!9]Q`O,5<OO!C_QWO,5=wO!CdQWO,5=wO!CiQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CwQ`O,5=dO!DPQ7[O,5=eO!D[QWO,5=gO!DaQpO,5=jO!DiQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DnQWO'#HVO:VQ7[O'#HXO!DsQWO'#HXOOQU,5=m,5=mO!DxQWO'#HYO!EZQWO'#CoO!E`QWO,59PO!EjQWO,59PO!GoQ^O,59POOQU,59P,59PO!HPQ?MxO,59PO%[Q^O,59PO!J[Q^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JrQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JwQWO,5>TO`Q^O,5>VO!J|QWO,5>YO!KRQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# ]QWO,5>jOOQU,5>l,5>lO# ]QWO,5>lOOQU,5>n,5>nO# yQ`O'#D[O%[Q^O'#JqO#!TQ`O'#JqO#!rQ`O'#DjO##TQ`O'#DjO#%fQ^O'#DjO#%mQWO'#JpO#%uQWO,5:TO#%zQWO'#EqO#&YQWO'#KPO#&bQWO,5;[O#&gQ`O'#DjO#&tQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&{QWO,5:lO>tQWO,5;VO!BUQ`O,5;VO!B^Q7[O,5;VO:VQ7[O,5;VO#'TQWO,5@]O#'YQ(CYO,5:pOOQO-E<b-E<bO#(`Q?NQO,5;OOCrQ`O,5:oO#(jQ`O,5:oOCrQ`O,5;OO!AyQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(wQ?MxO,5;OO#)SQ?MxO,5;OO!BUQ`O,5:oOOQO,5;U,5;UO#)bQ?MxO,5;OPOOO'#IY'#IYP#)vO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZOOOO,59z,59zO#*RQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*WQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*bQ^O'#I`OOQO-E<^-E<^O#*oQWO,5@ZO#*wQrO,5@ZO#+OQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+WQWO'#IfOOQO-E<d-E<dO#+OQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+lQ?MxO,5@gO#+}Q?MxO,5@gO#,UQWO,5@fO9WQWO,5@fO#,^QWO,5@fO#,lQWO'#IiO#,UQWO,5@fOOQ?Mp1G0t1G0tO!(`Q`O,5:rO!(kQ`O,5:rOOQQ,5:t,5:tO#-^QYO,5:tO#-fQ7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-tQ?NdO1G0rO#.yQ?NbO,5;SOOQ?Mr'#GU'#GUO#/gQ?NdO'#JgO!$cQ^O1G0rO#1oQrO'#JrO%[Q^O'#JrO#1yQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#2OQWO1G0{O#4dQ?NdO1G0|O#4kQ?NdO1G0|O#7RQ?NdO1G0|O#7YQ?NdO1G0|O#9pQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#<fQ?NdO1G0|O#>|Q?NdO1G0|O#?TQ?NdO1G0|O#AbQ07bO'#CiO#C]Q07bO1G1_O#CdQ07bO'#JnO#CwQ?NdO,5?WOOQ?Mp-E<j-E<jO#FUQ?NdO1G0|O#GRQ?NdO1G0|OOQ?Mr1G0|1G0|O#HRQ7[O'#JwO#H]QWO,5:uO#HbQ?NdO1G1bO#IUQ&jO,5<VO#I^Q&jO,5<WO#IfQ&jO'#FnO#I}QWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#JSQ&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#JeQ07bO'#JmO#JoQWO,5<aO!(vQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JtQ`O'#KSOOQ?Mr,5<c,5<cO#J|Q`O,5<cO#KRQ7[O'#DQOOOO'#I^'#I^O#KYO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7lQWO'#InO#KeQ7[O,5<xOOQ?Mr,5<u,5<uO!+oQ7[O'#IqO#LTQ7[O,5=UO!+oQ7[O'#IsO#LvQ7[O,5=WO!&fQ7[O,5=YOOQO1G2Q1G2QO#MQQpO'#CrO#MeQ$ISO'#EoO#NdQ`O'#G`O$ QQpO,5<qO$ XQWO'#KWO9WQWO'#KWO$ gQWO,5<sO!+oQ7[O,5<rO$ lQWO'#GXO$ }QWO,5<rO$!SQpO'#GUO$!aQpO'#KXO$!kQWO'#KXO!&fQ7[O'#KXO$!pQWO,5<vO$!uQ`O'#GaO!5pQ`O'#GaO$#WQWO'#GcO$#]QWO'#GeO!3ZQWO'#GhO$#bQ?MxO'#IpO$#mQ`O,5<zOOQ?Mv,5<z,5<zO$#tQ`O'#GaO$$SQ`O'#GbO$$[Q`O'#GbO$$aQ7[O,5=UO$$qQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+oQ7[O,5@QO!+oQ7[O,5@QO$%RQWO'#IuO$%^QWO,5@PO$%fQWO,59aOOQ?Mr,59f,59fO$&YQ!LSO,59rOOQ?Mr'#Jk'#JkO$&{Q7[O,5<iO$'nQ7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'xQWO,5<tO$'}Q7[O,5<yO$(_QWO'#JzO!$cQ^O1G2PO$(dQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(iQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*kQ?NdO1G0ROOQU1G2v1G2vO!&fQ7[O1G2vO%[Q^O1G2vO#-iQWO1G2vO$,oQ7[O'#EhOOQ?Mp,5@O,5@OO$,yQ?MxO,5@OOOQU1G.u1G.uO!AyQ?MxO1G.uO!BUQ`O1G.uO!B^Q7[O1G.uO$-[QWO1G0rO$-aQWO'#CiO$-lQWO'#KaO$-tQWO,5=xO$-yQWO'#KaO$.OQWO'#KaO$.^QWO'#I}O$.lQWO,5@zO$.tQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.{QWO1G3cO$/QQWO1G3cOOQU1G3c1G3cO!D[QWO1G3RO!&fQ7[O1G3OO$/VQWO1G3OOOQU1G3P1G3PO!&fQ7[O1G3PO$/[QWO1G3PO$/dQ`O'#G}OOQU1G3R1G3RO!5pQ`O'#IyO!DaQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/lQ7[O,5=qO9^QWO,5=qO$#]QWO,5=sO9RQWO,5=sO!BUQ`O,5=sO!B^Q7[O,5=sO:VQ7[O,5=sO$/zQWO'#K_O$0VQWO,5=tOOQU1G.k1G.kO$0[Q?MxO1G.kO@fQWO1G.kO$0gQWO1G.kO9hQ?MxO1G.kO$2oQrO,5@|O$2|QWO,5@|O9WQWO,5@|O$3XQ^O,5={O$3`QWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3eQ^O1G3qO$7iQ^O'#HpOOQU1G3t1G3tO$7vQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$8OQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$<VQWO,5@]O!(vQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(vQ^O,5:UO!BUQ`O,5:UO$<[Q07bO,5:UOOQO,5;],5;]O$<fQ`O'#IaO$<|QWO,5@[OOQ?Mr1G/o1G/oO$=UQ`O'#IgO$=`QWO,5@kOOQ?Mp1G0v1G0vO##TQ`O,5:UOOQO'#Ic'#IcO$=hQ`O,5:nOOQ?Mv,5:n,5:nO#'OQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!BUQ`O1G0qO!B^Q7[O1G0qOOQ?Mp1G5w1G5wO!AyQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=oQ?MxO1G0jO$=zQ?MxO1G0jO!BUQ`O1G0ZOCrQ`O1G0ZO$>YQ?MxO1G0jOOQO1G0Z1G0ZO$>nQ?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>xQpO,5<gO$?QQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$?[QWO1G5uO$?dQWO1G6TO$?lQrO1G6UO9WQWO,5?QO$?vQ?NdO1G6RO%[Q^O1G6RO$@WQ?MxO1G6RO$@iQWO1G6QO$@iQWO1G6QO9WQWO1G6QO$@qQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$AVQWO,5?TO$(_QWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-aQWO1G0`OOQU7+(b7+(bO!&fQ7[O7+(bO%[Q^O7+(bO$AeQWO7+(bO$ApQ7[O7+(bO$BOQ?NdO,5=UO$DWQ?NdO,5=WO$F`Q?NdO,5=UO$HnQ?NdO,5=WO$J|Q?NdO,59rO$MRQ?NdO,5<iO% ZQ?NdO,5<kO%#cQ?NdO,5<yOOQ?Mr7+&^7+&^O%%qQ?NdO7+&^O%&eQ^O'#IbO%&rQWO,5@^O%&zQrO,5@^OOQ?Mr1G/|1G/|O%'UQWO7+&gOOQ?Mr7+&g7+&gO%'ZQ07bO,5:cO%[Q^O7+&yO%'eQ07bO,5:_O%'rQ07bO,5:gO%'|Q07bO,5:iO%(WQ7[O'#IeO%(bQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%(jQtO,5<YO!(vQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(uQWO1G1{OOQ?Mr1G1}1G1}OOOO,59l,59lO%(zQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%)RQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)uQpO,5?YOOQ?Mr1G2d1G2dP!&fQ7[O'#InPOQ?Mr-E<l-E<lO%*eQ7[O,5?]OOQ?Mr-E<o-E<oO%+WQ7[O,5?_OOQ?Mr-E<q-E<qO%+bQpO1G2tO%+iQpO'#CrO%,PQ7[O'#J}O%,WQ^O'#EqOOQ?Mr1G2]1G2]O%,bQWO'#ImO%,vQWO,5@rO%,vQWO,5@rO%-OQWO,5@rO%-ZQWO,5@rOOQO1G2_1G2_O%-iQ7[O1G2^O!+oQ7[O1G2^O%-yQ$ISO'#IoO%.WQWO,5@sO!&fQ7[O,5@sO%.`QpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(_QWO,5<|OCcQWO,5<|O!BUQ`O,5<{OOQO'#Gd'#GdO%.jQWO,5<}OOQ?Mp,5=P,5=PO$(_QWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5pQ`O,5<{O%.rQWO,5<|O$#WQWO,5<}O%.}Q`O,5<|O!+oQ7[O'#IqO%/nQ7[O1G2pO!+oQ7[O'#IsO%0aQ7[O1G2rO%0kQ7[O1G5lO%0uQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9]Q`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%1SQWO1G2XO!+oQ7[O1G2`O%1XQ?NdO7+'kOOQ?Mr7+'k7+'kO!$cQ^O7+'kO%1{QWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%2QQpO'#KYO#'OQWO7+(bO4UQrO7+(bO$AhQWO7+(bO%2[Q?NbO'#CiO%2oQ?NbO,5=QO%3aQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!AyQ?MxO7+$aO!BUQ`O7+$aO!$cQ^O7+&^O%3fQWO'#I|O%3}QWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3}QWO,5@{O%4VQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%4[QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4aQ?NbO7+(jO!&fQ7[O7+(jO%4kQpO7+(kOOQU7+(k7+(kO!&fQ7[O7+(kO%4rQWO'#K^O%4}QWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6aQ`O'#HWOOQU1G3]1G3]O!&fQ7[O1G3]O%[Q^O1G3]O%6hQWO1G3]O%6sQ7[O1G3]O9hQ?MxO1G3_O$#]QWO1G3_O9RQWO1G3_O!BUQ`O1G3_O!B^Q7[O1G3_O%7RQWO'#I{O%7gQWO,5@yO%7oQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7zQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%8PQ?MxO1G6hO%8ZQ^O1G3gO%8bQWO1G3gO%8gQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8nQ^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8{QWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%9QQ`O1G5wO%9fQ07bO1G0wO%9pQWO1G0wOOQO1G/p1G/pO%9{Q07bO1G/pO>tQWO1G/pO!(vQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!BUQ`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#'OQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!BUQ`O7+&]OOQO7+%u7+%uO$>nQ?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%:VQ?MxO7+&UO!AyQ?MxO7+%uO!BUQ`O7+%uO%:bQ?MxO7+&UO%:pQ?NdO7++mO%[Q^O7++mO%;QQWO7++lO%;QQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%;YQWO1G4oOOQQ7+%z7+%zO#'OQWO<<K|O4UQrO<<K|O%;hQWO<<K|OOQU<<K|<<K|O!&fQ7[O<<K|O%[Q^O<<K|O%;pQWO<<K|O%;{Q?NdO,5?]O%>TQ?NdO,5?_O%@]Q?NdO1G2^O%BkQ?NdO1G2pO%DsQ?NdO1G2rO%F{QrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%GVQWO1G5xOOQ?Mr<<JR<<JRO%G_Q07bO1G0rO%IfQ07bO1G0|O%ImQ07bO1G0|O%KnQ07bO1G0|O%KuQ07bO1G0|O%MvQ07bO1G0|O& wQ07bO1G0|O&!OQ07bO1G0|O&!VQ07bO1G0|O&$WQ07bO1G0|O&$_Q07bO1G0|O&$fQ?NdO<<JeO&&^Q07bO1G0|O&'ZQ07bO1G0|O&(ZQ07bO'#JgO&*^Q07bO1G1bO&*kQ07bO1G0RO&*uQ7[O,5?POOQO-E<c-E<cO!(vQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&+PQWO1G1sO&+UQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+oQ7[O7+(`O&-fQrO'#CiO&-pQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&.OQWO1G6^O&.OQWO1G6^O&.WQWO1G6^O&.cQ7[O7+'xO&.sQpO,5?ZO&.}QWO,5?ZO!&fQ7[O,5?ZOOQO-E<m-E<mO&/SQpO1G6_O&/^QWO1G6_OOQ?Mp1G2h1G2hO$(_QWO1G2hOOQ?Mp1G2g1G2gO&/fQWO1G2iO!&fQ7[O1G2iOOQ?Mp1G2n1G2nO!BUQ`O1G2gOCcQWO1G2hO&/kQWO1G2iO&/sQWO1G2hO$#WQWO1G2iO&0gQ7[O,5?]OOQ?Mr-E<p-E<pO&1YQ7[O,5?_OOQ?Mr-E<r-E<rO!+oQ7[O7++WOOQ?Mr1G/`1G/`O&1dQWO1G/`OOQ?Mr7+'s7+'sO&1iQ7[O7+'zO&1yQ?NdO<<KVOOQ?Mr<<KV<<KVO&2mQWO1G0wO!&fQ7[O'#IvO&2rQWO,5@tO&4tQrO<<K|O!&fQ7[O1G2lOOQU<<G{<<G{O!AyQ?MxO<<G{O&4{Q?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5oQWO,5?hO&5tQWO,5?hOOQO-E<z-E<zO&6SQWO1G6gO&6SQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&6[QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4aQ?NbO<<LUOOQU<<LV<<LVO%4kQpO<<LVO&6aQ`O'#IxO&6lQWO,5@xO!(vQ^O,5@xOOQU1G3T1G3TO%,WQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6tQ`O,5=rOOQU,5=r,5=rO&6{Q`O'#EdO&7aQ`O'#GcO&7fQWO7+(wO&7kQWO7+(wOOQU7+(w7+(wO!&fQ7[O7+(wO%[Q^O7+(wO&7sQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$#]QWO7+(yO9RQWO7+(yO!BUQ`O7+(yO&8OQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&8ZQWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8cQWO7+,SO&8hQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8mQWO7+)RO&8rQ^O7+)RO&8yQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&9OQWO,5>]OOQU,5>_,5>_O&9TQWO1G3|O9WQWO7+&cO!(vQ^O7+&cOOQO7+%[7+%[O&9YQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>nQ?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!AyQ?MxO<<IaO&9dQ?MxO<<IpO&9oQ?NdO<= XO&:PQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&:XQrOANAhO!&fQ7[OANAhO#'OQWOANAhO4UQrOANAhO&:`QWOANAhO%[Q^OANAhO&:hQ?NdO7+'xO&<vQ?NdO,5?]O&?OQ?NdO,5?_O&AWQ?NdO7+'zO&CfQrO1G4hO&CpQ07bO7+&^O&EqQ07bO,5=UO&GuQ07bO,5=WO&HVQ07bO,5=UO&HgQ07bO,5=WO&HwQ07bO,59rO&JzQ07bO,5<iO&LzQ07bO,5<kO' ]Q07bO,5<yO'#OQ07bO7+'jO'#]Q07bO7+'kO'#jQWO,5<[OOQO7+'_7+'_O'#oQ7[O<<KzOOQO1G4s1G4sO'#vQWO1G4sO'$RQWO1G4sO'$aQWO7++xO'$aQWO7++xO!&fQ7[O1G4uO'$iQpO1G4uO'$sQWO7++yOOQ?Mp7+(S7+(SO'${QWO7+(TO'%WQpO7+(TOOQ?Mp7+(R7+(RO$(_QWO7+(SO'%bQWO7+(TO!&fQ7[O7+(TOCcQWO7+(SO'%gQWO7+(TO'%oQ7[O<<NrOOQ?Mr7+$z7+$zO'%yQpO,5?bOOQO-E<t-E<tO'&TQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&eQWO1G5SO'&jQWO7+,RO'&jQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&rQWO,5?dOOQO-E<v-E<vO'&}Q07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%,WQ^O,5<}O''XQWO,5<}OOQU<<Lc<<LcO!&fQ7[O<<LcO&7fQWO<<LcO''^QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$#]QWO<<LeO9RQWO<<LeO''fQ`O1G5RO''qQWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''yQWO<= nO'(OQWO<= oOOQU<<Lm<<LmO'(TQWO<<LmO'(YQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(aQWO<<I}O'(lQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>nQ?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&fQ7[OG27SO#'OQWOG27SO'(vQrOG27SO4UQrOG27SO'(}QWOG27SO')VQ07bO<<JeO')dQ07bO1G2^O'+VQ07bO,5?]O'-VQ07bO,5?_O'/VQ07bO1G2pO'1VQ07bO1G2rO'3VQ07bO<<KVO'3dQ07bO<<IxOOQO1G1v1G1vO!+oQ7[OANAfOOQO7+*_7+*_O'3qQWO7+*_O'3|QWO<= dO'4UQpO7+*aOOQ?Mp<<Ko<<KoO$(_QWO<<KoOCcQWO<<KoO'4`QWO<<KoO!&fQ7[O<<KoOOQ?Mp<<Kn<<KnO'4kQpO<<KoO$(_QWO<<KnO'4uQWO<<KoO!&fQ7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4zQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(vQ^O1G5OO'5SQWO7+,OO&7fQWOANA}OOQUANA}ANA}O!&fQ7[OANA}O'5[QWOANA}OOQUANBPANBPO9hQ?MxOANBPO$#]QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5dQWOANBXOOQU<<MS<<MSO!(vQ^OAN?iOOQOG24vG24vO$>nQ?NdOG24vO#'OQWOLD,nOOQULD,nLD,nO!&fQ7[OLD,nO'5iQrOLD,nO'5pQ07bO7+'xO'7cQ07bO,5?]O'9cQ07bO,5?_O';cQ07bO7+'zO'=UQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(_QWOANAZOCcQWOANAZO'=fQpOANAZO'=mQWOANAZO!&fQ7[OANAZOOQ?MpANAYANAYO'=xQpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'>SQ07bO7+*jOOQUG27iG27iO&7fQWOG27iO!&fQ7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'>^Q07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#'OQWO!$(!YO!&fQ7[O!$(!YO'>hQ?NdOG27QOOQ?MpG26uG26uO$(_QWOG26uO'@vQWOG26uOCcQWOG26uO'ARQpOG26uO!&fQ7[OG26uOOQULD-TLD-TO&7fQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#'OQWO!)9EtOOQ?MpLD,aLD,aO$(_QWOLD,aOCcQWOLD,aO'AYQWOLD,aO'AeQpOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'AlQ07bOG27QOOQ?Mp!$( {!$( {O$(_QWO!$( {OCcQWO!$( {O'C_QWO!$( {OOQ?Mp!)9Eg!)9EgO$(_QWO!)9EgOCcQWO!)9EgOOQ?Mp!.K;R!.K;RO$(_QWO!.K;ROOQ?Mp!4/0m!4/0mO!(vQ^O'#DwO1PQWO'#EUO'CjQrO'#JmO'CqQMnO'#DsO'CxQ^O'#D{O'DPQrO'#CiO'FgQrO'#CiO!(vQ^O'#D}O'FwQ^O,5;WO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O,5;bO!(vQ^O'#IlO'HzQWO,5<gO!(vQ^O,5;bO'ISQ7[O,5;bO'JmQ7[O,5;bO!(vQ^O,5;vO!&fQ7[O'#GjO'ISQ7[O'#GjO!&fQ7[O'#GlO'ISQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&fQ7[O'#F}O'ISQ7[O'#F}O!&fQ7[O'#GPO'ISQ7[O'#GPO!&fQ7[O'#G_O'ISQ7[O'#G_O!(vQ^O,5:gO'JtQ`O'#D[O!(vQ^O,5@jO'FwQ^O1G0rO'KOQ07bO'#CiO!(vQ^O1G2OO!&fQ7[O'#IqO'ISQ7[O'#IqO!&fQ7[O'#IsO'ISQ7[O'#IsO'KYQpO'#CrO!&fQ7[O,5<rO'ISQ7[O,5<rO'FwQ^O1G2PO!(vQ^O7+&yO!&fQ7[O1G2^O'ISQ7[O1G2^O!&fQ7[O'#IqO'ISQ7[O'#IqO!&fQ7[O'#IsO'ISQ7[O'#IsO!&fQ7[O1G2`O'ISQ7[O1G2`O'FwQ^O7+'kO'FwQ^O7+&^O!&fQ7[OANAfO'ISQ7[OANAfO'KmQWO'#ElO'KrQWO'#ElO'KzQWO'#F[O'LPQWO'#EvO'LUQWO'#KOO'LaQWO'#J|O'LlQWO,5;WO'LqQ7[O,5<dO'LxQWO'#GWO'L}QWO'#GWO'MSQWO,5<eO'M[QWO,5;WO'MdQ07bO1G1_O'MkQWO,5<rO'MpQWO,5<rO'MuQWO,5<tO'MzQWO,5<tO'NPQWO1G2PO'NUQWO1G0rO'NZQ7[O<<KzO'NbQ7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(vQ^O,5;sO!3ZQWO'#GWO!3ZQWO'#GWO!3ZQWO'#GYO!3ZQWO'#GYO!+oQ7[O7+(`O!+oQ7[O7+(`O%+bQpO1G2tO%+bQpO1G2tO!&fQ7[O,5=YO!&fQ7[O,5=Y",stateData:"( f~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;bO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;fO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;gO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;bO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Os'{O~P%[Ou#SO!R#TO(]#TO(^(OO~O!X(QO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(SO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(SO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGmO!V(XO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIpO#](YO!V(rX!Y(rX~O!Y(ZO!V(qX~O!V(^O~O#]$eO~PIpO!Z(_O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!kaYO(QTO(TUO([VO(j[O(y=YO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)aO~P!&fOh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(sO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+oO})fO!d)eO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)eO![(vX$Y(vX$[(vX$^(vX$e(vX~O})fO~P!-xO})fO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)hO$Y)lO$[)gO$^)gO$e)mO~O!X)pO~P!(vO$[$hO$^$gO$e)tO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/nOu)vO(])wO(^)yO~Ok*SO}){O!P)|O(t$}O(u%PO~Og)zO~P!0rOg*TO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{<OO!P*VO![*WO!f=`O!i$xO#g<UO$V%_O$r<QO$t<SO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*ZO(O*UO!h(zP~P!1aO#h*]O~O!i*^O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{<OO!P${O![$|O!f=`O!i$xO#g<UO$V%_O$r<QO$t<SO$w%`O(O*`O(QTO(TUO([$uO(t$}O(u%PO~O!X*cO!V({P~P!3`Oo*oO!P*gO!_*mO!`*fO!a*fO!i*^O#X*nO%]*iO(P!lO(`!mO~O!Z*lO~P!5TO#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5|Ok*tO#]*sOg(YX!Y(YX~O!Y*uOg(XX~O(O&WOg(XP~Op*xO~O!i*}O~O(O(sO~Om+RO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+SO~O!P%fO!X+UO!Y(ZO![%gO(O%eO!V(qP~Op'XO!P+WO!X+VO(QTO(TUO(`(yO~O!Z(sP~P!8|O!Y+XOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9tOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<[OR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>rOh%VOk+bO![']O%f+aO~O!d+dOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(uO~Ob+oO%g+pO(O+lO(QTO(TUO!Z)TP~O!Y+qO`)SX~O[+uO~O`+vO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+{O~Oh%VOk,OO![$|O~O![,QO~O},SO![XO~O%k%tO~O!u,XO~Oe,^O~Ob,_O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,dO`,cO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!ErO`,cOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,iO!rwO#t!OO%i!OO%j!OO%k!OO~P!H[O!i&lO~O&Y,oO~O![,qO~O&k,sO&m,tOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,yO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# bO!d-OO#],}Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-QO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;aOQ;aOSfOd=[Oe!iOmkOo;aOpkOqkOwkOy;aO{;aO!PWO!TkO!UkO![!eO!f;dO!iZO!l;aO!m;aO!n;aO!p;eO!r;hO!u!hO$V!kO(QTO(TUO([VO(j[O(y=YO~O(O<[O~P##fO!Y-UO!Z(dX~O!Z-WO~O!d-OO#],}O!Y#eX!Z#eX~O!Y-XO!Z(sX~O!Z-ZO~O!`-[O!a-[O(P!lO~P##TO!Z-_O~P'_Ok-bO![']O~O!V-gO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#bO!m-lO#]-jO~PCSO!`-nO!a-nO(P!lO~PCrOa%lO#]-jO'u%lO~Oa%lO!d#vO#]-jO'u%lO~Oa%lO!d#vO!m-lO#]-jO'u%lO(m'mO~O'z'uO'{'uO'|-sO~Os-tO~O!V'Sa!Y'Sa~P!9tO!X-xO!V'SX!Y'SX~P%[O!Y(SO!V(ca~O!V(ca~PGmO!Y(ZO!V(qa~O!P%fO!X-|O![%gO(O%eO!V'YX!Y'YX~O#].OO!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+lO!Y(gO!h(na~O!P%fO![%gO#g.SO(O%eO~Om.XO!P%fO!X.UO![%gO!y]O#f.WO#g.UO(O%eO!Y']X!h']X~OR.]O!i#xO~Oh%VOk.`O![']O%f._O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9tOk=fO}){O!P)|O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.hO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5|O!Y.mO!h(fX~P!9tO!h.pO~O!V.rO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#2TO#k$OO~P#2TOP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4rO#o$QO~P#4rOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7aOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9wO#w#ji~P#9wO#u$SO~P#7aOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<mO#y$WO~P#<mOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?[OP$[OR#zO[;xOo;vO}#yO!P#{O!i#xO!m$[O#O;mO#k;jO#l;kO#m;kO#n;kO#o;lO#p;mO#q;mO#r;wO#s;mO#u;nO#w;pO#y;rO#z;sO([VO(m$YO(t#|O(u#}O~O#}.tO~P#AiO#P$dO#];yO$P;yO#}(bX!Z(bX~P! aOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9tO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DkOk=fO}){O!P)|O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DkO!Y.xOg(kX~P!0rOg.zO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9tO$[.{O$^.{O~O$[.|O$^.|O~O!d)eO#].}O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X/OO~O![)hO$Y/QO$[)gO$^)gO$e/RO~O!Y;tO!Z(aX~P#AiO!Z/SO~O!d)eO$e(vX~O$e/UO~Os/VO~P!&fOu)vO(])wO(^/YO~O!V/^O~P!&fO(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#KlO(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#L_O!YfX!dfX!hfX!h$xX(mfX~P!/nO!X/gO!Y(ZO(O/fO!V(qP!V({P~P!1aOo*oO!_*mO!`*fO!a*fO!i*^O#X*nO%]*iO(P!lO~Op'XO!P/hO!X+VO!Z*lO(QTO(TUO(`<XO!Z(sP~P#MxO!h/iO~P#.hO!Y/jO!d#vO(m'mO!h(zX~O!h/oO~O!P%fO!X*ZO![%gO(O%eO!h(zP~O#h/qO~O!V$xX!Y$xX!d%PX~P!/nO!Y/rO!V({X~P#.hO!d/tO~O!V/vO~Oh%VOo/zO!d#vO!i%cO(m'mO~O(O/|O~O!d+dO~Oa%lO!Y0QO'u%lO~O!Z0SO~P!5TO!`0TO!a0TO(P!lO(`!mO~O!P0VO(`!mO~O#X0WO~Og%^a!Y%^a#]%^a#}%^a~P!0rOg%`a!Y%`a#]%`a#}%`a~P!0rO(O&WOg'iX!Y'iX~O!Y*uOg(Xa~Og0aO~OR0bO}0bO!P0cO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%kO}){O!P)|Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&dO}){O!P)|Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$'VO#h0fO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0rO!d#vO~O#h0iO~O!Y+XOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(tOh%VOo%XOp$tOq$tOw%YOy%ZO{<OO!P${O![$|O!f=`O!i$xO#g<UO$V%_O$r<QO$t<SO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0rO(O0qO~P$+[O!d+dOa(Wa![(Wa'u(Wa!Y(Wa~O#h0xO~O[]X!YfX!ZfX~O!Y0yO!Z)TX~O!Z0{O~O[0|O~Ob1OO(O+lO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+qO`)Sa~O!h1RO~P!9tO[1UO~O`1VO~O#]1YO~Ok1]O![$|O~O(`(yO!Z)QP~Oh%VOk1fO![1cO%f1eO~O[1pO!Y1nO!Z)RX~O!Z1qO~O`1sOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1vO&W1wOa(bX~P$0rO#]$eO#s1vO&W1wO~Oa1yO~P%[Oa1{O~O&a2OOP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2UO!Z2SO&f2TO~P`O![XO!i2WO~O&m,tOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2^O~O!Y!^a!Z!^a~P#AiOp!nO!P!oO!X2dO(`!mO!Y'TX!Z'TX~P@YO!Y-UO!Z(da~O!Y'ZX!Z'ZX~P!8|O!Y-XO!Z(sa~O!Z2kO~P'_Oa%lO#]2tO'u%lO~Oa%lO!d#vO#]2tO'u%lO~Oa%lO!d#vO!m2xO#]2tO'u%lO(m'mO~Oa%lO'u%lO~P!9tO!Y$_Os$oa~O!V'Si!Y'Si~P!9tO!Y(SO!V(ci~O!Y(ZO!V(qi~O!V(ri!Y(ri~P!9tO!Y(oi!h(oia(oi'u(oi~P!9tO#]2zO!Y(oi!h(oia(oi'u(oi~O!Y(gO!h(ni~O!P%fO![%gO!y]O#f3PO#g3OO(O%eO~O!P%fO![%gO#g3OO(O%eO~Ok3WO![']O%f3VO~Oh%VOk3WO![']O%f3VO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#KlO#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#L_O#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.hO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.hO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%kO#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&dO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$'VO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.hOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9tO!X3`O!Y'UX!h'UX~P%[O!Y.mO!h(fa~O!Y.mO!h(fa~P!9tO!V3cO~O#}!ka!Z!ka~PKWO#}!ga!Y!ga!Z!ga~P#AiO#}!oa!Z!oa~P!<[O#}!qa!Z!qa~P!>rOg'XX!Y'XX~P!+oO!Y.xOg(ka~OSfO![3wO$c3xO~O!Z3|O~Os3}O~P#.hOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9tO!V4OO~P#.hO}){O!P)|O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)|O}){O!P)|Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*oO(m$YO~P#.hO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/nO(O<bO~P!1aOmkO(O4QO~P.iO!P%fO!X4SO![%gO(O%eO!Y'aX!h'aX~O!Y/jO!h(za~O!Y/jO!d#vO!h(za~O!Y/jO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0rO!X4[O!V'cX!Y'cX~P!3`O!Y/rO!V({a~O!Y/rO!V({a~P#.hO!d#vO#s4dO~Oo4gO!d#vO(m'mO~O!P4jO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%/VO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/xOg(Yi!Y(Yi~P!0rO#]4oOg(Yi!Y(Yi~P!0rO!h4rO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9tO!V4vO~O!Y4wO![(|X~P#.hOa$xX![$xX%Z]X'u$xX!Y$xX~P!/nO%Z4zOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4zO~Ob5QO%g5RO(O+lO(QTO(TUO!Y'pX!Z'pX~O!Y0yO!Z)Ta~O[5VO~O`5WO~Oa%lO'u%lO~P#.hO![$|O~P#.hO!Y5`O#]5bO!Z)QX~O!Z5cO~Oo5jOp!nO!P5dO!_!yO!`!vO!a!vO!y;bO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5iO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5hO~P%5SOk5oO![1cO%f5nO~Oh%VOk5oO![1cO%f5nO~Ob5vO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1nO!Z)Ra~O(QTO(TUO(`5xO~O`5|O~O#s6PO&W6QO~PMsO!h6RO~P%[Oa6TO~Oa6TO~P%[Ob2UO!Z6YO&f2TO~P`O!d6[O~O!d6^Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AiO#]6_O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AiOa%lO#]6hO'u%lO~Oa%lO!d#vO#]6hO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9tO!Y(gO!h(nq~O!P%fO![%gO#g6oO(O%eO~O![']O%f6rO~Ok6vO![']O%f6rO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)|O#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*oO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.hO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%/VO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/xO!Y'Ua!h'Ua~P!9tO!Y.mO!h(fi~O#}#`i!Y#`i!Z#`i~P#AiOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%GlO#k;jO~P%GlOP$[OR#zOo;vO}#yO!P#{O!i#xO!m$[O#k;jO#l;kO#m;kO#n;kO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%ItO#o;lO~P%ItOP$[OR#zO[;xOo;vO}#yO!P#{O!i#xO!m$[O#O;mO#k;jO#l;kO#m;kO#n;kO#o;lO#p;mO#q;mO#r;wO#s;mO([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%K|OP$[OR#zO[;xOo;vO}#yO!P#{O!i#xO!m$[O#O;mO#k;jO#l;kO#m;kO#n;kO#o;lO#p;mO#q;mO#r;wO#s;mO#u;nO([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;pO~P%M}O#w#ji~P%M}O#u;nO~P%K|OP$[OR#zO[;xOo;vO}#yO!P#{O!i#xO!m$[O#O;mO#k;jO#l;kO#m;kO#n;kO#o;lO#p;mO#q;mO#r;wO#s;mO#u;nO#w;pO([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!^O#y;rO~P&!^Oa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9tO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;jO#l;kO#m;kO#n;kO([VO(t#ji(u#ji~P&%YOk=gO}){O!P)|O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&%YO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AiO#}!oi!Z!oi~P$(tOg'Xa!Y'Xa~P!0rO!Z7YO~O!Y'`a!Z'`a~P#AiOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+`O!d#vO(m'mO!Y'aa!h'aa~O!Y/jO!h(zi~O!Y/jO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0rO!V'ca!Y'ca~P#.hO!d7aO~O!Y/rO!V({i~P#.hO!Y/rO!V({i~O!V7eO~O!d#vO#s7jO~Oo7kO!d#vO(m'mO~O}){O!P)|O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&0OO}){O!P)|Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0qO!V7nO~Og$|q!Y$|q#]$|q#}$|q~P!0rOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9tO!d6^O~O!Y4wO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6rO~P&2zOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9tO[7sO~Ob7uO(O+lO(QTO(TUO~O!Y0yO!Z)Ti~O`7yO~O(`(yO!Y'lX!Z'lX~O!Y5`O!Z)Qa~O!Z8SO~P%5SOp!nO!P8TO(QTO(TUO(`!mO(j!sO~O#X8UO~O![1cO~O![1cO%f8WO~Ok8ZO![1cO%f8WO~O[8`O!Y'oa!Z'oa~O!Y1nO!Z)Ri~O!h8dO~O!h8eO~O!h8hO~O!h8hO~P%[Oa8jO~O!d8kO~O!h8lO~O!Y(ri!Z(ri~P#AiOa%lO#]8tO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9tO!Y(gO!h(ny~O%f8wO~P&2zO![']O%f8wO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.hO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&0OO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0qO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.hO!Y'Ui!h'Ui~P!9tO#}#`q!Y#`q!Z#`q~P#AiO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&C}O(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&FROk=gO}){O!P)|O(u%PO~P&C}Ok=gO}){O!P)|O(t$}O~P&FROR0bO}0bO!P0cO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O}){O!P)|OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O}){O!P)|OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=gO}){O!P)|O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NzO#}$lq!Y$lq!Z$lq~P#AiO#}$mq!Y$mq!Z$mq~P#AiO!Z9UO~O#}9VO~P!0rO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/jO!h(zq~O!V'ci!Y'ci~P#.hO!Y/rO!V({q~Oo9^O!d#vO(m'mO~O[9`O!V9_O~P#.hO!V9_O~O!d#vO#s9eO~Og(Yy!Y(Yy~P!0rO!Y'ja!['ja~P#.hOa%Yq![%Yq'u%Yq!Y%Yq~P#.hO[9gO~O!Y0yO!Z)Tq~O#]9kO!Y'la!Z'la~O!Y5`O!Z)Qi~P#AiO!P4jO~O![1cO%f9oO~O(QTO(TUO(`9tO~O!Y1nO!Z)Rq~O!h9wO~O!h9xO~O!h9yO~O!h9yO~P%[O#]9|O!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AiO%f:RO~P&2zO![']O%f:RO~O#}#{y!Y#{y!Z#{y~P#AiOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NzO}){O!P)|O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O}){O!P)|OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AiO#}#`y!Y#`y!Z#`y~P#AiO!d#vO!Y'aq!h'aq~O!Y/jO!h(zy~O!V'cq!Y'cq~P#.hOo:]O!d#vO(m'mO~O[:`O!V:_O~P#.hO!V:_O~O!Y0yO!Z)Ty~O!Y5`O!Z)Qq~O![1cO%f:hO~O!h:kO~O%f:pO~P&2zOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NzO}){O!P)|O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O}){O!P)|OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NzOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0rO!V:tO~P#.hOo:uO!d#vO(m'mO~O[:wO!V:tO~P#.hO!Y'lq!Z'lq~P#AiO!Y#e!Z!Z#e!Z~P#AiO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.hOo;PO!d#vO(m'mO~O!V;QO~P#.hOo;XO!d#vO(m'mO~O!V;YO~P#.hOP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NzOo;]O!d#vO(m'mO~Os(aX~P1qO}%pO~P!(vO(P!lO~P!(vO!VfX!YfX#]fX~P&+`OP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'D^OP;aOQ;aOSfOd=[Oe!iOmkOo;aOpkOqkOwkOy;aO{;aO!PWO!TkO!UkO![XO!f;dO!iZO!l;aO!m;aO!n;aO!p;eO!r;hO!u!hO$V!kO(O)YO(QTO(TUO([VO(j[O(y=YO~O!Y;tO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{<PO!P${O![$|O!f=aO!i$xO#g<VO$V%_O$r<RO$t<TO$w%`O(O(sO(QTO(TUO([$uO(t$}O(u%PO~O#t)aO~P'ISOo!bX(m!bX~P# bO!Z]X!ZfX~P'D^O!VfX!V$xX!YfX!Y$xX#]fX~P!/nO#h;iO~O!d#vO#h;iO~O#];yO~O#s;mO~O#]<YO!Y(rX!Z(rX~O#];yO!Y(pX!Z(pX~O#h<ZO~Og<]O~P!0rO#h<cO~O#h<dO~O!d#vO#h<eO~O!d#vO#h<ZO~O#}<fO~P#AiO#h<gO~O#h<hO~O#h<mO~O#h<nO~O#h<oO~O#h<pO~O#}<qO~P!0rO#}<rO~P!0rO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$5g)XPPPPPP)YPP)]P)nP+O/PPPPP5{PP6cPP<Y?sP@WP@WPPP@WPB[P@WP@WP@WPB`PBePCSPG{PPPHPPPPPHPKRPPPKXLTPHPPHPPPNcHPPPPHPPHPP!!jHPP!&P!'U!'_P!(R!(V!(R!+cPPPPPPP!,S!'UPP!,d!-xP!1THPHP!1Y!4e!8{!8{!<yPPP!=RHPPPPPPPPPPPP!@aP!AnPPHP!CPPHPPHPHPHPHPHPPHP!DcP!GlP!JqP!Ju!KP!KT!KTP!GiP!KX!KXP!N^P!NbHPHP!Nh##lB`@WP@WP@W@WP#$x@W@W#'W@W#)z@W#,S@W@W#,r#/S#/S#/X#/b#/S#/nP#/SP@W#0W@W#4P@W@W5{PPP#8OPPP#8i#8iP#8iP#9P#8iPP#9VP#8|P#8|#9j#8|#:U#:[5x)]#:_)]P#:f#:f#:fP)]P)]P)]P)]PP)]P#:l#:oP#:o)]P#:sP#:vP)]P)]P)]P)]P)]P)])]PP#:|#;S#;_#;e#;k#;q#;w#<V#<]#<g#<m#<w#<}#=_#=e#>V#>i#>o#>u#?T#?j#A]#Ak#Ar#C[#Cj#EY#Eh#En#Et#Ez#FU#F[#Fb#Fl#GO#GUPPPPPPPPPP#G[PPPPPPP#HP#KW#Lg#Ln#LvPPP$$YP$$c$'Z$-s$-v$-y$.f$.i$.p$.xP$/O$/RP$/o$/s$0k$1y$2O$2fPP$2k$2q$2uP$2x$2|$3Q$3v$4_$4v$4z$4}$5Q$5W$5Z$5_$5cR!|RoqOXst!Z#d%k&o&q&r&t,l,q2O2RY!vQ']-^1c5gQ%rvQ%zyQ&R|Q&g!VS'T!e-UQ'c!iS'i!r!yU*f$|*W*kQ+j%{Q+w&TQ,]&aQ-['[Q-f'dQ-n'jQ0T*mQ1m,^R<W;e%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W,i,l,q-b-j-x.O.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3`5d5o6P6Q6T6h8T8Z8j8tS#q];b!r)[$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]U*z%[<O<PQ+o%}Q,_&dQ,f&lQ0o+bQ0s+dQ1O+pQ1u,dQ3S.`Q5Q0yQ5v1nQ6t3WQ7u5RR8z6v'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]t!nQ!r!v!y!z'T'[']'i'j'k-U-[-^-n1c5g5i%S$ti#v$b$c$d$x${%O%Q%]%^%b)v)|*O*Q*S*V*]*c*s*t+a+d+{,O._.x/_/g/q/r/t0X0Z0f1Y1]1e3V4P4[4d4o4w4z5n6r7a7j8W8w9V9`9e9o:R:`:h:p:w;w;x;z;{;|;}<Q<R<S<T<U<V<^<_<`<a<c<d<g<h<i<j<k<l<m<n<q<r=Y=b=c=f=gQ&U|Q'R!eU'X%g*W-XQ+o%}Q,_&dQ0e*}Q1O+pQ1T+vQ1t,cQ1u,dQ5Q0yQ5Z1VQ5v1nQ5y1pQ5z1sQ7u5RQ7x5WQ8c5|Q9j7yR9u8`rnOXst!V!Z#d%k&f&o&q&r&t,l,q2O2RR,a&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=[=][#]WZ#W#Z'U(Q!b%hm#h#i#l$x%c%f(Z(e(f(g*V*Z*^+U+V+X,h-O-|.S.T.U.W/g/j2W3O3P4S6^6oQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(n#sS+i%z%{Q+m%}Q,W&_Q,[&aS-e'c'dQ.b(oQ0w+jQ0}+pQ1P+qQ1S+uQ1h,XS1l,],^Q2p-fQ5P0yQ5T0|Q5Y1UQ5u1mQ7t5RQ7w5VQ9f7sR:c9g!O$zi$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=c!S%wy!i!u%y%z%{'S'b'c'd'h'r*e+i+j-R-e-f-m/{0w2i2p2w4fQ+c%uQ+|&XQ,P&YQ,Z&aQ.a(nQ1g,WU1k,[,],^Q3X.bQ5p1hS5t1l1mQ8_5u#d=^#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=go=_;w;x;{;}<R<T<V<_<a<d<h<j<l<n<rW%Ti%V*u=YS&X!Q&fQ&Y!RQ&Z!SR+z&V%T%Si#v$b$c$d$x${%O%Q%]%^%b)v)|*O*Q*S*V*]*c*s*t+a+d+{,O._.x/_/g/q/r/t0X0Z0f1Y1]1e3V4P4[4d4o4w4z5n6r7a7j8W8w9V9`9e9o:R:`:h:p:w;w;x;z;{;|;}<Q<R<S<T<U<V<^<_<`<a<c<d<g<h<i<j<k<l<m<n<q<r=Y=b=c=f=gT)w$u)xV*z%[<O<PW'X!e%g*W-XS(z#y#zQ+^%pQ+t&QS.Z(j(kQ1^,QQ4p0bR7}5`'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]$i$^c#Y#e%o%q%s(P(V(q(v)O)P)Q)R)S)T)U)V)W)X)Z)])_)d)n+_+s-S-q-v-{-}.l.o.s.u.v.w/Z0g2_2b2r2y3_3d3e3f3g3h3i3j3k3l3m3n3o3p3s3t3{4t4}6a6g6l6{6|7V7W8P8n8r8|9S9T:O:e:l;c=PT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]Q'V!eR2e-Uv!nQ!e!r!v!y!z'T'[']'i'j'k-U-[-^-n1c5g5iU*e$|*W*kS/{*f*mQ0U*nQ1`,SQ4f0TR4i0WnqOXst!Z#d%k&o&q&r&t,l,q2O2RQ&v!^Q's!xS(p#u;iQ+g%xQ,U&[Q,V&^Q-c'aQ-p'lS.k(u<ZS0h+S<eQ0u+hQ1b,TQ2V,sQ2X,tQ2a-PQ2n-dQ2q-hS4u0i<oQ4{0vS5O0x<pQ6`2cQ6d2oQ6i2vQ7r4|Q8o6bQ8p6eQ8s6jR9{8l$d$]c#Y#e%q%s(P(V(q(v)O)P)Q)R)S)T)U)V)W)X)Z)])_)d)n+_+s-S-q-v-{-}.l.o.s.v.w/Z0g2_2b2r2y3_3d3e3f3g3h3i3j3k3l3m3n3o3p3s3t3{4t4}6a6g6l6{6|7V7W8P8n8r8|9S9T:O:e:l;c=PS(l#p'fQ(|#zS+]%o.uS.[(k(mR3Q.]'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]S#q];bQ&q!XQ&r!YQ&t![Q&u!]R1},oQ'^!hQ+`%uQ-a'`S.^(n+cQ2l-`W3U.a.b0n0pQ6c2mW6p3R3T3X4yU8v6q6s6uU:Q8x8y8{S:n:P:SQ:{:oR;T:|U!wQ']-^T5e1c5g!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(g,l,q.T2O2R]!pQ!r']-^1c5gT#q];b%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W+b,i,l,q-b-j-x.O.`.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3W3`5d5o6P6Q6T6h6v8T8Z8j8tS(z#y#zS.Z(j(k!s<v$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]U$fd)[,fS(m#p'fU*r%R(t3rU0d*y.g7RQ4y0oQ6q3SQ8y6tR:S8zm!tQ!r!v!y!z']'i'j'k-^-n1c5g5iQ'q!uS(c#g1xS-l'h'tQ/m*YQ/y*eQ2x-oQ4W/nS4a/z0UQ7]4RS7h4g4iQ9X7^Q9]7eQ9c7kS:[9^9_S:s:]:_S;O:t:uS;W;P;QS;[;X;YR;_;]Q#wbQ'p!uS(b#g1xS(d#m+RQ+T%dQ+e%vQ+k%|U-k'h'q'tQ.P(cQ/l*YQ/x*eQ0O*hQ0t+fQ1i,YS2u-l-oQ2}.XS4V/m/nS4`/y0UQ4c/}Q4e0PQ5r1jQ6k2xQ7[4RQ7`4WS7d4a4iQ7i4hQ8]5sS9W7]7^Q9[7eQ9a7hQ9d7lQ9r8^Q:Y9XS:Z9]9_Q:a9cQ:j9sS:r:[:_S:}:s:tS;V;O;QS;Z;W;YQ;^;[Q;`;_Q<y<tQ=U<}R=V=OV!wQ']-^%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W+b,i,l,q-b-j-x.O.`.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3W3`5d5o6P6Q6T6h6v8T8Z8j8tS#wz!j!r<s$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]R<y=[%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W+b,i,l,q-b-j-x.O.`.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3W3`5d5o6P6Q6T6h6v8T8Z8j8tQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*e+i+j-R-e-f-m/{0w2i2p2w4fS%|z!jQ+f%wQ,Y&aW1j,Z,[,],^U5s1k1l1mS8^5t5uQ9s8_!r<t$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]Q<}=ZR=O=[%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(S(Y(a(u(w({)z+S+W+b,i,l,q-b-j-x.O.`.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3W3`5d5o6P6Q6T6h6v8T8Z8j8tY#bWZ#W#Z(Q!b%hm#h#i#l$x%c%f(Z(e(f(g*V*Z*^+U+V+X,h-O-|.S.T.U.W/g/j2W3O3P4S6^6oQ,g&l!p<u$Z$n)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]R<x'UU'Y!e%g*WR2g-X%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W,i,l,q-b-j-x.O.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3`5d5o6P6Q6T6h8T8Z8j8t!r)[$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]Q,f&lQ0o+bQ3S.`Q6t3WR8z6v!b$Tc#Y%o(P(V(q(v)W)X)])d+s-q-v-{-}.l.o/Z0g2r2y3_3o4t4}6g6l6{8r:O;c!P;o)Z)n-S.u2_2b3d3m3n3s3{6a6|7V7W8P8n8|9S9T:e:l=P!f$Vc#Y%o(P(V(q(v)T)U)W)X)])d+s-q-v-{-}.l.o/Z0g2r2y3_3o4t4}6g6l6{8r:O;c!T;q)Z)n-S.u2_2b3d3j3k3m3n3s3{6a6|7V7W8P8n8|9S9T:e:l=P!^$Zc#Y%o(P(V(q(v)])d+s-q-v-{-}.l.o/Z0g2r2y3_3o4t4}6g6l6{8r:O;cQ4P/ez=])Z)n-S.u2_2b3d3s3{6a6|7V7W8P8n8|9S9T:e:l=PQ=b=dR=c=e'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]S$oh$pR3x.}'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t.}/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]T$kf$qQ$ifS)g$l)kR)s$qT$jf$qT)i$l)k'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(Q(S(Y(a(u(w({)p)z+S+W+b,i,l,q,}-Q-b-j-x.O.`.m.t.}/O/h0c0i0x1f1v1w1y1{2O2R2T2d2t2z3W3`3w5b5d5o6P6Q6T6_6h6v8T8Z8j8t9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]T$oh$pQ$rhR)r$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(Q(S(Y(a(u(w({)z+S+W+b,i,l,q-b-j-x.O.`.m.t/h0c0i0x1f1v1w1y1{2O2R2T2t2z3W3`5d5o6P6Q6T6h6v8T8Z8j8t!s=Z$Z$n'U)p,}-Q/O2d3w5b6_9k9|;a;d;e;h;i;j;k;l;m;n;o;p;q;r;s;t;v;y<W<Y<Z<]<e<f<o<p=]#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_({)p+W+b,i,l,q-b.`/O/h0c1f1v1w1y1{2O2R2T3W3w5d5o6P6Q6T6v8T8Z8j!O%Ri$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=c#d(t#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=gQ+O%`Q/[){o3r;w;x;{;}<R<T<V<_<a<d<h<j<l<n<r!O$yi$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=cQ*_$zU*h$|*W*kQ+P%aQ0P*i#d<{#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=gn<|;w;x;{;}<R<T<V<_<a<d<h<j<l<n<rQ=Q=^Q=R=_Q=S=`R=T=a!O%Ri$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=c#d(t#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=go3r;w;x;{;}<R<T<V<_<a<d<h<j<l<n<rnoOXst!Z#d%k&o&q&r&t,l,q2O2RS*b${*VQ,z&{Q,{&}R4Z/r%S%Si#v$b$c$d$x${%O%Q%]%^%b)v)|*O*Q*S*V*]*c*s*t+a+d+{,O._.x/_/g/q/r/t0X0Z0f1Y1]1e3V4P4[4d4o4w4z5n6r7a7j8W8w9V9`9e9o:R:`:h:p:w;w;x;z;{;|;}<Q<R<S<T<U<V<^<_<`<a<c<d<g<h<i<j<k<l<m<n<q<r=Y=b=c=f=gQ+}&YQ1[,PQ5^1ZR7|5_V*j$|*W*kU*j$|*W*kT5f1c5gU/}*g/h5dS4h0V8TR7l4jQ+e%vQ0O*hQ0t+fQ1i,YQ5r1jQ8]5sQ9r8^R:j9s!O%Oi$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=cr*O$v)b*P*q+Q/p0]0^3u4X4s7Z7m:X<z=W=XS0X*p0Y#d;z#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=gn;{;w;x;{;}<R<T<V<_<a<d<h<j<l<n<r!f<^(r)`*X*a.c.f.j/W/]/e/u0m1X1Z3[4Y4^5]5_6w6z7b7f7o7q9Z9b:^:b:q:v;R=d=e`<_3q6}7Q7U8}:T:W;US<i.e3]T<j7P9Q!O%Qi$d%O%Q%]%^%b*O*Q*]*s*t.x/q0X0Z0f4P4o9V=Y=b=cv*Q$v)b*R*p+Q/a/p0]0^3u4X4k4s7Z7m:X<z=W=XS0Z*q0[#d;|#v$b$c$x${)v)|*S*V*c+a+d+{,O._/_/g/r/t1Y1]1e3V4[4d4w4z5n6r7a7j8W8w9`9e9o:R:`:h:p:w;z;|<Q<S<U<^<`<c<g<i<k<m<q=f=gn;};w;x;{;}<R<T<V<_<a<d<h<j<l<n<r!j<`(r)`*X*a.d.e.j/W/]/e/u0m1X1Z3Y3[4Y4^5]5_6w6x6z7b7f7o7q9Z9b:^:b:q:v;R=d=ed<a3q7O7P7U8}9O:T:U:W;US<k.f3^T<l7Q9RrnOXst!V!Z#d%k&f&o&q&r&t,l,q2O2RQ&c!UR,i&lrnOXst!V!Z#d%k&f&o&q&r&t,l,q2O2RR&c!UQ,R&ZR1W+zsnOXst!V!Z#d%k&f&o&q&r&t,l,q2O2RQ1d,WS5m1g1hU8V5k5l5pS9n8X8YS:f9m9pQ:x:gR;S:yQ&j!VR,b&fR5y1pS&O|&TR1P+qQ&o!WR,l&pR,r&uT2P,q2RR,v&vQ,u&vR2Y,vQ'v!{R-r'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)x$uR/X)xQ#UVR'}#UQ#XWU(T#X(U-yQ(U#YR-y(VQ-V'VR2f-VQ.n(vS3a.n3bR3b.oQ-^']R2j-^Y!rQ']-^1c5gR'g!rQ.y)bR3v.yU#_W%f*VU([#_(]-zQ(]#`R-z(WQ-Y'YR2h-Yt`OXst!V!Z#d%k&f&h&o&q&r&t,l,q2O2RS#hZ%cU#r`#h.TR.T(gQ(h#jQ.Q(dW.Y(h.Q2{6mQ2{.RR6m2|Q)k$lR/P)kQ$phR)q$pQ$`cU)^$`-u;uQ-u;cR;u)nQ/k*YW4T/k4U7_9YU4U/l/m/nS7_4V4WR9Y7`$a)}$v(r)`)b*X*a*p*q*{*|+Q.e.f.h.i.j/W/]/a/c/e/p/u0]0^0m1X1Z3Y3Z3[3q3u4X4Y4^4k4m4s5]5_6w6x6y6z7P7Q7S7T7U7Z7b7f7m7o7q8}9O9P9Z9b:T:U:V:W:X:^:b:q:v;R;U<z=W=X=d=eQ/s*aU4]/s4_7cQ4_/uR7c4^S*k$|*WR0R*kr*P$v)b*p*q+Q/p0]0^3u4X4s7Z7m:X<z=W=X!f.c(r)`*X*a.e.f.j/W/]/e/u0m1X1Z3[4Y4^5]5_6w6z7b7f7o7q9Z9b:^:b:q:v;R=d=eU/b*P.c6}a6}3q7P7Q7U8}:T:W;UQ0Y*pQ3].eU4l0Y3]9QR9Q7Pv*R$v)b*p*q+Q/a/p0]0^3u4X4k4s7Z7m:X<z=W=X!j.d(r)`*X*a.e.f.j/W/]/e/u0m1X1Z3Y3[4Y4^5]5_6w6x6z7b7f7o7q9Z9b:^:b:q:v;R=d=eU/d*R.d7Oe7O3q7P7Q7U8}9O:T:U:W;UQ0[*qQ3^.fU4n0[3^9RR9R7QQ*v%UR0`*vQ4x0mR7p4xQ+Y%iR0l+YQ5a1^S8O5a9lR9l8PQ,T&[R1a,TQ5g1cR8R5gQ1o,_S5w1o8aR8a5yQ0z+mW5S0z5U7v9hQ5U0}Q7v5TR9h7wQ+r&OR1Q+rQ2R,qR6X2RYrOXst#dQ&s!ZQ+[%kQ,k&oQ,m&qQ,n&rQ,p&tQ1|,lS2P,q2RR6W2OQ%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Z%jQ+g%xQ+y&UQ,a&jQ,x&yW-i'h'p'q'tQ-p'lQ0Q*jQ0u+hS1r,b,eQ2Z,wQ2[,zQ2],{Q2q-hW2s-k-l-o-qQ4{0vQ5X1TQ5[1XQ5q1iQ5{1tQ6V1}U6f2r2u2xQ6i2vQ7r4|Q7z5ZQ7{5]Q8Q5fQ8[5rQ8b5zS8q6g6kQ8s6jQ9i7xQ9q8]Q9v8cQ9}8rQ:d9jQ:i9rQ:m:OR:z:jQ%xyQ'a!iQ'l!uU+h%y%z%{Q-P'SU-d'b'c'dS-h'h'rQ/w*eS0v+i+jQ2c-RS2o-e-fQ2v-mQ4b/{Q4|0wQ6b2iQ6e2pQ6j2wR7g4fS$wi=YR*w%VU%Ui%V=YR0_*uQ$viS(r#v+dS)`$b$cQ)b$dQ*X$xS*a${*VQ*p%OQ*q%QQ*{%]Q*|%^Q+Q%bQ.e;zQ.f;|Q.h<QQ.i<SQ.j<UQ/W)vS/])|/_Q/a*OQ/c*QQ/e*SQ/p*]S/u*c/gQ0]*sQ0^*th0m+a._1e3V5n6r8W8w9o:R:h:pQ1X+{Q1Z,OQ3Y<^Q3Z<`Q3[<cS3q;w;xQ3u.xQ4X/qQ4Y/rQ4^/tQ4k0XQ4m0ZQ4s0fQ5]1YQ5_1]Q6w<gQ6x<iQ6y<kQ6z<mQ7P;{Q7Q;}Q7S<RQ7T<TQ7U<VQ7Z4PQ7b4[Q7f4dQ7m4oQ7o4wQ7q4zQ8}<dQ9O<_Q9P<aQ9Z7aQ9b7jQ:T<hQ:U<jQ:V<lQ:W<nQ:X9VQ:^9`Q:b9eQ:q<qQ:v:`Q;R:wQ;U<rQ<z=YQ=W=bQ=X=cQ=d=fR=e=gQ*y%[Q.g<OR7R<PnpOXst!Z#d%k&o&q&r&t,l,q2O2RQ!fPS#fZ#oQ&y!`U'e!o5d8TQ'|#SQ(}#{Q)o$nS,e&h&kQ,j&lQ,w&xQ,|'QQ-`'_Q.q({Q/T)pS0j+W/hQ0p+bQ1z,iQ2m-bQ3T.`Q3z/OQ4q0cQ5l1fQ5}1vQ6O1wQ6S1yQ6U1{Q6Z2TQ6u3WQ7X3wQ8Y5oQ8f6PQ8g6QQ8i6TQ8{6vQ9p8ZR9z8j#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_({+W+b,i,l,q-b.`/h0c1f1v1w1y1{2O2R2T3W5d5o6P6Q6T6v8T8Z8jQ#YWQ#eYQ%ouQ%qvS%sw!gS(P#W(SQ(V#ZQ(q#uQ(v#xQ)O$OQ)P$PQ)Q$QQ)R$RQ)S$SQ)T$TQ)U$UQ)V$VQ)W$WQ)X$XQ)Z$ZQ)]$_Q)_$aQ)d$eW)n$n)p/O3wQ+_%rQ+s&PS-S'U2dQ-q'oS-v(Q-xQ-{(YQ-}(aQ.l(uQ.o(wQ.s;aQ.u;dQ.v;eQ.w;hQ/Z)zQ0g+SQ2_,}Q2b-QQ2r-jQ2y.OQ3_.mQ3d;iQ3e;jQ3f;kQ3g;lQ3h;mQ3i;nQ3j;oQ3k;pQ3l;qQ3m;rQ3n;sQ3o.tQ3p;vQ3s;yQ3t<WQ3{;tQ4t0iQ4}0xQ6a<YQ6g2tQ6l2zQ6{3`Q6|<ZQ7V<]Q7W<eQ8P5bQ8n6_Q8r6hQ8|<fQ9S<oQ9T<pQ:O8tQ:e9kQ:l9|Q;c#SR=P=]R#[WR'W!el!tQ!r!v!y!z']'i'j'k-^-n1c5g5iS'S!e-US-R'T'[R2i-[R(x#xQ!fQT-]']-^]!qQ!r']-^1c5gQ#p]R'f;bR)c$dY!uQ']-^1c5gQ'h!rS'r!v!yS't!z5iS-m'i'jQ-o'kR2w-nT#kZ%cS#jZ%cS%im,hU(d#h#i#lS.R(e(fQ.V(gQ0k+XQ2|.SU2}.T.U.WS6n3O3PR8u6od#^W#W#Z%f(Q(Z*V+U-|/gr#gZm#h#i#l%c(e(f(g+X.S.T.U.W3O3P6oS*Y$x*^Q/n*ZQ1x,hQ2`-OQ4R/jQ6]2WQ7^4SQ8m6^T<w'U+VV#aW%f*VU#`W%f*VS(R#W(ZU(W#Z+U/gS-T'U+VT-w(Q-|V'Z!e%g*WQ$lfR)u$qT)j$l)kR3y.}T*[$x*^T*d${*VQ0n+aQ3R._Q5k1eQ6s3VQ8X5nQ8x6rQ9m8WQ:P8wQ:g9oQ:o:RQ:y:hR:|:pnqOXst!Z#d%k&o&q&r&t,l,q2O2RQ&i!VR,a&ftmOXst!U!V!Z#d%k&f&o&q&r&t,l,q2O2RR,h&lT%jm,hR1_,QR,`&dQ&S|R+x&TR+n%}T&m!W&pT&n!W&pT2Q,q2R",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:gZ,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[xZ],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!Z(CdsBr$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[vZ,yZ,bZ,2,3,4,5,6,7,8,9,10,11,12,13,14,OZ,new xO("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new xO("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14791},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:n=>wZ[n]||-1},{term:338,get:n=>SZ[n]||-1},{term:92,get:n=>CZ[n]||-1}],tokenPrec:14815}),rP=[to("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),to("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),to("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),to("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),to("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),to(`try {
|
|
350
|
+
\${}
|
|
351
|
+
} catch (\${error}) {
|
|
352
|
+
\${}
|
|
353
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),to("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),to(`if (\${}) {
|
|
354
|
+
\${}
|
|
355
|
+
} else {
|
|
356
|
+
\${}
|
|
357
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),to(`class \${name} {
|
|
358
|
+
constructor(\${params}) {
|
|
359
|
+
\${}
|
|
360
|
+
}
|
|
361
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),to('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),to('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],PZ=rP.concat([to("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),to("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),to("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),sP=new UL,aP=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ac(n){return(e,t)=>{let o=e.node.getChild("VariableDefinition");return o&&t(o,n),!0}}const EZ=["FunctionDeclaration"],TZ={FunctionDeclaration:Ac("function"),ClassDeclaration:Ac("class"),ClassExpression:()=>!0,EnumDeclaration:Ac("constant"),TypeAliasDeclaration:Ac("type"),NamespaceDeclaration:Ac("namespace"),VariableDefinition(n,e){n.matchContext(EZ)||e(n,"variable")},TypeDefinition(n,e){e(n,"type")},__proto__:null};function lP(n,e){let t=sP.get(e);if(t)return t;let o=[],r=!0;function s(l,d){let h=n.sliceString(l.from,l.to);o.push({label:h,type:d})}return e.cursor(sn.IncludeAnonymous).iterate(l=>{if(r)r=!1;else if(l.name){let d=TZ[l.name];if(d&&d(l,s)||aP.has(l.name))return!1}else if(l.to-l.from>8192){for(let d of lP(n,l.node))o.push(d);return!1}}),sP.set(e,o),o}const cP=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,uP=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function _Z(n){let e=an(n.state).resolveInner(n.pos,-1);if(uP.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&cP.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let o=[];for(let r=e;r;r=r.parent)aP.has(r.name)&&(o=o.concat(lP(n.state.doc,r)));return{options:o,from:t?e.from:n.pos,validFor:cP}}const vs=Xd.define({name:"javascript",parser:kZ.configure({props:[tk.add({IfStatement:zg({except:/^\s*({|else\b)/}),TryStatement:zg({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:f7,SwitchBody:n=>{let e=n.textAfter,t=/^\s*\}/.test(e),o=/^\s*(case|default)\b/.test(e);return n.baseIndent+(t?0:o?1:2)*n.unit},Block:d7({closing:"}"}),ArrowFunction:n=>n.baseIndent+n.unit,"TemplateString BlockComment":()=>null,"Statement Property":zg({except:/^{/}),JSXElement(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},JSXEscape(n){let e=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),ik.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":g7,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),dP={test:n=>/^JSX/.test(n.name),facet:JC({commentTokens:{block:{open:"{/*",close:"*/}"}}})},NZ=vs.configure({dialect:"ts"},"typescript"),AZ=vs.configure({dialect:"jsx",props:[Lg.add(n=>n.isTop?[dP]:void 0)]}),RZ=vs.configure({dialect:"jsx ts",props:[Lg.add(n=>n.isTop?[dP]:void 0)]},"typescript");let fP=n=>({label:n,type:"keyword"});const hP="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(fP),MZ=hP.concat(["declare","implements","private","protected","public"].map(fP));function QZ(n={}){let e=n.jsx?n.typescript?RZ:AZ:n.typescript?NZ:vs,t=n.typescript?PZ.concat(MZ):rP.concat(hP);return new o7(e,[vs.data.of({autocomplete:AF(uP,x2(t))}),vs.data.of({autocomplete:_Z}),n.jsx?BZ:[]])}function IZ(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}function pP(n,e,t=n.length){for(let o=e?.firstChild;o;o=o.nextSibling)if(o.name=="JSXIdentifier"||o.name=="JSXBuiltin"||o.name=="JSXNamespacedName"||o.name=="JSXMemberExpression")return n.sliceString(o.from,Math.min(o.to,t));return""}const DZ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BZ=Be.inputHandler.of((n,e,t,o,r)=>{if((DZ?n.composing:n.compositionStarted)||n.state.readOnly||e!=t||o!=">"&&o!="/"||!vs.isActiveAt(n.state,e,-1))return!1;let s=r(),{state:l}=s,d=l.changeByRange(h=>{var m;let{head:g}=h,v=an(l).resolveInner(g-1,-1),b;if(v.name=="JSXStartTag"&&(v=v.parent),!(l.doc.sliceString(g-1,g)!=o||v.name=="JSXAttributeValue"&&v.to>g)){if(o==">"&&v.name=="JSXFragmentTag")return{range:h,changes:{from:g,insert:"</>"}};if(o=="/"&&v.name=="JSXStartCloseTag"){let x=v.parent,C=x.parent;if(C&&x.from==g-2&&((b=pP(l.doc,C.firstChild,g))||((m=C.firstChild)===null||m===void 0?void 0:m.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:we.cursor(g+k.length,-1),changes:{from:g,insert:k}}}}else if(o==">"){let x=IZ(v);if(x&&x.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(l.doc.sliceString(g,g+2))&&(b=pP(l.doc,x,g)))return{range:h,changes:{from:g,insert:`</${b}>`}}}}return{range:h}});return d.changes.empty?!1:(n.dispatch([s,l.update(d,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),VZ={key:0},LZ=["onClick"],Tf=dn(u.defineComponent({__name:"btnSetting",props:{preset:{type:Array,default(){return[]}}},setup(n,{expose:e}){const t=n,o=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"30px",fixed:"left",align:"center",customRender:({index:D})=>D+1},{title:"参数名称",dataIndex:"name",key:"name",width:"60px",align:"center"},{title:"参数标题",dataIndex:"title",key:"title",width:"80px",align:"center"},{title:"参数value",dataIndex:"value",key:"value",width:"100px",align:"center"}]),r=u.ref({selectedRowKeys:[],columnWidth:"25px",onChange:D=>{r.value.selectedRowKeys=D}}),s={mounted:D=>D.focus()},l=u.ref({});function d(){const D=Object.keys(l.value);if(D.length)for(let Q in D){const Y=k.value.form.action.params[Q];Y&&l.value[Q]&&Object.keys(l.value[Q]).forEach(L=>{Y[L]=l.value[Q][L]})}l.value={}}function h(D,Q,Y){d();const L={};L[Y]=Q[Y]||"",Y=="showIndex"&&(L[Y]=Q.show?.query?.index),l.value[D]=L}function m(D,Q,Y){if(!Q||!Y){l.value={};return}const L=l.value[D][Y];Q[Y]=L,l.value={}}function g(){k.value.form.action.params.push({title:"新建",name:"",value:""})}function v(){}const b=u.ref(""),x=u.ref({title:[{required:!0,message:"按钮标题不能为空"}],name:[{required:!0,message:"按钮名称不能为空"},{validator:(D,Q)=>b.value!=Q&&t.preset.includes(Q)?Promise.reject("预设按钮名称,请使用其他名称,["+t.preset.join(",")+"]"):Promise.resolve(),trigger:"change"}]}),C=u.ref(QZ()),k=u.ref({title:"按钮设置",visible:!1,form:{},helps:{}}),M=u.ref();function _(D,Q,Y={}){D=JSON.parse(JSON.stringify(D)),D.event||(D.event={}),D.props||(D.props={}),D.action||(D.action={}),Object.keys(D.action).includes("maskClosable")||(D.action.maskClosable=!0),D.action.params||(D.action.params=[]),b.value=D.name,k.value.form=D,k.value.helps=Y,k.value.visible=!0,M.value=Q}const E=u.ref(null);function F(){E.value&&E.value.validate().then(()=>{k.value.visible=!1,M.value(k.value.form)})}return e({open:_,close}),(D,Q)=>{const Y=u.resolveComponent("a-input"),L=u.resolveComponent("a-form-item"),Z=u.resolveComponent("a-select"),I=u.resolveComponent("a-input-number"),G=u.resolveComponent("a-checkbox"),ae=u.resolveComponent("a-tab-pane"),Oe=u.resolveComponent("a-switch"),Ue=u.resolveComponent("a-button"),ke=u.resolveComponent("a-divider"),re=u.resolveComponent("ToolOutlined"),be=u.resolveComponent("a-tooltip"),Ve=u.resolveComponent("a-table"),ve=u.resolveComponent("a-tabs"),$e=u.resolveComponent("a-form"),Ae=u.resolveComponent("a-modal");return u.openBlock(),u.createBlock(Ae,{visible:k.value.visible,"onUpdate:visible":Q[23]||(Q[23]=Se=>k.value.visible=Se),title:k.value.title,centered:"",width:"50%",onOk:F},{default:u.withCtx(()=>[u.createVNode($e,{name:"basic",ref_key:"form",ref:E,rules:x.value,model:k.value.form,"label-col":{span:5},"wrapper-col":{span:19},autocomplete:"off",class:"form-mix btn-setting-form"},{default:u.withCtx(()=>[u.createVNode(ve,null,{default:u.withCtx(()=>[u.createVNode(ae,{key:"base",tab:"基本设置"},{default:u.withCtx(()=>[u.createVNode(L,{label:"操作标题",required:"",name:"title"},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.title,"onUpdate:value":Q[0]||(Q[0]=Se=>k.value.form.title=Se)},null,8,["value"])]),_:1}),u.createVNode(L,{label:"操作名称",name:"name",required:""},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.name,"onUpdate:value":Q[1]||(Q[1]=Se=>k.value.form.name=Se)},null,8,["value"])]),_:1}),u.createVNode(L,{label:"操作图标"},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.icon,"onUpdate:value":Q[2]||(Q[2]=Se=>k.value.form.icon=Se)},null,8,["value"])]),_:1}),u.createVNode(L,{label:"按钮类型"},{default:u.withCtx(()=>[u.createVNode(Z,{value:k.value.form.type,"onUpdate:value":Q[3]||(Q[3]=Se=>k.value.form.type=Se),allowClear:"",options:[{value:"primary",label:"主要按钮"},{value:"ghost",label:"幽灵按钮"},{value:"dashed",label:"虚线按钮"},{value:"link",label:"连接按钮"},{value:"text",label:"文本按钮"},{value:"default",label:"默认按钮"}]},null,8,["value"])]),_:1}),u.createVNode(L,{label:"显示顺序"},{default:u.withCtx(()=>[u.createVNode(I,{value:k.value.form.index,"onUpdate:value":Q[4]||(Q[4]=Se=>k.value.form.index=Se)},null,8,["value"])]),_:1}),u.createVNode(L,{label:"按钮大小"},{default:u.withCtx(()=>[u.createVNode(Z,{value:k.value.form.size,"onUpdate:value":Q[5]||(Q[5]=Se=>k.value.form.size=Se),options:[{value:"small",label:"小"},{value:"middle",label:"中"},{value:"large",label:"大"}]},null,8,["value"])]),_:1}),u.createVNode(L,{label:"按钮特性"},{default:u.withCtx(()=>[u.createVNode(G,{checked:k.value.form.props.block,"onUpdate:checked":Q[6]||(Q[6]=Se=>k.value.form.props.block=Se)},{default:u.withCtx(()=>Q[24]||(Q[24]=[u.createTextVNode("自适应 ")])),_:1},8,["checked"]),u.createVNode(G,{checked:k.value.form.props.danger,"onUpdate:checked":Q[7]||(Q[7]=Se=>k.value.form.props.danger=Se)},{default:u.withCtx(()=>Q[25]||(Q[25]=[u.createTextVNode("危险 ")])),_:1},8,["checked"]),u.createVNode(G,{checked:k.value.form.props.ghost,"onUpdate:checked":Q[8]||(Q[8]=Se=>k.value.form.props.ghost=Se)},{default:u.withCtx(()=>Q[26]||(Q[26]=[u.createTextVNode("幽灵 ")])),_:1},8,["checked"])]),_:1})]),_:1}),u.createVNode(ae,{key:"action",tab:"响应设置"},{default:u.withCtx(()=>[u.createVNode(L,{label:"响应方式",required:""},{default:u.withCtx(()=>[u.createVNode(Z,{value:k.value.form.action.type,"onUpdate:value":Q[9]||(Q[9]=Se=>k.value.form.action.type=Se),options:[{value:"link",label:"连接"},{value:"route",label:"路由"},{value:"drawer",label:"抽屉"},{value:"dialog",label:"对话框"}]},null,8,["value"])]),_:1}),["drawer","dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:0,label:"页面编码",help:"根据该页面编码渲染页面内容"},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.action.psn,"onUpdate:value":Q[10]||(Q[10]=Se=>k.value.form.action.psn=Se)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["drawer","dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:1,label:"组件名称",help:"组件方式渲染,Vue全局注册的组件名称,且监听params参数,psn参数"},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.action.component,"onUpdate:value":Q[11]||(Q[11]=Se=>k.value.form.action.component=Se)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),u.createVNode(L,{label:"连接地址"},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.action.href,"onUpdate:value":Q[12]||(Q[12]=Se=>k.value.form.action.href=Se)},null,8,["value"])]),_:1}),["link","route"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:2,label:"连接方式"},{default:u.withCtx(()=>[u.createVNode(Z,{value:k.value.form.action.target,"onUpdate:value":Q[13]||(Q[13]=Se=>k.value.form.action.target=Se),options:[{value:"_blank",label:"新卡片页"},{value:"_self",label:"当前页面"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["drawer"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:3,label:"抽屉位置"},{default:u.withCtx(()=>[u.createVNode(Z,{value:k.value.form.action.position,"onUpdate:value":Q[14]||(Q[14]=Se=>k.value.form.action.position=Se),options:[{value:"left",label:"左侧"},{value:"right",label:"右侧"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["drawer","dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:4,label:"显示标题",required:""},{default:u.withCtx(()=>[u.createVNode(Y,{value:k.value.form.action.title,"onUpdate:value":Q[15]||(Q[15]=Se=>k.value.form.action.title=Se)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["drawer","dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:5,label:"蒙层关闭"},{default:u.withCtx(()=>[u.createVNode(Oe,{checked:k.value.form.action.maskClosable,"onUpdate:checked":Q[16]||(Q[16]=Se=>k.value.form.action.maskClosable=Se),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})):u.createCommentVNode("",!0),["drawer","dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:6,label:"显示宽度"},{default:u.withCtx(()=>[u.createVNode(I,{value:k.value.form.action.width,"onUpdate:value":Q[17]||(Q[17]=Se=>k.value.form.action.width=Se)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["dialog"].includes(k.value.form.action.type)?(u.openBlock(),u.createBlock(L,{key:7,label:"显示高度"},{default:u.withCtx(()=>[u.createVNode(I,{value:k.value.form.action.height,"onUpdate:value":Q[18]||(Q[18]=Se=>k.value.form.action.height=Se)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),u.createVNode(ke,{orientation:"left"},{default:u.withCtx(()=>[Q[29]||(Q[29]=u.createTextVNode("参数列表 ")),u.createVNode(Ue,{size:"small",class:"param-btn",onClick:g},{default:u.withCtx(()=>Q[27]||(Q[27]=[u.createTextVNode("添加")])),_:1}),u.createVNode(Ue,{size:"small",class:"param-btn",danger:"",onClick:v},{default:u.withCtx(()=>Q[28]||(Q[28]=[u.createTextVNode("删除")])),_:1})]),_:1}),u.createVNode(Ve,{columns:o.value,"data-source":k.value.form.action.params,bordered:"",pagination:!1,"row-selection":r.value,"row-key":"name",size:"small"},{headerCell:u.withCtx(({column:Se})=>[["name","title"].includes(Se.key)?(u.openBlock(),u.createElementBlock("span",VZ,[u.createVNode(re),u.createTextVNode(" "+u.toDisplayString(Se.title),1)])):u.createCommentVNode("",!0),["value"].includes(Se.key)?(u.openBlock(),u.createBlock(be,{key:1,title:"支持常量和变量,变量使用{row.属性}方式获取"},{default:u.withCtx(()=>[u.createElementVNode("span",null,[u.createVNode(re),u.createTextVNode(" "+u.toDisplayString(Se.title),1)])]),_:2},1024)):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:Se,text:ht,record:Pe,index:Ze})=>[["name","title","value"].includes(Se.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",(!l.value[Ze]||!Object.keys(l.value[Ze]).includes(Se.dataIndex))&&!ht&&"empty"]),onClick:bt=>h(Ze,Pe,Se.dataIndex)},[l.value[Ze]&&Object.keys(l.value[Ze]).includes(Se.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Y,{key:0,value:l.value[Ze][Se.dataIndex],"onUpdate:value":bt=>l.value[Ze][Se.dataIndex]=bt,onBlur:bt=>m(Ze,Pe,Se.dataIndex),style:{margin:"-5px 0"}},null,8,["value","onUpdate:value","onBlur"])),[[s]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(ht),1)],64))],10,LZ)):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source","row-selection"])]),_:1}),u.createVNode(ae,{key:"event",tab:"事件设置"},{default:u.withCtx(()=>[u.createVNode(L,{label:"点击事件",help:k.value.helps.clickScript||"点击事件处理脚本,上下文参数:ctx,当前按钮对象:btn,当前事件对象:event,返回false则不触发默认逻辑"},{default:u.withCtx(()=>[u.createVNode(u.unref(wf),{modelValue:k.value.form.event.clickScript,"onUpdate:modelValue":Q[19]||(Q[19]=Se=>k.value.form.event.clickScript=Se),placeholder:"请输入点击事件处理脚本",style:{height:"250px"},autofocus:!0,"indent-with-tab":!0,tabSize:8,extensions:C.value,scrollbarStyle:null},null,8,["modelValue","extensions"])]),_:1},8,["help"]),u.createVNode(L,{label:"禁用逻辑",help:k.value.helps.disableScript||"按钮禁用逻辑控制脚本,上下文参数:ctx,当前按钮对象:btn,返回true禁用,否则可用"},{default:u.withCtx(()=>[u.createVNode(u.unref(wf),{modelValue:k.value.form.event.disableScript,"onUpdate:modelValue":Q[20]||(Q[20]=Se=>k.value.form.event.disableScript=Se),placeholder:"请输入按钮禁用逻辑",style:{height:"250px"},autofocus:!0,"indent-with-tab":!0,tabSize:8,extensions:C.value,scrollbarStyle:null},null,8,["modelValue","extensions"])]),_:1},8,["help"]),u.createVNode(L,{label:"显示逻辑",help:k.value.helps.visibleScript||"按钮显示逻辑控制脚本,上下文参数:ctx,当前按钮对象:btn,返回false隐藏,否则可见"},{default:u.withCtx(()=>[u.createVNode(u.unref(wf),{modelValue:k.value.form.event.visibleScript,"onUpdate:modelValue":Q[21]||(Q[21]=Se=>k.value.form.event.visibleScript=Se),placeholder:"请输入按钮显示逻辑",style:{height:"250px"},autofocus:!0,"indent-with-tab":!0,tabSize:8,extensions:C.value,scrollbarStyle:null},null,8,["modelValue","extensions"])]),_:1},8,["help"]),u.createVNode(L,{label:"动态标题",help:k.value.helps.titleScript||"按钮显示标题控制脚本,上下文参数:ctx,当前按钮对象:btn"},{default:u.withCtx(()=>[u.createVNode(u.unref(wf),{modelValue:k.value.form.event.titleScript,"onUpdate:modelValue":Q[22]||(Q[22]=Se=>k.value.form.event.titleScript=Se),placeholder:"请输入按钮动态标题逻辑",style:{height:"250px"},autofocus:!0,"indent-with-tab":!0,tabSize:8,extensions:C.value,scrollbarStyle:null},null,8,["modelValue","extensions"])]),_:1},8,["help"])]),_:1})]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["visible","title"])}}}),[["__scopeId","data-v-937393aa"]]);function jZ(n,e){if(!n)return null;const t=e.split(".");let o=n;for(let r=0;r<t.length;r++)o&&(o=o[t[r]]);return o}const mP={getObjValue:jZ};/*!
|
|
362
|
+
* vue-router v4.4.5
|
|
363
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
364
|
+
* @license MIT
|
|
365
|
+
*/var gP;(function(n){n.pop="pop",n.push="push"})(gP||(gP={}));var OP;(function(n){n.back="back",n.forward="forward",n.unknown=""})(OP||(OP={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var vP;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(vP||(vP={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const FZ=Symbol(process.env.NODE_ENV!=="production"?"router":""),ZZ=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function EO(){return u.inject(FZ)}function yP(n){return u.inject(ZZ)}const zZ=["src"],WZ=["src"],UZ=dn(u.defineComponent({__name:"btn",props:{editor:{type:Object,required:!1},type:{type:String},btn:{type:Object,required:!0},ctx:{type:Object,default(){return{}}}},emits:["click"],setup(n,{emit:e}){const t=n,o=Lh.useSessionStore();u.onMounted(()=>{t.btn.event&&(t.btn.event.clickScript&&(t.btn.event.click=new Function("ctx","btn","event",t.btn.event.clickScript)),t.btn.event.disableScript&&(t.btn.event.disable=new Function("ctx","btn",t.btn.event.disableScript)),t.btn.event.visibleScript&&(t.btn.event.visible=new Function("ctx","btn",t.btn.event.visibleScript)),t.btn.event.titleScript&&(t.btn.event.title=new Function("ctx","btn",t.btn.event.titleScript)))});const r=u.computed(()=>t.btn.event?.title?t.btn.event?.title.call(this,t.ctx,t.btn):t.btn.title),s=u.computed(()=>t.btn.event?.visible?t.btn.event.visible.call(this,t.ctx,t.btn)!=!1:!0),l=u.computed(()=>t.btn.event?.disable?t.btn.event.disable.call(this,t.ctx,t.btn):!1),d=u.ref(null);function h(){d.value?.open(t.btn,x=>{Object.keys(x).forEach(C=>{t.btn[C]=x[C]})})}u.computed(()=>{const x={},C={...t.ctx,user:o.getPrincipal(),token:o.getToken()};return t.btn.action?.params?.filter(k=>k.name&&k.value).forEach(k=>{const M=k.value.matchAll("{[a-zA-Z.]*}"),_=[];let E=null;for(;E=M.next();){if(E&&E.value&&E.value[0]){let F=E.value[0].substring(1,E.value[0].length-1);_.includes(F)||_.push(F)}if(E.done)break}_.length>0?x[k.name]=mP.getObjValue(C,_[0]):x[k.name]=k.value}),x});const m=u.ref({open:!1}),g=u.computed(()=>{if(t.btn.action?.href){let x=t.btn.action.href;const C=x.matchAll("{[a-zA-Z.]*}"),k=[];let M=null;for(;M=C.next();){if(M&&M.value&&M.value[0]){let _=M.value[0].substring(1,M.value[0].length-1);k.includes(_)||k.push(_)}if(M.done)break}if(k.length>0){const _={...t.ctx,user:o.getPrincipal(),token:o.getToken()};for(let E=0;E<k.length;E++){let F=k[E],D=mP.getObjValue(_,F);D?D instanceof Object?x=x.replaceAll("{"+F+"}",JSON.stringify(D)):Array.isArray(D)?x=x.replaceAll("{"+F+"}",D.join(",")):x=x.replaceAll("{"+F+"}",D):x=x.replaceAll("{"+F+"}","")}}return x}return""}),v=e;EO();function b(x){t.btn.event?.click&&t.btn.event.click(t.ctx,t.btn)==!1||((t.btn.action?.type=="drawer"||t.btn.action?.type=="dialog")&&(m.value.open=!0),v("click",{btn:t.btn,event:x}))}return(x,C)=>{const k=u.resolveComponent("a-button"),M=u.resolveComponent("a-drawer"),_=u.resolveComponent("a-modal");return s.value?(u.openBlock(),u.createBlock(ga,{key:0,class:u.normalizeClass(["unione-btn",n.btn.props?.block&&"unione-btn-block"]),model:n.editor?.model.value,onSetting:h,custome:!0,"setting-title":"按钮设置"},{default:u.withCtx(()=>[u.createVNode(k,u.mergeProps({disabled:l.value,size:n.btn.size||"small",type:n.type||n.btn.type,shape:n.btn.shape,class:"unione-btn-"+n.btn.name,loading:n.btn.loading,target:n.btn.action?.target,onClick:b},n.btn.props),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.value)+" ",1)]),_:2},[n.btn.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.btn.icon)))]),key:"0"}:void 0]),1040,["disabled","size","type","shape","class","loading","target"]),n.btn.action?.type=="drawer"?(u.openBlock(),u.createBlock(M,{key:0,open:m.value.open,"onUpdate:open":C[0]||(C[0]=E=>m.value.open=E),title:n.btn.action?.title,placement:n.btn.action?.position,maskClosable:n.btn.action?.maskClosable,width:n.btn.action?.width,bodyStyle:{padding:0,overflow:!n.btn.action.component||n.btn.action.component=="iframe"?"hidden":"auto"}},{default:u.withCtx(()=>[!n.btn.action.component||n.btn.action.component=="iframe"?(u.openBlock(),u.createElementBlock("iframe",{key:0,class:"unione-iframe unione-btn-iframe",src:g.value},null,8,zZ)):u.createCommentVNode("",!0)]),_:1},8,["open","title","placement","maskClosable","width","bodyStyle"])):u.createCommentVNode("",!0),n.btn.action?.type=="dialog"?(u.openBlock(),u.createBlock(_,{key:1,open:m.value.open,"onUpdate:open":C[1]||(C[1]=E=>m.value.open=E),title:n.btn.action?.title,width:n.btn.action?.width,maskClosable:n.btn.action?.maskClosable,centered:"",footer:null},{default:u.withCtx(()=>[!n.btn.action.component||n.btn.action.component=="iframe"?(u.openBlock(),u.createElementBlock("iframe",{key:0,class:"unione-iframe unione-btn-iframe",src:g.value,style:u.normalizeStyle({height:n.btn.action?.height?n.btn.action?.height+"px":""})},null,12,WZ)):u.createCommentVNode("",!0)]),_:1},8,["open","title","width","maskClosable"])):u.createCommentVNode("",!0),u.createVNode(Tf,{ref_key:"btnSetting",ref:d},null,512)]),_:1},8,["class","model"])):u.createCommentVNode("",!0)}}}),[["__scopeId","data-v-255caa3a"]]),HZ={key:0,class:"unione-widget-empty-tip"},XZ=dn(u.defineComponent({__name:"tabs",props:{wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1}},setup(n){const e=n,t=u.ref(),o=u.computed(()=>e.editor?.widget(e.wid)||e.widget);return(r,s)=>{const l=u.resolveComponent("a-tab-pane"),d=u.resolveComponent("a-tabs");return u.openBlock(),u.createBlock(ga,{class:u.normalizeClass(["unione-widget","unione-layout-tabs"]),model:e.editor?.model},{default:u.withCtx(()=>[o.value?(u.openBlock(),u.createBlock(d,{key:0,activeKey:t.value,"onUpdate:activeKey":s[0]||(s[0]=h=>t.value=h)},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value.chidlren,(h,m)=>(u.openBlock(),u.createBlock(l,{key:m,class:"unione-layout-tab-pane"},{tab:u.withCtx(()=>[u.createElementVNode("span",null,[h.icon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.icon),{key:0})):u.createCommentVNode("",!0),u.createTextVNode(" "+u.toDisplayString(h.title),1)])]),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(h.chidlren,(g,v)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(g.widget),{key:v,wid:g.wid,editor:e.editor,widget:g},null,8,["wid","editor","widget"]))),128)),!h.chidlren||!h.chidlren.length?(u.openBlock(),u.createElementBlock("div",HZ,u.toDisplayString(h.emptyTips),1)):u.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1},8,["activeKey"])):u.createCommentVNode("",!0)]),_:1},8,["model"])}}}),[["__scopeId","data-v-1549a6a2"]]),YZ=dn(u.defineComponent({__name:"render",props:{wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1},formData:{type:Object,required:!0}},setup(n){const e=n,t=u.inject("formSetting"),o=u.computed(()=>e.editor?.widget(e.wid)||e.widget||{}),r=u.computed(()=>{const l=o.value.configs||{};return t.platform=="app"&&(l.class||(l.class="all-line"),typeof l.class=="string"&&l.class.indexOf("all-line")<0&&(l.class=l.class+" all-line"),Array.isArray(l.class)&&!l.class.includes("all-line")&&l.class.push("all-line")),l.value!=null&&typeof l.value<"u"&&(e.formData[l.name]==null||typeof e.formData[l.name]>"u")&&(e.formData[l.name]=l.value),l}),s=u.computed(()=>{const l=t.showColumn||3;let d=t.labelWidget||9;if(r.value.labelCol&&(d=r.value.labelCol.span||6),r.value.class&&l>1){if(typeof r.value.class=="string"&&r.value.class.indexOf("all-line")>=0)return{span:Math.round(d/l)};if(Array.isArray(r.value.class)&&r.value.class.includes("all-line"))return{span:Math.round(d/l)}}return{span:d}});return(l,d)=>{const h=u.resolveComponent("a-form-item");return u.openBlock(),u.createBlock(ga,{class:u.normalizeClass(["unione-form-render",r.value.class])},{default:u.withCtx(()=>[o.value?.widget?(u.openBlock(),u.createBlock(h,{key:0,label:r.value.label,name:r.value.name,labelCol:s.value,required:r.value.required,rules:r.value.rules},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(o.value.widget),u.mergeProps({wid:o.value.wid,widget:n.widget,editor:e.editor,value:n.formData[r.value.name],"onUpdate:value":d[0]||(d[0]=m=>n.formData[r.value.name]=m)},r.value.attrs,{style:r.value.style}),null,16,["wid","widget","editor","value","style"]))]),_:1},8,["label","name","labelCol","required","rules"])):u.createCommentVNode("",!0)]),_:1},8,["class"])}}}),[["__scopeId","data-v-afd62b6d"]]),GZ={class:"unione-props-setting unione-form-setting"},KZ={class:"unione-form-btns"},JZ={key:0},$Z=["onClick"],qZ={class:"field-txt"},ez=["onClick"],tz={key:1,class:"field-txt"},nz=["onClick"],oz={key:0,class:"field-txt"},iz={key:3,class:"edit-field"},rz={key:0},sz=["onClick"],az=dn(u.defineComponent({__name:"formSetting",props:{wid:{type:String,required:!0},editor:{type:Object,required:!0}},setup(n){const e=n,t=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"30px",fixed:"left",align:"center",customRender:({index:Z})=>Z+1},{title:"字段名称",dataIndex:"name",key:"name",width:"70px",rowDrag:!0,resizable:!0,fixed:"left",align:"center"},{title:"字段标题",dataIndex:"title",key:"title",width:"90px",align:"center"},{title:"控件类型",dataIndex:"widget",key:"widget",width:"60px",align:"center"},{title:"验证规则",dataIndex:"rules",key:"rules",width:"60px",align:"center"},{title:"表单",dataIndex:"isForm",key:"isForm",width:"40px",align:"center"},{title:"详情",dataIndex:"isView",key:"isView",width:"40px",align:"center"},{title:"转换器",dataIndex:"convertName",key:"convertName",width:"50px",align:"center"}]),o=u.computed(()=>{const Z=e.editor.widget(e.wid)||{};return Z.configs||(Z.configs={}),Z.configs.settings||(Z.configs.settings={}),Z.configs.settings.btns||(Z.configs.settings.btns=[]),Z}),r=u.computed(()=>(e.editor.dataModels()||[]).map(I=>({value:I.sn,label:I.title+"("+I.name+")"}))),s=u.computed(()=>{const Z=o.value.configs.settings.btns,I=Z.map(G=>G.name);if(!I.includes("save")){const G={title:"保存",type:"primary",index:0,visible:!0,name:"save"};Z.splice(G.index,0,G)}if(!I.includes("submit")){const G={title:"提交",type:"primary",index:1,visible:!0,name:"submit"};let ae=G.index||1;Z.splice(ae,0,G)}if(!I.includes("reset")){const G={title:"重置",type:"default",index:2,visible:!0,props:{danger:!0},name:"reset"};Z.splice(G.index,0,G)}if(!I.includes("back")){const G={title:"返回",type:"default",index:3,visible:!0,name:"back"};Z.splice(G.index,0,G)}return Z}),l=u.ref(null);function d(Z){l.value&&l.value.open(Z,I=>{I.visible=!0,Object.keys(I).forEach(G=>{Z[G]=I[G]}),o.value.configs.settings.btns.sort((G,ae)=>{const Oe=G.index||1,Ue=ae.index||1;return Oe-Ue}),o.value.configs.settings.btns=[...o.value.configs.btns]})}function h(){const Z=o.value.configs.settings.btns.length+1;let I={title:"新增",name:"new_"+Z,index:Z,size:"small",visible:!0,type:"default",props:{block:!1,ghost:!1,danger:!1},event:{}};I.name="new_"+o.value.configs.settings.btns.length;const G=o.value.configs.settings.btns.filter(ae=>ae.name==I.name).length;G>0&&(I.name=I.name+G),o.value.configs.settings.btns.push(I),e.editor.widget(e.wid,o.value),l.value.open(I,ae=>{Object.keys(ae).forEach(Oe=>{I[Oe]=ae[Oe]}),o.value.configs.btns=[...o.value.configs.btns]})}function m(Z){const I=()=>{if(["save","submit","reset","back"].includes(Z.name))Z.visible=!1,o.value.configs.settings.btns=[...o.value.configs.settings.btns];else{const G=[];o.value.configs.settings.btns.forEach(ae=>{ae.name!=Z.name&&G.push(ae)}),o.value.configs.settings.btns=G}};Bt.confirm({title:"确认信息",content:"请确定删除该工具?",onOk:()=>{I()}})}const g=u.ref({visible:!1,field:{},props:{},widgets:[{value:"a-input",label:"文本框"},{value:"a-textarea",label:"文本域"},{value:"a-input",label:"文本框"},{value:"a-checkbox",label:"多选框"},{value:"a-radio",label:"单选框"},{value:"a-input-number",label:"数值框"},{value:"a-select",label:"下拉框"},{value:"a-tree-select",label:"下拉树"},{value:"a-date-picker",label:"日期框"},{value:"a-input-password",label:"密码框"},{value:"a-input-search",label:"搜索框"},{value:"a-upload",label:"文件框"},{value:"unione-avatar",label:"头像框",disabled:!0},{value:"unione-picture-card",label:"照片墙"},{value:"a-switch",label:"开关"},{value:"a-slider",label:"滑块"}],widgetName:Z=>{const I=g.value.widgets.filter(G=>G.value==Z);return I[0]?I[0].label:Z},toSetting:()=>{}}),v=u.ref({visible:!1,field:{},props:{},showInfo:Z=>{let I="";return Z.rules&&(I=Z.rules.filter(G=>G.enable).length||""),I&&(I="("+I+")"),I},toSetting:()=>{const Z=v.value.props,I={name:"range",trigger:Z.trigger,whitespace:Z.whitespace,message:Z.rangeMessage};Z.rangeMin!=null&&Z.rangeMin!=null&&(I.min=Z.rangeMin,I.enable=!0),Z.rangeMax!=null&&Z.rangeMax!=null&&(I.max=Z.rangeMax,I.enable=!0);const G={name:"reg",trigger:Z.trigger,whitespace:Z.whitespace,message:Z.regMessage};Z.regExpress&&(G.pattern=Z.regExpress,G.enable=!0),v.value.field.rules=[I,G],v.value.visible=!1,v.value.props={},console.log("rule",v.value.field.rules)}});function b(Z){v.value.visible=!0,v.value.field=Z;const I=Z.rules||[],G={trigger:"change",whitespace:!0};I.forEach(ae=>{ae.name=="reg"&&(G.trigger=ae.trigger,G.whitespace=ae.whitespace,G.regExpress=ae.pattern,G.regMessage=ae.message),ae.name=="range"&&(G.rangeMin=ae.min,G.rangeMax=ae.max,G.rangeMessage=ae.message)}),v.value.props=G}const x=u.ref({title:"列头设置",prop:"isList",visible:!1,field:{},show:{},toSetting:()=>{x.value.visible=!1}});function C(Z,I){const G=E.value.filter(Oe=>Oe.name==Z.name);G.forEach(Oe=>{I!="isSort"?Oe[I]=!0:Oe[I]=!Oe[I]});const ae=G[0];if(!(!ae||I=="isSort")){switch(x.value.prop=I,x.value.field=Z,ae.show||(ae.show={}),I){case"isQuery":ae.show.query||(ae.show.query={}),x.value.show=ae.show.query,x.value.title=`查询设置/${Z.title}(${Z.name})`;break;case"isForm":ae.show.form||(ae.show.form={}),x.value.show=ae.show.form,x.value.title=`表单设置/${Z.title}(${Z.name})`;break;case"isView":ae.show.view||(ae.show.view={}),x.value.show=ae.show.view,x.value.title=`详情设置/${Z.title}(${Z.name})`;break;case"isList":ae.show.list||(ae.show.list={}),x.value.show=ae.show.list,x.value.title=`列头设置/${Z.title}(${Z.name})`;break}x.value.visible=!0}}const k=u.ref({visible:!1,field:{},convert:{},optionColumn:[{title:"选项标题",dataIndex:"label"},{title:"选项值",dataIndex:"value"},{title:"操作",dataIndex:"action",width:"20%"}],toAddOption:()=>{k.value.convert.options||(k.value.convert.options=[]),k.value.convert.options.push({label:"",value:""})},toDelOption:(Z,I)=>{k.value.convert.options.splice(Z,1)},toSetting:()=>{k.value.visible=!1}});function M(Z){k.value.visible=!0,k.value.field=Z,k.value.convert=Z.convert||{}}const _=u.computed(()=>e.editor?.dataModel(o.value.dataModel||"none")||{}),E=u.computed(()=>_.value.fields?.length?_.value.fields:[]),F={mounted:Z=>Z.focus()},D=u.ref({});function Q(Z,I){const G={};I=="convertName"?G[I]=Z.convert?.type:G[I]=Z[I]||"",D.value={},D.value[Z.name]=G}function Y(Z,I){{D.value={};return}}function L(Z,I){E.value.filter(ae=>ae.name==Z.name).forEach(ae=>{ae[I]=!ae[I]})}return(Z,I)=>{const G=u.resolveComponent("a-divider"),ae=u.resolveComponent("CloseOutlined"),Oe=u.resolveComponent("a-button"),Ue=u.resolveComponent("PlusOutlined"),ke=u.resolveComponent("a-select"),re=u.resolveComponent("ToolOutlined"),be=u.resolveComponent("a-checkbox"),Ve=u.resolveComponent("a-table"),ve=u.resolveComponent("a-select-option"),$e=u.resolveComponent("a-form-item"),Ae=u.resolveComponent("a-form"),Se=u.resolveComponent("a-modal"),ht=u.resolveComponent("a-checkbox-group"),Pe=u.resolveComponent("a-input-number"),Ze=u.resolveComponent("a-input"),bt=u.resolveComponent("a-col"),vo=u.resolveComponent("a-row");return u.openBlock(),u.createElementBlock("div",GZ,[u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[23]||(I[23]=[u.createTextVNode("按钮设置")])),_:1}),u.createElementVNode("div",KZ,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,Re=>(u.openBlock(),u.createBlock(Oe,u.mergeProps({key:Re.name,class:["btn",Re.name,!Re.visible&&"deleted"],type:Re.visible?Re.type:"default",size:Re.size,ref_for:!0},Re.props||{},{onClick:hn=>d(Re)}),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(Re.title)+" ",1),Re.visible?(u.openBlock(),u.createBlock(ae,{key:0,class:"btn-del",onClick:u.withModifiers(hn=>m(Re),["stop"])},null,8,["onClick"])):u.createCommentVNode("",!0)]),_:2},[Re.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(Re.icon)))]),key:"0"}:void 0]),1040,["class","type","size","onClick"]))),128)),u.createVNode(Oe,{class:u.normalizeClass(["btn","btn-add"]),size:"small",onClick:I[0]||(I[0]=Re=>h())},{default:u.withCtx(()=>[u.createVNode(Ue)]),_:1})]),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[24]||(I[24]=[u.createTextVNode("表单设置")])),_:1}),I[36]||(I[36]=u.createTextVNode(" 数据模型:")),u.createVNode(ke,{class:"data-model-list",options:r.value,value:o.value.dataModel,"onUpdate:value":I[1]||(I[1]=Re=>o.value.dataModel=Re)},null,8,["options","value"]),u.createVNode(Ve,{columns:t.value,"data-source":E.value,bordered:"",scroll:{x:800},pagination:!1,"row-key":"name",size:"small"},{headerCell:u.withCtx(({column:Re})=>[["widget","rules","convertName"].includes(Re.key)?(u.openBlock(),u.createElementBlock("span",JZ,[u.createVNode(re),u.createTextVNode(" "+u.toDisplayString(Re.title),1)])):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:Re,text:hn,record:ft})=>[["rules"].includes(Re.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",!v.value.showInfo(ft)&&"empty"]),onClick:pn=>b(ft)},[u.createElementVNode("span",qZ,u.toDisplayString(v.value.showInfo(ft)),1),v.value.showInfo(ft)?(u.openBlock(),u.createBlock(Oe,{key:0,type:"link"},{default:u.withCtx(()=>I[25]||(I[25]=[u.createTextVNode("设置")])),_:1})):u.createCommentVNode("",!0)],10,$Z)):["widget"].includes(Re.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["edit-field",(!D.value[ft.name]||!Object.keys(D.value[ft.name]).includes(Re.dataIndex))&&!hn&&"empty"]),onClick:pn=>Q(ft,Re.dataIndex)},[D.value[ft.name]&&Object.keys(D.value[ft.name]).includes(Re.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(ke,{key:0,value:ft[Re.dataIndex],"onUpdate:value":pn=>ft[Re.dataIndex]=pn,options:g.value.widgets,onBlur:I[2]||(I[2]=pn=>Y())},null,8,["value","onUpdate:value","options"])),[[F]]):(u.openBlock(),u.createElementBlock("span",tz,u.toDisplayString(g.value.widgetName(hn)),1))],10,ez)):["convertName"].includes(Re.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(["edit-field",(!D.value[ft.name]||!Object.keys(D.value[ft.name]).includes(Re.dataIndex))&&!ft.convert?.type&&"empty"]),onClick:pn=>Q(ft,Re.dataIndex)},[D.value[ft.name]&&Object.keys(D.value[ft.name]).includes(Re.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(ke,{key:0,value:ft[Re.dataIndex],"onUpdate:value":pn=>ft[Re.dataIndex]=pn,options:[{value:"dict",label:"字典"},{value:"option",label:"静态"}],onBlur:I[3]||(I[3]=pn=>Y())},null,8,["value","onUpdate:value"])),[[F]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[ft.convert?.type?(u.openBlock(),u.createElementBlock("span",oz,u.toDisplayString(ft.convert.type=="dict"?"字典":"静态"),1)):u.createCommentVNode("",!0),ft.convert?.type?(u.openBlock(),u.createBlock(Oe,{key:1,type:"link",onClick:u.withModifiers(pn=>M(ft),["stop"])},{default:u.withCtx(()=>I[26]||(I[26]=[u.createTextVNode("设置")])),_:2},1032,["onClick"])):u.createCommentVNode("",!0)],64))],10,nz)):["isForm","isView"].includes(Re.dataIndex)?(u.openBlock(),u.createElementBlock("div",iz,[u.createVNode(be,{checked:ft[Re.dataIndex],onClick:pn=>L(ft,Re.dataIndex)},null,8,["checked","onClick"]),u.createVNode(Oe,{type:"link",onClick:pn=>C(ft,Re.dataIndex)},{default:u.withCtx(()=>I[27]||(I[27]=[u.createTextVNode("设置")])),_:2},1032,["onClick"])])):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),u.createVNode(Se,{visible:g.value.visible,"onUpdate:visible":I[5]||(I[5]=Re=>g.value.visible=Re),title:"控件设置",onOk:g.value.toSetting},{default:u.withCtx(()=>[u.createVNode(Ae,{model:g.value.props,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off"},{default:u.withCtx(()=>[g.value.field.widget=="a-select"?(u.openBlock(),u.createBlock($e,{key:0,label:"下拉框类型"},{default:u.withCtx(()=>[u.createVNode(ke,{value:g.value.props.mode,"onUpdate:value":I[4]||(I[4]=Re=>g.value.props.mode=Re),allowClear:!0},{default:u.withCtx(()=>[u.createVNode(ve,{value:"multiple"},{default:u.withCtx(()=>I[28]||(I[28]=[u.createTextVNode("多选")])),_:1}),u.createVNode(ve,{value:"tags"},{default:u.withCtx(()=>I[29]||(I[29]=[u.createTextVNode("标签")])),_:1})]),_:1},8,["value"])]),_:1})):u.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","onOk"]),u.createVNode(Se,{visible:v.value.visible,"onUpdate:visible":I[13]||(I[13]=Re=>v.value.visible=Re),title:"规则设置",onOk:v.value.toSetting},{default:u.withCtx(()=>[u.createVNode(Ae,{model:v.value.props,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off",class:"form-mix"},{default:u.withCtx(()=>[u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[30]||(I[30]=[u.createTextVNode("基本设置")])),_:1}),u.createVNode($e,{label:"触发时机"},{default:u.withCtx(()=>[u.createVNode(ht,{value:v.value.props.trigger,"onUpdate:value":I[6]||(I[6]=Re=>v.value.props.trigger=Re),options:["change","blur"]},null,8,["value"])]),_:1}),v.value.field.isNull?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock($e,{key:0,label:"忽略空格",class:"checkbox-tips"},{default:u.withCtx(()=>[u.createVNode(be,{value:v.value.props.whitespace,"onUpdate:value":I[7]||(I[7]=Re=>v.value.props.whitespace=Re),checked:v.value.props.whitespace},{default:u.withCtx(()=>I[31]||(I[31]=[u.createTextVNode(" 必填验证开启时,是否忽略空格 ")])),_:1},8,["value","checked"])]),_:1})),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[32]||(I[32]=[u.createTextVNode("数值区间")])),_:1}),u.createVNode($e,{label:"有效区间"},{default:u.withCtx(()=>[u.createVNode(Pe,{value:v.value.props.rangeMin,"onUpdate:value":I[8]||(I[8]=Re=>v.value.props.rangeMin=Re)},null,8,["value"]),I[33]||(I[33]=u.createElementVNode("span",{style:{margin:"auto 5px"}},null,-1)),u.createVNode(Pe,{value:v.value.props.rangeMax,"onUpdate:value":I[9]||(I[9]=Re=>v.value.props.rangeMax=Re)},null,8,["value"])]),_:1}),u.createVNode($e,{label:"错误提示"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:v.value.props.rangeMessage,"onUpdate:value":I[10]||(I[10]=Re=>v.value.props.rangeMessage=Re)},null,8,["value"])]),_:1}),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[34]||(I[34]=[u.createTextVNode("正则验证")])),_:1}),u.createVNode($e,{label:"表达式"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:v.value.props.regExpress,"onUpdate:value":I[11]||(I[11]=Re=>v.value.props.regExpress=Re)},null,8,["value"])]),_:1}),u.createVNode($e,{label:"错误提示"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:v.value.props.regMessage,"onUpdate:value":I[12]||(I[12]=Re=>v.value.props.regMessage=Re)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["visible","onOk"]),u.createVNode(Se,{visible:x.value.visible,"onUpdate:visible":I[20]||(I[20]=Re=>x.value.visible=Re),title:x.value.title,onOk:x.value.toSetting},{default:u.withCtx(()=>[u.createVNode(Ae,{model:x.value.show,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off"},{default:u.withCtx(()=>[u.createVNode($e,{label:"显示顺序"},{default:u.withCtx(()=>[u.createVNode(Pe,{value:x.value.show.index,"onUpdate:value":I[14]||(I[14]=Re=>x.value.show.index=Re)},null,8,["value"])]),_:1}),["isQuery"].includes(x.value.prop)?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock($e,{key:0,label:"显示宽度"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:x.value.show.width,"onUpdate:value":I[15]||(I[15]=Re=>x.value.show.width=Re)},null,8,["value"])]),_:1})),["isForm","isView"].includes(x.value.prop)?(u.openBlock(),u.createBlock($e,{key:1,label:"标题宽度"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:x.value.show.labelWidth,"onUpdate:value":I[16]||(I[16]=Re=>x.value.show.labelWidth=Re)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isForm","isView"].includes(x.value.prop)?(u.openBlock(),u.createBlock($e,{key:2,label:"控件宽度"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:x.value.show.valueWidth,"onUpdate:value":I[17]||(I[17]=Re=>x.value.show.valueWidth=Re)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isList"].includes(x.value.prop)?(u.openBlock(),u.createBlock($e,{key:3,label:"固定位置"},{default:u.withCtx(()=>[u.createVNode(ke,{value:x.value.show.fixed,"onUpdate:value":I[18]||(I[18]=Re=>x.value.show.fixed=Re),options:[{value:"",label:"无"},{value:"left",label:"靠左"},{value:"right",label:"靠右"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isList"].includes(x.value.prop)?(u.openBlock(),u.createBlock($e,{key:4,label:"对齐方式"},{default:u.withCtx(()=>[u.createVNode(ke,{value:x.value.show.align,"onUpdate:value":I[19]||(I[19]=Re=>x.value.show.align=Re),options:[{value:"left",label:"左对齐"},{value:"center",label:"居中"},{value:"right",label:"右对齐"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","title","onOk"]),u.createVNode(Se,{visible:k.value.visible,"onUpdate:visible":I[22]||(I[22]=Re=>k.value.visible=Re),title:k.value.convert.type=="dict"?"字典设置":"选项设置",onOk:k.value.toSetting},{default:u.withCtx(()=>[k.value.convert.type!="dict"?(u.openBlock(),u.createElementBlock("div",rz,[u.createVNode(Oe,{class:"editable-add-btn",style:{"margin-bottom":"8px"},onClick:k.value.toAddOption},{default:u.withCtx(()=>I[35]||(I[35]=[u.createTextVNode("新增")])),_:1},8,["onClick"]),u.createVNode(Ve,{columns:k.value.optionColumn,"data-source":k.value.convert.options,size:"small"},{bodyCell:u.withCtx(({column:Re,record:hn,index:ft})=>[Re.dataIndex==="label"?(u.openBlock(),u.createBlock(Ze,{key:0,value:hn.label,"onUpdate:value":pn=>hn.label=pn,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):u.createCommentVNode("",!0),Re.dataIndex==="value"?(u.openBlock(),u.createBlock(Ze,{key:1,value:hn.value,"onUpdate:value":pn=>hn.value=pn,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):u.createCommentVNode("",!0),Re.dataIndex==="action"?(u.openBlock(),u.createElementBlock("a",{key:2,onClick:pn=>k.value.toDelOption(ft,hn)},"删除",8,sz)):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])])):u.createCommentVNode("",!0),k.value.convert.type=="dict"?(u.openBlock(),u.createBlock(Ae,{key:1,model:k.value.convert,name:"basic","label-col":{span:8},"wrapper-col":{span:16},autocomplete:"off"},{default:u.withCtx(()=>[u.createVNode(vo,{type:"flex",style:{width:"100%"}},{default:u.withCtx(()=>[u.createVNode(bt,{span:24,order:1},{default:u.withCtx(()=>[u.createVNode($e,{label:"字典名称:"},{default:u.withCtx(()=>[u.createVNode(Ze,{value:k.value.convert.dict,"onUpdate:value":I[21]||(I[21]=Re=>k.value.convert.dict=Re)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])):u.createCommentVNode("",!0)]),_:1},8,["visible","title","onOk"]),u.createVNode(Tf,{ref_key:"btnSetting",ref:l},null,512)])}}}),[["__scopeId","data-v-c0f75bb9"]]),lz={class:"form-btns"},cz=dn(u.defineComponent({__name:"form",props:{wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1}},emits:["btnClick"],setup(n,{emit:e}){const t=n,o=u.ref({}),r=u.ref(null),s=u.computed(()=>{const M=t.editor?.widget(t.wid)||t.widget||{};return M.configs||(M.configs={}),M}),l=u.computed(()=>s.value.configs?.widgets||[]),d=u.computed(()=>s.value.configs?.settings||{});u.provide("formSetting",d.value);const h=yP(),m=EO();u.onMounted(()=>{console.log("router params",h.params),console.log("router query",h.query)});const g=u.computed(()=>{const M=d.value.btns||[],_=M.map(E=>E.name);if(!_.includes("save")){const E={title:"保存",type:"primary",index:0,visible:!0,name:"save"};M.splice(E.index,0,E)}if(!_.includes("submit")){const E={title:"提交",type:"primary",index:1,visible:!0,name:"submit"};let F=E.index||1;M.splice(F,0,E)}if(!_.includes("reset")){const E={title:"重置",type:"default",index:2,visible:!0,props:{danger:!0},name:"reset"};M.splice(E.index,0,E)}if(!_.includes("back")){const E={title:"返回",type:"default",index:3,visible:!0,name:"back"};M.splice(E.index,0,E)}return M}),v=e;function b({btn:M,event:_}){M.name=="save"&&x(),M.name=="reset"&&C(),M.name=="validate",M.name=="back"&&k(),v("btnClick",{btn:M,event:_})}function x(){alert(o)}function C(){r.value&&r.value.resetFields()}function k(){m.back()}return(M,_)=>{const E=u.resolveComponent("a-form"),F=u.resolveComponent("unione-btn");return u.openBlock(),u.createBlock(ga,{class:"unione-form-widget","setting-title":"表单设置",model:n.editor?.model.value},u.createSlots({default:u.withCtx(()=>[u.createVNode(E,{ref_key:"formObj",ref:r,model:o.value,class:u.normalizeClass(["unione-form",n.editor?.model.value,"form-layout-col-"+(d.value.showColumn||3)])},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(l.value,D=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(D.render||D.widget),{key:D.wid,wid:D.wid,widget:D,editor:n.editor,formData:o.value},null,8,["wid","widget","editor","formData"]))),128))]),_:1},8,["model","class"]),u.createElementVNode("div",lz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g.value,D=>(u.openBlock(),u.createBlock(F,{key:D.name,btn:D,editor:n.editor,ctx:o.value,onClick:b},null,8,["btn","editor","ctx"]))),128))])]),_:2},[n.editor&&n.wid?{name:"widget-setting",fn:u.withCtx(()=>[u.createVNode(az,{wid:n.wid,editor:n.editor},null,8,["wid","editor"])]),key:"0"}:void 0]),1032,["model"])}}}),[["__scopeId","data-v-ab85bf08"]]),uz={class:"unione-props-setting unione-query-setting"},dz={class:"unione-query-opts"},fz={key:0},hz=["onClick"],pz={key:1},mz={key:1,class:"edit-field"},gz=["onClick"],Oz=dn(u.defineComponent({__name:"querySetting",props:{wid:{type:String,required:!0},editor:{type:Object,required:!0}},setup(n){const e=n,t=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"30px",fixed:"left",align:"center",customRender:({index:F})=>F+1},{title:"字段名称",dataIndex:"name",key:"name",width:"70px",rowDrag:!0,resizable:!0,fixed:"left",align:"center"},{title:"字段标题",dataIndex:"title",key:"title",width:"90px",align:"center"},{title:"查询",dataIndex:"isQuery",key:"isQuery",width:"30px",align:"center"},{title:"查询类型",dataIndex:"queryType",key:"queryType",width:"55px",align:"center"},{title:"显示顺序",dataIndex:"showIndex",key:"showIndex",width:"55px",align:"center"}]),o=u.computed(()=>{const F=e.editor.widget(e.wid)||{};return F.configs||(F.configs={}),F.configs.btns||(F.configs.btns=[]),F}),r=u.computed(()=>(e.editor.dataModels()||[]).map(D=>({value:D.sn,label:D.title+"("+D.name+")"}))),s=u.computed(()=>{const F=[],D=[];return o.value.configs.btns||(o.value.configs.btns=[]),o.value.configs.btns.forEach(Q=>{F.push(Q),D.push(Q.name)}),D.includes("query")||F.splice(0,0,{visible:!0,name:"query",title:"搜索",type:"primary"}),D.includes("reset")||F.splice(1,0,{visible:!0,name:"reset",title:"重置",type:"default"}),D.includes("reset")||F.splice(1,0,{visible:!0,name:"advanced",title:"高级搜索",type:"default"}),F.sort((Q,Y)=>{const L=Q.index||1,Z=Y.index||1;return L-Z}),F}),l=u.ref(null);function d(F){l.value&&l.value.open(F,D=>{D.visible=!0,Object.keys(D).forEach(Q=>{F[Q]=D[Q]}),o.value.configs.btns.sort((Q,Y)=>{const L=Q.index||1,Z=Y.index||1;return L-Z}),o.value.configs.btns=[...o.value.configs.btns]})}function h(){const F=o.value.configs.btns.length+1;let D={title:"新增",name:"new_"+F,size:"default",index:F,visible:!0,type:"default",props:{block:!1,ghost:!1,danger:!1},event:{clickScript:"",titleScript:"",disableScript:"",visibleScript:""}};o.value.configs.btns.push(D),e.editor.widget(e.wid,o.value),l.value.open(D,Q=>{Object.keys(Q).forEach(Y=>{D[Y]=Q[Y]}),o.value.configs.btns=[...o.value.configs.btns]})}function m(F){const D=()=>{if(["query","reset","advanced"].includes(F.name))F.visible=!1,o.value.configs.btns=[...o.value.configs.btns];else{const Q=[];o.value.configs.btns.forEach(Y=>{Y.name!=F.name&&Q.push(Y)}),o.value.configs.btns=Q}};Bt.confirm({title:"确认信息",content:"请确定删除该操作?",onOk:()=>{D()}})}const g=u.computed(()=>e.editor?.dataModel(o.value.dataModel||"none")||{}),v=u.computed(()=>g.value.fields?.length?g.value.fields:[]),b={mounted:F=>F.focus()},x=u.ref({});function C(){const F=Object.keys(x.value);if(F.length)for(let D in F){const Q=v.value.filter(Y=>Y.name==D);if(Q&&Q[0]){let Y=x.value[D];Object.keys(Y).forEach(L=>{if(L=="showIndex"){const Z=Q[0].show?.query||{};Q[0].show||(Q[0].show={}),Q[0].show.query={...Z,index:Y[L]}}else Q[0][L]=Y[L]})}}x.value={}}function k(F,D){C();const Q={};Q[D]=F[D]||"",D=="showIndex"&&(Q[D]=F.show?.query?.index),x.value[F.name]=Q}function M(F,D){if(!F||!D){x.value={};return}const Q=x.value[F.name][D];if(D=="showIndex"){const Y=F.show?.query||{};F.show||(F.show={}),F.show.query={...Y,index:Q}}else F[D]=Q;x.value={}}function _(F,D){v.value.filter(Y=>Y.name==F.name).forEach(Y=>{Y[D]=!Y[D]})}const E=u.ref({options:[{value:"keywords",label:"关键字"},{value:"equle",label:"精确"},{value:"like",label:"模糊"},{value:"like-right",label:"右模糊"},{value:"like-left",label:"左模糊"},{value:"range",label:"范围"}],showLabel:F=>{const D=E.value.options.filter(Q=>Q.value==F);return D[0]?D[0].label:F}});return(F,D)=>{const Q=u.resolveComponent("a-divider"),Y=u.resolveComponent("CloseOutlined"),L=u.resolveComponent("a-button"),Z=u.resolveComponent("PlusOutlined"),I=u.resolveComponent("a-select"),G=u.resolveComponent("ToolOutlined"),ae=u.resolveComponent("a-checkbox"),Oe=u.resolveComponent("a-input-number"),Ue=u.resolveComponent("a-table");return u.openBlock(),u.createElementBlock("div",uz,[u.createVNode(Q,{orientation:"left"},{default:u.withCtx(()=>D[3]||(D[3]=[u.createTextVNode("查询按钮")])),_:1}),u.createElementVNode("div",dz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,ke=>(u.openBlock(),u.createBlock(L,u.mergeProps({key:ke.name,class:["btn",ke.name,!ke.visible&&"deleted"],type:ke.visible?ke.type:"default",size:ke.size||"default",ref_for:!0},ke.props||{},{onClick:re=>d(ke)}),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(ke.title)+" ",1),ke.visible?(u.openBlock(),u.createBlock(Y,{key:0,class:"btn-del",onClick:u.withModifiers(re=>m(ke),["stop"])},null,8,["onClick"])):u.createCommentVNode("",!0)]),_:2},[ke.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(ke.icon)))]),key:"0"}:void 0]),1040,["class","type","size","onClick"]))),128)),u.createVNode(L,{class:u.normalizeClass(["btn","btn-add"]),onClick:D[0]||(D[0]=ke=>h()),size:"small"},{default:u.withCtx(()=>[u.createVNode(Z)]),_:1})]),u.createVNode(Q,{orientation:"left"},{default:u.withCtx(()=>D[4]||(D[4]=[u.createTextVNode("查询字段")])),_:1}),D[5]||(D[5]=u.createTextVNode(" 数据模型:")),u.createVNode(I,{class:"data-model-list",options:r.value,value:o.value.dataModel,"onUpdate:value":D[1]||(D[1]=ke=>o.value.dataModel=ke)},null,8,["options","value"]),u.createVNode(Ue,{columns:t.value,"data-source":v.value,bordered:"",scroll:{x:800},pagination:!1,"row-key":"name",size:"small"},{headerCell:u.withCtx(({column:ke})=>[["showIndex","queryType"].includes(ke.key)?(u.openBlock(),u.createElementBlock("span",fz,[u.createVNode(G),u.createTextVNode(" "+u.toDisplayString(ke.title),1)])):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:ke,text:re,record:be})=>[["queryType"].includes(ke.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",(!x.value[be.name]||!Object.keys(x.value[be.name]).includes(ke.dataIndex))&&!re&&"empty"]),onClick:Ve=>k(be,ke.dataIndex)},[x.value[be.name]&&Object.keys(x.value[be.name]).includes(ke.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(I,{key:0,value:be[ke.dataIndex],"onUpdate:value":Ve=>be[ke.dataIndex]=Ve,allowClear:!0,options:E.value.options,onBlur:D[2]||(D[2]=Ve=>M())},null,8,["value","onUpdate:value","options"])),[[b]]):(u.openBlock(),u.createElementBlock("span",pz,u.toDisplayString(E.value.showLabel(re)),1))],10,hz)):["isQuery"].includes(ke.dataIndex)?(u.openBlock(),u.createElementBlock("div",mz,[u.createVNode(ae,{checked:be[ke.dataIndex],onClick:Ve=>_(be,ke.dataIndex)},null,8,["checked","onClick"])])):ke.dataIndex=="showIndex"?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(["edit-field",(!x.value[be.name]||!Object.keys(x.value[be.name]).includes(ke.dataIndex))&&!re&&"empty"]),onClick:Ve=>k(be,ke.dataIndex)},[x.value[be.name]&&Object.keys(x.value[be.name]).includes(ke.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Oe,{key:0,value:x.value[be.name][ke.dataIndex],"onUpdate:value":Ve=>x.value[be.name][ke.dataIndex]=Ve,onBlur:Ve=>M(be,ke.dataIndex),style:{margin:"-5px 0"}},null,8,["value","onUpdate:value","onBlur"])),[[b]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(be.show?.query?.index||" "),1)],64))],10,gz)):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),u.createVNode(Tf,{ref_key:"btnSetting",ref:l},null,512)])}}}),[["__scopeId","data-v-ce575063"]]),vz={class:"query-btn"},yz={class:"btn-advanced-overlay"},bz=dn(u.defineComponent({__name:"queryForm",props:{wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1}},emits:["query","reset","btnClick"],setup(n,{emit:e}){const t=n,o=u.computed(()=>{const b=t.editor?.widget(t.wid)||t.widget||{};return b.configs||(b.configs={}),b.configs.btns||(b.configs.btns=[]),b}),r=u.computed(()=>t.editor?.dataModel(o.value.dataModel||"none")||{});function s(){}const l=u.computed(()=>({visible:!0,name:"keywords",title:"关键字",placeholder:"请输入搜索内容",...o.value.configs?.keywords||{}})),d=u.computed(()=>{let b=[];return o.value.configs?.fields?.length?b=o.value.configs?.fields:r.value.fields?.length&&(b=r.value.fields.filter(x=>x.isQuery)),b.sort((x,C)=>{const k=x.show?.query?.index||1,M=C.show?.query?.index||1;return k-M}),b}),h=u.computed(()=>o.value.configs?.labelWidth||6),m=u.computed(()=>{const b=o.value.configs.btns.filter(x=>x.name=="advanced")[0]||{};return b.event?.clickScript&&(b.event.click=new Function("ctx","btn","event",b.event.clickScript)),b.event?.disableScript&&(b.event.disable=new Function("ctx","btn",b.event.disableScript)),b.event?.visibleScript&&(b.event.visible=new Function("ctx","btn",b.event.visibleScript)),{visible:!0,name:"advanced",title:"高级搜索",...b}}),g=u.computed(()=>{const b=o.value.configs.btns.filter(C=>C.name!="advanced"),x=[];return b.forEach(C=>{x.push(C.name)}),x.includes("query")||b.splice(0,0,{visible:!0,name:"query",title:"搜索",type:"primary"}),x.includes("reset")||b.splice(1,0,{visible:!0,name:"reset",title:"重置",type:"default"}),b.sort((C,k)=>{const M=C.index||1,_=k.index||1;return M-_}),b}),v=u.ref({});return(b,x)=>{const C=u.resolveComponent("a-input"),k=u.resolveComponent("a-form-item"),M=u.resolveComponent("unione-btn"),_=u.resolveComponent("a-checkbox"),E=u.resolveComponent("DownOutlined"),F=u.resolveComponent("a-button"),D=u.resolveComponent("a-dropdown"),Q=u.resolveComponent("a-form");return u.openBlock(),u.createBlock(ga,{class:"unione-query-form",model:t.editor?.model.value,onSaving:s,"setting-title":"查询设置"},u.createSlots({default:u.withCtx(()=>[u.createVNode(Q,{model:v.value,layout:"horizontal","label-col":{span:h.value}},{default:u.withCtx(()=>[l.value.visible?(u.openBlock(),u.createBlock(k,{key:0,label:l.value.title,class:"query-field keywords",name:l.value.name,style:u.normalizeStyle({width:h.value})},{default:u.withCtx(()=>[u.createVNode(C,{placeholder:l.value.placeholder,value:v.value[l.value.name],"onUpdate:value":x[0]||(x[0]=Y=>v.value[l.value.name]=Y)},null,8,["placeholder","value"])]),_:1},8,["label","name","style"])):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value,Y=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:Y.name},[Y.visible?(u.openBlock(),u.createBlock(k,{key:0,label:Y.title,class:u.normalizeClass(["query-field",Y.name]),style:u.normalizeStyle({width:h.value}),name:Y.name},{default:u.withCtx(()=>[u.createVNode(C,{placeholder:Y.placeholder,value:v.value[Y.name],"onUpdate:value":L=>v.value[Y.name]=L},null,8,["placeholder","value","onUpdate:value"])]),_:2},1032,["label","class","style","name"])):u.createCommentVNode("",!0)],64))),128)),u.createElementVNode("div",vz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g.value,Y=>(u.openBlock(),u.createBlock(M,{key:Y.name,btn:Y,editor:n.editor},null,8,["btn","editor"]))),128)),m.value.visible&&d.value.length?(u.openBlock(),u.createBlock(D,{key:0,class:"btn btn-advanced",trigger:[m.value.trigger||"hover"]},{overlay:u.withCtx(()=>[u.createElementVNode("div",yz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value,Y=>(u.openBlock(),u.createBlock(_,{key:Y.name,class:"item",checked:Y.visible,onClick:L=>Y.visible=!Y.visible},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(Y.title),1)]),_:2},1032,["checked","onClick"]))),128))])]),default:u.withCtx(()=>[u.createVNode(F,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.value.title)+" ",1),u.createVNode(E)]),_:1})]),_:1},8,["trigger"])):u.createCommentVNode("",!0)])]),_:1},8,["model","label-col"])]),_:2},[t.editor&&t.wid?{name:"widget-setting",fn:u.withCtx(()=>[u.createVNode(Oz,{editor:t.editor,wid:t.wid},null,8,["editor","wid"])]),key:"0"}:void 0]),1032,["model"])}}}),[["__scopeId","data-v-4c6e1c2a"]]),xz={class:"unione-props-setting unione-table-setting"},wz={class:"unione-table-tools"},Sz={key:1,class:"unione-table-opts"},Cz={key:0},kz=["onClick"],Pz={key:1,class:"edit-field"},Ez=["onClick"],Tz={key:1},_z=dn(u.defineComponent({__name:"tableSetting",props:{wid:{type:String,required:!0},editor:{type:Object,required:!0}},setup(n){const e=n,t=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"30px",fixed:"left",align:"center",customRender:({index:Z})=>Z+1},{title:"字段名称",dataIndex:"name",key:"name",width:"70px",rowDrag:!0,resizable:!0,fixed:"left",align:"center"},{title:"字段标题",dataIndex:"title",key:"title",width:"90px",align:"center"},{title:"显示",dataIndex:"isList",key:"isList",width:"30px",align:"center"},{title:"排序",dataIndex:"isSort",key:"isSort",width:"30px",align:"center"},{title:"显示顺序",dataIndex:"showIndex",key:"showIndex",width:"55px",align:"center"},{title:"对齐方式",dataIndex:"align",key:"align",width:"55px",align:"center",options:[{value:"left",label:"居左"},{value:"center",label:"居中"},{value:"right",label:"居右"}],showLabel(Z,I){let G=Z.filter(ae=>ae.value==I);return G&&G[0]&&G[0].label||I}},{title:"固定位置",dataIndex:"fixed",key:"fixed",width:"55px",align:"center",options:[{value:"left",label:"靠左"},{value:"right",label:"靠右"}],showLabel(Z,I){let G=Z.filter(ae=>ae.value==I);return G&&G[0]&&G[0].label||I}},{title:"列宽",dataIndex:"showWidth",key:"showWidth",width:"50px",align:"center"}]),o=u.computed(()=>{const Z=e.editor.widget(e.wid)||{};return Z.configs||(Z.configs={}),Z.configs.leftBtns||(Z.configs.leftBtns=[]),Z.configs.rightBtns||(Z.configs.rightBtns=[]),Z.configs.operation||(Z.configs.operation={}),Z.configs.operation.btns||(Z.configs.operation.btns=[]),Z.configs.operation.more||(Z.configs.operation.more={}),Z}),r=u.computed(()=>(e.editor.dataModels()||[]).map(I=>({value:I.sn,label:I.title+"("+I.name+")"}))),s=u.computed(()=>{if(!o.value)return[];const Z=[],I=o.value.configs.leftBtns;if(I.forEach(G=>{Z.push(G.name)}),!Z.includes("add")){const G={visible:!0,title:"新增",icon:"PlusOutlined",size:"small",index:0,type:"primary",props:{danger:!1,block:!1,ghost:!1},name:"add"};I.splice(0,0,G)}if(!Z.includes("delBatch")){const G={visible:!0,title:"批量删除",icon:"DeleteOutlined",size:"small",index:1,type:"primary",props:{danger:!0,block:!1,ghost:!1},name:"delBatch"};I.splice(1,0,G)}return I}),l=u.computed(()=>{if(!o.value)return[];const Z=[],I=o.value.configs.rightBtns;if(I.forEach(G=>{Z.push(G.name)}),!Z.includes("downData")){const G={visible:!0,icon:"CloudDownloadOutlined",size:"small",title:"导出",index:0,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"downData"};I.splice(0,0,G)}if(!Z.includes("impData")){const G={visible:!0,title:"导入",icon:"CloudUploadOutlined",size:"small",index:1,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"impData"};I.splice(1,0,G)}if(!Z.includes("expData")){const G={visible:!0,title:"导出",icon:"CloudUploadOutlined",size:"small",index:2,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"expData"};I.splice(2,0,G)}if(!Z.includes("downTmpl")){const G={visible:!0,icon:"CloudDownloadOutlined",size:"small",title:"模版",index:3,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"downTmpl"};I.splice(3,0,G)}return I});function d(Z,I){Z=="left"?g.value.open(I,G=>{G.visible=!0,Object.keys(G).forEach(ae=>{I[ae]=G[ae]}),o.value.configs.leftBtns.sort((ae,Oe)=>{const Ue=ae.index||1,ke=Oe.index||1;return Ue-ke}),o.value.configs.leftBtns=[...o.value.configs.leftBtns]}):g.value.open(I,G=>{G.visible=!0,Object.keys(G).forEach(ae=>{I[ae]=G[ae]}),o.value.configs.rightBtns.sort((ae,Oe)=>{const Ue=ae.index||1,ke=Oe.index||1;return Ue-ke}),o.value.configs.rightBtns=[...o.value.configs.rightBtns]})}function h(Z){const I=Z=="left"?o.value.configs.leftBtns.length:o.value.configs.rightBtns.length;let G={title:"新增"+I,name:"new_"+I,index:I,size:"small",visible:!0,type:"default",props:{block:!1,ghost:!1,danger:!1},event:{}};Z=="left"?o.value.configs.leftBtns.push(G):o.value.configs.rightBtns.push(G),e.editor.widget(e.wid,o.value),d(Z,G)}function m(Z,I){const G=()=>{if(["add","delBatch","expData","impData","downTmpl"].includes(I.name))I.visible=!1,Z=="left"?o.value.configs.leftBtns=[...o.value.configs.leftBtns]:o.value.configs.rightBtns=[...o.value.configs.rightBtns];else if(Z=="left"){const ae=[];o.value.configs.leftBtns.forEach(Oe=>{Oe.name!=I.name&&ae.push(Oe)}),o.value.configs.leftBtns=ae}else{const ae=[];o.value.configs.rightBtns.forEach(Oe=>{Oe.name!=I.name&&ae.push(Oe)}),o.value.configs.rightBtns=ae}};Bt.confirm({title:"确认信息",content:"请确定删除该工具?",onOk:()=>{G()}})}const g=u.ref(null);function v(Z){g.value.open(Z,I=>{I.visible=!0,Object.keys(I).forEach(G=>{Z[G]=I[G]}),o.value.configs.operation.btns.sort((G,ae)=>{const Oe=G.index||1,Ue=ae.index||1;return Oe-Ue}),o.value.configs.operation.btns=[...o.value.configs.operation.btns]})}function b(){const Z=o.value.configs.operation.btns.length+1;let I={title:"新增"+Z,name:"new_"+Z,index:Z,size:"small",visible:!0,type:"default",props:{block:!1,ghost:!1,danger:!1},event:{clickScript:"",titleScript:"",disableScript:"",visibleScript:""}};o.value.configs.operation.btns.push(I),e.editor.widget(e.wid,o.value),g.value.open(I,G=>{Object.keys(G).forEach(ae=>{I[ae]=G[ae]}),o.value.configs.operation.btns=[...o.value.configs.operation.btns]})}function x(Z){const I=()=>{if(["delete","view","edit"].includes(Z.name))Z.visible=!1,o.value.configs.operation.btns=[...o.value.configs.operation.btns];else{const G=[];o.value.configs.operation.btns.forEach(ae=>{ae.name!=Z.name&&G.push(ae)}),o.value.configs.operation.btns=G}};Bt.confirm({title:"确认信息",content:"请确定删除该操作?",onOk:()=>{I()}})}const C=u.computed(()=>e.editor?.dataModel(o.value.dataModel||"none")||{}),k=u.computed(()=>C.value.fields?.length?(C.value.fields.forEach(Z=>{Z.show||(Z.show={}),Z.show.list||(Z.show.list={})}),C.value.fields):[]),M={mounted:Z=>Z.focus()},_=u.ref({});function E(){const Z=Object.keys(_.value);if(Z.length)for(let I in Z){const G=k.value.filter(ae=>ae.name==I);if(G&&G[0]){let ae=_.value[I];Object.keys(ae).forEach(Oe=>{G[0].show||(G[0].show={}),G[0].show.list||(G[0].show.list={}),Oe=="showIndex"?G[0].show.list.index=ae[Oe]:Oe=="showWidth"?G[0].show.list.width=ae[Oe]:Oe=="fixed"?G[0].show.list.fixed=ae[Oe]:Oe=="align"?G[0].show.list.align=ae[Oe]:G[0][Oe]=ae[Oe]})}}_.value={}}function F(Z,I){E();const G={};I=="showIndex"?G[I]=Z.show?.list?.index:I=="showWidth"?G[I]=Z.show?.list?.width:I=="fixed"?G[I]=Z.show?.list?.fixed:I=="align"?G[I]=Z.show?.list?.align:G[I]=Z[I]||"",_.value[Z.name]=G}function D(Z,I){if(!Z||!I){_.value={};return}const G=_.value[Z.name][I];Z.show||(Z.show={}),Z.show.list||(Z.show.list={}),I=="showIndex"?Z.show.list.index=G:I=="showWidth"?Z.show.list.width=G:I=="fixed"?Z.show.list.fixed=G:I=="align"?Z.show.list.align=G:Z[I]=G,_.value={}}function Q(Z,I){return I=="showIndex"?Z.show?.list?.index:I=="showWidth"?Z.show?.list?.width:I=="fixed"?Z.show?.list?.fixed:I=="align"?Z.show?.list?.align:Z[I]}function Y(Z,I){k.value.filter(ae=>ae.name==Z.name).forEach(ae=>{ae[I]=!ae[I]})}const L=u.ref({options:[{value:"equle",label:"精确"},{value:"like",label:"模糊"},{value:"like-right",label:"右模糊"},{value:"like-left",label:"左模糊"},{value:"range",label:"范围"}],showLabel:Z=>{const I=L.value.options.filter(G=>G.value==Z);return I[0]?I[0].label:Z}});return(Z,I)=>{const G=u.resolveComponent("a-divider"),ae=u.resolveComponent("CloseOutlined"),Oe=u.resolveComponent("a-button"),Ue=u.resolveComponent("PlusOutlined"),ke=u.resolveComponent("a-input"),re=u.resolveComponent("a-form-item"),be=u.resolveComponent("a-col"),Ve=u.resolveComponent("a-input-number"),ve=u.resolveComponent("a-checkbox"),$e=u.resolveComponent("a-row"),Ae=u.resolveComponent("a-select"),Se=u.resolveComponent("ToolOutlined"),ht=u.resolveComponent("a-table");return u.openBlock(),u.createElementBlock("div",xz,[u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[8]||(I[8]=[u.createTextVNode("工具设置")])),_:1}),u.createElementVNode("div",wz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,Pe=>(u.openBlock(),u.createBlock(Oe,u.mergeProps({key:Pe.name,class:["btn",Pe.name,!Pe.visible&&"deleted"],type:Pe.visible?Pe.type:"default",size:Pe.size,ref_for:!0},Pe.props||{},{onClick:Ze=>d("left",Pe)}),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(Pe.title)+" ",1),Pe.visible?(u.openBlock(),u.createBlock(ae,{key:0,class:"bool-del",onClick:u.withModifiers(Ze=>m("left",Pe),["stop"])},null,8,["onClick"])):u.createCommentVNode("",!0)]),_:2},[Pe.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(Pe.icon)))]),key:"0"}:void 0]),1040,["class","type","size","onClick"]))),128)),u.createVNode(Oe,{class:u.normalizeClass(["btn","tool-add"]),size:"small",onClick:I[0]||(I[0]=Pe=>h("left"))},{default:u.withCtx(()=>[u.createVNode(Ue)]),_:1}),u.createVNode(Oe,{class:u.normalizeClass(["btn","tool-add","right"]),onClick:I[1]||(I[1]=Pe=>h("right")),size:"small"},{default:u.withCtx(()=>[u.createVNode(Ue)]),_:1}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(l.value,Pe=>(u.openBlock(),u.createBlock(Oe,u.mergeProps({key:Pe.name,class:["btn","right",Pe.name,!Pe.visible&&"deleted"],type:Pe.visible?Pe.type:"default",size:Pe.size,ref_for:!0},Pe.props||{},{onClick:Ze=>d("right",Pe)}),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(Pe.title)+" ",1),Pe.visible?(u.openBlock(),u.createBlock(ae,{key:0,class:"bool-del",onClick:u.withModifiers(Ze=>m("right",Pe),["stop"])},null,8,["onClick"])):u.createCommentVNode("",!0)]),_:2},[Pe.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(Pe.icon)))]),key:"0"}:void 0]),1040,["class","type","size","onClick"]))),128))]),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[9]||(I[9]=[u.createTextVNode("操作设置")])),_:1}),o.value?.configs?.operation?(u.openBlock(),u.createBlock($e,{key:0},{default:u.withCtx(()=>[u.createVNode(be,{span:7},{default:u.withCtx(()=>[u.createVNode(re,{label:"操作标题"},{default:u.withCtx(()=>[u.createVNode(ke,{value:o.value.configs.operation.title},null,8,["value"])]),_:1})]),_:1}),u.createVNode(be,{span:5},{default:u.withCtx(()=>[u.createVNode(re,{label:"显示宽度",labelCol:{span:9}},{default:u.withCtx(()=>[u.createVNode(Ve,{value:o.value.configs.operation.width,"onUpdate:value":I[2]||(I[2]=Pe=>o.value.configs.operation.width=Pe)},null,8,["value"])]),_:1})]),_:1}),u.createVNode(be,{span:6},{default:u.withCtx(()=>[u.createVNode(re,{label:"显示按钮数量",labelCol:{span:9}},{default:u.withCtx(()=>[u.createVNode(Ve,{value:o.value.configs.operation.count,"onUpdate:value":I[3]||(I[3]=Pe=>o.value.configs.operation.count=Pe)},null,8,["value"])]),_:1})]),_:1}),u.createVNode(be,{span:5},{default:u.withCtx(()=>[u.createVNode(re,{label:"是否显示"},{default:u.withCtx(()=>[u.createVNode(ve,{checked:o.value.configs.operation.visible,"onUpdate:checked":I[4]||(I[4]=Pe=>o.value.configs.operation.visible=Pe)},null,8,["checked"])]),_:1})]),_:1})]),_:1})):u.createCommentVNode("",!0),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[10]||(I[10]=[u.createTextVNode("操作按钮")])),_:1}),o.value?.configs?.operation?(u.openBlock(),u.createElementBlock("div",Sz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value.configs.operation.btns,Pe=>(u.openBlock(),u.createBlock(Oe,u.mergeProps({key:Pe.name,class:["btn",Pe.name,!Pe.visible&&"deleted"],type:Pe.visible?Pe.type:"default",size:Pe.size||"small",ref_for:!0},Pe.props||{},{onClick:Ze=>v(Pe)}),u.createSlots({default:u.withCtx(()=>[u.createTextVNode(" "+u.toDisplayString(Pe.title)+" ",1),Pe.visible?(u.openBlock(),u.createBlock(ae,{key:0,class:"btn-del",onClick:u.withModifiers(Ze=>x(Pe),["stop"])},null,8,["onClick"])):u.createCommentVNode("",!0)]),_:2},[Pe.icon?{name:"icon",fn:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(Pe.icon)))]),key:"0"}:void 0]),1040,["class","type","size","onClick"]))),128)),u.createVNode(Oe,{class:u.normalizeClass(["btn","btn-add"]),onClick:I[5]||(I[5]=Pe=>b()),size:"small"},{default:u.withCtx(()=>[u.createVNode(Ue)]),_:1})])):u.createCommentVNode("",!0),u.createVNode(G,{orientation:"left"},{default:u.withCtx(()=>I[11]||(I[11]=[u.createTextVNode("表头设置")])),_:1}),I[12]||(I[12]=u.createTextVNode(" 数据模型:")),u.createVNode(Ae,{class:"data-model-list",options:r.value,value:o.value.dataModel,"onUpdate:value":I[6]||(I[6]=Pe=>o.value.dataModel=Pe)},null,8,["options","value"]),u.createVNode(ht,{columns:t.value,"data-source":k.value,bordered:"",scroll:{x:800},pagination:!1,"row-key":"name",size:"small"},{headerCell:u.withCtx(({column:Pe})=>[["showIndex","showWidth","align","fixed"].includes(Pe.key)?(u.openBlock(),u.createElementBlock("span",Cz,[u.createVNode(Se),u.createTextVNode(" "+u.toDisplayString(Pe.title),1)])):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:Pe,record:Ze})=>[["showIndex","showWidth"].includes(Pe.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",(!_.value[Ze.name]||!Object.keys(_.value[Ze.name]).includes(Pe.dataIndex))&&!Q(Ze,Pe.dataIndex)&&"empty"]),onClick:bt=>F(Ze,Pe.dataIndex)},[_.value[Ze.name]&&Object.keys(_.value[Ze.name]).includes(Pe.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Ve,{key:0,value:_.value[Ze.name][Pe.dataIndex],"onUpdate:value":bt=>_.value[Ze.name][Pe.dataIndex]=bt,onBlur:bt=>D(Ze,Pe.dataIndex),style:{margin:"-5px 0"}},null,8,["value","onUpdate:value","onBlur"])),[[M]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(Q(Ze,Pe.dataIndex)),1)],64))],10,kz)):["isList","isQuery","isSort"].includes(Pe.dataIndex)?(u.openBlock(),u.createElementBlock("div",Pz,[u.createVNode(ve,{checked:Ze[Pe.dataIndex],onClick:bt=>Y(Ze,Pe.dataIndex)},null,8,["checked","onClick"])])):["align","fixed"].includes(Pe.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(["edit-field",(!_.value[Ze.name]||!Object.keys(_.value[Ze.name]).includes(Pe.dataIndex))&&!Q(Ze,Pe.dataIndex)&&"empty"]),onClick:bt=>F(Ze,Pe.dataIndex)},[_.value[Ze.name]&&Object.keys(_.value[Ze.name]).includes(Pe.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Ae,{key:0,value:Ze.show.list[Pe.dataIndex],"onUpdate:value":bt=>Ze.show.list[Pe.dataIndex]=bt,allowClear:!0,options:Pe.options,onBlur:I[7]||(I[7]=bt=>D())},null,8,["value","onUpdate:value","options"])),[[M]]):(u.openBlock(),u.createElementBlock("span",Tz,u.toDisplayString(Pe.showLabel(Pe.options,Q(Ze,Pe.dataIndex))),1))],10,Ez)):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),u.createVNode(Tf,{ref_key:"btnSetting",ref:g,preset:["edit","view","add","delBatch","expData","impData","downTmpl"]},null,512)])}}}),[["__scopeId","data-v-c966c24c"]]),Nz={class:"unione-table-tools"},Az={class:"unione-table-data"},Rz={key:0,class:"unione-table-opts"},Mz=dn(u.defineComponent({__name:"tableList",props:{wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1},dataList:{type:Array,default(){return[]}}},emits:["edit","view","add","delBatch","expData","impData","downTmpl","toolClick","optClick","change"],setup(n,{emit:e}){const t=n,o=u.computed(()=>{const E=t.editor?.widget(t.wid)||t.widget||{};return E.configs||(E.configs={}),E}),r=u.computed(()=>t.editor?.dataModel(o.value.dataModel||"none")||{});function s(){}const l=u.computed(()=>{const E=t.dataList||[];for(let F=0;F<1e3;F++)E.push({sid:F,username:`Edrward ${F}`,sex:1,age:F+1,addr:`London Park no. ${F}`});return E}),d=u.computed(()=>{const E={title:"操作",visible:!0,width:200,count:2,btns:[],more:{title:"更多",visible:!0,trigger:"hover",size:"small",layout:"horizontal",items:[]},...o.value.configs.operation||{}},F=[];let D=o.value.configs.operation.btns||[];return D.forEach(Q=>{F.push(Q.name)}),F.includes("edit")||E.btns.splice(0,0,{title:"编辑",name:"edit",type:"default",visible:!0}),F.includes("view")||E.btns.splice(1,0,{title:"查看",name:"view",type:"default",visible:!0}),D=D.filter(Q=>Q.visible).sort((Q,Y)=>{const L=Q.index||1,Z=Y.index||1;return L-Z}),E.count?D.length>E.count&&(E.btns=D.slice(0,E.count),E.more.items=D.slice(E.count,D.length),E.more.visible=!0):E.more.visible=!1,E}),h=u.computed(()=>{let E=[];o.value.configs.columns?.length&&(E=o.value.configs.columns),!E.length&&r.value.fields?.length&&(E=r.value.fields.filter(D=>D.isList)),E.forEach(D=>{D.dataIndex=D.name,D.show?.list&&(D.width=D.show.list.width,D.fixed=D.show.list.fixed,D.align=D.show.list.align)});const F=o.value.configs.rownum;return F&&F.visible!=!1&&(F.customRender=D=>b.value?(b.value.current-1)*b.value.pageSize+D.index+1:D.index,E=[F,...E]),d.value&&d.value.visible!=!1&&E.push({fixed:"right",align:"center",...d.value,name:"operation"}),E}),m=u.computed(()=>{const E=[],F=[];if((o.value.configs.leftBtns||[]).forEach(Q=>{Q.visible&&E.push(Q),F.push(Q.name)}),!F.includes("add")){const Q={visible:!0,title:"新增",icon:"PlusOutlined",size:"small",index:0,type:"primary",props:{danger:!1,block:!1,ghost:!1},name:"add"};E.splice(0,0,Q)}if(!F.includes("delBatch")){const Q={visible:!0,title:"批量删除",icon:"DeleteOutlined",size:"small",index:1,type:"primary",props:{danger:!0,block:!1,ghost:!1},name:"delBatch"};E.splice(1,0,Q)}return E}),g=u.computed(()=>{const E=[],F=[];if((o.value.configs.rightBtns||[]).forEach(Q=>{Q.visible&&E.push(Q),F.push(Q.name)}),!F.includes("downData")){const Q={visible:!0,icon:"CloudDownloadOutlined",size:"small",title:"导出",index:0,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"downData"};E.splice(0,0,Q)}if(!F.includes("impData")){const Q={visible:!0,title:"导入",icon:"CloudUploadOutlined",size:"small",index:1,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"impData"};E.splice(1,0,Q)}if(!F.includes("expData")){const Q={visible:!0,title:"导出",icon:"CloudUploadOutlined",size:"small",index:2,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"expData"};E.splice(2,0,Q)}if(!F.includes("downTmpl")){const Q={visible:!0,icon:"CloudDownloadOutlined",size:"small",title:"模版",index:3,type:"default",props:{danger:!1,block:!1,ghost:!1},name:"downTmpl"};E.splice(3,0,Q)}return E}),v=u.computed(()=>({bordered:!0,size:"small",...o.value.configs.attrs||{}})),b=u.computed(()=>{const E=o.value.configs.pagination||{};return{showTotal:F=>"共"+F+"记录",pageSize:10,current:1,total:0,position:["bottomCenter"],...E}}),x=u.computed(()=>typeof o.value.configs.selection<"u"?o.value.configs.selection:!0),C=u.ref({selectedRowKeys:[],selectedRowList:[],onChange:(E,F)=>{const D={};F.forEach(Q=>{D[Q.key.toString()]=Q}),E.forEach(Q=>{const Y=D[Q.toString()];C.value.selectedRowKeys.includes(Q.toString())||(C.value.selectedRowKeys.push(Q.toString()),C.value.selectedRowList.push(Y));const L=[];l.value.forEach(Z=>{!E.includes(Z.key.toString())&&C.value.selectedRowKeys.includes(Z.key.toString())&&L.push(Z.key.toString())}),L.length&&(C.value.selectedRowKeys=C.value.selectedRowKeys.filter(Z=>!L.includes(Z.toString())),C.value.selectedRowList=C.value.selectedRowList.filter(Z=>C.value.selectedRowKeys.includes(Z.key.toString())))})}});EO();const k=e;function M(E,F,D,Q){k("change",{pagination:E,filters:F,sorter:D,event:Q})}function _(){Bt.confirm({title:"确认信息",content:`确定要清除当前选中的(${C.value.selectedRowKeys.length})条数据?`,centered:!0,onOk:()=>{C.value.selectedRowKeys=[],C.value.selectedRowList=[]}})}return(E,F)=>{const D=u.resolveComponent("unione-btn"),Q=u.resolveComponent("DownOutlined"),Y=u.resolveComponent("a-button"),L=u.resolveComponent("a-dropdown"),Z=u.resolveComponent("a-table");return u.openBlock(),u.createBlock(ga,{class:"unione-table-list",model:t.editor?.model.value,onSaving:s,"setting-title":"列表设置"},u.createSlots({default:u.withCtx(()=>[u.createElementVNode("div",Nz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(m.value,I=>(u.openBlock(),u.createBlock(D,{key:I.name,class:"btn",btn:I,editor:n.editor,ctx:{sltKeys:C.value.selectedRowKeys,sltRows:C.value.selectedRowList}},null,8,["btn","editor","ctx"]))),128)),C.value.selectedRowKeys.length?(u.openBlock(),u.createElementBlock("span",{key:0,class:"selected-info",onClick:_},"当前选中记录("+u.toDisplayString(C.value.selectedRowKeys.length)+")",1)):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g.value,I=>(u.openBlock(),u.createBlock(D,{key:I.name,class:"btn right",btn:I,editor:n.editor,ctx:{sltKeys:C.value.selectedRowKeys,sltRows:C.value.selectedRowList}},null,8,["btn","editor","ctx"]))),128))]),u.createElementVNode("div",Az,[h.value&&h.value.length?(u.openBlock(),u.createBlock(Z,u.mergeProps({key:0,columns:h.value,"data-source":l.value,"row-selection":x.value?C.value:null,scroll:{x:1500},pagination:b.value,onChange:M},v.value),{bodyCell:u.withCtx(({column:I,record:G})=>[I.name==="operation"?(u.openBlock(),u.createElementBlock("div",Rz,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value.btns,ae=>(u.openBlock(),u.createBlock(D,{key:ae.name,class:"opt",btn:ae,editor:n.editor,ctx:{row:G}},null,8,["btn","editor","ctx"]))),128)),d.value.more?.visible!=!1&&d.value.more.items?.length?(u.openBlock(),u.createBlock(L,{key:0,trigger:[d.value.more.trigger||"hover"],class:u.normalizeClass(["opt-more",d.value.more.size||"small"])},{overlay:u.withCtx(()=>[u.createElementVNode("div",{class:u.normalizeClass(["opt-more-overlay",d.value.more.layout])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value.more.items,ae=>(u.openBlock(),u.createBlock(D,{key:ae.name,class:"item",btn:ae,editor:n.editor,type:"text",ctx:{row:G}},null,8,["btn","editor","ctx"]))),128))],2)]),default:u.withCtx(()=>[u.createVNode(Y,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(d.value.more.title)+" ",1),u.createVNode(Q)]),_:1})]),_:2},1032,["trigger","class"])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)]),_:1},16,["columns","data-source","row-selection","pagination"])):u.createCommentVNode("",!0)])]),_:2},[t.editor&&t.wid?{name:"widget-setting",fn:u.withCtx(()=>[u.createVNode(_z,{editor:t.editor,wid:t.wid},null,8,["editor","wid"])]),key:"0"}:void 0]),1032,["model"])}}}),[["__scopeId","data-v-df2a5ad7"]]),Qz={class:"page-setting-dialog"},Iz=dn(u.defineComponent({__name:"page",props:{settingTitle:{type:String,default:"页面设置"},editor:{type:Object,required:!1}},emits:["setting","saving"],setup(n,{emit:e}){const t=n,o=u.computed(()=>t.editor?.model?.value),r=Lh.useSessionStore(),s=u.computed(()=>r.getPrincipal()),l=u.ref(!1);u.provide("closeSetting",()=>{t.editor?.save().then(b=>{l.value=!1})});function d(){l.value=!0}function h(){t.editor?.save().then(b=>{console.log("res",b)})}function m(){t.editor?.save().then(b=>{console.log("res",b)})}const g=u.ref("");function v(b){g.value||(g.value=o.value),b?t.editor?.setModel("edit"):t.editor?.setModel(g.value)}return(b,x)=>{const C=u.resolveComponent("SettingOutlined"),k=u.resolveComponent("a-tooltip"),M=u.resolveComponent("SaveOutlined"),_=u.resolveComponent("FormOutlined"),E=u.resolveComponent("StopOutlined"),F=u.resolveComponent("a-modal");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["unione-page",o.value])},[o.value=="edit"&&b.$slots["page-setting"]&&s.value?.userRoles?.includes("FORM-ADMIN")?(u.openBlock(),u.createBlock(k,{key:0,title:n.settingTitle},{default:u.withCtx(()=>[u.createVNode(C,{class:"page-setting",onClick:d})]),_:1},8,["title"])):u.createCommentVNode("",!0),o.value=="edit"&&b.$slots["page-setting"]&&s.value?.userRoles?.includes("FORM-ADMIN")?(u.openBlock(),u.createBlock(k,{key:1,title:"保存页面"},{default:u.withCtx(()=>[u.createVNode(M,{class:"btn-save",onClick:h})]),_:1})):u.createCommentVNode("",!0),o.value!="edit"&&s.value?.userRoles?.includes("FORM-ADMIN")?(u.openBlock(),u.createBlock(k,{key:2,title:"编辑页面"},{default:u.withCtx(()=>[u.createVNode(_,{class:"btn-edit",onClick:x[0]||(x[0]=D=>v(!0))})]),_:1})):u.createCommentVNode("",!0),o.value=="edit"&&b.$slots["page-setting"]&&s.value?.userRoles?.includes("FORM-ADMIN")?(u.openBlock(),u.createBlock(k,{key:3,title:"退出编辑"},{default:u.withCtx(()=>[u.createVNode(E,{class:"btn-edit",onClick:x[1]||(x[1]=D=>v(!1))})]),_:1})):u.createCommentVNode("",!0),u.renderSlot(b.$slots,"default",{},void 0,!0),o.value=="edit"?(u.openBlock(),u.createBlock(F,{key:4,title:t.settingTitle,open:l.value,"onUpdate:open":x[2]||(x[2]=D=>l.value=D),centered:"",width:"85%",onOk:m},{default:u.withCtx(()=>[u.createElementVNode("div",Qz,[u.renderSlot(b.$slots,"page-setting",{},void 0,!0)])]),_:3},8,["title","open"])):u.createCommentVNode("",!0)],2)}}}),[["__scopeId","data-v-f85f9514"]]),Dz={class:"unione-props-setting data-field-manage"},Bz={key:0},Vz={key:1},Lz={key:2},jz={key:3},Fz={key:4},Zz={key:5},zz={key:6},Wz=["onClick"],Uz=["onClick"],Hz=["onClick"],Xz=dn(u.defineComponent({__name:"dataFieldMange",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"35px",fixed:"left",align:"center",customRender:({index:b})=>b+1},{title:"名称",dataIndex:"name",key:"name",width:"70px",rowDrag:!0,resizable:!0,fixed:"left",align:"center"},{title:"标题",dataIndex:"title",key:"title",width:"100px",align:"center"},{title:"数据类型",dataIndex:"dataType",key:"dataType",width:"80px",align:"center"},{title:"长度",dataIndex:"dataLen",key:"dataLen",width:"60px",align:"center"},{title:"小数点",dataIndex:"dataPrec",key:"dataPrec",width:"60px",align:"center"},{title:"默认值",dataIndex:"defaultValue",key:"defaultValue",width:"60px",align:"center"},{title:"主键",dataIndex:"isPk",key:"isPk",width:"40px",align:"center"},{title:"外键",dataIndex:"isFk",key:"isFk",width:"30px",align:"center"},{title:"非空",dataIndex:"isNull",key:"isNull",width:"30px",align:"center"},{title:"同步",dataIndex:"syncDbEnable",key:"syncDbEnable",width:"30px",align:"center"},{title:"备注",dataIndex:"descs",key:"descs",width:"140px",align:"center"}]),t=u.useModel(n,"modelValue"),o=u.ref({selectedRowKeys:[],columnWidth:"25px",onChange:b=>{b.forEach(x=>{o.value.selectedRowKeys.includes(x)||o.value.selectedRowKeys.push(x);const C=[];t.value.forEach(k=>{!b.includes(k.name)&&o.value.selectedRowKeys.includes(k.name)&&C.push(k.name)}),C.length&&(o.value.selectedRowKeys=o.value.selectedRowKeys.filter(k=>!C.includes(k)))})}}),r={mounted:b=>b.focus()},s=u.ref({});function l(){const b=Object.keys(s.value);if(b.length)for(let x in b){const C=t.value.filter(k=>k.name==x);if(C&&C[0]){let k=s.value[x];Object.keys(k).forEach(M=>{C[0][M]=k[M]})}}s.value={}}function d(b,x){l();const C={};C[x]=b[x]||"",s.value[b.name]=C}function h(b,x){if(!b||!x){s.value={};return}const C=s.value[b.name][x];if(x=="name"&&t.value.filter(M=>M[x]==C&&M.name!=b.name).length>0){Bt.warn({title:"提示信息",content:"字段名称["+C+"]已存在"});return}b[x]=C,s.value={}}function m(b,x){t.value.filter(k=>k.name==b.name).forEach(k=>{k[x]=!k[x]})}function g(){if(l(),t.value.filter(C=>C.name=="new_").length>0){s.value.new_={name:"new_"};return}const x={title:"",name:"new_",isPk:!1};t.value.push(x),s.value[x.name]={name:"new_"}}function v(){if(!o.value.selectedRowKeys.length){Bt.info({title:"提示信息",content:"请选择要删除的字段!"});return}Bt.confirm({title:"确认信息",content:"确定要删除选中的["+o.value.selectedRowKeys.length+"]字段么?",onOk:()=>{t.value=t.value.filter(b=>!o.value.selectedRowKeys.includes(b.name)),o.value.selectedRowKeys=[]}})}return(b,x)=>{const C=u.resolveComponent("a-button"),k=u.resolveComponent("a-tooltip"),M=u.resolveComponent("a-input"),_=u.resolveComponent("a-input-number"),E=u.resolveComponent("a-select-option"),F=u.resolveComponent("a-select"),D=u.resolveComponent("snap"),Q=u.resolveComponent("a-checkbox"),Y=u.resolveComponent("a-table");return u.openBlock(),u.createElementBlock("div",Dz,[u.createVNode(C,{class:"btn btn-add",type:"primary",onClick:g,size:"small"},{default:u.withCtx(()=>x[1]||(x[1]=[u.createTextVNode("新增")])),_:1}),u.createVNode(C,{class:"btn btn-delete",type:"primary",danger:"",onClick:v,size:"small"},{default:u.withCtx(()=>x[2]||(x[2]=[u.createTextVNode(" 删除 ")])),_:1}),u.createVNode(Y,{columns:e.value,"data-source":t.value,pagination:!1,bordered:"","row-selection":o.value,scroll:{x:1150},"row-key":"name",size:"small",sticky:""},{headerCell:u.withCtx(({column:L})=>[L.key==="name"?(u.openBlock(),u.createElementBlock("span",Bz,[x[3]||(x[3]=u.createElementVNode("span",{style:{color:"red","margin-right":"3px","font-size":"16px"}},"*",-1)),u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="title"?(u.openBlock(),u.createElementBlock("span",Vz,[x[4]||(x[4]=u.createElementVNode("span",{style:{color:"red","margin-right":"3px","font-size":"16px"}},"*",-1)),u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="descs"?(u.openBlock(),u.createElementBlock("span",Lz,[u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="dataLen"?(u.openBlock(),u.createElementBlock("span",jz,[u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="dataPrec"?(u.openBlock(),u.createElementBlock("span",Fz,[u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="defaultValue"?(u.openBlock(),u.createElementBlock("span",Zz,[u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="dataType"?(u.openBlock(),u.createElementBlock("span",zz,[u.createVNode(u.unref(Ai)),u.createTextVNode(" "+u.toDisplayString(L.title),1)])):u.createCommentVNode("",!0),L.key==="isPk"?(u.openBlock(),u.createBlock(k,{key:7,title:"至少配置一个主键字段"},{default:u.withCtx(()=>[x[5]||(x[5]=u.createElementVNode("span",{style:{color:"red","margin-right":"3px","font-size":"16px"}},"*",-1)),u.createTextVNode(u.toDisplayString(L.title),1)]),_:2},1024)):u.createCommentVNode("",!0),L.key==="isFk"?(u.openBlock(),u.createBlock(k,{key:8,title:"是否是外键字段"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(L.title),1)]),_:2},1024)):u.createCommentVNode("",!0),L.key==="isNull"?(u.openBlock(),u.createBlock(k,{key:9,title:"是否允许为空"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(L.title),1)]),_:2},1024)):u.createCommentVNode("",!0),L.key==="syncDbEnable"?(u.openBlock(),u.createBlock(k,{key:10,title:"是否同步到数据库"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(L.title),1)]),_:2},1024)):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:L,text:Z,record:I})=>[["name","title","descs","defaultValue"].includes(L.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",(!s.value[I.name]||!Object.keys(s.value[I.name]).includes(L.dataIndex))&&!Z&&"empty"]),onClick:G=>d(I,L.dataIndex)},[s.value[I.name]&&Object.keys(s.value[I.name]).includes(L.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(M,{key:0,value:s.value[I.name][L.dataIndex],"onUpdate:value":G=>s.value[I.name][L.dataIndex]=G,onBlur:G=>h(I,L.dataIndex),style:{margin:"-5px 0"}},null,8,["value","onUpdate:value","onBlur"])),[[r]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(Z||" "),1)],64))],10,Wz)):u.createCommentVNode("",!0),["dataLen","dataPrec"].includes(L.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["edit-field",(!s.value[I.name]||!Object.keys(s.value[I.name]).includes(L.dataIndex))&&!Z&&"empty"]),onClick:G=>d(I,L.dataIndex)},[s.value[I.name]&&Object.keys(s.value[I.name]).includes(L.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(_,{key:0,value:s.value[I.name][L.dataIndex],"onUpdate:value":G=>s.value[I.name][L.dataIndex]=G,onBlur:G=>h(I,L.dataIndex),style:{margin:"-5px 0"}},null,8,["value","onUpdate:value","onBlur"])),[[r]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(Z||" "),1)],64))],10,Uz)):["dataType"].includes(L.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(["edit-field",(!s.value[I.name]||!Object.keys(s.value[I.name]).includes(L.dataIndex))&&!Z&&"empty"]),onClick:G=>d(I,L.dataIndex)},[s.value[I.name]&&Object.keys(s.value[I.name]).includes(L.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(F,{key:0,value:I[L.dataIndex],"onUpdate:value":G=>I[L.dataIndex]=G,onBlur:x[0]||(x[0]=G=>h())},{default:u.withCtx(()=>[u.createVNode(E,{key:"String",value:"String"}),u.createVNode(E,{key:"Long",value:"Long"}),u.createVNode(E,{key:"Short",value:"Short"}),u.createVNode(E,{key:"Integer",value:"Integer"}),u.createVNode(E,{key:"Float",value:"Float"}),u.createVNode(E,{key:"Double",value:"Double"}),u.createVNode(E,{key:"Date",value:"Date"}),u.createVNode(E,{key:"Timestamp",value:"Timestamp"})]),_:2},1032,["value","onUpdate:value"])),[[r]]):(u.openBlock(),u.createBlock(D,{key:1},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(Z),1)]),_:2},1024))],10,Hz)):["syncDbEnable","isFk","isPk"].includes(L.dataIndex)?(u.openBlock(),u.createBlock(Q,{key:3,checked:I[L.dataIndex],onClick:G=>m(I,L.dataIndex)},null,8,["checked","onClick"])):["isNull"].includes(L.dataIndex)?(u.openBlock(),u.createBlock(Q,{key:4,checked:!I[L.dataIndex],onClick:G=>m(I,L.dataIndex)},null,8,["checked","onClick"])):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source","row-selection"])])}}}),[["__scopeId","data-v-ec6d21c7"]]),Yz={class:"unione-props-setting data-field-setting"},Gz={key:0},Kz=["onClick"],Jz={class:"field-txt"},$z=["onClick"],qz={key:1,class:"field-txt"},eW=["onClick"],tW={key:1},nW=["onClick"],oW={key:0,class:"field-txt"},iW={key:4,class:"edit-field"},rW={key:0},sW=["onClick"],aW=dn(u.defineComponent({__name:"dataFieldSetting",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=u.ref([{title:"序号",dataIndex:"index",key:"index",width:"30px",fixed:"left",align:"center",customRender:({index:_})=>_+1},{title:"字段名称",dataIndex:"name",key:"name",width:"70px",rowDrag:!0,resizable:!0,fixed:"left",align:"center"},{title:"字段标题",dataIndex:"title",key:"title",width:"90px",align:"center"},{title:"控件类型",dataIndex:"widget",key:"widget",width:"60px",align:"center"},{title:"验证规则",dataIndex:"rules",key:"rules",width:"60px",align:"center"},{title:"表单",dataIndex:"isForm",key:"isForm",width:"40px",align:"center"},{title:"详情",dataIndex:"isView",key:"isView",width:"40px",align:"center"},{title:"列表",dataIndex:"isList",key:"isList",width:"40px",align:"center"},{title:"排序",dataIndex:"isSort",key:"isSort",width:"40px",align:"center"},{title:"查询",dataIndex:"isQuery",key:"isQuery",width:"40px",align:"center"},{title:"查询类型",dataIndex:"queryType",key:"queryType",width:"60px",align:"center"},{title:"转换器",dataIndex:"convertName",key:"convertName",width:"50px",align:"center"}]),t=u.useModel(n,"modelValue"),o={mounted:_=>_.focus()},r=u.ref({});function s(){const _=Object.keys(r.value);if(_.length)for(let E in _){const F=t.value.filter(D=>D.name==E);if(F&&F[0]){let D=r.value[E];Object.keys(D).forEach(Q=>{Q=="convertName"?(F[0].convert||(F[0].convert={}),F[0].convert.type=D[Q]):F[0][Q]=D[Q]})}}r.value={}}function l(_,E){s();const F={};E=="convertName"?(_.convert||(_.convert={}),F[E]=_.convert?.type):F[E]=_[E]||"",r.value[_.name]=F}function d(_,E){{r.value={};return}}function h(_,E){t.value.filter(D=>D.name==_.name).forEach(D=>{D[E]=!D[E]})}const m=u.ref({title:"列头设置",prop:"isList",visible:!1,field:{},show:{},toSetting:()=>{m.value.visible=!1}});function g(_,E){const F=t.value.filter(Q=>Q.name==_.name);F.forEach(Q=>{E!="isSort"?Q[E]=!0:Q[E]=!Q[E]});const D=F[0];if(!(!D||E=="isSort")){switch(m.value.prop=E,m.value.field=_,D.show||(D.show={}),E){case"isQuery":D.show.query||(D.show.query={}),m.value.show=D.show.query,m.value.title=`查询设置/${_.title}(${_.name})`;break;case"isForm":D.show.form||(D.show.form={}),m.value.show=D.show.form,m.value.title=`表单设置/${_.title}(${_.name})`;break;case"isView":D.show.view||(D.show.view={}),m.value.show=D.show.view,m.value.title=`详情设置/${_.title}(${_.name})`;break;case"isList":D.show.list||(D.show.list={}),m.value.show=D.show.list,m.value.title=`列头设置/${_.title}(${_.name})`;break}m.value.visible=!0}}const v=u.ref({options:[{value:"keywords",label:"关键字"},{value:"equle",label:"精确"},{value:"like",label:"模糊"},{value:"like-right",label:"右模糊"},{value:"like-left",label:"左模糊"},{value:"range",label:"范围"}],showLabel:_=>{const E=v.value.options.filter(F=>F.value==_);return E[0]?E[0].label:_}}),b=u.ref({visible:!1,field:{},props:{},showInfo:_=>{let E="";return _.rules&&(E=_.rules.filter(F=>F.enable).length||""),E&&(E="("+E+")"),E},toSetting:()=>{const _=b.value.props,E={name:"range",trigger:_.trigger,whitespace:_.whitespace,message:_.rangeMessage};_.rangeMin!=null&&_.rangeMin!=null&&(E.min=_.rangeMin,E.enable=!0),_.rangeMax!=null&&_.rangeMax!=null&&(E.max=_.rangeMax,E.enable=!0);const F={name:"reg",trigger:_.trigger,whitespace:_.whitespace,message:_.regMessage};_.regExpress&&(F.pattern=_.regExpress,F.enable=!0),b.value.field.rules=[E,F],b.value.visible=!1,b.value.props={},console.log("rule",b.value.field.rules)}});function x(_){b.value.visible=!0,b.value.field=_;const E=_.rules||[],F={trigger:"change",whitespace:!0};E.forEach(D=>{D.name=="reg"&&(F.trigger=D.trigger,F.whitespace=D.whitespace,F.regExpress=D.pattern,F.regMessage=D.message),D.name=="range"&&(F.rangeMin=D.min,F.rangeMax=D.max,F.rangeMessage=D.message)}),b.value.props=F}const C=u.ref({visible:!1,field:{},props:{},widgets:[{value:"a-input",label:"文本框"},{value:"a-textarea",label:"文本域"},{value:"a-input",label:"文本框"},{value:"a-checkbox",label:"多选框"},{value:"a-radio",label:"单选框"},{value:"a-input-number",label:"数值框"},{value:"a-select",label:"下拉框"},{value:"a-tree-select",label:"下拉树"},{value:"a-date-picker",label:"日期框"},{value:"a-input-password",label:"密码框"},{value:"a-input-search",label:"搜索框"},{value:"a-upload",label:"文件框"},{value:"unione-avatar",label:"头像框",disabled:!0},{value:"unione-picture-card",label:"照片墙"},{value:"a-switch",label:"开关"},{value:"a-slider",label:"滑块"}],widgetName:_=>{const E=C.value.widgets.filter(F=>F.value==_);return E[0]?E[0].label:_},toSetting:()=>{}}),k=u.ref({visible:!1,field:{},convert:{},optionColumn:[{title:"选项标题",dataIndex:"label"},{title:"选项值",dataIndex:"value"},{title:"操作",dataIndex:"action",width:"20%"}],toAddOption:()=>{k.value.convert.options||(k.value.convert.options=[]),k.value.convert.options.push({label:"",value:""})},toDelOption:(_,E)=>{k.value.convert.options.splice(_,1)},toSetting:()=>{k.value.visible=!1}});function M(_){k.value.visible=!0,k.value.field=_,k.value.convert=_.convert||{}}return(_,E)=>{const F=u.resolveComponent("ToolOutlined"),D=u.resolveComponent("a-button"),Q=u.resolveComponent("a-select"),Y=u.resolveComponent("a-checkbox"),L=u.resolveComponent("a-table"),Z=u.resolveComponent("a-input-number"),I=u.resolveComponent("a-form-item"),G=u.resolveComponent("a-input"),ae=u.resolveComponent("a-form"),Oe=u.resolveComponent("a-modal"),Ue=u.resolveComponent("a-col"),ke=u.resolveComponent("a-row"),re=u.resolveComponent("a-select-option"),be=u.resolveComponent("a-divider"),Ve=u.resolveComponent("a-checkbox-group");return u.openBlock(),u.createElementBlock("div",Yz,[u.createVNode(L,{columns:e.value,"data-source":t.value,bordered:"",scroll:{x:1e3},pagination:!1,"row-key":"name",size:"small"},{headerCell:u.withCtx(({column:ve})=>[["widget","queryType","rules","convertName"].includes(ve.key)?(u.openBlock(),u.createElementBlock("span",Gz,[u.createVNode(F),u.createTextVNode(" "+u.toDisplayString(ve.title),1)])):u.createCommentVNode("",!0)]),bodyCell:u.withCtx(({column:ve,text:$e,record:Ae})=>[["rules"].includes(ve.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",!b.value.showInfo(Ae)&&"empty"]),onClick:Se=>x(Ae)},[u.createElementVNode("span",Jz,u.toDisplayString(b.value.showInfo(Ae)),1),b.value.showInfo(Ae)?(u.openBlock(),u.createBlock(D,{key:0,type:"link"},{default:u.withCtx(()=>E[22]||(E[22]=[u.createTextVNode("设置")])),_:1})):u.createCommentVNode("",!0)],10,Kz)):["widget"].includes(ve.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["edit-field",(!r.value[Ae.name]||!Object.keys(r.value[Ae.name]).includes(ve.dataIndex))&&!$e&&"empty"]),onClick:Se=>l(Ae,ve.dataIndex)},[r.value[Ae.name]&&Object.keys(r.value[Ae.name]).includes(ve.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Q,{key:0,value:Ae[ve.dataIndex],"onUpdate:value":Se=>Ae[ve.dataIndex]=Se,allowClear:!0,options:C.value.widgets,onBlur:E[0]||(E[0]=Se=>d())},null,8,["value","onUpdate:value","options"])),[[o]]):(u.openBlock(),u.createElementBlock("span",qz,u.toDisplayString(C.value.widgetName($e)),1))],10,$z)):["queryType"].includes(ve.dataIndex)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[Ae.isQuery?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["edit-field",(!r.value[Ae.name]||!Object.keys(r.value[Ae.name]).includes(ve.dataIndex))&&!$e&&"empty"]),onClick:Se=>l(Ae,ve.dataIndex)},[r.value[Ae.name]&&Object.keys(r.value[Ae.name]).includes(ve.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Q,{key:0,value:Ae[ve.dataIndex],"onUpdate:value":Se=>Ae[ve.dataIndex]=Se,allowClear:!0,options:v.value.options,onBlur:E[1]||(E[1]=Se=>d())},null,8,["value","onUpdate:value","options"])),[[o]]):(u.openBlock(),u.createElementBlock("span",tW,u.toDisplayString(v.value.showLabel($e)),1))],10,eW)):u.createCommentVNode("",!0)],64)):["convertName"].includes(ve.dataIndex)?(u.openBlock(),u.createElementBlock("div",{key:3,class:u.normalizeClass(["edit-field",(!r.value[Ae.name]||!Object.keys(r.value[Ae.name]).includes(ve.dataIndex))&&!Ae.convert?.type&&"empty"]),onClick:Se=>l(Ae,ve.dataIndex)},[r.value[Ae.name]&&Object.keys(r.value[Ae.name]).includes(ve.dataIndex)?u.withDirectives((u.openBlock(),u.createBlock(Q,{key:0,value:Ae.convert.type,"onUpdate:value":Se=>Ae.convert.type=Se,options:[{value:"dict",label:"字典"},{value:"option",label:"静态"}],allowClear:!0,onBlur:E[2]||(E[2]=Se=>d())},null,8,["value","onUpdate:value"])),[[o]]):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[Ae.convert?.type?(u.openBlock(),u.createElementBlock("span",oW,u.toDisplayString(Ae.convert.type=="dict"?"字典":"静态"),1)):u.createCommentVNode("",!0),Ae.convert?.type?(u.openBlock(),u.createBlock(D,{key:1,type:"link",onClick:u.withModifiers(Se=>M(Ae),["stop"])},{default:u.withCtx(()=>E[23]||(E[23]=[u.createTextVNode("设置")])),_:2},1032,["onClick"])):u.createCommentVNode("",!0)],64))],10,nW)):["isQuery","isForm","isView","isList","isSort"].includes(ve.dataIndex)?(u.openBlock(),u.createElementBlock("div",iW,[u.createVNode(Y,{checked:Ae[ve.dataIndex],onClick:Se=>h(Ae,ve.dataIndex)},null,8,["checked","onClick"]),u.createVNode(D,{type:"link",onClick:Se=>g(Ae,ve.dataIndex)},{default:u.withCtx(()=>E[24]||(E[24]=[u.createTextVNode("设置")])),_:2},1032,["onClick"])])):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),u.createVNode(Oe,{visible:m.value.visible,"onUpdate:visible":E[9]||(E[9]=ve=>m.value.visible=ve),title:m.value.title,onOk:m.value.toSetting},{default:u.withCtx(()=>[u.createVNode(ae,{model:m.value.show,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off"},{default:u.withCtx(()=>[u.createVNode(I,{label:"显示顺序"},{default:u.withCtx(()=>[u.createVNode(Z,{value:m.value.show.index,"onUpdate:value":E[3]||(E[3]=ve=>m.value.show.index=ve)},null,8,["value"])]),_:1}),["isQuery"].includes(m.value.prop)?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(I,{key:0,label:"显示宽度"},{default:u.withCtx(()=>[u.createVNode(G,{value:m.value.show.width,"onUpdate:value":E[4]||(E[4]=ve=>m.value.show.width=ve)},null,8,["value"])]),_:1})),["isForm","isView"].includes(m.value.prop)?(u.openBlock(),u.createBlock(I,{key:1,label:"标题宽度"},{default:u.withCtx(()=>[u.createVNode(G,{value:m.value.show.labelWidth,"onUpdate:value":E[5]||(E[5]=ve=>m.value.show.labelWidth=ve)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isForm","isView"].includes(m.value.prop)?(u.openBlock(),u.createBlock(I,{key:2,label:"控件宽度"},{default:u.withCtx(()=>[u.createVNode(G,{value:m.value.show.valueWidth,"onUpdate:value":E[6]||(E[6]=ve=>m.value.show.valueWidth=ve)},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isList"].includes(m.value.prop)?(u.openBlock(),u.createBlock(I,{key:3,label:"固定位置"},{default:u.withCtx(()=>[u.createVNode(Q,{value:m.value.show.fixed,"onUpdate:value":E[7]||(E[7]=ve=>m.value.show.fixed=ve),options:[{value:"",label:"无"},{value:"left",label:"靠左"},{value:"right",label:"靠右"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0),["isList"].includes(m.value.prop)?(u.openBlock(),u.createBlock(I,{key:4,label:"对齐方式"},{default:u.withCtx(()=>[u.createVNode(Q,{value:m.value.show.align,"onUpdate:value":E[8]||(E[8]=ve=>m.value.show.align=ve),options:[{value:"left",label:"左对齐"},{value:"center",label:"居中"},{value:"right",label:"右对齐"}]},null,8,["value"])]),_:1})):u.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","title","onOk"]),u.createVNode(Oe,{visible:k.value.visible,"onUpdate:visible":E[11]||(E[11]=ve=>k.value.visible=ve),title:k.value.convert.type=="dict"?"字典设置":"选项设置",onOk:k.value.toSetting},{default:u.withCtx(()=>[k.value.convert.type!="dict"?(u.openBlock(),u.createElementBlock("div",rW,[u.createVNode(D,{class:"editable-add-btn",style:{"margin-bottom":"8px"},onClick:k.value.toAddOption},{default:u.withCtx(()=>E[25]||(E[25]=[u.createTextVNode("新增")])),_:1},8,["onClick"]),u.createVNode(L,{columns:k.value.optionColumn,"data-source":k.value.convert.options,size:"small"},{bodyCell:u.withCtx(({column:ve,text:$e,record:Ae,index:Se})=>[ve.dataIndex==="label"?(u.openBlock(),u.createBlock(G,{key:0,value:Ae.label,"onUpdate:value":ht=>Ae.label=ht,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):u.createCommentVNode("",!0),ve.dataIndex==="value"?(u.openBlock(),u.createBlock(G,{key:1,value:Ae.value,"onUpdate:value":ht=>Ae.value=ht,style:{margin:"-5px 0"}},null,8,["value","onUpdate:value"])):u.createCommentVNode("",!0),ve.dataIndex==="action"?(u.openBlock(),u.createElementBlock("a",{key:2,onClick:ht=>k.value.toDelOption(Se,Ae)},"删除",8,sW)):u.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])])):u.createCommentVNode("",!0),k.value.convert.type=="dict"?(u.openBlock(),u.createBlock(ae,{key:1,model:k.value.convert,name:"basic","label-col":{span:8},"wrapper-col":{span:16},autocomplete:"off"},{default:u.withCtx(()=>[u.createVNode(ke,{type:"flex",style:{width:"100%"}},{default:u.withCtx(()=>[u.createVNode(Ue,{span:24,order:1},{default:u.withCtx(()=>[u.createVNode(I,{label:"字典名称:"},{default:u.withCtx(()=>[u.createVNode(G,{value:k.value.convert.dict,"onUpdate:value":E[10]||(E[10]=ve=>k.value.convert.dict=ve)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])):u.createCommentVNode("",!0)]),_:1},8,["visible","title","onOk"]),u.createVNode(Oe,{visible:C.value.visible,"onUpdate:visible":E[13]||(E[13]=ve=>C.value.visible=ve),title:"控件设置",onOk:C.value.toSetting},{default:u.withCtx(()=>[u.createVNode(ae,{model:C.value.props,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off"},{default:u.withCtx(()=>[C.value.field.widget=="a-select"?(u.openBlock(),u.createBlock(I,{key:0,label:"下拉框类型"},{default:u.withCtx(()=>[u.createVNode(Q,{value:C.value.props.mode,"onUpdate:value":E[12]||(E[12]=ve=>C.value.props.mode=ve),allowClear:!0},{default:u.withCtx(()=>[u.createVNode(re,{value:"multiple"},{default:u.withCtx(()=>E[26]||(E[26]=[u.createTextVNode("多选")])),_:1}),u.createVNode(re,{value:"tags"},{default:u.withCtx(()=>E[27]||(E[27]=[u.createTextVNode("标签")])),_:1})]),_:1},8,["value"])]),_:1})):u.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","onOk"]),u.createVNode(Oe,{visible:b.value.visible,"onUpdate:visible":E[21]||(E[21]=ve=>b.value.visible=ve),title:"规则设置",onOk:b.value.toSetting},{default:u.withCtx(()=>[u.createVNode(ae,{model:b.value.props,name:"basic","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off",class:"form-mix"},{default:u.withCtx(()=>[u.createVNode(be,{orientation:"left"},{default:u.withCtx(()=>E[28]||(E[28]=[u.createTextVNode("基本设置")])),_:1}),u.createVNode(I,{label:"触发时机"},{default:u.withCtx(()=>[u.createVNode(Ve,{value:b.value.props.trigger,"onUpdate:value":E[14]||(E[14]=ve=>b.value.props.trigger=ve),options:["change","blur"]},null,8,["value"])]),_:1}),b.value.field.isNull?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(I,{key:0,label:"忽略空格",class:"checkbox-tips"},{default:u.withCtx(()=>[u.createVNode(Y,{value:b.value.props.whitespace,"onUpdate:value":E[15]||(E[15]=ve=>b.value.props.whitespace=ve),checked:b.value.props.whitespace},{default:u.withCtx(()=>E[29]||(E[29]=[u.createTextVNode(" 必填验证开启时,是否忽略空格 ")])),_:1},8,["value","checked"])]),_:1})),u.createVNode(be,{orientation:"left"},{default:u.withCtx(()=>E[30]||(E[30]=[u.createTextVNode("数值区间")])),_:1}),u.createVNode(I,{label:"有效区间"},{default:u.withCtx(()=>[u.createVNode(Z,{value:b.value.props.rangeMin,"onUpdate:value":E[16]||(E[16]=ve=>b.value.props.rangeMin=ve)},null,8,["value"]),E[31]||(E[31]=u.createElementVNode("span",{style:{margin:"auto 5px"}},null,-1)),u.createVNode(Z,{value:b.value.props.rangeMax,"onUpdate:value":E[17]||(E[17]=ve=>b.value.props.rangeMax=ve)},null,8,["value"])]),_:1}),u.createVNode(I,{label:"错误提示"},{default:u.withCtx(()=>[u.createVNode(G,{value:b.value.props.rangeMessage,"onUpdate:value":E[18]||(E[18]=ve=>b.value.props.rangeMessage=ve)},null,8,["value"])]),_:1}),u.createVNode(be,{orientation:"left"},{default:u.withCtx(()=>E[32]||(E[32]=[u.createTextVNode("正则验证")])),_:1}),u.createVNode(I,{label:"表达式"},{default:u.withCtx(()=>[u.createVNode(G,{value:b.value.props.regExpress,"onUpdate:value":E[19]||(E[19]=ve=>b.value.props.regExpress=ve)},null,8,["value"])]),_:1}),u.createVNode(I,{label:"错误提示"},{default:u.withCtx(()=>[u.createVNode(G,{value:b.value.props.regMessage,"onUpdate:value":E[20]||(E[20]=ve=>b.value.props.regMessage=ve)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["visible","onOk"])])}}}),[["__scopeId","data-v-ef9b9849"]]),lW={class:"unione-props-setting data-field"},cW=dn(u.defineComponent({__name:"dataField",props:u.mergeModels({filter:{type:Array,default(){return[]}}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=u.useModel(n,"modelValue");return(t,o)=>{const r=u.resolveComponent("OrderedListOutlined"),s=u.resolveComponent("a-tab-pane"),l=u.resolveComponent("ToolOutlined"),d=u.resolveComponent("a-tabs");return u.openBlock(),u.createElementBlock("div",lW,[u.createVNode(d,null,{default:u.withCtx(()=>[u.createVNode(s,{key:"field-mange"},{tab:u.withCtx(()=>[u.createVNode(r),o[2]||(o[2]=u.createTextVNode("字段管理 "))]),default:u.withCtx(()=>[u.createVNode(Xz,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=h=>e.value=h)},null,8,["modelValue"])]),_:1}),u.createVNode(s,{key:"field-setting"},{tab:u.withCtx(()=>[u.createVNode(l),o[3]||(o[3]=u.createTextVNode("字段设置 "))]),default:u.withCtx(()=>[u.createVNode(aW,{modelValue:e.value,"onUpdate:modelValue":o[1]||(o[1]=h=>e.value=h)},null,8,["modelValue"])]),_:1})]),_:1})])}}}),[["__scopeId","data-v-008d1148"]]);for(var En=[],TO=0;TO<256;++TO)En.push((TO+256).toString(16).slice(1));function uW(n,e=0){return(En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]).toLowerCase()}var _f,dW=new Uint8Array(16);function fW(){if(!_f&&(_f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _f(dW)}var hW=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const bP={randomUUID:hW};function pW(n,e,t){if(bP.randomUUID&&!e&&!n)return bP.randomUUID();n=n||{};var o=n.random||(n.rng||fW)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,uW(o)}const mW={key:0,class:"data-model-list"},gW=["onClick"],OW=dn(u.defineComponent({__name:"dataDefine",props:{limit:{type:Number,default:100},editor:{type:Object,required:!0}},setup(n,{expose:e}){const t=u.computed(()=>r.editor.dataModels()),o=u.ref({sn:"new_",title:"新建数据",fields:[]});u.onMounted(()=>{t.value&&t.value[0]&&(o.value=t.value[0])});const r=n;function s(v){o.value=v}function l(){if(t.value.length>=r.limit){Bt.warn({title:"提示信息",content:"数据模型数量超出限制!"});return}const v=pW(),b={sn:v,title:"新建数据",name:"new_",fields:[]};o.value=b,console.log("data model added",b),r.editor.dataModel(v,b)}const d={title:[{required:!0,message:"数据标题不能为空",trigger:"change"}],name:[{required:!0,message:"数据名称不能为空",trigger:"change"}],url:[{required:!0,message:"数据URl不能为空",trigger:"change"}]},h=u.ref(),m=u.inject("closeSetting");function g(){h.value.validate().then(v=>{m&&m()})}return e({toSaving:g}),(v,b)=>{const x=u.resolveComponent("a-input"),C=u.resolveComponent("a-form-item"),k=u.resolveComponent("a-textarea"),M=u.resolveComponent("a-form");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["unione-props-setting","data-define",r.limit<=1&&"center"])},[r.limit>1?(u.openBlock(),u.createElementBlock("div",mW,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value,_=>(u.openBlock(),u.createElementBlock("div",{key:_.sn,class:u.normalizeClass(["title",o.value&&o.value.sn==_.sn&&"slt"]),onClick:E=>s(_)},u.toDisplayString(_.title),11,gW))),128)),u.createElementVNode("div",{class:"title btn-add",onClick:l},"+")])):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(["data-model-form",r.limit<=1&&"center"])},[u.createVNode(M,{ref_key:"formObj",ref:h,rules:d,model:o.value,"label-col":{span:4},"wrapper-col":{span:20}},{default:u.withCtx(()=>[u.createVNode(C,{label:"数据标题",name:"title",required:""},{default:u.withCtx(()=>[u.createVNode(x,{value:o.value.title,"onUpdate:value":b[0]||(b[0]=_=>o.value.title=_)},null,8,["value"])]),_:1}),u.createVNode(C,{label:"数据名称",name:"name",required:""},{default:u.withCtx(()=>[u.createVNode(x,{value:o.value.name,"onUpdate:value":b[1]||(b[1]=_=>o.value.name=_)},null,8,["value"])]),_:1}),u.createVNode(C,{label:"数据URL",name:"url",required:"",tooltip:"数据请求url,统一使用post请求,保存接口:url/save,修改接口:url/update,查询接口:url/find,删除接口:url/delete,详情接口:url/detail"},{default:u.withCtx(()=>[u.createVNode(x,{value:o.value.url,"onUpdate:value":b[2]||(b[2]=_=>o.value.url=_)},null,8,["value"])]),_:1}),u.createVNode(C,{label:"数据说明",name:"descs"},{default:u.withCtx(()=>[u.createVNode(k,{value:o.value.descs,"onUpdate:value":b[3]||(b[3]=_=>o.value.descs=_)},null,8,["value"])]),_:1})]),_:1},8,["model"]),u.createVNode(cW,{modelValue:o.value.fields,"onUpdate:modelValue":b[4]||(b[4]=_=>o.value.fields=_)},null,8,["modelValue"])],2)],2)}}}),[["__scopeId","data-v-6be2cc50"]]),vW={class:"unione-props-setting unione-page-setting"},yW=dn(u.defineComponent({__name:"pageSetting",props:{editor:{type:Object,required:!0}},setup(n){const e=n,t=u.ref({});return u.onMounted(()=>{t.value=e.editor.define.value}),(o,r)=>{const s=u.resolveComponent("a-form-item"),l=u.resolveComponent("a-input"),d=u.resolveComponent("a-switch"),h=u.resolveComponent("a-textarea"),m=u.resolveComponent("a-form"),g=u.resolveComponent("a-tab-pane"),v=u.resolveComponent("a-tabs");return u.openBlock(),u.createElementBlock("div",vW,[u.createVNode(v,{type:"card"},{default:u.withCtx(()=>[u.createVNode(g,{key:"pageDefine",tab:"页面设置"},{default:u.withCtx(()=>[u.createVNode(m,{model:t.value,name:"basic","label-col":{span:5},"wrapper-col":{span:16},autocomplete:"off",class:"form-mix"},{default:u.withCtx(()=>[t.value.sn&&t.value.sn!="new_"?(u.openBlock(),u.createBlock(s,{key:0,label:"页面编码"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.value.sn)+"/V"+u.toDisplayString(t.value.vers),1)]),_:1})):u.createCommentVNode("",!0),u.createVNode(s,{label:"页面标题",required:""},{default:u.withCtx(()=>[u.createVNode(l,{value:t.value.title,"onUpdate:value":r[0]||(r[0]=b=>t.value.title=b)},null,8,["value"])]),_:1}),u.createVNode(s,{label:"页面组件",required:""},{default:u.withCtx(()=>[u.createVNode(l,{value:t.value.component,"onUpdate:value":r[1]||(r[1]=b=>t.value.component=b)},null,8,["value"])]),_:1}),u.createVNode(s,{label:"icon图标"},{default:u.withCtx(()=>[u.createVNode(l,{value:t.value.icon,"onUpdate:value":r[2]||(r[2]=b=>t.value.icon=b)},null,8,["value"])]),_:1}),u.createVNode(s,{label:"是否全局"},{default:u.withCtx(()=>[u.createVNode(d,{checked:t.value.isGlobal,"onUpdate:checked":r[3]||(r[3]=b=>t.value.isGlobal=b),checkedValue:1,checkedChildren:"是",unCheckedChildren:"否",unCheckedValue:0},null,8,["checked"])]),_:1}),u.createVNode(s,{label:"是否模版"},{default:u.withCtx(()=>[u.createVNode(d,{checked:t.value.isTmpl,"onUpdate:checked":r[4]||(r[4]=b=>t.value.isTmpl=b),checkedValue:1,checkedChildren:"是",unCheckedChildren:"否",unCheckedValue:0},null,8,["checked"])]),_:1}),u.createVNode(s,{label:"页面备注"},{default:u.withCtx(()=>[u.createVNode(h,{value:t.value.descs,"onUpdate:value":r[5]||(r[5]=b=>t.value.descs=b),placeholder:"请输入页面备注...",rows:4},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}),u.createVNode(g,{key:"dataDefine",tab:"数据设置"},{default:u.withCtx(()=>[u.createVNode(OW,{editor:n.editor},null,8,["editor"])]),_:1})]),_:1})])}}}),[["__scopeId","data-v-2420ce7a"]]),xP=dn(u.defineComponent({__name:"view",props:{psn:{type:String},params:{type:Object,default(){return{}}},wid:{type:String,required:!1},editor:{type:Object,required:!1},widget:{type:Object,required:!1}},setup(n){const e=n,t={sn:"new_",title:"新建页面",types:"setting",vers:1,configs:"{}",component:"unione-form-page"};let o=new vm(t);const r=u.computed(()=>o.$widgetList.value),s=yP();return u.onMounted(()=>{const l=e.psn||s?.query?.psn||s?.meta?.psn||"QhuXgnZGgqYfC4VL0ZQi";console.log("unione page view,psn:"+l),e.editor&&(o=e.editor),o.setModel("run"),o.load(l)}),(l,d)=>(u.openBlock(),u.createBlock(Iz,{class:"unione-page","setting-title":"页面设置",editor:u.unref(o)},{"page-setting":u.withCtx(()=>[u.createVNode(yW,{editor:u.unref(o)},null,8,["editor"])]),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,h=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.render||h.widget),{key:h.wid,wid:h.wid,widget:h,editor:u.unref(o)},null,8,["wid","widget","editor"]))),128))]),_:1},8,["editor"]))}}),[["__scopeId","data-v-2d722d75"]]),bW={Editor:vm,locales:Fh,install(n,e){n.use(jh,e),n.component("UnioneBtn",UZ),n.component("UnioneTabs",XZ),n.component("UnioneQueryForm",bz),n.component("UnioneTableList",Mz),n.component("UnioneFormRender",YZ),n.component("UnioneForm",cz),n.component("UinonePageView",xP)}};un.Editor=vm,un.UinonePageView=xP,un.default=bW,un.locales=Fh,Object.defineProperties(un,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|