e instanceof jr?e.toJSON():e;function Wa(e,t){t=t||{};const n={};function r(u,c,d){return fe.isPlainObject(u)&&fe.isPlainObject(c)?fe.merge.call({caseless:d},u,c):fe.isPlainObject(c)?fe.merge({},c):fe.isArray(c)?c.slice():c}function i(u,c,d){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function a(u,c){if(!fe.isUndefined(c))return r(void 0,c)}function o(u,c){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>i(Db(u),Db(c),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);fe.isUndefined(p)&&d!==s||(n[c]=p)}),n}const Ex="1.4.0",qh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lb={};qh.transitional=function(t,n,r){function i(a,o){return"[Axios v"+Ex+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new Xe(i(o," has been removed"+(n?" in "+n:"")),Xe.ERR_DEPRECATED);return n&&!Lb[o]&&(Lb[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function ez(e,t,n){if(typeof e!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Xe("option "+a+" must be "+l,Xe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xe("Unknown option "+a,Xe.ERR_BAD_OPTION)}}const bd={assertOptions:ez,validators:qh},Jr=bd.validators;let au=class{constructor(t){this.defaults=t,this.interceptors={request:new Nb,response:new Nb}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&bd.assertOptions(r,{silentJSONParsing:Jr.transitional(Jr.boolean),forcedJSONParsing:Jr.transitional(Jr.boolean),clarifyTimeoutError:Jr.transitional(Jr.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:bd.assertOptions(i,{encode:Jr.function,serialize:Jr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=a&&fe.merge(a.common,a[n.method]),o&&fe.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),n.headers=jr.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,p;if(!l){const f=[Fb.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),p=f.length,c=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new Ms(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Tx(function(i){t=i}),cancel:t}}};const nz=tz;function rz(e){return function(n){return e.apply(null,n)}}function iz(e){return fe.isObject(e)&&e.isAxiosError===!0}const _d={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(_d).forEach(([e,t])=>{_d[t]=e});const az=_d;function Px(e){const t=new kl(e),n=lx(kl.prototype.request,t);return fe.extend(n,kl.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Px(Wa(e,i))},n}const Rt=Px(Yh);Rt.Axios=kl;Rt.CanceledError=Ms;Rt.CancelToken=nz;Rt.isCancel=Sx;Rt.VERSION=Ex;Rt.toFormData=ic;Rt.AxiosError=Xe;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=rz;Rt.isAxiosError=iz;Rt.mergeConfig=Wa;Rt.AxiosHeaders=jr;Rt.formToJSON=e=>wx(fe.isHTMLForm(e)?new FormData(e):e);Rt.HttpStatusCode=az;Rt.default=Rt;const Ox=Rt,{Axios:sQ,AxiosError:lQ,CanceledError:uQ,isCancel:cQ,CancelToken:fQ,VERSION:dQ,all:pQ,Cancel:hQ,isAxiosError:oz,spread:vQ,toFormData:gQ,AxiosHeaders:mQ,HttpStatusCode:yQ,formToJSON:bQ,mergeConfig:_Q}=Ox;/*!
- * shared v9.3.0-beta.19
- * (c) 2023 kazuya kawaguchi
- * Released under the MIT License.
- */const Cd=typeof window<"u",ra=(e,t=!1)=>t?Symbol.for(e):Symbol(e),sz=(e,t,n)=>lz({l:e,k:t,s:n}),lz=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Mt=e=>typeof e=="number"&&isFinite(e),uz=e=>Ax(e)==="[object Date]",gi=e=>Ax(e)==="[object RegExp]",sc=e=>Ne(e)&&Object.keys(e).length===0;function cz(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ut=Object.assign;let $b;const zo=()=>$b||($b=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bb(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const fz=Object.prototype.hasOwnProperty;function Xh(e,t){return fz.call(e,t)}const ht=Array.isArray,Et=e=>typeof e=="function",Se=e=>typeof e=="string",Ue=e=>typeof e=="boolean",it=e=>e!==null&&typeof e=="object",Ix=Object.prototype.toString,Ax=e=>Ix.call(e),Ne=e=>{if(!it(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},dz=e=>e==null?"":ht(e)||Ne(e)&&e.toString===Ix?JSON.stringify(e,null,2):String(e);/*!
- * message-compiler v9.3.0-beta.19
- * (c) 2023 kazuya kawaguchi
- * Released under the MIT License.
- */const Je={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function lc(e,t,n={}){const{domain:r,messages:i,args:a}=n,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function pz(e){throw e}function hz(e,t,n){return{line:e,column:t,offset:n}}function wd(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const kr=" ",vz="\r",nn=`
-`,gz=String.fromCharCode(8232),mz=String.fromCharCode(8233);function yz(e){const t=e;let n=0,r=1,i=1,a=0;const o=w=>t[w]===vz&&t[w+1]===nn,s=w=>t[w]===nn,l=w=>t[w]===mz,u=w=>t[w]===gz,c=w=>o(w)||s(w)||l(w)||u(w),d=()=>n,p=()=>r,v=()=>i,f=()=>a,h=w=>o(w)||l(w)||u(w)?nn:t[w],m=()=>h(n),g=()=>h(n+a);function y(){return a=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+a)&&a++,a++,t[n+a]}function _(){n=0,r=1,i=1,a=0}function C(w=0){a=w}function S(){const w=n+a;for(;w!==n;)y();a=0}return{index:d,line:p,column:v,peekOffset:f,charAt:h,currentChar:m,currentPeek:g,next:y,peek:b,reset:_,resetPeek:C,skipToPeek:S}}const Qr=void 0,jb="'",bz="tokenizer";function _z(e,t={}){const n=t.location!==!1,r=yz(e),i=()=>r.index(),a=()=>hz(r.line(),r.column(),r.index()),o=a(),s=i(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(E,A,z,...K){const W=u();if(A.column+=z,A.offset+=z,c){const oe=wd(W.startLoc,A),ae=lc(E,oe,{domain:bz,args:K});c(ae)}}function p(E,A,z){E.endLoc=a(),E.currentType=A;const K={type:A};return n&&(K.loc=wd(E.startLoc,E.endLoc)),z!=null&&(K.value=z),K}const v=E=>p(E,14);function f(E,A){return E.currentChar()===A?(E.next(),A):(d(Je.EXPECTED_TOKEN,a(),0,A),"")}function h(E){let A="";for(;E.currentPeek()===kr||E.currentPeek()===nn;)A+=E.currentPeek(),E.peek();return A}function m(E){const A=h(E);return E.skipToPeek(),A}function g(E){if(E===Qr)return!1;const A=E.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function y(E){if(E===Qr)return!1;const A=E.charCodeAt(0);return A>=48&&A<=57}function b(E,A){const{currentType:z}=A;if(z!==2)return!1;h(E);const K=g(E.currentPeek());return E.resetPeek(),K}function _(E,A){const{currentType:z}=A;if(z!==2)return!1;h(E);const K=E.currentPeek()==="-"?E.peek():E.currentPeek(),W=y(K);return E.resetPeek(),W}function C(E,A){const{currentType:z}=A;if(z!==2)return!1;h(E);const K=E.currentPeek()===jb;return E.resetPeek(),K}function S(E,A){const{currentType:z}=A;if(z!==8)return!1;h(E);const K=E.currentPeek()===".";return E.resetPeek(),K}function w(E,A){const{currentType:z}=A;if(z!==9)return!1;h(E);const K=g(E.currentPeek());return E.resetPeek(),K}function P(E,A){const{currentType:z}=A;if(!(z===8||z===12))return!1;h(E);const K=E.currentPeek()===":";return E.resetPeek(),K}function x(E,A){const{currentType:z}=A;if(z!==10)return!1;const K=()=>{const oe=E.currentPeek();return oe==="{"?g(E.peek()):oe==="@"||oe==="%"||oe==="|"||oe===":"||oe==="."||oe===kr||!oe?!1:oe===nn?(E.peek(),K()):g(oe)},W=K();return E.resetPeek(),W}function k(E){h(E);const A=E.currentPeek()==="|";return E.resetPeek(),A}function R(E){const A=h(E),z=E.currentPeek()==="%"&&E.peek()==="{";return E.resetPeek(),{isModulo:z,hasSpace:A.length>0}}function L(E,A=!0){const z=(W=!1,oe="",ae=!1)=>{const re=E.currentPeek();return re==="{"?oe==="%"?!1:W:re==="@"||!re?oe==="%"?!0:W:re==="%"?(E.peek(),z(W,"%",!0)):re==="|"?oe==="%"||ae?!0:!(oe===kr||oe===nn):re===kr?(E.peek(),z(!0,kr,ae)):re===nn?(E.peek(),z(!0,nn,ae)):!0},K=z();return A&&E.resetPeek(),K}function B(E,A){const z=E.currentChar();return z===Qr?Qr:A(z)?(E.next(),z):null}function j(E){return B(E,z=>{const K=z.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36})}function D(E){return B(E,z=>{const K=z.charCodeAt(0);return K>=48&&K<=57})}function I(E){return B(E,z=>{const K=z.charCodeAt(0);return K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102})}function O(E){let A="",z="";for(;A=D(E);)z+=A;return z}function N(E){m(E);const A=E.currentChar();return A!=="%"&&d(Je.EXPECTED_TOKEN,a(),0,A),E.next(),"%"}function F(E){let A="";for(;;){const z=E.currentChar();if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z==="%")if(L(E))A+=z,E.next();else break;else if(z===kr||z===nn)if(L(E))A+=z,E.next();else{if(k(E))break;A+=z,E.next()}else A+=z,E.next()}return A}function G(E){m(E);let A="",z="";for(;A=j(E);)z+=A;return E.currentChar()===Qr&&d(Je.UNTERMINATED_CLOSING_BRACE,a(),0),z}function X(E){m(E);let A="";return E.currentChar()==="-"?(E.next(),A+=`-${O(E)}`):A+=O(E),E.currentChar()===Qr&&d(Je.UNTERMINATED_CLOSING_BRACE,a(),0),A}function ee(E){m(E),f(E,"'");let A="",z="";const K=oe=>oe!==jb&&oe!==nn;for(;A=B(E,K);)A==="\\"?z+=Z(E):z+=A;const W=E.currentChar();return W===nn||W===Qr?(d(Je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),W===nn&&(E.next(),f(E,"'")),z):(f(E,"'"),z)}function Z(E){const A=E.currentChar();switch(A){case"\\":case"'":return E.next(),`\\${A}`;case"u":return q(E,A,4);case"U":return q(E,A,6);default:return d(Je.UNKNOWN_ESCAPE_SEQUENCE,a(),0,A),""}}function q(E,A,z){f(E,A);let K="";for(let W=0;WW!=="{"&&W!=="}"&&W!==kr&&W!==nn;for(;A=B(E,K);)z+=A;return z}function se(E){let A="",z="";for(;A=j(E);)z+=A;return z}function pe(E){const A=(z=!1,K)=>{const W=E.currentChar();return W==="{"||W==="%"||W==="@"||W==="|"||!W||W===kr?K:W===nn?(K+=W,E.next(),A(z,K)):(K+=W,E.next(),A(!0,K))};return A(!1,"")}function ye(E){m(E);const A=f(E,"|");return m(E),A}function ve(E,A){let z=null;switch(E.currentChar()){case"{":return A.braceNest>=1&&d(Je.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),E.next(),z=p(A,2,"{"),m(E),A.braceNest++,z;case"}":return A.braceNest>0&&A.currentType===2&&d(Je.EMPTY_PLACEHOLDER,a(),0),E.next(),z=p(A,3,"}"),A.braceNest--,A.braceNest>0&&m(E),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),z;case"@":return A.braceNest>0&&d(Je.UNTERMINATED_CLOSING_BRACE,a(),0),z=me(E,A)||v(A),A.braceNest=0,z;default:let W=!0,oe=!0,ae=!0;if(k(E))return A.braceNest>0&&d(Je.UNTERMINATED_CLOSING_BRACE,a(),0),z=p(A,1,ye(E)),A.braceNest=0,A.inLinked=!1,z;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return d(Je.UNTERMINATED_CLOSING_BRACE,a(),0),A.braceNest=0,we(E,A);if(W=b(E,A))return z=p(A,5,G(E)),m(E),z;if(oe=_(E,A))return z=p(A,6,X(E)),m(E),z;if(ae=C(E,A))return z=p(A,7,ee(E)),m(E),z;if(!W&&!oe&&!ae)return z=p(A,13,ne(E)),d(Je.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,z.value),m(E),z;break}return z}function me(E,A){const{currentType:z}=A;let K=null;const W=E.currentChar();switch((z===8||z===9||z===12||z===10)&&(W===nn||W===kr)&&d(Je.INVALID_LINKED_FORMAT,a(),0),W){case"@":return E.next(),K=p(A,8,"@"),A.inLinked=!0,K;case".":return m(E),E.next(),p(A,9,".");case":":return m(E),E.next(),p(A,10,":");default:return k(E)?(K=p(A,1,ye(E)),A.braceNest=0,A.inLinked=!1,K):S(E,A)||P(E,A)?(m(E),me(E,A)):w(E,A)?(m(E),p(A,12,se(E))):x(E,A)?(m(E),W==="{"?ve(E,A)||K:p(A,11,pe(E))):(z===8&&d(Je.INVALID_LINKED_FORMAT,a(),0),A.braceNest=0,A.inLinked=!1,we(E,A))}}function we(E,A){let z={type:14};if(A.braceNest>0)return ve(E,A)||v(A);if(A.inLinked)return me(E,A)||v(A);switch(E.currentChar()){case"{":return ve(E,A)||v(A);case"}":return d(Je.UNBALANCED_CLOSING_BRACE,a(),0),E.next(),p(A,3,"}");case"@":return me(E,A)||v(A);default:if(k(E))return z=p(A,1,ye(E)),A.braceNest=0,A.inLinked=!1,z;const{isModulo:W,hasSpace:oe}=R(E);if(W)return oe?p(A,0,F(E)):p(A,4,N(E));if(L(E))return p(A,0,F(E));break}return z}function $(){const{currentType:E,offset:A,startLoc:z,endLoc:K}=l;return l.lastType=E,l.lastOffset=A,l.lastStartLoc=z,l.lastEndLoc=K,l.offset=i(),l.startLoc=a(),r.currentChar()===Qr?p(l,14):we(r,l)}return{nextToken:$,currentOffset:i,currentPosition:a,context:u}}const Cz="parser",wz=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Sz(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function xz(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,y,b,_,...C){const S=g.currentPosition();if(S.offset+=_,S.column+=_,n){const w=wd(b,S),P=lc(y,w,{domain:Cz,args:C});n(P)}}function i(g,y,b){const _={type:g,start:y,end:y};return t&&(_.loc={start:b,end:b}),_}function a(g,y,b,_){g.end=y,_&&(g.type=_),t&&g.loc&&(g.loc.end=b)}function o(g,y){const b=g.context(),_=i(3,b.offset,b.startLoc);return _.value=y,a(_,g.currentOffset(),g.currentPosition()),_}function s(g,y){const b=g.context(),{lastOffset:_,lastStartLoc:C}=b,S=i(5,_,C);return S.index=parseInt(y,10),g.nextToken(),a(S,g.currentOffset(),g.currentPosition()),S}function l(g,y){const b=g.context(),{lastOffset:_,lastStartLoc:C}=b,S=i(4,_,C);return S.key=y,g.nextToken(),a(S,g.currentOffset(),g.currentPosition()),S}function u(g,y){const b=g.context(),{lastOffset:_,lastStartLoc:C}=b,S=i(9,_,C);return S.value=y.replace(wz,Sz),g.nextToken(),a(S,g.currentOffset(),g.currentPosition()),S}function c(g){const y=g.nextToken(),b=g.context(),{lastOffset:_,lastStartLoc:C}=b,S=i(8,_,C);return y.type!==12?(r(g,Je.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),S.value="",a(S,_,C),{nextConsumeToken:y,node:S}):(y.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,cr(y)),S.value=y.value||"",a(S,g.currentOffset(),g.currentPosition()),{node:S})}function d(g,y){const b=g.context(),_=i(7,b.offset,b.startLoc);return _.value=y,a(_,g.currentOffset(),g.currentPosition()),_}function p(g){const y=g.context(),b=i(6,y.offset,y.startLoc);let _=g.nextToken();if(_.type===9){const C=c(g);b.modifier=C.node,_=C.nextConsumeToken||g.nextToken()}switch(_.type!==10&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(_)),_=g.nextToken(),_.type===2&&(_=g.nextToken()),_.type){case 11:_.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(_)),b.key=d(g,_.value||"");break;case 5:_.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(_)),b.key=l(g,_.value||"");break;case 6:_.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(_)),b.key=s(g,_.value||"");break;case 7:_.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(_)),b.key=u(g,_.value||"");break;default:r(g,Je.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const C=g.context(),S=i(7,C.offset,C.startLoc);return S.value="",a(S,C.offset,C.startLoc),b.key=S,a(b,C.offset,C.startLoc),{nextConsumeToken:_,node:b}}return a(b,g.currentOffset(),g.currentPosition()),{node:b}}function v(g){const y=g.context(),b=y.currentType===1?g.currentOffset():y.offset,_=y.currentType===1?y.endLoc:y.startLoc,C=i(2,b,_);C.items=[];let S=null;do{const x=S||g.nextToken();switch(S=null,x.type){case 0:x.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(x)),C.items.push(o(g,x.value||""));break;case 6:x.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(x)),C.items.push(s(g,x.value||""));break;case 5:x.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(x)),C.items.push(l(g,x.value||""));break;case 7:x.value==null&&r(g,Je.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,cr(x)),C.items.push(u(g,x.value||""));break;case 8:const k=p(g);C.items.push(k.node),S=k.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const w=y.currentType===1?y.lastOffset:g.currentOffset(),P=y.currentType===1?y.lastEndLoc:g.currentPosition();return a(C,w,P),C}function f(g,y,b,_){const C=g.context();let S=_.items.length===0;const w=i(1,y,b);w.cases=[],w.cases.push(_);do{const P=v(g);S||(S=P.items.length===0),w.cases.push(P)}while(C.currentType!==14);return S&&r(g,Je.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(w,g.currentOffset(),g.currentPosition()),w}function h(g){const y=g.context(),{offset:b,startLoc:_}=y,C=v(g);return y.currentType===14?C:f(g,b,_,C)}function m(g){const y=_z(g,Ut({},e)),b=y.context(),_=i(0,b.offset,b.startLoc);return t&&_.loc&&(_.loc.source=g),_.body=h(y),b.currentType!==14&&r(y,Je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,g[b.offset]||""),a(_,y.currentOffset(),y.currentPosition()),_}return{parse:m}}function cr(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ez(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function zb(e,t){for(let n=0;no;function l(h,m){o.code+=h}function u(h,m=!0){const g=m?i:"";l(a?g+" ".repeat(h):g)}function c(h=!0){const m=++o.indentLevel;h&&u(m)}function d(h=!0){const m=--o.indentLevel;h&&u(m)}function p(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:d,newline:p,helper:h=>`_${h}`,needIndent:()=>o.needIndent}}function Oz(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ka(e,t.key),t.modifier?(e.push(", "),Ka(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Iz(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let a=0;a{const n=Se(t.mode)?t.mode:"normal",r=Se(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
-`,o=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=Pz(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ka(l,e),l.deindent(o),l.push("}");const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function kz(e,t={}){const n=Ut({},t),i=xz(n).parse(e);return Tz(i,n),Nz(i,n)}/*!
- * devtools-if v9.3.0-beta.19
- * (c) 2023 kazuya kawaguchi
- * Released under the MIT License.
- */const Mx={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
- * core-base v9.3.0-beta.19
- * (c) 2023 kazuya kawaguchi
- * Released under the MIT License.
- */const _i=[];_i[0]={w:[0],i:[3,0],["["]:[4],o:[7]};_i[1]={w:[1],["."]:[2],["["]:[4],o:[7]};_i[2]={w:[2],i:[3,0],[0]:[3,0]};_i[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};_i[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};_i[5]={["'"]:[4,0],o:8,l:[5,0]};_i[6]={['"']:[4,0],o:8,l:[6,0]};const Rz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Fz(e){return Rz.test(e)}function Dz(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Lz(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function $z(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Fz(t)?Dz(t):"*"+t}function Bz(e){const t=[];let n=-1,r=0,i=0,a,o,s,l,u,c,d;const p=[];p[0]=()=>{o===void 0?o=s:o+=s},p[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,o===void 0||(o=$z(o),o===!1))return!1;p[1]()}};function v(){const f=e[n+1];if(r===5&&f==="'"||r===6&&f==='"')return n++,s="\\"+f,p[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&v())){if(l=Lz(a),d=_i[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=p[u[1]],c&&(s=a,c()===!1))))return;if(r===7)return t}}const Ub=new Map;function jz(e,t){return it(e)?e[t]:null}function zz(e,t){if(!it(e))return null;let n=Ub.get(t);if(n||(n=Bz(t),n&&Ub.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;for(;ae,Hz=e=>"",Wz="text",Kz=e=>e.length===0?"":e.join(""),Gz=dz;function Hb(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Vz(e){const t=Mt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Mt(e.named.count)||Mt(e.named.n))?Mt(e.named.count)?e.named.count:Mt(e.named.n)?e.named.n:t:t}function Yz(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qz(e={}){const t=e.locale,n=Vz(e),r=it(e.pluralRules)&&Se(t)&&Et(e.pluralRules[t])?e.pluralRules[t]:Hb,i=it(e.pluralRules)&&Se(t)&&Et(e.pluralRules[t])?Hb:void 0,a=g=>g[r(n,g.length,i)],o=e.list||[],s=g=>o[g],l=e.named||{};Mt(e.pluralIndex)&&Yz(n,l);const u=g=>l[g];function c(g){const y=Et(e.messages)?e.messages(g):it(e.messages)?e.messages[g]:!1;return y||(e.parent?e.parent.message(g):Hz)}const d=g=>e.modifiers?e.modifiers[g]:Uz,p=Ne(e.processor)&&Et(e.processor.normalize)?e.processor.normalize:Kz,v=Ne(e.processor)&&Et(e.processor.interpolate)?e.processor.interpolate:Gz,f=Ne(e.processor)&&Se(e.processor.type)?e.processor.type:Wz,m={list:s,named:u,plural:a,linked:(g,...y)=>{const[b,_]=y;let C="text",S="";y.length===1?it(b)?(S=b.modifier||S,C=b.type||C):Se(b)&&(S=b||S):y.length===2&&(Se(b)&&(S=b||S),Se(_)&&(C=_||C));let w=c(g)(m);return C==="vnode"&&ht(w)&&S&&(w=w[0]),S?d(S)(w,C):w},message:c,type:f,interpolate:v,normalize:p};return m}let ps=null;function Xz(e){ps=e}function Zz(e,t,n){ps&&ps.emit(Mx.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Jz=Qz(Mx.FunctionTranslate);function Qz(e){return t=>ps&&ps.emit(e,t)}function eU(e,t,n){return[...new Set([n,...ht(t)?t:it(t)?Object.keys(t):Se(t)?[t]:[n]])]}function Nx(e,t,n){const r=Se(n)?n:Ns,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(r);if(!a){a=[];let o=[n];for(;ht(o);)o=Wb(a,o,t);const s=ht(t)||!Ne(t)?t:t.default?t.default:null;o=Se(s)?[s]:s,ht(o)&&Wb(a,o,!1),i.__localeChainCache.set(r,a)}return a}function Wb(e,t,n){let r=!0;for(let i=0;i`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function iU(){return{upper:(e,t)=>t==="text"&&Se(e)?e.toUpperCase():t==="vnode"&&it(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Se(e)?e.toLowerCase():t==="vnode"&&it(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Se(e)?Gb(e):t==="vnode"&&it(e)&&"__v_isVNode"in e?Gb(e.children):e}}let kx;function aU(e){kx=e}let Rx;function oU(e){Rx=e}let Fx;function sU(e){Fx=e}let Dx=null;const Vb=e=>{Dx=e},lU=()=>Dx;let Lx=null;const Yb=e=>{Lx=e},uU=()=>Lx;let qb=0;function cU(e={}){const t=Se(e.version)?e.version:rU,n=Se(e.locale)?e.locale:Ns,r=ht(e.fallbackLocale)||Ne(e.fallbackLocale)||Se(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=Ne(e.messages)?e.messages:{[n]:{}},a=Ne(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=Ne(e.numberFormats)?e.numberFormats:{[n]:{}},s=Ut({},e.modifiers||{},iU()),l=e.pluralRules||{},u=Et(e.missing)?e.missing:null,c=Ue(e.missingWarn)||gi(e.missingWarn)?e.missingWarn:!0,d=Ue(e.fallbackWarn)||gi(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,v=!!e.unresolving,f=Et(e.postTranslation)?e.postTranslation:null,h=Ne(e.processor)?e.processor:null,m=Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,y=Et(e.messageCompiler)?e.messageCompiler:kx,b=Et(e.messageResolver)?e.messageResolver:Rx||jz,_=Et(e.localeFallbacker)?e.localeFallbacker:Fx||eU,C=it(e.fallbackContext)?e.fallbackContext:void 0,S=Et(e.onWarn)?e.onWarn:cz,w=e,P=it(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,x=it(w.__numberFormatters)?w.__numberFormatters:new Map,k=it(w.__meta)?w.__meta:{};qb++;const R={version:t,cid:qb,locale:n,fallbackLocale:r,messages:i,modifiers:s,pluralRules:l,missing:u,missingWarn:c,fallbackWarn:d,fallbackFormat:p,unresolving:v,postTranslation:f,processor:h,warnHtmlMessage:m,escapeParameter:g,messageCompiler:y,messageResolver:b,localeFallbacker:_,fallbackContext:C,onWarn:S,__meta:k};return R.datetimeFormats=a,R.numberFormats=o,R.__datetimeFormatters=P,R.__numberFormatters=x,__INTLIFY_PROD_DEVTOOLS__&&Zz(R,t,k),R}function Jh(e,t,n,r,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,n,t,i);return Se(s)?s:t}else return t}function Co(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const fU=e=>e;let Xb=Object.create(null);function dU(e,t={}){{Ue(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||fU)(e),i=Xb[r];if(i)return i;let a=!1;const o=t.onError||pz;t.onError=u=>{a=!0,o(u)};const{code:s}=kz(e,t),l=new Function(`return ${s}`)();return a?l:Xb[r]=l}}let $x=Je.__EXTEND_POINT__;const cf=()=>++$x,xa={INVALID_ARGUMENT:$x,INVALID_DATE_ARGUMENT:cf(),INVALID_ISO_DATE_ARGUMENT:cf(),__EXTEND_POINT__:cf()};function Ea(e){return lc(e,null,void 0)}const Zb=()=>"",vr=e=>Et(e);function Jb(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Sd(...t),c=Ue(u.missingWarn)?u.missingWarn:e.missingWarn,d=Ue(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=Ue(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,f=Se(u.default)||Ue(u.default)?Ue(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:"",h=n||f!=="",m=Se(u.locale)?u.locale:e.locale;p&&pU(u);let[g,y,b]=v?[l,m,s[m]||{}]:Bx(e,l,m,o,d,c),_=g,C=l;if(!v&&!(Se(_)||vr(_))&&h&&(_=f,C=_),!v&&(!(Se(_)||vr(_))||!Se(y)))return i?uc:l;let S=!1;const w=()=>{S=!0},P=vr(_)?_:jx(e,l,y,_,C,w);if(S)return _;const x=gU(e,y,b,u),k=qz(x),R=hU(e,P,k),L=r?r(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:Se(l)?l:vr(_)?_.key:"",locale:y||(vr(_)?_.locale:""),format:Se(_)?_:vr(_)?_.source:"",message:L};B.meta=Ut({},e.__meta,lU()||{}),Jz(B)}return L}function pU(e){ht(e.list)?e.list=e.list.map(t=>Se(t)?Bb(t):t):it(e.named)&&Object.keys(e.named).forEach(t=>{Se(e.named[t])&&(e.named[t]=Bb(e.named[t]))})}function Bx(e,t,n,r,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d={},p,v=null;const f="translate";for(let h=0;hr;return u.locale=n,u.key=t,u}const l=o(r,vU(e,n,i,r,s,a));return l.locale=n,l.key=t,l.source=r,l}function hU(e,t,n){return t(n)}function Sd(...e){const[t,n,r]=e,i={};if(!Se(t)&&!Mt(t)&&!vr(t))throw Ea(xa.INVALID_ARGUMENT);const a=Mt(t)?String(t):(vr(t),t);return Mt(n)?i.plural=n:Se(n)?i.default=n:Ne(n)&&!sc(n)?i.named=n:ht(n)&&(i.list=n),Mt(r)?i.plural=r:Se(r)?i.default=r:Ne(r)&&Ut(i,r),[a,i]}function vU(e,t,n,r,i,a){return{warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>sz(t,n,o)}}function gU(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,p={locale:t,modifiers:i,pluralRules:a,messages:v=>{let f=o(n,v);if(f==null&&c){const[,,h]=Bx(c,v,t,s,l,u);f=o(h,v)}if(Se(f)){let h=!1;const g=jx(e,v,t,f,v,()=>{h=!0});return h?Zb:g}else return vr(f)?f:Zb}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Mt(r.plural)&&(p.pluralIndex=r.plural),p}function Qb(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,d]=xd(...t),p=Ue(c.missingWarn)?c.missingWarn:e.missingWarn;Ue(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,f=Se(c.locale)?c.locale:e.locale,h=o(e,i,f);if(!Se(l)||l==="")return new Intl.DateTimeFormat(f,d).format(u);let m={},g,y=null;const b="datetime format";for(let S=0;S{zx.includes(l)?o[l]=n[l]:a[l]=n[l]}),Se(r)?a.locale=r:Ne(r)&&(o=r),Ne(i)&&(o=i),[a.key||"",s,a,o]}function e0(e,t,n){const r=e;for(const i in n){const a=`${t}__${i}`;r.__datetimeFormatters.has(a)&&r.__datetimeFormatters.delete(a)}}function t0(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,d]=Ed(...t),p=Ue(c.missingWarn)?c.missingWarn:e.missingWarn;Ue(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,f=Se(c.locale)?c.locale:e.locale,h=o(e,i,f);if(!Se(l)||l==="")return new Intl.NumberFormat(f,d).format(u);let m={},g,y=null;const b="number format";for(let S=0;S{Ux.includes(l)?o[l]=n[l]:a[l]=n[l]}),Se(r)?a.locale=r:Ne(r)&&(o=r),Ne(i)&&(o=i),[a.key||"",s,a,o]}function n0(e,t,n){const r=e;for(const i in n){const a=`${t}__${i}`;r.__numberFormatters.has(a)&&r.__numberFormatters.delete(a)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zo().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
- * vue-i18n v9.3.0-beta.19
- * (c) 2023 kazuya kawaguchi
- * Released under the MIT License.
- */const mU="9.3.0-beta.19";function yU(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zo().__INTLIFY_PROD_DEVTOOLS__=!1)}let Hx=Je.__EXTEND_POINT__;const fn=()=>++Hx,It={UNEXPECTED_RETURN_TYPE:Hx,INVALID_ARGUMENT:fn(),MUST_BE_CALL_SETUP_TOP:fn(),NOT_INSTALLED:fn(),NOT_AVAILABLE_IN_LEGACY_MODE:fn(),REQUIRED_VALUE:fn(),INVALID_VALUE:fn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fn(),NOT_INSTALLED_WITH_PROVIDE:fn(),UNEXPECTED_ERROR:fn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fn(),BRIDGE_SUPPORT_VUE_2_ONLY:fn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:fn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:fn(),__EXTEND_POINT__:fn()};function kt(e,...t){return lc(e,null,void 0)}const Td=ra("__translateVNode"),Pd=ra("__datetimeParts"),Od=ra("__numberParts"),Wx=ra("__setPluralRules"),Kx=ra("__injectWithOption");function Id(e){if(!it(e))return e;for(const t in e)if(Xh(e,t))if(!t.includes("."))it(e[t])&&Id(e[t]);else{const n=t.split("."),r=n.length-1;let i=e;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Uo(u,o[l])):Uo(u,o)}else Se(s)&&Uo(JSON.parse(s),o)}),i==null&&a)for(const s in o)Xh(o,s)&&Id(o[s]);return o}const ul=e=>!it(e)||ht(e);function Uo(e,t){if(ul(e)||ul(t))throw kt(It.INVALID_VALUE);for(const n in e)Xh(e,n)&&(ul(e[n])||ul(t[n])?t[n]=e[n]:Uo(e[n],t[n]))}function Gx(e){return e.type}function Vx(e,t,n){let r=it(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=cc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(it(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(it(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function r0(e){return T(Zi,null,e,0)}const i0="__INTLIFY_META__";let a0=0;function o0(e){return(t,n,r,i)=>e(n,r,Tt()||void 0,i)}const bU=()=>{const e=Tt();let t=null;return e&&(t=Gx(e)[i0])?{[i0]:t}:null};function Qh(e={},t){const{__root:n}=e,r=n===void 0;let i=Ue(e.inheritLocale)?e.inheritLocale:!0;const a=U(n&&i?n.locale.value:Se(e.locale)?e.locale:Ns),o=U(n&&i?n.fallbackLocale.value:Se(e.fallbackLocale)||ht(e.fallbackLocale)||Ne(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),s=U(cc(a.value,e)),l=U(Ne(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),u=U(Ne(e.numberFormats)?e.numberFormats:{[a.value]:{}});let c=n?n.missingWarn:Ue(e.missingWarn)||gi(e.missingWarn)?e.missingWarn:!0,d=n?n.fallbackWarn:Ue(e.fallbackWarn)||gi(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:Ue(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,f=Et(e.missing)?e.missing:null,h=Et(e.missing)?o0(e.missing):null,m=Et(e.postTranslation)?e.postTranslation:null,g=n?n.warnHtmlMessage:Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const b=n?n.modifiers:Ne(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,C;C=(()=>{r&&Yb(null);const H={version:mU,locale:a.value,fallbackLocale:o.value,messages:s.value,modifiers:b,pluralRules:_,missing:h===null?void 0:h,missingWarn:c,fallbackWarn:d,fallbackFormat:v,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:g,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=u.value,H.__datetimeFormatters=Ne(C)?C.__datetimeFormatters:void 0,H.__numberFormatters=Ne(C)?C.__numberFormatters:void 0;const Y=cU(H);return r&&Yb(Y),Y})(),Co(C,a.value,o.value);function w(){return[a.value,o.value,s.value,l.value,u.value]}const P=V({get:()=>a.value,set:H=>{a.value=H,C.locale=a.value}}),x=V({get:()=>o.value,set:H=>{o.value=H,C.fallbackLocale=o.value,Co(C,a.value,H)}}),k=V(()=>s.value),R=V(()=>l.value),L=V(()=>u.value);function B(){return Et(m)?m:null}function j(H){m=H,C.postTranslation=H}function D(){return f}function I(H){H!==null&&(h=o0(H)),f=H,C.missing=h}const O=(H,Y,ue,ie,ce,ge)=>{w();let Ce;if(__INTLIFY_PROD_DEVTOOLS__)try{Vb(bU()),r||(C.fallbackContext=n?uU():void 0),Ce=H(C)}finally{Vb(null),r||(C.fallbackContext=void 0)}else Ce=H(C);if(Mt(Ce)&&Ce===uc){const[xe,Ye]=Y();return n&&p?ie(n):ce(xe)}else{if(ge(Ce))return Ce;throw kt(It.UNEXPECTED_RETURN_TYPE)}};function N(...H){return O(Y=>Reflect.apply(Jb,null,[Y,...H]),()=>Sd(...H),"translate",Y=>Reflect.apply(Y.t,Y,[...H]),Y=>Y,Y=>Se(Y))}function F(...H){const[Y,ue,ie]=H;if(ie&&!it(ie))throw kt(It.INVALID_ARGUMENT);return N(Y,ue,Ut({resolvedMessage:!0},ie||{}))}function G(...H){return O(Y=>Reflect.apply(Qb,null,[Y,...H]),()=>xd(...H),"datetime format",Y=>Reflect.apply(Y.d,Y,[...H]),()=>Kb,Y=>Se(Y))}function X(...H){return O(Y=>Reflect.apply(t0,null,[Y,...H]),()=>Ed(...H),"number format",Y=>Reflect.apply(Y.n,Y,[...H]),()=>Kb,Y=>Se(Y))}function ee(H){return H.map(Y=>Se(Y)||Mt(Y)||Ue(Y)?r0(String(Y)):Y)}const q={normalize:ee,interpolate:H=>H,type:"vnode"};function ne(...H){return O(Y=>{let ue;const ie=Y;try{ie.processor=q,ue=Reflect.apply(Jb,null,[ie,...H])}finally{ie.processor=null}return ue},()=>Sd(...H),"translate",Y=>Y[Td](...H),Y=>[r0(Y)],Y=>ht(Y))}function se(...H){return O(Y=>Reflect.apply(t0,null,[Y,...H]),()=>Ed(...H),"number format",Y=>Y[Od](...H),()=>[],Y=>Se(Y)||ht(Y))}function pe(...H){return O(Y=>Reflect.apply(Qb,null,[Y,...H]),()=>xd(...H),"datetime format",Y=>Y[Pd](...H),()=>[],Y=>Se(Y)||ht(Y))}function ye(H){_=H,C.pluralRules=_}function ve(H,Y){const ue=Se(Y)?Y:a.value,ie=$(ue);return C.messageResolver(ie,H)!==null}function me(H){let Y=null;const ue=Nx(C,o.value,a.value);for(let ie=0;ie{i&&(a.value=H,C.locale=H,Co(C,a.value,o.value))}),he(n.fallbackLocale,H=>{i&&(o.value=H,C.fallbackLocale=H,Co(C,a.value,o.value))}));const J={id:a0,locale:P,fallbackLocale:x,get inheritLocale(){return i},set inheritLocale(H){i=H,H&&n&&(a.value=n.locale.value,o.value=n.fallbackLocale.value,Co(C,a.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:k,get modifiers(){return b},get pluralRules(){return _||{}},get isGlobal(){return r},get missingWarn(){return c},set missingWarn(H){c=H,C.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(H){d=H,C.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(H){p=H},get fallbackFormat(){return v},set fallbackFormat(H){v=H,C.fallbackFormat=v},get warnHtmlMessage(){return g},set warnHtmlMessage(H){g=H,C.warnHtmlMessage=H},get escapeParameter(){return y},set escapeParameter(H){y=H,C.escapeParameter=H},t:N,getLocaleMessage:$,setLocaleMessage:E,mergeLocaleMessage:A,getPostTranslationHandler:B,setPostTranslationHandler:j,getMissingHandler:D,setMissingHandler:I,[Wx]:ye};return J.datetimeFormats=R,J.numberFormats=L,J.rt=F,J.te=ve,J.tm=we,J.d=G,J.n=X,J.getDateTimeFormat=z,J.setDateTimeFormat=K,J.mergeDateTimeFormat=W,J.getNumberFormat=oe,J.setNumberFormat=ae,J.mergeNumberFormat=re,J[Kx]=e.__injectWithOption,J[Td]=ne,J[Pd]=pe,J[Od]=se,J}function _U(e){const t=Se(e.locale)?e.locale:Ns,n=Se(e.fallbackLocale)||ht(e.fallbackLocale)||Ne(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Et(e.missing)?e.missing:void 0,i=Ue(e.silentTranslationWarn)||gi(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Ue(e.silentFallbackWarn)||gi(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ue(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Ne(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Et(e.postTranslation)?e.postTranslation:void 0,d=Se(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,v=Ue(e.sync)?e.sync:!0;let f=e.messages;if(Ne(e.sharedMessages)){const C=e.sharedMessages;f=Object.keys(C).reduce((w,P)=>{const x=w[P]||(w[P]={});return Ut(x,C[P]),w},f||{})}const{__i18n:h,__root:m,__injectWithOption:g}=e,y=e.datetimeFormats,b=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:f,flatJson:_,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:v,__i18n:h,__root:m,__injectWithOption:g}}function Ad(e={},t){{const n=Qh(_U(e)),r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return Ue(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=Ue(i)?!i:i},get silentFallbackWarn(){return Ue(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=Ue(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[a,o,s]=i,l={};let u=null,c=null;if(!Se(a))throw kt(It.INVALID_ARGUMENT);const d=a;return Se(o)?l.locale=o:ht(o)?u=o:Ne(o)&&(c=o),ht(s)?u=s:Ne(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[a,o,s]=i,l={plural:1};let u=null,c=null;if(!Se(a))throw kt(It.INVALID_ARGUMENT);const d=a;return Se(o)?l.locale=o:Mt(o)?l.plural=o:ht(o)?u=o:Ne(o)&&(c=o),Se(s)?l.locale=s:ht(s)?u=s:Ne(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},te(i,a){return n.te(i,a)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,a){n.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){n.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,a){n.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){n.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,a){n.setNumberFormat(i,a)},mergeNumberFormat(i,a){n.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1},__onComponentInstanceCreated(i){const{componentInstanceCreatedListener:a}=e;a&&a(i,r)}};return r}}const ev={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function CU({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ae?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function Yx(e){return Ae}const wU=de({name:"i18n-t",props:Ut({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Mt(e)||!isNaN(e)}},ev),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||tv({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Se(e.plural)?+e.plural:e.plural);const s=CU(t,a),l=i[Td](e.keypath,s,o),u=Ut({},r),c=Se(e.tag)||it(e.tag)?e.tag:Yx();return vi(c,u,l)}}}),s0=wU;function SU(e){return ht(e)&&!Se(e[0])}function qx(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Se(e.format)?o.key=e.format:it(e.format)&&(Se(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((p,v)=>n.includes(v)?Ut({},p,{[v]:e.format[v]}):p,{}));const l=r(e.value,o,s);let u=[o.key];ht(l)?u=l.map((p,v)=>{const f=i[p.type],h=f?f({[p.type]:p.value,index:v,parts:l}):[p.value];return SU(h)&&(h[0].key=`${p.type}-${v}`),h}):Se(l)&&(u=[l]);const c=Ut({},a),d=Se(e.tag)||it(e.tag)?e.tag:Yx();return vi(d,c,u)}}const xU=de({name:"i18n-n",props:Ut({value:{type:Number,required:!0},format:{type:[String,Object]}},ev),setup(e,t){const n=e.i18n||tv({useScope:"parent",__useComponent:!0});return qx(e,t,Ux,(...r)=>n[Od](...r))}}),l0=xU,EU=de({name:"i18n-d",props:Ut({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ev),setup(e,t){const n=e.i18n||tv({useScope:"parent",__useComponent:!0});return qx(e,t,zx,(...r)=>n[Pd](...r))}}),u0=EU;function TU(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function PU(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw kt(It.UNEXPECTED_ERROR);const c=TU(e,s.$),d=c0(u);return[Reflect.apply(c.t,c,[...f0(d)]),c]};return{created:(o,s)=>{const[l,u]=t(s);Cd&&e.global===u&&(o.__i18nWatcher=he(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Cd&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=c0(s);o.textContent=Reflect.apply(l.t,l,[...f0(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function c0(e){if(Se(e))return{path:e};if(Ne(e)){if(!("path"in e))throw kt(It.REQUIRED_VALUE,"path");return e}else throw kt(It.INVALID_VALUE)}function f0(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return Se(n)&&(o.locale=n),Mt(i)&&(o.plural=i),Mt(a)&&(o.plural=a),[t,s,o]}function OU(e,t,...n){const r=Ne(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Ue(r.globalInstall)?r.globalInstall:!0)&&(e.component(i?"i18n":s0.name,s0),e.component(l0.name,l0),e.component(u0.name,u0)),e.directive("t",PU(t))}function IU(e,t,n){return{beforeCreate(){const r=Tt();if(!r)throw kt(It.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root?this.$i18n=d0(e,a):(a.__injectWithOption=!0,this.$i18n=Ad(a))}else i.__i18n?this===this.$root?this.$i18n=d0(e,i):this.$i18n=Ad({__i18n:i.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;i.__i18nGlobal&&Vx(t,i,i),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const r=Tt();if(!r)throw kt(It.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function d0(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Wx](t.pluralizationRules||e.pluralizationRules);const n=cc(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const AU=ra("global-vue-i18n");function MU(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ue(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ue(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,a=new Map,[o,s]=NU(e,n),l=ra("");function u(p){return a.get(p)||null}function c(p,v){a.set(p,v)}function d(p){a.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(v,...f){if(v.__VUE_I18N_SYMBOL__=l,v.provide(v.__VUE_I18N_SYMBOL__,p),Ne(f[0])){const m=f[0];p.__composerExtend=m.__composerExtend,p.__vueI18nExtend=m.__vueI18nExtend}!n&&r&&UU(v,p.global),__VUE_I18N_FULL_INSTALL__&&OU(v,p,...f),__VUE_I18N_LEGACY_API__&&n&&v.mixin(IU(s,s.__composer,p));const h=v.unmount;v.unmount=()=>{p.dispose(),h()}},get global(){return s},dispose(){o.stop()},__instances:a,__getInstance:u,__setInstance:c,__deleteInstance:d};return p}}function tv(e={}){const t=Tt();if(t==null)throw kt(It.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kt(It.NOT_INSTALLED);const n=kU(t),r=FU(n),i=Gx(t),a=RU(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kt(It.NOT_AVAILABLE_IN_LEGACY_MODE);return BU(t,a,r,e)}if(a==="global")return Vx(r,e,i),r;if(a==="parent"){let l=DU(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=Ut({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=Qh(l),o.__composerExtend&&o.__composerExtend(s),$U(o,t),o.__setInstance(t,s)}return s}function NU(e,t,n){const r=lp();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Ad(e)):r.run(()=>Qh(e));if(i==null)throw kt(It.UNEXPECTED_ERROR);return[r,i]}}function kU(e){{const t=tt(e.isCE?AU:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kt(e.isCE?It.NOT_INSTALLED_WITH_PROVIDE:It.UNEXPECTED_ERROR);return t}}function RU(e,t){return sc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function FU(e){return e.mode==="composition"?e.global:e.global.__composer}function DU(e,t,n=!1){let r=null;const i=t.root;let a=LU(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(r=s.__composer,n&&r&&!r[Kx]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function LU(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function $U(e,t,n){je(()=>{},t),mn(()=>{e.__deleteInstance(t)},t)}function BU(e,t,n,r={}){const i=t==="local",a=qn(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kt(It.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Ue(r.inheritLocale)?r.inheritLocale:!Se(r.locale),s=U(!i||o?n.locale.value:Se(r.locale)?r.locale:Ns),l=U(!i||o?n.fallbackLocale.value:Se(r.fallbackLocale)||ht(r.fallbackLocale)||Ne(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=U(cc(s.value,r)),c=U(Ne(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=U(Ne(r.numberFormats)?r.numberFormats:{[s.value]:{}}),p=i?n.missingWarn:Ue(r.missingWarn)||gi(r.missingWarn)?r.missingWarn:!0,v=i?n.fallbackWarn:Ue(r.fallbackWarn)||gi(r.fallbackWarn)?r.fallbackWarn:!0,f=i?n.fallbackRoot:Ue(r.fallbackRoot)?r.fallbackRoot:!0,h=!!r.fallbackFormat,m=Et(r.missing)?r.missing:null,g=Et(r.postTranslation)?r.postTranslation:null,y=i?n.warnHtmlMessage:Ue(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,_=i?n.modifiers:Ne(r.modifiers)?r.modifiers:{},C=r.pluralRules||i&&n.pluralRules;function S(){return[s.value,l.value,u.value,c.value,d.value]}const w=V({get:()=>a.value?a.value.locale.value:s.value,set:A=>{a.value&&(a.value.locale.value=A),s.value=A}}),P=V({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:A=>{a.value&&(a.value.fallbackLocale.value=A),l.value=A}}),x=V(()=>a.value?a.value.messages.value:u.value),k=V(()=>c.value),R=V(()=>d.value);function L(){return a.value?a.value.getPostTranslationHandler():g}function B(A){a.value&&a.value.setPostTranslationHandler(A)}function j(){return a.value?a.value.getMissingHandler():m}function D(A){a.value&&a.value.setMissingHandler(A)}function I(A){return S(),A()}function O(...A){return a.value?I(()=>Reflect.apply(a.value.t,null,[...A])):I(()=>"")}function N(...A){return a.value?Reflect.apply(a.value.rt,null,[...A]):""}function F(...A){return a.value?I(()=>Reflect.apply(a.value.d,null,[...A])):I(()=>"")}function G(...A){return a.value?I(()=>Reflect.apply(a.value.n,null,[...A])):I(()=>"")}function X(A){return a.value?a.value.tm(A):{}}function ee(A,z){return a.value?a.value.te(A,z):!1}function Z(A){return a.value?a.value.getLocaleMessage(A):{}}function q(A,z){a.value&&(a.value.setLocaleMessage(A,z),u.value[A]=z)}function ne(A,z){a.value&&a.value.mergeLocaleMessage(A,z)}function se(A){return a.value?a.value.getDateTimeFormat(A):{}}function pe(A,z){a.value&&(a.value.setDateTimeFormat(A,z),c.value[A]=z)}function ye(A,z){a.value&&a.value.mergeDateTimeFormat(A,z)}function ve(A){return a.value?a.value.getNumberFormat(A):{}}function me(A,z){a.value&&(a.value.setNumberFormat(A,z),d.value[A]=z)}function we(A,z){a.value&&a.value.mergeNumberFormat(A,z)}const $={get id(){return a.value?a.value.id:-1},locale:w,fallbackLocale:P,messages:x,datetimeFormats:k,numberFormats:R,get inheritLocale(){return a.value?a.value.inheritLocale:o},set inheritLocale(A){a.value&&(a.value.inheritLocale=A)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(u.value)},get modifiers(){return a.value?a.value.modifiers:_},get pluralRules(){return a.value?a.value.pluralRules:C},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:p},set missingWarn(A){a.value&&(a.value.missingWarn=A)},get fallbackWarn(){return a.value?a.value.fallbackWarn:v},set fallbackWarn(A){a.value&&(a.value.missingWarn=A)},get fallbackRoot(){return a.value?a.value.fallbackRoot:f},set fallbackRoot(A){a.value&&(a.value.fallbackRoot=A)},get fallbackFormat(){return a.value?a.value.fallbackFormat:h},set fallbackFormat(A){a.value&&(a.value.fallbackFormat=A)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:y},set warnHtmlMessage(A){a.value&&(a.value.warnHtmlMessage=A)},get escapeParameter(){return a.value?a.value.escapeParameter:b},set escapeParameter(A){a.value&&(a.value.escapeParameter=A)},t:O,getPostTranslationHandler:L,setPostTranslationHandler:B,getMissingHandler:j,setMissingHandler:D,rt:N,d:F,n:G,tm:X,te:ee,getLocaleMessage:Z,setLocaleMessage:q,mergeLocaleMessage:ne,getDateTimeFormat:se,setDateTimeFormat:pe,mergeDateTimeFormat:ye,getNumberFormat:ve,setNumberFormat:me,mergeNumberFormat:we};function E(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(u.value).forEach(z=>{A.mergeLocaleMessage(z,u.value[z])}),Object.keys(c.value).forEach(z=>{A.mergeDateTimeFormat(z,c.value[z])}),Object.keys(d.value).forEach(z=>{A.mergeNumberFormat(z,d.value[z])}),A.escapeParameter=b,A.fallbackFormat=h,A.fallbackRoot=f,A.fallbackWarn=v,A.missingWarn=p,A.warnHtmlMessage=y}return Cp(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kt(It.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=a.value=e.proxy.$i18n.__composer;t==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,u.value=A.messages.value,c.value=A.datetimeFormats.value,d.value=A.numberFormats.value):i&&E(A)}),$}const jU=["locale","fallbackLocale","availableLocales"],zU=["t","rt","d","n","tm","te"];function UU(e,t){const n=Object.create(null);jU.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw kt(It.UNEXPECTED_ERROR);const a=lt(i.value)?{get(){return i.value.value},set(o){i.value.value=o}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,zU.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw kt(It.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)})}aU(dU);oU(zz);sU(Nx);yU();if(__INTLIFY_PROD_DEVTOOLS__){const e=zo();e.__INTLIFY__=!0,Xz(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const p0={inputAlias:"输入别名",addAliasCompleted:"添加别名完成",alias:"别名",exit:"退出","select-all":"全选","rerverse-select":"反选","clear-all-selected":"清除所有选择","keep-multi-selected":"保留多选","Source Identifier":"来源",openWithDefaultApp:"使用默认应用打开",saveSelectedAsJson:"保存选中图像信息",saveAllAsJson:"保存所有图像信息",saveLoadedImageAsJson:"保存已加载的图像信息",items:"{0}个项目",selectedItems:"已选择{0}个项目",scrollDownToComparePrompt:"向下滚查看Prompt比较",sourceText:"源文本",structuredData:"结构化数据",searchScope:"搜索范围",specifiedSearchFolder:"指定搜索的文件夹,使用逗号或者换行分割多个",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"发生了个错误",useThumbnailPreview:"使用缩略图预览",gridThumbnailWidth:"网格缩略图宽度",start:"开始",tip:"提示",sortByDateAscending:"修改日期升序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"创建日期升序",sortByCreatedDateDescending:"创建日期降序",sortByNameAscending:"名称升序",sortByNameDescending:"名称降序",sortBySizeAscending:"大小升序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"输入地址回车",go:"前往",unknownError:"未知错误",loadingNextFolder:"即将加载下一个文件夹的文件",moveFailedCheckPath:"移动失败,检查你的路径输入",detailList:"详情列表",previewGrid:"预览网格",moveSelectedFilesTo:"下列文件 移动 / 复制 至",confirm:"确定",download:"下载",local:"本地",sendImageFailed:"发送图像失败,请携带console的错误消息找开发者",confirmDelete:"确认删除?",deleteSuccess:"删除成功",doubleClickToCopy:"双击复制",root:"根",drive:"盘",promptcompare:"Compare Prompts",refresh:"刷新",quickMove:"快速移动",more:"更多",viewMode:"查看模式",sortingMethod:"排序方法",copyPath:"复制路径",deleteSelected:"删除",previewInNewWindow:"在新窗口预览",copySourceFilePreviewLink:"复制源文件预览链接",viewGenerationInfo:"查看生成信息(prompt等)",sendToTxt2img:"发送到文生图",sendToImg2img:"发送到图生图",sendToInpaint:"发送到局部重绘",sendToControlNet:"发送到ControlNet",sendToBatchDownload:"发送到批量下载",sendToExtraFeatures:"发送到附加功能",loadNextPage:"加载下一页",localFile:"本地文件",globalSettings:"全局设置",welcome:"欢迎",openInNewWindow:"在新页面打开",restoreLastRecord:"还原上次记录",launch:"启动",walkMode:"使用 Walk 模式浏览图片",launchFromQuickMove:"从快速移动启动",recent:"最近",emptyStartPage:"空启动页",t2i:"文生图",i2i:"图生图",saveButtonSavesTo:"保存",extra:"附加",gridImage:"宫格图","i2i-grid":"图生图宫格",image:"图像","t2i-grid":"文生图宫格",workingFolder:"工作文件夹",lang:"语言",langChangeReload:"重新加载: 一些变化可能需要在重新加载后生效",openOnTheRight:"在右边打开",openInNewTab:"在新标签打开",openWithWalkMode:"使用 Walk 模式打开",longPressOpenContextMenu:"支持使用长按打开右键菜单",searchResults:"搜索结果",imgSearch:"图像搜索",onlyFoldersAndImages:"只显示文件夹/图像/视频",send2savedDir:"发送到保存的文件夹",unknownSavedDir:"找不到保存的文件夹(配置文件中的outdir_save字段)",Model:"模型",Sampler:"采样器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用于搜索图像",UpdateIndex:"更新索引",needGenerateIdx:`你需要先点击按钮生成索引用于搜索图像
-这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addCompleted:"添加完成",removeCompleted:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",copyPositivePrompt:"复制正向提示",refreshCompleted:"刷新完成","walk-mode-move-message":"在walk模式下仅允许使用“快速移动”移动位置",manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏查看",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag",selectExcludeTag:"可选,选择需要排除掉的 Tag",faq:"常见问题",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径和快速移动",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏查看下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏查看时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToExtraPath:"确定添加?如果文件夹过大将会消耗过多时间建立索引。",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",showChangeIndicators:"显示变更指示器",seedAsChange:"将Seed也进行比较",defaultShowChangeIndicators:"默认显示变更指示器",defaultSeedAsChange:"默认将Seed也进行比较",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整",desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:"使用拖拽或者右键菜单中的“发送到批量下载”将其他页面的图片添加到这里,支持多选",zipDownload:"打包成zip下载",archive:"归档",batchDownload:"批量下载",remove:"移除",secretKeyRequiredWarnMsg:`为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。
- 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置",privacyAndSecurity:"安全与隐私",dragToResizePanel:"按住并拖动来调整面板的大小",clickToToggleMaximizeMinimize:"单击切换最大化/最小化",dragToMovePanel:"按住并拖动来移动面板",imageCompareTips:"拖拽文件时也会出现这个面板,可以不需要打开 “图像对比” 功能",regexSearchEnabledHint:"(你也可以通过点击右侧的正则式图标来启用正则式搜索)",confirmRebuildImageIndex:"确认重建图像索引?",rebuildComplete:"重新构建完成",rebuildImageIndex:"重新构建图像索引",tagSearchNoResultsMessage:"看起来没匹配到任何结果,尝试通过重新构建索引来去掉无用的tag?"},HU={inputAlias:"Input Alias",addAliasCompleted:"Add Alias Completed",alias:"Alias",exit:"Exit","select-all":"Select All","rerverse-select":"Reverse Select","clear-all-selected":"Clear All Selected","keep-multi-selected":"Keep Multi-selected","Source Identifier":"Source",openWithDefaultApp:"Open with default app",saveSelectedAsJson:"Save selected image info",saveAllAsJson:"Save all image info",saveLoadedImageAsJson:"Save loaded image info",selectedItems:" {0} selected",items:"{0} items",scrollDownToComparePrompt:"Scroll down to compare prompts",sourceText:"Source Text",structuredData:"Structured Data",searchScope:"Search Scope",specifiedSearchFolder:"Specify the folders to search, separate multiple folders with commas or line breaks",batchAddTag:"Batch Add Tag",batchRemoveTag:"Batch Remove Tag",imageCompareTips:`When dragging files, this panel will also appear, so you don't need to open the "Image Comparison" feature separately.`,dragToResizePanel:"Drag to resize the panel",clickToToggleMaximizeMinimize:"Click to toggle maximize/minimize",dragToMovePanel:"Drag to move the panel",privacyAndSecurity:"Security & Privacy",deleteOneOnlySkipConfirm:"Do not confirm when deleting a single file",resetOnGlobalSettingsPage:"You can reset on the global settings page",secretKeyMustBeConfigured:"Secret Key must be configured",secretKeyRequiredWarnMsg:`For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension.
- This error only appears when gradio-auth is configured.`,remove:"Remove",batchDownload:"Batch Download",archive:"Archive",zipDownload:"Download as ZIP",batchDownloaDDragAndDropHint:"Use drag and drop or the 'Send to Batch Download' option in the right-click menu to add images from other pages here. Multiple selections are supported.",lyco:"LyCORIS",sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",showChangeIndicators:"Show Change Indicators",seedAsChange:"Seed as Change",defaultShowChangeIndicators:"Default Show Change Indicators",defaultSeedAsChange:"Default Compare Seed as Change",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToExtraPath:"Are you sure you want to add? This may take a lot of time to index if the folder is large. ",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",promptcompare:"Compare Prompts",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the Full-screen view.",shortcutKey:"Keyboard Shortcuts (Only Available in Full-screen view mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path and Quick Move",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",selectExactMatchTag:"Select Exact Match Tags",selectAnyMatchTag:"Optional, Select Any Match Tags",selectExcludeTag:"Optional, Select Exclude Tags",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit Full-screen view","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",copyPositivePrompt:"Copy positive prompt",toggleTag:"Toggle Tag Selection (Favorite)",addCompleted:"Add completed",removeCompleted:"Remove Completed",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images.
- This process may take a few minutes to complete.`,search:"Search",UpdateIndex:"Update index",generateIndexHint:"Generate index for search image",Model:"Model",Sampler:"Sampler",lora:"LoRA",size:"Size",pos:"Positive Prompt",unknownSavedDir:"Cannot find the saved folder (outdir_save field in the config)",errorOccurred:"An error occurred",useThumbnailPreview:"Use thumbnail preview",gridThumbnailWidth:"Grid thumbnail width",start:"Start",tip:"Tip",sortByDateAscending:"Updated date ascending",sortByDateDescending:"UPdated date descending",sortByCreatedDateAscending:"Created date ascending",sortByCreatedDateDescending:"Created date descending",sortByNameAscending:"Name ascending",sortByNameDescending:"Name descending",sortBySizeAscending:"Size ascending",sortBySizeDescending:"Size descending",inputAddressAndPressEnter:"Input address and press Enter",go:"Go",unknownError:"Unknown error",loadingNextFolder:"Loading files from the next folder",moveFailedCheckPath:"Move failed. Check your path input.",detailList:"Detail list",previewGrid:"Preview grid",moveSelectedFilesTo:"Move / Copy selected files to",confirm:"Confirm",download:"Download",local:"Local",sendImageFailed:"Failed to send image. Please contact the developer with the error message from the console.",confirmDelete:"Are you sure you want to delete?",deleteSuccess:"Deleted successfully",doubleClickToCopy:"Double-click to copy",root:"Root",drive:" drive",refresh:"Refresh",quickMove:"Quick move",more:"More",viewMode:"View mode",sortingMethod:"Sorting method",copyPath:"Copy path",deleteSelected:"Delete",previewInNewWindow:"Open in new window",copySourceFilePreviewLink:"Copy source file preview link",viewGenerationInfo:"View generation information (prompt, etc.)",sendToTxt2img:"Send to txt2img",sendToImg2img:"Send to img2img",sendToInpaint:"Send to Inpaint",sendToBatchDownload:"Send to BatchDownload",sendToExtraFeatures:"Send to Extra",sendToControlNet:"Send to ControlNet",loadNextPage:"Load next page",localFile:"Local file",globalSettings:"Global settings",welcome:"Welcome",openInNewWindow:"Open in new tab",restoreLastRecord:"Restore last record",launch:"Launch",walkMode:"Use Walk mode to browse images",launchFromQuickMove:"Launch from Quick Move",recent:"Recent",emptyStartPage:"Empty start page",t2i:"txt2img",i2i:"img2img",saveButtonSavesTo:"save",extra:"extras",gridImage:"Grid image","i2i-grid":"img2img grid",image:"Image","t2i-grid":"txt2img grid",workingFolder:"working folder",lang:"Language",langChangeReload:"Reload: Some changes may require a reload to take effect",openOnTheRight:"Open to the Side",openInNewTab:"Open in a new tab",openWithWalkMode:"Open with Walk Mode",longPressOpenContextMenu:"Support long press to open right-click menu",searchResults:"Search Results",imgSearch:"Image Search",onlyFoldersAndImages:"Only show folders/images/videos",send2savedDir:"Send to saved folder",regexSearchEnabledHint:"(You can also enable regex search by clicking the regex icon on the right)",rebuildImageIndex:"Rebuild image index",confirmRebuildImageIndex:"Confirm rebuilding image index?",rebuildComplete:"Rebuild complete",tagSearchNoResultsMessage:"It seems like no results were found. Try rebuilding the index to remove unused tags?"},WU={serverKeyRequired:"Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.",removeFromSearchScanPathAndQuickMove:"Schnellzugriff entfernen",addToSearchScanPathAndQuickMove:"Schnellzugriff hinzufügen",openWithLocalFileBrowser:"Im lokalen Dateimanager öffnen","fuzzy-search-noResults":"Es wurde nichts gefunden","fuzzy-search-placeholder":"Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden","fuzzy-search":"Schnellsuche",autoUpdate:"Erkannte Änderungen, automatische Aktualisierung wird ausgeführt",faq:"FAQ",selectExactMatchTag:"Wähle Tags für exakte Übereinstimmung aus",selectAnyMatchTag:"(Optional) Wähle Tags für beliebige Übereinstimmung aus",selectExcludeTag:"(Optional) Wähle Tags zum Ausschliessen aus",exactMatch:"Exakte Übereinstimmung",anyMatch:"Beliebige Übereinstimmung",exclude:"Ausschliessen","auto.refreshed":"Automatische Aktualisierung erfolgreich durchgeführt!",copied:"In die Zwischenablage kopiert!","index.expired":"Index abgelaufen, automatische Aktualisierung wird durchgeführt",manualExitFullScreen:"Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden","walk-mode-move-message":"Im Walk-Modus ist das Verschieben des Verzeichnisses nur über 'Schnellzugriff' gestattet",refreshCompleted:"Aktualisierung erfolgreich abgeschlossen",addedTagToImage:"Schlagwort wurde erfolgreich diesem Bild hinzugefügt",removedTagFromImage:"Schlagwort wurde von diesem Bild entfernt",openContextMenu:"Öffne das Kontextmenü",copyPrompt:"Kopiere Prompt-Konfiguration",toggleTag:"(Favorite) Schlagwort hinzufügen/entfernen",addCompleted:"Hinzufügen abgeschlossen",removeCompleted:"Entfernen abgeschlossen",existInOtherType:"Bereits in anderem Typ vorhanden",alreadyExists:"Bereits vorhanden",cancel:"Abbrechen",submit:"Bestätigen",add:"Hinzufügen",custom:"Benutzerdefiniert",needGenerateIdx:`Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren.
- Dieser Vorgang kann einige Minuten in Anspruch nehmen.`,search:"Suchen",UpdateIndex:"Index aktualisieren",generateIndexHint:"Index für die Bildersuche generieren",Model:"Modell",Sampler:"Sampler",lora:"LoRA",size:"Grösse",pos:"Positiver Prompt",unknownSavedDir:"Das Speicherverzeichnis konnte nicht gefunden werden (Einstellung für das Speicherverzeichnis in der Konfiguration)",errorOccurred:"Ein Fehler ist aufgetreten",useThumbnailPreview:"Verwende Miniaturansichtsvorschau",gridThumbnailWidth:"Breite der Miniatur-Rasteransicht",start:"Start",tip:"Hinweis",sortByDateAscending:"Datum aufsteigend",sortByDateDescending:"Datum absteigend",sortByCreatedDateAscending:"Erstellungsdatum aufsteigend",sortByCreatedDateDescending:"Erstellungsdatum absteigend",sortByNameAscending:"Name aufsteigend",sortByNameDescending:"Name absteigend",sortBySizeAscending:"Grösse aufsteigend",sortBySizeDescending:"Grösse absteigend",inputAddressAndPressEnter:"Geben Sie die Adresse ein und drücken Sie Enter",go:"Los",unknownError:"Unbekannter Fehler aufgetreten",loadingNextFolder:"Lade Dateien aus dem nächsten Verzeichnis",moveFailedCheckPath:`Fehler beim Verschieben. Überprüfen Sie den eingegebenen Pfad.
-`,detailList:"Detailübersicht",previewGrid:"Vorschau-Rasteransicht",moveSelectedFilesTo:"Ausgewählte Dateien verschieben nach",confirm:"Bestätigen",download:"Herunterladen",local:"Lokal",sendImageFailed:"Fehler beim Senden des Bildes. Bitte kontaktieren Sie den Entwickler mit der Fehlermeldung aus der Konsole.",confirmDelete:"Sind Sie sicher, dass Sie dies löschen möchten?",deleteSuccess:"Erfolgreich gelöscht",doubleClickToCopy:"Doppelklick zum Kopieren",root:"Root",drive:" Laufwerk",refresh:"Aktualisieren",quickMove:"Schnellzugriff",more:"Mehr",viewMode:"Ansichtsmodus",sortingMethod:"Sortiermethode",copyPath:"Pfad kopieren",deleteSelected:"Löschen",previewInNewWindow:"In neuem Fenster öffnen",copySourceFilePreviewLink:"Kopiere Dateilink aus dem Verzeichnis",viewGenerationInfo:"Anzeige von Generierungsinformationen (Prompt, etc.)",sendToTxt2img:"Senden an Text-zu-Bild",sendToImg2img:"Senden an Bild-zu-Bild",sendToInpaint:"Senden an Inpaint",sendToExtraFeatures:"Senden an Extras",sendToControlNet:"Senden an ControlNet",loadNextPage:"Nächste Seite laden",localFile:"Lokale Datei",globalSettings:"Globale Einstellungen",welcome:"Willkommen",openInNewWindow:"In neuem Fenster öffnen",restoreLastRecord:"Letztes Verzeichnis wiederherstellen",launch:"Ausführen",walkMode:"Verwende den Walk-Modus, um Bilder zu durchsuchen",launchFromQuickMove:"Ausführen aus Schnellzugriff",recent:"Kürzlich",emptyStartPage:"Leere Startseite",t2i:"Text-zu-Bild",i2i:"Bild-zu-Bild",saveButtonSavesTo:"Speichern",extra:"Extras",gridImage:"Rasterbild","i2i-grid":"Bild-zu-Bild Raster",image:"Bild","t2i-grid":"Text-zu-Bild Raster",workingFolder:"Arbeitsordner",lang:"Sprache",langChangeReload:"Neuladen: Einige Änderungen erfordern ein Neuladen, um wirksam zu werden",openOnTheRight:"Rechts öffnen",openInNewTab:"In neuem Tab öffnen",openWithWalkMode:"Im Walk-Modus öffnen",longPressOpenContextMenu:"Langes Rechtsklicken zur Öffnung des Kontextmenüs unterstützen",searchResults:"Suchergebnisse",imgSearch:"Bildsuche",send2savedDir:"In den gespeicherten Ordner senden",promptcompare:"Prompts vergleichen"},KU={inputAlias:"輸入別名",addAliasCompleted:"添加別名完成",alias:"別名",showChangeIndicators:"顯示變更指示器",seedAsChange:"將Seed也進行比較",defaultShowChangeIndicators:"預設顯示變更指示器",defaultSeedAsChange:"預設將Seed也進行比較",exit:"退出","select-all":"全選","rerverse-select":"反選","clear-all-selected":"清除所有選擇","keep-multi-selected":"保留多選","Source Identifier":"來源",openWithDefaultApp:"使用預設應用程式開啟",saveSelectedAsJson:"儲存選取的圖像資訊",saveAllAsJson:"儲存所有圖像資訊",saveLoadedImageAsJson:"儲存已載入的圖像資訊",scrollDownToComparePrompt:"向下滾查看Prompt比較",sourceText:"源文本",structuredData:"結構化數據",searchScope:"搜尋範圍",specifiedSearchFolder:"指定搜尋的資料夾,使用逗號或換行分割多個",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"發生了個錯誤",useThumbnailPreview:"使用縮圖預覽",gridThumbnailWidth:"網格縮圖寬度",start:"開始",tip:"提示",sortByDateAscending:"修改日期昇序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"創建日期昇序",sortByCreatedDateDescending:"創建日期降序",sortByNameAscending:"名稱昇序",sortByNameDescending:"名稱降序",sortBySizeAscending:"大小昇序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"輸入地址回車",go:"前往",unknownError:"未知錯誤",loadingNextFolder:"即將載入下一個文件夾的文件",moveFailedCheckPath:"移動失敗,檢查你的路徑輸入",detailList:"詳情列表",previewGrid:"預覽網格",moveSelectedFilesTo:"下列文件 移動 / 複製 至",confirm:"確定",download:"下載",local:"本地",sendImageFailed:"發送圖像失敗,請攜帶console的錯誤訊息找開發者",confirmDelete:"確認刪除?",deleteSuccess:"刪除成功",doubleClickToCopy:"雙擊複製",promptcompare:"Compare Prompts",root:"根",drive:"磁碟",refresh:"重新整理",quickMove:"快速移動",more:"更多",viewMode:"檢視模式",sortingMethod:"排序方法",copyPath:"複製路徑",deleteSelected:"刪除",previewInNewWindow:"在新窗口預覽",copySourceFilePreviewLink:"複製源文件預覽連結",viewGenerationInfo:"檢視生成信息(提示等)",sendToTxt2img:"发送到文生圖",sendToImg2img:"發送到圖生圖",sendToInpaint:"發送到局部重繪",sendToControlNet:"發送到ControlNet",sendToBatchDownload:"發送到批量下載",sendToExtraFeatures:"發送到附加功能",loadNextPage:"載入下一頁",localFile:"本地檔案",globalSettings:"全域設定",welcome:"歡迎",openInNewWindow:"在新頁面打開",restoreLastRecord:"還原上次記錄",launch:"啟動",walkMode:"使用 Walk 模式瀏覽圖片",launchFromQuickMove:"從快速移動啟動",recent:"最近",emptyStartPage:"空啟動頁",t2i:"文生圖",i2i:"圖生圖",saveButtonSavesTo:"儲存",extra:"附加",gridImage:"網格式圖","i2i-grid":"圖生圖網格",image:"圖片","t2i-grid":"文生圖網格",workingFolder:"工作文件夾",lang:"語言",langChangeReload:"重新載入: 一些變化可能需要在重新載入後生效",openOnTheRight:"在右邊打開",openInNewTab:"在新分頁打開",openWithWalkMode:"使用 Walk 模式打開",longPressOpenContextMenu:"支持使用長按打開右鍵功能表",searchResults:"搜尋結果",imgSearch:"圖片搜尋",onlyFoldersAndImages:"只顯示文件夾/圖片/視頻",send2savedDir:"發送到儲存的文件夾",unknownSavedDir:"找不到儲存的文件夾(配置文件中的outdir_save欄位)",Model:"模型",Sampler:"採樣器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用於搜尋圖片",UpdateIndex:"更新索引",needGenerateIdx:`你需要先點擊按鈕生成索引用於搜尋圖片
-這個過程可能需要消耗幾分鐘`,search:"搜尋",custom:"自定義",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在於其他類型",alreadyExists:"已存在",toggleTag:"切換標籤選中 (收藏)",addCompleted:"新增完成",removeCompleted:"移除完成",addedTagToImage:'已添加標籤 "{tag}" 到本圖片',removedTagFromImage:'已從本圖片上移除 "{tag}" 標籤',openContextMenu:"打開上下文功能表",copyPrompt:"複製提示",copyPositivePrompt:"複製正向提示",refreshCompleted:"重新整理完成","walk-mode-move-message":"在walk模式下僅允許使用“快速移動”移動位置",manualExitFullScreen:"你刪除了最後一張圖片,也許需要你手動退出全螢幕檢視",copied:"已複製!","index.expired":"索引過期,正在自動更新","auto.refreshed":"自動重新整理完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"選擇完全匹配的 Tag",selectAnyMatchTag:"可選,選擇匹配其中一個或多個的 Tag",selectExcludeTag:"可選,選擇需要排除掉的 Tag",faq:"常見問題",autoUpdate:"檢測到發生改變自動更新","fuzzy-search":"模糊搜尋","fuzzy-search-placeholder":"輸入圖片信息或者文件名的一部分來進行搜尋","fuzzy-search-noResults":"什麼都沒找到",openWithLocalFileBrowser:"使用本地檔案瀏覽器打開",addToSearchScanPathAndQuickMove:"加入搜尋掃描路徑和快速移動",removeFromSearchScanPathAndQuickMove:"從搜尋掃描路徑和快速移動中移除",serverKeyRequired:"伺服器配置了密鑰,你必须提供相同的密鑰才能繼續使用",shortcutKey:"快速鍵(僅允許在全螢幕檢視下使用)",shortcutKeyDescription:"點擊輸入框按下你想使用的按鍵,支持與Shift和Ctrl進行組合",fullscreenRestriction:"受技術限制,目前拓展不允許刪除打開全螢幕檢視時的首張圖片。",clear:"清除",toggleTagSelection:'切換 "{tag}" 標籤選中',changlog:"更新紀錄",accessControlModeTips:"為確保數據安全,您目前正以訪問控制模式運行,僅能訪問授權文件夾。您可以通過編輯本拓展根目錄的下.env文件來調整訪問權限設置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以將.env.example文件複製並重命名為.env",dontShowAgain:"不再顯示",defaultSortingMethod:"默認排序方法",defaultViewMode:"默認檢視模式",showPreviewImage:"顯示預覽圖",copy:"複製",edit:"編輯",document:"文件",multiSelectTips:"您可以按住Shift、Ctrl或 Cmd鍵,然後單擊文件來進行多選刪除/移動操作",copyLocationUrlSuccessMsg:"複製完成,你可以通過複製的url直接打開目前文件夾",share:"分享",dragImageHere:"拖拽圖片到這裡",imgCompare:"圖片對比",close:"關閉",fullscreenview:"全屏查看",fileName:"文件名稱",resolution:"解析度",fileSize:"文件大小",selectAll:"全選","tauriLaunchConf.readSdWebuiConfigTitle":"讀取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已經安裝sd-webui,且在sd-webui內安裝了本拓展,推薦直接使用這個,將直接讀取配置並且數據共享","tauriLaunchConf.selectSdWebuiFolder":"點擊選擇SD-webui的文件夾","tauriLaunchConf.skipThisConfigTitle":"跳過本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍將可用,你可以在設置頁重置","tauriLaunchConf.skipButton":"跳過","tauriLaunchConfMessages.configNotFound":"找不到對應配置,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.folderNotFound":"找不到對應文件夾,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即將重啟","tauriLaunchConfMessages.firstTimeUserTitle":"看起來你好像是第一次使用,需要進行一些配置",inputTargetFolderPath:"輸入目標文件夾的絕對路徑",pathDoesNotExist:"路徑不存在",confirmToAddToExtraPath:"確定添加?如果文件夾過大將會消耗過多時間建立索引。",clientSpecificSettings:"客戶端特有的設置",initiateSoftwareStartupConfig:"初始化軟件啟動配置",gridCellWidth:"網格單元寬度 (px)",defaultGridCellWidth:"默認網格單元寬度 (px)",thumbnailResolution:"縮圖解析度 (px)",livePreview:"實時預覽",other:"其他",ImageBrowsingSettings:"圖片瀏覽設置",majorUpdateCustomCellSizeTips:"重大更新:你可以自定義網格圖像的大小了,在全域設置頁或者右上角的“更多”裡面進行調整",desktop:"桌面",move:"移動",inputFolderName:"輸入文件夾名稱",createFolder:"新增文件夾",sendToThirdPartyExtension:"發送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:"使用拖拽或者右鍵功能表中的“發送到批量下載”將其他頁面的圖片添加到這裡,支持多選",zipDownload:"打包成zip下載",archive:"歸檔",batchDownload:"批量下載",remove:"移除",secretKeyRequiredWarnMsg:"為了安全考慮,你必須為本拓展單獨配置Secret Key,具體參考本拓展根目錄下的.env.example文件內的IIB_SECRET_KEY。 這項警告只會在配置了gradio-auth時出現",secretKeyMustBeConfigured:"必須配置Secret Key",deleteOneOnlySkipConfirm:"刪除單個文件時不進行確認",resetOnGlobalSettingsPage:"你可以在全域設置頁重置",privacyAndSecurity:"安全與隱私",dragToResizePanel:"按住並拖動來調整面板的大小",clickToToggleMaximizeMinimize:"單擊切換最大化/最小化",dragToMovePanel:"按住並拖動來移動面板",imageCompareTips:"拖拽文件時也會出現這個面板,可以不需要打開 “圖片對比” 功能",regexSearchEnabledHint:"(你也可以通過點擊右側的正則式圖標來啟用正則式搜索)",confirmRebuildImageIndex:"確認重建圖像索引?",rebuildImageIndex:"重新構建圖像索引",rebuildComplete:"重新構建完成",tagSearchNoResultsMessage:"看起來沒有匹配到任何結果,嘗試通過重新構建索引來去除無用的標籤?"},Xx=()=>{const e=navigator.language.toLowerCase();if(e.startsWith("zh"))return/hk|tw|mo/.test(e)?"zhHant":"zhHans";switch(e){case"de":case"de-de":return"de";default:return"en"}},nv=MU({locale:Xx(),fallbackLocale:"en",messages:{zhHans:p0,zhHant:KU,zh:p0,en:HU,de:WU},legacy:!1}),{t:Le,locale:CQ}=nv.global;/*! js-cookie v3.0.5 | MIT */function cl(e){for(var t=1;t"u")){o=cl({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=new rv;return{eventEmitter:e,useEventListen:(n,r)=>{e.on(n,r),nt(()=>e.off(n,r))}}};/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */function qU(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}const Nd=e=>e;function ii(e=!0,t){const n={type:t||null};return typeof e=="function"?n.default=e:n.required=e,n}function XU(e){return e==null}function Qx(e,t){return e&&e.length?uS(e,_B(t)):[]}var ZU=0;function _r(e){var t=++ZU;return mS(e)+t}var fl=function(t,n,r,i){if(XU(t))throw console.error({op:n,idx:r,field:i,val:t}),new Error("Conversion error, result is null or undefined, field: ".concat(i,", index: ").concat(r,"."));return t},JU=function(t,n){var r=V(function(){var i,a,o=t.options,s=t.conv,l=(i=s.key)!==null&&i!==void 0?i:s.value,u=(a=s.optionText)!==null&&a!==void 0?a:s.text;return n.value?o.reduce(function(c,d,p){var v=u(d).toString(),f=v.toLowerCase().indexOf(n.value.toLowerCase()),h=n.value.length;if(f!==-1){var m=[v.substring(0,f),v.substring(f,f+h),v.substring(f+h)];c.push({frag:m,src:d,key:l(d,p),title:s.text(d).toString(),label:T("div",null,[T("span",null,[m[0]]),T("span",{style:{color:"red"}},[m[1]]),T("span",null,[m[2]])]),value:s.value(d)})}return c},[]).sort(function(c,d){return c.frag[0].length-d.frag[0].length}):o.map(function(c,d){return{src:c,key:fl(l(c,d),c,d,"key"),label:fl(u(c),c,d,"label").toString(),title:fl(s.text(c),c,d,"title").toString(),value:fl(s.value(c),c,d,"value")}})});return{currOptions:r}};function QU(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function iv(e){return function t(n){return arguments.length===0||QU(n)?t:e.apply(this,arguments)}}function e7(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var t7=iv(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const n7=t7;function eE(e,t,n,r){var i=function(o){for(var s=t.length,l=0;l{const n=U(),r=new ResizeObserver(a=>{n.value=a[0].target.getBoundingClientRect()});return je(()=>{const a=e.value;tE(a),r.observe(a)}),nt(()=>{r.disconnect()}),Nd({[t||"eleRef"]:e,rect:n})},c7={enableClone:!0},f7=(e,t={})=>{const n=typeof e=="function"?e:e.get,r=typeof e=="function"?lS:e.set;let i=!0;const a=U(),{enableClone:o,debounceSet:s,debounceGet:l}=Object.assign(Object.assign({},c7),t),u=o?i7:s7,c=()=>{r(u(a.value))},d=vd(s)?dd(c,s):c;{const p=h=>{i=!1,a.value=u(h),i=!0},v=vd(l)?dd(p,l):p;let f=0;vt(()=>{++f===1?p(n()):v(n())})}{const p=U(0);he(p,d),he(a,()=>{i&&p.value++},{deep:!0,flush:"sync"})}return a};var d7=de({props:{percent:ii(()=>50),direction:ii(()=>"horizontal")},setup(e,t){const n=V(()=>e.direction==="horizontal"),r=U(),{rect:i}=u7(r),a=V(()=>{const p=i.value;return p?n.value?p.width:p.height:100}),o=f7({get:()=>e.percent,set:p=>t.emit("update:percent",p)});let s=!1;const l=U(!1),u=p=>{s=p,s||(l.value=!1)},c=p=>{if(s){l.value=!0;const v=n.value?p.movementX:p.movementY;o.value+=v/a.value*100}},d=V(()=>n.value?"width":"height");return{split:o,switchLKeyState:u,changeSplitPercent:c,splitContainer:r,changedPropetry:d,isHorizontal:n,dragging:l}}});const av=d7,p7=wO();h_("data-v-8772a08e");const h7={class:"split-div"};v_();const v7=p7((e,t,n,r,i,a)=>($e(),Gt("div",{ref:"splitContainer",class:["split-container",{dragging:e.dragging,vertcial:!e.isHorizontal}],onMouseupCapture:t[2]||(t[2]=o=>e.switchLKeyState(!1)),onMousemove:t[3]||(t[3]=(...o)=>e.changeSplitPercent&&e.changeSplitPercent(...o)),onMouseleave:t[4]||(t[4]=o=>e.switchLKeyState(!1))},[T("div",{class:"split-panel",style:`${e.changedPropetry}:${e.split}%`},[jl(e.$slots,"left")],4),T("div",h7,[T("div",{class:"sense-area",onMousedown:t[1]||(t[1]=o=>e.switchLKeyState(!0))},null,32)]),T("div",{class:"split-panel",style:`${e.changedPropetry}:${100-e.split}%`},[jl(e.$slots,"right")],4)],34)));var h0=[],wo=[];function g7(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",i=t.singleTag===!0,a=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var o=h0.indexOf(a);o===-1&&(o=h0.push(a)-1,wo[o]={}),n=wo[o]&&wo[o][r]?wo[o][r]:wo[o][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var u=Object.keys(t.attributes),c=0;ce.value,text:e=>e.text};var b7=de({components:{ASelect:tu},emits:["update:value"],props:{value:ii(),options:ii(),conv:ii(()=>y7),mode:ii(!1),asNullValues:ii(()=>[0,""])},setup(e,t){const n=U(""),r=V({get:()=>e.value,set:o=>{t.emit("update:value",o),n.value=""}}),i=o=>{n.value=o},{currOptions:a}=JU(e,n);return{currOptions:a,onSearch:i,selected:r,searchTarget:n}}});const nE=b7;function _7(e,t,n,r,i,a){const o=ws("a-select");return $e(),Gt(o,Ip({value:e.asNullValues.includes(e.selected)?null:e.selected,"onUpdate:value":t[1]||(t[1]=s=>e.selected=s),"get-popup-container":s=>s.parentNode,placeholder:"请选择","filter-option":!1,onSearch:e.onSearch,options:e.currOptions,optionLabelProp:"title","show-search":"",mode:e.mode},e.$attrs),null,16,["value","get-popup-container","onSearch","options","mode"])}nE.render=_7;nE.__file="src/SearchSelect/index.vue";var C7=de({components:{APagination:d3},props:{option:ii()},setup(){return{}}});const rE=C7;function w7(e,t,n,r,i,a){const o=ws("a-pagination");return $e(),Gt(o,{onChange:e.option.onChange,total:e.option.total,current:e.option.curr,"onUpdate:current":e.option.setCurr,"page-size":e.option.pageSize},null,8,["onChange","total","current","onUpdate:current","page-size"])}rE.render=w7;rE.__file="src/GeneralPagination/index.vue";const fc=(e=0)=>new Promise(t=>setTimeout(t,e));class S7 extends Error{constructor(t){super(t),this.name="FetchTaskCancel"}}class hs{constructor(t=-1,n=3,r=3e3,i="retry"){this.maxConcurrencyCount=t,this.maxRetryCount=n,this.retryInterval=r,this.errorHandleMethod=i,this.eventEmitter=new rv,this.queue=[],this.lastIdleState=!0}get currConcurrencyCount(){return this.queue.filter(t=>t.running).length}get tasks(){return Nd([...this.queue])}get conf(){const{maxConcurrencyCount:t,maxRetryCount:n,retryInterval:r,errorHandleMethod:i}=this;return Nd({maxConcurrencyCount:t,maxRetryCount:n,retryInterval:r,errorHandleMethod:i})}noticeChange(){this.eventEmitter.emit("FETCH_QUEUE_CHANGE",this.queue)}noticeIdleChange(){this.isIdle!==this.lastIdleState&&(this.lastIdleState=this.isIdle,this.eventEmitter.emit("FETCH_QUEUE_IDLE_STATE_CHANGE",this.isIdle))}tryRunNext(){if(this.currConcurrencyCount!n.running).shift();t&&t.run()}}runAction(t,n,r){const{action:i}=t;t.running=!0,this.noticeIdleChange();const a=(o=this.maxRetryCount)=>qU(this,void 0,void 0,function*(){try{const s=yield i(t);n(s)}catch(s){switch(this.errorHandleMethod){case"retry":return o===0?(this.emit("RETRIES_EXHAUESTED",t),r(s)):(yield fc(this.retryInterval),a(o-1));case"throw":return r(s)}}});a()}waitUntilEmpty(){return Promise.all(this.queue.map(t=>t.res))}on(t,n){this.eventEmitter.on(t,n)}static on(t,n){hs.eventEmitter.on(t,n)}emit(t,...n){this.eventEmitter.emit(t,...n),hs.eventEmitter.emit(t,this,...n)}get isIdle(){return this.queue.length===0}pushAction(t,...n){let r,i;const a=new Promise((l,u)=>{r=l,i=u}),o=Jx().eventEmitter,s={running:!1,action:t,res:a,extra:n[0],cancel:()=>{o.emit("cancel"),i(new S7)},run:()=>this.runAction(s,r,i),events:o};return a.finally(()=>{this.queue.splice(this.queue.indexOf(s),1),s.running=!1,this.noticeChange(),this.noticeIdleChange(),this.tryRunNext()}),this.queue.push(s),this.noticeChange(),this.tryRunNext(),s}}hs.eventEmitter=new rv;var iE={exports:{}};const x7={},E7=Object.freeze(Object.defineProperty({__proto__:null,default:x7},Symbol.toStringTag,{value:"Module"})),T7=YC(E7);(function(e){var t={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(f){this.toString=function(){return"CORRUPT: "+this.message},this.message=f},invalid:function(f){this.toString=function(){return"INVALID: "+this.message},this.message=f},bug:function(f){this.toString=function(){return"BUG: "+this.message},this.message=f},notReady:function(f){this.toString=function(){return"NOT READY: "+this.message},this.message=f}}};t.cipher.aes=function(f){this.s[0][0][0]||this.O();var h,m,g,y,b=this.s[0][4],_=this.s[1];h=f.length;var C=1;if(h!==4&&h!==6&&h!==8)throw new t.exception.invalid("invalid aes key size");for(this.b=[g=f.slice(0),y=[]],f=h;f<4*h+28;f++)m=g[f-1],(f%h===0||h===8&&f%h===4)&&(m=b[m>>>24]<<24^b[m>>16&255]<<16^b[m>>8&255]<<8^b[m&255],f%h===0&&(m=m<<8^m>>>24^C<<24,C=C<<1^283*(C>>7))),g[f]=g[f-h]^m;for(h=0;f;h++,f--)m=g[h&3?f:f-4],y[h]=4>=f||4>h?m:_[0][b[m>>>24]]^_[1][b[m>>16&255]]^_[2][b[m>>8&255]]^_[3][b[m&255]]},t.cipher.aes.prototype={encrypt:function(f){return n(this,f,0)},decrypt:function(f){return n(this,f,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var f=this.s[0],h=this.s[1],m=f[4],g=h[4],y,b,_,C=[],S=[],w,P,x,k;for(y=0;256>y;y++)S[(C[y]=y<<1^283*(y>>7))^y]=y;for(b=_=0;!m[b];b^=w||1,_=S[_]||1)for(x=_^_<<1^_<<2^_<<3^_<<4,x=x>>8^x&255^99,m[b]=x,g[x]=b,P=C[y=C[w=C[b]]],k=16843009*P^65537*y^257*w^16843008*b,P=257*C[x]^16843008*x,y=0;4>y;y++)f[y][b]=P=P<<24^P>>>8,h[y][x]=k=k<<24^k>>>8;for(y=0;5>y;y++)f[y]=f[y].slice(0),h[y]=h[y].slice(0)}};function n(f,h,m){if(h.length!==4)throw new t.exception.invalid("invalid aes block size");var g=f.b[m],y=h[0]^g[0],b=h[m?3:1]^g[1],_=h[2]^g[2];h=h[m?1:3]^g[3];var C,S,w,P=g.length/4-2,x,k=4,R=[0,0,0,0];C=f.s[m],f=C[0];var L=C[1],B=C[2],j=C[3],D=C[4];for(x=0;x>>24]^L[b>>16&255]^B[_>>8&255]^j[h&255]^g[k],S=f[b>>>24]^L[_>>16&255]^B[h>>8&255]^j[y&255]^g[k+1],w=f[_>>>24]^L[h>>16&255]^B[y>>8&255]^j[b&255]^g[k+2],h=f[h>>>24]^L[y>>16&255]^B[b>>8&255]^j[_&255]^g[k+3],k+=4,y=C,b=S,_=w;for(x=0;4>x;x++)R[m?3&-x:x]=D[y>>>24]<<24^D[b>>16&255]<<16^D[_>>8&255]<<8^D[h&255]^g[k++],C=y,y=b,b=_,_=h,h=C;return R}t.bitArray={bitSlice:function(f,h,m){return f=t.bitArray.$(f.slice(h/32),32-(h&31)).slice(1),m===void 0?f:t.bitArray.clamp(f,m-h)},extract:function(f,h,m){var g=Math.floor(-h-m&31);return((h+m-1^h)&-32?f[h/32|0]<<32-g^f[h/32+1|0]>>>g:f[h/32|0]>>>g)&(1<>h-1,1)),f},partial:function(f,h,m){return f===32?h:(m?h|0:h<<32-f)+1099511627776*f},getPartial:function(f){return Math.round(f/1099511627776)||32},equal:function(f,h){if(t.bitArray.bitLength(f)!==t.bitArray.bitLength(h))return!1;var m=0,g;for(g=0;g>>h),m=f[y]<<32-h;return y=f.length?f[f.length-1]:0,f=t.bitArray.getPartial(y),g.push(t.bitArray.partial(h+f&31,32>>24|m>>>8&65280|(m&65280)<<8|m<<24;return f}},t.codec.utf8String={fromBits:function(f){var h="",m=t.bitArray.bitLength(f),g,y;for(g=0;g>>8>>>8>>>8),y<<=8;return decodeURIComponent(escape(h))},toBits:function(f){f=unescape(encodeURIComponent(f));var h=[],m,g=0;for(m=0;m>>_)>>>y),_P){if(!h)try{return t.codec.base32hex.toBits(f)}catch{}throw new t.exception.invalid("this isn't "+x+"!")}C>y?(C-=y,b.push(w^P>>>C),w=P<>>y)>>>26),6>y?(_=f[m]<<6-y,y+=26,m++):(_<<=6,y-=6);for(;g.length&3&&!h;)g+="=";return g},toBits:function(f,h){f=f.replace(/\s|=/g,"");var m=[],g,y=0,b=t.codec.base64.B,_=0,C;for(h&&(b=b.substr(0,62)+"-_"),g=0;gC)throw new t.exception.invalid("this isn't base64!");26>>y),_=C<<32-y):(y+=6,_^=C<<32-y)}return y&56&&m.push(t.bitArray.partial(y&56,_,1)),m}},t.codec.base64url={fromBits:function(f){return t.codec.base64.fromBits(f,1,1)},toBits:function(f){return t.codec.base64.toBits(f,1)}},t.hash.sha256=function(f){this.b[0]||this.O(),f?(this.F=f.F.slice(0),this.A=f.A.slice(0),this.l=f.l):this.reset()},t.hash.sha256.hash=function(f){return new t.hash.sha256().update(f).finalize()},t.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(f){typeof f=="string"&&(f=t.codec.utf8String.toBits(f));var h,m=this.A=t.bitArray.concat(this.A,f);if(h=this.l,f=this.l=h+t.bitArray.bitLength(f),9007199254740991h;m++){for(y=!0,g=2;g*g<=m;g++)if(m%g===0){y=!1;break}y&&(8>h&&(this.Y[h]=f(Math.pow(m,.5))),this.b[h]=f(Math.pow(m,1/3)),h++)}}};function r(f,h){var m,g,y,b=f.F,_=f.b,C=b[0],S=b[1],w=b[2],P=b[3],x=b[4],k=b[5],R=b[6],L=b[7];for(m=0;64>m;m++)16>m?g=h[m]:(g=h[m+1&15],y=h[m+14&15],g=h[m&15]=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+h[m&15]+h[m+9&15]|0),g=g+L+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(R^x&(k^R))+_[m],L=R,R=k,k=x,x=P+g|0,P=w,w=S,S=C,C=g+(S&w^P&(S^w))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;b[0]=b[0]+C|0,b[1]=b[1]+S|0,b[2]=b[2]+w|0,b[3]=b[3]+P|0,b[4]=b[4]+x|0,b[5]=b[5]+k|0,b[6]=b[6]+R|0,b[7]=b[7]+L|0}t.mode.ccm={name:"ccm",G:[],listenProgress:function(f){t.mode.ccm.G.push(f)},unListenProgress:function(f){f=t.mode.ccm.G.indexOf(f),-1S)throw new t.exception.invalid("ccm: iv must be at least 7 bytes");for(b=2;4>b&&w>>>8*b;b++);return b<15-S&&(b=15-S),m=C.clamp(m,8*(15-b)),h=t.mode.ccm.V(f,h,m,g,y,b),_=t.mode.ccm.C(f,_,m,h,y,b),C.concat(_.data,_.tag)},decrypt:function(f,h,m,g,y){y=y||64,g=g||[];var b=t.bitArray,_=b.bitLength(m)/8,w=b.bitLength(h),C=b.clamp(h,w-y),S=b.bitSlice(h,w-y),w=(w-y)/8;if(7>_)throw new t.exception.invalid("ccm: iv must be at least 7 bytes");for(h=2;4>h&&w>>>8*h;h++);if(h<15-_&&(h=15-_),m=b.clamp(m,8*(15-h)),C=t.mode.ccm.C(f,C,m,S,y,h),f=t.mode.ccm.V(f,C.data,m,g,y,h),!b.equal(C.tag,f))throw new t.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(f,h,m,g,y,b){var _=[],C=t.bitArray,S=C.i;if(g=[C.partial(8,(h.length?64:0)|g-2<<2|b-1)],g=C.concat(g,m),g[3]|=y,g=f.encrypt(g),h.length)for(m=C.bitLength(h)/8,65279>=m?_=[C.partial(16,m)]:4294967295>=m&&(_=C.concat([C.partial(16,65534)],[m])),_=C.concat(_,h),h=0;h<_.length;h+=4)g=f.encrypt(S(g,_.slice(h,h+4).concat([0,0,0])));return g},V:function(f,h,m,g,y,b){var _=t.bitArray,C=_.i;if(y/=8,y%2||4>y||16P&&(t.mode.ccm.fa(_/S),P+=x),m[3]++,y=f.encrypt(m),h[_]^=y[0],h[_+1]^=y[1],h[_+2]^=y[2],h[_+3]^=y[3];return{tag:g,data:C.clamp(h,w)}}},t.mode.ocb2={name:"ocb2",encrypt:function(f,h,m,g,y,b){if(t.bitArray.bitLength(m)!==128)throw new t.exception.invalid("ocb iv must be 128 bits");var _,C=t.mode.ocb2.S,S=t.bitArray,w=S.i,P=[0,0,0,0];m=C(f.encrypt(m));var x,k=[];for(g=g||[],y=y||64,_=0;_+4y.bitLength(m)&&(C=b(C,g(C)),m=y.concat(m,[-2147483648,0,0,0])),_=b(_,m),f.encrypt(b(g(b(C,g(C))),_))},S:function(f){return[f[0]<<1^f[1]>>>31,f[1]<<1^f[2]>>>31,f[2]<<1^f[3]>>>31,f[3]<<1^135*(f[0]>>>31)]}},t.mode.gcm={name:"gcm",encrypt:function(f,h,m,g,y){var b=h.slice(0);return h=t.bitArray,g=g||[],f=t.mode.gcm.C(!0,f,b,g,m,y||128),h.concat(f.data,f.tag)},decrypt:function(f,h,m,g,y){var b=h.slice(0),_=t.bitArray,C=_.bitLength(b);if(y=y||128,g=g||[],y<=C?(h=_.bitSlice(b,C-y),b=_.bitSlice(b,0,C-y)):(h=b,b=[]),f=t.mode.gcm.C(!1,f,b,g,m,y),!_.equal(f.tag,h))throw new t.exception.corrupt("gcm: tag doesn't match");return f.data},ka:function(f,h){var m,g,y,b,_,C=t.bitArray.i;for(y=[0,0,0,0],b=h.slice(0),m=0;128>m;m++){for((g=(f[Math.floor(m/32)]&1<<31-m%32)!==0)&&(y=C(y,b)),_=(b[3]&1)!==0,g=3;0>>1|(b[g-1]&1)<<31;b[0]>>>=1,_&&(b[0]^=-520093696)}return y},j:function(f,h,m){var g,y=m.length;for(h=h.slice(0),g=0;gy&&(f=h.hash(f)),g=0;gg||0>m)throw new t.exception.invalid("invalid params to pbkdf2");typeof f=="string"&&(f=t.codec.utf8String.toBits(f)),typeof h=="string"&&(h=t.codec.utf8String.toBits(h)),y=y||t.misc.hmac,f=new y(f);var b,_,C,S,w=[],P=t.bitArray;for(S=1;32*w.length<(g||1);S++){for(y=b=f.encrypt(P.concat(h,[S])),_=1;__;_++)y.push(4294967296*Math.random()|0);for(_=0;_=1<this.o&&(this.o=b),this.P++,this.b=t.hash.sha256.hash(this.b.concat(y)),this.L=new t.cipher.aes(this.b),g=0;4>g&&(this.h[g]=this.h[g]+1|0,!this.h[g]);g++);}for(g=0;g>>1;this.c[_].update([g,this.N++,2,h,b,f.length].concat(f))}break;case"string":h===void 0&&(h=f.length),this.c[_].update([g,this.N++,3,h,b,f.length]),this.c[_].update(f);break;default:S=1}if(S)throw new t.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[_]+=h,this.f+=h,C===this.u&&(this.isReady()!==this.u&&i("seeded",Math.max(this.o,this.f)),i("progress",this.getProgress()))},isReady:function(f){return f=this.T[f!==void 0?f:this.M],this.o&&this.o>=f?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=f?this.J|this.u:this.u},getProgress:function(f){return f=this.T[f||this.M],this.o>=f||this.f>f?1:this.f/f},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:l(this,this.ma),mouseCollector:l(this,this.oa),keyboardCollector:l(this,this.la),accelerometerCollector:l(this,this.ea),touchCollector:l(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new t.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(f,h){this.K[f][this.ga++]=h},removeEventListener:function(f,h){var m,g,y=this.K[f],b=[];for(g in y)y.hasOwnProperty(g)&&y[g]===h&&b.push(g);for(m=0;mh&&(f.h[h]=f.h[h]+1|0,!f.h[h]);h++);return f.L.encrypt(f.h)}function l(f,h){return function(){h.apply(f,arguments)}}t.random=new t.prng(6);e:try{var u,c,d,p;if(p=e.exports){var v;try{v=T7}catch{v=null}p=c=v}if(p&&c.randomBytes)u=c.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),t.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(d=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(d);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(d);else break e;t.random.addEntropy(d,1024,"crypto['getRandomValues']")}}catch(f){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(f))}t.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(f,h,m,g){m=m||{},g=g||{};var y=t.json,b=y.g({iv:t.random.randomWords(4,0)},y.defaults),_;if(y.g(b,m),m=b.adata,typeof b.salt=="string"&&(b.salt=t.codec.base64.toBits(b.salt)),typeof b.iv=="string"&&(b.iv=t.codec.base64.toBits(b.iv)),!t.mode[b.mode]||!t.cipher[b.cipher]||typeof f=="string"&&100>=b.iter||b.ts!==64&&b.ts!==96&&b.ts!==128||b.ks!==128&&b.ks!==192&&b.ks!==256||2>b.iv.length||4=h.iter||h.ts!==64&&h.ts!==96&&h.ts!==128||h.ks!==128&&h.ks!==192&&h.ks!==256||!h.iv||2>h.iv.length||4{for(var n in t)O7(e,n,{get:t[n],enumerable:!0})},I7={};Zt(I7,{convertFileSrc:()=>M7,invoke:()=>dc,transformCallback:()=>Yi});function A7(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function Yi(e,t=!1){let n=A7(),r=`_${n}`;return Object.defineProperty(window,r,{value:i=>(t&&Reflect.deleteProperty(window,r),e==null?void 0:e(i)),writable:!1,configurable:!0}),n}async function dc(e,t={}){return new Promise((n,r)=>{let i=Yi(o=>{n(o),Reflect.deleteProperty(window,`_${a}`)},!0),a=Yi(o=>{r(o),Reflect.deleteProperty(window,`_${i}`)},!0);window.__TAURI_IPC__({cmd:e,callback:i,error:a,...t})})}function M7(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function le(e){return dc("tauri",e)}var N7={};Zt(N7,{TauriEvent:()=>lE,emit:()=>sv,listen:()=>uE,once:()=>cE});async function aE(e,t){return le({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function oE(e,t,n){await le({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function ov(e,t,n){return le({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:Yi(n)}}).then(r=>async()=>aE(e,r))}async function sE(e,t,n){return ov(e,t,r=>{n(r),aE(e,r.id).catch(()=>{})})}var lE=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(lE||{});async function uE(e,t){return ov(e,null,t)}async function cE(e,t){return sE(e,null,t)}async function sv(e,t){return oE(e,void 0,t)}var k7={};Zt(k7,{checkUpdate:()=>F7,installUpdate:()=>R7,onUpdaterEvent:()=>lv});async function lv(e){return uE("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function R7(){let e;function t(){e&&e(),e=void 0}return new Promise((n,r)=>{function i(a){if(a.error){t(),r(a.error);return}a.status==="DONE"&&(t(),n())}lv(i).then(a=>{e=a}).catch(a=>{throw t(),a}),sv("tauri://update-install").catch(a=>{throw t(),a})})}async function F7(){let e;function t(){e&&e(),e=void 0}return new Promise((n,r)=>{function i(o){t(),n({manifest:o,shouldUpdate:!0})}function a(o){if(o.error){t(),r(o.error);return}o.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}cE("tauri://update-available",o=>{i(o==null?void 0:o.payload)}).catch(o=>{throw t(),o}),lv(a).then(o=>{e=o}).catch(o=>{throw t(),o}),sv("tauri://update").catch(o=>{throw t(),o})})}var D7={};Zt(D7,{CloseRequestedEvent:()=>gE,LogicalPosition:()=>dE,LogicalSize:()=>fE,PhysicalPosition:()=>lu,PhysicalSize:()=>su,UserAttentionType:()=>pE,WebviewWindow:()=>Ga,WebviewWindowHandle:()=>hE,WindowManager:()=>vE,appWindow:()=>Rd,availableMonitors:()=>j7,currentMonitor:()=>$7,getAll:()=>kd,getCurrent:()=>L7,primaryMonitor:()=>B7});var fE=class{constructor(t,n){this.type="Logical",this.width=t,this.height=n}},su=class{constructor(t,n){this.type="Physical",this.width=t,this.height=n}toLogical(t){return new fE(this.width/t,this.height/t)}},dE=class{constructor(t,n){this.type="Logical",this.x=t,this.y=n}},lu=class{constructor(t,n){this.type="Physical",this.x=t,this.y=n}toLogical(t){return new dE(this.x/t,this.y/t)}},pE=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(pE||{});function L7(){return new Ga(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function kd(){return window.__TAURI_METADATA__.__windows.map(e=>new Ga(e.label,{skip:!0}))}var v0=["tauri://created","tauri://error"],hE=class{constructor(t){this.label=t,this.listeners=Object.create(null)}async listen(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{let r=this.listeners[t];r.splice(r.indexOf(n),1)}):ov(t,this.label,n)}async once(t,n){return this._handleTauriEvent(t,n)?Promise.resolve(()=>{let r=this.listeners[t];r.splice(r.indexOf(n),1)}):sE(t,this.label,n)}async emit(t,n){if(v0.includes(t)){for(let r of this.listeners[t]||[])r({event:t,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return oE(t,this.label,n)}_handleTauriEvent(t,n){return v0.includes(t)?(t in this.listeners?this.listeners[t].push(n):this.listeners[t]=[n],!0):!1}},vE=class extends hE{async scaleFactor(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:t,y:n})=>new lu(t,n))}async outerPosition(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:t,y:n})=>new lu(t,n))}async innerSize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:t,height:n})=>new su(t,n))}async outerSize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:t,height:n})=>new su(t,n))}async isFullscreen(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(t){let n=null;return t&&(t===1?n={type:"Critical"}:n={type:"Informational"}),le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:t}}}})}async setMaximizable(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:t}}}})}async setMinimizable(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:t}}}})}async setClosable(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:t}}}})}async setTitle(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:t}}}})}async maximize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:t}}}})}async setAlwaysOnTop(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:t}}}})}async setContentProtected(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:t}}}})}async setSize(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:t.type,data:{width:t.width,height:t.height}}}}}})}async setMinSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setMaxSize(t){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})}async setPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setFullscreen(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:t}}}})}async setFocus(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof t=="string"?t:Array.from(t)}}}}})}async setSkipTaskbar(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:t}}}})}async setCursorGrab(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:t}}}})}async setCursorVisible(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:t}}}})}async setCursorIcon(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:t}}}})}async setCursorPosition(t){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})}async setIgnoreCursorEvents(t){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:t}}}})}async startDragging(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(t){return this.listen("tauri://resize",n=>{n.payload=yE(n.payload),t(n)})}async onMoved(t){return this.listen("tauri://move",n=>{n.payload=mE(n.payload),t(n)})}async onCloseRequested(t){return this.listen("tauri://close-requested",n=>{let r=new gE(n);Promise.resolve(t(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(t){let n=await this.listen("tauri://focus",i=>{t({...i,payload:!0})}),r=await this.listen("tauri://blur",i=>{t({...i,payload:!1})});return()=>{n(),r()}}async onScaleChanged(t){return this.listen("tauri://scale-change",t)}async onMenuClicked(t){return this.listen("tauri://menu",t)}async onFileDropEvent(t){let n=await this.listen("tauri://file-drop",a=>{t({...a,payload:{type:"drop",paths:a.payload}})}),r=await this.listen("tauri://file-drop-hover",a=>{t({...a,payload:{type:"hover",paths:a.payload}})}),i=await this.listen("tauri://file-drop-cancelled",a=>{t({...a,payload:{type:"cancel"}})});return()=>{n(),r(),i()}}async onThemeChanged(t){return this.listen("tauri://theme-changed",t)}},gE=class{constructor(t){this._preventDefault=!1,this.event=t.event,this.windowLabel=t.windowLabel,this.id=t.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},Ga=class extends vE{constructor(t,n={}){super(t),n!=null&&n.skip||le({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:t,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(t){return kd().some(n=>n.label===t)?new Ga(t,{skip:!0}):null}static async getFocusedWindow(){for(let t of kd())if(await t.isFocused())return t;return null}},Rd;"__TAURI_METADATA__"in window?Rd=new Ga(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.
-Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Rd=new Ga("main",{skip:!0}));function uv(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:mE(e.position),size:yE(e.size)}}function mE(e){return new lu(e.x,e.y)}function yE(e){return new su(e.width,e.height)}async function $7(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(uv)}async function B7(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(uv)}async function j7(){return le({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(uv))}var z7={};Zt(z7,{isPermissionGranted:()=>U7,requestPermission:()=>H7,sendNotification:()=>W7});async function U7(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):le({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function H7(){return window.Notification.requestPermission()}function W7(e){typeof e=="string"?new window.Notification(e):new window.Notification(e.title,e)}function cv(){return navigator.appVersion.includes("Win")}var K7={};Zt(K7,{EOL:()=>G7,arch:()=>X7,locale:()=>J7,platform:()=>V7,tempdir:()=>Z7,type:()=>q7,version:()=>Y7});var G7=cv()?`\r
-`:`
-`;async function V7(){return le({__tauriModule:"Os",message:{cmd:"platform"}})}async function Y7(){return le({__tauriModule:"Os",message:{cmd:"version"}})}async function q7(){return le({__tauriModule:"Os",message:{cmd:"osType"}})}async function X7(){return le({__tauriModule:"Os",message:{cmd:"arch"}})}async function Z7(){return le({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function J7(){return le({__tauriModule:"Os",message:{cmd:"locale"}})}var vs={};Zt(vs,{BaseDirectory:()=>uu,Dir:()=>uu,copyFile:()=>aH,createDir:()=>rH,exists:()=>lH,readBinaryFile:()=>eH,readDir:()=>nH,readTextFile:()=>Q7,removeDir:()=>iH,removeFile:()=>oH,renameFile:()=>sH,writeBinaryFile:()=>tH,writeFile:()=>g0,writeTextFile:()=>g0});var uu=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(uu||{});async function Q7(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function eH(e,t={}){let n=await le({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function g0(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:""},i=n;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),typeof t=="string"?r.contents=t??"":i=t,le({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:i}})}async function tH(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:[]},i=n;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),t&&"dir"in t?i=t:typeof e=="string"&&(r.contents=t??[]),le({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:i}})}async function nH(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function rH(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function iH(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function aH(e,t,n={}){return le({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function oH(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function sH(e,t,n={}){return le({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function lH(e,t={}){return le({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}var uH={};Zt(uH,{BaseDirectory:()=>uu,appCacheDir:()=>pH,appConfigDir:()=>bE,appDataDir:()=>fH,appDir:()=>cH,appLocalDataDir:()=>dH,appLogDir:()=>_E,audioDir:()=>hH,basename:()=>jH,cacheDir:()=>vH,configDir:()=>gH,dataDir:()=>mH,delimiter:()=>RH,desktopDir:()=>yH,dirname:()=>$H,documentDir:()=>bH,downloadDir:()=>_H,executableDir:()=>CH,extname:()=>BH,fontDir:()=>wH,homeDir:()=>SH,isAbsolute:()=>zH,join:()=>LH,localDataDir:()=>xH,logDir:()=>NH,normalize:()=>DH,pictureDir:()=>EH,publicDir:()=>TH,resolve:()=>FH,resolveResource:()=>OH,resourceDir:()=>PH,runtimeDir:()=>IH,sep:()=>kH,templateDir:()=>AH,videoDir:()=>MH});async function cH(){return bE()}async function bE(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function fH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function dH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function pH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function hH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function vH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function gH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function mH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function yH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function bH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function _H(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function CH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function wH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function SH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function xH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function EH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function TH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function PH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function OH(e){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:e,directory:17}})}async function IH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function AH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function MH(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function NH(){return _E()}async function _E(){return le({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var kH=cv()?"\\":"/",RH=cv()?";":":";async function FH(...e){return le({__tauriModule:"Path",message:{cmd:"resolve",paths:e}})}async function DH(e){return le({__tauriModule:"Path",message:{cmd:"normalize",path:e}})}async function LH(...e){return le({__tauriModule:"Path",message:{cmd:"join",paths:e}})}async function $H(e){return le({__tauriModule:"Path",message:{cmd:"dirname",path:e}})}async function BH(e){return le({__tauriModule:"Path",message:{cmd:"extname",path:e}})}async function jH(e,t){return le({__tauriModule:"Path",message:{cmd:"basename",path:e,ext:t}})}async function zH(e){return le({__tauriModule:"Path",message:{cmd:"isAbsolute",path:e}})}var UH={};Zt(UH,{exit:()=>HH,relaunch:()=>CE});async function HH(e=0){return le({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function CE(){return le({__tauriModule:"Process",message:{cmd:"relaunch"}})}var WH={};Zt(WH,{Child:()=>wE,Command:()=>SE,EventEmitter:()=>Rl,open:()=>GH});async function KH(e,t,n=[],r){return typeof n=="object"&&Object.freeze(n),le({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:r,onEventFn:Yi(e)}})}var Rl=class{constructor(){this.eventListeners=Object.create(null)}addListener(t,n){return this.on(t,n)}removeListener(t,n){return this.off(t,n)}on(t,n){return t in this.eventListeners?this.eventListeners[t].push(n):this.eventListeners[t]=[n],this}once(t,n){let r=(...i)=>{this.removeListener(t,r),n(...i)};return this.addListener(t,r)}off(t,n){return t in this.eventListeners&&(this.eventListeners[t]=this.eventListeners[t].filter(r=>r!==n)),this}removeAllListeners(t){return t?delete this.eventListeners[t]:this.eventListeners=Object.create(null),this}emit(t,...n){if(t in this.eventListeners){let r=this.eventListeners[t];for(let i of r)i(...n);return!0}return!1}listenerCount(t){return t in this.eventListeners?this.eventListeners[t].length:0}prependListener(t,n){return t in this.eventListeners?this.eventListeners[t].unshift(n):this.eventListeners[t]=[n],this}prependOnceListener(t,n){let r=(...i)=>{this.removeListener(t,r),n(...i)};return this.prependListener(t,r)}},wE=class{constructor(t){this.pid=t}async write(t){return le({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof t=="string"?t:Array.from(t)}})}async kill(){return le({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},SE=class extends Rl{constructor(t,n=[],r){super(),this.stdout=new Rl,this.stderr=new Rl,this.program=t,this.args=typeof n=="string"?[n]:n,this.options=r??{}}static sidecar(t,n=[],r){let i=new SE(t,n,r);return i.options.sidecar=!0,i}async spawn(){return KH(t=>{switch(t.event){case"Error":this.emit("error",t.payload);break;case"Terminated":this.emit("close",t.payload);break;case"Stdout":this.stdout.emit("data",t.payload);break;case"Stderr":this.stderr.emit("data",t.payload);break}},this.program,this.args,this.options).then(t=>new wE(t))}async execute(){return new Promise((t,n)=>{this.on("error",n);let r=[],i=[];this.stdout.on("data",a=>{r.push(a)}),this.stderr.on("data",a=>{i.push(a)}),this.on("close",a=>{t({code:a.code,signal:a.signal,stdout:r.join(`
-`),stderr:i.join(`
-`)})}),this.spawn().catch(n)})}};async function GH(e,t){return le({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var VH={};Zt(VH,{getName:()=>qH,getTauriVersion:()=>XH,getVersion:()=>YH,hide:()=>JH,show:()=>ZH});async function YH(){return le({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function qH(){return le({__tauriModule:"App",message:{cmd:"getAppName"}})}async function XH(){return le({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function ZH(){return le({__tauriModule:"App",message:{cmd:"show"}})}async function JH(){return le({__tauriModule:"App",message:{cmd:"hide"}})}var QH={};Zt(QH,{getMatches:()=>e9});async function e9(){return le({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var t9={};Zt(t9,{readText:()=>r9,writeText:()=>n9});async function n9(e){return le({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function r9(){return le({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var i9={};Zt(i9,{ask:()=>s9,confirm:()=>l9,message:()=>o9,open:()=>xE,save:()=>a9});async function xE(e={}){return typeof e=="object"&&Object.freeze(e),le({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function a9(e={}){return typeof e=="object"&&Object.freeze(e),le({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function o9(e,t){var r,i;let n=typeof t=="string"?{title:t}:t;return le({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(i=n==null?void 0:n.okLabel)==null?void 0:i.toString()}})}async function s9(e,t){var r,i,a;let n=typeof t=="string"?{title:t}:t;return le({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((i=n==null?void 0:n.okLabel)==null?void 0:i.toString())??"Yes",((a=n==null?void 0:n.cancelLabel)==null?void 0:a.toString())??"No"]}})}async function l9(e,t){var r,i,a;let n=typeof t=="string"?{title:t}:t;return le({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((i=n==null?void 0:n.okLabel)==null?void 0:i.toString())??"Ok",((a=n==null?void 0:n.cancelLabel)==null?void 0:a.toString())??"Cancel"]}})}var u9={};Zt(u9,{isRegistered:()=>d9,register:()=>c9,registerAll:()=>f9,unregister:()=>p9,unregisterAll:()=>h9});async function c9(e,t){return le({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:Yi(t)}})}async function f9(e,t){return le({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:Yi(t)}})}async function d9(e){return le({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function p9(e){return le({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function h9(){return le({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var v9={};Zt(v9,{Body:()=>Io,Client:()=>PE,Response:()=>TE,ResponseType:()=>EE,fetch:()=>g9,getClient:()=>OE});var EE=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(EE||{}),Io=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(r,i)=>{if(i!==null){let a;typeof i=="string"?a=i:i instanceof Uint8Array||Array.isArray(i)?a=Array.from(i):i instanceof File?a={file:i.name,mime:i.type,fileName:i.name}:typeof i.file=="string"?a={file:i.file,mime:i.mime,fileName:i.fileName}:a={file:Array.from(i.file),mime:i.mime,fileName:i.fileName},t[String(r)]=a}};if(e instanceof FormData)for(let[r,i]of e)n(r,i);else for(let[r,i]of Object.entries(e))n(r,i);return new Io("Form",t)}static json(e){return new Io("Json",e)}static text(e){return new Io("Text",e)}static bytes(e){return new Io("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},TE=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},PE=class{constructor(e){this.id=e}async drop(){return le({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),le({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let r=new TE(n);if(t){try{r.data=JSON.parse(r.data)}catch(i){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${i};
- try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function OE(e){return le({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new PE(t))}var ff=null;async function g9(e,t){return ff===null&&(ff=await OE()),ff.request({url:e,method:(t==null?void 0:t.method)??"GET",...t})}var m9=dc;const cu=U(),y9=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{cu.value=await m9("get_tauri_conf")}catch(e){console.error(e)}},ks=V(()=>cu.value?`http://127.0.0.1:${cu.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),b9=e=>{const t=ou.hash.sha256.hash(e);return ou.codec.hex.fromBits(t)},_9=e=>{e.interceptors.response.use(t=>t,async t=>{var n,r,i,a,o,s,l;if(oz(t)){if(((n=t.response)==null?void 0:n.status)===401){const c=await new Promise(d=>{const p=U("");Xt.confirm({title:Le("serverKeyRequired"),content:()=>vi($t,{value:p.value,"onUpdate:value":v=>p.value=v}),onOk(){d(p.value)}})});if(!c)return;VU.set("IIB_S",b9(c+"_ciallo")),await fc(100),location.reload()}switch((a=(i=(r=t.response)==null?void 0:r.data)==null?void 0:i.detail)==null?void 0:a.type){case"secret_key_required":throw Xt.error({width:"60vw",title:Le("secretKeyMustBeConfigured"),content:()=>vi("p",{style:"white-space: pre-line;"},Le("secretKeyRequiredWarnMsg"))}),new Error(Le("secretKeyRequiredWarnMsg"))}let u=(s=(o=t.response)==null?void 0:o.data)==null?void 0:s.detail;try{u||(u=JSON.parse(await((l=t.response)==null?void 0:l.data.text())).detail)}catch(c){console.error(t.response,c)}throw u??(u=Le("errorOccurred")),Hi.error(u),new Error(u)}return t})},St=V(()=>{const e=Ox.create({baseURL:ks.value});return _9(e),e}),C9=async()=>(await St.value.get("/global_setting")).data,w9=async e=>(await St.value.post("/check_path_exists",{paths:e})).data,kQ=async e=>St.value.post(`/send_img_path?path=${encodeURIComponent(e)}`),RQ=async()=>(await St.value.get("/gen_info_completed",{timeout:6e4})).data,m0=async e=>(await St.value.get(`/image_geninfo?path=${encodeURIComponent(e)}`)).data,FQ=async e=>(await St.value.post("/image_geninfo_batch",{paths:e})).data,DQ=async e=>{await St.value.post("/open_folder",{path:e})},LQ=async e=>{await St.value.post("/open_with_default_app",{path:e})},S9=()=>({"date-asc":Le("sortByDateAscending"),"date-desc":Le("sortByDateDescending"),"name-asc":Le("sortByNameAscending"),"name-desc":Le("sortByNameDescending"),"size-asc":Le("sortBySizeAscending"),"size-desc":Le("sortBySizeDescending"),"created-time-asc":Le("sortByCreatedDateAscending"),"created-time-desc":Le("sortByCreatedDateDescending")});var fv=(e=>(e.DATE_ASC="date-asc",e.DATE_DESC="date-desc",e.NAME_ASC="name-asc",e.NAME_DESC="name-desc",e.SIZE_ASC="size-asc",e.SIZE_DESC="size-desc",e.CREATED_TIME_ASC="created-time-asc",e.CREATED_TIME_DESC="created-time-desc",e))(fv||{});const $Q=Object.values(fv),BQ={value:e=>e,text:e=>S9()[e].toLocaleLowerCase()},x9=(e,t)=>{const n=e.type==="dir"?1:0;return(t.type==="dir"?1:0)-n},y0=(e,t)=>{const n=Date.parse(e.date),r=Date.parse(t.date);return n-r},b0=(e,t)=>{const n=Date.parse(e.created_time),r=Date.parse(t.created_time);return n-r},_0=(e,t)=>{const n=e.name.toLowerCase(),r=t.name.toLowerCase();return n.localeCompare(r)},C0=(e,t)=>e.bytes-t.bytes,jQ=(e,t)=>{const n=(r,i)=>{switch(t){case"date-asc":return y0(r,i);case"date-desc":return y0(i,r);case"created-time-asc":return b0(r,i);case"created-time-desc":return b0(i,r);case"name-asc":return _0(r,i);case"name-desc":return _0(i,r);case"size-asc":return C0(r,i);case"size-desc":return C0(i,r);default:throw new Error(`Invalid sort method: ${t}`)}};return e.slice().sort((r,i)=>x9(r,i)||n(r,i))};var E9=!1;function dv(e){return Su()?(up(e),!0):!1}function pv(e){return typeof e=="function"?e():Ee(e)}const IE=typeof window<"u",hv=()=>{};function T9(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return n}const AE=e=>e();function P9(e=AE){const t=U(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:Eu(t),pause:n,resume:r,eventFilter:i}}function O9(...e){if(e.length!==1)return rn(...e);const t=e[0];return typeof t=="function"?Eu(fO(()=>({get:t,set:hv}))):U(t)}function I9(e,t=!0){Tt()?je(e):t?e():Ke(e)}var w0=Object.getOwnPropertySymbols,A9=Object.prototype.hasOwnProperty,M9=Object.prototype.propertyIsEnumerable,N9=(e,t)=>{var n={};for(var r in e)A9.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&w0)for(var r of w0(e))t.indexOf(r)<0&&M9.call(e,r)&&(n[r]=e[r]);return n};function k9(e,t,n={}){const r=n,{eventFilter:i=AE}=r,a=N9(r,["eventFilter"]);return he(e,T9(i,t),a)}var R9=Object.defineProperty,F9=Object.defineProperties,D9=Object.getOwnPropertyDescriptors,fu=Object.getOwnPropertySymbols,ME=Object.prototype.hasOwnProperty,NE=Object.prototype.propertyIsEnumerable,S0=(e,t,n)=>t in e?R9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L9=(e,t)=>{for(var n in t||(t={}))ME.call(t,n)&&S0(e,n,t[n]);if(fu)for(var n of fu(t))NE.call(t,n)&&S0(e,n,t[n]);return e},$9=(e,t)=>F9(e,D9(t)),B9=(e,t)=>{var n={};for(var r in e)ME.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fu)for(var r of fu(e))t.indexOf(r)<0&&NE.call(e,r)&&(n[r]=e[r]);return n};function j9(e,t,n={}){const r=n,{eventFilter:i}=r,a=B9(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=P9(i);return{stop:k9(e,t,$9(L9({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Fd(e,t,n){let r;lt(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:a=void 0,shallow:o=!0,onError:s=hv}=r,l=U(!i),u=o?qn(t):U(t);let c=0;return vt(async d=>{if(!l.value)return;c++;const p=c;let v=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const f=await e(h=>{d(()=>{a&&(a.value=!1),v||h()})});p===c&&(u.value=f)}catch(f){s(f)}finally{a&&p===c&&(a.value=!1),v=!0}}),i?V(()=>(l.value=!0,u.value)):u}function di(e){var t;const n=pv(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Hr=IE?window:void 0,z9=IE?window.document:void 0;function Dn(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=Hr):[t,n,r,i]=e,!t)return hv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,d,p,v)=>(c.addEventListener(d,p,v),()=>c.removeEventListener(d,p,v)),l=he(()=>[di(t),pv(i)],([c,d])=>{o(),c&&a.push(...n.flatMap(p=>r.map(v=>s(c,p,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return dv(u),u}const U9=500;function zQ(e,t,n){var r,i;const a=V(()=>di(e));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,p,v,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==a.value||(s(),(p=n==null?void 0:n.modifiers)!=null&&p.prevent&&c.preventDefault(),(v=n==null?void 0:n.modifiers)!=null&&v.stop&&c.stopPropagation(),o=setTimeout(()=>t(c),(f=n==null?void 0:n.delay)!=null?f:U9))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(i=n==null?void 0:n.modifiers)==null?void 0:i.once};Dn(a,"pointerdown",l,u),Dn(a,"pointerup",s,u),Dn(a,"pointerleave",s,u)}function H9(){const e=U(!1);return Tt()&&je(()=>{e.value=!0}),e}function kE(e){const t=H9();return V(()=>(t.value,!!e()))}function W9(e,t={}){const{window:n=Hr}=t,r=kE(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const a=U(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{r.value&&(o(),i=n.matchMedia(O9(e).value),a.value=!!(i!=null&&i.matches),i&&("addEventListener"in i?i.addEventListener("change",s):i.addListener(s)))};return vt(s),dv(()=>o()),a}const dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pl="__vueuse_ssr_handlers__",K9=G9();function G9(){return pl in dl||(dl[pl]=dl[pl]||{}),dl[pl]}function V9(e,t){return K9[e]||t}function Y9(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var q9=Object.defineProperty,x0=Object.getOwnPropertySymbols,X9=Object.prototype.hasOwnProperty,Z9=Object.prototype.propertyIsEnumerable,E0=(e,t,n)=>t in e?q9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T0=(e,t)=>{for(var n in t||(t={}))X9.call(t,n)&&E0(e,n,t[n]);if(x0)for(var n of x0(t))Z9.call(t,n)&&E0(e,n,t[n]);return e};const J9={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},P0="vueuse-storage";function Q9(e,t,n,r={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Hr,eventFilter:p,onError:v=P=>{console.error(P)}}=r,f=(c?qn:U)(t);if(!n)try{n=V9("getDefaultStorage",()=>{var P;return(P=Hr)==null?void 0:P.localStorage})()}catch(P){v(P)}if(!n)return f;const h=pv(t),m=Y9(h),g=(i=r.serializer)!=null?i:J9[m],{pause:y,resume:b}=j9(f,()=>_(f.value),{flush:a,deep:o,eventFilter:p});return d&&s&&(Dn(d,"storage",w),Dn(d,P0,S)),w(),f;function _(P){try{if(P==null)n.removeItem(e);else{const x=g.write(P),k=n.getItem(e);k!==x&&(n.setItem(e,x),d&&d.dispatchEvent(new CustomEvent(P0,{detail:{key:e,oldValue:k,newValue:x,storageArea:n}})))}}catch(x){v(x)}}function C(P){const x=P?P.newValue:n.getItem(e);if(x==null)return l&&h!==null&&n.setItem(e,g.write(h)),h;if(!P&&u){const k=g.read(x);return typeof u=="function"?u(k,h):m==="object"&&!Array.isArray(k)?T0(T0({},h),k):k}else return typeof x!="string"?x:g.read(x)}function S(P){w(P.detail)}function w(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){f.value=h;return}if(!(P&&P.key!==e)){y();try{f.value=C(P)}catch(x){v(x)}finally{P?Ke(b):b()}}}}}function eW(e){return W9("(prefers-color-scheme: dark)",e)}function tW({document:e=z9}={}){if(!e)return U("visible");const t=U(e.visibilityState);return Dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var O0=Object.getOwnPropertySymbols,nW=Object.prototype.hasOwnProperty,rW=Object.prototype.propertyIsEnumerable,iW=(e,t)=>{var n={};for(var r in e)nW.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&O0)for(var r of O0(e))t.indexOf(r)<0&&rW.call(e,r)&&(n[r]=e[r]);return n};function aW(e,t,n={}){const r=n,{window:i=Hr}=r,a=iW(r,["window"]);let o;const s=kE(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=V(()=>Array.isArray(e)?e.map(p=>di(p)):[di(e)]),c=he(u,p=>{if(l(),s.value&&i){o=new ResizeObserver(t);for(const v of p)v&&o.observe(v,a)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return dv(d),{isSupported:s,stop:d}}function oW(e,t={width:0,height:0},n={}){const{window:r=Hr,box:i="content-box"}=n,a=V(()=>{var l,u;return(u=(l=di(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=U(t.width),s=U(t.height);return aW(e,([l])=>{const u=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&a.value){const c=di(e);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:p})=>d+p,0),s.value=c.reduce((d,{blockSize:p})=>d+p,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),he(()=>di(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}function UQ(e,t,n={}){const{window:r=Hr}=n;return Q9(e,t,r==null?void 0:r.localStorage,n)}const sW={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function lW(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=Hr,target:o=a,eventFilter:s}=e,l=U(i.x),u=U(i.y),c=U(null),d=typeof t=="function"?t:sW[t],p=g=>{const y=d(g);y&&([l.value,u.value]=y,c.value="mouse")},v=g=>{if(g.touches.length>0){const y=d(g.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=i.x,u.value=i.y},h=s?g=>s(()=>p(g),{}):g=>p(g),m=s?g=>s(()=>v(g),{}):g=>v(g);return o&&(Dn(o,"mousemove",h,{passive:!0}),Dn(o,"dragover",h,{passive:!0}),n&&t!=="movement"&&(Dn(o,"touchstart",m,{passive:!0}),Dn(o,"touchmove",m,{passive:!0}),r&&Dn(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function I0(e,t={}){const{handleOutside:n=!0,window:r=Hr}=t,{x:i,y:a,sourceType:o}=lW(t),s=U(e??(r==null?void 0:r.document.body)),l=U(0),u=U(0),c=U(0),d=U(0),p=U(0),v=U(0),f=U(!0);let h=()=>{};return r&&(h=he([s,i,a],()=>{const m=di(s);if(!m)return;const{left:g,top:y,width:b,height:_}=m.getBoundingClientRect();c.value=g+r.pageXOffset,d.value=y+r.pageYOffset,p.value=_,v.value=b;const C=i.value-c.value,S=a.value-d.value;f.value=b===0||_===0||C<0||S<0||C>b||S>_,(n||!f.value)&&(l.value=C,u.value=S)},{immediate:!0}),Dn(document,"mouseleave",()=>{f.value=!0})),{x:i,y:a,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:p,elementWidth:v,isOutside:f,stop:h}}/*!
- * pinia v2.1.3
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */let RE;const pc=e=>RE=e,FE=Symbol();function Dd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ho;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ho||(Ho={}));function uW(){const e=lp(!0),t=e.run(()=>U({}));let n=[],r=[];const i=Tu({install(a){pc(i),i._a=a,a.provide(FE,i),a.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(a){return!this._a&&!E9?r.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const DE=()=>{};function A0(e,t,n,r=DE){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&Su()&&up(i),i}function da(e,...t){e.slice().forEach(n=>{n(...t)})}const cW=e=>e();function Ld(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Dd(i)&&Dd(r)&&e.hasOwnProperty(n)&&!lt(r)&&!Br(r)?e[n]=Ld(i,r):e[n]=r}return e}const fW=Symbol();function dW(e){return!Dd(e)||!e.hasOwnProperty(fW)}const{assign:ni}=Object;function pW(e){return!!(lt(e)&&e.effect)}function hW(e,t,n,r){const{state:i,actions:a,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=i?i():{});const c=s_(n.state.value[e]);return ni(c,a,Object.keys(o||{}).reduce((d,p)=>(d[p]=Tu(V(()=>{pc(n);const v=n._s.get(e);return o[p].call(v,v)})),d),{}))}return l=LE(e,u,t,n,r,!0),l}function LE(e,t,n={},r,i,a){let o;const s=ni({actions:{}},n),l={deep:!0};let u,c,d=[],p=[],v;const f=r.state.value[e];!a&&!f&&(r.state.value[e]={}),U({});let h;function m(P){let x;u=c=!1,typeof P=="function"?(P(r.state.value[e]),x={type:Ho.patchFunction,storeId:e,events:v}):(Ld(r.state.value[e],P),x={type:Ho.patchObject,payload:P,storeId:e,events:v});const k=h=Symbol();Ke().then(()=>{h===k&&(u=!0)}),c=!0,da(d,x,r.state.value[e])}const g=a?function(){const{state:x}=n,k=x?x():{};this.$patch(R=>{ni(R,k)})}:DE;function y(){o.stop(),d=[],p=[],r._s.delete(e)}function b(P,x){return function(){pc(r);const k=Array.from(arguments),R=[],L=[];function B(I){R.push(I)}function j(I){L.push(I)}da(p,{args:k,name:P,store:C,after:B,onError:j});let D;try{D=x.apply(this&&this.$id===e?this:C,k)}catch(I){throw da(L,I),I}return D instanceof Promise?D.then(I=>(da(R,I),I)).catch(I=>(da(L,I),Promise.reject(I))):(da(R,D),D)}}const _={_p:r,$id:e,$onAction:A0.bind(null,p),$patch:m,$reset:g,$subscribe(P,x={}){const k=A0(d,P,x.detached,()=>R()),R=o.run(()=>he(()=>r.state.value[e],L=>{(x.flush==="sync"?c:u)&&P({storeId:e,type:Ho.direct,events:v},L)},ni({},l,x)));return k},$dispose:y},C=at(_);r._s.set(e,C);const S=r._a&&r._a.runWithContext||cW,w=r._e.run(()=>(o=lp(),S(()=>o.run(t))));for(const P in w){const x=w[P];if(lt(x)&&!pW(x)||Br(x))a||(f&&dW(x)&&(lt(x)?x.value=f[P]:Ld(x,f[P])),r.state.value[e][P]=x);else if(typeof x=="function"){const k=b(P,x);w[P]=k,s.actions[P]=x}}return ni(C,w),ni(ke(C),w),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:P=>{m(x=>{ni(x,P)})}}),r._p.forEach(P=>{ni(C,o.run(()=>P({store:C,app:r._a,pinia:r,options:s})))}),f&&a&&n.hydrate&&n.hydrate(C.$state,f),u=!0,c=!0,C}function vv(e,t,n){let r,i;const a=typeof t=="function";typeof e=="string"?(r=e,i=a?n:t):(i=e,r=e.id);function o(s,l){const u=ZO();return s=s||(u?tt(FE,null):null),s&&pc(s),s=RE,s._s.has(r)||(a?LE(r,t,i,s):hW(r,i,s)),s._s.get(r)}return o.$id=r,o}function vW(e){{e=ke(e);const t={};for(const n in e){const r=e[n];(lt(r)||Br(r))&&(t[n]=rn(e,n))}return t}}const gW=e=>pd({...e,name:typeof e.name=="string"?e.name:e.nameFallbackStr??""}),mW=e=>({...e,panes:e.panes.map(gW)}),io=vv("useGlobalStore",()=>{const e=U(),t=U([]),n=U(!0),r=U(512),i=U(fv.CREATED_TIME_DESC),a=U(256),o=U("auto"),s=()=>({type:"empty",name:Le("emptyStartPage"),key:_r()}),l=U([]);je(()=>{const w=s();l.value.push({panes:[w],key:w.key,id:_r()})});const u=U(),c=U(new Array),d=Date.now(),p=U(),v=()=>{var P;const w=ke(l.value).map(mW);((P=p.value)==null?void 0:P[0].time)!==d?p.value=[{tabs:w,time:d},...p.value??[]]:p.value[0].tabs=w,p.value=p.value.slice(0,2)},f=async(w,P,x)=>{let k=l.value.map(L=>L.panes).flat().find(L=>L.type==="tag-search-matched-image-grid"&&L.id===P);if(k){k.selectedTagIds=pd(x);return}else k={type:"tag-search-matched-image-grid",id:P,selectedTagIds:pd(x),key:_r(),name:Le("searchResults")};const R=l.value[w+1];R?(R.key=k.key,R.panes.push(k)):l.value.push({panes:[k],key:k.key,id:_r()})},h=U(Xx());he(h,w=>nv.global.locale.value=w);const m=U(!1),g=U({delete:"",download:""}),y=V(()=>{const w=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],P=t.value.filter(x=>w.includes(x.key)).map(x=>[x.zh,x.dir]);return Object.fromEntries(P)}),b=new Map,_=at({deleteOneOnly:!1}),C=eW();return{computedTheme:V(()=>{const w=()=>{try{return parent.location.search.includes("theme=dark")}catch{return!1}};return(o.value==="auto"?C.value||w():o.value==="dark")?"dark":"light"}),darkModeControl:o,defaultSortingMethod:i,defaultGridCellWidth:a,defaultChangeIndchecked:U(!0),defaultSeedChangeChecked:U(!1),pathAliasMap:y,createEmptyPane:s,lang:h,tabList:l,conf:e,quickMovePaths:t,enableThumbnail:n,dragingTab:u,saveRecord:v,recent:c,tabListHistoryRecord:p,gridThumbnailResolution:r,longPressOpenContextMenu:m,openTagSearchMatchedImageGridInRight:f,onlyFoldersAndImages:U(!0),keepMultiSelect:U(!1),fullscreenPreviewInitialUrl:U(""),shortcut:g,pageFuncExportMap:b,dontShowAgain:U(!1),dontShowAgainNewImgOpts:U(!1),ignoredConfirmActions:_}},{persist:{paths:["defaultChangeIndchecked","defaultSeedChangeChecked","darkModeControl","dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","shortcut","ignoredConfirmActions"]}}),$E=!!{}.TAURI_ARCH,HQ=window===parent,pi=encodeURIComponent,Va=(e,t=!1)=>`${ks.value}/file?path=${pi(e.fullpath)}&t=${pi(e.date)}${t?`&disposition=${pi(e.name)}`:""}`,M0=(e,t="512x512")=>`${ks.value}/image-thumbnail?path=${pi(e.fullpath)}&size=${t}&t=${pi(e.date)}`,WQ=e=>`${ks.value}/stream_video?path=${pi(e.fullpath)}`,KQ=e=>($E?"":parent.document.location.origin)+`${ks.value}/video_cover?path=${pi(e.fullpath)}&t=${pi(e.date)}`,yW=e=>typeof e=="object"&&e.__id==="FileTransferData",bW=e=>{var n;const t=JSON.parse(((n=e.dataTransfer)==null?void 0:n.getData("text"))??"{}");return yW(t)?t:null},GQ=e=>Qx(e,"fullpath");function BE(e){var r;if(typeof e!="string")return!1;const t=[".jpg",".jpeg",".png",".gif",".bmp",".webp"],n=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&t.includes(`.${n}`)}function _W(e){var r;if(typeof e!="string")return!1;const t=[".mp4",".avi",".mkv",".mov",".wmv",".flv",".ts"],n=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&t.includes(`.${n}`)}const VQ=e=>BE(e)||_W(e);function YQ(e){const t=document.createElement("a");t.style.display="none",document.body.appendChild(t),e.forEach(n=>{const r=new URL(n,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let i="";const a=r.searchParams.get("disposition");a&&(i=a),t.href=n,t.download=i,t.click()}),document.body.removeChild(t)}const qQ=(e,t)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:e},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${t??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()};function jE(){try{return parent.window.gradioApp()}catch{}const e=parent.document.getElementsByTagName("gradio-app"),t=e.length==0?null:e[0].shadowRoot;return t||document}const CW=()=>{const e=jE().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(e).findIndex(t=>t.id.includes("infinite-image-browsing"))},zE=()=>{try{jE().querySelector("#tabs").querySelectorAll("button")[CW()].click()}catch(e){console.error(e)}},wW=async(e,t=100,n=1e3)=>new Promise(r=>{const i=(a=0)=>{const o=e();o!=null||a>n/t?r(o):setTimeout(()=>i(++a),t)};i()}),UE=(e,...t)=>t.reduce((n,r)=>(n[r]=e==null?void 0:e[r],n),{}),HE=()=>at(new hs(-1,0,-1,"throw")),XQ=async(e,t)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(e);else{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}Hi.success(t??Le("copied"))}catch{Hi.error("copy failed. maybe it's non-secure environment")}},{useEventListen:$d,eventEmitter:gv}=Jx();function ZQ(e){let t=null,n=!1;return async function(...r){if(n)return t;n=!0;try{return t=e.apply(this,r),await t}finally{n=!1}}}function SW(e){const t=parent.location.href,n=new URLSearchParams(parent.location.search);e.forEach(i=>{n.delete(i)});const r=`${t.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const Bd=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=i=>n(i),r.src=e}),xW=e=>{try{return JSON.parse(e)}catch{return null}};function EW(e){return/^(?:\/|[a-z]:)/i.test(Ya(e))}function Ya(e){if(!e)return"";e=e.replace(/\\/g,"/"),e=e.replace(/\/+/g,"/");const t=e.split("/"),n=[];for(let a=0;a{const n=EW(e)?e:Ya(TW(t,e));return Ya(n)},JQ=e=>{e=Ya(e);const t=e.split("/").filter(n=>n);return t[0].endsWith(":")&&(t[0]=t[0]+"/"),t},N0=async({global_setting:e,sd_cwd:t,home:n,extra_paths:r,cwd:i})=>{const o={...UE(e,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save"),cwd:t,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(p=>{const v=p;if(o[v])try{o[v]=PW(o[v],t)}catch(f){console.error(f)}});const s=await w9(Object.values(o).filter(p=>p)),l={outdir_txt2img_samples:Le("t2i"),outdir_img2img_samples:Le("i2i"),outdir_save:Le("saveButtonSavesTo"),outdir_extras_samples:Le("extra"),outdir_grids:Le("gridImage"),outdir_img2img_grids:Le("i2i-grid"),outdir_samples:Le("image"),outdir_txt2img_grids:Le("t2i-grid"),cwd:Le("workingFolder"),home:"home",desktop:Le("desktop")},u={home:n,[Le("desktop")]:o.desktop,[Le("workingFolder")]:i,[Le("t2i")]:o.outdir_txt2img_samples,[Le("i2i")]:o.outdir_img2img_samples},c=p=>{p=Ya(p);const v=[];for(const[f,h]of Object.entries(u))f&&h&&v.push(p.replace(h,"$"+f));return v.sort((f,h)=>f.length-h.length)[0]},d=Object.keys(l).filter(p=>s[o[p]]).map(p=>{const v=p;return{key:v,zh:l[v],dir:o[v],can_delete:!1,types:["preset"]}}).concat(r.map(p=>({key:p.path,zh:p.alias||c(p.path),dir:p.path,can_delete:!0,types:p.types})));return Qx(d,p=>p.key+p.types.join())};const WE={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,i)=>(r.size=i===t?r.max:r.min,i!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),i),r);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=s.max<100&&a>=s.max+n.prevPanesSize,c=l.max<100&&a<=100-(l.max+this.sumNextPanesSize(t+1));if(u||c){u?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const d=this.doPushOtherPanes(n,a);if(!d)return;({sums:n,panesToResize:o}=d),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t{a>r[0]&&a<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,a)=>{a>0&&a<=n&&(i.size=i.min,e.prevReachedMinPanes+=i.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((i,a)=>{a>n&&a{a=n+1&&(i.size=i.min,e.nextReachedMinPanes+=i.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(rt+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=a=>this.onMouseDown(a,r),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=a=>this.onMouseDown(a,r)),i.onclick=a=>this.onSplitterClick(a,r+1)),this.dblClickSplitter&&(i.ondblclick=a=>this.onSplitterDblClick(a,r+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,i])=>n[r]=i)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&t++,i===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((i,a)=>i.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,i)=>r.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&r++,a.size>=a.max&&t.push(a.id),a.size<=a.min&&n.push(a.id)});let i=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-r),a.max),a.min)),i-=a.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const i=[],a=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&a.push(o.id)}),r>.1&&this.readjustSizes(r,i,a))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){const o=Math.max(Math.min(i.size+r,i.max),i.min),s=o-i.size;e-=s,i.size=o}else if(!n.includes(i.id)){const o=Math.max(Math.min(i.size+r,i.max),i.min),s=o-i.size;e-=s,i.size=o}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return vi("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},OW=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},IW={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function AW(e,t,n,r,i,a){return $e(),st("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>a.onPaneClick(o,e._.uid)),style:zr(e.style)},[jl(e.$slots,"default")],4)}const jd=OW(IW,[["render",AW]]);const MW={style:{position:"relative"}},NW=de({__name:"edgeTrigger",props:{tabIdx:{}},setup(e){const t=e,n=io(),r=U(),i=U(),{isOutside:a}=I0(i),{isOutside:o}=I0(r),s=V(()=>!a.value&&!!n.dragingTab),l=V(()=>!o.value&&!!n.dragingTab&&!s.value),u=(c,d)=>{var v,f,h,m;const p=xW(((v=c.dataTransfer)==null?void 0:v.getData("text"))??"{}");if(p&&(console.log("on-drop",d,p),(p==null?void 0:p.from)==="tab-drag")){if(c.stopPropagation(),n.dragingTab=void 0,d==="insert"&&p.tabIdx===t.tabIdx)return;const g=n.tabList,y=g[p.tabIdx].panes[p.paneIdx];g[p.tabIdx].panes.splice(p.paneIdx,1),d==="add-right"?(g[t.tabIdx].key=((f=g[t.tabIdx].panes[p.paneIdx-1])==null?void 0:f.key)??g[t.tabIdx].panes[0].key,g.splice(t.tabIdx+1,0,{panes:[y],key:y.key,id:_r()})):(g[p.tabIdx].key=((h=g[p.tabIdx].panes[p.paneIdx-1])==null?void 0:h.key)??((m=g[p.tabIdx].panes[0])==null?void 0:m.key),g[t.tabIdx].panes.push(y),g[t.tabIdx].key=y.key),g[p.tabIdx].panes.length===0&&g.splice(p.tabIdx,1)}};return(c,d)=>($e(),st("div",{class:xn(["wrap",{accept:l.value}]),ref_key:"trigger",ref:r,onDragover:d[2]||(d[2]=Zn(()=>{},["prevent"])),onDrop:d[3]||(d[3]=Zn(p=>u(p,"insert"),["prevent"]))},[pt("div",{class:xn(["trigger",{accept:s.value}]),ref_key:"edgeTrigger",ref:i,onDragover:d[0]||(d[0]=Zn(()=>{},["prevent"])),onDrop:d[1]||(d[1]=Zn(p=>u(p,"add-right"),["prevent"]))},null,34),pt("div",MW,[jl(c.$slots,"default",{},void 0,!0)])],34))}});const Rs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},kW=Rs(NW,[["__scopeId","data-v-0112d656"]]);const KE=vv("useImgSliStore",()=>{const e=U(!1),t=U(!1),n=U(!1),r=U(),i=U(),a=io(),o=V(()=>{var l;const s=a.tabList;for(const u of s)if(((l=u.panes.find(c=>c.key===u.key))==null?void 0:l.type)==="img-sli")return!0;return!1});return{drawerVisible:t,fileDragging:e,left:r,right:i,imgSliActived:o,opened:n}});var RW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const FW=RW;function k0(e){for(var t=1;t(h_("data-v-9c9e2710"),e=e(),v_(),e),BW={key:0,class:"dragging-port-wrap"},jW={class:"content"},zW={key:0,class:"img-wrap"},UW={key:1},HW=$W(()=>pt("div",{style:{padding:"16px"}},null,-1)),WW={key:0,class:"img-wrap"},KW={key:1},GW={key:0,class:"tips",style:{"max-width":"30vw"}},VW={class:"actions"},YW=de({__name:"DraggingPort",setup(e){const t=KE(),n=io(),{left:r,right:i}=vW(t),a=async(l,u)=>{const c=bW(l);if(c){const d=c.nodes[0];if(!BE(d.name))return;t[u]=d}},o=()=>{t.left=void 0,t.right=void 0,t.opened=!1},s=()=>{tE(r.value&&i.value);const l={type:"img-sli",left:r.value,right:i.value,name:`${Le("imgCompare")} ( ${r.value.name} vs ${i.value.name})`,key:_r()};n.tabList[0].panes.push(l),n.tabList[0].key=l.key};return(l,u)=>{const c=V5,d=zn;return $e(),Gt(or,null,{default:At(()=>[(Ee(t).fileDragging||Ee(r)||Ee(i)||Ee(t).opened)&&!Ee(t).imgSliActived?($e(),st("div",BW,[pt("h2",null,Sn(l.$t("imgCompare")),1),pt("div",jW,[pt("div",{class:"left port",onDragover:u[1]||(u[1]=Zn(()=>{},["prevent"])),onDrop:u[2]||(u[2]=Zn(p=>a(p,"left"),["prevent"]))},[Ee(r)?($e(),st("div",zW,[T(c,{src:Ee(M0)(Ee(r)),preview:{src:Ee(Va)(Ee(r))}},null,8,["src","preview"]),T(Ee(ns),{class:"close",onClick:u[0]||(u[0]=p=>r.value=void 0)})])):($e(),st("div",UW,Sn(l.$t("dragImageHere")),1))],32),HW,pt("div",{class:"right port",onDragover:u[4]||(u[4]=Zn(()=>{},["prevent"])),onDrop:u[5]||(u[5]=Zn(p=>a(p,"right"),["prevent"]))},[Ee(i)?($e(),st("div",WW,[T(c,{src:Ee(M0)(Ee(i)),preview:{src:Ee(Va)(Ee(i))}},null,8,["src","preview"]),T(Ee(ns),{class:"close",onClick:u[3]||(u[3]=p=>i.value=void 0)})])):($e(),st("div",KW,Sn(l.$t("dragImageHere")),1))],32)]),Ee(t).opened?($e(),st("p",GW," Tips: "+Sn(l.$t("imageCompareTips")),1)):mr("",!0),pt("div",VW,[Ee(r)&&Ee(i)?($e(),Gt(d,{key:0,type:"primary",onClick:u[6]||(u[6]=p=>Ee(t).drawerVisible=!0)},{default:At(()=>[Bn(Sn(l.$t("confirm")),1)]),_:1})):mr("",!0),Ee(r)&&Ee(i)?($e(),Gt(d,{key:1,type:"primary",onClick:s},{default:At(()=>[Bn(Sn(l.$t("confirm"))+"("+Sn(l.$t("openInNewTab"))+")",1)]),_:1})):mr("",!0),T(d,{style:{"margin-left":"16px"},onClick:o},{default:At(()=>[Bn(Sn(l.$t("close")),1)]),_:1})])])):mr("",!0)]),_:1})}}});const qW=Rs(YW,[["__scopeId","data-v-9c9e2710"]]),XW={class:"container"},ZW=["src"],JW=de({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(e){const t=e,n=Fd(async()=>UE(await Bd(Va(t.img)),"width","height")),r=V(()=>{let i="";const o=t.containerWidth;if(t.side==="left"?i=`calc(50% - ${(t.percent-50)/100*o}px)`:i=`calc(-50% - ${(t.percent-50)/100*o+4}px)`,t.maxEdge==="height")return`height:100%;transform: translate(${i}, -50%)`;{const s=n.value;return s?`height:${o/s.width*s.height}px;transform: translate(${i}, -50%)`:void 0}});return(i,a)=>($e(),st("div",XW,[pt("img",{class:xn(["img",[i.side]]),style:zr(r.value),src:Ee(Va)(i.img),onDragstart:a[0]||(a[0]=Zn(()=>{},["prevent","stop"]))},null,46,ZW)]))}});const R0=Rs(JW,[["__scopeId","data-v-1e5742ec"]]);var Wi={};let GE=class{constructor(t){if(QW(t))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=t,this.byteLength=this.buffer.length}getUint8(t){return this.buffer.readUInt8(t)}getUint16(t,n){return n?this.buffer.readUInt16LE(t):this.buffer.readUInt16BE(t)}getUint32(t,n){return n?this.buffer.readUInt32LE(t):this.buffer.readUInt32BE(t)}getInt32(t,n){return n?this.buffer.readInt32LE(t):this.buffer.readInt32BE(t)}};function QW(e){return typeof e!="object"||e.length===void 0||e.readUInt8===void 0||e.readUInt16LE===void 0||e.readUInt16BE===void 0||e.readUInt32LE===void 0||e.readUInt32BE===void 0||e.readInt32LE===void 0||e.readInt32BE===void 0}function F0(e,t,n){try{return new DataView(e,t,n)}catch{return new GE(e,t,n)}}function Me(e,t,n){const r=[];for(let i=0;iString.fromCharCode(t)).join("")}function We(){for(let e=1;et+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(e).toString("base64"):new Buffer(e).toString("base64")}function nK(e){const t=e.substring(e.indexOf(",")+1);if(e.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(t),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(t,"base64"):new Buffer(t,"base64");const n=decodeURIComponent(t);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function rK(e,t,n){return XE(n,t-e.length)+e}function iK(e,t){return parseInt(e.replace(".",""),t)/Math.pow(t,(e.split(".")[1]||"").length)}function XE(e,t){return new Array(t+1).join(e)}const du=void 0,ZE=0;function JE(e,t,n="string"){if(t===ZE&&typeof DecompressionStream=="function"){const r=new DecompressionStream("deflate"),i=new Blob([e]).stream().pipeThrough(r);return n==="dataview"?new Response(i).arrayBuffer().then(a=>new DataView(a)):new Response(i).text()}return t!==void 0?Promise.reject(`Unknown compression method ${t}.`):e}const D0={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_WEBP:!0,USE_GIF:!0};function Pt(e){return e.map(t=>String.fromCharCode(t)).join("")}function zd(e){if(e.length>=8){const t=Pt(e.slice(0,8));if(t==="ASCII\0\0\0")return Pt(e.slice(8));if(t==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(t==="UNICODE\0")return"[Unicode encoded text]";if(t==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function pu(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}const Ud=18761,Hd=19789,ia={BIG_ENDIAN:Hd,LITTLE_ENDIAN:Ud,getByteOrder:aK};function aK(e,t){if(e.getUint16(t)===Ud)return Ud;if(e.getUint16(t)===Hd)return Hd;throw new Error("Illegal byte order value. Faulty image.")}const L0={isTiffFile:oK,findTiffOffsets:lK};function oK(e){return!!e&&e.byteLength>=4&&sK(e)}function sK(e){const r=e.getUint16(0)===ia.LITTLE_ENDIAN;return e.getUint16(2,r)===42}function lK(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const $0={isJpegFile:xK,findJpegOffsets:EK},uK=2,cK=65496,B0=2,Wn=4,dn=2,fK=2,dK=10,pK=18,j0=33,z0=79,U0=18,hK=8,Wd="ICC_PROFILE\0",QE=Wn+Wd.length,vK=QE+1,H0="MPF\0",eT=65472,tT=65474,gK=65476,mK=65499,yK=65501,bK=65498,nT=65504,yv=65505,rT=65506,_K=65517,CK=65519,wK=65534,SK=65535,W0="JFIF",K0="Exif",G0="http://ns.adobe.com/xap/1.0/\0",V0="http://ns.adobe.com/xmp/extension/\0",Y0="Photoshop 3.0";function xK(e){return!!e&&e.byteLength>=uK&&e.getUint16(0)===cK}function EK(e){let t=B0,n,r,i,a,o,s,l,u,c;for(;t+Wn+5<=e.byteLength;){if(TK(e,t))r=t+dn;else if(PK(e,t))i=t+dn;else if(AK(e,t))n=e.getUint16(t+dn),a=t+fK;else if(MK(e,t))n=e.getUint16(t+dn),o=t+dK;else if(NK(e,t))l||(l=[]),n=e.getUint16(t+dn),l.push(DK(t,n));else if(RK(e,t))l||(l=[]),n=e.getUint16(t+dn),l.push(LK(t,n));else if($K(e,t))n=e.getUint16(t+dn),s=t+pK;else if(OK(e,t)){n=e.getUint16(t+dn);const d=t+U0,p=n-(U0-dn),v=e.getUint8(t+QE),f=e.getUint8(t+vK);u||(u=[]),u.push({offset:d,length:p,chunkNumber:v,chunksTotal:f})}else if(IK(e,t))n=e.getUint16(t+dn),c=t+hK;else if(BK(e,t))n=e.getUint16(t+dn);else if(jK(e,t)){t++;continue}else break;t+=dn+n}return{hasAppMarkers:t>B0,fileDataOffset:r||i,jfifDataOffset:a,tiffHeaderOffset:o,iptcDataOffset:s,xmpChunks:l,iccChunks:u,mpfDataOffset:c}}function TK(e,t){return e.getUint16(t)===eT}function PK(e,t){return e.getUint16(t)===tT}function OK(e,t){const n=Wd.length;return e.getUint16(t)===rT&&Me(e,t+Wn,n)===Wd}function IK(e,t){const n=H0.length;return e.getUint16(t)===rT&&Me(e,t+Wn,n)===H0}function AK(e,t){const n=W0.length;return e.getUint16(t)===nT&&Me(e,t+Wn,n)===W0&&e.getUint8(t+Wn+n)===0}function MK(e,t){const n=K0.length;return e.getUint16(t)===yv&&Me(e,t+Wn,n)===K0&&e.getUint8(t+Wn+n)===0}function NK(e,t){return e.getUint16(t)===yv&&kK(e,t)}function kK(e,t){const n=G0.length;return Me(e,t+Wn,n)===G0}function RK(e,t){return e.getUint16(t)===yv&&FK(e,t)}function FK(e,t){const n=V0.length;return Me(e,t+Wn,n)===V0}function DK(e,t){return{dataOffset:e+j0,length:t-(j0-dn)}}function LK(e,t){return{dataOffset:e+z0,length:t-(z0-dn)}}function $K(e,t){const n=Y0.length;return e.getUint16(t)===_K&&Me(e,t+Wn,n)===Y0&&e.getUint8(t+Wn+n)===0}function BK(e,t){const n=e.getUint16(t);return n>=nT&&n<=CK||n===wK||n===eT||n===tT||n===gK||n===mK||n===yK||n===bK}function jK(e,t){return e.getUint16(t)===SK}const q0={isPngFile:HK,findPngOffsets:WK},Kd=`PNG\r
-
-`,hu=4,Qn=4,Ca=0,Ci=hu,Kt=hu+Qn,Gd="XML:com.adobe.xmp\0",iT="tEXt",qi="iTXt",bv="zTXt",aT="pHYs",oT="tIME",zK="eXIf",UK="iCCP";function HK(e){return!!e&&Me(e,0,Kd.length)===Kd}function WK(e,t){const r={hasAppMarkers:!1};let i=Kd.length;for(;i+hu+Qn<=e.byteLength;){if(KK(e,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+Kt;else if(GK(e,i)){const a=ZK(e,i);a!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:a,length:e.getUint32(i+Ca)-(a-(i+Kt))}])}else if(VK(e,i,t)){r.hasAppMarkers=!0;const a=Me(e,i+Ci,Qn);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:e.getUint32(i+Ca),type:a,offset:i+Kt})}else if(YK(e,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+Kt;else if(t&&qK(e,i)){r.hasAppMarkers=!0;const a=e.getUint32(i+Ca),o=i+Kt,{profileName:s,compressionMethod:l,compressedProfileOffset:u}=JK(e,o);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:a-(u-o),chunkNumber:1,chunksTotal:1,profileName:s,compressionMethod:l})}else XK(e,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+Ca));i+=e.getUint32(i+Ca)+hu+Qn+4}return r}function KK(e,t){const n="IHDR";return Me(e,t+Ci,Qn)===n}function GK(e,t){return Me(e,t+Ci,Qn)===qi&&Me(e,t+Kt,Gd.length)===Gd}function VK(e,t,n){const r=Me(e,t+Ci,Qn);return r===iT||r===qi||r===bv&&n}function YK(e,t){return Me(e,t+Ci,Qn)===zK}function qK(e,t){return Me(e,t+Ci,Qn)===UK}function XK(e,t){const n=[aT,oT],r=Me(e,t+Ci,Qn);return n.includes(r)}function ZK(e,t){t+=Kt+Gd.length+1+1;let i=0;for(;i<2&&t=8&&Me(e,a+4,4)==="meta")return{offset:a,length:o};a+=o}return{offset:void 0,length:0}}function sT(e,t){const r=e.getUint32(t);return nG(r)?e.byteLength-t:rG(r)&&iG(e,t)?e.getUint32(t+12):r}function nG(e){return e===0}function rG(e){return e===1}function iG(e,t){return e.getUint32(t+8)===0}function aG(e,t,n){const a={ilocOffset:void 0,exifItemOffset:void 0,colrOffset:void 0};for(;t+4<=n&&(!a.ilocOffset||!a.exifItemOffset||!a.colrOffset);){const o=Me(e,t,4);o==="iloc"?a.ilocOffset=t:o==="Exif"?a.exifItemOffset=t+-4:o==="colr"&&(a.colrOffset=t+-4),t++}return a}function oG(e,t,n,r){if(!n||!t||t+2>r)return;const c=e.getUint16(t);for(n+=12;n+16<=r;){if(e.getUint16(n)===c){const p=e.getUint32(n+8);if(p+4<=e.byteLength){const f=e.getUint32(p)+4;return p+f}}n+=16}}function sG(e,t,n){if(!t||t+12>n)return;const o=Me(e,t+8,4);if(!(o!=="prof"&&o!=="rICC"))return[{offset:t+12,length:sT(e,t)-12,chunkNumber:1,chunksTotal:1}]}const Z0={isWebpFile:lG,findOffsets:uG};function lG(e){const n="RIFF",i="WEBP";return!!e&&Me(e,0,n.length)===n&&Me(e,8,i.length)===i}function uG(e){const r="Exif\0\0";let a=12,o=!1,s,l,u,c;for(;a+8Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2),ColorSpace(e){return e===1?"sRGB":e===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(e){return e.map(t=>{if(t===49)return"Y";if(t===50)return"Cb";if(t===51)return"Cr";if(t===52)return"R";if(t===53)return"G";if(t===54)return"B"}).join("")},Contrast(e){return e===0?"Normal":e===1?"Soft":e===2?"Hard":"Unknown"},CustomRendered(e){return e===0?"Normal process":e===1?"Custom process":"Unknown"},ExposureMode(e){return e===0?"Auto exposure":e===1?"Manual exposure":e===2?"Auto bracket":"Unknown"},ExposureProgram(e){return e===0?"Undefined":e===1?"Manual":e===2?"Normal program":e===3?"Aperture priority":e===4?"Shutter priority":e===5?"Creative program":e===6?"Action program":e===7?"Portrait mode":e===8?"Landscape mode":e===9?"Bulb":"Unknown"},ExposureTime(e){return e[0]>=e[1]?`${Math.round(e[0]/e[1])}`:e[0]!==0?`1/${Math.round(e[1]/e[0])}`:`0/${e[1]}`},FNumber:e=>`f/${e[0]/e[1]}`,FocalLength:e=>e[0]/e[1]+" mm",FocalPlaneResolutionUnit(e){return e===2?"inches":e===3?"centimeters":"Unknown"},LightSource:e=>e===1?"Daylight":e===2?"Fluorescent":e===3?"Tungsten (incandescent light)":e===4?"Flash":e===9?"Fine weather":e===10?"Cloudy weather":e===11?"Shade":e===12?"Daylight fluorescent (D 5700 – 7100K)":e===13?"Day white fluorescent (N 4600 – 5400K)":e===14?"Cool white fluorescent (W 3900 – 4500K)":e===15?"White fluorescent (WW 3200 – 3700K)":e===17?"Standard light A":e===18?"Standard light B":e===19?"Standard light C":e===20?"D55":e===21?"D65":e===22?"D75":e===23?"D50":e===24?"ISO studio tungsten":e===255?"Other light source":"Unknown",MeteringMode(e){return e===1?"Average":e===2?"CenterWeightedAverage":e===3?"Spot":e===4?"MultiSpot":e===5?"Pattern":e===6?"Partial":e===255?"Other":"Unknown"},ResolutionUnit(e){return e===2?"inches":e===3?"centimeters":"Unknown"},Saturation(e){return e===0?"Normal":e===1?"Low saturation":e===2?"High saturation":"Unknown"},SceneCaptureType(e){return e===0?"Standard":e===1?"Landscape":e===2?"Portrait":e===3?"Night scene":"Unknown"},Sharpness(e){return e===0?"Normal":e===1?"Soft":e===2?"Hard":"Unknown"},ShutterSpeedValue(e){const t=Math.pow(2,e[0]/e[1]);return t<=1?`${Math.round(1/t)}`:`1/${Math.round(t)}`},WhiteBalance(e){return e===0?"Auto white balance":e===1?"Manual white balance":"Unknown"},XResolution:e=>""+Math.round(e[0]/e[1]),YResolution:e=>""+Math.round(e[0]/e[1])},lT={11:"ProcessingSoftware",254:{name:"SubfileType",description:e=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[e]||"Unknown"},255:{name:"OldSubfileType",description:e=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[e]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:e=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[e]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:e=>({1:"Normal",2:"Reversed"})[e]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:e=>e===1?"top-left":e===2?"top-right":e===3?"bottom-right":e===4?"bottom-left":e===5?"left-top":e===6?"right-top":e===7?"right-bottom":e===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:De.XResolution},283:{name:"YResolution",description:De.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:e=>""+Math.round(e[0]/e[1])},287:{name:"YPosition",description:e=>""+Math.round(e[0]/e[1])},290:{name:"GrayResponseUnit",description:e=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[e]||"Unknown"},296:{name:"ResolutionUnit",description:De.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:e=>e.map(t=>`${t[0]}/${t[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:e=>e.map(t=>`${t[0]}/${t[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:e=>({1:"CMYK",2:"Not CMYK"})[e]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:e=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[e]||"Unknown"},339:{name:"SampleFormat",description:e=>{const t={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map(n=>t[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:e=>e.map(t=>""+t[0]/t[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:e=>e===1?"centered":e===2?"co-sited":"undefined "+e},532:{name:"ReferenceBlackWhite",description:e=>e.map(t=>""+t[0]/t[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:e=>e.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:e=>({0:"Unsafe",1:"Safe"})[e]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:De.LightSource},50779:{name:"CalibrationIlluminant2",description:De.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:e=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[e]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:e=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[e]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:e=>({0:"Linear",1:"sRGB"})[e]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:e=>({0:"Linear",1:"sRGB"})[e]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:e=>({0:"Auto",1:"None"})[e]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},gG={33434:{name:"ExposureTime",description:De.ExposureTime},33437:{name:"FNumber",description:De.FNumber},34850:{name:"ExposureProgram",description:De.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:e=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[e]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:e=>Pt(e)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:De.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:De.ShutterSpeedValue},37378:{name:"ApertureValue",description:De.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:e=>Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)},37382:{name:"SubjectDistance",description:e=>e[0]/e[1]+" m"},37383:{name:"MeteringMode",description:De.MeteringMode},37384:{name:"LightSource",description:De.LightSource},37385:{name:"Flash",description:e=>e===0?"Flash did not fire":e===1?"Flash fired":e===5?"Strobe return light not detected":e===7?"Strobe return light detected":e===9?"Flash fired, compulsory flash mode":e===13?"Flash fired, compulsory flash mode, return light not detected":e===15?"Flash fired, compulsory flash mode, return light detected":e===16?"Flash did not fire, compulsory flash mode":e===24?"Flash did not fire, auto mode":e===25?"Flash fired, auto mode":e===29?"Flash fired, auto mode, return light not detected":e===31?"Flash fired, auto mode, return light detected":e===32?"No flash function":e===65?"Flash fired, red-eye reduction mode":e===69?"Flash fired, red-eye reduction mode, return light not detected":e===71?"Flash fired, red-eye reduction mode, return light detected":e===73?"Flash fired, compulsory flash mode, red-eye reduction mode":e===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":e===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":e===89?"Flash fired, auto mode, red-eye reduction mode":e===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":e===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:De.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:e=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[e]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:e=>e.length===2?`Location; X: ${e[0]}, Y: ${e[1]}`:e.length===3?`Circle; X: ${e[0]}, Y: ${e[1]}, diameter: ${e[2]}`:e.length===4?`Rectangle; X: ${e[0]}, Y: ${e[1]}, width: ${e[2]}, height: ${e[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:zd},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:e=>e[0]/e[1]+" °C"},37889:{name:"Humidity",description:e=>e[0]/e[1]+" %"},37890:{name:"Pressure",description:e=>e[0]/e[1]+" hPa"},37891:{name:"WaterDepth",description:e=>e[0]/e[1]+" m"},37892:{name:"Acceleration",description:e=>e[0]/e[1]+" mGal"},37893:{name:"CameraElevationAngle",description:e=>e[0]/e[1]+" °"},40960:{name:"FlashpixVersion",description:e=>e.map(t=>String.fromCharCode(t)).join("")},40961:{name:"ColorSpace",description:De.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:De.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([e,t])=>`X: ${e}, Y: ${t}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:e=>e===1?"Undefined":e===2?"One-chip color area sensor":e===3?"Two-chip color area sensor":e===4?"Three-chip color area sensor":e===5?"Color sequential area sensor":e===7?"Trilinear sensor":e===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:e=>e===3?"DSC":"Unknown"},41729:{name:"SceneType",description:e=>e===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:De.CustomRendered},41986:{name:"ExposureMode",description:De.ExposureMode},41987:{name:"WhiteBalance",description:De.WhiteBalance},41988:{name:"DigitalZoomRatio",description:e=>e[0]===0?"Digital zoom was not used":""+e[0]/e[1]},41989:{name:"FocalLengthIn35mmFilm",description:e=>e===0?"Unknown":e},41990:{name:"SceneCaptureType",description:De.SceneCaptureType},41991:{name:"GainControl",description:e=>e===0?"None":e===1?"Low gain up":e===2?"High gain up":e===3?"Low gain down":e===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:De.Contrast},41993:{name:"Saturation",description:De.Saturation},41994:{name:"Sharpness",description:De.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:e=>e===1?"Macro":e===2?"Close view":e===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:e=>{const t=`${e[0][0]/e[0][1]}-${e[1][0]/e[1][1]} mm`;return e[3][1]===0?`${t} f/?`:`${t} f/${1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:e=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[e]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},mG={0:{name:"GPSVersionID",description:e=>e[0]===2&&e[1]===2&&e[2]===0&&e[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:e=>{const t=e.join("");return t==="N"?"North latitude":t==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:pu},3:{name:"GPSLongitudeRef",description:e=>{const t=e.join("");return t==="E"?"East longitude":t==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:pu},5:{name:"GPSAltitudeRef",description:e=>e===0?"Sea level":e===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:e=>e[0]/e[1]+" m"},7:{name:"GPSTimeStamp",description:e=>e.map(([t,n])=>{const r=t/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:e=>{const t=e.join("");return t==="A"?"Measurement in progress":t==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:e=>{const t=e.join("");return t==="2"?"2-dimensional measurement":t==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:e=>{const t=e.join("");return t==="K"?"Kilometers per hour":t==="M"?"Miles per hour":t==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:e=>{const t=e.join("");return t==="T"?"True direction":t==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:e=>{const t=e.join("");return t==="T"?"True direction":t==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:e=>{const t=e.join("");return t==="N"?"North latitude":t==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:e=>e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:e=>{const t=e.join("");return t==="E"?"East longitude":t==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:e=>e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600},23:{name:"GPSDestBearingRef",description:e=>{const t=e.join("");return t==="T"?"True direction":t==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:e=>{const t=e.join("");return t==="K"?"Kilometers":t==="M"?"Miles":t==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:zd},28:{name:"GPSAreaInformation",description:zd},29:"GPSDateStamp",30:{name:"GPSDifferential",description:e=>e===0?"Measurement without differential correction":e===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},yG={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:e=>Pt(e)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},bG={45056:{name:"MPFVersion",description:e=>Pt(e)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},Q0=We({},lT,gG),_v="0th",uT="1st",cT="exif",fT="gps",dT="interoperability",pT="mpf",ei={[_v]:Q0,[uT]:lT,[cT]:Q0,[fT]:mG,[dT]:yG,[pT]:bG},hT={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},Vd={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},be={getAsciiValue:_G,getByteAt:vT,getAsciiAt:CG,getShortAt:wG,getLongAt:vu,getRationalAt:SG,getUndefinedAt:xG,getSlongAt:Yd,getSrationalAt:EG,getIfdPointerAt:TG,typeSizes:hT,tagTypes:Vd,getTypeSize:PG};function _G(e){return e.map(t=>String.fromCharCode(t))}function vT(e,t){return e.getUint8(t)}function CG(e,t){return e.getUint8(t)}function wG(e,t,n){return e.getUint16(t,n===ia.LITTLE_ENDIAN)}function vu(e,t,n){return e.getUint32(t,n===ia.LITTLE_ENDIAN)}function SG(e,t,n){return[vu(e,t,n),vu(e,t+4,n)]}function xG(e,t){return vT(e,t)}function Yd(e,t,n){return e.getInt32(t,n===ia.LITTLE_ENDIAN)}function EG(e,t,n){return[Yd(e,t,n),Yd(e,t+4,n)]}function TG(e,t,n){return vu(e,t,n)}function PG(e){if(Vd[e]===void 0)throw new Error("No such type found.");return hT[Vd[e]]}const OG={1:be.getByteAt,2:be.getAsciiAt,3:be.getShortAt,4:be.getLongAt,5:be.getRationalAt,7:be.getUndefinedAt,9:be.getSlongAt,10:be.getSrationalAt,13:be.getIfdPointerAt};function gT(e,t,n){return t+be.getLongAt(e,t+4,n)}function ao(e,t,n,r,i,a){const o=be.getTypeSize("SHORT"),s=12,l={},u=IG(e,r,i);r+=o;for(let c=0;ce.byteLength);c++){const d=AG(e,t,n,r,i,a);d!==void 0&&(l[d.name]={id:d.id,value:d.value,description:d.description}),r+=s}if(rdecodeURIComponent(escape(t)))}catch{return e}}function t1(e){return e instanceof Array?e.join(", "):e}const n1="Exif IFD Pointer",r1="GPS Info IFD Pointer",i1="Interoperability IFD Pointer",mT={read:FG};function FG(e,t,n){const r=ia.getByteOrder(e,t);let i=DG(e,t,r,n);return i=LG(i,e,t,r,n),i=$G(i,e,t,r,n),i=BG(i,e,t,r,n),i}function DG(e,t,n,r){return ao(e,_v,t,gT(e,t,n),n,r)}function LG(e,t,n,r,i){return e[n1]!==void 0?We(e,ao(t,cT,n,n+e[n1].value,r,i)):e}function $G(e,t,n,r,i){return e[r1]!==void 0?We(e,ao(t,fT,n,n+e[r1].value,r,i)):e}function BG(e,t,n,r,i){return e[i1]!==void 0?We(e,ao(t,dT,n,n+e[i1].value,r,i)):e}const jG={read:zG},wa=16;function zG(e,t,n){const r=ia.getByteOrder(e,t),i=ao(e,pT,t,gT(e,t,r),r,n);return UG(e,t,i,r)}function UG(e,t,n,r){if(!n.MPEntry)return n;const i=[];for(let a=0;a>31&1,e>>30&1,e>>29&1],n=[];return t[0]&&n.push("Dependent Parent Image"),t[1]&&n.push("Dependent Child Image"),t[2]&&n.push("Representative Image"),{value:t,description:n.join(", ")||"None"}}function WG(e){const t=e>>24&7;return{value:t,description:t===0?"JPEG":"Unknown"}}function KG(e){const t=e&16777215;return{value:t,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[t]||"Unknown"}}function GG(e,t,n,r){return VG(e)?0:Ao(t.value,e*wa+8,be.getTypeSize("LONG"),n)+r}function VG(e){return e===0}const YG={read:qG};function qG(e,t){const n=XG(e,t),r=eV(e,t,n);return{"Bits Per Sample":ZG(e,t,n),"Image Height":JG(e,t,n),"Image Width":QG(e,t,n),"Color Components":r,Subsampling:r&&tV(e,t,r.value,n)}}function XG(e,t){return be.getShortAt(e,t)}function ZG(e,t,n){if(2+1>n)return;const a=be.getByteAt(e,t+2);return{value:a,description:""+a}}function JG(e,t,n){if(3+2>n)return;const a=be.getShortAt(e,t+3);return{value:a,description:`${a}px`}}function QG(e,t,n){if(5+2>n)return;const a=be.getShortAt(e,t+5);return{value:a,description:`${a}px`}}function eV(e,t,n){if(7+1>n)return;const a=be.getByteAt(e,t+7);return{value:a,description:""+a}}function tV(e,t,n,r){if(8+3*n>r)return;const o=[];for(let s=0;s1?nV(o)+rV(o):""}}function nV(e){const t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map(n=>t[n[0]]).join("")}function rV(e){const t={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return e.length===0||e[0][1]===void 0||t[e[0][1]]===void 0?"":t[e[0][1]]}const iV={read:aV};function aV(e,t){const n=oV(e,t),r=dV(e,t,n),i=pV(e,t,n),a={"JFIF Version":sV(e,t,n),"Resolution Unit":lV(e,t,n),XResolution:cV(e,t,n),YResolution:fV(e,t,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const o=hV(e,t,3*r.value*i.value,n);o&&(a["JFIF Thumbnail"]=o)}for(const o in a)a[o]===void 0&&delete a[o];return a}function oV(e,t){return be.getShortAt(e,t)}function sV(e,t,n){if(7+2>n)return;const a=be.getByteAt(e,t+7),o=be.getByteAt(e,t+7+1);return{value:a*256+o,description:a+"."+o}}function lV(e,t,n){if(9+1>n)return;const a=be.getByteAt(e,t+9);return{value:a,description:uV(a)}}function uV(e){return e===0?"None":e===1?"inches":e===2?"cm":"Unknown"}function cV(e,t,n){if(10+2>n)return;const a=be.getShortAt(e,t+10);return{value:a,description:""+a}}function fV(e,t,n){if(12+2>n)return;const a=be.getShortAt(e,t+12);return{value:a,description:""+a}}function dV(e,t,n){if(14+1>n)return;const a=be.getByteAt(e,t+14);return{value:a,description:`${a}px`}}function pV(e,t,n){if(15+1>n)return;const a=be.getByteAt(e,t+15);return{value:a,description:`${a}px`}}function hV(e,t,n,r){return n===0||16+n>r?void 0:{value:e.buffer.slice(t+16,t+16+n),description:"<24-bit RGB pixel data>"}}const si={iptc:{256:{name:"Model Version",description:e=>((e[0]<<8)+e[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:e=>((e[0]<<8)+e[1]).toString()},278:{name:"File Format Version",description:e=>((e[0]<<8)+e[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:df},336:{name:"Time Sent",description:pf},346:{name:"Coded Character Set",description:a1,encoding_name:a1},356:"UNO",376:{name:"ARM Identifier",description:e=>((e[0]<<8)+e[1]).toString()},378:{name:"ARM Version",description:e=>((e[0]<<8)+e[1]).toString()},512:{name:"Record Version",description:e=>((e[0]<<8)+e[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:e=>Pt(e)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:e=>{const t=Pt(e).split(":");return t[2]+(t[3]?"/"+t[3]:"")+(t[4]?"/"+t[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:e=>{const t=Pt(e);return t==="01"?"Object Kill":t==="02"?"Object Replace":t==="03"?"Object Append":t==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:df},572:{name:"Time Created",description:pf},574:{name:"Digital Creation Date",description:df},575:{name:"Digital Creation Time",description:pf},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:e=>{const t=Pt(e);return t==="a"?"morning":t==="p"?"evening":t==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:e=>e},642:"Image Type",643:{name:"Image Orientation",description:e=>{const t=Pt(e);return t==="P"?"Portrait":t==="L"?"Landscape":t==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:e=>{const t=Pt(e),n=t.charAt(0),r=t.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:t}},663:{name:"Audio Sampling Rate",description:e=>parseInt(Pt(e),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:e=>{const t=parseInt(Pt(e),10);return t+(t===1?" bit":" bits")}},665:{name:"Audio Duration",description:e=>{const t=Pt(e);return t.length>=6?t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2):t}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:e=>e.length===2?"ObjectData Preview File Format":"Record 2 destination",description:e=>{if(e.length===2){const t=(e[0]<<8)+e[1];return t===0?"No ObjectData":t===1?"IPTC-NAA Digital Newsphoto Parameter Record":t===2?"IPTC7901 Recommended Message Format":t===3?"Tagged Image File Format (Adobe/Aldus Image data)":t===4?"Illustrator (Adobe Graphics data)":t===5?"AppleSingle (Apple Computer Inc)":t===6?"NAA 89-3 (ANPA 1312)":t===7?"MacBinary II":t===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":t===9?"United Press International ANPA 1312 variant":t===10?"United Press International Down-Load Message":t===11?"JPEG File Interchange (JFIF)":t===12?"Photo-CD Image-Pac (Eastman Kodak)":t===13?"Microsoft Bit Mapped Graphics File [*.BMP]":t===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":t===15?"Audio plus Moving Video [*.AVI] (Microsoft)":t===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":t===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":t===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":t===19?"RIFF Wave (Microsoft Corporation)":t===20?"Freehand (Macromedia/Aldus)":t===21?'Hypertext Markup Language "HTML" (The Internet Society)':t===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":t===23?"MPEG 2 Audio Layer 3, ISO/IEC":t===24?"Portable Document File (*.PDF) Adobe":t===25?"News Industry Text Format (NITF)":t===26?"Tape Archive (*.TAR)":t===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":t===28?"Ritzaus Bureau NITF version (RBNITF DTD)":t===29?"Corel Draw [*.CDR]":`Unknown format ${t}`}return Pt(e)}},713:{name:"ObjectData Preview File Format Version",description:(e,t)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=Pt(e);if(t["ObjectData Preview File Format"]){const i=Pt(t["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:e=>e[0].toString()},1812:{name:"Max Subfile Size",description:e=>{let t=0;for(let n=0;n{let t=0;for(let n=0;n{let t=0;for(let n=0;n=8?t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2):t}function pf(e){const t=Pt(e);let n=t;return t.length>=6&&(n=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2),t.length===11&&(n+=t.substr(6,1)+t.substr(7,2)+":"+t.substr(9,2))),n}function a1(e){const t=Pt(e);return t==="\x1B%G"?"UTF-8":t==="\x1B%5"?"Windows-1252":t==="\x1B%/G"?"UTF-8 Level 1":t==="\x1B%/H"?"UTF-8 Level 2":t==="\x1B%/I"?"UTF-8 Level 3":t==="\x1B/A"?"ISO-8859-1":t==="\x1B/B"?"ISO-8859-2":t==="\x1B/C"?"ISO-8859-3":t==="\x1B/D"?"ISO-8859-4":t==="\x1B/@"?"ISO-8859-5":t==="\x1B/G"?"ISO-8859-6":t==="\x1B/F"?"ISO-8859-7":t==="\x1B/H"?"ISO-8859-8":"Unknown"}const vV={get:gV};function gV(){if(typeof TextDecoder<"u")return TextDecoder}const mV=5,yT={decode:yV,TAG_HEADER_SIZE:mV};function yV(e,t){const n=vV.get();if(typeof n<"u"&&e!==void 0)try{return new n(e).decode(t instanceof DataView?t.buffer:Uint8Array.from(t))}catch{}const r=t.map(i=>String.fromCharCode(i)).join("");return bV(r)}function bV(e){try{return decodeURIComponent(escape(e))}catch{return e}}const _V=943868237,bT=4,hf=bT+8,CV=1028,_T=5,qd={read:wV};function wV(e,t,n){try{if(Array.isArray(e))return o1(new DataView(Uint8Array.from(e).buffer),{size:e.length},0,n);const{naaBlock:r,dataOffset:i}=SV(e,t);return o1(e,r,i,n)}catch{return{}}}function SV(e,t){for(;t+hf<=e.byteLength;){const n=xV(e,t);if(EV(n))return{naaBlock:n,dataOffset:t+hf};t+=hf+n.size+TV(n)}throw new Error("No IPTC NAA resource block.")}function xV(e,t){if(e.getUint32(t,!1)!==_V)throw new Error("Not an IPTC resource block.");return{type:e.getUint16(t+bT),size:e.getUint16(t+10)}}function EV(e){return e.type===CV}function TV(e){return e.size%2!==0?1:0}function o1(e,t,n,r){const i={};let a;const o=n+t.size;for(;nDe.ResolutionUnit(parseInt(e,10)),"tiff:XResolution":e=>ha(De.XResolution,e),"tiff:YResolution":e=>ha(De.YResolution,e),"exif:ApertureValue":e=>ha(De.ApertureValue,e),"exif:GPSLatitude":s1,"exif:GPSLongitude":s1,"exif:FNumber":e=>ha(De.FNumber,e),"exif:FocalLength":e=>ha(De.FocalLength,e),"exif:FocalPlaneResolutionUnit":e=>De.FocalPlaneResolutionUnit(parseInt(e,10)),"exif:ColorSpace":e=>De.ColorSpace($V(e)),"exif:ComponentsConfiguration"(e,t){if(/^\d, \d, \d, \d$/.test(t)){const n=t.split(", ").map(r=>r.charCodeAt(0));return De.ComponentsConfiguration(n)}return t},"exif:Contrast":e=>De.Contrast(parseInt(e,10)),"exif:CustomRendered":e=>De.CustomRendered(parseInt(e,10)),"exif:ExposureMode":e=>De.ExposureMode(parseInt(e,10)),"exif:ExposureProgram":e=>De.ExposureProgram(parseInt(e,10)),"exif:ExposureTime"(e){return CT(e)?De.ExposureTime(e.split("/").map(t=>parseInt(t,10))):e},"exif:MeteringMode":e=>De.MeteringMode(parseInt(e,10)),"exif:Saturation":e=>De.Saturation(parseInt(e,10)),"exif:SceneCaptureType":e=>De.SceneCaptureType(parseInt(e,10)),"exif:Sharpness":e=>De.Sharpness(parseInt(e,10)),"exif:ShutterSpeedValue":e=>ha(De.ShutterSpeedValue,e),"exif:WhiteBalance":e=>De.WhiteBalance(parseInt(e,10))};function ha(e,t){return CT(t)?e(t.split("/")):t}function $V(e){return e.substring(0,2)==="0x"?parseInt(e.substring(2),16):parseInt(e,10)}function CT(e){return/^-?\d+\/-?\d+$/.test(e)}function s1(e){const[t,n]=e.split(",");if(t!==void 0&&n!==void 0){const r=parseFloat(t),i=parseFloat(n),a=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+a}return e}const BV={get:jV};function jV(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const l1={read:zV};function zV(e,t){const n={};if(typeof e=="string")return vl(n,e),n;const[r,i]=UV(e,t),a=vl(n,r);if(i){const o=vl(n,i);!a&&!o&&(delete n._raw,vl(n,Xd(e,t)))}return n}function UV(e,t){if(t.length===0)return[];const n=[Xd(e,t.slice(0,1))];return t.length>1&&n.push(Xd(e,t.slice(1))),n}function Xd(e,t){const n=t.reduce((a,o)=>a+o.length,0),r=new Uint8Array(n);let i=0;for(let a=0;a).+$/,"$1")}function wT(e){for(let t=0;t{if(qV(n)){const r=XV(n);t[n.nodeName]!==void 0?(Array.isArray(t[n.nodeName])||(t[n.nodeName]=[t[n.nodeName]]),t[n.nodeName].push(r)):t[n.nodeName]=r}}),t}function qV(e){return e.nodeName&&e.nodeName!=="#text"}function XV(e){return{attributes:ZV(e),value:ST(e)}}function ZV(e){const t={};for(let n=0;n{We(t,Cv(i.attributes)),typeof i.value=="object"&&We(t,ET(i.value))})}return t}function Cv(e){const t={};for(const n in e)try{JV(n)&&(t[vc(n)]={value:e[n],attributes:{},description:Wr(e[n],n)})}catch{}return t}function JV(e){return e!=="rdf:parseType"&&!hc(e)}function hc(e){return e.split(":")[0]==="xmlns"}function vc(e){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(e)?"RatingPercent":e.split(":")[1]}function Wr(e,t=void 0){if(Array.isArray(e)){const n=QV(e);return t&&typeof hl[t]=="function"?hl[t](e,n):n}if(typeof e=="object")return eY(e);try{return t&&typeof hl[t]=="function"?hl[t](e):decodeURIComponent(escape(e))}catch{return e}}function QV(e){return e.map(t=>t.value!==void 0?Wr(t.value):Wr(t)).join(", ")}function eY(e){const t=[];for(const n in e)t.push(`${tY(n)}: ${Wr(e[n].value)}`);return t.join("; ")}function tY(e){return e==="CiAdrCity"?"CreatorCity":e==="CiAdrCtry"?"CreatorCountry":e==="CiAdrExtadr"?"CreatorAddress":e==="CiAdrPcode"?"CreatorPostalCode":e==="CiAdrRegion"?"CreatorRegion":e==="CiEmailWork"?"CreatorWorkEmail":e==="CiTelWork"?"CreatorWorkPhone":e==="CiUrlWork"?"CreatorWorkUrl":e}function ET(e){const t={};for(const n in e)try{hc(n)||(t[vc(n)]=nY(e[n],n))}catch{}return t}function nY(e,t){return iY(e)?aY(e,t):rY(e)?{value:"",attributes:{},description:""}:TT(e)?PT(e,t):OT(e)?IT(e,t):AT(e)?MT(e,t):lY(e)?uY(e,t):wv(e,t)}function rY(e){return e.attributes["rdf:parseType"]==="Resource"&&typeof e.value=="string"&&e.value.trim()===""}function iY(e){return Array.isArray(e)}function aY(e,t){return wv(e[e.length-1],t)}function TT(e){return e.attributes["rdf:parseType"]==="Resource"&&e.value["rdf:value"]!==void 0||e.value["rdf:Description"]!==void 0&&e.value["rdf:Description"].value["rdf:value"]!==void 0}function PT(e,t){const n=gs(e);e.value["rdf:Description"]!==void 0&&(e=e.value["rdf:Description"]),We(n,gs(e),oY(e));const r=sY(e);return{value:r,attributes:n,description:Wr(r,t)}}function gs(e){const t={};for(const n in e.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!hc(n)&&(t[vc(n)]=e.attributes[n]);return t}function oY(e){const t={};for(const n in e.value)n!=="rdf:value"&&!hc(n)&&(t[vc(n)]=e.value[n].value);return t}function sY(e){return kT(e.value["rdf:value"])||e.value["rdf:value"].value}function OT(e){return e.attributes["rdf:parseType"]==="Resource"||e.value["rdf:Description"]!==void 0&&e.value["rdf:Description"].value["rdf:value"]===void 0}function IT(e,t){const n={value:{},attributes:{}};return e.value["rdf:Description"]!==void 0&&(We(n.value,Cv(e.value["rdf:Description"].attributes)),We(n.attributes,gs(e)),e=e.value["rdf:Description"]),We(n.value,ET(e.value)),n.description=Wr(n.value,t),n}function AT(e){return Object.keys(e.value).length===0&&e.attributes["xml:lang"]===void 0&&e.attributes["rdf:resource"]===void 0}function MT(e,t){const n=Cv(e.attributes);return{value:n,attributes:{},description:Wr(n,t)}}function lY(e){return NT(e.value)!==void 0}function NT(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function uY(e,t){let n=NT(e.value).value["rdf:li"];const r=gs(e),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(a=>{i.push(cY(a))}),{value:i,attributes:r,description:Wr(i,t)}}function cY(e){return TT(e)?PT(e):OT(e)?IT(e).value:AT(e)?MT(e).value:wv(e)}function wv(e,t){const n=kT(e)||xT(e.value);return{value:n,attributes:gs(e),description:Wr(n,t)}}function kT(e){return e.attributes&&e.attributes["rdf:resource"]}const Rr={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},RT=24,vf={2e3:{name:"PathInformation",description:fY},2999:{name:"ClippingPathName",description(e){const[,t]=VE(e,0);return t}}};function fY(e){const n={},r=[];for(let i=0;i[be.getShortAt(e,t)]},[Rr.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:gl},[Rr.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:gl},[Rr.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(e,t)=>[be.getShortAt(e,t)]},[Rr.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:gl},[Rr.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:gl},[Rr.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Rr.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(e,t)=>[be.getShortAt(e,t)]},[Rr.CLIPBOARD]:{description:"Clipboard",path:pY}};function gl(e,t){const r=[];for(let i=0;i/g,c=/\n/g,d=0;d");switch(p){case r:o[d]=''+f+"";break;case n:o[d]=''+f+"";break;case i:o[d]=""+f+"";break}}return o.join("")},t.prototype.diff_text1=function(a){for(var o=[],s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(o),u=this;function c(x,k){var R=x/o.length,L=Math.abs(s-k);return u.Match_Distance?R+L/u.Match_Distance:L?1:R}var d=this.Match_Threshold,p=a.indexOf(o,s);p!=-1&&(d=Math.min(c(0,p),d),p=a.lastIndexOf(o,s+o.length),p!=-1&&(d=Math.min(c(0,p),d)));var v=1<=b;S--){var w=l[a.charAt(S-1)];if(y===0?C[S]=(C[S+1]<<1|1)&w:C[S]=(C[S+1]<<1|1)&w|((g[S+1]|g[S])<<1|1)|g[S+1],C[S]&v){var P=c(y,S-1);if(P<=d)if(d=P,p=S-1,p>s)b=Math.max(1,2*s-p);else break}}if(c(y+1,s)>d)break;g=C}return p},t.prototype.match_alphabet_=function(a){for(var o={},s=0;s"u")l=a,u=this.diff_main(l,o,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(a&&typeof a=="object"&&typeof o>"u"&&typeof s>"u")u=a,l=this.diff_text1(u);else if(typeof a=="string"&&o&&typeof o=="object"&&typeof s>"u")l=a,u=o;else if(typeof a=="string"&&typeof o=="string"&&s&&typeof s=="object")l=a,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new t.patch_obj,p=0,v=0,f=0,h=l,m=l,g=0;g=2*this.Patch_Margin&&p&&(this.patch_addContext_(d,h),c.push(d),d=new t.patch_obj,p=0,h=m,v=f);break}y!==r&&(v+=b.length),y!==n&&(f+=b.length)}return p&&(this.patch_addContext_(d,h),c.push(d)),c},t.prototype.patch_deepCopy=function(a){for(var o=[],s=0;sthis.Match_MaxBits?(v=this.match_main(o,p.substring(0,this.Match_MaxBits),d),v!=-1&&(f=this.match_main(o,p.substring(p.length-this.Match_MaxBits),d+p.length-this.Match_MaxBits),(f==-1||v>=f)&&(v=-1))):v=this.match_main(o,p,d),v==-1)u[c]=!1,l-=a[c].length2-a[c].length1;else{u[c]=!0,l=v-d;var h;if(f==-1?h=o.substring(v,v+p.length):h=o.substring(v,f+this.Match_MaxBits),p==h)o=o.substring(0,v)+this.diff_text2(a[c].diffs)+o.substring(v+p.length);else{var m=this.diff_main(p,h,!1);if(p.length>this.Match_MaxBits&&this.diff_levenshtein(m)/p.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var g=0,y,b=0;bc[0][1].length){var d=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=a[a.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,s)),u.length1+=o,u.length2+=o;else if(o>c[c.length-1][1].length){var d=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},t.prototype.patch_splitMax=function(a){for(var o=this.Match_MaxBits,s=0;s2*o?(p.length1+=h.length,u+=h.length,v=!1,p.diffs.push(new t.Diff(f,h)),l.diffs.shift()):(h=h.substring(0,o-p.length1-this.Patch_Margin),p.length1+=h.length,u+=h.length,f===i?(p.length2+=h.length,c+=h.length):v=!1,p.diffs.push(new t.Diff(f,h)),h==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(h.length))}d=this.diff_text2(p.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);m!==""&&(p.length1+=m.length,p.length2+=m.length,p.diffs.length!==0&&p.diffs[p.diffs.length-1][0]===i?p.diffs[p.diffs.length-1][1]+=m:p.diffs.push(new t.Diff(i,m))),v||a.splice(++s,0,p)}}},t.prototype.patch_toText=function(a){for(var o=[],s=0;s/g,">").replace(/"/g,""").replace(/'/g,"'")}function li(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const cZ="",F1=e=>!!e.kind,fZ=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class dZ{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=XT(t)}openNode(t){if(!F1(t))return;let n=t.kind;t.sublanguage?n=`language-${n}`:n=fZ(n,{prefix:this.classPrefix}),this.span(n)}closeNode(t){F1(t)&&(this.buffer+=cZ)}value(){return this.buffer}span(t){this.buffer+=``}}class Ov{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n={kind:t,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{Ov._collapse(n)}))}}class pZ extends Ov{constructor(t){super(),this.options=t}addKeyword(t,n){t!==""&&(this.openNode(n),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,n){const r=t.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new dZ(this,this.options).value()}finalize(){return!0}}function ms(e){return e?typeof e=="string"?e:e.source:null}function ZT(e){return aa("(?=",e,")")}function hZ(e){return aa("(?:",e,")*")}function vZ(e){return aa("(?:",e,")?")}function aa(...e){return e.map(n=>ms(n)).join("")}function gZ(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Iv(...e){return"("+(gZ(e).capture?"":"?:")+e.map(r=>ms(r)).join("|")+")"}function JT(e){return new RegExp(e.toString()+"|").exec("").length-1}function mZ(e,t){const n=e&&e.exec(t);return n&&n.index===0}const yZ=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Av(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let a=ms(r),o="";for(;a.length>0;){const s=yZ.exec(a);if(!s){o+=a;break}o+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+i):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const bZ=/\b\B/,QT="[a-zA-Z]\\w*",Mv="[a-zA-Z_]\\w*",eP="\\b\\d+(\\.\\d+)?",tP="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",nP="\\b(0b[01]+)",_Z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",CZ=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=aa(t,/.*\b/,e.binary,/\b.*/)),li({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},ys={begin:"\\\\[\\s\\S]",relevance:0},wZ={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ys]},SZ={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ys]},xZ={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},mc=function(e,t,n={}){const r=li({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Iv("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:aa(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},EZ=mc("//","$"),TZ=mc("/\\*","\\*/"),PZ=mc("#","$"),OZ={scope:"number",begin:eP,relevance:0},IZ={scope:"number",begin:tP,relevance:0},AZ={scope:"number",begin:nP,relevance:0},MZ={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[ys,{begin:/\[/,end:/\]/,relevance:0,contains:[ys]}]}]},NZ={scope:"title",begin:QT,relevance:0},kZ={scope:"title",begin:Mv,relevance:0},RZ={begin:"\\.\\s*"+Mv,relevance:0},FZ=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var yl=Object.freeze({__proto__:null,MATCH_NOTHING_RE:bZ,IDENT_RE:QT,UNDERSCORE_IDENT_RE:Mv,NUMBER_RE:eP,C_NUMBER_RE:tP,BINARY_NUMBER_RE:nP,RE_STARTERS_RE:_Z,SHEBANG:CZ,BACKSLASH_ESCAPE:ys,APOS_STRING_MODE:wZ,QUOTE_STRING_MODE:SZ,PHRASAL_WORDS_MODE:xZ,COMMENT:mc,C_LINE_COMMENT_MODE:EZ,C_BLOCK_COMMENT_MODE:TZ,HASH_COMMENT_MODE:PZ,NUMBER_MODE:OZ,C_NUMBER_MODE:IZ,BINARY_NUMBER_MODE:AZ,REGEXP_MODE:MZ,TITLE_MODE:NZ,UNDERSCORE_TITLE_MODE:kZ,METHOD_GUARD:RZ,END_SAME_AS_BEGIN:FZ});function DZ(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function LZ(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function $Z(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=DZ,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function BZ(e,t){Array.isArray(e.illegal)&&(e.illegal=Iv(...e.illegal))}function jZ(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function zZ(e,t){e.relevance===void 0&&(e.relevance=1)}const UZ=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=aa(n.beforeMatch,ZT(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},HZ=["of","and","for","in","not","or","if","then","parent","list","value"],WZ="keyword";function rP(e,t,n=WZ){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(a){Object.assign(r,rP(e[a],t,a))}),r;function i(a,o){t&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[a,KZ(l[0],l[1])]})}}function KZ(e,t){return t?Number(t):GZ(e)?0:1}function GZ(e){return HZ.includes(e.toLowerCase())}const D1={},L1=e=>{},VZ=(e,...t)=>{},ga=(e,t)=>{D1[`${e}/${t}`]||(D1[`${e}/${t}`]=!0)},mu=new Error;function iP(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=JT(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function YZ(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin||typeof e.beginScope!="object"||e.beginScope===null)throw mu;iP(e,e.begin,{key:"beginScope"}),e.begin=Av(e.begin,{joinWith:""})}}function qZ(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd||typeof e.endScope!="object"||e.endScope===null)throw mu;iP(e,e.end,{key:"endScope"}),e.end=Av(e.end,{joinWith:""})}}function XZ(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ZZ(e){XZ(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),YZ(e),qZ(e)}function JZ(e){function t(o,s){return new RegExp(ms(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=JT(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(Av(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,p)=>p>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function a(o,s){const l=o;if(o.isCompiled)return l;[LZ,jZ,ZZ,UZ].forEach(c=>c(o,s)),e.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[$Z,BZ,zZ].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=rP(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=ms(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return QZ(c==="self"?o:c)})),o.contains.forEach(function(c){a(c,l)}),o.starts&&a(o.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=li(e.classNameAliases||{}),a(e)}function aP(e){return e?e.endsWithParent||aP(e.starts):!1}function QZ(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return li(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:aP(e)?li(e,{starts:e.starts?li(e.starts):null}):Object.isFrozen(e)?li(e):e}var eJ="11.5.1";class tJ extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const _f=XT,$1=li,B1=Symbol("nomatch"),nJ=7,rJ=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:pZ};function l(I){return s.noHighlightRe.test(I)}function u(I){let O=I.className+" ";O+=I.parentNode?I.parentNode.className:"";const N=s.languageDetectRe.exec(O);if(N){const F=x(N[1]);return F||VZ(a.replace("{}",N[1])),F?N[1]:"no-highlight"}return O.split(/\s+/).find(F=>l(F)||x(F))}function c(I,O,N){let F="",G="";typeof O=="object"?(F=I,N=O.ignoreIllegals,G=O.language):(ga("10.7.0","highlight(lang, code, ...args) has been deprecated."),ga("10.7.0",`Please use highlight(code, options) instead.
-https://github.com/highlightjs/highlight.js/issues/2277`),G=I,F=O),N===void 0&&(N=!0);const X={code:F,language:G};j("before:highlight",X);const ee=X.result?X.result:d(X.language,X.code,N);return ee.code=X.code,j("after:highlight",ee),ee}function d(I,O,N,F){const G=Object.create(null);function X(ie,ce){return ie.keywords[ce]}function ee(){if(!W.keywords){ae.addText(re);return}let ie=0;W.keywordPatternRe.lastIndex=0;let ce=W.keywordPatternRe.exec(re),ge="";for(;ce;){ge+=re.substring(ie,ce.index);const Ce=A.case_insensitive?ce[0].toLowerCase():ce[0],xe=X(W,Ce);if(xe){const[Ye,Yt]=xe;if(ae.addText(ge),ge="",G[Ce]=(G[Ce]||0)+1,G[Ce]<=nJ&&(J+=Yt),Ye.startsWith("_"))ge+=ce[0];else{const Kn=A.classNameAliases[Ye]||Ye;ae.addKeyword(ce[0],Kn)}}else ge+=ce[0];ie=W.keywordPatternRe.lastIndex,ce=W.keywordPatternRe.exec(re)}ge+=re.substr(ie),ae.addText(ge)}function Z(){if(re==="")return;let ie=null;if(typeof W.subLanguage=="string"){if(!t[W.subLanguage]){ae.addText(re);return}ie=d(W.subLanguage,re,!0,oe[W.subLanguage]),oe[W.subLanguage]=ie._top}else ie=v(re,W.subLanguage.length?W.subLanguage:null);W.relevance>0&&(J+=ie.relevance),ae.addSublanguage(ie._emitter,ie.language)}function q(){W.subLanguage!=null?Z():ee(),re=""}function ne(ie,ce){let ge=1;const Ce=ce.length-1;for(;ge<=Ce;){if(!ie._emit[ge]){ge++;continue}const xe=A.classNameAliases[ie[ge]]||ie[ge],Ye=ce[ge];xe?ae.addKeyword(Ye,xe):(re=Ye,ee(),re=""),ge++}}function se(ie,ce){return ie.scope&&typeof ie.scope=="string"&&ae.openNode(A.classNameAliases[ie.scope]||ie.scope),ie.beginScope&&(ie.beginScope._wrap?(ae.addKeyword(re,A.classNameAliases[ie.beginScope._wrap]||ie.beginScope._wrap),re=""):ie.beginScope._multi&&(ne(ie.beginScope,ce),re="")),W=Object.create(ie,{parent:{value:W}}),W}function pe(ie,ce,ge){let Ce=mZ(ie.endRe,ge);if(Ce){if(ie["on:end"]){const xe=new R1(ie);ie["on:end"](ce,xe),xe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;ie.endsParent&&ie.parent;)ie=ie.parent;return ie}}if(ie.endsWithParent)return pe(ie.parent,ce,ge)}function ye(ie){return W.matcher.regexIndex===0?(re+=ie[0],1):(ue=!0,0)}function ve(ie){const ce=ie[0],ge=ie.rule,Ce=new R1(ge),xe=[ge.__beforeBegin,ge["on:begin"]];for(const Ye of xe)if(Ye&&(Ye(ie,Ce),Ce.isMatchIgnored))return ye(ce);return ge.skip?re+=ce:(ge.excludeBegin&&(re+=ce),q(),!ge.returnBegin&&!ge.excludeBegin&&(re=ce)),se(ge,ie),ge.returnBegin?0:ce.length}function me(ie){const ce=ie[0],ge=O.substr(ie.index),Ce=pe(W,ie,ge);if(!Ce)return B1;const xe=W;W.endScope&&W.endScope._wrap?(q(),ae.addKeyword(ce,W.endScope._wrap)):W.endScope&&W.endScope._multi?(q(),ne(W.endScope,ie)):xe.skip?re+=ce:(xe.returnEnd||xe.excludeEnd||(re+=ce),q(),xe.excludeEnd&&(re=ce));do W.scope&&ae.closeNode(),!W.skip&&!W.subLanguage&&(J+=W.relevance),W=W.parent;while(W!==Ce.parent);return Ce.starts&&se(Ce.starts,ie),xe.returnEnd?0:ce.length}function we(){const ie=[];for(let ce=W;ce!==A;ce=ce.parent)ce.scope&&ie.unshift(ce.scope);ie.forEach(ce=>ae.openNode(ce))}let $={};function E(ie,ce){const ge=ce&&ce[0];if(re+=ie,ge==null)return q(),0;if($.type==="begin"&&ce.type==="end"&&$.index===ce.index&&ge===""){if(re+=O.slice(ce.index,ce.index+1),!i){const Ce=new Error(`0 width match regex (${I})`);throw Ce.languageName=I,Ce.badRule=$.rule,Ce}return 1}if($=ce,ce.type==="begin")return ve(ce);if(ce.type==="illegal"&&!N){const Ce=new Error('Illegal lexeme "'+ge+'" for mode "'+(W.scope||"")+'"');throw Ce.mode=W,Ce}else if(ce.type==="end"){const Ce=me(ce);if(Ce!==B1)return Ce}if(ce.type==="illegal"&&ge==="")return 1;if(Y>1e5&&Y>3*ce.index)throw new Error("potential infinite loop, way more iterations than matches");return re+=ge,ge.length}const A=x(I);if(!A)throw L1(a.replace("{}",I)),new Error('Unknown language: "'+I+'"');const z=JZ(A);let K="",W=F||z;const oe={},ae=new s.__emitter(s);we();let re="",J=0,H=0,Y=0,ue=!1;try{for(W.matcher.considerAll();;){Y++,ue?ue=!1:W.matcher.considerAll(),W.matcher.lastIndex=H;const ie=W.matcher.exec(O);if(!ie)break;const ce=O.substring(H,ie.index),ge=E(ce,ie);H=ie.index+ge}return E(O.substr(H)),ae.closeAllNodes(),ae.finalize(),K=ae.toHTML(),{language:I,value:K,relevance:J,illegal:!1,_emitter:ae,_top:W}}catch(ie){if(ie.message&&ie.message.includes("Illegal"))return{language:I,value:_f(O),illegal:!0,relevance:0,_illegalBy:{message:ie.message,index:H,context:O.slice(H-100,H+100),mode:ie.mode,resultSoFar:K},_emitter:ae};if(i)return{language:I,value:_f(O),illegal:!1,relevance:0,errorRaised:ie,_emitter:ae,_top:W};throw ie}}function p(I){const O={value:_f(I),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return O._emitter.addText(I),O}function v(I,O){O=O||s.languages||Object.keys(t);const N=p(I),F=O.filter(x).filter(R).map(q=>d(q,I,!1));F.unshift(N);const G=F.sort((q,ne)=>{if(q.relevance!==ne.relevance)return ne.relevance-q.relevance;if(q.language&&ne.language){if(x(q.language).supersetOf===ne.language)return 1;if(x(ne.language).supersetOf===q.language)return-1}return 0}),[X,ee]=G,Z=X;return Z.secondBest=ee,Z}function f(I,O,N){const F=O&&n[O]||N;I.classList.add("hljs"),I.classList.add(`language-${F}`)}function h(I){let O=null;const N=u(I);if(l(N))return;if(j("before:highlightElement",{el:I,language:N}),I.children.length>0&&(s.ignoreUnescapedHTML,s.throwUnescapedHTML))throw new tJ("One of your code blocks includes unescaped HTML.",I.innerHTML);O=I;const F=O.textContent,G=N?c(F,{language:N,ignoreIllegals:!0}):v(F);I.innerHTML=G.value,f(I,N,G.language),I.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(I.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),j("after:highlightElement",{el:I,result:G,text:F})}function m(I){s=$1(s,I)}const g=()=>{_(),ga("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){_(),ga("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function _(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(h)}function C(){b&&_()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function S(I,O){let N=null;try{N=O(e)}catch(F){if(L1("Language definition for '{}' could not be registered.".replace("{}",I)),!i)throw F;N=o}N.name||(N.name=I),t[I]=N,N.rawDefinition=O.bind(null,e),N.aliases&&k(N.aliases,{languageName:I})}function w(I){delete t[I];for(const O of Object.keys(n))n[O]===I&&delete n[O]}function P(){return Object.keys(t)}function x(I){return I=(I||"").toLowerCase(),t[I]||t[n[I]]}function k(I,{languageName:O}){typeof I=="string"&&(I=[I]),I.forEach(N=>{n[N.toLowerCase()]=O})}function R(I){const O=x(I);return O&&!O.disableAutodetect}function L(I){I["before:highlightBlock"]&&!I["before:highlightElement"]&&(I["before:highlightElement"]=O=>{I["before:highlightBlock"](Object.assign({block:O.el},O))}),I["after:highlightBlock"]&&!I["after:highlightElement"]&&(I["after:highlightElement"]=O=>{I["after:highlightBlock"](Object.assign({block:O.el},O))})}function B(I){L(I),r.push(I)}function j(I,O){const N=I;r.forEach(function(F){F[N]&&F[N](O)})}function D(I){return ga("10.7.0","highlightBlock will be removed entirely in v12.0"),ga("10.7.0","Please use highlightElement now."),h(I)}Object.assign(e,{highlight:c,highlightAuto:v,highlightAll:_,highlightElement:h,highlightBlock:D,configure:m,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:S,unregisterLanguage:w,listLanguages:P,getLanguage:x,registerAliases:k,autoDetection:R,inherit:$1,addPlugin:B}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=eJ,e.regex={concat:aa,lookahead:ZT,either:Iv,optional:vZ,anyNumberOfTimes:hZ};for(const I in yl)typeof yl[I]=="object"&&uZ(yl[I]);return Object.assign(e,yl),e};var bs=rJ({}),iJ=bs;bs.HighlightJS=bs;bs.default=bs;var Er=iJ;const aJ=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),oJ=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sJ=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],lJ=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],uJ=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],cJ=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function fJ(e){const t=e.regex,n=aJ(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+lJ.join("|")+")"},{begin:":(:)?("+uJ.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+cJ.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:sJ.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+oJ.join("|")+")\\b"}]}}function dJ(e){const t=e.regex,n=t.concat(/[A-Z_]/,t.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),r=/[A-Za-z0-9._:-]+/,i={className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/