var HY=Object.defineProperty;var qY=(e,t,n)=>t in e?HY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ns=(e,t,n)=>(qY(e,typeof t!="symbol"?t+"":t,n),n),d3=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var At=(e,t,n)=>(d3(e,t,"read from private field"),n?n.call(e):t.get(e)),Gn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Bi=(e,t,n,i)=>(d3(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);var Qm=(e,t,n,i)=>({set _(r){Bi(e,t,r,n)},get _(){return At(e,t,i)}}),ra=(e,t,n)=>(d3(e,t,"access private method"),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3ce711fb-5db0-417d-b851-8d0be1940488",e._sentryDebugIdIdentifier="sentry-dbid-3ce711fb-5db0-417d-b851-8d0be1940488")}catch{}})();function YY(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}/*! * shared v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const P_=typeof window<"u",fd=(e,t=!1)=>t?Symbol.for(e):Symbol(e),WY=(e,t,n)=>GY({l:e,k:t,s:n}),GY=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Dr=e=>typeof e=="number"&&isFinite(e),KY=e=>aI(e)==="[object Date]",id=e=>aI(e)==="[object RegExp]",a2=e=>Ut(e)&&Object.keys(e).length===0,ya=Object.assign;let GT;const zu=()=>GT||(GT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function KT(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ZY=Object.prototype.hasOwnProperty;function $_(e,t){return ZY.call(e,t)}const mi=Array.isArray,ci=e=>typeof e=="function",pt=e=>typeof e=="string",dn=e=>typeof e=="boolean",Ln=e=>e!==null&&typeof e=="object",XY=e=>Ln(e)&&ci(e.then)&&ci(e.catch),rI=Object.prototype.toString,aI=e=>rI.call(e),Ut=e=>{if(!Ln(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},JY=e=>e==null?"":mi(e)||Ut(e)&&e.toString===rI?JSON.stringify(e,null,2):String(e);function QY(e,t=""){return e.reduce((n,i,r)=>r===0?n+i:n+t+i,"")}function o2(e){let t=e;return()=>++t}function eW(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const My=e=>!Ln(e)||mi(e);function U0(e,t){if(My(e)||My(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:i,des:r}=n.pop();Object.keys(i).forEach(a=>{My(i[a])||My(r[a])?r[a]=i[a]:n.push({src:i[a],des:r[a]})})}}/*! * message-compiler v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function tW(e,t,n){return{line:e,column:t,offset:n}}function A_(e,t,n){const i={start:e,end:t};return n!=null&&(i.source=n),i}const nW=/\{([0-9a-zA-Z]+)\}/g;function oI(e,...t){return t.length===1&&iW(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(nW,(n,i)=>t.hasOwnProperty(i)?t[i]:"")}const sI=Object.assign,ZT=e=>typeof e=="string",iW=e=>e!==null&&typeof e=="object";function lI(e,t=""){return e.reduce((n,i,r)=>r===0?n+i:n+t+i,"")}const kE={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},rW={[kE.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function aW(e,t,...n){const i=oI(rW[e]||"",...n||[]),r={message:String(i),code:e};return t&&(r.location=t),r}const Ft={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},oW={[Ft.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ft.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ft.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ft.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ft.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ft.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ft.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ft.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ft.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ft.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ft.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ft.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ft.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ft.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ft.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function fm(e,t,n={}){const{domain:i,messages:r,args:a}=n,o=oI((r||oW)[e]||"",...a||[]),s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=i,s}function sW(e){throw e}const yu=" ",lW="\r",Ua=` `,uW=String.fromCharCode(8232),cW=String.fromCharCode(8233);function dW(e){const t=e;let n=0,i=1,r=1,a=0;const o=P=>t[P]===lW&&t[P+1]===Ua,s=P=>t[P]===Ua,l=P=>t[P]===cW,u=P=>t[P]===uW,c=P=>o(P)||s(P)||l(P)||u(P),d=()=>n,f=()=>i,h=()=>r,m=()=>a,g=P=>o(P)||l(P)||u(P)?Ua:t[P],v=()=>g(n),y=()=>g(n+a);function _(){return a=0,c(n)&&(i++,r=0),o(n)&&n++,n++,r++,t[n]}function S(){return o(n+a)&&a++,a++,t[n+a]}function w(){n=0,i=1,r=1,a=0}function x(P=0){a=P}function k(){const P=n+a;for(;P!==n;)_();a=0}return{index:d,line:f,column:h,peekOffset:m,charAt:g,currentChar:v,currentPeek:y,next:_,peek:S,reset:w,resetPeek:x,skipToPeek:k}}const bc=void 0,fW=".",XT="'",hW="tokenizer";function pW(e,t={}){const n=t.location!==!1,i=dW(e),r=()=>i.index(),a=()=>tW(i.line(),i.column(),i.index()),o=a(),s=r(),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(ie,se,de,...xe){const Re=u();if(se.column+=de,se.offset+=de,c){const Pe=n?A_(Re.startLoc,se):null,we=fm(ie,Pe,{domain:hW,args:xe});c(we)}}function f(ie,se,de){ie.endLoc=a(),ie.currentType=se;const xe={type:se};return n&&(xe.loc=A_(ie.startLoc,ie.endLoc)),de!=null&&(xe.value=de),xe}const h=ie=>f(ie,14);function m(ie,se){return ie.currentChar()===se?(ie.next(),se):(d(Ft.EXPECTED_TOKEN,a(),0,se),"")}function g(ie){let se="";for(;ie.currentPeek()===yu||ie.currentPeek()===Ua;)se+=ie.currentPeek(),ie.peek();return se}function v(ie){const se=g(ie);return ie.skipToPeek(),se}function y(ie){if(ie===bc)return!1;const se=ie.charCodeAt(0);return se>=97&&se<=122||se>=65&&se<=90||se===95}function _(ie){if(ie===bc)return!1;const se=ie.charCodeAt(0);return se>=48&&se<=57}function S(ie,se){const{currentType:de}=se;if(de!==2)return!1;g(ie);const xe=y(ie.currentPeek());return ie.resetPeek(),xe}function w(ie,se){const{currentType:de}=se;if(de!==2)return!1;g(ie);const xe=ie.currentPeek()==="-"?ie.peek():ie.currentPeek(),Re=_(xe);return ie.resetPeek(),Re}function x(ie,se){const{currentType:de}=se;if(de!==2)return!1;g(ie);const xe=ie.currentPeek()===XT;return ie.resetPeek(),xe}function k(ie,se){const{currentType:de}=se;if(de!==8)return!1;g(ie);const xe=ie.currentPeek()===".";return ie.resetPeek(),xe}function P(ie,se){const{currentType:de}=se;if(de!==9)return!1;g(ie);const xe=y(ie.currentPeek());return ie.resetPeek(),xe}function E(ie,se){const{currentType:de}=se;if(!(de===8||de===12))return!1;g(ie);const xe=ie.currentPeek()===":";return ie.resetPeek(),xe}function A(ie,se){const{currentType:de}=se;if(de!==10)return!1;const xe=()=>{const Pe=ie.currentPeek();return Pe==="{"?y(ie.peek()):Pe==="@"||Pe==="%"||Pe==="|"||Pe===":"||Pe==="."||Pe===yu||!Pe?!1:Pe===Ua?(ie.peek(),xe()):O(ie,!1)},Re=xe();return ie.resetPeek(),Re}function D(ie){g(ie);const se=ie.currentPeek()==="|";return ie.resetPeek(),se}function T(ie){const se=g(ie),de=ie.currentPeek()==="%"&&ie.peek()==="{";return ie.resetPeek(),{isModulo:de,hasSpace:se.length>0}}function O(ie,se=!0){const de=(Re=!1,Pe="",we=!1)=>{const Ae=ie.currentPeek();return Ae==="{"?Pe==="%"?!1:Re:Ae==="@"||!Ae?Pe==="%"?!0:Re:Ae==="%"?(ie.peek(),de(Re,"%",!0)):Ae==="|"?Pe==="%"||we?!0:!(Pe===yu||Pe===Ua):Ae===yu?(ie.peek(),de(!0,yu,we)):Ae===Ua?(ie.peek(),de(!0,Ua,we)):!0},xe=de();return se&&ie.resetPeek(),xe}function N(ie,se){const de=ie.currentChar();return de===bc?bc:se(de)?(ie.next(),de):null}function V(ie){const se=ie.charCodeAt(0);return se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===95||se===36}function j(ie){return N(ie,V)}function q(ie){const se=ie.charCodeAt(0);return se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===95||se===36||se===45}function ne(ie){return N(ie,q)}function ae(ie){const se=ie.charCodeAt(0);return se>=48&&se<=57}function Y(ie){return N(ie,ae)}function M(ie){const se=ie.charCodeAt(0);return se>=48&&se<=57||se>=65&&se<=70||se>=97&&se<=102}function I(ie){return N(ie,M)}function W(ie){let se="",de="";for(;se=Y(ie);)de+=se;return de}function te(ie){v(ie);const se=ie.currentChar();return se!=="%"&&d(Ft.EXPECTED_TOKEN,a(),0,se),ie.next(),"%"}function he(ie){let se="";for(;;){const de=ie.currentChar();if(de==="{"||de==="}"||de==="@"||de==="|"||!de)break;if(de==="%")if(O(ie))se+=de,ie.next();else break;else if(de===yu||de===Ua)if(O(ie))se+=de,ie.next();else{if(D(ie))break;se+=de,ie.next()}else se+=de,ie.next()}return se}function oe(ie){v(ie);let se="",de="";for(;se=ne(ie);)de+=se;return ie.currentChar()===bc&&d(Ft.UNTERMINATED_CLOSING_BRACE,a(),0),de}function U(ie){v(ie);let se="";return ie.currentChar()==="-"?(ie.next(),se+=`-${W(ie)}`):se+=W(ie),ie.currentChar()===bc&&d(Ft.UNTERMINATED_CLOSING_BRACE,a(),0),se}function ee(ie){return ie!==XT&&ie!==Ua}function re(ie){v(ie),m(ie,"'");let se="",de="";for(;se=N(ie,ee);)se==="\\"?de+=ue(ie):de+=se;const xe=ie.currentChar();return xe===Ua||xe===bc?(d(Ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),xe===Ua&&(ie.next(),m(ie,"'")),de):(m(ie,"'"),de)}function ue(ie){const se=ie.currentChar();switch(se){case"\\":case"'":return ie.next(),`\\${se}`;case"u":return pe(ie,se,4);case"U":return pe(ie,se,6);default:return d(Ft.UNKNOWN_ESCAPE_SEQUENCE,a(),0,se),""}}function pe(ie,se,de){m(ie,se);let xe="";for(let Re=0;Re<de;Re++){const Pe=I(ie);if(!Pe){d(Ft.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${se}${xe}${ie.currentChar()}`);break}xe+=Pe}return`\\${se}${xe}`}function ge(ie){return ie!=="{"&&ie!=="}"&&ie!==yu&&ie!==Ua}function Te(ie){v(ie);let se="",de="";for(;se=N(ie,ge);)de+=se;return de}function Z(ie){let se="",de="";for(;se=j(ie);)de+=se;return de}function X(ie){const se=de=>{const xe=ie.currentChar();return xe==="{"||xe==="%"||xe==="@"||xe==="|"||xe==="("||xe===")"||!xe||xe===yu?de:(de+=xe,ie.next(),se(de))};return se("")}function ye(ie){v(ie);const se=m(ie,"|");return v(ie),se}function Se(ie,se){let de=null;switch(ie.currentChar()){case"{":return se.braceNest>=1&&d(Ft.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),ie.next(),de=f(se,2,"{"),v(ie),se.braceNest++,de;case"}":return se.braceNest>0&&se.currentType===2&&d(Ft.EMPTY_PLACEHOLDER,a(),0),ie.next(),de=f(se,3,"}"),se.braceNest--,se.braceNest>0&&v(ie),se.inLinked&&se.braceNest===0&&(se.inLinked=!1),de;case"@":return se.braceNest>0&&d(Ft.UNTERMINATED_CLOSING_BRACE,a(),0),de=Ee(ie,se)||h(se),se.braceNest=0,de;default:{let Re=!0,Pe=!0,we=!0;if(D(ie))return se.braceNest>0&&d(Ft.UNTERMINATED_CLOSING_BRACE,a(),0),de=f(se,1,ye(ie)),se.braceNest=0,se.inLinked=!1,de;if(se.braceNest>0&&(se.currentType===5||se.currentType===6||se.currentType===7))return d(Ft.UNTERMINATED_CLOSING_BRACE,a(),0),se.braceNest=0,_e(ie,se);if(Re=S(ie,se))return de=f(se,5,oe(ie)),v(ie),de;if(Pe=w(ie,se))return de=f(se,6,U(ie)),v(ie),de;if(we=x(ie,se))return de=f(se,7,re(ie)),v(ie),de;if(!Re&&!Pe&&!we)return de=f(se,13,Te(ie)),d(Ft.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,de.value),v(ie),de;break}}return de}function Ee(ie,se){const{currentType:de}=se;let xe=null;const Re=ie.currentChar();switch((de===8||de===9||de===12||de===10)&&(Re===Ua||Re===yu)&&d(Ft.INVALID_LINKED_FORMAT,a(),0),Re){case"@":return ie.next(),xe=f(se,8,"@"),se.inLinked=!0,xe;case".":return v(ie),ie.next(),f(se,9,".");case":":return v(ie),ie.next(),f(se,10,":");default:return D(ie)?(xe=f(se,1,ye(ie)),se.braceNest=0,se.inLinked=!1,xe):k(ie,se)||E(ie,se)?(v(ie),Ee(ie,se)):P(ie,se)?(v(ie),f(se,12,Z(ie))):A(ie,se)?(v(ie),Re==="{"?Se(ie,se)||xe:f(se,11,X(ie))):(de===8&&d(Ft.INVALID_LINKED_FORMAT,a(),0),se.braceNest=0,se.inLinked=!1,_e(ie,se))}}function _e(ie,se){let de={type:14};if(se.braceNest>0)return Se(ie,se)||h(se);if(se.inLinked)return Ee(ie,se)||h(se);switch(ie.currentChar()){case"{":return Se(ie,se)||h(se);case"}":return d(Ft.UNBALANCED_CLOSING_BRACE,a(),0),ie.next(),f(se,3,"}");case"@":return Ee(ie,se)||h(se);default:{if(D(ie))return de=f(se,1,ye(ie)),se.braceNest=0,se.inLinked=!1,de;const{isModulo:Re,hasSpace:Pe}=T(ie);if(Re)return Pe?f(se,0,he(ie)):f(se,4,te(ie));if(O(ie))return f(se,0,he(ie));break}}return de}function be(){const{currentType:ie,offset:se,startLoc:de,endLoc:xe}=l;return l.lastType=ie,l.lastOffset=se,l.lastStartLoc=de,l.lastEndLoc=xe,l.offset=r(),l.startLoc=a(),i.currentChar()===bc?f(l,14):_e(i,l)}return{nextToken:be,currentOffset:r,currentPosition:a,context:u}}const mW="parser",vW=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function gW(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function yW(e={}){const t=e.location!==!1,{onError:n,onWarn:i}=e;function r(S,w,x,k,...P){const E=S.currentPosition();if(E.offset+=k,E.column+=k,n){const A=t?A_(x,E):null,D=fm(w,A,{domain:mW,args:P});n(D)}}function a(S,w,x,k,...P){const E=S.currentPosition();if(E.offset+=k,E.column+=k,i){const A=t?A_(x,E):null;i(aW(w,A,P))}}function o(S,w,x){const k={type:S};return t&&(k.start=w,k.end=w,k.loc={start:x,end:x}),k}function s(S,w,x,k){k&&(S.type=k),t&&(S.end=w,S.loc&&(S.loc.end=x))}function l(S,w){const x=S.context(),k=o(3,x.offset,x.startLoc);return k.value=w,s(k,S.currentOffset(),S.currentPosition()),k}function u(S,w){const x=S.context(),{lastOffset:k,lastStartLoc:P}=x,E=o(5,k,P);return E.index=parseInt(w,10),S.nextToken(),s(E,S.currentOffset(),S.currentPosition()),E}function c(S,w,x){const k=S.context(),{lastOffset:P,lastStartLoc:E}=k,A=o(4,P,E);return A.key=w,x===!0&&(A.modulo=!0),S.nextToken(),s(A,S.currentOffset(),S.currentPosition()),A}function d(S,w){const x=S.context(),{lastOffset:k,lastStartLoc:P}=x,E=o(9,k,P);return E.value=w.replace(vW,gW),S.nextToken(),s(E,S.currentOffset(),S.currentPosition()),E}function f(S){const w=S.nextToken(),x=S.context(),{lastOffset:k,lastStartLoc:P}=x,E=o(8,k,P);return w.type!==12?(r(S,Ft.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),E.value="",s(E,k,P),{nextConsumeToken:w,node:E}):(w.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Ms(w)),E.value=w.value||"",s(E,S.currentOffset(),S.currentPosition()),{node:E})}function h(S,w){const x=S.context(),k=o(7,x.offset,x.startLoc);return k.value=w,s(k,S.currentOffset(),S.currentPosition()),k}function m(S){const w=S.context(),x=o(6,w.offset,w.startLoc);let k=S.nextToken();if(k.type===9){const P=f(S);x.modifier=P.node,k=P.nextConsumeToken||S.nextToken()}switch(k.type!==10&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(k)),k=S.nextToken(),k.type===2&&(k=S.nextToken()),k.type){case 11:k.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(k)),x.key=h(S,k.value||"");break;case 5:k.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(k)),x.key=c(S,k.value||"");break;case 6:k.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(k)),x.key=u(S,k.value||"");break;case 7:k.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(k)),x.key=d(S,k.value||"");break;default:{r(S,Ft.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const P=S.context(),E=o(7,P.offset,P.startLoc);return E.value="",s(E,P.offset,P.startLoc),x.key=E,s(x,P.offset,P.startLoc),{nextConsumeToken:k,node:x}}}return s(x,S.currentOffset(),S.currentPosition()),{node:x}}function g(S){const w=S.context(),x=w.currentType===1?S.currentOffset():w.offset,k=w.currentType===1?w.endLoc:w.startLoc,P=o(2,x,k);P.items=[];let E=null,A=null;do{const O=E||S.nextToken();switch(E=null,O.type){case 0:O.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(O)),P.items.push(l(S,O.value||""));break;case 6:O.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(O)),P.items.push(u(S,O.value||""));break;case 4:A=!0;break;case 5:O.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(O)),P.items.push(c(S,O.value||"",!!A)),A&&(a(S,kE.USE_MODULO_SYNTAX,w.lastStartLoc,0,Ms(O)),A=null);break;case 7:O.value==null&&r(S,Ft.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ms(O)),P.items.push(d(S,O.value||""));break;case 8:{const N=m(S);P.items.push(N.node),E=N.nextConsumeToken||null;break}}}while(w.currentType!==14&&w.currentType!==1);const D=w.currentType===1?w.lastOffset:S.currentOffset(),T=w.currentType===1?w.lastEndLoc:S.currentPosition();return s(P,D,T),P}function v(S,w,x,k){const P=S.context();let E=k.items.length===0;const A=o(1,w,x);A.cases=[],A.cases.push(k);do{const D=g(S);E||(E=D.items.length===0),A.cases.push(D)}while(P.currentType!==14);return E&&r(S,Ft.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),s(A,S.currentOffset(),S.currentPosition()),A}function y(S){const w=S.context(),{offset:x,startLoc:k}=w,P=g(S);return w.currentType===14?P:v(S,x,k,P)}function _(S){const w=pW(S,sI({},e)),x=w.context(),k=o(0,x.offset,x.startLoc);return t&&k.loc&&(k.loc.source=S),k.body=y(w),e.onCacheKey&&(k.cacheKey=e.onCacheKey(S)),x.currentType!==14&&r(w,Ft.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,S[x.offset]||""),s(k,w.currentOffset(),w.currentPosition()),k}return{parse:_}}function Ms(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 _W(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function JT(e,t){for(let n=0;n<e.length;n++)TE(e[n],t)}function TE(e,t){switch(e.type){case 1:JT(e.cases,t),t.helper("plural");break;case 2:JT(e.items,t);break;case 6:{TE(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function bW(e,t={}){const n=_W(e);n.helper("normalize"),e.body&&TE(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function wW(e){const t=e.body;return t.type===2?QT(t):t.cases.forEach(n=>QT(n)),e}function QT(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const i=e.items[n];if(!(i.type===3||i.type===9)||i.value==null)break;t.push(i.value)}if(t.length===e.items.length){e.static=lI(t);for(let n=0;n<e.items.length;n++){const i=e.items[n];(i.type===3||i.type===9)&&delete i.value}}}}const SW="minifier";function Gh(e){switch(e.t=e.type,e.type){case 0:{const t=e;Gh(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let i=0;i<n.length;i++)Gh(n[i]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let i=0;i<n.length;i++)Gh(n[i]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Gh(t.key),t.k=t.key,delete t.key,t.modifier&&(Gh(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw fm(Ft.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:SW,args:[e.type]})}delete e.type}const CW="parser";function EW(e,t){const{sourceMap:n,filename:i,breakLineCode:r,needIndent:a}=t,o=t.location!==!1,s={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(v,y){s.code+=v}function c(v,y=!0){const _=y?r:"";u(a?_+" ".repeat(v):_)}function d(v=!0){const y=++s.indentLevel;v&&c(y)}function f(v=!0){const y=--s.indentLevel;v&&c(y)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function xW(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Rp(e,t.key),t.modifier?(e.push(", "),Rp(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function kW(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const r=t.items.length;for(let a=0;a<r&&(Rp(e,t.items[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}function TW(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const r=t.cases.length;for(let a=0;a<r&&(Rp(e,t.cases[a]),a!==r-1);a++)e.push(", ");e.deindent(i()),e.push("])")}}function PW(e,t){t.body?Rp(e,t.body):e.push("null")}function Rp(e,t){const{helper:n}=e;switch(t.type){case 0:PW(e,t);break;case 1:TW(e,t);break;case 2:kW(e,t);break;case 6:xW(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw fm(Ft.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:CW,args:[t.type]})}}const $W=(e,t={})=>{const n=ZT(t.mode)?t.mode:"normal",i=ZT(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,o=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=EW(e,{mode:n,filename:i,sourceMap:r,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${lI(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Rp(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function AW(e,t={}){const n=sI({},t),i=!!n.jit,r=!!n.minify,a=n.optimize==null?!0:n.optimize,s=yW(n).parse(e);return i?(a&&wW(s),r&&Gh(s),{ast:s,code:""}):(bW(s,n),$W(s,n))}/*! * core-base v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function OW(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zu().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(zu().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const hd=[];hd[0]={w:[0],i:[3,0],"[":[4],o:[7]};hd[1]={w:[1],".":[2],"[":[4],o:[7]};hd[2]={w:[2],i:[3,0],0:[3,0]};hd[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};hd[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};hd[5]={"'":[4,0],o:8,l:[5,0]};hd[6]={'"':[4,0],o:8,l:[6,0]};const DW=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function IW(e){return DW.test(e)}function NW(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 MW(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 LW(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:IW(t)?NW(t):"*"+t}function RW(e){const t=[];let n=-1,i=0,r=0,a,o,s,l,u,c,d;const f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,i=4,f[0]();else{if(r=0,o===void 0||(o=LW(o),o===!1))return!1;f[1]()}};function h(){const m=e[n+1];if(i===5&&m==="'"||i===6&&m==='"')return n++,s="\\"+m,f[0](),!0}for(;i!==null;)if(n++,a=e[n],!(a==="\\"&&h())){if(l=MW(a),d=hd[i],u=d[l]||d.l||8,u===8||(i=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=a,c()===!1))))return;if(i===7)return t}}const e9=new Map;function FW(e,t){return Ln(e)?e[t]:null}function VW(e,t){if(!Ln(e))return null;let n=e9.get(t);if(n||(n=RW(t),n&&e9.set(t,n)),!n)return null;const i=n.length;let r=e,a=0;for(;a<i;){const o=r[n[a]];if(o===void 0||ci(r))return null;r=o,a++}return r}const BW=e=>e,zW=e=>"",jW="text",UW=e=>e.length===0?"":QY(e),HW=JY;function t9(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qW(e){const t=Dr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Dr(e.named.count)||Dr(e.named.n))?Dr(e.named.count)?e.named.count:Dr(e.named.n)?e.named.n:t:t}function YW(e,t){t.count||(t.count=e),t.n||(t.n=e)}function WW(e={}){const t=e.locale,n=qW(e),i=Ln(e.pluralRules)&&pt(t)&&ci(e.pluralRules[t])?e.pluralRules[t]:t9,r=Ln(e.pluralRules)&&pt(t)&&ci(e.pluralRules[t])?t9:void 0,a=y=>y[i(n,y.length,r)],o=e.list||[],s=y=>o[y],l=e.named||{};Dr(e.pluralIndex)&&YW(n,l);const u=y=>l[y];function c(y){const _=ci(e.messages)?e.messages(y):Ln(e.messages)?e.messages[y]:!1;return _||(e.parent?e.parent.message(y):zW)}const d=y=>e.modifiers?e.modifiers[y]:BW,f=Ut(e.processor)&&ci(e.processor.normalize)?e.processor.normalize:UW,h=Ut(e.processor)&&ci(e.processor.interpolate)?e.processor.interpolate:HW,m=Ut(e.processor)&&pt(e.processor.type)?e.processor.type:jW,v={list:s,named:u,plural:a,linked:(y,..._)=>{const[S,w]=_;let x="text",k="";_.length===1?Ln(S)?(k=S.modifier||k,x=S.type||x):pt(S)&&(k=S||k):_.length===2&&(pt(S)&&(k=S||k),pt(w)&&(x=w||x));const P=c(y)(v),E=x==="vnode"&&mi(P)&&k?P[0]:P;return k?d(k)(E,x):E},message:c,type:m,interpolate:h,normalize:f,values:ya({},o,l)};return v}let Ng=null;function GW(e){Ng=e}function KW(e,t,n){Ng&&Ng.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ZW=XW("function:translate");function XW(e){return t=>Ng&&Ng.emit(e,t)}const uI=kE.__EXTEND_POINT__,$d=o2(uI),JW={NOT_FOUND_KEY:uI,FALLBACK_TO_TRANSLATE:$d(),CANNOT_FORMAT_NUMBER:$d(),FALLBACK_TO_NUMBER_FORMAT:$d(),CANNOT_FORMAT_DATE:$d(),FALLBACK_TO_DATE_FORMAT:$d(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:$d(),__EXTEND_POINT__:$d()},cI=Ft.__EXTEND_POINT__,Ad=o2(cI),Xs={INVALID_ARGUMENT:cI,INVALID_DATE_ARGUMENT:Ad(),INVALID_ISO_DATE_ARGUMENT:Ad(),NOT_SUPPORT_NON_STRING_MESSAGE:Ad(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ad(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ad(),NOT_SUPPORT_LOCALE_TYPE:Ad(),__EXTEND_POINT__:Ad()};function Ml(e){return fm(e,null,void 0)}function PE(e,t){return t.locale!=null?n9(t.locale):n9(e.locale)}let f3;function n9(e){if(pt(e))return e;if(ci(e)){if(e.resolvedOnce&&f3!=null)return f3;if(e.constructor.name==="Function"){const t=e();if(XY(t))throw Ml(Xs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return f3=t}else throw Ml(Xs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ml(Xs.NOT_SUPPORT_LOCALE_TYPE)}function QW(e,t,n){return[...new Set([n,...mi(t)?t:Ln(t)?Object.keys(t):pt(t)?[t]:[n]])]}function dI(e,t,n){const i=pt(n)?n:Fp,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let o=[n];for(;mi(o);)o=i9(a,o,t);const s=mi(t)||!Ut(t)?t:t.default?t.default:null;o=pt(s)?[s]:s,mi(o)&&i9(a,o,!1),r.__localeChainCache.set(i,a)}return a}function i9(e,t,n){let i=!0;for(let r=0;r<t.length&&dn(i);r++){const a=t[r];pt(a)&&(i=eG(e,t[r],n))}return i}function eG(e,t,n){let i;const r=t.split("-");do{const a=r.join("-");i=tG(e,a,n),r.splice(-1,1)}while(r.length&&i===!0);return i}function tG(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(mi(n)||Ut(n))&&n[r]&&(i=n[r])}return i}const nG="9.13.1",s2=-1,Fp="en-US",r9="",a9=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function iG(){return{upper:(e,t)=>t==="text"&&pt(e)?e.toUpperCase():t==="vnode"&&Ln(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&pt(e)?e.toLowerCase():t==="vnode"&&Ln(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&pt(e)?a9(e):t==="vnode"&&Ln(e)&&"__v_isVNode"in e?a9(e.children):e}}let fI;function o9(e){fI=e}let hI;function rG(e){hI=e}let pI;function aG(e){pI=e}let mI=null;const oG=e=>{mI=e},sG=()=>mI;let vI=null;const s9=e=>{vI=e},lG=()=>vI;let l9=0;function uG(e={}){const t=ci(e.onWarn)?e.onWarn:eW,n=pt(e.version)?e.version:nG,i=pt(e.locale)||ci(e.locale)?e.locale:Fp,r=ci(i)?Fp:i,a=mi(e.fallbackLocale)||Ut(e.fallbackLocale)||pt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,o=Ut(e.messages)?e.messages:{[r]:{}},s=Ut(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=Ut(e.numberFormats)?e.numberFormats:{[r]:{}},u=ya({},e.modifiers||{},iG()),c=e.pluralRules||{},d=ci(e.missing)?e.missing:null,f=dn(e.missingWarn)||id(e.missingWarn)?e.missingWarn:!0,h=dn(e.fallbackWarn)||id(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,g=!!e.unresolving,v=ci(e.postTranslation)?e.postTranslation:null,y=Ut(e.processor)?e.processor:null,_=dn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,w=ci(e.messageCompiler)?e.messageCompiler:fI,x=ci(e.messageResolver)?e.messageResolver:hI||FW,k=ci(e.localeFallbacker)?e.localeFallbacker:pI||QW,P=Ln(e.fallbackContext)?e.fallbackContext:void 0,E=e,A=Ln(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,D=Ln(E.__numberFormatters)?E.__numberFormatters:new Map,T=Ln(E.__meta)?E.__meta:{};l9++;const O={version:n,cid:l9,locale:i,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:g,postTranslation:v,processor:y,warnHtmlMessage:_,escapeParameter:S,messageCompiler:w,messageResolver:x,localeFallbacker:k,fallbackContext:P,onWarn:t,__meta:T};return O.datetimeFormats=s,O.numberFormats=l,O.__datetimeFormatters=A,O.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&KW(O,n,T),O}function $E(e,t,n,i,r){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,n,t,r);return pt(s)?s:t}else return t}function ev(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function cG(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function dG(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let i=n+1;i<t.length;i++)if(cG(e,t[i]))return!0;return!1}function h3(e){return n=>fG(n,e)}function fG(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const i=n,r=i.c||i.cases;return e.plural(r.reduce((a,o)=>[...a,u9(e,o)],[]))}else return u9(e,n)}function u9(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const i=(t.i||t.items).reduce((r,a)=>[...r,y5(e,a)],[]);return e.normalize(i)}}function y5(e,t){const n=t.t||t.type;switch(n){case 3:{const i=t;return i.v||i.value}case 9:{const i=t;return i.v||i.value}case 4:{const i=t;return e.interpolate(e.named(i.k||i.key))}case 5:{const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index))}case 6:{const i=t,r=i.m||i.modifier;return e.linked(y5(e,i.k||i.key),r?y5(e,r):void 0,e.type)}case 7:{const i=t;return i.v||i.value}case 8:{const i=t;return i.v||i.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const gI=e=>e;let np=Object.create(null);const Vp=e=>Ln(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function yI(e,t={}){let n=!1;const i=t.onError||sW;return t.onError=r=>{n=!0,i(r)},{...AW(e,t),detectError:n}}const hG=(e,t)=>{if(!pt(e))throw Ml(Xs.NOT_SUPPORT_NON_STRING_MESSAGE);{dn(t.warnHtmlMessage)&&t.warnHtmlMessage;const i=(t.onCacheKey||gI)(e),r=np[i];if(r)return r;const{code:a,detectError:o}=yI(e,t),s=new Function(`return ${a}`)();return o?s:np[i]=s}};function pG(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&pt(e)){dn(t.warnHtmlMessage)&&t.warnHtmlMessage;const i=(t.onCacheKey||gI)(e),r=np[i];if(r)return r;const{ast:a,detectError:o}=yI(e,{...t,location:!1,jit:!0}),s=h3(a);return o?s:np[i]=s}else{const n=e.cacheKey;if(n){const i=np[n];return i||(np[n]=h3(e))}else return h3(e)}}const c9=()=>"",us=e=>ci(e);function d9(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=_5(...t),c=dn(u.missingWarn)?u.missingWarn:e.missingWarn,d=dn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=dn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,m=pt(u.default)||dn(u.default)?dn(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:"",g=n||m!=="",v=PE(e,u);f&&mG(u);let[y,_,S]=h?[l,v,s[v]||{}]:_I(e,l,v,o,d,c),w=y,x=l;if(!h&&!(pt(w)||Vp(w)||us(w))&&g&&(w=m,x=w),!h&&(!(pt(w)||Vp(w)||us(w))||!pt(_)))return r?s2:l;let k=!1;const P=()=>{k=!0},E=us(w)?w:bI(e,l,_,w,x,P);if(k)return w;const A=yG(e,_,S,u),D=WW(A),T=vG(e,E,D),O=i?i(T,l):T;if(__INTLIFY_PROD_DEVTOOLS__){const N={timestamp:Date.now(),key:pt(l)?l:us(w)?w.key:"",locale:_||(us(w)?w.locale:""),format:pt(w)?w:us(w)?w.source:"",message:O};N.meta=ya({},e.__meta,sG()||{}),ZW(N)}return O}function mG(e){mi(e.list)?e.list=e.list.map(t=>pt(t)?KT(t):t):Ln(e.named)&&Object.keys(e.named).forEach(t=>{pt(e.named[t])&&(e.named[t]=KT(e.named[t]))})}function _I(e,t,n,i,r,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,i,n);let d={},f,h=null;const m="translate";for(let g=0;g<c.length&&(f=c[g],d=o[f]||{},(h=l(d,t))===null&&(h=d[t]),!(pt(h)||Vp(h)||us(h)));g++)if(!dG(f,c)){const v=$E(e,t,f,a,m);v!==t&&(h=v)}return[h,f,d]}function bI(e,t,n,i,r,a){const{messageCompiler:o,warnHtmlMessage:s}=e;if(us(i)){const u=i;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>i;return u.locale=n,u.key=t,u}const l=o(i,gG(e,n,r,i,s,a));return l.locale=n,l.key=t,l.source=i,l}function vG(e,t,n){return t(n)}function _5(...e){const[t,n,i]=e,r={};if(!pt(t)&&!Dr(t)&&!us(t)&&!Vp(t))throw Ml(Xs.INVALID_ARGUMENT);const a=Dr(t)?String(t):(us(t),t);return Dr(n)?r.plural=n:pt(n)?r.default=n:Ut(n)&&!a2(n)?r.named=n:mi(n)&&(r.list=n),Dr(i)?r.plural=i:pt(i)?r.default=i:Ut(i)&&ya(r,i),[a,r]}function gG(e,t,n,i,r,a){return{locale:t,key:n,warnHtmlMessage:r,onError:o=>{throw a&&a(o),o},onCacheKey:o=>WY(t,n,o)}}function yG(e,t,n,i){const{modifiers:r,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:r,pluralRules:a,messages:h=>{let m=o(n,h);if(m==null&&c){const[,,g]=_I(c,h,t,s,l,u);m=o(g,h)}if(pt(m)||Vp(m)){let g=!1;const y=bI(e,h,t,m,h,()=>{g=!0});return g?c9:y}else return us(m)?m:c9}};return e.processor&&(f.processor=e.processor),i.list&&(f.list=i.list),i.named&&(f.named=i.named),Dr(i.plural)&&(f.pluralIndex=i.plural),f}function f9(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,d]=b5(...t),f=dn(c.missingWarn)?c.missingWarn:e.missingWarn;dn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,m=PE(e,c),g=o(e,r,m);if(!pt(l)||l==="")return new Intl.DateTimeFormat(m,d).format(u);let v={},y,_=null;const S="datetime format";for(let k=0;k<g.length&&(y=g[k],v=n[y]||{},_=v[l],!Ut(_));k++)$E(e,l,y,f,S);if(!Ut(_)||!pt(y))return i?s2:l;let w=`${y}__${l}`;a2(d)||(w=`${w}__${JSON.stringify(d)}`);let x=s.get(w);return x||(x=new Intl.DateTimeFormat(y,ya({},_,d)),s.set(w,x)),h?x.formatToParts(u):x.format(u)}const wI=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function b5(...e){const[t,n,i,r]=e,a={};let o={},s;if(pt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ml(Xs.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Ml(Xs.INVALID_ISO_DATE_ARGUMENT)}}else if(KY(t)){if(isNaN(t.getTime()))throw Ml(Xs.INVALID_DATE_ARGUMENT);s=t}else if(Dr(t))s=t;else throw Ml(Xs.INVALID_ARGUMENT);return pt(n)?a.key=n:Ut(n)&&Object.keys(n).forEach(l=>{wI.includes(l)?o[l]=n[l]:a[l]=n[l]}),pt(i)?a.locale=i:Ut(i)&&(o=i),Ut(r)&&(o=r),[a.key||"",s,a,o]}function h9(e,t,n){const i=e;for(const r in n){const a=`${t}__${r}`;i.__datetimeFormatters.has(a)&&i.__datetimeFormatters.delete(a)}}function p9(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,d]=w5(...t),f=dn(c.missingWarn)?c.missingWarn:e.missingWarn;dn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,m=PE(e,c),g=o(e,r,m);if(!pt(l)||l==="")return new Intl.NumberFormat(m,d).format(u);let v={},y,_=null;const S="number format";for(let k=0;k<g.length&&(y=g[k],v=n[y]||{},_=v[l],!Ut(_));k++)$E(e,l,y,f,S);if(!Ut(_)||!pt(y))return i?s2:l;let w=`${y}__${l}`;a2(d)||(w=`${w}__${JSON.stringify(d)}`);let x=s.get(w);return x||(x=new Intl.NumberFormat(y,ya({},_,d)),s.set(w,x)),h?x.formatToParts(u):x.format(u)}const SI=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function w5(...e){const[t,n,i,r]=e,a={};let o={};if(!Dr(t))throw Ml(Xs.INVALID_ARGUMENT);const s=t;return pt(n)?a.key=n:Ut(n)&&Object.keys(n).forEach(l=>{SI.includes(l)?o[l]=n[l]:a[l]=n[l]}),pt(i)?a.locale=i:Ut(i)&&(o=i),Ut(r)&&(o=r),[a.key||"",s,a,o]}function m9(e,t,n){const i=e;for(const r in n){const a=`${t}__${r}`;i.__numberFormatters.has(a)&&i.__numberFormatters.delete(a)}}OW();/** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function AE(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const di={},hp=[],Fo=()=>{},_G=()=>!1,l2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),OE=e=>e.startsWith("onUpdate:"),Yi=Object.assign,DE=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bG=Object.prototype.hasOwnProperty,An=(e,t)=>bG.call(e,t),Tt=Array.isArray,pp=e=>V1(e)==="[object Map]",hm=e=>V1(e)==="[object Set]",v9=e=>V1(e)==="[object Date]",qt=e=>typeof e=="function",Mi=e=>typeof e=="string",ec=e=>typeof e=="symbol",Zn=e=>e!==null&&typeof e=="object",CI=e=>(Zn(e)||qt(e))&&qt(e.then)&&qt(e.catch),EI=Object.prototype.toString,V1=e=>EI.call(e),wG=e=>V1(e).slice(8,-1),xI=e=>V1(e)==="[object Object]",IE=e=>Mi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sg=AE(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),u2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SG=/-(\w)/g,zo=u2(e=>e.replace(SG,(t,n)=>n?n.toUpperCase():"")),CG=/\B([A-Z])/g,pd=u2(e=>e.replace(CG,"-$1").toLowerCase()),Ql=u2(e=>e.charAt(0).toUpperCase()+e.slice(1)),p3=u2(e=>e?`on${Ql(e)}`:""),Wl=(e,t)=>!Object.is(e,t),H0=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},kI=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},O_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},EG=e=>{const t=Mi(e)?Number(e):NaN;return isNaN(t)?e:t};let g9;const TI=()=>g9||(g9=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pa(e){if(Tt(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=Mi(i)?PG(i):pa(i);if(r)for(const a in r)t[a]=r[a]}return t}else if(Mi(e)||Zn(e))return e}const xG=/;(?![^(]*\))/g,kG=/:([^]+)/,TG=/\/\*[^]*?\*\//g;function PG(e){const t={};return e.replace(TG,"").split(xG).forEach(n=>{if(n){const i=n.split(kG);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Gt(e){let t="";if(Mi(e))t=e;else if(Tt(e))for(let n=0;n<e.length;n++){const i=Gt(e[n]);i&&(t+=i+" ")}else if(Zn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function NE(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Mi(t)&&(e.class=Gt(t)),n&&(e.style=pa(n)),e}const $G="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",AG=AE($G);function PI(e){return!!e||e===""}function OG(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Bf(e[i],t[i]);return n}function Bf(e,t){if(e===t)return!0;let n=v9(e),i=v9(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=ec(e),i=ec(t),n||i)return e===t;if(n=Tt(e),i=Tt(t),n||i)return n&&i?OG(e,t):!1;if(n=Zn(e),i=Zn(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,a=Object.keys(t).length;if(r!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Bf(e[o],t[o]))return!1}}return String(e)===String(t)}function ME(e,t){return e.findIndex(n=>Bf(n,t))}const Q=e=>Mi(e)?e:e==null?"":Tt(e)||Zn(e)&&(e.toString===EI||!qt(e.toString))?JSON.stringify(e,$I,2):String(e),$I=(e,t)=>t&&t.__v_isRef?$I(e,t.value):pp(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],a)=>(n[m3(i,a)+" =>"]=r,n),{})}:hm(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>m3(n))}:ec(t)?m3(t):Zn(t)&&!Tt(t)&&!xI(t)?String(t):t,m3=(e,t="")=>{var n;return ec(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Po;class AI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Po,!t&&Po&&(this.index=(Po.scopes||(Po.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Po;try{return Po=this,t()}finally{Po=n}}}on(){Po=this}off(){Po=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function pm(e){return new AI(e)}function DG(e,t=Po){t&&t.active&&t.effects.push(e)}function LE(){return Po}function Qr(e){Po&&Po.cleanups.push(e)}let xf;class RE{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,DG(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,md();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(IG(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),vd()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Jc,n=xf;try{return Jc=!0,xf=this,this._runnings++,y9(this),this.fn()}finally{_9(this),this._runnings--,xf=n,Jc=t}}stop(){this.active&&(y9(this),_9(this),this.onStop&&this.onStop(),this.active=!1)}}function IG(e){return e.value}function y9(e){e._trackId++,e._depsLength=0}function _9(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)OI(e.deps[t],e);e.deps.length=e._depsLength}}function OI(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Jc=!0,S5=0;const DI=[];function md(){DI.push(Jc),Jc=!1}function vd(){const e=DI.pop();Jc=e===void 0?!0:e}function FE(){S5++}function VE(){for(S5--;!S5&&C5.length;)C5.shift()()}function II(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&OI(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const C5=[];function NI(e,t,n){FE();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&C5.push(i.scheduler)))}VE()}const MI=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},D_=new WeakMap,kf=Symbol(""),E5=Symbol("");function fo(e,t,n){if(Jc&&xf){let i=D_.get(e);i||D_.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=MI(()=>i.delete(n))),II(xf,r)}}function Ku(e,t,n,i,r,a){const o=D_.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&Tt(e)){const l=Number(i);o.forEach((u,c)=>{(c==="length"||!ec(c)&&c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Tt(e)?IE(n)&&s.push(o.get("length")):(s.push(o.get(kf)),pp(e)&&s.push(o.get(E5)));break;case"delete":Tt(e)||(s.push(o.get(kf)),pp(e)&&s.push(o.get(E5)));break;case"set":pp(e)&&s.push(o.get(kf));break}FE();for(const l of s)l&&NI(l,4);VE()}function NG(e,t){const n=D_.get(e);return n&&n.get(t)}const MG=AE("__proto__,__v_isRef,__isVue"),LI=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ec)),b9=LG();function LG(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=$t(this);for(let a=0,o=this.length;a<o;a++)fo(i,"get",a+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map($t)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){md(),FE();const i=$t(this)[t].apply(this,n);return VE(),vd(),i}}),e}function RG(e){ec(e)||(e=String(e));const t=$t(this);return fo(t,"has",e),t.hasOwnProperty(e)}class RI{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(r?a?ZG:zI:a?BI:VI).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=Tt(t);if(!r){if(o&&An(b9,n))return Reflect.get(b9,n,i);if(n==="hasOwnProperty")return RG}const s=Reflect.get(t,n,i);return(ec(n)?LI.has(n):MG(n))||(r||fo(t,"get",n),a)?s:Yn(s)?o&&IE(n)?s:s.value:Zn(s)?r?mm(s):er(s):s}}class FI extends RI{constructor(t=!1){super(!1,t)}set(t,n,i,r){let a=t[n];if(!this._isShallow){const l=Mg(a);if(!I_(i)&&!Mg(i)&&(a=$t(a),i=$t(i)),!Tt(t)&&Yn(a)&&!Yn(i))return l?!1:(a.value=i,!0)}const o=Tt(t)&&IE(n)?Number(n)<t.length:An(t,n),s=Reflect.set(t,n,i,r);return t===$t(r)&&(o?Wl(i,a)&&Ku(t,"set",n,i):Ku(t,"add",n,i)),s}deleteProperty(t,n){const i=An(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&i&&Ku(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!ec(n)||!LI.has(n))&&fo(t,"has",n),i}ownKeys(t){return fo(t,"iterate",Tt(t)?"length":kf),Reflect.ownKeys(t)}}class FG extends RI{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const VG=new FI,BG=new FG,zG=new FI(!0);const BE=e=>e,c2=e=>Reflect.getPrototypeOf(e);function Ly(e,t,n=!1,i=!1){e=e.__v_raw;const r=$t(e),a=$t(t);n||(Wl(t,a)&&fo(r,"get",t),fo(r,"get",a));const{has:o}=c2(r),s=i?BE:n?UE:Lg;if(o.call(r,t))return s(e.get(t));if(o.call(r,a))return s(e.get(a));e!==r&&e.get(t)}function Ry(e,t=!1){const n=this.__v_raw,i=$t(n),r=$t(e);return t||(Wl(e,r)&&fo(i,"has",e),fo(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Fy(e,t=!1){return e=e.__v_raw,!t&&fo($t(e),"iterate",kf),Reflect.get(e,"size",e)}function w9(e){e=$t(e);const t=$t(this);return c2(t).has.call(t,e)||(t.add(e),Ku(t,"add",e,e)),this}function S9(e,t){t=$t(t);const n=$t(this),{has:i,get:r}=c2(n);let a=i.call(n,e);a||(e=$t(e),a=i.call(n,e));const o=r.call(n,e);return n.set(e,t),a?Wl(t,o)&&Ku(n,"set",e,t):Ku(n,"add",e,t),this}function C9(e){const t=$t(this),{has:n,get:i}=c2(t);let r=n.call(t,e);r||(e=$t(e),r=n.call(t,e)),i&&i.call(t,e);const a=t.delete(e);return r&&Ku(t,"delete",e,void 0),a}function E9(){const e=$t(this),t=e.size!==0,n=e.clear();return t&&Ku(e,"clear",void 0,void 0),n}function Vy(e,t){return function(i,r){const a=this,o=a.__v_raw,s=$t(o),l=t?BE:e?UE:Lg;return!e&&fo(s,"iterate",kf),o.forEach((u,c)=>i.call(r,l(u),l(c),a))}}function By(e,t,n){return function(...i){const r=this.__v_raw,a=$t(r),o=pp(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=r[e](...i),c=n?BE:t?UE:Lg;return!t&&fo(a,"iterate",l?E5:kf),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function wc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jG(){const e={get(a){return Ly(this,a)},get size(){return Fy(this)},has:Ry,add:w9,set:S9,delete:C9,clear:E9,forEach:Vy(!1,!1)},t={get(a){return Ly(this,a,!1,!0)},get size(){return Fy(this)},has:Ry,add:w9,set:S9,delete:C9,clear:E9,forEach:Vy(!1,!0)},n={get(a){return Ly(this,a,!0)},get size(){return Fy(this,!0)},has(a){return Ry.call(this,a,!0)},add:wc("add"),set:wc("set"),delete:wc("delete"),clear:wc("clear"),forEach:Vy(!0,!1)},i={get(a){return Ly(this,a,!0,!0)},get size(){return Fy(this,!0)},has(a){return Ry.call(this,a,!0)},add:wc("add"),set:wc("set"),delete:wc("delete"),clear:wc("clear"),forEach:Vy(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=By(a,!1,!1),n[a]=By(a,!0,!1),t[a]=By(a,!1,!0),i[a]=By(a,!0,!0)}),[e,n,t,i]}const[UG,HG,qG,YG]=jG();function zE(e,t){const n=t?e?YG:qG:e?HG:UG;return(i,r,a)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(An(n,r)&&r in i?n:i,r,a)}const WG={get:zE(!1,!1)},GG={get:zE(!1,!0)},KG={get:zE(!0,!1)};const VI=new WeakMap,BI=new WeakMap,zI=new WeakMap,ZG=new WeakMap;function XG(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function JG(e){return e.__v_skip||!Object.isExtensible(e)?0:XG(wG(e))}function er(e){return Mg(e)?e:jE(e,!1,VG,WG,VI)}function jI(e){return jE(e,!1,zG,GG,BI)}function mm(e){return jE(e,!0,BG,KG,zI)}function jE(e,t,n,i,r){if(!Zn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const o=JG(e);if(o===0)return e;const s=new Proxy(e,o===2?i:n);return r.set(e,s),s}function Zu(e){return Mg(e)?Zu(e.__v_raw):!!(e&&e.__v_isReactive)}function Mg(e){return!!(e&&e.__v_isReadonly)}function I_(e){return!!(e&&e.__v_isShallow)}function UI(e){return e?!!e.__v_raw:!1}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function eu(e){return Object.isExtensible(e)&&kI(e,"__v_skip",!0),e}const Lg=e=>Zn(e)?er(e):e,UE=e=>Zn(e)?mm(e):e;class HI{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new RE(()=>t(this._value),()=>lg(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=$t(this);return(!t._cacheable||t.effect.dirty)&&Wl(t._value,t._value=t.effect.run())&&lg(t,4),HE(t),t.effect._dirtyLevel>=2&&lg(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function QG(e,t,n=!1){let i,r;const a=qt(e);return a?(i=e,r=Fo):(i=e.get,r=e.set),new HI(i,r,a||!r,n)}function HE(e){var t;Jc&&xf&&(e=$t(e),II(xf,(t=e.dep)!=null?t:e.dep=MI(()=>e.dep=void 0,e instanceof HI?e:void 0)))}function lg(e,t=4,n){e=$t(e);const i=e.dep;i&&NI(i,t)}function Yn(e){return!!(e&&e.__v_isRef===!0)}function z(e){return qI(e,!1)}function it(e){return qI(e,!0)}function qI(e,t){return Yn(e)?e:new eK(e,t)}class eK{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:$t(t),this._value=n?t:Lg(t)}get value(){return HE(this),this._value}set value(t){const n=this.__v_isShallow||I_(t)||Mg(t);t=n?t:$t(t),Wl(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Lg(t),lg(this,4))}}function K(e){return Yn(e)?e.value:e}const tK={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Yn(r)&&!Yn(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function YI(e){return Zu(e)?e:new Proxy(e,tK)}class nK{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>HE(this),()=>lg(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function iK(e){return new nK(e)}function gd(e){const t=Tt(e)?new Array(e.length):{};for(const n in e)t[n]=WI(e,n);return t}class rK{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return NG($t(this._object),this._key)}}class aK{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Fe(e,t,n){return Yn(e)?e:qt(e)?new aK(e):Zn(e)&&arguments.length>1?WI(e,t,n):z(e)}function WI(e,t,n){const i=e[t];return Yn(i)?i:new rK(e,t,n)}/** * @vue/runtime-core v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Qc(e,t,n,i){try{return i?e(...i):e()}catch(r){d2(r,t,n)}}function fs(e,t,n,i){if(qt(e)){const r=Qc(e,t,n,i);return r&&CI(r)&&r.catch(a=>{d2(a,t,n)}),r}if(Tt(e)){const r=[];for(let a=0;a<e.length;a++)r.push(fs(e[a],t,n,i));return r}}function d2(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){md(),Qc(l,null,10,[e,o,s]),vd();return}}oK(e,n,r,i)}function oK(e,t,n,i=!0){console.error(e)}let Rg=!1,x5=!1;const Ta=[];let Il=0;const mp=[];let Pc=null,tf=0;const GI=Promise.resolve();let qE=null;function Pt(e){const t=qE||GI;return e?t.then(this?e.bind(this):e):t}function sK(e){let t=Il+1,n=Ta.length;for(;t<n;){const i=t+n>>>1,r=Ta[i],a=Fg(r);a<e||a===e&&r.pre?t=i+1:n=i}return t}function YE(e){(!Ta.length||!Ta.includes(e,Rg&&e.allowRecurse?Il+1:Il))&&(e.id==null?Ta.push(e):Ta.splice(sK(e.id),0,e),KI())}function KI(){!Rg&&!x5&&(x5=!0,qE=GI.then(XI))}function lK(e){const t=Ta.indexOf(e);t>Il&&Ta.splice(t,1)}function uK(e){Tt(e)?mp.push(...e):(!Pc||!Pc.includes(e,e.allowRecurse?tf+1:tf))&&mp.push(e),KI()}function x9(e,t,n=Rg?Il+1:0){for(;n<Ta.length;n++){const i=Ta[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Ta.splice(n,1),n--,i()}}}function ZI(e){if(mp.length){const t=[...new Set(mp)].sort((n,i)=>Fg(n)-Fg(i));if(mp.length=0,Pc){Pc.push(...t);return}for(Pc=t,tf=0;tf<Pc.length;tf++)Pc[tf]();Pc=null,tf=0}}const Fg=e=>e.id==null?1/0:e.id,cK=(e,t)=>{const n=Fg(e)-Fg(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function XI(e){x5=!1,Rg=!0,Ta.sort(cK);const t=Fo;try{for(Il=0;Il<Ta.length;Il++){const n=Ta[Il];n&&n.active!==!1&&Qc(n,null,14)}}finally{Il=0,Ta.length=0,ZI(),Rg=!1,qE=null,(Ta.length||mp.length)&&XI()}}function dK(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||di;let r=n;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in i){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:f}=i[c]||di;f&&(r=n.map(h=>Mi(h)?h.trim():h)),d&&(r=n.map(O_))}let s,l=i[s=p3(t)]||i[s=p3(zo(t))];!l&&a&&(l=i[s=p3(pd(t))]),l&&fs(l,e,6,r);const u=i[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,fs(u,e,6,r)}}function JI(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const a=e.emits;let o={},s=!1;if(!qt(e)){const l=u=>{const c=JI(u,t,!0);c&&(s=!0,Yi(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Zn(e)&&i.set(e,null),null):(Tt(a)?a.forEach(l=>o[l]=null):Yi(o,a),Zn(e)&&i.set(e,o),o)}function f2(e,t){return!e||!l2(t)?!1:(t=t.slice(2).replace(/Once$/,""),An(e,t[0].toLowerCase()+t.slice(1))||An(e,pd(t))||An(e,t))}let yr=null,h2=null;function N_(e){const t=yr;return yr=e,h2=e&&e.type.__scopeId||null,t}function ul(e){h2=e}function cl(){h2=null}function le(e,t=yr,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&F9(-1);const a=N_(t);let o;try{o=e(...r)}finally{N_(a),i._d&&F9(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function v3(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=N_(e);let y,_;try{if(n.shapeFlag&4){const w=r||i,x=w;y=Al(u.call(x,w,c,d,h,f,m)),_=s}else{const w=t;y=Al(w.length>1?w(d,{attrs:s,slots:o,emit:l}):w(d,null)),_=t.props?s:fK(s)}}catch(w){fg.length=0,d2(w,e,1),y=C(co)}let S=y;if(_&&g!==!1){const w=Object.keys(_),{shapeFlag:x}=S;w.length&&x&7&&(a&&w.some(OE)&&(_=hK(_,a)),S=tc(S,_,!1,!0))}return n.dirs&&(S=tc(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,N_(v),y}const fK=e=>{let t;for(const n in e)(n==="class"||n==="style"||l2(n))&&((t||(t={}))[n]=e[n]);return t},hK=(e,t)=>{const n={};for(const i in e)(!OE(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function pK(e,t,n){const{props:i,children:r,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?k9(i,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(o[f]!==i[f]&&!f2(u,f))return!0}}}else return(r||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?k9(i,o,u):!0:!!o;return!1}function k9(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(t[a]!==e[a]&&!f2(n,a))return!0}return!1}function mK({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const WE="components",vK="directives";function p2(e,t){return GE(WE,e,!0,t)||e}const QI=Symbol.for("v-ndc");function gK(e){return Mi(e)?GE(WE,e,!1)||e:e||QI}function po(e){return GE(vK,e)}function GE(e,t,n=!0,i=!1){const r=yr||Wr;if(r){const a=r.type;if(e===WE){const s=sZ(a,!1);if(s&&(s===t||s===zo(t)||s===Ql(zo(t))))return a}const o=T9(r[e]||a[e],t)||T9(r.appContext[e],t);return!o&&i?a:o}}function T9(e,t){return e&&(e[t]||e[zo(t)]||e[Ql(zo(t))])}const yK=e=>e.__isSuspense;function _K(e,t){t&&t.pendingBranch?Tt(e)?t.effects.push(...e):t.effects.push(e):uK(e)}const bK=Symbol.for("v-scx"),wK=()=>kt(bK);function Wi(e,t){return m2(e,null,t)}function SK(e,t){return m2(e,null,{flush:"sync"})}const zy={};function Ve(e,t,n){return m2(e,t,n)}function m2(e,t,{immediate:n,deep:i,flush:r,once:a,onTrack:o,onTrigger:s}=di){if(t&&a){const k=t;t=(...P)=>{k(...P),x()}}const l=Wr,u=k=>i===!0?k:vf(k,i===!1?1:void 0);let c,d=!1,f=!1;if(Yn(e)?(c=()=>e.value,d=I_(e)):Zu(e)?(c=()=>u(e),d=!0):Tt(e)?(f=!0,d=e.some(k=>Zu(k)||I_(k)),c=()=>e.map(k=>{if(Yn(k))return k.value;if(Zu(k))return u(k);if(qt(k))return Qc(k,l,2)})):qt(e)?t?c=()=>Qc(e,l,2):c=()=>(h&&h(),fs(e,l,3,[m])):c=Fo,t&&i){const k=c;c=()=>vf(k())}let h,m=k=>{h=S.onStop=()=>{Qc(k,l,4),h=S.onStop=void 0}},g;if(w2)if(m=Fo,t?n&&fs(t,l,3,[c(),f?[]:void 0,m]):c(),r==="sync"){const k=wK();g=k.__watcherHandles||(k.__watcherHandles=[])}else return Fo;let v=f?new Array(e.length).fill(zy):zy;const y=()=>{if(!(!S.active||!S.dirty))if(t){const k=S.run();(i||d||(f?k.some((P,E)=>Wl(P,v[E])):Wl(k,v)))&&(h&&h(),fs(t,l,3,[k,v===zy?void 0:f&&v[0]===zy?[]:v,m]),v=k)}else S.run()};y.allowRecurse=!!t;let _;r==="sync"?_=y:r==="post"?_=()=>ao(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),_=()=>YE(y));const S=new RE(c,Fo,_),w=LE(),x=()=>{S.stop(),w&&DE(w.effects,S)};return t?n?y():v=S.run():r==="post"?ao(S.run.bind(S),l&&l.suspense):S.run(),g&&g.push(x),x}function CK(e,t,n){const i=this.proxy,r=Mi(e)?e.includes(".")?eN(i,e):()=>i[e]:e.bind(i,i);let a;qt(t)?a=t:(a=t.handler,n=t);const o=B1(this),s=m2(r,a.bind(i),n);return o(),s}function eN(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function vf(e,t=1/0,n){if(t<=0||!Zn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Yn(e))vf(e.value,t,n);else if(Tt(e))for(let i=0;i<e.length;i++)vf(e[i],t,n);else if(hm(e)||pp(e))e.forEach(i=>{vf(i,t,n)});else if(xI(e))for(const i in e)vf(e[i],t,n);return e}function xt(e,t){if(yr===null)return e;const n=S2(yr)||yr.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[a,o,s,l=di]=t[r];a&&(qt(a)&&(a={mounted:a,updated:a}),a.deep&&vf(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function Od(e,t,n,i){const r=e.dirs,a=t&&t.dirs;for(let o=0;o<r.length;o++){const s=r[o];a&&(s.oldValue=a[o].value);let l=s.dir[i];l&&(md(),fs(l,n,8,[e.el,s,e,t]),vd())}}const $c=Symbol("_leaveCb"),jy=Symbol("_enterCb");function tN(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tn(()=>{e.isMounted=!0}),Ci(()=>{e.isUnmounting=!0}),e}const ts=[Function,Array],nN={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ts,onEnter:ts,onAfterEnter:ts,onEnterCancelled:ts,onBeforeLeave:ts,onLeave:ts,onAfterLeave:ts,onLeaveCancelled:ts,onBeforeAppear:ts,onAppear:ts,onAfterAppear:ts,onAppearCancelled:ts},EK={name:"BaseTransition",props:nN,setup(e,{slots:t}){const n=vs(),i=tN();return()=>{const r=t.default&&KE(t.default(),!0);if(!r||!r.length)return;let a=r[0];if(r.length>1){for(const f of r)if(f.type!==co){a=f;break}}const o=$t(e),{mode:s}=o;if(i.isLeaving)return g3(a);const l=P9(a);if(!l)return g3(a);const u=Vg(l,o,i,n);Bg(l,u);const c=n.subTree,d=c&&P9(c);if(d&&d.type!==co&&!nf(l,d)){const f=Vg(d,o,i,n);if(Bg(d,f),s==="out-in"&&l.type!==co)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},g3(a);s==="in-out"&&l.type!==co&&(f.delayLeave=(h,m,g)=>{const v=iN(i,d);v[String(d.key)]=d,h[$c]=()=>{m(),h[$c]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return a}}},xK=EK;function iN(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Vg(e,t,n,i){const{appear:r,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:y,onAppearCancelled:_}=t,S=String(e.key),w=iN(n,e),x=(E,A)=>{E&&fs(E,i,9,A)},k=(E,A)=>{const D=A[1];x(E,A),Tt(E)?E.every(T=>T.length<=1)&&D():E.length<=1&&D()},P={mode:a,persisted:o,beforeEnter(E){let A=s;if(!n.isMounted)if(r)A=g||s;else return;E[$c]&&E[$c](!0);const D=w[S];D&&nf(e,D)&&D.el[$c]&&D.el[$c](),x(A,[E])},enter(E){let A=l,D=u,T=c;if(!n.isMounted)if(r)A=v||l,D=y||u,T=_||c;else return;let O=!1;const N=E[jy]=V=>{O||(O=!0,V?x(T,[E]):x(D,[E]),P.delayedLeave&&P.delayedLeave(),E[jy]=void 0)};A?k(A,[E,N]):N()},leave(E,A){const D=String(e.key);if(E[jy]&&E[jy](!0),n.isUnmounting)return A();x(d,[E]);let T=!1;const O=E[$c]=N=>{T||(T=!0,A(),N?x(m,[E]):x(h,[E]),E[$c]=void 0,w[D]===e&&delete w[D])};w[D]=e,f?k(f,[E,O]):O()},clone(E){return Vg(E,t,n,i)}};return P}function g3(e){if(v2(e))return e=tc(e),e.children=null,e}function P9(e){if(!v2(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&qt(n.default))return n.default()}}function Bg(e,t){e.shapeFlag&6&&e.component?Bg(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function KE(e,t=!1,n){let i=[],r=0;for(let a=0;a<e.length;a++){let o=e[a];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:a);o.type===Ue?(o.patchFlag&128&&r++,i=i.concat(KE(o.children,t,s))):(t||o.type!==co)&&i.push(s!=null?tc(o,{key:s}):o)}if(r>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function ot(e,t){return qt(e)?(()=>Yi({name:e.name},t,{setup:e}))():e}const ug=e=>!!e.type.__asyncLoader,v2=e=>e.type.__isKeepAlive;function ZE(e,t){rN(e,"a",t)}function g2(e,t){rN(e,"da",t)}function rN(e,t,n=Wr){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(y2(t,i,n),n){let r=n.parent;for(;r&&r.parent;)v2(r.parent.vnode)&&kK(i,t,n,r),r=r.parent}}function kK(e,t,n,i){const r=y2(t,e,i,!0);ys(()=>{DE(i[t],r)},n)}function y2(e,t,n=Wr,i=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;md();const s=B1(n),l=fs(t,n,e,o);return s(),vd(),l});return i?r.unshift(a):r.push(a),a}}const uc=e=>(t,n=Wr)=>(!w2||e==="sp")&&y2(e,(...i)=>t(...i),n),th=uc("bm"),tn=uc("m"),aN=uc("bu"),XE=uc("u"),Ci=uc("bum"),ys=uc("um"),TK=uc("sp"),PK=uc("rtg"),$K=uc("rtc");function AK(e,t=Wr){y2("ec",e,t)}function Ht(e,t,n,i){let r;const a=n&&n[i];if(Tt(e)||Mi(e)){r=new Array(e.length);for(let o=0,s=e.length;o<s;o++)r[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,a&&a[o])}else if(Zn(e))if(e[Symbol.iterator])r=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);r=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];r[s]=t(e[u],u,s,a&&a[s])}}else r=[];return n&&(n[i]=r),r}function Kqe(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(Tt(i))for(let r=0;r<i.length;r++)e[i[r].name]=i[r].fn;else i&&(e[i.name]=i.key?(...r)=>{const a=i.fn(...r);return a&&(a.key=i.key),a}:i.fn)}return e}function zg(e,t,n={},i,r){if(yr.isCE||yr.parent&&ug(yr.parent)&&yr.parent.isCE)return t!=="default"&&(n.name=t),C("slot",n,i&&i());let a=e[t];a&&a._c&&(a._d=!1),J();const o=a&&oN(a(n)),s=je(Ue,{key:n.key||o&&o.key||`_${t}`},o||(i?i():[]),o&&e._===1?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function oN(e){return e.some(t=>Ug(t)?!(t.type===co||t.type===Ue&&!oN(t.children)):!0)?e:null}const k5=e=>e?SN(e)?S2(e)||e.proxy:k5(e.parent):null,cg=Yi(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>k5(e.parent),$root:e=>k5(e.root),$emit:e=>e.emit,$options:e=>JE(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,YE(e.update)}),$nextTick:e=>e.n||(e.n=Pt.bind(e.proxy)),$watch:e=>CK.bind(e)}),y3=(e,t)=>e!==di&&!e.__isScriptSetup&&An(e,t),OK={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return a[t]}else{if(y3(i,t))return o[t]=1,i[t];if(r!==di&&An(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&An(u,t))return o[t]=3,a[t];if(n!==di&&An(n,t))return o[t]=4,n[t];T5&&(o[t]=0)}}const c=cg[t];let d,f;if(c)return t==="$attrs"&&fo(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==di&&An(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,An(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:a}=e;return y3(r,t)?(r[t]=n,!0):i!==di&&An(i,t)?(i[t]=n,!0):An(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:a}},o){let s;return!!n[o]||e!==di&&An(e,o)||y3(t,o)||(s=a[0])&&An(s,o)||An(i,o)||An(cg,o)||An(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:An(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zqe(){return DK().attrs}function DK(){const e=vs();return e.setupContext||(e.setupContext=EN(e))}function M_(e){return Tt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function L_(e,t){return!e||!t?e||t:Tt(e)&&Tt(t)?e.concat(t):Yi({},M_(e),M_(t))}let T5=!0;function IK(e){const t=JE(e),n=e.proxy,i=e.ctx;T5=!1,t.beforeCreate&&$9(t.beforeCreate,e,"bc");const{data:r,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:g,deactivated:v,beforeDestroy:y,beforeUnmount:_,destroyed:S,unmounted:w,render:x,renderTracked:k,renderTriggered:P,errorCaptured:E,serverPrefetch:A,expose:D,inheritAttrs:T,components:O,directives:N,filters:V}=t;if(u&&NK(u,i,null),o)for(const ne in o){const ae=o[ne];qt(ae)&&(i[ne]=ae.bind(n))}if(r){const ne=r.call(n,n);Zn(ne)&&(e.data=er(ne))}if(T5=!0,a)for(const ne in a){const ae=a[ne],Y=qt(ae)?ae.bind(n,n):qt(ae.get)?ae.get.bind(n,n):Fo,M=!qt(ae)&&qt(ae.set)?ae.set.bind(n):Fo,I=B({get:Y,set:M});Object.defineProperty(i,ne,{enumerable:!0,configurable:!0,get:()=>I.value,set:W=>I.value=W})}if(s)for(const ne in s)sN(s[ne],i,n,ne);if(l){const ne=qt(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ae=>{an(ae,ne[ae])})}c&&$9(c,e,"c");function q(ne,ae){Tt(ae)?ae.forEach(Y=>ne(Y.bind(n))):ae&&ne(ae.bind(n))}if(q(th,d),q(tn,f),q(aN,h),q(XE,m),q(ZE,g),q(g2,v),q(AK,E),q($K,k),q(PK,P),q(Ci,_),q(ys,w),q(TK,A),Tt(D))if(D.length){const ne=e.exposed||(e.exposed={});D.forEach(ae=>{Object.defineProperty(ne,ae,{get:()=>n[ae],set:Y=>n[ae]=Y})})}else e.exposed||(e.exposed={});x&&e.render===Fo&&(e.render=x),T!=null&&(e.inheritAttrs=T),O&&(e.components=O),N&&(e.directives=N)}function NK(e,t,n=Fo){Tt(e)&&(e=P5(e));for(const i in e){const r=e[i];let a;Zn(r)?"default"in r?a=kt(r.from||i,r.default,!0):a=kt(r.from||i):a=kt(r),Yn(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[i]=a}}function $9(e,t,n){fs(Tt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function sN(e,t,n,i){const r=i.includes(".")?eN(n,i):()=>n[i];if(Mi(e)){const a=t[e];qt(a)&&Ve(r,a)}else if(qt(e))Ve(r,e.bind(n));else if(Zn(e))if(Tt(e))e.forEach(a=>sN(a,t,n,i));else{const a=qt(e.handler)?e.handler.bind(n):t[e.handler];qt(a)&&Ve(r,a,e)}}function JE(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!r.length&&!n&&!i?l=t:(l={},r.length&&r.forEach(u=>R_(l,u,o,!0)),R_(l,t,o)),Zn(t)&&a.set(t,l),l}function R_(e,t,n,i=!1){const{mixins:r,extends:a}=t;a&&R_(e,a,n,!0),r&&r.forEach(o=>R_(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const s=MK[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const MK={data:A9,props:O9,emits:O9,methods:Gv,computed:Gv,beforeCreate:Ba,created:Ba,beforeMount:Ba,mounted:Ba,beforeUpdate:Ba,updated:Ba,beforeDestroy:Ba,beforeUnmount:Ba,destroyed:Ba,unmounted:Ba,activated:Ba,deactivated:Ba,errorCaptured:Ba,serverPrefetch:Ba,components:Gv,directives:Gv,watch:RK,provide:A9,inject:LK};function A9(e,t){return t?e?function(){return Yi(qt(e)?e.call(this,this):e,qt(t)?t.call(this,this):t)}:t:e}function LK(e,t){return Gv(P5(e),P5(t))}function P5(e){if(Tt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ba(e,t){return e?[...new Set([].concat(e,t))]:t}function Gv(e,t){return e?Yi(Object.create(null),e,t):t}function O9(e,t){return e?Tt(e)&&Tt(t)?[...new Set([...e,...t])]:Yi(Object.create(null),M_(e),M_(t??{})):t}function RK(e,t){if(!e)return t;if(!t)return e;const n=Yi(Object.create(null),e);for(const i in t)n[i]=Ba(e[i],t[i]);return n}function lN(){return{app:null,config:{isNativeTag:_G,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let FK=0;function VK(e,t){return function(i,r=null){qt(i)||(i=Yi({},i)),r!=null&&!Zn(r)&&(r=null);const a=lN(),o=new WeakSet;let s=!1;const l=a.app={_uid:FK++,_component:i,_props:r,_container:null,_context:a,_instance:null,version:uZ,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&qt(u.install)?(o.add(u),u.install(l,...c)):qt(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,d){if(!s){const f=C(i,r);return f.appContext=a,d===!0?d="svg":d===!1&&(d=void 0),c&&t?t(f,u):e(f,u,d),s=!0,l._container=u,u.__vue_app__=l,S2(f.component)||f.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l},runWithContext(u){const c=vp;vp=l;try{return u()}finally{vp=c}}};return l}}let vp=null;function an(e,t){if(Wr){let n=Wr.provides;const i=Wr.parent&&Wr.parent.provides;i===n&&(n=Wr.provides=Object.create(i)),n[e]=t}}function kt(e,t,n=!1){const i=Wr||yr;if(i||vp){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:vp._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&qt(t)?t.call(i&&i.proxy):t}}function BK(){return!!(Wr||yr||vp)}const uN={},cN=()=>Object.create(uN),dN=e=>Object.getPrototypeOf(e)===uN;function zK(e,t,n,i=!1){const r={},a=cN();e.propsDefaults=Object.create(null),fN(e,t,r,a);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=i?r:jI(r):e.type.props?e.props=r:e.props=a,e.attrs=a}function jK(e,t,n,i){const{props:r,attrs:a,vnode:{patchFlag:o}}=e,s=$t(r),[l]=e.propsOptions;let u=!1;if((i||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(f2(e.emitsOptions,f))continue;const h=t[f];if(l)if(An(a,f))h!==a[f]&&(a[f]=h,u=!0);else{const m=zo(f);r[m]=$5(l,s,m,h,e,!1)}else h!==a[f]&&(a[f]=h,u=!0)}}}else{fN(e,t,r,a)&&(u=!0);let c;for(const d in s)(!t||!An(t,d)&&((c=pd(d))===d||!An(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(r[d]=$5(l,s,d,void 0,e,!0)):delete r[d]);if(a!==s)for(const d in a)(!t||!An(t,d))&&(delete a[d],u=!0)}u&&Ku(e.attrs,"set","")}function fN(e,t,n,i){const[r,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(sg(l))continue;const u=t[l];let c;r&&An(r,c=zo(l))?!a||!a.includes(c)?n[c]=u:(s||(s={}))[c]=u:f2(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,o=!0)}if(a){const l=$t(n),u=s||di;for(let c=0;c<a.length;c++){const d=a[c];n[d]=$5(r,l,d,u[d],e,!An(u,d))}}return o}function $5(e,t,n,i,r,a){const o=e[n];if(o!=null){const s=An(o,"default");if(s&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&qt(l)){const{propsDefaults:u}=r;if(n in u)i=u[n];else{const c=B1(r);i=u[n]=l.call(null,t),c()}}else i=l}o[0]&&(a&&!s?i=!1:o[1]&&(i===""||i===pd(n))&&(i=!0))}return i}function hN(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const a=e.props,o={},s=[];let l=!1;if(!qt(e)){const c=d=>{l=!0;const[f,h]=hN(d,t,!0);Yi(o,f),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Zn(e)&&i.set(e,hp),hp;if(Tt(a))for(let c=0;c<a.length;c++){const d=zo(a[c]);D9(d)&&(o[d]=di)}else if(a)for(const c in a){const d=zo(c);if(D9(d)){const f=a[c],h=o[d]=Tt(f)||qt(f)?{type:f}:Yi({},f);if(h){const m=M9(Boolean,h.type),g=M9(String,h.type);h[0]=m>-1,h[1]=g<0||m<g,(m>-1||An(h,"default"))&&s.push(d)}}}const u=[o,s];return Zn(e)&&i.set(e,u),u}function D9(e){return e[0]!=="$"&&!sg(e)}function I9(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function N9(e,t){return I9(e)===I9(t)}function M9(e,t){return Tt(t)?t.findIndex(n=>N9(n,e)):qt(t)&&N9(t,e)?0:-1}const pN=e=>e[0]==="_"||e==="$stable",QE=e=>Tt(e)?e.map(Al):[Al(e)],UK=(e,t,n)=>{if(t._n)return t;const i=le((...r)=>QE(t(...r)),n);return i._c=!1,i},mN=(e,t,n)=>{const i=e._ctx;for(const r in e){if(pN(r))continue;const a=e[r];if(qt(a))t[r]=UK(r,a,i);else if(a!=null){const o=QE(a);t[r]=()=>o}}},vN=(e,t)=>{const n=QE(t);e.slots.default=()=>n},HK=(e,t)=>{const n=e.slots=cN();if(e.vnode.shapeFlag&32){const i=t._;i?(Yi(n,t),kI(n,"_",i,!0)):mN(t,n)}else t&&vN(e,t)},qK=(e,t,n)=>{const{vnode:i,slots:r}=e;let a=!0,o=di;if(i.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:(Yi(r,t),!n&&s===1&&delete r._):(a=!t.$stable,mN(t,r)),o=t}else t&&(vN(e,t),o={default:1});if(a)for(const s in r)!pN(s)&&o[s]==null&&delete r[s]};function A5(e,t,n,i,r=!1){if(Tt(e)){e.forEach((f,h)=>A5(f,t&&(Tt(t)?t[h]:t),n,i,r));return}if(ug(i)&&!r)return;const a=i.shapeFlag&4?S2(i.component)||i.component.proxy:i.el,o=r?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===di?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Mi(u)?(c[u]=null,An(d,u)&&(d[u]=null)):Yn(u)&&(u.value=null)),qt(l))Qc(l,s,12,[o,c]);else{const f=Mi(l),h=Yn(l);if(f||h){const m=()=>{if(e.f){const g=f?An(d,l)?d[l]:c[l]:l.value;r?Tt(g)&&DE(g,a):Tt(g)?g.includes(a)||g.push(a):f?(c[l]=[a],An(d,l)&&(d[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,An(d,l)&&(d[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,ao(m,n)):m()}}}const ao=_K;function YK(e){return WK(e)}function WK(e,t){const n=TI();n.__VUE__=!0;const{insert:i,remove:r,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Fo,insertStaticContent:m}=e,g=(Z,X,ye,Se=null,Ee=null,_e=null,be=void 0,ie=null,se=!!X.dynamicChildren)=>{if(Z===X)return;Z&&!nf(Z,X)&&(Se=ee(Z),W(Z,Ee,_e,!0),Z=null),X.patchFlag===-2&&(se=!1,X.dynamicChildren=null);const{type:de,ref:xe,shapeFlag:Re}=X;switch(de){case vm:v(Z,X,ye,Se);break;case co:y(Z,X,ye,Se);break;case q0:Z==null&&_(X,ye,Se,be);break;case Ue:O(Z,X,ye,Se,Ee,_e,be,ie,se);break;default:Re&1?x(Z,X,ye,Se,Ee,_e,be,ie,se):Re&6?N(Z,X,ye,Se,Ee,_e,be,ie,se):(Re&64||Re&128)&&de.process(Z,X,ye,Se,Ee,_e,be,ie,se,pe)}xe!=null&&Ee&&A5(xe,Z&&Z.ref,_e,X||Z,!X)},v=(Z,X,ye,Se)=>{if(Z==null)i(X.el=s(X.children),ye,Se);else{const Ee=X.el=Z.el;X.children!==Z.children&&u(Ee,X.children)}},y=(Z,X,ye,Se)=>{Z==null?i(X.el=l(X.children||""),ye,Se):X.el=Z.el},_=(Z,X,ye,Se)=>{[Z.el,Z.anchor]=m(Z.children,X,ye,Se,Z.el,Z.anchor)},S=({el:Z,anchor:X},ye,Se)=>{let Ee;for(;Z&&Z!==X;)Ee=f(Z),i(Z,ye,Se),Z=Ee;i(X,ye,Se)},w=({el:Z,anchor:X})=>{let ye;for(;Z&&Z!==X;)ye=f(Z),r(Z),Z=ye;r(X)},x=(Z,X,ye,Se,Ee,_e,be,ie,se)=>{X.type==="svg"?be="svg":X.type==="math"&&(be="mathml"),Z==null?k(X,ye,Se,Ee,_e,be,ie,se):A(Z,X,Ee,_e,be,ie,se)},k=(Z,X,ye,Se,Ee,_e,be,ie)=>{let se,de;const{props:xe,shapeFlag:Re,transition:Pe,dirs:we}=Z;if(se=Z.el=o(Z.type,_e,xe&&xe.is,xe),Re&8?c(se,Z.children):Re&16&&E(Z.children,se,null,Se,Ee,_3(Z,_e),be,ie),we&&Od(Z,null,Se,"created"),P(se,Z,Z.scopeId,be,Se),xe){for(const Ie in xe)Ie!=="value"&&!sg(Ie)&&a(se,Ie,null,xe[Ie],_e,Z.children,Se,Ee,U);"value"in xe&&a(se,"value",null,xe.value,_e),(de=xe.onVnodeBeforeMount)&&Cl(de,Se,Z)}we&&Od(Z,null,Se,"beforeMount");const Ae=GK(Ee,Pe);Ae&&Pe.beforeEnter(se),i(se,X,ye),((de=xe&&xe.onVnodeMounted)||Ae||we)&&ao(()=>{de&&Cl(de,Se,Z),Ae&&Pe.enter(se),we&&Od(Z,null,Se,"mounted")},Ee)},P=(Z,X,ye,Se,Ee)=>{if(ye&&h(Z,ye),Se)for(let _e=0;_e<Se.length;_e++)h(Z,Se[_e]);if(Ee){let _e=Ee.subTree;if(X===_e){const be=Ee.vnode;P(Z,be,be.scopeId,be.slotScopeIds,Ee.parent)}}},E=(Z,X,ye,Se,Ee,_e,be,ie,se=0)=>{for(let de=se;de<Z.length;de++){const xe=Z[de]=ie?Ac(Z[de]):Al(Z[de]);g(null,xe,X,ye,Se,Ee,_e,be,ie)}},A=(Z,X,ye,Se,Ee,_e,be)=>{const ie=X.el=Z.el;let{patchFlag:se,dynamicChildren:de,dirs:xe}=X;se|=Z.patchFlag&16;const Re=Z.props||di,Pe=X.props||di;let we;if(ye&&Dd(ye,!1),(we=Pe.onVnodeBeforeUpdate)&&Cl(we,ye,X,Z),xe&&Od(X,Z,ye,"beforeUpdate"),ye&&Dd(ye,!0),de?D(Z.dynamicChildren,de,ie,ye,Se,_3(X,Ee),_e):be||ae(Z,X,ie,null,ye,Se,_3(X,Ee),_e,!1),se>0){if(se&16)T(ie,X,Re,Pe,ye,Se,Ee);else if(se&2&&Re.class!==Pe.class&&a(ie,"class",null,Pe.class,Ee),se&4&&a(ie,"style",Re.style,Pe.style,Ee),se&8){const Ae=X.dynamicProps;for(let Ie=0;Ie<Ae.length;Ie++){const Ye=Ae[Ie],rt=Re[Ye],Ot=Pe[Ye];(Ot!==rt||Ye==="value")&&a(ie,Ye,rt,Ot,Ee,Z.children,ye,Se,U)}}se&1&&Z.children!==X.children&&c(ie,X.children)}else!be&&de==null&&T(ie,X,Re,Pe,ye,Se,Ee);((we=Pe.onVnodeUpdated)||xe)&&ao(()=>{we&&Cl(we,ye,X,Z),xe&&Od(X,Z,ye,"updated")},Se)},D=(Z,X,ye,Se,Ee,_e,be)=>{for(let ie=0;ie<X.length;ie++){const se=Z[ie],de=X[ie],xe=se.el&&(se.type===Ue||!nf(se,de)||se.shapeFlag&70)?d(se.el):ye;g(se,de,xe,null,Se,Ee,_e,be,!0)}},T=(Z,X,ye,Se,Ee,_e,be)=>{if(ye!==Se){if(ye!==di)for(const ie in ye)!sg(ie)&&!(ie in Se)&&a(Z,ie,ye[ie],null,be,X.children,Ee,_e,U);for(const ie in Se){if(sg(ie))continue;const se=Se[ie],de=ye[ie];se!==de&&ie!=="value"&&a(Z,ie,de,se,be,X.children,Ee,_e,U)}"value"in Se&&a(Z,"value",ye.value,Se.value,be)}},O=(Z,X,ye,Se,Ee,_e,be,ie,se)=>{const de=X.el=Z?Z.el:s(""),xe=X.anchor=Z?Z.anchor:s("");let{patchFlag:Re,dynamicChildren:Pe,slotScopeIds:we}=X;we&&(ie=ie?ie.concat(we):we),Z==null?(i(de,ye,Se),i(xe,ye,Se),E(X.children||[],ye,xe,Ee,_e,be,ie,se)):Re>0&&Re&64&&Pe&&Z.dynamicChildren?(D(Z.dynamicChildren,Pe,ye,Ee,_e,be,ie),(X.key!=null||Ee&&X===Ee.subTree)&&ex(Z,X,!0)):ae(Z,X,ye,xe,Ee,_e,be,ie,se)},N=(Z,X,ye,Se,Ee,_e,be,ie,se)=>{X.slotScopeIds=ie,Z==null?X.shapeFlag&512?Ee.ctx.activate(X,ye,Se,be,se):V(X,ye,Se,Ee,_e,be,se):j(Z,X,se)},V=(Z,X,ye,Se,Ee,_e,be)=>{const ie=Z.component=iZ(Z,Se,Ee);if(v2(Z)&&(ie.ctx.renderer=pe),rZ(ie),ie.asyncDep){if(Ee&&Ee.registerDep(ie,q),!Z.el){const se=ie.subTree=C(co);y(null,se,X,ye)}}else q(ie,Z,X,ye,Ee,_e,be)},j=(Z,X,ye)=>{const Se=X.component=Z.component;if(pK(Z,X,ye))if(Se.asyncDep&&!Se.asyncResolved){ne(Se,X,ye);return}else Se.next=X,lK(Se.update),Se.effect.dirty=!0,Se.update();else X.el=Z.el,Se.vnode=X},q=(Z,X,ye,Se,Ee,_e,be)=>{const ie=()=>{if(Z.isMounted){let{next:xe,bu:Re,u:Pe,parent:we,vnode:Ae}=Z;{const $n=gN(Z);if($n){xe&&(xe.el=Ae.el,ne(Z,xe,be)),$n.asyncDep.then(()=>{Z.isUnmounted||ie()});return}}let Ie=xe,Ye;Dd(Z,!1),xe?(xe.el=Ae.el,ne(Z,xe,be)):xe=Ae,Re&&H0(Re),(Ye=xe.props&&xe.props.onVnodeBeforeUpdate)&&Cl(Ye,we,xe,Ae),Dd(Z,!0);const rt=v3(Z),Ot=Z.subTree;Z.subTree=rt,g(Ot,rt,d(Ot.el),ee(Ot),Z,Ee,_e),xe.el=rt.el,Ie===null&&mK(Z,rt.el),Pe&&ao(Pe,Ee),(Ye=xe.props&&xe.props.onVnodeUpdated)&&ao(()=>Cl(Ye,we,xe,Ae),Ee)}else{let xe;const{el:Re,props:Pe}=X,{bm:we,m:Ae,parent:Ie}=Z,Ye=ug(X);if(Dd(Z,!1),we&&H0(we),!Ye&&(xe=Pe&&Pe.onVnodeBeforeMount)&&Cl(xe,Ie,X),Dd(Z,!0),Re&&Te){const rt=()=>{Z.subTree=v3(Z),Te(Re,Z.subTree,Z,Ee,null)};Ye?X.type.__asyncLoader().then(()=>!Z.isUnmounted&&rt()):rt()}else{const rt=Z.subTree=v3(Z);g(null,rt,ye,Se,Z,Ee,_e),X.el=rt.el}if(Ae&&ao(Ae,Ee),!Ye&&(xe=Pe&&Pe.onVnodeMounted)){const rt=X;ao(()=>Cl(xe,Ie,rt),Ee)}(X.shapeFlag&256||Ie&&ug(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&Z.a&&ao(Z.a,Ee),Z.isMounted=!0,X=ye=Se=null}},se=Z.effect=new RE(ie,Fo,()=>YE(de),Z.scope),de=Z.update=()=>{se.dirty&&se.run()};de.id=Z.uid,Dd(Z,!0),de()},ne=(Z,X,ye)=>{X.component=Z;const Se=Z.vnode.props;Z.vnode=X,Z.next=null,jK(Z,X.props,Se,ye),qK(Z,X.children,ye),md(),x9(Z),vd()},ae=(Z,X,ye,Se,Ee,_e,be,ie,se=!1)=>{const de=Z&&Z.children,xe=Z?Z.shapeFlag:0,Re=X.children,{patchFlag:Pe,shapeFlag:we}=X;if(Pe>0){if(Pe&128){M(de,Re,ye,Se,Ee,_e,be,ie,se);return}else if(Pe&256){Y(de,Re,ye,Se,Ee,_e,be,ie,se);return}}we&8?(xe&16&&U(de,Ee,_e),Re!==de&&c(ye,Re)):xe&16?we&16?M(de,Re,ye,Se,Ee,_e,be,ie,se):U(de,Ee,_e,!0):(xe&8&&c(ye,""),we&16&&E(Re,ye,Se,Ee,_e,be,ie,se))},Y=(Z,X,ye,Se,Ee,_e,be,ie,se)=>{Z=Z||hp,X=X||hp;const de=Z.length,xe=X.length,Re=Math.min(de,xe);let Pe;for(Pe=0;Pe<Re;Pe++){const we=X[Pe]=se?Ac(X[Pe]):Al(X[Pe]);g(Z[Pe],we,ye,null,Ee,_e,be,ie,se)}de>xe?U(Z,Ee,_e,!0,!1,Re):E(X,ye,Se,Ee,_e,be,ie,se,Re)},M=(Z,X,ye,Se,Ee,_e,be,ie,se)=>{let de=0;const xe=X.length;let Re=Z.length-1,Pe=xe-1;for(;de<=Re&&de<=Pe;){const we=Z[de],Ae=X[de]=se?Ac(X[de]):Al(X[de]);if(nf(we,Ae))g(we,Ae,ye,null,Ee,_e,be,ie,se);else break;de++}for(;de<=Re&&de<=Pe;){const we=Z[Re],Ae=X[Pe]=se?Ac(X[Pe]):Al(X[Pe]);if(nf(we,Ae))g(we,Ae,ye,null,Ee,_e,be,ie,se);else break;Re--,Pe--}if(de>Re){if(de<=Pe){const we=Pe+1,Ae=we<xe?X[we].el:Se;for(;de<=Pe;)g(null,X[de]=se?Ac(X[de]):Al(X[de]),ye,Ae,Ee,_e,be,ie,se),de++}}else if(de>Pe)for(;de<=Re;)W(Z[de],Ee,_e,!0),de++;else{const we=de,Ae=de,Ie=new Map;for(de=Ae;de<=Pe;de++){const dt=X[de]=se?Ac(X[de]):Al(X[de]);dt.key!=null&&Ie.set(dt.key,de)}let Ye,rt=0;const Ot=Pe-Ae+1;let $n=!1,jt=0;const Fn=new Array(Ot);for(de=0;de<Ot;de++)Fn[de]=0;for(de=we;de<=Re;de++){const dt=Z[de];if(rt>=Ot){W(dt,Ee,_e,!0);continue}let ft;if(dt.key!=null)ft=Ie.get(dt.key);else for(Ye=Ae;Ye<=Pe;Ye++)if(Fn[Ye-Ae]===0&&nf(dt,X[Ye])){ft=Ye;break}ft===void 0?W(dt,Ee,_e,!0):(Fn[ft-Ae]=de+1,ft>=jt?jt=ft:$n=!0,g(dt,X[ft],ye,null,Ee,_e,be,ie,se),rt++)}const at=$n?KK(Fn):hp;for(Ye=at.length-1,de=Ot-1;de>=0;de--){const dt=Ae+de,ft=X[dt],Kt=dt+1<xe?X[dt+1].el:Se;Fn[de]===0?g(null,ft,ye,Kt,Ee,_e,be,ie,se):$n&&(Ye<0||de!==at[Ye]?I(ft,ye,Kt,2):Ye--)}}},I=(Z,X,ye,Se,Ee=null)=>{const{el:_e,type:be,transition:ie,children:se,shapeFlag:de}=Z;if(de&6){I(Z.component.subTree,X,ye,Se);return}if(de&128){Z.suspense.move(X,ye,Se);return}if(de&64){be.move(Z,X,ye,pe);return}if(be===Ue){i(_e,X,ye);for(let Re=0;Re<se.length;Re++)I(se[Re],X,ye,Se);i(Z.anchor,X,ye);return}if(be===q0){S(Z,X,ye);return}if(Se!==2&&de&1&&ie)if(Se===0)ie.beforeEnter(_e),i(_e,X,ye),ao(()=>ie.enter(_e),Ee);else{const{leave:Re,delayLeave:Pe,afterLeave:we}=ie,Ae=()=>i(_e,X,ye),Ie=()=>{Re(_e,()=>{Ae(),we&&we()})};Pe?Pe(_e,Ae,Ie):Ie()}else i(_e,X,ye)},W=(Z,X,ye,Se=!1,Ee=!1)=>{const{type:_e,props:be,ref:ie,children:se,dynamicChildren:de,shapeFlag:xe,patchFlag:Re,dirs:Pe}=Z;if(ie!=null&&A5(ie,null,ye,Z,!0),xe&256){X.ctx.deactivate(Z);return}const we=xe&1&&Pe,Ae=!ug(Z);let Ie;if(Ae&&(Ie=be&&be.onVnodeBeforeUnmount)&&Cl(Ie,X,Z),xe&6)oe(Z.component,ye,Se);else{if(xe&128){Z.suspense.unmount(ye,Se);return}we&&Od(Z,null,X,"beforeUnmount"),xe&64?Z.type.remove(Z,X,ye,Ee,pe,Se):de&&(_e!==Ue||Re>0&&Re&64)?U(de,X,ye,!1,!0):(_e===Ue&&Re&384||!Ee&&xe&16)&&U(se,X,ye),Se&&te(Z)}(Ae&&(Ie=be&&be.onVnodeUnmounted)||we)&&ao(()=>{Ie&&Cl(Ie,X,Z),we&&Od(Z,null,X,"unmounted")},ye)},te=Z=>{const{type:X,el:ye,anchor:Se,transition:Ee}=Z;if(X===Ue){he(ye,Se);return}if(X===q0){w(Z);return}const _e=()=>{r(ye),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(Z.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:be,delayLeave:ie}=Ee,se=()=>be(ye,_e);ie?ie(Z.el,_e,se):se()}else _e()},he=(Z,X)=>{let ye;for(;Z!==X;)ye=f(Z),r(Z),Z=ye;r(X)},oe=(Z,X,ye)=>{const{bum:Se,scope:Ee,update:_e,subTree:be,um:ie}=Z;Se&&H0(Se),Ee.stop(),_e&&(_e.active=!1,W(be,Z,X,ye)),ie&&ao(ie,X),ao(()=>{Z.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&Z.asyncDep&&!Z.asyncResolved&&Z.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},U=(Z,X,ye,Se=!1,Ee=!1,_e=0)=>{for(let be=_e;be<Z.length;be++)W(Z[be],X,ye,Se,Ee)},ee=Z=>Z.shapeFlag&6?ee(Z.component.subTree):Z.shapeFlag&128?Z.suspense.next():f(Z.anchor||Z.el);let re=!1;const ue=(Z,X,ye)=>{Z==null?X._vnode&&W(X._vnode,null,null,!0):g(X._vnode||null,Z,X,null,null,null,ye),re||(re=!0,x9(),ZI(),re=!1),X._vnode=Z},pe={p:g,um:W,m:I,r:te,mt:V,mc:E,pc:ae,pbc:D,n:ee,o:e};let ge,Te;return t&&([ge,Te]=t(pe)),{render:ue,hydrate:ge,createApp:VK(ue,ge)}}function _3({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Dd({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function GK(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ex(e,t,n=!1){const i=e.children,r=t.children;if(Tt(i)&&Tt(r))for(let a=0;a<i.length;a++){const o=i[a];let s=r[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=r[a]=Ac(r[a]),s.el=o.el),n||ex(o,s)),s.type===vm&&(s.el=o.el)}}function KK(e){const t=e.slice(),n=[0];let i,r,a,o,s;const l=e.length;for(i=0;i<l;i++){const u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<u?a=s+1:o=s;u<e[n[a]]&&(a>0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function gN(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gN(t)}const ZK=e=>e.__isTeleport,dg=e=>e&&(e.disabled||e.disabled===""),L9=e=>typeof SVGElement<"u"&&e instanceof SVGElement,R9=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,O5=(e,t)=>{const n=e&&e.to;return Mi(n)?t?t(n):null:n},XK={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,a,o,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:g,createComment:v}}=u,y=dg(t.props);let{shapeFlag:_,children:S,dynamicChildren:w}=t;if(e==null){const x=t.el=g(""),k=t.anchor=g("");h(x,n,i),h(k,n,i);const P=t.target=O5(t.props,m),E=t.targetAnchor=g("");P&&(h(E,P),o==="svg"||L9(P)?o="svg":(o==="mathml"||R9(P))&&(o="mathml"));const A=(D,T)=>{_&16&&c(S,D,T,r,a,o,s,l)};y?A(n,k):P&&A(P,E)}else{t.el=e.el;const x=t.anchor=e.anchor,k=t.target=e.target,P=t.targetAnchor=e.targetAnchor,E=dg(e.props),A=E?n:k,D=E?x:P;if(o==="svg"||L9(k)?o="svg":(o==="mathml"||R9(k))&&(o="mathml"),w?(f(e.dynamicChildren,w,A,r,a,o,s),ex(e,t,!0)):l||d(e,t,A,D,r,a,o,s,!1),y)E?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Uy(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=O5(t.props,m);T&&Uy(t,T,null,u,0)}else E&&Uy(t,k,P,u,1)}_N(t)},remove(e,t,n,i,{um:r,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&a(c),o&&a(u),s&16){const h=o||!dg(f);for(let m=0;m<l.length;m++){const g=l[m];r(g,t,n,h,!!g.dynamicChildren)}}},move:Uy,hydrate:JK};function Uy(e,t,n,{o:{insert:i},m:r},a=2){a===0&&i(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=a===2;if(d&&i(o,t,n),(!d||dg(c))&&l&16)for(let f=0;f<u.length;f++)r(u[f],t,n,2);d&&i(s,t,n)}function JK(e,t,n,i,r,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=O5(t.props,l);if(c){const d=c._lpa||c.firstChild;if(t.shapeFlag&16)if(dg(t.props))t.anchor=u(o(e),t,s(e),n,i,r,a),t.targetAnchor=d;else{t.anchor=o(e);let f=d;for(;f;)if(f=o(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(d,t,c,n,i,r,a)}_N(t)}return t.anchor&&o(t.anchor)}const yN=XK;function _N(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ue=Symbol.for("v-fgt"),vm=Symbol.for("v-txt"),co=Symbol.for("v-cmt"),q0=Symbol.for("v-stc"),fg=[];let Js=null;function J(e=!1){fg.push(Js=e?null:[])}function QK(){fg.pop(),Js=fg[fg.length-1]||null}let jg=1;function F9(e){jg+=e}function bN(e){return e.dynamicChildren=jg>0?Js||hp:null,QK(),jg>0&&Js&&Js.push(e),e}function ve(e,t,n,i,r,a){return bN(F(e,t,n,i,r,a,!0))}function je(e,t,n,i,r){return bN(C(e,t,n,i,r,!0))}function Ug(e){return e?e.__v_isVNode===!0:!1}function nf(e,t){return e.type===t.type&&e.key===t.key}const wN=({key:e})=>e??null,Y0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mi(e)||Yn(e)||qt(e)?{i:yr,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,i=0,r=null,a=e===Ue?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wN(t),ref:t&&Y0(t),scopeId:h2,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:yr};return s?(tx(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=Mi(n)?8:16),jg>0&&!o&&Js&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Js.push(l),l}const C=eZ;function eZ(e,t=null,n=null,i=0,r=null,a=!1){if((!e||e===QI)&&(e=co),Ug(e)){const s=tc(e,t,!0);return n&&tx(s,n),jg>0&&!a&&Js&&(s.shapeFlag&6?Js[Js.indexOf(e)]=s:Js.push(s)),s.patchFlag|=-2,s}if(lZ(e)&&(e=e.__vccOpts),t){t=_2(t);let{class:s,style:l}=t;s&&!Mi(s)&&(t.class=Gt(s)),Zn(l)&&(UI(l)&&!Tt(l)&&(l=Yi({},l)),t.style=pa(l))}const o=Mi(e)?1:yK(e)?128:ZK(e)?64:Zn(e)?4:qt(e)?2:0;return F(e,t,n,i,r,o,a,!0)}function _2(e){return e?UI(e)||dN(e)?Yi({},e):e:null}function tc(e,t,n=!1,i=!1){const{props:r,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Me(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&wN(u),ref:t&&t.ref?n&&a?Tt(a)?a.concat(Y0(t)):[a,Y0(t)]:Y0(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tc(e.ssContent),ssFallback:e.ssFallback&&tc(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&(c.transition=l.clone(c)),c}function Ze(e=" ",t=0){return C(vm,null,e,t)}function b2(e,t){const n=C(q0,null,e);return n.staticCount=t,n}function De(e="",t=!1){return t?(J(),je(co,null,e)):C(co,null,e)}function Al(e){return e==null||typeof e=="boolean"?C(co):Tt(e)?C(Ue,null,e.slice()):typeof e=="object"?Ac(e):C(vm,null,String(e))}function Ac(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tc(e)}function tx(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Tt(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),tx(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!dN(t)?t._ctx=yr:r===3&&yr&&(yr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qt(t)?(t={default:t,_ctx:yr},n=32):(t=String(t),i&64?(n=16,t=[Ze(t)]):n=8);e.children=t,e.shapeFlag|=n}function Me(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Gt([t.class,i.class]));else if(r==="style")t.style=pa([t.style,i.style]);else if(l2(r)){const a=t[r],o=i[r];o&&a!==o&&!(Tt(a)&&a.includes(o))&&(t[r]=a?[].concat(a,o):o)}else r!==""&&(t[r]=i[r])}return t}function Cl(e,t,n,i=null){fs(e,t,7,[n,i])}const tZ=lN();let nZ=0;function iZ(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||tZ,a={uid:nZ++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new AI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hN(i,r),emitsOptions:JI(i,r),emit:null,emitted:null,propsDefaults:di,inheritAttrs:i.inheritAttrs,ctx:di,data:di,props:di,attrs:di,slots:di,refs:di,setupState:di,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=dK.bind(null,a),e.ce&&e.ce(a),a}let Wr=null;const vs=()=>Wr||yr;let F_,D5;{const e=TI(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),a=>{r.length>1?r.forEach(o=>o(a)):r[0](a)}};F_=t("__VUE_INSTANCE_SETTERS__",n=>Wr=n),D5=t("__VUE_SSR_SETTERS__",n=>w2=n)}const B1=e=>{const t=Wr;return F_(e),e.scope.on(),()=>{e.scope.off(),F_(t)}},V9=()=>{Wr&&Wr.scope.off(),F_(null)};function SN(e){return e.vnode.shapeFlag&4}let w2=!1;function rZ(e,t=!1){t&&D5(t);const{props:n,children:i}=e.vnode,r=SN(e);zK(e,n,r,t),HK(e,i);const a=r?aZ(e,t):void 0;return t&&D5(!1),a}function aZ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,OK);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?EN(e):null,a=B1(e);md();const o=Qc(i,e,0,[e.props,r]);if(vd(),a(),CI(o)){if(o.then(V9,V9),t)return o.then(s=>{B9(e,s,t)}).catch(s=>{d2(s,e,0)});e.asyncDep=o}else B9(e,o,t)}else CN(e,t)}function B9(e,t,n){qt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Zn(t)&&(e.setupState=YI(t)),CN(e,n)}let z9;function CN(e,t,n){const i=e.type;if(!e.render){if(!t&&z9&&!i.render){const r=i.template||JE(e).template;if(r){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=i,u=Yi(Yi({isCustomElement:a,delimiters:s},o),l);i.render=z9(r,u)}}e.render=i.render||Fo}{const r=B1(e);md();try{IK(e)}finally{vd(),r()}}}const oZ={get(e,t){return fo(e,"get",""),e[t]}};function EN(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,oZ),slots:e.slots,emit:e.emit,expose:t}}function S2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(YI(eu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cg)return cg[n](e)},has(t,n){return n in t||n in cg}}))}function sZ(e,t=!0){return qt(e)?e.displayName||e.name:e.name||t&&e.__name}function lZ(e){return qt(e)&&"__vccOpts"in e}const B=(e,t)=>QG(e,t,w2);function Hg(e,t,n=di){const i=vs(),r=zo(t),a=pd(t),o=iK((l,u)=>{let c;return SK(()=>{const d=e[t];Wl(c,d)&&(c=d,u())}),{get(){return l(),n.get?n.get(c):c},set(d){const f=i.vnode.props;!(f&&(t in f||r in f||a in f)&&(`onUpdate:${t}`in f||`onUpdate:${r}`in f||`onUpdate:${a}`in f))&&Wl(d,c)&&(c=d,u()),i.emit(`update:${t}`,n.set?n.set(d):d)}}}),s=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[s]||{}:o,done:!1}:{done:!0}}}},o}function vi(e,t,n){const i=arguments.length;return i===2?Zn(t)&&!Tt(t)?Ug(t)?C(e,null,[t]):C(e,t):C(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ug(n)&&(n=[n]),C(e,t,n))}const uZ="3.4.27";/** * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const cZ="http://www.w3.org/2000/svg",dZ="http://www.w3.org/1998/Math/MathML",Oc=typeof document<"u"?document:null,j9=Oc&&Oc.createElement("template"),fZ={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t==="svg"?Oc.createElementNS(cZ,e):t==="mathml"?Oc.createElementNS(dZ,e):Oc.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Oc.createTextNode(e),createComment:e=>Oc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,a){const o=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===a||!(r=r.nextSibling)););else{j9.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const s=j9.content;if(i==="svg"||i==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sc="transition",tv="animation",Bp=Symbol("_vtc"),Gl=(e,{slots:t})=>vi(xK,kN(e),t);Gl.displayName="Transition";const xN={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hZ=Gl.props=Yi({},nN,xN),Id=(e,t=[])=>{Tt(e)?e.forEach(n=>n(...t)):e&&e(...t)},U9=e=>e?Tt(e)?e.some(t=>t.length>1):e.length>1:!1;function kN(e){const t={};for(const O in e)O in xN||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:i,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=pZ(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:S,onLeave:w,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:P=_,onAppearCancelled:E=S}=t,A=(O,N,V)=>{kc(O,N?c:s),kc(O,N?u:o),V&&V()},D=(O,N)=>{O._isLeaving=!1,kc(O,d),kc(O,h),kc(O,f),N&&N()},T=O=>(N,V)=>{const j=O?P:_,q=()=>A(N,O,V);Id(j,[N,q]),H9(()=>{kc(N,O?l:a),Du(N,O?c:s),U9(j)||q9(N,i,g,q)})};return Yi(t,{onBeforeEnter(O){Id(y,[O]),Du(O,a),Du(O,o)},onBeforeAppear(O){Id(k,[O]),Du(O,l),Du(O,u)},onEnter:T(!1),onAppear:T(!0),onLeave(O,N){O._isLeaving=!0;const V=()=>D(O,N);Du(O,d),Du(O,f),PN(),H9(()=>{O._isLeaving&&(kc(O,d),Du(O,h),U9(w)||q9(O,i,v,V))}),Id(w,[O,V])},onEnterCancelled(O){A(O,!1),Id(S,[O])},onAppearCancelled(O){A(O,!0),Id(E,[O])},onLeaveCancelled(O){D(O),Id(x,[O])}})}function pZ(e){if(e==null)return null;if(Zn(e))return[b3(e.enter),b3(e.leave)];{const t=b3(e);return[t,t]}}function b3(e){return EG(e)}function Du(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bp]||(e[Bp]=new Set)).add(t)}function kc(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[Bp];n&&(n.delete(t),n.size||(e[Bp]=void 0))}function H9(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mZ=0;function q9(e,t,n,i){const r=e._endId=++mZ,a=()=>{r===e._endId&&i()};if(n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=TN(e,t);if(!o)return i();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function TN(e,t){const n=window.getComputedStyle(e),i=m=>(n[m]||"").split(", "),r=i(`${Sc}Delay`),a=i(`${Sc}Duration`),o=Y9(r,a),s=i(`${tv}Delay`),l=i(`${tv}Duration`),u=Y9(s,l);let c=null,d=0,f=0;t===Sc?o>0&&(c=Sc,d=o,f=a.length):t===tv?u>0&&(c=tv,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?Sc:tv:null,f=c?c===Sc?a.length:l.length:0);const h=c===Sc&&/\b(transform|all)(,|$)/.test(i(`${Sc}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Y9(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>W9(n)+W9(e[i])))}function W9(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function PN(){return document.body.offsetHeight}function vZ(e,t,n){const i=e[Bp];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const V_=Symbol("_vod"),$N=Symbol("_vsh"),hn={beforeMount(e,{value:t},{transition:n}){e[V_]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):nv(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),nv(e,!0),i.enter(e)):i.leave(e,()=>{nv(e,!1)}):nv(e,t))},beforeUnmount(e,{value:t}){nv(e,t)}};function nv(e,t){e.style.display=t?e[V_]:"none",e[$N]=!t}const gZ=Symbol(""),yZ=/(^|;)\s*display\s*:/;function _Z(e,t,n){const i=e.style,r=Mi(n);let a=!1;if(n&&!r){if(t)if(Mi(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&W0(i,s,"")}else for(const o in t)n[o]==null&&W0(i,o,"");for(const o in n)o==="display"&&(a=!0),W0(i,o,n[o])}else if(r){if(t!==n){const o=i[gZ];o&&(n+=";"+o),i.cssText=n,a=yZ.test(n)}}else t&&e.removeAttribute("style");V_ in e&&(e[V_]=a?i.display:"",e[$N]&&(i.display="none"))}const G9=/\s*!important$/;function W0(e,t,n){if(Tt(n))n.forEach(i=>W0(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=bZ(e,t);G9.test(n)?e.setProperty(pd(i),n.replace(G9,""),"important"):e[i]=n}}const K9=["Webkit","Moz","ms"],w3={};function bZ(e,t){const n=w3[t];if(n)return n;let i=zo(t);if(i!=="filter"&&i in e)return w3[t]=i;i=Ql(i);for(let r=0;r<K9.length;r++){const a=K9[r]+i;if(a in e)return w3[t]=a}return t}const Z9="http://www.w3.org/1999/xlink";function wZ(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Z9,t.slice(6,t.length)):e.setAttributeNS(Z9,t,n);else{const a=AG(t);n==null||a&&!PI(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function SZ(e,t,n,i,r,a,o){if(t==="innerHTML"||t==="textContent"){i&&o(i,r,a),e[t]=n??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const u=s==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(u!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=PI(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function ju(e,t,n,i){e.addEventListener(t,n,i)}function CZ(e,t,n,i){e.removeEventListener(t,n,i)}const X9=Symbol("_vei");function EZ(e,t,n,i,r=null){const a=e[X9]||(e[X9]={}),o=a[t];if(i&&o)o.value=i;else{const[s,l]=xZ(t);if(i){const u=a[t]=PZ(i,r);ju(e,s,u,l)}else o&&(CZ(e,s,o,l),a[t]=void 0)}}const J9=/(?:Once|Passive|Capture)$/;function xZ(e){let t;if(J9.test(e)){t={};let i;for(;i=e.match(J9);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):pd(e.slice(2)),t]}let S3=0;const kZ=Promise.resolve(),TZ=()=>S3||(kZ.then(()=>S3=0),S3=Date.now());function PZ(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;fs($Z(i,n.value),t,5,[i])};return n.value=e,n.attached=TZ(),n}function $Z(e,t){if(Tt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Q9=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AZ=(e,t,n,i,r,a,o,s,l)=>{const u=r==="svg";t==="class"?vZ(e,i,u):t==="style"?_Z(e,n,i):l2(t)?OE(t)||EZ(e,t,n,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):OZ(e,t,i,u))?SZ(e,t,i,a,o,s,l):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),wZ(e,t,i,u))};function OZ(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Q9(t)&&qt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Q9(t)&&Mi(n)?!1:t in e}const AN=new WeakMap,ON=new WeakMap,B_=Symbol("_moveCb"),e6=Symbol("_enterCb"),DN={name:"TransitionGroup",props:Yi({},hZ,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vs(),i=tN();let r,a;return XE(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!LZ(r[0].el,n.vnode.el,o))return;r.forEach(IZ),r.forEach(NZ);const s=r.filter(MZ);PN(),s.forEach(l=>{const u=l.el,c=u.style;Du(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[B_]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[B_]=null,kc(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=$t(e),s=kN(o);let l=o.tag||Ue;if(r=[],a)for(let u=0;u<a.length;u++){const c=a[u];c.el&&c.el instanceof Element&&(r.push(c),Bg(c,Vg(c,s,i,n)),AN.set(c,c.el.getBoundingClientRect()))}a=t.default?KE(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&Bg(c,Vg(c,s,i,n))}return C(l,null,a)}}},DZ=e=>delete e.mode;DN.props;const nx=DN;function IZ(e){const t=e.el;t[B_]&&t[B_](),t[e6]&&t[e6]()}function NZ(e){ON.set(e,e.el.getBoundingClientRect())}function MZ(e){const t=AN.get(e),n=ON.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${i}px,${r}px)`,a.transitionDuration="0s",e}}function LZ(e,t,n){const i=e.cloneNode(),r=e[Bp];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(i);const{hasTransform:o}=TN(i);return a.removeChild(i),o}const rd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Tt(t)?n=>H0(t,n):t};function RZ(e){e.target.composing=!0}function t6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hs=Symbol("_assign"),Tf={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[hs]=rd(r);const a=i||r.props&&r.props.type==="number";ju(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),a&&(s=O_(s)),e[hs](s)}),n&&ju(e,"change",()=>{e.value=e.value.trim()}),t||(ju(e,"compositionstart",RZ),ju(e,"compositionend",t6),ju(e,"change",t6))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},a){if(e[hs]=rd(a),e.composing)return;const o=(r||e.type==="number")&&!/^0\d/.test(e.value)?O_(e.value):e.value,s=t??"";o!==s&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===s)||(e.value=s))}},FZ={deep:!0,created(e,t,n){e[hs]=rd(n),ju(e,"change",()=>{const i=e._modelValue,r=zp(e),a=e.checked,o=e[hs];if(Tt(i)){const s=ME(i,r),l=s!==-1;if(a&&!l)o(i.concat(r));else if(!a&&l){const u=[...i];u.splice(s,1),o(u)}}else if(hm(i)){const s=new Set(i);a?s.add(r):s.delete(r),o(s)}else o(IN(e,a))})},mounted:n6,beforeUpdate(e,t,n){e[hs]=rd(n),n6(e,t,n)}};function n6(e,{value:t,oldValue:n},i){e._modelValue=t,Tt(t)?e.checked=ME(t,i.props.value)>-1:hm(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Bf(t,IN(e,!0)))}const VZ={created(e,{value:t},n){e.checked=Bf(t,n.props.value),e[hs]=rd(n),ju(e,"change",()=>{e[hs](zp(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[hs]=rd(i),t!==n&&(e.checked=Bf(t,i.props.value))}},BZ={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=hm(t);ju(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?O_(zp(o)):zp(o));e[hs](e.multiple?r?new Set(a):a:a[0]),e._assigning=!0,Pt(()=>{e._assigning=!1})}),e[hs]=rd(i)},mounted(e,{value:t,modifiers:{number:n}}){i6(e,t)},beforeUpdate(e,t,n){e[hs]=rd(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||i6(e,t)}};function i6(e,t,n){const i=e.multiple,r=Tt(t);if(!(i&&!r&&!hm(t))){for(let a=0,o=e.options.length;a<o;a++){const s=e.options[a],l=zp(s);if(i)if(r){const u=typeof l;u==="string"||u==="number"?s.selected=t.some(c=>String(c)===String(l)):s.selected=ME(t,l)>-1}else s.selected=t.has(l);else if(Bf(zp(s),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zp(e){return"_value"in e?e._value:e.value}function IN(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const zZ={created(e,t,n){Hy(e,t,n,null,"created")},mounted(e,t,n){Hy(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Hy(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Hy(e,t,n,i,"updated")}};function jZ(e,t){switch(e){case"SELECT":return BZ;case"TEXTAREA":return Tf;default:switch(t){case"checkbox":return FZ;case"radio":return VZ;default:return Tf}}}function Hy(e,t,n,i,r){const o=jZ(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,i)}const UZ=["ctrl","shift","alt","meta"],HZ={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>UZ.some(n=>e[`${n}Key`]&&!t.includes(n))},Vo=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(r,...a)=>{for(let o=0;o<t.length;o++){const s=HZ[t[o]];if(s&&s(r,t))return}return e(r,...a)})},qZ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=r=>{if(!("key"in r))return;const a=pd(r.key);if(t.some(o=>o===a||qZ[o]===a))return e(r)})},YZ=Yi({patchProp:AZ},fZ);let r6;function NN(){return r6||(r6=YK(YZ))}const ix=(...e)=>{NN().render(...e)},Xqe=(...e)=>{const t=NN().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=GZ(i);if(!r)return;const a=t._component;!qt(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,WZ(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function WZ(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function GZ(e){return Mi(e)?document.querySelector(e):e}/*! * vue-i18n v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const KZ="9.13.1";function ZZ(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zu().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zu().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(zu().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zu().__INTLIFY_PROD_DEVTOOLS__=!1)}const MN=JW.__EXTEND_POINT__,_u=o2(MN);_u(),_u(),_u(),_u(),_u(),_u(),_u(),_u(),_u();const LN=Xs.__EXTEND_POINT__,ro=o2(LN),Nr={UNEXPECTED_RETURN_TYPE:LN,INVALID_ARGUMENT:ro(),MUST_BE_CALL_SETUP_TOP:ro(),NOT_INSTALLED:ro(),NOT_AVAILABLE_IN_LEGACY_MODE:ro(),REQUIRED_VALUE:ro(),INVALID_VALUE:ro(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ro(),NOT_INSTALLED_WITH_PROVIDE:ro(),UNEXPECTED_ERROR:ro(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ro(),BRIDGE_SUPPORT_VUE_2_ONLY:ro(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ro(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ro(),__EXTEND_POINT__:ro()};function Zr(e,...t){return fm(e,null,void 0)}const I5=fd("__translateVNode"),N5=fd("__datetimeParts"),M5=fd("__numberParts"),RN=fd("__setPluralRules"),FN=fd("__injectWithOption"),L5=fd("__dispose");function qg(e){if(!Ln(e))return e;for(const t in e)if($_(e,t))if(!t.includes("."))Ln(e[t])&&qg(e[t]);else{const n=t.split("."),i=n.length-1;let r=e,a=!1;for(let o=0;o<i;o++){if(n[o]in r||(r[n[o]]={}),!Ln(r[n[o]])){a=!0;break}r=r[n[o]]}a||(r[n[i]]=e[t],delete e[t]),Ln(r[n[i]])&&qg(r[n[i]])}return e}function C2(e,t){const{messages:n,__i18n:i,messageResolver:r,flatJson:a}=t,o=Ut(n)?n:mi(i)?{}:{[e]:{}};if(mi(i)&&i.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},U0(u,o[l])):U0(u,o)}else pt(s)&&U0(JSON.parse(s),o)}),r==null&&a)for(const s in o)$_(o,s)&&qg(o[s]);return o}function VN(e){return e.type}function BN(e,t,n){let i=Ln(t.messages)?t.messages:{};"__i18nGlobal"in n&&(i=C2(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(a=>{e.mergeLocaleMessage(a,i[a])});{if(Ln(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Ln(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function a6(e){return C(vm,null,e,0)}const o6="__INTLIFY_META__",s6=()=>[],XZ=()=>!1;let l6=0;function u6(e){return(t,n,i,r)=>e(n,i,vs()||void 0,r)}const JZ=()=>{const e=vs();let t=null;return e&&(t=VN(e)[o6])?{[o6]:t}:null};function rx(e={},t){const{__root:n,__injectWithOption:i}=e,r=n===void 0,a=e.flatJson,o=P_?z:it,s=!!e.translateExistCompatible;let l=dn(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:pt(e.locale)?e.locale:Fp),c=o(n&&l?n.fallbackLocale.value:pt(e.fallbackLocale)||mi(e.fallbackLocale)||Ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),d=o(C2(u.value,e)),f=o(Ut(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),h=o(Ut(e.numberFormats)?e.numberFormats:{[u.value]:{}});let m=n?n.missingWarn:dn(e.missingWarn)||id(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:dn(e.fallbackWarn)||id(e.fallbackWarn)?e.fallbackWarn:!0,v=n?n.fallbackRoot:dn(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,_=ci(e.missing)?e.missing:null,S=ci(e.missing)?u6(e.missing):null,w=ci(e.postTranslation)?e.postTranslation:null,x=n?n.warnHtmlMessage:dn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const P=n?n.modifiers:Ut(e.modifiers)?e.modifiers:{};let E=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&s9(null);const we={version:KZ,locale:u.value,fallbackLocale:c.value,messages:d.value,modifiers:P,pluralRules:E,missing:S===null?void 0:S,missingWarn:m,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:x,escapeParameter:k,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};we.datetimeFormats=f.value,we.numberFormats=h.value,we.__datetimeFormatters=Ut(A)?A.__datetimeFormatters:void 0,we.__numberFormatters=Ut(A)?A.__numberFormatters:void 0;const Ae=uG(we);return r&&s9(Ae),Ae})(),ev(A,u.value,c.value);function T(){return[u.value,c.value,d.value,f.value,h.value]}const O=B({get:()=>u.value,set:we=>{u.value=we,A.locale=u.value}}),N=B({get:()=>c.value,set:we=>{c.value=we,A.fallbackLocale=c.value,ev(A,u.value,we)}}),V=B(()=>d.value),j=B(()=>f.value),q=B(()=>h.value);function ne(){return ci(w)?w:null}function ae(we){w=we,A.postTranslation=we}function Y(){return _}function M(we){we!==null&&(S=u6(we)),_=we,A.missing=S}const I=(we,Ae,Ie,Ye,rt,Ot)=>{T();let $n;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=n?lG():void 0),$n=we(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Ie!=="translate exists"&&Dr($n)&&$n===s2||Ie==="translate exists"&&!$n){const[jt,Fn]=Ae();return n&&v?Ye(n):rt(jt)}else{if(Ot($n))return $n;throw Zr(Nr.UNEXPECTED_RETURN_TYPE)}};function W(...we){return I(Ae=>Reflect.apply(d9,null,[Ae,...we]),()=>_5(...we),"translate",Ae=>Reflect.apply(Ae.t,Ae,[...we]),Ae=>Ae,Ae=>pt(Ae))}function te(...we){const[Ae,Ie,Ye]=we;if(Ye&&!Ln(Ye))throw Zr(Nr.INVALID_ARGUMENT);return W(Ae,Ie,ya({resolvedMessage:!0},Ye||{}))}function he(...we){return I(Ae=>Reflect.apply(f9,null,[Ae,...we]),()=>b5(...we),"datetime format",Ae=>Reflect.apply(Ae.d,Ae,[...we]),()=>r9,Ae=>pt(Ae))}function oe(...we){return I(Ae=>Reflect.apply(p9,null,[Ae,...we]),()=>w5(...we),"number format",Ae=>Reflect.apply(Ae.n,Ae,[...we]),()=>r9,Ae=>pt(Ae))}function U(we){return we.map(Ae=>pt(Ae)||Dr(Ae)||dn(Ae)?a6(String(Ae)):Ae)}const re={normalize:U,interpolate:we=>we,type:"vnode"};function ue(...we){return I(Ae=>{let Ie;const Ye=Ae;try{Ye.processor=re,Ie=Reflect.apply(d9,null,[Ye,...we])}finally{Ye.processor=null}return Ie},()=>_5(...we),"translate",Ae=>Ae[I5](...we),Ae=>[a6(Ae)],Ae=>mi(Ae))}function pe(...we){return I(Ae=>Reflect.apply(p9,null,[Ae,...we]),()=>w5(...we),"number format",Ae=>Ae[M5](...we),s6,Ae=>pt(Ae)||mi(Ae))}function ge(...we){return I(Ae=>Reflect.apply(f9,null,[Ae,...we]),()=>b5(...we),"datetime format",Ae=>Ae[N5](...we),s6,Ae=>pt(Ae)||mi(Ae))}function Te(we){E=we,A.pluralRules=E}function Z(we,Ae){return I(()=>{if(!we)return!1;const Ie=pt(Ae)?Ae:u.value,Ye=Se(Ie),rt=A.messageResolver(Ye,we);return s?rt!=null:Vp(rt)||us(rt)||pt(rt)},()=>[we],"translate exists",Ie=>Reflect.apply(Ie.te,Ie,[we,Ae]),XZ,Ie=>dn(Ie))}function X(we){let Ae=null;const Ie=dI(A,c.value,u.value);for(let Ye=0;Ye<Ie.length;Ye++){const rt=d.value[Ie[Ye]]||{},Ot=A.messageResolver(rt,we);if(Ot!=null){Ae=Ot;break}}return Ae}function ye(we){const Ae=X(we);return Ae??(n?n.tm(we)||{}:{})}function Se(we){return d.value[we]||{}}function Ee(we,Ae){if(a){const Ie={[we]:Ae};for(const Ye in Ie)$_(Ie,Ye)&&qg(Ie[Ye]);Ae=Ie[we]}d.value[we]=Ae,A.messages=d.value}function _e(we,Ae){d.value[we]=d.value[we]||{};const Ie={[we]:Ae};if(a)for(const Ye in Ie)$_(Ie,Ye)&&qg(Ie[Ye]);Ae=Ie[we],U0(Ae,d.value[we]),A.messages=d.value}function be(we){return f.value[we]||{}}function ie(we,Ae){f.value[we]=Ae,A.datetimeFormats=f.value,h9(A,we,Ae)}function se(we,Ae){f.value[we]=ya(f.value[we]||{},Ae),A.datetimeFormats=f.value,h9(A,we,Ae)}function de(we){return h.value[we]||{}}function xe(we,Ae){h.value[we]=Ae,A.numberFormats=h.value,m9(A,we,Ae)}function Re(we,Ae){h.value[we]=ya(h.value[we]||{},Ae),A.numberFormats=h.value,m9(A,we,Ae)}l6++,n&&P_&&(Ve(n.locale,we=>{l&&(u.value=we,A.locale=we,ev(A,u.value,c.value))}),Ve(n.fallbackLocale,we=>{l&&(c.value=we,A.fallbackLocale=we,ev(A,u.value,c.value))}));const Pe={id:l6,locale:O,fallbackLocale:N,get inheritLocale(){return l},set inheritLocale(we){l=we,we&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,ev(A,u.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:V,get modifiers(){return P},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(we){m=we,A.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(we){g=we,A.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(we){v=we},get fallbackFormat(){return y},set fallbackFormat(we){y=we,A.fallbackFormat=y},get warnHtmlMessage(){return x},set warnHtmlMessage(we){x=we,A.warnHtmlMessage=we},get escapeParameter(){return k},set escapeParameter(we){k=we,A.escapeParameter=we},t:W,getLocaleMessage:Se,setLocaleMessage:Ee,mergeLocaleMessage:_e,getPostTranslationHandler:ne,setPostTranslationHandler:ae,getMissingHandler:Y,setMissingHandler:M,[RN]:Te};return Pe.datetimeFormats=j,Pe.numberFormats=q,Pe.rt=te,Pe.te=Z,Pe.tm=ye,Pe.d=he,Pe.n=oe,Pe.getDateTimeFormat=be,Pe.setDateTimeFormat=ie,Pe.mergeDateTimeFormat=se,Pe.getNumberFormat=de,Pe.setNumberFormat=xe,Pe.mergeNumberFormat=Re,Pe[FN]=i,Pe[I5]=ue,Pe[N5]=ge,Pe[M5]=pe,Pe}function QZ(e){const t=pt(e.locale)?e.locale:Fp,n=pt(e.fallbackLocale)||mi(e.fallbackLocale)||Ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=ci(e.missing)?e.missing:void 0,r=dn(e.silentTranslationWarn)||id(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=dn(e.silentFallbackWarn)||id(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=dn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Ut(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=ci(e.postTranslation)?e.postTranslation:void 0,d=pt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=dn(e.sync)?e.sync:!0;let m=e.messages;if(Ut(e.sharedMessages)){const k=e.sharedMessages;m=Object.keys(k).reduce((E,A)=>{const D=E[A]||(E[A]={});return ya(D,k[A]),E},m||{})}const{__i18n:g,__root:v,__injectWithOption:y}=e,_=e.datetimeFormats,S=e.numberFormats,w=e.flatJson,x=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:m,flatJson:w,datetimeFormats:_,numberFormats:S,missing:i,missingWarn:r,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:x,__i18n:g,__root:v,__injectWithOption:y}}function R5(e={},t){{const n=rx(QZ(e)),{__extender:i}=e,r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},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(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return dn(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=dn(a)?!a:a},get silentFallbackWarn(){return dn(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=dn(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[o,s,l]=a,u={};let c=null,d=null;if(!pt(o))throw Zr(Nr.INVALID_ARGUMENT);const f=o;return pt(s)?u.locale=s:mi(s)?c=s:Ut(s)&&(d=s),mi(l)?c=l:Ut(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[o,s,l]=a,u={plural:1};let c=null,d=null;if(!pt(o))throw Zr(Nr.INVALID_ARGUMENT);const f=o;return pt(s)?u.locale=s:Dr(s)?u.plural=s:mi(s)?c=s:Ut(s)&&(d=s),pt(l)?u.locale=l:mi(l)?c=l:Ut(l)&&(d=l),Reflect.apply(n.t,n,[f,c||d||{},u])},te(a,o){return n.te(a,o)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,o){n.setLocaleMessage(a,o)},mergeLocaleMessage(a,o){n.mergeLocaleMessage(a,o)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,o){n.setDateTimeFormat(a,o)},mergeDateTimeFormat(a,o){n.mergeDateTimeFormat(a,o)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,o){n.setNumberFormat(a,o)},mergeNumberFormat(a,o){n.mergeNumberFormat(a,o)},getChoiceIndex(a,o){return-1}};return r.__extender=i,r}}const ax={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function eX({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===Ue?r.children:[r]],[]):t.reduce((n,i)=>{const r=e[i];return r&&(n[i]=r()),n},{})}function zN(e){return Ue}const tX=ot({name:"i18n-t",props:ya({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Dr(e)||!isNaN(e)}},ax),setup(e,t){const{slots:n,attrs:i}=t,r=e.i18n||gn({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=pt(e.plural)?+e.plural:e.plural);const s=eX(t,a),l=r[I5](e.keypath,s,o),u=ya({},i),c=pt(e.tag)||Ln(e.tag)?e.tag:zN();return vi(c,u,l)}}}),c6=tX;function nX(e){return mi(e)&&!pt(e[0])}function jN(e,t,n,i){const{slots:r,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),pt(e.format)?o.key=e.format:Ln(e.format)&&(pt(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?ya({},f,{[h]:e.format[h]}):f,{}));const l=i(e.value,o,s);let u=[o.key];mi(l)?u=l.map((f,h)=>{const m=r[f.type],g=m?m({[f.type]:f.value,index:h,parts:l}):[f.value];return nX(g)&&(g[0].key=`${f.type}-${h}`),g}):pt(l)&&(u=[l]);const c=ya({},a),d=pt(e.tag)||Ln(e.tag)?e.tag:zN();return vi(d,c,u)}}const iX=ot({name:"i18n-n",props:ya({value:{type:Number,required:!0},format:{type:[String,Object]}},ax),setup(e,t){const n=e.i18n||gn({useScope:e.scope,__useComponent:!0});return jN(e,t,SI,(...i)=>n[M5](...i))}}),d6=iX,rX=ot({name:"i18n-d",props:ya({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ax),setup(e,t){const n=e.i18n||gn({useScope:e.scope,__useComponent:!0});return jN(e,t,wI,(...i)=>n[N5](...i))}}),f6=rX;function aX(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function oX(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Zr(Nr.UNEXPECTED_ERROR);const c=aX(e,s.$),d=h6(u);return[Reflect.apply(c.t,c,[...p6(d)]),c]};return{created:(o,s)=>{const[l,u]=t(s);P_&&e.global===u&&(o.__i18nWatcher=Ve(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{P_&&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=h6(s);o.textContent=Reflect.apply(l.t,l,[...p6(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function h6(e){if(pt(e))return{path:e};if(Ut(e)){if(!("path"in e))throw Zr(Nr.REQUIRED_VALUE,"path");return e}else throw Zr(Nr.INVALID_VALUE)}function p6(e){const{path:t,locale:n,args:i,choice:r,plural:a}=e,o={},s=i||{};return pt(n)&&(o.locale=n),Dr(r)&&(o.plural=r),Dr(a)&&(o.plural=a),[t,s,o]}function sX(e,t,...n){const i=Ut(n[0])?n[0]:{},r=!!i.useI18nComponentName;(dn(i.globalInstall)?i.globalInstall:!0)&&([r?"i18n":c6.name,"I18nT"].forEach(o=>e.component(o,c6)),[d6.name,"I18nN"].forEach(o=>e.component(o,d6)),[f6.name,"I18nD"].forEach(o=>e.component(o,f6))),e.directive("t",oX(t))}function lX(e,t,n){return{beforeCreate(){const i=vs();if(!i)throw Zr(Nr.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const a=r.i18n;if(r.__i18n&&(a.__i18n=r.__i18n),a.__root=t,this===this.$root)this.$i18n=m6(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=R5(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=m6(e,r);else{this.$i18n=R5({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&BN(t,r,r),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),n.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=vs();if(!i)throw Zr(Nr.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(i),delete this.$i18n}}}function m6(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[RN](t.pluralizationRules||e.pluralizationRules);const n=C2(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const uX=fd("global-vue-i18n");function cX(e={},t){const n=__VUE_I18N_LEGACY_API__&&dn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=dn(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,a=new Map,[o,s]=dX(e,n),l=fd("");function u(f){return a.get(f)||null}function c(f,h){a.set(f,h)}function d(f){a.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(h,...m){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),Ut(m[0])){const y=m[0];f.__composerExtend=y.__composerExtend,f.__vueI18nExtend=y.__vueI18nExtend}let g=null;!n&&i&&(g=bX(h,f.global)),__VUE_I18N_FULL_INSTALL__&&sX(h,f,...m),__VUE_I18N_LEGACY_API__&&n&&h.mixin(lX(s,s.__composer,f));const v=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),v()}},get global(){return s},dispose(){o.stop()},__instances:a,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function gn(e={}){const t=vs();if(t==null)throw Zr(Nr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Zr(Nr.NOT_INSTALLED);const n=fX(t),i=pX(n),r=VN(t),a=hX(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Zr(Nr.NOT_AVAILABLE_IN_LEGACY_MODE);return yX(t,a,i,e)}if(a==="global")return BN(i,e,r),i;if(a==="parent"){let l=mX(n,t,e.__useComponent);return l==null&&(l=i),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=ya({},e);"__i18n"in r&&(l.__i18n=r.__i18n),i&&(l.__root=i),s=rx(l),o.__composerExtend&&(s[L5]=o.__composerExtend(s)),gX(o,t,s),o.__setInstance(t,s)}return s}function dX(e,t,n){const i=pm();{const r=__VUE_I18N_LEGACY_API__&&t?i.run(()=>R5(e)):i.run(()=>rx(e));if(r==null)throw Zr(Nr.UNEXPECTED_ERROR);return[i,r]}}function fX(e){{const t=kt(e.isCE?uX:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Zr(e.isCE?Nr.NOT_INSTALLED_WITH_PROVIDE:Nr.UNEXPECTED_ERROR);return t}}function hX(e,t){return a2(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function pX(e){return e.mode==="composition"?e.global:e.global.__composer}function mX(e,t,n=!1){let i=null;const r=t.root;let a=vX(t,n);for(;a!=null;){const o=e;if(e.mode==="composition")i=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(i=s.__composer,n&&i&&!i[FN]&&(i=null))}if(i!=null||r===a)break;a=a.parent}return i}function vX(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gX(e,t,n){tn(()=>{},t),ys(()=>{const i=n;e.__deleteInstance(t);const r=i[L5];r&&(r(),delete i[L5])},t)}function yX(e,t,n,i={}){const r=t==="local",a=it(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Zr(Nr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=dn(i.inheritLocale)?i.inheritLocale:!pt(i.locale),s=z(!r||o?n.locale.value:pt(i.locale)?i.locale:Fp),l=z(!r||o?n.fallbackLocale.value:pt(i.fallbackLocale)||mi(i.fallbackLocale)||Ut(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:s.value),u=z(C2(s.value,i)),c=z(Ut(i.datetimeFormats)?i.datetimeFormats:{[s.value]:{}}),d=z(Ut(i.numberFormats)?i.numberFormats:{[s.value]:{}}),f=r?n.missingWarn:dn(i.missingWarn)||id(i.missingWarn)?i.missingWarn:!0,h=r?n.fallbackWarn:dn(i.fallbackWarn)||id(i.fallbackWarn)?i.fallbackWarn:!0,m=r?n.fallbackRoot:dn(i.fallbackRoot)?i.fallbackRoot:!0,g=!!i.fallbackFormat,v=ci(i.missing)?i.missing:null,y=ci(i.postTranslation)?i.postTranslation:null,_=r?n.warnHtmlMessage:dn(i.warnHtmlMessage)?i.warnHtmlMessage:!0,S=!!i.escapeParameter,w=r?n.modifiers:Ut(i.modifiers)?i.modifiers:{},x=i.pluralRules||r&&n.pluralRules;function k(){return[s.value,l.value,u.value,c.value,d.value]}const P=B({get:()=>a.value?a.value.locale.value:s.value,set:X=>{a.value&&(a.value.locale.value=X),s.value=X}}),E=B({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:X=>{a.value&&(a.value.fallbackLocale.value=X),l.value=X}}),A=B(()=>a.value?a.value.messages.value:u.value),D=B(()=>c.value),T=B(()=>d.value);function O(){return a.value?a.value.getPostTranslationHandler():y}function N(X){a.value&&a.value.setPostTranslationHandler(X)}function V(){return a.value?a.value.getMissingHandler():v}function j(X){a.value&&a.value.setMissingHandler(X)}function q(X){return k(),X()}function ne(...X){return a.value?q(()=>Reflect.apply(a.value.t,null,[...X])):q(()=>"")}function ae(...X){return a.value?Reflect.apply(a.value.rt,null,[...X]):""}function Y(...X){return a.value?q(()=>Reflect.apply(a.value.d,null,[...X])):q(()=>"")}function M(...X){return a.value?q(()=>Reflect.apply(a.value.n,null,[...X])):q(()=>"")}function I(X){return a.value?a.value.tm(X):{}}function W(X,ye){return a.value?a.value.te(X,ye):!1}function te(X){return a.value?a.value.getLocaleMessage(X):{}}function he(X,ye){a.value&&(a.value.setLocaleMessage(X,ye),u.value[X]=ye)}function oe(X,ye){a.value&&a.value.mergeLocaleMessage(X,ye)}function U(X){return a.value?a.value.getDateTimeFormat(X):{}}function ee(X,ye){a.value&&(a.value.setDateTimeFormat(X,ye),c.value[X]=ye)}function re(X,ye){a.value&&a.value.mergeDateTimeFormat(X,ye)}function ue(X){return a.value?a.value.getNumberFormat(X):{}}function pe(X,ye){a.value&&(a.value.setNumberFormat(X,ye),d.value[X]=ye)}function ge(X,ye){a.value&&a.value.mergeNumberFormat(X,ye)}const Te={get id(){return a.value?a.value.id:-1},locale:P,fallbackLocale:E,messages:A,datetimeFormats:D,numberFormats:T,get inheritLocale(){return a.value?a.value.inheritLocale:o},set inheritLocale(X){a.value&&(a.value.inheritLocale=X)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(u.value)},get modifiers(){return a.value?a.value.modifiers:w},get pluralRules(){return a.value?a.value.pluralRules:x},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:f},set missingWarn(X){a.value&&(a.value.missingWarn=X)},get fallbackWarn(){return a.value?a.value.fallbackWarn:h},set fallbackWarn(X){a.value&&(a.value.missingWarn=X)},get fallbackRoot(){return a.value?a.value.fallbackRoot:m},set fallbackRoot(X){a.value&&(a.value.fallbackRoot=X)},get fallbackFormat(){return a.value?a.value.fallbackFormat:g},set fallbackFormat(X){a.value&&(a.value.fallbackFormat=X)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:_},set warnHtmlMessage(X){a.value&&(a.value.warnHtmlMessage=X)},get escapeParameter(){return a.value?a.value.escapeParameter:S},set escapeParameter(X){a.value&&(a.value.escapeParameter=X)},t:ne,getPostTranslationHandler:O,setPostTranslationHandler:N,getMissingHandler:V,setMissingHandler:j,rt:ae,d:Y,n:M,tm:I,te:W,getLocaleMessage:te,setLocaleMessage:he,mergeLocaleMessage:oe,getDateTimeFormat:U,setDateTimeFormat:ee,mergeDateTimeFormat:re,getNumberFormat:ue,setNumberFormat:pe,mergeNumberFormat:ge};function Z(X){X.locale.value=s.value,X.fallbackLocale.value=l.value,Object.keys(u.value).forEach(ye=>{X.mergeLocaleMessage(ye,u.value[ye])}),Object.keys(c.value).forEach(ye=>{X.mergeDateTimeFormat(ye,c.value[ye])}),Object.keys(d.value).forEach(ye=>{X.mergeNumberFormat(ye,d.value[ye])}),X.escapeParameter=S,X.fallbackFormat=g,X.fallbackRoot=m,X.fallbackWarn=h,X.missingWarn=f,X.warnHtmlMessage=_}return th(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Zr(Nr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const X=a.value=e.proxy.$i18n.__composer;t==="global"?(s.value=X.locale.value,l.value=X.fallbackLocale.value,u.value=X.messages.value,c.value=X.datetimeFormats.value,d.value=X.numberFormats.value):r&&Z(X)}),Te}const _X=["locale","fallbackLocale","availableLocales"],v6=["t","rt","d","n","tm","te"];function bX(e,t){const n=Object.create(null);return _X.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw Zr(Nr.UNEXPECTED_ERROR);const o=Yn(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,v6.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw Zr(Nr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)}),()=>{delete e.config.globalProperties.$i18n,v6.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}ZZ();__INTLIFY_JIT_COMPILATION__?o9(pG):o9(hG);rG(VW);aG(dI);if(__INTLIFY_PROD_DEVTOOLS__){const e=zu();e.__INTLIFY__=!0,GW(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var wX=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wX.SENTRY_RELEASE={id:"3da32bc89e751d43e858f4a507dc1e75fe3669b1"};var ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UN={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(ri,function(){var n=1e3,i=6e4,r=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var j=["th","st","nd","rd"],q=V%100;return"["+V+(j[(q-20)%10]||j[q]||j[0])+"]"}},S=function(V,j,q){var ne=String(V);return!ne||ne.length>=j?V:""+Array(j+1-ne.length).join(q)+V},w={s:S,z:function(V){var j=-V.utcOffset(),q=Math.abs(j),ne=Math.floor(q/60),ae=q%60;return(j<=0?"+":"-")+S(ne,2,"0")+":"+S(ae,2,"0")},m:function V(j,q){if(j.date()<q.date())return-V(q,j);var ne=12*(q.year()-j.year())+(q.month()-j.month()),ae=j.clone().add(ne,d),Y=q-ae<0,M=j.clone().add(ne+(Y?-1:1),d);return+(-(ne+(q-ae)/(Y?ae-M:M-ae))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:h,w:c,d:u,D:m,h:l,m:s,s:o,ms:a,Q:f}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},x="en",k={};k[x]=_;var P="$isDayjsObject",E=function(V){return V instanceof O||!(!V||!V[P])},A=function V(j,q,ne){var ae;if(!j)return x;if(typeof j=="string"){var Y=j.toLowerCase();k[Y]&&(ae=Y),q&&(k[Y]=q,ae=Y);var M=j.split("-");if(!ae&&M.length>1)return V(M[0])}else{var I=j.name;k[I]=j,ae=I}return!ne&&ae&&(x=ae),ae||!ne&&x},D=function(V,j){if(E(V))return V.clone();var q=typeof j=="object"?j:{};return q.date=V,q.args=arguments,new O(q)},T=w;T.l=A,T.i=E,T.w=function(V,j){return D(V,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var O=function(){function V(q){this.$L=A(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[P]=!0}var j=V.prototype;return j.parse=function(q){this.$d=function(ne){var ae=ne.date,Y=ne.utc;if(ae===null)return new Date(NaN);if(T.u(ae))return new Date;if(ae instanceof Date)return new Date(ae);if(typeof ae=="string"&&!/Z$/i.test(ae)){var M=ae.match(v);if(M){var I=M[2]-1||0,W=(M[7]||"0").substring(0,3);return Y?new Date(Date.UTC(M[1],I,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)):new Date(M[1],I,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)}}return new Date(ae)}(q),this.init()},j.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(q,ne){var ae=D(q);return this.startOf(ne)<=ae&&ae<=this.endOf(ne)},j.isAfter=function(q,ne){return D(q)<this.startOf(ne)},j.isBefore=function(q,ne){return this.endOf(ne)<D(q)},j.$g=function(q,ne,ae){return T.u(q)?this[ne]:this.set(ae,q)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(q,ne){var ae=this,Y=!!T.u(ne)||ne,M=T.p(q),I=function(ue,pe){var ge=T.w(ae.$u?Date.UTC(ae.$y,pe,ue):new Date(ae.$y,pe,ue),ae);return Y?ge:ge.endOf(u)},W=function(ue,pe){return T.w(ae.toDate()[ue].apply(ae.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(pe)),ae)},te=this.$W,he=this.$M,oe=this.$D,U="set"+(this.$u?"UTC":"");switch(M){case h:return Y?I(1,0):I(31,11);case d:return Y?I(1,he):I(0,he+1);case c:var ee=this.$locale().weekStart||0,re=(te<ee?te+7:te)-ee;return I(Y?oe-re:oe+(6-re),he);case u:case m:return W(U+"Hours",0);case l:return W(U+"Minutes",1);case s:return W(U+"Seconds",2);case o:return W(U+"Milliseconds",3);default:return this.clone()}},j.endOf=function(q){return this.startOf(q,!1)},j.$set=function(q,ne){var ae,Y=T.p(q),M="set"+(this.$u?"UTC":""),I=(ae={},ae[u]=M+"Date",ae[m]=M+"Date",ae[d]=M+"Month",ae[h]=M+"FullYear",ae[l]=M+"Hours",ae[s]=M+"Minutes",ae[o]=M+"Seconds",ae[a]=M+"Milliseconds",ae)[Y],W=Y===u?this.$D+(ne-this.$W):ne;if(Y===d||Y===h){var te=this.clone().set(m,1);te.$d[I](W),te.init(),this.$d=te.set(m,Math.min(this.$D,te.daysInMonth())).$d}else I&&this.$d[I](W);return this.init(),this},j.set=function(q,ne){return this.clone().$set(q,ne)},j.get=function(q){return this[T.p(q)]()},j.add=function(q,ne){var ae,Y=this;q=Number(q);var M=T.p(ne),I=function(he){var oe=D(Y);return T.w(oe.date(oe.date()+Math.round(he*q)),Y)};if(M===d)return this.set(d,this.$M+q);if(M===h)return this.set(h,this.$y+q);if(M===u)return I(1);if(M===c)return I(7);var W=(ae={},ae[s]=i,ae[l]=r,ae[o]=n,ae)[M]||1,te=this.$d.getTime()+q*W;return T.w(te,this)},j.subtract=function(q,ne){return this.add(-1*q,ne)},j.format=function(q){var ne=this,ae=this.$locale();if(!this.isValid())return ae.invalidDate||g;var Y=q||"YYYY-MM-DDTHH:mm:ssZ",M=T.z(this),I=this.$H,W=this.$m,te=this.$M,he=ae.weekdays,oe=ae.months,U=ae.meridiem,ee=function(pe,ge,Te,Z){return pe&&(pe[ge]||pe(ne,Y))||Te[ge].slice(0,Z)},re=function(pe){return T.s(I%12||12,pe,"0")},ue=U||function(pe,ge,Te){var Z=pe<12?"AM":"PM";return Te?Z.toLowerCase():Z};return Y.replace(y,function(pe,ge){return ge||function(Te){switch(Te){case"YY":return String(ne.$y).slice(-2);case"YYYY":return T.s(ne.$y,4,"0");case"M":return te+1;case"MM":return T.s(te+1,2,"0");case"MMM":return ee(ae.monthsShort,te,oe,3);case"MMMM":return ee(oe,te);case"D":return ne.$D;case"DD":return T.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return ee(ae.weekdaysMin,ne.$W,he,2);case"ddd":return ee(ae.weekdaysShort,ne.$W,he,3);case"dddd":return he[ne.$W];case"H":return String(I);case"HH":return T.s(I,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ue(I,W,!0);case"A":return ue(I,W,!1);case"m":return String(W);case"mm":return T.s(W,2,"0");case"s":return String(ne.$s);case"ss":return T.s(ne.$s,2,"0");case"SSS":return T.s(ne.$ms,3,"0");case"Z":return M}return null}(pe)||M.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(q,ne,ae){var Y,M=this,I=T.p(ne),W=D(q),te=(W.utcOffset()-this.utcOffset())*i,he=this-W,oe=function(){return T.m(M,W)};switch(I){case h:Y=oe()/12;break;case d:Y=oe();break;case f:Y=oe()/3;break;case c:Y=(he-te)/6048e5;break;case u:Y=(he-te)/864e5;break;case l:Y=he/r;break;case s:Y=he/i;break;case o:Y=he/n;break;default:Y=he}return ae?Y:T.a(Y)},j.daysInMonth=function(){return this.endOf(d).$D},j.$locale=function(){return k[this.$L]},j.locale=function(q,ne){if(!q)return this.$L;var ae=this.clone(),Y=A(q,ne,!0);return Y&&(ae.$L=Y),ae},j.clone=function(){return T.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},V}(),N=O.prototype;return D.prototype=N,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",d],["$y",h],["$D",m]].forEach(function(V){N[V[1]]=function(j){return this.$g(j,V[0],V[1])}}),D.extend=function(V,j){return V.$i||(V(j,O,D),V.$i=!0),D},D.locale=A,D.isDayjs=E,D.unix=function(V){return D(1e3*V)},D.en=k[x],D.Ls=k,D.p={},D})})(UN);var HN=UN.exports;const $e=Ei(HN);var SX={exports:{}};(function(e,t){(function(n,i){e.exports=i(HN)})(ri,function(n){function i(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var r=i(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(o){return""+o+(o===1?"er":"")}};return r.default.locale(a,null,!0),a})})(SX);const CX="Aucun résultats trouvé.",EX="Texte copié !",xX="Retour",kX="La plateforme qui valorise réellement les approches de bien-être naturelles et holistiques.",TX="Informations générales",PX="Nos CGU",$X="Politique de confidentialité",AX="Holitime",OX="Vous êtes praticien ?",DX="Compte",IX="Devenir ambassadeur",NX="Parrainage",MX="Lien de Parrainage:",LX="Mon tableau de bord",RX="Total des gains retirés:",FX="Veuillez renseigner votre IBAN pour retirer vos gains",VX="Rechercher",BX={Janvier:"Janvier",Février:"Février",Mars:"Mars",Avril:"Avril",Mai:"Mai",Juin:"Juin",Juillet:"Juillet",Août:"Août",Septembre:"Septembre",Octobre:"Octobre",Novembre:"Novembre",Décembre:"Décembre",Janv:"Jan",Févr:"Fév",Avri:"Avr",Juil:"Juil",Sept:"Sep",Octo:"Oct",Nove:"Nov",Déce:"Déc"},zX="Partager sur :",jX={title:"Showcase"},UX={cancelBtn:"Annuler",confirmBtn:"Confirmer"},HX={our_mission:"Notre mission",areYouPractitioner:"Vous êtes praticien ?",practitioner:"Praticien ?",login:"Se connecter",dashboard:"Tableau de bord",logout:"Se déconnecter",welcomeFirstName:"Bienvenue, {firstName} !",welcome:"Bienvenue !",features:"Fonctionnalités",contact:"Contact",faq:"FAQ",settings:"Paramètres"},qX={contactUs:"Vous avez une question ? Contactez-nous via",termsOfUse:"Conditions Générales d'Utilisation",privacyPolicy:"Politique de confidentialité"},YX={title:`Votre portail vers l'<span class="text-orange font-weight-bold">autonomie</span> en <span class="text-secondary font-weight-bold">santé</span>`,subtitle:"les approches de bien-être naturelles et holistiques",takeAppointment:"Prenez rendez-vous",appointmentText:"avec un",searchPlaceholder1:"Spécialité, pratique, nom...",searchPlaceholder2:"Où ? (adresse, ville...)",searchButton:"Rechercher",searchTooltip:"Bientôt disponible !",noAddressFound:"Aucune adresse trouvée"},WX={title:"Rejoignez la première plateforme qui protège et promeut toutes les pratiques de santé et bien-être",subtitle:'Votre espace <span class="font-weight-bold">Privilégié</span> pour faire briller votre savoir-faire <span class="font-weight-bold">Holistique</span>',discoverPackages:"Découvrir nos forfaits",fromPrice:'<span class="text-dark-green">à partir de <span class="font-weight-bold">5€ HT/mois</span></span>'},GX={closeBtn:"Fermer"},KX={title:"Contribuer au projet",closeButton:"Fermer",cancelButton:"Annuler",donateButton:"Donner",amountLabel:"Montant du don",emailLabel:"Votre adresse e-mail",cardLabel:"Carte bancaire",expiryPlaceholder:"MM / AA",cvcPlaceholder:"CVC",securityNote:"Sécurité : vos informations bancaires sont chiffrées et ne sont jamais en notre possession.",thankYouTitle:"Merci !",thankYouMessage:"Nous avons bien enregistré votre contribution."},ZX={title:"Pré-inscription",closeButton:"Fermer",backButton:"Retour",submitButton:"Valider",emailLabel:"Votre adresse e-mail",emailError:"Veuillez fournir une adresse e-mail valide",typeLabel:"Je suis un",practitionerOption:"Praticien",patientOption:"Particulier",countryLabel:"Votre pays",postalCodeLabel:"Votre code postal",disciplinesLabel:"Votre ou vos disciplines",otherDisciplineLabel:"Vos autres disciplines (absentes de la liste)",subscriptionDurationTitle:"Durée de pré-abonnement",subscriptionDiscountNote:"Promotion de pré-lancement (dernière chance) :",discount1:"Jusqu'à 12 mois : -30%",discount2:"De 13 à 39 mois : -50%",riskFreeNote:"C'est sans risque pour vous : vous aurez 90 jours pour pleinement tester le service après sa sortie et vous faire 100% rembourser si vous n'êtes pas satisfait.",monthlyRateLabel:"Tarif mensuel",monthsLabel:"Nombre de mois",monthsLabelToAdd:"Nombre de mois à ajouter",subscriptionPriceLabel:"Prix du pré-abonnement",payInOneGo:"Payer en une fois",payIn3Installments:"Payer en 3 fois",payIn4Installments:"Payer en 4 fois",securityNote:"Sécurité : vos informations bancaires sont chiffrées et ne sont jamais en notre possession.",registrationCompleteTitle:"Votre pré-inscription a bien été enregistrée !",registrationCompleteMessage:"Vous recevrez un email lors de la disponibilité de la plateforme pour finaliser la création de votre profil.",successUpdate:"Votre abonnement a bien été mise à jour !"},XX={title:"Tableau de bord affilié",practitionerReferrals:"Praticiens filleuls",contributorReferrals:"Contributeurs filleuls",commissions:"Commissions",earnings:"Gains",uniqueAffiliateLink:"Lien unique d'affilié :",note:"À noter :",note1:"À chaque fois qu'une personne utilise votre lien unique pour s'abonner, vous gagnez une commission de 10% sur le montant de son paiement.",note2:"Vos gains seront récupérables une fois par mois à partir de 10 € cumulés.",note3:"Vos filleuls restent liés à votre compte à vie : vous continuerez à toucher une commission sur chaque paiement de vos filleuls tous les mois tant que leur compte reste actif.",dialogTitle:"Apropos de vos gains",dialogNote:"À chaque fois qu'une personne utilise votre lien unique pour s'abonner, vous gagnez une commission de",dialogNote1:" 10% sur le montant de son paiement.",dialogList:"Vos gains seront récupérables une fois par mois à partir de 10 € cumulés.",dialogList1:"Vos filleuls restent liés à votre compte à vie : vous continuerez à toucher une commission sur chaque paiement de vos filleuls tous les mois tant que leur compte reste actif.",Affiliation:"Parrainage","Mon tableau de bord":"Mon tableau de bord","Lien d’affiliation :":"Lien de parrainage :","Partager sur :":"Partager sur :",aboutYourEarnings:"À propos de vos gains","Praticiens affiliés":"Praticiens filleuls",Gains:"Gains","Veuillez renseigner votre IBAN pour retirer vos gains":"Veuillez renseigner votre IBAN pour retirer vos gains",Statistiques:"Statistiques","Listes des commissions":"Listes des commissions",ibanSuccessfullyUpdated:"IBAN mis à jour avec succès.",Commissions:"Commissions"},JX={becomeAmbassador:"Devenez ambassadeur",weBelieve:"Chez Holitime, nous croyons en la force de la communauté. C'est pourquoi nous avons créé notre programme de parrainage, qui vous offre l'opportunité non seulement de nous aider à diffuser notre mission, mais également de partager les bénéfices de notre succès.",howItWorks:"Comment ça fonctionne ?",signUp:"Inscrivez-vous",signUpDetails:"Pour devenir affilié, il vous suffit de remplir notre formulaire d'inscription ci-dessous. C'est gratuit, rapide et facile.",share:"Partagez",shareDetails:"Une fois inscrit, vous recevrez un lien unique d'affilié que vous pourrez partager avec votre réseau.",earnCommissions:"Gagnez des commissions",earnCommissionsDetails:"Chaque fois que quelqu'un s'abonne à Holitime via votre lien, vous recevez une commission de 10%. C'est aussi simple que ça.",receivePayments:"Recevez vos paiements",receivePaymentsDetails:"Vos gains seront récupérables à partir de 10 € cumulés une fois par mois.",receivePaymentsDetailsFinalText:"Bientôt",affiliatesForLife:"Vos filleuls restent liés à votre compte À VIE",affiliatesForLifeDetails:": Vous continuerez à toucher une commission sur chaque paiement de vos filleuls tous les mois tant que leur compte reste actif.",whyBecomeAffiliate:"Pourquoi devenir affilié ?",supportImportantCause:"Contribuez à une cause importante",supportCauseDetails:"En partageant Holitime, vous aidez à promouvoir le bien-être holistique et à rendre ces pratiques plus accessibles.",generateIncome:"Générez des revenus",generateIncomeDetails:"Vous gagnez une commission pour chaque nouvel abonnement généré grâce à votre lien. De plus, vous continuerez à recevoir des commissions, de manière passive, tant que vos filleuls resteront abonnés à Holitime.",beRewardedForEngagement:"Soyez récompensé pour votre engagement",rewardedDetails:"Plus vous partagez, plus notre mission se propage, et plus vous gagnez.",enterEmail:"Saisissez votre adresse e-mail ci-dessous pour recevoir votre lien unique d'affilié. Si vous êtes déjà inscrit, vous recevrez de nouveau votre lien.",alreadyRegistered:"",yourEmailAddress:"Votre adresse e-mail",successfulRegistration:"Inscription réussie !",receiveEmailSoon:"Vous allez recevoir d'ici quelques instants un email avec votre lien unique que vous pouvez partager dès à présent.",notReceiveEmail:"Si vous ne recevez pas cet email d'ici 5 minutes, vérifiez votre dossier spam ou contactez-nous via",haveQuestion:"Vous avez une question ? Contactez-nous via"},QX={title:"Votre portail vers l’autonomie en santé","min-desc":'Et il y a <span class="text-secondary">Holitime</span> : La <span class="text-orange">première plateforme</span> qui protège et promeut toutes les pratiques de <span class="text-secondary">santé</span> et <span class="text-secondary">bien-être</span>',description:{p1:"Il y a les plateformes de prise de rendez-vous que vous connaissez déjà ",p2:"Elle ne se limite pas à la mise en relation, mais s'engage activement dans la promotion et le soutien de l'écosystème du bien-être holistique, y compris en redistribuant une part de ses profits.",p3:"Holitime ambitionne de devenir une ressource incontournable en matière de santé naturelle, offrant non seulement des rendez-vous, mais aussi un contenu enrichissant, des formations, et un moteur de recherche intelligent pour une expérience personnalisée.",p4:"Nous travaillons actuellement sur le développement de la plateforme qui sera bientôt ouverte à tous. Les praticiens peuvent déjà se pré-abonner pour bénéficier d'une remise allant jusqu'à 50% et d'une garantie satisfait ou remboursé pendant 90 jours après le lancement."},keyPoints:{title:"Une plateforme <strong>fluide</strong> et <strong>pratique</strong> pour tous",cards:{card1:{title:"Recherche et prise de rendez-vous simplifiées",description:"Recherchez et filtrez facilement par spécialité, pratique, emplacement géographique, et bien d'autres critères, puis prenez rendez-vous en quelques clics"},card2:{title:"Pratiques naturelles valorisées et disponibles",description:"Une plateforme de prise de rendez-vous dédiée à la promotion et au respect réel des pratiques holistiques"},card3:{title:"Sécurité et intelligence collective assurées",description:"Une sécurité assurée par des contrôles stricts des diplômes, l’évaluation d’expérience et des avis vérifiés, garantissant des décisions transparentes et fiables"}}},linkPractitioner:"Je suis praticien",discoverPractitioners:"Découvrez les Praticiens",discoverContent:'Découvrez les <strong>contenus en vedette</strong> <span class="text-grey text-subtitle-1 ml-1">Découvrez Holitime en médias</span>',program:{title:"Vous partagez notre vision et souhaitez participer activement à notre aventure ?",paraph1:"En tant que défenseurs d'un écosystème éthique et solidaire, nous vous invitons à ",linkLabel:"rejoindre notre programme de parrainage",paraph2:". En devenant un ambassadeur d'Holitime, vous bénéficierez d'une commission pour chaque don et chaque souscription (à vie !) que vous nous aiderez à collecter. <br> Prenez part à cette mission pour soutenir l'essor des pratiques de bien-être et soutenez la communauté holistique."},offerAvailable:"Offre de lancement valable pour les 6 premiers mois !",moreDetails:"PLUS DE DETAILS",youArePractitioner:"Vous êtes <strong>praticien</strong> ?",limitedOffer:"Bénéficiez de notre <strong>offre de lancement</strong> !",legalSupport:"Une aide juridique <strong>offerte</strong> pour tous les <strong>praticiens !</strong>",benefitFromLegalSupport:"Bénéficiez d'un accompagnement juridique offert avec votre abonnement. Grâce à notre partenariat avec le prestigieux <strong>Cabinet Barok</strong> de <strong>Fabrice Di Vizio</strong>.",educationalVideo:"Vous bénéficiez de vidéos éducatives et pouvez poser vos questions juridiques totalement <strong>gratuitement</strong>",from_home:"A {distance} km de chez vous",schedule_a_meeting:"Prendre RDV",reviews:"{count} avis",show_more:"Voir plus",show_more_practitioners:"Voir d’autres praticiens",book_practitioner:"Réservez une séance",features:{patients:{title:"Fonctionnalités pour les Patients",subtitle:"Un système de recherche sophistiqué et très facile à prendre en main ",cards:{card1:{title:"Recherchez un professionnel de santé naturelle",description:"Trouvez facilement le professionnel de santé ou de bien-être qui répond à vos besoins. Parcourez les profils, comparez les spécialités et lisez les avis pour faire le meilleur choix"},card2:{title:"Prenez rendez-vous en ligne ou en présentiel",description:"Choisissez la manière qui vous convient le mieux pour consulter : en ligne depuis chez vous ou en présentiel. Planifiez votre rendez-vous directement sur la plateforme selon votre disponibilité"},card3:{title:"Evaluer votre expérience avec le praticien",description:"Partagez votre retour après chaque consultation. Notez le service reçu et laissez un avis pour aider d'autres patients à faire leur choix et pour améliorer continuellement la qualité des services"}},row2:{title:"Explorez de nombreuses pratiques naturelles valorisées",paragraph:"Des centaines de profils avec les coordonnées de praticiens et des expertises variées sont centralisés sur Holitime et à portée de clic.",join_community:"Rejoignez notre communauté !",sign_up:"Créer un compte",search_praticien:"Recherchez un praticien"}},praticiens:{title:"Fonctionnalités pour les Praticiens",subtitle:"Concentrez-vous sur votre cÅ“ur de métier et laissez-nous simplifier la gestion de vos rendez vous",cards:{card1:{title:"Créer votre compte sur holitime en quelques clics",description:"Inscrivez-vous rapidement sur Holitime et devenez visible auprès de milliers de patients. En quelques minutes seulement, créez votre compte et intégrez une communauté engagée de professionnels du bien-être"},card2:{title:"Configurez vos profils, vos adresses et vos créneaux",description:"Personnalisez votre profil en renseignant vos spécialités, vos lieux de consultation et vos créneaux disponibles. Offrez une présentation claire et complète pour attirer de nouveaux patients"},card3:{title:"Activez votre compte et recevez des rendez-vous !",description:"Une fois votre compte vérifié, commencez à recevoir des rendez-vous. Gérez votre emploi du temps facilement grâce à notre plateforme et développez votre activité sereinement"}},row2:{title:"Développez votre activité",paragraph:"Sur Holitime, chaque professionnel est une pièce maîtresse de notre communauté. <br><br>Vous n'êtes pas seulement accepté, mais chaleureusement accueilli et <strong>votre pratique</strong> valorisé. Cette reconnaissance contribue à élargir votre clientèle et à développer votre activité, grâce à une plateforme <strong>qui reconnait</strong> votre travail et son impact sur la vie des gens.",see_more:"En savoir plus"}}},base:"La base ?",essential_features_title:"Les fonctionnalités essentielles :",essential_features:{feature1:"<strong>Trouvez un praticien </strong> adapté <br> à vos besoins, près de chez vous ou en distanciel",feature2:"<strong>Prenez rendez-vous</strong> en quelques clics",feature3:"<strong>Laissez votre avis</strong> et <br> consultez les recommandations des autres clients"},main_diffence1:"La différence",main_diffence2:"majeure ?",absolutety_values_title:"Les valeurs absolument non négociables :",absolutely_values:{value1:"<strong>L’indépendance financière</strong> du projet (condition sine qua non de son intégrité)",value2:"<strong>La protection des libertés,</strong> de l’autonomie et des données en matière de santé",value3:"<strong>La recherche du bien commun</strong> et la certitude qu’en s’unissant on peut changer le monde"},holitime_project_title:'<span class="text-secondary">Holitime</span> est un projet en plein essor et en constante <span class="text-secondary">évolution</span>',holitime_project_detail:'La communauté grandit de jour en jour et nous développons toujours plus de fonctionnalités pour étoffer la plateforme, en alliant protection et innovation. <br /><br /> L’objectif : bâtir avec vous un véritable <br><span class="text-orange font-weight-bold">réseau social de la santé holistique.</span>',discover_title:'Explorez toute la <span class="text-secondary">diversité</span> des approches autour du <span class="text-orange">bien-être</span> et de la <span class="text-orange">santé</span>',discover_desc:"Des centaines de spécialités et plusieurs milliers de praticiens sont déjà présents sur Holitime … Et ce n’est que le début !",discover_detail:"Ici, pas de sélection à l’entrée ni d’exclusion de certaines approches : toutes les pratiques légales sont représentées.",our_priority:'Nous privilégions <span class="text-teal-green font-weight-bold">le libre arbitre et la responsabilité personnelle</span>',respect_ethics_code:'Les praticiens Holitime s’engagent à respecter notre <span class="font-weight-bold text-teal-green">charte déontologique</span>',check_conformity:"Nous vérifions la conformité de leurs profils et la validité des diplômes affichés",opinions:"Les avis donnés et l’intelligence collective favorisent des choix conscients et éclairés",join_our_community:"Rejoignez notre communauté !",register:"Créer mon compte",search_practitionner:"Recherchez un praticien",dashboard:"Tableau de bord",dietetique:"Diététique",naturopathie:"Naturopathie",osteopathie:"Ostéopathie",sophrologie:"Sophrologie",disciplines:"disciplines",you_are_practitionner:"Vous êtes praticien ?",grow_up_your_activities:'Développez votre activité au sein d’une <span class="text-secondary">communauté</span> <span class="text-orange">engagée</span> et <span class="text-orange">solidaire</span>',grow_activities_details:{detail1:"Soyez visible et améliorez votre référencement",detail2:"Gagnez du temps et simplifiez la gestion de vos rendez-vous",detail3:"Renforcez votre crédibilité grâce au bouche-à -oreille digital",detail4:"Rayonnez auprès d’un public en résonance avec vos valeurs"},you_are:"Vous êtes ?",an_pratitionner:"Je suis praticien",why_holitime_title:'Pourquoi choisir <span class="text-secondary">Holitime ?</span>',why_holitime:{why_holitime1:'<span class="font-weight-bold">Pour une approche intégrative de la santé,</span> fondée sur la complémentarité des approches',why_holitime2:'<span class="font-weight-bold">Pour la liberté et la souveraineté,</span> face aux risques de monopoles et d’exclusions',why_holitime3:'<span class="font-weight-bold">Pour la sécurité de vos données</span> et pour une confidentialité réelle',why_holitime4:'<span class="font-weight-bold">Pour la puissance de l’Intelligence collective</span> et de l’entraide'},join_title:"En rejoignant Holitime, vous n’êtes pas simple consommateur d’un service :",world_vision:"Vous optez pour des valeurs et une vision du monde",contribution:'Vous contribuez très concrètement à la création d’un <span class="font-weight-bold">havre de la santé holistique.</span>',benefits:'<span class="font-weight-bold">Pour l’Humain, pas le Capital</span> et pour un modèle de société vertueux',technology_innovation:'<span class="font-weight-bold">Pour une innovation technologique au service de l’Humain</span> (et pas l’inverse !)',near_you:"Près de chez vous",top_rate:"Les mieux notés",searching:"Recherche de praticiens",no_practitionner_near_you:"Aucun résultat n’a été trouvé à proximité de chez vous.",no_result:"Aucun résultat n’a été trouvé.",our_mission:"La mission de Holitime",support_the_project:"Soutenir le projet",more_information:"En savoir plus","action-call-title":"En rejoignant Holitime, vous n’êtes pas simple consommateur d’un service :","action-call-desc1":"Vous optez pour des valeurs et une vision du monde","action-call-desc2":'Vous contribuez très concrètement à la création d’un <span class="font-weight-bold">havre de la santé holistique.</span>'},eJ={title:"404",subtitle:"Page non trouvée",description:"La page que vous recherchez n'existe pas.",backToHome:"Retour à l'accueil"},tJ={visibility:{title:"Gagnez en visibilité et développez votre activité",content:"Dans un contexte où la santé naturelle est souvent marginalisée, Holitime se dresse comme le bastion incontournable pour les praticiens du bien-être holistique. Nous vous offrons une vitrine exceptionnelle pour votre expertise, avec la possibilité d'avoir jusqu'à x3 pages profil dédiées à vos expertises et optimisée SEO, vous permettant de rayonner auprès d'un public ciblé. <br><br> Rejoignez notre plateforme pour une page dédiée, optimisée SEO, et gagnez en visibilité auprès d'un public ciblé."},activity:{title:"Simplifiez votre organisation et intégrez un réseau de praticiens engagés",content:"Holitime n'est pas seulement une plateforme, c'est une communauté engagée à protéger et promouvoir la santé naturelle. Avec notre système de réservation en ligne, gérez vos rendez-vous sans stress tout en réduisant les annulations. En rejoignant Holitime, vous devenez une pièce maîtresse d'un mouvement collectif, où les professionnels du bien-être se soutiennent mutuellement, partagent des connaissances et collaborent pour redéfinir l'accès aux pratiques holistiques."},organization:{title:"Concentrez-vous sur votre cÅ“ur de métier",content:"Dans un environnement où la visibilité des praticiens de la santé naturelle est menacée, Holitime vous offre la tranquillité d'esprit en vous aidant à mieux gérer vos disponibilités et vos rendez-vous. Vous pouvez ainsi vous concentrer pleinement sur le bien-être de vos clients. Notre plateforme est conçue pour être en phase avec la réalité du terrain, vous permettant de diriger votre énergie vers ce qui compte vraiment : votre passion pour la santé naturelle et holistique. Ensemble, faisons de Holitime le pilier de ce mouvement."},community:{title:"Intégrez la <strong>communauté</strong> des thérapeutes",content:"En tant que membre de Holitime, vous faites partie d'une communauté dynamique de professionnels dédiés au bien-être. C'est un espace où vous pouvez partager des connaissances, établir des collaborations et vous inspirer d'autres praticiens. Ensemble, nous construisons un écosystème éthique et solidaire, redéfinissant l'accès aux pratiques holistiques et naturelles de santé."},focusOnExpertise:{title:"Concentrez-vous sur votre cÅ“ur de métier",content:"Holitime vous libère des tâches administratives et promotionnelles, vous permettant de vous concentrer sur le bien-être de vos clients. <br><br> Notre plateforme gère votre visibilité en ligne et la planification des rendez-vous, simplifiant votre quotidien. <br><br>Rejoignez-nous pour rediriger votre énergie vers votre passion pour le bien-être holistique."},legal_support:{title:"Profitez d'un <strong>accompagnement juridique inclus </strong> avec votre abonnement !",content:"Grâce à notre partenariat exclusif avec le prestigieux <strong> Cabinet Barok </strong>, dirigé par <strong> Maitre Fabrice Di Vizio</strong>, vous avez accès à des vidéos éducatives de qualité et pouvez poser toutes vos questions juridiques en toute gratuité.",join_now:"Rejoignez notre communauté !",btn_msg:"En savoir plus sur le cabinet"},impactSection:{title:"Un <strong>impact positif</strong> à chaque <strong>abonnement</strong>",content1:"Sur Holitime, chaque abonnement de praticien contribue à un impact positif étendu. Notre modèle économique unique redistribue une part significative des revenus pour soutenir l'ensemble de la communauté du bien-être.",content2:"En vous abonnant, vous participez non seulement à la croissance de votre propre pratique, mais aussi à celle d'un écosystème éthique et solidaire. Cette démarche permet de financer des initiatives bénéfiques pour tous, allant de la promotion des pratiques holistiques à l'élaboration de nouveaux projets dans le domaine du bien-être.",content3:"Avec Holitime, votre abonnement devient un acte de solidarité, renforçant un réseau qui valorise et célèbre le bien-être holistique à tous les niveaux."},pricingSection:{title:'Votre forfait <span class="text-secondary">Holitime</span>',subtitle:"Inscrivez-vous en choisissant un forfait adapté à votre besoin",practitioner:{name:"Abonnement normal",price:"50",unit:"€/mois",description_old:"Inscrivez-vous en pré-abonnement <strong>avant le démarrage officiel</strong> de la plateforme pour profiter d'une remise allant <strong>jusqu'à 50%</strong>. <br> Après le lancement, bénéficiez de notre garantie <strong>satisfait ou remboursé</strong> pendant 90 jours.",description:"Vous serez débité de 37.5 € H.T aujourd'hui pour le premier mois et les 5 mois suivant, puis 50 € H.T/mois ensuite. Cette offre ne vous engage que pour le premier mois, vous pourez ensuite annuler votre abonnement à tout moment.",mini_description:"Offre de lancement valable pour les 6 premiers mois !",features:{feature1:"Toutes les fonctionnalités de prise <br> de rendez-vous",feature2:"Jusqu'à 3 profils distincts si vous souhaitez séparer plusieurs pratiques",feature3:"Jusqu'à 3 adresses",feature4:"Jusqu'à 50 SMS de rappel de rendez-vous <br> par mois"},cta:"Je m'abonne"},cabinet:{name:"Abonnement Cabinet",price:"150",unit:"€/mois",description:"Jusqu'à 5 praticiens sur un même abonnement<br/>(ou 15 praticiens pour 250€/mois)",features:{feature1:"Toutes les fonctionnalités de l'abonnement Praticien",feature2:"Une adresse commune pour le cabinet",feature3:"Jusqu'à 150 SMS de rappel de rendez-vous par mois"},cta:"Prochainement..."},mensual:"Mensuel",annual:"Annuel",life:"A vie",month:"mois"},started:'Commencez à recevoir des rendez-vous avec <span class="text-secondary">Holitime</span>',title:"Holitime se dresse en véritable bastion de la santé holistique, et voit bien plus loin !",subtitle:"Vous connaissez déjà les autres plateformes de prise de rendez-vous ?",steps:{create_account:{title:"Créez votre compte",description:"Démarrez votre aventure avec Holitime en créant votre compte. Lors de cette étape, choisissez le forfait qui correspond le mieux à vos besoins. Une fois votre compte créé, votre période d’essai gratuit démarre immédiatement. Ajoutez et complétez toutes les informations nécessaires pour valider votre profil et accéder à notre plateforme. C'est simple et rapide !"},address:{title:"Configurez vos adresses de consultation",description:"Mettez à jour vos adresses de consultation, qu'elles soient à distance ou en présentiel. Assurez-vous que vos futurs patients puissent facilement vous trouver, peu importe où vous exercez."},profils:{title:"Créez vos profils (jusqu’à 3 distincts)",description:"Complétez les informations pour vos différents profils. Holitime vous permet de créer jusqu’à 3 profils distincts. Montrez toute l'étendue de vos compétences !"},timeslots:{title:"Configurez vos créneaux selon vos disponibilités",description:"Définissez vos motifs de consultation et planifiez vos créneaux horaires selon vos disponibilités. Ainsi, vos futurs patients peuvent réserver des rendez-vous qui s'adaptent à votre emploi du temps. La flexibilité, c'est la clé !"},active_account:{title:"Activez votre compte",description:"Vous y êtes presque ! Une fois vos profils, adresses, et créneaux configurés, soumettez votre compte pour vérification de conformité et activation. Vous êtes désormais visible sur Holitime. Grâce à votre forfait choisi dès la création de compte et à la période d’essai en cours, préparez-vous à accueillir vos premiers rendez-vous !"},create_appointment:{title:"Gérez vos rendez-vous",description:"Prenez le contrôle total de votre emploi du temps avec Holitime. Consultez, modifiez, ou annulez vos rendez-vous en quelques clics. Notre interface intuitive vous permet de suivre facilement vos consultations à venir et de gérer vos disponibilités en temps réel, afin de garantir une expérience fluide à vos patients."}},professionnelTitle:'Sur <span class="text-secondary">Holitime</span>, chaque professionnel est une pièce maîtresse de notre communauté.',start_now_btn:"Commencez Maintenant",create_an_account:"Créez votre espace",discover_our_package:"Découvrir nos forfaits",soon:"Bientôt",more_details:"plus de détails",less_detail:"moins de détails",join_community_title:"Intégrez une communauté engagée (et protégée)",join_community_desc:"Ici, nous cultivons une approche intégrative de la santé, fondée sur la complémentarité des approches. Face aux risques de monopoles, Holitime ouvre un espace protégé pour l'autonomie et la diversité.",grow_business_title:"Développez votre activité de façon démocratique",grow_business_desc:"Ni discrimination, ni censure, toutes les pratiques légales sont bienvenues ici, sans favoritisme. L'intelligence collective est le moteur de la plateforme : ce sont vos clients (et votre travail) qui vous mettent en lumière.",legal_benefit_title:"Bénéficiez d'un soutien juridique sans équivalent",legal_benefit_desc:"Réservé aux bâtisseurs - Maitre Fabrice Di Vizio (et son cabinet, en partenariat exclusif avec Holitime) vous offre ses conseils d’expert en vidéo, et répond à vos questions au cas par cas.",keyword_title:"Devenez membre à part entière d'un mouvement collectif :",keyword_desc1:"Rayonnez auprès d'un public en résonance avec <br> vos valeurs.",keyword_desc2:"Rejoignez un réseau de solidarité avec d’autres <br> professionnels de la santé et du bien-être.",premium_title:'Le forfait <span class="text-yellow-light">pérenne</span>',key_feature_title:"Les fonctionnalités essentielles",key_feature_desc:"Retrouvez bien sûr toutes les fonctionnalités incontournables d’une plateforme de prise de rendez-vous en ligne, dédiée aux métiers du bien-être et de la santé holistique.",appointment_title:"Prise de rendez-vous simplifiée",appointment_desc:"Concentrez-vous sur vos talents et votre cÅ“ur de métier !","3profils":"Visibilité (jusqu’à 3 profils)",profils_desc:"Trouvez de nouveaux clients, près de chez vous ou partout ailleurs !",recommandation:"Bouche à oreille",recommandation_desc:"Vos clients vous recommandent et vous faites grandir votre capital confiance.",no_rabbits:"Pas de lapins !",no_rabbits_desc:"Vos clients reçoivent des rappels et leur réputation est engagée en cas de lapin inopiné.",just_begining_title:"Et ce n’est que le début !",just_begining_min_desc:"La plateforme s’étoffe jour après jour en fonction de <br> vos demandes",just_begining_desc:"De prochaines fonctionnalités indispensables arrivent dans les prochaines semaines, et les membres de notre communauté sont informés à chaque avancée.",discover_price:"Découvrez nos tarifs",major_difference_title:"La différence majeure ? Des fondations immuables",major_difference_min_desc:"Libre arbitre, autonomie, communauté démocratique et égalitaire garantis par une Indépendance financière non négociable",major_difference_desc:'Droits dans leurs bottes et dans leurs valeurs, les fondateurs visent le bien commun. <br><br> <span class="font-weight-semibold"> Holitime est un projet humaniste, non capitaliste, résolument intègre (aucun investisseur extérieur), et conçu comme un tremplin pour financer d’autre projets d’envergure.</span>',imagine:"Imaginez : une mutuelle pour la santé holistique.",imagine_futur_projets:"Imaginez encore : de futurs projets pensés par la communauté, pour la communauté, et développés en fonction de leur popularité",you_imagine:"Vous imaginez ? À présent, construisons ensemble !",at_holitime:"Chez Holitime, nous avons une certitude : en nous unissant, nous avons le pouvoir de transformer le monde",scalable_packages:"Des forfaits évolutifs pour évoluer à son rythme",scalable_min_desc:"Quel entrepreneur êtes-vous : curieux, enthousiaste, en pleine croissance ? Investissez sur vos talents dès à présent, ou grandissez à votre rythme au sein de la communauté !",scalable_desc:"Les forfaits évolutifs sont une façon d'accéder dès à présent à la majorité des fonctionnalités, tout en contribuant au projet Holitime à la juste hauteur de vos moyens",discovert_packages:"Les forfaits découverte (évolutifs)",tva_toggle:"TVA non / oui","3scalables_packages":"3 forfaits évolutifs",grow_with_you_title:"Votre abonnement grandit avec vous, au rythme de vos rendez-vous !",grow_with_you_title_desc:"Vous souhaitez découvrir Holitime en profitant d’un petit prix solidaire ? Choisissez librement et passez au niveau supérieur à mesure que votre agenda se remplit :",first_rdv:"1ᵉʳ rendez-vous par mois ?",first_rdv_desc:"L'Éclaireur devient Messager !","3e_rdv":"3ᵉ rendez-vous par mois ?","3e_rdv_desc":"Bravo, le Messager devient Semeur !","10e_rdv":"10ᵉ rendez-vous par mois ?","10e_rdv_desc":"Félicitations, vous atteignez le niveau Bâtisseur !",when_change:"Quand a lieu le changement de forfait ?",you_receive_email:"Vous recevez un mail à chaque changement de niveau.",when_change_desc:"À la fin du mois (selon votre date d'inscription), votre nombre de rendez-vous est totalisé et vous passez automatiquement au forfait supérieur correspondant.",when_change_min_desc:"Ainsi, au mois suivant, votre contribution correspond à votre nouveau forfait.",downgrade_title:"Et si je veux redescendre à un forfait inférieur ?",downgrade_desc:"Si votre activité diminue, vous avez la possibilité de repasser à un forfait plus bas, en fonction du total de rendez-vous du mois écoulé.",why_higher_package:"Pourquoi choisir un forfait plus élevé dès le départ ?",why_higher_package_min_desc:"Les forfaits Découverte sont à prix mini pour aider les praticiens à se lancer. Cependant, le forfait Bâtisseur est le seul qui puisse assurer véritablement la pérennité de la plateforme.",why_higher_package_desc:"Nous faisons le pari de la co-création solidaire : faites le choix juste, à la fois pour votre activité et pour l’avenir du projet Holitime !",real_solidarity:"Faisons l'expérience de la solidarité, la vraie",solidarity_desc:"Chacun contribue en fonction de son expérience et de ses moyens du moment, pour un service qui profite à tous !",first3_discovery_packages:"Les 3 premiers forfaits Découverte (Éclaireur, Messager, Semeur) offrent un démarrage en douceur.",first3_discovery_packages_desc:"Nous le savons, commencer son activité en tant qu’entrepreneur peut amener son lot de doutes. Le temps de gagner en confiance…",first3_discovery_packages_min_desc:"Un petit prix solidaire sur la ligne de départ peut être le coup de pouce bienvenu pour oser vous lancer.",first4_discovery_packages:"Le 4ème forfait (Bâtisseur) est celui qui assure la pérennité du projet Holitime",minimal_threshold:"C'est le seuil minimal pour que :",our_teams_develop:"nos équipes continuent de développer la plateforme et ses fonctionnalités",holitime_community_grow:"la communauté Holitime continue de grandir",future_projects:"de futurs projets imaginés avec vous puissent voir le jour",holitime_independent:"Holitime reste 100% indépendant et intègre",your_choice_is_free:"Votre choix de départ est libre mais décisif !",financial_contribution:"Votre contribution à l'équilibre financier de Holitime est un acte solidaire pour assurer l'avenir de la plateforme.",our_ambition:"Notre ambition ? Que Holitime soit un de vos leviers de réussite et que nous réussissions tous ensemble !",more_information:"En savoir plus",start_to_receive_rdv:"Commencez à recevoir des rendez-vous avec Holitime",step1:"Étape 1",step1_title:"Inscrivez-vous en tant que Praticien",step1_desc:"Choisissez votre forfait, renseignez les informations nécessaires pour valider votre profil et accédez à notre plateforme.",step2:"Étape 2",step2_title:"Devenez visible",step2_desc:"Créez votre (ou vos) profil(s), détaillez vos prestations, ajoutez les adresses de vos cabinets, paramétrez vos créneaux selon vos disponibilités. Le temps que notre équipe vérifie la conformité de votre compte. Vous y êtes !",step3:"Étape 3",step3_title:"Gérez vos rendez-vous facilement",step3_desc:"Vos rendez-vous se synchronisent automatiquement dans votre agenda et vous pouvez les modifier en quelques clics.",step4:"Étape 4",step4_title:"Développez votre activité",step4_desc:"Suite à vos séances, vos clients laissent des avis et contribuent à vous faire rayonner au sein de la communauté.",holitime_grow_with_you:"Holitime grandit avec vous !",holitime_grow_with_you_desc:"Les fonctionnalités à votre service",availlable_features:{rdv:{title:"Prise de rdv 24/7",description:"Vos clients voient en un clin d’œil vos disponibilités, et peuvent réserver en toute autonomie, à toute heure du jour ou de la nuit."},"time-slote":{title:"Créneaux modulables",description:"Pour chacune de vos prestations, vous pouvez paramétrer très précisément le temps de vos séances (à la minute près !), ainsi que les pauses inter-séances et les temps de préparation en amont."},seo:{title:"Visibilité et SEO",description:"Vous créez votre espace de vente en quelques étapes simples, vous gagnez en visibilité auprès d’une communauté de valeurs, et vous profitez du travail de référencement de la plateforme pour faire connaître votre métier et vos talents particuliers."},"time-zone":{title:"Fuseau horaire",description:"Votre client est sur un autre fuseau horaire ? Vos horaires sont convertis automatiquement selon son fuseau."},"sync-agenda":{title:"Synchronisation des agendas",description:"Holitime se synchronise avec votre agenda Googleâ„¢ pour suivre facilement vos rendez-vous."},customers:{title:"Avis clients",description:"Vos clients peuvent laisser un avis et partager leur expérience après une ou plusieurs séances. Principe de bouche à oreille digital : chaque recommandation contribue à mieux vous faire connaître !"},reminder:{title:"Rappels de rendez-vous par sms et email",description:"Vos clients reçoivent une confirmation (avec option d’ajout à leur agenda) et des rappels de rendez-vous par email (3 jours avant, la veille et le jour J) et sms (la veille)."},diplomes:{title:"Diplômes et expertise",description:"Votre profil est votre vitrine, prenez soin de détailler vos champs d’expertise et mettez en lumière vos diplômes et certifications (nos équipes les vérifient et certifient la conformité de votre profil)."},payment:{title:"Paiement en ligne",description:'Le paiement direct via la plateforme Holitime permettra de demander le règlement ou un acompte à la réservation. Vous pourrez également afficher des badges pour accepter les paiements en crypto ou en junes. <br> <strong>NB:</strong> <span class="font-italic">En attendant que cette fonctionnalité soit activée, vous pouvez préciser vos préférences de paiement (virement, espèces…) lors de la configuration de votre profil.</span>'},remote:{title:"Téléconsultations",description:"Holitime prévoit de s’associer avec la plateforme Crowdbunker, pour proposer un service de visio qui garantira une totale confidentialité (service introuvable à ce jour)."},blog:{title:"Publication d’articles et vidéos",description:"Holitime vous permettra bientôt de partager votre expertise à la communauté, à travers des textes et vidéos qui seront proposés à vos clients potentiels, en fonction de leurs recherches. Dans un futur proche, la plateforme va devenir un véritable réseau social, et cette prochaine fonctionnalité sera un tremplin pour créer des connexions et asseoir votre crédibilité !"},"mobile-app":{title:"Appli mobile",description:"Incontournable pour gérer votre compte depuis votre smartphone, et pour permettre à vos clients de prendre rendez-vous à tout moment, recevoir des notifications et rester en contact, l’appli mobile est en cours de développement, pour encore plus de simplicité dès 2025."},oli:{title:"Oli, Assistant de recherche vocale",description:"Notre petit colibri holistique, Oli, guidera bientôt nos utilisateurs dans leurs quêtes. Aujourd’hui, vos clients vous trouvent parce qu’ils savent déjà ce qu’ils cherchent. Demain, Oli ouvrira de nouveaux chemins : un besoin exprimé à voix haute, et hop, il montrera les pratiques et praticiens les plus pertinents. Trouver son thérapeute n’aura jamais été aussi simple et intuitif !"}},soon_features_title:"Les très prochaines fonctionnalités",soon_features_desc:"Nos équipes travaillent dessus actuellement, Elles arrivent d'ici quelques semaines !","2025_features_title":"Les autres fonctionnalités prévues pour 2025"},nJ={title:"Votre tableau de bord",subtitle:"Modifiez simplement toutes vos informations en quelques clics",menu:{myDashboard:"Tableau de bord",practitionerMenu:"Menu praticien",patientMenu:"Menu patient",account:"Mon compte",affiliation:"Parrainage",profile:"Mes profils",address:"Mes adresses",subscription:"Mon abonnement",appointment:"Mes rendez-vous",timeslot:"Mes créneaux",accompagnement:"Accompagnement <br> Juridique",patientsLists:"Mes patients",practicienLists:"Mes Praticiens",suivis:"Ma liste de suivi",new:"Nouveau",soon:"Bientôt",mailbox:"Ma messagerie",parrainage:"Parrainage",become_praticien:"Devenir Praticien",my_discipline:"Mes disciplines",become_praticien_confirm_title:"Confirmer le passage en compte praticien",become_praticien_confirm_desc:"Êtes-vous sûr de vouloir devenir praticien ? Après validation, vous devrez souscrire à un abonnement à nos services dont le niveau le plus bas est à {price} par mois.",errorBecomePraticien:"Une erreur s’est produite lors de la mise à jour de votre compte vers le statut de praticien.",successBecomePraticien:"Votre compte a été mis à jour avec succès vers le statut de praticien.",clients:"Mes clients"},account:{title:"Mon compte",informationTitle:"Informations",securityTitle:"Sécurité",submitBtn:"Mettre à jour",deletedBtn:"Supprimer",submitBtnPwd:"Mettre à jour mon Mot de passe",getDataError:"Une erreur est survenue lors de la récupération de vos données",error:{title:"Erreur",subtitle:"Une erreur s'est produite. Veuillez réessayer.",refreshBtn:"Rafraîchir"},update:{confirm:{title:"Confirmation",message:"Êtes-vous sûr de vouloir mettre à jour votre compte ?"},success:"Votre compte a bien été mis à jour",error:"Une erreur est survenue lors de la mise à jour de votre compte"},removeAvatar:{confirm:{title:"Confirmation",message:"Êtes-vous sûr de vouloir supprimer votre image ?"},actionBtn:{cancel:"Quitter",delete:"Supprimer"},success:"Votre image a bien été supprimer",error:"Une erreur est survenue lors de la suppression de votre image"},updateAvatar:{actionBtn:{cancel:"Quitter",delete:"Supprimer"},success:"Votre image a été mise à jour",error:"Une erreur est survenue lors de la mise à jour de votre image"},info:"Informations",safety:"Sécurité",phoneNumber:"Numéro de téléphone",genre:"Genre"},profile:{profile:"Profil|Profils",title:"Mes profils",success:"Nouveau profil ajouté avec succès",error:"Une erreur est survenue lors de la création d'un nouveau profil",delete_error:"Une erreur est survenue lors de la Suppression de votre profil",delete_message:"Profil supprimé avec succès",addBtn:"Ajouter un profil",editBtn:"Modifier",hint:"Vous pouvez ajouter jusqu'à 3 profils pour différentes disciplines.",see:"Voir",unPublish:"profil-non-publié",noSave:"Non enrégistré",emptyPresentation:"Présentation courte non renseignée",select_profil:"Sélectionner un profil",profil:"profil",update_profile:"Modifier le profil",new_profile:"Nouveau profil",degree_title:"Diplôme | Diplômes",image:"Images",add_image:"Ajouter une image",see_as_patient:"Voir en tant que patient",copy_in_draft:"Copier dans le brouillon",draft_is_now_update:"Le brouillon est maintenant à jour",error_occured:"Une erreur est survenu",publish_success:"Votre profil a bien été publié.",status:{error:"Contient les erreurs",notSave:"Contient les informations non enrégistrée",saved:"Tous les données sont correcte mais non enrégistré"},autoSaveInfo:"Les informations saisies sont enregistrées automatiquement"},"time-slot":{yourProfile:"Profils",yourAddress:"Votre adresse",motif:"Motifs",motives:"Motifs de consultation",createTimeSlot:"Nouveau créneau",from:"de",to:"à ",cancel:"Annuler",confirm:"Confirmer",createMotive:"Créer un nouveau motif de consultation",IAcceptRendezVous:"J'accepte les rendez-vous :",doYouWantToRepeatTimeSlot:"Répétition du créneau : ","in-person":"En présentiel",remote:"À distance",theTwo:"Les deux",yes:"Oui",no:"Non",every:"Toutes les",weekThe:"semaine(s) le :",delete:"Supprimer",save:"Enregistrer","short-day-0":"Dim","short-day-1":"Lun","short-day-2":"Mar","short-day-3":"Mer","short-day-4":"Jeu","short-day-5":"Ven","short-day-6":"Sam",errorNumberRule:"Le nombre doit être supérieur à 0",confirmCreateTimeSlot:"Confirmer la création d'un créneau",confirmCreateTimeSlotMessage:"Voulez-vous créer ce créneau ?",confirmEditTimeSlot:"Modifier un créneau",confirmEditTimeSlotMessage:"Voulez-vous modifier ce créneau ?",successCreateTimeSlot:"Votre créneau a été créé avec succès.",errorCreateTimeSlot:"Une erreur est survenue lors de la création d'un créneau.",successUpdateTimeSlot:"Votre créneau a été modifié avec succès.",errorUpdateTimeSlot:"Une erreur est survenue lors de la modification d'un créneau.",errorGetTimeSlot:"Une erreur est survenue lors de la récupération des créneaux.",from_X_to_Y:"{X} - {Y}",dialogTimeSlot:{editTimeSlot:"Modifier un créneau",errorSelectedTimes:"L'heure de fin doit être supérieure à l'heure de début.",placeholderProfile:"Profil",placeholderAddress:"Adresse",placeholderSelectMotive:"Motifs de consultation",labelSelectMotive:"Motifs de consultation proposés",messageErrorForMotif:" Veuillez créer un motif pour les voir apparaître ici",duration:"{duration} min",plusXOther:"(+{n} other) | (+{n} others)",confirmDeletion:"Confirmer la suppression",successDelete:"Le créneau a bien été supprimé.",errorDelete:"Une erreur est survenue lors de la suppression du créneau.",applyChangesFor:"Appliquer les changements pour : ",applyDeletionFor:"Appliquer la suppression pour : ",allFutureOccurrences:"Toutes les occurrences futures",onlyThisOccurrences:"Uniquement cette occurrence",confirmEdition:"Confirmer la modification",rdvWillBeDeleted:"Des rendez-vous existent à ces créneaux. En continuant et en supprimant ces créneaux, les rendez-vous associés seront supprimés. Continuer ?",reasonRemoteValidation:"Un motif n'autorise pas les consultations à distance",validateDeleteSlot:"Validez-vous la suppression du créneau?",noAppointmentReason:"Aucun motif de consultation n'a été créé",repetitionEnd:"Fin de la répétition",dateBetween:"Date de fin comprise dans la répétition",selectAddress:"Sélection de l'adresse",selectProfile:"Sélection des profils",endless:"Indéfiniment",InvalideTime:"L'heure de fin doit être supérieur à l'heure de début"},dialogMotive:{createMotiveTitle:"Créer un nouveau motif",editMotiveTitle:"Modifier un motif",deleteMotive:"Supprimer",update:"Modifier",confirmDeleteTitle:"Confirmer la suppression",confirmDeleteMessage:"Voulez-vous supprimer ce motif ?",successDeleteMotive:"Un motif de consultation a bien été supprimé",placeholderSelectAppointmentReason:"Titre du motif...",successCreateAppointmentReason:"Un motif a été créé avec succès !",successEditAppointmentReason:"Un motif a été modifié avec succès !",errorCreateAppointmentReason:"Une erreur est survenue lors de la création du motif.",tarif:"Tarif",pricePlaceholder:"35",duration:"Durée",timePlaceholder:"45 (minutes)",suggestRemote:"Proposer la consultation à distance ?",suggestBreak:"Ajouter une pause entre chaque consultation ?",suggestDelayBeforeConfirm:"Ajouter un délai minimum avant une prise de rendez-vous ?",tooltipHelpBreak:"Vos disponibilités seront automatiquement mises à jour en fonction de vos rendez-vous pris.",tooltipHelpDelay:"Indiquez le nombre d'heures minimum avant la prise d'un rendez-vous pour ce motif. Si non renseigné, le créneau sera disponible immédiatement.",attachedToSelectedProfile:"Le motif sera rattaché au profil sélectionné précédemment.",placeholderBreakTime:"Choisir",placeholderDelayBeforeConfirm:"Choisir",selectProfile:"Séléctionner un profil",delay_before_confirm_appointment:"Délai minimum"},vacationBtn:"Absence",dialogVacation:{confirmDeletionTitle:"Confirmer la suppression",confirmDeletionMessage:"Voulez-vous supprimer ce congé ?",vacation:"Congé",successDeleteVacaction:"Le congé a bien été supprimé",title:"Ajouter une absence",titleEdit:"Modifier un congé",from:"Du",to:"Au",save:"Enrégistrer",create:"Créer",alert:"Certains rendez-vous sont prévus pendant ces dates. Vos patients seront informés de l'annulation de leur rendez-vous et invités à reprogrammer à une autre date.",year:"Année",month:"Mois",day:"Jour",hour:"Heure",minute:"Minute",errorDate:"La date de fin doit être supérieure à la date de début.",confirmCreateVacation:"Confirmation la création d'absence",confirmUpdateVacation:"Confirmer la modification d'absence",confirmMinTitle:"Êtes-vous sûr de vouloir enregistrer cette absence ?",confirm:"Confirmer",successVacactionValidate:"La période d'absence a été créée avec succès.",successVacactionValidateUpdate:"La période d'absence a été modifiée avec succès.",errorVacactionValidate:"Une erreur est survenue pendant la validation de la période d'absence.",errorExistVacationValidate:"Vos rendez-vous pris à cette période seront supprimés",endDate:"Date de fin",endTime:"Heure de fin",datePlaceholder:"Selectionner une date",startDate:"Date de début",startTime:"Heure de début",cancelBtn:"Annuler"},dialogYouNeedProfileAndAddress:{title:"Profil ou adresse manquant",profileAdd:"Créer un profil et une adresse",message:"Vous devez créer au moins un profil et une adresse avant de pouvoir créer un créneau, un rendez-vous ou une absence.",goToAddresses:"Voir mes addresses",goToProfiles:"Voir mes profils"},colorTitle:"Couleur du créneau",date:"Date"},appointment:{title:"Mes rendez-vous",placeholderSearchPatient:"Rechercher patient...",createAppointment:"Rendez-vous",titleAbsenceDialog:"Êtes-vous présent ?",messageAbsenceDialog:"Sans activité de votre part, le rendez-vous sera annulé dans 2 minutes.",confirmBtnAbsenceDialog:"Continuer",cancelBtnAbsenceDialog:"Annuler le rendez-vous",dialogPopup:{from:"à ",titleCreate:"Créer un rendez-vous",titleEdit:"Modifier un rendez-vous",selectOlderPatient:" Séléctionner un ancien patient",modality:"Modalité de rencontre : ",labelProfile:"Sélection profil",placeholderSelectMotive:"Motif de consultation",placeholderDescription:"Vous pouvez ajouter des notes facultatives à ce RDV. Elles seront visibles par le patient.",placeholderNamePatient:"Nom du patient...",newPatient:"Nouveau patient",address:"Adresse",firstName:"Prénom",lastName:"Nom",email:"Email",errorIsInPast:"La date du rendez-vous ne peut pas être dans le passé.",confirmDeleteAppointment:"Confirmer l'annulation du rendez-vous",confirmDeleteAppointmentQuetion:"Voulez-vous annuler ce rendez-vous ?",remoteAppointmentLink:"Lien de visioconférence",useInternalVisioTool:"Utiliser notre outil sécurisé de visioconférence",enterAddress:"Veuillez renseigner une adresse avant de créer un rendez-vous.",searching:"Recherche en cours...",noDataAvailable:"Aucune donnée disponible"},dialogDetails:{title:"Détails du rendez-vous",consultationPartText:"Historique des consultations",seePatientFile:"Voir la fiche patient",viewFullHistory:"Voir l'historique complet",cancelTheAppointment:"Annuler",modifyTheAppointment:"Modifier",confirmCancelTitle:"Confirmer l'annulation",confirmCancelMessage:"Voulez-vous annuler ce rendez-vous ?",successCancelAppointment:"Le rendez-vous a bien été annulé",dateFromStartToEnd:"{date} de {start} à {end}",description:"Description",btnPresent:"Présent",btnAbsent:"Absent",appointmentDate:"Date du rendez-vous:",presentiel:"Présentiel",remote:"Téléconsultation",historyTitle:"Historiques des consultations",mail:"Mail",phone:"Tel",noHistory:"Aucun historique trouvé",cancelConfirmation:"Confirmation de l'annulation",alertCancelAppointment:"Êtes-vous sûr de vouloir annuler ce rendez-vous ?",cancelDescription:"Votre rendez-vous sera définitivement supprimé.",cancelBtn:"Annuler",confirmBtn:"Confirmer",appointmentReason:"Motif",profile:"Profil",address:"Adresse",appointment:"Rendez-vous:",type:"Type",date:"Date",meetingLink:"Lien du rendez-vous",meetingLinkReduced:"Lien du RDV",btnGenerateMeetingLink:"Générer un lien de visioconférence",internalMeetingLink:"Lien de visioconférence Holitime"},patients:{no_consultations_title:"Consultations",no_consultations_message:"Pas de consultation à valider",search_message:"Recherchez un praticien",profile:"Profils",address:"Adresse",date:"Date",duration:"Durée",price:"Prix",meetingLink:"Lien du rendez-vous",time:"Heure",consultation:"Consultation - Présentiel",tel:"Tel",mail:"Mail",appointment_title:'Rendez-vous avec: <span class="text-gray-80">{username}</span>'}},consultationDialog:{title:"Consultations à confirmer",confirm:"Le patient était-il présent à la consultation ?",noShow:"Non-présent",note:"Laisser une note (Cette note n'est pas visible par le patient) :",fullName:"Nom et prénom du patient",reason:"Motif",duration:"Durée",price:"Prix",date:"Date",time:"Heure",save:"Enregistrer",present:"Il était présent",absent:"Il était absent",modifyChoiceInfo:"Vous pouvez modifier vos choix à tout moment dans l'historique des rendez-vous sur votre tableau de bord"},avisConsultationDialog:{title:"Laisser un avis",confirm:"Êtes-vous satisfait de la consultation ?",noShow:"Non-présent",note:"Laisser une note au praticien (facultatif):",fullName:"Praticien",customerName:"Patient",reason:"Motif",duration:"Durée",price:"Prix",date:"Date",time:"Heure",save:"Enregistrer",present:"Présent",absent:"Absent",modifyChoiceInfo:"Vous pouvez modifier vos choix à tout moment dans l'historique des rendez-vous sur votre tableau de bord",recap:'<span>Récapitulatif de la consultation du <br> <span class="text-teal-green">{date}</span></span>',placeholder:"Laisser un avis",avis_feedback:"300 caractères au maximum",soumettre:"Soumettre",confirmAbscenceTitle:"Confirmez-vous que vous étiez absent ?"},appointmentMissingDialog:{title:"Absence à votre rendez-vous",note:"Notes à laisser au praticien :",fullName:"Praticien",reason:"Motif",duration:"Durée",price:"Prix",date:"Date",time:"Heure",save:"Enregistrer",confirm:"Oui je confirme",dispute:"Je conteste",modifyChoiceInfo:'<span class="font-weight-bold">IMPORTANT:</span> Au bout de trois absences injustifiées, votre profil patient sera suspendu. Vous devrez nous contacter pour nous expliquer les raisons de ces absences, et nous évaluerons la possibilité de réactiver votre compte ou non'},subscription:{title:"Mon abonnement",preSubscribedMonthsPaid:"Mois de pré-abonnement payés :",preSubscribedMonthsAsked:"Mois de pré-abonnement demandés :",extendButton:"Prolonger mon abonnement",payments:{title:"Mes paiements",noPayment:"Aucun paiement n'a été effectué pour le moment.",status:{pending:"En attente",succeeded:"Payé",failed:"Échec",refunded:"Remboursé"}},lifetime:"Vous avez un abonnement à vie.",description:"En mettant votre abonnement en pause vous ne serez plus débité mensuellement. Votre abonnement peut reprendre dès lors que vous réactivez votre compte.",breakBtn:"Mettre en pause",praticien:"Praticien",actif:"ACTIF",in_break:"En Pause",cancel_plan:"Annuler le plan",activate:"Activer",update_plan:"Changer d'abonnement",choose_plan:"Choisir un abonnement",remark:"REMARQUE: Les frais d'abonnement sont facturés au début de chaque période et il est possible que vous deviez attendre quelques jours après la date de facturation avant que ces frais n'apparaissent sur votre compte.",your_information:"Vos informations",update_information:"Mettre à jour les informations",update_information_modal_title:"Modifier vos informations",company_label:"Raison sociale",siret:"Numéro d'identification d'entreprise (NIE)",adresse:"Adresse",city:"Ville",postal_code:"Code Postal",tva_number:"Numéro TVA (facultatif)",country:"Pays",update_cb:"Mettre à jour votre carte bancaire",expiration:"Expiration",required:"Ce champ est requis",messages:{informations:{success:"Vos informations ont été mise à jour avec succès",error:"Une erreur s'est produite lors de la mise à jour"},break:{success:"Votre abonnement à été mise en pause",error:"Une erreur s'est produite lors de la mise en pause"},active:{success:"Votre abonnement à été activé avec succès",error:"Impossible d'activer votre abonnement"},desactive:{success:"votre abonnement à été désactivé avec succès",error:"Impossible de désactiver votre abonnement"}},break_confirmation:"Confirmer la mise en pause",alert_message:"Votre profil ne sera plus visible sur Holitime !",break_description:"Souhaitez vous annuler les rendez-vous déjà pris ?",yes:"Oui",no:"Non",AnnulerBtn:"Annuler",confirmBtn:"Confirmer",saveBtn:"Enregistrer",expired_at:"Expire le",updateCard:"Modifier votre carte",deleteCard:"Supprimer",cancel_subscription:{title:"Résiliation",description:"Êtes-vous sure de vouloir Résilier votre abonnement ?"},payment_method:"Moyen de paiement",update_card_error:"une erreur s'est produite lors de la mise à jour de la carte",update_card_success:"Votre carte à été mis à jour avec succès",subscription_message:"{reduction}€ de réduction. {monthsRemaining} mois restant puis {nextprice}€ {tva} /mois.",pre_subscription_message:"Abonnement à {price}€ ({reduction}€ de réduction). {monthsRemaining} mois restant puis {nextprice}€ /mois.",pre_subscription_message2:"Vous avez déjà acheté un abonnement pour {value} mois. Il démarrera dès que vous activerez votre compte.",pre_subscription_message_new:"Vous avez déjà acheté un abonnement de {value} mois",pre_subscription_message_activated:"Vous bénéficiez encore de {months} mois d'abonnement pré-achetés.",subscription_message_no_subscription_active:"Votre abonnement débutera lors de l'activation de votre compte.",subscription_message_no_subscription_active_trial:"Votre abonnement débutera après votre période d'essai.",pre_sub_active_msg:"Vous avez déjà acheté un abonnement pour {months} mois",lastname:"Nom",firstname:"Prénom",active_your_subscription:"Activez votre abonnement",add_payment_card:"Ajouter un moyen de paiement pour vos prochains achats",add_payment_card_islife:"Ajouter votre moyen de paiement",extend_your_subscription:"Étendre l'abonnement",can_active:"Veillez completer votre profil à 100% avant d'activer votre compte",loadsubscription:"chargement des données",payment_desc:"Aucune somme ne sera prélevée avant la fin de la période déjà souscrite.",information_desc:"Merci de renseigner les informations nécessaires pour éditer correctement vos factures et calculer leur montant ainsi que la TVA applicable.",payment_mode:"Mode de paiement",card_number:"Numéro de carte bancaire",expired:"Date d’expiration",bill_address:"Adresse de facturation",full_name:"Nom et Prénom:",company_number:"Numéro d'Entreprise:",address:"Adresse",my_subscription:"Mon abonnement",billing_info:"Information de facturation",change_subscription_title:"Changement de formule",change_subscription_btn:"Changer mon abonnement",current_subscription_btn:"Formule en cours",change_with_success:"Changement effectué avec succès",change_with_error:"Une erreur est survenue",activation_date:"Compte activé le {value}",joined_date:"Compte créé le {value}",payment_information:"Information de paiement",_change_subscription_title:"Changement d'abonnement",active_subscription_title:"Activation d'abonnement",change_btn:"Changer mon abonnement",change_desc:"Pour le modifier, vous pouvez passer au forfait supérieur si votre nombre de rendez-vous dépasse la limite.",active_btn:"Je m’abonne",unable_to_make_change:"Impossible d'effectuer le changement",discount_code:{add_btn:"Ajouter un code",code_desc:"Vous trouverez ci-dessous les détails des réductions appliquées.",discount_percent:"% de réduction",discount_fixed:"€ de réduction",applied:"Appliqué",no_apply:"Non appliqué",add_discount_title:"Ajouter un code de réduction",enter_code:"Veuillez saisir le code de réduction à appliquer",cancel:"Annuler",delete_btn:"Supprimer",apply:"Appliquer",confirm_delete:"Confirmation de suppression",confirm_delete_msg:"Êtes-vous sûr de vouloir supprimer ce code de réduction ?",an_error_occurred:"Une erreur est survenue lors de la suppression du code.",code_delete_with_success:"Le code a été supprimé avec succès !",code_applied_with_success:"Le code a été appliqué avec succès !",error_when_deleting:"Une erreur est survenue lors de l'application du code",please_enter_code:"Veuillez saisir un code avant de l'appliquer."}},addBtn:"Ajouter",addresses:{title:"Mes adresses",description:"Dans cette section, vous pouvez ajouter jusqu'à 3 adresses postales en tant que praticien.",registeredAddresses:"Adresses déjà enregistrées :",noAddress:"Aucune adresse n'a été enregistrée pour le moment.",errorHasOccurredWhileDeleting:"Une erreur est survenue lors de la suppression.",delete:"Supprimer",add:"Ajouter",edit:"Modifier",cancel:"Annuler",selectCountry:"Sélectionnez un pays",address:"Adresse",postalCode:"Code Postal",city:"Ville",addtionnalInfo:"Indication supplémentaire pour le patient...",asteriskForMandatoryFields:"Les champs actifs marqués d'un astérisque (*) doivent être renseignés.",updateAddresses:"Mettre à jour",requiredField:"Ce champ est requis.",successUpdate:"Votre adresse a été mise à jour !",successCreate:"Adresse créée avec succès.",successDelete:"Votre adresse a bien été supprimée !",alertOnUpdate:"Vos patients recevront un email indiquant que l'adresse a changé.",alertOnDelete:"Tous les futurs rdv seront annulés. Êtes-vous sûr ? | Veuillez choisir une adresse vers laquelle vos rendez-vous seront migrés.",alertOnWarning:"Un ou des rendez-vous sont associés à cette adresse. Êtes-vous sûr de vouloir la supprimer ?",warning:"Avertissement",continue:"Continuer",confirmation:"Confirmation",errorUpdate:"Une erreur est survenue lors de la mise à jour.",tooltipMsg:"Pour supprimer cette adresse, l'ajout d'une nouvelle adresse est requis.",useOnlyRemote:"Utiliser cette adresse pour les consultations à distance uniquement. Elle ne sera pas visible publiquement sur votre profil.","add-addr-btn":"Ajouter une adresse","add-form-title":"Ajout d'une nouvelle adresse","edit-form-title":"Modification d'une adresse",validate:"Valider","not-address-yet":"Je ne trouve pas mon adresse",street:"Indiquez la rue",street_placeholder:"Ex : Paris, rue 223",longitude:"Longitude",latitude:"Latitude",public_address:"Adresse publiquement affichée (Saisie libre)",no_addr_yet:"Je ne trouve pas mon adresse",changeAddressFrom:"Date de prise d'éffet pour les réservations futures",chooseDate:"Choisir une date"},home:{title:"Accueil du tableau de bord",description:"Complétez vos informations pour valider votre compte et accéder à toutes les fonctionnalités d'Holitime","active-message":"Votre compte est activé",account:{label:"Mon Compte",description:"Ajouter et complétez toutes les informations afin de valider votre compte sur la plateforme Holitime"},subscription:{label:"Mon Abonnement",description:"Choisissez votre abonnement adapté à vos besoins."},profile:{label:"Mes Profils",description:"Complétez toutes les informations de vos différents profils"},adresses:{label:"Mes Adresses",description:"Mettez à jour les informations concernant vos adresses de consultation"},timeslots:{label:"Mes Créneaux",description:"Définissez vos créneaux pour vos futurs prises de rendez-vous."},btn:{activate:"Activer mon compte",submit_to_validate:"Soumettre à validation",pending:"Activation en cours"},status:{success:"Votre compte a été soumis pour validation avec succès.",error:"Une erreur s'est produite lors de l'activation de vote compte"},update:"Modifier",complete:"Compléter",register:"Créer un compte"},legalSupport:{title:"Accompagnement juridique",subtitle:"Vous désirez exercer votre profession en toute sérénité?",description1:"Exercer votre métier sereinement passe par une connaissance approfondie des règles et des pratiques. En France, il devient de plus en plus complexe d'exercer les métiers du bien-être naturel et holistique en toute sécurité juridique. Bien respecter les règles est essentiel pour éviter les problèmes.",description2:"Souvent, il suffit d'utiliser le bon mot pour faire toute la différence. Profitez de l'expertise de <strong>Maître Fabrice Di Vizio</strong> pour vous accompagner et vous apporter cette sérénité.",description3:"N'hésitez pas à poser toutes vos questions via le formulaire en bas de page.",hint:"1000 caractères maximum",message:{required:"Le message est obligatoire",error:{max:"Le message ne dois pas dépasser plus de 1000 caractères"},active_message:"Veuillez activer un abonnement."},contact_motif:"Motifs de contact",have_question:"Vous avez une question ?",sendBtn:"Envoyer mon message",response:{success:"Votre message a été envoyé avec succès",error:"Une erreur s'est produite lors de l'envoie du méssage"},unavaillable_msg:"Prenez un abonnement Bâtisseur pour débloquer cette fonctionnalité.",trial_msg:`Pour activer votre abonnement, cliquez sur le bouton "Passer ma période d'essai".`,legal_items:{legal_question:"Question juridique"},benefits:"Notre accompagnement juridique vous offre de nombreux avantages",custom_assistance:"Assistance et conseils sur mesure",custom_assistance_desc:"Obtenez des conseils juridiques personnalisés pour vos besoins spécifiques.",fast_response:"Réponse rapide et fiable",fast_desc_desc:"Bénéficiez de réponses rapides, fiables et opérationnelles à vos questions juridiques.",pedagogical_support:"Accompagnement pédagogique",pedagogical_support_desc:"Accédez à des ressources pédagogiques de proximité, mises à jour régulièrement.",our_ressources:"Nos ressources",ressources_desc:"Nous mettons à votre disposition une liste de vidéos préenregistrées et d'autres ressources utiles pour vous aider à mieux comprendre les aspects juridiques de votre métier.",contact_desc:"Vous n’avez pas trouvé ce que vous cherchez? Contactez-nous via ce formulaire.",contact_desc2:"Nous vous répondrons dans un délai maximal de 48h.",welcome_msg:"Bienvenue sur notre page d'accompagnement juridique",with_lawyer:"Avec Maître",start_video:"Lancer la vidéo",ask_question:"Poser une question"},notifications:{title:"Notifications",remindersSectionTitle:"Rappels de rendez-vous",suggestionsSectionTitle:"Suggestions de praticiens",reminder3days:{title:"Rappel 3 jours avant",description:"Vous recevrez un email de rappel 3 jours avant votre rendez-vous pour vous permettre de mieux anticiper."},reminder1day:{title:"Rappel 1 jour avant",description:"Un email de rappel vous sera envoyé la veille de votre rendez-vous afin de vous aider à vous organiser."},reminder2hours:{title:"Rappel 2 heures avant",description:"Vous recevrez un rappel 2 heures avant votre rendez-vous, envoyé à la fois par email et par SMS pour ne pas l'oublier."},suggestions:{title:"Notification de praticiens près de chez vous",description:"Chaque semaine, vous recevrez par email une sélection personnalisée de praticiens situés près de chez vous, que vous pouvez désactiver à tout moment."}},patients:{import:"Importer",addNewClient:" Ajouter un client",create:{success:"Le patient a été créé avec succès.",error:"Une erreur est survenue lors de la création du patient."},createNew:"Créer un nouveau client",needHelp:"Besoin d’aide ?",firstName:{label:"Prénom*",helperText:"Le prénom est requis.",placeholder:"Entrer un prénom"},lastName:{label:"Nom*",helperText:"Le nom est requis.",placeholder:"nom"},email:{label:"Email*",required:"L'e-mail est requis.",invalid:"L'e-mail est invalide.",placeholder:"Entrer une adresse email"},phone:{label:"Numéro de téléphone",invalid:"Numéro de téléphone invalide.",helperText:"Le numéro de téléphone est requis.",hint:"Ce numéro ne sera pas affiché publiquement.",error:{required:"Le numéro de téléphone est réquis."}},birthday:{label:"Date de naissance"},gender:{label:"Sélectionner un genre"},actions:{cancel:"Annuler",create:"Créer"}},clients:{listTitle:"Listes des clients",search:"Rechercher",created_at:"Enregistré le : {value}",new:"Nouveau",new_clients:"Nouveau client",tel:"Tel:",mail:"Mail:",detailTitle:"Sélectionnez un client pour voir les détails",noClient:"Aucun client retrouvé",addressClientTitle:"Adresse du client",emailTitle:"Adresse Email",phone:"Téléphone",contactTitle:"Contact du client",country:"Pays",age:"Âge",birthdate:"Date de naissance",clientInfoTitle:"Informations sur le client",genre:"Genre",men:"Homme",woman:"Femme"}},iJ={fieldRequired:"* Champs obligatoires",avatar:{updateBtn:"Mettre à jour",updateBtn2:"Modifier ma photo de profil",removeBtn:"Supprimer",caption:"JPG, GIF ou PNG, < 5 MO","caption-2":"JPG, GIF ou PNG, inférieur à 5Mo",deleteProfil:"Supprimer le profil"},firstName:{label:"Prénom*",helperText:"Le prénom est requis."},lastName:{label:"Nom de famille*",helperText:"Le nom de famille est requis."},email:{label:"Adresse e-mail*",required:"L'adresse e-mail est requise.",invalid:"L'adresse e-mail est invalide."},phone:{label:"Numéro de téléphone",helperText:"Le numéro de téléphone est requis.",hint:"Ce numéro ne sera pas affiché publiquement.",error:{required:"Le numéro de téléphone est réquis."}},country:{label:"Pays",helperText:"Le pays de résidence est requis.",placeholder:"Entrer votre pays"},city:{label:"Ville",helperText:"La ville de résidence est requise.",placeholder:"Entrer votre ville"},address:{label:"Adresse",helperText:"La ville de résidence est requise.",placeholder:"Entrer votre adresse"},postalCode:{label:"Code postal",helperText:"Le code postal est requis.",placeholder:"Entrer votre code postal"},passwordInfo:"Mot de passe du compte",personalInfo:"Informations personnelles",profil:"Photo de profile:",info:"Informations",safety:"Sécurité","save-and-publish":"Enregistré et publié","save-as-draft":"Enregistré en brouillon","not-synced":"Profil non synchronisé","not-publish":"Enregistré en brouillon"},rJ={email:{label:"Adresse e-mail",error:{required:"L'adresse e-mail est requise.",invalid:"L'adresse e-mail est invalide."}},error:{required:"Ce champ est requis."},submitBtn:"Valider",updateBtn:"Mettre à jour",tvaInvalid:"Numéro invalide"},aJ={baseInformations:{title:"Informations de base"},avatar:{label:"Photo de profil"},disciplines:{label:"Mes disciplines",error:{required:"Au moins une discipline est requise.",max:"Vous ne pouvez pas sélectionner plus de 3 disciplines par profil."},suggest:"Vous ne trouvez pas votre discipline ? Vous pouvez en suggérer une en {link}.",suggestLinkLabel:"cliquant ici",noDataText:"Aucune discipline n'a été trouvée."},suggestDisciplineForm:{title:"Suggérer une discipline",discipline:{label:"Discipline",error:{required:"La discipline est requise."}},submitBtn:"Suggérer",successMessage:"Votre suggestion a bien été enregistrée. Elle sera rapidement examinée par notre équipe.",description:"Vous ne trouvez pas la discipline que vous cherchez ? Proposez-la ici pour qu’on puisse l’ajouter.",placeholder:"Suggérer une discipline"},mainDiscipline:{label:"Discipline principale",hint:"La discipline qui vous définit le mieux. Elle sera notamment utilisée pour l'URL de votre profil."},practitionerServices:{label:"Mes actes et expertises (facultatif)",hint:"Vous pouvez lister ici quelques actes et expertises que vous proposez. Cela permettra à vos clients de mieux comprendre votre pratique. Vous pourrez détailler davantage ces actes dans votre présentation ci-dessous.",error:{max:"Vous ne pouvez pas saisir plus de 5 actes par profil."},noDataText:"Aucun acte ou expertise n'a été trouvé."},targetAudiences:{label:"Ma clientèle",audience:{adults:"Adultes",children:"Enfants",adolescents:"Adolescents",elderly:"Personnes âgées",pregnantWomen:"Femmes enceintes",men:"Hommes",women:"Femmes",all:"Tous publics"},error:{required:"Au moins une clientèle est requise.",allWithOthers:`Vous ne pouvez pas sélectionner "Tous publics" avec d'autres clientèles.`}},paymentMethods:{label:"Moyens de paiement acceptés",method:{cash:"Espèces",check:"Chèques",creditCard:"Carte bancaire",transfer:"Virement bancaire"},error:{required:"Au moins un moyen de paiement est requis."}},spokenLanguages:{label:"Langues parlées",error:{required:"Au moins une langue est requise.",maximum5Languages:"Maximum 5 langues"}},email:{label:"Adresse e-mail publique (facultatif)",hint:"Cette adresse e-mail sera visible publiquement sur votre profil."},phone:{label:"Numéro de téléphone publique (facultatif)",hint:"Ce numéro de téléphone sera visible publiquement sur votre profil."},presentation:{title:"Présentation"},tagline:{label:"Présentation courte (facultatif)",hint:"Une courte présentation de vous ou de votre pratique. Elle pourra être affichée sur la page de recherche.",error:{max:"La présentation courte ne peut pas dépasser {maxLength} caractères."}},mainDescription:{label:"Présentation détaillée",hint:"Une présentation plus détaillée de vous et de votre pratique.",error:{max:"La présentation longue ne peut pas dépasser {maxLength} caractères.",min:"La présentation détaillée doit comporter au moins {minLength} caractères.",required:"La présentation détaillée est requise."}},sessionDescription:{label:"Comment se passe une séance ? (facultatif)",hint:"Décrivez ici le déroulement d'une séance type. Cela permettra à vos clients de mieux comprendre votre pratique.",error:{max:"La description de la séance ne peut pas dépasser {maxLength} caractères."}},expectedBenefits:{label:"Quels bénéfices en attendre ? (facultatif)",hint:"Décrivez ici les bénéfices que vos clients peuvent attendre de votre pratique.",error:{max:"La description des bénéfices ne peut pas dépasser {maxLength} caractères."}},degree_hint:"Au plus 100 caractères.",photos:{title:"Photos",subtitle:"Ajoutez des photos pour illustrer votre pratique (recommandé)",addBtn:"Ajouter"},degrees:{title:"Diplômes",subtitle:"Ces diplômes seront affichés sur votre profil. Ils permettent de crédibiliser votre parcours, vous différencier et rassurer vos clients. (recommandé)",schoolName:{label:"Nom de l'école"},discipline:{label:"Discipline"},graduationYear:{label:"Année d'obtention"},durationValue:{label:"Durée"},durationUnit:{label:"Unité",years:"Année | Années",months:"Mois",weeks:"Semaine | Semaines",days:"Jour | Jours"},description:{label:"Intitulé de la formation"},addBtn:"Ajouter un diplôme",addAnotherBtn:"Ajouter un autre diplôme",addDocumentBtn:"Ajouter un justificatif",deleteBtn:"Supprimer le diplôme",documentHint:`Ajouter un justificatif permet de faire valider votre diplôme par notre équipe et d'obtenir un badge "Diplôme vérifié" sur votre profil (recommandé). Ce document ne sera pas affiché publiquement. Un document d'identité doit être inclus.`,noDegree:"Diplôme non renseigné",noPictures:"Photo non renseignée"},website:"Votre Site internet (facultatif)",validDomain:"L'URL doit comporter un domaine valide",invalidUrl:"URL invalide",noProfil:"Aucun profil trouvé.",loadProfils:"chargement de vos profils",alertTitle:"Attention : Données non sauvegardées",alertDescription:"En quittant cette page, vous risquez de perdre les modifications apportées. Voulez-vous vraiment quitter sans sauvegarder ?",leave:"Quitter",saveAndExit:"Enrégistrer et quitter",profil_detail:"Détails",picture:"Photo de Profil:",info:"Informations",presentation_title:"Présentation",degree:"Diplômes",photos_title:"Photos",save_publish:"Enregistrer et publier","delete-title":"Voulez-vous vraiment supprimer ce profil ?","delete-title-draft":"Voulez-vous vraiment supprimer ce brouillon?","draft-title":"Suppression du brouillon","delete-desc":"La suppression entraînera également la suppression de tous les créneaux et rendez-vous associés à ce profil.",previous:"Précédent",save_to_draft:"Enregistrer en brouillon",next:"Suivant","suggest-image":"Pour un meilleur rendu, veuillez utiliser une image de 200x200 px"},oJ={fieldRequired:"* Champs obligatoires",oldPassword:{label:"Mot de passe actuel*",helperText:"Le mot de passe actuel est requis pour modifier votre mot de passe."},newPassword:{label:"Nouveau mot de passe*",helperText:"Au moins 8 caractères. Doit inclure au moins une lettre majuscule, une lettre minuscule, un chiffre et un symbole."},confirmPassword:{label:"Confirmer le nouveau mot de passe*",helperText:"Les mots de passe ne correspondent pas."}},sJ={login:"Connexion",title:"Connectez-vous",email:{label:"Email",placeholder:"Entrer votre adresse email",helperText:"L'adresse e-mail est requise."},password:{label:"Mot de passe",helperText:"Le mot de passe est requis.",placeholder:"Indiquez votre mot de passe"},forgotPassword:"Mot de passe oublié ?",submitBtn:"Connexion",passwordBtn:"Utiliser mon mot de passe",emailLinkBtn:"Recevoir un lien par e-mail",backBtn:"Retour",noAccount:"Pas encore de compte ?",emailLinkSent:"Un lien de connexion a été envoyé à votre adresse e-mail.",error:{emailRequired:"L'adresse e-mail est requise.",passwordRequired:"Le mot de passe est requis.",emailInvalid:"L'adresse e-mail est invalide.",emailNotFound:"Aucun compte n'a été trouvé avec cette adresse e-mail.",invalidCredentials:"Les informations d'identification sont incorrectes.",unknownError:"Une erreur inconnue s'est produite. Veuillez réessayer.",invalidEmailLink:"Le lien est invalide ou a expiré."},no_account:"Vous n’avez pas de compte?",register_now:"Inscrivez-vous ici",connect_link_title:"Connectez-vous avec un 🔗 lien",send:"Envoyer",login_with_link_title:"Recevoir le lien <br>de connexion",link_send_with_success:"Lien de connexion <br>envoyé",link_send_desc:'Un <span class="text-secondary font-weight-bold">lien de validation</span> vous à été envoyé par mail. <br><br> Cliquez sur ce lien pour vous connecter',go_home:"retourner à l’accueil"},lJ={title:"Inscription Patient",title_step1:"Étape 1 : Inscription Praticien",title_step2:"Étape 2 : Référencement",title_step3:"Étape 3 : Paiement",email:"Email",name:"Nom",firstname:"Prénom",phone:"Numéro de téléphone",password:"Mot de passe",required_msg:"Les champs actifs marqués d'un astérisque (*) doivent être renseignés.",submit_btn:"VALIDER",register_btn:"Créer un compte {value}",subscription:{error_global:"Une erreur est survenue. Veuillez réessayer plus tard.",error_field:"Veuillez remplir les champs de la carte bancaire.",your_payment_method:"Votre moyen de paiement",success:"Votre abonnement a bien été enregistré",cart_owner:"Titulaire de carte bancaire"},success_msg:"Votre compte a été créé avec succès",user_exist:"Un compte existe déjà avec cette adresse e-mail, veuillez vous connecter.",tva_number:"Numéro TVA (facultatif)",tva_hint:"Si vous êtes assujetti à la TVA et que vous disposez d'un numéro de TVA, vous pouvez renseigner votre numéro de TVA intracommunautaire pour que vos factures soient émises en Hors Taxes. Sinon, vous serez facturé TTC avec la TVA applicable dans votre pays. Si vous êtes hors UE, aucune TVA ne sera appliquée.",billing_country:"Pays de facturation",tva_label:"Indiquer votre numéro de TVA pour être facturé HT",tva_placeholder:"Numéro de TVA (facultatif)",placeholder_firstname:"Entrer votre prénom",placeholder_lastname:"Entrer votre nom",placeholder_email:"Entrer votre Adresse mail",placeholder_pwd:"Définissez un mot de passe",register_infobule:"Indiquer votre ville et votre code postal pour être tenu informés des nouveaux praticiens autour de vous",patient_success_msg:"Merci pour votre inscription. Un lien de validation vous à été envoyé par mail. Cliquez sur ce lien pour valider la création de votre compte.",patient:"Je suis Patient",praticien:"Je suis Praticien",address:"Adresse",city:"Ville",postalCode:"Code postal",have_account:"Vous avez déjà un compte?",connect:"Connectez-vous",formule:'Votre formule <span class="text-secondary">Holitime</span>',formule_desc:"Inscrivez-vous en choisissant un forfait adapté à votre besoin",formule_min_desc:'Offre de lancement valable pour les <span class="text-accent">6 premiers mois</span>',essai:"Bénéficiez de 15 jours d’essai gratuit !",no_withdrawal:"Aucun prélèvement avant la fin de la période d'essai !",can_cancel:"Annulez votre abonnement à tout moment, sans frais, pendant cette période.",today_you_can:"Dès aujourd'hui, vous pouvez :",pratient_today_can:"Dès aujourd'hui, vous pourrez :",create_account:"Créer votre compte et configurer vos adresses de prestation",create_profile:"Rédiger vos profils (jusqu'à trois profils distincts autorisés)",create_timeslot:"Définir vos créneaux en fonction de vos disponibilités",submit_account:"Soumettre votre compte pour vérification de conformité",receive_appointment:"Commencer à recevoir vos premiers rendez-vous !",receive_notification:"Recevoir des notifications dès l’arrivée de nouveaux praticiens près de chez vous",find_practitionner:"Trouver facilement le praticien idéal et réservez vos séances en ligne ou en présentiel en quelques clics",share_your_experience:"Partager votre expérience après chaque consultation et contribuez à une communauté de patients engagés",discover:"Explorer une vaste gamme de pratiques naturelles, et découvrez de nouvelles approches pour améliorer votre bien-être",your_subscription:"Votre abonnement",tva_label_register:"Numéro de TVA (facultatif)",card_number:"Numéro de carte bancaire",billing_address:"Adresse de facturation",tva_infobulle:"Renseigner votre numéro de TVA pour être facturé HT",postal_code:"Code postal",tva_percent:"% de TVA",country:"Pays",your_register:"Votre Inscription",free:"Gratuite",register_info:"Information sur l’inscription",subscription_detail:"Détail de cet abonnement",billing_address_placeholder:"Numéro et nom de rue",free_msg:'Bénéficiez de <span class="font-weight-bold">15 jours d’essai gratuit !</span>',you_are:"Vous êtes",switch_to:"Vous allez passer en compte {value}",redirect_description:"Vous serez alors redirigé vers le tableau de bord du compte {value}",switch_to_account:"Passer en compte {value}",change_account_type:"Changement de type de compte",save:"Enregistrer",step2:{back:"Retour",your_subscription:"Étape 2: Votre abonnement",duration:"Durée",contribution:"Contribution {type}",auto_renew:"Renouvellement automatique chaque {value} sans engagement.",become_contributor:"Devenir contributeur",become_contribution_detail:"Avec l’option Contributeur, vous pouvez participer au développement de la plateforme et de son écosystème, qui évolue autour de nos pratiques, tout en contribuant à la promotion de nos services.",choose_amount:"Définissez un montant",have_vat_number:"J'ai un numéro de TVA",loading_msg:"Chargement des données...",vat_number:"Numéro de TVA",enter_number:"Entrez le numéro",safety_payment:"Paiement cryptés et sécurisés",payment_desc_part1:"En validant votre paiement, vous acceptez nos",payment_desc_part2:"et confirmez que vous avez lu notre",payment_desc_part3:"Vous pouvez annuler les paiements récurrents à tout moment.",pay_now:"Payer maintenant",next:"Continuer",recap_title:"Récapitulatif du forfait",pack_title:"Forfait {value}",pack_quantity:"Plan {value}",total:"Total {value}",discount_title:"Code Promo: Remise de {discount}",taxes:"TVA",have_discount_code:"Un code promotionnel ? Cliquez ici.",enter_discount_code:"Saisissez le code promo",valide_btn:"Valider",total_desc:"Le sous-total n'inclut pas les taxes applicables",guarantee:"Garantie satisfait ou remboursé de 15 jours",confirm_payment:"Paiement confirmé",confirm_min_desc:'Félicitations ! Votre <span class="font-weight-bold">abonnement</span> est maintenant <span class="text-secondary">actif</span>.',confirm_desc:"Nous sommes ravis de vous compter parmi nous. Explorez toutes les fonctionnalités et profitez pleinement de votre expérience.",confirm_btn:"Continuer",invalid_discount_code:"Code promotionnel non valide",valid_discount_code:"Code promotionnel validé",required:"Champs obligatoires"}},uJ={package_title:"Votre forfait Holitime",money_back:"Remboursement garanti pendant 14 jours",subscription_desc:"Merci de renseigner votre moyen de paiement pour régler le premier mois d'abonnement à Holitime. Cela vous permettra d'accéder à l'ensemble des services de Holitime pendant 1 mois à partir de l'activation de votre compte, que vous pourrez effectuer au moment de votre choix. Ensuite, vous serez débité chaque mois à la date anniversaire de l'activation de votre compte. Vous pouvez arrêter votre abonnement à tout moment, sans engagement !",make_payment:"Effectué le paiement",card_bank_owner:"Titulaire de carte bancaire",recap:{title:"Voici le récapitulatif de votre abonnement"},practicien:"Praticien",description:{practitioner:"Vous êtes praticien de",holistic_medecine:"médecine holistique",register_msg:"Inscrivez-vous en choisissant le",suitable_package:"forfait adapté",your_needs:"à vos besoins !"}},cJ={invalidPhoneNumber:"Numéro de téléphone invalide"},dJ={photo:"photo|photos"},fJ={file:"fichier|fichiers"},hJ={save:"Enregistrer",delete:"Supprimer",error:{errorHasOccurred:"Une erreur est survenue.",invalidDate:"La date est invalide."},success:{copySuccess:"Copié dans le presse-papiers"},new:"Nouveau",notSpecified:"Non renseigné"},pJ={title:"Suppression de profil",description:"Êtes-vous sûre de vouloir supprimer ce profile ?"},mJ="Voir +",vJ="Enrégistrer un nouveau profil",gJ={title:"Mot de passe oublié",forgot_password:"Mot de passe oublié ?",send_recovery_email:"Recevoir un e-mail de récupération",check_mailbox:"Veillez consulter votre messagerie",error_when_sending_email:"Une erreur s'est produite lors de l'envoie de l'e-mail",new_password:"Nouveau mot de passe",confirm_new_password:"Confirmer le nouveau mot de passe",password_does_not_match:"Le mot de passe saisi ne correspond pas",user_not_found:"Impossible de trouver cet utilisateur",update_password:{success:"Mot de passe mis à jour avec succès",error:"Une erreur s’est produite lors de la mise à jour du mot de passe."},submitBtn:"Valider",go_to_login:"Revenir à la page de connexion",mailSend:"Le mail de réinitialisation a bien été envoyé à l’adresse indiquée."},yJ={rdv:"Créneau sélectionné",contact:"Coordonnées",helpfulInfo:"Informations utiles",confirm:"Confirmation",have_account:"J'ai déjà un compte",new_to_holitime:"Je suis nouveau sur Holitme",email_or_phone:"Adresse email",password:"Mot de passe",forgot_password:"Mot de passe oublié ?",identify_yourself:"Connexion",you_are:"Vous êtes",firstname:"Prénom",lastname:"Nom",email:"Email",phone:{title:"Téléphone Mobile",hint:"Vous recevrez un rappel de votre rendez-vous",required:"le numéro de téléphone est requis"},create_password:"Créez votre mot de passe",password_hint:"Pour accéder à votre compte plus tard",accept:"En continuant, vous acceptez les",of_holitime:"de Holitime",terms_and_condition:"conditions générales",and_the:"et la",privacy_policy:"politique de confidentialité",confirmBtn:"Confirmer",check_your_details:"Vérifier vos informations avant le rendez-vous",change_account:"Changer de compte ?",appointment_recap:"Récapitulatif du rendez-vous",timeslotSelected:"Créneau sélectionné",timeslotPreReservationLimit:"Ce créneau est pré-réservé pendant 15min",update_appointment:"Modifier le rendez-vous",consultation_reason:"Motif de consultation",thank_you_message:"Merci {name} pour votre réservation!",appointmentConfirmation:'Votre consultation avec <span class="confirmation-details"> {practicienName}</span> est bien confirmée pour le <span class="confirmation-details">{date}</span>',add_to_calendar:"Ajouter le rendez-vous à mon agenda",prepare_your_session:"Préparez votre séance",share_your_details:"Partagez quelques détails pour que votre séance réponde vraiment à vos attentes",appointment_not_confirmed_title:"Votre rendez-vous n'est pas encore confirmé",appointment_not_confirmed_subtitle:"Veuillez vous connecter ou créer un compte pour confirmer le créneau sélectionné",appointment_confirmed:"Votre rendez-vous est confirmé",degree:{title:"Degré de familiarité avec les médecines douces?",select:"Choisissez votre degré de familiarité"},more_info:{title:"Communiquez plus de détails au praticien",hint:"1000 caractères maximum",placeholder:"si vous désirez prendre un rendez-vous pour un enfant ou un autre membre de votre famille, vous pouvez le préciser ici"},send_documents:"Envoyer des documents complémentaires",attach_document:"Joindre un document",ten_max:"10 documents maximum",confirm_and_send:"Confirmer et envoyer au praticien",maxLength:"Le commentaire doit être inférieur à 1000 caractères",error:"Une erreur s'est produite",birthday:"Date de naissance",familiarity_levels:{level1:"Je découvre pour la première fois",level2:"J'ai une connaissance de base",level3:"J'utilise occasionnellement",level4:"Je les utilise régulièrement",level5:"Il existe autre-chose que les médecines douces ?"},new_search:"Effectuer une autre recherche",appointment_lists:"Mes rendez-vous",tarif:"Tarif",duration:"Durée","consultation-reason":"Motif de Consultation",cancelAlert:"Êtes-vous sûr de vouloir modifier ce rendez-vous ? Vous perdrez les informations actuellement enregistrées.",existAlert:"Êtes-vous sûr de vouloir quitter ? Les informations actuellement enregistrées seront perdues.",timeslot_no_longer_availlable:"Ce créneau n'est plus disponible"},_J={patients:{completed_event:"Rendez-vous passés",upcoming_event:"Rendez-vous à venir",update:"Modifier le RDV",resume_appointment:"Reprendre le RDV","update-title":"Modifier le rendez-vous","update-description":"Modifier la date et l'heure",comments:"Écrire une note pour votre praticien",cancel:"Annuler le RDV",price:"Prix & durée",payment_method:"Moyen de paiement | Moyens de paiement",access_information:"Information d'accès",add_to_calendar:"Ajouter à mon agenda",cancelBtn:"Annuler",saveBtn:"Enregistrer",cancel_dialog_title:"Suppression de votre rendez-vous",cancel_dialog_description:"Êtes-vous sûre de vouloir annuler ce rendez-vous ?",cancel_confirm_btn:"Supprimer",cancel_back:"Retour",message:{updade_success:"Votre rendez-vous a été mis à jour avec succès",error:"Une erreur s'est produite",cancel_success:"Votre rendez-vous a été annulé avec succès"},update_date:"Modifier la date et l'heure",load_appointment:"Chargement des rendez-vous",for:"pour",a:"à ",appointment_cannot_modified:"Impossible de modifier ce rendez-vous, une erreur s'est produite",remote:"Téléconsultation"},sync:{sync_calendar:"Synchroniser",resync_calendar:"Resynchroniser",sync_with_google_calendar:"Synchroniser avec Google Calendar",google_agenda:"Google Agenda",title:"Synchronisation Google",process_success:"Votre agenda a été synchronisé avec succès !",process_error:"Une erreur s'est produite lors de la synchronisation",process_sync:"Synchroniser",cancel:"Annuler",selectHolitimeProfile:"Choisissez un profil Holitime",yourProfiles:"Vos profils",choiceProfile:"Sélectionner un profil",selectGoogleCalendar:"Choisissez un calendrier Google",yourCalendars:"Vos calendriers Google",choiceCalendar:"Sélectionner un calendrier",agenda_synced:"Synchronisé",stop:"Arrêter",sync_stopped_successfully:"Synchronisation arrêtée avec succès",sync_stopped_error:"Désolé, une erreur innatendue s'est produite lors de l'arrêt de la synchronisation",doYouReallyWantToStopSync:"Voulez-vous réellement stopper la synchronisation avec Google Agenda ?",stop_title:"Arrêt de la Synchronisation Google"}},bJ={makeAnAppointment:"Prendre rendez-vous",consultationLocation:"Lieu de consultation",typeOfConsultation:"Type de consultation",inPersonConsultation:"En présentiel",otherProfiles:"Autres profils",remoteConsultation:"Téléconsultation",price:"Tarif",duration:"Durée",acceptedPaymentMethods:"Moyens de paiement acceptés",chooseDate:"Choisir une date",callPractitioner:"Appeler le praticien",specialties:"Spécialités",areasOfExpertise:"Actes et Expertise",spokenLanguages:"Langues parlées",teleconsultation:"Téléconsultation",meansOfPayment:"Moyens de paiement",payment:"Paiement",detailedPresentation:"Présentation détaillée :",sessionProcess:"Déroulement d'une séance",expectedBenefits:"Quels sont les bienfaits attendus ?",trainingAndExperience:"Diplômes et Formations",showMore:"Afficher plus",showLess:"Afficher moins",seeOnMap:"Voir sur la carte",paymentMethods:"Moyens de paiements",errorGetProfile:"Une erreur est survenue lors de la récupération du profil",accountInactive:"Ce profil n'est pas visible publiquement car vous n'avez pas encore activé votre compte.",practitionnerFeedback:"Avis et commentaires sur le praticien",verified:"Vérifié",verifiedDiplomas:"Diplômes vérifiés"},wJ={profileNotFound:"Le profil n'a pas été trouvé.",cannotTakeRdvWithYourself:"Vous ne pouvez pas prendre RDV avec vous-même.",availableFrom:"Dispo dès ",cash:"@:profileForm.paymentMethods.method.cash",check:"@:profileForm.paymentMethods.method.check",creditCard:"@:profileForm.paymentMethods.method.creditCard",transfer:"@:profileForm.paymentMethods.method.transfer",fromPrice:"À partir de {price} €",consultationPlace:"Adresse de la consultation",consultationMotive:"Motif de consultation",price:"Tarif : {price} €",duration:"Durée : {duration} minutes",confirmCall:"Voulez-vous appeler le praticien ?",distanceFromPatient:"À {distance} de chez vous",pleaseSelectMotive:"Aucun créneau <br> disponible",errorNoAppointmentAvailable:"Ce créneau n'est plus disponible.",noAvailability:"Aucun créneau disponible",remoteLabel:"Téléconsultations",graduationYear:"De {yearStart} à {yearEnd}",durationInMonth:"{duration} mois",durationInWeeks:"{duration} semaine | {duration} semaines",positifReviews:"Avis positif | Avis positifs",next:"Valider le rendez-vous","image-galery":"Galerie d'images",training:"Diplôme | Diplômes",discipline:"Discipline",obtain:"Obtention","degree-duration":"Durée","show-less":"Afficher moins","show-more":"Afficher plus","discover-practitioners":`Découvrez d'autres praticiens en lien avec la <span class="text-secondary">discipline</span>`,feedbacks:{"empty-feedback":"Aucun avis trouvés","more-feedbacks":"Plus d'avis","feedback-loading":"Chargment d'avis","global-feedback-msg":"{number} évaluations globales","feedback-positif-ratio":"{percent}% des avis sont positifs",no_feedback:"Aucun commentaire disponible pour le moment"},contact:{noAddr:"Le praticien n'a pas encore configuré d’adresse pour ce profil",description:"Vous ne pouvez pas prendre de rendez-vous pour le moment. Veuillez prendre contact avec le praticien pour plus d'informations.",contactPractitionner:"Contacter le praticien",contactInfoTitle:"Information de contact",email:"Email",emailPlaceholder:"Entrer votre adresse email",phone:"Téléphone",firstname:"Prénom",firstnamePlaceholder:"Entrer votre prénom",lastname:"Nom",lastnamePlaceholder:"Entrer votre nom",objet:"Objet",objetPlaceholder:"Entrer l’objet de votre mail",message:"Message",messagePlaceholder:"Ecrire un message",send:"Envoyer",loginMessage:"Veuillez vous connecter pour envoyer un message.",login:"Se connecter",success_message:"Message envoyé avec succès au praticien"},"display-phone":"Afficher le numéro",signaler:"Signaler",favoris:"Mettre en Favoris",check_title:"Vérification",reserve:"Réserver un créneau","contact-practitionner":"Contacter le praticien"},SJ={sectionOnetitle:"Devenez",sectionOneambassadeur:"ambassadeur",sectionOnedescription:"Chez Holitime, nous croyons en la force de la communauté. C'est pourquoi nous avons créé notre programme de parrainage, qui vous offre l'opportunité non seulement de nous aider à diffuser notre mission, mais également de partager les bénéfices de notre succes.",sidebarTitle:"Inscrivez-vous",sidebarDescription:"Saisissez votre adresse e-mail ci-dessous pour recevoir votre lien unique d'affilié. Si vous êtes déjà inscrit, vous recevrez de nouveau votre lien.",sidebarButton:"S’inscrire",emailField:"Entrer votre adresse email",Voilà CommentFonctionne:"Voilà comment fonctionne",leParrainage:"le parrainage",InscrivezVous:"1. Inscrivez-vous",InscrivezVousText:"Devenez ambassadeur en vous inscrivant et recevez un lien unique à partager",Partagez:"2. Partagez",PartagezText:"Une fois inscrit, recevez un lien unique à partager le avec votre réseau",GagnezDesCommissions:"3. Gagnez Des Commissions",GagnezDesCommissionsText:"Gagnez 10% de commission sur chaque abonnement via votre lien. Simple et direct",UnLienPourLaVie:"5. Un lien pour la vie",UnLienPourLaVieText:"Vous continuez à toucher une commission sur chaque paiement de vos filleuls",RecevezVosPaiements:"Recevez vos paiements",RecevezVosPaiementsText:"Retirez vos gains dès 10€ de commissions",PourquoiDevenir:"Pourquoi devenir",ambassadeur:"ambassadeur ?",ContribuezImportante:"Contribuez à une cause importante",ContribuezImportanteText:"En partageant Holitime, vous aidez à promouvoir le bien-être holistique et à rendre ces pratiques plus accessibles.",GénérezDesRevenus:"Générez des revenus",GénérezDesRevenusText:"Vous gagnez une commission pour chaque nouvel abonnement généré grâce à votre lien. De plus, vous continuerez à recevoir des commissions, de manière passive, tant que vos filleuls resteront abonnés à Holitime.",SoyezVotreEngagement:"Soyez récompensé pour votre engagement",SoyezVotreEngagementText:"Plus vous partagez, plus notre mission se propage, et plus vous gagnez.",Devenez:"Devenez",ambassadeurMaintenant:"ambassadeur maintenant",Holitime:"Holitime",cest:"c’est ...","40Millions":"40 millions",sevenM:"700 000",ninetyForuPer:"94%",Patients:"Patients",Praticiens:"Praticiens",DavisPositifs:"D’avis positifs",faq:"faq",faqTitle:"Questions fréquentes",faqPanleTitleFirst:"Qu'est-ce qu'un ambassadeur Holitime ?",faqPanleTitleFirstText:"Un ambassadeur Holitime est un membre de notre communauté qui partage son lien de parrainage pour promouvoir la plateforme.",faqPanleTitleSecond:"Pourquoi devenir ambassadeur Holitime ?",faqPanleTitleSecondText:"En devenant ambassadeur, vous contribuez à la promotion des pratiques de bien-être holistique tout en gagnant un revenu passif. C'est une opportunité de soutenir une cause importante et de faire partie d'une communauté engagée.",faqPanleTitleThird:"Comment devenir ambassadeur Holitime ?",faqPanleTitleThirdText:"Pour devenir ambassadeur, il vous suffit de vous inscrire via notre page dédiée. Une fois inscrit, vous recevrez un lien unique que vous pourrez partager avec votre réseau pour commencer à générer des commissions.",faqPanleTitleFourth:"Quel est le montant de la commission que je peux gagner ?",faqPanleTitleFourthText:"Vous gagnez une commission de 10% sur chaque abonnement généré via votre lien de parrainage.",faqPanleTitleFifth:"Quand et comment puis-je retirer mes gains ?",faqPanleTitleFifthText:"Vos gains seront récupérables après le lancement du projet Holitime. Vous pouvez les retirer en indiquant votre IBAN dans votre tableau de bord. Le montant total de vos commissions sera ensuite transféré directement sur votre compte bancaire.",faqPanleTitleSixth:"Est-ce que mes filleuls sont liés à moi à vie ?",faqPanleTitleSixthText:"Oui, les praticiens que vous parrainez restent liés à votre compte à vie. Cela signifie que vous continuerez à toucher des commissions sur chaque paiement qu'ils effectuent, même après leur première inscription.",signupComplete:"Inscription réussie !",signupCompleteText:"Vous allez recevoir d’ici quelques instants un email avec votre lien unique que vous pouvez partager dès à présent.<br/><br/>Si vous ne recevez pas cet email d’ici 5 minutes, vérifiez votre dossier spam ou contactez-nous via",withdrawEarnings:"Retrait des gains"},CJ={title:"Prenez rendez-vous avec le praticien de votre choix",searchButton:"Rechercher",availabilities:"Disponibilités",prices:"Honoraires",actsAndExpertises:"Actes et expertises",remoteOnly:"Téléconsultation uniquement",today:"Aujourd'hui",duringTheNextThreeDays:"Dans les trois prochains jours",duringTheWeek:"Dans la semaine",deleteFilter:"Réinitialiser les filtres",refresh:"Actualiser",countResults:"{count} Résultats",displayMap:"Afficher la carte",spokenLanguages:{label:"@:profileForm.spokenLanguages.label"},nextAppointmentDate:"Prochain RDV {date}",noNextAppointment:"Pas de RDV disponible",nextAvailabilities:"Prochaines disponibilités",morning:"Matin",afternoon:"Après-midi",resultSentence_coutPractitioners_city_radius:"Il y a <b>{countPractitioners}</b> praticiens correspondant à vos critères de recherche.",resultSentence:"Voici les résultats correspondant à vos critères de recherche",resultSentenceWithDisciplineAndCity:"Voici les résultats de recherche de {discipline} à {location}",resultSentenceWithDiscipline:"Voici les résultats de recherche de {discipline}",resultSentenceWithCity:"Voici les résultats de recherche à {location}",scheduleAppointment:"Prendre RDV",seeProfile:"Voir le profil",noAvailability:"Aucun créneau disponible",noResult:"Holitime vient tout juste d'ouvrir ses portes. De nombreux praticiens sont en train de rejoindre la plateforme. Revenez bientôt pour découvrir de nouveaux praticiens dans votre région.",discoverMorePractitioners:"Découvrir plus de praticiens",TextUnderMap:"Être tenu informé des nouveaux praticiens près de chez vous",opinionPositive:"Avis positif",opinionsPositive:"Avis positifs"},EJ="€",xJ={titleAppointmentCanceled:"Rendez-vous en cours annulé",messageAppointmentCanceled:"Le rendez-vous en cours a été annulé pour cause d'inactivité."},kJ="Offre de lancement valable pour les 6 premiers mois",TJ="Offre de lancement valable pour la première année",PJ="Prise de rendez-vous",$J="Jusqu'à 3 profils distincts",AJ="Jusqu'à 3 adresses",OJ={title:"Sélectionner le temps"},DJ="Prochain prélèvement",IJ={title:{account:"Holitime - Mon Compte"}},NJ="Soumission de votre compte ",MJ="Soumission de votre compte pour activation",LJ="Votre abonnement actuel:",RJ="Période d’essaie {value}",FJ="en cours,",VJ="Prochain prélèvement",BJ="Fin d'abonnement",zJ="Informations de paiement",jJ="Indiquez votre numéro TVA pour etre facturé HT",UJ="Carte déjà enregistrée",HJ="Numéro de card",qJ="Expire le",YJ="ou",WJ="Date d’expiration",GJ="Ajouter une nouvelle carte",KJ="Une erreur s'est produite lors de la mise a jour de la carte",ZJ="une erreur s'est produite lors de la mise à jour des informations",XJ="Validez votre compte pour accéder à cette fonctionnalité",JJ="Vous bénéficier de {month} mois d'abonnement correspondant à vos mois de pré abonnement",QJ="Vous ne serez pas débités pendant ces {month} mois",eQ="Votre prélèvement démarrera le: {billDate}",tQ="Si vous avez des questions n'hésitez pas à nous contacter à l'adresse",nQ="Devenir Ambassadeur Holitime",iQ="Erreur de paiement : Veuillez vérifier vos informations et réessayer",rQ='Avant de soumettre votre compte pour activation, veuillez vous assurer que toutes les informations ci-dessous sont correctement remplies. <br> <br> Une fois soumis, votre compte sera examiné sous <span class="font-weight-bold">48 heures</span>.',aQ="Soumettre pour activation",oQ="Annuler",sQ="{value} jours restant",lQ="terminée le {value}",uQ="Abonnement <br> à vie",cQ="Vous avez déjà un abonnement de ",dQ="{value} mois en cours",fQ={title:"FAQ",subtitle:"Questions fréquentes"},hQ={title:"Contactez-nous",subtitle:"Vous avez besoin de plus d’explications ?<br>Nous sommes à votre disposition",form:{lastname:"Nom",firstname:"Prénom",email:"Email",reason:"Motif de contact",message:"Message",required:"requis",options:{subscription_info:"Informations sur les abonnements",seo:"Question sur le référencement Holitime",testimonial:"Proposer mon témoignage",feature:"Proposition de fonctionnalité",technical_issue:"Problème technique",press_relations:"Relation Presse",affiliation:"Parrainage",report:"Signalement",other:"Autre"}},success_message:"Message envoyé avec succès",error_message:"Désolé, une erreur innatendue s'est produite",send_btn:"Envoyer un message"},pQ={title:"Témoignages",subtitle:"Ils nous font confiance"},mQ="Montant",vQ="Période d'essai",gQ="Ex: FR 32 123456789",yQ="Aller à la page de connexion",_Q="retourner à l’accueil",bQ="Aucun prélèvement avant la fin de votre période de pré-inscription,",wQ="Vous êtes :",SQ="Basculer entre vos comptes",CQ="Basculer en {value}",EQ='Vous bénéficier de <span class="text-secondary">{value}€</span> de réduction:',xQ="Vous êtes abonné à l’offre",kQ="{value} mois restant",TQ="Montant du prochain prélèvement",PQ="Référencement Holitime",$Q="Mensuel",AQ="Annuel",OQ="À vie",DQ='Vous avez déjà un abonnement de <span class="text-secondary">{value} mois</span>:',IQ='Vous avez un abonnement à <span class="text-secondary">Vie</span>',NQ="Télécharger",MQ="Paiements et factures",LQ="Réductions",RQ="Modifier mon abonnement",FQ="Votre période d’essai se termine dans:",VQ="Arrêter l’essai",BQ="Arrêter l’abonnement",zQ="Passer ma période d'essai",jQ="Votre abonnement démarre dès que vous activez votre compte.",UQ={title:"Suppression d'adresse",message:"Voulez-vous vraiment {value} cette adresse ?",description:"La suppression entraînera également la suppression de tous les créneaux et rendez-vous associés à cette adresse.",edit_title:"Changement d'adresse",edit_message:'<p>Cette modification <strong>s’applique à tous vos rendez-vous à venir</strong>. Les rendez-vous passés garderont l’ancienne adresse.</p><div class="my-2">📆 <strong>Choisissez une date d’application :</strong></div><div class="ml-8"><ul><li>Les rendez-vous avant cette date garderont l’ancienne adresse.</li><li>Les rendez-vous après auront la nouvelle adresse.</li></ul></div><div class="mt-1">Pour modifier l’adresse d’un rendez-vous spécifique, utilisez la section "Mes rendez-vous".</div>'},HQ="chargement...",qQ="Le prochain prélèvement aura lieu {value} mois après l'activation de votre compte.",YQ={title:"Passer ma période d'essai",success:"Votre abonnement holitime est démarré avec succès"},WQ="Annuler mon abonnement",GQ="Annulation de votre abonnement",KQ="Abonnement annulé et prendra fin le",ZQ="Abonnement Holitime annulé",XQ="Nous sommes désolés de vous voir partir",JQ="Êtes vous sûr de vouloir arrêter votre abonnement ?",QQ="Cette action est irréversible !",eee="Votre référencement sur Holitime sera désactivé",tee="Vos profils ne seront plus visibles publiquement sur Holitime",nee="Votre abonnement sera arrêté et vous ne serait plus débité de votre compte",iee="Vous perdrez l'avantage de la réduction actuellement appliqué",ree="Pouvez vous nous dire pourquoi vous nous quittez ?",aee="Cela nous permettra de nous améliorer.",oee="Votre avis",see="300 caractères au maximum",lee="Continuer",uee="Fermer",cee="Arrêter l'essai",dee="Annuler",fee={past_due:"Votre abonnement est en attente de paiement. Merci de vérifier vos informations de paiement pour éviter toute interruption de service.",canceled:"Votre abonnement a été annulé. Pour continuer à utiliser nos services, veuillez réactiver votre abonnement en soumettant votre compte pour activation.",unpaid:"Toutes les tentatives de paiement de votre abonnement ont échoué. Votre abonnement est désormais en pause ou annulé. Veuillez mettre à jour vos informations de paiement pour réactiver votre compte en le soumettant pour activation.",incomplete:"Un problème est survenu lors de la création de votre abonnement en raison d'un échec de paiement initial. Votre abonnement restera incomplet tant que le paiement ne sera pas effectué. Veuillez vérifier vos informations puis soumettez votre compte pour activation.",incomplete_expired:"Votre paiement n'a pas pu être effectué. Veuillez vérifier vos informations puis soumettez votre compte pour activation.",paused:"Votre abonnement est actuellement en pause. Aucun paiement n'est prévu tant que l'abonnement ne sera pas réactivé. Vous pouvez réactiver votre abonnement à tout moment en soumettant votre compte pour activation."},hee="En confirmant cette action, votre période d'essai se terminera immédiatement et un prélèvement sera effectué sur votre compte. <br> Vous accéderez dès maintenant à tous les avantages de votre abonnement, y compris l'accompagnement juridique.",pee="Proximité",mee="Pertinence",vee="Audience",gee="annuellement",yee="mensuellement",_ee="Montant de contribution {type}",bee="Montant de l'abonnement",wee={not_changing:"Impossible d'effectuer le changement",selected:"Actif",rdv_count:"À partir de {value} rendez-vous par mois",self_growth:"Croissance automatique",no_obligation:"Sans engagement",change_btn:"Changer l'abonnement",next_btn:"Continuer",register_btn:"Je crée mon compte",less_details:"Moins de détails",more_details:"Plus de détails"},See={baseline:"La première plateforme qui protège et promeut toutes les pratiques de santé et bien-être.",generale_info:"Information générales",holitime:"Holitime",account:"Compte",copyright:"Copyright ©Holitime {value}",contact:"Contact",our_cgu:"Nos CGU",privacy:"Politique de confidentialité",you_are_practitionner:"Vous êtes praticiens ?",patient_features:"Fonctionnalités Patient",practitionner_features:"Fonctionnalités Praticien",create_an_practitionner_account:"Créer un compte praticien",create_an_patient_account:"Créer un compte patient",become_ambassador:"Devenir ambassadeur",login:"Connexion"},Cee="Numéro incorrect",Eee={title:"Protéger, innover, co-créer",description:"Bâtissons un havre de liberté et de résilience pour la santé intégrative","see-graph-btn":"Voir le Graphique","stat1-title":"Plus de 8 Français sur 10 considèrent que les médecines douces sont utiles","stat1-desc":"Source : Étude Harris Interactive pour Santéclair (2019)","stat2-title":"88% des Suisses considèrent que la médecine complémentaire et alternative est utile.","stat2-detail":"(En Suisse, 5 médecines douces sont remboursées par l’Assurance de base).","stat2-desc":"Source : Baromètre de la médecine complémentaire et alternative (CAM = Complementary and Alternative Medicine), 2021","stat3-title":"1/3 des Belges francophones affirme se traiter essentiellement aux médecines douces et homéopathiques","stat3-desc":"Source : Futuromètre de l’institut AQ Rate (4ème volet), réalisé en collaboration avec la RTBF et Le Soir.","constat-title":"Le constat: une demande croissante, un accès entravé","started-title":"Le projet Holitime est né d'un constat simple:","started-list1":'<span class="font-weight-bold">Une demande en forte croissance :</span> de plus en plus de personnes se tournent vers les médecines dites complémentaires, convaincues de leur utilité et de leur efficacité.',"started-list2":'<span class="font-weight-bold">Des obstacles majeurs pour les praticiens :</span> exclusion de grandes plateformes ou « filtrage » à l’entrée, manque de reconnaissance institutionnelle, manque d’information pour le public…',"started-list3":'<span class="font-weight-bold">Un accès limité :</span> trouver un praticien de confiance, adapté à ses besoins, reste un défi en dehors des quelques recommandations du cercle proche.',"started-list4":'Il devenait urgent de créer <span class="font-weight-bold">une plateforme réellement libre,</span> qui mette en relation les utilisateurs et les praticiens (qui facilite le « match » entre des besoins spécifiques et des solutions holistiques), <span class="font-weight-bold">sans entrave idéologique, sans discrimination arbitraire, sans risque de censure.</span>',"protect-title":"PROTÉGER : un bastion pour l’écosystème de la santé holistique","free-choice":"Libre choix – Diversité – Complémentarité","small-mission-desc":`Dans un contexte de stigmatisation et d'exclusion des pratiques alternatives, Holitime porte la mission d'offrir <span class="font-weight-bold">un espace protégé, inclusif et véritablement démocratique.</span> Son indépendance financière garantit une immunité contre tout lobbying ou pression idéologique.`,"our-aim":"Notre objectif est triple:","sol-desc":"Notre époque comporte des risques : Holitime apporte une solution concrète et engagée pour défendre nos droits essentiels. <br> Elle offre aussi de formidables opportunités et Holitime est conçu comme un tremplin pour les saisir !","defend-freedom":"Défendre la liberté de tout individu de faire ses propres choix éclairés en matière de santé et bien-être","promote-trusted-practitionner":"Valoriser les praticiens de confiance, leur offrir les ressources nécessaires pour exercer sereinement, et ouvrir l’accès à la richesse des approches holistiques","truly-protected-space":"Créer un véritable espace protégé de rencontres, d’échanges, d’apprentissages et de connaissances (non censurables) autour du bien-être et des médecines complémentaires.","protect2-title":"INNOVER : des technologies avancées pour un futur désirable autour de la santé","sol-details":'Holitime n’est pas voué à être une simple plateforme de prise de rendez-vous : notre ambition est de créer l’environnement propice pour <span class="font-weight-bold">façonner, ensemble, l’avenir de la santé intégrative.</span> <br /><span class="font-weight-bold">Notre vision : la puissance des technologies modernes doit être mise au service de l’Humain et du Bien commun.</span> C’est avec cette éthique que nous construisons Holitime.',"holitime-futur":"Le futur (proche) de Holitime:","holitime-futur-list":{title1:"Des fiches métiers collaboratives",desc1:"Beaucoup de pratiques alternatives sont encore peu connues (ou mal connues) et gagneraient à être davantage mises en lumière. Le bénéfice sera double : plus de visibilité pour les praticiens et plus d’information éclairée pour les utilisateurs ! Ces fiches seront en écriture ouverte (modifications soumises aux votes).",title2:"Un assistant de recherche futuriste",desc2:"Aujourd’hui, vous devez savoir quelle pratique chercher, pour trouver. Bientôt, il vous suffira d’exprimer votre problématique, et hop : Oli (notre petit colibri holistique) vous guidera vers les solutions les plus pertinentes ! Ses réponses intègreront les pratiques et praticiens disponibles (près de chez vous ou en distanciel), les expériences concrètes des clients, les formations, les bases de connaissances de la communauté…",title3:"Une plateforme de formation en autonomie",desc3:"Les praticiens, experts, journalistes présents sur la plateforme, pourront bientôt partager leur expertise à travers des articles, des vidéos, des formations… Pour un apprentissage à son rythme, en autonomie. Et tout cela, sans risque de censure arbitraire et illégale !",title4:"Une confidentialité absolue",desc4:"Les solutions de téléconsultation actuelles ne peuvent garantir une confidentialité totale et le doute subsiste quant aux risques de récupération de vos données, pourtant sensibles. Notre système de téléconsultation, en partenariat avec Crowdbunker, vous offrira un niveau de sécurité introuvable à ce jour."},"innovation-desc":"En alliant l’innovation et l’éthique, Holitime vise à devenir la plateforme de référence de la santé holistique","our-futur":"Notre avenir en matière de bien-être et de santé sera libre, mutualisé et participatif !","democratic-project":"CO-CRÉER : un projet démocratique et évolutif","intelligence-collective":"Intelligence collective – Contribution - Humanisme","intelligence-desc":'Contrairement aux plateformes classiques fondées sur des algorithmes opaques et des décisions centralisées, <span class="font-weight-bold">Holitime mise sur l’intelligence collective : sa communauté vivante et engagée est le cÅ“ur battant du projet</span>, et plus encore, nous souhaitons qu’elle en soit l’architecte. <br><br> La plateforme Holitime est bâtie sur des <span class="font-weight-bold">principes de transparence et d’auto-gestion</span>',"how-to-support-btn":"Comment soutenir le projet?","how-to-support-title":"Holitime est un projet ambitieux, qui repose sur le nombre, sur des valeurs fortes, et sur une certitude","how-to-suppport-desc":"Divisés, nous ne pouvons pas grand-chose... En nous unissant, nous avons le pouvoir de changer le monde !","democratic-list-1":'<span class="font-weight-bold">Les avis des utilisateurs, clients, praticiens, façonnent un espace de confiance, </span>offrant des repères clairs pour des choix éclairés.',"democratic-list-2":'<span class="font-weight-bold">La communauté est aux commandes :</span> elle a le pouvoir démocratique de proposer et voter les prochaines évolutions de la plateforme.',"democratic-list-3":'<span class="font-weight-bold">Des fonctionnalités d’auto-gestion renforcent cette confiance:</span> système de réputation (avis pertinents, contenus recommandés, satisfaction élevée…) et outils de signalement (pratiques douteuses, commentaires inappropriés…) garantissant un environnement fiable et serein.',"democratic-list-4":'<span class="font-weight-bold">Le projet est vertueux (et non capitaliste) : </span>le succès de la plateforme servira à propulser de nouveaux projets impactants, rêvés par la communauté, pour la communauté, et sélectionnés démocratiquement en fonction leur popularité.',"democratic-list-5":`<span class="font-weight-bold">L'avenir de la plateforme est entre vos mains:</span> Holitime est totalement indépendant financièrement (le choix de la liberté !) et repose essentiellement sur une levée de fonds au lancement et sur les forfaits des praticiens – calculés au plus juste, dans un esprit de solidarité. L’équilibre numérique et économique de la plateforme reste à atteindre : chaque soutien est une avancée vers une santé intégrative plus libre, plus éclairée et plus accessible.`,"holitime-ceo-title":"Les fondateurs du projet Holitime","johann-role":"Créateur du média Quartier Libre - Cofondateur de Holitime","johann-desc1":"Ingénieur de formation et entrepreneur engagé, Johann s’est rapidement tourné vers la création de solutions concrètes face aux dérives du système médical, politique et technocratique actuel. Avant Holitime, il a porté de nombreux projets alternatifs, notamment le média indépendant Quartier Libre TV, centré sur les enjeux d’autonomie, de résilience et de transformation sociétale. Il est également l’un des initiateurs de la série d’émissions “On fait quoi maintenant ?â€, donnant la parole à ceux qui Å“uvrent sur les chemins de la transition.","johann-desc2":"Johann s’inscrit dans une dynamique de refondation des modèles existants, à la croisée de la souveraineté individuelle et de l’intelligence collective.","johann-desc-3":"« J’ai longtemps dénoncé les dérives du système. Aujourd’hui mon ambition est de construire des alternatives concrètes – des outils qui recréent du lien entre les gens et qui leur redonnent du pouvoir. »","matthieu-role":"Fondateur de la plateforme Crowdbunker - Cofondateur de Holitime","matthieu-desc-1":"Ingénieur en informatique et développeur chevronné, Matthieu est le fondateur de Crowdbunker, une plateforme résistante née en réaction directe à la censure grandissante sur les réseaux sociaux dominants. Véritable bunker numérique pour défendre la liberté d’expression et d’accès à l’information, cet outil de résistance pacifique reflète l’intégrité de son créateur : refus de financements extérieurs et autres propositions de rachat, hébergements choisis avec soin hors de France pour contourner les pressions politiques… Matthieu ne transige pas avec l’indépendance. ","matthieu-desc-2":"« Avec la santé, on a le même problème qu’avec l’information : on n’a plus vraiment la liberté de choisir. Défendre ce droit de choisir librement est vital – au sens le plus littéral du terme. »","technology-title":"L’ingénierie technologique au service de la liberté","technology-desc1":"Johann et Matthieu auraient pu suivre la voie classique : intégrer de grands groupes, lancer des startups calibrées pour séduire les investisseurs et lever des millions. Mais ni l’un, ni l’autre, ne sont de ceux qui instrumentalisent la technologie pour le contrôle ou le profit. Ils ont choisi de mettre leur intelligence au service du vivant, du sens et de l’émancipation collective.","technology-desc2":"Leur rencontre, peu après le lancement de Crowdbunker (alors que Johann développait un projet similaire), a été déterminante. Visions alignées, expertises complémentaires, détermination partagée : en mars 2023, ils décident ensemble de lancer Holitime. Plus qu’une simple collaboration, le projet incarne la puissance de la synergie : en unissant leurs forces, ils vont plus loin… Et lorsque des esprits libres s’allient, ils ne se contentent pas de dénoncer un système qui vacille : ils ouvrent la voie vers d’autres possibles.","johann-slogan":'Johann : <span class="font-weight-bold text-teal-green">« Holitime est un choix de société »</span>',"matthieu-slogan":'Matthieu : <span class="font-weight-bold text-teal-green">« C’est le choix… de la liberté de choix ! »</span>',"fondation-title":"Les piliers fondamentaux de Holitime","fondation-desc":"Le projet repose sur des valeurs solides et un engagement assumé :","fondation-list":{title1:"Pour la Liberté et l’Autonomie",desc1:"Holitime est un espace ressource pour explorer la richesse des pratiques holistiques, trouver des praticiens qualifiés, s’informer et se former en toute autonomie. Reprenons les rênes de notre bien-être et de notre santé !",title2:"Pour une approche intégrative de la santé",desc2:"Face aux lobbys et aux risques de monopoles, Holitime promeut l’inclusivité, la diversité et la pluridisciplinarité. Les pratiques légales sont toutes bienvenues ici, sans discrimination arbitraire ni risque de censure !",title3:"Pour une approche intégrative de la santé",desc3:"Le business model de Holitime garantit la protection de nos données personnelles (aucun risque de récupération ou revente). Le service de téléconsultation (disponible prochainement !) garantira une confidentialité totale.",title4:"Pour la Sécurité de nos données",desc4:"Le business model de Holitime garantit la protection de nos données personnelles (aucun risque de récupération ou revente). Le service de téléconsultation (disponible prochainement !) garantira une confidentialité totale.",title5:"Pour l’Intelligence collective",desc5:"Holitime ouvre un espace participatif et auto-géré : chaque avis, chaque partage, chaque action, contribuent à construire un environnement de confiance, une information claire, des repères fiables… Pour des choix éclairés.  La force de Holitime, c’est vous !",title6:"Pour une innovation technologique éthique",desc6:"Des fonctionnalités toujours plus avancées vont venir répondre aux besoins des praticiens et des utilisateurs. Les technologies modernes peuvent soutenir l’émancipation et permettre une véritable dynamique démocratique !"},"in-summary":"En synthèse","summary-desc":"Holitime est une plateforme libre et résiliente, conçue pour protéger notre liberté de soin et pour promouvoir une approche de la santé à la fois intégrative, démocratique et accessible. ","platforme-name":"« Holitime », ce n’est pas très français ?","plateforme-desc1":'Pas si simple de choisir un nom à la fois efficace, et qui fasse l’unanimité ! Mais dès l’origine, <span class="font-weight-bold">Holitime porte une ambition internationale.</span> Lancée en France, la plateforme s’ouvre progressivement à l’espace francophone, avec pour cap une version multilingue capable d’accueillir praticiens et utilisateurs du monde entier.',"plateforme-desc2":'<span class="font-weight-bold">Car le besoin de diversité thérapeutique, de protection des connaissances et de liberté de soin dépasse les frontières.</span> Holitime est un nom qui pourra résonner dans tous les pays où l’on aspire à une santé plus libre, plus intégrative… Et plus collaborative.',"plateforme-desc3":'<span class="font-weight-bold">Imaginez :</span> les technologies modernes nous permettent aujourd’hui de franchir les barrières linguistiques et de partager les savoirs ancestraux comme les avancées récentes, dans les coins les plus reculés du monde !',"holitime-media-title":"Holitime dans les médias (indépendants !)","holitime-media-desc":"Découvrez les interviews des fondateurs et leurs prises de parole publiques : une plongée dans leur vision, leurs choix assumés et l’ambition profonde qui anime cette plateforme tournée vers un avenir à réinventer – collectivement. ","holitime-media":"Suivez l’actualité Holitime et rejoignez le mouvement"},xee={welcomeTitle:"Bienvenue sur Holitime !",stepCount:"Étape {value}",prev:"Précédent",next:"Suivant",noLongerDisplay:"Ne plus afficher",continueLater:"Continuer plus tard",restartTitle:"Reprendre le parcours de découverte à tout moment","discover-desc":"Prenez le temps de découvrir les fonctionnalités à votre rythme",stop:"Arrêter",start:"Relancer",modalAlertTitle:"Reprendre le parcours de découverte Holitime à tout moment depuis l’accueil",modalAlertDesc:"Prenez le temps de découvrir les fonctionnalités à votre rythme",discoverHolitime:"Découvrir la plateforme",restart:"Reprendre",finish:"Terminer",agree:"Compris",mobileTitle:"Pour profiter pleinement de votre parcours de découverte, nous vous invitons à vous connecter depuis un ordinateur.",mobileDesc:"Le parcours guidé est disponible exclusivement en version web pour une expérience optimale."},kee={duration:"Durée",motif:"Motif",address:"Adresse",consultation:"Consultation - Présentiel","remote-consultation":"Télé-consultation - En ligne","your-patient":"Détails patient",tel:"Tel:",mail:"Mail:","see-patient":"Voir fiche patient","rdv-details":"Détails liée au rendez-vous","appointment-motif":"Motif de consultation","appointment-info":"Informations du rendez-vous",price:"Prix",date:"Date","consultation-type":"Type de consultation","meet-link":"Lien de l’appel :",notes:"Mes notes","rdv-resume":"Notes sur le rendez-vous",docs:"Documents",history:"Historique des consultations","notes-info":{"practitionner-title":"Tous ce que vous renseignez ici n’est pas visible par le patient.","practitionner-placeholder":"Votre espace note non-visible par le patient.","patient-title":"Tous ce que vous renseignez ici est visible par le patient.","patient-placeholder":"Votre espace note visible par le patient."},"no-result-found":"aucun résultat trouvé","see-details":"Voir le détails","details-rdv":"Détails rendez-vous",home:"Tableau de bord",rdv:"Rendez-vous",detail:"Détails","edit-btn":"Modifier","cancel-btn":"Annuler",presence:"Présence",select:"Sélectionner",present:"Présent",absent:"Absent","appointment-liste-title":"Listes des rendez-vous","no-appointment":"aucun rendez-vous trouvé",tomorrow:"Demain",today:"Aujourd'hui","display-list":"Afficher la liste","un-display-list":"Masquer la liste","all-apointments":"Tous les autres","future-appointment":"Mes rendez-vous passés","calendar-label":"Calendrier",search:"Rechercher",week:"Semaine",month:"Mois","no-motif":"aucun motif disponible",period:"Période",filterBy:"Filtrer les rendez-vous par",liste:"Liste"},Tee={noDataFound:CX,textCopied:EX,back:xX,continue:"Continuer",footerText1:kX,generalInformations:TX,cgu:PX,privacyPolicy:$X,Holitime:AX,areYouPractitioner:OX,account:DX,becomeAmbassador:IX,Affiliation:NX,affiliationLink:MX,myDashboard:LX,totalWithdrawnEarnings:RX,insertIBANToWithdraw:FX,search:VX,month:BX,shareOn:zX,showcase:jX,confirmDialog:UX,appBar:HX,appFooter:qX,heroSection:YX,practitionerHeroSection:WX,commonDialog:GX,donationDialog:KX,preSignupDialog:ZX,affiliateDashboard:XX,affiliateProgram:JX,home:QX,notFound:eJ,practitionerPresentation:tJ,dashboard:nJ,"public-profile":{countReviews:"{count} avis"},accountForm:iJ,commonForm:rJ,profileForm:aJ,resetPasswordForm:oJ,login:sJ,register:lJ,"register-confirmation":{title:"Merci pour votre <br> inscription",message:'Un <span class="text-secondary">lien de validation</span> vous à été envoyé par mail. <br> <br> Cliquez sur ce lien pour valider la création de votre compte.'},holitime:uJ,input:cJ,photoService:dJ,documentService:fJ,common:hJ,profileDialog:pJ,see_more:mJ,save_new_profil:vJ,forgotPassword:gJ,patients:yJ,appointments:_J,profile:bJ,practitionerPublicProfile:wJ,Ambassador:SJ,searchPage:CJ,currency:EJ,tmpAppointmentDialog:xJ,offer_valid:kJ,annual_bloc_msg:TJ,appointment_booking:PJ,up_profiles:$J,up_adresses:AJ,timePicker:OJ,nextPaiementDate:DJ,meta:IJ,activate_account:NJ,recap_title:MJ,current_subscription:LJ,trial_msg:RJ,in_progress:FJ,next_bill_date:VJ,subscription_end:BJ,payment_info:zJ,tva_label:jJ,use_already_save:UJ,card_number:HJ,expired:qJ,or:YJ,expired_date:WJ,new_card:GJ,updade_card_error:KJ,update_info_error:ZJ,tooltip_msg:XJ,pre_sub_msg:JJ,debit_msg:QJ,bill_date:eQ,contact_msg:tQ,become_partner:nQ,error_occured:iQ,submit_info:rQ,submit_btn:aQ,cancel_btn:oQ,remaining_date:sQ,remaining_date_pass:lQ,lifetime_msg:uQ,pre_sub_info:cQ,pre_sub:dQ,faq:fQ,contact:hQ,testimonials:pQ,amount:mQ,trial_period:vQ,tva_placeholder:gQ,go_to_login:yQ,go_to_home:_Q,pre_sub_no_withdrawal:bQ,you_are:wQ,toggle_account:SQ,toggle_to:CQ,discount_benefit:EQ,have_subscribe_to:xQ,months_remaining:kQ,next_payment_amount:TQ,holitime_ref:PQ,monthly:$Q,annually:AQ,life:OQ,presubscribe_msg:DQ,life_msg:IQ,download:NQ,billing_payment:MQ,discounts:LQ,change_subscription:RQ,trial_title:FQ,stop_trial:VQ,stop_subscription:BQ,start_my_subscription:zQ,"remaining-date":"jour | jours",life_msg_unpaid:jQ,address:UQ,"confirm-delete":"Confirmer la {value}",loading:HQ,pre_subscription_inatif_msg:qQ,start_subscription:YQ,cancel_my_subscription:WQ,cancel_title:GQ,subscription_canceled_date:KQ,cancel_with_success:ZQ,sorry_cancel:XQ,confirm_cancel_msg:JQ,irrevercible_action:QQ,referencing_disabled:eee,profil_disabled:tee,disabled_debit:nee,disabled_discount:iee,why_leaving_us:ree,can_improve_us:aee,your_feedback:oee,feedback_max_msg:see,next:lee,close:uee,stop_testing:cee,cancel:dee,"300_caracteres":"300 caractères au maximum","500_caracteres":"500 caractères au maximum",stripe_status_msg:fee,"expired-card":"Votre carte est expirée","price.low_to_high":"Prix croissant","price.high_to_low":"Prix décroissant","consultation.all":"Tous les types de consultation","price.all":"Tous les prix","price.label":"Prix","disciplines.label":"Discipline","consultation.type":"Type de consultation","opinions.label":"Avis","opinions.all":"Tous les avis","consultation.remote":"En téléconsultation","consultation.in_person":"Uniquement en présentiel","opinions.best_rated":"Les mieux notés","opinions.worst_rated":"Les moins notés",start_subscription_info:hee,"sortby.label":"Trier par",proximity:pee,pertinence:mee,audience:vee,"lifetime-msg":"TVA = {tva}% soit {price} € TTC facturé en une seule fois.","other-type-msg":"TVA = {tva}% soit {price}€ TTC facturé {typeMsg}.",_annually:gee,_monthly:yee,contributionAmount:_ee,plan_price:bee,subscriptionCard:wee,footer:See,incorrect_number:Cee,mission:Eee,"be-called-back":"Être rappelé",onboarding:xee,calendar:kee,"bank-info-title":"Information bancaire","name-in-cart":"Nom sur la carte"},Pee={title:"Showcase en"},$ee={list:[{question:"What is Holitime?",answer:"Holitime is a platform that allows you to confidently find and book consultations with practitioners specializing in various natural wellness disciplines."},{question:"How can I find a practitioner on Holitime?",answer:"You can search for a practitioner based on their specialty, your location, or other criteria. Simply use the search bar or the filters provided on the platform."},{question:"How can I book an appointment with a practitioner?",answer:"Once you've found an available practitioner in the search results, view their detailed profile. Then select the time slot that matches the desired service and confirm your appointment in just a few clicks."},{question:"Can I cancel or reschedule an appointment?",answer:"Yes, you can cancel or reschedule an appointment directly from your Holitime account, following the cancellation policy indicated by"}]},Aee={showcase:Pee,faq:$ee},g6="fr";$e.locale("fr");const Oee={legacy:!1,locale:g6,fallbackLocale:g6,warnHtmlMessage:!1,messages:{fr:Tee,en:Aee},datetimeFormats:{fr:{short:{year:"numeric",month:"short",day:"numeric"}},en:{short:{year:"numeric",month:"short",day:"numeric"}}},numberFormats:{fr:{currency:{style:"currency",currency:"EUR"}},en:{currency:{style:"currency",currency:"EUR"}}}},_s=cX(Oee),En=typeof window<"u",ox=En&&"IntersectionObserver"in window,Dee=En&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),y6=En&&"EyeDropper"in window;function _6(e,t,n){Iee(e,t),t.set(e,n)}function Iee(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nee(e,t,n){return e.set(qN(e,t),n),n}function Nd(e,t){return e.get(qN(e,t))}function qN(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function YN(e,t,n){const i=t.length-1;if(i<0)return e===void 0?n:e;for(let r=0;r<i;r++){if(e==null)return n;e=e[t[r]]}return e==null||e[t[i]]===void 0?n:e[t[i]]}function tu(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(i=>tu(e[i],t[i]))}function zf(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),YN(e,t.split("."),n))}function vr(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}if(typeof t=="string")return zf(e,t,n);if(Array.isArray(t))return YN(e,t,n);if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}function Ll(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,i)=>t+i)}function st(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function E2(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function b6(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function sx(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const w6=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),F5=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function WN(e){return Object.keys(e)}function gf(e,t){return t.every(n=>e.hasOwnProperty(n))}function lx(e,t){const n={},i=new Set(Object.keys(e));for(const r of t)i.has(r)&&(n[r]=e[r]);return n}function V5(e,t,n){const i=Object.create(null),r=Object.create(null);for(const a in e)t.some(o=>o instanceof RegExp?o.test(a):o===a)&&!(n!=null&&n.some(o=>o===a))?i[a]=e[a]:r[a]=e[a];return[i,r]}function Li(e,t){const n={...e};return t.forEach(i=>delete n[i]),n}function x2(e,t){const n={};return t.forEach(i=>n[i]=e[i]),n}const GN=/^on[^a-z]/,k2=e=>GN.test(e),Mee=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Lee=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function Ree(e){return e.isComposing&&Lee.includes(e.key)}function yd(e){const[t,n]=V5(e,[GN]),i=Li(t,Mee),[r,a]=V5(n,["class","style","id",/^data-/]);return Object.assign(r,t),Object.assign(a,i),[r,a]}function hi(e){return e==null?[]:Array.isArray(e)?e:[e]}function Fee(e,t){let n=0;const i=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>e(...a),K(t))};return i.clear=()=>{clearTimeout(n)},i.immediate=e,i}function qi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function S6(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function C6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function E6(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function Vee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let i=0;for(;i<e.length;)n.push(e.substr(i,t)),i+=t;return n}function x6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let i=-1;for(;Math.abs(e)>=t&&i<n.length-1;)e/=t,++i;return`${e.toFixed(1)} ${n[i]}B`}function $a(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i={};for(const r in e)i[r]=e[r];for(const r in t){const a=e[r],o=t[r];if(b6(a)&&b6(o)){i[r]=$a(a,o,n);continue}if(n&&Array.isArray(a)&&Array.isArray(o)){i[r]=n(a,o);continue}i[r]=o}return i}function KN(e){return e.map(t=>t.type===Ue?KN(t.children):t).flat()}function Pf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Pf.cache.has(e))return Pf.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Pf.cache.set(e,t),t}Pf.cache=new Map;function ip(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>ip(e,n)).flat(1);if(t.suspense)return ip(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>ip(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return ip(e,t.component.subTree).flat(1)}return[]}var qy=new WeakMap,Dh=new WeakMap;class Bee{constructor(t){_6(this,qy,[]),_6(this,Dh,0),this.size=t}push(t){Nd(qy,this)[Nd(Dh,this)]=t,Nee(Dh,this,(Nd(Dh,this)+1)%this.size)}values(){return Nd(qy,this).slice(Nd(Dh,this)).concat(Nd(qy,this).slice(0,Nd(Dh,this)))}}function zee(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function ux(e){const t=er({}),n=B(e);return Wi(()=>{for(const i in n.value)t[i]=n.value[i]},{flush:"sync"}),gd(t)}function z_(e,t){return e.includes(t)}function ZN(e){return e[2].toLowerCase()+e.slice(3)}const Xr=()=>[Function,Array];function k6(e,t){return t="on"+Ql(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function cx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(Array.isArray(e))for(const r of e)r(...n);else typeof e=="function"&&e(...n)}function Yg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function XN(e,t,n){let i,r=e.indexOf(document.activeElement);const a=t==="next"?1:-1;do r+=a,i=e[r];while((!i||i.offsetParent==null||!((n==null?void 0:n(i))??!0))&&r<e.length&&r>=0);return i}function $f(e,t){var i,r,a,o;const n=Yg(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((i=n[0])==null||i.focus());else if(t==="first")(r=n[0])==null||r.focus();else if(t==="last")(a=n.at(-1))==null||a.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const s=XN(n,t);s?s.focus():$f(e,t==="next"?"first":"last")}}function Yy(e){return e==null||typeof e=="string"&&e.trim()===""}function JN(){}function jp(e,t){if(!(En&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function T2(e){return e.some(t=>Ug(t)?t.type===co?!1:t.type!==Ue||T2(t.children):!0)?e:null}function jee(e,t){if(!En||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Uee(e,t){const n=e.clientX,i=e.clientY,r=t.getBoundingClientRect(),a=r.left,o=r.top,s=r.right,l=r.bottom;return n>=a&&n<=s&&i>=o&&i<=l}function j_(){const e=it(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>sx(e.value)}),t}function U_(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}const QN=["top","bottom"],Hee=["start","end","left","right"];function B5(e,t){let[n,i]=e.split(" ");return i||(i=z_(QN,n)?"start":z_(Hee,n)?"top":"center"),{side:z5(n,t),align:z5(i,t)}}function z5(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function C3(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function E3(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function T6(e){return{side:e.align,align:e.side}}function P6(e){return z_(QN,e.side)?"y":"x"}class Af{constructor(t){let{x:n,y:i,width:r,height:a}=t;this.x=n,this.y=i,this.width=r,this.height=a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function $6(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function eM(e){return Array.isArray(e)?new Af({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function dx(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),i=n.transform;if(i){let r,a,o,s,l;if(i.startsWith("matrix3d("))r=i.slice(9,-1).split(/, /),a=+r[0],o=+r[5],s=+r[12],l=+r[13];else if(i.startsWith("matrix("))r=i.slice(7,-1).split(/, /),a=+r[0],o=+r[3],s=+r[4],l=+r[5];else return new Af(t);const u=n.transformOrigin,c=t.x-s-(1-a)*parseFloat(u),d=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),f=a?t.width/a:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new Af({x:c,y:d,width:f,height:h})}else return new Af(t)}function yf(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let i;try{i=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(r=>{i.onfinish=()=>{r(i)}})),i}const G0=new WeakMap;function qee(e,t){Object.keys(t).forEach(n=>{if(k2(n)){const i=ZN(n),r=G0.get(e);if(t[n]==null)r==null||r.forEach(a=>{const[o,s]=a;o===i&&(e.removeEventListener(i,s),r.delete(a))});else if(!r||![...r].some(a=>a[0]===i&&a[1]===t[n])){e.addEventListener(i,t[n]);const a=r||new Set;a.add([i,t[n]]),G0.has(e)||G0.set(e,a)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Yee(e,t){Object.keys(t).forEach(n=>{if(k2(n)){const i=ZN(n),r=G0.get(e);r==null||r.forEach(a=>{const[o,s]=a;o===i&&(e.removeEventListener(i,s),r.delete(a))})}else e.removeAttribute(n)})}const Ih=2.4,A6=.2126729,O6=.7151522,D6=.072175,Wee=.55,Gee=.58,Kee=.57,Zee=.62,Wy=.03,I6=1.45,Xee=5e-4,Jee=1.25,Qee=1.25,N6=.078,M6=12.82051282051282,Gy=.06,L6=.001;function R6(e,t){const n=(e.r/255)**Ih,i=(e.g/255)**Ih,r=(e.b/255)**Ih,a=(t.r/255)**Ih,o=(t.g/255)**Ih,s=(t.b/255)**Ih;let l=n*A6+i*O6+r*D6,u=a*A6+o*O6+s*D6;if(l<=Wy&&(l+=(Wy-l)**I6),u<=Wy&&(u+=(Wy-u)**I6),Math.abs(u-l)<Xee)return 0;let c;if(u>l){const d=(u**Wee-l**Gee)*Jee;c=d<L6?0:d<N6?d-d*M6*Gy:d-Gy}else{const d=(u**Zee-l**Kee)*Qee;c=d>-L6?0:d>-N6?d-d*M6*Gy:d+Gy}return c*100}function ete(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const H_=.20689655172413793,tte=e=>e>H_**3?Math.cbrt(e):e/(3*H_**2)+4/29,nte=e=>e>H_?e**3:3*H_**2*(e-4/29);function tM(e){const t=tte,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function nM(e){const t=nte,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const ite=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],rte=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,ate=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ote=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function iM(e){const t=Array(3),n=rte,i=ite;for(let r=0;r<3;++r)t[r]=Math.round(qi(n(i[r][0]*e[0]+i[r][1]*e[1]+i[r][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function fx(e){let{r:t,g:n,b:i}=e;const r=[0,0,0],a=ote,o=ate;t=a(t/255),n=a(n/255),i=a(i/255);for(let s=0;s<3;++s)r[s]=o[s][0]*t+o[s][1]*n+o[s][2]*i;return r}function j5(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ste(e){return j5(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const F6=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,lte={rgb:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),rgba:(e,t,n,i)=>({r:e,g:t,b:n,a:i}),hsl:(e,t,n,i)=>V6({h:e,s:t,l:n,a:i}),hsla:(e,t,n,i)=>V6({h:e,s:t,l:n,a:i}),hsv:(e,t,n,i)=>nc({h:e,s:t,v:n,a:i}),hsva:(e,t,n,i)=>nc({h:e,s:t,v:n,a:i})};function ds(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&F6.test(e)){const{groups:t}=e.match(F6),{fn:n,values:i}=t,r=i.split(/,\s*/).map(a=>a.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return lte[n](...r)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),lM(t)}else if(typeof e=="object"){if(gf(e,["r","g","b"]))return e;if(gf(e,["h","s","l"]))return nc(hx(e));if(gf(e,["h","s","v"]))return nc(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function nc(e){const{h:t,s:n,v:i,a:r}=e,a=s=>{const l=(s+t/60)%6;return i-i*n*Math.max(Math.min(l,4-l,1),0)},o=[a(5),a(3),a(1)].map(s=>Math.round(s*255));return{r:o[0],g:o[1],b:o[2],a:r}}function V6(e){return nc(hx(e))}function P2(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),a=Math.min(t,n,i);let o=0;r!==a&&(r===t?o=60*(0+(n-i)/(r-a)):r===n?o=60*(2+(i-t)/(r-a)):r===i&&(o=60*(4+(t-n)/(r-a)))),o<0&&(o=o+360);const s=r===0?0:(r-a)/r,l=[o,s,r];return{h:l[0],s:l[1],v:l[2],a:e.a}}function rM(e){const{h:t,s:n,v:i,a:r}=e,a=i-i*n/2,o=a===1||a===0?0:(i-a)/Math.min(a,1-a);return{h:t,s:o,l:a,a:r}}function hx(e){const{h:t,s:n,l:i,a:r}=e,a=i+n*Math.min(i,1-i),o=a===0?0:2-2*i/a;return{h:t,s:o,v:a,a:r}}function aM(e){let{r:t,g:n,b:i,a:r}=e;return r===void 0?`rgb(${t}, ${n}, ${i})`:`rgba(${t}, ${n}, ${i}, ${r})`}function oM(e){return aM(nc(e))}function Ky(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function sM(e){let{r:t,g:n,b:i,a:r}=e;return`#${[Ky(t),Ky(n),Ky(i),r!==void 0?Ky(Math.round(r*255)):""].join("")}`}function lM(e){e=ute(e);let[t,n,i,r]=Vee(e,2).map(a=>parseInt(a,16));return r=r===void 0?r:r/255,{r:t,g:n,b:i,a:r}}function uM(e){const t=lM(e);return P2(t)}function cM(e){return sM(nc(e))}function ute(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=C6(C6(e,6),8,"F")),e}function cte(e,t){const n=tM(fx(e));return n[0]=n[0]+t*10,iM(nM(n))}function dte(e,t){const n=tM(fx(e));return n[0]=n[0]-t*10,iM(nM(n))}function U5(e){const t=ds(e);return fx(t)[1]}function fte(e,t){const n=U5(e),i=U5(t),r=Math.max(n,i),a=Math.min(n,i);return(r+.05)/(a+.05)}function dM(e){const t=Math.abs(R6(ds(0),ds(e)));return Math.abs(R6(ds(16777215),ds(e)))>Math.min(t,50)?"#fff":"#000"}function Oe(e,t){return n=>Object.keys(e).reduce((i,r)=>{const o=typeof e[r]=="object"&&e[r]!=null&&!Array.isArray(e[r])?e[r]:{type:e[r]};return n&&r in n?i[r]={...o,default:n[r]}:i[r]=o,t&&!i[r].source&&(i[r].source=t),i},{})}const ct=Oe({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function xi(e,t){const n=vs();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function nu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=xi(e).type;return Pf((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let fM=0,K0=new WeakMap;function ea(){const e=xi("getUid");if(K0.has(e))return K0.get(e);{const t=fM++;return K0.set(e,t),t}}ea.reset=()=>{fM=0,K0=new WeakMap};function hte(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xi("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Up=Symbol.for("vuetify:defaults");function pte(e){return z(e)}function px(){const e=kt(Up);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Si(e,t){const n=px(),i=z(e),r=B(()=>{if(K(t==null?void 0:t.disabled))return n.value;const o=K(t==null?void 0:t.scoped),s=K(t==null?void 0:t.reset),l=K(t==null?void 0:t.root);if(i.value==null&&!(o||s||l))return n.value;let u=$a(i.value,{prev:n.value});if(o)return u;if(s||l){const c=Number(s||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=$a($a(u,{prev:u}),u[l])),u}return u.prev?$a(u.prev,u):u});return an(Up,r),r}function mte(e,t){var n,i;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((i=e.props)==null?void 0:i[Pf(t)])<"u"}function vte(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:px();const i=xi("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const r=B(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),a=new Proxy(e,{get(l,u){var d,f,h,m,g,v,y;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(d=r.value)==null?void 0:d[u],c].filter(_=>_!=null):typeof u=="string"&&!mte(i.vnode,u)?((f=r.value)==null?void 0:f[u])!==void 0?(h=r.value)==null?void 0:h[u]:((g=(m=n.value)==null?void 0:m.global)==null?void 0:g[u])!==void 0?(y=(v=n.value)==null?void 0:v.global)==null?void 0:y[u]:c:c}}),o=it();Wi(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function s(){const l=hte(Up,i);an(Up,B(()=>o.value?$a((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:a,provideSubDefaults:s}}function qo(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Oe(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(i){return lx(i,t)},e.props._as=String,e.setup=function(i,r){const a=px();if(!a.value)return e._setup(i,r);const{props:o,provideSubDefaults:s}=vte(i,i._as??e.name,a),l=e._setup(o,r);return s(),l}}return e}function ze(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?qo:ot)(t)}function gte(e,t){return t.props=e,t}function iu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ze()({name:n??Ql(zo(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ct()},setup(i,r){let{slots:a}=r;return()=>{var o;return vi(i.tag,{class:[e,i.class],style:i.style},(o=a.default)==null?void 0:o.call(a))}}})}function hM(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Wg="cubic-bezier(0.4, 0, 0.2, 1)",yte="cubic-bezier(0.0, 0, 0.2, 1)",_te="cubic-bezier(0.4, 0, 1, 1)";function B6(e,t,n){return Object.keys(e).filter(i=>k2(i)&&i.endsWith(t)).reduce((i,r)=>(i[r.slice(0,-t.length)]=a=>e[r](a,n(a)),i),{})}function mx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?bte(e):vx(e))return e;e=e.parentElement}return document.scrollingElement}function q_(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(vx(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function vx(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function bte(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function wte(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function We(e){const t=xi("useRender");t.render=e}const _t=[String,Function,Object,Array],H5=Symbol.for("vuetify:icons"),$2=Oe({icon:{type:_t},tag:{type:String,required:!0}},"icon"),q5=ze()({name:"VComponentIcon",props:$2(),setup(e,t){let{slots:n}=t;return()=>{const i=e.icon;return C(e.tag,null,{default:()=>{var r;return[e.icon?C(i,null,null):(r=n.default)==null?void 0:r.call(n)]}})}}}),gx=qo({name:"VSvgIcon",inheritAttrs:!1,props:$2(),setup(e,t){let{attrs:n}=t;return()=>C(e.tag,Me(n,{style:null}),{default:()=>[C("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(i=>Array.isArray(i)?C("path",{d:i[0],"fill-opacity":i[1]},null):C("path",{d:i},null)):C("path",{d:e.icon},null)])]})}}),Ste=qo({name:"VLigatureIcon",props:$2(),setup(e){return()=>C(e.tag,null,{default:()=>[e.icon]})}}),yx=qo({name:"VClassIcon",props:$2(),setup(e){return()=>C(e.tag,{class:e.icon},null)}});function Cte(){return{svg:{component:gx},class:{component:yx}}}function Ete(e){const t=Cte(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=Tte),$a({defaultSet:n,sets:t,aliases:{...kte,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const xte=e=>{const t=kt(H5);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:B(()=>{var l;const i=K(e);if(!i)return{component:q5};let r=i;if(typeof r=="string"&&(r=r.trim(),r.startsWith("$")&&(r=(l=t.aliases)==null?void 0:l[r.slice(1)])),Array.isArray(r))return{component:gx,icon:r};if(typeof r!="string")return{component:q5,icon:r};const a=Object.keys(t.sets).find(u=>typeof r=="string"&&r.startsWith(`${u}:`)),o=a?r.slice(a.length+1):r;return{component:t.sets[a??t.defaultSet].component,icon:o}})}},kte={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload"},Tte={component:e=>vi(yx,{...e,class:"mdi"})},Pte={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}};function il(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=j_(),i=z();if(En){const r=new ResizeObserver(a=>{e==null||e(a,r),a.length&&(t==="content"?i.value=a[0].contentRect:i.value=a[0].target.getBoundingClientRect())});Ci(()=>{r.disconnect()}),Ve(()=>n.el,(a,o)=>{o&&(r.unobserve(o),i.value=void 0),a&&r.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:mm(i)}}const Gg=Symbol.for("vuetify:layout"),pM=Symbol.for("vuetify:layout-item"),z6=1e3,mM=Oe({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),nh=Oe({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function vM(){const e=kt(Gg);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function ih(e){const t=kt(Gg);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${ea()}`,i=xi("useLayoutItem");an(pM,{id:n});const r=it(!1);g2(()=>r.value=!0),ZE(()=>r.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:o}=t.register(i,{...e,active:B(()=>r.value?!1:e.active.value),id:n});return Ci(()=>t.unregister(n)),{layoutItemStyles:a,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const $te=(e,t,n,i)=>{let r={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...r}}];for(const o of e){const s=t.get(o),l=n.get(o),u=i.get(o);if(!s||!l||!u)continue;const c={...r,[s.value]:parseInt(r[s.value],10)+(u.value?parseInt(l.value,10):0)};a.push({id:o,layer:c}),r=c}return a};function gM(e){const t=kt(Gg,null),n=B(()=>t?t.rootZIndex.value-100:z6),i=z([]),r=er(new Map),a=er(new Map),o=er(new Map),s=er(new Map),l=er(new Map),{resizeRef:u,contentRect:c}=il(),d=B(()=>{const k=new Map,P=e.overlaps??[];for(const E of P.filter(A=>A.includes(":"))){const[A,D]=E.split(":");if(!i.value.includes(A)||!i.value.includes(D))continue;const T=r.get(A),O=r.get(D),N=a.get(A),V=a.get(D);!T||!O||!N||!V||(k.set(D,{position:T.value,amount:parseInt(N.value,10)}),k.set(A,{position:O.value,amount:-parseInt(V.value,10)}))}return k}),f=B(()=>{const k=[...new Set([...o.values()].map(E=>E.value))].sort((E,A)=>E-A),P=[];for(const E of k){const A=i.value.filter(D=>{var T;return((T=o.get(D))==null?void 0:T.value)===E});P.push(...A)}return $te(P,r,a,s)}),h=B(()=>!Array.from(l.values()).some(k=>k.value)),m=B(()=>f.value[f.value.length-1].layer),g=B(()=>({"--v-layout-left":st(m.value.left),"--v-layout-right":st(m.value.right),"--v-layout-top":st(m.value.top),"--v-layout-bottom":st(m.value.bottom),...h.value?void 0:{transition:"none"}})),v=B(()=>f.value.slice(1).map((k,P)=>{let{id:E}=k;const{layer:A}=f.value[P],D=a.get(E),T=r.get(E);return{id:E,...A,size:Number(D.value),position:T.value}})),y=k=>v.value.find(P=>P.id===k),_=xi("createLayout"),S=it(!1);tn(()=>{S.value=!0}),an(Gg,{register:(k,P)=>{let{id:E,order:A,position:D,layoutSize:T,elementSize:O,active:N,disableTransitions:V,absolute:j}=P;o.set(E,A),r.set(E,D),a.set(E,T),s.set(E,N),V&&l.set(E,V);const ne=ip(pM,_==null?void 0:_.vnode).indexOf(k);ne>-1?i.value.splice(ne,0,E):i.value.push(E);const ae=B(()=>v.value.findIndex(W=>W.id===E)),Y=B(()=>n.value+f.value.length*2-ae.value*2),M=B(()=>{const W=D.value==="left"||D.value==="right",te=D.value==="right",he=D.value==="bottom",oe=O.value??T.value,U=oe===0?"%":"px",ee={[D.value]:0,zIndex:Y.value,transform:`translate${W?"X":"Y"}(${(N.value?0:-(oe===0?100:oe))*(te||he?-1:1)}${U})`,position:j.value||n.value!==z6?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!S.value)return ee;const re=v.value[ae.value];if(!re)throw new Error(`[Vuetify] Could not find layout item "${E}"`);const ue=d.value.get(E);return ue&&(re[ue.position]+=ue.amount),{...ee,height:W?`calc(100% - ${re.top}px - ${re.bottom}px)`:O.value?`${O.value}px`:void 0,left:te?void 0:`${re.left}px`,right:te?`${re.right}px`:void 0,top:D.value!=="bottom"?`${re.top}px`:void 0,bottom:D.value!=="top"?`${re.bottom}px`:void 0,width:W?O.value?`${O.value}px`:void 0:`calc(100% - ${re.left}px - ${re.right}px)`}}),I=B(()=>({zIndex:Y.value-1}));return{layoutItemStyles:M,layoutItemScrimStyles:I,zIndex:Y}},unregister:k=>{o.delete(k),r.delete(k),a.delete(k),s.delete(k),l.delete(k),i.value=i.value.filter(P=>P!==k)},mainRect:m,mainStyles:g,getLayoutItem:y,items:v,layoutRect:c,rootZIndex:n});const w=B(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),x=B(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:w,layoutStyles:x,getLayoutItem:y,items:v,layoutRect:c,layoutRef:u}}function Xa(e,t){let n;function i(){n=pm(),n.run(()=>t.length?t(()=>{n==null||n.stop(),i()}):t())}Ve(e,r=>{r&&!n?i():r||(n==null||n.stop(),n=void 0)},{immediate:!0}),Qr(()=>{n==null||n.stop()})}function vt(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const a=xi("useProxiedModel"),o=z(e[t]!==void 0?e[t]:n),s=Pf(t),u=B(s!==t?()=>{var d,f,h,m;return e[t],!!(((d=a.vnode.props)!=null&&d.hasOwnProperty(t)||(f=a.vnode.props)!=null&&f.hasOwnProperty(s))&&((h=a.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(m=a.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${s}`)))}:()=>{var d,f;return e[t],!!((d=a.vnode.props)!=null&&d.hasOwnProperty(t)&&((f=a.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});Xa(()=>!u.value,()=>{Ve(()=>e[t],d=>{o.value=d})});const c=B({get(){const d=e[t];return i(u.value?d:o.value)},set(d){const f=r(d),h=$t(u.value?e[t]:o.value);h===f||i(h)===d||(o.value=f,a==null||a.emit(`update:${t}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const j6="$vuetify.",U6=(e,t)=>e.replace(/\{(\d+)\}/g,(n,i)=>String(t[+i])),yM=(e,t,n)=>function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];if(!i.startsWith(j6))return U6(i,a);const s=i.replace(j6,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=zf(l,s,null);return c||(`${i}${e.value}`,c=zf(u,s,null)),c||(c=i),typeof c!="string"&&(c=i),U6(c,a)};function _M(e,t){return(n,i)=>new Intl.NumberFormat([e.value,t.value],i).format(n)}function x3(e,t,n){const i=vt(e,t,e[t]??n.value);return i.value=e[t]??n.value,Ve(n,r=>{e[t]==null&&(i.value=n.value)}),i}function bM(e){return t=>{const n=x3(t,"locale",e.current),i=x3(t,"fallback",e.fallback),r=x3(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:i,messages:r,t:yM(n,i,r),n:_M(n,i),provide:bM({current:n,fallback:i,messages:r})}}}function Ate(e){const t=it((e==null?void 0:e.locale)??"en"),n=it((e==null?void 0:e.fallback)??"en"),i=z({en:Pte,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:i,t:yM(t,n,i),n:_M(t,n),provide:bM({current:t,fallback:n,messages:i})}}const Hp=Symbol.for("vuetify:locale");function Ote(e){return e.name!=null}function Dte(e){const t=e!=null&&e.adapter&&Ote(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:Ate(e),n=Mte(t,e);return{...t,...n}}function ki(){const e=kt(Hp);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function Ite(e){const t=kt(Hp);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),i=Lte(n,t.rtl,e),r={...n,...i};return an(Hp,r),r}function Nte(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function Mte(e,t){const n=z((t==null?void 0:t.rtl)??Nte()),i=B(()=>n.value[e.current.value]??!1);return{isRtl:i,rtl:n,rtlClasses:B(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function Lte(e,t,n){const i=B(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:i,rtl:t,rtlClasses:B(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function Sr(){const e=kt(Hp);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const Kg=Symbol.for("vuetify:theme"),fn=Oe({theme:String},"theme");function H6(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function Rte(){var i,r;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H6();const t=H6();if(!e)return{...t,isDisabled:!0};const n={};for(const[a,o]of Object.entries(e.themes??{})){const s=o.dark||a==="dark"?(i=t.themes)==null?void 0:i.dark:(r=t.themes)==null?void 0:r.light;n[a]=$a(s,o)}return $a(t,{...e,themes:n})}function Fte(e){const t=Rte(e),n=z(t.defaultTheme),i=z(t.themes),r=B(()=>{const c={};for(const[d,f]of Object.entries(i.value)){const h=c[d]={...f,colors:{...f.colors}};if(t.variations)for(const m of t.variations.colors){const g=h.colors[m];if(g)for(const v of["lighten","darken"]){const y=v==="lighten"?cte:dte;for(const _ of Ll(t.variations[v],1))h.colors[`${m}-${v}-${_}`]=sM(y(ds(g),_))}}for(const m of Object.keys(h.colors)){if(/^on-[a-z]/.test(m)||h.colors[`on-${m}`])continue;const g=`on-${m}`,v=ds(h.colors[m]);h.colors[g]=dM(v)}}return c}),a=B(()=>r.value[n.value]),o=B(()=>{var m;const c=[];(m=a.value)!=null&&m.dark&&Md(c,":root",["color-scheme: dark"]),Md(c,":root",q6(a.value));for(const[g,v]of Object.entries(r.value))Md(c,`.v-theme--${g}`,[`color-scheme: ${v.dark?"dark":"normal"}`,...q6(v)]);const d=[],f=[],h=new Set(Object.values(r.value).flatMap(g=>Object.keys(g.colors)));for(const g of h)/^on-[a-z]/.test(g)?Md(f,`.${g}`,[`color: rgb(var(--v-theme-${g})) !important`]):(Md(d,`.bg-${g}`,[`--v-theme-overlay-multiplier: var(--v-theme-${g}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${g})) !important`,`color: rgb(var(--v-theme-on-${g})) !important`]),Md(f,`.text-${g}`,[`color: rgb(var(--v-theme-${g})) !important`]),Md(f,`.border-${g}`,[`--v-border-color: var(--v-theme-${g})`]));return c.push(...d,...f),c.map((g,v)=>v===0?g:` ${g}`).join("")});function s(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const d=c._context.provides.usehead;if(d)if(d.push){const f=d.push(s);En&&Ve(o,()=>{f.patch(s)})}else En?(d.addHeadObjs(B(s)),Wi(()=>d.updateDOM())):d.addHeadObjs(s());else{let h=function(){if(typeof document<"u"&&!f){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",t.cspNonce&&m.setAttribute("nonce",t.cspNonce),f=m,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=En?document.getElementById("vuetify-theme-stylesheet"):null;En?Ve(o,h,{immediate:!0}):h()}}const u=B(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:i,current:a,computedThemes:r,themeClasses:u,styles:o,global:{name:n,current:a}}}function Pn(e){xi("provideTheme");const t=kt(Kg,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=B(()=>e.theme??t.name.value),i=B(()=>t.themes.value[n.value]),r=B(()=>t.isDisabled?void 0:`v-theme--${n.value}`),a={...t,name:n,current:i,themeClasses:r};return an(Kg,a),a}function A2(){xi("useTheme");const e=kt(Kg,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Md(e,t,n){e.push(`${t} { `,...n.map(i=>` ${i}; `),`} `)}function q6(e){const t=e.dark?2:1,n=e.dark?1:2,i=[];for(const[r,a]of Object.entries(e.colors)){const o=ds(a);i.push(`--v-theme-${r}: ${o.r},${o.g},${o.b}`),r.startsWith("on-")||i.push(`--v-theme-${r}-overlay-multiplier: ${U5(a)>.18?t:n}`)}for(const[r,a]of Object.entries(e.variables)){const o=typeof a=="string"&&a.startsWith("#")?ds(a):void 0,s=o?`${o.r}, ${o.g}, ${o.b}`:void 0;i.push(`--v-${r}: ${s??a}`)}return i}const Vte=Oe({...ct(),...mM({fullHeight:!0}),...fn()},"VApp"),Bte=ze()({name:"VApp",props:Vte(),setup(e,t){let{slots:n}=t;const i=Pn(e),{layoutClasses:r,getLayoutItem:a,items:o,layoutRef:s}=gM(e),{rtlClasses:l}=Sr();return We(()=>{var u;return C("div",{ref:s,class:["v-application",i.themeClasses.value,r.value,l.value,e.class],style:[e.style]},[C("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:a,items:o,theme:i}}});const Vt=Oe({tag:{type:String,default:"div"}},"tag"),wM=Oe({text:String,...ct(),...Vt()},"VToolbarTitle"),_x=ze()({name:"VToolbarTitle",props:wM(),setup(e,t){let{slots:n}=t;return We(()=>{const i=!!(n.default||n.text||e.text);return C(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var r;return[i&&C("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(r=n.default)==null?void 0:r.call(n)])]}})}),{}}}),zte=Oe({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Yo(e,t,n){return ze()({name:e,props:zte({mode:n,origin:t}),setup(i,r){let{slots:a}=r;const o={onBeforeEnter(s){i.origin&&(s.style.transformOrigin=i.origin)},onLeave(s){if(i.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${u}px`,s.style.width=`${c}px`,s.style.height=`${d}px`}i.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(i.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:u,left:c,width:d,height:f}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=u||"",s.style.left=c||"",s.style.width=d||"",s.style.height=f||""}}};return()=>{const s=i.group?nx:Gl;return vi(s,{name:i.disabled?"":e,css:!i.disabled,...i.group?void 0:{mode:i.mode},...i.disabled?{}:o},a.default)}}})}function SM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ze()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(i,r){let{slots:a}=r;const o=i.group?nx:Gl;return()=>vi(o,{name:i.disabled?"":e,css:!i.disabled,...i.disabled?{}:t},a.default)}})}function CM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",i=zo(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[i]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:a,onEnterCancelled:a,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[i]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(o){e&&o._parent&&o._parent.classList.remove(e),a(o)}function a(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const jte=Oe({target:[Object,Array]},"v-dialog-transition"),O2=ze()({name:"VDialogTransition",props:jte(),setup(e,t){let{slots:n}=t;const i={onBeforeEnter(r){r.style.pointerEvents="none",r.style.visibility="hidden"},async onEnter(r,a){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),r.style.visibility="";const{x:o,y:s,sx:l,sy:u,speed:c}=W6(e.target,r),d=yf(r,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:yte});(f=Y6(r))==null||f.forEach(h=>{yf(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:Wg})}),d.finished.then(()=>a())},onAfterEnter(r){r.style.removeProperty("pointer-events")},onBeforeLeave(r){r.style.pointerEvents="none"},async onLeave(r,a){var f;await new Promise(h=>requestAnimationFrame(h));const{x:o,y:s,sx:l,sy:u,speed:c}=W6(e.target,r);yf(r,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:_te}).finished.then(()=>a()),(f=Y6(r))==null||f.forEach(h=>{yf(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:Wg})})},onAfterLeave(r){r.style.removeProperty("pointer-events")}};return()=>e.target?C(Gl,Me({name:"dialog-transition"},i,{css:!1}),n):C(Gl,{name:"dialog-transition"},n)}});function Y6(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function W6(e,t){const n=eM(e),i=dx(t),[r,a]=getComputedStyle(t).transformOrigin.split(" ").map(y=>parseFloat(y)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||s==="top"?u-=n.height/2:(o==="bottom"||s==="bottom")&&(u+=n.height/2);const c=n.width/i.width,d=n.height/i.height,f=Math.max(1,c,d),h=c/f||0,m=d/f||0,g=i.width*i.height/(window.innerWidth*window.innerHeight),v=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(r+i.left),y:u-(a+i.top),sx:h,sy:m,speed:v}}const Ute=Yo("fab-transition","center center","out-in"),Hte=Yo("dialog-bottom-transition"),qte=Yo("dialog-top-transition"),Zg=Yo("fade-transition"),bx=Yo("scale-transition"),Yte=Yo("scroll-x-transition"),Wte=Yo("scroll-x-reverse-transition"),Gte=Yo("scroll-y-transition"),Kte=Yo("scroll-y-reverse-transition"),Zte=Yo("slide-x-transition"),EM=Yo("slide-x-reverse-transition"),wx=Yo("slide-y-transition"),Xte=Yo("slide-y-reverse-transition"),Yu=SM("expand-transition",CM()),Sx=SM("expand-x-transition",CM("",!0)),Jte=Oe({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Yt=ze(!1)({name:"VDefaultsProvider",props:Jte(),setup(e,t){let{slots:n}=t;const{defaults:i,disabled:r,reset:a,root:o,scoped:s}=gd(e);return Si(i,{reset:a,root:o,scoped:s,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});const rr=Oe({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ar(e){return{dimensionStyles:B(()=>{const n={},i=st(e.height),r=st(e.maxHeight),a=st(e.maxWidth),o=st(e.minHeight),s=st(e.minWidth),l=st(e.width);return i!=null&&(n.height=i),r!=null&&(n.maxHeight=r),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),s!=null&&(n.minWidth=s),l!=null&&(n.width=l),n})}}function Qte(e){return{aspectStyles:B(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const xM=Oe({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ct(),...rr()},"VResponsive"),Y5=ze()({name:"VResponsive",props:xM(),setup(e,t){let{slots:n}=t;const{aspectStyles:i}=Qte(e),{dimensionStyles:r}=ar(e);return We(()=>{var a;return C("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[r.value,e.style]},[C("div",{class:"v-responsive__sizer",style:i.value},null),(a=n.additional)==null?void 0:a.call(n),n.default&&C("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function Cx(e){return ux(()=>{const t=[],n={};if(e.value.background)if(j5(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&ste(e.value.background)){const i=ds(e.value.background);if(i.a==null||i.a===1){const r=dM(i);n.color=r,n.caretColor=r}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(j5(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function _a(e,t){const n=B(()=>({text:Yn(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:r}=Cx(n);return{textColorClasses:i,textColorStyles:r}}function Rn(e,t){const n=B(()=>({background:Yn(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:r}=Cx(n);return{backgroundColorClasses:i,backgroundColorStyles:r}}const pi=Oe({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Ti(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return{roundedClasses:B(()=>{const i=Yn(e)?e.value:e.rounded,r=Yn(e)?e.value:e.tile,a=[];if(i===!0||i==="")a.push(`${t}--rounded`);else if(typeof i=="string"||i===0)for(const o of String(i).split(" "))a.push(`rounded-${o}`);else(r||i===!1)&&a.push("rounded-0");return a})}}const dl=Oe({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Aa=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:r,group:a,...o}=e,{component:s=a?nx:Gl,...l}=typeof i=="object"?i:{};return vi(s,Me(typeof i=="string"?{name:r?"":i}:l,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:r,group:a}).filter(u=>{let[c,d]=u;return d!==void 0})),o),n)};function ene(e,t){if(!ox)return;const n=t.modifiers||{},i=t.value,{handler:r,options:a}=typeof i=="object"?i:{handler:i,options:{}},o=new IntersectionObserver(function(){var d;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(d=e._observe)==null?void 0:d[t.instance.$.uid];if(!u)return;const c=s.some(f=>f.isIntersecting);r&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&r(c,s,l),c&&n.once?kM(e,t):u.init=!0},a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function kM(e,t){var i;const n=(i=e._observe)==null?void 0:i[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const TM={mounted:ene,unmounted:kM},D2=TM,PM=Oe({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...xM(),...ct(),...pi(),...dl()},"VImg"),Ii=ze()({name:"VImg",directives:{intersect:D2},props:PM(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(Fe(e,"color")),{roundedClasses:o}=Ti(e),s=xi("VImg"),l=it(""),u=z(),c=it(e.eager?"loading":"idle"),d=it(),f=it(),h=B(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),m=B(()=>h.value.aspect||d.value/f.value||0);Ve(()=>e.src,()=>{g(c.value!=="idle")}),Ve(m,(O,N)=>{!O&&N&&u.value&&w(u.value)}),th(()=>g());function g(O){if(!(e.eager&&O)&&!(ox&&!O&&!e.eager)){if(c.value="loading",h.value.lazySrc){const N=new Image;N.src=h.value.lazySrc,w(N,null)}h.value.src&&Pt(()=>{var N;n("loadstart",((N=u.value)==null?void 0:N.currentSrc)||h.value.src),setTimeout(()=>{var V;if(!s.isUnmounted)if((V=u.value)!=null&&V.complete){if(u.value.naturalWidth||y(),c.value==="error")return;m.value||w(u.value,null),c.value==="loading"&&v()}else m.value||w(u.value),_()})})}}function v(){var O;s.isUnmounted||(_(),w(u.value),c.value="loaded",n("load",((O=u.value)==null?void 0:O.currentSrc)||h.value.src))}function y(){var O;s.isUnmounted||(c.value="error",n("error",((O=u.value)==null?void 0:O.currentSrc)||h.value.src))}function _(){const O=u.value;O&&(l.value=O.currentSrc||O.src)}let S=-1;Ci(()=>{clearTimeout(S)});function w(O){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const V=()=>{if(clearTimeout(S),s.isUnmounted)return;const{naturalHeight:j,naturalWidth:q}=O;j||q?(d.value=q,f.value=j):!O.complete&&c.value==="loading"&&N!=null?S=window.setTimeout(V,N):(O.currentSrc.endsWith(".svg")||O.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};V()}const x=B(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),k=()=>{var V;if(!h.value.src||c.value==="idle")return null;const O=C("img",{class:["v-img__img",x.value],style:{objectPosition:e.position},src:h.value.src,srcset:h.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:v,onError:y},null),N=(V=i.sources)==null?void 0:V.call(i);return C(Aa,{transition:e.transition,appear:!0},{default:()=>[xt(N?C("picture",{class:"v-img__picture"},[N,O]):O,[[hn,c.value==="loaded"]])]})},P=()=>C(Aa,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&C("img",{class:["v-img__img","v-img__img--preload",x.value],style:{objectPosition:e.position},src:h.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),E=()=>i.placeholder?C(Aa,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!i.error)&&C("div",{class:"v-img__placeholder"},[i.placeholder()])]}):null,A=()=>i.error?C(Aa,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&C("div",{class:"v-img__error"},[i.error()])]}):null,D=()=>e.gradient?C("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,T=it(!1);{const O=Ve(m,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{T.value=!0})}),O())})}return We(()=>{const O=Y5.filterProps(e);return xt(C(Y5,Me({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!T.value},r.value,o.value,e.class],style:[{width:st(e.width==="auto"?d.value:e.width)},a.value,e.style]},O,{aspectRatio:m.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>C(Ue,null,[C(k,null,null),C(P,null,null),C(D,null,null),C(E,null,null),C(A,null,null)]),default:i.default}),[[po("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),mo=Oe({border:[Boolean,Number,String]},"border");function Wo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return{borderClasses:B(()=>{const i=Yn(e)?e.value:e.border,r=[];if(i===!0||i==="")r.push(`${t}--border`);else if(typeof i=="string"||i===0)for(const a of String(i).split(" "))r.push(`border-${a}`);return r})}}const Cr=Oe({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function ta(e){return{elevationClasses:B(()=>{const n=Yn(e)?e.value:e.elevation,i=[];return n==null||i.push(`elevation-${n}`),i})}}const tne=[null,"prominent","default","comfortable","compact"],$M=Oe({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>tne.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...mo(),...ct(),...Cr(),...pi(),...Vt({tag:"header"}),...fn()},"VToolbar"),W5=ze()({name:"VToolbar",props:$M(),setup(e,t){var h;let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Rn(Fe(e,"color")),{borderClasses:a}=Wo(e),{elevationClasses:o}=ta(e),{roundedClasses:s}=Ti(e),{themeClasses:l}=Pn(e),{rtlClasses:u}=Sr(),c=it(!!(e.extended||(h=n.extension)!=null&&h.call(n))),d=B(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),f=B(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Si({VBtn:{variant:"text"}}),We(()=>{var y;const m=!!(e.title||n.title),g=!!(n.image||e.image),v=(y=n.extension)==null?void 0:y.call(n);return c.value=!!(e.extended||v),C(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},i.value,a.value,o.value,s.value,l.value,u.value,e.class],style:[r.value,e.style]},{default:()=>[g&&C("div",{key:"image",class:"v-toolbar__image"},[n.image?C(Yt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):C(Ii,{key:"image-img",cover:!0,src:e.image},null)]),C(Yt,{defaults:{VTabs:{height:st(d.value)}}},{default:()=>{var _,S,w;return[C("div",{class:"v-toolbar__content",style:{height:st(d.value)}},[n.prepend&&C("div",{class:"v-toolbar__prepend"},[(_=n.prepend)==null?void 0:_.call(n)]),m&&C(_x,{key:"title",text:e.title},{text:n.title}),(S=n.default)==null?void 0:S.call(n),n.append&&C("div",{class:"v-toolbar__append"},[(w=n.append)==null?void 0:w.call(n)])])]}}),C(Yt,{defaults:{VTabs:{height:st(f.value)}}},{default:()=>[C(Yu,null,{default:()=>[c.value&&C("div",{class:"v-toolbar__extension",style:{height:st(f.value)}},[v])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),nne=Oe({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function ine(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let i=0,r=0;const a=z(null),o=it(0),s=it(0),l=it(0),u=it(!1),c=it(!1),d=B(()=>Number(e.scrollThreshold)),f=B(()=>qi((d.value-o.value)/d.value||0)),h=()=>{const m=a.value;if(!m||n&&!n.value)return;i=o.value,o.value="window"in m?m.pageYOffset:m.scrollTop;const g=m instanceof Window?document.documentElement.scrollHeight:m.scrollHeight;if(r!==g){r=g;return}c.value=o.value<i,l.value=Math.abs(o.value-d.value)};return Ve(c,()=>{s.value=s.value||o.value}),Ve(u,()=>{s.value=0}),tn(()=>{Ve(()=>e.scrollTarget,m=>{var v;const g=m?document.querySelector(m):window;g&&g!==a.value&&((v=a.value)==null||v.removeEventListener("scroll",h),a.value=g,a.value.addEventListener("scroll",h,{passive:!0}))},{immediate:!0})}),Ci(()=>{var m;(m=a.value)==null||m.removeEventListener("scroll",h)}),n&&Ve(n,h,{immediate:!0}),{scrollThreshold:d,currentScroll:o,currentThreshold:l,isScrollActive:u,scrollRatio:f,isScrollingUp:c,savedScroll:s}}function rh(){const e=it(!1);return tn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:B(()=>e.value?void 0:{transition:"none !important"}),isBooted:mm(e)}}const rne=Oe({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...$M(),...nh(),...nne(),height:{type:[Number,String],default:64}},"VAppBar"),ane=ze()({name:"VAppBar",props:rne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=z(),r=vt(e,"modelValue"),a=B(()=>{var S;const _=new Set(((S=e.scrollBehavior)==null?void 0:S.split(" "))??[]);return{hide:_.has("hide"),fullyHide:_.has("fully-hide"),inverted:_.has("inverted"),collapse:_.has("collapse"),elevate:_.has("elevate"),fadeImage:_.has("fade-image")}}),o=B(()=>{const _=a.value;return _.hide||_.fullyHide||_.inverted||_.collapse||_.elevate||_.fadeImage||!r.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=ine(e,{canScroll:o}),d=B(()=>a.value.hide||a.value.fullyHide),f=B(()=>e.collapse||a.value.collapse&&(a.value.inverted?c.value>0:c.value===0)),h=B(()=>e.flat||a.value.fullyHide&&!r.value||a.value.elevate&&(a.value.inverted?s.value>0:s.value===0)),m=B(()=>a.value.fadeImage?a.value.inverted?1-c.value:c.value:void 0),g=B(()=>{var w,x;if(a.value.hide&&a.value.inverted)return 0;const _=((w=i.value)==null?void 0:w.contentHeight)??0,S=((x=i.value)==null?void 0:x.extensionHeight)??0;return d.value?s.value<l.value||a.value.fullyHide?_+S:_:_+S});Xa(B(()=>!!e.scrollBehavior),()=>{Wi(()=>{d.value?a.value.inverted?r.value=s.value>l.value:r.value=u.value||s.value<l.value:r.value=!0})});const{ssrBootStyles:v}=rh(),{layoutItemStyles:y}=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:Fe(e,"location"),layoutSize:g,elementSize:it(void 0),active:r,absolute:Fe(e,"absolute")});return We(()=>{const _=W5.filterProps(e);return C(W5,Me({ref:i,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...y.value,"--v-toolbar-image-opacity":m.value,height:void 0,...v.value},e.style]},_,{collapse:f.value,flat:h.value}),n)}),{}}});const one=[null,"default","comfortable","compact"],Mr=Oe({density:{type:String,default:"default",validator:e=>one.includes(e)}},"density");function Da(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return{densityClasses:B(()=>`${t}--density-${e.density}`)}}const sne=["elevated","flat","tonal","outlined","text","plain"];function _d(e,t){return C(Ue,null,[e&&C("span",{key:"overlay",class:`${t}__overlay`},null),C("span",{key:"underlay",class:`${t}__underlay`},null)])}const bs=Oe({color:String,variant:{type:String,default:"elevated",validator:e=>sne.includes(e)}},"variant");function ah(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();const n=B(()=>{const{variant:a}=K(e);return`${t}--variant-${a}`}),{colorClasses:i,colorStyles:r}=Cx(B(()=>{const{variant:a,color:o}=K(e);return{[["elevated","flat"].includes(a)?"background":"text"]:o}}));return{colorClasses:i,colorStyles:r,variantClasses:n}}const AM=Oe({baseColor:String,divided:Boolean,...mo(),...ct(),...Mr(),...Cr(),...pi(),...Vt(),...fn(),...bs()},"VBtnGroup"),G5=ze()({name:"VBtnGroup",props:AM(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{densityClasses:r}=Da(e),{borderClasses:a}=Wo(e),{elevationClasses:o}=ta(e),{roundedClasses:s}=Ti(e);Si({VBtn:{height:"auto",baseColor:Fe(e,"baseColor"),color:Fe(e,"color"),density:Fe(e,"density"),flat:!0,variant:Fe(e,"variant")}}),We(()=>C(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},i.value,a.value,r.value,o.value,s.value,e.class],style:e.style},n))}}),oh=Oe({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),sh=Oe({value:null,disabled:Boolean,selectedClass:String},"group-item");function lh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=xi("useGroupItem");if(!i)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const r=ea();an(Symbol.for(`${t.description}:id`),r);const a=kt(t,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=Fe(e,"value"),s=B(()=>!!(a.disabled.value||e.disabled));a.register({id:r,value:o,disabled:s},i),Ci(()=>{a.unregister(r)});const l=B(()=>a.isSelected(r)),u=B(()=>a.items.value[0].id===r),c=B(()=>a.items.value[a.items.value.length-1].id===r),d=B(()=>l.value&&[a.selectedClass.value,e.selectedClass]);return Ve(l,f=>{i.emit("group:selected",{value:f})},{flush:"sync"}),{id:r,isSelected:l,isFirst:u,isLast:c,toggle:()=>a.select(r,!l.value),select:f=>a.select(r,f),selectedClass:d,value:o,disabled:s,group:a}}function bd(e,t){let n=!1;const i=er([]),r=vt(e,"modelValue",[],f=>f==null?[]:OM(i,hi(f)),f=>{const h=une(i,f);return e.multiple?h:h[0]}),a=xi("useGroup");function o(f,h){const m=f,g=Symbol.for(`${t.description}:id`),y=ip(g,a==null?void 0:a.vnode).indexOf(h);K(m.value)==null&&(m.value=y,m.useIndexAsValue=!0),y>-1?i.splice(y,0,m):i.push(m)}function s(f){if(n)return;l();const h=i.findIndex(m=>m.id===f);i.splice(h,1)}function l(){const f=i.find(h=>!h.disabled);f&&e.mandatory==="force"&&!r.value.length&&(r.value=[f.id])}tn(()=>{l()}),Ci(()=>{n=!0}),XE(()=>{for(let f=0;f<i.length;f++)i[f].useIndexAsValue&&(i[f].value=f)});function u(f,h){const m=i.find(g=>g.id===f);if(!(h&&(m!=null&&m.disabled)))if(e.multiple){const g=r.value.slice(),v=g.findIndex(_=>_===f),y=~v;if(h=h??!y,y&&e.mandatory&&g.length<=1||!y&&e.max!=null&&g.length+1>e.max)return;v<0&&h?g.push(f):v>=0&&!h&&g.splice(v,1),r.value=g}else{const g=r.value.includes(f);if(e.mandatory&&g)return;r.value=h??!g?[f]:[]}}function c(f){if(e.multiple,r.value.length){const h=r.value[0],m=i.findIndex(y=>y.id===h);let g=(m+f)%i.length,v=i[g];for(;v.disabled&&g!==m;)g=(g+f)%i.length,v=i[g];if(v.disabled)return;r.value=[i[g].id]}else{const h=i.find(m=>!m.disabled);h&&(r.value=[h.id])}}const d={register:o,unregister:s,selected:r,select:u,disabled:Fe(e,"disabled"),prev:()=>c(i.length-1),next:()=>c(1),isSelected:f=>r.value.includes(f),selectedClass:B(()=>e.selectedClass),items:B(()=>i),getItemIndex:f=>lne(i,f)};return an(t,d),d}function lne(e,t){const n=OM(e,[t]);return n.length?e.findIndex(i=>i.id===n[0]):-1}function OM(e,t){const n=[];return t.forEach(i=>{const r=e.find(o=>tu(i,o.value)),a=e[i];(r==null?void 0:r.value)!=null?n.push(r.id):a!=null&&n.push(a.id)}),n}function une(e,t){const n=[];return t.forEach(i=>{const r=e.findIndex(a=>a.id===i);if(~r){const a=e[r];n.push(a.value!=null?a.value:r)}}),n}const Ex=Symbol.for("vuetify:v-btn-toggle"),cne=Oe({...AM(),...oh()},"VBtnToggle"),DM=ze()({name:"VBtnToggle",props:cne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,next:r,prev:a,select:o,selected:s}=bd(e,Ex);return We(()=>{const l=G5.filterProps(e);return C(G5,Me({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:i,next:r,prev:a,select:o,selected:s})]}})}),{next:r,prev:a,select:o}}});const dne=["x-small","small","default","large","x-large"],ru=Oe({size:{type:[String,Number],default:"default"}},"size");function gm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return ux(()=>{let n,i;return z_(dne,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:st(e.size),height:st(e.size)}),{sizeClasses:n,sizeStyles:i}})}const fne=Oe({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:_t,...ct(),...ru(),...Vt({tag:"i"}),...fn()},"VIcon"),ut=ze()({name:"VIcon",props:fne(),setup(e,t){let{attrs:n,slots:i}=t;const r=z(),{themeClasses:a}=Pn(e),{iconData:o}=xte(B(()=>r.value||e.icon)),{sizeClasses:s}=gm(e),{textColorClasses:l,textColorStyles:u}=_a(Fe(e,"color"));return We(()=>{var f,h;const c=(f=i.default)==null?void 0:f.call(i);c&&(r.value=(h=KN(c).filter(m=>m.type===vm&&m.children&&typeof m.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return C(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,s.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:st(e.size),height:st(e.size),width:st(e.size)},u.value,e.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function I2(e,t){const n=z(),i=it(!1);if(ox){const r=new IntersectionObserver(a=>{e==null||e(a,r),i.value=!!a.find(o=>o.isIntersecting)},t);Ci(()=>{r.disconnect()}),Ve(n,(a,o)=>{o&&(r.unobserve(o),i.value=!1),a&&r.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:i}}const hne=Oe({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ct(),...ru(),...Vt({tag:"div"}),...fn()},"VProgressCircular"),ad=ze()({name:"VProgressCircular",props:hne(),setup(e,t){let{slots:n}=t;const i=20,r=2*Math.PI*i,a=z(),{themeClasses:o}=Pn(e),{sizeClasses:s,sizeStyles:l}=gm(e),{textColorClasses:u,textColorStyles:c}=_a(Fe(e,"color")),{textColorClasses:d,textColorStyles:f}=_a(Fe(e,"bgColor")),{intersectionRef:h,isIntersecting:m}=I2(),{resizeRef:g,contentRect:v}=il(),y=B(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),_=B(()=>Number(e.width)),S=B(()=>l.value?Number(e.size):v.value?v.value.width:Math.max(_.value,32)),w=B(()=>i/(1-_.value/S.value)*2),x=B(()=>_.value/S.value*w.value),k=B(()=>st((100-y.value)/100*r));return Wi(()=>{h.value=a.value,g.value=a.value}),We(()=>C(e.tag,{ref:a,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,s.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:y.value},{default:()=>[C("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${w.value} ${w.value}`},[C("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":x.value,"stroke-dasharray":r,"stroke-dashoffset":0},null),C("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":x.value,"stroke-dasharray":r,"stroke-dashoffset":k.value},null)]),n.default&&C("div",{class:"v-progress-circular__content"},[n.default({value:y.value})])]})),{}}});const G6={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},cc=Oe({location:String},"location");function uh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:i}=Sr();return{locationStyles:B(()=>{if(!e.location)return{};const{side:a,align:o}=B5(e.location.split(" ").length>1?e.location:`${e.location} center`,i.value);function s(u){return n?n(u):0}const l={};return a!=="center"&&(t?l[G6[a]]=`calc(100% - ${s(a)}px)`:l[a]=0),o!=="center"?t?l[G6[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const pne=Oe({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ct(),...cc({location:"top"}),...pi(),...Vt(),...fn()},"VProgressLinear"),N2=ze()({name:"VProgressLinear",props:pne(),emits:{"update:modelValue":e=>!0},setup(e,t){var T;let{slots:n}=t;const i=vt(e,"modelValue"),{isRtl:r,rtlClasses:a}=Sr(),{themeClasses:o}=Pn(e),{locationStyles:s}=uh(e),{textColorClasses:l,textColorStyles:u}=_a(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:d}=Rn(B(()=>e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Rn(B(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:g}=Rn(e,"color"),{roundedClasses:v}=Ti(e),{intersectionRef:y,isIntersecting:_}=I2(),S=B(()=>parseFloat(e.max)),w=B(()=>parseFloat(e.height)),x=B(()=>qi(parseFloat(e.bufferValue)/S.value*100,0,100)),k=B(()=>qi(parseFloat(i.value)/S.value*100,0,100)),P=B(()=>r.value!==e.reverse),E=B(()=>e.indeterminate?"fade-transition":"slide-x-transition"),A=En&&((T=window.matchMedia)==null?void 0:T.call(window,"(forced-colors: active)").matches);function D(O){if(!y.value)return;const{left:N,right:V,width:j}=y.value.getBoundingClientRect(),q=P.value?j-O.clientX+(V-j):O.clientX-N;i.value=Math.round(q/j*S.value)}return We(()=>C(e.tag,{ref:y,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&_.value,"v-progress-linear--reverse":P.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},v.value,o.value,a.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?st(w.value):0,"--v-progress-linear-height":st(w.value),...e.absolute?s.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:k.value,onClick:e.clickable&&D},{default:()=>[e.stream&&C("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[P.value?"left":"right"]:st(-w.value),borderTop:`${st(w.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${st(w.value/4)})`,width:st(100-x.value,"%"),"--v-progress-linear-stream-to":st(w.value*(P.value?1:-1))}},null),C("div",{class:["v-progress-linear__background",A?void 0:c.value],style:[d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),C("div",{class:["v-progress-linear__buffer",A?void 0:f.value],style:[h.value,{opacity:parseFloat(e.bufferOpacity),width:st(x.value,"%")}]},null),C(Gl,{name:E.value},{default:()=>[e.indeterminate?C("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(O=>C("div",{key:O,class:["v-progress-linear__indeterminate",O,A?void 0:m.value],style:g.value},null))]):C("div",{class:["v-progress-linear__determinate",A?void 0:m.value],style:[g.value,{width:st(k.value,"%")}]},null)]}),n.default&&C("div",{class:"v-progress-linear__content"},[n.default({value:k.value,buffer:x.value})])]})),{}}}),M2=Oe({loading:[Boolean,String]},"loader");function z1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return{loaderClasses:B(()=>({[`${t}--loading`]:e.loading}))}}function j1(e,t){var i;let{slots:n}=t;return C("div",{class:`${e.name}__loader`},[((i=n.default)==null?void 0:i.call(n,{color:e.color,isActive:e.active}))||C(N2,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const mne=["static","relative","fixed","absolute","sticky"],ym=Oe({position:{type:String,validator:e=>mne.includes(e)}},"position");function _m(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();return{positionClasses:B(()=>e.position?`${t}--${e.position}`:void 0)}}function vne(){const e=xi("useRoute");return B(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function IM(){var e,t;return(t=(e=xi("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function U1(e,t){var d,f;const n=gK("RouterLink"),i=B(()=>!!(e.href||e.to)),r=B(()=>(i==null?void 0:i.value)||k6(t,"click")||k6(e,"click"));if(typeof n=="string"||!("useLink"in n)){const h=Fe(e,"href");return{isLink:i,isClickable:r,href:h,linkProps:er({href:h})}}const a=B(()=>({...e,to:Fe(()=>e.to||"")})),o=n.useLink(a.value),s=B(()=>e.to?o:void 0),l=vne(),u=B(()=>{var h,m,g;return s.value?e.exact?l.value?((g=s.value.isExactActive)==null?void 0:g.value)&&tu(s.value.route.value.query,l.value.query):((m=s.value.isExactActive)==null?void 0:m.value)??!1:((h=s.value.isActive)==null?void 0:h.value)??!1:!1}),c=B(()=>{var h;return e.to?(h=s.value)==null?void 0:h.route.value.href:e.href});return{isLink:i,isClickable:r,isActive:u,route:(d=s.value)==null?void 0:d.route,navigate:(f=s.value)==null?void 0:f.navigate,href:c,linkProps:er({href:c,"aria-current":B(()=>u.value?"page":void 0)})}}const H1=Oe({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let k3=!1;function gne(e,t){let n=!1,i,r;En&&(Pt(()=>{window.addEventListener("popstate",a),i=e==null?void 0:e.beforeEach((o,s,l)=>{k3?n?t(l):l():setTimeout(()=>n?t(l):l()),k3=!0}),r=e==null?void 0:e.afterEach(()=>{k3=!1})}),Qr(()=>{window.removeEventListener("popstate",a),i==null||i(),r==null||r()}));function a(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function yne(e,t){Ve(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&Pt(()=>{t(!0)})},{immediate:!0})}const K5=Symbol("rippleStop"),_ne=80;function K6(e,t){e.style.transform=t,e.style.webkitTransform=t}function Z5(e){return e.constructor.name==="TouchEvent"}function NM(e){return e.constructor.name==="KeyboardEvent"}const bne=function(e,t){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,r=0;if(!NM(e)){const f=t.getBoundingClientRect(),h=Z5(e)?e.touches[e.touches.length-1]:e;i=h.clientX-f.left,r=h.clientY-f.top}let a=0,o=.3;(d=t._ripple)!=null&&d.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(r-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-a*2)/2}px`,l=`${(t.clientHeight-a*2)/2}px`,u=n.center?s:`${i-a}px`,c=n.center?l:`${r-a}px`;return{radius:a,scale:o,x:u,y:c,centerX:s,centerY:l}},Y_={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:s,y:l,centerX:u,centerY:c}=bne(e,t,n),d=`${a*2}px`;r.className="v-ripple__animation",r.style.width=d,r.style.height=d,t.appendChild(i);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),K6(r,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),K6(r,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),r=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(n.parentNode)},300)},r)}};function MM(e){return typeof e>"u"||!!e}function Xg(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[K5])){if(e[K5]=!0,Z5(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||NM(e),n._ripple.class&&(t.class=n._ripple.class),Z5(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Y_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},_ne)}else Y_.show(e,n,t)}}function Z6(e){e[K5]=!0}function Lo(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Lo(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Y_.hide(t)}}function LM(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Jg=!1;function RM(e){!Jg&&(e.keyCode===w6.enter||e.keyCode===w6.space)&&(Jg=!0,Xg(e))}function FM(e){Jg=!1,Lo(e)}function VM(e){Jg&&(Jg=!1,Lo(e))}function BM(e,t,n){const{value:i,modifiers:r}=t,a=MM(i);if(a||Y_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=r.center,e._ripple.circle=r.circle,E2(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(r.stop){e.addEventListener("touchstart",Z6,{passive:!0}),e.addEventListener("mousedown",Z6);return}e.addEventListener("touchstart",Xg,{passive:!0}),e.addEventListener("touchend",Lo,{passive:!0}),e.addEventListener("touchmove",LM,{passive:!0}),e.addEventListener("touchcancel",Lo),e.addEventListener("mousedown",Xg),e.addEventListener("mouseup",Lo),e.addEventListener("mouseleave",Lo),e.addEventListener("keydown",RM),e.addEventListener("keyup",FM),e.addEventListener("blur",VM),e.addEventListener("dragstart",Lo,{passive:!0})}else!a&&n&&zM(e)}function zM(e){e.removeEventListener("mousedown",Xg),e.removeEventListener("touchstart",Xg),e.removeEventListener("touchend",Lo),e.removeEventListener("touchmove",LM),e.removeEventListener("touchcancel",Lo),e.removeEventListener("mouseup",Lo),e.removeEventListener("mouseleave",Lo),e.removeEventListener("keydown",RM),e.removeEventListener("keyup",FM),e.removeEventListener("dragstart",Lo),e.removeEventListener("blur",VM)}function wne(e,t){BM(e,t,!1)}function Sne(e){delete e._ripple,zM(e)}function Cne(e,t){if(t.value===t.oldValue)return;const n=MM(t.oldValue);BM(e,t,n)}const dc={mounted:wne,unmounted:Sne,updated:Cne},L2=Oe({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Ex},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:_t,appendIcon:_t,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...mo(),...ct(),...Mr(),...rr(),...Cr(),...sh(),...M2(),...cc(),...ym(),...pi(),...H1(),...ru(),...Vt({tag:"button"}),...fn(),...bs({variant:"elevated"})},"VBtn"),Je=ze()({name:"VBtn",props:L2(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=Pn(e),{borderClasses:a}=Wo(e),{densityClasses:o}=Da(e),{dimensionStyles:s}=ar(e),{elevationClasses:l}=ta(e),{loaderClasses:u}=z1(e),{locationStyles:c}=uh(e),{positionClasses:d}=_m(e),{roundedClasses:f}=Ti(e),{sizeClasses:h,sizeStyles:m}=gm(e),g=lh(e,e.symbol,!1),v=U1(e,n),y=B(()=>{var T;return e.active!==void 0?e.active:v.isLink.value?(T=v.isActive)==null?void 0:T.value:g==null?void 0:g.isSelected.value}),_=B(()=>y.value?e.activeColor??e.color:e.color),S=B(()=>{var O,N;return{color:(g==null?void 0:g.isSelected.value)&&(!v.isLink.value||((O=v.isActive)==null?void 0:O.value))||!g||((N=v.isActive)==null?void 0:N.value)?_.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:w,colorStyles:x,variantClasses:k}=ah(S),P=B(()=>(g==null?void 0:g.disabled.value)||e.disabled),E=B(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),A=B(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function D(T){var O;P.value||v.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||n.target==="_blank")||((O=v.navigate)==null||O.call(v,T),g==null||g.toggle())}return yne(v,g==null?void 0:g.select),We(()=>{const T=v.isLink.value?"a":e.tag,O=!!(e.prependIcon||i.prepend),N=!!(e.appendIcon||i.append),V=!!(e.icon&&e.icon!==!0);return xt(C(T,Me({type:T==="a"?void 0:"button",class:["v-btn",g==null?void 0:g.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":P.value,"v-btn--elevated":E.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},r.value,a.value,w.value,o.value,l.value,u.value,d.value,f.value,h.value,k.value,e.class],style:[x.value,s.value,c.value,m.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:P.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:D,value:A.value},v.linkProps),{default:()=>{var j;return[_d(!0,"v-btn"),!e.icon&&O&&C("span",{key:"prepend",class:"v-btn__prepend"},[i.prepend?C(Yt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},i.prepend):C(ut,{key:"prepend-icon",icon:e.prependIcon},null)]),C("span",{class:"v-btn__content","data-no-activator":""},[!i.default&&V?C(ut,{key:"content-icon",icon:e.icon},null):C(Yt,{key:"content-defaults",disabled:!V,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var q;return[((q=i.default)==null?void 0:q.call(i))??e.text]}})]),!e.icon&&N&&C("span",{key:"append",class:"v-btn__append"},[i.append?C(Yt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},i.append):C(ut,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&C("span",{key:"loader",class:"v-btn__loader"},[((j=i.loader)==null?void 0:j.call(i))??C(ad,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[dc,!P.value&&e.ripple,"",{center:!!e.icon}]])}),{group:g}}}),Ene=Oe({...L2({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),xne=ze()({name:"VAppBarNavIcon",props:Ene(),setup(e,t){let{slots:n}=t;return We(()=>C(Je,Me(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),kne=ze()({name:"VAppBarTitle",props:wM(),setup(e,t){let{slots:n}=t;return We(()=>C(_x,Me(e,{class:"v-app-bar-title"}),n)),{}}});const jM=iu("v-alert-title"),Tne=["success","info","warning","error"],Pne=Oe({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:_t,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>Tne.includes(e)},...ct(),...Mr(),...rr(),...Cr(),...cc(),...ym(),...pi(),...Vt(),...fn(),...bs({variant:"flat"})},"VAlert"),$ne=ze()({name:"VAlert",props:Pne(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=vt(e,"modelValue"),a=B(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=B(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=Pn(e),{colorClasses:l,colorStyles:u,variantClasses:c}=ah(o),{densityClasses:d}=Da(e),{dimensionStyles:f}=ar(e),{elevationClasses:h}=ta(e),{locationStyles:m}=uh(e),{positionClasses:g}=_m(e),{roundedClasses:v}=Ti(e),{textColorClasses:y,textColorStyles:_}=_a(Fe(e,"borderColor")),{t:S}=ki(),w=B(()=>({"aria-label":S(e.closeLabel),onClick(x){r.value=!1,n("click:close",x)}}));return()=>{const x=!!(i.prepend||a.value),k=!!(i.title||e.title),P=!!(i.close||e.closable);return r.value&&C(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,d.value,h.value,g.value,v.value,c.value,e.class],style:[u.value,f.value,m.value,e.style],role:"alert"},{default:()=>{var E,A;return[_d(!1,"v-alert"),e.border&&C("div",{key:"border",class:["v-alert__border",y.value],style:_.value},null),x&&C("div",{key:"prepend",class:"v-alert__prepend"},[i.prepend?C(Yt,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{density:e.density,icon:a.value,size:e.prominent?44:28}}},i.prepend):C(ut,{key:"prepend-icon",density:e.density,icon:a.value,size:e.prominent?44:28},null)]),C("div",{class:"v-alert__content"},[k&&C(jM,{key:"title"},{default:()=>{var D;return[((D=i.title)==null?void 0:D.call(i))??e.title]}}),((E=i.text)==null?void 0:E.call(i))??e.text,(A=i.default)==null?void 0:A.call(i)]),i.append&&C("div",{key:"append",class:"v-alert__append"},[i.append()]),P&&C("div",{key:"close",class:"v-alert__close"},[i.close?C(Yt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var D;return[(D=i.close)==null?void 0:D.call(i,{props:w.value})]}}):C(Je,Me({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},w.value),null)])]}})}}});const Ane=Oe({start:Boolean,end:Boolean,icon:_t,image:String,text:String,...mo(),...ct(),...Mr(),...pi(),...ru(),...Vt(),...fn(),...bs({variant:"flat"})},"VAvatar"),Ui=ze()({name:"VAvatar",props:Ane(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{borderClasses:r}=Wo(e),{colorClasses:a,colorStyles:o,variantClasses:s}=ah(e),{densityClasses:l}=Da(e),{roundedClasses:u}=Ti(e),{sizeClasses:c,sizeStyles:d}=gm(e);return We(()=>C(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},i.value,r.value,a.value,l.value,u.value,c.value,s.value,e.class],style:[o.value,d.value,e.style]},{default:()=>[n.default?C(Yt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?C(Ii,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?C(ut,{key:"icon",icon:e.icon},null):e.text,_d(!1,"v-avatar")]})),{}}});const One=Oe({text:String,onClick:Xr(),...ct(),...fn()},"VLabel"),bm=ze()({name:"VLabel",props:One(),setup(e,t){let{slots:n}=t;return We(()=>{var i;return C("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(i=n.default)==null?void 0:i.call(n)])}),{}}});const UM=Symbol.for("vuetify:selection-control-group"),xx=Oe({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:_t,trueIcon:_t,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:tu},...ct(),...Mr(),...fn()},"SelectionControlGroup"),Dne=Oe({...xx({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),HM=ze()({name:"VSelectionControlGroup",props:Dne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),r=ea(),a=B(()=>e.id||`v-selection-control-group-${r}`),o=B(()=>e.name||a.value),s=new Set;return an(UM,{modelValue:i,forceUpdate:()=>{s.forEach(l=>l())},onForceUpdate:l=>{s.add(l),Qr(()=>{s.delete(l)})}}),Si({[e.defaultsTarget]:{color:Fe(e,"color"),disabled:Fe(e,"disabled"),density:Fe(e,"density"),error:Fe(e,"error"),inline:Fe(e,"inline"),modelValue:i,multiple:B(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),name:o,falseIcon:Fe(e,"falseIcon"),trueIcon:Fe(e,"trueIcon"),readonly:Fe(e,"readonly"),ripple:Fe(e,"ripple"),type:Fe(e,"type"),valueComparator:Fe(e,"valueComparator")}}),We(()=>{var l;return C("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),R2=Oe({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ct(),...xx()},"VSelectionControl");function Ine(e){const t=kt(UM,void 0),{densityClasses:n}=Da(e),i=vt(e,"modelValue"),r=B(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),a=B(()=>e.falseValue!==void 0?e.falseValue:!1),o=B(()=>!!e.multiple||e.multiple==null&&Array.isArray(i.value)),s=B({get(){const h=t?t.modelValue.value:i.value;return o.value?hi(h).some(m=>e.valueComparator(m,r.value)):e.valueComparator(h,r.value)},set(h){if(e.readonly)return;const m=h?r.value:a.value;let g=m;o.value&&(g=h?[...hi(i.value),m]:hi(i.value).filter(v=>!e.valueComparator(v,r.value))),t?t.modelValue.value=g:i.value=g}}),{textColorClasses:l,textColorStyles:u}=_a(B(()=>{if(!(e.error||e.disabled))return s.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:d}=Rn(B(()=>s.value&&!e.error&&!e.disabled?e.color:e.baseColor)),f=B(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:r,falseValue:a,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:f}}const od=ze()({name:"VSelectionControl",directives:{Ripple:dc},inheritAttrs:!1,props:R2(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{group:r,densityClasses:a,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:f}=Ine(e),h=ea(),m=it(!1),g=it(!1),v=z(),y=B(()=>e.id||`input-${h}`),_=B(()=>!e.disabled&&!e.readonly);r==null||r.onForceUpdate(()=>{v.value&&(v.value.checked=s.value)});function S(P){_.value&&(m.value=!0,jp(P.target,":focus-visible")!==!1&&(g.value=!0))}function w(){m.value=!1,g.value=!1}function x(P){P.stopPropagation()}function k(P){if(!_.value){v.value&&(v.value.checked=s.value);return}e.readonly&&r&&Pt(()=>r.forceUpdate()),s.value=P.target.checked}return We(()=>{var T,O;const P=i.label?i.label({label:e.label,props:{for:y.value}}):e.label,[E,A]=yd(n),D=C("input",Me({ref:v,checked:s.value,disabled:!!e.disabled,id:y.value,onBlur:w,onFocus:S,onInput:k,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:f.value,name:e.name,"aria-checked":e.type==="checkbox"?s.value:void 0},A),null);return C("div",Me({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":e.inline},a.value,e.class]},E,{style:e.style}),[C("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(T=i.default)==null?void 0:T.call(i,{backgroundColorClasses:c,backgroundColorStyles:d}),xt(C("div",{class:["v-selection-control__input"]},[((O=i.input)==null?void 0:O.call(i,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:D,icon:o.value,props:{onFocus:S,onBlur:w,id:y.value}}))??C(Ue,null,[o.value&&C(ut,{key:"icon",icon:o.value},null),D])]),[[po("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),P&&C(bm,{for:y.value,onClick:x},{default:()=>[P]})])}),{isFocused:m,input:v}}}),qM=Oe({indeterminate:Boolean,indeterminateIcon:{type:_t,default:"$checkboxIndeterminate"},...R2({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),ic=ze()({name:"VCheckboxBtn",props:qM(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"indeterminate"),r=vt(e,"modelValue");function a(l){i.value&&(i.value=!1)}const o=B(()=>i.value?e.indeterminateIcon:e.falseIcon),s=B(()=>i.value?e.indeterminateIcon:e.trueIcon);return We(()=>{const l=Li(od.filterProps(e),["modelValue"]);return C(od,Me(l,{modelValue:r.value,"onUpdate:modelValue":[u=>r.value=u,a],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":i.value?"mixed":void 0}),n)}),{}}});function YM(e){const{t}=ki();function n(i){let{name:r}=i;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[r],o=e[`onClick:${r}`],s=o&&a?t(`$vuetify.input.${a}`,e.label??""):void 0;return C(ut,{icon:e[`${r}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const Nne=Oe({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ct(),...dl({transition:{component:wx,leaveAbsolute:!0,group:!0}})},"VMessages"),WM=ze()({name:"VMessages",props:Nne(),setup(e,t){let{slots:n}=t;const i=B(()=>hi(e.messages)),{textColorClasses:r,textColorStyles:a}=_a(B(()=>e.color));return We(()=>C(Aa,{transition:e.transition,tag:"div",class:["v-messages",r.value,e.class],style:[a.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&i.value.map((o,s)=>C("div",{class:"v-messages__message",key:`${s}-${i.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),wm=Oe({focused:Boolean,"onUpdate:focused":Xr()},"focus");function au(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();const n=vt(e,"focused"),i=B(()=>({[`${t}--focused`]:n.value}));function r(){n.value=!0}function a(){n.value=!1}return{focusClasses:i,isFocused:n,focus:r,blur:a}}const GM=Symbol.for("vuetify:form"),Mne=Oe({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Lne(e){const t=vt(e,"modelValue"),n=B(()=>e.disabled),i=B(()=>e.readonly),r=it(!1),a=z([]),o=z([]);async function s(){const c=[];let d=!0;o.value=[],r.value=!0;for(const f of a.value){const h=await f.validate();if(h.length>0&&(d=!1,c.push({id:f.id,errorMessages:h})),!d&&e.fastFail)break}return o.value=c,r.value=!1,{valid:d,errors:o.value}}function l(){a.value.forEach(c=>c.reset())}function u(){a.value.forEach(c=>c.resetValidation())}return Ve(a,()=>{let c=0,d=0;const f=[];for(const h of a.value)h.isValid===!1?(d++,f.push({id:h.id,errorMessages:h.errorMessages})):h.isValid===!0&&c++;o.value=f,t.value=d>0?!1:c===a.value.length?!0:null},{deep:!0,flush:"post"}),an(GM,{register:c=>{let{id:d,vm:f,validate:h,reset:m,resetValidation:g}=c;a.value.some(v=>v.id===d),a.value.push({id:d,validate:h,reset:m,resetValidation:g,vm:eu(f),isValid:null,errorMessages:[]})},unregister:c=>{a.value=a.value.filter(d=>d.id!==c)},update:(c,d,f)=>{const h=a.value.find(m=>m.id===c);h&&(h.isValid=d,h.errorMessages=f)},isDisabled:n,isReadonly:i,isValidating:r,isValid:t,items:a,validateOn:Fe(e,"validateOn")}),{errors:o,isDisabled:n,isReadonly:i,isValidating:r,isValid:t,items:a,validate:s,reset:l,resetValidation:u}}function F2(e){const t=kt(GM,null);return{...t,isReadonly:B(()=>!!((e==null?void 0:e.readonly)??(t==null?void 0:t.isReadonly.value))),isDisabled:B(()=>!!((e==null?void 0:e.disabled)??(t==null?void 0:t.isDisabled.value)))}}const KM=Oe({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...wm()},"validation");function ZM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ea();const i=vt(e,"modelValue"),r=B(()=>e.validationValue===void 0?i.value:e.validationValue),a=F2(e),o=z([]),s=it(!0),l=B(()=>!!(hi(i.value===""?null:i.value).length||hi(r.value===""?null:r.value).length)),u=B(()=>{var S;return(S=e.errorMessages)!=null&&S.length?hi(e.errorMessages).concat(o.value).slice(0,Math.max(0,+e.maxErrors)):o.value}),c=B(()=>{var x;let S=(e.validateOn??((x=a.validateOn)==null?void 0:x.value))||"input";S==="lazy"&&(S="input lazy"),S==="eager"&&(S="input eager");const w=new Set((S==null?void 0:S.split(" "))??[]);return{input:w.has("input"),blur:w.has("blur")||w.has("input")||w.has("invalid-input"),invalidInput:w.has("invalid-input"),lazy:w.has("lazy"),eager:w.has("eager")}}),d=B(()=>{var S;return e.error||(S=e.errorMessages)!=null&&S.length?!1:e.rules.length?s.value?o.value.length||c.value.lazy?null:!0:!o.value.length:!0}),f=it(!1),h=B(()=>({[`${t}--error`]:d.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:a.isDisabled.value,[`${t}--readonly`]:a.isReadonly.value})),m=xi("validation"),g=B(()=>e.name??K(n));th(()=>{var S;(S=a.register)==null||S.call(a,{id:g.value,vm:m,validate:_,reset:v,resetValidation:y})}),Ci(()=>{var S;(S=a.unregister)==null||S.call(a,g.value)}),tn(async()=>{var S;c.value.lazy||await _(!c.value.eager),(S=a.update)==null||S.call(a,g.value,d.value,u.value)}),Xa(()=>c.value.input||c.value.invalidInput&&d.value===!1,()=>{Ve(r,()=>{if(r.value!=null)_();else if(e.focused){const S=Ve(()=>e.focused,w=>{w||_(),S()})}})}),Xa(()=>c.value.blur,()=>{Ve(()=>e.focused,S=>{S||_()})}),Ve([d,u],()=>{var S;(S=a.update)==null||S.call(a,g.value,d.value,u.value)});async function v(){i.value=null,await Pt(),await y()}async function y(){s.value=!0,c.value.lazy?o.value=[]:await _(!c.value.eager)}async function _(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const w=[];f.value=!0;for(const x of e.rules){if(w.length>=+(e.maxErrors??1))break;const P=await(typeof x=="function"?x:()=>x)(r.value);if(P!==!0){if(P!==!1&&typeof P!="string"){console.warn(`${P} is not a valid value. Rule functions must return boolean true or a string.`);continue}w.push(P||"")}}return o.value=w,f.value=!1,s.value=S,o.value}return{errorMessages:u,isDirty:l,isDisabled:a.isDisabled,isReadonly:a.isReadonly,isPristine:s,isValid:d,isValidating:f,reset:v,resetValidation:y,validate:_,validationClasses:h}}const fc=Oe({id:String,appendIcon:_t,centerAffix:{type:Boolean,default:!0},prependIcon:_t,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Xr(),"onClick:append":Xr(),...ct(),...Mr(),...x2(rr(),["maxWidth","minWidth","width"]),...fn(),...KM()},"VInput"),ba=ze()({name:"VInput",props:{...fc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i,emit:r}=t;const{densityClasses:a}=Da(e),{dimensionStyles:o}=ar(e),{themeClasses:s}=Pn(e),{rtlClasses:l}=Sr(),{InputIcon:u}=YM(e),c=ea(),d=B(()=>e.id||`input-${c}`),f=B(()=>`${d.value}-messages`),{errorMessages:h,isDirty:m,isDisabled:g,isReadonly:v,isPristine:y,isValid:_,isValidating:S,reset:w,resetValidation:x,validate:k,validationClasses:P}=ZM(e,"v-input",d),E=B(()=>({id:d,messagesId:f,isDirty:m,isDisabled:g,isReadonly:v,isPristine:y,isValid:_,isValidating:S,reset:w,resetValidation:x,validate:k})),A=B(()=>{var D;return(D=e.errorMessages)!=null&&D.length||!y.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return We(()=>{var V,j,q,ne;const D=!!(i.prepend||e.prependIcon),T=!!(i.append||e.appendIcon),O=A.value.length>0,N=!e.hideDetails||e.hideDetails==="auto"&&(O||!!i.details);return C("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,s.value,l.value,P.value,e.class],style:[o.value,e.style]},[D&&C("div",{key:"prepend",class:"v-input__prepend"},[(V=i.prepend)==null?void 0:V.call(i,E.value),e.prependIcon&&C(u,{key:"prepend-icon",name:"prepend"},null)]),i.default&&C("div",{class:"v-input__control"},[(j=i.default)==null?void 0:j.call(i,E.value)]),T&&C("div",{key:"append",class:"v-input__append"},[e.appendIcon&&C(u,{key:"append-icon",name:"append"},null),(q=i.append)==null?void 0:q.call(i,E.value)]),N&&C("div",{class:"v-input__details"},[C(WM,{id:f.value,active:O,messages:A.value},{message:i.message}),(ne=i.details)==null?void 0:ne.call(i,E.value)])])}),{reset:w,resetValidation:x,validate:k,isValid:_,errorMessages:h}}}),Rne=Oe({...fc(),...Li(qM(),["inline"])},"VCheckbox"),jf=ze()({name:"VCheckbox",inheritAttrs:!1,props:Rne(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=vt(e,"modelValue"),{isFocused:a,focus:o,blur:s}=au(e),l=ea(),u=B(()=>e.id||`checkbox-${l}`);return We(()=>{const[c,d]=yd(n),f=ba.filterProps(e),h=ic.filterProps(e);return C(ba,Me({class:["v-checkbox",e.class]},c,f,{modelValue:r.value,"onUpdate:modelValue":m=>r.value=m,id:u.value,focused:a.value,style:e.style}),{...i,default:m=>{let{id:g,messagesId:v,isDisabled:y,isReadonly:_,isValid:S}=m;return C(ic,Me(h,{id:g.value,"aria-describedby":v.value,disabled:y.value,readonly:_.value},d,{error:S.value===!1,modelValue:r.value,"onUpdate:modelValue":w=>r.value=w,onFocus:o,onBlur:s}),i)}})}),{}}});const V2=["sm","md","lg","xl","xxl"],X5=Symbol.for("vuetify:display"),X6={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Fne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X6;return $a(X6,e)};function J6(e){return En&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Q6(e){return En&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function eP(e){const t=En&&!e?window.navigator.userAgent:"ssr";function n(m){return!!t.match(m)}const i=n(/android/i),r=n(/iphone|ipad|ipod/i),a=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:i,ios:r,cordova:a,electron:o,chrome:s,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:Dee,ssr:t==="ssr"}}function Vne(e,t){const{thresholds:n,mobileBreakpoint:i}=Fne(e),r=it(Q6(t)),a=it(eP(t)),o=er({}),s=it(J6(t));function l(){r.value=Q6(),s.value=J6()}function u(){l(),a.value=eP()}return Wi(()=>{const c=s.value<n.sm,d=s.value<n.md&&!c,f=s.value<n.lg&&!(d||c),h=s.value<n.xl&&!(f||d||c),m=s.value<n.xxl&&!(h||f||d||c),g=s.value>=n.xxl,v=c?"xs":d?"sm":f?"md":h?"lg":m?"xl":"xxl",y=typeof i=="number"?i:n[i],_=s.value<y;o.xs=c,o.sm=d,o.md=f,o.lg=h,o.xl=m,o.xxl=g,o.smAndUp=!c,o.mdAndUp=!(c||d),o.lgAndUp=!(c||d||f),o.xlAndUp=!(c||d||f||h),o.smAndDown=!(f||h||m||g),o.mdAndDown=!(h||m||g),o.lgAndDown=!(m||g),o.xlAndDown=!g,o.name=v,o.height=r.value,o.width=s.value,o.mobile=_,o.mobileBreakpoint=i,o.platform=a.value,o.thresholds=n}),En&&window.addEventListener("resize",l,{passive:!0}),{...gd(o),update:u,ssr:!!t}}const ch=Oe({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Ki(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu();const n=kt(X5);if(!n)throw new Error("Could not find Vuetify display injection");const i=B(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const a=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.value<a}),r=B(()=>t?{[`${t}--mobile`]:i.value}:{});return{...n,displayClasses:r,mobile:i}}const XM=Symbol.for("vuetify:goto");function JM(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function Bne(e){return kx(e)??(document.scrollingElement||document.body)}function kx(e){return typeof e=="string"?document.querySelector(e):sx(e)}function T3(e,t,n){if(typeof e=="number")return t&&n?-e:e;let i=kx(e),r=0;for(;i;)r+=t?i.offsetLeft:i.offsetTop,i=i.offsetParent;return r}function zne(e,t){return{rtl:t.isRtl,options:$a(JM(),e)}}async function tP(e,t,n,i){const r=n?"scrollLeft":"scrollTop",a=$a((i==null?void 0:i.options)??JM(),t),o=i==null?void 0:i.rtl.value,s=(typeof e=="number"?e:kx(e))??0,l=a.container==="parent"&&s instanceof HTMLElement?s.parentElement:Bne(a.container),u=typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!u)throw new TypeError(`Easing function "${a.easing}" not found.`);let c;if(typeof s=="number")c=T3(s,n,o);else if(c=T3(s,n,o)-T3(l,n,o),a.layout){const m=window.getComputedStyle(s).getPropertyValue("--v-layout-top");m&&(c-=parseInt(m,10))}c+=a.offset,c=Une(l,c,!!o,!!n);const d=l[r]??0;if(c===d)return Promise.resolve(c);const f=performance.now();return new Promise(h=>requestAnimationFrame(function m(g){const y=(g-f)/a.duration,_=Math.floor(d+(c-d)*u(qi(y,0,1)));if(l[r]=_,y>=1&&Math.abs(_-l[r])<10)return h(c);if(y>2)return h(l[r]);requestAnimationFrame(m)}))}function jne(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=kt(XM),{isRtl:n}=Sr();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const i={...t,rtl:B(()=>t.rtl.value||n.value)};async function r(a,o){return tP(a,$a(e,o),!1,i)}return r.horizontal=async(a,o)=>tP(a,$a(e,o),!0,i),r}function Une(e,t,n,i){const{scrollWidth:r,scrollHeight:a}=e,[o,s]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return i?n?(l=-(r-o),u=0):(l=0,u=r-o):(l=0,u=a+-s),Math.max(Math.min(t,u),l)}function Hne(e){let{selectedElement:t,containerElement:n,isRtl:i,isHorizontal:r}=e;const a=Qg(r,n),o=QM(r,i,n),s=Qg(r,t),l=eL(r,t),u=s*.4;return o>l?l-u:o+a<l+s?l-a+s+u:o}function qne(e){let{selectedElement:t,containerElement:n,isHorizontal:i}=e;const r=Qg(i,n),a=eL(i,t),o=Qg(i,t);return a-r/2+o/2}function nP(e,t){const n=e?"scrollWidth":"scrollHeight";return(t==null?void 0:t[n])||0}function Yne(e,t){const n=e?"clientWidth":"clientHeight";return(t==null?void 0:t[n])||0}function QM(e,t,n){if(!n)return 0;const{scrollLeft:i,offsetWidth:r,scrollWidth:a}=n;return e?t?a-r+i:i:n.scrollTop}function Qg(e,t){const n=e?"offsetWidth":"offsetHeight";return(t==null?void 0:t[n])||0}function eL(e,t){const n=e?"offsetLeft":"offsetTop";return(t==null?void 0:t[n])||0}const tL=Symbol.for("vuetify:v-slide-group"),Tx=Oe({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:tL},nextIcon:{type:_t,default:"$next"},prevIcon:{type:_t,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...ct(),...ch({mobile:null}),...Vt(),...oh({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),e1=ze()({name:"VSlideGroup",props:Tx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:i}=Sr(),{displayClasses:r,mobile:a}=Ki(e),o=bd(e,e.symbol),s=it(!1),l=it(0),u=it(0),c=it(0),d=B(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:h}=il(),{resizeRef:m,contentRect:g}=il(),v=jne(),y=B(()=>({container:f.el,duration:200,easing:"easeOutQuart"})),_=B(()=>o.selected.value.length?o.items.value.findIndex(M=>M.id===o.selected.value[0]):-1),S=B(()=>o.selected.value.length?o.items.value.findIndex(M=>M.id===o.selected.value[o.selected.value.length-1]):-1);if(En){let M=-1;Ve(()=>[o.selected.value,h.value,g.value,d.value],()=>{cancelAnimationFrame(M),M=requestAnimationFrame(()=>{if(h.value&&g.value){const I=d.value?"width":"height";u.value=h.value[I],c.value=g.value[I],s.value=u.value+1<c.value}if(_.value>=0&&m.el){const I=m.el.children[S.value];x(I,e.centerActive)}})})}const w=it(!1);function x(M,I){let W=0;I?W=qne({containerElement:f.el,isHorizontal:d.value,selectedElement:M}):W=Hne({containerElement:f.el,isHorizontal:d.value,isRtl:i.value,selectedElement:M}),k(W)}function k(M){if(!En||!f.el)return;const I=Qg(d.value,f.el),W=QM(d.value,i.value,f.el);if(!(nP(d.value,f.el)<=I||Math.abs(M-W)<16)){if(d.value&&i.value&&f.el){const{scrollWidth:he,offsetWidth:oe}=f.el;M=he-oe-M}d.value?v.horizontal(M,y.value):v(M,y.value)}}function P(M){const{scrollTop:I,scrollLeft:W}=M.target;l.value=d.value?W:I}function E(M){if(w.value=!0,!(!s.value||!m.el)){for(const I of M.composedPath())for(const W of m.el.children)if(W===I){x(W);return}}}function A(M){w.value=!1}let D=!1;function T(M){var I;!D&&!w.value&&!(M.relatedTarget&&((I=m.el)!=null&&I.contains(M.relatedTarget)))&&V(),D=!1}function O(){D=!0}function N(M){if(!m.el)return;function I(W){M.preventDefault(),V(W)}d.value?M.key==="ArrowRight"?I(i.value?"prev":"next"):M.key==="ArrowLeft"&&I(i.value?"next":"prev"):M.key==="ArrowDown"?I("next"):M.key==="ArrowUp"&&I("prev"),M.key==="Home"?I("first"):M.key==="End"&&I("last")}function V(M){var W,te;if(!m.el)return;let I;if(!M)I=Yg(m.el)[0];else if(M==="next"){if(I=(W=m.el.querySelector(":focus"))==null?void 0:W.nextElementSibling,!I)return V("first")}else if(M==="prev"){if(I=(te=m.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!I)return V("last")}else M==="first"?I=m.el.firstElementChild:M==="last"&&(I=m.el.lastElementChild);I&&I.focus({preventScroll:!0})}function j(M){const I=d.value&&i.value?-1:1,W=(M==="prev"?-I:I)*u.value;let te=l.value+W;if(d.value&&i.value&&f.el){const{scrollWidth:he,offsetWidth:oe}=f.el;te+=he-oe}k(te)}const q=B(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),ne=B(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!a.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return a.value||s.value||Math.abs(l.value)>0;default:return!a.value&&(s.value||Math.abs(l.value)>0)}}),ae=B(()=>Math.abs(l.value)>1),Y=B(()=>{if(!f.value)return!1;const M=nP(d.value,f.el),I=Yne(d.value,f.el);return M-I-Math.abs(l.value)>1});return We(()=>C(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":ne.value,"v-slide-group--is-overflowing":s.value},r.value,e.class],style:e.style,tabindex:w.value||o.selected.value.length?-1:0,onFocus:T},{default:()=>{var M,I,W;return[ne.value&&C("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!ae.value}],onMousedown:O,onClick:()=>ae.value&&j("prev")},[((M=n.prev)==null?void 0:M.call(n,q.value))??C(Zg,null,{default:()=>[C(ut,{icon:i.value?e.nextIcon:e.prevIcon},null)]})]),C("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:P},[C("div",{ref:m,class:"v-slide-group__content",onFocusin:E,onFocusout:A,onKeydown:N},[(I=n.default)==null?void 0:I.call(n,q.value)])]),ne.value&&C("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Y.value}],onMousedown:O,onClick:()=>Y.value&&j("next")},[((W=n.next)==null?void 0:W.call(n,q.value))??C(Zg,null,{default:()=>[C(ut,{icon:i.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:j,scrollOffset:l,focus:V,hasPrev:ae,hasNext:Y}}}),nL=Symbol.for("vuetify:v-chip-group"),Wne=Oe({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:tu},...Tx(),...ct(),...oh({selectedClass:"v-chip--selected"}),...Vt(),...fn(),...bs({variant:"tonal"})},"VChipGroup"),Gne=ze()({name:"VChipGroup",props:Wne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{isSelected:r,select:a,next:o,prev:s,selected:l}=bd(e,nL);return Si({VChip:{color:Fe(e,"color"),disabled:Fe(e,"disabled"),filter:Fe(e,"filter"),variant:Fe(e,"variant")}}),We(()=>{const u=e1.filterProps(e);return C(e1,Me(u,{class:["v-chip-group",{"v-chip-group--column":e.column},i.value,e.class],style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:r,select:a,next:o,prev:s,selected:l.value})]}})}),{}}}),Kne=Oe({activeClass:String,appendAvatar:String,appendIcon:_t,closable:Boolean,closeIcon:{type:_t,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:_t,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:_t,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Xr(),onClickOnce:Xr(),...mo(),...ct(),...Mr(),...Cr(),...sh(),...pi(),...H1(),...ru(),...Vt({tag:"span"}),...fn(),...bs({variant:"tonal"})},"VChip"),ma=ze()({name:"VChip",directives:{Ripple:dc},props:Kne(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{t:a}=ki(),{borderClasses:o}=Wo(e),{colorClasses:s,colorStyles:l,variantClasses:u}=ah(e),{densityClasses:c}=Da(e),{elevationClasses:d}=ta(e),{roundedClasses:f}=Ti(e),{sizeClasses:h}=gm(e),{themeClasses:m}=Pn(e),g=vt(e,"modelValue"),v=lh(e,nL,!1),y=U1(e,n),_=B(()=>e.link!==!1&&y.isLink.value),S=B(()=>!e.disabled&&e.link!==!1&&(!!v||e.link||y.isClickable.value)),w=B(()=>({"aria-label":a(e.closeLabel),onClick(P){P.preventDefault(),P.stopPropagation(),g.value=!1,i("click:close",P)}}));function x(P){var E;i("click",P),S.value&&((E=y.navigate)==null||E.call(y,P),v==null||v.toggle())}function k(P){(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),x(P))}return()=>{var j;const P=y.isLink.value?"a":e.tag,E=!!(e.appendIcon||e.appendAvatar),A=!!(E||r.append),D=!!(r.close||e.closable),T=!!(r.filter||e.filter)&&v,O=!!(e.prependIcon||e.prependAvatar),N=!!(O||r.prepend),V=!v||v.isSelected.value;return g.value&&xt(C(P,Me({class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":S.value,"v-chip--filter":T,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&((j=y.isActive)==null?void 0:j.value)},m.value,o.value,V?s.value:void 0,c.value,d.value,f.value,h.value,u.value,v==null?void 0:v.selectedClass.value,e.class],style:[V?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:S.value?0:void 0,onClick:x,onKeydown:S.value&&!_.value&&k},y.linkProps),{default:()=>{var q;return[_d(S.value,"v-chip"),T&&C(Sx,{key:"filter"},{default:()=>[xt(C("div",{class:"v-chip__filter"},[r.filter?C(Yt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},r.filter):C(ut,{key:"filter-icon",icon:e.filterIcon},null)]),[[hn,v.isSelected.value]])]}),N&&C("div",{key:"prepend",class:"v-chip__prepend"},[r.prepend?C(Yt,{key:"prepend-defaults",disabled:!O,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},r.prepend):C(Ue,null,[e.prependIcon&&C(ut,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&C(Ui,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),C("div",{class:"v-chip__content","data-no-activator":""},[((q=r.default)==null?void 0:q.call(r,{isSelected:v==null?void 0:v.isSelected.value,selectedClass:v==null?void 0:v.selectedClass.value,select:v==null?void 0:v.select,toggle:v==null?void 0:v.toggle,value:v==null?void 0:v.value.value,disabled:e.disabled}))??e.text]),A&&C("div",{key:"append",class:"v-chip__append"},[r.append?C(Yt,{key:"append-defaults",disabled:!E,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},r.append):C(Ue,null,[e.appendIcon&&C(ut,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&C(Ui,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),D&&C("button",Me({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},w.value),[r.close?C(Yt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},r.close):C(ut,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[po("ripple"),S.value&&e.ripple,null]])}}});const J5=Symbol.for("vuetify:list");function iL(){const e=kt(J5,{hasPrepend:it(!1),updateHasPrepend:()=>null}),t={hasPrepend:it(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return an(J5,t),e}function rL(){return kt(J5,null)}const Px=e=>{const t={activate:n=>{let{id:i,value:r,activated:a}=n;return i=$t(i),e&&!r&&a.size===1&&a.has(i)||(r?a.add(i):a.delete(i)),a},in:(n,i,r)=>{let a=new Set;if(n!=null)for(const o of hi(n))a=t.activate({id:o,value:!0,activated:new Set(a),children:i,parents:r});return a},out:n=>Array.from(n)};return t},aL=e=>{const t=Px(e);return{activate:i=>{let{activated:r,id:a,...o}=i;a=$t(a);const s=r.has(a)?new Set([a]):new Set;return t.activate({...o,id:a,activated:s})},in:(i,r,a)=>{let o=new Set;if(i!=null){const s=hi(i);s.length&&(o=t.in(s.slice(0,1),r,a))}return o},out:(i,r,a)=>t.out(i,r,a)}},Zne=e=>{const t=Px(e);return{activate:i=>{let{id:r,activated:a,children:o,...s}=i;return r=$t(r),o.has(r)?a:t.activate({id:r,activated:a,children:o,...s})},in:t.in,out:t.out}},Xne=e=>{const t=aL(e);return{activate:i=>{let{id:r,activated:a,children:o,...s}=i;return r=$t(r),o.has(r)?a:t.activate({id:r,activated:a,children:o,...s})},in:t.in,out:t.out}},Jne={open:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(n){const a=new Set;a.add(t);let o=r.get(t);for(;o!=null;)a.add(o),o=r.get(o);return a}else return i.delete(t),i},select:()=>null},oL={open:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(n){let a=r.get(t);for(i.add(t);a!=null&&a!==t;)i.add(a),a=r.get(a);return i}else i.delete(t);return i},select:()=>null},Qne={open:oL.open,select:e=>{let{id:t,value:n,opened:i,parents:r}=e;if(!n)return i;const a=[];let o=r.get(t);for(;o!=null;)a.push(o),o=r.get(o);return new Set(a)}},$x=e=>{const t={select:n=>{let{id:i,value:r,selected:a}=n;if(i=$t(i),e&&!r){const o=Array.from(a.entries()).reduce((s,l)=>{let[u,c]=l;return c==="on"&&s.push(u),s},[]);if(o.length===1&&o[0]===i)return a}return a.set(i,r?"on":"off"),a},in:(n,i,r)=>{let a=new Map;for(const o of n||[])a=t.select({id:o,value:!0,selected:new Map(a),children:i,parents:r});return a},out:n=>{const i=[];for(const[r,a]of n.entries())a==="on"&&i.push(r);return i}};return t},sL=e=>{const t=$x(e);return{select:i=>{let{selected:r,id:a,...o}=i;a=$t(a);const s=r.has(a)?new Map([[a,r.get(a)]]):new Map;return t.select({...o,id:a,selected:s})},in:(i,r,a)=>{let o=new Map;return i!=null&&i.length&&(o=t.in(i.slice(0,1),r,a)),o},out:(i,r,a)=>t.out(i,r,a)}},eie=e=>{const t=$x(e);return{select:i=>{let{id:r,selected:a,children:o,...s}=i;return r=$t(r),o.has(r)?a:t.select({id:r,selected:a,children:o,...s})},in:t.in,out:t.out}},tie=e=>{const t=sL(e);return{select:i=>{let{id:r,selected:a,children:o,...s}=i;return r=$t(r),o.has(r)?a:t.select({id:r,selected:a,children:o,...s})},in:t.in,out:t.out}},nie=e=>{const t={select:n=>{let{id:i,value:r,selected:a,children:o,parents:s}=n;i=$t(i);const l=new Map(a),u=[i];for(;u.length;){const d=u.shift();a.set($t(d),r?"on":"off"),o.has(d)&&u.push(...o.get(d))}let c=$t(s.get(i));for(;c;){const d=o.get(c),f=d.every(m=>a.get($t(m))==="on"),h=d.every(m=>!a.has($t(m))||a.get($t(m))==="off");a.set(c,f?"on":h?"off":"indeterminate"),c=$t(s.get(c))}return e&&!r&&Array.from(a.entries()).reduce((f,h)=>{let[m,g]=h;return g==="on"&&f.push(m),f},[]).length===0?l:a},in:(n,i,r)=>{let a=new Map;for(const o of n||[])a=t.select({id:o,value:!0,selected:new Map(a),children:i,parents:r});return a},out:(n,i)=>{const r=[];for(const[a,o]of n.entries())o==="on"&&!i.has(a)&&r.push(a);return r}};return t},t1=Symbol.for("vuetify:nested"),lL={id:it(),root:{register:()=>null,unregister:()=>null,parents:z(new Map),children:z(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:z(!1),selectable:z(!1),opened:z(new Set),activated:z(new Set),selected:z(new Map),selectedValues:z([]),getPath:()=>[]}},iie=Oe({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),rie=e=>{let t=!1;const n=z(new Map),i=z(new Map),r=vt(e,"opened",e.opened,m=>new Set(m),m=>[...m.values()]),a=B(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Zne(e.mandatory);case"single-leaf":return Xne(e.mandatory);case"independent":return Px(e.mandatory);case"single-independent":default:return aL(e.mandatory)}}),o=B(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return tie(e.mandatory);case"leaf":return eie(e.mandatory);case"independent":return $x(e.mandatory);case"single-independent":return sL(e.mandatory);case"classic":default:return nie(e.mandatory)}}),s=B(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Qne;case"single":return Jne;case"multiple":default:return oL}}),l=vt(e,"activated",e.activated,m=>a.value.in(m,n.value,i.value),m=>a.value.out(m,n.value,i.value)),u=vt(e,"selected",e.selected,m=>o.value.in(m,n.value,i.value),m=>o.value.out(m,n.value,i.value));Ci(()=>{t=!0});function c(m){const g=[];let v=m;for(;v!=null;)g.unshift(v),v=i.value.get(v);return g}const d=xi("nested"),f=new Set,h={id:it(),root:{opened:r,activatable:Fe(e,"activatable"),selectable:Fe(e,"selectable"),activated:l,selected:u,selectedValues:B(()=>{const m=[];for(const[g,v]of u.value.entries())v==="on"&&m.push(g);return m}),register:(m,g,v)=>{if(f.has(m)){c(m).map(String).join(" -> "),c(g).concat(m).map(String).join(" -> ");return}else f.add(m);g&&m!==g&&i.value.set(m,g),v&&n.value.set(m,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],m])},unregister:m=>{if(t)return;f.delete(m),n.value.delete(m);const g=i.value.get(m);if(g){const v=n.value.get(g)??[];n.value.set(g,v.filter(y=>y!==m))}i.value.delete(m)},open:(m,g,v)=>{d.emit("click:open",{id:m,value:g,path:c(m),event:v});const y=s.value.open({id:m,value:g,opened:new Set(r.value),children:n.value,parents:i.value,event:v});y&&(r.value=y)},openOnSelect:(m,g,v)=>{const y=s.value.select({id:m,value:g,selected:new Map(u.value),opened:new Set(r.value),children:n.value,parents:i.value,event:v});y&&(r.value=y)},select:(m,g,v)=>{d.emit("click:select",{id:m,value:g,path:c(m),event:v});const y=o.value.select({id:m,value:g,selected:new Map(u.value),children:n.value,parents:i.value,event:v});y&&(u.value=y),h.root.openOnSelect(m,g,v)},activate:(m,g,v)=>{if(!e.activatable)return h.root.select(m,!0,v);d.emit("click:activate",{id:m,value:g,path:c(m),event:v});const y=a.value.activate({id:m,value:g,activated:new Set(l.value),children:n.value,parents:i.value,event:v});y&&(l.value=y)},children:n,parents:i,getPath:c}};return an(t1,h),h.root},uL=(e,t)=>{const n=kt(t1,lL),i=Symbol(ea()),r=B(()=>e.value!==void 0?e.value:i),a={...n,id:r,open:(o,s)=>n.root.open(r.value,o,s),openOnSelect:(o,s)=>n.root.openOnSelect(r.value,o,s),isOpen:B(()=>n.root.opened.value.has(r.value)),parent:B(()=>n.root.parents.value.get(r.value)),activate:(o,s)=>n.root.activate(r.value,o,s),isActivated:B(()=>n.root.activated.value.has($t(r.value))),select:(o,s)=>n.root.select(r.value,o,s),isSelected:B(()=>n.root.selected.value.get($t(r.value))==="on"),isIndeterminate:B(()=>n.root.selected.value.get(r.value)==="indeterminate"),isLeaf:B(()=>!n.root.children.value.get(r.value)),isGroupActivator:n.isGroupActivator};return th(()=>{!n.isGroupActivator&&n.root.register(r.value,n.id.value,t)}),Ci(()=>{!n.isGroupActivator&&n.root.unregister(r.value)}),t&&an(t1,a),a},aie=()=>{const e=kt(t1,lL);an(t1,{...e,isGroupActivator:!0})},oie=qo({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return aie(),()=>{var i;return(i=n.default)==null?void 0:i.call(n)}}}),sie=Oe({activeColor:String,baseColor:String,color:String,collapseIcon:{type:_t,default:"$collapse"},expandIcon:{type:_t,default:"$expand"},prependIcon:_t,appendIcon:_t,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...Vt()},"VListGroup"),Q5=ze()({name:"VListGroup",props:sie(),setup(e,t){let{slots:n}=t;const{isOpen:i,open:r,id:a}=uL(Fe(e,"value"),!0),o=B(()=>`v-list-group--id-${String(a.value)}`),s=rL(),{isBooted:l}=rh();function u(h){h.stopPropagation(),r(!i.value,h)}const c=B(()=>({onClick:u,class:"v-list-group__header",id:o.value})),d=B(()=>i.value?e.collapseIcon:e.expandIcon),f=B(()=>({VListItem:{active:i.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return We(()=>C(e.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":i.value},e.class],style:e.style},{default:()=>[n.activator&&C(Yt,{defaults:f.value},{default:()=>[C(oie,null,{default:()=>[n.activator({props:c.value,isOpen:i.value})]})]}),C(Aa,{transition:{component:Yu},disabled:!l.value},{default:()=>{var h;return[xt(C("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(h=n.default)==null?void 0:h.call(n)]),[[hn,i.value]])]}})]})),{isOpen:i}}});const lie=Oe({opacity:[Number,String],...ct(),...Vt()},"VListItemSubtitle"),cL=ze()({name:"VListItemSubtitle",props:lie(),setup(e,t){let{slots:n}=t;return We(()=>C(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),ha=iu("v-list-item-title"),uie=Oe({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:_t,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:_t,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Xr(),onClickOnce:Xr(),...mo(),...ct(),...Mr(),...rr(),...Cr(),...pi(),...H1(),...Vt(),...fn(),...bs({variant:"text"})},"VListItem"),fi=ze()({name:"VListItem",directives:{Ripple:dc},props:uie(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:i,emit:r}=t;const a=U1(e,n),o=B(()=>e.value===void 0?a.href.value:e.value),{activate:s,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:f,isGroupActivator:h,root:m,parent:g,openOnSelect:v,id:y}=uL(o,!1),_=rL(),S=B(()=>{var he;return e.active!==!1&&(e.active||((he=a.isActive)==null?void 0:he.value)||(m.activatable.value?l.value:d.value))}),w=B(()=>e.link!==!1&&a.isLink.value),x=B(()=>!!_&&(m.selectable.value||m.activatable.value||e.value!=null)),k=B(()=>!e.disabled&&e.link!==!1&&(e.link||a.isClickable.value||x.value)),P=B(()=>e.rounded||e.nav),E=B(()=>e.color??e.activeColor),A=B(()=>({color:S.value?E.value??e.baseColor:e.baseColor,variant:e.variant}));Ve(()=>{var he;return(he=a.isActive)==null?void 0:he.value},he=>{he&&D()}),th(()=>{var he;(he=a.isActive)!=null&&he.value&&D()});function D(){g.value!=null&&m.open(g.value,!0),v(!0)}const{themeClasses:T}=Pn(e),{borderClasses:O}=Wo(e),{colorClasses:N,colorStyles:V,variantClasses:j}=ah(A),{densityClasses:q}=Da(e),{dimensionStyles:ne}=ar(e),{elevationClasses:ae}=ta(e),{roundedClasses:Y}=Ti(P),M=B(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),I=B(()=>({isActive:S.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:f.value}));function W(he){var oe;r("click",he),k.value&&((oe=a.navigate)==null||oe.call(a,he),!h&&(m.activatable.value?s(!l.value,he):(m.selectable.value||e.value!=null)&&u(!d.value,he)))}function te(he){(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),he.target.dispatchEvent(new MouseEvent("click",he)))}return We(()=>{const he=w.value?"a":e.tag,oe=i.title||e.title!=null,U=i.subtitle||e.subtitle!=null,ee=!!(e.appendAvatar||e.appendIcon),re=!!(ee||i.append),ue=!!(e.prependAvatar||e.prependIcon),pe=!!(ue||i.prepend);return _==null||_.updateHasPrepend(pe),e.activeColor&&ete("active-color",["color","base-color"]),xt(C(he,Me({class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":e.disabled,"v-list-item--link":k.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!pe&&(_==null?void 0:_.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&S.value},T.value,O.value,N.value,q.value,ae.value,M.value,Y.value,j.value,e.class],style:[V.value,ne.value,e.style],tabindex:k.value?_?-2:0:void 0,"aria-selected":x.value?m.activatable.value?l.value:m.selectable.value?d.value:S.value:void 0,onClick:W,onKeydown:k.value&&!w.value&&te},a.linkProps),{default:()=>{var ge;return[_d(k.value||S.value,"v-list-item"),pe&&C("div",{key:"prepend",class:"v-list-item__prepend"},[i.prepend?C(Yt,{key:"prepend-defaults",disabled:!ue,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Te;return[(Te=i.prepend)==null?void 0:Te.call(i,I.value)]}}):C(Ue,null,[e.prependAvatar&&C(Ui,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&C(ut,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),C("div",{class:"v-list-item__spacer"},null)]),C("div",{class:"v-list-item__content","data-no-activator":""},[oe&&C(ha,{key:"title"},{default:()=>{var Te;return[((Te=i.title)==null?void 0:Te.call(i,{title:e.title}))??e.title]}}),U&&C(cL,{key:"subtitle"},{default:()=>{var Te;return[((Te=i.subtitle)==null?void 0:Te.call(i,{subtitle:e.subtitle}))??e.subtitle]}}),(ge=i.default)==null?void 0:ge.call(i,I.value)]),re&&C("div",{key:"append",class:"v-list-item__append"},[i.append?C(Yt,{key:"append-defaults",disabled:!ee,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Te;return[(Te=i.append)==null?void 0:Te.call(i,I.value)]}}):C(Ue,null,[e.appendIcon&&C(ut,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&C(Ui,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),C("div",{class:"v-list-item__spacer"},null)])]}}),[[po("ripple"),k.value&&e.ripple]])}),{activate:s,isActivated:l,isGroupActivator:h,isSelected:d,list:_,select:u,root:m,id:y}}}),cie=Oe({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...Vt()},"VListSubheader"),dL=ze()({name:"VListSubheader",props:cie(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:r}=_a(Fe(e,"color"));return We(()=>{const a=!!(n.default||e.title);return C(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},i.value,e.class],style:[{textColorStyles:r},e.style]},{default:()=>{var o;return[a&&C("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}});const die=Oe({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ct(),...fn()},"VDivider"),jn=ze()({name:"VDivider",props:die(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=Pn(e),{textColorClasses:a,textColorStyles:o}=_a(Fe(e,"color")),s=B(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=st(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=st(e.thickness)),l});return We(()=>{const l=C("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,a.value,e.class],style:[s.value,o.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return i.default?C("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,C("div",{class:"v-divider__content"},[i.default()]),l]):l}),{}}}),fie=Oe({items:Array,returnObject:Boolean},"VListChildren"),fL=ze()({name:"VListChildren",props:fie(),setup(e,t){let{slots:n}=t;return iL(),()=>{var i,r;return((i=n.default)==null?void 0:i.call(n))??((r=e.items)==null?void 0:r.map(a=>{var f,h;let{children:o,props:s,type:l,raw:u}=a;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:s}))??C(jn,s,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:s}))??C(dL,s,null);const c={subtitle:n.subtitle?m=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...m,item:u})}:void 0,prepend:n.prepend?m=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...m,item:u})}:void 0,append:n.append?m=>{var g;return(g=n.append)==null?void 0:g.call(n,{...m,item:u})}:void 0,title:n.title?m=>{var g;return(g=n.title)==null?void 0:g.call(n,{...m,item:u})}:void 0},d=Q5.filterProps(s);return o?C(Q5,Me({value:s==null?void 0:s.value},d),{activator:m=>{let{props:g}=m;const v={...s,...g,value:e.returnObject?u:s.value};return n.header?n.header({props:v}):C(fi,v,c)},default:()=>C(fL,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:s}):C(fi,Me(s,{value:e.returnObject?u:s.value}),c)}))}}}),hL=Oe({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:tu}},"list-items");function Bc(e,t){const n=vr(t,e.itemTitle,t),i=vr(t,e.itemValue,n),r=vr(t,e.itemChildren),a=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Li(t,["children"]):t:void 0:vr(t,e.itemProps),o={title:n,value:i,...a};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(r)?pL(e,r):void 0,raw:t}}function pL(e,t){const n=[];for(const i of t)n.push(Bc(e,i));return n}function Ax(e){const t=B(()=>pL(e,e.items)),n=B(()=>t.value.some(a=>a.value===null));function i(a){return n.value||(a=a.filter(o=>o!==null)),a.map(o=>e.returnObject&&typeof o=="string"?Bc(e,o):t.value.find(s=>e.valueComparator(o,s.value))||Bc(e,o))}function r(a){return e.returnObject?a.map(o=>{let{raw:s}=o;return s}):a.map(o=>{let{value:s}=o;return s})}return{items:t,transformIn:i,transformOut:r}}function hie(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function pie(e,t){const n=vr(t,e.itemType,"item"),i=hie(t)?t:vr(t,e.itemTitle),r=vr(t,e.itemValue,void 0),a=vr(t,e.itemChildren),o=e.itemProps===!0?Li(t,["children"]):vr(t,e.itemProps),s={title:i,value:r,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&a?mL(e,a):void 0,raw:t}}function mL(e,t){const n=[];for(const i of t)n.push(pie(e,i));return n}function mie(e){return{items:B(()=>mL(e,e.items))}}const vie=Oe({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:_t,collapseIcon:_t,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Xr(),"onClick:select":Xr(),"onUpdate:opened":Xr(),...iie({selectStrategy:"single-leaf",openStrategy:"list"}),...mo(),...ct(),...Mr(),...rr(),...Cr(),itemType:{type:String,default:"type"},...hL(),...pi(),...Vt(),...fn(),...bs({variant:"text"})},"VList"),rl=ze()({name:"VList",props:vie(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:i}=mie(e),{themeClasses:r}=Pn(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Rn(Fe(e,"bgColor")),{borderClasses:s}=Wo(e),{densityClasses:l}=Da(e),{dimensionStyles:u}=ar(e),{elevationClasses:c}=ta(e),{roundedClasses:d}=Ti(e),{children:f,open:h,parents:m,select:g,getPath:v}=rie(e),y=B(()=>e.lines?`v-list--${e.lines}-line`:void 0),_=Fe(e,"activeColor"),S=Fe(e,"baseColor"),w=Fe(e,"color");iL(),Si({VListGroup:{activeColor:_,baseColor:S,color:w,expandIcon:Fe(e,"expandIcon"),collapseIcon:Fe(e,"collapseIcon")},VListItem:{activeClass:Fe(e,"activeClass"),activeColor:_,baseColor:S,color:w,density:Fe(e,"density"),disabled:Fe(e,"disabled"),lines:Fe(e,"lines"),nav:Fe(e,"nav"),slim:Fe(e,"slim"),variant:Fe(e,"variant")}});const x=it(!1),k=z();function P(N){x.value=!0}function E(N){x.value=!1}function A(N){var V;!x.value&&!(N.relatedTarget&&((V=k.value)!=null&&V.contains(N.relatedTarget)))&&O()}function D(N){const V=N.target;if(!(!k.value||["INPUT","TEXTAREA"].includes(V.tagName))){if(N.key==="ArrowDown")O("next");else if(N.key==="ArrowUp")O("prev");else if(N.key==="Home")O("first");else if(N.key==="End")O("last");else return;N.preventDefault()}}function T(N){x.value=!0}function O(N){if(k.value)return $f(k.value,N)}return We(()=>C(e.tag,{ref:k,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},r.value,a.value,s.value,l.value,c.value,y.value,d.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||x.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:P,onFocusout:E,onFocus:A,onKeydown:D,onMousedown:T},{default:()=>[C(fL,{items:i.value,returnObject:e.returnObject},n)]})),{open:h,select:g,focus:O,children:f,parents:m,getPath:v}}}),gie=iu("v-list-img"),yie=Oe({start:Boolean,end:Boolean,...ct(),...Vt()},"VListItemAction"),_ie=ze()({name:"VListItemAction",props:yie(),setup(e,t){let{slots:n}=t;return We(()=>C(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),bie=Oe({start:Boolean,end:Boolean,...ct(),...Vt()},"VListItemMedia"),wie=ze()({name:"VListItemMedia",props:bie(),setup(e,t){let{slots:n}=t;return We(()=>C(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function P3(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Sie(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iP(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:i}=e,r=i==="left"?0:i==="center"?t.width/2:i==="right"?t.width:i,a=n==="top"?0:n==="bottom"?t.height:n;return P3({x:r,y:a},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:i}=e,r=n==="left"?0:n==="right"?t.width:n,a=i==="top"?0:i==="center"?t.height/2:i==="bottom"?t.height:i;return P3({x:r,y:a},t)}return P3({x:t.width/2,y:t.height/2},t)}const vL={static:xie,connected:Tie},Cie=Oe({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in vL},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Eie(e,t){const n=z({}),i=z();En&&Xa(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var o,s;Ve(()=>e.locationStrategy,a),Qr(()=>{window.removeEventListener("resize",r),i.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof e.locationStrategy=="function"?i.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:i.value=(s=vL[e.locationStrategy](t,e,n))==null?void 0:s.updateLocation});function r(a){var o;(o=i.value)==null||o.call(i,a)}return{contentStyles:n,updateLocation:i}}function xie(){}function kie(e,t){const n=dx(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Tie(e,t,n){(Array.isArray(e.target.value)||wte(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:a}=ux(()=>{const m=B5(t.location,e.isRtl.value),g=t.origin==="overlap"?m:t.origin==="auto"?C3(m):B5(t.origin,e.isRtl.value);return m.side===g.side&&m.align===E3(g).align?{preferredAnchor:T6(m),preferredOrigin:T6(g)}:{preferredAnchor:m,preferredOrigin:g}}),[o,s,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>B(()=>{const g=parseFloat(t[m]);return isNaN(g)?1/0:g})),c=B(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const m=t.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});Ve([e.target,e.contentEl],(m,g)=>{let[v,y]=m,[_,S]=g;_&&!Array.isArray(_)&&f.unobserve(_),v&&!Array.isArray(v)&&f.observe(v),S&&f.unobserve(S),y&&f.observe(y)},{immediate:!0}),Qr(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;const m=eM(e.target.value),g=kie(e.contentEl.value,e.isRtl.value),v=q_(e.contentEl.value),y=12;v.length||(v.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const _=v.reduce((T,O)=>{const N=O.getBoundingClientRect(),V=new Af({x:O===document.documentElement?0:N.x,y:O===document.documentElement?0:N.y,width:O.clientWidth,height:O.clientHeight});return T?new Af({x:Math.max(T.left,V.left),y:Math.max(T.top,V.top),width:Math.min(T.right,V.right)-Math.max(T.left,V.left),height:Math.min(T.bottom,V.bottom)-Math.max(T.top,V.top)}):V},void 0);_.x+=y,_.y+=y,_.width-=y*2,_.height-=y*2;let S={anchor:r.value,origin:a.value};function w(T){const O=new Af(g),N=iP(T.anchor,m),V=iP(T.origin,O);let{x:j,y:q}=Sie(N,V);switch(T.anchor.side){case"top":q-=c.value[0];break;case"bottom":q+=c.value[0];break;case"left":j-=c.value[0];break;case"right":j+=c.value[0];break}switch(T.anchor.align){case"top":q-=c.value[1];break;case"bottom":q+=c.value[1];break;case"left":j-=c.value[1];break;case"right":j+=c.value[1];break}return O.x+=j,O.y+=q,O.width=Math.min(O.width,l.value),O.height=Math.min(O.height,u.value),{overflows:$6(O,_),x:j,y:q}}let x=0,k=0;const P={x:0,y:0},E={x:!1,y:!1};let A=-1;for(;!(A++>10);){const{x:T,y:O,overflows:N}=w(S);x+=T,k+=O,g.x+=T,g.y+=O;{const V=P6(S.anchor),j=N.x.before||N.x.after,q=N.y.before||N.y.after;let ne=!1;if(["x","y"].forEach(ae=>{if(ae==="x"&&j&&!E.x||ae==="y"&&q&&!E.y){const Y={anchor:{...S.anchor},origin:{...S.origin}},M=ae==="x"?V==="y"?E3:C3:V==="y"?C3:E3;Y.anchor=M(Y.anchor),Y.origin=M(Y.origin);const{overflows:I}=w(Y);(I[ae].before<=N[ae].before&&I[ae].after<=N[ae].after||I[ae].before+I[ae].after<(N[ae].before+N[ae].after)/2)&&(S=Y,ne=E[ae]=!0)}}),ne)continue}N.x.before&&(x+=N.x.before,g.x+=N.x.before),N.x.after&&(x-=N.x.after,g.x-=N.x.after),N.y.before&&(k+=N.y.before,g.y+=N.y.before),N.y.after&&(k-=N.y.after,g.y-=N.y.after);{const V=$6(g,_);P.x=_.width-V.x.before-V.x.after,P.y=_.height-V.y.before-V.y.after,x+=V.x.before,g.x+=V.x.before,k+=V.y.before,g.y+=V.y.before}break}const D=P6(S.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${S.anchor.side} ${S.anchor.align}`,transformOrigin:`${S.origin.side} ${S.origin.align}`,top:st($3(k)),left:e.isRtl.value?void 0:st($3(x)),right:e.isRtl.value?st($3(-x)):void 0,minWidth:st(D==="y"?Math.min(o.value,m.width):o.value),maxWidth:st(rP(qi(P.x,o.value===1/0?0:o.value,l.value))),maxHeight:st(rP(qi(P.y,s.value===1/0?0:s.value,u.value)))}),{available:P,contentBox:g}}return Ve(()=>[r.value,a.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>h()),Pt(()=>{const m=h();if(!m)return;const{available:g,contentBox:v}=m;v.height>g.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function $3(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function rP(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let eC=!0;const W_=[];function Pie(e){!eC||W_.length?(W_.push(e),tC()):(eC=!1,e(),tC())}let aP=-1;function tC(){cancelAnimationFrame(aP),aP=requestAnimationFrame(()=>{const e=W_.shift();e&&e(),W_.length?tC():eC=!0})}const Z0={none:null,close:Oie,block:Die,reposition:Iie},$ie=Oe({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Z0}},"VOverlay-scroll-strategies");function Aie(e,t){if(!En)return;let n;Wi(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=pm(),await new Promise(i=>setTimeout(i)),n.active&&n.run(()=>{var i;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(i=Z0[e.scrollStrategy])==null||i.call(Z0,t,e,n)}))}),Qr(()=>{n==null||n.stop()})}function Oie(e){function t(n){e.isActive.value=!1}gL(e.targetEl.value??e.contentEl.value,t)}function Die(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,i=[...new Set([...q_(e.targetEl.value,t.contained?n:void 0),...q_(e.contentEl.value,t.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,a=(s=>vx(s)&&s)(n||document.documentElement);a&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",st(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",st(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",st(r)),s.classList.add("v-overlay-scroll-blocked")}),Qr(()=>{i.forEach((s,l)=>{const u=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(s.style.getPropertyValue("--v-body-scroll-y")),d=s.style.scrollBehavior;s.style.scrollBehavior="auto",s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-u,s.scrollTop=-c,s.style.scrollBehavior=d}),a&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Iie(e,t,n){let i=!1,r=-1,a=-1;function o(s){Pie(()=>{var c,d;const l=performance.now();(d=(c=e.updateLocation).value)==null||d.call(c,s),i=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{gL(e.targetEl.value??e.contentEl.value,s=>{i?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),Qr(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(r)})}function gL(e,t){const n=[document,...q_(e)];n.forEach(i=>{i.addEventListener("scroll",t,{passive:!0})}),Qr(()=>{n.forEach(i=>{i.removeEventListener("scroll",t)})})}const nC=Symbol.for("vuetify:v-menu"),Ox=Oe({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Dx(e,t){let n=()=>{};function i(o){n==null||n();const s=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=jee(s,()=>{t==null||t(o),l(o)})})}function r(){return i(!0)}function a(){return i(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:a}}const Nie=Oe({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Ox()},"VOverlay-activator");function Mie(e,t){let{isActive:n,isTop:i,contentEl:r}=t;const a=xi("useActivator"),o=z();let s=!1,l=!1,u=!0;const c=B(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=B(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:f,runCloseDelay:h}=Dx(e,E=>{E===(e.openOnHover&&s||c.value&&l)&&!(e.openOnHover&&n.value&&!i.value)&&(n.value!==E&&(u=!0),n.value=E)}),m=z(),g={onClick:E=>{E.stopPropagation(),o.value=E.currentTarget||E.target,n.value||(m.value=[E.clientX,E.clientY]),n.value=!n.value},onMouseenter:E=>{var A;(A=E.sourceCapabilities)!=null&&A.firesTouchEvents||(s=!0,o.value=E.currentTarget||E.target,f())},onMouseleave:E=>{s=!1,h()},onFocus:E=>{jp(E.target,":focus-visible")!==!1&&(l=!0,E.stopPropagation(),o.value=E.currentTarget||E.target,f())},onBlur:E=>{l=!1,E.stopPropagation(),h()}},v=B(()=>{const E={};return d.value&&(E.onClick=g.onClick),e.openOnHover&&(E.onMouseenter=g.onMouseenter,E.onMouseleave=g.onMouseleave),c.value&&(E.onFocus=g.onFocus,E.onBlur=g.onBlur),E}),y=B(()=>{const E={};if(e.openOnHover&&(E.onMouseenter=()=>{s=!0,f()},E.onMouseleave=()=>{s=!1,h()}),c.value&&(E.onFocusin=()=>{l=!0,f()},E.onFocusout=()=>{l=!1,h()}),e.closeOnContentClick){const A=kt(nC,null);E.onClick=()=>{n.value=!1,A==null||A.closeParents()}}return E}),_=B(()=>{const E={};return e.openOnHover&&(E.onMouseenter=()=>{u&&(s=!0,u=!1,f())},E.onMouseleave=()=>{s=!1,h()}),E});Ve(i,E=>{var A;E&&(e.openOnHover&&!s&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!s))&&!((A=r.value)!=null&&A.contains(document.activeElement))&&(n.value=!1)}),Ve(n,E=>{E||setTimeout(()=>{m.value=void 0})},{flush:"post"});const S=j_();Wi(()=>{S.value&&Pt(()=>{o.value=S.el})});const w=j_(),x=B(()=>e.target==="cursor"&&m.value?m.value:w.value?w.el:yL(e.target,a)||o.value),k=B(()=>Array.isArray(x.value)?void 0:x.value);let P;return Ve(()=>!!e.activator,E=>{E&&En?(P=pm(),P.run(()=>{Lie(e,a,{activatorEl:o,activatorEvents:v})})):P&&P.stop()},{flush:"post",immediate:!0}),Qr(()=>{P==null||P.stop()}),{activatorEl:o,activatorRef:S,target:x,targetEl:k,targetRef:w,activatorEvents:v,contentEvents:y,scrimEvents:_}}function Lie(e,t,n){let{activatorEl:i,activatorEvents:r}=n;Ve(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=s(u);c&&o(c)}l&&Pt(()=>a())},{immediate:!0}),Ve(()=>e.activatorProps,()=>{a()}),Qr(()=>{o()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&qee(l,Me(r.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Yee(l,Me(r.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=yL(l,t);return i.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,i.value}}function yL(e,t){var i,r;if(!e)return;let n;if(e==="parent"){let a=(r=(i=t==null?void 0:t.proxy)==null?void 0:i.$el)==null?void 0:r.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;n=a}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function _L(){if(!En)return it(!1);const{ssr:e}=Ki();if(e){const t=it(!1);return tn(()=>{t.value=!0}),t}else return it(!0)}const Ix=Oe({eager:Boolean},"lazy");function Nx(e,t){const n=it(!1),i=B(()=>n.value||e.eager||t.value);Ve(t,()=>n.value=!0);function r(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:i,onAfterLeave:r}}function dh(){const t=xi("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const oP=Symbol.for("vuetify:stack"),iv=er([]);function Rie(e,t,n){const i=xi("useStack"),r=!n,a=kt(oP,void 0),o=er({activeChildren:new Set});an(oP,o);const s=it(+t.value);Xa(e,()=>{var d;const c=(d=iv.at(-1))==null?void 0:d[1];s.value=c?c+10:+t.value,r&&iv.push([i.uid,s.value]),a==null||a.activeChildren.add(i.uid),Qr(()=>{if(r){const f=$t(iv).findIndex(h=>h[0]===i.uid);iv.splice(f,1)}a==null||a.activeChildren.delete(i.uid)})});const l=it(!0);r&&Wi(()=>{var d;const c=((d=iv.at(-1))==null?void 0:d[0])===i.uid;setTimeout(()=>l.value=c)});const u=B(()=>!o.activeChildren.size);return{globalTop:mm(l),localTop:u,stackStyles:B(()=>({zIndex:s.value}))}}function Fie(e){return{teleportTarget:B(()=>{const n=e();if(n===!0||!En)return;const i=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(i==null)return;let r=[...i.children].find(a=>a.matches(".v-overlay-container"));return r||(r=document.createElement("div"),r.className="v-overlay-container",i.appendChild(r)),r})}}function Vie(){return!0}function bL(e,t,n){if(!e||wL(e,n)===!1)return!1;const i=hM(t);if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&i.host===e.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(t),!r.some(a=>a==null?void 0:a.contains(e.target))}function wL(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Vie)(e)}function Bie(e,t,n){const i=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&bL(e,t,n)&&setTimeout(()=>{wL(e,n)&&i&&i(e)},0)}function sP(e,t){const n=hM(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const SL={mounted(e,t){const n=r=>Bie(r,e,t),i=r=>{e._clickOutside.lastMousedownWasOutside=bL(r,e,t)};sP(e,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",i,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:i}},beforeUnmount(e,t){e._clickOutside&&(sP(e,n=>{var a;if(!n||!((a=e._clickOutside)!=null&&a[t.instance.$.uid]))return;const{onClick:i,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",i,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function zie(e){const{modelValue:t,color:n,...i}=e;return C(Gl,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&C("div",Me({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},i),null)]})}const q1=Oe({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Nie(),...ct(),...rr(),...Ix(),...Cie(),...$ie(),...fn(),...dl()},"VOverlay"),Kl=ze()({name:"VOverlay",directives:{ClickOutside:SL},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...q1()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:i,emit:r}=t;const a=xi("VOverlay"),o=z(),s=z(),l=z(),u=vt(e,"modelValue"),c=B({get:()=>u.value,set:U=>{U&&e.disabled||(u.value=U)}}),{themeClasses:d}=Pn(e),{rtlClasses:f,isRtl:h}=Sr(),{hasContent:m,onAfterLeave:g}=Nx(e,c),v=Rn(B(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:y,localTop:_,stackStyles:S}=Rie(c,Fe(e,"zIndex"),e._disableGlobalStack),{activatorEl:w,activatorRef:x,target:k,targetEl:P,targetRef:E,activatorEvents:A,contentEvents:D,scrimEvents:T}=Mie(e,{isActive:c,isTop:_,contentEl:l}),{teleportTarget:O}=Fie(()=>{var re,ue,pe;const U=e.attach||e.contained;if(U)return U;const ee=((re=w==null?void 0:w.value)==null?void 0:re.getRootNode())||((pe=(ue=a.proxy)==null?void 0:ue.$el)==null?void 0:pe.getRootNode());return ee instanceof ShadowRoot?ee:!1}),{dimensionStyles:N}=ar(e),V=_L(),{scopeId:j}=dh();Ve(()=>e.disabled,U=>{U&&(c.value=!1)});const{contentStyles:q,updateLocation:ne}=Eie(e,{isRtl:h,contentEl:l,target:k,isActive:c});Aie(e,{root:o,contentEl:l,targetEl:P,isActive:c,updateLocation:ne});function ae(U){r("click:outside",U),e.persistent?te():c.value=!1}function Y(U){return c.value&&y.value&&(!e.scrim||U.target===s.value||U instanceof MouseEvent&&U.shadowTarget===s.value)}En&&Ve(c,U=>{U?window.addEventListener("keydown",M):window.removeEventListener("keydown",M)},{immediate:!0}),Ci(()=>{En&&window.removeEventListener("keydown",M)});function M(U){var ee,re;U.key==="Escape"&&y.value&&(e.persistent?te():(c.value=!1,(ee=l.value)!=null&&ee.contains(document.activeElement)&&((re=w.value)==null||re.focus())))}const I=IM();Xa(()=>e.closeOnBack,()=>{gne(I,U=>{y.value&&c.value?(U(!1),e.persistent?te():c.value=!1):U()})});const W=z();Ve(()=>c.value&&(e.absolute||e.contained)&&O.value==null,U=>{if(U){const ee=mx(o.value);ee&&ee!==document.scrollingElement&&(W.value=ee.scrollTop)}});function te(){e.noClickAnimation||l.value&&yf(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Wg})}function he(){r("afterEnter")}function oe(){g(),r("afterLeave")}return We(()=>{var U;return C(Ue,null,[(U=n.activator)==null?void 0:U.call(n,{isActive:c.value,targetRef:E,props:Me({ref:x},A.value,e.activatorProps)}),V.value&&m.value&&C(yN,{disabled:!O.value,to:O.value},{default:()=>[C("div",Me({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,f.value,e.class],style:[S.value,{"--v-overlay-opacity":e.opacity,top:st(W.value)},e.style],ref:o},j,i),[C(zie,Me({color:v,modelValue:c.value&&!!e.scrim,ref:s},T.value),null),C(Aa,{appear:!0,persisted:!0,transition:e.transition,target:k.value,onAfterEnter:he,onAfterLeave:oe},{default:()=>{var ee;return[xt(C("div",Me({ref:l,class:["v-overlay__content",e.contentClass],style:[N.value,q.value]},D.value,e.contentProps),[(ee=n.default)==null?void 0:ee.call(n,{isActive:c})]),[[hn,c.value],[po("click-outside"),{handler:ae,closeConditional:Y,include:()=>[w.value]}]])]}})])]})])}),{activatorEl:w,scrimEl:s,target:k,animateClick:te,contentEl:l,globalTop:y,localTop:_,updateLocation:ne}}}),A3=Symbol("Forwarded refs");function O3(e,t){let n=e;for(;n;){const i=Reflect.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function ws(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e[A3]=n,new Proxy(e,{get(r,a){if(Reflect.has(r,a))return Reflect.get(r,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,a)){const s=Reflect.get(o.value,a);return typeof s=="function"?s.bind(o.value):s}}},has(r,a){if(Reflect.has(r,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return!0;return!1},set(r,a,o){if(Reflect.has(r,a))return Reflect.set(r,a,o);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return Reflect.set(s.value,a,o);return!1},getOwnPropertyDescriptor(r,a){var s;const o=Reflect.getOwnPropertyDescriptor(r,a);if(o)return o;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const l of n){if(!l.value)continue;const u=O3(l.value,a)??("_"in l.value?O3((s=l.value._)==null?void 0:s.setupState,a):void 0);if(u)return u}for(const l of n){const u=l.value&&l.value[A3];if(!u)continue;const c=u.slice();for(;c.length;){const d=c.shift(),f=O3(d.value,a);if(f)return f;const h=d.value&&d.value[A3];h&&c.push(...h)}}}}})}const CL=Oe({id:String,submenu:Boolean,...Li(q1({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:O2}}),["absolute"])},"VMenu"),ho=ze()({name:"VMenu",props:CL(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),{scopeId:r}=dh(),{isRtl:a}=Sr(),o=ea(),s=B(()=>e.id||`v-menu-${o}`),l=z(),u=kt(nC,null),c=it(new Set);an(nC,{register(){c.value.add(o)},unregister(){c.value.delete(o)},closeParents(v){setTimeout(()=>{var y;!c.value.size&&!e.persistent&&(v==null||(y=l.value)!=null&&y.contentEl&&!Uee(v,l.value.contentEl))&&(i.value=!1,u==null||u.closeParents())},40)}}),Ci(()=>{u==null||u.unregister(),document.removeEventListener("focusin",d)}),g2(()=>i.value=!1);async function d(v){var S,w,x;const y=v.relatedTarget,_=v.target;await Pt(),i.value&&y!==_&&((S=l.value)!=null&&S.contentEl)&&((w=l.value)!=null&&w.globalTop)&&![document,l.value.contentEl].includes(_)&&!l.value.contentEl.contains(_)&&((x=Yg(l.value.contentEl)[0])==null||x.focus())}Ve(i,v=>{v?(u==null||u.register(),En&&document.addEventListener("focusin",d,{once:!0})):(u==null||u.unregister(),En&&document.removeEventListener("focusin",d))},{immediate:!0});function f(v){u==null||u.closeParents(v)}function h(v){var y,_,S,w,x;if(!e.disabled)if(v.key==="Tab"||v.key==="Enter"&&!e.closeOnContentClick){if(v.key==="Enter"&&(v.target instanceof HTMLTextAreaElement||v.target instanceof HTMLInputElement&&v.target.closest("form")))return;v.key==="Enter"&&v.preventDefault(),XN(Yg((y=l.value)==null?void 0:y.contentEl,!1),v.shiftKey?"prev":"next",P=>P.tabIndex>=0)||(i.value=!1,(S=(_=l.value)==null?void 0:_.activatorEl)==null||S.focus())}else e.submenu&&v.key===(a.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,(x=(w=l.value)==null?void 0:w.activatorEl)==null||x.focus())}function m(v){var _;if(e.disabled)return;const y=(_=l.value)==null?void 0:_.contentEl;y&&i.value?v.key==="ArrowDown"?(v.preventDefault(),v.stopImmediatePropagation(),$f(y,"next")):v.key==="ArrowUp"?(v.preventDefault(),v.stopImmediatePropagation(),$f(y,"prev")):e.submenu&&(v.key===(a.value?"ArrowRight":"ArrowLeft")?i.value=!1:v.key===(a.value?"ArrowLeft":"ArrowRight")&&(v.preventDefault(),$f(y,"first"))):(e.submenu?v.key===(a.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(v.key))&&(i.value=!0,v.preventDefault(),setTimeout(()=>setTimeout(()=>m(v))))}const g=B(()=>Me({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-owns":s.value,onKeydown:m},e.activatorProps));return We(()=>{const v=Kl.filterProps(e);return C(Kl,Me({ref:l,id:s.value,class:["v-menu",e.class],style:e.style},v,{modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":f,onKeydown:h},r),{activator:n.activator,default:function(){for(var y=arguments.length,_=new Array(y),S=0;S<y;S++)_[S]=arguments[S];return C(Yt,{root:"VMenu"},{default:()=>{var w;return[(w=n.default)==null?void 0:w.call(n,..._)]}})}})}),ws({id:s,ΨopenChildren:c},l)}});const jie=Oe({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ct(),...dl({transition:{component:wx}})},"VCounter"),B2=ze()({name:"VCounter",functional:!0,props:jie(),setup(e,t){let{slots:n}=t;const i=B(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return We(()=>C(Aa,{transition:e.transition},{default:()=>[xt(C("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:i.value,max:e.max,value:e.value}):i.value]),[[hn,e.active]])]})),{}}});const Uie=Oe({floating:Boolean,...ct()},"VFieldLabel"),Kv=ze()({name:"VFieldLabel",props:Uie(),setup(e,t){let{slots:n}=t;return We(()=>C(bm,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),Hie=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Y1=Oe({appendInnerIcon:_t,bgColor:String,clearable:Boolean,clearIcon:{type:_t,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:_t,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Hie.includes(e)},"onClick:clear":Xr(),"onClick:appendInner":Xr(),"onClick:prependInner":Xr(),...ct(),...M2(),...pi(),...fn()},"VField"),Sm=ze()({name:"VField",inheritAttrs:!1,props:{id:String,...wm(),...Y1()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{themeClasses:a}=Pn(e),{loaderClasses:o}=z1(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=au(e),{InputIcon:d}=YM(e),{roundedClasses:f}=Ti(e),{rtlClasses:h}=Sr(),m=B(()=>e.dirty||e.active),g=B(()=>!e.singleLine&&!!(e.label||r.label)),v=ea(),y=B(()=>e.id||`input-${v}`),_=B(()=>`${y.value}-messages`),S=z(),w=z(),x=z(),k=B(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:P,backgroundColorStyles:E}=Rn(Fe(e,"bgColor")),{textColorClasses:A,textColorStyles:D}=_a(B(()=>e.error||e.disabled?void 0:m.value&&l.value?e.color:e.baseColor));Ve(m,V=>{if(g.value){const j=S.value.$el,q=w.value.$el;requestAnimationFrame(()=>{const ne=dx(j),ae=q.getBoundingClientRect(),Y=ae.x-ne.x,M=ae.y-ne.y-(ne.height/2-ae.height/2),I=ae.width/.75,W=Math.abs(I-ne.width)>1?{maxWidth:st(I)}:void 0,te=getComputedStyle(j),he=getComputedStyle(q),oe=parseFloat(te.transitionDuration)*1e3||150,U=parseFloat(he.getPropertyValue("--v-field-label-scale")),ee=he.getPropertyValue("color");j.style.visibility="visible",q.style.visibility="hidden",yf(j,{transform:`translate(${Y}px, ${M}px) scale(${U})`,color:ee,...W},{duration:oe,easing:Wg,direction:V?"normal":"reverse"}).finished.then(()=>{j.style.removeProperty("visibility"),q.style.removeProperty("visibility")})})}},{flush:"post"});const T=B(()=>({isActive:m,isFocused:l,controlRef:x,blur:c,focus:u}));function O(V){V.target!==document.activeElement&&V.preventDefault()}function N(V){var j;V.key!=="Enter"&&V.key!==" "||(V.preventDefault(),V.stopPropagation(),(j=e["onClick:clear"])==null||j.call(e,new MouseEvent("click")))}return We(()=>{var Y,M,I;const V=e.variant==="outlined",j=!!(r["prepend-inner"]||e.prependInnerIcon),q=!!(e.clearable||r.clear),ne=!!(r["append-inner"]||e.appendInnerIcon||q),ae=()=>r.label?r.label({...T.value,label:e.label,props:{for:y.value}}):e.label;return C("div",Me({class:["v-field",{"v-field--active":m.value,"v-field--appended":ne,"v-field--center-affix":e.centerAffix??!k.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":j,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!ae(),[`v-field--variant-${e.variant}`]:!0},a.value,P.value,s.value,o.value,f.value,h.value,e.class],style:[E.value,e.style],onClick:O},n),[C("div",{class:"v-field__overlay"},null),C(j1,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:r.loader}),j&&C("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&C(d,{key:"prepend-icon",name:"prependInner"},null),(Y=r["prepend-inner"])==null?void 0:Y.call(r,T.value)]),C("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&C(Kv,{key:"floating-label",ref:w,class:[A.value],floating:!0,for:y.value,style:D.value},{default:()=>[ae()]}),g.value&&C(Kv,{key:"label",ref:S,for:y.value},{default:()=>[ae()]}),(M=r.default)==null?void 0:M.call(r,{...T.value,props:{id:y.value,class:"v-field__input","aria-describedby":_.value},focus:u,blur:c})]),q&&C(Sx,{key:"clear"},{default:()=>[xt(C("div",{class:"v-field__clearable",onMousedown:W=>{W.preventDefault(),W.stopPropagation()}},[C(Yt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[r.clear?r.clear({...T.value,props:{onKeydown:N,onFocus:u,onBlur:c,onClick:e["onClick:clear"]}}):C(d,{name:"clear",onKeydown:N,onFocus:u,onBlur:c},null)]})]),[[hn,e.dirty]])]}),ne&&C("div",{key:"append",class:"v-field__append-inner"},[(I=r["append-inner"])==null?void 0:I.call(r,T.value),e.appendInnerIcon&&C(d,{key:"append-icon",name:"appendInner"},null)]),C("div",{class:["v-field__outline",A.value],style:D.value},[V&&C(Ue,null,[C("div",{class:"v-field__outline__start"},null),g.value&&C("div",{class:"v-field__outline__notch"},[C(Kv,{ref:w,floating:!0,for:y.value},{default:()=>[ae()]})]),C("div",{class:"v-field__outline__end"},null)]),k.value&&g.value&&C(Kv,{ref:w,floating:!0,for:y.value},{default:()=>[ae()]})])])}),{controlRef:x}}});function Mx(e){const t=Object.keys(Sm.props).filter(n=>!k2(n)&&n!=="class"&&n!=="style");return lx(e,t)}const qie=["color","file","time","date","datetime-local","week","month"],W1=Oe({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...fc(),...Y1()},"VTextField"),Tn=ze()({name:"VTextField",directives:{Intersect:D2},inheritAttrs:!1,props:W1(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const a=vt(e,"modelValue"),{isFocused:o,focus:s,blur:l}=au(e),u=B(()=>typeof e.counterValue=="function"?e.counterValue(a.value):typeof e.counterValue=="number"?e.counterValue:(a.value??"").toString().length),c=B(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),d=B(()=>["plain","underlined"].includes(e.variant));function f(k,P){var E,A;!e.autofocus||!k||(A=(E=P[0].target)==null?void 0:E.focus)==null||A.call(E)}const h=z(),m=z(),g=z(),v=B(()=>qie.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function y(){var k;g.value!==document.activeElement&&((k=g.value)==null||k.focus()),o.value||s()}function _(k){i("mousedown:control",k),k.target!==g.value&&(y(),k.preventDefault())}function S(k){y(),i("click:control",k)}function w(k){k.stopPropagation(),y(),Pt(()=>{a.value=null,cx(e["onClick:clear"],k)})}function x(k){var E;const P=k.target;if(a.value=P.value,(E=e.modelModifiers)!=null&&E.trim&&["text","search","password","tel","url"].includes(e.type)){const A=[P.selectionStart,P.selectionEnd];Pt(()=>{P.selectionStart=A[0],P.selectionEnd=A[1]})}}return We(()=>{const k=!!(r.counter||e.counter!==!1&&e.counter!=null),P=!!(k||r.details),[E,A]=yd(n),{modelValue:D,...T}=ba.filterProps(e),O=Mx(e);return C(ba,Me({ref:h,modelValue:a.value,"onUpdate:modelValue":N=>a.value=N,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":d.value},e.class],style:e.style},E,T,{centerAffix:!d.value,focused:o.value}),{...r,default:N=>{let{id:V,isDisabled:j,isDirty:q,isReadonly:ne,isValid:ae}=N;return C(Sm,Me({ref:m,onMousedown:_,onClick:S,"onClick:clear":w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},O,{id:V.value,active:v.value||q.value,dirty:q.value||e.dirty,disabled:j.value,focused:o.value,error:ae.value===!1}),{...r,default:Y=>{let{props:{class:M,...I}}=Y;const W=xt(C("input",Me({ref:g,value:a.value,onInput:x,autofocus:e.autofocus,readonly:ne.value,disabled:j.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:y,onBlur:l},I,A),null),[[po("intersect"),{handler:f},null,{once:!0}]]);return C(Ue,null,[e.prefix&&C("span",{class:"v-text-field__prefix"},[C("span",{class:"v-text-field__prefix__text"},[e.prefix])]),r.default?C("div",{class:M,"data-no-activator":""},[r.default(),W]):tc(W,{class:M}),e.suffix&&C("span",{class:"v-text-field__suffix"},[C("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:P?N=>{var V;return C(Ue,null,[(V=r.details)==null?void 0:V.call(r,N),k&&C(Ue,null,[C("span",null,null),C(B2,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},r.counter)])])}:void 0})}),ws({},h,m,g)}});const Yie=Oe({renderless:Boolean,...ct()},"VVirtualScrollItem"),EL=ze()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Yie(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{resizeRef:a,contentRect:o}=il(void 0,"border");Ve(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&i("update:height",s)}),We(()=>{var s,l;return e.renderless?C(Ue,null,[(s=r.default)==null?void 0:s.call(r,{itemRef:a})]):C("div",Me({ref:a,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=r.default)==null?void 0:l.call(r)])})}}),Wie=-1,Gie=1,D3=100,xL=Oe({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function kL(e,t){const n=Ki(),i=it(0);Wi(()=>{i.value=parseFloat(e.itemHeight||0)});const r=it(0),a=it(Math.ceil((parseInt(e.height)||n.height.value)/(i.value||16))||1),o=it(0),s=it(0),l=z(),u=z();let c=0;const{resizeRef:d,contentRect:f}=il();Wi(()=>{d.value=l.value});const h=B(()=>{var M;return l.value===document.documentElement?n.height.value:((M=f.value)==null?void 0:M.height)||parseInt(e.height)||0}),m=B(()=>!!(l.value&&u.value&&h.value&&i.value));let g=Array.from({length:t.value.length}),v=Array.from({length:t.value.length});const y=it(0);let _=-1;function S(M){return g[M]||i.value}const w=Fee(()=>{const M=performance.now();v[0]=0;const I=t.value.length;for(let W=1;W<=I-1;W++)v[W]=(v[W-1]||0)+S(W-1);y.value=Math.max(y.value,performance.now()-M)},y),x=Ve(m,M=>{M&&(x(),c=u.value.offsetTop,w.immediate(),q(),~_&&Pt(()=>{En&&window.requestAnimationFrame(()=>{ae(_),_=-1})}))});Qr(()=>{w.clear()});function k(M,I){const W=g[M],te=i.value;i.value=te?Math.min(i.value,I):I,(W!==I||te!==i.value)&&(g[M]=I,w())}function P(M){return M=qi(M,0,t.value.length-1),v[M]||0}function E(M){return Kie(v,M)}let A=0,D=0,T=0;Ve(h,(M,I)=>{I&&(q(),M<I&&requestAnimationFrame(()=>{D=0,q()}))});let O=-1;function N(){if(!l.value||!u.value)return;const M=l.value.scrollTop,I=performance.now();I-T>500?(D=Math.sign(M-A),c=u.value.offsetTop):D=M-A,A=M,T=I,window.clearTimeout(O),O=window.setTimeout(V,500),q()}function V(){!l.value||!u.value||(D=0,T=0,window.clearTimeout(O),q())}let j=-1;function q(){cancelAnimationFrame(j),j=requestAnimationFrame(ne)}function ne(){if(!l.value||!h.value)return;const M=A-c,I=Math.sign(D),W=Math.max(0,M-D3),te=qi(E(W),0,t.value.length),he=M+h.value+D3,oe=qi(E(he)+1,te+1,t.value.length);if((I!==Wie||te<r.value)&&(I!==Gie||oe>a.value)){const U=P(r.value)-P(te),ee=P(oe)-P(a.value);Math.max(U,ee)>D3?(r.value=te,a.value=oe):(te<=0&&(r.value=te),oe>=t.value.length&&(a.value=oe))}o.value=P(r.value),s.value=P(t.value.length)-P(a.value)}function ae(M){const I=P(M);!l.value||M&&!I?_=M:l.value.scrollTop=I}const Y=B(()=>t.value.slice(r.value,a.value).map((M,I)=>({raw:M,index:I+r.value,key:E2(M)&&"value"in M?M.value:I+r.value})));return Ve(t,()=>{g=Array.from({length:t.value.length}),v=Array.from({length:t.value.length}),w.immediate(),q()},{deep:!0}),{calculateVisibleItems:q,containerRef:l,markerRef:u,computedItems:Y,paddingTop:o,paddingBottom:s,scrollToIndex:ae,handleScroll:N,handleScrollend:V,handleItemResize:k}}function Kie(e,t){let n=e.length-1,i=0,r=0,a=null,o=-1;if(e[n]<t)return n;for(;i<=n;)if(r=i+n>>1,a=e[r],a>t)n=r-1;else if(a<t)o=r,i=r+1;else return a===t?r:i;return o}const Zie=Oe({items:{type:Array,default:()=>[]},renderless:Boolean,...xL(),...ct(),...rr()},"VVirtualScroll"),z2=ze()({name:"VVirtualScroll",props:Zie(),setup(e,t){let{slots:n}=t;const i=xi("VVirtualScroll"),{dimensionStyles:r}=ar(e),{calculateVisibleItems:a,containerRef:o,markerRef:s,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:f,paddingBottom:h,computedItems:m}=kL(e,Fe(e,"items"));return Xa(()=>e.renderless,()=>{function g(){var _,S;const y=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[y]("scroll",l,{passive:!0}),document[y]("scrollend",u)):((_=o.value)==null||_[y]("scroll",l,{passive:!0}),(S=o.value)==null||S[y]("scrollend",u))}tn(()=>{o.value=mx(i.vnode.el,!0),g(!0)}),Qr(g)}),We(()=>{const g=m.value.map(v=>C(EL,{key:v.key,renderless:e.renderless,"onUpdate:height":y=>c(v.index,y)},{default:y=>{var _;return(_=n.default)==null?void 0:_.call(n,{item:v.raw,index:v.index,...y})}}));return e.renderless?C(Ue,null,[C("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:st(f.value)}},null),g,C("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:st(h.value)}},null)]):C("div",{ref:o,class:["v-virtual-scroll",e.class],onScrollPassive:l,onScrollend:u,style:[r.value,e.style]},[C("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:st(f.value),paddingBottom:st(h.value)}},[g])])}),{calculateVisibleItems:a,scrollToIndex:d}}});function Lx(e,t){const n=it(!1);let i;function r(s){cancelAnimationFrame(i),n.value=!0,i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{n.value=!1})})}async function a(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=Ve(n,()=>{l(),s()})}else s()})}async function o(s){var c,d;if(s.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(d=e.value)==null?void 0:d.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await a();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const f=l.getBoundingClientRect().top;for(const h of u)if(h.getBoundingClientRect().top>=f){h.focus();break}}else{const f=l.getBoundingClientRect().bottom;for(const h of[...u].reverse())if(h.getBoundingClientRect().bottom<=f){h.focus();break}}}return{onScrollPassive:r,onKeydown:o}}const Rx=Oe({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:_t,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...hL({itemChildren:!1})},"Select"),Xie=Oe({...Rx(),...Li(W1({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...dl({transition:{component:O2}})},"VSelect"),Oa=ze()({name:"VSelect",props:Xie(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=ki(),r=z(),a=z(),o=z(),s=vt(e,"menu"),l=B({get:()=>s.value,set:Y=>{var M;s.value&&!Y&&((M=a.value)!=null&&M.ΨopenChildren.size)||(s.value=Y)}}),{items:u,transformIn:c,transformOut:d}=Ax(e),f=vt(e,"modelValue",[],Y=>c(Y===null?[null]:hi(Y)),Y=>{const M=d(Y);return e.multiple?M:M[0]??null}),h=B(()=>typeof e.counterValue=="function"?e.counterValue(f.value):typeof e.counterValue=="number"?e.counterValue:f.value.length),m=F2(e),g=B(()=>f.value.map(Y=>Y.value)),v=it(!1),y=B(()=>l.value?e.closeText:e.openText);let _="",S;const w=B(()=>e.hideSelected?u.value.filter(Y=>!f.value.some(M=>e.valueComparator(M,Y))):u.value),x=B(()=>e.hideNoData&&!w.value.length||m.isReadonly.value||m.isDisabled.value),k=B(()=>{var Y;return{...e.menuProps,activatorProps:{...((Y=e.menuProps)==null?void 0:Y.activatorProps)||{},"aria-haspopup":"listbox"}}}),P=z(),E=Lx(P,r);function A(Y){e.openOnClear&&(l.value=!0)}function D(){x.value||(l.value=!l.value)}function T(Y){U_(Y)&&O(Y)}function O(Y){var te,he;if(!Y.key||m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(Y.key)&&Y.preventDefault(),["Enter","ArrowDown"," "].includes(Y.key)&&(l.value=!0),["Escape","Tab"].includes(Y.key)&&(l.value=!1),Y.key==="Home"?(te=P.value)==null||te.focus("first"):Y.key==="End"&&((he=P.value)==null||he.focus("last"));const M=1e3;if(e.multiple||!U_(Y))return;const I=performance.now();I-S>M&&(_=""),_+=Y.key.toLowerCase(),S=I;const W=u.value.find(oe=>oe.title.toLowerCase().startsWith(_));if(W!==void 0){f.value=[W];const oe=w.value.indexOf(W);En&&window.requestAnimationFrame(()=>{var U;oe>=0&&((U=o.value)==null||U.scrollToIndex(oe))})}}function N(Y){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!Y.props.disabled)if(e.multiple){const I=f.value.findIndex(te=>e.valueComparator(te.value,Y.value)),W=M??!~I;if(~I){const te=W?[...f.value,Y]:[...f.value];te.splice(I,1),f.value=te}else W&&(f.value=[...f.value,Y])}else{const I=M!==!1;f.value=I?[Y]:[],Pt(()=>{l.value=!1})}}function V(Y){var M;(M=P.value)!=null&&M.$el.contains(Y.relatedTarget)||(l.value=!1)}function j(){var Y;e.eager&&((Y=o.value)==null||Y.calculateVisibleItems())}function q(){var Y;v.value&&((Y=r.value)==null||Y.focus())}function ne(Y){v.value=!0}function ae(Y){if(Y==null)f.value=[];else if(jp(r.value,":autofill")||jp(r.value,":-webkit-autofill")){const M=u.value.find(I=>I.title===Y);M&&N(M)}else r.value&&(r.value.value="")}return Ve(l,()=>{if(!e.hideSelected&&l.value&&f.value.length){const Y=w.value.findIndex(M=>f.value.some(I=>e.valueComparator(I.value,M.value)));En&&window.requestAnimationFrame(()=>{var M;Y>=0&&((M=o.value)==null||M.scrollToIndex(Y))})}}),Ve(()=>e.items,(Y,M)=>{l.value||v.value&&!M.length&&Y.length&&(l.value=!0)}),We(()=>{const Y=!!(e.chips||n.chip),M=!!(!e.hideNoData||w.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),I=f.value.length>0,W=Tn.filterProps(e),te=I||!v.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return C(Tn,Me({ref:r},W,{modelValue:f.value.map(he=>he.props.value).join(", "),"onUpdate:modelValue":ae,focused:v.value,"onUpdate:focused":he=>v.value=he,validationValue:f.externalValue,counterValue:h.value,dirty:I,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":f.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:te,"onClick:clear":A,"onMousedown:control":D,onBlur:V,onKeydown:O,"aria-label":i(y.value),title:i(y.value)}),{...n,default:()=>C(Ue,null,[C(ho,Me({ref:a,modelValue:l.value,"onUpdate:modelValue":he=>l.value=he,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:j,onAfterLeave:q},k.value),{default:()=>[M&&C(rl,Me({ref:P,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:he=>he.preventDefault(),onKeydown:T,onFocusin:ne,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},E,e.listProps),{default:()=>{var he,oe,U;return[(he=n["prepend-item"])==null?void 0:he.call(n),!w.value.length&&!e.hideNoData&&(((oe=n["no-data"])==null?void 0:oe.call(n))??C(fi,{key:"no-data",title:i(e.noDataText)},null)),C(z2,{ref:o,renderless:!0,items:w.value},{default:ee=>{var Te;let{item:re,index:ue,itemRef:pe}=ee;const ge=Me(re.props,{ref:pe,key:re.value,onClick:()=>N(re,null)});return((Te=n.item)==null?void 0:Te.call(n,{item:re,index:ue,props:ge}))??C(fi,Me(ge,{role:"option"}),{prepend:Z=>{let{isSelected:X}=Z;return C(Ue,null,[e.multiple&&!e.hideSelected?C(ic,{key:re.value,modelValue:X,ripple:!1,tabindex:"-1"},null):void 0,re.props.prependAvatar&&C(Ui,{image:re.props.prependAvatar},null),re.props.prependIcon&&C(ut,{icon:re.props.prependIcon},null)])}})}}),(U=n["append-item"])==null?void 0:U.call(n)]}})]}),f.value.map((he,oe)=>{function U(pe){pe.stopPropagation(),pe.preventDefault(),N(he,!1)}const ee={"onClick:close":U,onKeydown(pe){pe.key!=="Enter"&&pe.key!==" "||(pe.preventDefault(),pe.stopPropagation(),U(pe))},onMousedown(pe){pe.preventDefault(),pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},re=Y?!!n.chip:!!n.selection,ue=re?T2(Y?n.chip({item:he,index:oe,props:ee}):n.selection({item:he,index:oe})):void 0;if(!(re&&!ue))return C("div",{key:he.value,class:"v-select__selection"},[Y?n.chip?C(Yt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:he.title}}},{default:()=>[ue]}):C(ma,Me({key:"chip",closable:e.closableChips,size:"small",text:he.title,disabled:he.props.disabled},ee),null):ue??C("span",{class:"v-select__selection-text"},[he.title,e.multiple&&oe<f.value.length-1&&C("span",{class:"v-select__selection-comma"},[Ze(",")])])])})]),"append-inner":function(){var ee;for(var he=arguments.length,oe=new Array(he),U=0;U<he;U++)oe[U]=arguments[U];return C(Ue,null,[(ee=n["append-inner"])==null?void 0:ee.call(n,...oe),e.menuIcon?C(ut,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),ws({isFocused:v,menu:l,select:N},r)}}),Jie=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),G1=Oe({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Qie(e,t,n){var s;const i=[],r=(n==null?void 0:n.default)??Jie,a=n!=null&&n.filterKeys?hi(n.filterKeys):!1,o=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return i;e:for(let l=0;l<e.length;l++){const[u,c=u]=hi(e[l]),d={},f={};let h=-1;if((t||o>0)&&!(n!=null&&n.noFilter)){if(typeof u=="object"){const v=a||Object.keys(c);for(const y of v){const _=vr(c,y),S=(s=n==null?void 0:n.customKeyFilter)==null?void 0:s[y];if(h=S?S(_,t,u):r(_,t,u),h!==-1&&h!==!1)S?d[y]=h:f[y]=h;else if((n==null?void 0:n.filterMode)==="every")continue e}}else h=r(u,t,u),h!==-1&&h!==!1&&(f.title=h);const m=Object.keys(f).length,g=Object.keys(d).length;if(!m&&!g||(n==null?void 0:n.filterMode)==="union"&&g!==o&&!m||(n==null?void 0:n.filterMode)==="intersection"&&(g!==o||!m))continue}i.push({index:l,matches:{...f,...d}})}return i}function K1(e,t,n,i){const r=z([]),a=z(new Map),o=B(()=>i!=null&&i.transform?K(t).map(l=>[l,i.transform(l)]):K(t));Wi(()=>{const l=typeof n=="function"?n():K(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=Qie(o.value,u,{customKeyFilter:{...e.customKeyFilter,...K(i==null?void 0:i.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=K(t),f=[],h=new Map;c.forEach(m=>{let{index:g,matches:v}=m;const y=d[g];f.push(y),h.set(y.value,v)}),r.value=f,a.value=h});function s(l){return a.value.get(l.value)}return{filteredItems:r,filteredMatches:a,getMatches:s}}function ere(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?C(Ue,null,[C("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),C("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),C("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const tre=Oe({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...G1({filterKeys:["title"]}),...Rx(),...Li(W1({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...dl({transition:!1})},"VAutocomplete"),qp=ze()({name:"VAutocomplete",props:tre(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=ki(),r=z(),a=it(!1),o=it(!0),s=it(!1),l=z(),u=z(),c=vt(e,"menu"),d=B({get:()=>c.value,set:ge=>{var Te;c.value&&!ge&&((Te=l.value)!=null&&Te.ΨopenChildren.size)||(c.value=ge)}}),f=it(-1),h=B(()=>{var ge;return(ge=r.value)==null?void 0:ge.color}),m=B(()=>d.value?e.closeText:e.openText),{items:g,transformIn:v,transformOut:y}=Ax(e),{textColorClasses:_,textColorStyles:S}=_a(h),w=vt(e,"search",""),x=vt(e,"modelValue",[],ge=>v(ge===null?[null]:hi(ge)),ge=>{const Te=y(ge);return e.multiple?Te:Te[0]??null}),k=B(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),P=F2(e),{filteredItems:E,getMatches:A}=K1(e,g,()=>o.value?"":w.value),D=B(()=>e.hideSelected?E.value.filter(ge=>!x.value.some(Te=>Te.value===ge.value)):E.value),T=B(()=>!!(e.chips||n.chip)),O=B(()=>T.value||!!n.selection),N=B(()=>x.value.map(ge=>ge.props.value)),V=B(()=>{var Te;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&w.value===((Te=D.value[0])==null?void 0:Te.title))&&D.value.length>0&&!o.value&&!s.value}),j=B(()=>e.hideNoData&&!D.value.length||P.isReadonly.value||P.isDisabled.value),q=z(),ne=Lx(q,r);function ae(ge){e.openOnClear&&(d.value=!0),w.value=""}function Y(){j.value||(d.value=!0)}function M(ge){j.value||(a.value&&(ge.preventDefault(),ge.stopPropagation()),d.value=!d.value)}function I(ge){var Te;U_(ge)&&((Te=r.value)==null||Te.focus())}function W(ge){var X,ye,Se;if(P.isReadonly.value)return;const Te=r.value.selectionStart,Z=x.value.length;if((f.value>-1||["Enter","ArrowDown","ArrowUp"].includes(ge.key))&&ge.preventDefault(),["Enter","ArrowDown"].includes(ge.key)&&(d.value=!0),["Escape"].includes(ge.key)&&(d.value=!1),V.value&&["Enter","Tab"].includes(ge.key)&&!x.value.some(Ee=>{let{value:_e}=Ee;return _e===D.value[0].value})&&pe(D.value[0]),ge.key==="ArrowDown"&&V.value&&((X=q.value)==null||X.focus("next")),["Backspace","Delete"].includes(ge.key)){if(!e.multiple&&O.value&&x.value.length>0&&!w.value)return pe(x.value[0],!1);if(~f.value){const Ee=f.value;pe(x.value[f.value],!1),f.value=Ee>=Z-1?Z-2:Ee}else ge.key==="Backspace"&&!w.value&&(f.value=Z-1)}if(e.multiple){if(ge.key==="ArrowLeft"){if(f.value<0&&Te>0)return;const Ee=f.value>-1?f.value-1:Z-1;x.value[Ee]?f.value=Ee:(f.value=-1,r.value.setSelectionRange((ye=w.value)==null?void 0:ye.length,(Se=w.value)==null?void 0:Se.length))}if(ge.key==="ArrowRight"){if(f.value<0)return;const Ee=f.value+1;x.value[Ee]?f.value=Ee:(f.value=-1,r.value.setSelectionRange(0,0))}}}function te(ge){if(jp(r.value,":autofill")||jp(r.value,":-webkit-autofill")){const Te=g.value.find(Z=>Z.title===ge.target.value);Te&&pe(Te)}}function he(){var ge;e.eager&&((ge=u.value)==null||ge.calculateVisibleItems())}function oe(){var ge;a.value&&(o.value=!0,(ge=r.value)==null||ge.focus())}function U(ge){a.value=!0,setTimeout(()=>{s.value=!0})}function ee(ge){s.value=!1}function re(ge){(ge==null||ge===""&&!e.multiple&&!O.value)&&(x.value=[])}const ue=it(!1);function pe(ge){let Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!ge||ge.props.disabled))if(e.multiple){const Z=x.value.findIndex(ye=>e.valueComparator(ye.value,ge.value)),X=Te??!~Z;if(~Z){const ye=X?[...x.value,ge]:[...x.value];ye.splice(Z,1),x.value=ye}else X&&(x.value=[...x.value,ge]);e.clearOnSelect&&(w.value="")}else{const Z=Te!==!1;x.value=Z?[ge]:[],w.value=Z&&!O.value?ge.title:"",Pt(()=>{d.value=!1,o.value=!0})}}return Ve(a,(ge,Te)=>{var Z;ge!==Te&&(ge?(ue.value=!0,w.value=e.multiple||O.value?"":String(((Z=x.value.at(-1))==null?void 0:Z.props.title)??""),o.value=!0,Pt(()=>ue.value=!1)):(!e.multiple&&w.value==null&&(x.value=[]),d.value=!1,x.value.some(X=>{let{title:ye}=X;return ye===w.value})||(w.value=""),f.value=-1))}),Ve(w,ge=>{!a.value||ue.value||(ge&&(d.value=!0),o.value=!ge)}),Ve(d,()=>{if(!e.hideSelected&&d.value&&x.value.length){const ge=D.value.findIndex(Te=>x.value.some(Z=>Te.value===Z.value));En&&window.requestAnimationFrame(()=>{var Te;ge>=0&&((Te=u.value)==null||Te.scrollToIndex(ge))})}}),Ve(()=>e.items,(ge,Te)=>{d.value||a.value&&!Te.length&&ge.length&&(d.value=!0)}),We(()=>{const ge=!!(!e.hideNoData||D.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Te=x.value.length>0,Z=Tn.filterProps(e);return C(Tn,Me({ref:r},Z,{modelValue:w.value,"onUpdate:modelValue":[X=>w.value=X,re],focused:a.value,"onUpdate:focused":X=>a.value=X,validationValue:x.externalValue,counterValue:k.value,dirty:Te,onChange:te,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":d.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!O.value,"v-autocomplete--selecting-index":f.value>-1},e.class],style:e.style,readonly:P.isReadonly.value,placeholder:Te?void 0:e.placeholder,"onClick:clear":ae,"onMousedown:control":Y,onKeydown:W}),{...n,default:()=>C(Ue,null,[C(ho,Me({ref:l,modelValue:d.value,"onUpdate:modelValue":X=>d.value=X,activator:"parent",contentClass:"v-autocomplete__content",disabled:j.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:he,onAfterLeave:oe},e.menuProps),{default:()=>[ge&&C(rl,Me({ref:q,selected:N.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:X=>X.preventDefault(),onKeydown:I,onFocusin:U,onFocusout:ee,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},ne,e.listProps),{default:()=>{var X,ye,Se;return[(X=n["prepend-item"])==null?void 0:X.call(n),!D.value.length&&!e.hideNoData&&(((ye=n["no-data"])==null?void 0:ye.call(n))??C(fi,{key:"no-data",title:i(e.noDataText)},null)),C(z2,{ref:u,renderless:!0,items:D.value},{default:Ee=>{var de;let{item:_e,index:be,itemRef:ie}=Ee;const se=Me(_e.props,{ref:ie,key:_e.value,active:V.value&&be===0?!0:void 0,onClick:()=>pe(_e,null)});return((de=n.item)==null?void 0:de.call(n,{item:_e,index:be,props:se}))??C(fi,Me(se,{role:"option"}),{prepend:xe=>{let{isSelected:Re}=xe;return C(Ue,null,[e.multiple&&!e.hideSelected?C(ic,{key:_e.value,modelValue:Re,ripple:!1,tabindex:"-1"},null):void 0,_e.props.prependAvatar&&C(Ui,{image:_e.props.prependAvatar},null),_e.props.prependIcon&&C(ut,{icon:_e.props.prependIcon},null)])},title:()=>{var xe,Re;return o.value?_e.title:ere(_e.title,(xe=A(_e))==null?void 0:xe.title,((Re=w.value)==null?void 0:Re.length)??0)}})}}),(Se=n["append-item"])==null?void 0:Se.call(n)]}})]}),x.value.map((X,ye)=>{function Se(ie){ie.stopPropagation(),ie.preventDefault(),pe(X,!1)}const Ee={"onClick:close":Se,onKeydown(ie){ie.key!=="Enter"&&ie.key!==" "||(ie.preventDefault(),ie.stopPropagation(),Se(ie))},onMousedown(ie){ie.preventDefault(),ie.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},_e=T.value?!!n.chip:!!n.selection,be=_e?T2(T.value?n.chip({item:X,index:ye,props:Ee}):n.selection({item:X,index:ye})):void 0;if(!(_e&&!be))return C("div",{key:X.value,class:["v-autocomplete__selection",ye===f.value&&["v-autocomplete__selection--selected",_.value]],style:ye===f.value?S.value:{}},[T.value?n.chip?C(Yt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:X.title}}},{default:()=>[be]}):C(ma,Me({key:"chip",closable:e.closableChips,size:"small",text:X.title,disabled:X.props.disabled},Ee),null):be??C("span",{class:"v-autocomplete__selection-text"},[X.title,e.multiple&&ye<x.value.length-1&&C("span",{class:"v-autocomplete__selection-comma"},[Ze(",")])])])})]),"append-inner":function(){var Ee;for(var X=arguments.length,ye=new Array(X),Se=0;Se<X;Se++)ye[Se]=arguments[Se];return C(Ue,null,[(Ee=n["append-inner"])==null?void 0:Ee.call(n,...ye),e.menuIcon?C(ut,{class:"v-autocomplete__menu-icon",icon:e.menuIcon,onMousedown:M,onClick:JN,"aria-label":i(m.value),title:i(m.value),tabindex:"-1"},null):void 0])}})}),ws({isFocused:a,isPristine:o,menu:d,search:w,filteredItems:E,select:pe},r)}});const nre=Oe({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:_t,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...ct(),...cc({location:"top end"}),...pi(),...Vt(),...fn(),...dl({transition:"scale-rotate-transition"})},"VBadge"),Zv=ze()({name:"VBadge",inheritAttrs:!1,props:nre(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:i}=Rn(Fe(e,"color")),{roundedClasses:r}=Ti(e),{t:a}=ki(),{textColorClasses:o,textColorStyles:s}=_a(Fe(e,"textColor")),{themeClasses:l}=A2(),{locationStyles:u}=uh(e,!0,c=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return We(()=>{const c=Number(e.content),d=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[f,h]=V5(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return C(e.tag,Me({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},h,{style:e.style}),{default:()=>{var m,g;return[C("div",{class:"v-badge__wrapper"},[(g=(m=t.slots).default)==null?void 0:g.call(m),C(Aa,{transition:e.transition},{default:()=>{var v,y;return[xt(C("span",Me({class:["v-badge__badge",l.value,n.value,r.value,o.value],style:[i.value,s.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":a(e.label,c),"aria-live":"polite",role:"status"},f),[e.dot?void 0:t.slots.badge?(y=(v=t.slots).badge)==null?void 0:y.call(v):e.icon?C(ut,{icon:e.icon},null):d]),[[hn,e.modelValue]])]}})])]}})}),{}}});const ire=Oe({color:String,density:String,...ct()},"VBannerActions"),TL=ze()({name:"VBannerActions",props:ire(),setup(e,t){let{slots:n}=t;return Si({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),We(()=>{var i;return C("div",{class:["v-banner-actions",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),PL=iu("v-banner-text"),rre=Oe({avatar:String,bgColor:String,color:String,icon:_t,lines:String,stacked:Boolean,sticky:Boolean,text:String,...mo(),...ct(),...Mr(),...rr(),...ch({mobile:null}),...Cr(),...cc(),...ym(),...pi(),...Vt(),...fn()},"VBanner"),are=ze()({name:"VBanner",props:rre(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Rn(e,"bgColor"),{borderClasses:a}=Wo(e),{densityClasses:o}=Da(e),{displayClasses:s,mobile:l}=Ki(e),{dimensionStyles:u}=ar(e),{elevationClasses:c}=ta(e),{locationStyles:d}=uh(e),{positionClasses:f}=_m(e),{roundedClasses:h}=Ti(e),{themeClasses:m}=Pn(e),g=Fe(e,"color"),v=Fe(e,"density");Si({VBannerActions:{color:g,density:v}}),We(()=>{const y=!!(e.text||n.text),_=!!(e.avatar||e.icon),S=!!(_||n.prepend);return C(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},m.value,i.value,a.value,o.value,s.value,c.value,f.value,h.value,e.class],style:[r.value,u.value,d.value,e.style],role:"banner"},{default:()=>{var w;return[S&&C("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?C(Yt,{key:"prepend-defaults",disabled:!_,defaults:{VAvatar:{color:g.value,density:v.value,icon:e.icon,image:e.avatar}}},n.prepend):C(Ui,{key:"prepend-avatar",color:g.value,density:v.value,icon:e.icon,image:e.avatar},null)]),C("div",{class:"v-banner__content"},[y&&C(PL,{key:"text"},{default:()=>{var x;return[((x=n.text)==null?void 0:x.call(n))??e.text]}}),(w=n.default)==null?void 0:w.call(n)]),n.actions&&C(TL,{key:"actions"},n.actions)]}})})}});const ore=Oe({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...mo(),...ct(),...Mr(),...Cr(),...pi(),...nh({name:"bottom-navigation"}),...Vt({tag:"header"}),...oh({selectedClass:"v-btn--selected"}),...fn()},"VBottomNavigation"),sre=ze()({name:"VBottomNavigation",props:ore(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=A2(),{borderClasses:r}=Wo(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Rn(Fe(e,"bgColor")),{densityClasses:s}=Da(e),{elevationClasses:l}=ta(e),{roundedClasses:u}=Ti(e),{ssrBootStyles:c}=rh(),d=B(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),f=vt(e,"active",e.active),{layoutItemStyles:h}=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:B(()=>"bottom"),layoutSize:B(()=>f.value?d.value:0),elementSize:d,active:f,absolute:Fe(e,"absolute")});return bd(e,Ex),Si({VBtn:{baseColor:Fe(e,"baseColor"),color:Fe(e,"color"),density:Fe(e,"density"),stacked:B(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),We(()=>C(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":f.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},i.value,a.value,r.value,s.value,l.value,u.value,e.class],style:[o.value,h.value,{height:st(d.value)},c.value,e.style]},{default:()=>[n.default&&C("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}});const $L=Oe({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...q1({origin:"center center",scrollStrategy:"block",transition:{component:O2},zIndex:2400})},"VDialog"),ir=ze()({name:"VDialog",props:$L(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=vt(e,"modelValue"),{scopeId:a}=dh(),o=z();function s(c){var h,m;const d=c.relatedTarget,f=c.target;if(d!==f&&((h=o.value)!=null&&h.contentEl)&&((m=o.value)!=null&&m.globalTop)&&![document,o.value.contentEl].includes(f)&&!o.value.contentEl.contains(f)){const g=Yg(o.value.contentEl);if(!g.length)return;const v=g[0],y=g[g.length-1];d===v?y.focus():v.focus()}}Ci(()=>{document.removeEventListener("focusin",s)}),En&&Ve(()=>r.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0});function l(){var c;n("afterEnter"),(c=o.value)!=null&&c.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return Ve(r,async c=>{var d;c||(await Pt(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),We(()=>{const c=Kl.filterProps(e),d=Me({"aria-haspopup":"dialog"},e.activatorProps),f=Me({tabindex:-1},e.contentProps);return C(Kl,Me({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,"aria-modal":"true",activatorProps:d,contentProps:f,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:l,onAfterLeave:u},a),{activator:i.activator,default:function(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return C(Yt,{root:"VDialog"},{default:()=>{var v;return[(v=i.default)==null?void 0:v.call(i,...m)]}})}})}),ws({},o)}}),lre=Oe({inset:Boolean,...$L({transition:"bottom-sheet-transition"})},"VBottomSheet"),ure=ze()({name:"VBottomSheet",props:lre(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue");return We(()=>{const r=ir.filterProps(e);return C(ir,Me(r,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:i.value,"onUpdate:modelValue":a=>i.value=a,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}});const cre=Oe({divider:[Number,String],...ct()},"VBreadcrumbsDivider"),AL=ze()({name:"VBreadcrumbsDivider",props:cre(),setup(e,t){let{slots:n}=t;return We(()=>{var i;return C("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((i=n==null?void 0:n.default)==null?void 0:i.call(n))??e.divider])}),{}}}),dre=Oe({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...ct(),...H1(),...Vt({tag:"li"})},"VBreadcrumbsItem"),OL=ze()({name:"VBreadcrumbsItem",props:dre(),setup(e,t){let{slots:n,attrs:i}=t;const r=U1(e,i),a=B(()=>{var u;return e.active||((u=r.isActive)==null?void 0:u.value)}),o=B(()=>a.value?e.activeColor:e.color),{textColorClasses:s,textColorStyles:l}=_a(o);return We(()=>C(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":a.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:a.value&&e.activeClass},s.value,e.class],style:[l.value,e.style],"aria-current":a.value?"page":void 0},{default:()=>{var u,c;return[r.isLink.value?C("a",Me({class:"v-breadcrumbs-item--link",onClick:r.navigate},r.linkProps),[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),fre=Oe({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:_t,items:{type:Array,default:()=>[]},...ct(),...Mr(),...pi(),...Vt({tag:"ul"})},"VBreadcrumbs"),hre=ze()({name:"VBreadcrumbs",props:fre(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Rn(Fe(e,"bgColor")),{densityClasses:a}=Da(e),{roundedClasses:o}=Ti(e);Si({VBreadcrumbsDivider:{divider:Fe(e,"divider")},VBreadcrumbsItem:{activeClass:Fe(e,"activeClass"),activeColor:Fe(e,"activeColor"),color:Fe(e,"color"),disabled:Fe(e,"disabled")}});const s=B(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return We(()=>{const l=!!(n.prepend||e.icon);return C(e.tag,{class:["v-breadcrumbs",i.value,a.value,o.value,e.class],style:[r.value,e.style]},{default:()=>{var u;return[l&&C("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?C(Yt,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):C(ut,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((c,d,f)=>{var g;let{item:h,raw:m}=c;return C(Ue,null,[((g=n.item)==null?void 0:g.call(n,{item:h,index:d}))??C(OL,Me({key:d,disabled:d>=f.length-1},typeof h=="string"?{title:h}:h),{default:n.title?()=>{var v;return(v=n.title)==null?void 0:v.call(n,{item:h,index:d})}:void 0}),d<f.length-1&&C(AL,null,{default:n.divider?()=>{var v;return(v=n.divider)==null?void 0:v.call(n,{item:m,index:d})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}});const Yp=ze()({name:"VCardActions",props:ct(),setup(e,t){let{slots:n}=t;return Si({VBtn:{slim:!0,variant:"text"}}),We(()=>{var i;return C("div",{class:["v-card-actions",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),pre=Oe({opacity:[Number,String],...ct(),...Vt()},"VCardSubtitle"),j2=ze()({name:"VCardSubtitle",props:pre(),setup(e,t){let{slots:n}=t;return We(()=>C(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),_r=iu("v-card-title"),mre=Oe({appendAvatar:String,appendIcon:_t,prependAvatar:String,prependIcon:_t,subtitle:[String,Number],title:[String,Number],...ct(),...Mr()},"VCardItem"),DL=ze()({name:"VCardItem",props:mre(),setup(e,t){let{slots:n}=t;return We(()=>{var u;const i=!!(e.prependAvatar||e.prependIcon),r=!!(i||n.prepend),a=!!(e.appendAvatar||e.appendIcon),o=!!(a||n.append),s=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return C("div",{class:["v-card-item",e.class],style:e.style},[r&&C("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?C(Yt,{key:"prepend-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):C(Ue,null,[e.prependAvatar&&C(Ui,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&C(ut,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),C("div",{class:"v-card-item__content"},[s&&C(_r,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&C(j2,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&C("div",{key:"append",class:"v-card-item__append"},[n.append?C(Yt,{key:"append-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):C(Ue,null,[e.appendIcon&&C(ut,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&C(Ui,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),vre=Oe({opacity:[Number,String],...ct(),...Vt()},"VCardText"),br=ze()({name:"VCardText",props:vre(),setup(e,t){let{slots:n}=t;return We(()=>C(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),gre=Oe({appendAvatar:String,appendIcon:_t,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:_t,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...mo(),...ct(),...Mr(),...rr(),...Cr(),...M2(),...cc(),...ym(),...pi(),...H1(),...Vt(),...fn(),...bs({variant:"elevated"})},"VCard"),Cn=ze()({name:"VCard",directives:{Ripple:dc},props:gre(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:r}=Pn(e),{borderClasses:a}=Wo(e),{colorClasses:o,colorStyles:s,variantClasses:l}=ah(e),{densityClasses:u}=Da(e),{dimensionStyles:c}=ar(e),{elevationClasses:d}=ta(e),{loaderClasses:f}=z1(e),{locationStyles:h}=uh(e),{positionClasses:m}=_m(e),{roundedClasses:g}=Ti(e),v=U1(e,n),y=B(()=>e.link!==!1&&v.isLink.value),_=B(()=>!e.disabled&&e.link!==!1&&(e.link||v.isClickable.value));return We(()=>{const S=y.value?"a":e.tag,w=!!(i.title||e.title!=null),x=!!(i.subtitle||e.subtitle!=null),k=w||x,P=!!(i.append||e.appendAvatar||e.appendIcon),E=!!(i.prepend||e.prependAvatar||e.prependIcon),A=!!(i.image||e.image),D=k||E||P,T=!!(i.text||e.text!=null);return xt(C(S,Me({class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":_.value},r.value,a.value,o.value,u.value,d.value,f.value,m.value,g.value,l.value,e.class],style:[s.value,c.value,h.value,e.style],onClick:_.value&&v.navigate,tabindex:e.disabled?-1:void 0},v.linkProps),{default:()=>{var O;return[A&&C("div",{key:"image",class:"v-card__image"},[i.image?C(Yt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},i.image):C(Ii,{key:"image-img",cover:!0,src:e.image},null)]),C(j1,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:i.loader}),D&&C(DL,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:i.item,prepend:i.prepend,title:i.title,subtitle:i.subtitle,append:i.append}),T&&C(br,{key:"text"},{default:()=>{var N;return[((N=i.text)==null?void 0:N.call(i))??e.text]}}),(O=i.default)==null?void 0:O.call(i),i.actions&&C(Yp,null,{default:i.actions}),_d(_.value,"v-card")]}}),[[po("ripple"),_.value&&e.ripple]])}),{}}});const yre=e=>{const{touchstartX:t,touchendX:n,touchstartY:i,touchendY:r}=e,a=.5,o=16;e.offsetX=n-t,e.offsetY=r-i,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-o&&e.left(e),e.right&&n>t+o&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&r<i-o&&e.up(e),e.down&&r>i+o&&e.down(e))};function _re(e,t){var i;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(i=t.start)==null||i.call(t,{originalEvent:e,...t})}function bre(e,t){var i;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(i=t.end)==null||i.call(t,{originalEvent:e,...t}),yre(t)}function wre(e,t){var i;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(i=t.move)==null||i.call(t,{originalEvent:e,...t})}function Sre(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>_re(n,t),touchend:n=>bre(n,t),touchmove:n=>wre(n,t)}}function Cre(e,t){var s;const n=t.value,i=n!=null&&n.parent?e.parentElement:e,r=(n==null?void 0:n.options)??{passive:!0},a=(s=t.instance)==null?void 0:s.$.uid;if(!i||!a)return;const o=Sre(t.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[a]=o,WN(o).forEach(l=>{i.addEventListener(l,o[l],r)})}function Ere(e,t){var a,o;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,i=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!i)return;const r=n._touchHandlers[i];WN(r).forEach(s=>{n.removeEventListener(s,r[s])}),delete n._touchHandlers[i]}const Fx={mounted:Cre,unmounted:Ere},IL=Symbol.for("vuetify:v-window"),NL=Symbol.for("vuetify:v-window-group"),U2=Oe({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...ct(),...Vt(),...fn()},"VWindow"),Uf=ze()({name:"VWindow",directives:{Touch:Fx},props:U2(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{isRtl:r}=Sr(),{t:a}=ki(),o=bd(e,NL),s=z(),l=B(()=>r.value?!e.reverse:e.reverse),u=it(!1),c=B(()=>{const w=e.direction==="vertical"?"y":"x",k=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${w}${k}-transition`}),d=it(0),f=z(void 0),h=B(()=>o.items.value.findIndex(w=>o.selected.value.includes(w.id)));Ve(h,(w,x)=>{const k=o.items.value.length,P=k-1;k<=2?u.value=w<x:w===P&&x===0?u.value=!0:w===0&&x===P?u.value=!1:u.value=w<x}),an(IL,{transition:c,isReversed:u,transitionCount:d,transitionHeight:f,rootRef:s});const m=B(()=>e.continuous||h.value!==0),g=B(()=>e.continuous||h.value!==o.items.value.length-1);function v(){m.value&&o.prev()}function y(){g.value&&o.next()}const _=B(()=>{const w=[],x={icon:r.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,"aria-label":a("$vuetify.carousel.prev")};w.push(m.value?n.prev?n.prev({props:x}):C(Je,x,null):C("div",null,null));const k={icon:r.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,"aria-label":a("$vuetify.carousel.next")};return w.push(g.value?n.next?n.next({props:k}):C(Je,k,null):C("div",null,null)),w}),S=B(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?v():y()},right:()=>{l.value?y():v()},start:x=>{let{originalEvent:k}=x;k.stopPropagation()}},...e.touch===!0?{}:e.touch});return We(()=>xt(C(e.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},i.value,e.class],style:e.style},{default:()=>{var w,x;return[C("div",{class:"v-window__container",style:{height:f.value}},[(w=n.default)==null?void 0:w.call(n,{group:o}),e.showArrows!==!1&&C("div",{class:"v-window__controls"},[_.value])]),(x=n.additional)==null?void 0:x.call(n,{group:o})]}}),[[po("touch"),S.value]])),{group:o}}}),xre=Oe({color:String,cycle:Boolean,delimiterIcon:{type:_t,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...U2({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),kre=ze()({name:"VCarousel",props:xre(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),{t:r}=ki(),a=z();let o=-1;Ve(i,l),Ve(()=>e.interval,l),Ve(()=>e.cycle,u=>{u?l():window.clearTimeout(o)}),tn(s);function s(){!e.cycle||!a.value||(o=window.setTimeout(a.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return We(()=>{const u=Uf.filterProps(e);return C(Uf,Me({ref:a},u,{modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:st(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:d}=c;return C(Ue,null,[!e.hideDelimiters&&C("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[d.items.value.length>0&&C(Yt,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[d.items.value.map((f,h)=>{const m={id:`carousel-item-${f.id}`,"aria-label":r("$vuetify.carousel.ariaLabel.delimiter",h+1,d.items.value.length),class:["v-carousel__controls__item",d.isSelected(f.id)&&"v-btn--active"],onClick:()=>d.select(f.id,!0)};return n.item?n.item({props:m,item:f}):C(Je,Me(f,m),null)})]})]),e.progress&&C(N2,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(d.getItemIndex(i.value)+1)/d.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),H2=Oe({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...ct(),...sh(),...Ix()},"VWindowItem"),Hf=ze()({name:"VWindowItem",directives:{Touch:Fx},props:H2(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=kt(IL),r=lh(e,NL),{isBooted:a}=rh();if(!i||!r)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=it(!1),s=B(()=>a.value&&(i.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!i||(o.value=!1,i.transitionCount.value>0&&(i.transitionCount.value-=1,i.transitionCount.value===0&&(i.transitionHeight.value=void 0)))}function u(){var m;o.value||!i||(o.value=!0,i.transitionCount.value===0&&(i.transitionHeight.value=st((m=i.rootRef.value)==null?void 0:m.clientHeight)),i.transitionCount.value+=1)}function c(){l()}function d(m){o.value&&Pt(()=>{!s.value||!o.value||!i||(i.transitionHeight.value=st(m.clientHeight))})}const f=B(()=>{const m=i.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof m!="string"?i.transition.value:m,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:h}=Nx(e,r.isSelected);return We(()=>C(Aa,{transition:f.value,disabled:!a.value},{default:()=>{var m;return[xt(C("div",{class:["v-window-item",r.selectedClass.value,e.class],style:e.style},[h.value&&((m=n.default)==null?void 0:m.call(n))]),[[hn,r.isSelected.value]])]}})),{groupItem:r}}}),Tre=Oe({...PM(),...H2()},"VCarouselItem"),Pre=ze()({name:"VCarouselItem",inheritAttrs:!1,props:Tre(),setup(e,t){let{slots:n,attrs:i}=t;We(()=>{const r=Ii.filterProps(e),a=Hf.filterProps(e);return C(Hf,Me({class:["v-carousel-item",e.class]},a),{default:()=>[C(Ii,Me(i,r),n)]})})}});const $re=iu("v-code","code");const Are=Oe({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...ct()},"VColorPickerCanvas"),Ore=qo({name:"VColorPickerCanvas",props:Are(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const i=it(!1),r=z(),a=it(parseFloat(e.width)),o=it(parseFloat(e.height)),s=z({x:0,y:0}),l=B({get:()=>s.value,set(v){var S,w;if(!r.value)return;const{x:y,y:_}=v;s.value=v,n("update:color",{h:((S=e.color)==null?void 0:S.h)??0,s:qi(y,0,a.value)/a.value,v:1-qi(_,0,o.value)/o.value,a:((w=e.color)==null?void 0:w.a)??1})}}),u=B(()=>{const{x:v,y}=l.value,_=parseInt(e.dotSize,10)/2;return{width:st(e.dotSize),height:st(e.dotSize),transform:`translate(${st(v-_)}, ${st(y-_)})`}}),{resizeRef:c}=il(v=>{var S;if(!((S=c.el)!=null&&S.offsetParent))return;const{width:y,height:_}=v[0].contentRect;a.value=y,o.value=_});function d(v,y,_){const{left:S,top:w,width:x,height:k}=_;l.value={x:qi(v-S,0,x),y:qi(y-w,0,k)}}function f(v){v.type==="mousedown"&&v.preventDefault(),!e.disabled&&(h(v),window.addEventListener("mousemove",h),window.addEventListener("mouseup",m),window.addEventListener("touchmove",h),window.addEventListener("touchend",m))}function h(v){if(e.disabled||!r.value)return;i.value=!0;const y=zee(v);d(y.clientX,y.clientY,r.value.getBoundingClientRect())}function m(){window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",m)}function g(){var w;if(!r.value)return;const v=r.value,y=v.getContext("2d");if(!y)return;const _=y.createLinearGradient(0,0,v.width,0);_.addColorStop(0,"hsla(0, 0%, 100%, 1)"),_.addColorStop(1,`hsla(${((w=e.color)==null?void 0:w.h)??0}, 100%, 50%, 1)`),y.fillStyle=_,y.fillRect(0,0,v.width,v.height);const S=y.createLinearGradient(0,0,0,v.height);S.addColorStop(0,"hsla(0, 0%, 0%, 0)"),S.addColorStop(1,"hsla(0, 0%, 0%, 1)"),y.fillStyle=S,y.fillRect(0,0,v.width,v.height)}return Ve(()=>{var v;return(v=e.color)==null?void 0:v.h},g,{immediate:!0}),Ve(()=>[a.value,o.value],(v,y)=>{g(),s.value={x:l.value.x*v[0]/y[0],y:l.value.y*v[1]/y[1]}},{flush:"post"}),Ve(()=>e.color,()=>{if(i.value){i.value=!1;return}s.value=e.color?{x:e.color.s*a.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),tn(()=>g()),We(()=>C("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:f,onTouchstartPassive:f},[C("canvas",{ref:r,width:a.value,height:o.value},null),e.color&&C("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function Dre(e,t){if(t){const{a:n,...i}=e;return i}return e}function Ire(e,t){if(t==null||typeof t=="string"){const n=cM(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return gf(t,["r","g","b"])?n=nc(e):gf(t,["h","s","l"])?n=rM(e):gf(t,["h","s","v"])&&(n=e),Dre(n,!gf(t,["a"])&&e.a===1)}return e}const rp={h:0,s:0,v:0,a:1},iC={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:nc,from:P2};var iI;const Nre={...iC,inputs:(iI=iC.inputs)==null?void 0:iI.slice(0,3)},rC={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:rM,from:hx},Mre={...rC,inputs:rC.inputs.slice(0,3)},ML={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:cM,from:uM},Lre={...ML,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Of={rgb:Nre,rgba:iC,hsl:Mre,hsla:rC,hex:Lre,hexa:ML},Rre=e=>{let{label:t,...n}=e;return C("div",{class:"v-color-picker-edit__input"},[C("input",n,null),C("span",null,[t])])},Fre=Oe({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Of).includes(e)},modes:{type:Array,default:()=>Object.keys(Of),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Of).includes(t))},...ct()},"VColorPickerEdit"),Vre=qo({name:"VColorPickerEdit",props:Fre(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const i=B(()=>e.modes.map(a=>({...Of[a],name:a}))),r=B(()=>{var s;const a=i.value.find(l=>l.name===e.mode);if(!a)return[];const o=e.color?a.to(e.color):null;return(s=a.inputs)==null?void 0:s.map(l=>{let{getValue:u,getColor:c,...d}=l;return{...a.inputProps,...d,disabled:e.disabled,value:o&&u(o),onChange:f=>{const h=f.target;h&&n("update:color",a.from(c(o??a.to(rp),h.value)))}}})});return We(()=>{var a;return C("div",{class:["v-color-picker-edit",e.class],style:e.style},[(a=r.value)==null?void 0:a.map(o=>C(Rre,o,null)),i.value.length>1&&C(Je,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const o=i.value.findIndex(s=>s.name===e.mode);n("update:mode",i.value[(o+1)%i.value.length].name)}},null)])}),{}}});const Vx=Symbol.for("vuetify:v-slider");function aC(e,t,n){const i=n==="vertical",r=t.getBoundingClientRect(),a="touches"in e?e.touches[0]:e;return i?a.clientY-(r.top+r.height/2):a.clientX-(r.left+r.width/2)}function Bre(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const LL=Oe({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...pi(),...Cr({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),RL=e=>{const t=B(()=>parseFloat(e.min)),n=B(()=>parseFloat(e.max)),i=B(()=>+e.step>0?parseFloat(e.step):0),r=B(()=>Math.max(S6(i.value),S6(t.value)));function a(o){if(o=parseFloat(o),i.value<=0)return o;const s=qi(o,t.value,n.value),l=t.value%i.value,u=Math.round((s-l)/i.value)*i.value+l;return parseFloat(Math.min(u,n.value).toFixed(r.value))}return{min:t,max:n,step:i,decimals:r,roundValue:a}},FL=e=>{let{props:t,steps:n,onSliderStart:i,onSliderMove:r,onSliderEnd:a,getActiveThumb:o}=e;const{isRtl:s}=Sr(),l=Fe(t,"reverse"),u=B(()=>t.direction==="vertical"),c=B(()=>u.value!==l.value),{min:d,max:f,step:h,decimals:m,roundValue:g}=n,v=B(()=>parseInt(t.thumbSize,10)),y=B(()=>parseInt(t.tickSize,10)),_=B(()=>parseInt(t.trackSize,10)),S=B(()=>(f.value-d.value)/h.value),w=Fe(t,"disabled"),x=B(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),k=B(()=>t.error||t.disabled?void 0:t.trackColor??t.color),P=B(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),E=it(!1),A=it(0),D=z(),T=z();function O(U){var ye;const ee=t.direction==="vertical",re=ee?"top":"left",ue=ee?"height":"width",pe=ee?"clientY":"clientX",{[re]:ge,[ue]:Te}=(ye=D.value)==null?void 0:ye.$el.getBoundingClientRect(),Z=Bre(U,pe);let X=Math.min(Math.max((Z-ge-A.value)/Te,0),1)||0;return(ee?c.value:c.value!==s.value)&&(X=1-X),g(d.value+X*(f.value-d.value))}const N=U=>{a({value:O(U)}),E.value=!1,A.value=0},V=U=>{T.value=o(U),T.value&&(T.value.focus(),E.value=!0,T.value.contains(U.target)?A.value=aC(U,T.value,t.direction):(A.value=0,r({value:O(U)})),i({value:O(U)}))},j={passive:!0,capture:!0};function q(U){r({value:O(U)})}function ne(U){U.stopPropagation(),U.preventDefault(),N(U),window.removeEventListener("mousemove",q,j),window.removeEventListener("mouseup",ne)}function ae(U){var ee;N(U),window.removeEventListener("touchmove",q,j),(ee=U.target)==null||ee.removeEventListener("touchend",ae)}function Y(U){var ee;V(U),window.addEventListener("touchmove",q,j),(ee=U.target)==null||ee.addEventListener("touchend",ae,{passive:!1})}function M(U){U.preventDefault(),V(U),window.addEventListener("mousemove",q,j),window.addEventListener("mouseup",ne,{passive:!1})}const I=U=>{const ee=(U-d.value)/(f.value-d.value)*100;return qi(isNaN(ee)?0:ee,0,100)},W=Fe(t,"showTicks"),te=B(()=>W.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(U=>({value:U,position:I(U),label:U.toString()})):Object.keys(t.ticks).map(U=>({value:parseFloat(U),position:I(parseFloat(U)),label:t.ticks[U]})):S.value!==1/0?Ll(S.value+1).map(U=>{const ee=d.value+U*h.value;return{value:ee,position:I(ee)}}):[]:[]),he=B(()=>te.value.some(U=>{let{label:ee}=U;return!!ee})),oe={activeThumbRef:T,color:Fe(t,"color"),decimals:m,disabled:w,direction:Fe(t,"direction"),elevation:Fe(t,"elevation"),hasLabels:he,isReversed:l,indexFromEnd:c,min:d,max:f,mousePressed:E,numTicks:S,onSliderMousedown:M,onSliderTouchstart:Y,parsedTicks:te,parseMouseMove:O,position:I,readonly:Fe(t,"readonly"),rounded:Fe(t,"rounded"),roundValue:g,showTicks:W,startOffset:A,step:h,thumbSize:v,thumbColor:x,thumbLabel:Fe(t,"thumbLabel"),ticks:Fe(t,"ticks"),tickSize:y,trackColor:k,trackContainerRef:D,trackFillColor:P,trackSize:_,vertical:u};return an(Vx,oe),oe},zre=Oe({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...ct()},"VSliderThumb"),oC=ze()({name:"VSliderThumb",directives:{Ripple:dc},props:zre(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=kt(Vx),{isRtl:a,rtlClasses:o}=Sr();if(!r)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:s,step:l,disabled:u,thumbSize:c,thumbLabel:d,direction:f,isReversed:h,vertical:m,readonly:g,elevation:v,mousePressed:y,decimals:_,indexFromEnd:S}=r,w=B(()=>u.value?void 0:v.value),{elevationClasses:x}=ta(w),{textColorClasses:k,textColorStyles:P}=_a(s),{pageup:E,pagedown:A,end:D,home:T,left:O,right:N,down:V,up:j}=F5,q=[E,A,D,T,O,N,V,j],ne=B(()=>l.value?[1,2,3]:[1,5,10]);function ae(M,I){if(!q.includes(M.key))return;M.preventDefault();const W=l.value||.1,te=(e.max-e.min)/W;if([O,N,V,j].includes(M.key)){const oe=(m.value?[a.value?O:N,h.value?V:j]:S.value!==a.value?[O,j]:[N,j]).includes(M.key)?1:-1,U=M.shiftKey?2:M.ctrlKey?1:0;I=I+oe*W*ne.value[U]}else if(M.key===T)I=e.min;else if(M.key===D)I=e.max;else{const he=M.key===A?1:-1;I=I-he*W*(te>100?te/10:10)}return Math.max(e.min,Math.min(e.max,I))}function Y(M){const I=ae(M,e.modelValue);I!=null&&i("update:modelValue",I)}return We(()=>{const M=st(S.value?100-e.position:e.position,"%");return C("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&y.value},e.class,o.value],style:[{"--v-slider-thumb-position":M,"--v-slider-thumb-size":st(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-label":e.name,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":f.value,onKeydown:g.value?void 0:Y},[C("div",{class:["v-slider-thumb__surface",k.value,x.value],style:{...P.value}},null),xt(C("div",{class:["v-slider-thumb__ripple",k.value],style:P.value},null),[[po("ripple"),e.ripple,null,{circle:!0,center:!0}]]),C(bx,{origin:"bottom center"},{default:()=>{var I;return[xt(C("div",{class:"v-slider-thumb__label-container"},[C("div",{class:["v-slider-thumb__label"]},[C("div",null,[((I=n["thumb-label"])==null?void 0:I.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?_.value:1)])])]),[[hn,d.value&&e.focused||d.value==="always"]])]}})])}),{}}});const jre=Oe({start:{type:Number,required:!0},stop:{type:Number,required:!0},...ct()},"VSliderTrack"),VL=ze()({name:"VSliderTrack",props:jre(),emits:{},setup(e,t){let{slots:n}=t;const i=kt(Vx);if(!i)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:r,parsedTicks:a,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:f,min:h,max:m,indexFromEnd:g}=i,{roundedClasses:v}=Ti(o),{backgroundColorClasses:y,backgroundColorStyles:_}=Rn(c),{backgroundColorClasses:S,backgroundColorStyles:w}=Rn(u),x=B(()=>`inset-${f.value?"block":"inline"}-${g.value?"end":"start"}`),k=B(()=>f.value?"height":"width"),P=B(()=>({[x.value]:"0%",[k.value]:"100%"})),E=B(()=>e.stop-e.start),A=B(()=>({[x.value]:st(e.start,"%"),[k.value]:st(E.value,"%")})),D=B(()=>s.value?(f.value?a.value.slice().reverse():a.value).map((O,N)=>{var j;const V=O.value!==h.value&&O.value!==m.value?st(O.position,"%"):void 0;return C("div",{key:O.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":O.position>=e.start&&O.position<=e.stop,"v-slider-track__tick--first":O.value===h.value,"v-slider-track__tick--last":O.value===m.value}],style:{[x.value]:V}},[(O.label||n["tick-label"])&&C("div",{class:"v-slider-track__tick-label"},[((j=n["tick-label"])==null?void 0:j.call(n,{tick:O,index:N}))??O.label])])}):[]);return We(()=>C("div",{class:["v-slider-track",v.value,e.class],style:[{"--v-slider-track-size":st(d.value),"--v-slider-tick-size":st(l.value)},e.style]},[C("div",{class:["v-slider-track__background",S.value,{"v-slider-track__background--opacity":!!r.value||!c.value}],style:{...P.value,...w.value}},null),C("div",{class:["v-slider-track__fill",y.value],style:{...A.value,..._.value}},null),s.value&&C("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":s.value==="always"}]},[D.value])])),{}}}),Ure=Oe({...wm(),...LL(),...fc(),modelValue:{type:[Number,String],default:0}},"VSlider"),G_=ze()({name:"VSlider",props:Ure(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=z(),{rtlClasses:a}=Sr(),o=RL(e),s=vt(e,"modelValue",void 0,k=>o.roundValue(k??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:d,onSliderMousedown:f,onSliderTouchstart:h,trackContainerRef:m,position:g,hasLabels:v,readonly:y}=FL({props:e,steps:o,onSliderStart:()=>{i("start",s.value)},onSliderEnd:k=>{let{value:P}=k;const E=d(P);s.value=E,i("end",E)},onSliderMove:k=>{let{value:P}=k;return s.value=d(P)},getActiveThumb:()=>{var k;return(k=r.value)==null?void 0:k.$el}}),{isFocused:_,focus:S,blur:w}=au(e),x=B(()=>g(s.value));return We(()=>{const k=ba.filterProps(e),P=!!(e.label||n.label||n.prepend);return C(ba,Me({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||v.value,"v-slider--focused":_.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},a.value,e.class],style:e.style},k,{focused:_.value}),{...n,prepend:P?E=>{var A,D;return C(Ue,null,[((A=n.label)==null?void 0:A.call(n,E))??(e.label?C(bm,{id:E.id.value,class:"v-slider__label",text:e.label},null):void 0),(D=n.prepend)==null?void 0:D.call(n,E)])}:void 0,default:E=>{let{id:A,messagesId:D}=E;return C("div",{class:"v-slider__container",onMousedown:y.value?void 0:f,onTouchstartPassive:y.value?void 0:h},[C("input",{id:A.value,name:e.name||A.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:s.value},null),C(VL,{ref:m,start:0,stop:x.value},{"tick-label":n["tick-label"]}),C(oC,{ref:r,"aria-describedby":D.value,focused:_.value,min:l.value,max:u.value,modelValue:s.value,"onUpdate:modelValue":T=>s.value=T,position:x.value,elevation:e.elevation,onFocus:S,onBlur:w,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),{}}}),Hre=Oe({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...ct()},"VColorPickerPreview"),qre=qo({name:"VColorPickerPreview",props:Hre(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const i=new AbortController;ys(()=>i.abort());async function r(){if(!y6)return;const a=new window.EyeDropper;try{const o=await a.open({signal:i.signal}),s=uM(o.sRGBHex);n("update:color",{...e.color??rp,...s})}catch{}}return We(()=>{var a,o;return C("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[y6&&C("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[C(Je,{onClick:r,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),C("div",{class:"v-color-picker-preview__dot"},[C("div",{style:{background:oM(e.color??rp)}},null)]),C("div",{class:"v-color-picker-preview__sliders"},[C(G_,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(a=e.color)==null?void 0:a.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??rp,h:s}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&C(G_,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((o=e.color)==null?void 0:o.a)??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??rp,a:s}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}});const Yre={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},Wre={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},Gre={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},Kre={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},Zre={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},Xre={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},Jre={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},Qre={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},eae={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},tae={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},nae={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},iae={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},rae={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},aae={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},oae={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},sae={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},lae={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},uae={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},cae={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},dae={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},fae={red:Yre,pink:Wre,purple:Gre,deepPurple:Kre,indigo:Zre,blue:Xre,lightBlue:Jre,cyan:Qre,teal:eae,green:tae,lightGreen:nae,lime:iae,yellow:rae,amber:aae,orange:oae,deepOrange:sae,brown:lae,blueGrey:uae,grey:cae,shades:dae},hae=Oe({swatches:{type:Array,default:()=>pae(fae)},disabled:Boolean,color:Object,maxHeight:[Number,String],...ct()},"VColorPickerSwatches");function pae(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const mae=qo({name:"VColorPickerSwatches",props:hae(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return We(()=>C("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:st(e.maxHeight)},e.style]},[C("div",null,[e.swatches.map(i=>C("div",{class:"v-color-picker-swatches__swatch"},[i.map(r=>{const a=ds(r),o=P2(a),s=aM(a);return C("div",{class:"v-color-picker-swatches__color",onClick:()=>o&&n("update:color",o)},[C("div",{style:{background:s}},[e.color&&tu(e.color,o)?C(ut,{size:"x-small",icon:"$success",color:fte(r,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}});const q2=Oe({color:String,...mo(),...ct(),...rr(),...Cr(),...cc(),...ym(),...pi(),...Vt(),...fn()},"VSheet"),rc=ze()({name:"VSheet",props:q2(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(Fe(e,"color")),{borderClasses:o}=Wo(e),{dimensionStyles:s}=ar(e),{elevationClasses:l}=ta(e),{locationStyles:u}=uh(e),{positionClasses:c}=_m(e),{roundedClasses:d}=Ti(e);return We(()=>C(e.tag,{class:["v-sheet",i.value,r.value,o.value,l.value,c.value,d.value,e.class],style:[a.value,s.value,u.value,e.style]},n)),{}}}),vae=Oe({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Of).includes(e)},modes:{type:Array,default:()=>Object.keys(Of),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Of).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...Li(q2({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),gae=qo({name:"VColorPicker",props:vae(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=vt(e,"mode"),n=z(null),i=vt(e,"modelValue",void 0,l=>{if(l==null||l==="")return null;let u;try{u=P2(ds(l))}catch{return null}return u},l=>l?Ire(l,e.modelValue):null),r=B(()=>i.value?{...i.value,h:n.value??i.value.h}:null),{rtlClasses:a}=Sr();let o=!0;Ve(i,l=>{if(!o){o=!0;return}l&&(n.value=l.h)},{immediate:!0});const s=l=>{o=!1,n.value=l.h,i.value=l};return th(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Si({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),We(()=>{const l=rc.filterProps(e);return C(rc,Me({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",a.value,e.class],style:[{"--v-color-picker-color-hsv":oM({...r.value??rp,a:1})},e.style]},l,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&C(Ore,{key:"canvas",color:r.value,"onUpdate:color":s,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&C("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&C(qre,{key:"preview",color:r.value,"onUpdate:color":s,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&C(Vre,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":u=>t.value=u,color:r.value,"onUpdate:color":s,disabled:e.disabled},null)]),e.showSwatches&&C(mae,{key:"swatches",color:r.value,"onUpdate:color":s,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function yae(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?C(Ue,null,[C("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),C("span",{class:"v-combobox__mask"},[e.substr(t,n)]),C("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const _ae=Oe({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...G1({filterKeys:["title"]}),...Rx({hideNoData:!0,returnObject:!0}),...Li(W1({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...dl({transition:!1})},"VCombobox"),K_=ze()({name:"VCombobox",props:_ae(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var Te;let{emit:n,slots:i}=t;const{t:r}=ki(),a=z(),o=it(!1),s=it(!0),l=it(!1),u=z(),c=z(),d=vt(e,"menu"),f=B({get:()=>d.value,set:Z=>{var X;d.value&&!Z&&((X=u.value)!=null&&X.ΨopenChildren.size)||(d.value=Z)}}),h=it(-1);let m=!1;const g=B(()=>{var Z;return(Z=a.value)==null?void 0:Z.color}),v=B(()=>f.value?e.closeText:e.openText),{items:y,transformIn:_,transformOut:S}=Ax(e),{textColorClasses:w,textColorStyles:x}=_a(g),k=vt(e,"modelValue",[],Z=>_(hi(Z)),Z=>{const X=S(Z);return e.multiple?X:X[0]??null}),P=F2(e),E=B(()=>!!(e.chips||i.chip)),A=B(()=>E.value||!!i.selection),D=it(!e.multiple&&!A.value?((Te=k.value[0])==null?void 0:Te.title)??"":""),T=B({get:()=>D.value,set:Z=>{var X;if(D.value=Z??"",!e.multiple&&!A.value&&(k.value=[Bc(e,Z)]),Z&&e.multiple&&((X=e.delimiters)!=null&&X.length)){const ye=Z.split(new RegExp(`(?:${e.delimiters.join("|")})+`));ye.length>1&&(ye.forEach(Se=>{Se=Se.trim(),Se&&re(Bc(e,Se))}),D.value="")}Z||(h.value=-1),s.value=!Z}}),O=B(()=>typeof e.counterValue=="function"?e.counterValue(k.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?k.value.length:T.value.length);Ve(D,Z=>{m?Pt(()=>m=!1):o.value&&!f.value&&(f.value=!0),n("update:search",Z)}),Ve(k,Z=>{var X;!e.multiple&&!A.value&&(D.value=((X=Z[0])==null?void 0:X.title)??"")});const{filteredItems:N,getMatches:V}=K1(e,y,()=>s.value?"":T.value),j=B(()=>e.hideSelected?N.value.filter(Z=>!k.value.some(X=>X.value===Z.value)):N.value),q=B(()=>k.value.map(Z=>Z.value)),ne=B(()=>{var X;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&T.value===((X=j.value[0])==null?void 0:X.title))&&j.value.length>0&&!s.value&&!l.value}),ae=B(()=>e.hideNoData&&!j.value.length||P.isReadonly.value||P.isDisabled.value),Y=z(),M=Lx(Y,a);function I(Z){m=!0,e.openOnClear&&(f.value=!0)}function W(){ae.value||(f.value=!0)}function te(Z){ae.value||(o.value&&(Z.preventDefault(),Z.stopPropagation()),f.value=!f.value)}function he(Z){var X;U_(Z)&&((X=a.value)==null||X.focus())}function oe(Z){var Se;if(Ree(Z)||P.isReadonly.value)return;const X=a.value.selectionStart,ye=k.value.length;if((h.value>-1||["Enter","ArrowDown","ArrowUp"].includes(Z.key))&&Z.preventDefault(),["Enter","ArrowDown"].includes(Z.key)&&(f.value=!0),["Escape"].includes(Z.key)&&(f.value=!1),["Enter","Escape","Tab"].includes(Z.key)&&(ne.value&&["Enter","Tab"].includes(Z.key)&&!k.value.some(Ee=>{let{value:_e}=Ee;return _e===j.value[0].value})&&re(N.value[0]),s.value=!0),Z.key==="ArrowDown"&&ne.value&&((Se=Y.value)==null||Se.focus("next")),Z.key==="Enter"&&T.value&&(re(Bc(e,T.value)),A.value&&(D.value="")),["Backspace","Delete"].includes(Z.key)){if(!e.multiple&&A.value&&k.value.length>0&&!T.value)return re(k.value[0],!1);if(~h.value){const Ee=h.value;re(k.value[h.value],!1),h.value=Ee>=ye-1?ye-2:Ee}else Z.key==="Backspace"&&!T.value&&(h.value=ye-1)}if(e.multiple){if(Z.key==="ArrowLeft"){if(h.value<0&&X>0)return;const Ee=h.value>-1?h.value-1:ye-1;k.value[Ee]?h.value=Ee:(h.value=-1,a.value.setSelectionRange(T.value.length,T.value.length))}if(Z.key==="ArrowRight"){if(h.value<0)return;const Ee=h.value+1;k.value[Ee]?h.value=Ee:(h.value=-1,a.value.setSelectionRange(0,0))}}}function U(){var Z;e.eager&&((Z=c.value)==null||Z.calculateVisibleItems())}function ee(){var Z;o.value&&(s.value=!0,(Z=a.value)==null||Z.focus())}function re(Z){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!Z||Z.props.disabled))if(e.multiple){const ye=k.value.findIndex(Ee=>e.valueComparator(Ee.value,Z.value)),Se=X??!~ye;if(~ye){const Ee=Se?[...k.value,Z]:[...k.value];Ee.splice(ye,1),k.value=Ee}else Se&&(k.value=[...k.value,Z]);e.clearOnSelect&&(T.value="")}else{const ye=X!==!1;k.value=ye?[Z]:[],D.value=ye&&!A.value?Z.title:"",Pt(()=>{f.value=!1,s.value=!0})}}function ue(Z){o.value=!0,setTimeout(()=>{l.value=!0})}function pe(Z){l.value=!1}function ge(Z){(Z==null||Z===""&&!e.multiple&&!A.value)&&(k.value=[])}return Ve(o,(Z,X)=>{if(!(Z||Z===X)&&(h.value=-1,f.value=!1,T.value)){if(e.multiple){re(Bc(e,T.value));return}if(!A.value)return;k.value.some(ye=>{let{title:Se}=ye;return Se===T.value})?D.value="":re(Bc(e,T.value))}}),Ve(f,()=>{if(!e.hideSelected&&f.value&&k.value.length){const Z=j.value.findIndex(X=>k.value.some(ye=>e.valueComparator(ye.value,X.value)));En&&window.requestAnimationFrame(()=>{var X;Z>=0&&((X=c.value)==null||X.scrollToIndex(Z))})}}),Ve(()=>e.items,(Z,X)=>{f.value||o.value&&!X.length&&Z.length&&(f.value=!0)}),We(()=>{const Z=!!(!e.hideNoData||j.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),X=k.value.length>0,ye=Tn.filterProps(e);return C(Tn,Me({ref:a},ye,{modelValue:T.value,"onUpdate:modelValue":[Se=>T.value=Se,ge],focused:o.value,"onUpdate:focused":Se=>o.value=Se,validationValue:k.externalValue,counterValue:O.value,dirty:X,class:["v-combobox",{"v-combobox--active-menu":f.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!A.value,"v-combobox--selecting-index":h.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:P.isReadonly.value,placeholder:X?void 0:e.placeholder,"onClick:clear":I,"onMousedown:control":W,onKeydown:oe}),{...i,default:()=>C(Ue,null,[C(ho,Me({ref:u,modelValue:f.value,"onUpdate:modelValue":Se=>f.value=Se,activator:"parent",contentClass:"v-combobox__content",disabled:ae.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:U,onAfterLeave:ee},e.menuProps),{default:()=>[Z&&C(rl,Me({ref:Y,selected:q.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Se=>Se.preventDefault(),onKeydown:he,onFocusin:ue,onFocusout:pe,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},M,e.listProps),{default:()=>{var Se,Ee,_e;return[(Se=i["prepend-item"])==null?void 0:Se.call(i),!j.value.length&&!e.hideNoData&&(((Ee=i["no-data"])==null?void 0:Ee.call(i))??C(fi,{key:"no-data",title:r(e.noDataText)},null)),C(z2,{ref:c,renderless:!0,items:j.value},{default:be=>{var Re;let{item:ie,index:se,itemRef:de}=be;const xe=Me(ie.props,{ref:de,key:ie.value,active:ne.value&&se===0?!0:void 0,onClick:()=>re(ie,null)});return((Re=i.item)==null?void 0:Re.call(i,{item:ie,index:se,props:xe}))??C(fi,Me(xe,{role:"option"}),{prepend:Pe=>{let{isSelected:we}=Pe;return C(Ue,null,[e.multiple&&!e.hideSelected?C(ic,{key:ie.value,modelValue:we,ripple:!1,tabindex:"-1"},null):void 0,ie.props.prependAvatar&&C(Ui,{image:ie.props.prependAvatar},null),ie.props.prependIcon&&C(ut,{icon:ie.props.prependIcon},null)])},title:()=>{var Pe,we;return s.value?ie.title:yae(ie.title,(Pe=V(ie))==null?void 0:Pe.title,((we=T.value)==null?void 0:we.length)??0)}})}}),(_e=i["append-item"])==null?void 0:_e.call(i)]}})]}),k.value.map((Se,Ee)=>{function _e(de){de.stopPropagation(),de.preventDefault(),re(Se,!1)}const be={"onClick:close":_e,onKeydown(de){de.key!=="Enter"&&de.key!==" "||(de.preventDefault(),de.stopPropagation(),_e(de))},onMousedown(de){de.preventDefault(),de.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ie=E.value?!!i.chip:!!i.selection,se=ie?T2(E.value?i.chip({item:Se,index:Ee,props:be}):i.selection({item:Se,index:Ee})):void 0;if(!(ie&&!se))return C("div",{key:Se.value,class:["v-combobox__selection",Ee===h.value&&["v-combobox__selection--selected",w.value]],style:Ee===h.value?x.value:{}},[E.value?i.chip?C(Yt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Se.title}}},{default:()=>[se]}):C(ma,Me({key:"chip",closable:e.closableChips,size:"small",text:Se.title,disabled:Se.props.disabled},be),null):se??C("span",{class:"v-combobox__selection-text"},[Se.title,e.multiple&&Ee<k.value.length-1&&C("span",{class:"v-combobox__selection-comma"},[Ze(",")])])])})]),"append-inner":function(){var be;for(var Se=arguments.length,Ee=new Array(Se),_e=0;_e<Se;_e++)Ee[_e]=arguments[_e];return C(Ue,null,[(be=i["append-inner"])==null?void 0:be.call(i,...Ee),(!e.hideNoData||e.items.length)&&e.menuIcon?C(ut,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:te,onClick:JN,"aria-label":r(v.value),title:r(v.value),tabindex:"-1"},null):void 0])}})}),ws({isFocused:o,isPristine:s,menu:f,search:T,selectionIndex:h,filteredItems:N,select:re},a)}}),Y2={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function bae(e,t,n){const i=[];let r=[];const a=BL(e),o=zL(e),s=n??Y2[t.slice(-2).toUpperCase()]??0,l=(a.getDay()-s+7)%7,u=(o.getDay()-s+7)%7;for(let c=0;c<l;c++){const d=new Date(a);d.setDate(d.getDate()-(l-c)),r.push(d)}for(let c=1;c<=o.getDate();c++){const d=new Date(e.getFullYear(),e.getMonth(),c);r.push(d),r.length===7&&(i.push(r),r=[])}for(let c=1;c<7-u;c++){const d=new Date(o);d.setDate(d.getDate()+c),r.push(d)}return r.length>0&&i.push(r),i}function wae(e,t,n){const i=n??Y2[t.slice(-2).toUpperCase()]??0,r=new Date(e);for(;r.getDay()!==i;)r.setDate(r.getDate()-1);return r}function Sae(e,t){const n=new Date(e),i=((Y2[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==i;)n.setDate(n.getDate()+1);return n}function BL(e){return new Date(e.getFullYear(),e.getMonth(),1)}function zL(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Cae(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Eae=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function jL(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Eae.test(e))return Cae(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const lP=new Date(2e3,0,2);function xae(e,t){const n=t??Y2[e.slice(-2).toUpperCase()]??0;return Ll(7).map(i=>{const r=new Date(lP);return r.setDate(lP.getDate()+n+i),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function kae(e,t,n,i){const r=jL(e)??new Date,a=i==null?void 0:i[t];if(typeof a=="function")return a(r,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const s=r.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(r);return`${s} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(r.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:o=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(r)}function Tae(e,t){const n=e.toJsDate(t),i=n.getFullYear(),r=E6(String(n.getMonth()+1),2,"0"),a=E6(String(n.getDate()),2,"0");return`${i}-${r}-${a}`}function Pae(e){const[t,n,i]=e.split("-").map(Number);return new Date(t,n-1,i)}function $ae(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Aae(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Oae(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Dae(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Iae(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function Nae(e){return e.getFullYear()}function Mae(e){return e.getMonth()}function Lae(e){return e.getDate()}function Rae(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function Fae(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Vae(e){return e.getHours()}function Bae(e){return e.getMinutes()}function zae(e){return new Date(e.getFullYear(),0,1)}function jae(e){return new Date(e.getFullYear(),11,31)}function Uae(e,t){return Z_(e,t[0])&&Yae(e,t[1])}function Hae(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Z_(e,t){return e.getTime()>t.getTime()}function qae(e,t){return Z_(sC(e),sC(t))}function Yae(e,t){return e.getTime()<t.getTime()}function uP(e,t){return e.getTime()===t.getTime()}function Wae(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Gae(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Kae(e,t){return e.getFullYear()===t.getFullYear()}function Zae(e,t,n){const i=new Date(e),r=new Date(t);switch(n){case"years":return i.getFullYear()-r.getFullYear();case"quarters":return Math.floor((i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12)/4);case"months":return i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12;case"weeks":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24));case"hours":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60));case"minutes":return Math.floor((i.getTime()-r.getTime())/(1e3*60));case"seconds":return Math.floor((i.getTime()-r.getTime())/1e3);default:return i.getTime()-r.getTime()}}function Xae(e,t){const n=new Date(e);return n.setHours(t),n}function Jae(e,t){const n=new Date(e);return n.setMinutes(t),n}function Qae(e,t){const n=new Date(e);return n.setMonth(t),n}function eoe(e,t){const n=new Date(e);return n.setDate(t),n}function toe(e,t){const n=new Date(e);return n.setFullYear(t),n}function sC(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function noe(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class ioe{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return jL(t)}toJsDate(t){return t}toISO(t){return Tae(this,t)}parseISO(t){return Pae(t)}addMinutes(t,n){return $ae(t,n)}addHours(t,n){return Aae(t,n)}addDays(t,n){return Oae(t,n)}addWeeks(t,n){return Dae(t,n)}addMonths(t,n){return Iae(t,n)}getWeekArray(t,n){return bae(t,this.locale,n?Number(n):void 0)}startOfWeek(t,n){return wae(t,this.locale,n?Number(n):void 0)}endOfWeek(t){return Sae(t,this.locale)}startOfMonth(t){return BL(t)}endOfMonth(t){return zL(t)}format(t,n){return kae(t,n,this.locale,this.formats)}isEqual(t,n){return uP(t,n)}isValid(t){return Hae(t)}isWithinRange(t,n){return Uae(t,n)}isAfter(t,n){return Z_(t,n)}isAfterDay(t,n){return qae(t,n)}isBefore(t,n){return!Z_(t,n)&&!uP(t,n)}isSameDay(t,n){return Wae(t,n)}isSameMonth(t,n){return Gae(t,n)}isSameYear(t,n){return Kae(t,n)}setMinutes(t,n){return Jae(t,n)}setHours(t,n){return Xae(t,n)}setMonth(t,n){return Qae(t,n)}setDate(t,n){return eoe(t,n)}setYear(t,n){return toe(t,n)}getDiff(t,n,i){return Zae(t,n,i)}getWeekdays(t){return xae(this.locale,t?Number(t):void 0)}getYear(t){return Nae(t)}getMonth(t){return Mae(t)}getDate(t){return Lae(t)}getNextMonth(t){return Rae(t)}getPreviousMonth(t){return Fae(t)}getHours(t){return Vae(t)}getMinutes(t){return Bae(t)}startOfDay(t){return sC(t)}endOfDay(t){return noe(t)}startOfYear(t){return zae(t)}endOfYear(t){return jae(t)}}const UL=Symbol.for("vuetify:date-options"),cP=Symbol.for("vuetify:date-adapter");function roe(e,t){const n=$a({adapter:ioe,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:HL(n,t)}}function HL(e,t){const n=er(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Ve(t.current,i=>{n.locale=e.locale[i]??i??n.locale}),n}function Cm(){const e=kt(UL);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=ki();return HL(e,t)}function aoe(e,t){const n=e.toJsDate(t);let i=n.getFullYear(),r=new Date(i,0,1);if(n<r)i=i-1,r=new Date(i,0,1);else{const s=new Date(i+1,0,1);n>=s&&(i=i+1,r=s)}const a=Math.abs(n.getTime()-r.getTime()),o=Math.ceil(a/(1e3*60*60*24));return Math.floor(o/7)+1}const qL=Oe({modelValue:null,color:String,cancelText:{type:String,default:"$vuetify.confirmEdit.cancel"},okText:{type:String,default:"$vuetify.confirmEdit.ok"}},"VConfirmEdit"),lC=ze()({name:"VConfirmEdit",props:qL(),emits:{cancel:()=>!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=vt(e,"modelValue"),a=z();Wi(()=>{a.value=structuredClone($t(r.value))});const{t:o}=ki(),s=B(()=>tu(r.value,a.value));function l(){r.value=a.value,n("save",a.value)}function u(){a.value=structuredClone($t(r.value)),n("cancel")}function c(f){return C(Ue,null,[C(Je,Me({disabled:s.value,variant:"text",color:e.color,onClick:u,text:o(e.cancelText)},f),null),C(Je,Me({disabled:s.value,variant:"text",color:e.color,onClick:l,text:o(e.okText)},f),null)])}let d=!1;return We(()=>{var f;return C(Ue,null,[(f=i.default)==null?void 0:f.call(i,{model:a,save:l,cancel:u,isPristine:s.value,get actions(){return d=!0,c}}),!d&&c()])}),{save:l,cancel:u,isPristine:s}}}),YL=Oe({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),WL=Symbol.for("vuetify:datatable:expanded");function W2(e){const t=Fe(e,"expandOnClick"),n=vt(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function i(s,l){const u=new Set(n.value);l?u.add(s.value):u.delete(s.value),n.value=u}function r(s){return n.value.has(s.value)}function a(s){i(s,!r(s))}const o={expand:i,expanded:n,expandOnClick:t,isExpanded:r,toggleExpand:a};return an(WL,o),o}function GL(){const e=kt(WL);if(!e)throw new Error("foo");return e}const Bx=Oe({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),KL=Symbol.for("vuetify:data-table-group");function zx(e){return{groupBy:vt(e,"groupBy")}}function G2(e){const{disableSort:t,groupBy:n,sortBy:i}=e,r=z(new Set),a=B(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t!=null&&t.value?[]:i.value));function o(c){return r.value.has(c.id)}function s(c){const d=new Set(r.value);o(c)?d.delete(c.id):d.add(c.id),r.value=d}function l(c){function d(f){const h=[];for(const m of f.items)"type"in m&&m.type==="group"?h.push(...d(m)):h.push(m);return h}return d({type:"group",items:c,id:"dummy",key:"dummy",value:"dummy",depth:0})}const u={sortByWithGroups:a,toggleGroup:s,opened:r,groupBy:n,extractRows:l,isGroupOpen:o};return an(KL,u),u}function ZL(){const e=kt(KL);if(!e)throw new Error("Missing group!");return e}function ooe(e,t){if(!e.length)return[];const n=new Map;for(const i of e){const r=zf(i.raw,t);n.has(r)||n.set(r,[]),n.get(r).push(i)}return n}function XL(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const r=ooe(e,t[0]),a=[],o=t.slice(1);return r.forEach((s,l)=>{const u=t[0],c=`${i}_${u}_${l}`;a.push({depth:n,id:c,key:u,value:l,items:o.length?XL(s,o,n+1,c):s,type:"group"})}),a}function JL(e,t){const n=[];for(const i of e)"type"in i&&i.type==="group"?(i.value!=null&&n.push(i),(t.has(i.id)||i.value==null)&&n.push(...JL(i.items,t))):n.push(i);return n}function K2(e,t,n){return{flatItems:B(()=>{if(!t.value.length)return e.value;const r=XL(e.value,t.value.map(a=>a.key));return JL(r,n.value)})}}function Z2(e){let{page:t,itemsPerPage:n,sortBy:i,groupBy:r,search:a}=e;const o=xi("VDataTable"),s=B(()=>({page:t.value,itemsPerPage:n.value,sortBy:i.value,groupBy:r.value,search:a.value}));let l=null;Ve(s,()=>{tu(l,s.value)||(l&&l.search!==s.value.search&&(t.value=1),o.emit("update:options",s.value),l=s.value)},{deep:!0,immediate:!0})}const jx=Oe({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),QL=Symbol.for("vuetify:data-table-pagination");function Ux(e){const t=vt(e,"page",void 0,i=>+(i??1)),n=vt(e,"itemsPerPage",void 0,i=>+(i??10));return{page:t,itemsPerPage:n}}function Hx(e){const{page:t,itemsPerPage:n,itemsLength:i}=e,r=B(()=>n.value===-1?0:n.value*(t.value-1)),a=B(()=>n.value===-1?i.value:Math.min(i.value,r.value+n.value)),o=B(()=>n.value===-1||i.value===0?1:Math.ceil(i.value/n.value));Ve([t,o],()=>{t.value>o.value&&(t.value=o.value)});function s(f){n.value=f,t.value=1}function l(){t.value=qi(t.value+1,1,o.value)}function u(){t.value=qi(t.value-1,1,o.value)}function c(f){t.value=qi(f,1,o.value)}const d={page:t,itemsPerPage:n,startIndex:r,stopIndex:a,pageCount:o,itemsLength:i,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:s};return an(QL,d),d}function soe(){const e=kt(QL);if(!e)throw new Error("Missing pagination!");return e}function eR(e){const t=xi("usePaginatedItems"),{items:n,startIndex:i,stopIndex:r,itemsPerPage:a}=e,o=B(()=>a.value<=0?n.value:n.value.slice(i.value,r.value));return Ve(o,s=>{t.emit("update:currentItems",s)}),{paginatedItems:o}}const loe={showSelectAll:!1,allSelected:()=>[],select:e=>{var i;let{items:t,value:n}=e;return new Set(n?[(i=t[0])==null?void 0:i.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},tR={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:i}=e;for(const r of t)n?i.add(r.value):i.delete(r.value);return i},selectAll:e=>{let{value:t,currentPage:n,selected:i}=e;return tR.select({items:n,value:t,selected:i})}},nR={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:i}=e;for(const r of t)n?i.add(r.value):i.delete(r.value);return i},selectAll:e=>{let{value:t,allItems:n,selected:i}=e;return nR.select({items:n,value:t,selected:i})}},iR=Oe({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:tu}},"DataTable-select"),rR=Symbol.for("vuetify:data-table-selection");function X2(e,t){let{allItems:n,currentPage:i}=t;const r=vt(e,"modelValue",e.modelValue,y=>new Set(hi(y).map(_=>{var S;return((S=n.value.find(w=>e.valueComparator(_,w.value)))==null?void 0:S.value)??_})),y=>[...y.values()]),a=B(()=>n.value.filter(y=>y.selectable)),o=B(()=>i.value.filter(y=>y.selectable)),s=B(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return loe;case"all":return nR;case"page":default:return tR}});function l(y){return hi(y).every(_=>r.value.has(_.value))}function u(y){return hi(y).some(_=>r.value.has(_.value))}function c(y,_){const S=s.value.select({items:y,value:_,selected:new Set(r.value)});r.value=S}function d(y){c([y],!l([y]))}function f(y){const _=s.value.selectAll({value:y,allItems:a.value,currentPage:o.value,selected:new Set(r.value)});r.value=_}const h=B(()=>r.value.size>0),m=B(()=>{const y=s.value.allSelected({allItems:a.value,currentPage:o.value});return!!y.length&&l(y)}),g=B(()=>s.value.showSelectAll),v={toggleSelect:d,select:c,selectAll:f,isSelected:l,isSomeSelected:u,someSelected:h,allSelected:m,showSelectAll:g};return an(rR,v),v}function J2(){const e=kt(rR);if(!e)throw new Error("Missing selection!");return e}const aR=Oe({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),oR=Symbol.for("vuetify:data-table-sort");function Q2(e){const t=vt(e,"sortBy"),n=Fe(e,"mustSort"),i=Fe(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:i}}function ew(e){const{sortBy:t,mustSort:n,multiSort:i,page:r}=e,a=l=>{if(l.key==null)return;let u=t.value.map(d=>({...d}))??[];const c=u.find(d=>d.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(d=>d.key!==l.key):c.order="desc":i.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,r&&(r.value=1)};function o(l){return!!t.value.find(u=>u.key===l.key)}const s={sortBy:t,toggleSort:a,isSorted:o};return an(oR,s),s}function sR(){const e=kt(oR);if(!e)throw new Error("Missing sort!");return e}function qx(e,t,n,i){const r=ki();return{sortedItems:B(()=>{var o,s;return n.value.length?uoe(t.value,n.value,r.current.value,{transform:i==null?void 0:i.transform,sortFunctions:{...e.customKeySort,...(o=i==null?void 0:i.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=i==null?void 0:i.sortRawFunctions)==null?void 0:s.value}):t.value})}}function uoe(e,t,n,i){const r=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,i!=null&&i.transform?i.transform(o):o]).sort((o,s)=>{var l,u;for(let c=0;c<t.length;c++){let d=!1;const f=t[c].key,h=t[c].order??"asc";if(h===!1)continue;let m=zf(o[1],f),g=zf(s[1],f),v=o[0].raw,y=s[0].raw;if(h==="desc"&&([m,g]=[g,m],[v,y]=[y,v]),(l=i==null?void 0:i.sortRawFunctions)!=null&&l[f]){const _=i.sortRawFunctions[f](v,y);if(_==null)continue;if(d=!0,_)return _}if((u=i==null?void 0:i.sortFunctions)!=null&&u[f]){const _=i.sortFunctions[f](m,g);if(_==null)continue;if(d=!0,_)return _}if(!d){if(m instanceof Date&&g instanceof Date)return m.getTime()-g.getTime();if([m,g]=[m,g].map(_=>_!=null?_.toString().toLocaleLowerCase():_),m!==g)return Yy(m)&&Yy(g)?0:Yy(m)?-1:Yy(g)?1:!isNaN(m)&&!isNaN(g)?Number(m)-Number(g):r.compare(m,g)}}return 0}).map(o=>{let[s]=o;return s})}const coe=Oe({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function doe(e,t){const n=e.returnObject?t:vr(t,e.itemValue),i=vr(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:i,raw:t}}function foe(e,t){const n=[];for(const i of t)n.push(doe(e,i));return n}function hoe(e){return{items:B(()=>foe(e,e.items))}}const poe=Oe({search:String,loading:Boolean,...ct(),...coe(),...iR(),...aR(),...jx({itemsPerPage:5}),...YL(),...Bx(),...G1(),...Vt(),...dl({transition:{component:Zg,hideOnLeave:!0}})},"VDataIterator"),moe=ze()({name:"VDataIterator",props:poe(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"groupBy"),r=Fe(e,"search"),{items:a}=hoe(e),{filteredItems:o}=K1(e,a,r,{transform:I=>I.raw}),{sortBy:s,multiSort:l,mustSort:u}=Q2(e),{page:c,itemsPerPage:d}=Ux(e),{toggleSort:f}=ew({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:h,opened:m,extractRows:g,isGroupOpen:v,toggleGroup:y}=G2({groupBy:i,sortBy:s}),{sortedItems:_}=qx(e,o,h,{transform:I=>I.raw}),{flatItems:S}=K2(_,i,m),w=B(()=>S.value.length),{startIndex:x,stopIndex:k,pageCount:P,prevPage:E,nextPage:A,setItemsPerPage:D,setPage:T}=Hx({page:c,itemsPerPage:d,itemsLength:w}),{paginatedItems:O}=eR({items:S,startIndex:x,stopIndex:k,itemsPerPage:d}),N=B(()=>g(O.value)),{isSelected:V,select:j,selectAll:q,toggleSelect:ne}=X2(e,{allItems:a,currentPage:N}),{isExpanded:ae,toggleExpand:Y}=W2(e);Z2({page:c,itemsPerPage:d,sortBy:s,groupBy:i,search:r});const M=B(()=>({page:c.value,itemsPerPage:d.value,sortBy:s.value,pageCount:P.value,toggleSort:f,prevPage:E,nextPage:A,setPage:T,setItemsPerPage:D,isSelected:V,select:j,selectAll:q,toggleSelect:ne,isExpanded:ae,toggleExpand:Y,isGroupOpen:v,toggleGroup:y,items:N.value,groupedItems:O.value}));return We(()=>C(e.tag,{class:["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class],style:e.style},{default:()=>{var I,W;return[(I=n.header)==null?void 0:I.call(n,M.value),C(Aa,{transition:e.transition},{default:()=>{var te,he;return[e.loading?C(j1,{key:"loader",name:"v-data-iterator",active:!0},{default:oe=>{var U;return(U=n.loader)==null?void 0:U.call(n,oe)}}):C("div",{key:"items"},[O.value.length?(he=n.default)==null?void 0:he.call(n,M.value):(te=n["no-data"])==null?void 0:te.call(n)])]}}),(W=n.footer)==null?void 0:W.call(n,M.value)]}})),{}}});function voe(){const e=z([]);aN(()=>e.value=[]);function t(n,i){e.value[i]=n}return{refs:e,updateRef:t}}const goe=Oe({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:_t,default:"$first"},prevIcon:{type:_t,default:"$prev"},nextIcon:{type:_t,default:"$next"},lastIcon:{type:_t,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...mo(),...ct(),...Mr(),...Cr(),...pi(),...ru(),...Vt({tag:"nav"}),...fn(),...bs({variant:"text"})},"VPagination"),uC=ze()({name:"VPagination",props:goe(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=vt(e,"modelValue"),{t:a,n:o}=ki(),{isRtl:s}=Sr(),{themeClasses:l}=Pn(e),{width:u}=Ki(),c=it(-1);Si(void 0,{scoped:!0});const{resizeRef:d}=il(E=>{if(!E.length)return;const{target:A,contentRect:D}=E[0],T=A.querySelector(".v-pagination__list > *");if(!T)return;const O=D.width,N=T.offsetWidth+parseFloat(getComputedStyle(T).marginRight)*2;c.value=g(O,N)}),f=B(()=>parseInt(e.length,10)),h=B(()=>parseInt(e.start,10)),m=B(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:g(u.value,58));function g(E,A){const D=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((E-A*D)/A).toFixed(2)))}const v=B(()=>{if(f.value<=0||isNaN(f.value)||f.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[r.value];if(f.value<=m.value)return Ll(f.value,h.value);const E=m.value%2===0,A=E?m.value/2:Math.floor(m.value/2),D=E?A:A+1,T=f.value-A;if(D-r.value>=0)return[...Ll(Math.max(1,m.value-1),h.value),e.ellipsis,f.value];if(r.value-T>=(E?1:0)){const O=m.value-1,N=f.value-O+h.value;return[h.value,e.ellipsis,...Ll(O,N)]}else{const O=Math.max(1,m.value-3),N=O===1?r.value:r.value-Math.ceil(O/2)+h.value;return[h.value,e.ellipsis,...Ll(O,N),e.ellipsis,f.value]}});function y(E,A,D){E.preventDefault(),r.value=A,D&&i(D,A)}const{refs:_,updateRef:S}=voe();Si({VPaginationBtn:{color:Fe(e,"color"),border:Fe(e,"border"),density:Fe(e,"density"),size:Fe(e,"size"),variant:Fe(e,"variant"),rounded:Fe(e,"rounded"),elevation:Fe(e,"elevation")}});const w=B(()=>v.value.map((E,A)=>{const D=T=>S(T,A);if(typeof E=="string")return{isActive:!1,key:`ellipsis-${A}`,page:E,props:{ref:D,ellipsis:!0,icon:!0,disabled:!0}};{const T=E===r.value;return{isActive:T,key:E,page:o(E),props:{ref:D,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:T?e.activeColor:e.color,"aria-current":T,"aria-label":a(T?e.currentPageAriaLabel:e.pageAriaLabel,E),onClick:O=>y(O,E)}}}})),x=B(()=>{const E=!!e.disabled||r.value<=h.value,A=!!e.disabled||r.value>=h.value+f.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:D=>y(D,h.value,"first"),disabled:E,"aria-label":a(e.firstAriaLabel),"aria-disabled":E}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:D=>y(D,r.value-1,"prev"),disabled:E,"aria-label":a(e.previousAriaLabel),"aria-disabled":E},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:D=>y(D,r.value+1,"next"),disabled:A,"aria-label":a(e.nextAriaLabel),"aria-disabled":A},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:D=>y(D,h.value+f.value-1,"last"),disabled:A,"aria-label":a(e.lastAriaLabel),"aria-disabled":A}:void 0}});function k(){var A;const E=r.value-h.value;(A=_.value[E])==null||A.$el.focus()}function P(E){E.key===F5.left&&!e.disabled&&r.value>+e.start?(r.value=r.value-1,Pt(k)):E.key===F5.right&&!e.disabled&&r.value<h.value+f.value-1&&(r.value=r.value+1,Pt(k))}return We(()=>C(e.tag,{ref:d,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":a(e.ariaLabel),onKeydown:P,"data-test":"v-pagination-root"},{default:()=>[C("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&C("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(x.value.first):C(Je,Me({_as:"VPaginationBtn"},x.value.first),null)]),C("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(x.value.prev):C(Je,Me({_as:"VPaginationBtn"},x.value.prev),null)]),w.value.map((E,A)=>C("li",{key:E.key,class:["v-pagination__item",{"v-pagination__item--is-active":E.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(E):C(Je,Me({_as:"VPaginationBtn"},E.props),{default:()=>[E.page]})])),C("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(x.value.next):C(Je,Me({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&C("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(x.value.last):C(Je,Me({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),Yx=Oe({prevIcon:{type:_t,default:"$prev"},nextIcon:{type:_t,default:"$next"},firstIcon:{type:_t,default:"$first"},lastIcon:{type:_t,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),n1=ze()({name:"VDataTableFooter",props:Yx(),setup(e,t){let{slots:n}=t;const{t:i}=ki(),{page:r,pageCount:a,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=soe(),d=B(()=>e.itemsPerPageOptions.map(f=>typeof f=="number"?{value:f,title:f===-1?i("$vuetify.dataFooter.itemsPerPageAll"):String(f)}:{...f,title:isNaN(Number(f.title))?i(f.title):f.title}));return We(()=>{var h;const f=uC.filterProps(e);return C("div",{class:"v-data-table-footer"},[(h=n.prepend)==null?void 0:h.call(n),C("div",{class:"v-data-table-footer__items-per-page"},[C("span",null,[i(e.itemsPerPageText)]),C(Oa,{items:d.value,modelValue:u.value,"onUpdate:modelValue":m=>c(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),C("div",{class:"v-data-table-footer__info"},[C("div",null,[i(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),C("div",{class:"v-data-table-footer__pagination"},[C(uC,Me({modelValue:r.value,"onUpdate:modelValue":m=>r.value=m,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:a.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},f),null)])])}),{}}}),X_=gte({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const i=e.tag??"td";return C(i,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:st(e.height),width:st(e.width),maxWidth:st(e.maxWidth),left:st(e.fixedOffset||null)}},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n)]}})}),yoe=Oe({headers:Array},"DataTable-header"),lR=Symbol.for("vuetify:data-table-headers"),uR={title:"",sortable:!1},_oe={...uR,width:48};function boe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,i)=>{let r=!1;for(let a=0;a<t.length;a++)if(t[a].priority>i){t.splice(a,0,{element:n,priority:i}),r=!0;break}r||t.push({element:n,priority:i})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const i=Math.floor(t[0].priority);for(let r=0;r<t.length;r++)Math.floor(t[r].priority)===i&&(n+=1);return n},dequeue:()=>t.shift()}}function cC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)cC(n,t);return t}function cR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&cR(n.children,t);return t}function woe(e){if(e.key){if(e.key==="data-table-group")return uR;if(["data-table-expand","data-table-select"].includes(e.key))return _oe}}function Wx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>Wx(n,t+1))):t}function Soe(e){let t=!1;function n(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a)if(o&&(a.fixed=!0),a.fixed)if(a.children)for(let s=a.children.length-1;s>=0;s--)n(a.children[s],!0);else t?isNaN(+a.width)&&(`${a.key}`,void 0):a.lastFixed=!0,t=!0;else if(a.children)for(let s=a.children.length-1;s>=0;s--)n(a.children[s]);else t=!1}for(let a=e.length-1;a>=0;a--)n(e[a]);function i(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!a)return o;if(a.children){a.fixedOffset=o;for(const s of a.children)o=i(s,o)}else a.fixed&&(a.fixedOffset=o,o+=parseFloat(a.width||"0")||0);return o}let r=0;for(const a of e)r=i(a,r)}function Coe(e,t){const n=[];let i=0;const r=boe(e);for(;r.size()>0;){let o=r.count();const s=[];let l=1;for(;o>0;){const{element:u,priority:c}=r.dequeue(),d=t-i-Wx(u);if(s.push({...u,rowspan:d??1,colspan:u.children?cC(u).length:1}),u.children)for(const f of u.children){const h=c%1+l/Math.pow(10,i+2);r.enqueue(f,i+d+h)}l+=1,o-=1}i+=1,n.push(s)}return{columns:e.map(o=>cC(o)).flat(),headers:n}}function dR(e){const t=[];for(const n of e){const i={...woe(n),...n},r=i.key??(typeof i.value=="string"?i.value:null),a=i.value??r??null,o={...i,key:r,value:a,sortable:i.sortable??(i.key!=null||!!i.sort),children:i.children?dR(i.children):void 0};t.push(o)}return t}function Gx(e,t){const n=z([]),i=z([]),r=z({}),a=z({}),o=z({});Wi(()=>{var g,v,y;const u=(e.headers||Object.keys(e.items[0]??{}).map(_=>({key:_,title:Ql(_)}))).slice(),c=cR(u);(g=t==null?void 0:t.groupBy)!=null&&g.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),(v=t==null?void 0:t.showSelect)!=null&&v.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),(y=t==null?void 0:t.showExpand)!=null&&y.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const d=dR(u);Soe(d);const f=Math.max(...d.map(_=>Wx(_)))+1,h=Coe(d,f);n.value=h.headers,i.value=h.columns;const m=h.headers.flat(1);for(const _ of m)_.key&&(_.sortable&&(_.sort&&(r.value[_.key]=_.sort),_.sortRaw&&(a.value[_.key]=_.sortRaw)),_.filter&&(o.value[_.key]=_.filter))});const s={headers:n,columns:i,sortFunctions:r,sortRawFunctions:a,filterFunctions:o};return an(lR,s),s}function tw(){const e=kt(lR);if(!e)throw new Error("Missing headers!");return e}const fR=Oe({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:_t,default:"$sortAsc"},sortDescIcon:{type:_t,default:"$sortDesc"},headerProps:{type:Object},...ch(),...M2()},"VDataTableHeaders"),qf=ze()({name:"VDataTableHeaders",props:fR(),setup(e,t){let{slots:n}=t;const{t:i}=ki(),{toggleSort:r,sortBy:a,isSorted:o}=sR(),{someSelected:s,allSelected:l,selectAll:u,showSelectAll:c}=J2(),{columns:d,headers:f}=tw(),{loaderClasses:h}=z1(e);function m(E,A){if(!(!e.sticky&&!E.fixed))return{position:"sticky",left:E.fixed?st(E.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${A})`:void 0}}function g(E){const A=a.value.find(D=>D.key===E.key);return A?A.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:v,backgroundColorStyles:y}=Rn(e,"color"),{displayClasses:_,mobile:S}=Ki(e),w=B(()=>({headers:f.value,columns:d.value,toggleSort:r,isSorted:o,sortBy:a.value,someSelected:s.value,allSelected:l.value,selectAll:u,getSortIcon:g})),x=B(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},_.value,h.value]),k=E=>{let{column:A,x:D,y:T}=E;const O=A.key==="data-table-select"||A.key==="data-table-expand",N=Me(e.headerProps??{},A.headerProps??{});return C(X_,Me({tag:"th",align:A.align,class:[{"v-data-table__th--sortable":A.sortable&&!e.disableSort,"v-data-table__th--sorted":o(A),"v-data-table__th--fixed":A.fixed},...x.value],style:{width:st(A.width),minWidth:st(A.minWidth),maxWidth:st(A.maxWidth),...m(A,T)},colspan:A.colspan,rowspan:A.rowspan,onClick:A.sortable?()=>r(A):void 0,fixed:A.fixed,nowrap:A.nowrap,lastFixed:A.lastFixed,noPadding:O},N),{default:()=>{var q;const V=`header.${A.key}`,j={column:A,selectAll:u,isSorted:o,toggleSort:r,sortBy:a.value,someSelected:s.value,allSelected:l.value,getSortIcon:g};return n[V]?n[V](j):A.key==="data-table-select"?((q=n["header.data-table-select"])==null?void 0:q.call(n,j))??(c.value&&C(ic,{modelValue:l.value,indeterminate:s.value&&!l.value,"onUpdate:modelValue":u},null)):C("div",{class:"v-data-table-header__content"},[C("span",null,[A.title]),A.sortable&&!e.disableSort&&C(ut,{key:"icon",class:"v-data-table-header__sort-icon",icon:g(A)},null),e.multiSort&&o(A)&&C("div",{key:"badge",class:["v-data-table-header__sort-badge",...v.value],style:y.value},[a.value.findIndex(ne=>ne.key===A.key)+1])])}})},P=()=>{const E=Me(e.headerProps??{}??{}),A=B(()=>d.value.filter(T=>(T==null?void 0:T.sortable)&&!e.disableSort)),D=B(()=>{if(d.value.find(O=>O.key==="data-table-select")!=null)return l.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return C(X_,Me({tag:"th",class:[...x.value],colspan:f.value.length+1},E),{default:()=>[C("div",{class:"v-data-table-header__content"},[C(Oa,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:A.value,label:i("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>a.value=[],appendIcon:D.value,"onClick:append":()=>u(!l.value)},{...n,chip:T=>{var O;return C(ma,{onClick:(O=T.item.raw)!=null&&O.sortable?()=>r(T.item.raw):void 0,onMousedown:N=>{N.preventDefault(),N.stopPropagation()}},{default:()=>[T.item.title,C(ut,{class:["v-data-table__td-sort-icon",o(T.item.raw)&&"v-data-table__td-sort-icon-active"],icon:g(T.item.raw),size:"small"},null)]})}})])]})};We(()=>S.value?C("tr",null,[C(P,null,null)]):C(Ue,null,[n.headers?n.headers(w.value):f.value.map((E,A)=>C("tr",null,[E.map((D,T)=>C(k,{column:D,x:T,y:A},null))])),e.loading&&C("tr",{class:"v-data-table-progress"},[C("th",{colspan:d.value.length},[C(j1,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),Eoe=Oe({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),xoe=ze()({name:"VDataTableGroupHeaderRow",props:Eoe(),setup(e,t){let{slots:n}=t;const{isGroupOpen:i,toggleGroup:r,extractRows:a}=ZL(),{isSelected:o,isSomeSelected:s,select:l}=J2(),{columns:u}=tw(),c=B(()=>a([e.item]));return()=>C("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(d=>{var f,h;if(d.key==="data-table-group"){const m=i(e.item)?"$expand":"$next",g=()=>r(e.item);return((f=n["data-table-group"])==null?void 0:f.call(n,{item:e.item,count:c.value.length,props:{icon:m,onClick:g}}))??C(X_,{class:"v-data-table-group-header-row__column"},{default:()=>[C(Je,{size:"small",variant:"text",icon:m,onClick:g},null),C("span",null,[e.item.value]),C("span",null,[Ze("("),c.value.length,Ze(")")])]})}if(d.key==="data-table-select"){const m=o(c.value),g=s(c.value)&&!m,v=y=>l(c.value,y);return((h=n["data-table-select"])==null?void 0:h.call(n,{props:{modelValue:m,indeterminate:g,"onUpdate:modelValue":v}}))??C("td",null,[C(ic,{modelValue:m,indeterminate:g,"onUpdate:modelValue":v},null)])}return C("td",null,null)})])}}),koe=Oe({index:Number,item:Object,cellProps:[Object,Function],onClick:Xr(),onContextmenu:Xr(),onDblclick:Xr(),...ch()},"VDataTableRow"),Kx=ze()({name:"VDataTableRow",props:koe(),setup(e,t){let{slots:n}=t;const{displayClasses:i,mobile:r}=Ki(e,"v-data-table__tr"),{isSelected:a,toggleSelect:o,someSelected:s,allSelected:l,selectAll:u}=J2(),{isExpanded:c,toggleExpand:d}=GL(),{toggleSort:f,sortBy:h,isSorted:m}=sR(),{columns:g}=tw();We(()=>C("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},i.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&g.value.map((v,y)=>{const _=e.item,S=`item.${v.key}`,w=`header.${v.key}`,x={index:e.index,item:_.raw,internalItem:_,value:zf(_.columns,v.key),column:v,isSelected:a,toggleSelect:o,isExpanded:c,toggleExpand:d},k={column:v,selectAll:u,isSorted:m,toggleSort:f,sortBy:h.value,someSelected:s.value,allSelected:l.value,getSortIcon:()=>""},P=typeof e.cellProps=="function"?e.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value,column:v}):e.cellProps,E=typeof v.cellProps=="function"?v.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value}):v.cellProps;return C(X_,Me({align:v.align,class:{"v-data-table__td--expanded-row":v.key==="data-table-expand","v-data-table__td--select-row":v.key==="data-table-select"},fixed:v.fixed,fixedOffset:v.fixedOffset,lastFixed:v.lastFixed,maxWidth:r.value?void 0:v.maxWidth,noPadding:v.key==="data-table-select"||v.key==="data-table-expand",nowrap:v.nowrap,width:r.value?void 0:v.width},P,E),{default:()=>{var D,T,O,N,V;if(n[S]&&!r.value)return(D=n[S])==null?void 0:D.call(n,x);if(v.key==="data-table-select")return((T=n["item.data-table-select"])==null?void 0:T.call(n,x))??C(ic,{disabled:!_.selectable,modelValue:a([_]),onClick:Vo(()=>o(_),["stop"])},null);if(v.key==="data-table-expand")return((O=n["item.data-table-expand"])==null?void 0:O.call(n,x))??C(Je,{icon:c(_)?"$collapse":"$expand",size:"small",variant:"text",onClick:Vo(()=>d(_),["stop"])},null);const A=Q(x.value);return r.value?C(Ue,null,[C("div",{class:"v-data-table__td-title"},[((N=n[w])==null?void 0:N.call(n,k))??v.title]),C("div",{class:"v-data-table__td-value"},[((V=n[S])==null?void 0:V.call(n,x))??A])]):A}})})]))}}),hR=Oe({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...ch()},"VDataTableRows"),Yf=ze()({name:"VDataTableRows",inheritAttrs:!1,props:hR(),setup(e,t){let{attrs:n,slots:i}=t;const{columns:r}=tw(),{expandOnClick:a,toggleExpand:o,isExpanded:s}=GL(),{isSelected:l,toggleSelect:u}=J2(),{toggleGroup:c,isGroupOpen:d}=ZL(),{t:f}=ki(),{mobile:h}=Ki(e);return We(()=>{var m,g;return e.loading&&(!e.items.length||i.loading)?C("tr",{class:"v-data-table-rows-loading",key:"loading"},[C("td",{colspan:r.value.length},[((m=i.loading)==null?void 0:m.call(i))??f(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?C("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[C("td",{colspan:r.value.length},[((g=i["no-data"])==null?void 0:g.call(i))??f(e.noDataText)])]):C(Ue,null,[e.items.map((v,y)=>{var w;if(v.type==="group"){const x={index:y,item:v,columns:r.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return i["group-header"]?i["group-header"](x):C(xoe,Me({key:`group-header_${v.id}`,item:v},B6(n,":group-header",()=>x)),i)}const _={index:y,item:v.raw,internalItem:v,columns:r.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},S={..._,props:Me({key:`item_${v.key??v.index}`,onClick:a.value?()=>{o(v)}:void 0,index:y,item:v,cellProps:e.cellProps,mobile:h.value},B6(n,":row",()=>_),typeof e.rowProps=="function"?e.rowProps({item:_.item,index:_.index,internalItem:_.internalItem}):e.rowProps)};return C(Ue,{key:S.props.key},[i.item?i.item(S):C(Kx,S.props,i),s(v)&&((w=i["expanded-row"])==null?void 0:w.call(i,_))])})])}),{}}});const pR=Oe({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ct(),...Mr(),...Vt(),...fn()},"VTable"),Wf=ze()({name:"VTable",props:pR(),setup(e,t){let{slots:n,emit:i}=t;const{themeClasses:r}=Pn(e),{densityClasses:a}=Da(e);return We(()=>C(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},r.value,a.value,e.class],style:e.style},{default:()=>{var o,s,l;return[(o=n.top)==null?void 0:o.call(n),n.default?C("div",{class:"v-table__wrapper",style:{height:st(e.height)}},[C("table",null,[n.default()])]):(s=n.wrapper)==null?void 0:s.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),Toe=Oe({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Poe(e,t,n,i){const r=e.returnObject?t:vr(t,e.itemValue),a=vr(t,e.itemSelectable,!0),o=i.reduce((s,l)=>(l.key!=null&&(s[l.key]=vr(t,l.value)),s),{});return{type:"item",key:e.returnObject?vr(t,e.itemValue):r,index:n,value:r,selectable:a,columns:o,raw:t}}function $oe(e,t,n){return t.map((i,r)=>Poe(e,i,r,n))}function Zx(e,t){return{items:B(()=>$oe(e,e.items,t.value))}}const Xx=Oe({...hR(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...YL(),...Bx(),...yoe(),...Toe(),...iR(),...aR(),...fR(),...pR()},"DataTable"),Aoe=Oe({...jx(),...Xx(),...G1(),...Yx()},"VDataTable"),mR=ze()({name:"VDataTable",props:Aoe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=zx(e),{sortBy:a,multiSort:o,mustSort:s}=Q2(e),{page:l,itemsPerPage:u}=Ux(e),{disableSort:c}=gd(e),{columns:d,headers:f,sortFunctions:h,sortRawFunctions:m,filterFunctions:g}=Gx(e,{groupBy:r,showSelect:Fe(e,"showSelect"),showExpand:Fe(e,"showExpand")}),{items:v}=Zx(e,d),y=Fe(e,"search"),{filteredItems:_}=K1(e,v,y,{transform:ee=>ee.columns,customKeyFilter:g}),{toggleSort:S}=ew({sortBy:a,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:w,opened:x,extractRows:k,isGroupOpen:P,toggleGroup:E}=G2({groupBy:r,sortBy:a,disableSort:c}),{sortedItems:A}=qx(e,_,w,{transform:ee=>({...ee.raw,...ee.columns}),sortFunctions:h,sortRawFunctions:m}),{flatItems:D}=K2(A,r,x),T=B(()=>D.value.length),{startIndex:O,stopIndex:N,pageCount:V,setItemsPerPage:j}=Hx({page:l,itemsPerPage:u,itemsLength:T}),{paginatedItems:q}=eR({items:D,startIndex:O,stopIndex:N,itemsPerPage:u}),ne=B(()=>k(q.value)),{isSelected:ae,select:Y,selectAll:M,toggleSelect:I,someSelected:W,allSelected:te}=X2(e,{allItems:v,currentPage:ne}),{isExpanded:he,toggleExpand:oe}=W2(e);Z2({page:l,itemsPerPage:u,sortBy:a,groupBy:r,search:y}),Si({VDataTableRows:{hideNoData:Fe(e,"hideNoData"),noDataText:Fe(e,"noDataText"),loading:Fe(e,"loading"),loadingText:Fe(e,"loadingText")}});const U=B(()=>({page:l.value,itemsPerPage:u.value,sortBy:a.value,pageCount:V.value,toggleSort:S,setItemsPerPage:j,someSelected:W.value,allSelected:te.value,isSelected:ae,select:Y,selectAll:M,toggleSelect:I,isExpanded:he,toggleExpand:oe,isGroupOpen:P,toggleGroup:E,items:ne.value.map(ee=>ee.raw),internalItems:ne.value,groupedItems:q.value,columns:d.value,headers:f.value}));return We(()=>{const ee=n1.filterProps(e),re=qf.filterProps(e),ue=Yf.filterProps(e),pe=Wf.filterProps(e);return C(Wf,Me({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},pe),{top:()=>{var ge;return(ge=i.top)==null?void 0:ge.call(i,U.value)},default:()=>{var ge,Te,Z,X,ye,Se;return i.default?i.default(U.value):C(Ue,null,[(ge=i.colgroup)==null?void 0:ge.call(i,U.value),!e.hideDefaultHeader&&C("thead",{key:"thead"},[C(qf,re,i)]),(Te=i.thead)==null?void 0:Te.call(i,U.value),!e.hideDefaultBody&&C("tbody",null,[(Z=i["body.prepend"])==null?void 0:Z.call(i,U.value),i.body?i.body(U.value):C(Yf,Me(n,ue,{items:q.value}),i),(X=i["body.append"])==null?void 0:X.call(i,U.value)]),(ye=i.tbody)==null?void 0:ye.call(i,U.value),(Se=i.tfoot)==null?void 0:Se.call(i,U.value)])},bottom:()=>i.bottom?i.bottom(U.value):!e.hideDefaultFooter&&C(Ue,null,[C(jn,null,null),C(n1,ee,{prepend:i["footer.prepend"]})])})}),{}}}),Ooe=Oe({...Xx(),...Bx(),...xL(),...G1()},"VDataTableVirtual"),Doe=ze()({name:"VDataTableVirtual",props:Ooe(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=zx(e),{sortBy:a,multiSort:o,mustSort:s}=Q2(e),{disableSort:l}=gd(e),{columns:u,headers:c,filterFunctions:d,sortFunctions:f,sortRawFunctions:h}=Gx(e,{groupBy:r,showSelect:Fe(e,"showSelect"),showExpand:Fe(e,"showExpand")}),{items:m}=Zx(e,u),g=Fe(e,"search"),{filteredItems:v}=K1(e,m,g,{transform:re=>re.columns,customKeyFilter:d}),{toggleSort:y}=ew({sortBy:a,multiSort:o,mustSort:s}),{sortByWithGroups:_,opened:S,extractRows:w,isGroupOpen:x,toggleGroup:k}=G2({groupBy:r,sortBy:a,disableSort:l}),{sortedItems:P}=qx(e,v,_,{transform:re=>({...re.raw,...re.columns}),sortFunctions:f,sortRawFunctions:h}),{flatItems:E}=K2(P,r,S),A=B(()=>w(E.value)),{isSelected:D,select:T,selectAll:O,toggleSelect:N,someSelected:V,allSelected:j}=X2(e,{allItems:A,currentPage:A}),{isExpanded:q,toggleExpand:ne}=W2(e),{containerRef:ae,markerRef:Y,paddingTop:M,paddingBottom:I,computedItems:W,handleItemResize:te,handleScroll:he,handleScrollend:oe}=kL(e,E),U=B(()=>W.value.map(re=>re.raw));Z2({sortBy:a,page:it(1),itemsPerPage:it(-1),groupBy:r,search:g}),Si({VDataTableRows:{hideNoData:Fe(e,"hideNoData"),noDataText:Fe(e,"noDataText"),loading:Fe(e,"loading"),loadingText:Fe(e,"loadingText")}});const ee=B(()=>({sortBy:a.value,toggleSort:y,someSelected:V.value,allSelected:j.value,isSelected:D,select:T,selectAll:O,toggleSelect:N,isExpanded:q,toggleExpand:ne,isGroupOpen:x,toggleGroup:k,items:A.value.map(re=>re.raw),internalItems:A.value,groupedItems:E.value,columns:u.value,headers:c.value}));We(()=>{const re=qf.filterProps(e),ue=Yf.filterProps(e),pe=Wf.filterProps(e);return C(Wf,Me({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},pe),{top:()=>{var ge;return(ge=i.top)==null?void 0:ge.call(i,ee.value)},wrapper:()=>{var ge,Te,Z;return C("div",{ref:ae,onScrollPassive:he,onScrollend:oe,class:"v-table__wrapper",style:{height:st(e.height)}},[C("table",null,[(ge=i.colgroup)==null?void 0:ge.call(i,ee.value),!e.hideDefaultHeader&&C("thead",{key:"thead"},[C(qf,Me(re,{sticky:e.fixedHeader}),i)]),!e.hideDefaultBody&&C("tbody",null,[C("tr",{ref:Y,style:{height:st(M.value),border:0}},[C("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),(Te=i["body.prepend"])==null?void 0:Te.call(i,ee.value),C(Yf,Me(n,ue,{items:U.value}),{...i,item:X=>C(EL,{key:X.internalItem.index,renderless:!0,"onUpdate:height":ye=>te(X.internalItem.index,ye)},{default:ye=>{var Ee;let{itemRef:Se}=ye;return((Ee=i.item)==null?void 0:Ee.call(i,{...X,itemRef:Se}))??C(Kx,Me(X.props,{ref:Se,key:X.internalItem.index,index:X.internalItem.index}),i)}})}),(Z=i["body.append"])==null?void 0:Z.call(i,ee.value),C("tr",{style:{height:st(I.value),border:0}},[C("td",{colspan:u.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var ge;return(ge=i.bottom)==null?void 0:ge.call(i,ee.value)}})})}}),Ioe=Oe({itemsLength:{type:[Number,String],required:!0},...jx(),...Xx(),...Yx()},"VDataTableServer"),vR=ze()({name:"VDataTableServer",props:Ioe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:r}=zx(e),{sortBy:a,multiSort:o,mustSort:s}=Q2(e),{page:l,itemsPerPage:u}=Ux(e),{disableSort:c}=gd(e),d=B(()=>parseInt(e.itemsLength,10)),{columns:f,headers:h}=Gx(e,{groupBy:r,showSelect:Fe(e,"showSelect"),showExpand:Fe(e,"showExpand")}),{items:m}=Zx(e,f),{toggleSort:g}=ew({sortBy:a,multiSort:o,mustSort:s,page:l}),{opened:v,isGroupOpen:y,toggleGroup:_,extractRows:S}=G2({groupBy:r,sortBy:a,disableSort:c}),{pageCount:w,setItemsPerPage:x}=Hx({page:l,itemsPerPage:u,itemsLength:d}),{flatItems:k}=K2(m,r,v),{isSelected:P,select:E,selectAll:A,toggleSelect:D,someSelected:T,allSelected:O}=X2(e,{allItems:m,currentPage:m}),{isExpanded:N,toggleExpand:V}=W2(e),j=B(()=>S(m.value));Z2({page:l,itemsPerPage:u,sortBy:a,groupBy:r,search:Fe(e,"search")}),an("v-data-table",{toggleSort:g,sortBy:a}),Si({VDataTableRows:{hideNoData:Fe(e,"hideNoData"),noDataText:Fe(e,"noDataText"),loading:Fe(e,"loading"),loadingText:Fe(e,"loadingText")}});const q=B(()=>({page:l.value,itemsPerPage:u.value,sortBy:a.value,pageCount:w.value,toggleSort:g,setItemsPerPage:x,someSelected:T.value,allSelected:O.value,isSelected:P,select:E,selectAll:A,toggleSelect:D,isExpanded:N,toggleExpand:V,isGroupOpen:y,toggleGroup:_,items:j.value.map(ne=>ne.raw),internalItems:j.value,groupedItems:k.value,columns:f.value,headers:h.value}));We(()=>{const ne=n1.filterProps(e),ae=qf.filterProps(e),Y=Yf.filterProps(e),M=Wf.filterProps(e);return C(Wf,Me({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},M),{top:()=>{var I;return(I=i.top)==null?void 0:I.call(i,q.value)},default:()=>{var I,W,te,he,oe,U;return i.default?i.default(q.value):C(Ue,null,[(I=i.colgroup)==null?void 0:I.call(i,q.value),!e.hideDefaultHeader&&C("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[C(qf,Me(ae,{sticky:e.fixedHeader}),i)]),(W=i.thead)==null?void 0:W.call(i,q.value),!e.hideDefaultBody&&C("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(te=i["body.prepend"])==null?void 0:te.call(i,q.value),i.body?i.body(q.value):C(Yf,Me(n,Y,{items:k.value}),i),(he=i["body.append"])==null?void 0:he.call(i,q.value)]),(oe=i.tbody)==null?void 0:oe.call(i,q.value),(U=i.tfoot)==null?void 0:U.call(i,q.value)])},bottom:()=>i.bottom?i.bottom(q.value):!e.hideDefaultFooter&&C(Ue,null,[C(jn,null,null),C(n1,ne,{prepend:i["footer.prepend"]})])})})}});const Noe=Oe({fluid:{type:Boolean,default:!1},...ct(),...rr(),...Vt()},"VContainer"),Jx=ze()({name:"VContainer",props:Noe(),setup(e,t){let{slots:n}=t;const{rtlClasses:i}=Sr(),{dimensionStyles:r}=ar(e);return We(()=>C(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},i.value,e.class],style:[r.value,e.style]},n)),{}}}),gR=(()=>V2.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),yR=(()=>V2.reduce((e,t)=>{const n="offset"+Ql(t);return e[n]={type:[String,Number],default:null},e},{}))(),_R=(()=>V2.reduce((e,t)=>{const n="order"+Ql(t);return e[n]={type:[String,Number],default:null},e},{}))(),dP={col:Object.keys(gR),offset:Object.keys(yR),order:Object.keys(_R)};function Moe(e,t,n){let i=e;if(!(n==null||n===!1)){if(t){const r=t.replace(e,"");i+=`-${r}`}return e==="col"&&(i="v-"+i),e==="col"&&(n===""||n===!0)||(i+=`-${n}`),i.toLowerCase()}}const Loe=["auto","start","end","center","baseline","stretch"],Roe=Oe({cols:{type:[Boolean,String,Number],default:!1},...gR,offset:{type:[String,Number],default:null},...yR,order:{type:[String,Number],default:null},..._R,alignSelf:{type:String,default:null,validator:e=>Loe.includes(e)},...ct(),...Vt()},"VCol"),Qn=ze()({name:"VCol",props:Roe(),setup(e,t){let{slots:n}=t;const i=B(()=>{const r=[];let a;for(a in dP)dP[a].forEach(s=>{const l=e[s],u=Moe(a,s,l);u&&r.push(u)});const o=r.some(s=>s.startsWith("v-col-"));return r.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),r});return()=>{var r;return vi(e.tag,{class:[i.value,e.class],style:e.style},(r=n.default)==null?void 0:r.call(n))}}}),Qx=["start","end","center"],bR=["space-between","space-around","space-evenly"];function e8(e,t){return V2.reduce((n,i)=>{const r=e+Ql(i);return n[r]=t(),n},{})}const Foe=[...Qx,"baseline","stretch"],wR=e=>Foe.includes(e),SR=e8("align",()=>({type:String,default:null,validator:wR})),Voe=[...Qx,...bR],CR=e=>Voe.includes(e),ER=e8("justify",()=>({type:String,default:null,validator:CR})),Boe=[...Qx,...bR,"stretch"],xR=e=>Boe.includes(e),kR=e8("alignContent",()=>({type:String,default:null,validator:xR})),fP={align:Object.keys(SR),justify:Object.keys(ER),alignContent:Object.keys(kR)},zoe={align:"align",justify:"justify",alignContent:"align-content"};function joe(e,t,n){let i=zoe[e];if(n!=null){if(t){const r=t.replace(e,"");i+=`-${r}`}return i+=`-${n}`,i.toLowerCase()}}const Uoe=Oe({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:wR},...SR,justify:{type:String,default:null,validator:CR},...ER,alignContent:{type:String,default:null,validator:xR},...kR,...ct(),...Vt()},"VRow"),Ka=ze()({name:"VRow",props:Uoe(),setup(e,t){let{slots:n}=t;const i=B(()=>{const r=[];let a;for(a in fP)fP[a].forEach(o=>{const s=e[o],l=joe(a,o,s);l&&r.push(l)});return r.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),r});return()=>{var r;return vi(e.tag,{class:["v-row",i.value,e.class],style:e.style},(r=n.default)==null?void 0:r.call(n))}}}),t8=iu("v-spacer","div","VSpacer"),TR=Oe({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:_t,default:"$next"},prevIcon:{type:_t,default:"$prev"},modeIcon:{type:_t,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),dC=ze()({name:"VDatePickerControls",props:TR(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const i=B(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),r=B(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),a=B(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),o=B(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return We(()=>C("div",{class:["v-date-picker-controls"]},[C(Je,{class:"v-date-picker-controls__month-btn",disabled:i.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),C(Je,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:r.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),C(t8,{key:"mode-spacer"},null),C("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[C(Je,{disabled:a.value,icon:e.prevIcon,variant:"text",onClick:s},null),C(Je,{disabled:o.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}});const Hoe=Oe({appendIcon:_t,color:String,header:String,transition:String,onClick:Xr()},"VDatePickerHeader"),fC=ze()({name:"VDatePickerHeader",props:Hoe(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:i}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(e,"color");function o(){n("click")}function s(){n("click:append")}return We(()=>{const l=!!(i.default||e.header),u=!!(i.append||e.appendIcon);return C("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},r.value],style:a.value,onClick:o},[i.prepend&&C("div",{key:"prepend",class:"v-date-picker-header__prepend"},[i.prepend()]),l&&C(Aa,{key:"content",name:e.transition},{default:()=>{var c;return[C("div",{key:e.header,class:"v-date-picker-header__content"},[((c=i.default)==null?void 0:c.call(i))??e.header])]}}),u&&C("div",{class:"v-date-picker-header__append"},[i.append?C(Yt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=i.append)==null?void 0:c.call(i)]}}):C(Je,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}});const qoe=Oe({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:[Number,String]},"calendar");function Yoe(e){const t=Cm(),n=vt(e,"modelValue",[],h=>hi(h)),i=B(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),r=vt(e,"year",void 0,h=>{const m=h!=null?Number(h):t.getYear(i.value);return t.startOfYear(t.setYear(t.date(),m))},h=>t.getYear(h)),a=vt(e,"month",void 0,h=>{const m=h!=null?Number(h):t.getMonth(i.value),g=t.setYear(t.startOfMonth(t.date()),t.getYear(r.value));return t.setMonth(g,m)},h=>t.getMonth(h)),o=B(()=>{const h=Number(e.firstDayOfWeek??0);return e.weekdays.map(m=>(m+h)%7)}),s=B(()=>{const h=t.getWeekArray(a.value,e.firstDayOfWeek),m=h.flat(),g=6*7;if(e.weeksInMonth==="static"&&m.length<g){const v=m[m.length-1];let y=[];for(let _=1;_<=g-m.length;_++)y.push(t.addDays(v,_)),_%7===0&&(h.push(y),y=[])}return h});function l(h,m){return h.filter(g=>o.value.includes(t.toJsDate(g).getDay())).map((g,v)=>{const y=t.toISO(g),_=!t.isSameMonth(g,a.value),S=t.isSameDay(g,t.startOfMonth(a.value)),w=t.isSameDay(g,t.endOfMonth(a.value)),x=t.isSameDay(g,a.value);return{date:g,isoDate:y,formatted:t.format(g,"keyboardDate"),year:t.getYear(g),month:t.getMonth(g),isDisabled:f(g),isWeekStart:v%7===0,isWeekEnd:v%7===6,isToday:t.isSameDay(g,m),isAdjacent:_,isHidden:_&&!e.showAdjacentMonths,isStart:S,isSelected:n.value.some(k=>t.isSameDay(g,k)),isEnd:w,isSame:x,localized:t.format(g,"dayOfMonth")}})}const u=B(()=>{const h=t.startOfWeek(i.value,e.firstDayOfWeek),m=[];for(let v=0;v<=6;v++)m.push(t.addDays(h,v));const g=t.date();return l(m,g)}),c=B(()=>{const h=s.value.flat(),m=t.date();return l(h,m)}),d=B(()=>s.value.map(h=>h.length?aoe(t,h[0]):null));function f(h){if(e.disabled)return!0;const m=t.date(h);return e.min&&t.isAfter(t.date(e.min),m)||e.max&&t.isAfter(m,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(g=>t.isSameDay(t.date(g),m)):typeof e.allowedDates=="function"?!e.allowedDates(m):!1}return{displayValue:i,daysInMonth:c,daysInWeek:u,genDays:l,model:n,weeksInMonth:s,weekDays:o,weekNumbers:d}}const PR=Oe({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...qoe()},"VDatePickerMonth"),hC=ze()({name:"VDatePickerMonth",props:PR(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=z(),{daysInMonth:a,model:o,weekNumbers:s}=Yoe(e),l=Cm(),u=it(),c=it(),d=it(!1),f=B(()=>d.value?e.reverseTransition:e.transition);e.multiple==="range"&&o.value.length>0&&(u.value=o.value[0],o.value.length>1&&(c.value=o.value[o.value.length-1]));const h=B(()=>{const y=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return o.value.length>=y});Ve(a,(y,_)=>{_&&(d.value=l.isBefore(y[0].date,_[0].date))});function m(y){const _=l.startOfDay(y);if(o.value.length===0?u.value=void 0:o.value.length===1&&(u.value=o.value[0],c.value=void 0),!u.value)u.value=_,o.value=[u.value];else if(c.value)u.value=y,c.value=void 0,o.value=[u.value];else{if(l.isSameDay(_,u.value)){u.value=void 0,o.value=[];return}else l.isBefore(_,u.value)?(c.value=l.endOfDay(u.value),u.value=_):c.value=l.endOfDay(_);const S=l.getDiff(c.value,u.value,"days"),w=[u.value];for(let x=1;x<S;x++){const k=l.addDays(u.value,x);w.push(k)}w.push(c.value),o.value=w}}function g(y){const _=o.value.findIndex(S=>l.isSameDay(S,y));if(_===-1)o.value=[...o.value,y];else{const S=[...o.value];S.splice(_,1),o.value=S}}function v(y){e.multiple==="range"?m(y):e.multiple?g(y):o.value=[y]}return()=>C("div",{class:"v-date-picker-month"},[e.showWeek&&C("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&C("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[Ze(" ")]),s.value.map(y=>C("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[y]))]),C(Aa,{name:f.value},{default:()=>{var y;return[C("div",{ref:r,key:(y=a.value[0].date)==null?void 0:y.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays(e.firstDayOfWeek).map(_=>C("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[_])),a.value.map((_,S)=>{const w={props:{onClick:()=>v(_.date)},item:_,i:S};return h.value&&!_.isSelected&&(_.isDisabled=!0),C("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":_.isAdjacent,"v-date-picker-month__day--hide-adjacent":_.isHidden,"v-date-picker-month__day--selected":_.isSelected,"v-date-picker-month__day--week-end":_.isWeekEnd,"v-date-picker-month__day--week-start":_.isWeekStart}],"data-v-date":_.isDisabled?void 0:_.isoDate},[(e.showAdjacentMonths||!_.isAdjacent)&&C(Yt,{defaults:{VBtn:{class:"v-date-picker-month__day-btn",color:(_.isSelected||_.isToday)&&!_.isDisabled?e.color:void 0,disabled:_.isDisabled,icon:!0,ripple:!1,text:_.localized,variant:_.isDisabled?_.isToday?"outlined":"text":_.isToday&&!_.isSelected?"outlined":"flat",onClick:()=>v(_.date)}}},{default:()=>{var x;return[((x=i.day)==null?void 0:x.call(i,w))??C(Je,w.props,null)]}})])})])]}})])}});const $R=Oe({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number},"VDatePickerMonths"),pC=ze()({name:"VDatePickerMonths",props:$R(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Cm(),a=vt(e,"modelValue"),o=B(()=>{let s=r.startOfYear(r.date());return e.year&&(s=r.setYear(s,e.year)),Ll(12).map(l=>{const u=r.format(s,"monthShort"),c=!!(e.min&&r.isAfter(r.startOfMonth(r.date(e.min)),s)||e.max&&r.isAfter(s,r.startOfMonth(r.date(e.max))));return s=r.getNextMonth(s),{isDisabled:c,text:u,value:l}})});return Wi(()=>{a.value=a.value??r.getMonth(r.date())}),We(()=>C("div",{class:"v-date-picker-months",style:{height:st(e.height)}},[C("div",{class:"v-date-picker-months__content"},[o.value.map((s,l)=>{var d;const u={active:a.value===l,color:a.value===l?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:a.value===s.value?"flat":"text",onClick:()=>c(l)};function c(f){if(a.value===f){n("update:modelValue",a.value);return}a.value=f}return((d=i.month)==null?void 0:d.call(i,{month:s,i:l,props:u}))??C(Je,Me({key:"month"},u),null)})])])),{}}});const AR=Oe({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),mC=ze()({name:"VDatePickerYears",props:AR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Cm(),a=vt(e,"modelValue"),o=B(()=>{const l=r.getYear(r.date());let u=l-100,c=l+52;e.min&&(u=r.getYear(r.date(e.min))),e.max&&(c=r.getYear(r.date(e.max)));let d=r.startOfYear(r.date());return d=r.setYear(d,u),Ll(c-u+1,u).map(f=>{const h=r.format(d,"year");return d=r.setYear(d,r.getYear(d)+1),{text:h,value:f}})});Wi(()=>{a.value=a.value??r.getYear(r.date())});const s=j_();return tn(async()=>{var l;await Pt(),(l=s.el)==null||l.scrollIntoView({block:"center"})}),We(()=>C("div",{class:"v-date-picker-years",style:{height:st(e.height)}},[C("div",{class:"v-date-picker-years__content"},[o.value.map((l,u)=>{var d;const c={ref:a.value===l.value?s:void 0,active:a.value===l.value,color:a.value===l.value?e.color:void 0,rounded:!0,text:l.text,variant:a.value===l.value?"flat":"text",onClick:()=>{if(a.value===l.value){n("update:modelValue",a.value);return}a.value=l.value}};return((d=i.year)==null?void 0:d.call(i,{year:l,i:u,props:c}))??C(Je,Me({key:"month"},c),null)})])])),{}}});const Woe=iu("v-picker-title"),OR=Oe({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...q2()},"VPicker"),hP=ze()({name:"VPicker",props:OR(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Rn(Fe(e,"color"));return We(()=>{const a=rc.filterProps(e),o=!!(e.title||n.title);return C(rc,Me(a,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var s;return[!e.hideHeader&&C("div",{key:"header",class:[i.value],style:[r.value]},[o&&C(Woe,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&C("div",{class:"v-picker__header"},[n.header()])]),C("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&C(Yt,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[C("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),DR=Oe({header:{type:String,default:"$vuetify.datePicker.header"},...TR(),...PR({weeksInMonth:"static"}),...Li($R(),["modelValue"]),...Li(AR(),["modelValue"]),...OR({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),J_=ze()({name:"VDatePicker",props:DR(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const r=Cm(),{t:a}=ki(),o=vt(e,"modelValue",void 0,A=>hi(A),A=>e.multiple?A:A[0]),s=vt(e,"viewMode"),l=B(()=>{var D;const A=r.date((D=o.value)==null?void 0:D[0]);return A&&r.isValid(A)?A:r.date()}),u=z(Number(e.month??r.getMonth(r.startOfMonth(l.value)))),c=z(Number(e.year??r.getYear(r.startOfYear(r.setMonth(l.value,u.value))))),d=it(!1),f=B(()=>e.multiple&&o.value.length>1?a("$vuetify.datePicker.itemsSelected",o.value.length):o.value[0]&&r.isValid(o.value[0])?r.format(r.date(o.value[0]),"normalDateWithWeekday"):a(e.header)),h=B(()=>{let A=r.date();return A=r.setDate(A,1),A=r.setMonth(A,u.value),A=r.setYear(A,c.value),r.format(A,"monthAndYear")}),m=B(()=>`date-picker-header${d.value?"-reverse":""}-transition`),g=B(()=>{const A=r.date(e.min);return e.min&&r.isValid(A)?A:null}),v=B(()=>{const A=r.date(e.max);return e.max&&r.isValid(A)?A:null}),y=B(()=>{if(e.disabled)return!0;const A=[];if(s.value!=="month")A.push("prev","next");else{let D=r.date();if(D=r.setYear(D,c.value),D=r.setMonth(D,u.value),g.value){const T=r.addDays(r.startOfMonth(D),-1);r.isAfter(g.value,T)&&A.push("prev")}if(v.value){const T=r.addDays(r.endOfMonth(D),1);r.isAfter(T,v.value)&&A.push("next")}}return A});function _(){u.value<11?u.value++:(c.value++,u.value=0,E(c.value)),P(u.value)}function S(){u.value>0?u.value--:(c.value--,u.value=11,E(c.value)),P(u.value)}function w(){s.value="month"}function x(){s.value=s.value==="months"?"month":"months"}function k(){s.value=s.value==="year"?"month":"year"}function P(A){s.value==="months"&&x(),n("update:month",A)}function E(A){s.value==="year"&&k(),n("update:year",A)}return Ve(o,(A,D)=>{const T=hi(D),O=hi(A);if(!O.length)return;const N=r.date(T[T.length-1]),V=r.date(O[O.length-1]),j=r.getMonth(V),q=r.getYear(V);j!==u.value&&(u.value=j,P(u.value)),q!==c.value&&(c.value=q,E(c.value)),d.value=r.isBefore(N,V)}),We(()=>{const A=hP.filterProps(e),D=dC.filterProps(e),T=fC.filterProps(e),O=hC.filterProps(e),N=Li(pC.filterProps(e),["modelValue"]),V=Li(mC.filterProps(e),["modelValue"]),j={header:f.value,transition:m.value};return C(hP,Me(A,{class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var q;return((q=i.title)==null?void 0:q.call(i))??C("div",{class:"v-date-picker__title"},[a(e.title)])},header:()=>i.header?C(Yt,{defaults:{VDatePickerHeader:{...j}}},{default:()=>{var q;return[(q=i.header)==null?void 0:q.call(i,j)]}}):C(fC,Me({key:"header"},T,j,{onClick:s.value!=="month"?w:void 0}),{...i,default:void 0}),default:()=>C(Ue,null,[C(dC,Me(D,{disabled:y.value,text:h.value,"onClick:next":_,"onClick:prev":S,"onClick:month":x,"onClick:year":k}),null),C(Zg,{hideOnLeave:!0},{default:()=>[s.value==="months"?C(pC,Me({key:"date-picker-months"},N,{modelValue:u.value,"onUpdate:modelValue":[q=>u.value=q,P],min:g.value,max:v.value,year:c.value}),null):s.value==="year"?C(mC,Me({key:"date-picker-years"},V,{modelValue:c.value,"onUpdate:modelValue":[q=>c.value=q,E],min:g.value,max:v.value}),null):C(hC,Me({key:"date-picker-month"},O,{modelValue:o.value,"onUpdate:modelValue":q=>o.value=q,month:u.value,"onUpdate:month":[q=>u.value=q,P],year:c.value,"onUpdate:year":[q=>c.value=q,E],min:g.value,max:v.value}),null)]})]),actions:i.actions})}),{}}});const Goe=Oe({actionText:String,bgColor:String,color:String,icon:_t,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...ct(),...rr(),...ru({size:void 0}),...fn()},"VEmptyState"),Koe=ze()({name:"VEmptyState",props:Goe(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{themeClasses:r}=Pn(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Rn(Fe(e,"bgColor")),{dimensionStyles:s}=ar(e),{displayClasses:l}=Ki();function u(c){n("click:action",c)}return We(()=>{var v,y,_;const c=!!(i.actions||e.actionText),d=!!(i.headline||e.headline),f=!!(i.title||e.title),h=!!(i.text||e.text),m=!!(i.media||e.image||e.icon),g=e.size||(e.image?200:96);return C("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},r.value,a.value,l.value,e.class],style:[o.value,s.value,e.style]},[m&&C("div",{key:"media",class:"v-empty-state__media"},[i.media?C(Yt,{key:"media-defaults",defaults:{VImg:{src:e.image,height:g},VIcon:{size:g,icon:e.icon}}},{default:()=>[i.media()]}):C(Ue,null,[e.image?C(Ii,{key:"image",src:e.image,height:g},null):e.icon?C(ut,{key:"icon",color:e.color,size:g,icon:e.icon},null):void 0])]),d&&C("div",{key:"headline",class:"v-empty-state__headline"},[((v=i.headline)==null?void 0:v.call(i))??e.headline]),f&&C("div",{key:"title",class:"v-empty-state__title"},[((y=i.title)==null?void 0:y.call(i))??e.title]),h&&C("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:st(e.textWidth)}},[((_=i.text)==null?void 0:_.call(i))??e.text]),i.default&&C("div",{key:"content",class:"v-empty-state__content"},[i.default()]),c&&C("div",{key:"actions",class:"v-empty-state__actions"},[C(Yt,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",text:e.actionText}}},{default:()=>{var S;return[((S=i.actions)==null?void 0:S.call(i,{props:{onClick:u}}))??C(Je,{onClick:u},null)]}})])])}),{}}});const i1=Symbol.for("vuetify:v-expansion-panel"),IR=Oe({...ct(),...Ix()},"VExpansionPanelText"),vC=ze()({name:"VExpansionPanelText",props:IR(),setup(e,t){let{slots:n}=t;const i=kt(i1);if(!i)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:r,onAfterLeave:a}=Nx(e,i.isSelected);return We(()=>C(Yu,{onAfterLeave:a},{default:()=>{var o;return[xt(C("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&r.value&&C("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[hn,i.isSelected.value]])]}})),{}}}),NR=Oe({color:String,expandIcon:{type:_t,default:"$expand"},collapseIcon:{type:_t,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...ct(),...rr()},"VExpansionPanelTitle"),gC=ze()({name:"VExpansionPanelTitle",directives:{Ripple:dc},props:NR(),setup(e,t){let{slots:n}=t;const i=kt(i1);if(!i)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(e,"color"),{dimensionStyles:o}=ar(e),s=B(()=>({collapseIcon:e.collapseIcon,disabled:i.disabled.value,expanded:i.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=B(()=>i.isSelected.value?e.collapseIcon:e.expandIcon);return We(()=>{var u;return xt(C("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":i.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},r.value,e.class],style:[a.value,o.value,e.style],type:"button",tabindex:i.disabled.value?-1:void 0,disabled:i.disabled.value,"aria-expanded":i.isSelected.value,onClick:e.readonly?void 0:i.toggle},[C("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,s.value),!e.hideActions&&C(Yt,{defaults:{VIcon:{icon:l.value}}},{default:()=>{var c;return[C("span",{class:"v-expansion-panel-title__icon"},[((c=n.actions)==null?void 0:c.call(n,s.value))??C(ut,null,null)])]}})]),[[po("ripple"),e.ripple]])}),{}}}),MR=Oe({title:String,text:String,bgColor:String,...Cr(),...sh(),...pi(),...Vt(),...NR(),...IR()},"VExpansionPanel"),Zoe=ze()({name:"VExpansionPanel",props:MR(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=lh(e,i1),{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(e,"bgColor"),{elevationClasses:o}=ta(e),{roundedClasses:s}=Ti(e),l=B(()=>(i==null?void 0:i.disabled.value)||e.disabled),u=B(()=>i.group.items.value.reduce((f,h,m)=>(i.group.selected.value.includes(h.id)&&f.push(m),f),[])),c=B(()=>{const f=i.group.items.value.findIndex(h=>h.id===i.id);return!i.isSelected.value&&u.value.some(h=>h-f===1)}),d=B(()=>{const f=i.group.items.value.findIndex(h=>h.id===i.id);return!i.isSelected.value&&u.value.some(h=>h-f===-1)});return an(i1,i),We(()=>{const f=!!(n.text||e.text),h=!!(n.title||e.title),m=gC.filterProps(e),g=vC.filterProps(e);return C(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":i.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":l.value},s.value,r.value,e.class],style:[a.value,e.style]},{default:()=>[C("div",{class:["v-expansion-panel__shadow",...o.value]},null),C(Yt,{defaults:{VExpansionPanelTitle:{...m},VExpansionPanelText:{...g}}},{default:()=>{var v;return[h&&C(gC,{key:"title"},{default:()=>[n.title?n.title():e.title]}),f&&C(vC,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(v=n.default)==null?void 0:v.call(n)]}})]})}),{groupItem:i}}}),Xoe=["default","accordion","inset","popout"],Joe=Oe({flat:Boolean,...oh(),...lx(MR(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...fn(),...ct(),...Vt(),variant:{type:String,default:"default",validator:e=>Xoe.includes(e)}},"VExpansionPanels"),Qoe=ze()({name:"VExpansionPanels",props:Joe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:i,prev:r}=bd(e,i1),{themeClasses:a}=Pn(e),o=B(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Si({VExpansionPanel:{bgColor:Fe(e,"bgColor"),collapseIcon:Fe(e,"collapseIcon"),color:Fe(e,"color"),eager:Fe(e,"eager"),elevation:Fe(e,"elevation"),expandIcon:Fe(e,"expandIcon"),focusable:Fe(e,"focusable"),hideActions:Fe(e,"hideActions"),readonly:Fe(e,"readonly"),ripple:Fe(e,"ripple"),rounded:Fe(e,"rounded"),static:Fe(e,"static")}}),We(()=>C(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,o.value,e.class],style:e.style},{default:()=>{var s;return[(s=n.default)==null?void 0:s.call(n,{prev:r,next:i})]}})),{next:i,prev:r}}});const ese=Oe({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...Li(L2({active:!0}),["location"]),...nh(),...cc(),...dl({transition:"fab-transition"})},"VFab"),tse=ze()({name:"VFab",props:ese(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),r=it(56),a=z(),{resizeRef:o}=il(d=>{d.length&&(r.value=d[0].target.clientHeight)}),s=B(()=>e.app||e.absolute),l=B(()=>{var d;return s.value?((d=e.location)==null?void 0:d.split(" ").shift())??"bottom":!1}),u=B(()=>{var d;return s.value?((d=e.location)==null?void 0:d.split(" ")[1])??"end":!1});Xa(()=>e.app,()=>{const d=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:l,layoutSize:B(()=>e.layout?r.value+24:0),elementSize:B(()=>r.value+24),active:B(()=>e.app&&i.value),absolute:Fe(e,"absolute")});Wi(()=>{a.value=d.layoutItemStyles.value})});const c=z();return We(()=>{const d=Je.filterProps(e);return C("div",{ref:c,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${l.value}`]:s.value,[`v-fab--${u.value}`]:s.value},e.class],style:[e.app?{...a.value}:{height:"inherit",width:void 0},e.style]},[C("div",{class:"v-fab__container"},[C(Aa,{appear:e.appear,transition:e.transition},{default:()=>[xt(C(Je,Me({ref:o},d,{active:void 0,location:void 0}),n),[[hn,e.active]])]})])])}),{}}});const nse=Oe({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...fc({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>hi(e).every(t=>t!=null&&typeof t=="object")},...Y1({clearable:!0})},"VFileInput"),ise=ze()({name:"VFileInput",inheritAttrs:!1,props:nse(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{t:a}=ki(),o=vt(e,"modelValue",e.modelValue,A=>hi(A),A=>!e.multiple&&Array.isArray(A)?A[0]:A),{isFocused:s,focus:l,blur:u}=au(e),c=B(()=>typeof e.showSize!="boolean"?e.showSize:void 0),d=B(()=>(o.value??[]).reduce((A,D)=>{let{size:T=0}=D;return A+T},0)),f=B(()=>x6(d.value,c.value)),h=B(()=>(o.value??[]).map(A=>{const{name:D="",size:T=0}=A;return e.showSize?`${D} (${x6(T,c.value)})`:D})),m=B(()=>{var D;const A=((D=o.value)==null?void 0:D.length)??0;return e.showSize?a(e.counterSizeString,A,f.value):a(e.counterString,A)}),g=z(),v=z(),y=z(),_=B(()=>s.value||e.active),S=B(()=>["plain","underlined"].includes(e.variant));function w(){var A;y.value!==document.activeElement&&((A=y.value)==null||A.focus()),s.value||l()}function x(A){var D;(D=y.value)==null||D.click()}function k(A){i("mousedown:control",A)}function P(A){var D;(D=y.value)==null||D.click(),i("click:control",A)}function E(A){A.stopPropagation(),w(),Pt(()=>{o.value=[],cx(e["onClick:clear"],A)})}return Ve(o,A=>{(!Array.isArray(A)||!A.length)&&y.value&&(y.value.value="")}),We(()=>{const A=!!(r.counter||e.counter),D=!!(A||r.details),[T,O]=yd(n),{modelValue:N,...V}=ba.filterProps(e),j=Mx(e);return C(ba,Me({ref:g,modelValue:o.value,"onUpdate:modelValue":q=>o.value=q,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":S.value},e.class],style:e.style,"onClick:prepend":x},T,V,{centerAffix:!S.value,focused:s.value}),{...r,default:q=>{let{id:ne,isDisabled:ae,isDirty:Y,isReadonly:M,isValid:I}=q;return C(Sm,Me({ref:v,"prepend-icon":e.prependIcon,onMousedown:k,onClick:P,"onClick:clear":E,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},j,{id:ne.value,active:_.value||Y.value,dirty:Y.value||e.dirty,disabled:ae.value,focused:s.value,error:I.value===!1}),{...r,default:W=>{var oe;let{props:{class:te,...he}}=W;return C(Ue,null,[C("input",Me({ref:y,type:"file",readonly:M.value,disabled:ae.value,multiple:e.multiple,name:e.name,onClick:U=>{U.stopPropagation(),M.value&&U.preventDefault(),w()},onChange:U=>{if(!U.target)return;const ee=U.target;o.value=[...ee.files??[]]},onFocus:w,onBlur:u},he,O),null),C("div",{class:te},[!!((oe=o.value)!=null&&oe.length)&&!e.hideInput&&(r.selection?r.selection({fileNames:h.value,totalBytes:d.value,totalBytesReadable:f.value}):e.chips?h.value.map(U=>C(ma,{key:U,size:"small",text:U},null)):h.value.join(", "))])])}})},details:D?q=>{var ne,ae;return C(Ue,null,[(ne=r.details)==null?void 0:ne.call(r,q),A&&C(Ue,null,[C("span",null,null),C(B2,{active:!!((ae=o.value)!=null&&ae.length),value:m.value,disabled:e.disabled},r.counter)])])}:void 0})}),ws({},g,v,y)}});const rse=Oe({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...mo(),...ct(),...Cr(),...nh(),...pi(),...Vt({tag:"footer"}),...fn()},"VFooter"),ase=ze()({name:"VFooter",props:rse(),setup(e,t){let{slots:n}=t;const i=z(),{themeClasses:r}=Pn(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Rn(Fe(e,"color")),{borderClasses:s}=Wo(e),{elevationClasses:l}=ta(e),{roundedClasses:u}=Ti(e),c=it(32),{resizeRef:d}=il(h=>{h.length&&(c.value=h[0].target.clientHeight)}),f=B(()=>e.height==="auto"?c.value:parseInt(e.height,10));return Xa(()=>e.app,()=>{const h=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:B(()=>"bottom"),layoutSize:f,elementSize:B(()=>e.height==="auto"?void 0:f.value),active:B(()=>e.app),absolute:Fe(e,"absolute")});Wi(()=>{i.value=h.layoutItemStyles.value})}),We(()=>C(e.tag,{ref:d,class:["v-footer",r.value,a.value,s.value,l.value,u.value,e.class],style:[o.value,e.app?i.value:{height:st(e.height)},e.style]},n)),{}}}),ose=Oe({...ct(),...Mne()},"VForm"),ou=ze()({name:"VForm",props:ose(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=Lne(e),a=z();function o(l){l.preventDefault(),r.reset()}function s(l){const u=l,c=r.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),i("submit",u),u.defaultPrevented||c.then(d=>{var h;let{valid:f}=d;f&&((h=a.value)==null||h.submit())}),u.preventDefault()}return We(()=>{var l;return C("form",{ref:a,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,r)])}),ws(r,a)}}),sse=Oe({disabled:Boolean,modelValue:{type:Boolean,default:null},...Ox()},"VHover"),lse=ze()({name:"VHover",props:sse(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),{runOpenDelay:r,runCloseDelay:a}=Dx(e,o=>!e.disabled&&(i.value=o));return()=>{var o;return(o=n.default)==null?void 0:o.call(n,{isHovering:i.value,props:{onMouseenter:r,onMouseleave:a}})}}});const use=Oe({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...rr(),...Vt()},"VInfiniteScroll"),pP=qo({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:i,isIntersecting:r}=I2();return Ve(r,async a=>{n("intersect",e.side,a)}),We(()=>C("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:i},[Ze(" ")])),{}}}),cse=ze()({name:"VInfiniteScroll",props:use(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=z(),a=it("ok"),o=it("ok"),s=B(()=>st(e.margin)),l=it(!1);function u(x){if(!r.value)return;const k=e.direction==="vertical"?"scrollTop":"scrollLeft";r.value[k]=x}function c(){if(!r.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return r.value[x]}function d(){if(!r.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return r.value[x]}function f(){if(!r.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return r.value[x]}tn(()=>{r.value&&(e.side==="start"?u(d()):e.side==="both"&&u(d()/2-f()/2))});function h(x,k){x==="start"?a.value=k:x==="end"&&(o.value=k)}function m(x){return x==="start"?a.value:o.value}let g=0;function v(x,k){l.value=k,l.value&&y(x)}function y(x){if(e.mode!=="manual"&&!l.value)return;const k=m(x);if(!r.value||["empty","loading"].includes(k))return;g=d(),h(x,"loading");function P(E){h(x,E),Pt(()=>{E==="empty"||E==="error"||(E==="ok"&&x==="start"&&u(d()-g+c()),e.mode!=="manual"&&Pt(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{y(x)})})})}))})}i("load",{side:x,done:P})}const{t:_}=ki();function S(x,k){var A,D,T,O,N;if(e.side!==x&&e.side!=="both")return;const P=()=>y(x),E={side:x,props:{onClick:P,color:e.color}};return k==="error"?(A=n.error)==null?void 0:A.call(n,E):k==="empty"?((D=n.empty)==null?void 0:D.call(n,E))??C("div",null,[_(e.emptyText)]):e.mode==="manual"?k==="loading"?((T=n.loading)==null?void 0:T.call(n,E))??C(ad,{indeterminate:!0,color:e.color},null):((O=n["load-more"])==null?void 0:O.call(n,E))??C(Je,{variant:"outlined",color:e.color,onClick:P},{default:()=>[_(e.loadMoreText)]}):((N=n.loading)==null?void 0:N.call(n,E))??C(ad,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:w}=ar(e);We(()=>{const x=e.tag,k=e.side==="start"||e.side==="both",P=e.side==="end"||e.side==="both",E=e.mode==="intersect";return C(x,{ref:r,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":k,"v-infinite-scroll--end":P}],style:w.value},{default:()=>{var A;return[C("div",{class:"v-infinite-scroll__side"},[S("start",a.value)]),k&&E&&C(pP,{key:"start",side:"start",onIntersect:v,rootMargin:s.value},null),(A=n.default)==null?void 0:A.call(n),P&&E&&C(pP,{key:"end",side:"end",onIntersect:v,rootMargin:s.value},null),C("div",{class:"v-infinite-scroll__side"},[S("end",o.value)])]}})})}});const LR=Symbol.for("vuetify:v-item-group"),dse=Oe({...ct(),...oh({selectedClass:"v-item--selected"}),...Vt(),...fn()},"VItemGroup"),fse=ze()({name:"VItemGroup",props:dse(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{isSelected:r,select:a,next:o,prev:s,selected:l}=bd(e,LR);return()=>C(e.tag,{class:["v-item-group",i.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,select:a,next:o,prev:s,selected:l.value})]}})}}),hse=ze()({name:"VItem",props:sh(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,select:r,toggle:a,selectedClass:o,value:s,disabled:l}=lh(e,LR);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:i.value,selectedClass:o.value,select:r,toggle:a,value:s.value,disabled:l.value})}}});const pse=iu("v-kbd","kbd");const mse=Oe({...ct(),...rr(),...mM()},"VLayout"),vse=ze()({name:"VLayout",props:mse(),setup(e,t){let{slots:n}=t;const{layoutClasses:i,layoutStyles:r,getLayoutItem:a,items:o,layoutRef:s}=gM(e),{dimensionStyles:l}=ar(e);return We(()=>{var u;return C("div",{ref:s,class:[i.value,e.class],style:[l.value,r.value,e.style]},[(u=n.default)==null?void 0:u.call(n)])}),{getLayoutItem:a,items:o}}});const gse=Oe({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...ct(),...nh()},"VLayoutItem"),yse=ze()({name:"VLayoutItem",props:gse(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:i}=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:Fe(e,"position"),elementSize:Fe(e,"size"),layoutSize:Fe(e,"size"),active:Fe(e,"modelValue"),absolute:Fe(e,"absolute")});return()=>{var r;return C("div",{class:["v-layout-item",e.class],style:[i.value,e.style]},[(r=n.default)==null?void 0:r.call(n)])}}}),_se=Oe({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...ct(),...rr(),...Vt(),...dl({transition:"fade-transition"})},"VLazy"),bse=ze()({name:"VLazy",directives:{intersect:D2},props:_se(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=ar(e),r=vt(e,"modelValue");function a(o){r.value||(r.value=o)}return We(()=>xt(C(e.tag,{class:["v-lazy",e.class],style:[i.value,e.style]},{default:()=>[r.value&&C(Aa,{transition:e.transition,appear:!0},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})]}),[[po("intersect"),{handler:a,options:e.options},null]])),{}}});const wse=Oe({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...ct()},"VLocaleProvider"),Sse=ze()({name:"VLocaleProvider",props:wse(),setup(e,t){let{slots:n}=t;const{rtlClasses:i}=Ite(e);return We(()=>{var r;return C("div",{class:["v-locale-provider",i.value,e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}});const Cse=Oe({scrollable:Boolean,...ct(),...rr(),...Vt({tag:"main"})},"VMain"),Ese=ze()({name:"VMain",props:Cse(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=ar(e),{mainStyles:r}=vM(),{ssrBootStyles:a}=rh();return We(()=>C(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[r.value,a.value,i.value,e.style]},{default:()=>{var o,s;return[e.scrollable?C("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(s=n.default)==null?void 0:s.call(n)]}})),{}}});function xse(e){let{rootEl:t,isSticky:n,layoutItemStyles:i}=e;const r=it(!1),a=it(0),o=B(()=>{const u=typeof r.value=="boolean"?"top":r.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,r.value?{[u]:st(a.value)}:{top:i.value.top}]});tn(()=>{Ve(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),Ci(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){const u=s>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(i.value.top??0),f=window.scrollY-Math.max(0,a.value-d),h=c.height+Math.max(a.value,d)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-d?(r.value="top",a.value=d):u==="up"&&r.value==="bottom"||u==="down"&&r.value==="top"?(a.value=window.scrollY+c.top-m,r.value=!0):u==="down"&&h<=0?(a.value=0,r.value="bottom"):u==="up"&&f<=0&&(m?r.value!=="top"&&(a.value=-f+m+d,r.value="top"):(a.value=c.top+f,r.value="top")),s=window.scrollY}return{isStuck:r,stickyStyles:o}}const kse=100,Tse=20;function mP(e){const t=1.41421356237;return(e<0?-1:1)*Math.sqrt(Math.abs(e))*t}function vP(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const i=mP(t),r=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(r-i)*Math.abs(r),n===e.length-1&&(t*=.5)}return mP(t)*1e3}function Pse(){const e={};function t(r){Array.from(r.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new Bee(Tse))).push([r.timeStamp,a])})}function n(r){Array.from(r.changedTouches).forEach(a=>{delete e[a.identifier]})}function i(r){var u;const a=(u=e[r])==null?void 0:u.values().reverse();if(!a)throw new Error(`No samples for touch id ${r}`);const o=a[0],s=[],l=[];for(const c of a){if(o[0]-c[0]>kse)break;s.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:vP(s),y:vP(l),get direction(){const{x:c,y:d}=this,[f,h]=[Math.abs(c),Math.abs(d)];return f>h&&c>=0?"right":f>h&&c<=0?"left":h>f&&d>=0?"down":h>f&&d<=0?"up":$se()}}}return{addMovement:t,endTouch:n,getVelocity:i}}function $se(){throw new Error}function Ase(e){let{el:t,isActive:n,isTemporary:i,width:r,touchless:a,position:o}=e;tn(()=>{window.addEventListener("touchstart",_,{passive:!0}),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",w,{passive:!0})}),Ci(()=>{window.removeEventListener("touchstart",_),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",w)});const s=B(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=Pse();let d=!1;const f=it(!1),h=it(0),m=it(0);let g;function v(k,P){return(o.value==="left"?k:o.value==="right"?document.documentElement.clientWidth-k:o.value==="top"?k:o.value==="bottom"?document.documentElement.clientHeight-k:Nh())-(P?r.value:0)}function y(k){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const E=o.value==="left"?(k-m.value)/r.value:o.value==="right"?(document.documentElement.clientWidth-k-m.value)/r.value:o.value==="top"?(k-m.value)/r.value:o.value==="bottom"?(document.documentElement.clientHeight-k-m.value)/r.value:Nh();return P?Math.max(0,Math.min(1,E)):E}function _(k){if(a.value)return;const P=k.changedTouches[0].clientX,E=k.changedTouches[0].clientY,A=25,D=o.value==="left"?P<A:o.value==="right"?P>document.documentElement.clientWidth-A:o.value==="top"?E<A:o.value==="bottom"?E>document.documentElement.clientHeight-A:Nh(),T=n.value&&(o.value==="left"?P<r.value:o.value==="right"?P>document.documentElement.clientWidth-r.value:o.value==="top"?E<r.value:o.value==="bottom"?E>document.documentElement.clientHeight-r.value:Nh());(D||T||n.value&&i.value)&&(g=[P,E],m.value=v(s.value?P:E,n.value),h.value=y(s.value?P:E),d=m.value>-20&&m.value<80,u(k),l(k))}function S(k){const P=k.changedTouches[0].clientX,E=k.changedTouches[0].clientY;if(d){if(!k.cancelable){d=!1;return}const D=Math.abs(P-g[0]),T=Math.abs(E-g[1]);(s.value?D>T&&D>3:T>D&&T>3)?(f.value=!0,d=!1):(s.value?T:D)>3&&(d=!1)}if(!f.value)return;k.preventDefault(),l(k);const A=y(s.value?P:E,!1);h.value=Math.max(0,Math.min(1,A)),A>1?m.value=v(s.value?P:E,!0):A<0&&(m.value=v(s.value?P:E,!1))}function w(k){if(d=!1,!f.value)return;l(k),f.value=!1;const P=c(k.changedTouches[0].identifier),E=Math.abs(P.x),A=Math.abs(P.y);(s.value?E>A&&E>400:A>E&&A>3)?n.value=P.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||Nh()):n.value=h.value>.5}const x=B(()=>f.value?{transform:o.value==="left"?`translateX(calc(-100% + ${h.value*r.value}px))`:o.value==="right"?`translateX(calc(100% - ${h.value*r.value}px))`:o.value==="top"?`translateY(calc(-100% + ${h.value*r.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${h.value*r.value}px))`:Nh(),transition:"none"}:void 0);return Xa(f,()=>{var E,A;const k=((E=t.value)==null?void 0:E.style.transform)??null,P=((A=t.value)==null?void 0:A.style.transition)??null;Wi(()=>{var D,T,O,N;(T=t.value)==null||T.style.setProperty("transform",((D=x.value)==null?void 0:D.transform)||"none"),(N=t.value)==null||N.style.setProperty("transition",((O=x.value)==null?void 0:O.transition)||null)}),Qr(()=>{var D,T;(D=t.value)==null||D.style.setProperty("transform",k),(T=t.value)==null||T.style.setProperty("transition",P)})}),{isDragging:f,dragProgress:h,dragStyles:x}}function Nh(){throw new Error}const Ose=["start","end","left","right","top","bottom"],Dse=Oe({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>Ose.includes(e)},sticky:Boolean,...mo(),...ct(),...Ox(),...ch({mobile:null}),...Cr(),...nh(),...pi(),...Vt({tag:"nav"}),...fn()},"VNavigationDrawer"),RR=ze()({name:"VNavigationDrawer",props:Dse(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{isRtl:a}=Sr(),{themeClasses:o}=Pn(e),{borderClasses:s}=Wo(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Rn(Fe(e,"color")),{elevationClasses:c}=ta(e),{displayClasses:d,mobile:f}=Ki(e),{roundedClasses:h}=Ti(e),m=IM(),g=vt(e,"modelValue",null,I=>!!I),{ssrBootStyles:v}=rh(),{scopeId:y}=dh(),_=z(),S=it(!1),{runOpenDelay:w,runCloseDelay:x}=Dx(e,I=>{S.value=I}),k=B(()=>e.rail&&e.expandOnHover&&S.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),P=B(()=>z5(e.location,a.value)),E=B(()=>e.persistent),A=B(()=>!e.permanent&&(f.value||e.temporary)),D=B(()=>e.sticky&&!A.value&&P.value!=="bottom");Xa(()=>e.expandOnHover&&e.rail!=null,()=>{Ve(S,I=>i("update:rail",!I))}),Xa(()=>!e.disableResizeWatcher,()=>{Ve(A,I=>!e.permanent&&Pt(()=>g.value=!I))}),Xa(()=>!e.disableRouteWatcher&&!!m,()=>{Ve(m.currentRoute,()=>A.value&&(g.value=!1))}),Ve(()=>e.permanent,I=>{I&&(g.value=!0)}),e.modelValue==null&&!A.value&&(g.value=e.permanent||!f.value);const{isDragging:T,dragProgress:O}=Ase({el:_,isActive:g,isTemporary:A,width:k,touchless:Fe(e,"touchless"),position:P}),N=B(()=>{const I=A.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):k.value;return T.value?I*O.value:I}),V=B(()=>["top","bottom"].includes(e.location)?0:k.value),{layoutItemStyles:j,layoutItemScrimStyles:q}=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:P,layoutSize:N,elementSize:V,active:B(()=>g.value||T.value),disableTransitions:B(()=>T.value),absolute:B(()=>e.absolute||D.value&&typeof ne.value!="string")}),{isStuck:ne,stickyStyles:ae}=xse({rootEl:_,isSticky:D,layoutItemStyles:j}),Y=Rn(B(()=>typeof e.scrim=="string"?e.scrim:null)),M=B(()=>({...T.value?{opacity:O.value*.2,transition:"none"}:void 0,...q.value}));return Si({VList:{bgColor:"transparent"}}),We(()=>{const I=r.image||e.image;return C(Ue,null,[C(e.tag,Me({ref:_,onMouseenter:w,onMouseleave:x,class:["v-navigation-drawer",`v-navigation-drawer--${P.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":S.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":A.value,"v-navigation-drawer--persistent":E.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":D.value},o.value,l.value,s.value,d.value,c.value,h.value,e.class],style:[u.value,j.value,v.value,ae.value,e.style,["top","bottom"].includes(P.value)?{height:"auto"}:{}]},y,n),{default:()=>{var W,te,he;return[I&&C("div",{key:"image",class:"v-navigation-drawer__img"},[r.image?C(Yt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},r.image):C(Ii,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),r.prepend&&C("div",{class:"v-navigation-drawer__prepend"},[(W=r.prepend)==null?void 0:W.call(r)]),C("div",{class:"v-navigation-drawer__content"},[(te=r.default)==null?void 0:te.call(r)]),r.append&&C("div",{class:"v-navigation-drawer__append"},[(he=r.append)==null?void 0:he.call(r)])]}}),C(Gl,{name:"fade-transition"},{default:()=>[A.value&&(T.value||g.value)&&!!e.scrim&&C("div",Me({class:["v-navigation-drawer__scrim",Y.backgroundColorClasses.value],style:[M.value,Y.backgroundColorStyles.value],onClick:()=>{E.value||(g.value=!1)}},y),null)]})])}),{isStuck:ne}}}),Ise=qo({name:"VNoSsr",setup(e,t){let{slots:n}=t;const i=_L();return()=>{var r;return i.value&&((r=n.default)==null?void 0:r.call(n))}}});const Nse=Oe({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...rr(),...wm(),...x2(Y1({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),Mse=ze()({name:"VOtpInput",props:Nse(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const{dimensionStyles:a}=ar(e),{isFocused:o,focus:s,blur:l}=au(e),u=vt(e,"modelValue","",E=>E==null?[]:String(E).split(""),E=>E.join("")),{t:c}=ki(),d=B(()=>Number(e.length)),f=B(()=>Array(d.value).fill(0)),h=z(-1),m=z(),g=z([]),v=B(()=>g.value[h.value]);function y(){if(P(v.value.value)){v.value.value="";return}const E=u.value.slice(),A=v.value.value;E[h.value]=A;let D=null;h.value>u.value.length?D=u.value.length+1:h.value+1!==d.value&&(D="next"),u.value=E,D&&$f(m.value,D)}function _(E){const A=u.value.slice(),D=h.value;let T=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(E.key)&&(E.preventDefault(),E.key==="ArrowLeft"?T="prev":E.key==="ArrowRight"?T="next":["Backspace","Delete"].includes(E.key)&&(A[h.value]="",u.value=A,h.value>0&&E.key==="Backspace"?T="prev":requestAnimationFrame(()=>{var O;(O=g.value[D])==null||O.select()})),requestAnimationFrame(()=>{T!=null&&$f(m.value,T)}))}function S(E,A){var T,O;A.preventDefault(),A.stopPropagation();const D=((T=A==null?void 0:A.clipboardData)==null?void 0:T.getData("Text").slice(0,d.value))??"";P(D)||(u.value=D.split(""),(O=g.value)==null||O[E].blur())}function w(){u.value=[]}function x(E,A){s(),h.value=A}function k(){l(),h.value=-1}function P(E){return e.type==="number"&&/[^0-9]/g.test(E)}return Si({VField:{color:B(()=>e.color),bgColor:B(()=>e.color),baseColor:B(()=>e.baseColor),disabled:B(()=>e.disabled),error:B(()=>e.error),variant:B(()=>e.variant)}},{scoped:!0}),Ve(u,E=>{E.length===d.value&&i("finish",E.join(""))},{deep:!0}),Ve(h,E=>{E<0||Pt(()=>{var A;(A=g.value[E])==null||A.select()})}),We(()=>{var D;const[E,A]=yd(n);return C("div",Me({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},E),[C("div",{ref:m,class:"v-otp-input__content",style:[a.value]},[f.value.map((T,O)=>C(Ue,null,[e.divider&&O!==0&&C("span",{class:"v-otp-input__divider"},[e.divider]),C(Sm,{focused:o.value&&e.focusAll||h.value===O,key:O},{...r,loader:void 0,default:()=>C("input",{ref:N=>g.value[O]=N,"aria-label":c(e.label,O+1),autofocus:O===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[O],onInput:y,onFocus:N=>x(N,O),onBlur:k,onKeydown:_,onPaste:N=>S(O,N)},null)})])),C("input",Me({class:"v-otp-input-input",type:"hidden"},A,{value:u.value.join("")}),null),C(Kl,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var T;return[((T=r.loader)==null?void 0:T.call(r))??C(ad,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(D=r.default)==null?void 0:D.call(r)])])}),{blur:()=>{var E;(E=g.value)==null||E.some(A=>A.blur())},focus:()=>{var E;(E=g.value)==null||E[0].focus()},reset:w,isFocused:o}}});function Lse(e){return Math.floor(Math.abs(e))*Math.sign(e)}const Rse=Oe({scale:{type:[Number,String],default:.5},...ct()},"VParallax"),Fse=ze()({name:"VParallax",props:Rse(),setup(e,t){let{slots:n}=t;const{intersectionRef:i,isIntersecting:r}=I2(),{resizeRef:a,contentRect:o}=il(),{height:s}=Ki(),l=z();Wi(()=>{var h;i.value=a.value=(h=l.value)==null?void 0:h.$el});let u;Ve(r,h=>{h?(u=mx(i.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",f,{passive:!0}),f()):u.removeEventListener("scroll",f)}),Ci(()=>{u==null||u.removeEventListener("scroll",f)}),Ve(s,f),Ve(()=>{var h;return(h=o.value)==null?void 0:h.height},f);const c=B(()=>1-qi(+e.scale));let d=-1;function f(){r.value&&(cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;const h=((x=l.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!h)return;const m=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,g=u instanceof Document?window.scrollY:u.scrollTop,v=i.value.getBoundingClientRect().top+g,y=o.value.height,_=v+(y-m)/2,S=Lse((g-_)*c.value),w=Math.max(1,(c.value*(m-y)+y)/y);h.style.setProperty("transform",`translateY(${S}px) scale(${w})`)}))}return We(()=>C(Ii,{class:["v-parallax",{"v-parallax--active":r.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:f,onLoad:f},n)),{}}}),Vse=Oe({...R2({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),zc=ze()({name:"VRadio",props:Vse(),setup(e,t){let{slots:n}=t;return We(()=>{const i=od.filterProps(e);return C(od,Me(i,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}});const Bse=Oe({height:{type:[Number,String],default:"auto"},...fc(),...Li(xx(),["multiple"]),trueIcon:{type:_t,default:"$radioOn"},falseIcon:{type:_t,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Q_=ze()({name:"VRadioGroup",inheritAttrs:!1,props:Bse(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=ea(),a=B(()=>e.id||`radio-group-${r}`),o=vt(e,"modelValue");return We(()=>{const[s,l]=yd(n),u=ba.filterProps(e),c=od.filterProps(e),d=i.label?i.label({label:e.label,props:{for:a.value}}):e.label;return C(ba,Me({class:["v-radio-group",e.class],style:e.style},s,u,{modelValue:o.value,"onUpdate:modelValue":f=>o.value=f,id:a.value}),{...i,default:f=>{let{id:h,messagesId:m,isDisabled:g,isReadonly:v}=f;return C(Ue,null,[d&&C(bm,{id:h.value},{default:()=>[d]}),C(HM,Me(c,{id:h.value,"aria-describedby":m.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:v.value,"aria-labelledby":d?h.value:void 0,multiple:!1},l,{modelValue:o.value,"onUpdate:modelValue":y=>o.value=y}),i)])}})}),{}}}),zse=Oe({...wm(),...fc(),...LL(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),jse=ze()({name:"VRangeSlider",props:zse(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:i}=t;const r=z(),a=z(),o=z(),{rtlClasses:s}=Sr();function l(D){if(!r.value||!a.value)return;const T=aC(D,r.value.$el,e.direction),O=aC(D,a.value.$el,e.direction),N=Math.abs(T),V=Math.abs(O);return N<V||N===V&&T<0?r.value.$el:a.value.$el}const u=RL(e),c=vt(e,"modelValue",void 0,D=>D!=null&&D.length?D.map(T=>u.roundValue(T)):[0,0]),{activeThumbRef:d,hasLabels:f,max:h,min:m,mousePressed:g,onSliderMousedown:v,onSliderTouchstart:y,position:_,trackContainerRef:S,readonly:w}=FL({props:e,steps:u,onSliderStart:()=>{i("start",c.value)},onSliderEnd:D=>{var N;let{value:T}=D;const O=d.value===((N=r.value)==null?void 0:N.$el)?[T,c.value[1]]:[c.value[0],T];!e.strict&&O[0]<O[1]&&(c.value=O),i("end",c.value)},onSliderMove:D=>{var V,j,q,ne;let{value:T}=D;const[O,N]=c.value;!e.strict&&O===N&&O!==m.value&&(d.value=T>O?(V=a.value)==null?void 0:V.$el:(j=r.value)==null?void 0:j.$el,(q=d.value)==null||q.focus()),d.value===((ne=r.value)==null?void 0:ne.$el)?c.value=[Math.min(T,N),N]:c.value=[O,Math.max(O,T)]},getActiveThumb:l}),{isFocused:x,focus:k,blur:P}=au(e),E=B(()=>_(c.value[0])),A=B(()=>_(c.value[1]));return We(()=>{const D=ba.filterProps(e),T=!!(e.label||n.label||n.prepend);return C(ba,Me({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||f.value,"v-slider--focused":x.value,"v-slider--pressed":g.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},D,{focused:x.value}),{...n,prepend:T?O=>{var N,V;return C(Ue,null,[((N=n.label)==null?void 0:N.call(n,O))??(e.label?C(bm,{class:"v-slider__label",text:e.label},null):void 0),(V=n.prepend)==null?void 0:V.call(n,O)])}:void 0,default:O=>{var j,q;let{id:N,messagesId:V}=O;return C("div",{class:"v-slider__container",onMousedown:w.value?void 0:v,onTouchstartPassive:w.value?void 0:y},[C("input",{id:`${N.value}_start`,name:e.name||N.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),C("input",{id:`${N.value}_stop`,name:e.name||N.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),C(VL,{ref:S,start:E.value,stop:A.value},{"tick-label":n["tick-label"]}),C(oC,{ref:r,"aria-describedby":V.value,focused:x&&d.value===((j=r.value)==null?void 0:j.$el),modelValue:c.value[0],"onUpdate:modelValue":ne=>c.value=[ne,c.value[1]],onFocus:ne=>{var ae,Y,M,I;k(),d.value=(ae=r.value)==null?void 0:ae.$el,h.value!==m.value&&c.value[0]===c.value[1]&&c.value[1]===m.value&&ne.relatedTarget!==((Y=a.value)==null?void 0:Y.$el)&&((M=r.value)==null||M.$el.blur(),(I=a.value)==null||I.$el.focus())},onBlur:()=>{P(),d.value=void 0},min:m.value,max:c.value[1],position:E.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),C(oC,{ref:a,"aria-describedby":V.value,focused:x&&d.value===((q=a.value)==null?void 0:q.$el),modelValue:c.value[1],"onUpdate:modelValue":ne=>c.value=[c.value[0],ne],onFocus:ne=>{var ae,Y,M,I;k(),d.value=(ae=a.value)==null?void 0:ae.$el,h.value!==m.value&&c.value[0]===c.value[1]&&c.value[0]===h.value&&ne.relatedTarget!==((Y=r.value)==null?void 0:Y.$el)&&((M=a.value)==null||M.$el.blur(),(I=r.value)==null||I.$el.focus())},onBlur:()=>{P(),d.value=void 0},min:c.value[0],max:h.value,position:A.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}});const Use=Oe({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:_t,default:"$ratingEmpty"},fullIcon:{type:_t,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...ct(),...Mr(),...ru(),...Vt(),...fn()},"VRating"),Hse=ze()({name:"VRating",props:Use(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=ki(),{themeClasses:r}=Pn(e),a=vt(e,"modelValue"),o=B(()=>qi(parseFloat(a.value),0,+e.length)),s=B(()=>Ll(Number(e.length),1)),l=B(()=>s.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),u=it(-1),c=B(()=>l.value.map(g=>{const v=e.hover&&u.value>-1,y=o.value>=g,_=u.value>=g,w=(v?_:y)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,k=y||_?x:e.color;return{isFilled:y,isHovered:_,icon:w,color:k}})),d=B(()=>[0,...l.value].map(g=>{function v(){u.value=g}function y(){u.value=-1}function _(){e.disabled||e.readonly||(a.value=o.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?v:void 0,onMouseleave:e.hover?y:void 0,onClick:_}})),f=B(()=>e.name??`v-rating-${ea()}`);function h(g){var E,A;let{value:v,index:y,showStar:_=!0}=g;const{onMouseenter:S,onMouseleave:w,onClick:x}=d.value[y+1],k=`${f.value}-${String(v).replace(".","-")}`,P={color:(E=c.value[y])==null?void 0:E.color,density:e.density,disabled:e.disabled,icon:(A=c.value[y])==null?void 0:A.icon,ripple:e.ripple,size:e.size,variant:"plain"};return C(Ue,null,[C("label",{for:k,class:{"v-rating__item--half":e.halfIncrements&&v%1>0,"v-rating__item--full":e.halfIncrements&&v%1===0},onMouseenter:S,onMouseleave:w,onClick:x},[C("span",{class:"v-rating__hidden"},[i(e.itemAriaLabel,v,e.length)]),_?n.item?n.item({...c.value[y],props:P,value:v,index:y,rating:o.value}):C(Je,Me({"aria-label":i(e.itemAriaLabel,v,e.length)},P),null):void 0]),C("input",{class:"v-rating__hidden",name:f.value,id:k,type:"radio",value:v,checked:o.value===v,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function m(g){return n["item-label"]?n["item-label"](g):g.label?C("span",null,[g.label]):C("span",null,[Ze(" ")])}return We(()=>{var v;const g=!!((v=e.itemLabels)!=null&&v.length)||n["item-label"];return C(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},r.value,e.class],style:e.style},{default:()=>[C(h,{value:0,index:-1,showStar:!1},null),s.value.map((y,_)=>{var S,w;return C("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?m({value:y,index:_,label:(S=e.itemLabels)==null?void 0:S[_]}):void 0,C("div",{class:"v-rating__item"},[e.halfIncrements?C(Ue,null,[C(h,{value:y-.5,index:_*2},null),C(h,{value:y,index:_*2+1},null)]):C(h,{value:y,index:_},null)]),g&&e.itemLabelPosition==="bottom"?m({value:y,index:_,label:(w=e.itemLabels)==null?void 0:w[_]}):void 0])})]})}),{}}});const qse={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Yse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function gP(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>nw(t))}function nw(e){let t=[];if(!e)return t;const n=qse[e];if(e!==n){if(e.includes(","))return yP(e);if(e.includes("@"))return gP(e);n.includes(",")?t=yP(n):n.includes("@")?t=gP(n):n&&t.push(nw(n))}return[Yse(e,t)]}function yP(e){return e.replace(/\s/g,"").split(",").map(nw)}const Wse=Oe({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...rr(),...Cr(),...fn()},"VSkeletonLoader"),r1=ze()({name:"VSkeletonLoader",props:Wse(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:i,backgroundColorStyles:r}=Rn(Fe(e,"color")),{dimensionStyles:a}=ar(e),{elevationClasses:o}=ta(e),{themeClasses:s}=Pn(e),{t:l}=ki(),u=B(()=>nw(hi(e.type).join(",")));return We(()=>{var f;const c=!n.default||e.loading,d=e.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:l(e.loadingText),role:"alert"};return C("div",Me({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,i.value,o.value],style:[r.value,c?a.value:{}]},d),[c?u.value:(f=n.default)==null?void 0:f.call(n)])}),{}}}),Gse=ze()({name:"VSlideGroupItem",props:sh(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=lh(e,tL);return()=>{var r;return(r=n.default)==null?void 0:r.call(n,{isSelected:i.isSelected.value,select:i.select,toggle:i.toggle,selectedClass:i.selectedClass.value})}}});function Kse(e){const t=it(e());let n=-1;function i(){clearInterval(n)}function r(){i(),Pt(()=>t.value=e())}function a(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(i(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&i()},l)}return Qr(i),{clear:i,time:t,start:a,reset:r}}const Zse=Oe({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...cc({location:"bottom"}),...ym(),...pi(),...bs(),...fn(),...Li(q1({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Xse=ze()({name:"VSnackbar",props:Zse(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),{positionClasses:r}=_m(e),{scopeId:a}=dh(),{themeClasses:o}=Pn(e),{colorClasses:s,colorStyles:l,variantClasses:u}=ah(e),{roundedClasses:c}=Ti(e),d=Kse(()=>Number(e.timeout)),f=z(),h=z(),m=it(!1),g=it(0),v=z(),y=kt(Gg,void 0);Xa(()=>!!y,()=>{const T=vM();Wi(()=>{v.value=T.mainStyles.value})}),Ve(i,S),Ve(()=>e.timeout,S),tn(()=>{i.value&&S()});let _=-1;function S(){d.reset(),window.clearTimeout(_);const T=Number(e.timeout);if(!i.value||T===-1)return;const O=sx(h.value);d.start(O),_=window.setTimeout(()=>{i.value=!1},T)}function w(){d.reset(),window.clearTimeout(_)}function x(){m.value=!0,w()}function k(){m.value=!1,S()}function P(T){g.value=T.touches[0].clientY}function E(T){Math.abs(g.value-T.changedTouches[0].clientY)>50&&(i.value=!1)}function A(){m.value&&k()}const D=B(()=>e.location.split(" ").reduce((T,O)=>(T[`v-snackbar--${O}`]=!0,T),{}));return We(()=>{const T=Kl.filterProps(e),O=!!(n.default||n.text||e.text);return C(Kl,Me({ref:f,class:["v-snackbar",{"v-snackbar--active":i.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},D.value,r.value,e.class],style:[v.value,e.style]},T,{modelValue:i.value,"onUpdate:modelValue":N=>i.value=N,contentProps:Me({class:["v-snackbar__wrapper",o.value,s.value,c.value,u.value],style:[l.value],onPointerenter:x,onPointerleave:k},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:P,onTouchend:E,onAfterLeave:A},a),{default:()=>{var N,V;return[_d(!1,"v-snackbar"),e.timer&&!m.value&&C("div",{key:"timer",class:"v-snackbar__timer"},[C(N2,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":d.time.value},null)]),O&&C("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((N=n.text)==null?void 0:N.call(n))??e.text,(V=n.default)==null?void 0:V.call(n)]),n.actions&&C(Yt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[C("div",{class:"v-snackbar__actions"},[n.actions({isActive:i})])]})]},activator:n.activator})}),ws({},f)}}),FR=Oe({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:Boolean,width:{type:[Number,String],default:300}},"Line"),VR=Oe({autoLineWidth:Boolean,...FR()},"VBarline"),_P=ze()({name:"VBarline",props:VR(),setup(e,t){let{slots:n}=t;const i=ea(),r=B(()=>e.id||`barline-${i}`),a=B(()=>Number(e.autoDrawDuration)||500),o=B(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),s=B(()=>parseFloat(e.lineWidth)||4),l=B(()=>Math.max(e.modelValue.length*s.value,Number(e.width))),u=B(()=>({minX:0,maxX:l.value,minY:0,maxY:parseInt(e.height,10)})),c=B(()=>e.modelValue.map(g=>vr(g,e.itemValue,g)));function d(g,v){const{minX:y,maxX:_,minY:S,maxY:w}=v,x=g.length;let k=e.max!=null?Number(e.max):Math.max(...g),P=e.min!=null?Number(e.min):Math.min(...g);P>0&&e.min==null&&(P=0),k<0&&e.max==null&&(k=0);const E=_/x,A=(w-S)/(k-P||1),D=w-Math.abs(P*A);return g.map((T,O)=>{const N=Math.abs(A*T);return{x:y+O*E,y:D-N+ +(T<0)*N,height:N,value:T}})}const f=B(()=>{const g=[],v=d(c.value,u.value),y=v.length;for(let _=0;g.length<y;_++){const S=v[_];let w=e.labels[_];w||(w=typeof S=="object"?S.value:S),g.push({x:S.x,value:String(w)})}return g}),h=B(()=>d(c.value,u.value)),m=B(()=>(Math.abs(h.value[0].x-h.value[1].x)-s.value)/2);We(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return C("svg",{display:"block"},[C("defs",null,[C("linearGradient",{id:r.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((v,y)=>C("stop",{offset:y/Math.max(g.length-1,1),"stop-color":v||"currentColor"},null))])]),C("clipPath",{id:`${r.value}-clip`},[h.value.map(v=>C("rect",{x:v.x+m.value,y:v.y,width:s.value,height:v.height,rx:typeof e.smooth=="number"?e.smooth:e.smooth?2:0,ry:typeof e.smooth=="number"?e.smooth:e.smooth?2:0},[e.autoDraw&&C(Ue,null,[C("animate",{attributeName:"y",from:v.y+v.height,to:v.y,dur:`${a.value}ms`,fill:"freeze"},null),C("animate",{attributeName:"height",from:"0",to:v.height,dur:`${a.value}ms`,fill:"freeze"},null)])]))]),o.value&&C("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[f.value.map((v,y)=>{var _;return C("text",{x:v.x+m.value+s.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((_=n.label)==null?void 0:_.call(n,{index:y,value:v.value}))??v.value])})]),C("g",{"clip-path":`url(#${r.value}-clip)`,fill:`url(#${r.value})`},[C("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])})}});function Jse(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const r=e.shift(),a=e[e.length-1];return(n?`M${r.x} ${i-r.x+2} L${r.x} ${r.y}`:`M${r.x} ${r.y}`)+e.map((o,s)=>{const l=e[s+1],u=e[s-1]||r,c=l&&Qse(l,o,u);if(!l||c)return`L${o.x} ${o.y}`;const d=Math.min(bP(u,o),bP(l,o)),h=d/2<t?d/2:t,m=wP(u,o,h),g=wP(l,o,h);return`L${m.x} ${m.y}S${o.x} ${o.y} ${g.x} ${g.y}`}).join("")+(n?`L${a.x} ${i-r.x+2} Z`:"")}function Zy(e){return parseInt(e,10)}function Qse(e,t,n){return Zy(e.x+n.x)===Zy(2*t.x)&&Zy(e.y+n.y)===Zy(2*t.y)}function bP(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function wP(e,t,n){const i={x:e.x-t.x,y:e.y-t.y},r=Math.sqrt(i.x*i.x+i.y*i.y),a={x:i.x/r,y:i.y/r};return{x:t.x+a.x*n,y:t.y+a.y*n}}const BR=Oe({fill:Boolean,...FR()},"VTrendline"),SP=ze()({name:"VTrendline",props:BR(),setup(e,t){let{slots:n}=t;const i=ea(),r=B(()=>e.id||`trendline-${i}`),a=B(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),o=z(0),s=z(null);function l(v,y){const{minX:_,maxX:S,minY:w,maxY:x}=y,k=v.length,P=e.max!=null?Number(e.max):Math.max(...v),E=e.min!=null?Number(e.min):Math.min(...v),A=(S-_)/(k-1),D=(x-w)/(P-E||1);return v.map((T,O)=>({x:_+O*A,y:x-(T-E)*D,value:T}))}const u=B(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),c=B(()=>parseFloat(e.lineWidth)||4),d=B(()=>Number(e.width)),f=B(()=>{const v=Number(e.padding);return{minX:v,maxX:d.value-v,minY:v,maxY:parseInt(e.height,10)-v}}),h=B(()=>e.modelValue.map(v=>vr(v,e.itemValue,v))),m=B(()=>{const v=[],y=l(h.value,f.value),_=y.length;for(let S=0;v.length<_;S++){const w=y[S];let x=e.labels[S];x||(x=typeof w=="object"?w.value:w),v.push({x:w.x,value:String(x)})}return v});Ve(()=>e.modelValue,async()=>{if(await Pt(),!e.autoDraw||!s.value)return;const v=s.value,y=v.getTotalLength();e.fill?(v.style.transformOrigin="bottom center",v.style.transition="none",v.style.transform="scaleY(0)",v.getBoundingClientRect(),v.style.transition=`transform ${a.value}ms ${e.autoDrawEasing}`,v.style.transform="scaleY(1)"):(v.style.strokeDasharray=`${y}`,v.style.strokeDashoffset=`${y}`,v.getBoundingClientRect(),v.style.transition=`stroke-dashoffset ${a.value}ms ${e.autoDrawEasing}`,v.style.strokeDashoffset="0"),o.value=y},{immediate:!0});function g(v){return Jse(l(h.value,f.value),e.smooth?8:Number(e.smooth),v,parseInt(e.height,10))}We(()=>{var y;const v=e.gradient.slice().length?e.gradient.slice().reverse():[""];return C("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[C("defs",null,[C("linearGradient",{id:r.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[v.map((_,S)=>C("stop",{offset:S/Math.max(v.length-1,1),"stop-color":_||"currentColor"},null))])]),u.value&&C("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[m.value.map((_,S)=>{var w;return C("text",{x:_.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((w=n.label)==null?void 0:w.call(n,{index:S,value:_.value}))??_.value])})]),C("path",{ref:s,d:g(e.fill),fill:e.fill?`url(#${r.value})`:"none",stroke:e.fill?"none":`url(#${r.value})`},null),e.fill&&C("path",{d:g(!1),fill:"none",stroke:e.color??((y=e.gradient)==null?void 0:y[0])},null)])})}}),ele=Oe({type:{type:String,default:"trend"},...VR(),...BR()},"VSparkline"),tle=ze()({name:"VSparkline",props:ele(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:r}=_a(Fe(e,"color")),a=B(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),o=B(()=>{let s=parseInt(e.height,10);return a.value&&(s+=parseInt(e.labelSize,10)*1.5),s});We(()=>{const s=e.type==="trend"?SP:_P,l=e.type==="trend"?SP.filterProps(e):_P.filterProps(e);return C(s,Me({key:e.type,class:i.value,style:r.value,viewBox:`0 0 ${e.width} ${parseInt(o.value,10)}`},l),n)})}});const nle=Oe({...ct(),...CL({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),ile=ze()({name:"VSpeedDial",props:nle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),r=z(),a=B(()=>{var u;const[s,l="center"]=((u=e.location)==null?void 0:u.split(" "))??[];return`${s} ${l}`}),o=B(()=>({[`v-speed-dial__content--${a.value.replace(" ","-")}`]:!0}));return We(()=>{const s=ho.filterProps(e);return C(ho,Me(s,{modelValue:i.value,"onUpdate:modelValue":l=>i.value=l,class:e.class,style:e.style,contentClass:["v-speed-dial__content",o.value,e.contentClass],location:a.value,ref:r,transition:"fade-transition"}),{...n,default:l=>C(Yt,{defaults:{VBtn:{size:"small"}}},{default:()=>[C(Aa,{appear:!0,group:!0,transition:e.transition},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,l)]}})]})})}),{}}});const n8=Symbol.for("vuetify:v-stepper"),zR=Oe({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),jR=ze()({name:"VStepperActions",props:zR(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:r}=ki();function a(){n("click:prev")}function o(){n("click:next")}return We(()=>{const s={onClick:a},l={onClick:o};return C("div",{class:"v-stepper-actions"},[C(Yt,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:r(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=i.prev)==null?void 0:u.call(i,{props:s}))??C(Je,s,null)]}}),C(Yt,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:r(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=i.next)==null?void 0:u.call(i,{props:l}))??C(Je,l,null)]}})])}),{}}}),UR=iu("v-stepper-header");const rle=Oe({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:_t,default:"$complete"},editable:Boolean,editIcon:{type:_t,default:"$edit"},error:Boolean,errorIcon:{type:_t,default:"$error"},icon:_t,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),ale=Oe({...rle(),...sh()},"VStepperItem"),HR=ze()({name:"VStepperItem",directives:{Ripple:dc},props:ale(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const i=lh(e,n8,!0),r=B(()=>(i==null?void 0:i.value.value)??e.value),a=B(()=>e.rules.every(f=>f()===!0)),o=B(()=>!e.disabled&&e.editable),s=B(()=>!e.disabled&&e.editable),l=B(()=>e.error||!a.value),u=B(()=>e.complete||e.rules.length>0&&a.value),c=B(()=>l.value?e.errorIcon:u.value?e.completeIcon:i.isSelected.value&&e.editable?e.editIcon:e.icon),d=B(()=>({canEdit:s.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:r.value,value:e.value}));return We(()=>{var v,y,_;const f=(!i||i.isSelected.value||u.value||s.value)&&!l.value&&!e.disabled,h=!!(e.title!=null||n.title),m=!!(e.subtitle!=null||n.subtitle);function g(){i==null||i.toggle()}return xt(C("button",{class:["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},i==null?void 0:i.selectedClass.value],disabled:!e.editable,onClick:g},[o.value&&_d(!0,"v-stepper-item"),C(Ui,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:f?e.color:void 0,size:24},{default:()=>{var S;return[((S=n.icon)==null?void 0:S.call(n,d.value))??(c.value?C(ut,{icon:c.value},null):r.value)]}}),C("div",{class:"v-stepper-item__content"},[h&&C("div",{key:"title",class:"v-stepper-item__title"},[((v=n.title)==null?void 0:v.call(n,d.value))??e.title]),m&&C("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((y=n.subtitle)==null?void 0:y.call(n,d.value))??e.subtitle]),(_=n.default)==null?void 0:_.call(n,d.value)])]),[[po("ripple"),e.ripple&&e.editable,null]])}),{}}}),ole=Oe({...Li(U2(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),qR=ze()({name:"VStepperWindow",props:ole(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=kt(n8,null),r=vt(e,"modelValue"),a=B({get(){var o;return r.value!=null||!i?r.value:(o=i.items.value.find(s=>i.selected.value.includes(s.id)))==null?void 0:o.value},set(o){r.value=o}});return We(()=>{const o=Uf.filterProps(e);return C(Uf,Me({_as:"VStepperWindow"},o,{modelValue:a.value,"onUpdate:modelValue":s=>a.value=s,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),sle=Oe({...H2()},"VStepperWindowItem"),YR=ze()({name:"VStepperWindowItem",props:sle(),setup(e,t){let{slots:n}=t;return We(()=>{const i=Hf.filterProps(e);return C(Hf,Me({_as:"VStepperWindowItem"},i,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),lle=Oe({altLabels:Boolean,bgColor:String,completeIcon:_t,editIcon:_t,editable:Boolean,errorIcon:_t,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},nonLinear:Boolean,flat:Boolean,...ch()},"Stepper"),ule=Oe({...lle(),...oh({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...q2(),...x2(zR(),["prevText","nextText"])},"VStepper"),cle=ze()({name:"VStepper",props:ule(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:i,next:r,prev:a,selected:o}=bd(e,n8),{displayClasses:s,mobile:l}=Ki(e),{completeIcon:u,editIcon:c,errorIcon:d,color:f,editable:h,prevText:m,nextText:g}=gd(e),v=B(()=>e.items.map((S,w)=>{const x=vr(S,e.itemTitle,S),k=vr(S,e.itemValue,w+1);return{title:x,value:k,raw:S}})),y=B(()=>i.value.findIndex(S=>o.value.includes(S.id))),_=B(()=>e.disabled?e.disabled:y.value===0?"prev":y.value===i.value.length-1?"next":!1);return Si({VStepperItem:{editable:h,errorIcon:d,completeIcon:u,editIcon:c,prevText:m,nextText:g},VStepperActions:{color:f,disabled:_,prevText:m,nextText:g}}),We(()=>{const S=rc.filterProps(e),w=!!(n.header||e.items.length),x=e.items.length>0,k=!e.hideActions&&!!(x||n.actions);return C(rc,Me(S,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},s.value,e.class],style:e.style}),{default:()=>{var P,E;return[w&&C(UR,{key:"stepper-header"},{default:()=>[v.value.map((A,D)=>{let{raw:T,...O}=A;return C(Ue,null,[!!D&&C(jn,null,null),C(HR,O,{default:n[`header-item.${O.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),x&&C(qR,{key:"stepper-window"},{default:()=>[v.value.map(A=>C(YR,{value:A.value},{default:()=>{var D,T;return((D=n[`item.${A.value}`])==null?void 0:D.call(n,A))??((T=n.item)==null?void 0:T.call(n,A))}}))]}),(P=n.default)==null?void 0:P.call(n,{prev:a,next:r}),k&&(((E=n.actions)==null?void 0:E.call(n,{next:r,prev:a}))??C(jR,{key:"stepper-actions","onClick:prev":a,"onClick:next":r},n))]}})}),{prev:a,next:r}}});const dle=Oe({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...fc(),...R2()},"VSwitch"),i8=ze()({name:"VSwitch",inheritAttrs:!1,props:dle(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=vt(e,"indeterminate"),a=vt(e,"modelValue"),{loaderClasses:o}=z1(e),{isFocused:s,focus:l,blur:u}=au(e),c=z(),d=En&&window.matchMedia("(forced-colors: active)").matches,f=B(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),h=ea(),m=B(()=>e.id||`switch-${h}`);function g(){r.value&&(r.value=!1)}function v(y){var _,S;y.stopPropagation(),y.preventDefault(),(S=(_=c.value)==null?void 0:_.input)==null||S.click()}return We(()=>{const[y,_]=yd(n),S=ba.filterProps(e),w=od.filterProps(e);return C(ba,Me({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":r.value},o.value,e.class]},y,S,{modelValue:a.value,"onUpdate:modelValue":x=>a.value=x,id:m.value,focused:s.value,style:e.style}),{...i,default:x=>{let{id:k,messagesId:P,isDisabled:E,isReadonly:A,isValid:D}=x;const T={model:a,isValid:D};return C(od,Me({ref:c},w,{modelValue:a.value,"onUpdate:modelValue":[O=>a.value=O,g],id:k.value,"aria-describedby":P.value,type:"checkbox","aria-checked":r.value?"mixed":void 0,disabled:E.value,readonly:A.value,onFocus:l,onBlur:u},_),{...i,default:O=>{let{backgroundColorClasses:N,backgroundColorStyles:V}=O;return C("div",{class:["v-switch__track",d?void 0:N.value],style:V.value,onClick:v},[i["track-true"]&&C("div",{key:"prepend",class:"v-switch__track-true"},[i["track-true"](T)]),i["track-false"]&&C("div",{key:"append",class:"v-switch__track-false"},[i["track-false"](T)])])},input:O=>{let{inputNode:N,icon:V,backgroundColorClasses:j,backgroundColorStyles:q}=O;return C(Ue,null,[N,C("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":V||e.loading},e.inset||d?void 0:j.value],style:e.inset?void 0:q.value},[i.thumb?C(Yt,{defaults:{VIcon:{icon:V,size:"x-small"}}},{default:()=>[i.thumb({...T,icon:V})]}):C(bx,null,{default:()=>[e.loading?C(j1,{name:"v-switch",active:!0,color:D.value===!1?void 0:f.value},{default:ne=>i.loader?i.loader(ne):C(ad,{active:ne.isActive,color:ne.color,indeterminate:!0,size:"16",width:"2"},null)}):V&&C(ut,{key:String(V),icon:V,size:"x-small"},null)]})])])}})}})}),{}}});const fle=Oe({color:String,height:[Number,String],window:Boolean,...ct(),...Cr(),...nh(),...pi(),...Vt(),...fn()},"VSystemBar"),hle=ze()({name:"VSystemBar",props:fle(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{backgroundColorClasses:r,backgroundColorStyles:a}=Rn(Fe(e,"color")),{elevationClasses:o}=ta(e),{roundedClasses:s}=Ti(e),{ssrBootStyles:l}=rh(),u=B(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=ih({id:e.name,order:B(()=>parseInt(e.order,10)),position:it("top"),layoutSize:u,elementSize:u,active:B(()=>!0),absolute:Fe(e,"absolute")});return We(()=>C(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},i.value,r.value,o.value,s.value,e.class],style:[a.value,c.value,l.value,e.style]},n)),{}}});const r8=Symbol.for("vuetify:v-tabs"),ple=Oe({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Li(L2({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),a8=ze()({name:"VTab",props:ple(),setup(e,t){let{slots:n,attrs:i}=t;const{textColorClasses:r,textColorStyles:a}=_a(e,"sliderColor"),o=z(),s=z(),l=B(()=>e.direction==="horizontal"),u=B(()=>{var d,f;return((f=(d=o.value)==null?void 0:d.group)==null?void 0:f.isSelected.value)??!1});function c(d){var h,m;let{value:f}=d;if(f){const g=(m=(h=o.value)==null?void 0:h.$el.parentElement)==null?void 0:m.querySelector(".v-tab--selected .v-tab__slider"),v=s.value;if(!g||!v)return;const y=getComputedStyle(g).color,_=g.getBoundingClientRect(),S=v.getBoundingClientRect(),w=l.value?"x":"y",x=l.value?"X":"Y",k=l.value?"right":"bottom",P=l.value?"width":"height",E=_[w],A=S[w],D=E>A?_[k]-S[k]:_[w]-S[w],T=Math.sign(D)>0?l.value?"right":"bottom":Math.sign(D)<0?l.value?"left":"top":"center",N=(Math.abs(D)+(Math.sign(D)<0?_[P]:S[P]))/Math.max(_[P],S[P])||0,V=_[P]/S[P]||0,j=1.5;yf(v,{backgroundColor:[y,"currentcolor"],transform:[`translate${x}(${D}px) scale${x}(${V})`,`translate${x}(${D/j}px) scale${x}(${(N-1)/j+1})`,"none"],transformOrigin:Array(3).fill(T)},{duration:225,easing:Wg})}}return We(()=>{const d=Je.filterProps(e);return C(Je,Me({symbol:r8,ref:o,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},d,i,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var f;return C(Ue,null,[((f=n.default)==null?void 0:f.call(n))??e.text,!e.hideSlider&&C("div",{ref:s,class:["v-tab__slider",r.value],style:a.value},null)])}})}),ws({},o)}});const mle=Oe({...Li(U2(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),o8=ze()({name:"VTabsWindow",props:mle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=kt(r8,null),r=vt(e,"modelValue"),a=B({get(){var o;return r.value!=null||!i?r.value:(o=i.items.value.find(s=>i.selected.value.includes(s.id)))==null?void 0:o.value},set(o){r.value=o}});return We(()=>{const o=Uf.filterProps(e);return C(Uf,Me({_as:"VTabsWindow"},o,{modelValue:a.value,"onUpdate:modelValue":s=>a.value=s,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),vle=Oe({...H2()},"VTabsWindowItem"),s8=ze()({name:"VTabsWindowItem",props:vle(),setup(e,t){let{slots:n}=t;return We(()=>{const i=Hf.filterProps(e);return C(Hf,Me({_as:"VTabsWindowItem"},i,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function gle(e){return e?e.map(t=>E2(t)?t:{text:t,value:t}):[]}const yle=Oe({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Tx({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Mr(),...Vt()},"VTabs"),WR=ze()({name:"VTabs",props:yle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const r=vt(e,"modelValue"),a=B(()=>gle(e.items)),{densityClasses:o}=Da(e),{backgroundColorClasses:s,backgroundColorStyles:l}=Rn(Fe(e,"bgColor")),{scopeId:u}=dh();return Si({VTab:{color:Fe(e,"color"),direction:Fe(e,"direction"),stacked:Fe(e,"stacked"),fixed:Fe(e,"fixedTabs"),sliderColor:Fe(e,"sliderColor"),hideSlider:Fe(e,"hideSlider")}}),We(()=>{const c=e1.filterProps(e),d=!!(i.window||e.items.length>0);return C(Ue,null,[C(e1,Me(c,{modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,s.value,e.class],style:[{"--v-tabs-height":st(e.height)},l.value,e.style],role:"tablist",symbol:r8},u,n),{default:()=>{var f;return[((f=i.default)==null?void 0:f.call(i))??a.value.map(h=>{var m;return((m=i.tab)==null?void 0:m.call(i,{item:h}))??C(a8,Me(h,{key:h.text,value:h.value}),{default:i[`tab.${h.value}`]?()=>{var g;return(g=i[`tab.${h.value}`])==null?void 0:g.call(i,{item:h})}:void 0})})]}}),d&&C(o8,Me({modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,key:"tabs-window"},u),{default:()=>{var f;return[a.value.map(h=>{var m;return((m=i.item)==null?void 0:m.call(i,{item:h}))??C(s8,{value:h.value},{default:()=>{var g;return(g=i[`item.${h.value}`])==null?void 0:g.call(i,{item:h})}})}),(f=i.window)==null?void 0:f.call(i)]}})])}),{}}});const _le=Oe({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...fc(),...Y1()},"VTextarea"),l8=ze()({name:"VTextarea",directives:{Intersect:D2},inheritAttrs:!1,props:_le(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:r}=t;const a=vt(e,"modelValue"),{isFocused:o,focus:s,blur:l}=au(e),u=B(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value||"").toString().length),c=B(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function d(T,O){var N,V;!e.autofocus||!T||(V=(N=O[0].target)==null?void 0:N.focus)==null||V.call(N)}const f=z(),h=z(),m=it(""),g=z(),v=B(()=>e.persistentPlaceholder||o.value||e.active);function y(){var T;g.value!==document.activeElement&&((T=g.value)==null||T.focus()),o.value||s()}function _(T){y(),i("click:control",T)}function S(T){i("mousedown:control",T)}function w(T){T.stopPropagation(),y(),Pt(()=>{a.value="",cx(e["onClick:clear"],T)})}function x(T){var N;const O=T.target;if(a.value=O.value,(N=e.modelModifiers)!=null&&N.trim){const V=[O.selectionStart,O.selectionEnd];Pt(()=>{O.selectionStart=V[0],O.selectionEnd=V[1]})}}const k=z(),P=z(+e.rows),E=B(()=>["plain","underlined"].includes(e.variant));Wi(()=>{e.autoGrow||(P.value=+e.rows)});function A(){e.autoGrow&&Pt(()=>{if(!k.value||!h.value)return;const T=getComputedStyle(k.value),O=getComputedStyle(h.value.$el),N=parseFloat(T.getPropertyValue("--v-field-padding-top"))+parseFloat(T.getPropertyValue("--v-input-padding-top"))+parseFloat(T.getPropertyValue("--v-field-padding-bottom")),V=k.value.scrollHeight,j=parseFloat(T.lineHeight),q=Math.max(parseFloat(e.rows)*j+N,parseFloat(O.getPropertyValue("--v-input-control-height"))),ne=parseFloat(e.maxRows)*j+N||1/0,ae=qi(V??0,q,ne);P.value=Math.floor((ae-N)/j),m.value=st(ae)})}tn(A),Ve(a,A),Ve(()=>e.rows,A),Ve(()=>e.maxRows,A),Ve(()=>e.density,A);let D;return Ve(k,T=>{T?(D=new ResizeObserver(A),D.observe(k.value)):D==null||D.disconnect()}),Ci(()=>{D==null||D.disconnect()}),We(()=>{const T=!!(r.counter||e.counter||e.counterValue),O=!!(T||r.details),[N,V]=yd(n),{modelValue:j,...q}=ba.filterProps(e),ne=Mx(e);return C(ba,Me({ref:f,modelValue:a.value,"onUpdate:modelValue":ae=>a.value=ae,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":E.value},e.class],style:e.style},N,q,{centerAffix:P.value===1&&!E.value,focused:o.value}),{...r,default:ae=>{let{id:Y,isDisabled:M,isDirty:I,isReadonly:W,isValid:te}=ae;return C(Sm,Me({ref:h,style:{"--v-textarea-control-height":m.value},onClick:_,onMousedown:S,"onClick:clear":w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},ne,{id:Y.value,active:v.value||I.value,centerAffix:P.value===1&&!E.value,dirty:I.value||e.dirty,disabled:M.value,focused:o.value,error:te.value===!1}),{...r,default:he=>{let{props:{class:oe,...U}}=he;return C(Ue,null,[e.prefix&&C("span",{class:"v-text-field__prefix"},[e.prefix]),xt(C("textarea",Me({ref:g,class:oe,value:a.value,onInput:x,autofocus:e.autofocus,readonly:W.value,disabled:M.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:y,onBlur:l},U,V),null),[[po("intersect"),{handler:d},null,{once:!0}]]),e.autoGrow&&xt(C("textarea",{class:[oe,"v-textarea__sizer"],id:`${U.id}-sizer`,"onUpdate:modelValue":ee=>a.value=ee,ref:k,readonly:!0,"aria-hidden":"true"},null),[[Tf,a.value]]),e.suffix&&C("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:O?ae=>{var Y;return C(Ue,null,[(Y=r.details)==null?void 0:Y.call(r,ae),T&&C(Ue,null,[C("span",null,null),C(B2,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},r.counter)])])}:void 0})}),ws({},f,h,g)}});const ble=Oe({withBackground:Boolean,...ct(),...fn(),...Vt()},"VThemeProvider"),wle=ze()({name:"VThemeProvider",props:ble(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e);return()=>{var r;return e.withBackground?C(e.tag,{class:["v-theme-provider",i.value,e.class],style:e.style},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}}):(r=n.default)==null?void 0:r.call(n)}}});const Sle=Oe({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:_t,iconColor:String,lineColor:String,...ct(),...pi(),...ru(),...Cr()},"VTimelineDivider"),Cle=ze()({name:"VTimelineDivider",props:Sle(),setup(e,t){let{slots:n}=t;const{sizeClasses:i,sizeStyles:r}=gm(e,"v-timeline-divider__dot"),{backgroundColorStyles:a,backgroundColorClasses:o}=Rn(Fe(e,"dotColor")),{roundedClasses:s}=Ti(e,"v-timeline-divider__dot"),{elevationClasses:l}=ta(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Rn(Fe(e,"lineColor"));return We(()=>C("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[C("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&C("div",{key:"dot",class:["v-timeline-divider__dot",l.value,s.value,i.value],style:r.value},[C("div",{class:["v-timeline-divider__inner-dot",o.value,s.value],style:a.value},[n.default?C(Yt,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):C(ut,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),C("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),GR=Oe({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:_t,iconColor:String,lineInset:[Number,String],...ct(),...rr(),...Cr(),...pi(),...ru(),...Vt()},"VTimelineItem"),Ele=ze()({name:"VTimelineItem",props:GR(),setup(e,t){let{slots:n}=t;const{dimensionStyles:i}=ar(e),r=it(0),a=z();return Ve(a,o=>{var s;o&&(r.value=((s=o.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:s.getBoundingClientRect().width)??0)},{flush:"post"}),We(()=>{var o,s;return C("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":st(r.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${st(e.lineInset)})`:st(0)},e.style]},[C("div",{class:"v-timeline-item__body",style:i.value},[(o=n.default)==null?void 0:o.call(n)]),C(Cle,{ref:a,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&C("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((s=n.opposite)==null?void 0:s.call(n))])])}),{}}}),xle=Oe({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...x2(GR({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...ct(),...Mr(),...Vt(),...fn()},"VTimeline"),kle=ze()({name:"VTimeline",props:xle(),setup(e,t){let{slots:n}=t;const{themeClasses:i}=Pn(e),{densityClasses:r}=Da(e),{rtlClasses:a}=Sr();Si({VTimelineDivider:{lineColor:Fe(e,"lineColor")},VTimelineItem:{density:Fe(e,"density"),dotColor:Fe(e,"dotColor"),fillDot:Fe(e,"fillDot"),hideOpposite:Fe(e,"hideOpposite"),iconColor:Fe(e,"iconColor"),lineColor:Fe(e,"lineColor"),lineInset:Fe(e,"lineInset"),size:Fe(e,"size")}});const o=B(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),s=B(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return We(()=>C(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,s.value,{"v-timeline--inset-line":!!e.lineInset},i.value,r.value,o.value,a.value,e.class],style:[{"--v-timeline-line-thickness":st(e.lineThickness)},e.style]},n)),{}}}),Tle=Oe({...ct(),...bs({variant:"text"})},"VToolbarItems"),Ple=ze()({name:"VToolbarItems",props:Tle(),setup(e,t){let{slots:n}=t;return Si({VBtn:{color:Fe(e,"color"),height:"inherit",variant:Fe(e,"variant")}}),We(()=>{var i;return C("div",{class:["v-toolbar-items",e.class],style:e.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}});const $le=Oe({id:String,text:String,...Li(q1({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),ka=ze()({name:"VTooltip",props:$le(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=vt(e,"modelValue"),{scopeId:r}=dh(),a=ea(),o=B(()=>e.id||`v-tooltip-${a}`),s=z(),l=B(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=B(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=B(()=>e.transition?e.transition:i.value?"scale-transition":"fade-transition"),d=B(()=>Me({"aria-describedby":o.value},e.activatorProps));return We(()=>{const f=Kl.filterProps(e);return C(Kl,Me({ref:s,class:["v-tooltip",e.class],style:e.style,id:o.value},f,{modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},r),{activator:n.activator,default:function(){var v;for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return((v=n.default)==null?void 0:v.call(n,...m))??e.text}})}),ws({},s)}}),Ale=ze()({name:"VValidation",props:KM(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=ZM(e,"validation");return()=>{var r;return(r=n.default)==null?void 0:r.call(n,i)}}}),Jqe=Object.freeze(Object.defineProperty({__proto__:null,VAlert:$ne,VAlertTitle:jM,VApp:Bte,VAppBar:ane,VAppBarNavIcon:xne,VAppBarTitle:kne,VAutocomplete:qp,VAvatar:Ui,VBadge:Zv,VBanner:are,VBannerActions:TL,VBannerText:PL,VBottomNavigation:sre,VBottomSheet:ure,VBreadcrumbs:hre,VBreadcrumbsDivider:AL,VBreadcrumbsItem:OL,VBtn:Je,VBtnGroup:G5,VBtnToggle:DM,VCard:Cn,VCardActions:Yp,VCardItem:DL,VCardSubtitle:j2,VCardText:br,VCardTitle:_r,VCarousel:kre,VCarouselItem:Pre,VCheckbox:jf,VCheckboxBtn:ic,VChip:ma,VChipGroup:Gne,VClassIcon:yx,VCode:$re,VCol:Qn,VColorPicker:gae,VCombobox:K_,VComponentIcon:q5,VConfirmEdit:lC,VContainer:Jx,VCounter:B2,VDataIterator:moe,VDataTable:mR,VDataTableFooter:n1,VDataTableHeaders:qf,VDataTableRow:Kx,VDataTableRows:Yf,VDataTableServer:vR,VDataTableVirtual:Doe,VDatePicker:J_,VDatePickerControls:dC,VDatePickerHeader:fC,VDatePickerMonth:hC,VDatePickerMonths:pC,VDatePickerYears:mC,VDefaultsProvider:Yt,VDialog:ir,VDialogBottomTransition:Hte,VDialogTopTransition:qte,VDialogTransition:O2,VDivider:jn,VEmptyState:Koe,VExpandTransition:Yu,VExpandXTransition:Sx,VExpansionPanel:Zoe,VExpansionPanelText:vC,VExpansionPanelTitle:gC,VExpansionPanels:Qoe,VFab:tse,VFabTransition:Ute,VFadeTransition:Zg,VField:Sm,VFieldLabel:Kv,VFileInput:ise,VFooter:ase,VForm:ou,VHover:lse,VIcon:ut,VImg:Ii,VInfiniteScroll:cse,VInput:ba,VItem:hse,VItemGroup:fse,VKbd:pse,VLabel:bm,VLayout:vse,VLayoutItem:yse,VLazy:bse,VLigatureIcon:Ste,VList:rl,VListGroup:Q5,VListImg:gie,VListItem:fi,VListItemAction:_ie,VListItemMedia:wie,VListItemSubtitle:cL,VListItemTitle:ha,VListSubheader:dL,VLocaleProvider:Sse,VMain:Ese,VMenu:ho,VMessages:WM,VNavigationDrawer:RR,VNoSsr:Ise,VOtpInput:Mse,VOverlay:Kl,VPagination:uC,VParallax:Fse,VProgressCircular:ad,VProgressLinear:N2,VRadio:zc,VRadioGroup:Q_,VRangeSlider:jse,VRating:Hse,VResponsive:Y5,VRow:Ka,VScaleTransition:bx,VScrollXReverseTransition:Wte,VScrollXTransition:Yte,VScrollYReverseTransition:Kte,VScrollYTransition:Gte,VSelect:Oa,VSelectionControl:od,VSelectionControlGroup:HM,VSheet:rc,VSkeletonLoader:r1,VSlideGroup:e1,VSlideGroupItem:Gse,VSlideXReverseTransition:EM,VSlideXTransition:Zte,VSlideYReverseTransition:Xte,VSlideYTransition:wx,VSlider:G_,VSnackbar:Xse,VSpacer:t8,VSparkline:tle,VSpeedDial:ile,VStepper:cle,VStepperActions:jR,VStepperHeader:UR,VStepperItem:HR,VStepperWindow:qR,VStepperWindowItem:YR,VSvgIcon:gx,VSwitch:i8,VSystemBar:hle,VTab:a8,VTable:Wf,VTabs:WR,VTabsWindow:o8,VTabsWindowItem:s8,VTextField:Tn,VTextarea:l8,VThemeProvider:wle,VTimeline:kle,VTimelineItem:Ele,VToolbar:W5,VToolbarItems:Ple,VToolbarTitle:_x,VTooltip:ka,VValidation:Ale,VVirtualScroll:z2,VWindow:Uf,VWindowItem:Hf},Symbol.toStringTag,{value:"Module"}));function Ole(e,t){const n=t.modifiers||{},i=t.value,{once:r,immediate:a,...o}=n,s=!Object.keys(o).length,{handler:l,options:u}=typeof i=="object"?i:{handler:i,options:{attributes:(o==null?void 0:o.attr)??s,characterData:(o==null?void 0:o.char)??s,childList:(o==null?void 0:o.child)??s,subtree:(o==null?void 0:o.sub)??s}},c=new MutationObserver(function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;l==null||l(d,f),r&&KR(e,t)});a&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function KR(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const Dle={mounted:Ole,unmounted:KR};function Ile(e,t){var r,a;const n=t.value,i={passive:!((r=t.modifiers)!=null&&r.active)};window.addEventListener("resize",n,i),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:i},(a=t.modifiers)!=null&&a.quiet||n()}function Nle(e,t){var r;if(!((r=e._onResize)!=null&&r[t.instance.$.uid]))return;const{handler:n,options:i}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,i),delete e._onResize[t.instance.$.uid]}const u8={mounted:Ile,unmounted:Nle};function ZR(e,t){const{self:n=!1}=t.modifiers??{},i=t.value,r=typeof i=="object"&&i.options||{passive:!0},a=typeof i=="function"||"handleEvent"in i?i:i.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",a,r),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:a,options:r,target:n?void 0:o})}function XR(e,t){var a;if(!((a=e._onScroll)!=null&&a[t.instance.$.uid]))return;const{handler:n,options:i,target:r=e}=e._onScroll[t.instance.$.uid];r.removeEventListener("scroll",n,i),delete e._onScroll[t.instance.$.uid]}function Mle(e,t){t.value!==t.oldValue&&(XR(e,t),ZR(e,t))}const Lle={mounted:ZR,unmounted:XR,updated:Mle};function Rle(e,t){const n=typeof e=="string"?p2(e):e,i=Fle(n,t);return{mounted:i,updated:i,unmounted(r){ix(null,r)}}}function Fle(e,t){return function(n,i,r){var d,f,h;const a=typeof t=="function"?t(i):t,o=((d=i.value)==null?void 0:d.text)??i.value??(a==null?void 0:a.text),s=E2(i.value)?i.value:{},l=()=>o??n.textContent,u=(r.ctx===i.instance.$?(f=Vle(r,i.instance.$))==null?void 0:f.provides:(h=r.ctx)==null?void 0:h.provides)??i.instance.$.provides,c=vi(e,Me(a,s),l);c.appContext=Object.assign(Object.create(null),i.instance.$.appContext,{provides:u}),ix(c,n)}}function Vle(e,t){const n=new Set,i=a=>{var o,s;for(const l of a){if(!l)continue;if(l===e||l.el&&e.el&&l.el===e.el)return!0;n.add(l);let u;if(l.suspense?u=i([l.ssContent]):Array.isArray(l.children)?u=i(l.children):(o=l.component)!=null&&o.vnode&&(u=i([(s=l.component)==null?void 0:s.subTree])),u)return u;n.delete(l)}return!1};if(!i([t.subTree]))return t;const r=Array.from(n).reverse();for(const a of r)if(a.component)return a.component;return t}const Ble=Rle(ka,e=>{var t;return{activator:"parent",location:(t=e.arg)==null?void 0:t.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}}),Qqe=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:SL,Intersect:TM,Mutate:Dle,Resize:u8,Ripple:dc,Scroll:Lle,Tooltip:Ble,Touch:Fx},Symbol.toStringTag,{value:"Module"}));function zle(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,i=$a(t,n),{aliases:r={},components:a={},directives:o={}}=i,s=pte(i.defaults),l=Vne(i.display,i.ssr),u=Fte(i.theme),c=Ete(i.icons),d=Dte(i.locale),f=roe(i.date,d),h=zne(i.goTo,d);return{install:g=>{for(const v in o)g.directive(v,o[v]);for(const v in a)g.component(v,a[v]);for(const v in r)g.component(v,qo({...r[v],name:v,aliasName:r[v].name}));if(u.install(g),g.provide(Up,s),g.provide(X5,l),g.provide(Kg,u),g.provide(H5,c),g.provide(Hp,d),g.provide(UL,f.options),g.provide(cP,f.instance),g.provide(XM,h),En&&i.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:v}=g;g.mount=function(){const y=v(...arguments);return Pt(()=>l.update()),g.mount=v,y}}ea.reset(),g.mixin({computed:{$vuetify(){return er({defaults:Mh.call(this,Up),display:Mh.call(this,X5),theme:Mh.call(this,Kg),icons:Mh.call(this,H5),locale:Mh.call(this,Hp),date:Mh.call(this,cP)})}}})},defaults:s,display:l,theme:u,icons:c,locale:d,date:f,goTo:h}}const jle="3.7.6";zle.version=jle;function Mh(e){var i,r;const t=this.$,n=((i=t.parent)==null?void 0:i.provides)??((r=t.vnode.appContext)==null?void 0:r.provides);if(n&&e in n)return n[e]}var Ule=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */let JR;const iw=e=>JR=e,QR=Symbol();function yC(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hg;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hg||(hg={}));function eYe(){const e=pm(!0),t=e.run(()=>z({}));let n=[],i=[];const r=eu({install(a){iw(r),r._a=a,a.provide(QR,r),a.config.globalProperties.$pinia=r,i.forEach(o=>n.push(o)),i=[]},use(a){return!this._a&&!Ule?i.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const eF=()=>{};function CP(e,t,n,i=eF){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),i())};return!n&&LE()&&Qr(r),r}function Lh(e,...t){e.slice().forEach(n=>{n(...t)})}const Hle=e=>e();function _C(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,i)=>e.set(i,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],r=e[n];yC(r)&&yC(i)&&e.hasOwnProperty(n)&&!Yn(i)&&!Zu(i)?e[n]=_C(r,i):e[n]=i}return e}const qle=Symbol();function Yle(e){return!yC(e)||!e.hasOwnProperty(qle)}const{assign:Tc}=Object;function Wle(e){return!!(Yn(e)&&e.effect)}function Gle(e,t,n,i){const{state:r,actions:a,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=r?r():{});const c=gd(n.state.value[e]);return Tc(c,a,Object.keys(o||{}).reduce((d,f)=>(d[f]=eu(B(()=>{iw(n);const h=n._s.get(e);return o[f].call(h,h)})),d),{}))}return l=tF(e,u,t,n,i,!0),l}function tF(e,t,n={},i,r,a){let o;const s=Tc({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const m=i.state.value[e];!a&&!m&&(i.state.value[e]={}),z({});let g;function v(E){let A;u=c=!1,typeof E=="function"?(E(i.state.value[e]),A={type:hg.patchFunction,storeId:e,events:h}):(_C(i.state.value[e],E),A={type:hg.patchObject,payload:E,storeId:e,events:h});const D=g=Symbol();Pt().then(()=>{g===D&&(u=!0)}),c=!0,Lh(d,A,i.state.value[e])}const y=a?function(){const{state:A}=n,D=A?A():{};this.$patch(T=>{Tc(T,D)})}:eF;function _(){o.stop(),d=[],f=[],i._s.delete(e)}function S(E,A){return function(){iw(i);const D=Array.from(arguments),T=[],O=[];function N(q){T.push(q)}function V(q){O.push(q)}Lh(f,{args:D,name:E,store:x,after:N,onError:V});let j;try{j=A.apply(this&&this.$id===e?this:x,D)}catch(q){throw Lh(O,q),q}return j instanceof Promise?j.then(q=>(Lh(T,q),q)).catch(q=>(Lh(O,q),Promise.reject(q))):(Lh(T,j),j)}}const w={_p:i,$id:e,$onAction:CP.bind(null,f),$patch:v,$reset:y,$subscribe(E,A={}){const D=CP(d,E,A.detached,()=>T()),T=o.run(()=>Ve(()=>i.state.value[e],O=>{(A.flush==="sync"?c:u)&&E({storeId:e,type:hg.direct,events:h},O)},Tc({},l,A)));return D},$dispose:_},x=er(w);i._s.set(e,x);const P=(i._a&&i._a.runWithContext||Hle)(()=>i._e.run(()=>(o=pm()).run(t)));for(const E in P){const A=P[E];if(Yn(A)&&!Wle(A)||Zu(A))a||(m&&Yle(A)&&(Yn(A)?A.value=m[E]:_C(A,m[E])),i.state.value[e][E]=A);else if(typeof A=="function"){const D=S(E,A);P[E]=D,s.actions[E]=A}}return Tc(x,P),Tc($t(x),P),Object.defineProperty(x,"$state",{get:()=>i.state.value[e],set:E=>{v(A=>{Tc(A,E)})}}),i._p.forEach(E=>{Tc(x,o.run(()=>E({store:x,app:i._a,pinia:i,options:s})))}),m&&a&&n.hydrate&&n.hydrate(x.$state,m),u=!0,c=!0,x}function Pi(e,t,n){let i,r;const a=typeof t=="function";typeof e=="string"?(i=e,r=a?n:t):(r=e,i=e.id);function o(s,l){const u=BK();return s=s||(u?kt(QR,null):null),s&&iw(s),s=JR,s._s.has(i)||(a?tF(i,t,r,s):Gle(i,r,s)),s._s.get(i)}return o.$id=i,o}function tYe(e){{e=$t(e);const t={};for(const n in e){const i=e[n];(Yn(i)||Zu(i))&&(t[n]=Fe(e,n))}return t}}const Kle="modulepreload",Zle=function(e){return"/"+e},EP={},Ct=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=Zle(a),a in EP)return;EP[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const d=r[c];if(d.href===a&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Kle,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT */const Kh=typeof document<"u";function Xle(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const zn=Object.assign;function I3(e,t){const n={};for(const i in t){const r=t[i];n[i]=al(r)?r.map(e):e(r)}return n}const pg=()=>{},al=Array.isArray,nF=/#/g,Jle=/&/g,Qle=/\//g,eue=/=/g,tue=/\?/g,iF=/\+/g,nue=/%5B/g,iue=/%5D/g,rF=/%5E/g,rue=/%60/g,aF=/%7B/g,aue=/%7C/g,oF=/%7D/g,oue=/%20/g;function c8(e){return encodeURI(""+e).replace(aue,"|").replace(nue,"[").replace(iue,"]")}function sue(e){return c8(e).replace(aF,"{").replace(oF,"}").replace(rF,"^")}function bC(e){return c8(e).replace(iF,"%2B").replace(oue,"+").replace(nF,"%23").replace(Jle,"%26").replace(rue,"`").replace(aF,"{").replace(oF,"}").replace(rF,"^")}function lue(e){return bC(e).replace(eue,"%3D")}function uue(e){return c8(e).replace(nF,"%23").replace(tue,"%3F")}function cue(e){return e==null?"":uue(e).replace(Qle,"%2F")}function a1(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const due=/\/$/,fue=e=>e.replace(due,"");function N3(e,t,n="/"){let i,r={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(i=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),r=e(a)),s>-1&&(i=i||t.slice(0,s),o=t.slice(s,t.length)),i=vue(i??t,n),{fullPath:i+(a&&"?")+a+o,path:i,query:r,hash:a1(o)}}function hue(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function xP(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pue(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Wp(t.matched[i],n.matched[r])&&sF(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sF(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mue(e[n],t[n]))return!1;return!0}function mue(e,t){return al(e)?kP(e,t):al(t)?kP(t,e):e===t}function kP(e,t){return al(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function vue(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let a=n.length-1,o,s;for(o=0;o<i.length;o++)if(s=i[o],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+i.slice(o).join("/")}var o1;(function(e){e.pop="pop",e.push="push"})(o1||(o1={}));var mg;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mg||(mg={}));function gue(e){if(!e)if(Kh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),fue(e)}const yue=/^[^#]+#/;function _ue(e,t){return e.replace(yue,"#")+t}function bue(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const rw=()=>({left:window.scrollX,top:window.scrollY});function wue(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=bue(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function TP(e,t){return(history.state?history.state.position-t:-1)+e}const wC=new Map;function Sue(e,t){wC.set(e,t)}function Cue(e){const t=wC.get(e);return wC.delete(e),t}let Eue=()=>location.protocol+"//"+location.host;function lF(e,t){const{pathname:n,search:i,hash:r}=t,a=e.indexOf("#");if(a>-1){let s=r.includes(e.slice(a))?e.slice(a).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),xP(l,"")}return xP(n,e)+i+r}function xue(e,t,n,i){let r=[],a=[],o=null;const s=({state:f})=>{const h=lF(e,location),m=n.value,g=t.value;let v=0;if(f){if(n.value=h,t.value=f,o&&o===m){o=null;return}v=g?f.position-g.position:0}else i(h);r.forEach(y=>{y(n.value,m,{delta:v,type:o1.pop,direction:v?v>0?mg.forward:mg.back:mg.unknown})})};function l(){o=n.value}function u(f){r.push(f);const h=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return a.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(zn({},f.state,{scroll:rw()}),"")}function d(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function PP(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?rw():null}}function kue(e){const{history:t,location:n}=window,i={value:lF(e,n)},r={value:t.state};r.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Eue()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),r.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){const c=zn({},t.state,PP(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});a(l,c,!0),i.value=l}function s(l,u){const c=zn({},r.value,t.state,{forward:l,scroll:rw()});a(c.current,c,!0);const d=zn({},PP(i.value,l,null),{position:c.position+1},u);a(l,d,!1),i.value=l}return{location:i,state:r,push:s,replace:o}}function Tue(e){e=gue(e);const t=kue(e),n=xue(e,t.state,t.location,t.replace);function i(a,o=!0){o||n.pauseListeners(),history.go(a)}const r=zn({location:"",base:e,go:i,createHref:_ue.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Pue(e){return typeof e=="string"||e&&typeof e=="object"}function uF(e){return typeof e=="string"||typeof e=="symbol"}const Cc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cF=Symbol("");var $P;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($P||($P={}));function Gp(e,t){return zn(new Error,{type:e,[cF]:!0},t)}function bu(e,t){return e instanceof Error&&cF in e&&(t==null||!!(e.type&t))}const AP="[^/]+?",$ue={sensitive:!1,strict:!1,start:!0,end:!0},Aue=/[.+*?^${}()[\]/\\]/g;function Oue(e,t){const n=zn({},$ue,t),i=[];let r=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const f=u[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(r+="/"),r+=f.value.replace(Aue,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:g,optional:v,regexp:y}=f;a.push({name:m,repeatable:g,optional:v});const _=y||AP;if(_!==AP){h+=10;try{new RegExp(`(${_})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${m}" (${_}): `+w.message)}}let S=g?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;d||(S=v&&u.length<2?`(?:/${S})`:"/"+S),v&&(S+="?"),r+=S,h+=20,v&&(h+=-8),g&&(h+=-20),_===".*"&&(h+=-50)}c.push(h)}i.push(c)}if(n.strict&&n.end){const u=i.length-1;i[u][i[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function s(u){const c=u.match(o),d={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",m=a[f-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of f)if(h.type===0)c+=h.value;else if(h.type===1){const{value:m,repeatable:g,optional:v}=h,y=m in u?u[m]:"";if(al(y)&&!g)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const _=al(y)?y.join("/"):y;if(!_)if(v)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);c+=_}}return c||"/"}return{re:o,score:i,keys:a,parse:s,stringify:l}}function Due(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Iue(e,t){let n=0;const i=e.score,r=t.score;for(;n<i.length&&n<r.length;){const a=Due(i[n],r[n]);if(a)return a;n++}if(Math.abs(r.length-i.length)===1){if(OP(i))return 1;if(OP(r))return-1}return r.length-i.length}function OP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nue={type:0,value:""},Mue=/[a-zA-Z0-9_]/;function Lue(e){if(!e)return[[]];if(e==="/")return[[Nue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,i=n;const r=[];let a;function o(){a&&r.push(a),a=[]}let s=0,l,u="",c="";function d(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),o()):l===":"?(d(),n=1):f();break;case 4:f(),n=i;break;case 1:l==="("?n=2:Mue.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),r}function Rue(e,t,n){const i=Oue(Lue(e.path),n),r=zn(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Fue(e,t){const n=[],i=new Map;t=NP({strict:!1,end:!0,sensitive:!1},t);function r(c){return i.get(c)}function a(c,d,f){const h=!f,m=Vue(c);m.aliasOf=f&&f.record;const g=NP(t,c),v=[m];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of S)v.push(zn({},m,{components:f?f.record.components:m.components,path:w,aliasOf:f?f.record:m}))}let y,_;for(const S of v){const{path:w}=S;if(d&&w[0]!=="/"){const x=d.record.path,k=x[x.length-1]==="/"?"":"/";S.path=d.record.path+(w&&k+w)}if(y=Rue(S,d,g),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),h&&c.name&&!IP(y)&&o(c.name)),m.children){const x=m.children;for(let k=0;k<x.length;k++)a(x[k],y,f&&f.children[k])}f=f||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&l(y)}return _?()=>{o(_)}:pg}function o(c){if(uF(c)){const d=i.get(c);d&&(i.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&i.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let d=0;for(;d<n.length&&Iue(c,n[d])>=0&&(c.record.path!==n[d].record.path||!dF(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!IP(c)&&i.set(c.record.name,c)}function u(c,d){let f,h={},m,g;if("name"in c&&c.name){if(f=i.get(c.name),!f)throw Gp(1,{location:c});g=f.record.name,h=zn(DP(d.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&DP(c.params,f.keys.map(_=>_.name))),m=f.stringify(h)}else if(c.path!=null)m=c.path,f=n.find(_=>_.re.test(m)),f&&(h=f.parse(m),g=f.record.name);else{if(f=d.name?i.get(d.name):n.find(_=>_.re.test(d.path)),!f)throw Gp(1,{location:c,currentLocation:d});g=f.record.name,h=zn({},d.params,c.params),m=f.stringify(h)}const v=[];let y=f;for(;y;)v.unshift(y.record),y=y.parent;return{name:g,path:m,params:h,matched:v,meta:zue(v)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:r}}function DP(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Vue(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Bue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Bue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function IP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zue(e){return e.reduce((t,n)=>zn(t,n.meta),{})}function NP(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function dF(e,t){return t.children.some(n=>n===e||dF(e,n))}function jue(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const a=i[r].replace(iF," "),o=a.indexOf("="),s=a1(o<0?a:a.slice(0,o)),l=o<0?null:a1(a.slice(o+1));if(s in t){let u=t[s];al(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function MP(e){let t="";for(let n in e){const i=e[n];if(n=lue(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(al(i)?i.map(a=>a&&bC(a)):[i&&bC(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function Uue(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=al(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}const d8=Symbol(""),LP=Symbol(""),aw=Symbol(""),f8=Symbol(""),SC=Symbol("");function rv(){let e=[];function t(i){return e.push(i),()=>{const r=e.indexOf(i);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fF(e,t,n){const i=()=>{e[t].delete(n)};ys(i),g2(i),ZE(()=>{e[t].add(n)}),e[t].add(n)}function Z1(e){const t=kt(d8,{}).value;t&&fF(t,"leaveGuards",e)}function nYe(e){const t=kt(d8,{}).value;t&&fF(t,"updateGuards",e)}function Dc(e,t,n,i,r,a=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(Gp(4,{from:n,to:t})):f instanceof Error?l(f):Pue(f)?l(Gp(2,{from:t,to:f})):(o&&i.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),s())},c=a(()=>e.call(i&&i.instances[r],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function M3(e,t,n,i,r=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(Hue(l)){const c=(l.__vccOpts||l)[t];c&&a.push(Dc(c,n,i,o,s,r))}else{let u=l();a.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const d=Xle(c)?c.default:c;o.components[s]=d;const h=(d.__vccOpts||d)[t];return h&&Dc(h,n,i,o,s,r)()}))}}return a}function Hue(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RP(e){const t=kt(aw),n=kt(f8),i=B(()=>{const l=K(e.to);return t.resolve(l)}),r=B(()=>{const{matched:l}=i.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Wp.bind(null,c));if(f>-1)return f;const h=FP(l[u-2]);return u>1&&FP(c)===h&&d[d.length-1].path!==h?d.findIndex(Wp.bind(null,l[u-2])):f}),a=B(()=>r.value>-1&&Gue(n.params,i.value.params)),o=B(()=>r.value>-1&&r.value===n.matched.length-1&&sF(n.params,i.value.params));function s(l={}){return Wue(l)?t[K(e.replace)?"replace":"push"](K(e.to)).catch(pg):Promise.resolve()}return{route:i,href:B(()=>i.value.href),isActive:a,isExactActive:o,navigate:s}}const que=ot({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:RP,setup(e,{slots:t}){const n=er(RP(e)),{options:i}=kt(aw),r=B(()=>({[VP(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[VP(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:vi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),Yue=que;function Wue(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gue(e,t){for(const n in t){const i=t[n],r=e[n];if(typeof i=="string"){if(i!==r)return!1}else if(!al(r)||r.length!==i.length||i.some((a,o)=>a!==r[o]))return!1}return!0}function FP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const VP=(e,t,n)=>e??t??n,Kue=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=kt(SC),r=B(()=>e.route||i.value),a=kt(LP,0),o=B(()=>{let u=K(a);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=B(()=>r.value.matched[o.value]);an(LP,B(()=>o.value+1)),an(d8,s),an(SC,r);const l=z();return Ve(()=>[l.value,s.value,e.name],([u,c,d],[f,h,m])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Wp(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,d=s.value,f=d&&d.components[c];if(!f)return BP(n.default,{Component:f,route:u});const h=d.props[c],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=vi(f,zn({},m,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return BP(n.default,{Component:v,route:u})||v}}});function BP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Zue=Kue;function Xue(e){const t=Fue(e.routes,e),n=e.parseQuery||jue,i=e.stringifyQuery||MP,r=e.history,a=rv(),o=rv(),s=rv(),l=it(Cc);let u=Cc;Kh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=I3.bind(null,ee=>""+ee),d=I3.bind(null,cue),f=I3.bind(null,a1);function h(ee,re){let ue,pe;return uF(ee)?(ue=t.getRecordMatcher(ee),pe=re):pe=ee,t.addRoute(pe,ue)}function m(ee){const re=t.getRecordMatcher(ee);re&&t.removeRoute(re)}function g(){return t.getRoutes().map(ee=>ee.record)}function v(ee){return!!t.getRecordMatcher(ee)}function y(ee,re){if(re=zn({},re||l.value),typeof ee=="string"){const X=N3(n,ee,re.path),ye=t.resolve({path:X.path},re),Se=r.createHref(X.fullPath);return zn(X,ye,{params:f(ye.params),hash:a1(X.hash),redirectedFrom:void 0,href:Se})}let ue;if(ee.path!=null)ue=zn({},ee,{path:N3(n,ee.path,re.path).path});else{const X=zn({},ee.params);for(const ye in X)X[ye]==null&&delete X[ye];ue=zn({},ee,{params:d(X)}),re.params=d(re.params)}const pe=t.resolve(ue,re),ge=ee.hash||"";pe.params=c(f(pe.params));const Te=hue(i,zn({},ee,{hash:sue(ge),path:pe.path})),Z=r.createHref(Te);return zn({fullPath:Te,hash:ge,query:i===MP?Uue(ee.query):ee.query||{}},pe,{redirectedFrom:void 0,href:Z})}function _(ee){return typeof ee=="string"?N3(n,ee,l.value.path):zn({},ee)}function S(ee,re){if(u!==ee)return Gp(8,{from:re,to:ee})}function w(ee){return P(ee)}function x(ee){return w(zn(_(ee),{replace:!0}))}function k(ee){const re=ee.matched[ee.matched.length-1];if(re&&re.redirect){const{redirect:ue}=re;let pe=typeof ue=="function"?ue(ee):ue;return typeof pe=="string"&&(pe=pe.includes("?")||pe.includes("#")?pe=_(pe):{path:pe},pe.params={}),zn({query:ee.query,hash:ee.hash,params:pe.path!=null?{}:ee.params},pe)}}function P(ee,re){const ue=u=y(ee),pe=l.value,ge=ee.state,Te=ee.force,Z=ee.replace===!0,X=k(ue);if(X)return P(zn(_(X),{state:typeof X=="object"?zn({},ge,X.state):ge,force:Te,replace:Z}),re||ue);const ye=ue;ye.redirectedFrom=re;let Se;return!Te&&pue(i,pe,ue)&&(Se=Gp(16,{to:ye,from:pe}),I(pe,pe,!0,!1)),(Se?Promise.resolve(Se):D(ye,pe)).catch(Ee=>bu(Ee)?bu(Ee,2)?Ee:M(Ee):ae(Ee,ye,pe)).then(Ee=>{if(Ee){if(bu(Ee,2))return P(zn({replace:Z},_(Ee.to),{state:typeof Ee.to=="object"?zn({},ge,Ee.to.state):ge,force:Te}),re||ye)}else Ee=O(ye,pe,!0,Z,ge);return T(ye,pe,Ee),Ee})}function E(ee,re){const ue=S(ee,re);return ue?Promise.reject(ue):Promise.resolve()}function A(ee){const re=he.values().next().value;return re&&typeof re.runWithContext=="function"?re.runWithContext(ee):ee()}function D(ee,re){let ue;const[pe,ge,Te]=Jue(ee,re);ue=M3(pe.reverse(),"beforeRouteLeave",ee,re);for(const X of pe)X.leaveGuards.forEach(ye=>{ue.push(Dc(ye,ee,re))});const Z=E.bind(null,ee,re);return ue.push(Z),U(ue).then(()=>{ue=[];for(const X of a.list())ue.push(Dc(X,ee,re));return ue.push(Z),U(ue)}).then(()=>{ue=M3(ge,"beforeRouteUpdate",ee,re);for(const X of ge)X.updateGuards.forEach(ye=>{ue.push(Dc(ye,ee,re))});return ue.push(Z),U(ue)}).then(()=>{ue=[];for(const X of Te)if(X.beforeEnter)if(al(X.beforeEnter))for(const ye of X.beforeEnter)ue.push(Dc(ye,ee,re));else ue.push(Dc(X.beforeEnter,ee,re));return ue.push(Z),U(ue)}).then(()=>(ee.matched.forEach(X=>X.enterCallbacks={}),ue=M3(Te,"beforeRouteEnter",ee,re,A),ue.push(Z),U(ue))).then(()=>{ue=[];for(const X of o.list())ue.push(Dc(X,ee,re));return ue.push(Z),U(ue)}).catch(X=>bu(X,8)?X:Promise.reject(X))}function T(ee,re,ue){s.list().forEach(pe=>A(()=>pe(ee,re,ue)))}function O(ee,re,ue,pe,ge){const Te=S(ee,re);if(Te)return Te;const Z=re===Cc,X=Kh?history.state:{};ue&&(pe||Z?r.replace(ee.fullPath,zn({scroll:Z&&X&&X.scroll},ge)):r.push(ee.fullPath,ge)),l.value=ee,I(ee,re,ue,Z),M()}let N;function V(){N||(N=r.listen((ee,re,ue)=>{if(!oe.listening)return;const pe=y(ee),ge=k(pe);if(ge){P(zn(ge,{replace:!0}),pe).catch(pg);return}u=pe;const Te=l.value;Kh&&Sue(TP(Te.fullPath,ue.delta),rw()),D(pe,Te).catch(Z=>bu(Z,12)?Z:bu(Z,2)?(P(Z.to,pe).then(X=>{bu(X,20)&&!ue.delta&&ue.type===o1.pop&&r.go(-1,!1)}).catch(pg),Promise.reject()):(ue.delta&&r.go(-ue.delta,!1),ae(Z,pe,Te))).then(Z=>{Z=Z||O(pe,Te,!1),Z&&(ue.delta&&!bu(Z,8)?r.go(-ue.delta,!1):ue.type===o1.pop&&bu(Z,20)&&r.go(-1,!1)),T(pe,Te,Z)}).catch(pg)}))}let j=rv(),q=rv(),ne;function ae(ee,re,ue){M(ee);const pe=q.list();return pe.length?pe.forEach(ge=>ge(ee,re,ue)):console.error(ee),Promise.reject(ee)}function Y(){return ne&&l.value!==Cc?Promise.resolve():new Promise((ee,re)=>{j.add([ee,re])})}function M(ee){return ne||(ne=!ee,V(),j.list().forEach(([re,ue])=>ee?ue(ee):re()),j.reset()),ee}function I(ee,re,ue,pe){const{scrollBehavior:ge}=e;if(!Kh||!ge)return Promise.resolve();const Te=!ue&&Cue(TP(ee.fullPath,0))||(pe||!ue)&&history.state&&history.state.scroll||null;return Pt().then(()=>ge(ee,re,Te)).then(Z=>Z&&wue(Z)).catch(Z=>ae(Z,ee,re))}const W=ee=>r.go(ee);let te;const he=new Set,oe={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,hasRoute:v,getRoutes:g,resolve:y,options:e,push:w,replace:x,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:q.add,isReady:Y,install(ee){const re=this;ee.component("RouterLink",Yue),ee.component("RouterView",Zue),ee.config.globalProperties.$router=re,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>K(l)}),Kh&&!te&&l.value===Cc&&(te=!0,w(r.location).catch(ge=>{}));const ue={};for(const ge in Cc)Object.defineProperty(ue,ge,{get:()=>l.value[ge],enumerable:!0});ee.provide(aw,re),ee.provide(f8,jI(ue)),ee.provide(SC,l);const pe=ee.unmount;he.add(ee),ee.unmount=function(){he.delete(ee),he.size<1&&(u=Cc,N&&N(),N=null,l.value=Cc,te=!1,ne=!1),pe()}}};function U(ee){return ee.reduce((re,ue)=>re.then(()=>A(ue)),Promise.resolve())}return oe}function Jue(e,t){const n=[],i=[],r=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Wp(u,s))?i.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Wp(u,l))||r.push(l))}return[n,i,r]}function X1(){return kt(aw)}function fh(){return kt(f8)}function hF(e){return LE()?(Qr(e),!0):!1}function Kp(e){return typeof e=="function"?e():K(e)}const Que=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ece=e=>e!=null,tce=Object.prototype.toString,nce=e=>tce.call(e)==="[object Object]",gp=()=>{},iYe=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function pF(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const mF=e=>e();function ice(e,t={}){let n,i,r=gp;const a=s=>{clearTimeout(s),r(),r=gp};return s=>{const l=Kp(e),u=Kp(t.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(i&&(a(i),i=null),Promise.resolve(s())):new Promise((c,d)=>{r=t.rejectOnCancel?d:c,u&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,c(s())},u)),n=setTimeout(()=>{i&&a(i),i=null,c(s())},l)})}}function rce(e=mF){const t=z(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...a)=>{t.value&&e(...a)};return{isActive:mm(t),pause:n,resume:i,eventFilter:r}}function ace(e){return e||vs()}function Gf(e,t=200,n={}){return pF(ice(t,n),e)}function oce(e,t,n={}){const{eventFilter:i=mF,...r}=n;return Ve(e,pF(i,t),r)}function sce(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:o,resume:s,isActive:l}=rce(i);return{stop:oce(e,t,{...r,eventFilter:a}),pause:o,resume:s,isActive:l}}function lce(e,t=!0,n){ace()?tn(e,n):t?e():Pt(e)}function X0(e){var t;const n=Kp(e);return(t=n==null?void 0:n.$el)!=null?t:n}const s1=Que?window:void 0;function zP(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=s1):[t,n,i,r]=e,!t)return gp;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),l=Ve(()=>[X0(t),Kp(r)],([c,d])=>{if(o(),!c)return;const f=nce(d)?{...d}:d;a.push(...n.flatMap(h=>i.map(m=>s(c,h,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return hF(u),u}function uce(){const e=z(!1),t=vs();return t&&tn(()=>{e.value=!0},t),e}function cce(e){const t=uce();return B(()=>(t.value,!!e()))}const Xy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Jy="__vueuse_ssr_handlers__",dce=fce();function fce(){return Jy in Xy||(Xy[Jy]=Xy[Jy]||{}),Xy[Jy]}function hce(e,t){return dce[e]||t}function pce(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"}const mce={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()}},jP="vueuse-storage";function Ss(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=s1,eventFilter:f,onError:h=D=>{console.error(D)},initOnMounted:m}=i,g=(c?it:z)(typeof t=="function"?t():t);if(!n)try{n=hce("getDefaultStorage",()=>{var D;return(D=s1)==null?void 0:D.localStorage})()}catch(D){h(D)}if(!n)return g;const v=Kp(t),y=pce(v),_=(r=i.serializer)!=null?r:mce[y],{pause:S,resume:w}=sce(g,()=>k(g.value),{flush:a,deep:o,eventFilter:f});d&&s&&lce(()=>{zP(d,"storage",E),zP(d,jP,A),m&&E()}),m||E();function x(D,T){d&&d.dispatchEvent(new CustomEvent(jP,{detail:{key:e,oldValue:D,newValue:T,storageArea:n}}))}function k(D){try{const T=n.getItem(e);if(D==null)x(T,null),n.removeItem(e);else{const O=_.write(D);T!==O&&(n.setItem(e,O),x(T,O))}}catch(T){h(T)}}function P(D){const T=D?D.newValue:n.getItem(e);if(T==null)return l&&v!=null&&n.setItem(e,_.write(v)),v;if(!D&&u){const O=_.read(T);return typeof u=="function"?u(O,v):y==="object"&&!Array.isArray(O)?{...v,...O}:O}else return typeof T!="string"?T:_.read(T)}function E(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){g.value=v;return}if(!(D&&D.key!==e)){S();try{(D==null?void 0:D.newValue)!==_.write(g.value)&&(g.value=P(D))}catch(T){h(T)}finally{D?Pt(w):w()}}}}function A(D){E(D.detail)}return g}function rYe(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=.1,window:o=s1,immediate:s=!0}=n,l=cce(()=>o&&"IntersectionObserver"in o),u=B(()=>{const m=Kp(e);return(Array.isArray(m)?m:[m]).map(X0).filter(ece)});let c=gp;const d=z(s),f=l.value?Ve(()=>[u.value,X0(i),d.value],([m,g])=>{if(c(),!d.value||!m.length)return;const v=new IntersectionObserver(t,{root:X0(g),rootMargin:r,threshold:a});m.forEach(y=>y&&v.observe(y)),c=()=>{v.disconnect(),c=gp}},{immediate:s,flush:"post"}):gp,h=()=>{c(),f(),d.value=!1};return hF(h),{isSupported:l,isActive:d,pause(){c(),d.value=!1},resume(){d.value=!0},stop:h}}function Zh(e,t,n={}){const{window:i=s1}=n;return Ss(e,t,i==null?void 0:i.localStorage,n)}const ow=Pi("app",{state:()=>({preSignupDialogOpen:!1,donationDialogOpen:!1,loading:!1,innerLoading:!1,pageNotFound:!1,tempError:null,isLeftMenuOpen:null,navRole:Ss("navRole","praticien"),referralUrl:"",isRail:!1,submitDraftLoading:!1}),actions:{setLoading(e){this.loading=e},setInnerLoading(e){setTimeout(()=>{this.innerLoading=e},10)},toggleLeftMenu(){this.isLeftMenuOpen=!this.isLeftMenuOpen},toggleNavRole(e){this.navRole=e},setUrl(e){this.referralUrl=e},toggleRail(){this.isRail=!this.isRail}}});function vF(e,t){return function(){return e.apply(t,arguments)}}const{toString:vce}=Object.prototype,{getPrototypeOf:h8}=Object,sw=(e=>t=>{const n=vce.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fl=e=>(e=e.toLowerCase(),t=>sw(t)===e),lw=e=>t=>typeof t===e,{isArray:Em}=Array,l1=lw("undefined");function gce(e){return e!==null&&!l1(e)&&e.constructor!==null&&!l1(e.constructor)&&Bo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gF=fl("ArrayBuffer");function yce(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gF(e.buffer),t}const _ce=lw("string"),Bo=lw("function"),yF=lw("number"),uw=e=>e!==null&&typeof e=="object",bce=e=>e===!0||e===!1,J0=e=>{if(sw(e)!=="object")return!1;const t=h8(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wce=fl("Date"),Sce=fl("File"),Cce=fl("Blob"),Ece=fl("FileList"),xce=e=>uw(e)&&Bo(e.pipe),kce=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bo(e.append)&&((t=sw(e))==="formdata"||t==="object"&&Bo(e.toString)&&e.toString()==="[object FormData]"))},Tce=fl("URLSearchParams"),[Pce,$ce,Ace,Oce]=["ReadableStream","Request","Response","Headers"].map(fl),Dce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),Em(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(i=0;i<o;i++)s=a[i],t.call(null,e[s],s,e)}}function _F(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,r;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const _f=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bF=e=>!l1(e)&&e!==_f;function CC(){const{caseless:e}=bF(this)&&this||{},t={},n=(i,r)=>{const a=e&&_F(t,r)||r;J0(t[a])&&J0(i)?t[a]=CC(t[a],i):J0(i)?t[a]=CC({},i):Em(i)?t[a]=i.slice():t[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&J1(arguments[i],n);return t}const Ice=(e,t,n,{allOwnKeys:i}={})=>(J1(t,(r,a)=>{n&&Bo(r)?e[a]=vF(r,n):e[a]=r},{allOwnKeys:i}),e),Nce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mce=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Lce=(e,t,n,i)=>{let r,a,o;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&h8(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Fce=e=>{if(!e)return null;if(Em(e))return e;let t=e.length;if(!yF(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&h8(Uint8Array)),Bce=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},zce=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},jce=fl("HTMLFormElement"),Uce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),UP=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hce=fl("RegExp"),wF=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};J1(n,(r,a)=>{let o;(o=t(r,a,e))!==!1&&(i[a]=o||r)}),Object.defineProperties(e,i)},qce=e=>{wF(e,(t,n)=>{if(Bo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Bo(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yce=(e,t)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return Em(e)?i(e):i(String(e).split(t)),n},Wce=()=>{},Gce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,L3="abcdefghijklmnopqrstuvwxyz",HP="0123456789",SF={DIGIT:HP,ALPHA:L3,ALPHA_DIGIT:L3+L3.toUpperCase()+HP},Kce=(e=16,t=SF.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Zce(e){return!!(e&&Bo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xce=e=>{const t=new Array(10),n=(i,r)=>{if(uw(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[r]=i;const a=Em(i)?[]:{};return J1(i,(o,s)=>{const l=n(o,r+1);!l1(l)&&(a[s]=l)}),t[r]=void 0,a}}return i};return n(e,0)},Jce=fl("AsyncFunction"),Qce=e=>e&&(uw(e)||Bo(e))&&Bo(e.then)&&Bo(e.catch),CF=((e,t)=>e?setImmediate:t?((n,i)=>(_f.addEventListener("message",({source:r,data:a})=>{r===_f&&a===n&&i.length&&i.shift()()},!1),r=>{i.push(r),_f.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Bo(_f.postMessage)),ede=typeof queueMicrotask<"u"?queueMicrotask.bind(_f):typeof process<"u"&&process.nextTick||CF,Ge={isArray:Em,isArrayBuffer:gF,isBuffer:gce,isFormData:kce,isArrayBufferView:yce,isString:_ce,isNumber:yF,isBoolean:bce,isObject:uw,isPlainObject:J0,isReadableStream:Pce,isRequest:$ce,isResponse:Ace,isHeaders:Oce,isUndefined:l1,isDate:wce,isFile:Sce,isBlob:Cce,isRegExp:Hce,isFunction:Bo,isStream:xce,isURLSearchParams:Tce,isTypedArray:Vce,isFileList:Ece,forEach:J1,merge:CC,extend:Ice,trim:Dce,stripBOM:Nce,inherits:Mce,toFlatObject:Lce,kindOf:sw,kindOfTest:fl,endsWith:Rce,toArray:Fce,forEachEntry:Bce,matchAll:zce,isHTMLForm:jce,hasOwnProperty:UP,hasOwnProp:UP,reduceDescriptors:wF,freezeMethods:qce,toObjectSet:Yce,toCamelCase:Uce,noop:Wce,toFiniteNumber:Gce,findKey:_F,global:_f,isContextDefined:bF,ALPHABET:SF,generateString:Kce,isSpecCompliantForm:Zce,toJSONObject:Xce,isAsyncFn:Jce,isThenable:Qce,setImmediate:CF,asap:ede};function Jt(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}Ge.inherits(Jt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ge.toJSONObject(this.config),code:this.code,status:this.status}}});const EF=Jt.prototype,xF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xF[e]={value:e}});Object.defineProperties(Jt,xF);Object.defineProperty(EF,"isAxiosError",{value:!0});Jt.from=(e,t,n,i,r,a)=>{const o=Object.create(EF);return Ge.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Jt.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const tde=null;function EC(e){return Ge.isPlainObject(e)||Ge.isArray(e)}function kF(e){return Ge.endsWith(e,"[]")?e.slice(0,-2):e}function qP(e,t,n){return e?e.concat(t).map(function(r,a){return r=kF(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function nde(e){return Ge.isArray(e)&&!e.some(EC)}const ide=Ge.toFlatObject(Ge,{},null,function(t){return/^is[A-Z]/.test(t)});function cw(e,t,n){if(!Ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ge.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Ge.isUndefined(v[g])});const i=n.metaTokens,r=n.visitor||c,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ge.isSpecCompliantForm(t);if(!Ge.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(Ge.isDate(m))return m.toISOString();if(!l&&Ge.isBlob(m))throw new Jt("Blob is not supported. Use a Buffer instead.");return Ge.isArrayBuffer(m)||Ge.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(Ge.endsWith(g,"{}"))g=i?g:g.slice(0,-2),m=JSON.stringify(m);else if(Ge.isArray(m)&&nde(m)||(Ge.isFileList(m)||Ge.endsWith(g,"[]"))&&(y=Ge.toArray(m)))return g=kF(g),y.forEach(function(S,w){!(Ge.isUndefined(S)||S===null)&&t.append(o===!0?qP([g],w,a):o===null?g:g+"[]",u(S))}),!1}return EC(m)?!0:(t.append(qP(v,g,a),u(m)),!1)}const d=[],f=Object.assign(ide,{defaultVisitor:c,convertValue:u,isVisitable:EC});function h(m,g){if(!Ge.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),Ge.forEach(m,function(y,_){(!(Ge.isUndefined(y)||y===null)&&r.call(t,y,Ge.isString(_)?_.trim():_,g,f))===!0&&h(y,g?g.concat(_):[_])}),d.pop()}}if(!Ge.isObject(e))throw new TypeError("data must be an object");return h(e),t}function YP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function p8(e,t){this._pairs=[],e&&cw(e,this,t)}const TF=p8.prototype;TF.append=function(t,n){this._pairs.push([t,n])};TF.toString=function(t){const n=t?function(i){return t.call(this,i,YP)}:YP;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function rde(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function PF(e,t,n){if(!t)return e;const i=n&&n.encode||rde;Ge.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(r?a=r(t,n):a=Ge.isURLSearchParams(t)?t.toString():new p8(t,n).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ade{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ge.forEach(this.handlers,function(i){i!==null&&t(i)})}}const WP=ade,$F={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ode=typeof URLSearchParams<"u"?URLSearchParams:p8,sde=typeof FormData<"u"?FormData:null,lde=typeof Blob<"u"?Blob:null,ude={isBrowser:!0,classes:{URLSearchParams:ode,FormData:sde,Blob:lde},protocols:["http","https","file","blob","url","data"]},m8=typeof window<"u"&&typeof document<"u",xC=typeof navigator=="object"&&navigator||void 0,cde=m8&&(!xC||["ReactNative","NativeScript","NS"].indexOf(xC.product)<0),dde=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),fde=m8&&window.location.href||"http://localhost",hde=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m8,hasStandardBrowserEnv:cde,hasStandardBrowserWebWorkerEnv:dde,navigator:xC,origin:fde},Symbol.toStringTag,{value:"Module"})),Pa={...hde,...ude};function pde(e,t){return cw(e,new Pa.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return Pa.isNode&&Ge.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function mde(e){return Ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vde(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}function AF(e){function t(n,i,r,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&Ge.isArray(r)?r.length:o,l?(Ge.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!s):((!r[o]||!Ge.isObject(r[o]))&&(r[o]=[]),t(n,i,r[o],a)&&Ge.isArray(r[o])&&(r[o]=vde(r[o])),!s)}if(Ge.isFormData(e)&&Ge.isFunction(e.entries)){const n={};return Ge.forEachEntry(e,(i,r)=>{t(mde(i),r,n,0)}),n}return null}function gde(e,t,n){if(Ge.isString(e))try{return(t||JSON.parse)(e),Ge.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const v8={transitional:$F,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=Ge.isObject(t);if(a&&Ge.isHTMLForm(t)&&(t=new FormData(t)),Ge.isFormData(t))return r?JSON.stringify(AF(t)):t;if(Ge.isArrayBuffer(t)||Ge.isBuffer(t)||Ge.isStream(t)||Ge.isFile(t)||Ge.isBlob(t)||Ge.isReadableStream(t))return t;if(Ge.isArrayBufferView(t))return t.buffer;if(Ge.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return pde(t,this.formSerializer).toString();if((s=Ge.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cw(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),gde(t)):t}],transformResponse:[function(t){const n=this.transitional||v8.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Ge.isResponse(t)||Ge.isReadableStream(t))return t;if(t&&Ge.isString(t)&&(i&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Jt.from(s,Jt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pa.classes.FormData,Blob:Pa.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ge.forEach(["delete","get","head","post","put","patch"],e=>{v8.headers[e]={}});const g8=v8,yde=Ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_de=e=>{const t={};let n,i,r;return e&&e.split(` `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||t[n]&&yde[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},GP=Symbol("internals");function av(e){return e&&String(e).trim().toLowerCase()}function Q0(e){return e===!1||e==null?e:Ge.isArray(e)?e.map(Q0):String(e)}function bde(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const wde=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R3(e,t,n,i,r){if(Ge.isFunction(i))return i.call(this,t,n);if(r&&(t=n),!!Ge.isString(t)){if(Ge.isString(i))return t.indexOf(i)!==-1;if(Ge.isRegExp(i))return i.test(t)}}function Sde(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Cde(e,t){const n=Ge.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(r,a,o){return this[i].call(this,t,r,a,o)},configurable:!0})})}class dw{constructor(t){t&&this.set(t)}set(t,n,i){const r=this;function a(s,l,u){const c=av(l);if(!c)throw new Error("header name must be a non-empty string");const d=Ge.findKey(r,c);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||l]=Q0(s))}const o=(s,l)=>Ge.forEach(s,(u,c)=>a(u,c,l));if(Ge.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Ge.isString(t)&&(t=t.trim())&&!wde(t))o(_de(t),n);else if(Ge.isHeaders(t))for(const[s,l]of t.entries())a(l,s,i);else t!=null&&a(n,t,i);return this}get(t,n){if(t=av(t),t){const i=Ge.findKey(this,t);if(i){const r=this[i];if(!n)return r;if(n===!0)return bde(r);if(Ge.isFunction(n))return n.call(this,r,i);if(Ge.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=av(t),t){const i=Ge.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||R3(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let r=!1;function a(o){if(o=av(o),o){const s=Ge.findKey(i,o);s&&(!n||R3(i,i[s],s,n))&&(delete i[s],r=!0)}}return Ge.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!t||R3(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,i={};return Ge.forEach(this,(r,a)=>{const o=Ge.findKey(i,a);if(o){n[o]=Q0(r),delete n[a];return}const s=t?Sde(a):String(a).trim();s!==a&&delete n[a],n[s]=Q0(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ge.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=t&&Ge.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[GP]=this[GP]={accessors:{}}).accessors,r=this.prototype;function a(o){const s=av(o);i[s]||(Cde(r,o),i[s]=!0)}return Ge.isArray(t)?t.forEach(a):a(t),this}}dw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ge.reduceDescriptors(dw.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});Ge.freezeMethods(dw);const el=dw;function F3(e,t){const n=this||g8,i=t||n,r=el.from(i.headers);let a=i.data;return Ge.forEach(e,function(s){a=s.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function OF(e){return!!(e&&e.__CANCEL__)}function xm(e,t,n){Jt.call(this,e??"canceled",Jt.ERR_CANCELED,t,n),this.name="CanceledError"}Ge.inherits(xm,Jt,{__CANCEL__:!0});function DF(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Jt("Request failed with status code "+n.status,[Jt.ERR_BAD_REQUEST,Jt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ede(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xde(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=i[a];o||(o=u),n[r]=l,i[r]=u;let d=a,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function kde(e,t){let n=0,i=1e3/t,r,a;const o=(u,c=Date.now())=>{n=c,r=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=i?o(u,c):(r=u,a||(a=setTimeout(()=>{a=null,o(r)},i-d)))},()=>r&&o(r)]}const eb=(e,t,n=3)=>{let i=0;const r=xde(50,250);return kde(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-i,u=r(l),c=o<=s;i=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},KP=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},ZP=e=>(...t)=>Ge.asap(()=>e(...t)),Tde=Pa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pa.origin),Pa.navigator&&/(msie|trident)/i.test(Pa.navigator.userAgent)):()=>!0,Pde=Pa.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];Ge.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ge.isString(i)&&o.push("path="+i),Ge.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $de(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ade(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function IF(e,t){return e&&!$de(t)?Ade(e,t):t}const XP=e=>e instanceof el?{...e}:e;function Kf(e,t){t=t||{};const n={};function i(u,c,d,f){return Ge.isPlainObject(u)&&Ge.isPlainObject(c)?Ge.merge.call({caseless:f},u,c):Ge.isPlainObject(c)?Ge.merge({},c):Ge.isArray(c)?c.slice():c}function r(u,c,d,f){if(Ge.isUndefined(c)){if(!Ge.isUndefined(u))return i(void 0,u,d,f)}else return i(u,c,d,f)}function a(u,c){if(!Ge.isUndefined(c))return i(void 0,c)}function o(u,c){if(Ge.isUndefined(c)){if(!Ge.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function s(u,c,d){if(d in t)return i(u,c);if(d in e)return i(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,withXSRFToken: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,d)=>r(XP(u),XP(c),d,!0)};return Ge.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||r,f=d(e[c],t[c],c);Ge.isUndefined(f)&&d!==s||(n[c]=f)}),n}const NF=e=>{const t=Kf({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=el.from(o),t.url=PF(IF(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ge.isFormData(n)){if(Pa.hasStandardBrowserEnv||Pa.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Pa.hasStandardBrowserEnv&&(i&&Ge.isFunction(i)&&(i=i(t)),i||i!==!1&&Tde(t.url))){const u=r&&a&&Pde.read(a);u&&o.set(r,u)}return t},Ode=typeof XMLHttpRequest<"u",Dde=Ode&&function(e){return new Promise(function(n,i){const r=NF(e);let a=r.data;const o=el.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=r,c,d,f,h,m;function g(){h&&h(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function y(){if(!v)return;const S=el.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};DF(function(P){n(P),g()},function(P){i(P),g()},x),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(i(new Jt("Request aborted",Jt.ECONNABORTED,e,v)),v=null)},v.onerror=function(){i(new Jt("Network Error",Jt.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||$F;r.timeoutErrorMessage&&(w=r.timeoutErrorMessage),i(new Jt(w,x.clarifyTimeoutError?Jt.ETIMEDOUT:Jt.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&Ge.forEach(o.toJSON(),function(w,x){v.setRequestHeader(x,w)}),Ge.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),s&&s!=="json"&&(v.responseType=r.responseType),u&&([f,m]=eb(u,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,h]=eb(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(c=S=>{v&&(i(!S||S.type?new xm(null,e,v):S),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const _=Ede(r.url);if(_&&Pa.protocols.indexOf(_)===-1){i(new Jt("Unsupported protocol "+_+":",Jt.ERR_BAD_REQUEST,e));return}v.send(a||null)})},Ide=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,r;const a=function(u){if(!r){r=!0,s();const c=u instanceof Error?u:this.reason;i.abort(c instanceof Jt?c:new xm(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new Jt(`timeout ${t} of ms exceeded`,Jt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=i;return l.unsubscribe=()=>Ge.asap(s),l}},Nde=Ide,Mde=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let i=0,r;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Lde=async function*(e,t){for await(const n of Rde(e))yield*Mde(n,t)},Rde=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},JP=(e,t,n,i)=>{const r=Lde(e,t);let a=0,o,s=l=>{o||(o=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await r.next();if(u){s(),l.close();return}let d=c.byteLength;if(n){let f=a+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),r.return()}},{highWaterMark:2})},fw=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",MF=fw&&typeof ReadableStream=="function",Fde=fw&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),LF=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vde=MF&&LF(()=>{let e=!1;const t=new Request(Pa.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),QP=64*1024,kC=MF&&LF(()=>Ge.isReadableStream(new Response("").body)),tb={stream:kC&&(e=>e.body)};fw&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!tb[t]&&(tb[t]=Ge.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Jt(`Response type '${t}' is not supported`,Jt.ERR_NOT_SUPPORT,i)})})})(new Response);const Bde=async e=>{if(e==null)return 0;if(Ge.isBlob(e))return e.size;if(Ge.isSpecCompliantForm(e))return(await new Request(Pa.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ge.isArrayBufferView(e)||Ge.isArrayBuffer(e))return e.byteLength;if(Ge.isURLSearchParams(e)&&(e=e+""),Ge.isString(e))return(await Fde(e)).byteLength},zde=async(e,t)=>{const n=Ge.toFiniteNumber(e.getContentLength());return n??Bde(t)},jde=fw&&(async e=>{let{url:t,method:n,data:i,signal:r,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=NF(e);u=u?(u+"").toLowerCase():"text";let h=Nde([r,a&&a.toAbortSignal()],o),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(l&&Vde&&n!=="get"&&n!=="head"&&(v=await zde(c,i))!==0){let x=new Request(t,{method:"POST",body:i,duplex:"half"}),k;if(Ge.isFormData(i)&&(k=x.headers.get("content-type"))&&c.setContentType(k),x.body){const[P,E]=KP(v,eb(ZP(l)));i=JP(x.body,QP,P,E)}}Ge.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:y?d:void 0});let _=await fetch(m);const S=kC&&(u==="stream"||u==="response");if(kC&&(s||S&&g)){const x={};["status","statusText","headers"].forEach(A=>{x[A]=_[A]});const k=Ge.toFiniteNumber(_.headers.get("content-length")),[P,E]=s&&KP(k,eb(ZP(s),!0))||[];_=new Response(JP(_.body,QP,P,()=>{E&&E(),g&&g()}),x)}u=u||"text";let w=await tb[Ge.findKey(tb,u)||"text"](_,e);return!S&&g&&g(),await new Promise((x,k)=>{DF(x,k,{data:w,headers:el.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Jt("Network Error",Jt.ERR_NETWORK,e,m),{cause:y.cause||y}):Jt.from(y,y&&y.code,e,m)}}),TC={http:tde,xhr:Dde,fetch:jde};Ge.forEach(TC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const e$=e=>`- ${e}`,Ude=e=>Ge.isFunction(e)||e===null||e===!1,RF={getAdapter:e=>{e=Ge.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){n=e[a];let o;if(i=n,!Ude(n)&&(i=TC[(o=String(n)).toLowerCase()],i===void 0))throw new Jt(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : `+a.map(e$).join(` `):" "+e$(a[0]):"as no adapter specified";throw new Jt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:TC};function V3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xm(null,e)}function t$(e){return V3(e),e.headers=el.from(e.headers),e.data=F3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),RF.getAdapter(e.adapter||g8.adapter)(e).then(function(i){return V3(e),i.data=F3.call(e,e.transformResponse,i),i.headers=el.from(i.headers),i},function(i){return OF(i)||(V3(e),i&&i.response&&(i.response.data=F3.call(e,e.transformResponse,i.response),i.response.headers=el.from(i.response.headers))),Promise.reject(i)})}const FF="1.7.9",hw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hw[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const n$={};hw.transitional=function(t,n,i){function r(a,o){return"[Axios v"+FF+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,s)=>{if(t===!1)throw new Jt(r(o," has been removed"+(n?" in "+n:"")),Jt.ERR_DEPRECATED);return n&&!n$[o]&&(n$[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};hw.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Hde(e,t,n){if(typeof e!="object")throw new Jt("options must be an object",Jt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Jt("option "+a+" must be "+l,Jt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Jt("Unknown option "+a,Jt.ERR_BAD_OPTION)}}const e_={assertOptions:Hde,validators:hw},El=e_.validators;class nb{constructor(t){this.defaults=t,this.interceptors={request:new WP,response:new WP}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Kf(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&e_.assertOptions(i,{silentJSONParsing:El.transitional(El.boolean),forcedJSONParsing:El.transitional(El.boolean),clarifyTimeoutError:El.transitional(El.boolean)},!1),r!=null&&(Ge.isFunction(r)?n.paramsSerializer={serialize:r}:e_.assertOptions(r,{encode:El.function,serialize:El.function},!0)),e_.assertOptions(n,{baseUrl:El.spelling("baseURL"),withXsrfToken:El.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&Ge.merge(a.common,a[n.method]);a&&Ge.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=el.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const m=[t$.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d<f;)c=c.then(m[d++],m[d++]);return c}f=s.length;let h=n;for(d=0;d<f;){const m=s[d++],g=s[d++];try{h=m(h)}catch(v){g.call(this,v);break}}try{c=t$.call(this,h)}catch(m){return Promise.reject(m)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Kf(this.defaults,t);const n=IF(t.baseURL,t.url);return PF(n,t.params,t.paramsSerializer)}}Ge.forEach(["delete","get","head","options"],function(t){nb.prototype[t]=function(n,i){return this.request(Kf(i||{},{method:t,url:n,data:(i||{}).data}))}});Ge.forEach(["post","put","patch"],function(t){function n(i){return function(a,o,s){return this.request(Kf(s||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}nb.prototype[t]=n(),nb.prototype[t+"Form"]=n(!0)});const t_=nb;class y8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(s=>{i.subscribe(s),a=s}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},t(function(a,o,s){i.reason||(i.reason=new xm(a,o,s),n(i.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)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new y8(function(r){t=r}),cancel:t}}}const qde=y8;function Yde(e){return function(n){return e.apply(null,n)}}function Wde(e){return Ge.isObject(e)&&e.isAxiosError===!0}const PC={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(PC).forEach(([e,t])=>{PC[t]=e});const Gde=PC;function VF(e){const t=new t_(e),n=vF(t_.prototype.request,t);return Ge.extend(n,t_.prototype,t,{allOwnKeys:!0}),Ge.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return VF(Kf(e,r))},n}const wr=VF(g8);wr.Axios=t_;wr.CanceledError=xm;wr.CancelToken=qde;wr.isCancel=OF;wr.VERSION=FF;wr.toFormData=cw;wr.AxiosError=Jt;wr.Cancel=wr.CanceledError;wr.all=function(t){return Promise.all(t)};wr.spread=Yde;wr.isAxiosError=Wde;wr.mergeConfig=Kf;wr.AxiosHeaders=el;wr.formToJSON=e=>AF(Ge.isHTMLForm(e)?new FormData(e):e);wr.getAdapter=RF.getAdapter;wr.HttpStatusCode=Gde;wr.default=wr;const _8=wr;var b8={exports:{}},yp=typeof Reflect=="object"?Reflect:null,i$=yp&&typeof yp.apply=="function"?yp.apply:function(t,n,i){return Function.prototype.apply.call(t,n,i)},n_;yp&&typeof yp.ownKeys=="function"?n_=yp.ownKeys:Object.getOwnPropertySymbols?n_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:n_=function(t){return Object.getOwnPropertyNames(t)};function Kde(e){console&&console.warn&&console.warn(e)}var BF=Number.isNaN||function(t){return t!==t};function Xn(){Xn.init.call(this)}b8.exports=Xn;b8.exports.once=Qde;Xn.EventEmitter=Xn;Xn.prototype._events=void 0;Xn.prototype._eventsCount=0;Xn.prototype._maxListeners=void 0;var r$=10;function pw(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Xn,"defaultMaxListeners",{enumerable:!0,get:function(){return r$},set:function(e){if(typeof e!="number"||e<0||BF(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r$=e}});Xn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Xn.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||BF(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function zF(e){return e._maxListeners===void 0?Xn.defaultMaxListeners:e._maxListeners}Xn.prototype.getMaxListeners=function(){return zF(this)};Xn.prototype.emit=function(t){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var r=t==="error",a=this._events;if(a!==void 0)r=r&&a.error===void 0;else if(!r)return!1;if(r){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")i$(l,this,n);else for(var u=l.length,c=YF(l,u),i=0;i<u;++i)i$(c[i],this,n);return!0};function jF(e,t,n,i){var r,a,o;if(pw(n),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o=="function"?o=a[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),r=zF(e),r>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Kde(s)}return e}Xn.prototype.addListener=function(t,n){return jF(this,t,n,!1)};Xn.prototype.on=Xn.prototype.addListener;Xn.prototype.prependListener=function(t,n){return jF(this,t,n,!0)};function Zde(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function UF(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=Zde.bind(i);return r.listener=n,i.wrapFn=r,r}Xn.prototype.once=function(t,n){return pw(n),this.on(t,UF(this,t,n)),this};Xn.prototype.prependOnceListener=function(t,n){return pw(n),this.prependListener(t,UF(this,t,n)),this};Xn.prototype.removeListener=function(t,n){var i,r,a,o,s;if(pw(n),r=this._events,r===void 0)return this;if(i=r[t],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||n));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===n||i[o].listener===n){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():Xde(i,a),i.length===1&&(r[t]=i[0]),r.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};Xn.prototype.off=Xn.prototype.removeListener;Xn.prototype.removeAllListeners=function(t){var n,i,r;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(r=0;r<a.length;++r)o=a[r],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(r=n.length-1;r>=0;r--)this.removeListener(t,n[r]);return this};function HF(e,t,n){var i=e._events;if(i===void 0)return[];var r=i[t];return r===void 0?[]:typeof r=="function"?n?[r.listener||r]:[r]:n?Jde(r):YF(r,r.length)}Xn.prototype.listeners=function(t){return HF(this,t,!0)};Xn.prototype.rawListeners=function(t){return HF(this,t,!1)};Xn.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):qF.call(e,t)};Xn.prototype.listenerCount=qF;function qF(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Xn.prototype.eventNames=function(){return this._eventsCount>0?n_(this._events):[]};function YF(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function Xde(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Jde(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function Qde(e,t){return new Promise(function(n,i){function r(o){e.removeListener(t,a),i(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",r),n([].slice.call(arguments))}WF(e,t,a,{once:!0}),t!=="error"&&efe(e,r,{once:!0})})}function efe(e,t,n){typeof e.on=="function"&&WF(e,"error",t,n)}function WF(e,t,n,i){if(typeof e.on=="function")i.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function r(a){i.once&&e.removeEventListener(t,r),n(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var tfe=b8.exports;const nfe=Ei(tfe),Hn=new nfe;Hn.setMaxListeners(0);const nt={info:e=>Hn.emit("message",{text:e,severity:"info"}),success:e=>Hn.emit("message",{text:e,severity:"success"}),warning:e=>Hn.emit("message",{text:e,severity:"warning"}),error:e=>Hn.emit("message",{text:e,severity:"error"})},{t:ife}=_s.global;window.addEventListener("unhandledrejection",e=>{e.reason&&e.reason.isAxiosError&&nt.error(ife("common.error.errorHasOccurred"))});const vn=e=>{e=e?"https://api.holitime.org"+e:"https://api.holitime.org";const t=_8.create({baseURL:e,timeout:1e5});return t.interceptors.request.use(n=>{var a;const r=(a=Un().user)==null?void 0:a.token;if(r&&n.url!=="/refresh-token"){const o=`Bearer ${r}`;n.headers.set("Authorization",o)}return n.method==="post"&&!n.headers.has("Content-Type")&&n.headers.set("Content-Type","multipart/form-data"),n},n=>Promise.reject(n)),t.interceptors.response.use(n=>n,async n=>{var i;return((i=n.response)==null?void 0:i.status)===401&&!["/refresh-token","/login-check","/auth/temp-token"].includes(n.config.url||"")?(await Un().refreshToken(),t.request(n.config)):Promise.reject(n)}),t},rfe=vn("https://api.holitime.org/api/auth"),afe=async()=>{const e=await rfe.post("/login");return{status:e.status,data:e.data}};class Xv extends Error{}Xv.prototype.name="InvalidTokenError";function ofe(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let i=n.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}function sfe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ofe(t)}catch{return atob(t)}}function lfe(e,t){if(typeof e!="string")throw new Xv("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,i=e.split(".")[n];if(typeof i!="string")throw new Xv(`Invalid token specified: missing part #${n+1}`);let r;try{r=sfe(i)}catch(a){throw new Xv(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(r)}catch(a){throw new Xv(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}const GF=Object.prototype.toString;function KF(e){switch(GF.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return ac(e,Error)}}function km(e,t){return GF.call(e)===`[object ${t}]`}function w8(e){return km(e,"ErrorEvent")}function a$(e){return km(e,"DOMError")}function ufe(e){return km(e,"DOMException")}function jl(e){return km(e,"String")}function S8(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function C8(e){return e===null||S8(e)||typeof e!="object"&&typeof e!="function"}function Zp(e){return km(e,"Object")}function mw(e){return typeof Event<"u"&&ac(e,Event)}function cfe(e){return typeof Element<"u"&&ac(e,Element)}function dfe(e){return km(e,"RegExp")}function vw(e){return!!(e&&e.then&&typeof e.then=="function")}function ffe(e){return Zp(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ZF(e){return typeof e=="number"&&e!==e}function ac(e,t){try{return e instanceof t}catch{return!1}}function XF(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function _p(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function o$(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const r=e[i];try{XF(r)?n.push("[VueViewModel]"):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function hfe(e,t,n=!1){return jl(e)?dfe(t)?t.test(e):jl(t)?n?e===t:e.includes(t):!1:!1}function Tm(e,t=[],n=!1){return t.some(i=>hfe(e,i,n))}function pfe(e,t,n=250,i,r,a,o){if(!a.exception||!a.exception.values||!o||!ac(o.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=mfe($C(e,t,r,o.originalException,i,a.exception.values,s,0),n))}function $C(e,t,n,i,r,a,o,s){if(a.length>=n+1)return a;let l=[...a];if(ac(i[r],Error)){s$(o,s);const u=e(t,i[r]),c=l.length;l$(u,r,c,s),l=$C(e,t,n,i[r],r,[u,...l],u,c)}return Array.isArray(i.errors)&&i.errors.forEach((u,c)=>{if(ac(u,Error)){s$(o,s);const d=e(t,u),f=l.length;l$(d,`errors[${c}]`,f,s),l=$C(e,t,n,u,r,[d,...l],d,f)}}),l}function s$(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function l$(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function mfe(e,t){return e.map(n=>(n.value&&(n.value=_p(n.value,t)),n))}function Qy(e){return e&&e.Math==Math?e:void 0}const xn=typeof globalThis=="object"&&Qy(globalThis)||typeof window=="object"&&Qy(window)||typeof self=="object"&&Qy(self)||typeof global=="object"&&Qy(global)||function(){return this}()||{};function E8(){return xn}function JF(e,t,n){const i=n||xn,r=i.__SENTRY__=i.__SENTRY__||{};return r[e]||(r[e]=t())}const bp=E8(),vfe=80;function sd(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let a=0,o=0;const s=" > ",l=s.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||vfe;for(;n&&a++<i&&(u=gfe(n,c),!(u==="html"||a>1&&o+r.length*l+u.length>=d));)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(s)}catch{return"<unknown>"}}function gfe(e,t){const n=e,i=[];let r,a,o,s,l;if(!n||!n.tagName)return"";if(bp.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{i.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&jl(r))for(a=r.split(/\s+/),l=0;l<a.length;l++)i.push(`.${a[l]}`);const c=["aria-label","type","name","title","alt"];for(l=0;l<c.length;l++)o=c[l],s=n.getAttribute(o),s&&i.push(`[${o}="${s}"]`);return i.join("")}function yfe(){try{return bp.document.location.href}catch{return""}}function _fe(e){return bp.document&&bp.document.querySelector?bp.document.querySelector(e):null}function QF(e){if(!bp.HTMLElement)return null;let t=e;const n=5;for(let i=0;i<n;i++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Pm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bfe="Sentry Logger ",AC=["debug","info","warn","error","log","assert","trace"],ib={};function Zl(e){if(!("console"in xn))return e();const t=xn.console,n={},i=Object.keys(ib);i.forEach(r=>{const a=ib[r];n[r]=t[r],t[r]=a});try{return e()}finally{i.forEach(r=>{t[r]=n[r]})}}function wfe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Pm?AC.forEach(n=>{t[n]=(...i)=>{e&&Zl(()=>{xn.console[n](`${bfe}[${n}]:`,...i)})}}):AC.forEach(n=>{t[n]=()=>{}}),t}const Xe=wfe(),Sfe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Cfe(e){return e==="http"||e==="https"}function $m(e,t=!1){const{host:n,path:i,pass:r,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&r?`:${r}`:""}@${n}${a?`:${a}`:""}/${i&&`${i}/`}${o}`}function Efe(e){const t=Sfe.exec(e);if(!t){Zl(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,i,r="",a,o="",s]=t.slice(1);let l="",u=s;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return eV({host:a,pass:r,path:l,projectId:u,port:o,protocol:n,publicKey:i})}function eV(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function xfe(e){if(!Pm)return!0;const{port:t,projectId:n,protocol:i}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(Xe.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?Cfe(i)?t&&isNaN(parseInt(t,10))?(Xe.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Xe.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(Xe.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function kfe(e){const t=typeof e=="string"?Efe(e):eV(e);if(!(!t||!xfe(t)))return t}class Nl extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Gr(e,t,n){if(!(t in e))return;const i=e[t],r=n(i);typeof r=="function"&&tV(r,i),e[t]=r}function Zf(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Pm&&Xe.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function tV(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Zf(e,"__sentry_original__",t)}catch{}}function x8(e){return e.__sentry_original__}function Tfe(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function nV(e){if(KF(e))return{message:e.message,name:e.name,stack:e.stack,...c$(e)};if(mw(e)){const t={type:e.type,target:u$(e.target),currentTarget:u$(e.currentTarget),...c$(e)};return typeof CustomEvent<"u"&&ac(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function u$(e){try{return cfe(e)?sd(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function c$(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Pfe(e,t=40){const n=Object.keys(nV(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return _p(n[0],t);for(let i=n.length;i>0;i--){const r=n.slice(0,i).join(", ");if(!(r.length>t))return i===n.length?r:_p(r,t)}return""}function Za(e){return OC(e,new Map)}function OC(e,t){if($fe(e)){const n=t.get(e);if(n!==void 0)return n;const i={};t.set(e,i);for(const r of Object.keys(e))typeof e[r]<"u"&&(i[r]=OC(e[r],t));return i}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const i=[];return t.set(e,i),e.forEach(r=>{i.push(OC(r,t))}),i}return e}function $fe(e){if(!Zp(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const iV=50,d$=/\(error: (.*)\)/,f$=/captureMessage|captureException/;function rV(...e){const t=e.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0)=>{const r=[],a=n.split(` `);for(let o=i;o<a.length;o++){const s=a[o];if(s.length>1024)continue;const l=d$.test(s)?s.replace(d$,"$1"):s;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){r.push(c);break}}if(r.length>=iV)break}}return Ofe(r)}}function Afe(e){return Array.isArray(e)?rV(...e):e}function Ofe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),f$.test(t[t.length-1].function||"")&&(t.pop(),f$.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,iV).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const B3="<anonymous>";function oc(e){try{return!e||typeof e!="function"?B3:e.name||B3}catch{return B3}}const i_={},h$={};function hh(e,t){i_[e]=i_[e]||[],i_[e].push(t)}function ph(e,t){h$[e]||(t(),h$[e]=!0)}function tl(e,t){const n=e&&i_[e];if(n)for(const i of n)try{i(t)}catch(r){Pm&&Xe.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${oc(i)} Error:`,r)}}function Dfe(e){const t="console";hh(t,e),ph(t,Ife)}function Ife(){"console"in xn&&AC.forEach(function(e){e in xn.console&&Gr(xn.console,e,function(t){return ib[e]=t,function(...n){tl("console",{args:n,level:e});const r=ib[e];r&&r.apply(xn.console,n)}})})}function Hi(){const e=xn,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const i=new Uint8Array(1);return t.getRandomValues(i),i[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,i=>(i^(n()&15)>>i/4).toString(16))}function aV(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jc(e){const{message:t,event_id:n}=e;if(t)return t;const i=aV(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function DC(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function u1(e,t){const n=aV(e);if(!n)return;const i={type:"generic",handled:!0},r=n.mechanism;if(n.mechanism={...i,...r,...t},t&&"data"in t){const a={...r&&r.data,...t.data};n.mechanism.data=a}}function p$(e){if(e&&e.__sentry_captured__)return!0;try{Zf(e,"__sentry_captured__",!0)}catch{}return!1}function k8(e){return Array.isArray(e)?e:[e]}const Xh=xn,Nfe=1e3;let m$,IC,NC;function oV(e){const t="dom";hh(t,e),ph(t,Mfe)}function Mfe(){if(!Xh.document)return;const e=tl.bind(null,"dom"),t=v$(e,!0);Xh.document.addEventListener("click",t,!1),Xh.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=Xh[n]&&Xh[n].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Gr(i,"addEventListener",function(r){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const d=v$(e);c.handler=d,r.call(this,a,d,s)}c.refCount++}catch{}return r.call(this,a,o,s)}}),Gr(i,"removeEventListener",function(r){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(r.call(this,a,c.handler,s),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return r.call(this,a,o,s)}}))})}function Lfe(e){if(e.type!==IC)return!1;try{if(!e.target||e.target._sentryId!==NC)return!1}catch{}return!0}function Rfe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function v$(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=Ffe(n);if(Rfe(n.type,i))return;Zf(n,"_sentryCaptured",!0),i&&!i._sentryId&&Zf(i,"_sentryId",Hi());const r=n.type==="keypress"?"input":n.type;Lfe(n)||(e({event:n,name:r,global:t}),IC=n.type,NC=i?i._sentryId:void 0),clearTimeout(m$),m$=Xh.setTimeout(()=>{NC=void 0,IC=void 0},Nfe)}}function Ffe(e){try{return e.target}catch{return null}}const MC=E8();function sV(){if(!("fetch"in MC))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function LC(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Vfe(){if(typeof EdgeRuntime=="string")return!0;if(!sV())return!1;if(LC(MC.fetch))return!0;let e=!1;const t=MC.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=LC(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Pm&&Xe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function T8(e){const t="fetch";hh(t,e),ph(t,Bfe)}function Bfe(){Vfe()&&Gr(xn,"fetch",function(e){return function(...t){const{method:n,url:i}=zfe(t),r={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return tl("fetch",{...r}),e.apply(xn,t).then(a=>{const o={...r,endTimestamp:Date.now(),response:a};return tl("fetch",o),a},a=>{const o={...r,endTimestamp:Date.now(),error:a};throw tl("fetch",o),a})}})}function RC(e,t){return!!e&&typeof e=="object"&&!!e[t]}function g$(e){return typeof e=="string"?e:e?RC(e,"url")?e.url:e.toString?e.toString():"":""}function zfe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,i]=e;return{url:g$(n),method:RC(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:g$(t),method:RC(t,"method")?String(t.method).toUpperCase():"GET"}}let e0=null;function lV(e){const t="error";hh(t,e),ph(t,jfe)}function jfe(){e0=xn.onerror,xn.onerror=function(e,t,n,i,r){return tl("error",{column:i,error:r,line:n,msg:e,url:t}),e0&&!e0.__SENTRY_LOADER__?e0.apply(this,arguments):!1},xn.onerror.__SENTRY_INSTRUMENTED__=!0}let t0=null;function uV(e){const t="unhandledrejection";hh(t,e),ph(t,Ufe)}function Ufe(){t0=xn.onunhandledrejection,xn.onunhandledrejection=function(e){return tl("unhandledrejection",e),t0&&!t0.__SENTRY_LOADER__?t0.apply(this,arguments):!0},xn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const n0=E8();function Hfe(){const e=n0.chrome,t=e&&e.app&&e.app.runtime,n="history"in n0&&!!n0.history.pushState&&!!n0.history.replaceState;return!t&&n}const ov=xn;let i0;function gw(e){const t="history";hh(t,e),ph(t,qfe)}function qfe(){if(!Hfe())return;const e=ov.onpopstate;ov.onpopstate=function(...n){const i=ov.location.href,r=i0;if(i0=i,tl("history",{from:r,to:i}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...i){const r=i.length>2?i[2]:void 0;if(r){const a=i0,o=String(r);i0=o,tl("history",{from:a,to:o})}return n.apply(this,i)}}Gr(ov.history,"pushState",t),Gr(ov.history,"replaceState",t)}const Yfe=xn,qc="__sentry_xhr_v3__";function P8(e){const t="xhr";hh(t,e),ph(t,Wfe)}function Wfe(){if(!Yfe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Gr(e,"open",function(t){return function(...n){const i=Date.now(),r=jl(n[0])?n[0].toUpperCase():void 0,a=Gfe(n[1]);if(!r||!a)return t.apply(this,n);this[qc]={method:r,url:a,request_headers:{}},r==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const s=this[qc];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}const l={args:[r,a],endTimestamp:Date.now(),startTimestamp:i,xhr:this};tl("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Gr(this,"onreadystatechange",function(s){return function(...l){return o(),s.apply(this,l)}}):this.addEventListener("readystatechange",o),Gr(this,"setRequestHeader",function(s){return function(...l){const[u,c]=l,d=this[qc];return d&&jl(u)&&jl(c)&&(d.request_headers[u.toLowerCase()]=c),s.apply(this,l)}}),t.apply(this,n)}}),Gr(e,"send",function(t){return function(...n){const i=this[qc];if(!i)return t.apply(this,n);n[0]!==void 0&&(i.body=n[0]);const r={args:[i.method,i.url],startTimestamp:Date.now(),xhr:this};return tl("xhr",r),t.apply(this,n)}})}function Gfe(e){if(jl(e))return e;try{return e.toString()}catch{}}function Kfe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Zfe(){return"npm"}function Xfe(){return!Kfe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function y$(){return typeof window<"u"&&(!Xfe()||Jfe())}function Jfe(){return xn.process!==void 0&&xn.process.type==="renderer"}function Qfe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(r){if(e)return t.has(r)?!0:(t.add(r),!1);for(let a=0;a<t.length;a++)if(t[a]===r)return!0;return t.push(r),!1}function i(r){if(e)t.delete(r);else for(let a=0;a<t.length;a++)if(t[a]===r){t.splice(a,1);break}}return[n,i]}function Ol(e,t=100,n=1/0){try{return FC("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function cV(e,t=3,n=100*1024){const i=Ol(e,t);return ihe(i)>n?cV(e,t-1,n):i}function FC(e,t,n=1/0,i=1/0,r=Qfe()){const[a,o]=r;if(t==null||["number","boolean","string"].includes(typeof t)&&!ZF(t))return t;const s=ehe(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return FC("",h,l-1,i,r)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const f=nV(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=i){c[h]="[MaxProperties ~]";break}const m=f[h];c[h]=FC(h,m,l-1,i,r),d++}return o(t),c}function ehe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(XF(t))return"[VueViewModel]";if(ffe(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${oc(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=the(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function the(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function nhe(e){return~-encodeURI(e).split(/%..|./).length}function ihe(e){return nhe(JSON.stringify(e))}var Mu;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const i=2;e[e.REJECTED=i]="REJECTED"})(Mu||(Mu={}));function Xp(e){return new No(t=>{t(e)})}function $8(e){return new No((t,n)=>{n(e)})}class No{constructor(t){No.prototype.__init.call(this),No.prototype.__init2.call(this),No.prototype.__init3.call(this),No.prototype.__init4.call(this),this._state=Mu.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new No((i,r)=>{this._handlers.push([!1,a=>{if(!t)i(a);else try{i(t(a))}catch(o){r(o)}},a=>{if(!n)r(a);else try{i(n(a))}catch(o){r(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new No((n,i)=>{let r,a;return this.then(o=>{a=!1,r=o,t&&t()},o=>{a=!0,r=o,t&&t()}).then(()=>{if(a){i(r);return}n(r)})})}__init(){this._resolve=t=>{this._setResult(Mu.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Mu.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Mu.PENDING){if(vw(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Mu.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Mu.RESOLVED&&n[1](this._value),this._state===Mu.REJECTED&&n[2](this._value),n[0]=!0)})}}}function rhe(e){const t=[];function n(){return e===void 0||t.length<e}function i(o){return t.splice(t.indexOf(o),1)[0]}function r(o){if(!n())return $8(new Nl("Not adding Promise because buffer limit was reached."));const s=o();return t.indexOf(s)===-1&&t.push(s),s.then(()=>i(s)).then(null,()=>i(s).then(null,()=>{})),s}function a(o){return new No((s,l)=>{let u=t.length;if(!u)return s(!0);const c=setTimeout(()=>{o&&o>0&&s(!1)},o);t.forEach(d=>{Xp(d).then(()=>{--u||(clearTimeout(c),s(!0))},l)})})}return{$:t,add:r,drain:a}}function Df(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const ahe=["fatal","error","warning","log","info","debug"];function ohe(e){return e==="warn"?"warning":ahe.includes(e)?e:"log"}const dV=1e3;function Q1(){return Date.now()/dV}function she(){const{performance:e}=xn;if(!e||!e.now)return Q1;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/dV}const Am=she(),jo=(()=>{const{performance:e}=xn;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),i=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=r<t,o=e.timing&&e.timing.navigationStart,l=typeof o=="number"?Math.abs(o+n-i):t,u=l<t;return a||u?r<=l?e.timeOrigin:o:i})(),VC="baggage",fV="sentry-",lhe=/^sentry-/,uhe=8192;function che(e){if(!jl(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((i,r)=>{const a=_$(r);for(const o of Object.keys(a))i[o]=a[o];return i},{});else{if(!e)return;t=_$(e)}const n=Object.entries(t).reduce((i,[r,a])=>{if(r.match(lhe)){const o=r.slice(fV.length);i[o]=a}return i},{});if(Object.keys(n).length>0)return n}function hV(e){if(!e)return;const t=Object.entries(e).reduce((n,[i,r])=>(r&&(n[`${fV}${i}`]=r),n),{});return dhe(t)}function _$(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,i])=>(t[n]=i,t),{})}function dhe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,i],r)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(i)}`,o=r===0?a:`${t},${a}`;return o.length>uhe?(Pm&&Xe.warn(`Not adding key: ${n} with val: ${i} to baggage header due to exceeding baggage size limits.`),t):o},"")}const fhe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function hhe(e){if(!e)return;const t=e.match(fhe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function phe(e,t){const n=hhe(e),i=che(t),{traceId:r,parentSpanId:a,parentSampled:o}=n||{};return n?{traceId:r||Hi(),parentSpanId:a||Hi().substring(16),spanId:Hi().substring(16),sampled:o,dsc:i||{}}:{traceId:r||Hi(),spanId:Hi().substring(16)}}function A8(e=Hi(),t=Hi().substring(16),n){let i="";return n!==void 0&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function wd(e,t=[]){return[e,t]}function mhe(e,t){const[n,i]=e;return[n,[...i,t]]}function b$(e,t){const n=e[1];for(const i of n){const r=i[0].type;if(t(i,r))return!0}return!1}function BC(e,t){return(t||new TextEncoder).encode(e)}function vhe(e,t){const[n,i]=e;let r=JSON.stringify(n);function a(o){typeof r=="string"?r=typeof o=="string"?r+o:[BC(r,t),o]:r.push(typeof o=="string"?BC(o,t):o)}for(const o of i){const[s,l]=o;if(a(` ${JSON.stringify(s)} `),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(Ol(l))}a(u)}}return typeof r=="string"?r:ghe(r)}function ghe(e){const t=e.reduce((r,a)=>r+a.length,0),n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}function yhe(e,t){const n=typeof e.data=="string"?BC(e.data,t):e.data;return[Za({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const _he={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function w$(e){return _he[e]}function O8(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function pV(e,t,n,i){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:$m(i)},...r&&{trace:Za({...r})}}}function bhe(e,t,n){const i=[{type:"client_report"},{timestamp:n||Q1(),discarded_events:e}];return wd(t?{dsn:t}:{},[i])}const whe=60*1e3;function She(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?whe:i-t}function Che(e,t){return e[t]||e.all||0}function mV(e,t,n=Date.now()){return Che(e,t)>n}function vV(e,{statusCode:t,headers:n},i=Date.now()){const r={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[l,u,,,c]=s.split(":",5),d=parseInt(l,10),f=(isNaN(d)?60:d)*1e3;if(!u)r.all=i+f;else for(const h of u.split(";"))h==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(r[h]=i+f):r[h]=i+f}else o?r.all=i+She(o,i):t===429&&(r.all=i+60*1e3);return r}function Ehe(e,t){return e??t()}function z3(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yw="production";function D8(){return JF("globalEventProcessors",()=>[])}function xhe(e){D8().push(e)}function rb(e,t,n,i=0){return new No((r,a)=>{const o=e[i];if(t===null||typeof o!="function")r(t);else{const s=o({...t},n);It&&o.id&&s===null&&Xe.log(`Event processor "${o.id}" dropped event`),vw(s)?s.then(l=>rb(e,l,n,i+1).then(r)).then(null,a):rb(e,s,n,i+1).then(r).then(null,a)}})}function gV(e){const t=Am(),n={sid:Hi(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>khe(n)};return e&&Xf(n,e),n}function Xf(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Am(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Hi()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function yV(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Xf(e,n)}function khe(e){return Za({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const The=0,_V=1;function I8(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:r,parent_span_id:a,status:o,tags:s,origin:l}=Gi(e);return Za({data:i,op:r,parent_span_id:a,span_id:t,status:o,tags:s,trace_id:n,origin:l})}function _w(e){const{traceId:t,spanId:n}=e.spanContext(),i=N8(e);return A8(t,n,i)}function bw(e){return typeof e=="number"?S$(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?S$(e.getTime()):Am()}function S$(e){return e>9999999999?e/1e3:e}function Gi(e){return Phe(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Phe(e){return typeof e.getSpanJSON=="function"}function N8(e){const{traceFlags:t}=e.spanContext();return!!(t&_V)}function bV(e,t,n,i,r,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Hi(),timestamp:t.timestamp||Q1()},u=n.integrations||e.integrations.map(v=>v.name);$he(l,e),Dhe(l,u),t.type===void 0&&Ahe(l,e.stackParser);const c=Nhe(i,n.captureContext);n.mechanism&&u1(l,n.mechanism);const d=r&&r.getEventProcessors?r.getEventProcessors():[],f=Whe().getScopeData();if(a){const v=a.getScopeData();T$(f,v)}if(c){const v=c.getScopeData();T$(f,v)}const h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),EV(l,f);const m=[...d,...D8(),...f.eventProcessors];return rb(m,l,n).then(v=>(v&&Ohe(v),typeof o=="number"&&o>0?Ihe(v,o,s):v))}function $he(e,t){const{environment:n,release:i,dist:r,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:yw),e.release===void 0&&i!==void 0&&(e.release=i),e.dist===void 0&&r!==void 0&&(e.dist=r),e.message&&(e.message=_p(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=_p(o.value,a));const s=e.request;s&&s.url&&(s.url=_p(s.url,a))}const C$=new WeakMap;function Ahe(e,t){const n=xn._sentryDebugIds;if(!n)return;let i;const r=C$.get(t);r?i=r:(i=new Map,C$.set(t,i));const a=Object.keys(n).reduce((o,s)=>{let l;const u=i.get(s);u?l=u:(l=t(s),i.set(s,l));for(let c=l.length-1;c>=0;c--){const d=l[c];if(d.filename){o[d.filename]=n[s];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function Ohe(e){const t={};try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(r=>{r.debug_id&&(r.abs_path?t[r.abs_path]=r.debug_id:r.filename&&(t[r.filename]=r.debug_id),delete r.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(i=>{n.push({type:"sourcemap",code_file:i,debug_id:t[i]})})}function Dhe(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ihe(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(r=>({...r,...r.data&&{data:Ol(r.data,t,n)}}))},...e.user&&{user:Ol(e.user,t,n)},...e.contexts&&{contexts:Ol(e.contexts,t,n)},...e.extra&&{extra:Ol(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Ol(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(r=>{const a=Gi(r).data;return a&&(r.data=Ol(a,t,n)),r})),i}function Nhe(e,t){if(!t)return e;const n=e?e.clone():new Xu;return n.update(t),n}function Mhe(e){if(e)return Lhe(e)?{captureContext:e}:Fhe(e)?{captureContext:e}:e}function Lhe(e){return e instanceof Xu||typeof e=="function"}const Rhe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Fhe(e){return Object.keys(e).some(t=>Rhe.includes(t))}function ey(e,t){return Ia().captureException(e,Mhe(t))}function wV(e,t){return Ia().captureEvent(e,t)}function ld(e,t){Ia().addBreadcrumb(e,t)}function Vhe(e,t){Ia().setContext(e,t)}function E$(e){Ia().setUser(e)}function Bhe(...e){const t=Ia();if(e.length===2){const[n,i]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,i(n))):t.withScope(i)}return t.withScope(e[0])}function Wn(){return Ia().getClient()}function vo(){return Ia().getScope()}function x$(e){const t=Wn(),n=Sd(),i=vo(),{release:r,environment:a=yw}=t&&t.getOptions()||{},{userAgent:o}=xn.navigator||{},s=gV({release:r,environment:a,user:i.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&l.status==="ok"&&Xf(l,{status:"exited"}),SV(),n.setSession(s),i.setSession(s),s}function SV(){const e=Sd(),t=vo(),n=t.getSession()||e.getSession();n&&yV(n),CV(),e.setSession(),t.setSession()}function CV(){const e=Sd(),t=vo(),n=Wn(),i=t.getSession()||e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}function k$(e=!1){if(e){SV();return}CV()}function ab(e){return e.transaction}function ww(e,t,n){const i=t.getOptions(),{publicKey:r}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},o=Za({environment:i.environment||yw,release:i.release,user_segment:a,public_key:r,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Jp(e){const t=Wn();if(!t)return{};const n=ww(Gi(e).trace_id||"",t,vo()),i=ab(e);if(!i)return n;const r=i&&i._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:a,source:o}=i.metadata;a!=null&&(n.sample_rate=`${a}`);const s=Gi(i);return o&&o!=="url"&&(n.transaction=s.description),n.sampled=String(N8(i)),t.emit&&t.emit("createDsc",n),n}function EV(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:a}=t;zhe(e,t),i&&Hhe(e,i),qhe(e,n),jhe(e,r),Uhe(e,a)}function T$(e,t){const{extra:n,tags:i,user:r,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:h,span:m}=t;sv(e,"extra",n),sv(e,"tags",i),sv(e,"user",r),sv(e,"contexts",a),sv(e,"sdkProcessingMetadata",s),o&&(e.level=o),h&&(e.transactionName=h),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function sv(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[t][i]=n[i])}}function zhe(e,t){const{extra:n,tags:i,user:r,contexts:a,level:o,transactionName:s}=t,l=Za(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Za(i);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=Za(r);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=Za(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&(e.transaction=s)}function jhe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Uhe(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Hhe(e,t){e.contexts={trace:I8(t),...e.contexts};const n=ab(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Jp(t),...e.sdkProcessingMetadata};const i=Gi(n).description;i&&(e.tags={transaction:i,...e.tags})}}function qhe(e,t){e.fingerprint=e.fingerprint?k8(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Yhe=100;let j3;class Xu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=P$()}static clone(t){return t?t.clone():new Xu}clone(){const t=new Xu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Xf(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof Xu){const i=n.getScopeData();this._tags={...this._tags,...i.tags},this._extra={...this._extra,...i.extra},this._contexts={...this._contexts,...i.contexts},i.user&&Object.keys(i.user).length&&(this._user=i.user),i.level&&(this._level=i.level),i.fingerprint.length&&(this._fingerprint=i.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),i.propagationContext&&(this._propagationContext=i.propagationContext)}else if(Zp(n)){const i=t;this._tags={...this._tags,...i.tags},this._extra={...this._extra,...i.extra},this._contexts={...this._contexts,...i.contexts},i.user&&(this._user=i.user),i.level&&(this._level=i.level),i.fingerprint&&(this._fingerprint=i.fingerprint),i.requestSession&&(this._requestSession=i.requestSession),i.propagationContext&&(this._propagationContext=i.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=P$(),this}addBreadcrumb(t,n){const i=typeof n=="number"?n:Yhe;if(i<=0)return this;const r={timestamp:Q1(),...t},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>i?a.slice(-i):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:i,_tags:r,_extra:a,_user:o,_level:s,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:d,_transactionName:f,_span:h}=this;return{breadcrumbs:t,attachments:n,contexts:i,tags:r,extra:a,user:o,level:s,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:d,transactionName:f,span:h}}applyToEvent(t,n={},i=[]){EV(t,this.getScopeData());const r=[...i,...D8(),...this._eventProcessors];return rb(r,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=n&&n.event_id?n.event_id:Hi();if(!this._client)return Xe.warn("No client configured on scope - will not capture exception!"),i;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:i},this),i}captureMessage(t,n,i){const r=i&&i.event_id?i.event_id:Hi();if(!this._client)return Xe.warn("No client configured on scope - will not capture message!"),r;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...i,event_id:r},this),r}captureEvent(t,n){const i=n&&n.event_id?n.event_id:Hi();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(Xe.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Whe(){return j3||(j3=new Xu),j3}function P$(){return{traceId:Hi(),spanId:Hi().substring(16)}}const c1="7.116.0",xV=parseFloat(c1),Ghe=100;class kV{constructor(t,n,i,r=xV){this._version=r;let a;n?a=n:(a=new Xu,a.setClient(t));let o;i?o=i:(o=new Xu,o.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let i;try{i=t(n)}catch(r){throw this.popScope(),r}return vw(i)?i.then(r=>(this.popScope(),r),r=>{throw this.popScope(),r}):(this.popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Hi(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...n,event_id:i}),i}captureMessage(t,n,i){const r=this._lastEventId=i&&i.event_id?i.event_id:Hi(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...i,event_id:r}),r}captureEvent(t,n){const i=n&&n.event_id?n.event_id:Hi();return t.type||(this._lastEventId=i),this.getScope().captureEvent(t,{...n,event_id:i}),i}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:i,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=Ghe}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const l={timestamp:Q1(),...t},u=a?Zl(()=>a(l,n)):l;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,n),i.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:i}=this.getStackTop();i&&t(n)}run(t){const n=$$(this);try{t(this)}finally{$$(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return It&&Xe.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const i=this._callExtensionMethod("startTransaction",t,n);return It&&!i&&(this.getClient()?Xe.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):Xe.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),i}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,i=n.getSession();i&&yV(i),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:i}=this.getStackTop(),{release:r,environment:a=yw}=i&&i.getOptions()||{},{userAgent:o}=xn.navigator||{},s=gV({release:r,environment:a,user:n.getUser(),...o&&{userAgent:o},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&Xf(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),i=t.getSession();i&&n&&n.captureSession&&n.captureSession(i)}_callExtensionMethod(t,...n){const r=ty().__SENTRY__;if(r&&r.extensions&&typeof r.extensions[t]=="function")return r.extensions[t].apply(this,n);It&&Xe.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ty(){return xn.__SENTRY__=xn.__SENTRY__||{extensions:{},hub:void 0},xn}function $$(e){const t=ty(),n=zC(t);return TV(t,e),n}function Ia(){const e=ty();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Khe(e)}function Sd(){return Ia().getIsolationScope()}function Khe(e=ty()){return(!Zhe(e)||zC(e).isOlderThan(xV))&&TV(e,new kV),zC(e)}function Zhe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function zC(e){return JF("hub",()=>new kV,e)}function TV(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function mh(e){return(e||Ia()).getScope().getTransaction()}let A$=!1;function Xhe(){A$||(A$=!0,lV(jC),uV(jC))}function jC(){const e=mh();if(e){const t="internal_error";It&&Xe.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}jC.tag="sentry_tracingErrorCallback";var O$;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const i="unauthenticated";e.Unauthenticated=i;const r="permission_denied";e.PermissionDenied=r;const a="not_found";e.NotFound=a;const o="resource_exhausted";e.ResourceExhausted=o;const s="invalid_argument";e.InvalidArgument=s;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const h="already_exists";e.AlreadyExists=h;const m="failed_precondition";e.FailedPrecondition=m;const g="aborted";e.Aborted=g;const v="out_of_range";e.OutOfRange=v;const y="data_loss";e.DataLoss=y})(O$||(O$={}));function Jhe(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function M8(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Jhe(t);n!=="unknown_error"&&e.setStatus(n)}function vh(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Wn(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function ob(e){if(!vh())return;const t=epe(e),n=Ia(),i=e.scope?e.scope.getSpan():d1();if(e.onlyIfParent&&!i)return;const o=(e.scope||vo()).clone();return Qhe(n,{parentSpan:i,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function d1(){return vo().getSpan()}function Qhe(e,{parentSpan:t,spanContext:n,forceTransaction:i,scope:r}){if(!vh())return;const a=Sd();let o;if(t&&!i)o=t.startChild(n);else if(t){const s=Jp(t),{traceId:l,spanId:u}=t.spanContext(),c=N8(t);o=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:c,...n,metadata:{dynamicSamplingContext:s,...n.metadata}})}else{const{traceId:s,dsc:l,parentSpanId:u,sampled:c}={...a.getPropagationContext(),...r.getPropagationContext()};o=e.startTransaction({traceId:s,parentSpanId:u,parentSampled:c,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return r.setSpan(o),tpe(o,r,a),o}function epe(e){if(e.startTime){const t={...e};return t.startTimestamp=bw(e.startTime),delete t.startTime,t}return e}const PV="_sentryScope",$V="_sentryIsolationScope";function tpe(e,t,n){e&&(Zf(e,$V,n),Zf(e,PV,t))}function npe(e){return{scope:e[PV],isolationScope:e[$V]}}const ps="sentry.source",ap="sentry.sample_rate",r0="sentry.op",Yc="sentry.origin",ipe="profile_id";class AV{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Sw{constructor(t={}){this._traceId=t.traceId||Hi(),this._spanId=t.spanId||Hi().substring(16),this._startTime=t.startTimestamp||Am(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Yc]:t.origin||"manual",[r0]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[r0]}set op(t){this.setAttribute(r0,t)}get origin(){return this._attributes[Yc]}set origin(t){this.setAttribute(Yc,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:i}=this;return{spanId:t,traceId:n,traceFlags:i?_V:The}}startChild(t){const n=new Sw({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const i=ab(this);if(n.transaction=i,It&&i){const r=t&&t.op||"< unknown op >",a=Gi(n).description||"< unknown name >",o=i.spanContext().spanId,s=`[Tracing] Starting '${r}' span on transaction '${a}' (${o}).`;Xe.log(s),this._logMessage=s}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return M8(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=ab(this);if(It&&n&&n.spanContext().spanId!==this._spanId){const i=this._logMessage;i&&Xe.log(i.replace("Starting","Finishing"))}this._endTime=bw(t)}toTraceparent(){return _w(this)}toContext(){return Za({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return I8(this)}getSpanJSON(){return Za({data:this._getData(),description:this._name,op:this._attributes[r0],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Yc],_metrics_summary:void 0,profile_id:this._attributes[ipe],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,i=Object.keys(t).length>0,r=Object.keys(n).length>0;if(!(!i&&!r))return i&&r?{...t,...n}:i?t:n}}class OV extends Sw{constructor(t,n){super(t),this._contexts={},this._hub=n||Ia(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const i=this._metadata.dynamicSamplingContext;i&&(this._frozenDynamicSamplingContext={...i})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ps]&&{source:this._attributes[ps]},...this._attributes[ap]&&{sampleRate:this._attributes[ap]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(ps,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new AV(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,i=""){this._measurements[t]={value:n,unit:i}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=bw(t),i=this._finishTransaction(n);if(i)return this._hub.captureEvent(i)}toContext(){const t=super.toContext();return Za({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Jp(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(It&&Xe.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){It&&Xe.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const i=this.spanRecorder?this.spanRecorder.spans.filter(c=>c!==this&&Gi(c).timestamp):[];if(this._trimEnd&&i.length>0){const c=i.map(d=>Gi(d).timestamp).filter(Boolean);this._endTime=c.reduce((d,f)=>d>f?d:f)}const{scope:r,isolationScope:a}=npe(this),{metadata:o}=this,{source:s}=o,l={contexts:{...this._contexts,trace:I8(this)},spans:i,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:a,...Za({dynamicSamplingContext:Jp(this)})},_metrics_summary:void 0,...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(It&&Xe.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),It&&Xe.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const r_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},rpe="finishReason",Rh=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class ape extends AV{constructor(t,n,i,r){super(r),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=i}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...i)=>(this._popActivity(t.spanContext().spanId),n.apply(t,i)),Gi(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class ope extends OV{constructor(t,n,i=r_.idleTimeout,r=r_.finalTimeout,a=r_.heartbeatInterval,o=!1,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=i,this._finalTimeout=r,this._heartbeatInterval=a,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Rh[4],this._autoFinishAllowed=!s,o&&(It&&Xe.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Rh[3],this.end())},this._finalTimeout)}end(t){const n=bw(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(rpe,this._finishReason),this.spanRecorder){It&&Xe.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const i of this._beforeFinishCallbacks)i(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(i=>{if(i.spanContext().spanId===this.spanContext().spanId)return!0;Gi(i).timestamp||(i.setStatus("cancelled"),i.end(n),It&&Xe.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(i,void 0,2)));const{start_timestamp:r,timestamp:a}=Gi(i),o=r&&r<n,s=(this._finalTimeout+this._idleTimeout)/1e3,l=a&&r&&a-r<s;if(It){const u=JSON.stringify(i,void 0,2);o?l||Xe.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):Xe.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return o&&l}),It&&Xe.log("[Tracing] flushing IdleTransaction")}else It&&Xe.log("[Tracing] No active IdleTransaction");if(this._onScope){const i=this._idleHub.getScope();i.getTransaction()===this&&i.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=r=>{this._finished||this._pushActivity(r)},i=r=>{this._finished||this._popActivity(r)};this.spanRecorder=new ape(n,i,this.spanContext().spanId,t),It&&Xe.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Rh[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(It&&Xe.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Rh[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),It&&Xe.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,It&&Xe.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(It&&Xe.log(`[Tracing] popActivity ${t}`),delete this.activities[t],It&&Xe.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Am();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Rh[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(It&&Xe.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Rh[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){It&&Xe.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function DV(e,t,n){if(!vh(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(ap,Number(e.sampled)),e;let i;return typeof t.tracesSampler=="function"?(i=t.tracesSampler(n),e.setAttribute(ap,Number(i))):n.parentSampled!==void 0?i=n.parentSampled:typeof t.tracesSampleRate<"u"?(i=t.tracesSampleRate,e.setAttribute(ap,Number(i))):(i=1,e.setAttribute(ap,i)),IV(i)?i?(e.sampled=Math.random()<i,e.sampled?(It&&Xe.log(`[Tracing] starting ${e.op} transaction - ${Gi(e).description}`),e):(It&&Xe.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(It&&Xe.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(It&&Xe.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function IV(e){return ZF(e)||!(typeof e=="number"||typeof e=="boolean")?(It&&Xe.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(It&&Xe.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function spe(){const t=this.getScope().getSpan();return t?{"sentry-trace":_w(t)}:{}}function lpe(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},r=i.instrumenter||"sentry",a=e.instrumenter||"sentry";r!==a&&(It&&Xe.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${r}\` instrumenter. The transaction will not be sampled. Please use the ${r} instrumentation to start transactions.`),e.sampled=!1);let o=new OV(e,this);return o=DV(o,i,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function NV(e,t,n,i,r,a,o,s=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new ope(t,e,n,i,o,r,s);return c=DV(c,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function upe(){const e=ty();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=lpe),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=spe),Xhe())}function cpe(e,t,n){const i=mh();i&&i.setMeasurement(e,t,n)}function dpe(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function fpe(e,t,n,i){const r=O8(n),a={sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:$m(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return wd(a,[o])}function hpe(e,t,n,i){const r=O8(n),a=e.type&&e.type!=="replay_event"?e.type:"event";dpe(e,n&&n.sdk);const o=pV(e,r,i,t);return delete e.sdkProcessingMetadata,wd(o,[[{type:a},e]])}const ppe="7";function mpe(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function vpe(e){return`${mpe(e)}${e.projectId}/envelope/`}function gpe(e,t){return Tfe({sentry_key:e.publicKey,sentry_version:ppe,...t&&{sentry_client:`${t.name}/${t.version}`}})}function ype(e,t={}){const n=typeof t=="string"?t:t.tunnel,i=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${vpe(e)}?${gpe(e,i)}`}const D$=[];function _pe(e){const t={};return e.forEach(n=>{const{name:i}=n,r=t[i];r&&!r.isDefaultInstance&&n.isDefaultInstance||(t[i]=n)}),Object.keys(t).map(n=>t[n])}function bpe(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let i;Array.isArray(n)?i=[...t,...n]:typeof n=="function"?i=k8(n(t)):i=t;const r=_pe(i),a=Spe(r,o=>o.name==="Debug");if(a!==-1){const[o]=r.splice(a,1);r.push(o)}return r}function wpe(e,t){const n={};return t.forEach(i=>{i&&MV(e,i,n)}),n}function I$(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function MV(e,t,n){if(n[t.name]){It&&Xe.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,D$.indexOf(t.name)===-1&&(t.setupOnce(xhe,Ia),D$.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(r,a)=>i(r,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const i=t.processEvent.bind(t),r=Object.assign((a,o)=>i(a,o,e),{id:t.name});e.addEventProcessor(r)}It&&Xe.log(`Integration installed: ${t.name}`)}function Spe(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function hc(e,t){return Object.assign(function(...i){return t(...i)},{id:e})}function Cpe(e){let t="";for(const n of e){const i=Object.entries(n.tags),r=i.length>0?`|#${i.map(([a,o])=>`${a}:${o}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp} `}return t}function Epe(e,t,n,i){const r={sent_at:new Date().toISOString()};n&&n.sdk&&(r.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(r.dsn=$m(t));const a=xpe(e);return wd(r,[a])}function xpe(e){const t=Cpe(e);return[{type:"statsd",length:t.length},t]}const N$="Not capturing exception because it's already been captured.";class kpe{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=kfe(t.dsn):It&&Xe.warn("No DSN provided, client will not send events."),this._dsn){const n=ype(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,i){if(p$(t)){It&&Xe.log(N$);return}let r=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,i)).then(a=>{r=a})),r}captureMessage(t,n,i,r){let a=i&&i.event_id;const o=S8(t)?t:String(t),s=C8(t)?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(s.then(l=>this._captureEvent(l,i,r)).then(l=>{a=l})),a}captureEvent(t,n,i){if(n&&n.originalException&&p$(n.originalException)){It&&Xe.log(N$);return}let r=n&&n.event_id;const o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,o||i).then(s=>{r=s})),r}captureSession(t){typeof t.release!="string"?It&&Xe.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Xf(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(i=>n.flush(t).then(r=>i&&r))):Xp(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return It&&Xe.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];MV(this,t,this._integrations),n||I$(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=hpe(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])i=mhe(i,yhe(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(i);r&&r.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=fpe(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,i){if(this._options.sendClientReports){const r=`${t}:${n}`;It&&Xe.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}captureAggregateMetrics(t){It&&Xe.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Epe(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(i=>i(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=wpe(this,t),I$(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let i=!1,r=!1;const a=n.exception&&n.exception.values;if(a){r=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){i=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&i)&&(Xf(t,{...i&&{status:"crashed"},errors:t.errors||Number(r||i)}),this.captureSession(t))}_isClientDoneProcessing(t){return new No(n=>{let i=0;const r=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(i+=r,t&&i>=t&&(clearInterval(a),n(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i,r=Sd()){const a=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),bV(a,t,n,i,this,r).then(s=>{if(s===null)return s;const l={...r.getPropagationContext(),...i?i.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:c,spanId:d,parentSpanId:f,dsc:h}=l;s.contexts={trace:{trace_id:c,span_id:d,parent_span_id:f},...s.contexts};const m=h||ww(c,this,i);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},i){return this._processEvent(t,n,i).then(r=>r.event_id,r=>{if(It){const a=r;a.logLevel==="log"?Xe.log(a.message):Xe.warn(a)}})}_processEvent(t,n,i){const r=this.getOptions(),{sampleRate:a}=r,o=RV(t),s=LV(t),l=t.type||"error",u=`before send for type \`${l}\``;if(s&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),$8(new Nl(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,i,f).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",c,t),new Nl("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const g=Ppe(r,h,n);return Tpe(g,u)}).then(h=>{if(h===null)throw this.recordDroppedEvent("before_send",c,t),new Nl(`${u} returned \`null\`, will not send event.`,"log");const m=i&&i.getSession();!o&&m&&this._updateSessionFromEvent(m,h);const g=h.transaction_info;if(o&&g&&h.transaction!==t.transaction){const v="custom";h.transaction_info={...g,source:v}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Nl?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Nl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{It&&Xe.error("Error while sending event:",n)});It&&Xe.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[i,r]=n.split(":");return{reason:i,category:r,quantity:t[n]}})}}function Tpe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(vw(e))return e.then(i=>{if(!Zp(i)&&i!==null)throw new Nl(n);return i},i=>{throw new Nl(`${t} rejected with ${i}`)});if(!Zp(e)&&e!==null)throw new Nl(n);return e}function Ppe(e,t,n){const{beforeSend:i,beforeSendTransaction:r}=e;return LV(t)&&i?i(t,n):RV(t)&&r?r(t,n):t}function LV(e){return e.type===void 0}function RV(e){return e.type==="transaction"}function $pe(e){const t=Wn();!t||!t.addEventProcessor||t.addEventProcessor(e)}function Ape(e,t){t.debug===!0&&(It?Xe.enable():Zl(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),vo().update(t.initialScope);const i=new e(t);Ope(i),Dpe(i)}function Ope(e){const n=Ia().getStackTop();n.client=e,n.scope.setClient(e)}function Dpe(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const Ipe=30;function FV(e,t,n=rhe(e.bufferSize||Ipe)){let i={};const r=o=>n.drain(o);function a(o){const s=[];if(b$(o,(d,f)=>{const h=w$(f);if(mV(i,h)){const m=M$(d,f);e.recordDroppedEvent("ratelimit_backoff",h,m)}else s.push(d)}),s.length===0)return Xp();const l=wd(o[0],s),u=d=>{b$(l,(f,h)=>{const m=M$(f,h);e.recordDroppedEvent(d,w$(h),m)})},c=()=>t({body:vhe(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&It&&Xe.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),i=vV(i,d),d),d=>{throw u("network_error"),d});return n.add(c).then(d=>d,d=>{if(d instanceof Nl)return It&&Xe.error("Skipped sending event because buffer is full."),u("queue_overflow"),Xp();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:r}}function M$(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Npe(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=$m(t));const i=e.map(Mpe);return wd(n,i)}function Mpe(e){return[{type:"span"},e]}function Lpe(e,t){const n=t&&Vpe(t)?t.getClient():t,i=n&&n.getDsn(),r=n&&n.getOptions().tunnel;return Fpe(e,i)||Rpe(e,r)}function Rpe(e,t){return t?L$(e)===L$(t):!1}function Fpe(e,t){return t?e.includes(t.host):!1}function L$(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Vpe(e){return e.getClient!==void 0}function Bpe(e,t,n=[t],i="npm"){const r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${i}:@sentry/${a}`,version:c1})),version:c1}),e._metadata=r}const zpe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],jpe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],VV="InboundFilters",Upe=(e={})=>({name:VV,setupOnce(){},processEvent(t,n,i){const r=i.getOptions(),a=Hpe(e,r);return qpe(t,a)?null:t}}),BV=Upe;hc(VV,BV);function Hpe(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:zpe],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:jpe],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function qpe(e,t){return t.ignoreInternal&&Xpe(e)?(It&&Xe.warn(`Event dropped due to being internal Sentry Error. Event: ${jc(e)}`),!0):Ype(e,t.ignoreErrors)?(It&&Xe.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${jc(e)}`),!0):Wpe(e,t.ignoreTransactions)?(It&&Xe.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${jc(e)}`),!0):Gpe(e,t.denyUrls)?(It&&Xe.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${jc(e)}. Url: ${sb(e)}`),!0):Kpe(e,t.allowUrls)?!1:(It&&Xe.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${jc(e)}. Url: ${sb(e)}`),!0)}function Ype(e,t){return e.type||!t||!t.length?!1:Zpe(e).some(n=>Tm(n,t))}function Wpe(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Tm(n,t):!1}function Gpe(e,t){if(!t||!t.length)return!1;const n=sb(e);return n?Tm(n,t):!1}function Kpe(e,t){if(!t||!t.length)return!0;const n=sb(e);return n?Tm(n,t):!0}function Zpe(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),It&&t.length===0&&Xe.error(`Could not extract message for event ${jc(e)}`),t}function Xpe(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Jpe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function sb(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Jpe(t):null}catch{return It&&Xe.error(`Cannot extract url for event ${jc(e)}`),null}}let R$;const zV="FunctionToString",F$=new WeakMap,Qpe=()=>({name:zV,setupOnce(){R$=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=x8(this),n=F$.has(Wn())&&t!==void 0?t:this;return R$.apply(n,e)}}catch{}},setup(e){F$.set(e,!0)}}),jV=Qpe;hc(zV,jV);const wi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wt=xn;function eme(){Wt.document?Wt.document.addEventListener("visibilitychange",()=>{const e=mh();if(Wt.document.hidden&&e){const t="cancelled",{op:n,status:i}=Gi(e);wi&&Xe.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),i||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):wi&&Xe.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ny=(e,t,n)=>{let i,r;return a=>{t.value>=0&&(a||n)&&(r=t.value-(i||0),(r||i===void 0)&&(i=t.value,t.delta=r,e(t)))}},tme=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nme=()=>{const e=Wt.performance.timing,t=Wt.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const i in e)i!=="navigationStart"&&i!=="toJSON"&&(n[i]=Math.max(e[i]-e.navigationStart,0));return n},Cw=()=>Wt.__WEB_VITALS_POLYFILL__?Wt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nme()):Wt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],L8=()=>{const e=Cw();return e&&e.activationStart||0},iy=(e,t)=>{const n=Cw();let i="navigate";return n&&(Wt.document&&Wt.document.prerendering||L8()>0?i="prerender":i=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:tme(),navigationType:i}},Om=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver(r=>{t(r.getEntries())});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch{}},ry=(e,t)=>{const n=i=>{(i.type==="pagehide"||Wt.document.visibilityState==="hidden")&&(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Wt.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},ime=(e,t={})=>{const n=iy("CLS",0);let i,r=0,a=[];const o=l=>{l.forEach(u=>{if(!u.hadRecentInput){const c=a[0],d=a[a.length-1];r&&a.length!==0&&u.startTime-d.startTime<1e3&&u.startTime-c.startTime<5e3?(r+=u.value,a.push(u)):(r=u.value,a=[u]),r>n.value&&(n.value=r,n.entries=a,i&&i())}})},s=Om("layout-shift",o);if(s){i=ny(e,n,t.reportAllChanges);const l=()=>{o(s.takeRecords()),i(!0)};return ry(l),l}};let lb=-1;const rme=()=>{Wt.document&&Wt.document.visibilityState&&(lb=Wt.document.visibilityState==="hidden"&&!Wt.document.prerendering?0:1/0)},ame=()=>{ry(({timeStamp:e})=>{lb=e},!0)},R8=()=>(lb<0&&(rme(),ame()),{get firstHiddenTime(){return lb}}),ome=e=>{const t=R8(),n=iy("FID");let i;const r=s=>{s.startTime<t.firstHiddenTime&&(n.value=s.processingStart-s.startTime,n.entries.push(s),i(!0))},a=s=>{s.forEach(r)},o=Om("first-input",a);i=ny(e,n),o&&ry(()=>{a(o.takeRecords()),o.disconnect()},!0)};let UV=0,U3=1/0,a0=0;const sme=e=>{e.forEach(t=>{t.interactionId&&(U3=Math.min(U3,t.interactionId),a0=Math.max(a0,t.interactionId),UV=a0?(a0-U3)/7+1:0)})};let UC;const lme=()=>UC?UV:performance.interactionCount||0,ume=()=>{"interactionCount"in performance||UC||(UC=Om("event",sme,{type:"event",buffered:!0,durationThreshold:0}))},HV=()=>lme(),V$=10,Lu=[],H3={},B$=e=>{const t=Lu[Lu.length-1],n=H3[e.interactionId];if(n||Lu.length<V$||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const i={id:e.interactionId,latency:e.duration,entries:[e]};H3[i.id]=i,Lu.push(i)}Lu.sort((i,r)=>r.latency-i.latency),Lu.splice(V$).forEach(i=>{delete H3[i.id]})}},cme=()=>{const e=Math.min(Lu.length-1,Math.floor(HV()/50));return Lu[e]},dme=(e,t)=>{t=t||{},ume();const n=iy("INP");let i;const r=o=>{o.forEach(l=>{l.interactionId&&B$(l),l.entryType==="first-input"&&!Lu.some(c=>c.entries.some(d=>l.duration===d.duration&&l.startTime===d.startTime))&&B$(l)});const s=cme();s&&s.latency!==n.value&&(n.value=s.latency,n.entries=s.entries,i())},a=Om("event",r,{durationThreshold:t.durationThreshold||40});i=ny(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),ry(()=>{r(a.takeRecords()),n.value<0&&HV()>0&&(n.value=0,n.entries=[]),i(!0)}))},z$={},fme=e=>{const t=R8(),n=iy("LCP");let i;const r=o=>{const s=o[o.length-1];if(s){const l=Math.max(s.startTime-L8(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[s],i())}},a=Om("largest-contentful-paint",r);if(a){i=ny(e,n);const o=()=>{z$[n.id]||(r(a.takeRecords()),a.disconnect(),z$[n.id]=!0,i(!0))};return["keydown","click"].forEach(s=>{Wt.document&&addEventListener(s,o,{once:!0,capture:!0})}),ry(o,!0),o}},HC=e=>{Wt.document&&(Wt.document.prerendering?addEventListener("prerenderingchange",()=>HC(e),!0):Wt.document.readyState!=="complete"?addEventListener("load",()=>HC(e),!0):setTimeout(e,0))},hme=(e,t)=>{t=t||{};const n=iy("TTFB"),i=ny(e,n,t.reportAllChanges);HC(()=>{const r=Cw();if(r){if(n.value=Math.max(r.responseStart-L8(),0),n.value<0||n.value>performance.now())return;n.entries=[r],i(!0)}})},vg={},ub={};let qV,YV,WV,GV,KV;function pme(e,t=!1){return ay("cls",e,yme,qV,t)}function ZV(e,t=!1){return ay("lcp",e,bme,WV,t)}function mme(e){return ay("ttfb",e,wme,GV)}function vme(e){return ay("fid",e,_me,YV)}function gme(e){return ay("inp",e,Sme,KV)}function Qp(e,t){return XV(e,t),ub[e]||(Cme(e),ub[e]=!0),JV(e,t)}function Dm(e,t){const n=vg[e];if(!(!n||!n.length))for(const i of n)try{i(t)}catch(r){wi&&Xe.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${oc(i)} Error:`,r)}}function yme(){return ime(e=>{Dm("cls",{metric:e}),qV=e},{reportAllChanges:!0})}function _me(){return ome(e=>{Dm("fid",{metric:e}),YV=e})}function bme(){return fme(e=>{Dm("lcp",{metric:e}),WV=e})}function wme(){return hme(e=>{Dm("ttfb",{metric:e}),GV=e})}function Sme(){return dme(e=>{Dm("inp",{metric:e}),KV=e})}function ay(e,t,n,i,r=!1){XV(e,t);let a;return ub[e]||(a=n(),ub[e]=!0),i&&t({metric:i}),JV(e,t,r?a:void 0)}function Cme(e){const t={};e==="event"&&(t.durationThreshold=0),Om(e,n=>{Dm(e,{entries:n})},t)}function XV(e,t){vg[e]=vg[e]||[],vg[e].push(t)}function JV(e,t,n){return()=>{n&&n();const i=vg[e];if(!i)return;const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}function q3(e){return typeof e=="number"&&isFinite(e)}function em(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Eme=2147483647;function Ir(e){return e/1e3}function F8(){return Wt&&Wt.addEventListener&&Wt.performance}let j$=0,ji={},Pl,gg;function xme(){const e=F8();if(e&&jo){e.mark&&Wt.performance.mark("sentry-tracing-init");const t=Ome(),n=$me(),i=Ame(),r=Dme();return()=>{t(),n(),i(),r()}}return()=>{}}function kme(){Qp("longtask",({entries:e})=>{for(const t of e){const n=mh();if(!n)return;const i=Ir(jo+t.startTime),r=Ir(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+r})}})}function Tme(){Qp("event",({entries:e})=>{for(const t of e){const n=mh();if(!n)return;if(t.name==="click"){const i=Ir(jo+t.startTime),r=Ir(t.duration),a={description:sd(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+r},o=QF(t.target);o&&(a.attributes={"ui.component_name":o}),n.startChild(a)}}})}function Pme(e,t){if(F8()&&jo){const i=Ime(e,t);return()=>{i()}}return()=>{}}function $me(){return pme(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wi&&Xe.log("[Measurements] Adding CLS"),ji.cls={value:e.value,unit:""},gg=t)},!0)}function Ame(){return ZV(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wi&&Xe.log("[Measurements] Adding LCP"),ji.lcp={value:e.value,unit:"millisecond"},Pl=t)},!0)}function Ome(){return vme(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ir(jo),i=Ir(t.startTime);wi&&Xe.log("[Measurements] Adding FID"),ji.fid={value:e.value,unit:"millisecond"},ji["mark.fid"]={value:n+i,unit:"second"}})}function Dme(){return mme(({metric:e})=>{e.entries[e.entries.length-1]&&(wi&&Xe.log("[Measurements] Adding TTFB"),ji.ttfb={value:e.value,unit:"millisecond"})})}const U$={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Ime(e,t){return gme(({metric:n})=>{if(n.value===void 0)return;const i=n.entries.find(S=>S.duration===n.value&&U$[S.name]!==void 0),r=Wn();if(!i||!r)return;const a=U$[i.name],o=r.getOptions(),s=Ir(jo+i.startTime),l=Ir(n.value),u=i.interactionId!==void 0?e[i.interactionId]:void 0;if(u===void 0)return;const{routeName:c,parentContext:d,activeTransaction:f,user:h,replayId:m}=u,g=h!==void 0?h.email||h.id||h.ip_address:void 0,v=f!==void 0?f.getProfileId():void 0,y=new Sw({startTimestamp:s,endTimestamp:s+l,op:`ui.interaction.${a}`,name:sd(i.target),attributes:{release:o.release,environment:o.environment,transaction:c,...g!==void 0&&g!==""?{user:g}:{},...v!==void 0?{profile_id:v}:{},...m!==void 0?{replay_id:m}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),_=jme(d,o,t);if(_&&Math.random()<_){const S=y?Npe([y],r.getDsn()):void 0,w=r&&r.getTransport();w&&S&&w.send(S).then(null,x=>{wi&&Xe.error("Error while sending interaction:",x)});return}})}function Nme(e){const t=F8();if(!t||!Wt.performance.getEntries||!jo)return;wi&&Xe.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ir(jo),i=t.getEntries(),{op:r,start_timestamp:a}=Gi(e);if(i.slice(j$).forEach(o=>{const s=Ir(o.startTime),l=Ir(o.duration);if(!(e.op==="navigation"&&a&&n+s<a))switch(o.entryType){case"navigation":{Lme(e,o,n);break}case"mark":case"paint":case"measure":{Mme(e,o,s,l,n);const u=R8(),c=o.startTime<u.firstHiddenTime;o.name==="first-paint"&&c&&(wi&&Xe.log("[Measurements] Adding FP"),ji.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&c&&(wi&&Xe.log("[Measurements] Adding FCP"),ji.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{Fme(e,o,o.name,s,l,n);break}}}),j$=Math.max(i.length-1,0),Vme(e),r==="pageload"){zme(ji),["fcp","fp","lcp"].forEach(s=>{if(!ji[s]||!a||n>=a)return;const l=ji[s].value,u=n+Ir(l),c=Math.abs((u-a)*1e3),d=c-l;wi&&Xe.log(`[Measurements] Normalized ${s} from ${l} to ${c} (${d})`),ji[s].value=c});const o=ji["mark.fid"];o&&ji.fid&&(em(e,{description:"first input delay",endTimestamp:o.value+Ir(ji.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete ji["mark.fid"]),"fcp"in ji||delete ji.cls,Object.keys(ji).forEach(s=>{cpe(s,ji[s].value,ji[s].unit)}),Bme(e)}Pl=void 0,gg=void 0,ji={}}function Mme(e,t,n,i,r){const a=r+n,o=a+i;return em(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function Lme(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(i=>{o0(e,t,i,n)}),o0(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),o0(e,t,"fetch",n,"cache","domainLookupStart"),o0(e,t,"domainLookup",n,"DNS"),Rme(e,t,n)}function o0(e,t,n,i,r,a){const o=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!o||em(e,{op:"browser",origin:"auto.browser.browser.metrics",description:r||n,startTimestamp:i+Ir(s),endTimestamp:i+Ir(o)})}function Rme(e,t,n){t.responseEnd&&(em(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Ir(t.requestStart),endTimestamp:n+Ir(t.responseEnd)}),em(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Ir(t.responseStart),endTimestamp:n+Ir(t.responseEnd)}))}function Fme(e,t,n,i,r,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=Df(n),s={};Y3(s,t,"transferSize","http.response_transfer_size"),Y3(s,t,"encodedBodySize","http.response_content_length"),Y3(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(s["url.scheme"]=o.protocol.split(":").pop()),o.host&&(s["server.address"]=o.host),s["url.same_origin"]=n.includes(Wt.location.origin);const l=a+i,u=l+r;em(e,{description:n.replace(Wt.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function Vme(e){const t=Wt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),q3(n.rtt)&&(ji["connection.rtt"]={value:n.rtt,unit:"millisecond"})),q3(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),q3(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function Bme(e){Pl&&(wi&&Xe.log("[Measurements] Adding LCP Data"),Pl.element&&e.setTag("lcp.element",sd(Pl.element)),Pl.id&&e.setTag("lcp.id",Pl.id),Pl.url&&e.setTag("lcp.url",Pl.url.trim().slice(0,200)),e.setTag("lcp.size",Pl.size)),gg&&gg.sources&&(wi&&Xe.log("[Measurements] Adding CLS Data"),gg.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,sd(t.node))))}function Y3(e,t,n,i){const r=t[n];r!=null&&r<Eme&&(e[i]=r)}function zme(e){const t=Cw();if(!t)return;const{responseStart:n,requestStart:i}=t;i<=n&&(wi&&Xe.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-i,unit:"millisecond"})}function jme(e,t,n){if(!vh(t))return!1;let i;return e!==void 0&&typeof t.tracesSampler=="function"?i=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Wt.location}):e!==void 0&&e.sampled!==void 0?i=e.sampled:typeof t.tracesSampleRate<"u"?i=t.tracesSampleRate:i=1,IV(i)?i===!0?n:i===!1?0:i*n:(wi&&Xe.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function Ume(e,t,n,i,r="auto.http.browser"){if(!vh()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const h=e.fetchData.__span;if(!h)return;const m=i[h];m&&(Yme(m,e),delete i[h]);return}const o=vo(),s=Wn(),{method:l,url:u}=e.fetchData,c=qme(u),d=c?Df(c).host:void 0,f=a?ob({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,"http.url":c,"server.address":d,[Yc]:r},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,i[f.spanContext().spanId]=f),n(e.fetchData.url)&&s){const h=e.args[0];e.args[1]=e.args[1]||{};const m=e.args[1];m.headers=Hme(h,s,o,m,f)}return f}function Hme(e,t,n,i,r){const a=r||n.getSpan(),o=Sd(),{traceId:s,spanId:l,sampled:u,dsc:c}={...o.getPropagationContext(),...n.getPropagationContext()},d=a?_w(a):A8(s,l,u),f=hV(c||(a?Jp(a):ww(s,t,n))),h=i.headers||(typeof Request<"u"&&ac(e,Request)?e.headers:void 0);if(h)if(typeof Headers<"u"&&ac(h,Headers)){const m=new Headers(h);return m.append("sentry-trace",d),f&&m.append(VC,f),m}else if(Array.isArray(h)){const m=[...h,["sentry-trace",d]];return f&&m.push([VC,f]),m}else{const m="baggage"in h?h.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),f&&g.push(f),{...h,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function qme(e){try{return new URL(e).href}catch{return}}function Yme(e,t){if(t.response){M8(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const i=parseInt(n);i>0&&e.setAttribute("http.response_content_length",i)}}else t.error&&e.setStatus("internal_error");e.end()}const qC=["localhost",/^\/(?!\/)/],YC={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:qC,tracePropagationTargets:qC};function Wme(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:r,shouldCreateSpanForRequest:a,enableHTTPTimings:o}={traceFetch:YC.traceFetch,traceXHR:YC.traceXHR,...e},s=typeof a=="function"?a:c=>!0,l=c=>Xme(c,i||r),u={};t&&T8(c=>{const d=Ume(c,s,l,u);if(d){const f=QV(c.fetchData.url),h=f?Df(f).host:void 0;d.setAttributes({"http.url":f,"server.address":h})}o&&d&&H$(d)}),n&&P8(c=>{const d=Jme(c,s,l,u);o&&d&&H$(d)})}function Gme(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function H$(e){const{url:t}=Gi(e).data||{};if(!t||typeof t!="string")return;const n=Qp("resource",({entries:i})=>{i.forEach(r=>{Gme(r)&&r.name.endsWith(t)&&(Zme(r).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function Kme(e){let t="unknown",n="unknown",i="";for(const r of e){if(r==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(r))){t=i==="h"?"http":i,n=e.split(i)[1];break}i+=r}return i===e&&(t=i),{name:t,version:n}}function xl(e=0){return((jo||performance.timeOrigin)+e)/1e3}function Zme(e){const{name:t,version:n}=Kme(e.nextHopProtocol),i=[];return i.push(["network.protocol.version",n],["network.protocol.name",t]),jo?[...i,["http.request.redirect_start",xl(e.redirectStart)],["http.request.fetch_start",xl(e.fetchStart)],["http.request.domain_lookup_start",xl(e.domainLookupStart)],["http.request.domain_lookup_end",xl(e.domainLookupEnd)],["http.request.connect_start",xl(e.connectStart)],["http.request.secure_connection_start",xl(e.secureConnectionStart)],["http.request.connection_end",xl(e.connectEnd)],["http.request.request_start",xl(e.requestStart)],["http.request.response_start",xl(e.responseStart)],["http.request.response_end",xl(e.responseEnd)]]:i}function Xme(e,t){return Tm(e,t||qC)}function Jme(e,t,n,i){const r=e.xhr,a=r&&r[qc];if(!vh()||!r||r.__sentry_own_request__||!a)return;const o=t(a.url);if(e.endTimestamp&&o){const h=r.__sentry_xhr_span_id__;if(!h)return;const m=i[h];m&&a.status_code!==void 0&&(M8(m,a.status_code),m.end(),delete i[h]);return}const s=vo(),l=Sd(),u=QV(a.url),c=u?Df(u).host:void 0,d=o?ob({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":c,[Yc]:"auto.http.browser"},op:"http.client"}):void 0;d&&(r.__sentry_xhr_span_id__=d.spanContext().spanId,i[r.__sentry_xhr_span_id__]=d);const f=Wn();if(r.setRequestHeader&&n(a.url)&&f){const{traceId:h,spanId:m,sampled:g,dsc:v}={...l.getPropagationContext(),...s.getPropagationContext()},y=d?_w(d):A8(h,m,g),_=hV(v||(d?Jp(d):ww(h,f,s)));Qme(r,y,_)}return d}function Qme(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(VC,n)}catch{}}function QV(e){try{return new URL(e,Wt.location.origin).href}catch{return}}const eve="BrowserTracing",tve={...r_,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...YC},q$=(e={})=>{const t=wi?!!(e.tracePropagationTargets||e.tracingOrigins):!1;upe(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...tve,...e},i=xme(),r={};n.enableInp&&Pme(r,n.interactionsSampleRate),n.enableLongTask&&kme(),n._experiments.enableInteractions&&Tme();const a={name:void 0,context:void 0};function o(s){const l=Ia(),{beforeStartSpan:u,idleTimeout:c,finalTimeout:d,heartbeatInterval:f}=n,h=s.op==="pageload";let m;if(h){const _=h?Y$("sentry-trace"):"",S=h?Y$("baggage"):void 0,{traceId:w,dsc:x,parentSpanId:k,sampled:P}=phe(_,S);m={traceId:w,parentSpanId:k,parentSampled:P,...s,metadata:{...s.metadata,dynamicSamplingContext:x},trimEnd:!0}}else m={trimEnd:!0,...s};const g=u?u(m):m;g.metadata=g.name!==m.name?{...g.metadata,source:"custom"}:g.metadata,a.name=g.name,a.context=g,g.sampled===!1&&wi&&Xe.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),wi&&Xe.log(`[Tracing] Starting ${g.op} transaction on scope`);const{location:v}=Wt,y=NV(l,g,c,d,!0,{location:v},f,h);return h&&Wt.document&&(Wt.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Wt.document.readyState)&&y.sendAutoFinishSignal()}),["interactive","complete"].includes(Wt.document.readyState)&&y.sendAutoFinishSignal()),y.registerBeforeFinishCallback(_=>{i(),Nme(_)}),y}return{name:eve,setupOnce:()=>{},afterAllSetup(s){const l=s.getOptions(),{markBackgroundSpan:u,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:h,_experiments:m}=n,g=l&&l.tracePropagationTargets,v=g||n.tracePropagationTargets;wi&&t&&g&&Xe.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let y,_=Wt.location&&Wt.location.href;if(s.on&&(s.on("startNavigationSpan",S=>{y&&(wi&&Xe.log(`[Tracing] Finishing current transaction with op: ${Gi(y).op}`),y.end()),y=o({op:"navigation",...S})}),s.on("startPageLoadSpan",S=>{y&&(wi&&Xe.log(`[Tracing] Finishing current transaction with op: ${Gi(y).op}`),y.end()),y=o({op:"pageload",...S})})),n.instrumentPageLoad&&s.emit&&Wt.location){const S={name:Wt.location.pathname,startTimestamp:jo?jo/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ps]:"url"}};nve(s,S)}n.instrumentNavigation&&s.emit&&Wt.location&&gw(({to:S,from:w})=>{if(w===void 0&&_&&_.indexOf(S)!==-1){_=void 0;return}if(w!==S){_=void 0;const x={name:Wt.location.pathname,origin:"auto.navigation.browser",attributes:{[ps]:"url"}};eB(s,x)}}),u&&eme(),m.enableInteractions&&ive(n,a),n.enableInp&&ave(r,a),Wme({traceFetch:c,traceXHR:d,tracePropagationTargets:v,shouldCreateSpanForRequest:f,enableHTTPTimings:h})},options:n}};function nve(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=d1();return(n&&Gi(n).op)==="pageload"?n:void 0}function eB(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=d1();return(n&&Gi(n).op)==="navigation"?n:void 0}function Y$(e){const t=_fe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function ive(e,t){let n;const i=()=>{const{idleTimeout:r,finalTimeout:a,heartbeatInterval:o}=e,s="ui.action.click",l=mh();if(l&&l.op&&["navigation","pageload"].includes(l.op)){wi&&Xe.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){wi&&Xe.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const{location:u}=Wt,c={name:t.name,op:s,trimEnd:!0,data:{[ps]:t.context?ove(t.context):"url"}};n=NV(Ia(),c,r,a,!0,{location:u},o)};["click"].forEach(r=>{Wt.document&&addEventListener(r,i,{once:!1,capture:!0})})}function rve(e){return"duration"in e}const W$=10;function ave(e,t){const n=({entries:i})=>{const r=Wn(),a=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,o=a!==void 0?a.getReplayId():void 0,s=mh(),l=vo(),u=l!==void 0?l.getUser():void 0;i.forEach(c=>{if(rve(c)){const d=c.interactionId;if(d===void 0)return;const f=e[d],h=c.duration,m=c.startTime,g=Object.keys(e),v=g.length>0?g.reduce((y,_)=>e[y].duration<e[_].duration?y:_):void 0;if(c.entryType==="first-input"&&g.map(_=>e[_]).some(_=>_.duration===h&&_.startTime===m)||!d)return;if(f)f.duration=Math.max(f.duration,h);else if(g.length<W$||v===void 0||h>e[v].duration){const y=t.name,_=t.context;y&&_&&(v&&Object.keys(e).length>=W$&&delete e[v],e[d]={routeName:y,duration:h,parentContext:_,user:u,activeTransaction:s,replayId:o,startTime:m})}}})};Qp("event",n),Qp("first-input",n)}function ove(e){const t=e.attributes&&e.attributes[ps],n=e.data&&e.data[ps],i=e.metadata&&e.metadata.source;return t||n||i}const ni=xn;let WC=0;function tB(){return WC>0}function sve(){WC++,setTimeout(()=>{WC--})}function tm(e,t={},n){if(typeof e!="function")return e;try{const r=e.__sentry_wrapped__;if(r)return r;if(x8(e))return e}catch{return e}const i=function(){const r=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=r.map(o=>tm(o,t));return e.apply(this,a)}catch(a){throw sve(),Bhe(o=>{o.addEventProcessor(s=>(t.mechanism&&(DC(s,void 0,void 0),u1(s,t.mechanism)),s.extra={...s.extra,arguments:r},s)),ey(a)}),a}};try{for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}catch{}tV(i,e),Zf(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}const Wu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nB(e,t){const n=V8(e,t),i={type:t&&t.name,value:dve(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function lve(e,t,n,i){const r=Wn(),a=r&&r.getOptions().normalizeDepth,o={exception:{values:[{type:mw(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:pve(t,{isUnhandledRejection:i})}]},extra:{__serialized__:cV(t,a)}};if(n){const s=V8(e,n);s.length&&(o.exception.values[0].stacktrace={frames:s})}return o}function W3(e,t){return{exception:{values:[nB(e,t)]}}}function V8(e,t){const n=t.stacktrace||t.stack||"",i=cve(t);try{return e(n,i)}catch{}return[]}const uve=/Minified React error #\d+;/i;function cve(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(uve.test(e.message))return 1}return 0}function dve(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function fve(e,t,n,i){const r=n&&n.syntheticException||void 0,a=B8(e,t,r,i);return u1(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Xp(a)}function hve(e,t,n="info",i,r){const a=i&&i.syntheticException||void 0,o=GC(e,t,a,r);return o.level=n,i&&i.event_id&&(o.event_id=i.event_id),Xp(o)}function B8(e,t,n,i,r){let a;if(w8(t)&&t.error)return W3(e,t.error);if(a$(t)||ufe(t)){const o=t;if("stack"in t)a=W3(e,t);else{const s=o.name||(a$(o)?"DOMError":"DOMException"),l=o.message?`${s}: ${o.message}`:s;a=GC(e,l,n,i),DC(a,l)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return KF(t)?W3(e,t):Zp(t)||mw(t)?(a=lve(e,t,n,r),u1(a,{synthetic:!0}),a):(a=GC(e,t,n,i),DC(a,`${t}`,void 0),u1(a,{synthetic:!0}),a)}function GC(e,t,n,i){const r={};if(i&&n){const a=V8(e,n);a.length&&(r.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(S8(t)){const{__sentry_template_string__:a,__sentry_template_values__:o}=t;return r.logentry={message:a,params:o},r}return r.message=t,r}function pve(e,{isUnhandledRejection:t}){const n=Pfe(e),i=t?"promise rejection":"exception";return w8(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:mw(e)?`Event \`${mve(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function mve(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function vve(e,{metadata:t,tunnel:n,dsn:i}){const r={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:$m(i)}},a=gve(e);return wd(r,[a])}function gve(e){return[{type:"user_report"},e]}class yve extends kpe{constructor(t){const n=ni.SENTRY_SDK_SOURCE||Zfe();Bpe(t,"browser",["browser"],n),super(t),t.sendClientReports&&ni.document&&ni.document.addEventListener("visibilitychange",()=>{ni.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return fve(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return hve(this._options.stackParser,t,n,i,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Wu&&Xe.warn("SDK not enabled, will not capture user feedback.");return}const n=vve(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Wu&&Xe.log("No outcomes to send");return}if(!this._dsn){Wu&&Xe.log("No dsn provided, will not send outcomes");return}Wu&&Xe.log("Sending outcomes:",t);const n=bhe(t,this._options.tunnel&&$m(this._dsn));this._sendEnvelope(n)}}let Jv;function _ve(){if(Jv)return Jv;if(LC(ni.fetch))return Jv=ni.fetch.bind(ni);const e=ni.document;let t=ni.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(n){Wu&&Xe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Jv=t.bind(ni)}function bve(){Jv=void 0}function wve(e,t=_ve()){let n=0,i=0;function r(a){const o=a.body.length;n+=o,i++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=o,i--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return bve(),n-=o,i--,$8(l)}}return FV(e,r)}const Sve=4;function Cve(e){function t(n){return new No((i,r)=>{const a=new XMLHttpRequest;a.onerror=r,a.onreadystatechange=()=>{a.readyState===Sve&&i({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&a.setRequestHeader(o,e.headers[o]);a.send(n.body)})}return FV(e,t)}const Ew="?",Eve=30,xve=40,kve=50;function z8(e,t,n,i){const r={filename:e,function:t,in_app:!0};return n!==void 0&&(r.lineno=n),i!==void 0&&(r.colno=i),r}const Tve=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pve=/\((\S*)(?::(\d+))(?::(\d+))\)/,$ve=e=>{const t=Tve.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Pve.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[i,r]=iB(t[1]||Ew,t[2]);return z8(r,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Ave=[Eve,$ve],Ove=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Dve=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ive=e=>{const t=Ove.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Dve.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let i=t[3],r=t[1]||Ew;return[r,i]=iB(r,i),z8(i,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Nve=[kve,Ive],Mve=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Lve=e=>{const t=Mve.exec(e);return t?z8(t[2],t[1]||Ew,+t[3],t[4]?+t[4]:void 0):void 0},Rve=[xve,Lve],Fve=[Ave,Nve,Rve],Vve=rV(...Fve),iB=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:Ew,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},s0=1024,rB="Breadcrumbs",Bve=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:rB,setupOnce(){},setup(n){t.console&&Dfe(Uve(n)),t.dom&&oV(jve(n,t.dom)),t.xhr&&P8(Hve(n)),t.fetch&&T8(qve(n)),t.history&&gw(Yve(n)),t.sentry&&n.on&&n.on("beforeSendEvent",zve(n))}}},aB=Bve;hc(rB,aB);function zve(e){return function(n){Wn()===e&&ld({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:jc(n)},{event:n})}}function jve(e,t){return function(i){if(Wn()!==e)return;let r,a,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>s0&&(Wu&&Xe.warn(`\`dom.maxStringLength\` cannot exceed ${s0}, but a value of ${s} was configured. Sentry will use ${s0} instead.`),s=s0),typeof o=="string"&&(o=[o]);try{const u=i.event,c=Wve(u)?u.target:u;r=sd(c,{keyAttrs:o,maxStringLength:s}),a=QF(c)}catch{r="<unknown>"}if(r.length===0)return;const l={category:`ui.${i.name}`,message:r};a&&(l.data={"ui.component_name":a}),ld(l,{event:i.event,name:i.name,global:i.global})}}function Uve(e){return function(n){if(Wn()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:ohe(n.level),message:o$(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${o$(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ld(i,{input:n.args,level:n.level})}}function Hve(e){return function(n){if(Wn()!==e)return;const{startTimestamp:i,endTimestamp:r}=n,a=n.xhr[qc];if(!i||!r||!a)return;const{method:o,url:s,status_code:l,body:u}=a,c={method:o,url:s,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:i,endTimestamp:r};ld({category:"xhr",data:c,type:"http"},d)}}function qve(e){return function(n){if(Wn()!==e)return;const{startTimestamp:i,endTimestamp:r}=n;if(r&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,o={data:n.error,input:n.args,startTimestamp:i,endTimestamp:r};ld({category:"fetch",data:a,level:"error",type:"http"},o)}else{const a=n.response,o={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:i,endTimestamp:r};ld({category:"fetch",data:o,type:"http"},s)}}}function Yve(e){return function(n){if(Wn()!==e)return;let i=n.from,r=n.to;const a=Df(ni.location.href);let o=i?Df(i):void 0;const s=Df(r);(!o||!o.path)&&(o=a),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),ld({category:"navigation",data:{from:i,to:r}})}}function Wve(e){return!!e&&!!e.target}const oB="Dedupe",Gve=()=>{let e;return{name:oB,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Kve(t,e))return Wu&&Xe.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},sB=Gve;hc(oB,sB);function Kve(e,t){return t?!!(Zve(e,t)||Xve(e,t)):!1}function Zve(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!uB(e,t)||!lB(e,t))}function Xve(e,t){const n=G$(t),i=G$(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!uB(e,t)||!lB(e,t))}function lB(e,t){let n=K$(e),i=K$(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let r=0;r<i.length;r++){const a=i[r],o=n[r];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function uB(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function G$(e){return e.exception&&e.exception.values&&e.exception.values[0]}function K$(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const cB="GlobalHandlers",Jve=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:cB,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Qve(n),Z$("onerror")),t.onunhandledrejection&&(ege(n),Z$("onunhandledrejection"))}}},dB=Jve;hc(cB,dB);function Qve(e){lV(t=>{const{stackParser:n,attachStacktrace:i}=hB();if(Wn()!==e||tB())return;const{msg:r,url:a,line:o,column:s,error:l}=t,u=l===void 0&&jl(r)?ige(r,a,o,s):fB(B8(n,l||r,void 0,i,!1),a,o,s);u.level="error",wV(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function ege(e){uV(t=>{const{stackParser:n,attachStacktrace:i}=hB();if(Wn()!==e||tB())return;const r=tge(t),a=C8(r)?nge(r):B8(n,r,void 0,i,!0);a.level="error",wV(a,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function tge(e){if(C8(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function nge(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ige(e,t,n,i){const r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=w8(e)?e.message:e,o="Error";const s=a.match(r);return s&&(o=s[1],a=s[2]),fB({exception:{values:[{type:o,value:a}]}},t,n,i)}function fB(e,t,n,i){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],u=isNaN(parseInt(i,10))?void 0:i,c=isNaN(parseInt(n,10))?void 0:n,d=jl(t)&&t.length>0?t:yfe();return l.length===0&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function Z$(e){Wu&&Xe.log(`Global Handler attached: ${e}`)}function hB(){const e=Wn();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const pB="HttpContext",rge=()=>({name:pB,setupOnce(){},preprocessEvent(e){if(!ni.navigator&&!ni.location&&!ni.document)return;const t=e.request&&e.request.url||ni.location&&ni.location.href,{referrer:n}=ni.document||{},{userAgent:i}=ni.navigator||{},r={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:r};e.request=a}}),mB=rge;hc(pB,mB);const age="cause",oge=5,vB="LinkedErrors",sge=(e={})=>{const t=e.limit||oge,n=e.key||age;return{name:vB,setupOnce(){},preprocessEvent(i,r,a){const o=a.getOptions();pfe(nB,o.stackParser,o.maxValueLength,n,t,i,r)}}},gB=sge;hc(vB,gB);const lge=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],yB="TryCatch",uge=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:yB,setupOnce(){t.setTimeout&&Gr(ni,"setTimeout",X$),t.setInterval&&Gr(ni,"setInterval",X$),t.requestAnimationFrame&&Gr(ni,"requestAnimationFrame",cge),t.XMLHttpRequest&&"XMLHttpRequest"in ni&&Gr(XMLHttpRequest.prototype,"send",dge);const n=t.eventTarget;n&&(Array.isArray(n)?n:lge).forEach(fge)}}},_B=uge;hc(yB,_B);function X$(e){return function(...t){const n=t[0];return t[0]=tm(n,{mechanism:{data:{function:oc(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cge(e){return function(t){return e.apply(this,[tm(t,{mechanism:{data:{function:"requestAnimationFrame",handler:oc(e)},handled:!1,type:"instrument"}})])}}function dge(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Gr(n,r,function(a){const o={mechanism:{data:{function:r,handler:oc(a)},handled:!1,type:"instrument"}},s=x8(a);return s&&(o.mechanism.data.handler=oc(s)),tm(a,o)})}),e.apply(this,t)}}function fge(e){const t=ni,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gr(n,"addEventListener",function(i){return function(r,a,o){try{typeof a.handleEvent=="function"&&(a.handleEvent=tm(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:oc(a),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[r,tm(a,{mechanism:{data:{function:"addEventListener",handler:oc(a),target:e},handled:!1,type:"instrument"}}),o])}}),Gr(n,"removeEventListener",function(i){return function(r,a,o){const s=a;try{const l=s&&s.__sentry_wrapped__;l&&i.call(this,r,l,o)}catch{}return i.call(this,r,s,o)}}))}const hge=[BV(),jV(),_B(),aB(),dB(),gB(),sB(),mB()];function bB(e){return[...hge]}function pge(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=bB()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ni.SENTRY_RELEASE&&ni.SENTRY_RELEASE.id&&(e.release=ni.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Afe(e.stackParser||Vve),integrations:bpe(e),transport:e.transport||(sV()?wve:Cve)};Ape(yve,t),e.autoSessionTracking&&mge()}function mge(){if(typeof ni.document>"u"){Wu&&Xe.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}x$({ignoreDuration:!0}),k$(),gw(({from:e,to:t})=>{e!==void 0&&e!==t&&(x$({ignoreDuration:!0}),k$())})}const ui=xn,j8="sentryReplaySession",vge="replay_event",U8="Unable to send Replay",gge=3e5,yge=9e5,_ge=5e3,bge=5500,wge=6e4,Sge=5e3,Cge=3,J$=15e4,l0=5e3,Ege=3e3,xge=300,H8=2e7,kge=4999,Tge=15e3,Q$=36e5;function Pge(e,t){return e??t()}function cb(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}var Ar;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Ar||(Ar={}));function $ge(e){return e.nodeType===e.ELEMENT_NODE}function yg(e){const t=cb([e,"optionalAccess",n=>n.host]);return cb([t,"optionalAccess",n=>n.shadowRoot])===e}function _g(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Age(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function Oge(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function db(e){try{const t=e.rules||e.cssRules;return t?Age(Array.from(t,wB).join("")):null}catch{return null}}function wB(e){let t;if(Ige(e))try{t=db(e.styleSheet)||Oge(e)}catch{}else if(Nge(e)&&e.selectorText.includes(":"))return Dge(e.cssText);return t||e.cssText}function Dge(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Ige(e){return"styleSheet"in e}function Nge(e){return"selectorText"in e}class SB{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=cb([this,"access",i=>i.getMeta,"call",i=>i(t),"optionalAccess",i=>i.id]);return Pge(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const i=n.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,n)}replace(t,n){const i=this.getNode(t);if(i){const r=this.nodeMetaMap.get(i);r&&this.nodeMetaMap.set(n,r)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Mge(){return new SB}function xw({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function f1({isMasked:e,element:t,value:n,maskInputFn:i}){let r=n||"";return e?(i&&(r=i(r,t)),"*".repeat(r.length)):r}function nm(e){return e.toLowerCase()}function KC(e){return e.toUpperCase()}const eA="__rrweb_original__";function Lge(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let i=0;i<e.width;i+=n)for(let r=0;r<e.height;r+=n){const a=t.getImageData,o=eA in a?a[eA]:a;if(new Uint32Array(o.call(t,i,r,Math.min(n,e.width-i),Math.min(n,e.height-r)).data.buffer).some(l=>l!==0))return!1}return!0}function q8(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?nm(t):null}function fb(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let Rge=1;const Fge=new RegExp("[^a-z0-9-_:]"),h1=-2;function Y8(){return Rge++}function Vge(e){if(e instanceof HTMLFormElement)return"form";const t=nm(e.tagName);return Fge.test(t)?"div":t}function Bge(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Fh,tA;const zge=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,jge=/^(?:[a-z+]+:)?\/\//i,Uge=/^www\..*/i,Hge=/^(data:)([^,]*),(.*)/i;function hb(e,t){return(e||"").replace(zge,(n,i,r,a,o,s)=>{const l=r||o||s,u=i||a||"";if(!l)return n;if(jge.test(l)||Uge.test(l))return`url(${u}${l}${u})`;if(Hge.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Bge(t)+l}${u})`;const c=t.split("/"),d=l.split("/");c.pop();for(const f of d)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}const qge=/^[^ \t\n\r\u000c]+/,Yge=/^[, \t\n\r\u000c]+/;function Wge(e,t){if(t.trim()==="")return t;let n=0;function i(a){let o;const s=a.exec(t.substring(n));return s?(o=s[0],n+=o.length,o):""}const r=[];for(;i(Yge),!(n>=t.length);){let a=i(qge);if(a.slice(-1)===",")a=op(e,a.substring(0,a.length-1)),r.push(a);else{let o="";a=op(e,a);let s=!1;for(;;){const l=t.charAt(n);if(l===""){r.push((a+o).trim());break}else if(s)l===")"&&(s=!1);else if(l===","){n+=1,r.push((a+o).trim());break}else l==="("&&(s=!0);o+=l,n+=1}}}return r.join(", ")}function op(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function Gge(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function W8(){const e=document.createElement("a");return e.href="",e.href}function CB(e,t,n,i,r,a){return i&&(n==="src"||n==="href"&&!(t==="use"&&i[0]==="#")||n==="xlink:href"&&i[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?op(e,i):n==="srcset"?Wge(e,i):n==="style"?hb(i,W8()):t==="object"&&n==="data"?op(e,i):typeof a=="function"?a(n,i,r):i)}function EB(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Kge(e,t,n,i){try{if(i&&e.matches(i))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const a=e.classList[r];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function Zge(e,t){for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!1}function bf(e,t,n=1/0,i=0){return!e||e.nodeType!==e.ELEMENT_NODE||i>n?-1:t(e)?i:bf(e.parentNode,t,n,i+1)}function sp(e,t){return n=>{const i=n;if(i===null)return!1;try{if(e){if(typeof e=="string"){if(i.matches(`.${e}`))return!0}else if(Zge(i,e))return!0}return!!(t&&i.matches(t))}catch{return!1}}}function im(e,t,n,i,r,a){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let s=-1,l=-1;if(a){if(l=bf(o,sp(i,r)),l<0)return!0;s=bf(o,sp(t,n),l>=0?l:1/0)}else{if(s=bf(o,sp(t,n)),s<0)return!1;l=bf(o,sp(i,r),s>=0?s:1/0)}return s>=0?l>=0?s<=l:!0:l>=0?!1:!!a}catch{}return!!a}function Xge(e,t,n){const i=e.contentWindow;if(!i)return;let r=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()});return}const o="about:blank";if(i.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Jge(e,t,n){let i=!1,r;try{r=e.sheet}catch{return}if(r)return;const a=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function Qge(e,t){const{doc:n,mirror:i,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:m={},maskTextFn:g,maskInputFn:v,dataURLOptions:y={},inlineImages:_,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:x=!1}=t,k=e1e(n,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Ar.Document,childNodes:[],compatMode:e.compatMode}:{type:Ar.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ar.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return n1e(e,{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:m,maskInputFn:v,dataURLOptions:y,inlineImages:_,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:x,rootId:k,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return t1e(e,{maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:m,maskInputFn:v,rootId:k});case e.CDATA_SECTION_NODE:return{type:Ar.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Ar.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function e1e(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function t1e(e,t){const{maskAllText:n,maskTextClass:i,unmaskTextClass:r,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,g=d==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||cb([e,"access",y=>y.parentNode,"access",y=>y.sheet,"optionalAccess",y=>y.cssRules])&&(f=db(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=hb(f,W8())}m&&(f="SCRIPT_PLACEHOLDER");const v=im(e,i,a,r,o,n);if(!h&&!m&&!g&&f&&v&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(l.textarea||v)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const y=xw({type:null,tagName:d,maskInputOptions:l});f=f1({isMasked:im(e,i,a,r,o,y),element:e,value:f,maskInputFn:u})}return{type:Ar.Text,textContent:f||"",isStyle:h,rootId:c}}function n1e(e,t){const{doc:n,blockClass:i,blockSelector:r,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:u,dataURLOptions:c={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:g,maskAllText:v,maskTextClass:y,unmaskTextClass:_,maskTextSelector:S,unmaskTextSelector:w}=t,x=Kge(e,i,r,a),k=Vge(e);let P={};const E=e.attributes.length;for(let D=0;D<E;D++){const T=e.attributes[D];T.name&&!EB(k,T.name,T.value)&&(P[T.name]=CB(n,k,nm(T.name),T.value,e,l))}if(k==="link"&&o){const D=Array.from(n.styleSheets).find(O=>O.href===e.href);let T=null;D&&(T=db(D)),T&&(delete P.rel,delete P.href,P._cssText=hb(T,D.href))}if(k==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const D=db(e.sheet);D&&(P._cssText=hb(D,W8()))}if(k==="input"||k==="textarea"||k==="select"||k==="option"){const D=e,T=q8(D),O=fb(D,KC(k),T),N=D.checked;if(T!=="submit"&&T!=="button"&&O){const V=im(D,y,S,_,w,xw({type:T,tagName:KC(k),maskInputOptions:s}));P.value=f1({isMasked:V,element:D,value:O,maskInputFn:u})}N&&(P.checked=N)}if(k==="option"&&(e.selected&&!s.select?P.selected=!0:delete P.selected),k==="canvas"&&f){if(e.__context==="2d")Lge(e)||(P.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const D=e.toDataURL(c.type,c.quality),T=document.createElement("canvas");T.width=e.width,T.height=e.height;const O=T.toDataURL(c.type,c.quality);D!==O&&(P.rr_dataURL=D)}}if(k==="img"&&d){Fh||(Fh=n.createElement("canvas"),tA=Fh.getContext("2d"));const D=e,T=D.crossOrigin;D.crossOrigin="anonymous";const O=()=>{D.removeEventListener("load",O);try{Fh.width=D.naturalWidth,Fh.height=D.naturalHeight,tA.drawImage(D,0,0),P.rr_dataURL=Fh.toDataURL(c.type,c.quality)}catch(N){console.warn(`Cannot inline img src=${D.currentSrc}! Error: ${N}`)}T?P.crossOrigin=T:D.removeAttribute("crossorigin")};D.complete&&D.naturalWidth!==0?O():D.addEventListener("load",O)}if((k==="audio"||k==="video")&&(P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(P.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(P.rr_scrollTop=e.scrollTop)),x){const{width:D,height:T}=e.getBoundingClientRect();P={class:P.class,rr_width:`${D}px`,rr_height:`${T}px`}}k==="iframe"&&!h(P.src)&&(e.contentDocument||(P.rr_src=P.src),delete P.src);let A;try{customElements.get(k)&&(A=!0)}catch{}return{type:Ar.Element,tagName:k,attributes:P,childNodes:[],isSVG:Gge(e)||void 0,needBlock:x,rootId:g,isCustom:A}}function li(e){return e==null?"":e.toLowerCase()}function i1e(e,t){if(t.comment&&e.type===Ar.Comment)return!0;if(e.type===Ar.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(li(e.attributes.name).match(/^msapplication-tile(image|color)$/)||li(e.attributes.name)==="application-name"||li(e.attributes.rel)==="icon"||li(e.attributes.rel)==="apple-touch-icon"||li(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&li(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(li(e.attributes.property).match(/^(og|twitter|fb):/)||li(e.attributes.name).match(/^(og|twitter):/)||li(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(li(e.attributes.name)==="robots"||li(e.attributes.name)==="googlebot"||li(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(li(e.attributes.name)==="author"||li(e.attributes.name)==="generator"||li(e.attributes.name)==="framework"||li(e.attributes.name)==="publisher"||li(e.attributes.name)==="progid"||li(e.attributes.property).match(/^article:/)||li(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(li(e.attributes.name)==="google-site-verification"||li(e.attributes.name)==="yandex-verification"||li(e.attributes.name)==="csrf-token"||li(e.attributes.name)==="p:domain_verify"||li(e.attributes.name)==="verify-v1"||li(e.attributes.name)==="verification"||li(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function lp(e,t){const{doc:n,mirror:i,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:_,dataURLOptions:S={},inlineImages:w=!1,recordCanvas:x=!1,onSerialize:k,onIframeLoad:P,iframeLoadTimeout:E=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:O=!1}=t;let{preserveWhiteSpace:N=!0}=t;const V=Qge(e,{doc:n,mirror:i,blockClass:r,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,dataURLOptions:S,inlineImages:w,recordCanvas:x,keepIframeSrcFn:T,newlyAddedElement:O});if(!V)return console.warn(e,"not serialized"),null;let j;i.hasNode(e)?j=i.getId(e):i1e(V,_)||!N&&V.type===Ar.Text&&!V.isStyle&&!V.textContent.replace(/^\s+|\s+$/gm,"").length?j=h1:j=Y8();const q=Object.assign(V,{id:j});if(i.add(e,q),j===h1)return null;k&&k(e);let ne=!f;if(q.type===Ar.Element){ne=ne&&!q.needBlock,delete q.needBlock;const ae=e.shadowRoot;ae&&_g(ae)&&(q.isShadowHost=!0)}if((q.type===Ar.Document||q.type===Ar.Element)&&ne){_.headWhitespace&&q.type===Ar.Element&&q.tagName==="head"&&(N=!1);const ae={doc:n,mirror:i,blockClass:r,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:_,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:P,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:D,keepIframeSrcFn:T};for(const Y of Array.from(e.childNodes)){const M=lp(Y,ae);M&&q.childNodes.push(M)}if($ge(e)&&e.shadowRoot)for(const Y of Array.from(e.shadowRoot.childNodes)){const M=lp(Y,ae);M&&(_g(e.shadowRoot)&&(M.isShadow=!0),q.childNodes.push(M))}}return e.parentNode&&yg(e.parentNode)&&_g(e.parentNode)&&(q.isShadow=!0),q.type===Ar.Element&&q.tagName==="iframe"&&Xge(e,()=>{const ae=e.contentDocument;if(ae&&P){const Y=lp(ae,{doc:ae,mirror:i,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:_,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:P,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:D,keepIframeSrcFn:T});Y&&P(e,Y)}},E),q.type===Ar.Element&&q.tagName==="link"&&q.attributes.rel==="stylesheet"&&Jge(e,()=>{if(A){const ae=lp(e,{doc:n,mirror:i,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:_,dataURLOptions:S,inlineImages:w,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:P,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:D,keepIframeSrcFn:T});ae&&A(e,ae)}},D),q}function r1e(e,t){const{mirror:n=new SB,blockClass:i="rr-block",blockSelector:r=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:m=!1,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOM:_=!1,dataURLOptions:S,preserveWhiteSpace:w,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:P,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:D=()=>!1}=t||{};return lp(e,{doc:e,mirror:n,blockClass:i,blockSelector:r,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:_==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:_===!1?{}:_,dataURLOptions:S,inlineImages:f,recordCanvas:h,preserveWhiteSpace:w,onSerialize:x,onIframeLoad:k,iframeLoadTimeout:P,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:D,newlyAddedElement:!1})}function Ic(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}function Ga(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const Jh=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let nA={map:{},getId(){return console.error(Jh),-1},getNode(){return console.error(Jh),null},removeNodeFromMap(){console.error(Jh)},has(){return console.error(Jh),!1},reset(){console.error(Jh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(nA=new Proxy(nA,{get(e,t,n){return t==="map"&&console.error(Jh),Reflect.get(e,t,n)}}));function p1(e,t,n={}){let i=null,r=0;return function(...a){const o=Date.now();!r&&n.leading===!1&&(r=o);const s=t-(o-r),l=this;s<=0||s>t?(i&&(d1e(i),i=null),r=o,e.apply(l,a)):!i&&n.trailing!==!1&&(i=kw(()=>{r=n.leading===!1?0:Date.now(),i=null,e.apply(l,a)},s))}}function xB(e,t,n,i,r=window){const a=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(o){kw(()=>{n.set.call(this,o)},0),a&&a.set&&a.set.call(this,o)}}),()=>xB(e,t,a||{},!0)}function G8(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],r=n(i);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=r,()=>{e[t]=i}}catch{return()=>{}}}let pb=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(pb=()=>new Date().getTime());function kB(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Ic([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Ic([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Ic([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Ic([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Ic([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Ic([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function TB(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function PB(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function $B(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ys(e,t,n,i,r){if(!e)return!1;const a=$B(e);if(!a)return!1;const o=sp(t,n);if(!r){const u=i&&a.matches(i);return o(a)&&!u}const s=bf(a,o);let l=-1;return s<0?!1:(i&&(l=bf(a,sp(null,i))),s>-1&&l<0?!0:s<l)}function a1e(e,t){return t.getId(e)!==-1}function G3(e,t){return t.getId(e)===h1}function AB(e,t){if(yg(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?AB(e.parentNode,t):!0:!0}function ZC(e){return!!e.changedTouches}function o1e(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function OB(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function DB(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function XC(e){return!!Ic([e,"optionalAccess",t=>t.shadowRoot])}class s1e{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Ehe(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let i;return n===void 0?i=this.id++:i=n,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function IB(e){let t=null;return Ic([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function l1e(e){let t=e,n;for(;n=IB(t);)t=n;return t}function u1e(e){const t=e.ownerDocument;if(!t)return!1;const n=l1e(e);return t.contains(n)}function NB(e){const t=e.ownerDocument;return t?t.contains(e)||u1e(e):!1}const iA={};function K8(e){const t=iA[e];if(t)return t;const n=window.document;let i=window[e];if(n&&typeof n.createElement=="function")try{const r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r);const a=r.contentWindow;a&&a[e]&&(i=a[e]),n.head.removeChild(r)}catch{}return iA[e]=i.bind(window)}function c1e(...e){return K8("requestAnimationFrame")(...e)}function kw(...e){return K8("setTimeout")(...e)}function d1e(...e){return K8("clearTimeout")(...e)}var nn=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(nn||{}),rn=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(rn||{}),ja=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ja||{}),Iu=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Iu||{});function f1e(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}function rA(e){return"__ln"in e}class h1e{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let i=0;i<t;i++)n=f1e([n,"optionalAccess",r=>r.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&rA(t.previousSibling)){const i=t.previousSibling.__ln.next;n.next=i,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,i&&(i.previous=n)}else if(t.nextSibling&&rA(t.nextSibling)&&t.nextSibling.__ln.previous){const i=t.nextSibling.__ln.previous;n.previous=i,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,i&&(i.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const aA=(e,t)=>`${e}@${t}`;class p1e{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,i=new h1e,r=l=>{let u=l,c=h1;for(;c===h1;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},a=l=>{if(!l.parentNode||!NB(l))return;const u=yg(l.parentNode)?this.mirror.getId(IB(l)):this.mirror.getId(l.parentNode),c=r(l);if(u===-1||c===-1)return i.addNode(l);const d=lp(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{OB(f,this.mirror)&&this.iframeManager.addIframe(f),DB(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),XC(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{this.iframeManager.attachIframe(f,h),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)}});d&&(t.push({parentId:u,nextId:c,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)oA(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||a(l);for(const l of this.addedSet)!sA(this.droppedSet,l)&&!oA(this.removes,l,this.mirror)||sA(this.movedSet,l)?a(l):this.droppedSet.add(l);let o=null;for(;i.length;){let l=null;if(o){const u=this.mirror.getId(o.value.parentNode),c=r(o.value);u!==-1&&c!==-1&&(l=o)}if(!l){let u=i.tail;for(;u;){const c=u;if(u=u.previous,c){const d=this.mirror.getId(c.value.parentNode);if(r(c.value)===-1)continue;if(d!==-1){l=c;break}else{const h=c.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=h.parentNode.host;if(this.mirror.getId(m)!==-1){l=c;break}}}}}}if(!l){for(;i.head;)i.removeNode(i.head.value);break}o=l.previous,i.removeNode(l.value),a(l.value)}const s={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:u}=l;if(typeof u.style=="string"){const c=JSON.stringify(l.styleDiff),d=JSON.stringify(l._unchangedStyles);c.length<u.style.length&&(c+d).split("var(").length===u.style.split("var(").length&&(u.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:u}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=t=>{if(!G3(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ys(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:im(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,$B(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let i=t.attributeName,r=t.target.getAttribute(i);if(i==="value"){const o=q8(n),s=n.tagName;r=fb(n,s,o);const l=xw({maskInputOptions:this.maskInputOptions,tagName:s,type:o}),u=im(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);r=f1({isMasked:u,element:n,value:r,maskInputFn:this.maskInputFn})}if(Ys(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&i==="src"&&!this.keepIframeSrcFn(r))if(!n.contentDocument)i="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),i==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!EB(n.tagName,i)&&(a.attributes[i]=CB(this.doc,nm(n.tagName),nm(i),r,n,this.maskAttributeFn),i==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const s of Array.from(n.style)){const l=n.style.getPropertyValue(s),u=n.style.getPropertyPriority(s);l!==o.style.getPropertyValue(s)||u!==o.style.getPropertyPriority(s)?u===""?a.styleDiff[s]=l:a.styleDiff[s]=[l,u]:a._unchangedStyles[s]=[l,u]}for(const s of Array.from(o.style))n.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(Ys(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const i=this.mirror.getId(n),r=yg(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ys(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||G3(n,this.mirror)||!a1e(n,this.mirror)||(this.addedSet.has(n)?(JC(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&i===-1||AB(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[aA(i,r)]?JC(this.movedSet,n):this.removes.push({parentId:r,id:i,isShadow:yg(t.target)&&_g(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(G3(t,this.mirror))return;this.movedSet.add(t);let i=null;n&&this.mirror.hasNode(n)&&(i=this.mirror.getId(n)),i&&i!==-1&&(this.movedMap[aA(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ys(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(i=>this.genAdds(i)),XC(t)&&t.shadowRoot.childNodes.forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function JC(e,t){e.delete(t),t.childNodes.forEach(n=>JC(e,n))}function oA(e,t,n){return e.length===0?!1:MB(e,t,n)}function MB(e,t,n){const{parentNode:i}=t;if(!i)return!1;const r=n.getId(i);return e.some(a=>a.id===r)?!0:MB(e,i,n)}function sA(e,t){return e.size===0?!1:LB(e,t)}function LB(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:LB(e,n):!1}let bg;function m1e(e){bg=e}function v1e(){bg=void 0}const kn=e=>bg?(...n)=>{try{return e(...n)}catch(i){if(bg&&bg(i)===!0)return()=>{};throw i}}:e;function Dl(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}const up=[];function oy(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function RB(e,t){const n=new p1e;up.push(n),n.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const r=Dl([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);r&&window[r]&&(i=window[r]);const a=new i(kn(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function g1e({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(t.mousemove===!1)return()=>{};const r=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],s;const l=p1(kn(d=>{const f=Date.now()-s;e(o.map(h=>(h.timeOffset-=f,h)),d),o=[],s=null}),a),u=kn(p1(kn(d=>{const f=oy(d),{clientX:h,clientY:m}=ZC(d)?d.changedTouches[0]:d;s||(s=pb()),o.push({x:h,y:m,id:i.getId(f),timeOffset:pb()-s}),l(typeof DragEvent<"u"&&d instanceof DragEvent?rn.Drag:d instanceof MouseEvent?rn.MouseMove:rn.TouchMove)}),r,{trailing:!1})),c=[Ga("mousemove",u,n),Ga("touchmove",u,n),Ga("drag",u,n)];return kn(()=>{c.forEach(d=>d())})}function y1e({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[];let u=null;const c=d=>f=>{const h=oy(f);if(Ys(h,i,r,a,!0))return;let m=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=Iu.Mouse;break;case"touch":m=Iu.Touch;break;case"pen":m=Iu.Pen;break}m===Iu.Touch?ja[d]===ja.MouseDown?g="TouchStart":ja[d]===ja.MouseUp&&(g="TouchEnd"):Iu.Pen}else ZC(f)&&(m=Iu.Touch);m!==null?(u=m,(g.startsWith("Touch")&&m===Iu.Touch||g.startsWith("Mouse")&&m===Iu.Mouse)&&(m=null)):ja[d]===ja.Click&&(m=u,u=null);const v=ZC(f)?f.changedTouches[0]:f;if(!v)return;const y=n.getId(h),{clientX:_,clientY:S}=v;kn(e)({type:ja[g],id:y,x:_,y:S,...m!==null&&{pointerType:m}})};return Object.keys(ja).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1).forEach(d=>{let f=nm(d);const h=c(d);if(window.PointerEvent)switch(ja[d]){case ja.MouseDown:case ja.MouseUp:f=f.replace("mouse","pointer");break;case ja.TouchStart:case ja.TouchEnd:return}l.push(Ga(f,h,t))}),kn(()=>{l.forEach(d=>d())})}function FB({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:a,sampling:o}){const s=kn(p1(kn(l=>{const u=oy(l);if(!u||Ys(u,i,r,a,!0))return;const c=n.getId(u);if(u===t&&t.defaultView){const d=kB(t.defaultView);e({id:c,x:d.left,y:d.top})}else e({id:c,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return Ga("scroll",s,t)}function _1e({viewportResizeCb:e},{win:t}){let n=-1,i=-1;const r=kn(p1(kn(()=>{const a=TB(),o=PB();(n!==a||i!==o)&&(e({width:Number(o),height:Number(a)}),n=a,i=o)}),200));return Ga("resize",r,t)}const b1e=["INPUT","TEXTAREA","SELECT"],lA=new WeakMap;function w1e({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g}){function v(P){let E=oy(P);const A=P.isTrusted,D=E&&KC(E.tagName);if(D==="OPTION"&&(E=E.parentElement),!E||!D||b1e.indexOf(D)<0||Ys(E,i,r,a,!0))return;const T=E;if(T.classList.contains(o)||s&&T.matches(s))return;const O=q8(E);let N=fb(T,D,O),V=!1;const j=xw({maskInputOptions:l,tagName:D,type:O}),q=im(E,f,m,h,g,j);(O==="radio"||O==="checkbox")&&(V=E.checked),N=f1({isMasked:q,element:E,value:N,maskInputFn:u}),y(E,d?{text:N,isChecked:V,userTriggered:A}:{text:N,isChecked:V});const ne=E.name;O==="radio"&&ne&&V&&t.querySelectorAll(`input[type="radio"][name="${ne}"]`).forEach(ae=>{if(ae!==E){const Y=f1({isMasked:q,element:ae,value:fb(ae,D,O),maskInputFn:u});y(ae,d?{text:Y,isChecked:!V,userTriggered:!1}:{text:Y,isChecked:!V})}})}function y(P,E){const A=lA.get(P);if(!A||A.text!==E.text||A.isChecked!==E.isChecked){lA.set(P,E);const D=n.getId(P);kn(e)({...E,id:D})}}const S=(c.input==="last"?["change"]:["input","change"]).map(P=>Ga(P,kn(v),t)),w=t.defaultView;if(!w)return()=>{S.forEach(P=>P())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),k=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(...k.map(P=>xB(P[0],P[1],{set(){kn(v)({target:this,isTrusted:!1})}},!1,w))),kn(()=>{S.forEach(P=>P())})}function mb(e){const t=[];function n(i,r){if(u0("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||u0("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||u0("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||u0("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){const o=Array.from(i.parentRule.cssRules).indexOf(i);r.unshift(o)}else if(i.parentStyleSheet){const o=Array.from(i.parentStyleSheet.cssRules).indexOf(i);r.unshift(o)}return r}return n(e,t)}function Nc(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function S1e({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const r=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:kn((c,d,f)=>{const[h,m]=f,{id:g,styleId:v}=Nc(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,adds:[{rule:h,index:m}]}),c.apply(d,f)})});const a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:kn((c,d,f)=>{const[h]=f,{id:m,styleId:g}=Nc(d,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,removes:[{index:h}]}),c.apply(d,f)})});let o;i.CSSStyleSheet.prototype.replace&&(o=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:kn((c,d,f)=>{const[h]=f,{id:m,styleId:g}=Nc(d,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,replace:h}),c.apply(d,f)})}));let s;i.CSSStyleSheet.prototype.replaceSync&&(s=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:kn((c,d,f)=>{const[h]=f,{id:m,styleId:g}=Nc(d,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,replaceSync:h}),c.apply(d,f)})}));const l={};c0("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(c0("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),c0("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),c0("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));const u={};return Object.entries(l).forEach(([c,d])=>{u[c]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[c].insertRule,{apply:kn((f,h,m)=>{const[g,v]=m,{id:y,styleId:_}=Nc(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||_&&_!==-1)&&e({id:y,styleId:_,adds:[{rule:g,index:[...mb(h),v||0]}]}),f.apply(h,m)})}),d.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:kn((f,h,m)=>{const[g]=m,{id:v,styleId:y}=Nc(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:[...mb(h),g]}]}),f.apply(h,m)})})}),kn(()=>{i.CSSStyleSheet.prototype.insertRule=r,i.CSSStyleSheet.prototype.deleteRule=a,o&&(i.CSSStyleSheet.prototype.replace=o),s&&(i.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([c,d])=>{d.prototype.insertRule=u[c].insertRule,d.prototype.deleteRule=u[c].deleteRule})})}function VB({mirror:e,stylesheetManager:t},n){let i=null;n.nodeName==="#document"?i=e.getId(n):i=e.getId(n.host);const r=n.nodeName==="#document"?Dl([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):Dl([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),a=Dl([r,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(Dl([r,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return i===null||i===-1||!r||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Dl([a,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const s=Dl([a,"access",l=>l.set,"optionalAccess",l=>l.call,"call",l=>l(this,o)]);if(i!==null&&i!==-1)try{t.adoptStyleSheets(o,i)}catch{}return s}}),kn(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function C1e({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:r}){const a=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:kn((s,l,u)=>{const[c,d,f]=u;if(n.has(c))return a.apply(l,[c,d,f]);const{id:h,styleId:m}=Nc(Dl([l,"access",g=>g.parentRule,"optionalAccess",g=>g.parentStyleSheet]),t,i.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:c,value:d,priority:f},index:mb(l.parentRule)}),s.apply(l,u)})});const o=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:kn((s,l,u)=>{const[c]=u;if(n.has(c))return o.apply(l,[c]);const{id:d,styleId:f}=Nc(Dl([l,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,i.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:c},index:mb(l.parentRule)}),s.apply(l,u)})}),kn(()=>{r.CSSStyleDeclaration.prototype.setProperty=a,r.CSSStyleDeclaration.prototype.removeProperty=o})}function E1e({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:r,sampling:a,doc:o}){const s=kn(u=>p1(kn(c=>{const d=oy(c);if(!d||Ys(d,t,n,i,!0))return;const{currentTime:f,volume:h,muted:m,playbackRate:g}=d;e({type:u,id:r.getId(d),currentTime:f,volume:h,muted:m,playbackRate:g})}),a.media||500)),l=[Ga("play",s(0),o),Ga("pause",s(1),o),Ga("seeked",s(2),o),Ga("volumechange",s(3),o),Ga("ratechange",s(4),o)];return kn(()=>{l.forEach(u=>u())})}function x1e({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],r=new WeakMap,a=n.FontFace;n.FontFace=function(l,u,c){const d=new a(l,u,c);return r.set(d,{family:l,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const o=G8(t.fonts,"add",function(s){return function(l){return kw(kn(()=>{const u=r.get(l);u&&(e(u),r.delete(l))}),0),s.apply(this,[l])}});return i.push(()=>{n.FontFace=a}),i.push(o),kn(()=>{i.forEach(s=>s())})}function k1e(e){const{doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:a,selectionCb:o}=e;let s=!0;const l=kn(()=>{const u=t.getSelection();if(!u||s&&Dl([u,"optionalAccess",f=>f.isCollapsed]))return;s=u.isCollapsed||!1;const c=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const h=u.getRangeAt(f),{startContainer:m,startOffset:g,endContainer:v,endOffset:y}=h;Ys(m,i,r,a,!0)||Ys(v,i,r,a,!0)||c.push({start:n.getId(m),startOffset:g,end:n.getId(v),endOffset:y})}o({ranges:c})});return l(),Ga("selectionchange",l)}function T1e({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:G8(n.customElements,"define",function(r){return function(a,o,s){try{t({define:{name:a}})}catch{}return r.apply(this,[a,o,s])}})}function P1e(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const i=RB(e,e.doc),r=g1e(e),a=y1e(e),o=FB(e),s=_1e(e,{win:n}),l=w1e(e),u=E1e(e),c=S1e(e,{win:n}),d=VB(e,e.doc),f=C1e(e,{win:n}),h=e.collectFonts?x1e(e):()=>{},m=k1e(e),g=T1e(e),v=[];for(const y of e.plugins)v.push(y.observer(y.callback,n,y.options));return kn(()=>{up.forEach(y=>y.reset()),i.disconnect(),r(),a(),o(),s(),l(),u(),c(),d(),f(),h(),m(),g(),v.forEach(y=>y())})}function u0(e){return typeof window[e]<"u"}function c0(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class QC{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,i,r){const a=i||this.getIdToRemoteIdMap(t),o=r||this.getRemoteIdToIdMap(t);let s=a.get(n);return s||(s=this.generateIdFn(),a.set(n,s),o.set(s,n)),s}getIds(t,n){const i=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,i,r))}getRemoteId(t,n,i){const r=i||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=r.get(n);return a||-1}getRemoteIds(t,n){const i=this.getRemoteIdToIdMap(t);return n.map(r=>this.getRemoteId(t,r,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function uA(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=a(n)):(r==="call"||r==="optionalCall")&&(n=a((...o)=>n.call(t,...o)),t=void 0)}return n}class $1e{constructor(){this.crossOriginIframeMirror=new QC(Y8),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class A1e{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new QC(Y8),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new QC(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),uA([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const r=this.crossOriginIframeMap.get(t.source);if(!r)return;const a=this.transformCrossOriginEvent(r,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case nn.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const i=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(n.data.node,i),{timestamp:n.timestamp,type:nn.IncrementalSnapshot,data:{source:rn.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case nn.Meta:case nn.Load:case nn.DomContentLoaded:return!1;case nn.Plugin:return n;case nn.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case nn.IncrementalSnapshot:switch(n.data.source){case rn.Mutation:return n.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const r=this.crossOriginIframeRootIdMap.get(t);r&&this.patchRootIdOnNode(i.node,r)}),n.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),n.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),n.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),n;case rn.Drag:case rn.TouchMove:case rn.MouseMove:return n.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),n;case rn.ViewportResize:return!1;case rn.MediaInteraction:case rn.MouseInteraction:case rn.Scroll:case rn.CanvasMutation:case rn.Input:return this.replaceIds(n.data,t,["id"]),n;case rn.StyleSheetRule:case rn.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case rn.Font:return n;case rn.Selection:return n.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),n;case rn.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),uA([n,"access",i=>i.data,"access",i=>i.styles,"optionalAccess",i=>i.forEach,"call",i=>i(r=>{this.replaceStyleIds(r,t,["styleId"])})]),n}}return!1}replace(t,n,i,r){for(const a of r)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(i,n[a]):n[a]=t.getId(i,n[a]));return n}replaceIds(t,n,i){return this.replace(this.crossOriginIframeMirror,t,n,i)}replaceStyleIds(t,n,i){return this.replace(this.crossOriginIframeStyleMirror,t,n,i)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,n)})}patchRootIdOnNode(t,n){t.type!==Ar.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,n)})}}class O1e{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class D1e{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!_g(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const i=RB({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(FB({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),kw(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(VB({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const i=this;this.restoreHandlers.push(G8(t.prototype,"attachShadow",function(r){return function(a){const o=r.call(this,a);return this.shadowRoot&&NB(this)&&i.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class cA{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class I1e{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new s1e,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const i={id:n,styleIds:[]},r=[];for(const a of t){let o;this.styleMirror.has(a)?o=this.styleMirror.getId(a):(o=this.styleMirror.add(a),r.push({styleId:o,rules:Array.from(a.rules||CSSRule,(s,l)=>({rule:wB(s),index:l}))})),i.styleIds.push(o)}r.length>0&&(i.styles=r),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class N1e{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){c1e(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const i=this.nodeMap.get(t);return i&&Array.from(i).some(r=>r!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let zi,vb;const zs=Mge();function ed(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:c="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:v,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:S,maskTextFn:w,maxCanvasSize:x=null,packFn:k,sampling:P={},dataURLOptions:E={},mousemoveWait:A,recordCanvas:D=!1,recordCrossOriginIframes:T=!1,recordAfter:O=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:V=!1,inlineImages:j=!1,plugins:q,keepIframeSrcFn:ne=()=>!1,ignoreCSSAttributes:ae=new Set([]),errorHandler:Y,onMutation:M,getCanvasManager:I}=e;m1e(Y);const W=T?window.parent===window:!0;let te=!1;if(!W)try{window.parent.document&&(te=!1)}catch{te=!0}if(W&&!t)throw new Error("emit function is required");A!==void 0&&P.mousemove===void 0&&(P.mousemove=A),zs.reset();const he=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},oe=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};o1e();let U,ee=0;const re=be=>{for(const ie of q||[])ie.eventProcessor&&(be=ie.eventProcessor(be));return k&&!te&&(be=k(be)),be};zi=(be,ie)=>{const se=be;if(se.timestamp=pb(),z3([up,"access",de=>de[0],"optionalAccess",de=>de.isFrozen,"call",de=>de()])&&se.type!==nn.FullSnapshot&&!(se.type===nn.IncrementalSnapshot&&se.data.source===rn.Mutation)&&up.forEach(de=>de.unfreeze()),W)z3([t,"optionalCall",de=>de(re(se),ie)]);else if(te){const de={type:"rrweb",event:re(se),origin:window.location.origin,isCheckout:ie};window.parent.postMessage(de,"*")}if(se.type===nn.FullSnapshot)U=se,ee=0;else if(se.type===nn.IncrementalSnapshot){if(se.data.source===rn.Mutation&&se.data.isAttachIframe)return;ee++;const de=i&&ee>=i,xe=n&&U&&se.timestamp-U.timestamp>n;(de||xe)&&_e(!0)}};const ue=be=>{zi({type:nn.IncrementalSnapshot,data:{source:rn.Mutation,...be}})},pe=be=>zi({type:nn.IncrementalSnapshot,data:{source:rn.Scroll,...be}}),ge=be=>zi({type:nn.IncrementalSnapshot,data:{source:rn.CanvasMutation,...be}}),Te=be=>zi({type:nn.IncrementalSnapshot,data:{source:rn.AdoptedStyleSheet,...be}}),Z=new I1e({mutationCb:ue,adoptedStyleSheetCb:Te}),X=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new $1e:new A1e({mirror:zs,mutationCb:ue,stylesheetManager:Z,recordCrossOriginIframes:T,wrappedEmit:zi});for(const be of q||[])be.getMirror&&be.getMirror({nodeMirror:zs,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const ye=new N1e,Se=L1e(I,{mirror:zs,win:window,mutationCb:be=>zi({type:nn.IncrementalSnapshot,data:{source:rn.CanvasMutation,...be}}),recordCanvas:D,blockClass:r,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:P.canvas,dataURLOptions:E,errorHandler:Y}),Ee=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new O1e:new D1e({mutationCb:ue,scrollCb:pe,bypassOptions:{onMutation:M,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:he,dataURLOptions:E,maskAttributeFn:_,maskTextFn:w,maskInputFn:S,recordCanvas:D,inlineImages:j,sampling:P,slimDOMOptions:oe,iframeManager:X,stylesheetManager:Z,canvasManager:Se,keepIframeSrcFn:ne,processedNodeManager:ye},mirror:zs}),_e=(be=!1)=>{zi({type:nn.Meta,data:{href:window.location.href,width:PB(),height:TB()}},be),Z.reset(),Ee.init(),up.forEach(se=>se.lock());const ie=r1e(document,{mirror:zs,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:he,maskAttributeFn:_,maskInputFn:S,maskTextFn:w,slimDOM:oe,dataURLOptions:E,recordCanvas:D,inlineImages:j,onSerialize:se=>{OB(se,zs)&&X.addIframe(se),DB(se,zs)&&Z.trackLinkElement(se),XC(se)&&Ee.addShadowRoot(se.shadowRoot,document)},onIframeLoad:(se,de)=>{X.attachIframe(se,de),Ee.observeAttachShadow(se)},onStylesheetLoad:(se,de)=>{Z.attachLinkElement(se,de)},keepIframeSrcFn:ne});if(!ie)return console.warn("Failed to snapshot the document");zi({type:nn.FullSnapshot,data:{node:ie,initialOffset:kB(window)}}),up.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,zs.getId(document))};vb=_e;try{const be=[],ie=de=>kn(P1e)({onMutation:M,mutationCb:ue,mousemoveCb:(xe,Re)=>zi({type:nn.IncrementalSnapshot,data:{source:Re,positions:xe}}),mouseInteractionCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.MouseInteraction,...xe}}),scrollCb:pe,viewportResizeCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.ViewportResize,...xe}}),inputCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.Input,...xe}}),mediaInteractionCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.MediaInteraction,...xe}}),styleSheetRuleCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.StyleSheetRule,...xe}}),styleDeclarationCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.StyleDeclaration,...xe}}),canvasMutationCb:ge,fontCb:xe=>zi({type:nn.IncrementalSnapshot,data:{source:rn.Font,...xe}}),selectionCb:xe=>{zi({type:nn.IncrementalSnapshot,data:{source:rn.Selection,...xe}})},customElementCb:xe=>{zi({type:nn.IncrementalSnapshot,data:{source:rn.CustomElement,...xe}})},blockClass:r,ignoreClass:s,ignoreSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:he,inlineStylesheet:m,sampling:P,recordCanvas:D,inlineImages:j,userTriggeredOnInput:N,collectFonts:V,doc:de,maskAttributeFn:_,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:ne,blockSelector:a,unblockSelector:o,slimDOMOptions:oe,dataURLOptions:E,mirror:zs,iframeManager:X,stylesheetManager:Z,shadowDomManager:Ee,processedNodeManager:ye,canvasManager:Se,ignoreCSSAttributes:ae,plugins:z3([q,"optionalAccess",xe=>xe.filter,"call",xe=>xe(Re=>Re.observer),"optionalAccess",xe=>xe.map,"call",xe=>xe(Re=>({observer:Re.observer,options:Re.options,callback:Pe=>zi({type:nn.Plugin,data:{plugin:Re.name,payload:Pe}})}))])||[]},{});X.addLoadListener(de=>{try{be.push(ie(de.contentDocument))}catch(xe){console.warn(xe)}});const se=()=>{_e(),be.push(ie(document))};return document.readyState==="interactive"||document.readyState==="complete"?se():(be.push(Ga("DOMContentLoaded",()=>{zi({type:nn.DomContentLoaded,data:{}}),O==="DOMContentLoaded"&&se()})),be.push(Ga("load",()=>{zi({type:nn.Load,data:{}}),O==="load"&&se()},window))),()=>{be.forEach(de=>de()),ye.destroy(),vb=void 0,v1e()}}catch(be){console.warn(be)}}function M1e(e){if(!vb)throw new Error("please take full snapshot after start recording");vb(e)}ed.mirror=zs;ed.takeFullSnapshot=M1e;function L1e(e,t){try{return e?e(t):new cA}catch{return console.warn("Unable to initialize CanvasManager"),new cA}}const R1e=3,F1e=5;function Z8(e){return e>9999999999?e:e*1e3}function K3(e){return e>9999999999?e/1e3:e}function sy(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:nn.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ol(t,10,1e3)}}),t.category==="console")))}const V1e="button,a";function BB(e){return e.closest(V1e)||e}function zB(e){const t=jB(e);return!t||!(t instanceof Element)?t:BB(t)}function jB(e){return B1e(e)?e.target:e}function B1e(e){return typeof e=="object"&&!!e&&"target"in e}let Mc;function z1e(e){return Mc||(Mc=[],j1e()),Mc.push(e),()=>{const t=Mc?Mc.indexOf(e):-1;t>-1&&Mc.splice(t,1)}}function j1e(){Gr(ui,"open",function(e){return function(...t){if(Mc)try{Mc.forEach(n=>n())}catch{}return e.apply(ui,t)}})}function U1e(e,t,n){e.handleClick(t,n)}class H1e{constructor(t,n,i=sy){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=i}addListeners(){const t=z1e(()=>{this._lastMutation=dA()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Y1e(n,this._ignoreSelector)||!W1e(t))return;const i={timestamp:K3(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(r=>r.node===i.node&&Math.abs(r.timestamp-i.timestamp)<1)||(this._clicks.push(i),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=K3(t)}registerScroll(t=Date.now()){this._lastScroll=K3(t)}registerClick(t){const n=BB(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=dA();this._clicks.forEach(i=>{!i.mutationAfter&&this._lastMutation&&(i.mutationAfter=i.timestamp<=this._lastMutation?this._lastMutation-i.timestamp:void 0),!i.scrollAfter&&this._lastScroll&&(i.scrollAfter=i.timestamp<=this._lastScroll?this._lastScroll-i.timestamp:void 0),i.timestamp+this._timeout<=n&&t.push(i)});for(const i of t){const r=this._clicks.indexOf(i);r>-1&&(this._generateBreadcrumbs(i),this._clicks.splice(r,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,i=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!i&&!r,{clickCount:o,clickBreadcrumb:s}=t;if(a){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=l<this._timeout*1e3?"mutation":"timeout",c={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:ui.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,c);return}if(o>1){const l={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:ui.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const q1e=["A","BUTTON","INPUT"];function Y1e(e,t){return!!(!q1e.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function W1e(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function dA(){return Date.now()/1e3}function G1e(e,t){try{if(!K1e(t))return;const{source:n}=t.data;if(n===rn.Mutation&&e.registerMutation(t.timestamp),n===rn.Scroll&&e.registerScroll(t.timestamp),Z1e(t)){const{type:i,id:r}=t.data,a=ed.mirror.getNode(r);a instanceof HTMLElement&&i===ja.Click&&e.registerClick(a)}}catch{}}function K1e(e){return e.type===R1e}function Z1e(e){return e.data.source===rn.MouseInteraction}function Rl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var gb;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(gb||(gb={}));const X1e=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function J1e(e){const t={};for(const n in e)if(X1e.has(n)){let i=n;(n==="data-testid"||n==="data-test-id")&&(i="testId"),t[i]=e[n]}return t}const Q1e=e=>t=>{if(!e.isEnabled())return;const n=eye(t);if(!n)return;const i=t.name==="click",r=i?t.event:void 0;i&&e.clickDetector&&r&&r.target&&!r.altKey&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&U1e(e.clickDetector,n,zB(t.event)),sy(e,n)};function UB(e,t){const n=ed.mirror.getId(e),i=n&&ed.mirror.getNode(n),r=i&&ed.mirror.getMeta(i),a=r&&nye(r)?r:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(o=>o.type===gb.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:J1e(a.attributes)}}:{}}}function eye(e){const{target:t,message:n}=tye(e);return Rl({category:`ui.${e.name}`,...UB(t,n)})}function tye(e){const t=e.name==="click";let n,i=null;try{i=t?zB(e.event):jB(e.event),n=sd(i,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:i,message:n}}function nye(e){return e.type===gb.Element}function iye(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=rye(t);n&&sy(e,n)}function rye(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:r,key:a,target:o}=e;if(!o||aye(o)||!a)return null;const s=t||i||r,l=a.length===1;if(!s&&l)return null;const u=sd(o,{maxStringLength:200})||"<unknown>",c=UB(o,u);return Rl({category:"ui.keyDown",message:u,data:{...c.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:r,key:a}})}function aye(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const fA={resource:cye,paint:lye,navigation:uye};function oye(e){return e.map(sye).filter(Boolean)}function sye(e){return fA[e.entryType]?fA[e.entryType](e):null}function rm(e){return((jo||ui.performance.timeOrigin)+e)/1e3}function lye(e){const{duration:t,entryType:n,name:i,startTime:r}=e,a=rm(r);return{type:n,name:i,start:a,end:a+t,data:void 0}}function uye(e){const{entryType:t,name:n,decodedBodySize:i,duration:r,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:m,type:g}=e;return r===0?null:{type:`${t}.${g}`,start:rm(h),end:rm(a),name:n,data:{size:m,decodedBodySize:i,encodedBodySize:o,duration:r,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:f}}}function cye(e){const{entryType:t,initiatorType:n,name:i,responseEnd:r,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:rm(a),end:rm(r),name:i,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}}function dye(e){const t=e.entries,n=t[t.length-1],i=n?n.element:void 0,r=e.value,a=rm(r);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:r,size:r,nodeId:i?ed.mirror.getId(i):void 0}}}function fye(e){function t(r){e.performanceEntries.includes(r)||e.performanceEntries.push(r)}function n({entries:r}){r.forEach(t)}const i=[];return["navigation","paint","resource"].forEach(r=>{i.push(Qp(r,n))}),i.push(ZV(({metric:r})=>{e.replayPerformanceEntries.push(dye(r))})),()=>{i.forEach(r=>r())}}const ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hye='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function pye(){const e=new Blob([hye]);return URL.createObjectURL(e)}function Ya(e,t){ii&&(Xe.info(e),t&&HB(e))}function wp(e,t){ii&&(Xe.info(e),t&&setTimeout(()=>{HB(e)},0))}function HB(e){ld({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class X8 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${H8}.`)}}class qB{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>H8)throw new X8;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Z8(t):null}}class mye{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:i})=>{i.success?t():n()},{once:!0}),this._worker.addEventListener("error",i=>{n(i)},{once:!0})}),this._ensureReadyPromise)}destroy(){Ya("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const i=this._getAndIncrementId();return new Promise((r,a)=>{const o=({data:s})=>{const l=s;if(l.method===t&&l.id===i){if(this._worker.removeEventListener("message",o),!l.success){ii&&Xe.error("[Replay]",l.response),a(new Error("Error in compression worker"));return}r(l.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:i,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class vye{constructor(t){this._worker=new mye(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Z8(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const i=JSON.stringify(t);return this._totalSize+=i.length,this._totalSize>H8?Promise.reject(new X8):this._sendEventToWorker(i)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ii&&Xe.warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class gye{constructor(t){this._fallback=new qB,this._compression=new vye(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Ya("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,i=[];for(const r of t)i.push(this._compression.addEvent(r));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(i)}catch(r){ii&&Xe.warn("[Replay] Failed to add events when switching buffers.",r)}}}function yye({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=_ye(t);if(n)return n}return Ya("[Replay] Using simple buffer"),new qB}function _ye(e){try{const t=e||bye();if(!t)return;Ya(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new gye(n)}catch{Ya("[Replay] Failed to create compression worker")}}function bye(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?pye():""}function J8(){try{return"sessionStorage"in ui&&!!ui.sessionStorage}catch{return!1}}function wye(e){Sye(),e.session=void 0}function Sye(){if(J8())try{ui.sessionStorage.removeItem(j8)}catch{}}function YB(e){return e===void 0?!1:Math.random()<e}function WB(e){const t=Date.now(),n=e.id||Hi(),i=e.started||t,r=e.lastActivity||t,a=e.segmentId||0,o=e.sampled,s=e.previousSessionId;return{id:n,started:i,lastActivity:r,segmentId:a,sampled:o,previousSessionId:s}}function Q8(e){if(J8())try{ui.sessionStorage.setItem(j8,JSON.stringify(e))}catch{}}function Cye(e,t){return YB(e)?"session":t?"buffer":!1}function hA({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const r=Cye(e,t),a=WB({sampled:r,previousSessionId:i});return n&&Q8(a),a}function Eye(e){if(!J8())return null;try{const t=ui.sessionStorage.getItem(j8);if(!t)return null;const n=JSON.parse(t);return wp("[Replay] Loading existing session",e),WB(n)}catch{return null}}function e4(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function GB(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return e4(e.started,t,i)||e4(e.lastActivity,n,i)}function KB(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!GB(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Z3({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},r){const a=r.stickySession&&Eye(e);return a?KB(a,{sessionIdleExpire:t,maxReplayDuration:n})?(wp("[Replay] Session in sessionStorage is expired, creating new one..."),hA(r,{previousSessionId:a.id})):a:(wp("[Replay] Creating new session",e),hA(r,{previousSessionId:i}))}function xye(e){return e.type===nn.Custom}function ek(e,t,n){return XB(e,t)?(ZB(e,t,n),!0):!1}function kye(e,t,n){return XB(e,t)?ZB(e,t,n):Promise.resolve(null)}async function ZB(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=e.getOptions(),r=Tye(t,i.beforeAddRecordingEvent);return r?await e.eventBuffer.addEvent(r):void 0}catch(i){const r=i&&i instanceof X8?"addEventSizeExceeded":"addEvent";ii&&Xe.error(i),await e.stop({reason:r});const a=Wn();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function XB(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Z8(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Ya(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function Tye(e,t){try{if(typeof t=="function"&&xye(e))return t(e)}catch(n){return ii&&Xe.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function tk(e){return!e.type}function t4(e){return e.type==="transaction"}function Pye(e){return e.type==="replay_event"}function pA(e){return e.type==="feedback"}function JB(e){const t=Oye();return(n,i)=>{if(!e.isEnabled()||!tk(n)&&!t4(n))return;const r=i&&i.statusCode;if(!(t&&(!r||r<200||r>=300))){if(t4(n)){$ye(e,n);return}Aye(e,n)}}}function $ye(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Aye(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:i}=e.getOptions();typeof i=="function"&&!i(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function Oye(){const e=Wn();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function Dye(e){return t=>{!e.isEnabled()||!tk(t)||Iye(e,t)}}function Iye(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const i=Rl({category:"replay.hydrate-error"});sy(e,i)}}function Nye(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function Mye(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:nn.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Lye(e,t){return e.recordingMode!=="buffer"||t.message===U8||!t.exception||t.type?!1:YB(e.getOptions().errorSampleRate)}function Rye(e,t=!1){const n=t?JB(e):void 0;return Object.assign((i,r)=>e.isEnabled()?Pye(i)?(delete i.breadcrumbs,i):!tk(i)&&!t4(i)&&!pA(i)||!e.checkAndHandleExpiredSession()?i:pA(i)?(e.flush(),i.contexts.feedback.replay_id=e.getSessionId(),Mye(e,i),i):Nye(i,r)&&!e.getOptions()._experiments.captureExceptions?(ii&&Xe.log("[Replay] Ignoring error from rrweb internals",i),null):((Lye(e,i)||e.recordingMode==="session")&&(i.tags={...i.tags,replayId:e.getSessionId()}),n&&n(i,{statusCode:200}),i):i,{id:"Replay"})}function Tw(e,t){return t.map(({type:n,start:i,end:r,name:a,data:o})=>{const s=e.throttledAddEvent({type:nn.Custom,timestamp:i,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:i,endTimestamp:r,data:o}}});return typeof s=="string"?Promise.resolve(null):s})}function Fye(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}function Vye(e){return t=>{if(!e.isEnabled())return;const n=Fye(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Tw(e,[n]),!1)))}}function Bye(e,t){return ii&&e.getOptions()._experiments.traceInternals?!1:Lpe(t,Wn())}function Pw(e,t){e.isEnabled()&&t!==null&&(Bye(e,t.name)||e.addUpdate(()=>(Tw(e,[t]),!0)))}function zye(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:r}=e;if(!n)return null;const{method:a,url:o}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:o,data:{method:a,statusCode:r?r.status:void 0}}}function jye(e){return t=>{if(!e.isEnabled())return;const n=zye(t);Pw(e,n)}}function Uye(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,r=i[qc];if(!t||!n||!r)return null;const{method:a,url:o,status_code:s}=r;return o===void 0?null:{type:"resource.xhr",name:o,start:t/1e3,end:n/1e3,data:{method:a,statusCode:s}}}function Hye(e){return t=>{if(!e.isEnabled())return;const n=Uye(t);Pw(e,n)}}function $w(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=nz(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function QB(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ez(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nz(e)];if(!e)return[void 0]}catch{return ii&&Xe.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ii&&Xe.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function yb(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},i=n.warnings||[];return n.warnings=[...i,t],e._meta=n,e}function tz(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:r,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:n/1e3,end:i/1e3,name:r,data:Za({method:a,statusCode:o,request:s,response:l})}}function m1(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function td(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:r,warnings:a}=qye(n);return i.body=r,a&&a.length>0&&(i._meta={warnings:a}),i}function n4(e,t){return Object.keys(e).reduce((n,i)=>{const r=i.toLowerCase();return t.includes(r)&&e[i]&&(n[r]=e[i]),n},{})}function nz(e){return new URLSearchParams(e).toString()}function qye(e){if(!e||typeof e!="string")return{body:e};const t=e.length>J$,n=Yye(e);if(t){const i=e.slice(0,J$);return n?{body:i,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${i}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Yye(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function _b(e,t){const n=Wye(e);return Tm(n,t)}function Wye(e,t=ui.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ui.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;return!e.endsWith("/")&&i.endsWith("/")?i.slice(0,-1):i}async function Gye(e,t,n){try{const i=await Zye(e,t,n),r=tz("resource.fetch",i);Pw(n.replay,r)}catch(i){ii&&Xe.error("[Replay] Failed to capture fetch breadcrumb",i)}}function Kye(e,t,n){const{input:i,response:r}=t,a=i?iz(i):void 0,o=$w(a,n.textEncoder),s=r?QB(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}async function Zye(e,t,n){const i=Date.now(),{startTimestamp:r=i,endTimestamp:a=i}=t,{url:o,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=_b(o,n.networkDetailAllowUrls)&&!_b(o,n.networkDetailDenyUrls),f=d?Xye(n,t.input,u):m1(u),h=await Jye(d,n,t.response,c);return{startTimestamp:r,endTimestamp:a,url:o,method:s,statusCode:l,request:f,response:h}}function Xye({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const r=n?t0e(n,t):{};if(!e)return td(r,i,void 0);const a=iz(n),[o,s]=ez(a),l=td(r,i,o);return s?yb(l,s):l}async function Jye(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},r,a){if(!e&&a!==void 0)return m1(a);const o=r?rz(r.headers,i):{};if(!r||!t&&a!==void 0)return td(o,a,void 0);const[s,l]=await e0e(r),u=Qye(s,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:o});return l?yb(u,l):u}function Qye(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:r,headers:a}){try{const o=e&&e.length&&i===void 0?$w(e,n):i;return r?t?td(a,o,e):td(a,o,void 0):m1(o)}catch(o){return ii&&Xe.warn("[Replay] Failed to serialize response body",o),td(a,i,void 0)}}async function e0e(e){const t=n0e(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await i0e(t)]}catch(n){return ii&&Xe.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function iz(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function rz(e,t){const n={};return t.forEach(i=>{e.get(i)&&(n[i]=e.get(i))}),n}function t0e(e,t){return e.length===1&&typeof e[0]!="string"?mA(e[0],t):e.length===2?mA(e[1],t):{}}function mA(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?rz(n,t):Array.isArray(n)?{}:n4(n,t):{}}function n0e(e){try{return e.clone()}catch(t){ii&&Xe.warn("[Replay] Failed to clone response body",t)}}function i0e(e){return new Promise((t,n)=>{const i=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);r0e(e).then(r=>t(r),r=>n(r)).finally(()=>clearTimeout(i))})}async function r0e(e){return await e.text()}async function a0e(e,t,n){try{const i=s0e(e,t,n),r=tz("resource.xhr",i);Pw(n.replay,r)}catch(i){ii&&Xe.error("[Replay] Failed to capture xhr breadcrumb",i)}}function o0e(e,t,n){const{xhr:i,input:r}=t;if(!i)return;const a=$w(r,n.textEncoder),o=i.getResponseHeader("content-length")?QB(i.getResponseHeader("content-length")):d0e(i.response,i.responseType,n.textEncoder);a!==void 0&&(e.data.request_body_size=a),o!==void 0&&(e.data.response_body_size=o)}function s0e(e,t,n){const i=Date.now(),{startTimestamp:r=i,endTimestamp:a=i,input:o,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!s||!_b(l,n.networkDetailAllowUrls)||_b(l,n.networkDetailDenyUrls)){const k=m1(d),P=m1(f);return{startTimestamp:r,endTimestamp:a,url:l,method:u,statusCode:c,request:k,response:P}}const h=s[qc],m=h?n4(h.request_headers,n.networkRequestHeaders):{},g=n4(l0e(s),n.networkResponseHeaders),[v,y]=n.networkCaptureBodies?ez(o):[void 0],[_,S]=n.networkCaptureBodies?u0e(s):[void 0],w=td(m,d,v),x=td(g,f,_);return{startTimestamp:r,endTimestamp:a,url:l,method:u,statusCode:c,request:y?yb(w,y):w,response:S?yb(x,S):x}}function l0e(e){const t=e.getAllResponseHeaders();return t?t.split(`\r `).reduce((n,i)=>{const[r,a]=i.split(": ");return n[r.toLowerCase()]=a,n},{}):{}}function u0e(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return c0e(e.response,e.responseType)}catch(n){t.push(n)}return ii&&Xe.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function c0e(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return ii&&Xe.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ii&&Xe.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function d0e(e,t,n){try{const i=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return $w(i,n)}catch{return}}function f0e(e){const t=Wn();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",(u,c)=>h0e(l,u,c)):(T8(jye(e)),P8(Hye(e)))}catch{}}function h0e(e,t,n){if(t.data)try{p0e(t)&&v0e(n)&&(o0e(t,n,e),a0e(t,n,e)),m0e(t)&&g0e(n)&&(Kye(t,n,e),Gye(t,n,e))}catch{ii&&Xe.warn("Error when enriching network breadcrumb")}}function p0e(e){return e.category==="xhr"}function m0e(e){return e.category==="fetch"}function v0e(e){return e&&e.xhr}function g0e(e){return e&&e.response}let vA=null;function y0e(e){return!!e.category}const _0e=e=>t=>{if(!e.isEnabled())return;const n=b0e(t);n&&sy(e,n)};function b0e(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return vA===t||!t||(vA=t,!y0e(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?w0e(t):Rl(t)}function w0e(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Rl(e);let n=!1;const i=t.map(r=>{if(!r)return r;if(typeof r=="string")return r.length>l0?(n=!0,`${r.slice(0,l0)}…`):r;if(typeof r=="object")try{const a=Ol(r,7);return JSON.stringify(a).length>l0?(n=!0,`${JSON.stringify(a,null,2).slice(0,l0)}…`):a}catch{}return r});return Rl({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function S0e(e){const t=vo(),n=Wn();t.addScopeListener(_0e(e)),oV(Q1e(e)),gw(Vye(e)),f0e(e);const i=Rye(e,!gA(n));n&&n.addEventProcessor?n.addEventProcessor(i):$pe(i),gA(n)&&(n.on("beforeSendEvent",Dye(e)),n.on("afterSendEvent",JB(e)),n.on("createDsc",r=>{const a=e.getSessionId();a&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=a)}),n.on("startTransaction",r=>{e.lastTransaction=r}),n.on("finishTransaction",r=>{e.lastTransaction=r}),n.on("beforeSendFeedback",(r,a)=>{const o=e.getSessionId();a&&a.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}function gA(e){return!!(e&&e.on)}async function C0e(e){try{return Promise.all(Tw(e,[E0e(ui.performance.memory)]))}catch{return[]}}function E0e(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,r=Date.now()/1e3;return{type:"memory",name:"memory",start:r,end:r,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}function x0e(e,t,n){let i,r,a;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),i=e(),i}function l(){r!==void 0&&clearTimeout(r),a!==void 0&&clearTimeout(a),r=a=void 0}function u(){return r!==void 0||a!==void 0?s():i}function c(){return r&&clearTimeout(r),r=setTimeout(s,t),o&&a===void 0&&(a=setTimeout(s,o)),i}return c.cancel=l,c.flush=u,c}function k0e(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession()){ii&&Xe.warn("[Replay] Received replay event after session expired.");return}const r=i||!t;t=!0,e.clickDetector&&G1e(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&r&&e.setInitialState(),!ek(e,n,r))return!0;if(!r)return!1;if(P0e(e,r),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const a=e.eventBuffer.getEarliestTimestamp();a&&(Ya(`[Replay] Updating session start time to earliest event in buffer to ${new Date(a)}`,e.getOptions()._experiments.traceInternals),e.session.started=a,e.getOptions().stickySession&&Q8(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function T0e(e){const t=e.getOptions();return{type:nn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function P0e(e,t){!t||!e.session||e.session.segmentId!==0||ek(e,T0e(e),!1)}function $0e(e,t,n,i){return wd(pV(e,O8(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function A0e({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)} `;if(typeof e=="string")n=`${i}${e}`;else{const a=new TextEncoder().encode(i);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function O0e({client:e,scope:t,replayId:n,event:i}){const r=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:r};e.emit&&e.emit("preprocessEvent",i,a);const o=await bV(e.getOptions(),i,a,t,e,Sd());if(!o)return null;o.platform=o.platform||"javascript";const s=e.getSdkMetadata&&e.getSdkMetadata(),{name:l,version:u}=s&&s.sdk||{};return o.sdk={...o.sdk,name:l||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function D0e({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:r,session:a}){const o=A0e({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:l,traceIds:u,initialTimestamp:c}=i,d=Wn(),f=vo(),h=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!h||!m||!a.sampled)return;const g={type:vge,replay_start_timestamp:c/1e3,timestamp:r/1e3,error_ids:l,trace_ids:u,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},v=await O0e({scope:f,client:d,replayId:t,event:g});if(!v){d.recordDroppedEvent("event_processor","replay",g),Ya("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;const y=$0e(v,o,m,d.getOptions().tunnel);let _;try{_=await h.send(y)}catch(w){const x=new Error(U8);try{x.cause=w}catch{}throw x}if(!_)return _;if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new az(_.statusCode);const S=vV({},_);if(mV(S,"replay"))throw new oz(S);return _}class az extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class oz extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function sz(e,t={count:0,interval:Sge}){const{recordingData:n,options:i}=e;if(n.length)try{return await D0e(e),!0}catch(r){if(r instanceof az||r instanceof oz)throw r;if(Vhe("Replays",{_retryCount:t.count}),ii&&i._experiments&&i._experiments.captureExceptions&&ey(r),t.count>=Cge){const a=new Error(`${U8} - max retries exceeded`);try{a.cause=r}catch{}throw a}return t.interval*=++t.count,new Promise((a,o)=>{setTimeout(async()=>{try{await sz(e,t),a(!0)}catch(s){o(s)}},t.interval)})}}const lz="__THROTTLED",I0e="__SKIPPED";function N0e(e,t,n){const i=new Map,r=s=>{const l=s-n;i.forEach((u,c)=>{c<l&&i.delete(c)})},a=()=>[...i.values()].reduce((s,l)=>s+l,0);let o=!1;return(...s)=>{const l=Math.floor(Date.now()/1e3);if(r(l),a()>=t){const c=o;return o=!0,c?I0e:lz}o=!1;const u=i.get(l)||0;return i.set(l,u+1),e(...s)}}class Lc{constructor({options:t,recordingOptions:n}){Lc.prototype.__init.call(this),Lc.prototype.__init2.call(this),Lc.prototype.__init3.call(this),Lc.prototype.__init4.call(this),Lc.prototype.__init5.call(this),Lc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:gge,sessionIdleExpire:yge},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=x0e(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=N0e((o,s)=>kye(this,o,s),300,5);const{slowClickTimeout:i,slowClickIgnoreSelectors:r}=this.getOptions(),a=i?{threshold:Math.min(Ege,i),timeout:i,scrollTimeout:xge,ignoreSelector:r?r.join(","):""}:void 0;a&&(this.clickDetector=new H1e(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:i}=this._options;if(!(n<=0&&i<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",wp(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");wp("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=Z3({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");wp("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=Z3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ed({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:wge},emit:k0e(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Ya(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,wye(this)}catch(i){this._handleException(i)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ya("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Ya("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Ya("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const i=this.stopRecording();!t||!i||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&e4(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ui.location.pathname}${ui.location.hash}${ui.location.search}`,n=`${ui.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const i=this._throttledAddEvent(t,n);if(i===lz){const r=Rl({category:"replay.throttled"});this.addUpdate(()=>!ek(this,{type:F1e,timestamp:r.timestamp||0,data:{tag:"breadcrumb",payload:r,metric:!0}}))}return i}getCurrentRoute(){const t=this.lastTransaction||vo().getTransaction(),i=(t&&Gi(t).data||{})[ps];if(!(!t||!i||!["route","custom"].includes(i)))return Gi(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=yye({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ii&&Xe.error("[Replay]",t),ii&&this._options._experiments&&this._options._experiments.captureExceptions&&ey(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,i=Z3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=i}_checkSession(){if(!this.session)return!1;const t=this.session;return KB(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ui.document.addEventListener("visibilitychange",this._handleVisibilityChange),ui.addEventListener("blur",this._handleWindowBlur),ui.addEventListener("focus",this._handleWindowFocus),ui.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(S0e(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=fye(this)}_removeListeners(){try{ui.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ui.removeEventListener("blur",this._handleWindowBlur),ui.removeEventListener("focus",this._handleWindowFocus),ui.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{ui.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Rl({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Rl({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{iye(this,t)}}_doChangeToBackgroundTasks(t){!this.session||GB(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Ya("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:nn.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=oye(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Tw(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const i=n.getEarliestTimestamp();i&&i<this._context.initialTimestamp&&(this._context.initialTimestamp=i)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ii&&Xe.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await C0e(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const i=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await sz({replayId:t,recordingData:a,segmentId:r,eventContext:i,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const i=Wn();i&&i.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ii&&Xe.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,r=Date.now()-n;this._debouncedFlush.cancel();const a=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(a||o){Ya(`[Replay] Session duration (${Math.floor(r/1e3)}s) is too ${a?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),a&&this._debouncedFlush();return}const s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&Ya("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(l){ii&&Xe.error(l)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Q8(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,i=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,a=i&&n>i;if(n>r||a){const o=Rl({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(o)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function lv(e,t,n,i){const r=typeof i=="string"?i.split(","):[],a=[...e,...r,...t];return typeof n<"u"&&(typeof n=="string"&&a.push(`.${n}`),Zl(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),a.join(",")}function M0e({mask:e,unmask:t,block:n,unblock:i,ignore:r,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:l,ignoreClass:u}){const c=['base[href="/"]'],d=lv(e,[".sentry-mask","[data-sentry-mask]"],s,l),f=lv(t,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:d,unmaskTextSelector:f,blockSelector:lv(n,[".sentry-block","[data-sentry-block]",...c],a,o),unblockSelector:lv(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:lv(r,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return a instanceof RegExp&&(h.blockClass=a),s instanceof RegExp&&(h.maskTextClass=s),h}function L0e({el:e,key:t,maskAttributes:n,maskAllText:i,privacyOptions:r,value:a}){return!i||r.unmaskTextSelector&&e.matches(r.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const yA='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',R0e=["content-length","content-type","accept"];let _A=!1;const aYe=e=>new Aw(e);class Aw{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=_ge,flushMaxDelay:n=bge,minReplayDuration:i=kge,maxReplayDuration:r=Q$,stickySession:a=!0,useCompression:o=!0,workerUrl:s,_experiments:l={},sessionSampleRate:u,errorSampleRate:c,maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:S=[],networkCaptureBodies:w=!0,networkRequestHeaders:x=[],networkResponseHeaders:k=[],mask:P=[],maskAttributes:E=["title","placeholder"],unmask:A=[],block:D=[],unblock:T=[],ignore:O=[],maskFn:N,beforeAddRecordingEvent:V,beforeErrorSampling:j,blockClass:q,blockSelector:ne,maskInputOptions:ae,maskTextClass:Y,maskTextSelector:M,ignoreClass:I}={}){this.name=Aw.id;const W=M0e({mask:P,unmask:A,block:D,unblock:T,ignore:O,blockClass:q,blockSelector:ne,maskTextClass:Y,maskTextSelector:M,ignoreClass:I});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...ae||{},password:!0},maskTextFn:N,maskInputFn:N,maskAttributeFn:(te,he,oe)=>L0e({maskAttributes:E,maskAllText:d,privacyOptions:W,key:te,value:he,el:oe}),...W,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:te=>{try{te.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(i,Tge),maxReplayDuration:Math.min(r,Q$),stickySession:a,sessionSampleRate:u,errorSampleRate:c,useCompression:o,workerUrl:s,blockAllMedia:h,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:_,networkDetailDenyUrls:S,networkCaptureBodies:w,networkRequestHeaders:bA(x),networkResponseHeaders:bA(k),beforeAddRecordingEvent:V,beforeErrorSampling:j,_experiments:l},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),typeof c=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${yA}`:yA),this._isInitialized&&y$())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return _A}set _isInitialized(t){_A=t}setupOnce(){y$()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=F0e(this._initialOptions);this._replay=new Lc({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=Wn().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Aw.__initStatic();function F0e(e){const t=Wn(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...Za(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&Zl(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(i.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(i.errorSampleRate=n.replaysOnErrorSampleRate),i):(Zl(()=>{console.warn("SDK client is not available.")}),i)}function bA(e){return[...R0e,...e.map(t=>t.toLowerCase())]}const uz=["activate","mount","update"],V0e=/(?:^|[-_])(\w)/g,B0e=e=>e.replace(V0e,t=>t.toUpperCase()).replace(/[-_]/g,""),z0e="<Root>",X3="<Anonymous>",j0e=(e,t)=>e.repeat?e.repeat(t):e,wg=(e,t)=>{if(!e)return X3;if(e.$root===e)return z0e;if(!e.$options)return X3;const n=e.$options;let i=n.name||n._componentTag;const r=n.__file;if(!i&&r){const a=r.match(/([^/\\]+)\.vue$/);a&&(i=a[1])}return(i?`<${B0e(i)}>`:X3)+(r&&t!==!1?` at ${r}`:"")},U0e=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` found in ${t.map((r,a)=>`${(a===0?"---> ":j0e(" ",5+a*2))+(Array.isArray(r)?`${wg(r[0])}... (${r[1]} recursive calls)`:wg(r))}`).join(` `)}`}return` (found in ${wg(e)})`},H0e=(e,t)=>{const{errorHandler:n,warnHandler:i,silent:r}=e.config;e.config.errorHandler=(a,o,s)=>{const l=wg(o,!1),u=o?U0e(o):"",c={componentName:l,lifecycleHook:s,trace:u};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?c.propsData=o.$options.propsData:o.$props&&(c.propsData=o.$props)),setTimeout(()=>{ey(a,{captureContext:{contexts:{vue:c}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,a,o,s),t.logErrors){const d=typeof console<"u",f=`Error in ${s}: "${a&&a.toString()}"`;i?i.call(null,f,o,u):d&&!r&&Zl(()=>{console.error(`[Vue warn]: ${f}${u}`)})}}},q0e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wA="ui.vue",Y0e={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function W0e(){return vo().getTransaction()}function G0e(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const K0e=e=>{const t=(e.hooks||[]).concat(uz).filter((i,r,a)=>a.indexOf(i)===r),n={};for(const i of t){const r=Y0e[i];if(!r){q0e&&Xe.warn(`Unknown hook: ${i}`);continue}for(const a of r)n[a]=function(){const o=this.$root===this;o&&d1()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||ob({name:"Application Render",op:`${wA}.render`,origin:"auto.ui.vue"}));const s=wg(this,!1),l=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;if(!(!o&&!l))if(this.$_sentrySpans=this.$_sentrySpans||{},a==r[0]){if(this.$root&&this.$root.$_sentryRootSpan||d1()){const c=this.$_sentrySpans[i];c&&c.end(),this.$_sentrySpans[i]=ob({name:`Vue <${s}>`,op:`${wA}.${i}`,origin:"auto.ui.vue"})}}else{const u=this.$_sentrySpans[i];if(!u)return;u.end(),G0e(this,Am(),e.timeout)}}}return n},Z0e=xn,X0e={Vue:Z0e.Vue,attachProps:!0,logErrors:!0,hooks:uz,timeout:2e3,trackComponents:!1},cz="Vue",J0e=(e={})=>({name:cz,setupOnce(){},setup(t){Q0e(t,e)}}),dz=J0e;hc(cz,dz);function Q0e(e,t){const n={...X0e,...e.getOptions(),...t};if(!n.Vue&&!n.app){Zl(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?k8(n.app).forEach(r=>SA(r,n)):n.Vue&&SA(n.Vue,n)}const SA=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&Zl(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),H0e(e,t),vh(t)&&e.mixin(K0e({...t,...t.tracingOptions}))};function oYe(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:c1}],version:c1}},defaultIntegrations:[...bB(),dz()],...e};pge(t)}function e_e(e,t,n){e.onError(i=>ey(i,{mechanism:{handled:!1}})),e.beforeEach((i,r,a)=>{const o=r.name==null&&r.matched.length===0,s={[Yc]:"auto.navigation.vue"};for(const c of Object.keys(i.params))s[`params.${c}`]=i.params[c];for(const c of Object.keys(i.query)){const d=i.query[c];d&&(s[`query.${c}`]=d)}let l=i.path,u="url";if(i.name&&t.routeLabel!=="path"?(l=i.name.toString(),u="custom"):i.matched[0]&&i.matched[0].path&&(l=i.matched[0].path,u="route"),t.instrumentPageLoad&&o){const c=W0e();c&&((Gi(c).data||{})[ps]!=="custom"&&(c.updateName(l),c.setAttribute(ps,u)),c.setAttributes({...s,[Yc]:"auto.pageload.vue"}))}t.instrumentNavigation&&!o&&(s[ps]=u,n({name:l,op:"navigation",attributes:s})),a&&a()})}function sYe(e={}){if(!e.router)return q$(e);const t=q$({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:i=!0,instrumentPageLoad:r=!0,routeLabel:a="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),e_e(n,{routeLabel:a,instrumentNavigation:i,instrumentPageLoad:r},l=>{eB(o,l)})}}}const fz=vn("/utils"),lYe=async e=>{const t=await fz.get("/geo?lang=fr-FR",{params:e});return{status:t.status,data:t.data}},t_e=async()=>{const e=await fz.get("/geoip");return{status:e.status,data:e.data}};class n_e{constructor(t,n="weekly"){Ns(this,"apiKey");Ns(this,"version");Ns(this,"scriptLoaded",null);Ns(this,"librarySet",new Set);Ns(this,"apiBaseUrl","https://maps.googleapis.com/maps/api/js");Ns(this,"errorMessage","The Google Maps JavaScript API could not load.");this.apiKey=t,this.version=n}loadScript(){return this.scriptLoaded?this.scriptLoaded:(this.scriptLoaded=new Promise((t,n)=>{const i=document.createElement("script"),r=new URLSearchParams({key:this.apiKey,v:this.version,libraries:[...this.librarySet].join(","),callback:"initMapCallback"});i.src=`${this.apiBaseUrl}?${r}`,i.async=!0,i.defer=!0,i.onload=()=>t(),i.onerror=()=>n(new Error(this.errorMessage)),document.head.appendChild(i)}),this.scriptLoaded)}importLibrary(t){return this.librarySet.add(t),this.loadScript()}async initGeocoderLibrary(){await this.importLibrary("geocoding");const{Geocoder:t}=await google.maps.importLibrary("geocoding");return new t}async initPlacesLibrary(){await this.importLibrary("places");const{Place:t,AutocompleteSessionToken:n,AutocompleteSuggestion:i}=await google.maps.importLibrary("places");return{Place:t,AutocompleteSessionToken:n,AutocompleteSuggestion:i}}}function i_e(e){if(!e||!e.addressComponents)return;const t=e.addressComponents.find(n=>n.types.includes("locality"));return t?t.longText:""}function r_e(e){if(!e||!e.addressComponents)return;const t=e.addressComponents.find(n=>n.types.includes("postal_code"));return t?t.longText:""}function a_e(e){if(!e||!e.addressComponents)return;const t=e.addressComponents.find(n=>n.types.includes("country"));return t?t.longText:""}const nk=Pi("googleMaps",()=>{const e=z(),t=z();function n(s){e.value=new n_e(s)}async function i(s){var m,g;const l=t.value,u=new l({id:s,requestedLanguage:"fr"});await u.fetchFields({fields:["displayName","formattedAddress","location","addressComponents"]});const c=i_e(u),d=r_e(u),f=a_e(u);return{addressLine:u.displayName,latitude:String((m=u.location)==null?void 0:m.lat()),longitude:String((g=u.location)==null?void 0:g.lng()),country:f,postalCode:d,city:c,formattedAddress:u.formattedAddress}}async function r(s,l){const{AutocompleteSessionToken:u,AutocompleteSuggestion:c,Place:d}=await e.value.initPlacesLibrary();t.value=d;const f={input:s,language:"fr-FR",region:"fr",includedRegionCodes:l},h=new u;f.sessionToken=h;const{suggestions:m}=await c.fetchAutocompleteSuggestions(f),g=[];for(const v of m){const y=v.placePrediction;g.push({label:y.text.toString(),value:y.toPlace().id})}return g}return{googleMapsService:e,initialize:n,getFormatedAddressFromPlace:i,getAutocompleteSuggestionsPlaces:r,getReverseGoogleGeoCoding:async(s,l)=>(await e.value.initGeocoderLibrary()).geocode({location:{lat:s,lng:l}}),getFormatedAddressFromQuery:async({searchQuery:s,city:l,postalCode:u,country:c})=>{const d=await e.value.initGeocoderLibrary(),h=[s,u,l,c].filter(Boolean).join(", ");try{const{results:m}=await d.geocode({address:h,language:"fr"}),g=m[0],v=g.geometry.location,y=S=>{var w;return((w=g.address_components.find(x=>x.types.includes(S)))==null?void 0:w.long_name)||""};return{addressLine:g.formatted_address,latitude:String(v.lat()),longitude:String(v.lng()),city:y("locality")||y("administrative_area_level_2"),postalCode:y("postal_code"),country:y("country"),formattedAddress:g.formatted_address}}catch{return null}}}}),hz=_8.create({baseURL:"https://search.holitime.org",timeout:1e4,headers:{"Content-Type":"application/json","X-TYPESENSE-API-KEY":"LYKiC9aeiXd6NrfummDAkRG7lmbfu8oy"}});_8.create({baseURL:"https://search.holitime.org",timeout:1e4,headers:{"Content-Type":"application/json","X-TYPESENSE-API-KEY":{}.VITE_TYPESENSE_PATIENT_RECORDS_SEARCH_API_KEY}});const pz=Pi("searchFiltersStore",()=>{const e=z([]),t=Zh("selectedDiscipline",""),n=Zh("priceOrder","all"),i=Zh("consultationType","all"),r=Zh("opinionOrder","all"),a=Zh("sortBy","pertinence"),o=B(()=>t.value===""&&n.value==="all"&&i.value==="all"&&r.value==="all"&&a.value==="pertinence");return{selectedDiscipline:t,priceOrder:n,sortBy:a,consultationType:i,opinionOrder:r,areFiltersDefault:o,disciplines:e,resetFilters:()=>{t.value="",a.value="pertinence",n.value="all",i.value="all",r.value="all"}}}),o_e=async(e,t,n,i,r,a="all",o="pertinence",s="all",l="",u=1,c=15)=>{var g,v;const d=s_e(r,t,n,i,s,l),f=pz(),h=l_e(o,s,t,n),m=await hz.get(`/collections/profiles/documents/search?q=${e}&preset=main_search&filter_by=${d}&sort_by=${h}&page=${u}&per_page=${c}&facet_by=disciplines.label&query_by=practitionerName,services,disciplines.label,embedding`);if((v=(g=m==null?void 0:m.data)==null?void 0:g.facet_counts[0])!=null&&v.counts){const y=m.data.facet_counts[0].counts,_=y.reduce((S,w)=>S+w.count,0);f.disciplines=[{value:"",highlighted:"Toutes les disciplines",count:_,formattedTitle:"Toutes les disciplines"},...y.map(S=>({...S,formattedTitle:`${S.highlighted} (${S.count})`}))]}return{status:m.status,data:m.data}};function s_e(e,t,n,i,r,a){const o=[];e&&o.push(`disciplines.label:=[${e}]`);const s=wb();return r==="remote"?o.push("remoteAllowed:=true"):(r==="in-person"||r==="all")&&!s.topRate&&(o.push(`addresses.location:(${t},${n},${i} km)`),r==="in-person"&&o.push("remoteAllowed:=false")),a&&o.push(a),o.join(" && ")}function l_e(e,t,n,i){const r=wb();let a=["_text_match(buckets: 5):desc"];if(r.topRate)a=["ratioOpinionsPositive:desc"];else if((t==="in-person"||t==="all")&&e=="pertinence"&&(a=[],a.push(`addresses.location(${n},${i}):asc`)),e)switch(e){case"pertinence":a=["_text_match(buckets: 5):desc"],(t==="in-person"||t==="all")&&a.push(`addresses.location(${n},${i}):asc`),a.push("ratioOpinionsPositive:desc");break;case"proximity":a=["_text_match(buckets: 5):desc"],a.push(`addresses.location(${n},${i}):asc`);break;case"price.asc":a=["_text_match(buckets: 5):desc"],a.push("priceMin:asc");break;case"price.desc":a=["_text_match(buckets: 5):desc"],a.push("priceMin:desc");break;case"opinions.asc":a=["_text_match(buckets: 5):desc"],a.push("ratioOpinionsPositive:asc");break;case"opinions.desc":a=["_text_match(buckets: 5):desc"],a.push("ratioOpinionsPositive:desc");break;default:a=["_text_match(buckets: 5):desc"],a.push(`addresses.location(${n},${i}):asc`);break}return a.join(",")}var i4={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(e,t){(function(n,i){i(t)})(ri,function(n){var i="1.9.4";function r(p){var b,$,R,G;for($=1,R=arguments.length;$<R;$++){G=arguments[$];for(b in G)p[b]=G[b]}return p}var a=Object.create||function(){function p(){}return function(b){return p.prototype=b,new p}}();function o(p,b){var $=Array.prototype.slice;if(p.bind)return p.bind.apply(p,$.call(arguments,1));var R=$.call(arguments,2);return function(){return p.apply(b,R.length?R.concat($.call(arguments)):arguments)}}var s=0;function l(p){return"_leaflet_id"in p||(p._leaflet_id=++s),p._leaflet_id}function u(p,b,$){var R,G,fe,Ce;return Ce=function(){R=!1,G&&(fe.apply($,G),G=!1)},fe=function(){R?G=arguments:(p.apply($,arguments),setTimeout(Ce,b),R=!0)},fe}function c(p,b,$){var R=b[1],G=b[0],fe=R-G;return p===R&&$?p:((p-G)%fe+fe)%fe+G}function d(){return!1}function f(p,b){if(b===!1)return p;var $=Math.pow(10,b===void 0?6:b);return Math.round(p*$)/$}function h(p){return p.trim?p.trim():p.replace(/^\s+|\s+$/g,"")}function m(p){return h(p).split(/\s+/)}function g(p,b){Object.prototype.hasOwnProperty.call(p,"options")||(p.options=p.options?a(p.options):{});for(var $ in b)p.options[$]=b[$];return p.options}function v(p,b,$){var R=[];for(var G in p)R.push(encodeURIComponent($?G.toUpperCase():G)+"="+encodeURIComponent(p[G]));return(!b||b.indexOf("?")===-1?"?":"&")+R.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function _(p,b){return p.replace(y,function($,R){var G=b[R];if(G===void 0)throw new Error("No value provided for variable "+$);return typeof G=="function"&&(G=G(b)),G})}var S=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function w(p,b){for(var $=0;$<p.length;$++)if(p[$]===b)return $;return-1}var x="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(p){return window["webkit"+p]||window["moz"+p]||window["ms"+p]}var P=0;function E(p){var b=+new Date,$=Math.max(0,16-(b-P));return P=b+$,window.setTimeout(p,$)}var A=window.requestAnimationFrame||k("RequestAnimationFrame")||E,D=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(p){window.clearTimeout(p)};function T(p,b,$){if($&&A===E)p.call(b);else return A.call(window,o(p,b))}function O(p){p&&D.call(window,p)}var N={__proto__:null,extend:r,create:a,bind:o,get lastId(){return s},stamp:l,throttle:u,wrapNum:c,falseFn:d,formatNum:f,trim:h,splitWords:m,setOptions:g,getParamString:v,template:_,isArray:S,indexOf:w,emptyImageUrl:x,requestFn:A,cancelFn:D,requestAnimFrame:T,cancelAnimFrame:O};function V(){}V.extend=function(p){var b=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},$=b.__super__=this.prototype,R=a($);R.constructor=b,b.prototype=R;for(var G in this)Object.prototype.hasOwnProperty.call(this,G)&&G!=="prototype"&&G!=="__super__"&&(b[G]=this[G]);return p.statics&&r(b,p.statics),p.includes&&(j(p.includes),r.apply(null,[R].concat(p.includes))),r(R,p),delete R.statics,delete R.includes,R.options&&(R.options=$.options?a($.options):{},r(R.options,p.options)),R._initHooks=[],R.callInitHooks=function(){if(!this._initHooksCalled){$.callInitHooks&&$.callInitHooks.call(this),this._initHooksCalled=!0;for(var fe=0,Ce=R._initHooks.length;fe<Ce;fe++)R._initHooks[fe].call(this)}},b},V.include=function(p){var b=this.prototype.options;return r(this.prototype,p),p.options&&(this.prototype.options=b,this.mergeOptions(p.options)),this},V.mergeOptions=function(p){return r(this.prototype.options,p),this},V.addInitHook=function(p){var b=Array.prototype.slice.call(arguments,1),$=typeof p=="function"?p:function(){this[p].apply(this,b)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push($),this};function j(p){if(!(typeof L>"u"||!L||!L.Mixin)){p=S(p)?p:[p];for(var b=0;b<p.length;b++)p[b]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var q={on:function(p,b,$){if(typeof p=="object")for(var R in p)this._on(R,p[R],b);else{p=m(p);for(var G=0,fe=p.length;G<fe;G++)this._on(p[G],b,$)}return this},off:function(p,b,$){if(!arguments.length)delete this._events;else if(typeof p=="object")for(var R in p)this._off(R,p[R],b);else{p=m(p);for(var G=arguments.length===1,fe=0,Ce=p.length;fe<Ce;fe++)G?this._off(p[fe]):this._off(p[fe],b,$)}return this},_on:function(p,b,$,R){if(typeof b!="function"){console.warn("wrong listener type: "+typeof b);return}if(this._listens(p,b,$)===!1){$===this&&($=void 0);var G={fn:b,ctx:$};R&&(G.once=!0),this._events=this._events||{},this._events[p]=this._events[p]||[],this._events[p].push(G)}},_off:function(p,b,$){var R,G,fe;if(this._events&&(R=this._events[p],!!R)){if(arguments.length===1){if(this._firingCount)for(G=0,fe=R.length;G<fe;G++)R[G].fn=d;delete this._events[p];return}if(typeof b!="function"){console.warn("wrong listener type: "+typeof b);return}var Ce=this._listens(p,b,$);if(Ce!==!1){var Le=R[Ce];this._firingCount&&(Le.fn=d,this._events[p]=R=R.slice()),R.splice(Ce,1)}}},fire:function(p,b,$){if(!this.listens(p,$))return this;var R=r({},b,{type:p,target:this,sourceTarget:b&&b.sourceTarget||this});if(this._events){var G=this._events[p];if(G){this._firingCount=this._firingCount+1||1;for(var fe=0,Ce=G.length;fe<Ce;fe++){var Le=G[fe],qe=Le.fn;Le.once&&this.off(p,qe,Le.ctx),qe.call(Le.ctx||this,R)}this._firingCount--}}return $&&this._propagateEvent(R),this},listens:function(p,b,$,R){typeof p!="string"&&console.warn('"string" type argument expected');var G=b;typeof b!="function"&&(R=!!b,G=void 0,$=void 0);var fe=this._events&&this._events[p];if(fe&&fe.length&&this._listens(p,G,$)!==!1)return!0;if(R){for(var Ce in this._eventParents)if(this._eventParents[Ce].listens(p,b,$,R))return!0}return!1},_listens:function(p,b,$){if(!this._events)return!1;var R=this._events[p]||[];if(!b)return!!R.length;$===this&&($=void 0);for(var G=0,fe=R.length;G<fe;G++)if(R[G].fn===b&&R[G].ctx===$)return G;return!1},once:function(p,b,$){if(typeof p=="object")for(var R in p)this._on(R,p[R],b,!0);else{p=m(p);for(var G=0,fe=p.length;G<fe;G++)this._on(p[G],b,$,!0)}return this},addEventParent:function(p){return this._eventParents=this._eventParents||{},this._eventParents[l(p)]=p,this},removeEventParent:function(p){return this._eventParents&&delete this._eventParents[l(p)],this},_propagateEvent:function(p){for(var b in this._eventParents)this._eventParents[b].fire(p.type,r({layer:p.target,propagatedFrom:p.target},p),!0)}};q.addEventListener=q.on,q.removeEventListener=q.clearAllEventListeners=q.off,q.addOneTimeEventListener=q.once,q.fireEvent=q.fire,q.hasEventListeners=q.listens;var ne=V.extend(q);function ae(p,b,$){this.x=$?Math.round(p):p,this.y=$?Math.round(b):b}var Y=Math.trunc||function(p){return p>0?Math.floor(p):Math.ceil(p)};ae.prototype={clone:function(){return new ae(this.x,this.y)},add:function(p){return this.clone()._add(M(p))},_add:function(p){return this.x+=p.x,this.y+=p.y,this},subtract:function(p){return this.clone()._subtract(M(p))},_subtract:function(p){return this.x-=p.x,this.y-=p.y,this},divideBy:function(p){return this.clone()._divideBy(p)},_divideBy:function(p){return this.x/=p,this.y/=p,this},multiplyBy:function(p){return this.clone()._multiplyBy(p)},_multiplyBy:function(p){return this.x*=p,this.y*=p,this},scaleBy:function(p){return new ae(this.x*p.x,this.y*p.y)},unscaleBy:function(p){return new ae(this.x/p.x,this.y/p.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Y(this.x),this.y=Y(this.y),this},distanceTo:function(p){p=M(p);var b=p.x-this.x,$=p.y-this.y;return Math.sqrt(b*b+$*$)},equals:function(p){return p=M(p),p.x===this.x&&p.y===this.y},contains:function(p){return p=M(p),Math.abs(p.x)<=Math.abs(this.x)&&Math.abs(p.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function M(p,b,$){return p instanceof ae?p:S(p)?new ae(p[0],p[1]):p==null?p:typeof p=="object"&&"x"in p&&"y"in p?new ae(p.x,p.y):new ae(p,b,$)}function I(p,b){if(p)for(var $=b?[p,b]:p,R=0,G=$.length;R<G;R++)this.extend($[R])}I.prototype={extend:function(p){var b,$;if(!p)return this;if(p instanceof ae||typeof p[0]=="number"||"x"in p)b=$=M(p);else if(p=W(p),b=p.min,$=p.max,!b||!$)return this;return!this.min&&!this.max?(this.min=b.clone(),this.max=$.clone()):(this.min.x=Math.min(b.x,this.min.x),this.max.x=Math.max($.x,this.max.x),this.min.y=Math.min(b.y,this.min.y),this.max.y=Math.max($.y,this.max.y)),this},getCenter:function(p){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,p)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(p){var b,$;return typeof p[0]=="number"||p instanceof ae?p=M(p):p=W(p),p instanceof I?(b=p.min,$=p.max):b=$=p,b.x>=this.min.x&&$.x<=this.max.x&&b.y>=this.min.y&&$.y<=this.max.y},intersects:function(p){p=W(p);var b=this.min,$=this.max,R=p.min,G=p.max,fe=G.x>=b.x&&R.x<=$.x,Ce=G.y>=b.y&&R.y<=$.y;return fe&&Ce},overlaps:function(p){p=W(p);var b=this.min,$=this.max,R=p.min,G=p.max,fe=G.x>b.x&&R.x<$.x,Ce=G.y>b.y&&R.y<$.y;return fe&&Ce},isValid:function(){return!!(this.min&&this.max)},pad:function(p){var b=this.min,$=this.max,R=Math.abs(b.x-$.x)*p,G=Math.abs(b.y-$.y)*p;return W(M(b.x-R,b.y-G),M($.x+R,$.y+G))},equals:function(p){return p?(p=W(p),this.min.equals(p.getTopLeft())&&this.max.equals(p.getBottomRight())):!1}};function W(p,b){return!p||p instanceof I?p:new I(p,b)}function te(p,b){if(p)for(var $=b?[p,b]:p,R=0,G=$.length;R<G;R++)this.extend($[R])}te.prototype={extend:function(p){var b=this._southWest,$=this._northEast,R,G;if(p instanceof oe)R=p,G=p;else if(p instanceof te){if(R=p._southWest,G=p._northEast,!R||!G)return this}else return p?this.extend(U(p)||he(p)):this;return!b&&!$?(this._southWest=new oe(R.lat,R.lng),this._northEast=new oe(G.lat,G.lng)):(b.lat=Math.min(R.lat,b.lat),b.lng=Math.min(R.lng,b.lng),$.lat=Math.max(G.lat,$.lat),$.lng=Math.max(G.lng,$.lng)),this},pad:function(p){var b=this._southWest,$=this._northEast,R=Math.abs(b.lat-$.lat)*p,G=Math.abs(b.lng-$.lng)*p;return new te(new oe(b.lat-R,b.lng-G),new oe($.lat+R,$.lng+G))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(p){typeof p[0]=="number"||p instanceof oe||"lat"in p?p=U(p):p=he(p);var b=this._southWest,$=this._northEast,R,G;return p instanceof te?(R=p.getSouthWest(),G=p.getNorthEast()):R=G=p,R.lat>=b.lat&&G.lat<=$.lat&&R.lng>=b.lng&&G.lng<=$.lng},intersects:function(p){p=he(p);var b=this._southWest,$=this._northEast,R=p.getSouthWest(),G=p.getNorthEast(),fe=G.lat>=b.lat&&R.lat<=$.lat,Ce=G.lng>=b.lng&&R.lng<=$.lng;return fe&&Ce},overlaps:function(p){p=he(p);var b=this._southWest,$=this._northEast,R=p.getSouthWest(),G=p.getNorthEast(),fe=G.lat>b.lat&&R.lat<$.lat,Ce=G.lng>b.lng&&R.lng<$.lng;return fe&&Ce},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(p,b){return p?(p=he(p),this._southWest.equals(p.getSouthWest(),b)&&this._northEast.equals(p.getNorthEast(),b)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function he(p,b){return p instanceof te?p:new te(p,b)}function oe(p,b,$){if(isNaN(p)||isNaN(b))throw new Error("Invalid LatLng object: ("+p+", "+b+")");this.lat=+p,this.lng=+b,$!==void 0&&(this.alt=+$)}oe.prototype={equals:function(p,b){if(!p)return!1;p=U(p);var $=Math.max(Math.abs(this.lat-p.lat),Math.abs(this.lng-p.lng));return $<=(b===void 0?1e-9:b)},toString:function(p){return"LatLng("+f(this.lat,p)+", "+f(this.lng,p)+")"},distanceTo:function(p){return re.distance(this,U(p))},wrap:function(){return re.wrapLatLng(this)},toBounds:function(p){var b=180*p/40075017,$=b/Math.cos(Math.PI/180*this.lat);return he([this.lat-b,this.lng-$],[this.lat+b,this.lng+$])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function U(p,b,$){return p instanceof oe?p:S(p)&&typeof p[0]!="object"?p.length===3?new oe(p[0],p[1],p[2]):p.length===2?new oe(p[0],p[1]):null:p==null?p:typeof p=="object"&&"lat"in p?new oe(p.lat,"lng"in p?p.lng:p.lon,p.alt):b===void 0?null:new oe(p,b,$)}var ee={latLngToPoint:function(p,b){var $=this.projection.project(p),R=this.scale(b);return this.transformation._transform($,R)},pointToLatLng:function(p,b){var $=this.scale(b),R=this.transformation.untransform(p,$);return this.projection.unproject(R)},project:function(p){return this.projection.project(p)},unproject:function(p){return this.projection.unproject(p)},scale:function(p){return 256*Math.pow(2,p)},zoom:function(p){return Math.log(p/256)/Math.LN2},getProjectedBounds:function(p){if(this.infinite)return null;var b=this.projection.bounds,$=this.scale(p),R=this.transformation.transform(b.min,$),G=this.transformation.transform(b.max,$);return new I(R,G)},infinite:!1,wrapLatLng:function(p){var b=this.wrapLng?c(p.lng,this.wrapLng,!0):p.lng,$=this.wrapLat?c(p.lat,this.wrapLat,!0):p.lat,R=p.alt;return new oe($,b,R)},wrapLatLngBounds:function(p){var b=p.getCenter(),$=this.wrapLatLng(b),R=b.lat-$.lat,G=b.lng-$.lng;if(R===0&&G===0)return p;var fe=p.getSouthWest(),Ce=p.getNorthEast(),Le=new oe(fe.lat-R,fe.lng-G),qe=new oe(Ce.lat-R,Ce.lng-G);return new te(Le,qe)}},re=r({},ee,{wrapLng:[-180,180],R:6371e3,distance:function(p,b){var $=Math.PI/180,R=p.lat*$,G=b.lat*$,fe=Math.sin((b.lat-p.lat)*$/2),Ce=Math.sin((b.lng-p.lng)*$/2),Le=fe*fe+Math.cos(R)*Math.cos(G)*Ce*Ce,qe=2*Math.atan2(Math.sqrt(Le),Math.sqrt(1-Le));return this.R*qe}}),ue=6378137,pe={R:ue,MAX_LATITUDE:85.0511287798,project:function(p){var b=Math.PI/180,$=this.MAX_LATITUDE,R=Math.max(Math.min($,p.lat),-$),G=Math.sin(R*b);return new ae(this.R*p.lng*b,this.R*Math.log((1+G)/(1-G))/2)},unproject:function(p){var b=180/Math.PI;return new oe((2*Math.atan(Math.exp(p.y/this.R))-Math.PI/2)*b,p.x*b/this.R)},bounds:function(){var p=ue*Math.PI;return new I([-p,-p],[p,p])}()};function ge(p,b,$,R){if(S(p)){this._a=p[0],this._b=p[1],this._c=p[2],this._d=p[3];return}this._a=p,this._b=b,this._c=$,this._d=R}ge.prototype={transform:function(p,b){return this._transform(p.clone(),b)},_transform:function(p,b){return b=b||1,p.x=b*(this._a*p.x+this._b),p.y=b*(this._c*p.y+this._d),p},untransform:function(p,b){return b=b||1,new ae((p.x/b-this._b)/this._a,(p.y/b-this._d)/this._c)}};function Te(p,b,$,R){return new ge(p,b,$,R)}var Z=r({},re,{code:"EPSG:3857",projection:pe,transformation:function(){var p=.5/(Math.PI*pe.R);return Te(p,.5,-p,.5)}()}),X=r({},Z,{code:"EPSG:900913"});function ye(p){return document.createElementNS("http://www.w3.org/2000/svg",p)}function Se(p,b){var $="",R,G,fe,Ce,Le,qe;for(R=0,fe=p.length;R<fe;R++){for(Le=p[R],G=0,Ce=Le.length;G<Ce;G++)qe=Le[G],$+=(G?"L":"M")+qe.x+" "+qe.y;$+=b?yt.svg?"z":"x":""}return $||"M0 0"}var Ee=document.documentElement.style,_e="ActiveXObject"in window,be=_e&&!document.addEventListener,ie="msLaunchUri"in navigator&&!("documentMode"in document),se=Zi("webkit"),de=Zi("android"),xe=Zi("android 2")||Zi("android 3"),Re=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Pe=de&&Zi("Google")&&Re<537&&!("AudioNode"in window),we=!!window.opera,Ae=!ie&&Zi("chrome"),Ie=Zi("gecko")&&!se&&!we&&!_e,Ye=!Ae&&Zi("safari"),rt=Zi("phantom"),Ot="OTransition"in Ee,$n=navigator.platform.indexOf("Win")===0,jt=_e&&"transition"in Ee,Fn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!xe,at="MozPerspective"in Ee,dt=!window.L_DISABLE_3D&&(jt||Fn||at)&&!Ot&&!rt,ft=typeof orientation<"u"||Zi("mobile"),Kt=ft&&se,St=ft&&Fn,Mt=!window.PointerEvent&&window.MSPointerEvent,sn=!!(window.PointerEvent||Mt),lr="ontouchstart"in window||!!window.TouchEvent,ml=!window.L_NO_TOUCH&&(lr||sn),Rr=ft&&we,Es=ft&&Ie,xs=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ur=function(){var p=!1;try{var b=Object.defineProperty({},"passive",{get:function(){p=!0}});window.addEventListener("testPassiveEventSupport",d,b),window.removeEventListener("testPassiveEventSupport",d,b)}catch{}return p}(),$i=function(){return!!document.createElement("canvas").getContext}(),cr=!!(document.createElementNS&&ye("svg").createSVGRect),Er=!!cr&&function(){var p=document.createElement("div");return p.innerHTML="<svg/>",(p.firstChild&&p.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Ed=!cr&&function(){try{var p=document.createElement("div");p.innerHTML='<v:shape adj="1"/>';var b=p.firstChild;return b.style.behavior="url(#default#VML)",b&&typeof b.adj=="object"}catch{return!1}}(),xd=navigator.platform.indexOf("Mac")===0,pc=navigator.platform.indexOf("Linux")===0;function Zi(p){return navigator.userAgent.toLowerCase().indexOf(p)>=0}var yt={ie:_e,ielt9:be,edge:ie,webkit:se,android:de,android23:xe,androidStock:Pe,opera:we,chrome:Ae,gecko:Ie,safari:Ye,phantom:rt,opera12:Ot,win:$n,ie3d:jt,webkit3d:Fn,gecko3d:at,any3d:dt,mobile:ft,mobileWebkit:Kt,mobileWebkit3d:St,msPointer:Mt,pointer:sn,touch:ml,touchNative:lr,mobileOpera:Rr,mobileGecko:Es,retina:xs,passiveEvents:ur,canvas:$i,svg:cr,vml:Ed,inlineSvg:Er,mac:xd,linux:pc},Ai=yt.msPointer?"MSPointerDown":"pointerdown",ks=yt.msPointer?"MSPointerMove":"pointermove",mc=yt.msPointer?"MSPointerUp":"pointerup",Ko=yt.msPointer?"MSPointerCancel":"pointercancel",Ts={touchstart:Ai,touchmove:ks,touchend:mc,touchcancel:Ko},vl={touchstart:kd,touchmove:yo,touchend:yo,touchcancel:yo},Jn={},gl=!1;function su(p,b,$){return b==="touchstart"&&vc(),vl[b]?($=vl[b].bind(this,$),p.addEventListener(Ts[b],$,!1),$):(console.warn("wrong event specified:",b),d)}function lu(p,b,$){if(!Ts[b]){console.warn("wrong event specified:",b);return}p.removeEventListener(Ts[b],$,!1)}function uu(p){Jn[p.pointerId]=p}function yl(p){Jn[p.pointerId]&&(Jn[p.pointerId]=p)}function dr(p){delete Jn[p.pointerId]}function vc(){gl||(document.addEventListener(Ai,uu,!0),document.addEventListener(ks,yl,!0),document.addEventListener(mc,dr,!0),document.addEventListener(Ko,dr,!0),gl=!0)}function yo(p,b){if(b.pointerType!==(b.MSPOINTER_TYPE_MOUSE||"mouse")){b.touches=[];for(var $ in Jn)b.touches.push(Jn[$]);b.changedTouches=[b],p(b)}}function kd(p,b){b.MSPOINTER_TYPE_TOUCH&&b.pointerType===b.MSPOINTER_TYPE_TOUCH&&gi(b),yo(p,b)}function gc(p){var b={},$,R;for(R in p)$=p[R],b[R]=$&&$.bind?$.bind(p):$;return p=b,b.type="dblclick",b.detail=2,b.isTrusted=!1,b._simulated=!0,b}var _l=200;function _o(p,b){p.addEventListener("dblclick",b);var $=0,R;function G(fe){if(fe.detail!==1){R=fe.detail;return}if(!(fe.pointerType==="mouse"||fe.sourceCapabilities&&!fe.sourceCapabilities.firesTouchEvents)){var Ce=H(fe);if(!(Ce.some(function(qe){return qe instanceof HTMLLabelElement&&qe.attributes.for})&&!Ce.some(function(qe){return qe instanceof HTMLInputElement||qe instanceof HTMLSelectElement}))){var Le=Date.now();Le-$<=_l?(R++,R===2&&b(gc(fe))):R=1,$=Le}}}return p.addEventListener("click",G),{dblclick:b,simDblclick:G}}function bl(p,b){p.removeEventListener("dblclick",b.dblclick),p.removeEventListener("click",b.simDblclick)}var to=Xo(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Fr=Xo(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),bo=Fr==="webkitTransition"||Fr==="OTransition"?Fr+"End":"transitionend";function cu(p){return typeof p=="string"?document.getElementById(p):p}function wo(p,b){var $=p.style[b]||p.currentStyle&&p.currentStyle[b];if((!$||$==="auto")&&document.defaultView){var R=document.defaultView.getComputedStyle(p,null);$=R?R[b]:null}return $==="auto"?null:$}function Qt(p,b,$){var R=document.createElement(p);return R.className=b||"",$&&$.appendChild(R),R}function Dn(p){var b=p.parentNode;b&&b.removeChild(p)}function Zo(p){for(;p.firstChild;)p.removeChild(p.firstChild)}function Na(p){var b=p.parentNode;b&&b.lastChild!==p&&b.appendChild(p)}function So(p){var b=p.parentNode;b&&b.firstChild!==p&&b.insertBefore(p,b.firstChild)}function na(p,b){if(p.classList!==void 0)return p.classList.contains(b);var $=wl(p);return $.length>0&&new RegExp("(^|\\s)"+b+"(\\s|$)").test($)}function Bt(p,b){if(p.classList!==void 0)for(var $=m(b),R=0,G=$.length;R<G;R++)p.classList.add($[R]);else if(!na(p,b)){var fe=wl(p);du(p,(fe?fe+" ":"")+b)}}function Vn(p,b){p.classList!==void 0?p.classList.remove(b):du(p,h((" "+wl(p)+" ").replace(" "+b+" "," ")))}function du(p,b){p.className.baseVal===void 0?p.className=b:p.className.baseVal=b}function wl(p){return p.correspondingElement&&(p=p.correspondingElement),p.className.baseVal===void 0?p.className:p.className.baseVal}function Vr(p,b){"opacity"in p.style?p.style.opacity=b:"filter"in p.style&&Td(p,b)}function Td(p,b){var $=!1,R="DXImageTransform.Microsoft.Alpha";try{$=p.filters.item(R)}catch{if(b===1)return}b=Math.round(b*100),$?($.Enabled=b!==100,$.Opacity=b):p.style.filter+=" progid:"+R+"(opacity="+b+")"}function Xo(p){for(var b=document.documentElement.style,$=0;$<p.length;$++)if(p[$]in b)return p[$];return!1}function Co(p,b,$){var R=b||new ae(0,0);p.style[to]=(yt.ie3d?"translate("+R.x+"px,"+R.y+"px)":"translate3d("+R.x+"px,"+R.y+"px,0)")+($?" scale("+$+")":"")}function si(p,b){p._leaflet_pos=b,yt.any3d?Co(p,b):(p.style.left=b.x+"px",p.style.top=b.y+"px")}function Br(p){return p._leaflet_pos||new ae(0,0)}var Ri,zr,Be;if("onselectstart"in document)Ri=function(){Nt(window,"selectstart",gi)},zr=function(){yn(window,"selectstart",gi)};else{var Ne=Xo(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ri=function(){if(Ne){var p=document.documentElement.style;Be=p[Ne],p[Ne]="none"}},zr=function(){Ne&&(document.documentElement.style[Ne]=Be,Be=void 0)}}function Dt(){Nt(window,"dragstart",gi)}function Qe(){yn(window,"dragstart",gi)}var Zt,ln;function Sn(p){for(;p.tabIndex===-1;)p=p.parentNode;p.style&&(en(),Zt=p,ln=p.style.outlineStyle,p.style.outlineStyle="none",Nt(window,"keydown",en))}function en(){Zt&&(Zt.style.outlineStyle=ln,Zt=void 0,ln=void 0,yn(window,"keydown",en))}function et(p){do p=p.parentNode;while((!p.offsetWidth||!p.offsetHeight)&&p!==document.body);return p}function Bn(p){var b=p.getBoundingClientRect();return{x:b.width/p.offsetWidth||1,y:b.height/p.offsetHeight||1,boundingClientRect:b}}var Eo={__proto__:null,TRANSFORM:to,TRANSITION:Fr,TRANSITION_END:bo,get:cu,getStyle:wo,create:Qt,remove:Dn,empty:Zo,toFront:Na,toBack:So,hasClass:na,addClass:Bt,removeClass:Vn,setClass:du,getClass:wl,setOpacity:Vr,testProp:Xo,setTransform:Co,setPosition:si,getPosition:Br,get disableTextSelection(){return Ri},get enableTextSelection(){return zr},disableImageDrag:Dt,enableImageDrag:Qe,preventOutline:Sn,restoreOutline:en,getSizedParentNode:et,getScale:Bn};function Nt(p,b,$,R){if(b&&typeof b=="object")for(var G in b)Jo(p,G,b[G],$);else{b=m(b);for(var fe=0,Ce=b.length;fe<Ce;fe++)Jo(p,b[fe],$,R)}return this}var xr="_leaflet_events";function yn(p,b,$,R){if(arguments.length===1)fu(p),delete p[xr];else if(b&&typeof b=="object")for(var G in b)$s(p,G,b[G],$);else if(b=m(b),arguments.length===2)fu(p,function(Le){return w(b,Le)!==-1});else for(var fe=0,Ce=b.length;fe<Ce;fe++)$s(p,b[fe],$,R);return this}function fu(p,b){for(var $ in p[xr]){var R=$.split(/\d/)[0];(!b||b(R))&&$s(p,R,null,null,$)}}var Ps={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Jo(p,b,$,R){var G=b+l($)+(R?"_"+l(R):"");if(p[xr]&&p[xr][G])return this;var fe=function(Le){return $.call(R||p,Le||window.event)},Ce=fe;!yt.touchNative&&yt.pointer&&b.indexOf("touch")===0?fe=su(p,b,fe):yt.touch&&b==="dblclick"?fe=_o(p,fe):"addEventListener"in p?b==="touchstart"||b==="touchmove"||b==="wheel"||b==="mousewheel"?p.addEventListener(Ps[b]||b,fe,yt.passiveEvents?{passive:!1}:!1):b==="mouseenter"||b==="mouseleave"?(fe=function(Le){Le=Le||window.event,zt(p,Le)&&Ce(Le)},p.addEventListener(Ps[b],fe,!1)):p.addEventListener(b,Ce,!1):p.attachEvent("on"+b,fe),p[xr]=p[xr]||{},p[xr][G]=fe}function $s(p,b,$,R,G){G=G||b+l($)+(R?"_"+l(R):"");var fe=p[xr]&&p[xr][G];if(!fe)return this;!yt.touchNative&&yt.pointer&&b.indexOf("touch")===0?lu(p,b,fe):yt.touch&&b==="dblclick"?bl(p,fe):"removeEventListener"in p?p.removeEventListener(Ps[b]||b,fe,!1):p.detachEvent("on"+b,fe),p[xr][G]=null}function Xi(p){return p.stopPropagation?p.stopPropagation():p.originalEvent?p.originalEvent._stopped=!0:p.cancelBubble=!0,this}function As(p){return Jo(p,"wheel",Xi),this}function no(p){return Nt(p,"mousedown touchstart dblclick contextmenu",Xi),p._leaflet_disable_click=!0,this}function gi(p){return p.preventDefault?p.preventDefault():p.returnValue=!1,this}function Nn(p){return gi(p),Xi(p),this}function H(p){if(p.composedPath)return p.composedPath();for(var b=[],$=p.target;$;)b.push($),$=$.parentNode;return b}function me(p,b){if(!b)return new ae(p.clientX,p.clientY);var $=Bn(b),R=$.boundingClientRect;return new ae((p.clientX-R.left)/$.x-b.clientLeft,(p.clientY-R.top)/$.y-b.clientTop)}var ke=yt.linux&&yt.chrome?window.devicePixelRatio:yt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ke(p){return yt.edge?p.wheelDeltaY/2:p.deltaY&&p.deltaMode===0?-p.deltaY/ke:p.deltaY&&p.deltaMode===1?-p.deltaY*20:p.deltaY&&p.deltaMode===2?-p.deltaY*60:p.deltaX||p.deltaZ?0:p.wheelDelta?(p.wheelDeltaY||p.wheelDelta)/2:p.detail&&Math.abs(p.detail)<32765?-p.detail*20:p.detail?p.detail/-32765*60:0}function zt(p,b){var $=b.relatedTarget;if(!$)return!0;try{for(;$&&$!==p;)$=$.parentNode}catch{return!1}return $!==p}var Et={__proto__:null,on:Nt,off:yn,stopPropagation:Xi,disableScrollPropagation:As,disableClickPropagation:no,preventDefault:gi,stop:Nn,getPropagationPath:H,getMousePosition:me,getWheelDelta:Ke,isExternalTarget:zt,addListener:Nt,removeListener:yn},un=ne.extend({run:function(p,b,$,R){this.stop(),this._el=p,this._inProgress=!0,this._duration=$||.25,this._easeOutPower=1/Math.max(R||.5,.2),this._startPos=Br(p),this._offset=b.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(p){var b=+new Date-this._startTime,$=this._duration*1e3;b<$?this._runFrame(this._easeOut(b/$),p):(this._runFrame(1),this._complete())},_runFrame:function(p,b){var $=this._startPos.add(this._offset.multiplyBy(p));b&&$._round(),si(this._el,$),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(p){return 1-Math.pow(1-p,this._easeOutPower)}}),gt=ne.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(p,b){b=g(this,b),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(p),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),b.maxBounds&&this.setMaxBounds(b.maxBounds),b.zoom!==void 0&&(this._zoom=this._limitZoom(b.zoom)),b.center&&b.zoom!==void 0&&this.setView(U(b.center),b.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Fr&&yt.any3d&&!yt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Nt(this._proxy,bo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(p,b,$){if(b=b===void 0?this._zoom:this._limitZoom(b),p=this._limitCenter(U(p),b,this.options.maxBounds),$=$||{},this._stop(),this._loaded&&!$.reset&&$!==!0){$.animate!==void 0&&($.zoom=r({animate:$.animate},$.zoom),$.pan=r({animate:$.animate,duration:$.duration},$.pan));var R=this._zoom!==b?this._tryAnimatedZoom&&this._tryAnimatedZoom(p,b,$.zoom):this._tryAnimatedPan(p,$.pan);if(R)return clearTimeout(this._sizeTimer),this}return this._resetView(p,b,$.pan&&$.pan.noMoveStart),this},setZoom:function(p,b){return this._loaded?this.setView(this.getCenter(),p,{zoom:b}):(this._zoom=p,this)},zoomIn:function(p,b){return p=p||(yt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+p,b)},zoomOut:function(p,b){return p=p||(yt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-p,b)},setZoomAround:function(p,b,$){var R=this.getZoomScale(b),G=this.getSize().divideBy(2),fe=p instanceof ae?p:this.latLngToContainerPoint(p),Ce=fe.subtract(G).multiplyBy(1-1/R),Le=this.containerPointToLatLng(G.add(Ce));return this.setView(Le,b,{zoom:$})},_getBoundsCenterZoom:function(p,b){b=b||{},p=p.getBounds?p.getBounds():he(p);var $=M(b.paddingTopLeft||b.padding||[0,0]),R=M(b.paddingBottomRight||b.padding||[0,0]),G=this.getBoundsZoom(p,!1,$.add(R));if(G=typeof b.maxZoom=="number"?Math.min(b.maxZoom,G):G,G===1/0)return{center:p.getCenter(),zoom:G};var fe=R.subtract($).divideBy(2),Ce=this.project(p.getSouthWest(),G),Le=this.project(p.getNorthEast(),G),qe=this.unproject(Ce.add(Le).divideBy(2).add(fe),G);return{center:qe,zoom:G}},fitBounds:function(p,b){if(p=he(p),!p.isValid())throw new Error("Bounds are not valid.");var $=this._getBoundsCenterZoom(p,b);return this.setView($.center,$.zoom,b)},fitWorld:function(p){return this.fitBounds([[-90,-180],[90,180]],p)},panTo:function(p,b){return this.setView(p,this._zoom,{pan:b})},panBy:function(p,b){if(p=M(p).round(),b=b||{},!p.x&&!p.y)return this.fire("moveend");if(b.animate!==!0&&!this.getSize().contains(p))return this._resetView(this.unproject(this.project(this.getCenter()).add(p)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new un,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),b.noMoveStart||this.fire("movestart"),b.animate!==!1){Bt(this._mapPane,"leaflet-pan-anim");var $=this._getMapPanePos().subtract(p).round();this._panAnim.run(this._mapPane,$,b.duration||.25,b.easeLinearity)}else this._rawPanBy(p),this.fire("move").fire("moveend");return this},flyTo:function(p,b,$){if($=$||{},$.animate===!1||!yt.any3d)return this.setView(p,b,$);this._stop();var R=this.project(this.getCenter()),G=this.project(p),fe=this.getSize(),Ce=this._zoom;p=U(p),b=b===void 0?Ce:b;var Le=Math.max(fe.x,fe.y),qe=Le*this.getZoomScale(Ce,b),tt=G.distanceTo(R)||1,mt=1.42,Lt=mt*mt;function cn(hr){var Ny=hr?-1:1,BY=hr?qe:Le,zY=qe*qe-Le*Le+Ny*Lt*Lt*tt*tt,jY=2*BY*Lt*tt,c3=zY/jY,WT=Math.sqrt(c3*c3+1)-c3,UY=WT<1e-9?-18:Math.log(WT);return UY}function La(hr){return(Math.exp(hr)-Math.exp(-hr))/2}function jr(hr){return(Math.exp(hr)+Math.exp(-hr))/2}function es(hr){return La(hr)/jr(hr)}var io=cn(0);function Oh(hr){return Le*(jr(io)/jr(io+mt*hr))}function LY(hr){return Le*(jr(io)*es(io+mt*hr)-La(io))/Lt}function RY(hr){return 1-Math.pow(1-hr,1.5)}var FY=Date.now(),qT=(cn(1)-io)/mt,VY=$.duration?1e3*$.duration:1e3*qT*.8;function YT(){var hr=(Date.now()-FY)/VY,Ny=RY(hr)*qT;hr<=1?(this._flyToFrame=T(YT,this),this._move(this.unproject(R.add(G.subtract(R).multiplyBy(LY(Ny)/tt)),Ce),this.getScaleZoom(Le/Oh(Ny),Ce),{flyTo:!0})):this._move(p,b)._moveEnd(!0)}return this._moveStart(!0,$.noMoveStart),YT.call(this),this},flyToBounds:function(p,b){var $=this._getBoundsCenterZoom(p,b);return this.flyTo($.center,$.zoom,b)},setMaxBounds:function(p){return p=he(p),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),p.isValid()?(this.options.maxBounds=p,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(p){var b=this.options.minZoom;return this.options.minZoom=p,this._loaded&&b!==p&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(p):this},setMaxZoom:function(p){var b=this.options.maxZoom;return this.options.maxZoom=p,this._loaded&&b!==p&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(p):this},panInsideBounds:function(p,b){this._enforcingBounds=!0;var $=this.getCenter(),R=this._limitCenter($,this._zoom,he(p));return $.equals(R)||this.panTo(R,b),this._enforcingBounds=!1,this},panInside:function(p,b){b=b||{};var $=M(b.paddingTopLeft||b.padding||[0,0]),R=M(b.paddingBottomRight||b.padding||[0,0]),G=this.project(this.getCenter()),fe=this.project(p),Ce=this.getPixelBounds(),Le=W([Ce.min.add($),Ce.max.subtract(R)]),qe=Le.getSize();if(!Le.contains(fe)){this._enforcingBounds=!0;var tt=fe.subtract(Le.getCenter()),mt=Le.extend(fe).getSize().subtract(qe);G.x+=tt.x<0?-mt.x:mt.x,G.y+=tt.y<0?-mt.y:mt.y,this.panTo(this.unproject(G),b),this._enforcingBounds=!1}return this},invalidateSize:function(p){if(!this._loaded)return this;p=r({animate:!1,pan:!0},p===!0?{animate:!0}:p);var b=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var $=this.getSize(),R=b.divideBy(2).round(),G=$.divideBy(2).round(),fe=R.subtract(G);return!fe.x&&!fe.y?this:(p.animate&&p.pan?this.panBy(fe):(p.pan&&this._rawPanBy(fe),this.fire("move"),p.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:b,newSize:$}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(p){if(p=this._locateOptions=r({timeout:1e4,watch:!1},p),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var b=o(this._handleGeolocationResponse,this),$=o(this._handleGeolocationError,this);return p.watch?this._locationWatchId=navigator.geolocation.watchPosition(b,$,p):navigator.geolocation.getCurrentPosition(b,$,p),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(p){if(this._container._leaflet_id){var b=p.code,$=p.message||(b===1?"permission denied":b===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:b,message:"Geolocation error: "+$+"."})}},_handleGeolocationResponse:function(p){if(this._container._leaflet_id){var b=p.coords.latitude,$=p.coords.longitude,R=new oe(b,$),G=R.toBounds(p.coords.accuracy*2),fe=this._locateOptions;if(fe.setView){var Ce=this.getBoundsZoom(G);this.setView(R,fe.maxZoom?Math.min(Ce,fe.maxZoom):Ce)}var Le={latlng:R,bounds:G,timestamp:p.timestamp};for(var qe in p.coords)typeof p.coords[qe]=="number"&&(Le[qe]=p.coords[qe]);this.fire("locationfound",Le)}},addHandler:function(p,b){if(!b)return this;var $=this[p]=new b(this);return this._handlers.push($),this.options[p]&&$.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Dn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var p;for(p in this._layers)this._layers[p].remove();for(p in this._panes)Dn(this._panes[p]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(p,b){var $="leaflet-pane"+(p?" leaflet-"+p.replace("Pane","")+"-pane":""),R=Qt("div",$,b||this._mapPane);return p&&(this._panes[p]=R),R},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var p=this.getPixelBounds(),b=this.unproject(p.getBottomLeft()),$=this.unproject(p.getTopRight());return new te(b,$)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(p,b,$){p=he(p),$=M($||[0,0]);var R=this.getZoom()||0,G=this.getMinZoom(),fe=this.getMaxZoom(),Ce=p.getNorthWest(),Le=p.getSouthEast(),qe=this.getSize().subtract($),tt=W(this.project(Le,R),this.project(Ce,R)).getSize(),mt=yt.any3d?this.options.zoomSnap:1,Lt=qe.x/tt.x,cn=qe.y/tt.y,La=b?Math.max(Lt,cn):Math.min(Lt,cn);return R=this.getScaleZoom(La,R),mt&&(R=Math.round(R/(mt/100))*(mt/100),R=b?Math.ceil(R/mt)*mt:Math.floor(R/mt)*mt),Math.max(G,Math.min(fe,R))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ae(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(p,b){var $=this._getTopLeftPoint(p,b);return new I($,$.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(p){return this.options.crs.getProjectedBounds(p===void 0?this.getZoom():p)},getPane:function(p){return typeof p=="string"?this._panes[p]:p},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(p,b){var $=this.options.crs;return b=b===void 0?this._zoom:b,$.scale(p)/$.scale(b)},getScaleZoom:function(p,b){var $=this.options.crs;b=b===void 0?this._zoom:b;var R=$.zoom(p*$.scale(b));return isNaN(R)?1/0:R},project:function(p,b){return b=b===void 0?this._zoom:b,this.options.crs.latLngToPoint(U(p),b)},unproject:function(p,b){return b=b===void 0?this._zoom:b,this.options.crs.pointToLatLng(M(p),b)},layerPointToLatLng:function(p){var b=M(p).add(this.getPixelOrigin());return this.unproject(b)},latLngToLayerPoint:function(p){var b=this.project(U(p))._round();return b._subtract(this.getPixelOrigin())},wrapLatLng:function(p){return this.options.crs.wrapLatLng(U(p))},wrapLatLngBounds:function(p){return this.options.crs.wrapLatLngBounds(he(p))},distance:function(p,b){return this.options.crs.distance(U(p),U(b))},containerPointToLayerPoint:function(p){return M(p).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(p){return M(p).add(this._getMapPanePos())},containerPointToLatLng:function(p){var b=this.containerPointToLayerPoint(M(p));return this.layerPointToLatLng(b)},latLngToContainerPoint:function(p){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(p)))},mouseEventToContainerPoint:function(p){return me(p,this._container)},mouseEventToLayerPoint:function(p){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(p))},mouseEventToLatLng:function(p){return this.layerPointToLatLng(this.mouseEventToLayerPoint(p))},_initContainer:function(p){var b=this._container=cu(p);if(b){if(b._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Nt(b,"scroll",this._onScroll,this),this._containerId=l(b)},_initLayout:function(){var p=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt.any3d,Bt(p,"leaflet-container"+(yt.touch?" leaflet-touch":"")+(yt.retina?" leaflet-retina":"")+(yt.ielt9?" leaflet-oldie":"")+(yt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var b=wo(p,"position");b!=="absolute"&&b!=="relative"&&b!=="fixed"&&b!=="sticky"&&(p.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var p=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),si(this._mapPane,new ae(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Bt(p.markerPane,"leaflet-zoom-hide"),Bt(p.shadowPane,"leaflet-zoom-hide"))},_resetView:function(p,b,$){si(this._mapPane,new ae(0,0));var R=!this._loaded;this._loaded=!0,b=this._limitZoom(b),this.fire("viewprereset");var G=this._zoom!==b;this._moveStart(G,$)._move(p,b)._moveEnd(G),this.fire("viewreset"),R&&this.fire("load")},_moveStart:function(p,b){return p&&this.fire("zoomstart"),b||this.fire("movestart"),this},_move:function(p,b,$,R){b===void 0&&(b=this._zoom);var G=this._zoom!==b;return this._zoom=b,this._lastCenter=p,this._pixelOrigin=this._getNewPixelOrigin(p),R?$&&$.pinch&&this.fire("zoom",$):((G||$&&$.pinch)&&this.fire("zoom",$),this.fire("move",$)),this},_moveEnd:function(p){return p&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(p){si(this._mapPane,this._getMapPanePos().subtract(p))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(p){this._targets={},this._targets[l(this._container)]=this;var b=p?yn:Nt;b(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&b(window,"resize",this._onResize,this),yt.any3d&&this.options.transform3DLimit&&(p?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=T(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var p=this._getMapPanePos();Math.max(Math.abs(p.x),Math.abs(p.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(p,b){for(var $=[],R,G=b==="mouseout"||b==="mouseover",fe=p.target||p.srcElement,Ce=!1;fe;){if(R=this._targets[l(fe)],R&&(b==="click"||b==="preclick")&&this._draggableMoved(R)){Ce=!0;break}if(R&&R.listens(b,!0)&&(G&&!zt(fe,p)||($.push(R),G))||fe===this._container)break;fe=fe.parentNode}return!$.length&&!Ce&&!G&&this.listens(b,!0)&&($=[this]),$},_isClickDisabled:function(p){for(;p&&p!==this._container;){if(p._leaflet_disable_click)return!0;p=p.parentNode}},_handleDOMEvent:function(p){var b=p.target||p.srcElement;if(!(!this._loaded||b._leaflet_disable_events||p.type==="click"&&this._isClickDisabled(b))){var $=p.type;$==="mousedown"&&Sn(b),this._fireDOMEvent(p,$)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(p,b,$){if(p.type==="click"){var R=r({},p);R.type="preclick",this._fireDOMEvent(R,R.type,$)}var G=this._findEventTargets(p,b);if($){for(var fe=[],Ce=0;Ce<$.length;Ce++)$[Ce].listens(b,!0)&&fe.push($[Ce]);G=fe.concat(G)}if(G.length){b==="contextmenu"&&gi(p);var Le=G[0],qe={originalEvent:p};if(p.type!=="keypress"&&p.type!=="keydown"&&p.type!=="keyup"){var tt=Le.getLatLng&&(!Le._radius||Le._radius<=10);qe.containerPoint=tt?this.latLngToContainerPoint(Le.getLatLng()):this.mouseEventToContainerPoint(p),qe.layerPoint=this.containerPointToLayerPoint(qe.containerPoint),qe.latlng=tt?Le.getLatLng():this.layerPointToLatLng(qe.layerPoint)}for(Ce=0;Ce<G.length;Ce++)if(G[Ce].fire(b,qe,!0),qe.originalEvent._stopped||G[Ce].options.bubblingMouseEvents===!1&&w(this._mouseEvents,b)!==-1)return}},_draggableMoved:function(p){return p=p.dragging&&p.dragging.enabled()?p:this,p.dragging&&p.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var p=0,b=this._handlers.length;p<b;p++)this._handlers[p].disable()},whenReady:function(p,b){return this._loaded?p.call(b||this,{target:this}):this.on("load",p,b),this},_getMapPanePos:function(){return Br(this._mapPane)||new ae(0,0)},_moved:function(){var p=this._getMapPanePos();return p&&!p.equals([0,0])},_getTopLeftPoint:function(p,b){var $=p&&b!==void 0?this._getNewPixelOrigin(p,b):this.getPixelOrigin();return $.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(p,b){var $=this.getSize()._divideBy(2);return this.project(p,b)._subtract($)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(p,b,$){var R=this._getNewPixelOrigin($,b);return this.project(p,b)._subtract(R)},_latLngBoundsToNewLayerBounds:function(p,b,$){var R=this._getNewPixelOrigin($,b);return W([this.project(p.getSouthWest(),b)._subtract(R),this.project(p.getNorthWest(),b)._subtract(R),this.project(p.getSouthEast(),b)._subtract(R),this.project(p.getNorthEast(),b)._subtract(R)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(p){return this.latLngToLayerPoint(p).subtract(this._getCenterLayerPoint())},_limitCenter:function(p,b,$){if(!$)return p;var R=this.project(p,b),G=this.getSize().divideBy(2),fe=new I(R.subtract(G),R.add(G)),Ce=this._getBoundsOffset(fe,$,b);return Math.abs(Ce.x)<=1&&Math.abs(Ce.y)<=1?p:this.unproject(R.add(Ce),b)},_limitOffset:function(p,b){if(!b)return p;var $=this.getPixelBounds(),R=new I($.min.add(p),$.max.add(p));return p.add(this._getBoundsOffset(R,b))},_getBoundsOffset:function(p,b,$){var R=W(this.project(b.getNorthEast(),$),this.project(b.getSouthWest(),$)),G=R.min.subtract(p.min),fe=R.max.subtract(p.max),Ce=this._rebound(G.x,-fe.x),Le=this._rebound(G.y,-fe.y);return new ae(Ce,Le)},_rebound:function(p,b){return p+b>0?Math.round(p-b)/2:Math.max(0,Math.ceil(p))-Math.max(0,Math.floor(b))},_limitZoom:function(p){var b=this.getMinZoom(),$=this.getMaxZoom(),R=yt.any3d?this.options.zoomSnap:1;return R&&(p=Math.round(p/R)*R),Math.max(b,Math.min($,p))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Vn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(p,b){var $=this._getCenterOffset(p)._trunc();return(b&&b.animate)!==!0&&!this.getSize().contains($)?!1:(this.panBy($,b),!0)},_createAnimProxy:function(){var p=this._proxy=Qt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(p),this.on("zoomanim",function(b){var $=to,R=this._proxy.style[$];Co(this._proxy,this.project(b.center,b.zoom),this.getZoomScale(b.zoom,1)),R===this._proxy.style[$]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Dn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var p=this.getCenter(),b=this.getZoom();Co(this._proxy,this.project(p,b),this.getZoomScale(b,1))},_catchTransitionEnd:function(p){this._animatingZoom&&p.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(p,b,$){if(this._animatingZoom)return!0;if($=$||{},!this._zoomAnimated||$.animate===!1||this._nothingToAnimate()||Math.abs(b-this._zoom)>this.options.zoomAnimationThreshold)return!1;var R=this.getZoomScale(b),G=this._getCenterOffset(p)._divideBy(1-1/R);return $.animate!==!0&&!this.getSize().contains(G)?!1:(T(function(){this._moveStart(!0,$.noMoveStart||!1)._animateZoom(p,b,!0)},this),!0)},_animateZoom:function(p,b,$,R){this._mapPane&&($&&(this._animatingZoom=!0,this._animateToCenter=p,this._animateToZoom=b,Bt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:p,zoom:b,noUpdate:R}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Vn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Fi(p,b){return new gt(p,b)}var Xt=V.extend({options:{position:"topright"},initialize:function(p){g(this,p)},getPosition:function(){return this.options.position},setPosition:function(p){var b=this._map;return b&&b.removeControl(this),this.options.position=p,b&&b.addControl(this),this},getContainer:function(){return this._container},addTo:function(p){this.remove(),this._map=p;var b=this._container=this.onAdd(p),$=this.getPosition(),R=p._controlCorners[$];return Bt(b,"leaflet-control"),$.indexOf("bottom")!==-1?R.insertBefore(b,R.firstChild):R.appendChild(b),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Dn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(p){this._map&&p&&p.screenX>0&&p.screenY>0&&this._map.getContainer().focus()}}),Vi=function(p){return new Xt(p)};gt.include({addControl:function(p){return p.addTo(this),this},removeControl:function(p){return p.remove(),this},_initControlPos:function(){var p=this._controlCorners={},b="leaflet-",$=this._controlContainer=Qt("div",b+"control-container",this._container);function R(G,fe){var Ce=b+G+" "+b+fe;p[G+fe]=Qt("div",Ce,$)}R("top","left"),R("top","right"),R("bottom","left"),R("bottom","right")},_clearControlPos:function(){for(var p in this._controlCorners)Dn(this._controlCorners[p]);Dn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ia=Xt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(p,b,$,R){return $<R?-1:R<$?1:0}},initialize:function(p,b,$){g(this,$),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var R in p)this._addLayer(p[R],R);for(R in b)this._addLayer(b[R],R,!0)},onAdd:function(p){this._initLayout(),this._update(),this._map=p,p.on("zoomend",this._checkDisabledLayers,this);for(var b=0;b<this._layers.length;b++)this._layers[b].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(p){return Xt.prototype.addTo.call(this,p),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(p,b){return this._addLayer(p,b),this._map?this._update():this},addOverlay:function(p,b){return this._addLayer(p,b,!0),this._map?this._update():this},removeLayer:function(p){p.off("add remove",this._onLayerChange,this);var b=this._getLayer(l(p));return b&&this._layers.splice(this._layers.indexOf(b),1),this._map?this._update():this},expand:function(){Bt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var p=this._map.getSize().y-(this._container.offsetTop+50);return p<this._section.clientHeight?(Bt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=p+"px"):Vn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Vn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var p="leaflet-control-layers",b=this._container=Qt("div",p),$=this.options.collapsed;b.setAttribute("aria-haspopup",!0),no(b),As(b);var R=this._section=Qt("section",p+"-list");$&&(this._map.on("click",this.collapse,this),Nt(b,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var G=this._layersLink=Qt("a",p+"-toggle",b);G.href="#",G.title="Layers",G.setAttribute("role","button"),Nt(G,{keydown:function(fe){fe.keyCode===13&&this._expandSafely()},click:function(fe){gi(fe),this._expandSafely()}},this),$||this.expand(),this._baseLayersList=Qt("div",p+"-base",R),this._separator=Qt("div",p+"-separator",R),this._overlaysList=Qt("div",p+"-overlays",R),b.appendChild(R)},_getLayer:function(p){for(var b=0;b<this._layers.length;b++)if(this._layers[b]&&l(this._layers[b].layer)===p)return this._layers[b]},_addLayer:function(p,b,$){this._map&&p.on("add remove",this._onLayerChange,this),this._layers.push({layer:p,name:b,overlay:$}),this.options.sortLayers&&this._layers.sort(o(function(R,G){return this.options.sortFunction(R.layer,G.layer,R.name,G.name)},this)),this.options.autoZIndex&&p.setZIndex&&(this._lastZIndex++,p.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Zo(this._baseLayersList),Zo(this._overlaysList),this._layerControlInputs=[];var p,b,$,R,G=0;for($=0;$<this._layers.length;$++)R=this._layers[$],this._addItem(R),b=b||R.overlay,p=p||!R.overlay,G+=R.overlay?0:1;return this.options.hideSingleBase&&(p=p&&G>1,this._baseLayersList.style.display=p?"":"none"),this._separator.style.display=b&&p?"":"none",this},_onLayerChange:function(p){this._handlingClick||this._update();var b=this._getLayer(l(p.target)),$=b.overlay?p.type==="add"?"overlayadd":"overlayremove":p.type==="add"?"baselayerchange":null;$&&this._map.fire($,b)},_createRadioElement:function(p,b){var $='<input type="radio" class="leaflet-control-layers-selector" name="'+p+'"'+(b?' checked="checked"':"")+"/>",R=document.createElement("div");return R.innerHTML=$,R.firstChild},_addItem:function(p){var b=document.createElement("label"),$=this._map.hasLayer(p.layer),R;p.overlay?(R=document.createElement("input"),R.type="checkbox",R.className="leaflet-control-layers-selector",R.defaultChecked=$):R=this._createRadioElement("leaflet-base-layers_"+l(this),$),this._layerControlInputs.push(R),R.layerId=l(p.layer),Nt(R,"click",this._onInputClick,this);var G=document.createElement("span");G.innerHTML=" "+p.name;var fe=document.createElement("span");b.appendChild(fe),fe.appendChild(R),fe.appendChild(G);var Ce=p.overlay?this._overlaysList:this._baseLayersList;return Ce.appendChild(b),this._checkDisabledLayers(),b},_onInputClick:function(){if(!this._preventClick){var p=this._layerControlInputs,b,$,R=[],G=[];this._handlingClick=!0;for(var fe=p.length-1;fe>=0;fe--)b=p[fe],$=this._getLayer(b.layerId).layer,b.checked?R.push($):b.checked||G.push($);for(fe=0;fe<G.length;fe++)this._map.hasLayer(G[fe])&&this._map.removeLayer(G[fe]);for(fe=0;fe<R.length;fe++)this._map.hasLayer(R[fe])||this._map.addLayer(R[fe]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var p=this._layerControlInputs,b,$,R=this._map.getZoom(),G=p.length-1;G>=0;G--)b=p[G],$=this._getLayer(b.layerId).layer,b.disabled=$.options.minZoom!==void 0&&R<$.options.minZoom||$.options.maxZoom!==void 0&&R>$.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var p=this._section;this._preventClick=!0,Nt(p,"click",gi),this.expand();var b=this;setTimeout(function(){yn(p,"click",gi),b._preventClick=!1})}}),Ji=function(p,b,$){return new ia(p,b,$)},fr=Xt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(p){var b="leaflet-control-zoom",$=Qt("div",b+" leaflet-bar"),R=this.options;return this._zoomInButton=this._createButton(R.zoomInText,R.zoomInTitle,b+"-in",$,this._zoomIn),this._zoomOutButton=this._createButton(R.zoomOutText,R.zoomOutTitle,b+"-out",$,this._zoomOut),this._updateDisabled(),p.on("zoomend zoomlevelschange",this._updateDisabled,this),$},onRemove:function(p){p.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(p){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(p.shiftKey?3:1))},_zoomOut:function(p){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(p.shiftKey?3:1))},_createButton:function(p,b,$,R,G){var fe=Qt("a",$,R);return fe.innerHTML=p,fe.href="#",fe.title=b,fe.setAttribute("role","button"),fe.setAttribute("aria-label",b),no(fe),Nt(fe,"click",Nn),Nt(fe,"click",G,this),Nt(fe,"click",this._refocusOnMap,this),fe},_updateDisabled:function(){var p=this._map,b="leaflet-disabled";Vn(this._zoomInButton,b),Vn(this._zoomOutButton,b),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||p._zoom===p.getMinZoom())&&(Bt(this._zoomOutButton,b),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||p._zoom===p.getMaxZoom())&&(Bt(this._zoomInButton,b),this._zoomInButton.setAttribute("aria-disabled","true"))}});gt.mergeOptions({zoomControl:!0}),gt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new fr,this.addControl(this.zoomControl))});var kr=function(p){return new fr(p)},Os=Xt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(p){var b="leaflet-control-scale",$=Qt("div",b),R=this.options;return this._addScales(R,b+"-line",$),p.on(R.updateWhenIdle?"moveend":"move",this._update,this),p.whenReady(this._update,this),$},onRemove:function(p){p.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(p,b,$){p.metric&&(this._mScale=Qt("div",b,$)),p.imperial&&(this._iScale=Qt("div",b,$))},_update:function(){var p=this._map,b=p.getSize().y/2,$=p.distance(p.containerPointToLatLng([0,b]),p.containerPointToLatLng([this.options.maxWidth,b]));this._updateScales($)},_updateScales:function(p){this.options.metric&&p&&this._updateMetric(p),this.options.imperial&&p&&this._updateImperial(p)},_updateMetric:function(p){var b=this._getRoundNum(p),$=b<1e3?b+" m":b/1e3+" km";this._updateScale(this._mScale,$,b/p)},_updateImperial:function(p){var b=p*3.2808399,$,R,G;b>5280?($=b/5280,R=this._getRoundNum($),this._updateScale(this._iScale,R+" mi",R/$)):(G=this._getRoundNum(b),this._updateScale(this._iScale,G+" ft",G/b))},_updateScale:function(p,b,$){p.style.width=Math.round(this.options.maxWidth*$)+"px",p.innerHTML=b},_getRoundNum:function(p){var b=Math.pow(10,(Math.floor(p)+"").length-1),$=p/b;return $=$>=10?10:$>=5?5:$>=3?3:$>=2?2:1,b*$}}),Ds=function(p){return new Os(p)},hu='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Eh=Xt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(yt.inlineSvg?hu+" ":"")+"Leaflet</a>"},initialize:function(p){g(this,p),this._attributions={}},onAdd:function(p){p.attributionControl=this,this._container=Qt("div","leaflet-control-attribution"),no(this._container);for(var b in p._layers)p._layers[b].getAttribution&&this.addAttribution(p._layers[b].getAttribution());return this._update(),p.on("layeradd",this._addAttribution,this),this._container},onRemove:function(p){p.off("layeradd",this._addAttribution,this)},_addAttribution:function(p){p.layer.getAttribution&&(this.addAttribution(p.layer.getAttribution()),p.layer.once("remove",function(){this.removeAttribution(p.layer.getAttribution())},this))},setPrefix:function(p){return this.options.prefix=p,this._update(),this},addAttribution:function(p){return p?(this._attributions[p]||(this._attributions[p]=0),this._attributions[p]++,this._update(),this):this},removeAttribution:function(p){return p?(this._attributions[p]&&(this._attributions[p]--,this._update()),this):this},_update:function(){if(this._map){var p=[];for(var b in this._attributions)this._attributions[b]&&p.push(b);var $=[];this.options.prefix&&$.push(this.options.prefix),p.length&&$.push(p.join(", ")),this._container.innerHTML=$.join(' <span aria-hidden="true">|</span> ')}}});gt.mergeOptions({attributionControl:!0}),gt.addInitHook(function(){this.options.attributionControl&&new Eh().addTo(this)});var xh=function(p){return new Eh(p)};Xt.Layers=ia,Xt.Zoom=fr,Xt.Scale=Os,Xt.Attribution=Eh,Vi.layers=Ji,Vi.zoom=kr,Vi.scale=Ds,Vi.attribution=xh;var Ma=V.extend({initialize:function(p){this._map=p},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ma.addTo=function(p,b){return p.addHandler(b,this),this};var aY={Events:q},vT=yt.touch?"touchstart mousedown":"mousedown",yc=ne.extend({options:{clickTolerance:3},initialize:function(p,b,$,R){g(this,R),this._element=p,this._dragStartTarget=b||p,this._preventOutline=$},enable:function(){this._enabled||(Nt(this._dragStartTarget,vT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yc._dragging===this&&this.finishDrag(!0),yn(this._dragStartTarget,vT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(p){if(this._enabled&&(this._moved=!1,!na(this._element,"leaflet-zoom-anim"))){if(p.touches&&p.touches.length!==1){yc._dragging===this&&this.finishDrag();return}if(!(yc._dragging||p.shiftKey||p.which!==1&&p.button!==1&&!p.touches)&&(yc._dragging=this,this._preventOutline&&Sn(this._element),Dt(),Ri(),!this._moving)){this.fire("down");var b=p.touches?p.touches[0]:p,$=et(this._element);this._startPoint=new ae(b.clientX,b.clientY),this._startPos=Br(this._element),this._parentScale=Bn($);var R=p.type==="mousedown";Nt(document,R?"mousemove":"touchmove",this._onMove,this),Nt(document,R?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(p){if(this._enabled){if(p.touches&&p.touches.length>1){this._moved=!0;return}var b=p.touches&&p.touches.length===1?p.touches[0]:p,$=new ae(b.clientX,b.clientY)._subtract(this._startPoint);!$.x&&!$.y||Math.abs($.x)+Math.abs($.y)<this.options.clickTolerance||($.x/=this._parentScale.x,$.y/=this._parentScale.y,gi(p),this._moved||(this.fire("dragstart"),this._moved=!0,Bt(document.body,"leaflet-dragging"),this._lastTarget=p.target||p.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Bt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add($),this._moving=!0,this._lastEvent=p,this._updatePosition())}},_updatePosition:function(){var p={originalEvent:this._lastEvent};this.fire("predrag",p),si(this._element,this._newPos),this.fire("drag",p)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(p){Vn(document.body,"leaflet-dragging"),this._lastTarget&&(Vn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),yn(document,"mousemove touchmove",this._onMove,this),yn(document,"mouseup touchend touchcancel",this._onUp,this),Qe(),zr();var b=this._moved&&this._moving;this._moving=!1,yc._dragging=!1,b&&this.fire("dragend",{noInertia:p,distance:this._newPos.distanceTo(this._startPos)})}});function gT(p,b,$){var R,G=[1,4,2,8],fe,Ce,Le,qe,tt,mt,Lt,cn;for(fe=0,mt=p.length;fe<mt;fe++)p[fe]._code=Pd(p[fe],b);for(Le=0;Le<4;Le++){for(Lt=G[Le],R=[],fe=0,mt=p.length,Ce=mt-1;fe<mt;Ce=fe++)qe=p[fe],tt=p[Ce],qe._code&Lt?tt._code&Lt||(cn=Cy(tt,qe,Lt,b,$),cn._code=Pd(cn,b),R.push(cn)):(tt._code&Lt&&(cn=Cy(tt,qe,Lt,b,$),cn._code=Pd(cn,b),R.push(cn)),R.push(qe));p=R}return p}function yT(p,b){var $,R,G,fe,Ce,Le,qe,tt,mt;if(!p||p.length===0)throw new Error("latlngs not passed");Qo(p)||(console.warn("latlngs are not flat! Only the first ring will be used"),p=p[0]);var Lt=U([0,0]),cn=he(p),La=cn.getNorthWest().distanceTo(cn.getSouthWest())*cn.getNorthEast().distanceTo(cn.getNorthWest());La<1700&&(Lt=n3(p));var jr=p.length,es=[];for($=0;$<jr;$++){var io=U(p[$]);es.push(b.project(U([io.lat-Lt.lat,io.lng-Lt.lng])))}for(Le=qe=tt=0,$=0,R=jr-1;$<jr;R=$++)G=es[$],fe=es[R],Ce=G.y*fe.x-fe.y*G.x,qe+=(G.x+fe.x)*Ce,tt+=(G.y+fe.y)*Ce,Le+=Ce*3;Le===0?mt=es[0]:mt=[qe/Le,tt/Le];var Oh=b.unproject(M(mt));return U([Oh.lat+Lt.lat,Oh.lng+Lt.lng])}function n3(p){for(var b=0,$=0,R=0,G=0;G<p.length;G++){var fe=U(p[G]);b+=fe.lat,$+=fe.lng,R++}return U([b/R,$/R])}var oY={__proto__:null,clipPolygon:gT,polygonCenter:yT,centroid:n3};function _T(p,b){if(!b||!p.length)return p.slice();var $=b*b;return p=uY(p,$),p=lY(p,$),p}function bT(p,b,$){return Math.sqrt(Gm(p,b,$,!0))}function sY(p,b,$){return Gm(p,b,$)}function lY(p,b){var $=p.length,R=typeof Uint8Array!=void 0+""?Uint8Array:Array,G=new R($);G[0]=G[$-1]=1,i3(p,G,b,0,$-1);var fe,Ce=[];for(fe=0;fe<$;fe++)G[fe]&&Ce.push(p[fe]);return Ce}function i3(p,b,$,R,G){var fe=0,Ce,Le,qe;for(Le=R+1;Le<=G-1;Le++)qe=Gm(p[Le],p[R],p[G],!0),qe>fe&&(Ce=Le,fe=qe);fe>$&&(b[Ce]=1,i3(p,b,$,R,Ce),i3(p,b,$,Ce,G))}function uY(p,b){for(var $=[p[0]],R=1,G=0,fe=p.length;R<fe;R++)cY(p[R],p[G])>b&&($.push(p[R]),G=R);return G<fe-1&&$.push(p[fe-1]),$}var wT;function ST(p,b,$,R,G){var fe=R?wT:Pd(p,$),Ce=Pd(b,$),Le,qe,tt;for(wT=Ce;;){if(!(fe|Ce))return[p,b];if(fe&Ce)return!1;Le=fe||Ce,qe=Cy(p,b,Le,$,G),tt=Pd(qe,$),Le===fe?(p=qe,fe=tt):(b=qe,Ce=tt)}}function Cy(p,b,$,R,G){var fe=b.x-p.x,Ce=b.y-p.y,Le=R.min,qe=R.max,tt,mt;return $&8?(tt=p.x+fe*(qe.y-p.y)/Ce,mt=qe.y):$&4?(tt=p.x+fe*(Le.y-p.y)/Ce,mt=Le.y):$&2?(tt=qe.x,mt=p.y+Ce*(qe.x-p.x)/fe):$&1&&(tt=Le.x,mt=p.y+Ce*(Le.x-p.x)/fe),new ae(tt,mt,G)}function Pd(p,b){var $=0;return p.x<b.min.x?$|=1:p.x>b.max.x&&($|=2),p.y<b.min.y?$|=4:p.y>b.max.y&&($|=8),$}function cY(p,b){var $=b.x-p.x,R=b.y-p.y;return $*$+R*R}function Gm(p,b,$,R){var G=b.x,fe=b.y,Ce=$.x-G,Le=$.y-fe,qe=Ce*Ce+Le*Le,tt;return qe>0&&(tt=((p.x-G)*Ce+(p.y-fe)*Le)/qe,tt>1?(G=$.x,fe=$.y):tt>0&&(G+=Ce*tt,fe+=Le*tt)),Ce=p.x-G,Le=p.y-fe,R?Ce*Ce+Le*Le:new ae(G,fe)}function Qo(p){return!S(p[0])||typeof p[0][0]!="object"&&typeof p[0][0]<"u"}function CT(p){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Qo(p)}function ET(p,b){var $,R,G,fe,Ce,Le,qe,tt;if(!p||p.length===0)throw new Error("latlngs not passed");Qo(p)||(console.warn("latlngs are not flat! Only the first ring will be used"),p=p[0]);var mt=U([0,0]),Lt=he(p),cn=Lt.getNorthWest().distanceTo(Lt.getSouthWest())*Lt.getNorthEast().distanceTo(Lt.getNorthWest());cn<1700&&(mt=n3(p));var La=p.length,jr=[];for($=0;$<La;$++){var es=U(p[$]);jr.push(b.project(U([es.lat-mt.lat,es.lng-mt.lng])))}for($=0,R=0;$<La-1;$++)R+=jr[$].distanceTo(jr[$+1])/2;if(R===0)tt=jr[0];else for($=0,fe=0;$<La-1;$++)if(Ce=jr[$],Le=jr[$+1],G=Ce.distanceTo(Le),fe+=G,fe>R){qe=(fe-R)/G,tt=[Le.x-qe*(Le.x-Ce.x),Le.y-qe*(Le.y-Ce.y)];break}var io=b.unproject(M(tt));return U([io.lat+mt.lat,io.lng+mt.lng])}var dY={__proto__:null,simplify:_T,pointToSegmentDistance:bT,closestPointOnSegment:sY,clipSegment:ST,_getEdgeIntersection:Cy,_getBitCode:Pd,_sqClosestPointOnSegment:Gm,isFlat:Qo,_flat:CT,polylineCenter:ET},r3={project:function(p){return new ae(p.lng,p.lat)},unproject:function(p){return new oe(p.y,p.x)},bounds:new I([-180,-90],[180,90])},a3={R:6378137,R_MINOR:6356752314245179e-9,bounds:new I([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(p){var b=Math.PI/180,$=this.R,R=p.lat*b,G=this.R_MINOR/$,fe=Math.sqrt(1-G*G),Ce=fe*Math.sin(R),Le=Math.tan(Math.PI/4-R/2)/Math.pow((1-Ce)/(1+Ce),fe/2);return R=-$*Math.log(Math.max(Le,1e-10)),new ae(p.lng*b*$,R)},unproject:function(p){for(var b=180/Math.PI,$=this.R,R=this.R_MINOR/$,G=Math.sqrt(1-R*R),fe=Math.exp(-p.y/$),Ce=Math.PI/2-2*Math.atan(fe),Le=0,qe=.1,tt;Le<15&&Math.abs(qe)>1e-7;Le++)tt=G*Math.sin(Ce),tt=Math.pow((1-tt)/(1+tt),G/2),qe=Math.PI/2-2*Math.atan(fe*tt)-Ce,Ce+=qe;return new oe(Ce*b,p.x*b/$)}},fY={__proto__:null,LonLat:r3,Mercator:a3,SphericalMercator:pe},hY=r({},re,{code:"EPSG:3395",projection:a3,transformation:function(){var p=.5/(Math.PI*a3.R);return Te(p,.5,-p,.5)}()}),xT=r({},re,{code:"EPSG:4326",projection:r3,transformation:Te(1/180,1,-1/180,.5)}),pY=r({},ee,{projection:r3,transformation:Te(1,0,-1,0),scale:function(p){return Math.pow(2,p)},zoom:function(p){return Math.log(p)/Math.LN2},distance:function(p,b){var $=b.lng-p.lng,R=b.lat-p.lat;return Math.sqrt($*$+R*R)},infinite:!0});ee.Earth=re,ee.EPSG3395=hY,ee.EPSG3857=Z,ee.EPSG900913=X,ee.EPSG4326=xT,ee.Simple=pY;var Is=ne.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(p){return p.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(p){return p&&p.removeLayer(this),this},getPane:function(p){return this._map.getPane(p?this.options[p]||p:this.options.pane)},addInteractiveTarget:function(p){return this._map._targets[l(p)]=this,this},removeInteractiveTarget:function(p){return delete this._map._targets[l(p)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(p){var b=p.target;if(b.hasLayer(this)){if(this._map=b,this._zoomAnimated=b._zoomAnimated,this.getEvents){var $=this.getEvents();b.on($,this),this.once("remove",function(){b.off($,this)},this)}this.onAdd(b),this.fire("add"),b.fire("layeradd",{layer:this})}}});gt.include({addLayer:function(p){if(!p._layerAdd)throw new Error("The provided object is not a Layer.");var b=l(p);return this._layers[b]?this:(this._layers[b]=p,p._mapToAdd=this,p.beforeAdd&&p.beforeAdd(this),this.whenReady(p._layerAdd,p),this)},removeLayer:function(p){var b=l(p);return this._layers[b]?(this._loaded&&p.onRemove(this),delete this._layers[b],this._loaded&&(this.fire("layerremove",{layer:p}),p.fire("remove")),p._map=p._mapToAdd=null,this):this},hasLayer:function(p){return l(p)in this._layers},eachLayer:function(p,b){for(var $ in this._layers)p.call(b,this._layers[$]);return this},_addLayers:function(p){p=p?S(p)?p:[p]:[];for(var b=0,$=p.length;b<$;b++)this.addLayer(p[b])},_addZoomLimit:function(p){(!isNaN(p.options.maxZoom)||!isNaN(p.options.minZoom))&&(this._zoomBoundLayers[l(p)]=p,this._updateZoomLevels())},_removeZoomLimit:function(p){var b=l(p);this._zoomBoundLayers[b]&&(delete this._zoomBoundLayers[b],this._updateZoomLevels())},_updateZoomLevels:function(){var p=1/0,b=-1/0,$=this._getZoomSpan();for(var R in this._zoomBoundLayers){var G=this._zoomBoundLayers[R].options;p=G.minZoom===void 0?p:Math.min(p,G.minZoom),b=G.maxZoom===void 0?b:Math.max(b,G.maxZoom)}this._layersMaxZoom=b===-1/0?void 0:b,this._layersMinZoom=p===1/0?void 0:p,$!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var kh=Is.extend({initialize:function(p,b){g(this,b),this._layers={};var $,R;if(p)for($=0,R=p.length;$<R;$++)this.addLayer(p[$])},addLayer:function(p){var b=this.getLayerId(p);return this._layers[b]=p,this._map&&this._map.addLayer(p),this},removeLayer:function(p){var b=p in this._layers?p:this.getLayerId(p);return this._map&&this._layers[b]&&this._map.removeLayer(this._layers[b]),delete this._layers[b],this},hasLayer:function(p){var b=typeof p=="number"?p:this.getLayerId(p);return b in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(p){var b=Array.prototype.slice.call(arguments,1),$,R;for($ in this._layers)R=this._layers[$],R[p]&&R[p].apply(R,b);return this},onAdd:function(p){this.eachLayer(p.addLayer,p)},onRemove:function(p){this.eachLayer(p.removeLayer,p)},eachLayer:function(p,b){for(var $ in this._layers)p.call(b,this._layers[$]);return this},getLayer:function(p){return this._layers[p]},getLayers:function(){var p=[];return this.eachLayer(p.push,p),p},setZIndex:function(p){return this.invoke("setZIndex",p)},getLayerId:function(p){return l(p)}}),mY=function(p,b){return new kh(p,b)},pu=kh.extend({addLayer:function(p){return this.hasLayer(p)?this:(p.addEventParent(this),kh.prototype.addLayer.call(this,p),this.fire("layeradd",{layer:p}))},removeLayer:function(p){return this.hasLayer(p)?(p in this._layers&&(p=this._layers[p]),p.removeEventParent(this),kh.prototype.removeLayer.call(this,p),this.fire("layerremove",{layer:p})):this},setStyle:function(p){return this.invoke("setStyle",p)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var p=new te;for(var b in this._layers){var $=this._layers[b];p.extend($.getBounds?$.getBounds():$.getLatLng())}return p}}),vY=function(p,b){return new pu(p,b)},Th=V.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(p){g(this,p)},createIcon:function(p){return this._createIcon("icon",p)},createShadow:function(p){return this._createIcon("shadow",p)},_createIcon:function(p,b){var $=this._getIconUrl(p);if(!$){if(p==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var R=this._createImg($,b&&b.tagName==="IMG"?b:null);return this._setIconStyles(R,p),(this.options.crossOrigin||this.options.crossOrigin==="")&&(R.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),R},_setIconStyles:function(p,b){var $=this.options,R=$[b+"Size"];typeof R=="number"&&(R=[R,R]);var G=M(R),fe=M(b==="shadow"&&$.shadowAnchor||$.iconAnchor||G&&G.divideBy(2,!0));p.className="leaflet-marker-"+b+" "+($.className||""),fe&&(p.style.marginLeft=-fe.x+"px",p.style.marginTop=-fe.y+"px"),G&&(p.style.width=G.x+"px",p.style.height=G.y+"px")},_createImg:function(p,b){return b=b||document.createElement("img"),b.src=p,b},_getIconUrl:function(p){return yt.retina&&this.options[p+"RetinaUrl"]||this.options[p+"Url"]}});function gY(p){return new Th(p)}var Km=Th.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(p){return typeof Km.imagePath!="string"&&(Km.imagePath=this._detectIconPath()),(this.options.imagePath||Km.imagePath)+Th.prototype._getIconUrl.call(this,p)},_stripUrl:function(p){var b=function($,R,G){var fe=R.exec($);return fe&&fe[G]};return p=b(p,/^url\((['"])?(.+)\1\)$/,2),p&&b(p,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var p=Qt("div","leaflet-default-icon-path",document.body),b=wo(p,"background-image")||wo(p,"backgroundImage");if(document.body.removeChild(p),b=this._stripUrl(b),b)return b;var $=document.querySelector('link[href$="leaflet.css"]');return $?$.href.substring(0,$.href.length-11-1):""}}),kT=Ma.extend({initialize:function(p){this._marker=p},addHooks:function(){var p=this._marker._icon;this._draggable||(this._draggable=new yc(p,p,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Bt(p,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Vn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(p){var b=this._marker,$=b._map,R=this._marker.options.autoPanSpeed,G=this._marker.options.autoPanPadding,fe=Br(b._icon),Ce=$.getPixelBounds(),Le=$.getPixelOrigin(),qe=W(Ce.min._subtract(Le).add(G),Ce.max._subtract(Le).subtract(G));if(!qe.contains(fe)){var tt=M((Math.max(qe.max.x,fe.x)-qe.max.x)/(Ce.max.x-qe.max.x)-(Math.min(qe.min.x,fe.x)-qe.min.x)/(Ce.min.x-qe.min.x),(Math.max(qe.max.y,fe.y)-qe.max.y)/(Ce.max.y-qe.max.y)-(Math.min(qe.min.y,fe.y)-qe.min.y)/(Ce.min.y-qe.min.y)).multiplyBy(R);$.panBy(tt,{animate:!1}),this._draggable._newPos._add(tt),this._draggable._startPos._add(tt),si(b._icon,this._draggable._newPos),this._onDrag(p),this._panRequest=T(this._adjustPan.bind(this,p))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(p){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,p)))},_onDrag:function(p){var b=this._marker,$=b._shadow,R=Br(b._icon),G=b._map.layerPointToLatLng(R);$&&si($,R),b._latlng=G,p.latlng=G,p.oldLatLng=this._oldLatLng,b.fire("move",p).fire("drag",p)},_onDragEnd:function(p){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",p)}}),Ey=Is.extend({options:{icon:new Km,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(p,b){g(this,b),this._latlng=U(p)},onAdd:function(p){this._zoomAnimated=this._zoomAnimated&&p.options.markerZoomAnimation,this._zoomAnimated&&p.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(p){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&p.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(p){var b=this._latlng;return this._latlng=U(p),this.update(),this.fire("move",{oldLatLng:b,latlng:this._latlng})},setZIndexOffset:function(p){return this.options.zIndexOffset=p,this.update()},getIcon:function(){return this.options.icon},setIcon:function(p){return this.options.icon=p,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var p=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(p)}return this},_initIcon:function(){var p=this.options,b="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),$=p.icon.createIcon(this._icon),R=!1;$!==this._icon&&(this._icon&&this._removeIcon(),R=!0,p.title&&($.title=p.title),$.tagName==="IMG"&&($.alt=p.alt||"")),Bt($,b),p.keyboard&&($.tabIndex="0",$.setAttribute("role","button")),this._icon=$,p.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Nt($,"focus",this._panOnFocus,this);var G=p.icon.createShadow(this._shadow),fe=!1;G!==this._shadow&&(this._removeShadow(),fe=!0),G&&(Bt(G,b),G.alt=""),this._shadow=G,p.opacity<1&&this._updateOpacity(),R&&this.getPane().appendChild(this._icon),this._initInteraction(),G&&fe&&this.getPane(p.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&yn(this._icon,"focus",this._panOnFocus,this),Dn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Dn(this._shadow),this._shadow=null},_setPos:function(p){this._icon&&si(this._icon,p),this._shadow&&si(this._shadow,p),this._zIndex=p.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(p){this._icon&&(this._icon.style.zIndex=this._zIndex+p)},_animateZoom:function(p){var b=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center).round();this._setPos(b)},_initInteraction:function(){if(this.options.interactive&&(Bt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),kT)){var p=this.options.draggable;this.dragging&&(p=this.dragging.enabled(),this.dragging.disable()),this.dragging=new kT(this),p&&this.dragging.enable()}},setOpacity:function(p){return this.options.opacity=p,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var p=this.options.opacity;this._icon&&Vr(this._icon,p),this._shadow&&Vr(this._shadow,p)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var p=this._map;if(p){var b=this.options.icon.options,$=b.iconSize?M(b.iconSize):M(0,0),R=b.iconAnchor?M(b.iconAnchor):M(0,0);p.panInside(this._latlng,{paddingTopLeft:R,paddingBottomRight:$.subtract(R)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function yY(p,b){return new Ey(p,b)}var _c=Is.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(p){this._renderer=p.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(p){return g(this,p),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&p&&Object.prototype.hasOwnProperty.call(p,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),xy=_c.extend({options:{fill:!0,radius:10},initialize:function(p,b){g(this,b),this._latlng=U(p),this._radius=this.options.radius},setLatLng:function(p){var b=this._latlng;return this._latlng=U(p),this.redraw(),this.fire("move",{oldLatLng:b,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(p){return this.options.radius=this._radius=p,this.redraw()},getRadius:function(){return this._radius},setStyle:function(p){var b=p&&p.radius||this._radius;return _c.prototype.setStyle.call(this,p),this.setRadius(b),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var p=this._radius,b=this._radiusY||p,$=this._clickTolerance(),R=[p+$,b+$];this._pxBounds=new I(this._point.subtract(R),this._point.add(R))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(p){return p.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(p,b){return new xy(p,b)}var o3=xy.extend({initialize:function(p,b,$){if(typeof b=="number"&&(b=r({},$,{radius:b})),g(this,b),this._latlng=U(p),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(p){return this._mRadius=p,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var p=[this._radius,this._radiusY||this._radius];return new te(this._map.layerPointToLatLng(this._point.subtract(p)),this._map.layerPointToLatLng(this._point.add(p)))},setStyle:_c.prototype.setStyle,_project:function(){var p=this._latlng.lng,b=this._latlng.lat,$=this._map,R=$.options.crs;if(R.distance===re.distance){var G=Math.PI/180,fe=this._mRadius/re.R/G,Ce=$.project([b+fe,p]),Le=$.project([b-fe,p]),qe=Ce.add(Le).divideBy(2),tt=$.unproject(qe).lat,mt=Math.acos((Math.cos(fe*G)-Math.sin(b*G)*Math.sin(tt*G))/(Math.cos(b*G)*Math.cos(tt*G)))/G;(isNaN(mt)||mt===0)&&(mt=fe/Math.cos(Math.PI/180*b)),this._point=qe.subtract($.getPixelOrigin()),this._radius=isNaN(mt)?0:qe.x-$.project([tt,p-mt]).x,this._radiusY=qe.y-Ce.y}else{var Lt=R.unproject(R.project(this._latlng).subtract([this._mRadius,0]));this._point=$.latLngToLayerPoint(this._latlng),this._radius=this._point.x-$.latLngToLayerPoint(Lt).x}this._updateBounds()}});function bY(p,b,$){return new o3(p,b,$)}var mu=_c.extend({options:{smoothFactor:1,noClip:!1},initialize:function(p,b){g(this,b),this._setLatLngs(p)},getLatLngs:function(){return this._latlngs},setLatLngs:function(p){return this._setLatLngs(p),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(p){for(var b=1/0,$=null,R=Gm,G,fe,Ce=0,Le=this._parts.length;Ce<Le;Ce++)for(var qe=this._parts[Ce],tt=1,mt=qe.length;tt<mt;tt++){G=qe[tt-1],fe=qe[tt];var Lt=R(p,G,fe,!0);Lt<b&&(b=Lt,$=R(p,G,fe))}return $&&($.distance=Math.sqrt(b)),$},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ET(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(p,b){return b=b||this._defaultShape(),p=U(p),b.push(p),this._bounds.extend(p),this.redraw()},_setLatLngs:function(p){this._bounds=new te,this._latlngs=this._convertLatLngs(p)},_defaultShape:function(){return Qo(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(p){for(var b=[],$=Qo(p),R=0,G=p.length;R<G;R++)$?(b[R]=U(p[R]),this._bounds.extend(b[R])):b[R]=this._convertLatLngs(p[R]);return b},_project:function(){var p=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,p),this._bounds.isValid()&&p.isValid()&&(this._rawPxBounds=p,this._updateBounds())},_updateBounds:function(){var p=this._clickTolerance(),b=new ae(p,p);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(b),this._rawPxBounds.max.add(b)]))},_projectLatlngs:function(p,b,$){var R=p[0]instanceof oe,G=p.length,fe,Ce;if(R){for(Ce=[],fe=0;fe<G;fe++)Ce[fe]=this._map.latLngToLayerPoint(p[fe]),$.extend(Ce[fe]);b.push(Ce)}else for(fe=0;fe<G;fe++)this._projectLatlngs(p[fe],b,$)},_clipPoints:function(){var p=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(p))){if(this.options.noClip){this._parts=this._rings;return}var b=this._parts,$,R,G,fe,Ce,Le,qe;for($=0,G=0,fe=this._rings.length;$<fe;$++)for(qe=this._rings[$],R=0,Ce=qe.length;R<Ce-1;R++)Le=ST(qe[R],qe[R+1],p,R,!0),Le&&(b[G]=b[G]||[],b[G].push(Le[0]),(Le[1]!==qe[R+1]||R===Ce-2)&&(b[G].push(Le[1]),G++))}},_simplifyPoints:function(){for(var p=this._parts,b=this.options.smoothFactor,$=0,R=p.length;$<R;$++)p[$]=_T(p[$],b)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(p,b){var $,R,G,fe,Ce,Le,qe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for($=0,fe=this._parts.length;$<fe;$++)for(Le=this._parts[$],R=0,Ce=Le.length,G=Ce-1;R<Ce;G=R++)if(!(!b&&R===0)&&bT(p,Le[G],Le[R])<=qe)return!0;return!1}});function wY(p,b){return new mu(p,b)}mu._flat=CT;var Ph=mu.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(p){var b=mu.prototype._convertLatLngs.call(this,p),$=b.length;return $>=2&&b[0]instanceof oe&&b[0].equals(b[$-1])&&b.pop(),b},_setLatLngs:function(p){mu.prototype._setLatLngs.call(this,p),Qo(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Qo(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var p=this._renderer._bounds,b=this.options.weight,$=new ae(b,b);if(p=new I(p.min.subtract($),p.max.add($)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(p))){if(this.options.noClip){this._parts=this._rings;return}for(var R=0,G=this._rings.length,fe;R<G;R++)fe=gT(this._rings[R],p,!0),fe.length&&this._parts.push(fe)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(p){var b=!1,$,R,G,fe,Ce,Le,qe,tt;if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for(fe=0,qe=this._parts.length;fe<qe;fe++)for($=this._parts[fe],Ce=0,tt=$.length,Le=tt-1;Ce<tt;Le=Ce++)R=$[Ce],G=$[Le],R.y>p.y!=G.y>p.y&&p.x<(G.x-R.x)*(p.y-R.y)/(G.y-R.y)+R.x&&(b=!b);return b||mu.prototype._containsPoint.call(this,p,!0)}});function SY(p,b){return new Ph(p,b)}var vu=pu.extend({initialize:function(p,b){g(this,b),this._layers={},p&&this.addData(p)},addData:function(p){var b=S(p)?p:p.features,$,R,G;if(b){for($=0,R=b.length;$<R;$++)G=b[$],(G.geometries||G.geometry||G.features||G.coordinates)&&this.addData(G);return this}var fe=this.options;if(fe.filter&&!fe.filter(p))return this;var Ce=ky(p,fe);return Ce?(Ce.feature=$y(p),Ce.defaultOptions=Ce.options,this.resetStyle(Ce),fe.onEachFeature&&fe.onEachFeature(p,Ce),this.addLayer(Ce)):this},resetStyle:function(p){return p===void 0?this.eachLayer(this.resetStyle,this):(p.options=r({},p.defaultOptions),this._setLayerStyle(p,this.options.style),this)},setStyle:function(p){return this.eachLayer(function(b){this._setLayerStyle(b,p)},this)},_setLayerStyle:function(p,b){p.setStyle&&(typeof b=="function"&&(b=b(p.feature)),p.setStyle(b))}});function ky(p,b){var $=p.type==="Feature"?p.geometry:p,R=$?$.coordinates:null,G=[],fe=b&&b.pointToLayer,Ce=b&&b.coordsToLatLng||s3,Le,qe,tt,mt;if(!R&&!$)return null;switch($.type){case"Point":return Le=Ce(R),TT(fe,p,Le,b);case"MultiPoint":for(tt=0,mt=R.length;tt<mt;tt++)Le=Ce(R[tt]),G.push(TT(fe,p,Le,b));return new pu(G);case"LineString":case"MultiLineString":return qe=Ty(R,$.type==="LineString"?0:1,Ce),new mu(qe,b);case"Polygon":case"MultiPolygon":return qe=Ty(R,$.type==="Polygon"?1:2,Ce),new Ph(qe,b);case"GeometryCollection":for(tt=0,mt=$.geometries.length;tt<mt;tt++){var Lt=ky({geometry:$.geometries[tt],type:"Feature",properties:p.properties},b);Lt&&G.push(Lt)}return new pu(G);case"FeatureCollection":for(tt=0,mt=$.features.length;tt<mt;tt++){var cn=ky($.features[tt],b);cn&&G.push(cn)}return new pu(G);default:throw new Error("Invalid GeoJSON object.")}}function TT(p,b,$,R){return p?p(b,$):new Ey($,R&&R.markersInheritOptions&&R)}function s3(p){return new oe(p[1],p[0],p[2])}function Ty(p,b,$){for(var R=[],G=0,fe=p.length,Ce;G<fe;G++)Ce=b?Ty(p[G],b-1,$):($||s3)(p[G]),R.push(Ce);return R}function l3(p,b){return p=U(p),p.alt!==void 0?[f(p.lng,b),f(p.lat,b),f(p.alt,b)]:[f(p.lng,b),f(p.lat,b)]}function Py(p,b,$,R){for(var G=[],fe=0,Ce=p.length;fe<Ce;fe++)G.push(b?Py(p[fe],Qo(p[fe])?0:b-1,$,R):l3(p[fe],R));return!b&&$&&G.length>0&&G.push(G[0].slice()),G}function $h(p,b){return p.feature?r({},p.feature,{geometry:b}):$y(b)}function $y(p){return p.type==="Feature"||p.type==="FeatureCollection"?p:{type:"Feature",properties:{},geometry:p}}var u3={toGeoJSON:function(p){return $h(this,{type:"Point",coordinates:l3(this.getLatLng(),p)})}};Ey.include(u3),o3.include(u3),xy.include(u3),mu.include({toGeoJSON:function(p){var b=!Qo(this._latlngs),$=Py(this._latlngs,b?1:0,!1,p);return $h(this,{type:(b?"Multi":"")+"LineString",coordinates:$})}}),Ph.include({toGeoJSON:function(p){var b=!Qo(this._latlngs),$=b&&!Qo(this._latlngs[0]),R=Py(this._latlngs,$?2:b?1:0,!0,p);return b||(R=[R]),$h(this,{type:($?"Multi":"")+"Polygon",coordinates:R})}}),kh.include({toMultiPoint:function(p){var b=[];return this.eachLayer(function($){b.push($.toGeoJSON(p).geometry.coordinates)}),$h(this,{type:"MultiPoint",coordinates:b})},toGeoJSON:function(p){var b=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(b==="MultiPoint")return this.toMultiPoint(p);var $=b==="GeometryCollection",R=[];return this.eachLayer(function(G){if(G.toGeoJSON){var fe=G.toGeoJSON(p);if($)R.push(fe.geometry);else{var Ce=$y(fe);Ce.type==="FeatureCollection"?R.push.apply(R,Ce.features):R.push(Ce)}}}),$?$h(this,{geometries:R,type:"GeometryCollection"}):{type:"FeatureCollection",features:R}}});function PT(p,b){return new vu(p,b)}var CY=PT,Ay=Is.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(p,b,$){this._url=p,this._bounds=he(b),g(this,$)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Bt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Dn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(p){return this.options.opacity=p,this._image&&this._updateOpacity(),this},setStyle:function(p){return p.opacity&&this.setOpacity(p.opacity),this},bringToFront:function(){return this._map&&Na(this._image),this},bringToBack:function(){return this._map&&So(this._image),this},setUrl:function(p){return this._url=p,this._image&&(this._image.src=p),this},setBounds:function(p){return this._bounds=he(p),this._map&&this._reset(),this},getEvents:function(){var p={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},setZIndex:function(p){return this.options.zIndex=p,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var p=this._url.tagName==="IMG",b=this._image=p?this._url:Qt("img");if(Bt(b,"leaflet-image-layer"),this._zoomAnimated&&Bt(b,"leaflet-zoom-animated"),this.options.className&&Bt(b,this.options.className),b.onselectstart=d,b.onmousemove=d,b.onload=o(this.fire,this,"load"),b.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),p){this._url=b.src;return}b.src=this._url,b.alt=this.options.alt},_animateZoom:function(p){var b=this._map.getZoomScale(p.zoom),$=this._map._latLngBoundsToNewLayerBounds(this._bounds,p.zoom,p.center).min;Co(this._image,$,b)},_reset:function(){var p=this._image,b=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),$=b.getSize();si(p,b.min),p.style.width=$.x+"px",p.style.height=$.y+"px"},_updateOpacity:function(){Vr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var p=this.options.errorOverlayUrl;p&&this._url!==p&&(this._url=p,this._image.src=p)},getCenter:function(){return this._bounds.getCenter()}}),EY=function(p,b,$){return new Ay(p,b,$)},$T=Ay.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var p=this._url.tagName==="VIDEO",b=this._image=p?this._url:Qt("video");if(Bt(b,"leaflet-image-layer"),this._zoomAnimated&&Bt(b,"leaflet-zoom-animated"),this.options.className&&Bt(b,this.options.className),b.onselectstart=d,b.onmousemove=d,b.onloadeddata=o(this.fire,this,"load"),p){for(var $=b.getElementsByTagName("source"),R=[],G=0;G<$.length;G++)R.push($[G].src);this._url=$.length>0?R:[b.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(b.style,"objectFit")&&(b.style.objectFit="fill"),b.autoplay=!!this.options.autoplay,b.loop=!!this.options.loop,b.muted=!!this.options.muted,b.playsInline=!!this.options.playsInline;for(var fe=0;fe<this._url.length;fe++){var Ce=Qt("source");Ce.src=this._url[fe],b.appendChild(Ce)}}});function xY(p,b,$){return new $T(p,b,$)}var AT=Ay.extend({_initImage:function(){var p=this._image=this._url;Bt(p,"leaflet-image-layer"),this._zoomAnimated&&Bt(p,"leaflet-zoom-animated"),this.options.className&&Bt(p,this.options.className),p.onselectstart=d,p.onmousemove=d}});function kY(p,b,$){return new AT(p,b,$)}var Sl=Is.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(p,b){p&&(p instanceof oe||S(p))?(this._latlng=U(p),g(this,b)):(g(this,p),this._source=b),this.options.content&&(this._content=this.options.content)},openOn:function(p){return p=arguments.length?p:this._source._map,p.hasLayer(this)||p.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(p){return this._map?this.close():(arguments.length?this._source=p:p=this._source,this._prepareOpen(),this.openOn(p._map)),this},onAdd:function(p){this._zoomAnimated=p._zoomAnimated,this._container||this._initLayout(),p._fadeAnimated&&Vr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),p._fadeAnimated&&Vr(this._container,1),this.bringToFront(),this.options.interactive&&(Bt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(p){p._fadeAnimated?(Vr(this._container,0),this._removeTimeout=setTimeout(o(Dn,void 0,this._container),200)):Dn(this._container),this.options.interactive&&(Vn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(p){return this._latlng=U(p),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(p){return this._content=p,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var p={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Na(this._container),this},bringToBack:function(){return this._map&&So(this._container),this},_prepareOpen:function(p){var b=this._source;if(!b._map)return!1;if(b instanceof pu){b=null;var $=this._source._layers;for(var R in $)if($[R]._map){b=$[R];break}if(!b)return!1;this._source=b}if(!p)if(b.getCenter)p=b.getCenter();else if(b.getLatLng)p=b.getLatLng();else if(b.getBounds)p=b.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(p),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var p=this._contentNode,b=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof b=="string")p.innerHTML=b;else{for(;p.hasChildNodes();)p.removeChild(p.firstChild);p.appendChild(b)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var p=this._map.latLngToLayerPoint(this._latlng),b=M(this.options.offset),$=this._getAnchor();this._zoomAnimated?si(this._container,p.add($)):b=b.add(p).add($);var R=this._containerBottom=-b.y,G=this._containerLeft=-Math.round(this._containerWidth/2)+b.x;this._container.style.bottom=R+"px",this._container.style.left=G+"px"}},_getAnchor:function(){return[0,0]}});gt.include({_initOverlay:function(p,b,$,R){var G=b;return G instanceof p||(G=new p(R).setContent(b)),$&&G.setLatLng($),G}}),Is.include({_initOverlay:function(p,b,$,R){var G=$;return G instanceof p?(g(G,R),G._source=this):(G=b&&!R?b:new p(R,this),G.setContent($)),G}});var Oy=Sl.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(p){return p=arguments.length?p:this._source._map,!p.hasLayer(this)&&p._popup&&p._popup.options.autoClose&&p.removeLayer(p._popup),p._popup=this,Sl.prototype.openOn.call(this,p)},onAdd:function(p){Sl.prototype.onAdd.call(this,p),p.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof _c||this._source.on("preclick",Xi))},onRemove:function(p){Sl.prototype.onRemove.call(this,p),p.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof _c||this._source.off("preclick",Xi))},getEvents:function(){var p=Sl.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(p.preclick=this.close),this.options.keepInView&&(p.moveend=this._adjustPan),p},_initLayout:function(){var p="leaflet-popup",b=this._container=Qt("div",p+" "+(this.options.className||"")+" leaflet-zoom-animated"),$=this._wrapper=Qt("div",p+"-content-wrapper",b);if(this._contentNode=Qt("div",p+"-content",$),no(b),As(this._contentNode),Nt(b,"contextmenu",Xi),this._tipContainer=Qt("div",p+"-tip-container",b),this._tip=Qt("div",p+"-tip",this._tipContainer),this.options.closeButton){var R=this._closeButton=Qt("a",p+"-close-button",b);R.setAttribute("role","button"),R.setAttribute("aria-label","Close popup"),R.href="#close",R.innerHTML='<span aria-hidden="true">×</span>',Nt(R,"click",function(G){gi(G),this.close()},this)}},_updateLayout:function(){var p=this._contentNode,b=p.style;b.width="",b.whiteSpace="nowrap";var $=p.offsetWidth;$=Math.min($,this.options.maxWidth),$=Math.max($,this.options.minWidth),b.width=$+1+"px",b.whiteSpace="",b.height="";var R=p.offsetHeight,G=this.options.maxHeight,fe="leaflet-popup-scrolled";G&&R>G?(b.height=G+"px",Bt(p,fe)):Vn(p,fe),this._containerWidth=this._container.offsetWidth},_animateZoom:function(p){var b=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center),$=this._getAnchor();si(this._container,b.add($))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var p=this._map,b=parseInt(wo(this._container,"marginBottom"),10)||0,$=this._container.offsetHeight+b,R=this._containerWidth,G=new ae(this._containerLeft,-$-this._containerBottom);G._add(Br(this._container));var fe=p.layerPointToContainerPoint(G),Ce=M(this.options.autoPanPadding),Le=M(this.options.autoPanPaddingTopLeft||Ce),qe=M(this.options.autoPanPaddingBottomRight||Ce),tt=p.getSize(),mt=0,Lt=0;fe.x+R+qe.x>tt.x&&(mt=fe.x+R-tt.x+qe.x),fe.x-mt-Le.x<0&&(mt=fe.x-Le.x),fe.y+$+qe.y>tt.y&&(Lt=fe.y+$-tt.y+qe.y),fe.y-Lt-Le.y<0&&(Lt=fe.y-Le.y),(mt||Lt)&&(this.options.keepInView&&(this._autopanning=!0),p.fire("autopanstart").panBy([mt,Lt]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(p,b){return new Oy(p,b)};gt.mergeOptions({closePopupOnClick:!0}),gt.include({openPopup:function(p,b,$){return this._initOverlay(Oy,p,b,$).openOn(this),this},closePopup:function(p){return p=arguments.length?p:this._popup,p&&p.close(),this}}),Is.include({bindPopup:function(p,b){return this._popup=this._initOverlay(Oy,this._popup,p,b),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(p){return this._popup&&(this instanceof pu||(this._popup._source=this),this._popup._prepareOpen(p||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(p){return this._popup&&this._popup.setContent(p),this},getPopup:function(){return this._popup},_openPopup:function(p){if(!(!this._popup||!this._map)){Nn(p);var b=p.layer||p.target;if(this._popup._source===b&&!(b instanceof _c)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(p.latlng);return}this._popup._source=b,this.openPopup(p.latlng)}},_movePopup:function(p){this._popup.setLatLng(p.latlng)},_onKeyPress:function(p){p.originalEvent.keyCode===13&&this._openPopup(p)}});var Dy=Sl.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(p){Sl.prototype.onAdd.call(this,p),this.setOpacity(this.options.opacity),p.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(p){Sl.prototype.onRemove.call(this,p),p.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var p=Sl.prototype.getEvents.call(this);return this.options.permanent||(p.preclick=this.close),p},_initLayout:function(){var p="leaflet-tooltip",b=p+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Qt("div",b),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(p){var b,$,R=this._map,G=this._container,fe=R.latLngToContainerPoint(R.getCenter()),Ce=R.layerPointToContainerPoint(p),Le=this.options.direction,qe=G.offsetWidth,tt=G.offsetHeight,mt=M(this.options.offset),Lt=this._getAnchor();Le==="top"?(b=qe/2,$=tt):Le==="bottom"?(b=qe/2,$=0):Le==="center"?(b=qe/2,$=tt/2):Le==="right"?(b=0,$=tt/2):Le==="left"?(b=qe,$=tt/2):Ce.x<fe.x?(Le="right",b=0,$=tt/2):(Le="left",b=qe+(mt.x+Lt.x)*2,$=tt/2),p=p.subtract(M(b,$,!0)).add(mt).add(Lt),Vn(G,"leaflet-tooltip-right"),Vn(G,"leaflet-tooltip-left"),Vn(G,"leaflet-tooltip-top"),Vn(G,"leaflet-tooltip-bottom"),Bt(G,"leaflet-tooltip-"+Le),si(G,p)},_updatePosition:function(){var p=this._map.latLngToLayerPoint(this._latlng);this._setPosition(p)},setOpacity:function(p){this.options.opacity=p,this._container&&Vr(this._container,p)},_animateZoom:function(p){var b=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center);this._setPosition(b)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),PY=function(p,b){return new Dy(p,b)};gt.include({openTooltip:function(p,b,$){return this._initOverlay(Dy,p,b,$).openOn(this),this},closeTooltip:function(p){return p.close(),this}}),Is.include({bindTooltip:function(p,b){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dy,this._tooltip,p,b),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(p){if(!(!p&&this._tooltipHandlersAdded)){var b=p?"off":"on",$={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?$.add=this._openTooltip:($.mouseover=this._openTooltip,$.mouseout=this.closeTooltip,$.click=this._openTooltip,this._map?this._addFocusListeners():$.add=this._addFocusListeners),this._tooltip.options.sticky&&($.mousemove=this._moveTooltip),this[b]($),this._tooltipHandlersAdded=!p}},openTooltip:function(p){return this._tooltip&&(this instanceof pu||(this._tooltip._source=this),this._tooltip._prepareOpen(p)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(p){return this._tooltip&&this._tooltip.setContent(p),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(p){var b=typeof p.getElement=="function"&&p.getElement();b&&(Nt(b,"focus",function(){this._tooltip._source=p,this.openTooltip()},this),Nt(b,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(p){var b=typeof p.getElement=="function"&&p.getElement();b&&b.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(p){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var b=this;this._map.once("moveend",function(){b._openOnceFlag=!1,b._openTooltip(p)});return}this._tooltip._source=p.layer||p.target,this.openTooltip(this._tooltip.options.sticky?p.latlng:void 0)}},_moveTooltip:function(p){var b=p.latlng,$,R;this._tooltip.options.sticky&&p.originalEvent&&($=this._map.mouseEventToContainerPoint(p.originalEvent),R=this._map.containerPointToLayerPoint($),b=this._map.layerPointToLatLng(R)),this._tooltip.setLatLng(b)}});var OT=Th.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(p){var b=p&&p.tagName==="DIV"?p:document.createElement("div"),$=this.options;if($.html instanceof Element?(Zo(b),b.appendChild($.html)):b.innerHTML=$.html!==!1?$.html:"",$.bgPos){var R=M($.bgPos);b.style.backgroundPosition=-R.x+"px "+-R.y+"px"}return this._setIconStyles(b,"icon"),b},createShadow:function(){return null}});function $Y(p){return new OT(p)}Th.Default=Km;var Zm=Is.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(p){g(this,p)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(p){p._addZoomLimit(this)},onRemove:function(p){this._removeAllTiles(),Dn(this._container),p._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Na(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(So(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(p){return this.options.opacity=p,this._updateOpacity(),this},setZIndex:function(p){return this.options.zIndex=p,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var p=this._clampZoom(this._map.getZoom());p!==this._tileZoom&&(this._tileZoom=p,this._updateLevels()),this._update()}return this},getEvents:function(){var p={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),p.move=this._onMove),this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},createTile:function(){return document.createElement("div")},getTileSize:function(){var p=this.options.tileSize;return p instanceof ae?p:new ae(p,p)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(p){for(var b=this.getPane().children,$=-p(-1/0,1/0),R=0,G=b.length,fe;R<G;R++)fe=b[R].style.zIndex,b[R]!==this._container&&fe&&($=p($,+fe));isFinite($)&&(this.options.zIndex=$+p(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!yt.ielt9){Vr(this._container,this.options.opacity);var p=+new Date,b=!1,$=!1;for(var R in this._tiles){var G=this._tiles[R];if(!(!G.current||!G.loaded)){var fe=Math.min(1,(p-G.loaded)/200);Vr(G.el,fe),fe<1?b=!0:(G.active?$=!0:this._onOpaqueTile(G),G.active=!0)}}$&&!this._noPrune&&this._pruneTiles(),b&&(O(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=Qt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var p=this._tileZoom,b=this.options.maxZoom;if(p!==void 0){for(var $ in this._levels)$=Number($),this._levels[$].el.children.length||$===p?(this._levels[$].el.style.zIndex=b-Math.abs(p-$),this._onUpdateLevel($)):(Dn(this._levels[$].el),this._removeTilesAtZoom($),this._onRemoveLevel($),delete this._levels[$]);var R=this._levels[p],G=this._map;return R||(R=this._levels[p]={},R.el=Qt("div","leaflet-tile-container leaflet-zoom-animated",this._container),R.el.style.zIndex=b,R.origin=G.project(G.unproject(G.getPixelOrigin()),p).round(),R.zoom=p,this._setZoomTransform(R,G.getCenter(),G.getZoom()),d(R.el.offsetWidth),this._onCreateLevel(R)),this._level=R,R}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var p,b,$=this._map.getZoom();if($>this.options.maxZoom||$<this.options.minZoom){this._removeAllTiles();return}for(p in this._tiles)b=this._tiles[p],b.retain=b.current;for(p in this._tiles)if(b=this._tiles[p],b.current&&!b.active){var R=b.coords;this._retainParent(R.x,R.y,R.z,R.z-5)||this._retainChildren(R.x,R.y,R.z,R.z+2)}for(p in this._tiles)this._tiles[p].retain||this._removeTile(p)}},_removeTilesAtZoom:function(p){for(var b in this._tiles)this._tiles[b].coords.z===p&&this._removeTile(b)},_removeAllTiles:function(){for(var p in this._tiles)this._removeTile(p)},_invalidateAll:function(){for(var p in this._levels)Dn(this._levels[p].el),this._onRemoveLevel(Number(p)),delete this._levels[p];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(p,b,$,R){var G=Math.floor(p/2),fe=Math.floor(b/2),Ce=$-1,Le=new ae(+G,+fe);Le.z=+Ce;var qe=this._tileCoordsToKey(Le),tt=this._tiles[qe];return tt&&tt.active?(tt.retain=!0,!0):(tt&&tt.loaded&&(tt.retain=!0),Ce>R?this._retainParent(G,fe,Ce,R):!1)},_retainChildren:function(p,b,$,R){for(var G=2*p;G<2*p+2;G++)for(var fe=2*b;fe<2*b+2;fe++){var Ce=new ae(G,fe);Ce.z=$+1;var Le=this._tileCoordsToKey(Ce),qe=this._tiles[Le];if(qe&&qe.active){qe.retain=!0;continue}else qe&&qe.loaded&&(qe.retain=!0);$+1<R&&this._retainChildren(G,fe,$+1,R)}},_resetView:function(p){var b=p&&(p.pinch||p.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),b,b)},_animateZoom:function(p){this._setView(p.center,p.zoom,!0,p.noUpdate)},_clampZoom:function(p){var b=this.options;return b.minNativeZoom!==void 0&&p<b.minNativeZoom?b.minNativeZoom:b.maxNativeZoom!==void 0&&b.maxNativeZoom<p?b.maxNativeZoom:p},_setView:function(p,b,$,R){var G=Math.round(b);this.options.maxZoom!==void 0&&G>this.options.maxZoom||this.options.minZoom!==void 0&&G<this.options.minZoom?G=void 0:G=this._clampZoom(G);var fe=this.options.updateWhenZooming&&G!==this._tileZoom;(!R||fe)&&(this._tileZoom=G,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),G!==void 0&&this._update(p),$||this._pruneTiles(),this._noPrune=!!$),this._setZoomTransforms(p,b)},_setZoomTransforms:function(p,b){for(var $ in this._levels)this._setZoomTransform(this._levels[$],p,b)},_setZoomTransform:function(p,b,$){var R=this._map.getZoomScale($,p.zoom),G=p.origin.multiplyBy(R).subtract(this._map._getNewPixelOrigin(b,$)).round();yt.any3d?Co(p.el,G,R):si(p.el,G)},_resetGrid:function(){var p=this._map,b=p.options.crs,$=this._tileSize=this.getTileSize(),R=this._tileZoom,G=this._map.getPixelWorldBounds(this._tileZoom);G&&(this._globalTileRange=this._pxBoundsToTileRange(G)),this._wrapX=b.wrapLng&&!this.options.noWrap&&[Math.floor(p.project([0,b.wrapLng[0]],R).x/$.x),Math.ceil(p.project([0,b.wrapLng[1]],R).x/$.y)],this._wrapY=b.wrapLat&&!this.options.noWrap&&[Math.floor(p.project([b.wrapLat[0],0],R).y/$.x),Math.ceil(p.project([b.wrapLat[1],0],R).y/$.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(p){var b=this._map,$=b._animatingZoom?Math.max(b._animateToZoom,b.getZoom()):b.getZoom(),R=b.getZoomScale($,this._tileZoom),G=b.project(p,this._tileZoom).floor(),fe=b.getSize().divideBy(R*2);return new I(G.subtract(fe),G.add(fe))},_update:function(p){var b=this._map;if(b){var $=this._clampZoom(b.getZoom());if(p===void 0&&(p=b.getCenter()),this._tileZoom!==void 0){var R=this._getTiledPixelBounds(p),G=this._pxBoundsToTileRange(R),fe=G.getCenter(),Ce=[],Le=this.options.keepBuffer,qe=new I(G.getBottomLeft().subtract([Le,-Le]),G.getTopRight().add([Le,-Le]));if(!(isFinite(G.min.x)&&isFinite(G.min.y)&&isFinite(G.max.x)&&isFinite(G.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var tt in this._tiles){var mt=this._tiles[tt].coords;(mt.z!==this._tileZoom||!qe.contains(new ae(mt.x,mt.y)))&&(this._tiles[tt].current=!1)}if(Math.abs($-this._tileZoom)>1){this._setView(p,$);return}for(var Lt=G.min.y;Lt<=G.max.y;Lt++)for(var cn=G.min.x;cn<=G.max.x;cn++){var La=new ae(cn,Lt);if(La.z=this._tileZoom,!!this._isValidTile(La)){var jr=this._tiles[this._tileCoordsToKey(La)];jr?jr.current=!0:Ce.push(La)}}if(Ce.sort(function(io,Oh){return io.distanceTo(fe)-Oh.distanceTo(fe)}),Ce.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var es=document.createDocumentFragment();for(cn=0;cn<Ce.length;cn++)this._addTile(Ce[cn],es);this._level.el.appendChild(es)}}}},_isValidTile:function(p){var b=this._map.options.crs;if(!b.infinite){var $=this._globalTileRange;if(!b.wrapLng&&(p.x<$.min.x||p.x>$.max.x)||!b.wrapLat&&(p.y<$.min.y||p.y>$.max.y))return!1}if(!this.options.bounds)return!0;var R=this._tileCoordsToBounds(p);return he(this.options.bounds).overlaps(R)},_keyToBounds:function(p){return this._tileCoordsToBounds(this._keyToTileCoords(p))},_tileCoordsToNwSe:function(p){var b=this._map,$=this.getTileSize(),R=p.scaleBy($),G=R.add($),fe=b.unproject(R,p.z),Ce=b.unproject(G,p.z);return[fe,Ce]},_tileCoordsToBounds:function(p){var b=this._tileCoordsToNwSe(p),$=new te(b[0],b[1]);return this.options.noWrap||($=this._map.wrapLatLngBounds($)),$},_tileCoordsToKey:function(p){return p.x+":"+p.y+":"+p.z},_keyToTileCoords:function(p){var b=p.split(":"),$=new ae(+b[0],+b[1]);return $.z=+b[2],$},_removeTile:function(p){var b=this._tiles[p];b&&(Dn(b.el),delete this._tiles[p],this.fire("tileunload",{tile:b.el,coords:this._keyToTileCoords(p)}))},_initTile:function(p){Bt(p,"leaflet-tile");var b=this.getTileSize();p.style.width=b.x+"px",p.style.height=b.y+"px",p.onselectstart=d,p.onmousemove=d,yt.ielt9&&this.options.opacity<1&&Vr(p,this.options.opacity)},_addTile:function(p,b){var $=this._getTilePos(p),R=this._tileCoordsToKey(p),G=this.createTile(this._wrapCoords(p),o(this._tileReady,this,p));this._initTile(G),this.createTile.length<2&&T(o(this._tileReady,this,p,null,G)),si(G,$),this._tiles[R]={el:G,coords:p,current:!0},b.appendChild(G),this.fire("tileloadstart",{tile:G,coords:p})},_tileReady:function(p,b,$){b&&this.fire("tileerror",{error:b,tile:$,coords:p});var R=this._tileCoordsToKey(p);$=this._tiles[R],$&&($.loaded=+new Date,this._map._fadeAnimated?(Vr($.el,0),O(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):($.active=!0,this._pruneTiles()),b||(Bt($.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:$.el,coords:p})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),yt.ielt9||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(p){return p.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(p){var b=new ae(this._wrapX?c(p.x,this._wrapX):p.x,this._wrapY?c(p.y,this._wrapY):p.y);return b.z=p.z,b},_pxBoundsToTileRange:function(p){var b=this.getTileSize();return new I(p.min.unscaleBy(b).floor(),p.max.unscaleBy(b).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var p in this._tiles)if(!this._tiles[p].loaded)return!1;return!0}});function AY(p){return new Zm(p)}var Ah=Zm.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(p,b){this._url=p,b=g(this,b),b.detectRetina&&yt.retina&&b.maxZoom>0?(b.tileSize=Math.floor(b.tileSize/2),b.zoomReverse?(b.zoomOffset--,b.minZoom=Math.min(b.maxZoom,b.minZoom+1)):(b.zoomOffset++,b.maxZoom=Math.max(b.minZoom,b.maxZoom-1)),b.minZoom=Math.max(0,b.minZoom)):b.zoomReverse?b.minZoom=Math.min(b.maxZoom,b.minZoom):b.maxZoom=Math.max(b.minZoom,b.maxZoom),typeof b.subdomains=="string"&&(b.subdomains=b.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(p,b){return this._url===p&&b===void 0&&(b=!0),this._url=p,b||this.redraw(),this},createTile:function(p,b){var $=document.createElement("img");return Nt($,"load",o(this._tileOnLoad,this,b,$)),Nt($,"error",o(this._tileOnError,this,b,$)),(this.options.crossOrigin||this.options.crossOrigin==="")&&($.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&($.referrerPolicy=this.options.referrerPolicy),$.alt="",$.src=this.getTileUrl(p),$},getTileUrl:function(p){var b={r:yt.retina?"@2x":"",s:this._getSubdomain(p),x:p.x,y:p.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var $=this._globalTileRange.max.y-p.y;this.options.tms&&(b.y=$),b["-y"]=$}return _(this._url,r(b,this.options))},_tileOnLoad:function(p,b){yt.ielt9?setTimeout(o(p,this,null,b),0):p(null,b)},_tileOnError:function(p,b,$){var R=this.options.errorTileUrl;R&&b.getAttribute("src")!==R&&(b.src=R),p($,b)},_onTileRemove:function(p){p.tile.onload=null},_getZoomForUrl:function(){var p=this._tileZoom,b=this.options.maxZoom,$=this.options.zoomReverse,R=this.options.zoomOffset;return $&&(p=b-p),p+R},_getSubdomain:function(p){var b=Math.abs(p.x+p.y)%this.options.subdomains.length;return this.options.subdomains[b]},_abortLoading:function(){var p,b;for(p in this._tiles)if(this._tiles[p].coords.z!==this._tileZoom&&(b=this._tiles[p].el,b.onload=d,b.onerror=d,!b.complete)){b.src=x;var $=this._tiles[p].coords;Dn(b),delete this._tiles[p],this.fire("tileabort",{tile:b,coords:$})}},_removeTile:function(p){var b=this._tiles[p];if(b)return b.el.setAttribute("src",x),Zm.prototype._removeTile.call(this,p)},_tileReady:function(p,b,$){if(!(!this._map||$&&$.getAttribute("src")===x))return Zm.prototype._tileReady.call(this,p,b,$)}});function DT(p,b){return new Ah(p,b)}var IT=Ah.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(p,b){this._url=p;var $=r({},this.defaultWmsParams);for(var R in b)R in this.options||($[R]=b[R]);b=g(this,b);var G=b.detectRetina&&yt.retina?2:1,fe=this.getTileSize();$.width=fe.x*G,$.height=fe.y*G,this.wmsParams=$},onAdd:function(p){this._crs=this.options.crs||p.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var b=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[b]=this._crs.code,Ah.prototype.onAdd.call(this,p)},getTileUrl:function(p){var b=this._tileCoordsToNwSe(p),$=this._crs,R=W($.project(b[0]),$.project(b[1])),G=R.min,fe=R.max,Ce=(this._wmsVersion>=1.3&&this._crs===xT?[G.y,G.x,fe.y,fe.x]:[G.x,G.y,fe.x,fe.y]).join(","),Le=Ah.prototype.getTileUrl.call(this,p);return Le+v(this.wmsParams,Le,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Ce},setParams:function(p,b){return r(this.wmsParams,p),b||this.redraw(),this}});function OY(p,b){return new IT(p,b)}Ah.WMS=IT,DT.wms=OY;var gu=Is.extend({options:{padding:.1},initialize:function(p){g(this,p),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Bt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var p={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(p.zoomanim=this._onAnimZoom),p},_onAnimZoom:function(p){this._updateTransform(p.center,p.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(p,b){var $=this._map.getZoomScale(b,this._zoom),R=this._map.getSize().multiplyBy(.5+this.options.padding),G=this._map.project(this._center,b),fe=R.multiplyBy(-$).add(G).subtract(this._map._getNewPixelOrigin(p,b));yt.any3d?Co(this._container,fe,$):si(this._container,fe)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var p in this._layers)this._layers[p]._reset()},_onZoomEnd:function(){for(var p in this._layers)this._layers[p]._project()},_updatePaths:function(){for(var p in this._layers)this._layers[p]._update()},_update:function(){var p=this.options.padding,b=this._map.getSize(),$=this._map.containerPointToLayerPoint(b.multiplyBy(-p)).round();this._bounds=new I($,$.add(b.multiplyBy(1+p*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),NT=gu.extend({options:{tolerance:0},getEvents:function(){var p=gu.prototype.getEvents.call(this);return p.viewprereset=this._onViewPreReset,p},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){gu.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var p=this._container=document.createElement("canvas");Nt(p,"mousemove",this._onMouseMove,this),Nt(p,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Nt(p,"mouseout",this._handleMouseOut,this),p._leaflet_disable_events=!0,this._ctx=p.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,Dn(this._container),yn(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var p;this._redrawBounds=null;for(var b in this._layers)p=this._layers[b],p._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){gu.prototype._update.call(this);var p=this._bounds,b=this._container,$=p.getSize(),R=yt.retina?2:1;si(b,p.min),b.width=R*$.x,b.height=R*$.y,b.style.width=$.x+"px",b.style.height=$.y+"px",yt.retina&&this._ctx.scale(2,2),this._ctx.translate(-p.min.x,-p.min.y),this.fire("update")}},_reset:function(){gu.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(p){this._updateDashArray(p),this._layers[l(p)]=p;var b=p._order={layer:p,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=b),this._drawLast=b,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(p){this._requestRedraw(p)},_removePath:function(p){var b=p._order,$=b.next,R=b.prev;$?$.prev=R:this._drawLast=R,R?R.next=$:this._drawFirst=$,delete p._order,delete this._layers[l(p)],this._requestRedraw(p)},_updatePath:function(p){this._extendRedrawBounds(p),p._project(),p._update(),this._requestRedraw(p)},_updateStyle:function(p){this._updateDashArray(p),this._requestRedraw(p)},_updateDashArray:function(p){if(typeof p.options.dashArray=="string"){var b=p.options.dashArray.split(/[, ]+/),$=[],R,G;for(G=0;G<b.length;G++){if(R=Number(b[G]),isNaN(R))return;$.push(R)}p.options._dashArray=$}else p.options._dashArray=p.options.dashArray},_requestRedraw:function(p){this._map&&(this._extendRedrawBounds(p),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(p){if(p._pxBounds){var b=(p.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(p._pxBounds.min.subtract([b,b])),this._redrawBounds.extend(p._pxBounds.max.add([b,b]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var p=this._redrawBounds;if(p){var b=p.getSize();this._ctx.clearRect(p.min.x,p.min.y,b.x,b.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var p,b=this._redrawBounds;if(this._ctx.save(),b){var $=b.getSize();this._ctx.beginPath(),this._ctx.rect(b.min.x,b.min.y,$.x,$.y),this._ctx.clip()}this._drawing=!0;for(var R=this._drawFirst;R;R=R.next)p=R.layer,(!b||p._pxBounds&&p._pxBounds.intersects(b))&&p._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(p,b){if(this._drawing){var $,R,G,fe,Ce=p._parts,Le=Ce.length,qe=this._ctx;if(Le){for(qe.beginPath(),$=0;$<Le;$++){for(R=0,G=Ce[$].length;R<G;R++)fe=Ce[$][R],qe[R?"lineTo":"moveTo"](fe.x,fe.y);b&&qe.closePath()}this._fillStroke(qe,p)}}},_updateCircle:function(p){if(!(!this._drawing||p._empty())){var b=p._point,$=this._ctx,R=Math.max(Math.round(p._radius),1),G=(Math.max(Math.round(p._radiusY),1)||R)/R;G!==1&&($.save(),$.scale(1,G)),$.beginPath(),$.arc(b.x,b.y/G,R,0,Math.PI*2,!1),G!==1&&$.restore(),this._fillStroke($,p)}},_fillStroke:function(p,b){var $=b.options;$.fill&&(p.globalAlpha=$.fillOpacity,p.fillStyle=$.fillColor||$.color,p.fill($.fillRule||"evenodd")),$.stroke&&$.weight!==0&&(p.setLineDash&&p.setLineDash(b.options&&b.options._dashArray||[]),p.globalAlpha=$.opacity,p.lineWidth=$.weight,p.strokeStyle=$.color,p.lineCap=$.lineCap,p.lineJoin=$.lineJoin,p.stroke())},_onClick:function(p){for(var b=this._map.mouseEventToLayerPoint(p),$,R,G=this._drawFirst;G;G=G.next)$=G.layer,$.options.interactive&&$._containsPoint(b)&&(!(p.type==="click"||p.type==="preclick")||!this._map._draggableMoved($))&&(R=$);this._fireEvent(R?[R]:!1,p)},_onMouseMove:function(p){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var b=this._map.mouseEventToLayerPoint(p);this._handleMouseHover(p,b)}},_handleMouseOut:function(p){var b=this._hoveredLayer;b&&(Vn(this._container,"leaflet-interactive"),this._fireEvent([b],p,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(p,b){if(!this._mouseHoverThrottled){for(var $,R,G=this._drawFirst;G;G=G.next)$=G.layer,$.options.interactive&&$._containsPoint(b)&&(R=$);R!==this._hoveredLayer&&(this._handleMouseOut(p),R&&(Bt(this._container,"leaflet-interactive"),this._fireEvent([R],p,"mouseover"),this._hoveredLayer=R)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,p),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(p,b,$){this._map._fireDOMEvent(b,$||b.type,p)},_bringToFront:function(p){var b=p._order;if(b){var $=b.next,R=b.prev;if($)$.prev=R;else return;R?R.next=$:$&&(this._drawFirst=$),b.prev=this._drawLast,this._drawLast.next=b,b.next=null,this._drawLast=b,this._requestRedraw(p)}},_bringToBack:function(p){var b=p._order;if(b){var $=b.next,R=b.prev;if(R)R.next=$;else return;$?$.prev=R:R&&(this._drawLast=R),b.prev=null,b.next=this._drawFirst,this._drawFirst.prev=b,this._drawFirst=b,this._requestRedraw(p)}}});function MT(p){return yt.canvas?new NT(p):null}var Xm=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(p){return document.createElement("<lvml:"+p+' class="lvml">')}}catch{}return function(p){return document.createElement("<"+p+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),DY={_initContainer:function(){this._container=Qt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(gu.prototype._update.call(this),this.fire("update"))},_initPath:function(p){var b=p._container=Xm("shape");Bt(b,"leaflet-vml-shape "+(this.options.className||"")),b.coordsize="1 1",p._path=Xm("path"),b.appendChild(p._path),this._updateStyle(p),this._layers[l(p)]=p},_addPath:function(p){var b=p._container;this._container.appendChild(b),p.options.interactive&&p.addInteractiveTarget(b)},_removePath:function(p){var b=p._container;Dn(b),p.removeInteractiveTarget(b),delete this._layers[l(p)]},_updateStyle:function(p){var b=p._stroke,$=p._fill,R=p.options,G=p._container;G.stroked=!!R.stroke,G.filled=!!R.fill,R.stroke?(b||(b=p._stroke=Xm("stroke")),G.appendChild(b),b.weight=R.weight+"px",b.color=R.color,b.opacity=R.opacity,R.dashArray?b.dashStyle=S(R.dashArray)?R.dashArray.join(" "):R.dashArray.replace(/( *, *)/g," "):b.dashStyle="",b.endcap=R.lineCap.replace("butt","flat"),b.joinstyle=R.lineJoin):b&&(G.removeChild(b),p._stroke=null),R.fill?($||($=p._fill=Xm("fill")),G.appendChild($),$.color=R.fillColor||R.color,$.opacity=R.fillOpacity):$&&(G.removeChild($),p._fill=null)},_updateCircle:function(p){var b=p._point.round(),$=Math.round(p._radius),R=Math.round(p._radiusY||$);this._setPath(p,p._empty()?"M0 0":"AL "+b.x+","+b.y+" "+$+","+R+" 0,"+65535*360)},_setPath:function(p,b){p._path.v=b},_bringToFront:function(p){Na(p._container)},_bringToBack:function(p){So(p._container)}},Iy=yt.vml?Xm:ye,Jm=gu.extend({_initContainer:function(){this._container=Iy("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Iy("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Dn(this._container),yn(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){gu.prototype._update.call(this);var p=this._bounds,b=p.getSize(),$=this._container;(!this._svgSize||!this._svgSize.equals(b))&&(this._svgSize=b,$.setAttribute("width",b.x),$.setAttribute("height",b.y)),si($,p.min),$.setAttribute("viewBox",[p.min.x,p.min.y,b.x,b.y].join(" ")),this.fire("update")}},_initPath:function(p){var b=p._path=Iy("path");p.options.className&&Bt(b,p.options.className),p.options.interactive&&Bt(b,"leaflet-interactive"),this._updateStyle(p),this._layers[l(p)]=p},_addPath:function(p){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(p._path),p.addInteractiveTarget(p._path)},_removePath:function(p){Dn(p._path),p.removeInteractiveTarget(p._path),delete this._layers[l(p)]},_updatePath:function(p){p._project(),p._update()},_updateStyle:function(p){var b=p._path,$=p.options;b&&($.stroke?(b.setAttribute("stroke",$.color),b.setAttribute("stroke-opacity",$.opacity),b.setAttribute("stroke-width",$.weight),b.setAttribute("stroke-linecap",$.lineCap),b.setAttribute("stroke-linejoin",$.lineJoin),$.dashArray?b.setAttribute("stroke-dasharray",$.dashArray):b.removeAttribute("stroke-dasharray"),$.dashOffset?b.setAttribute("stroke-dashoffset",$.dashOffset):b.removeAttribute("stroke-dashoffset")):b.setAttribute("stroke","none"),$.fill?(b.setAttribute("fill",$.fillColor||$.color),b.setAttribute("fill-opacity",$.fillOpacity),b.setAttribute("fill-rule",$.fillRule||"evenodd")):b.setAttribute("fill","none"))},_updatePoly:function(p,b){this._setPath(p,Se(p._parts,b))},_updateCircle:function(p){var b=p._point,$=Math.max(Math.round(p._radius),1),R=Math.max(Math.round(p._radiusY),1)||$,G="a"+$+","+R+" 0 1,0 ",fe=p._empty()?"M0 0":"M"+(b.x-$)+","+b.y+G+$*2+",0 "+G+-$*2+",0 ";this._setPath(p,fe)},_setPath:function(p,b){p._path.setAttribute("d",b)},_bringToFront:function(p){Na(p._path)},_bringToBack:function(p){So(p._path)}});yt.vml&&Jm.include(DY);function LT(p){return yt.svg||yt.vml?new Jm(p):null}gt.include({getRenderer:function(p){var b=p.options.renderer||this._getPaneRenderer(p.options.pane)||this.options.renderer||this._renderer;return b||(b=this._renderer=this._createRenderer()),this.hasLayer(b)||this.addLayer(b),b},_getPaneRenderer:function(p){if(p==="overlayPane"||p===void 0)return!1;var b=this._paneRenderers[p];return b===void 0&&(b=this._createRenderer({pane:p}),this._paneRenderers[p]=b),b},_createRenderer:function(p){return this.options.preferCanvas&&MT(p)||LT(p)}});var RT=Ph.extend({initialize:function(p,b){Ph.prototype.initialize.call(this,this._boundsToLatLngs(p),b)},setBounds:function(p){return this.setLatLngs(this._boundsToLatLngs(p))},_boundsToLatLngs:function(p){return p=he(p),[p.getSouthWest(),p.getNorthWest(),p.getNorthEast(),p.getSouthEast()]}});function IY(p,b){return new RT(p,b)}Jm.create=Iy,Jm.pointsToPath=Se,vu.geometryToLayer=ky,vu.coordsToLatLng=s3,vu.coordsToLatLngs=Ty,vu.latLngToCoords=l3,vu.latLngsToCoords=Py,vu.getFeature=$h,vu.asFeature=$y,gt.mergeOptions({boxZoom:!0});var FT=Ma.extend({initialize:function(p){this._map=p,this._container=p._container,this._pane=p._panes.overlayPane,this._resetStateTimeout=0,p.on("unload",this._destroy,this)},addHooks:function(){Nt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){yn(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Dn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(p){if(!p.shiftKey||p.which!==1&&p.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ri(),Dt(),this._startPoint=this._map.mouseEventToContainerPoint(p),Nt(document,{contextmenu:Nn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(p){this._moved||(this._moved=!0,this._box=Qt("div","leaflet-zoom-box",this._container),Bt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(p);var b=new I(this._point,this._startPoint),$=b.getSize();si(this._box,b.min),this._box.style.width=$.x+"px",this._box.style.height=$.y+"px"},_finish:function(){this._moved&&(Dn(this._box),Vn(this._container,"leaflet-crosshair")),zr(),Qe(),yn(document,{contextmenu:Nn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(p){if(!(p.which!==1&&p.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var b=new te(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(b).fire("boxzoomend",{boxZoomBounds:b})}},_onKeyDown:function(p){p.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});gt.addInitHook("addHandler","boxZoom",FT),gt.mergeOptions({doubleClickZoom:!0});var VT=Ma.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(p){var b=this._map,$=b.getZoom(),R=b.options.zoomDelta,G=p.originalEvent.shiftKey?$-R:$+R;b.options.doubleClickZoom==="center"?b.setZoom(G):b.setZoomAround(p.containerPoint,G)}});gt.addInitHook("addHandler","doubleClickZoom",VT),gt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var BT=Ma.extend({addHooks:function(){if(!this._draggable){var p=this._map;this._draggable=new yc(p._mapPane,p._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),p.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),p.on("zoomend",this._onZoomEnd,this),p.whenReady(this._onZoomEnd,this))}Bt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Vn(this._map._container,"leaflet-grab"),Vn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var p=this._map;if(p._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var b=he(this._map.options.maxBounds);this._offsetLimit=W(this._map.latLngToContainerPoint(b.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(b.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;p.fire("movestart").fire("dragstart"),p.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(p){if(this._map.options.inertia){var b=this._lastTime=+new Date,$=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push($),this._times.push(b),this._prunePositions(b)}this._map.fire("move",p).fire("drag",p)},_prunePositions:function(p){for(;this._positions.length>1&&p-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var p=this._map.getSize().divideBy(2),b=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=b.subtract(p).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(p,b){return p-(p-b)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var p=this._draggable._newPos.subtract(this._draggable._startPos),b=this._offsetLimit;p.x<b.min.x&&(p.x=this._viscousLimit(p.x,b.min.x)),p.y<b.min.y&&(p.y=this._viscousLimit(p.y,b.min.y)),p.x>b.max.x&&(p.x=this._viscousLimit(p.x,b.max.x)),p.y>b.max.y&&(p.y=this._viscousLimit(p.y,b.max.y)),this._draggable._newPos=this._draggable._startPos.add(p)}},_onPreDragWrap:function(){var p=this._worldWidth,b=Math.round(p/2),$=this._initialWorldOffset,R=this._draggable._newPos.x,G=(R-b+$)%p+b-$,fe=(R+b+$)%p-b-$,Ce=Math.abs(G+$)<Math.abs(fe+$)?G:fe;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Ce},_onDragEnd:function(p){var b=this._map,$=b.options,R=!$.inertia||p.noInertia||this._times.length<2;if(b.fire("dragend",p),R)b.fire("moveend");else{this._prunePositions(+new Date);var G=this._lastPos.subtract(this._positions[0]),fe=(this._lastTime-this._times[0])/1e3,Ce=$.easeLinearity,Le=G.multiplyBy(Ce/fe),qe=Le.distanceTo([0,0]),tt=Math.min($.inertiaMaxSpeed,qe),mt=Le.multiplyBy(tt/qe),Lt=tt/($.inertiaDeceleration*Ce),cn=mt.multiplyBy(-Lt/2).round();!cn.x&&!cn.y?b.fire("moveend"):(cn=b._limitOffset(cn,b.options.maxBounds),T(function(){b.panBy(cn,{duration:Lt,easeLinearity:Ce,noMoveStart:!0,animate:!0})}))}}});gt.addInitHook("addHandler","dragging",BT),gt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var zT=Ma.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(p){this._map=p,this._setPanDelta(p.options.keyboardPanDelta),this._setZoomDelta(p.options.zoomDelta)},addHooks:function(){var p=this._map._container;p.tabIndex<=0&&(p.tabIndex="0"),Nt(p,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),yn(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var p=document.body,b=document.documentElement,$=p.scrollTop||b.scrollTop,R=p.scrollLeft||b.scrollLeft;this._map._container.focus(),window.scrollTo(R,$)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(p){var b=this._panKeys={},$=this.keyCodes,R,G;for(R=0,G=$.left.length;R<G;R++)b[$.left[R]]=[-1*p,0];for(R=0,G=$.right.length;R<G;R++)b[$.right[R]]=[p,0];for(R=0,G=$.down.length;R<G;R++)b[$.down[R]]=[0,p];for(R=0,G=$.up.length;R<G;R++)b[$.up[R]]=[0,-1*p]},_setZoomDelta:function(p){var b=this._zoomKeys={},$=this.keyCodes,R,G;for(R=0,G=$.zoomIn.length;R<G;R++)b[$.zoomIn[R]]=p;for(R=0,G=$.zoomOut.length;R<G;R++)b[$.zoomOut[R]]=-p},_addHooks:function(){Nt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){yn(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(p){if(!(p.altKey||p.ctrlKey||p.metaKey)){var b=p.keyCode,$=this._map,R;if(b in this._panKeys){if(!$._panAnim||!$._panAnim._inProgress)if(R=this._panKeys[b],p.shiftKey&&(R=M(R).multiplyBy(3)),$.options.maxBounds&&(R=$._limitOffset(M(R),$.options.maxBounds)),$.options.worldCopyJump){var G=$.wrapLatLng($.unproject($.project($.getCenter()).add(R)));$.panTo(G)}else $.panBy(R)}else if(b in this._zoomKeys)$.setZoom($.getZoom()+(p.shiftKey?3:1)*this._zoomKeys[b]);else if(b===27&&$._popup&&$._popup.options.closeOnEscapeKey)$.closePopup();else return;Nn(p)}}});gt.addInitHook("addHandler","keyboard",zT),gt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var jT=Ma.extend({addHooks:function(){Nt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){yn(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(p){var b=Ke(p),$=this._map.options.wheelDebounceTime;this._delta+=b,this._lastMousePos=this._map.mouseEventToContainerPoint(p),this._startTime||(this._startTime=+new Date);var R=Math.max($-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),R),Nn(p)},_performZoom:function(){var p=this._map,b=p.getZoom(),$=this._map.options.zoomSnap||0;p._stop();var R=this._delta/(this._map.options.wheelPxPerZoomLevel*4),G=4*Math.log(2/(1+Math.exp(-Math.abs(R))))/Math.LN2,fe=$?Math.ceil(G/$)*$:G,Ce=p._limitZoom(b+(this._delta>0?fe:-fe))-b;this._delta=0,this._startTime=null,Ce&&(p.options.scrollWheelZoom==="center"?p.setZoom(b+Ce):p.setZoomAround(this._lastMousePos,b+Ce))}});gt.addInitHook("addHandler","scrollWheelZoom",jT);var NY=600;gt.mergeOptions({tapHold:yt.touchNative&&yt.safari&&yt.mobile,tapTolerance:15});var UT=Ma.extend({addHooks:function(){Nt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){yn(this._map._container,"touchstart",this._onDown,this)},_onDown:function(p){if(clearTimeout(this._holdTimeout),p.touches.length===1){var b=p.touches[0];this._startPos=this._newPos=new ae(b.clientX,b.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Nt(document,"touchend",gi),Nt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",b))},this),NY),Nt(document,"touchend touchcancel contextmenu",this._cancel,this),Nt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function p(){yn(document,"touchend",gi),yn(document,"touchend touchcancel",p)},_cancel:function(){clearTimeout(this._holdTimeout),yn(document,"touchend touchcancel contextmenu",this._cancel,this),yn(document,"touchmove",this._onMove,this)},_onMove:function(p){var b=p.touches[0];this._newPos=new ae(b.clientX,b.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(p,b){var $=new MouseEvent(p,{bubbles:!0,cancelable:!0,view:window,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY});$._simulated=!0,b.target.dispatchEvent($)}});gt.addInitHook("addHandler","tapHold",UT),gt.mergeOptions({touchZoom:yt.touch,bounceAtZoomLimits:!0});var HT=Ma.extend({addHooks:function(){Bt(this._map._container,"leaflet-touch-zoom"),Nt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Vn(this._map._container,"leaflet-touch-zoom"),yn(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(p){var b=this._map;if(!(!p.touches||p.touches.length!==2||b._animatingZoom||this._zooming)){var $=b.mouseEventToContainerPoint(p.touches[0]),R=b.mouseEventToContainerPoint(p.touches[1]);this._centerPoint=b.getSize()._divideBy(2),this._startLatLng=b.containerPointToLatLng(this._centerPoint),b.options.touchZoom!=="center"&&(this._pinchStartLatLng=b.containerPointToLatLng($.add(R)._divideBy(2))),this._startDist=$.distanceTo(R),this._startZoom=b.getZoom(),this._moved=!1,this._zooming=!0,b._stop(),Nt(document,"touchmove",this._onTouchMove,this),Nt(document,"touchend touchcancel",this._onTouchEnd,this),gi(p)}},_onTouchMove:function(p){if(!(!p.touches||p.touches.length!==2||!this._zooming)){var b=this._map,$=b.mouseEventToContainerPoint(p.touches[0]),R=b.mouseEventToContainerPoint(p.touches[1]),G=$.distanceTo(R)/this._startDist;if(this._zoom=b.getScaleZoom(G,this._startZoom),!b.options.bounceAtZoomLimits&&(this._zoom<b.getMinZoom()&&G<1||this._zoom>b.getMaxZoom()&&G>1)&&(this._zoom=b._limitZoom(this._zoom)),b.options.touchZoom==="center"){if(this._center=this._startLatLng,G===1)return}else{var fe=$._add(R)._divideBy(2)._subtract(this._centerPoint);if(G===1&&fe.x===0&&fe.y===0)return;this._center=b.unproject(b.project(this._pinchStartLatLng,this._zoom).subtract(fe),this._zoom)}this._moved||(b._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Ce=o(b._move,b,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=T(Ce,this,!0),gi(p)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),yn(document,"touchmove",this._onTouchMove,this),yn(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});gt.addInitHook("addHandler","touchZoom",HT),gt.BoxZoom=FT,gt.DoubleClickZoom=VT,gt.Drag=BT,gt.Keyboard=zT,gt.ScrollWheelZoom=jT,gt.TapHold=UT,gt.TouchZoom=HT,n.Bounds=I,n.Browser=yt,n.CRS=ee,n.Canvas=NT,n.Circle=o3,n.CircleMarker=xy,n.Class=V,n.Control=Xt,n.DivIcon=OT,n.DivOverlay=Sl,n.DomEvent=Et,n.DomUtil=Eo,n.Draggable=yc,n.Evented=ne,n.FeatureGroup=pu,n.GeoJSON=vu,n.GridLayer=Zm,n.Handler=Ma,n.Icon=Th,n.ImageOverlay=Ay,n.LatLng=oe,n.LatLngBounds=te,n.Layer=Is,n.LayerGroup=kh,n.LineUtil=dY,n.Map=gt,n.Marker=Ey,n.Mixin=aY,n.Path=_c,n.Point=ae,n.PolyUtil=oY,n.Polygon=Ph,n.Polyline=mu,n.Popup=Oy,n.PosAnimation=un,n.Projection=fY,n.Rectangle=RT,n.Renderer=gu,n.SVG=Jm,n.SVGOverlay=AT,n.TileLayer=Ah,n.Tooltip=Dy,n.Transformation=ge,n.Util=N,n.VideoOverlay=$T,n.bind=o,n.bounds=W,n.canvas=MT,n.circle=bY,n.circleMarker=_Y,n.control=Vi,n.divIcon=$Y,n.extend=r,n.featureGroup=vY,n.geoJSON=PT,n.geoJson=CY,n.gridLayer=AY,n.icon=gY,n.imageOverlay=EY,n.latLng=U,n.latLngBounds=he,n.layerGroup=mY,n.map=Fi,n.marker=yY,n.point=M,n.polygon=SY,n.polyline=wY,n.popup=TY,n.rectangle=IY,n.setOptions=g,n.stamp=l,n.svg=LT,n.svgOverlay=kY,n.tileLayer=DT,n.tooltip=PY,n.transformation=Te,n.version=i,n.videoOverlay=xY;var MY=window.L;n.noConflict=function(){return window.L=MY,this},window.L=n})})(i4,i4.exports);var Sp=i4.exports;const u_e=Ei(Sp),c_e=YY({__proto__:null,default:u_e},[Sp]),mz=[{code:"fr",name:"French",nativeName:"Français",frenchName:"Français"},{code:"en",name:"English",nativeName:"English",frenchName:"Anglais"},{code:"es",name:"Spanish",nativeName:"Español",frenchName:"Espagnol"},{code:"it",name:"Italian",nativeName:"Italiano",frenchName:"Italien"},{code:"de",name:"German",nativeName:"Deutsch",frenchName:"Allemand"},{code:"aa",name:"Afar",nativeName:"Afar",frenchName:"Afar"},{code:"ab",name:"Abkhazian",nativeName:"ÐÒ§Ñуа",frenchName:"Abkhaze"},{code:"af",name:"Afrikaans",nativeName:"Afrikaans",frenchName:"Afrikaans"},{code:"ak",name:"Akan",nativeName:"Akana",frenchName:"Akan"},{code:"am",name:"Amharic",nativeName:"አማáˆáŠ›",frenchName:"Amharique"},{code:"an",name:"Aragonese",nativeName:"Aragonés",frenchName:"Aragonais"},{code:"ar",name:"Arabic",nativeName:"العربية",rtl:1,frenchName:"Arabe"},{code:"as",name:"Assamese",nativeName:"অসমীয়া",frenchName:"Assamais"},{code:"av",name:"Avar",nativeName:"Ðвар",frenchName:"Avar"},{code:"ay",name:"Aymara",nativeName:"Aymar",frenchName:"Aymara"},{code:"az",name:"Azerbaijani",nativeName:"AzÉ™rbaycanca",frenchName:"Azerbaïdjanais"},{code:"ba",name:"Bashkir",nativeName:"Башҡорт",frenchName:"Bachkir"},{code:"be",name:"Belarusian",nativeName:"БеларуÑкаÑ",frenchName:"Biélorusse"},{code:"bg",name:"Bulgarian",nativeName:"БългарÑки",frenchName:"Bulgare"},{code:"bh",name:"Bihari",nativeName:"à¤à¥‹à¤œà¤ªà¥à¤°à¥€",frenchName:"Bihari"},{code:"bi",name:"Bislama",nativeName:"Bislama",frenchName:"Bichelamar"},{code:"bm",name:"Bambara",nativeName:"Bamanankan",frenchName:"Bambara"},{code:"bn",name:"Bengali",nativeName:"বাংলা",frenchName:"Bengali"},{code:"bo",name:"Tibetan",nativeName:"བོད་ཡིག / Bod skad",frenchName:"Tibétain"},{code:"br",name:"Breton",nativeName:"Brezhoneg",frenchName:"Breton"},{code:"bs",name:"Bosnian",nativeName:"Bosanski",frenchName:"Bosnien"},{code:"ca",name:"Catalan",nativeName:"Català ",frenchName:"Catalan"},{code:"ce",name:"Chechen",nativeName:"Ðохчийн",frenchName:"Tchétchène"},{code:"ch",name:"Chamorro",nativeName:"Chamoru",frenchName:"Chamorro"},{code:"co",name:"Corsican",nativeName:"Corsu",frenchName:"Corse"},{code:"cr",name:"Cree",nativeName:"Nehiyaw",frenchName:"Cree"},{code:"cs",name:"Czech",nativeName:"ÄŒesky",frenchName:"Tchèque"},{code:"cu",name:"Old Church Slavonic / Old Bulgarian",nativeName:"ÑловѣньÑкъ / slovÄ›nÄskÅ",frenchName:"Vieux slave"},{code:"cv",name:"Chuvash",nativeName:"Чăваш",frenchName:"Tchouvache"},{code:"cy",name:"Welsh",nativeName:"Cymraeg",frenchName:"Gallois"},{code:"da",name:"Danish",nativeName:"Dansk",frenchName:"Danois"},{code:"dv",name:"Divehi",nativeName:"Þ‹Þ¨ÞˆÞ¬Þ€Þ¨Þ„Þ¦ÞÞ°",rtl:1,frenchName:"Dhivehi"},{code:"dz",name:"Dzongkha",nativeName:"ཇོང་à½",frenchName:"Dzongkha"},{code:"ee",name:"Ewe",nativeName:"ÆÊ‹É›",frenchName:"Éwé"},{code:"el",name:"Greek",nativeName:"Ελληνικά",frenchName:"Grec"},{code:"eo",name:"Esperanto",nativeName:"Esperanto",frenchName:"Espéranto"},{code:"et",name:"Estonian",nativeName:"Eesti",frenchName:"Estonien"},{code:"eu",name:"Basque",nativeName:"Euskara",frenchName:"Basque"},{code:"fa",name:"Persian",nativeName:"ÙØ§Ø±Ø³ÛŒ",rtl:1,frenchName:"Persan"},{code:"ff",name:"Peul",nativeName:"Fulfulde",frenchName:"Peul"},{code:"fi",name:"Finnish",nativeName:"Suomi",frenchName:"Finnois"},{code:"fj",name:"Fijian",nativeName:"Na Vosa Vakaviti",frenchName:"Fidjien"},{code:"fo",name:"Faroese",nativeName:"Føroyskt",frenchName:"Féroïen"},{code:"fy",name:"West Frisian",nativeName:"Frysk",frenchName:"Frison occidental"},{code:"ga",name:"Irish",nativeName:"Gaeilge",frenchName:"Irlandais"},{code:"gd",name:"Scottish Gaelic",nativeName:"Gà idhlig",frenchName:"Gaélique écossais"},{code:"gl",name:"Galician",nativeName:"Galego",frenchName:"Galicien"},{code:"gn",name:"Guarani",nativeName:"Avañe'ẽ",frenchName:"Guarani"},{code:"gu",name:"Gujarati",nativeName:"ગà«àªœàª°àª¾àª¤à«€",frenchName:"Gujarati"},{code:"gv",name:"Manx",nativeName:"Gaelg",frenchName:"Mannois"},{code:"ha",name:"Hausa",nativeName:"Ù‡ÙŽÙˆÙØ³ÙŽ",rtl:1,frenchName:"Haoussa"},{code:"he",name:"Hebrew",nativeName:"עברית",rtl:1,frenchName:"Hébreu"},{code:"hi",name:"Hindi",nativeName:"हिनà¥à¤¦à¥€",frenchName:"Hindi"},{code:"ho",name:"Hiri Motu",nativeName:"Hiri Motu",frenchName:"Hiri motu"},{code:"hr",name:"Croatian",nativeName:"Hrvatski",frenchName:"Croate"},{code:"ht",name:"Haitian",nativeName:"Krèyol ayisyen",frenchName:"Haïtien"},{code:"hu",name:"Hungarian",nativeName:"Magyar",frenchName:"Hongrois"},{code:"hy",name:"Armenian",nativeName:"Õ€Õ¡ÕµÕ¥Ö€Õ¥Õ¶",frenchName:"Arménien"},{code:"hz",name:"Herero",nativeName:"Otsiherero",frenchName:"Herero"},{code:"ia",name:"Interlingua",nativeName:"Interlingua",frenchName:"Interlingua"},{code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",frenchName:"Indonésien"},{code:"ie",name:"Interlingue",nativeName:"Interlingue",frenchName:"Interlingue"},{code:"ig",name:"Igbo",nativeName:"Asụsụ Igbo",frenchName:"Igbo"},{code:"ii",name:"Sichuan Yi",nativeName:"ꆇꉙ / å››å·å½è¯",frenchName:"Yi du Sichuan"},{code:"ik",name:"Inupiaq",nativeName:"Iñupiak",frenchName:"Inupiaq"},{code:"io",name:"Ido",nativeName:"Ido",frenchName:"Ido"},{code:"is",name:"Icelandic",nativeName:"Ãslenska",frenchName:"Islandais"},{code:"it",name:"Italian",nativeName:"Italiano",frenchName:"Italien"},{code:"iu",name:"Inuktitut",nativeName:"áƒá“„ᒃᑎá‘ᑦ",frenchName:"Inuktitut"},{code:"ja",name:"Japanese",nativeName:"日本語",frenchName:"Japonais"},{code:"jv",name:"Javanese",nativeName:"Basa Jawa",frenchName:"Javanais"},{code:"ka",name:"Georgian",nativeName:"ქáƒáƒ თული",frenchName:"Géorgien"},{code:"kg",name:"Kongo",nativeName:"KiKongo",frenchName:"Kongo"},{code:"ki",name:"Kikuyu",nativeName:"GÄ©kÅ©yÅ©",frenchName:"Kikuyu"},{code:"kj",name:"Kuanyama",nativeName:"Kuanyama",frenchName:"Kuanyama"},{code:"kk",name:"Kazakh",nativeName:"Қазақша",frenchName:"Kazakh"},{code:"kl",name:"Greenlandic",nativeName:"Kalaallisut",frenchName:"Groenlandais"},{code:"km",name:"Cambodian",nativeName:"ភាសាážáŸ’មែរ",frenchName:"Khmer"},{code:"kn",name:"Kannada",nativeName:"ಕನà³à²¨à²¡",frenchName:"Kannada"},{code:"ko",name:"Korean",nativeName:"한êµì–´",frenchName:"Coréen"},{code:"kr",name:"Kanuri",nativeName:"Kanuri",frenchName:"Kanouri"},{code:"ks",name:"Kashmiri",nativeName:"कशà¥à¤®à¥€à¤°à¥€ / كشميري",frenchName:"Kashmiri"},{code:"ku",name:"Kurdish",nativeName:"Kurdî / كوردی",frenchName:"Kurde"},{code:"kv",name:"Komi",nativeName:"Коми",frenchName:"Komi"},{code:"kw",name:"Cornish",nativeName:"Kernewek",frenchName:"Cornique"},{code:"ky",name:"Kirghiz",nativeName:"Kırgızca / Кыргызча",frenchName:"Kirghiz"},{code:"la",name:"Latin",nativeName:"Latina",frenchName:"Latin"},{code:"lb",name:"Luxembourgish",nativeName:"Lëtzebuergesch",frenchName:"Luxembourgeois"},{code:"lg",name:"Ganda",nativeName:"Luganda",frenchName:"Ganda"},{code:"li",name:"Limburgian",nativeName:"Limburgs",frenchName:"Limbourgeois"},{code:"ln",name:"Lingala",nativeName:"Lingála",frenchName:"Lingala"},{code:"lo",name:"Laotian",nativeName:"ລາວ / Pha xa lao",frenchName:"Lao"},{code:"lt",name:"Lithuanian",nativeName:"Lietuvių",frenchName:"Lituanien"},{code:"lu",name:"Luba-Katanga",nativeName:"Tshiluba",frenchName:"Luba-Katanga"},{code:"lv",name:"Latvian",nativeName:"LatvieÅ¡u",frenchName:"Letton"},{code:"mg",name:"Malagasy",nativeName:"Malagasy",frenchName:"Malgache"},{code:"mh",name:"Marshallese",nativeName:"Kajin Majel / Ebon",frenchName:"Marshall"},{code:"mi",name:"Maori",nativeName:"MÄori",frenchName:"Maori"},{code:"mk",name:"Macedonian",nativeName:"МакедонÑки",frenchName:"Macédonien"},{code:"ml",name:"Malayalam",nativeName:"മലയാളം",frenchName:"Malayalam"},{code:"mn",name:"Mongolian",nativeName:"Монгол",frenchName:"Mongol"},{code:"mo",name:"Moldovan",nativeName:"Moldovenească",frenchName:"Moldave"},{code:"mr",name:"Marathi",nativeName:"मराठी",frenchName:"Marathe"},{code:"ms",name:"Malay",nativeName:"Bahasa Melayu",frenchName:"Malais"},{code:"mt",name:"Maltese",nativeName:"bil-Malti",frenchName:"Maltais"},{code:"my",name:"Burmese",nativeName:"မြန်မာစာ",frenchName:"Birman"},{code:"na",name:"Nauru",nativeName:"Dorerin Naoero",frenchName:"Nauruan"},{code:"nb",name:"Norwegian BokmÃ¥l",nativeName:"BokmÃ¥l",frenchName:"Norvégien BokmÃ¥l"},{code:"nd",name:"North Ndebele",nativeName:"Sindebele",frenchName:"Ndebele du Nord"},{code:"ne",name:"Nepali",nativeName:"नेपाली",frenchName:"Népalais"},{code:"ng",name:"Ndonga",nativeName:"Oshiwambo",frenchName:"Ndonga"},{code:"nl",name:"Dutch",nativeName:"Nederlands",frenchName:"Néerlandais"},{code:"nn",name:"Norwegian Nynorsk",nativeName:"Nynorsk",frenchName:"Norvégien Nynorsk"},{code:"no",name:"Norwegian",nativeName:"Norsk",frenchName:"Norvégien"},{code:"nr",name:"South Ndebele",nativeName:"isiNdebele",frenchName:"Ndébélé du Sud"},{code:"nv",name:"Navajo",nativeName:"Diné bizaad",frenchName:"Navajo"},{code:"ny",name:"Chichewa",nativeName:"Chi-Chewa",frenchName:"Chichewa"},{code:"oc",name:"Occitan",nativeName:"Occitan",frenchName:"Occitan"},{code:"oj",name:"Ojibwa",nativeName:"áŠá“‚ᔑᓈá¯á’§áŽá“ / Anishinaabemowin",frenchName:"Ojibwa"},{code:"om",name:"Oromo",nativeName:"Oromoo",frenchName:"Oromo"},{code:"or",name:"Oriya",nativeName:"ଓଡ଼ିଆ",frenchName:"Oriya"},{code:"os",name:"Ossetian / Ossetic",nativeName:"Иронау",frenchName:"Ossète"},{code:"pa",name:"Panjabi / Punjabi",nativeName:"ਪੰਜਾਬੀ / पंजाबी / پنجابي",frenchName:"Panjabi / Pendjabi"},{code:"pi",name:"Pali",nativeName:"PÄli / पाऴि",frenchName:"Pali"},{code:"pl",name:"Polish",nativeName:"Polski",frenchName:"Polonais"},{code:"ps",name:"Pashto",nativeName:"پښتو",frenchName:"Pachto",rtl:1},{code:"pt",name:"Portuguese",nativeName:"Português",frenchName:"Portugais"},{code:"qu",name:"Quechua",nativeName:"Runa Simi",frenchName:"Quechua"},{code:"rm",name:"Raeto Romance",nativeName:"Rumantsch",frenchName:"Romanche"},{code:"rn",name:"Kirundi",nativeName:"Kirundi",frenchName:"Kirundi"},{code:"ro",name:"Romanian",nativeName:"Română",frenchName:"Roumain"},{code:"ru",name:"Russian",nativeName:"РуÑÑкий",frenchName:"Russe"},{code:"rw",name:"Rwandi",nativeName:"Kinyarwandi",frenchName:"Kinyarwanda"},{code:"sa",name:"Sanskrit",nativeName:"संसà¥à¤•ृतमà¥",frenchName:"Sanskrit"},{code:"sc",name:"Sardinian",nativeName:"Sardu",frenchName:"Sarde"},{code:"sd",name:"Sindhi",nativeName:"सिनधि",frenchName:"Sindhi"},{code:"se",name:"Northern Sami",nativeName:"Sámegiella",frenchName:"Sami du Nord"},{code:"sg",name:"Sango",nativeName:"Sängö",frenchName:"Sango"},{code:"sh",name:"Serbo-Croatian",nativeName:"Srpskohrvatski / СрпÑкохрватÑки",frenchName:"Serbo-Croate"},{code:"si",name:"Sinhalese",nativeName:"සිංහල",frenchName:"Singhalais"},{code:"sk",name:"Slovak",nativeName:"SlovenÄina",frenchName:"Slovaque"},{code:"sl",name:"Slovenian",nativeName:"SlovenÅ¡Äina",frenchName:"Slovène"},{code:"sm",name:"Samoan",nativeName:"Gagana Samoa",frenchName:"Samoan"},{code:"sn",name:"Shona",nativeName:"chiShona",frenchName:"Shona"},{code:"so",name:"Somalia",nativeName:"Soomaaliga",frenchName:"Somali"},{code:"sq",name:"Albanian",nativeName:"Shqip",frenchName:"Albanais"},{code:"sr",name:"Serbian",nativeName:"СрпÑки",frenchName:"Serbe"},{code:"ss",name:"Swati",nativeName:"SiSwati",frenchName:"Swati"},{code:"st",name:"Southern Sotho",nativeName:"Sesotho",frenchName:"Sotho du Sud"},{code:"su",name:"Sundanese",nativeName:"Basa Sunda",frenchName:"Soundanais"},{code:"sv",name:"Swedish",nativeName:"Svenska",frenchName:"Suédois"},{code:"sw",name:"Swahili",nativeName:"Kiswahili",frenchName:"Swahili"},{code:"ta",name:"Tamil",nativeName:"தமிழà¯",frenchName:"Tamoul"},{code:"te",name:"Telugu",nativeName:"తెలà±à°—à±",frenchName:"Télougou"},{code:"tg",name:"Tajik",nativeName:"Тоҷикӣ",frenchName:"Tadjik"},{code:"th",name:"Thai",nativeName:"ไทย / Phasa Thai",frenchName:"Thaï"},{code:"ti",name:"Tigrinya",nativeName:"ትáŒáˆáŠ›",frenchName:"Tigrigna"},{code:"tk",name:"Turkmen",nativeName:"Туркмен / تركمن",frenchName:"Turkmène"},{code:"tl",name:"Tagalog / Filipino",nativeName:"Tagalog",frenchName:"Tagalog / Philippin"},{code:"tn",name:"Tswana",nativeName:"Setswana",frenchName:"Tswana"},{code:"to",name:"Tonga",nativeName:"Lea Faka-Tonga",frenchName:"Tongien"},{code:"tr",name:"Turkish",nativeName:"Türkçe",frenchName:"Turc"},{code:"ts",name:"Tsonga",nativeName:"Xitsonga",frenchName:"Tsonga"},{code:"tt",name:"Tatar",nativeName:"Tatarça",frenchName:"Tatar"},{code:"tw",name:"Twi",nativeName:"Twi",frenchName:"Twi"},{code:"ty",name:"Tahitian",nativeName:"Reo MÄ`ohi",frenchName:"Tahitien"},{code:"ug",name:"Uyghur",nativeName:"UyÆ£urqÉ™ / ئۇيغۇرچە",frenchName:"Ouïghour"},{code:"uk",name:"Ukrainian",nativeName:"УкраїнÑька",frenchName:"Ukrainien"},{code:"ur",name:"Urdu",nativeName:"اردو",frenchName:"Ourdou",rtl:1},{code:"uz",name:"Uzbek",nativeName:"Ўзбек",frenchName:"Ouzbek"},{code:"ve",name:"Venda",nativeName:"Tshivenḓa",frenchName:"Venda"},{code:"vi",name:"Vietnamese",nativeName:"Tiếng Việt",frenchName:"Vietnamien"},{code:"vo",name:"Volapük",nativeName:"Volapük",frenchName:"Volapük"},{code:"wa",name:"Walloon",nativeName:"Walon",frenchName:"Wallon"},{code:"wo",name:"Wolof",nativeName:"Wollof",frenchName:"Wolof"},{code:"xh",name:"Xhosa",nativeName:"isiXhosa",frenchName:"Xhosa"},{code:"yi",name:"Yiddish",nativeName:"ייִדיש",frenchName:"Yiddish",rtl:1},{code:"yo",name:"Yoruba",nativeName:"Yorùbá",frenchName:"Yoruba"},{code:"za",name:"Zhuang",nativeName:"Cuengh / Tôô / 壮è¯",frenchName:"Zhuang"},{code:"zh",name:"Chinese",nativeName:"䏿–‡",frenchName:"Chinois"},{code:"zu",name:"Zulu",nativeName:"isiZulu",frenchName:"Zoulou"}];function d_e(e){return e.map(t=>mz.find(n=>n.code==t).frenchName).join(", ")}const{t:f_e}=_s.global;function If(e,t=!1){return e.remote?f_e("practitionerPublicProfile.remoteLabel")+(t?` (${e.city})`:""):`${e.addressLine}, ${e.postalCode} ${e.city}, ${e.country}`}function uYe(e){return Array.from(new Set([e.addressLine,e.postalCode,e.city,e.country].filter(Boolean))).join(", ")}function h_e(e){if(!e)return"";const t=e/1e3,n=2;return t>=1?t.toFixed(n)+" km":e.toFixed(0)+" m"}const{t:d0}=_s.global,p_e={cash:d0("practitionerPublicProfile.cash"),check:d0("practitionerPublicProfile.check"),creditCard:d0("practitionerPublicProfile.creditCard"),transfer:d0("practitionerPublicProfile.transfer")};function m_e(e){return e.map(t=>p_e[t]).join(", ")}const vz="verified_degrees";function v_e(e){const t=new Set;return e.forEach(n=>{const i=$e(n.start).format("YYYY-MM-DD");t.add(i)}),Array.from(t).sort()}function g_e(e){const t=[];return e.forEach(n=>{const i=n.start;t.push({date:i,start:n.start,appointmentReasonId:n.reasonId,remote:n.remote&&!n.presential?"remote":"in-person"})}),t}function cYe(e){if(e.length===0)return[];const t=[],n=v_e(e),i=g_e(e);return n.forEach(r=>{const a=i.filter(o=>$e(o.date).format("YYYY-MM-DD")===r);t.push({date:r,slots:a})}),t}function y_e(e){const t=new Set;return Object.values(e).forEach(n=>{n.forEach(i=>{const r=new Date(i.start).toISOString().split("T")[0];t.add(r)})}),Array.from(t).sort()}function __e(e){const t=[];return Object.values(e).forEach(n=>{n.forEach(i=>{const r=new Date(i.start).toISOString();t.push({date:r,start:i.start,end:i.end,appointmentReasonId:i.reason,price:i.price,duration:i.duration})})}),t}function b_e(e){const t=[],n=y_e(e),i=__e(e);return n.forEach(r=>{const a=i.filter(o=>$e(o.date).format("YYYY-MM-DD")===r).sort((o,s)=>{if(s.date>o.date)return-1;if(o.date>s.date)return 1;if(o.data===s.date)return 0});t.push({date:r,slots:a})}),t}function w_e(e,t){const n=e.find(({date:i})=>i.includes(t));return n?n.slots:[{}]}function gz(e,t,n){const i=[];for(let r=0;r<n+1;r++){const a=$e(t).add(r,"days").format("YYYY-MM-DD");i.push({date:a,slots:w_e(e,a)})}return i}const Yr={start:()=>{Hn.emit("loading",{active:!0})},stop:()=>{Hn.emit("loading",{active:!1})}};function CA(e){const t=new Date(e),n=t.getDate()<10?`0${t.getDate()}`:t.getDate(),i=t.getMonth()+1<10?`0${t.getMonth()+1}`:t.getMonth()+1;return`${t.getFullYear()}-${i}-${n}`}function S_e(e,t){return Math.floor(Math.random()*(t-e)+e)}function bb(e,t){const n=new Date(e);return n.setHours(t.hours),n.setMinutes(t.minutes),n.setSeconds(0),n.setMilliseconds(0),n}function C_e(e,t){const n=new Date(e),i=n.getMinutes(),r=i%t;return n.setMinutes(i+(t-r)),n.setSeconds(0),n.setMilliseconds(0),n}function yz(e,t,n,i=0){let r=e.getTime();const a=t.getTime(),o=[];for(;r<=a;r+=n*6e4){const s={date:new Date(r)};o.push(s)}for(let s=0;s<i;s+=1){const l=S_e(0,o.length);o.splice(l,1)}return o}function E_e(e,t,n,i){let r;CA(e)<=CA(new Date)?r=C_e(e,t):r=bb(e,n);const a=bb(e,i),o=yz(r,a,t);return{date:e,slots:o}}function x_e(e,t,n,i,r,a=0){const o=[];o.push(E_e(e,r,n,i));const s=new Date(e);for(let l=1;l<t;l+=1){const u=new Date(s.setDate(s.getDate()+1));if(u.getDay()===0||u.getDay()===6)l-=1;else{const c=bb(u,n),d=bb(u,i),f=yz(c,d,r,a),h={date:new Date(s),slots:f};o.push(h)}}return o}x_e(new Date,5,{hours:8,minutes:0},{hours:18,minutes:0},60);const J3=(e,t=4)=>gz([],$e(e),t);var _z={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(ri,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(r,a,o){var s,l=function(f,h,m){m===void 0&&(m={});var g=new Date(f),v=function(y,_){_===void 0&&(_={});var S=_.timeZoneName||"short",w=y+"|"+S,x=i[w];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),i[w]=x),x}(h,m);return v.formatToParts(g)},u=function(f,h){for(var m=l(f,h),g=[],v=0;v<m.length;v+=1){var y=m[v],_=y.type,S=y.value,w=n[_];w>=0&&(g[w]=parseInt(S,10))}var x=g[3],k=x===24?0:x,P=g[0]+"-"+g[1]+"-"+g[2]+" "+k+":"+g[4]+":"+g[5]+":000",E=+f;return(o.utc(P).valueOf()-(E-=E%1e3))/6e4},c=a.prototype;c.tz=function(f,h){f===void 0&&(f=s);var m=this.utcOffset(),g=this.toDate(),v=g.toLocaleString("en-US",{timeZone:f}),y=Math.round((g-new Date(v))/1e3/60),_=o(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-y,!0);if(h){var S=_.utcOffset();_=_.add(m-S,"minute")}return _.$x.$timezone=f,_},c.offsetName=function(f){var h=this.$x.$timezone||o.tz.guess(),m=l(this.valueOf(),h,{timeZoneName:f}).find(function(g){return g.type.toLowerCase()==="timezonename"});return m&&m.value};var d=c.startOf;c.startOf=function(f,h){if(!this.$x||!this.$x.$timezone)return d.call(this,f,h);var m=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(m,f,h).tz(this.$x.$timezone,!0)},o.tz=function(f,h,m){var g=m&&h,v=m||h||s,y=u(+o(),v);if(typeof f!="string")return o(f).tz(v);var _=function(k,P,E){var A=k-60*P*1e3,D=u(A,E);if(P===D)return[A,P];var T=u(A-=60*(D-P)*1e3,E);return D===T?[A,D]:[k-60*Math.min(D,T)*1e3,Math.max(D,T)]}(o.utc(f,g).valueOf(),y,v),S=_[0],w=_[1],x=o(S).utcOffset(w);return x.$x.$timezone=v,x},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(f){s=f}}})})(_z);var k_e=_z.exports;const Im=Ei(k_e);var bz={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(ri,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(g){var v={date:g,utc:!0,args:arguments};return new o(v)},l.utc=function(g){var v=s(this.toDate(),{locale:this.$L,utc:!0});return g?v.add(this.utcOffset(),n):v},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var c=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else c.call(this)};var d=l.utcOffset;l.utcOffset=function(g,v){var y=this.$utils().u;if(y(g))return this.$u?0:y(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=function(x){x===void 0&&(x="");var k=x.match(i);if(!k)return null;var P=(""+k[0]).match(r)||["-",0,0],E=P[0],A=60*+P[1]+ +P[2];return A===0?0:E==="+"?A:-A}(g),g===null))return this;var _=Math.abs(g)<=16?60*g:g,S=this;if(v)return S.$offset=_,S.$u=g===0,S;if(g!==0){var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(_+w,n)).$offset=_,S.$x.$localOffset=w}else S=this.utc();return S};var f=l.format;l.format=function(g){var v=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,v)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var m=l.diff;l.diff=function(g,v,y){if(g&&this.$u===g.$u)return m.call(this,g,v,y);var _=this.local(),S=s(g).local();return m.call(_,S,v,y)}}})})(bz);var T_e=bz.exports;const Nm=Ei(T_e);class wz{constructor(){Ns(this,"timerId",null)}startTimer(t,n){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(n,t)}resetTimer(t,n){this.startTimer(t,n)}stopTimer(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}}const dYe=new wz,Ow={confirm:e=>{Hn.emit("confirm",e)},close:()=>{Hn.emit("close-confirm")}},{t:f0}=_s.global,P_e=Pi("absence-service",()=>{const e=z(null),t=z(new wz),n=()=>{Hn.emit("tmp-appointment-canceled")},i=()=>{t.value.startTimer(13*60*1e3,n),Ow.confirm({title:f0("dashboard.appointment.titleAbsenceDialog"),message:f0("dashboard.appointment.messageAbsenceDialog"),confirmBtnLabel:f0("dashboard.appointment.confirmBtnAbsenceDialog"),cancelBtnLabel:f0("dashboard.appointment.cancelBtnAbsenceDialog"),optionsConfirm:{async onCancel(){const s=Sz();await vn().delete("/appointment-patient/"+s.temporaryAppointment.id),t.value.stopTimer(),await In.push({name:"PractitionerPublicProfile",params:{...e.value}})},onConfirm(){o()}},mandatory:!0})},r=()=>{t.value.startTimer(13*60*1e3,i)},a=()=>{t.value.stopTimer()},o=()=>{t.value.stopTimer(),t.value.startTimer(13*60*1e3,i)};return{publicProfileParams:e,startTimer:r,stopTimer:a}});$e.extend(Nm);$e.extend(Im);const{t:Q3}=_s.global,eS=vn(),Sz=Pi("appointment-management",()=>{const e=z($e()),t=z(4),n=B(()=>e.value.add(t.value+1,"days").hour(0).minute(0).millisecond(0)),i=B(()=>e.value.toDate()),r=z([]),a=z(null),o=z(null),s=z(0),l=z(null),u=z("in-person"),c=z(null),d=z(""),f=z(""),h=z(!1),m=Gf(async(T,O,N,V)=>{await eS.get(`/appointment/available?profiles=${T}&addresses=${O}&start=${e.value.toISOString()}&end=${n.value.toISOString()}&appointmentReasons=${N}&remote=${V==="remote"}&presential=${V==="in-person"}`).then(async j=>{await k(j.data)}).catch(j=>{console.error("Error fetching appointment slots:",j),nt.error(Q3("common.error.errorHasOccurred"))}).finally(()=>{g.value=!1})},500);Ve([l,c,u],async([T,O,N],[V,j,q])=>{var he;const ae=(he=a_().profile)==null?void 0:he.id;if(!ae)return;g.value=!0;const Y=O??j,M=N??q,I=T??V;let W="";I&&I.id&&(W=I.id,I.remote&&(u.value="remote"));let te="";if(Y&&Y.id&&(te=Y.id),!te){r.value=J3(e.value,t.value),g.value=!1;return}await m(ae,W,Y.id,M),In.replace({name:"PractitionerPublicProfile",params:{...In.currentRoute.value.params,city:l.value.city},query:{appointmentReasonId:Y.id,addressId:W,remote:M}})},{immediate:!1});const g=z(!1),v=z(!1),y=z(null),_=z(null),S=(T,O)=>{y.value=T,r.value=J3(e.value,t.value),v.value=!1,_.value=$e(O)},w=T=>{v.value=T,r.value=J3(e.value,t.value),y.value="",_.value=null},x=T=>{y.value="",v.value=!1,r.value=T,_.value=null},k=async(T,O,N)=>{const V=Object.prototype.hasOwnProperty.call(T,"date"),j=Object.prototype.hasOwnProperty.call(T,"message");if(V){const q=T.date;S($e(q).format("ddd D MMM"),q)}else if(j)w(T.message);else{const q=b_e(T),ne=gz(q,e.value,t.value);x(ne)}},P=async(T="",O="")=>{var j;s.value++;const N=a_();if(!N.profile&&!T||(T=((j=N.profile)==null?void 0:j.id)||T,!u.value||!c.value||!e.value||!n.value))return;E.value.length===0&&await A(T,O);const V=c.value.id;s.value===1&&(g.value=!0),await m(T,l.value?l.value.id:"",V,u.value)},E=z([]),A=async(T="",O="")=>{const V=a_().profile;V&&!V.owner&&!O||(T=T||V.id,O=V.owner.id?V.owner.id:O,await eS.get(`/appointment-reason/practician/${T}`).then(j=>{E.value=j.data.filter(q=>V&&q.profile?q.profile.id===T:!1).map(q=>({...q,remote:q.remote?"yes":"no"})),d.value&&(c.value=E.value.find(q=>q.id===d.value)),c.value||(c.value=E.value[0])}).catch(j=>{console.error("Error fetching data:",j)}))};return{selectedMeeting:o,date:i,start:e,end:n,numberOfDaysDisplayed:t,remote:u,loading:g,selectedAddress:l,selectedReason:c,selectedReasonId:d,selectedAddId:f,meetingsDays:r,fetchAppointmentSlots:P,motives:E,fetchMotives:A,temporaryAppointment:a,createTemporaryAppointment:async T=>{const O={address:l.value.id,appointmentReason:c.value.id,comment:null,dateTime:$e(T).format("YYYY-MM-DD HH:mm:ss"),presential:u.value=="in-person",remote:u.value=="remote",timezone:$e.tz.guess()};Yr.start(),await eS.post("/appointment-patient/temporary",O,{headers:{"Content-Type":"application/json"}}).then(async N=>{a.value=N.data;const V=P_e();V.publicProfileParams={discipline:In.currentRoute.value.params.discipline,city:In.currentRoute.value.params.city,practitionerSlug:In.currentRoute.value.params.practitionerSlug},V.startTimer(),await In.push({name:"ScheduleAppointment",params:{id:a.value.id}}),N.status===422&&(nt.error(Q3("practitionerPublicProfile.errorNoAppointmentAvailable")),await P())}).catch(async N=>{N.response&&N.response.data&&N.response.data.message?(nt.error(N.response.data.message),await P()):nt.error(Q3("common.error.errorHasOccurred")),console.error("Error creating temporary appointment data:",N)}),Yr.stop()},noAvailability:v,nextAvailability:y,nextAvailabilityDate:_,setNextAvailabiility:S,setNoAvailabilityMessage:w,setAvailabilities:x,fetchAvaillableCount:s,appointmentLoading:h}});function $_e(e,t=100){const n=document.getElementById(e);if(n){const i=n.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:i-t,behavior:"smooth"})}}const{t:EA}=_s.global,a_=Pi("practitioner-public-profile",()=>{const e=vn(),t=z(""),n=z(null),i=z(""),r=z(!1),a=z([]),o=z(""),s=z("desc"),l=z(""),u=z(10),c=z(1),d=z(1),f=z(!1),h=z(""),m=z(null),g=z(!1),v=async(k,P)=>{try{const E=await e.get(`/profile/public?slug=${k}&discipline=${P}`);if(E.status!==200)throw Error("Error occurred on get addresses");if(!E.data){n.value=null;return}let A=[];E.data&&E.data.id&&(A=await y(E.data.id)),n.value={...E.data,nextAvailability:i.value??"",verified:E.data.labels?E.data.labels.includes(vz):!1,isVerified:E.data.isVerified,profileAddresses:E.data.profileAddresses.map(T=>({id:T.id,address:{...T.address,formattedAddress:T.address.remote?EA("practitionerPublicProfile.remoteLabel"):`${T.address.addressLine}, ${T.address.postalCode} ${T.address.city}, ${T.address.country}`}})),allProfiles:A};const D=Sz();D.remote=n.value.remote?"remote":"in-person"}catch{n.value=null;return}},y=async k=>{try{const P=await e.get(`/profile/practician/${k}`);if(P.status!==200)throw Error("Error occurred on get addresses");if(!P.data){n.value=null;return}return P.data}catch(P){console.error(P),n.value=null;return}},_=B(()=>!n.value||!n.value.profileAddresses||!n.value.profileAddresses.length?[]:n.value.profileAddresses.map(k=>({...k.address,latLng:Sp.latLng(k.address.latitude,k.address.longitude)}))),S=async(k,P)=>{if(!f.value)try{f.value=!0,l.value=k,h.value=P;const E=await e.get(`/profile/reviews?discipline=${h.value}&slug=${l.value}&page=${c.value}&search=${o.value}&order=${s.value}&limit=${u.value}`),A=E.data;d.value=E.data.total,u.value=E.data.limit,m.value=E.data.last_page?E.data.last_page:Math.ceil(d.value/u.value),a.value=A.data}catch(E){console.log(E)}finally{f.value=!1}};return Ve(()=>[s.value,o.value,c.value],async()=>{await Pt(),$_e("publicFeedback",80),await S(l.value,h.value)}),{isLoading:r,distanceFromPatient:t,profile:n,fetchProfile:v,nextAvailability:i,computedAddresses:_,optinions:S,feedbacks:a,opinionSearch:o,orderBy:s,loadFeedback:f,total:d,currentPage:c,limit:u,last_page:m,sendEmailToPractitionner:async(k,P,E)=>{if(g.value)return!1;try{return g.value=!0,await e.post(`/profile/send-message?discipline=${P}&slug=${E}`,k),nt.success(EA("practitionerPublicProfile.contact.success_message")),!0}catch(A){return A.response.status===422?nt.error(A.response.data.message):nt.error(""),!1}finally{g.value=!1}},sendingLoading:g,getPublicPhone:async(k,P,E)=>{try{return(await e.get(`/profile/public/phone-number?discipline=${k}&slug=${P}&captcha=${E}`)).data}catch{return console.info("error"),!1}}}}),A_e=z(!0),O_e=z(!1),D_e=vn(),{t:xA}=_s.global,I_e=z(1),N_e={discipline:"Pratiques",practitioner_service:"Actes et expertises"},M_e={searches:[{collection:"query_suggestions",filter_by:"type: discipline",vector_query:"embedding:([], distance_threshold:0.50, alpha: 0.3)"},{collection:"query_suggestions",filter_by:"type: practitioner_service",vector_query:"embedding:([], distance_threshold:0.60, alpha: 0.7)"}]},wb=Pi("main-search-bar",()=>{const i=new Set,r=z(null),a=z(100),o=z(null),s=z(null),l=r4(),u=pz(),c=a_(),d=async()=>{await l.initLocationService(),o.value=l.getLat(),s.value=l.getLon()},f=z(null),h=z(!0),m=z(""),g=z(!1),v=z(!1),y=z(null),_=z([]),S=Gf(async ue=>{v.value=!0,ue||(ue="*"),m.value=ue;try{const pe=await hz.post(`/multi_search?q=${ue}&include_fields=label,type,id&query_by=label,embedding&per_page=5&sort_by=_text_match:desc,q:asc`,M_e);_.value=A(pe.data)}catch(pe){console.error(pe)}v.value=!1},200),w=z(""),x=z("all"),k=z("pertinence"),P=z("all"),E=z("all");function A(ue){const pe=[];return ue.results.forEach((ge,Te)=>{ge.hits.length&&(pe.push({type:"subheader",title:N_e[ge.hits[0].document.type]}),i.add(ge.hits[0].document.type),ge.hits.slice(0,5).forEach(Z=>{const X=Z.document;pe.push({value:X.label,title:X.label})}),Te<ue.results.length-1&&pe.push({type:"divider"}))}),pe}const D=z(!1),T=z([]),O=z({page:1,perPage:15,countPage:null,hasMorePage:!1}),N=()=>{O.value={page:1,perPage:15,countPage:null,hasMorePage:!1}},V=async(ue=!1,pe=null)=>{if(D.value)return;ue||N(),await d();const ge=r4();D.value=!0,a.value=h.value?1e3:100;try{let Te=y.value?y.value:"*";In.currentRoute.value.name==="Home"&&(Te="*");const Z=ge.getLat(),X=ge.getLon(),ye=q();u.selectedDiscipline&&(w.value=u.selectedDiscipline),u.priceOrder&&(x.value=u.priceOrder),u.consultationType&&(P.value=u.consultationType),u.opinionOrder&&(E.value=u.opinionOrder);const Se=await o_e(Te,Z.toString(),X.toString(),a.value.toString(),w.value,x.value,k.value,P.value,ye,O.value.page,O.value.perPage);if(Se.data&&(f.value=Se.data.found),!h.value&&!ue&&Se.data.found<30){h.value=!0,await V(ue);return}O.value.countPage=Math.ceil(Se.data.found/O.value.perPage),O.value.hasMorePage=O.value.page<O.value.countPage,ue?(T.value=[...T.value,...ae(Se.data)],Y.value=[...Y.value,...M(T.value)]):(T.value=ae(Se.data),Y.value=M(T.value)),oe.value=[...U(Se.data)],T.value=j(T.value)}catch(Te){console.error(Te),nt.error("")}D.value=!1,g.value=!0};function j(ue){const pe={};return ue.forEach(ge=>{const Te=pe[ge.practitionerId];(!Te||ge.text_match>Te.text_match)&&(pe[ge.practitionerId]=ge)}),Object.values(pe)}const q=()=>{const ue=[],pe=ge=>ge.hour(0).minute(0).second(0).millisecond(0).unix();if(W.value=="today"){const ge=pe($e().add(1,"days"));ue.push(`addresses.firstAppointment:<${ge}`)}else if(W.value=="next-three-days"){const ge=pe($e().add(4,"days"));ue.push(`addresses.firstAppointment:<${ge}`)}else if(W.value=="in-the-week"){const ge=pe($e().add(8,"days"));ue.push(`addresses.firstAppointment:<${ge}`)}return In.currentRoute.value.name==="PractitionerPublicProfile"&&ue.push(`id:!=${c.profile.id}`),te.value&&ue.push(`services:=[${te.value.map(ge=>`\`${ge.value}\``)}]`),ue.join(" && ")},ne=ue=>{const pe=[];return ue.forEach(ge=>{pe.push(xA("profileForm.targetAudiences.audience."+ge))}),pe.join(", ")},ae=ue=>{const pe=ue.hits.map(ge=>{var Mt;const{document:Te,geo_distance_meters:Z,text_match:X,highlight:ye}=ge,{id:Se,practitionerId:Ee,practitionerName:_e,status:be,isVerified:ie,labels:se,tagline:de,disciplines:xe,spokenLanguages:Re,addresses:Pe,priceMin:we,durationMin:Ae,durationMax:Ie,paymentMethods:Ye,avatar:rt,remoteAllowed:Ot,mainDiscipline:$n,targetAudiences:jt,services:Fn,slug:at,reviews:dt,opinionsPositive:ft,reviewPercentage:Kt}=Te,St=Pe.length>0?Pe.reduce((sn,lr)=>re([lr.location[0],lr.location[1]],[o.value,s.value])<re([sn.location[0],sn.location[1]],[o.value,s.value])?lr:sn):null;return{id:Se,practitionerId:Ee,slug:at,practitionerName:_e,verified:se?se.includes(vz):!1,isVerified:ie,status:be,tagline:de,mainDiscipline:$n,disciplines:xe,reviews:dt??0,opinionsPositive:ft??0,reviewPercentage:Kt??0,audience:ne(jt),languages:d_e(Re),address:{id:St.id,addressLine:St.addressLine,city:St.city,country:St.country,location:St.location,latitude:St.location[0].toString(),longitude:St.location[1].toString(),postalCode:St.postalCode,street:St.street,formattedAddress:If(St),firstAppointment:$e.unix(St.firstAppointment).format("YYYY-MM-DD HH:mm"),latLng:Sp.latLng(St.location[0],St.location[1]),hint:(Mt=ge.geo_distance_meters)!=null&&Mt["addresses.location"]?xA("practitionerPublicProfile.distanceFromPatient",{distance:h_e(ge.geo_distance_meters["addresses.location"])}):"",remote:St.remote,distanceKm:re([St.location[0],St.location[1]],[o.value,s.value])},addresses:Pe.map(sn=>({id:sn.id,addressLine:sn.addressLine,city:sn.city,country:sn.country,location:sn.location,latitude:sn.location[0].toString(),longitude:sn.location[1].toString(),postalCode:sn.postalCode,latLng:Sp.latLng(sn.location[0],sn.location[1]),formattedAddress:If(sn),firstAppointment:$e.unix(sn.firstAppointment).format("YYYY-MM-DD HH:mm"),remote:sn.remote,distanceKm:re([sn.location[0],sn.location[1]],[o.value,s.value])})),distanceKm:Z!=null&&Z["addresses.location"]?Z["addresses.location"]/1e3:0,priceFrom:we,durationMin:Ae,durationMax:Ie,paymentMethods:m_e(Ye),remoteAllowed:Ot,nextAppointment:St&&St.firstAppointment?$e.unix(St.firstAppointment).format("ddd D MMMM"):"",avatarUrl:rt,isAvailabilitiesFetched:!1,services:Fn,text_match:X,highlight:ye}});return k.value==="proximity"&&pe.sort((ge,Te)=>{var Z,X;return((Z=ge.address)==null?void 0:Z.distanceKm)-((X=Te.address)==null?void 0:X.distanceKm)}),pe},Y=z([]);function M(ue){return ue.flatMap(I)}function I(ue){const{id:pe,practitionerName:ge,disciplines:Te,priceFrom:Z,durationMin:X,durationMax:ye,addresses:Se}=ue;return Se.map(Ee=>({practitionerId:pe,practitionerName:ge,disciplines:Te.map(_e=>_e.label),priceFrom:Z,durationMin:X,durationMax:ye,latLng:Sp.latLng(Ee.location[0],Ee.location[1]),formattedAddress:If(Ee),...Ee}))}const W=z(""),te=z(null),he=z(!1),oe=z([]);function U(ue){const pe=[];pe.push({type:"subheader",title:"Disciplines"});const ge=new Set;ue.hits.forEach(Z=>{Z.document.disciplines.forEach(X=>ge.add(X.label))}),ge.forEach(Z=>{pe.push({value:Z,title:Z})}),pe.push({type:"divider"}),pe.push({type:"subheader",title:"Services"});const Te=new Set;return ue.hits.forEach(Z=>{Z.document.services.forEach(X=>Te.add(X))}),Te.forEach(Z=>{pe.push({value:Z,title:Z})}),pe}const ee=async(ue,pe)=>{try{return await D_e.get(`/profile-location-map/search?city=${ue}&discipline=${pe}`)}catch(ge){return{data:"",status:ge.status}}},re=([ue,pe],[ge,Te])=>{const X=be=>be*Math.PI/180,ye=X(ge-ue),Se=X(Te-pe),Ee=Math.sin(ye/2)**2+Math.cos(X(ue))*Math.cos(X(ge))*Math.sin(Se/2)**2;return 6371e3*(2*Math.atan2(Math.sqrt(Ee),Math.sqrt(1-Ee)))};return{documentTypes:i,searchLocation:r,radius:a,isExpandedSearch:h,countResultsFound:f,extraFilterAvailabilities:W,extraFilterServices:te,extraFilterRemote:he,listExtraFilterServices:oe,transformResponseToExtraFilterServices:U,searchService:y,listAutocompleteService:_,loadingServices:v,autocompleteSearchServices:S,transformResponseToAutocompleteService:A,listPractitioners:T,loadingFind:D,pagination:O,resetPagination:N,findYourPractitioner:V,formatFilterByParam:q,transformResponseToPractitionerCard:ae,latitude:o,longitude:s,initializeGeolocation:d,listAddresses:Y,transformToAddressPractitioners:I,transformAllPractitionerCardsToAddresses:M,formatAudience:ne,selectedDiscipline:w,priceOrder:x,consultationType:P,opinionOrder:E,sortBy:k,searchText:m,alreadySearchWithSelectedCity:g,isInitializing:A_e,topRate:O_e,getAddrByCityAndDiscipline:ee,locationKey:I_e}}),r4=Pi("geolocation",()=>{const e=Zh("userLocation",{}),t=B(()=>!e.value||Object.values(e.value).length==0||e.value.city==null||e.value.coords.latitude==null||e.value.coords.longitude==null),n=h=>{wb(),e.value=h},i={enableHighAccuracy:!0,timeout:5e3,maximumAge:0},r=z(!1),a=h=>new Promise((m,g)=>{navigator.geolocation.getCurrentPosition(m,g,h)}),o=async()=>{r.value=!0;try{if(navigator.geolocation){const h=await a(i);h.coords&&(e.value={city:"",coords:{latitude:h.coords.latitude,longitude:h.coords.longitude}}),await f()}else await s()}catch{await s()}finally{r.value=!1}},s=async()=>{try{const h=await t_e();e.value={...h.data,coords:{latitude:h.data.latitude,longitude:h.data.longitude}}}catch(h){console.error("Failed to fetch default location",h)}},l=async()=>{t.value&&await s()},u=()=>{var h,m;return(m=(h=e.value)==null?void 0:h.coords)==null?void 0:m.latitude},c=()=>{var h,m;return(m=(h=e.value)==null?void 0:h.coords)==null?void 0:m.longitude},d=h=>{if(!h)return null;const m=h.split(",");return m.length>1?m[1].trim():null},f=async()=>{const h=wb();r.value=!0;const g=await nk().getReverseGoogleGeoCoding(u(),c());r.value=!1;const v=g.results[0].formatted_address;e.value.city=d(v)??"",h.searchLocation=v.split(" ").slice(1).join(" ")};return{storedLocation:e,updateStoredLocation:n,storedLocationIsEmpty:t,askGeolocation:o,loading:r,fetchDefaultLocation:s,initLocationService:l,getLat:u,getLon:c,onGetPositionFromClient:f}}),L_e=async(e="",t=1,n=5,i="")=>{const r=Un();if(!r.isLogged||r.user.profilType!=="practitioner")return null;const o=await vn("/clients/search").get("",{params:{q:e||"*",filters:i,page:t,per_page:n}});return{status:o.status,data:o.data}},R_e=Pi("patientStore",()=>{const e=z([]),t=z(!1),n=z(!1),i=z(!0),r=z(1),a=z(20),o=z(""),s=z(""),l=B(()=>{const g={};return e.value.forEach(y=>{var w;let S=(((w=y.firstName)==null?void 0:w.split(" ")[0])||"").charAt(0).normalize("NFD").replace(/\u0300-\u036f/g,"").replace(/[^a-zA-Z]/g,"").toUpperCase();S||(S="#"),g[S]||(g[S]=[]),g[S].push(y)}),Object.keys(g).sort((y,_)=>y==="#"?1:_==="#"?-1:y.localeCompare(_)).map(y=>({letter:y,patients:g[y]}))});function u(g){return e.value.find(v=>v.id===g)||null}async function c({refresh:g=!1,search:v="",append:y=!1,filters:_=""}={}){var S;if(!((t.value||n.value)&&!g)){y?n.value=!0:(t.value=!0,r.value=1,i.value=!0,e.value=[]);try{const w=y?r.value+1:1,x=await L_e(v,w,a.value,_);if(x.status===200&&Array.isArray((S=x.data)==null?void 0:S.hits)){const k=x.data.hits.map(P=>P.document);if(y){const P=new Set(e.value.map(E=>E.id));e.value.push(...k.filter(E=>!P.has(E.id))),r.value=w}else e.value=k,r.value=1;i.value=k.length>=a.value}else y||(e.value=[]),i.value=!1}catch{nt.error("Erreur lors du chargement des patients"),y||(e.value=[]),i.value=!1}finally{t.value=!1,n.value=!1}}}async function d(){await c({refresh:!0})}function f(g){e.value.some(v=>v.id===g.id)||e.value.unshift(g)}function h(g){const v=e.value.findIndex(y=>y.id===g.id);v!==-1&&(e.value[v]=g)}function m(g){e.value=e.value.filter(v=>v.id!==g)}return{patients:e,isLoading:t,isLoadingMore:n,hasMore:i,currentPage:r,perPage:a,lastSearch:o,lastFilters:s,groupedPatients:l,getPatientById:u,fetchPatients:c,refreshPatients:d,addPatient:f,updatePatient:h,removePatient:m}});function ik(e){const t=Math.floor(e/60),n=e%60,i=t===0?"":`${t} h`,r=n===0?"":`${n} min`;return`${i} ${r}`}function Cz(e){return e.charAt(0).toUpperCase()+e.slice(1)}const F_e=vn(),V_e=Pi("dialogAvisConsultationStore",()=>{const e=z([]),t=z(!1),n=async()=>{if(!(!Un().isLogged||t.value))try{t.value=!0;const a=await F_e.get("/opinion/opinion");if(a.status!=200)throw Error(JSON.stringify(a.data));e.value=a.data.map(o=>({id:o.id,appointmentReason:o.appointmentReason,practitionerName:o.practitionerName,date:Cz($e(o.date).format("ddd D MMM")),duration:ik(""+o.duration),price:""+o.price+" €",time:$e(o.date).format("HH:mm").replace(":","h"),note:o.comment,photo:o.practitionerPicture})),0<e.value.length?Hn.emit("open-dialog-avis-consultation"):Hn.emit("close-dialog-avis-consultation")}catch(a){console.error(a)}finally{t.value=!1}};async function i(){await n(),setInterval(n,5*60*1e3)}return{fetchConsultations:n,consultations:e,startLoop:i}}),B_e=vn(),z_e=Pi("dialogYourAbsenceStore",()=>{const e=z([]),t=z(""),n=z(!1),i=async()=>{const a=Un();if(!(!a.isLogged||n.value)){t.value=a.user.profilType;try{n.value=!0;const o=await B_e.get("/opinion/absence");if(o.status!=200)throw Error(JSON.stringify(o.data));e.value=o.data.map(s=>({id:s.id,appointmentReason:s.appointmentReason,customerName:s.customerName,date:Cz($e(s.date).format("ddd D MMM")),duration:ik(""+s.duration),price:""+s.price+" €",time:$e(s.date).format("HH:mm").replace(":","h"),note:s.comment,photo:s.customerPicture,practitionerName:s.practitionerName})),0<e.value.length?Hn.emit("open-dialog-your-absence"):Hn.emit("close-dialog-your-absence")}catch(o){console.error(o)}finally{n.value=!1}}};async function r(){await i(),setInterval(i,5*60*1e3)}return{fetchConsultations:i,consultations:e,userType:t,startLoop:r}}),j_e=vn(),U_e=async()=>{const e=await j_e.get("/account/price");return{status:e.status,data:e.data}},rk=Pi("usertva",()=>{const e=z();z(25);const t=z(!1);return{getUserTva:async()=>{if(t.value)return!1;t.value=!0;try{const r=await U_e();if(r.status!==200)throw Error(JSON.stringify(r));e.value={...r.data}}catch{}finally{t.value=!1}},countryTva:e,applyTva:(r,a,o=25,s=!0)=>{const l=r*a/100,u=r+l;if(s){const c=u-u*o/100;return Math.round(c*100)/100}else return Math.round(u*100)/100},loadTva:t}}),H_e=vn(),ly=Pi("dashboard-status",()=>{const e=z({myAccount:!1,myAddresses:!1,myProfils:!1,mySubscription:!1,myTimeslots:!1}),t=z(!1);return{fetchDashboardStatus:async()=>{if(t.value)return!1;t.value=!0;try{const{data:i}=await H_e.get("/account/dashboard-status");e.value={...i}}catch{}finally{t.value=!1}},receivedStatus:e,loadStatus:t}}),q_e="/assets/HandPalm-d5681718.svg",Vh="/assets/GoogleChromeLogo-002a5ae3.svg",tS="/assets/standard-7693eeae.svg",nS="/assets/cabinet-5eb84b24.svg",Y_e="/assets/Handshake-ba58304b.svg",uv=[{title:"Profils",sub_features:[{title:"Vos profils (jusqu’à X3 profils)",availlable:!0,isSoon:!1},{title:"Gestion de votre Patientèle",availlable:!0,isSoon:!1},{title:"Gestion de votre agenda",availlable:!0,isSoon:!1},{title:"Optimisation de votre référencement",availlable:!0,isSoon:!1},{title:"Accompagnement juridique",availlable:!0,isSoon:!1},{title:"Intégration à la communauté Holitime",availlable:!0,isSoon:!1}]},{title:"Coordonnées",sub_features:[{title:"Adresses de vos prestation (x3)",availlable:!0,isSoon:!1},{title:"Numéro de téléphones",availlable:!0,isSoon:!1},{title:"Adresse email",availlable:!0,isSoon:!1},{title:"Site internet personnel",availlable:!0,isSoon:!1}]},{title:"Agenda",sub_features:[{title:"Configurer vos créneaux de disponibilité",availlable:!0,isSoon:!1},{title:"Gérer vos rendez-vous",availlable:!0,isSoon:!1},{title:"Rappel, notification par mail",availlable:!0,isSoon:!1},{title:"Rappel, notification par SMS",availlable:!0,isSoon:!1},{title:"Synchronisation de vos agendas",availlable:!0,isSoon:!1}]},{title:"Référencement",sub_features:[{title:"Apparaître dans les résultats de recherche du site par discipline",availlable:!0,isSoon:!1},{title:"Optimisation du référencement dans les moteurs de recherche",availlable:!0,isSoon:!1}]},{title:"Accompagnement juridique",sub_features:[{title:"Accès aux ressources juridiques",availlable:!0,isSoon:!1},{title:"Réponses aux question juridiques",availlable:!0,isSoon:!1}]},{title:"Réseaux",sub_features:[{title:"Evaluation par les patients",availlable:!0,isSoon:!1},{title:"Recommandation entre Praticiens",availlable:!1,isSoon:!0}]}],fYe={monthly:[{id:"monthly",title:"Référencement Holitime",icon:tS,description:'<div class="text-center">Offre de lancement valable pour les <span class="text-accent">6 premiers mois</span></div>',price:37.5,old_price:50,discount:25,subTitle1:{title:"Application web",icon:Vh},subTitle2:{title:"Sans engagement",icon:q_e},features:uv,bgIconColor:"bg-secondary",bgDesc:"#004838",message:"facturé mensuellement.",finalPrice:45},{id:"cabinet",title:"Référencement Cabinet",description:"Offre bientôt disponible",icon:nS,price:37.5,discount:0,subTitle1:{title:"À partir de 03 praticiens"},subTitle2:{title:"Application web",icon:Vh},features:[],bgIconColor:"bg-blue",bgDesc:"#002A61"}],annual:[{id:"annual",title:"Référencement Holitime",icon:tS,description:'<div>Offre de lancement valable pour les <span class="text-accent">6 premiers mois</span></div>',price:300,old_price:600,discount:50,subTitle1:{title:"Application web",icon:Vh},subTitle2:{title:"Engagement d’un an",icon:Y_e},features:uv,bgIconColor:"bg-secondary",bgDesc:"#004838",message:"facturé annuellement.",finalPrice:300},{id:"cabinet",title:"Référencement Cabinet",icon:nS,description:"Offre bientôt disponible",subTitle1:{title:"À partir de 03 praticiens"},subTitle2:{title:"Application web",icon:Vh},price:37.5,discount:25,features:uv,bgIconColor:"bg-blue",bgDesc:"#002A61"}],lifetime:[{id:"lifetime",title:"Référencement Holitime",icon:tS,description:'<div><span class="text-accent">Offre à durée limitée</span><br>Plus que quelques places disponibles</div>',price:1e3,old_price:1e3,subTitle1:{title:"Application web",icon:Vh},discount:0,features:uv,bgIconColor:"bg-secondary",bgDesc:"#004838",message:"facturé en une seule fois.",finalPrice:1e3},{id:"cabinet",title:"Référencement Cabinet",description:"Offre bientôt disponible",icon:nS,price:1e3,old_price:1e3,discount:0,subTitle1:{title:"À partir de 03 praticiens"},subTitle2:{title:"Application web",icon:Vh},features:uv,bgIconColor:"bg-blue",bgDesc:"#002A61"}]},{t:Ls}=_s.global,aa=vn(),W_e=z(!1),G_e=z(!1),Kr=Pi("subscription",()=>{const e=z({}),t=z(!1),n=z(!1),i=z(),r=z(),a=Un(),o=rk(),s=z(!1),l=z(!1),u=z(!1),c=z(),d=z(),f=z(!1),h=z(!1),m=z([]),g=z(0),v=z(!1),y=z(!1),_=z(!1),S=ly(),w=z(!1),x=z(!1),k=z(null),P=z(!1),E=z(!1),A=z([]),D=z(!1),T=z({}),O=z(!1),N=z(!1),V=z([]),j=z();k.value=a.user.subscriptionEnd;const q=async()=>{if(l.value)return!1;l.value=!0;try{V.value=Object.values(a.user.addons).map(at=>{var dt;return{id:at.id,billing:at.billing??"monthly",lifeAlreadyPaid:!!((dt=at.billing)!=null&&dt.includes("life"))}})}catch{}try{const at=await aa.get("/subscription/status");e.value=at.data,at.data.secondaryStatus=="active_but_cancellation_planned"&&(k.value=at.data.subscriptionEndDate),e.value&&e.value.type==="life"&&(_.value=!0)}catch{nt.error("")}finally{l.value=!1}},ne=()=>{t.value=!t.value},ae=()=>{n.value=!n.value},Y=async()=>{if(f.value)return!1;f.value=!0;try{const at=await aa.get("/payment/payment-method");i.value=at.data}catch{}finally{f.value=!1}},M=at=>{i.value=at},I=async at=>{if(!at)return!1;try{return{status:!0,clientSecret:(await aa.put("/payment/create-payment-method",{paymentMethodId:at})).data.clientSecret}}catch(dt){return{status:!1,error:dt.response.data.message}}},W=async at=>{try{await aa.post("payment/delete-payment-method",{paymentMethodId:at}),await Y()}catch{}},te=async()=>{if(!u.value){u.value=!0;try{const at=await aa.get("/account/informations");r.value=at.data}catch{}finally{u.value=!1}}},he=async at=>{var dt,ft,Kt;r.value={...at};try{const St={countryCompany:r.value.countryCompany,tvaNumberCompany:r.value.tvaNumberCompany,addressCompany:r.value.addressCompany,postalCodeCompany:r.value.postalCodeCompany,cityCompany:r.value.cityCompany};return await aa.post("/account/billing-informations",St),await te(),await o.getUserTva(),!0}catch(St){return((dt=St.response)==null?void 0:dt.status)===422?nt.error(Ls(`${(Kt=(ft=St.response)==null?void 0:ft.data)==null?void 0:Kt.message}`)):nt.error(Ls("update_info_error")),!1}},oe=async()=>{await te(),await o.getUserTva()},U=async at=>at?(await aa.get(`/utils/tva?country=${at}`,{headers:{"Content-Type":"application/json"}})).data:0,ee=async()=>{var at;if(s.value)return!1;s.value=!0;try{const{data:dt}=await aa.post("/account/active");return a.refreshToken(),await q(),await Te(),dt&&dt.status?dt:!1}catch(dt){return((at=dt.response)==null?void 0:at.status)===422?nt.error(Ls("error_occured")):nt.error(Ls("dashboard.home.status.error")),!1}finally{s.value=!1,await S.fetchDashboardStatus()}},re=async at=>{var dt,ft,Kt;try{return await aa.post("account/confirm-activation-submission",at),{status:!0}}catch(St){if(St!=null&&St.response){if((ft=(dt=St==null?void 0:St.response)==null?void 0:dt.data)!=null&&ft.message){let Mt=St.response.data.message;((Kt=St.response)==null?void 0:Kt.status)==422&&nt.error(Mt)}}else nt.error(Ls("error_occured"));return{status:!1}}},ue=(at,dt)=>{at={...at,tva_percent:dt},c.value=at},pe=(at,dt)=>{at={...at,tva_percent:dt},d.value=at},ge=at=>(c.value={...c.value,finalPrice:at},!0),Te=async(at=1,dt=10)=>{if(h.value)return!1;const ft=(at-1)*dt;try{const Kt=await aa.get(`/payment/payments?limit=${dt}&offset=${ft}`);m.value=Kt.data.payments,g.value=Kt.data.count;let St=0;if(e.value&&e.value.type==="life")for(;St<m.value.length;){if(m.value[St].status==="succeeded"){_.value=!0;break}St++}e.value&&e.value.type==="life"&&e.value.monthsAlreadyPaid===40&&(_.value=!0)}catch{nt.error("")}finally{h.value=!1}},Z=B(()=>{let at=0,dt=!1;for(;at<m.value.length;){if(m.value[at].status==="succeeded"){dt=!0;break}at++}return dt}),X=()=>{v.value=!v.value},ye=()=>{w.value=!w.value},Se=async at=>{var dt;if(j.value=null,y.value)return!1;try{y.value=!0;const{data:ft}=await aa.post("subscription/change-plan",at);return ft&&ft.status?ft:!1}catch(ft){let Kt=ft.response.data.message;return((dt=ft.response)==null?void 0:dt.status)==422?(nt.error(Kt),j.value=Kt):(nt.error(Ls("dashboard.home.status.error")),j.value=Ls("dashboard.home.status.error")),!1}finally{y.value=!1,S.fetchDashboardStatus(),Y()}},Ee=async at=>{var dt,ft,Kt,St;try{const{data:Mt}=await aa.post("subscription/finalize-changes",at);return Mt}catch(Mt){if(Mt!=null&&Mt.response){if((ft=(dt=Mt==null?void 0:Mt.response)==null?void 0:dt.data)!=null&&ft.message){let sn=Mt.response.data.message;((Kt=Mt.response)==null?void 0:Kt.status)==422&&nt.error(sn)}}else nt.error(Ls("error_occured"));return(St=Mt==null?void 0:Mt.response)==null?void 0:St.data}},_e=async at=>{var dt,ft,Kt,St;try{const{data:Mt}=await aa.post("subscription/confirm-active-plan",at);return console.log(Mt),Mt}catch(Mt){if(Mt!=null&&Mt.response){if((ft=(dt=Mt==null?void 0:Mt.response)==null?void 0:dt.data)!=null&&ft.message){let sn=Mt.response.data.message;((Kt=Mt.response)==null?void 0:Kt.status)==422&&nt.error(sn)}}else nt.error(Ls("error_occured"));return(St=Mt==null?void 0:Mt.response)==null?void 0:St.data}},be=B(()=>{const at=$e(),ft=$e(e.value&&e.value.trial).diff(at,"day");return ft>=0?ft:0}),ie=B(()=>{const at=$e(e.value.trial),ft=$e().diff(at,"day");return ft>=0&&ft<14}),se=B(()=>{const at=$e(),ft=$e(e.value&&e.value.subscriptionEndDate).diff(at,"day");return ft>0?ft:0}),de=B(()=>e.value.discountPercentage>0),xe=()=>{if(e.value&&e.value.type)return e.value.type=="annually"?"annual":e.value.type=="life"?"lifetime":e.value.type},Re=B(()=>{let at=null,dt=0,ft=c.value.tva_percent;return de.value&&(dt=e.value.discountPercentage),at=o.applyTva(c.value.old_price,ft,dt),at}),Pe=B(()=>{let at="",dt=c.value.tva_percent;const ft=Re.value;return c.value.id=="lifetime"?at=`TVA = ${dt}% soit ${ft}€ TTC facturé en une seule fois.`:at=`TVA = ${dt}% soit ${ft}€ TTC facturé ${c.value.id==="annual"?"annuellement":"mensuellement"}.`,at}),we=B(()=>e.value.actualPrice),Ae=async at=>{var dt;if(x.value)return!1;x.value=!0;try{const ft=await aa.post("/account/active-now",{billing:at});return a.refreshToken(),await Te(),ft&&ft.data?ft:!1}catch(ft){let Kt=ft.response.data.message;return((dt=ft.response)==null?void 0:dt.status)==422?nt.error(Kt):nt.error(Ls("dashboard.home.status.error")),!1}finally{x.value=!1,S.fetchDashboardStatus()}},Ie=()=>{P.value=!P.value},Ye=async at=>{if(!E.value){E.value=!0;try{await aa.post("/subscription/cancel",{raison:at}),a.refreshToken(),await q(),await Te(),nt.success(Ls("cancel_with_success")),Ie()}catch{nt.error("")}finally{E.value=!1}}},rt=async()=>{if(!O.value){O.value=!0;try{const{data:at}=await aa.get("/discount-code/");A.value=at}catch(at){console.error("Erreur lors de la récupération des codes de réduction :",at)}finally{O.value=!1}}},Ot=B(()=>{var Mt,sn;const at=parseInt((Mt=i.value)==null?void 0:Mt.expiryYear),dt=parseInt((sn=i.value)==null?void 0:sn.expiryMonth),ft=$e(),Kt=parseInt(ft.format("YYYY")),St=parseInt(ft.format("MM"));return at<Kt||at===Kt&&dt<St}),$n=B(()=>new Date>=new Date("2024-12-31T00:00:00"));return{fetchSubscriptionStatus:q,subscriptionStatus:e,displayModal:t,toggleModal:ne,fetchCardInfo:Y,cardData:i,updateUserCard:I,updateCardLocally:M,fetchInformation:te,userInformation:r,updateInformation:he,tvaByCountry:U,activeAccount:ee,activationLoad:s,togglePreModal:ae,displayPresubModal:n,planChoise:c,asignPlanChoise:ue,finalPrice:ge,deletePaymentMethod:W,loadSubscription:l,loadInformation:u,loadCard:f,fetchInfoData:oe,paymentListLoading:h,paymentTotalItems:g,paymentList:m,fetchPayments:Te,changeSubscription:v,toggleSubscription:X,changeSubscriptionPlan:Se,changing_plan:y,alreadyPay:_,trialRemainingDays:be,hasDiscount:de,getSubscriptionType:xe,subscriptionMessage:Pe,nextBillAmount:we,startSubscription:w,toggleStartSubscription:ye,startSubscriptionLoading:x,startMySubscription:Ae,toggleCancelSubscription:Ie,cancelSubscription:P,cancelTrialSubscription:Ye,subscriptionEnd:k,remainingDaysAfterCanceled:se,isCardExpired:Ot,getFinalPrice:Re,alreadyMakePayment:Z,isLifetimeSubscriptionUnavailable:$n,resetSubscriptionStatusAfterLogout:()=>{e.value=void 0},fetchDiscountCodes:rt,discountLoading:O,discountCodes:A,isChangingPlan:N,changingPlanChoice:pe,changingPlan:d,currentChangingPlan:T,confirmSubscription:_e,confirmActivation:re,displayBillingModal:W_e,displayCodeModal:G_e,savePractitionerSubscriptionStep:async at=>{if(!D.value)try{return D.value=!0,await aa.post("/register/practician/steps",at),!0}catch{nt.error("")}finally{D.value=!1}},savingCurrentStep:D,trialExpiredOver2Weeks:ie,selectedAddons:V,finalizeChanges:Ee,paymentErrors:j}}),cv=vn(),ud=Pi("onboarding",()=>{const e=z(null),t=z(),n=z(""),i=z(!1),r=z(!1),a=z(!1),o=z(!1),s=z(!0),l=Un(),u=z(!1);z(!1);const c=Ss("continue-later",!1),d=z(!1);return{step:e,hasOnboarding:t,message:n,nextLoading:i,prevLoading:r,loading:a,onboardingAlert:o,visible:s,currentStep:async()=>{if(!(a.value||l.user.isActive||l.user.profilType==="patient"||l.user.isSignUpIncomplete))try{a.value=!0;const{data:y}=await cv.get("/api/onboarding/current-step");e.value=y.step,t.value=y.hasOnboarding,n.value=y.message}catch{nt.error("")}finally{a.value=!1,u.value=!1}},nextStep:async()=>{if(!(i.value||r.value))try{u.value=!0,i.value=!0;const{data:y}=await cv.post("/api/onboarding/next-step");return s.value=!1,e.value.targetHtmlElement!=="submit-account-validation-button"&&setTimeout(()=>s.value=!0,300),e.value=y.step,t.value=y.hasOnboarding,n.value=y.message,!0}catch{nt.error("")}finally{i.value=!1}},previousStep:async()=>{if(!(r.value||i.value))try{u.value=!0,r.value=!0;const{data:y}=await cv.post("/api/onboarding/previous-step");e.value=y.step,t.value=y.hasOnboarding,n.value=y.message,s.value=!1,setTimeout(()=>s.value=!0,300)}catch{nt.error("")}finally{r.value=!1}},resetOnboarding:async()=>{if(!a.value)try{a.value=!0;const{data:y}=await cv.post("/api/onboarding/reset");return e.value=y.step,t.value=y.hasOnboarding,n.value=y.message,!0}catch{nt.error("")}finally{a.value=!1}},toggleOnboarding:async y=>{if(!a.value)try{a.value=!0;const{data:_}=await cv.put(`/api/onboarding/toggle-visibility?isHidden=${y}`);return e.value=_.step,t.value=_.hasOnboarding,n.value=_.message,y||(s.value=!0),!0}catch{nt.error("")}finally{a.value=!1,o.value=!1}},continueLater:c,manualProccess:u,leave:d}}),Go=vn(),hYe=async()=>{const e=await Go.get("/account/informations");return{status:e.status,data:e.data}},pYe=async e=>{const t=await Go.put("/account/informations",e);return{status:t.status,data:t.data}},mYe=async e=>{const t=await Go.put("/account/appointment-user-informations",e);return{status:t.status,data:t.data}},a4=async()=>{try{const e=await Go.get("/address/",{headers:{"Content-Type":"application/json"}});return{status:e.status,data:e.data}}catch{}},K_e=async e=>{try{const{id:t,...n}=e,i=await Go.put(`/address/${e.id}`,n,{headers:{"Content-Type":"application/json"}});return{status:i.status,data:i.data}}catch(t){return{status:t.status,data:t.response.data}}},Z_e=async e=>{try{const t=await Go.post("/address/",e,{headers:{"Content-Type":"application/json"}});return{status:t.status,data:t.data}}catch(t){return{status:t.status,data:t.response.data}}},X_e=async e=>{const t=await Go.delete("/address/"+e,{headers:{"Content-Type":"application/json"}});return{status:t.status,data:t.data}},J_e=async e=>{const t=await Go.get("/address/"+e+"/has-patient",{headers:{"Content-Type":"application/json"}});return{status:t.status,data:t.data}},vYe=async e=>{try{const t=await Go.put("/account/security",e);return{status:t.status,data:t.data}}catch(t){return{status:t.status,data:t.response.data}}},gYe=async()=>await Go.delete("/account/remove-avatar"),yYe=async e=>await Go.put("/account/update-avatar",e),Ez=async e=>{let t="/country";return e!==void 0&&(t+=`?business=${e}`),(await Go.get(t,{headers:{"Content-Type":"application/json"}})).data},_Ye=async e=>{if(!e)return 0;const{data:t}=await Go.get(`/utils/tva?country=${e}`,{headers:{"Content-Type":"application/json"}});return t};vn();var Nu=(e=>(e.HIDDEN="hidden",e.ADD="add",e.EDIT="edit",e))(Nu||{});const hl=Pi("address",()=>{const e=z([]),t=Ss("cached-addresses",[]),n=z(!1),i=z(0),r=z(!1),a=z("hidden"),o=async()=>{if(t.value.length)try{e.value=t.value.map(c=>({...c,formattedAddress:If(c,!0)}))}catch(c){console.error("Failed to parse cached address data:",c)}else await s()},s=async()=>{try{const c=await a4();if(c.status!==200)throw Error(JSON.stringify(c.data));e.value=c.data.map(d=>({...d,formattedAddress:If(d,!0)})),t.value=e.value}catch(c){console.error("Failed to fetch addresses:",c)}};return{addresses:e,initAddresses:async()=>{try{await o(),r.value||await s()}catch(c){console.error("Failed to initialize addresses:",c)}},refreshAddresses:async()=>{try{const c=await a4();if(c.status!==200)throw Error(JSON.stringify(c.data));e.value=c.data.map(d=>({...d,formattedAddress:If(d,!0)})),r.value=!0,t.value=e.value}catch{}},totalAddr:i,displayAddrForm:n,formMode:a,cachedAddress:t}});var uy,ai,xz,kz,rf,kA,Tz,o4,ak,s4,l4,Pz,v1={},$z=[],Q_e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Dw=Array.isArray;function Gu(e,t){for(var n in t)e[n]=t[n];return e}function Az(e){var t=e.parentNode;t&&t.removeChild(e)}function ce(e,t,n){var i,r,a,o={};for(a in t)a=="key"?i=t[a]:a=="ref"?r=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?uy.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Sg(e,o,i,r,null)}function Sg(e,t,n,i,r){var a={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++xz,__i:-1,__u:0};return r==null&&ai.vnode!=null&&ai.vnode(a),a}function ebe(){return{current:null}}function nr(e){return e.children}function ms(e,t){this.props=e,this.context=t}function Jf(e,t){if(t==null)return e.__?Jf(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Jf(e):null}function Oz(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Oz(e)}}function u4(e){(!e.__d&&(e.__d=!0)&&rf.push(e)&&!Sb.__r++||kA!==ai.debounceRendering)&&((kA=ai.debounceRendering)||Tz)(Sb)}function Sb(){var e,t,n,i,r,a,o,s;for(rf.sort(o4);e=rf.shift();)e.__d&&(t=rf.length,i=void 0,a=(r=(n=e).__v).__e,o=[],s=[],n.__P&&((i=Gu({},r)).__v=r.__v+1,ai.vnode&&ai.vnode(i),ok(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[a]:null,o,a??Jf(r),!!(32&r.__u),s),i.__v=r.__v,i.__.__k[i.__i]=i,Nz(o,i,s),i.__e!=a&&Oz(i)),rf.length>t&&rf.sort(o4));Sb.__r=0}function Dz(e,t,n,i,r,a,o,s,l,u,c){var d,f,h,m,g,v=i&&i.__k||$z,y=t.length;for(n.__d=l,tbe(n,t,v),l=n.__d,d=0;d<y;d++)(h=n.__k[d])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?v1:v[h.__i]||v1,h.__i=d,ok(e,h,f,r,a,o,s,l,u,c),m=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&sk(f.ref,null,h),c.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),65536&h.__u||f.__k===h.__k?(l&&!l.isConnected&&(l=Jf(f)),l=Iz(h,l,e)):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function tbe(e,t,n){var i,r,a,o,s,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],i=0;i<l;i++)o=i+d,(r=e.__k[i]=(r=t[i])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?Sg(null,r,null,null,null):Dw(r)?Sg(nr,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?Sg(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,s=nbe(r,n,o,c),r.__i=s,a=null,s!==-1&&(c--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof r.type!="function"&&(r.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>l-o?d+=s-o:d--:s<o?s==o-1&&(d=s-o):d=0,s!==i+d&&(r.__u|=65536))):(a=n[o])&&a.key==null&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Jf(a)),c4(a,a,!1),n[o]=null,c--);if(c)for(i=0;i<u;i++)(a=n[i])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Jf(a)),c4(a,a))}function Iz(e,t,n){var i,r;if(typeof e.type=="function"){for(i=e.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=e,t=Iz(i[r],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Rc(e,t){return t=t||[],e==null||typeof e=="boolean"||(Dw(e)?e.some(function(n){Rc(n,t)}):t.push(e)),t}function nbe(e,t,n,i){var r=e.key,a=e.type,o=n-1,s=n+1,l=t[n];if(l===null||l&&r==l.key&&a===l.type&&!(131072&l.__u))return n;if(i>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&r==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&r==l.key&&a===l.type)return s;s++}}return-1}function TA(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Q_e.test(t)?n:n+"px"}function h0(e,t,n,i,r){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||TA(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||TA(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?i?n.u=i.u:(n.u=ak,e.addEventListener(t,a?l4:s4,a)):e.removeEventListener(t,a?l4:s4,a);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function PA(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ak++;else if(t.t<n.u)return;return n(ai.event?ai.event(t):t)}}}function ok(e,t,n,i,r,a,o,s,l,u){var c,d,f,h,m,g,v,y,_,S,w,x,k,P,E,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(c=ai.__b)&&c(t);e:if(typeof A=="function")try{if(y=t.props,_=(c=A.contextType)&&i[c.__c],S=c?_?_.props.value:c.__:i,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(y,S):(t.__c=d=new ms(y,S),d.constructor=A,d.render=rbe),_&&_.sub(d),d.props=y,d.state||(d.state={}),d.context=S,d.__n=i,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),A.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Gu({},d.__s)),Gu(d.__s,A.getDerivedStateFromProps(y,d.__s))),h=d.props,m=d.state,d.__v=t,f)A.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(A.getDerivedStateFromProps==null&&y!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,S),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(D){D&&(D.__=t)}),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,S),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,g)})}if(d.context=S,d.props=y,d.__P=e,d.__e=!1,x=ai.__r,k=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[]}else do d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,d.getChildContext!=null&&(i=Gu(Gu({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(h,m)),Dz(e,Dw(E=c!=null&&c.type===nr&&c.key==null?c.props.children:c)?E:[E],t,n,i,r,a,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(D){t.__v=null,l||a!=null?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),ai.__e(D,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ibe(n.__e,t,n,i,r,a,o,l,u);(c=ai.diffed)&&c(t)}function Nz(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)sk(n[i],n[++i],n[++i]);ai.__c&&ai.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(a){a.call(r)})}catch(a){ai.__e(a,r.__v)}})}function ibe(e,t,n,i,r,a,o,s,l){var u,c,d,f,h,m,g,v=n.props,y=t.props,_=t.type;if(_==="svg"?r="http://www.w3.org/2000/svg":_==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!_&&(_?h.localName===_:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(_===null)return document.createTextNode(y);e=document.createElementNS(r,_,y.is&&y),a=null,s=!1}if(_===null)v===y||s&&e.data===y||(e.data=y);else{if(a=a&&uy.call(e.childNodes),v=n.props||v1,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)if(h=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=h;else if(u!=="key"&&!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;h0(e,u,null,h,r)}}for(u in y)h=y[u],u=="children"?f=h:u=="dangerouslySetInnerHTML"?c=h:u=="value"?m=h:u=="checked"?g=h:u==="key"||s&&typeof h!="function"||v[u]===h||h0(e,u,h,v[u],r);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),Dz(e,Dw(f)?f:[f],t,n,i,_==="foreignObject"?"http://www.w3.org/1999/xhtml":r,a,o,a?a[0]:n.__k&&Jf(n,0),s,l),a!=null)for(u=a.length;u--;)a[u]!=null&&Az(a[u]);s||(u="value",m!==void 0&&(m!==e[u]||_==="progress"&&!m||_==="option"&&m!==v[u])&&h0(e,u,m,v[u],r),u="checked",g!==void 0&&g!==e[u]&&h0(e,u,g,v[u],r))}return e}function sk(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(i){ai.__e(i,n)}}function c4(e,t,n){var i,r;if(ai.unmount&&ai.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||sk(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){ai.__e(a,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&c4(i[r],t,n||typeof e.type!="function");n||e.__e==null||Az(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function rbe(e,t,n){return this.constructor(e,n)}function Cb(e,t,n){var i,r,a,o;ai.__&&ai.__(e,t),r=(i=typeof n=="function")?null:n&&n.__k||t.__k,a=[],o=[],ok(t,e=(!i&&n||t).__k=ce(nr,null,[e]),r||v1,v1,t.namespaceURI,!i&&n?[n]:r?null:t.firstChild?uy.call(t.childNodes):null,a,!i&&n?n:r?r.__e:t.firstChild,i,o),Nz(a,e,o)}function Mz(e,t,n){var i,r,a,o,s=Gu({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)a=="key"?i=t[a]:a=="ref"?r=t[a]:s[a]=t[a]===void 0&&o!==void 0?o[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?uy.call(arguments,2):n),Sg(e.type,s,i||e.key,r||e.ref,null)}function abe(e,t){var n={__c:t="__cC"+Pz++,__:e,Consumer:function(i,r){return i.children(r)},Provider:function(i){var r,a;return this.getChildContext||(r=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&r.some(function(s){s.__e=!0,u4(s)})},this.sub=function(o){r.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r.splice(r.indexOf(o),1),s&&s.call(o)}}),i.children}};return n.Provider.__=n.Consumer.contextType=n}uy=$z.slice,ai={__e:function(e,t,n,i){for(var r,a,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((a=r.constructor)&&a.getDerivedStateFromError!=null&&(r.setState(a.getDerivedStateFromError(e)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,i||{}),o=r.__d),o)return r.__E=r}catch(s){e=s}throw e}},xz=0,kz=function(e){return e!=null&&e.constructor==null},ms.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gu({},this.state),typeof e=="function"&&(e=e(Gu({},n),this.props)),e&&Gu(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),u4(this))},ms.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),u4(this))},ms.prototype.render=nr,rf=[],Tz=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o4=function(e,t){return e.__v.__b-t.__v.__b},Sb.__r=0,ak=0,s4=PA(!1),l4=PA(!0),Pz=0;var obe=0;function He(e,t,n,i,r,a){t||(t={});var o,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?o=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--obe,__i:-1,__u:0,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)l[s]===void 0&&(l[s]=o[s]);return ai.vnode&&ai.vnode(u),u}var am,Di,iS,$A,g1=0,Lz=[],o_=[],pr=ai,AA=pr.__b,OA=pr.__r,DA=pr.diffed,IA=pr.__c,NA=pr.unmount,MA=pr.__;function Iw(e,t){pr.__h&&pr.__h(Di,e,g1||t),g1=0;var n=Di.__H||(Di.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:o_}),n.__[e]}function On(e){return g1=1,sbe(Fz,e)}function sbe(e,t,n){var i=Iw(am++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fz(void 0,t),function(s){var l=i.__N?i.__N[0]:i.__[0],u=i.t(l,s);l!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=Di,!Di.u)){var r=function(s,l,u){if(!i.__c.__H)return!0;var c=i.__c.__H.__.filter(function(f){return!!f.__c});if(c.every(function(f){return!f.__N}))return!a||a.call(this,s,l,u);var d=!1;return c.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(d=!0)}}),!(!d&&i.__c.props===s)&&(!a||a.call(this,s,l,u))};Di.u=!0;var a=Di.shouldComponentUpdate,o=Di.componentWillUpdate;Di.componentWillUpdate=function(s,l,u){if(this.__e){var c=a;a=void 0,r(s,l,u),a=c}o&&o.call(this,s,l,u)},Di.shouldComponentUpdate=r}return i.__N||i.__}function Ni(e,t){var n=Iw(am++,3);!pr.__s&&Rz(n.__H,t)&&(n.__=e,n.i=t,Di.__H.__h.push(n))}function s_(e){return g1=5,cy(function(){return{current:e}},[])}function cy(e,t){var n=Iw(am++,7);return Rz(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function lbe(e,t){return g1=8,cy(function(){return e},t)}function Sa(e){var t=Di.context[e.__c],n=Iw(am++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Di)),t.props.value):e.__}function ube(){for(var e;e=Lz.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(l_),e.__H.__h.forEach(d4),e.__H.__h=[]}catch(t){e.__H.__h=[],pr.__e(t,e.__v)}}pr.__b=function(e){Di=null,AA&&AA(e)},pr.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),MA&&MA(e,t)},pr.__r=function(e){OA&&OA(e),am=0;var t=(Di=e.__c).__H;t&&(iS===Di?(t.__h=[],Di.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=o_,n.__N=n.i=void 0})):(t.__h.forEach(l_),t.__h.forEach(d4),t.__h=[],am=0)),iS=Di},pr.diffed=function(e){DA&&DA(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lz.push(t)!==1&&$A===pr.requestAnimationFrame||(($A=pr.requestAnimationFrame)||cbe)(ube)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==o_&&(n.__=n.__V),n.i=void 0,n.__V=o_})),iS=Di=null},pr.__c=function(e,t){t.some(function(n){try{n.__h.forEach(l_),n.__h=n.__h.filter(function(i){return!i.__||d4(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],pr.__e(i,n.__v)}}),IA&&IA(e,t)},pr.unmount=function(e){NA&&NA(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{l_(i)}catch(r){t=r}}),n.__H=void 0,t&&pr.__e(t,n.__v))};var LA=typeof requestAnimationFrame=="function";function cbe(e){var t,n=function(){clearTimeout(i),LA&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);LA&&(t=requestAnimationFrame(n))}function l_(e){var t=Di,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Di=t}function d4(e){var t=Di;e.__c=e.__(),Di=t}function Rz(e,t){return!e||e.length!==t.length||t.some(function(n,i){return n!==e[i]})}function Fz(e,t){return typeof t=="function"?t(e):t}var dbe=Symbol.for("preact-signals");function Nw(){if(nd>1)nd--;else{for(var e,t=!1;Cg!==void 0;){var n=Cg;for(Cg=void 0,f4++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Bz(n))try{n.c()}catch(r){t||(e=r,t=!0)}n=i}}if(f4=0,nd--,t)throw e}}function fbe(e){if(nd>0)return e();nd++;try{return e()}finally{Nw()}}var ei=void 0,Cg=void 0,nd=0,f4=0,Eb=0;function Vz(e){if(ei!==void 0){var t=e.n;if(t===void 0||t.t!==ei)return t={i:0,S:e,p:ei.s,n:void 0,t:ei,e:void 0,x:void 0,r:t},ei.s!==void 0&&(ei.s.n=t),ei.s=t,e.n=t,32&ei.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ei.s,t.n=void 0,ei.s.n=t,ei.s=t),t}}function Ca(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ca.prototype.brand=dbe;Ca.prototype.h=function(){return!0};Ca.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Ca.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Ca.prototype.subscribe=function(e){var t=this;return sc(function(){var n=t.value,i=ei;ei=void 0;try{e(n)}finally{ei=i}})};Ca.prototype.valueOf=function(){return this.value};Ca.prototype.toString=function(){return this.value+""};Ca.prototype.toJSON=function(){return this.value};Ca.prototype.peek=function(){var e=ei;ei=void 0;try{return this.value}finally{ei=e}};Object.defineProperty(Ca.prototype,"value",{get:function(){var e=Vz(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(f4>100)throw new Error("Cycle detected");this.v=e,this.i++,Eb++,nd++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Nw()}}}});function mr(e){return new Ca(e)}function Bz(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function zz(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function jz(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Mm(e){Ca.call(this,void 0),this.x=e,this.s=void 0,this.g=Eb-1,this.f=4}(Mm.prototype=new Ca).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Eb))return!0;if(this.g=Eb,this.f|=1,this.i>0&&!Bz(this))return this.f&=-2,!0;var e=ei;try{zz(this),ei=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ei=e,jz(this),this.f&=-2,!0};Mm.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ca.prototype.S.call(this,e)};Mm.prototype.U=function(e){if(this.t!==void 0&&(Ca.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Mm.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Mm.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Vz(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Uz(e){return new Mm(e)}function Hz(e){var t=e.u;if(e.u=void 0,typeof t=="function"){nd++;var n=ei;ei=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,lk(e),i}finally{ei=n,Nw()}}}function lk(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Hz(e)}function hbe(e){if(ei!==this)throw new Error("Out-of-order effect");jz(this),ei=e,this.f&=-2,8&this.f&&lk(this),Nw()}function dy(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}dy.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};dy.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Hz(this),zz(this),nd++;var e=ei;return ei=this,hbe.bind(this,e)};dy.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cg,Cg=this)};dy.prototype.d=function(){this.f|=8,1&this.f||lk(this)};function sc(e){var t=new dy(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var rS;function Lm(e,t){ai[e]=t.bind(null,ai[e]||function(){})}function xb(e){rS&&rS(),rS=e&&e.S()}function qz(e){var t=this,n=e.data,i=mbe(n);i.value=n;var r=cy(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var o;!kz(r.peek())&&((o=t.base)==null?void 0:o.nodeType)===3?t.base.data=r.peek():(t.__$f|=1,t.setState({}))},Uz(function(){var o=i.value.value;return o===0?0:o===!0?"":o||""})},[]);return r.value}qz.displayName="_st";Object.defineProperties(Ca.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qz},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Lm("__b",function(e,t){if(typeof t.type=="string"){var n,i=t.props;for(var r in i)if(r!=="children"){var a=i[r];a instanceof Ca&&(n||(t.__np=n={}),n[r]=a,i[r]=a.peek())}}e(t)});Lm("__r",function(e,t){xb();var n,i=t.__c;i&&(i.__$f&=-2,(n=i.__$u)===void 0&&(i.__$u=n=function(r){var a;return sc(function(){a=this}),a.c=function(){i.__$f|=1,i.setState({})},a}())),xb(n),e(t)});Lm("__e",function(e,t,n,i){xb(),e(t,n,i)});Lm("diffed",function(e,t){xb();var n;if(typeof t.type=="string"&&(n=t.__e)){var i=t.__np,r=t.props;if(i){var a=n.U;if(a)for(var o in a){var s=a[o];s!==void 0&&!(o in i)&&(s.d(),a[o]=void 0)}else n.U=a={};for(var l in i){var u=a[l],c=i[l];u===void 0?(u=pbe(n,l,c,r),a[l]=u):u.o(c,r)}}}e(t)});function pbe(e,t,n,i){var r=t in e&&e.ownerSVGElement===void 0,a=mr(n);return{o:function(o,s){a.value=o,i=s},d:sc(function(){var o=a.value.value;i[t]!==o&&(i[t]=o,r?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Lm("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var i=n.U;if(i){n.U=void 0;for(var r in i){var a=i[r];a&&a.d()}}}}else{var o=t.__c;if(o){var s=o.__$u;s&&(o.__$u=void 0,s.d())}}e(t)});Lm("__h",function(e,t,n,i){(i<3||i===9)&&(t.__$f|=2),e(t,n,i)});ms.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in t)return!0;for(var r in e)if(r!=="__source"&&e[r]!==this.props[r])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function mbe(e){return cy(function(){return mr(e)},[])}function om(e){var t=s_(e);t.current=e,Ni(function(){return sc(function(){return t.current()})},[])}const or=abe({});var va;(function(e){e.Day="day",e.Week="week",e.MonthGrid="month-grid",e.MonthAgenda="month-agenda"})(va||(va={}));const RA={DATE_STRING:/^\d{4}-\d{2}-\d{2}$/,TIME_STRING:/^\d{2}:\d{2}$/,DATE_TIME_STRING:/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/};class vbe extends Error{constructor(t){super(`Invalid date time specification: ${t}`)}}const tr=e=>{if(!RA.DATE_TIME_STRING.test(e)&&!RA.DATE_STRING.test(e))throw new vbe(e);return new Date(Number(e.slice(0,4)),Number(e.slice(5,7))-1,Number(e.slice(8,10)),Number(e.slice(11,13)),Number(e.slice(14,16)))},ol=e=>{const t=e.slice(11,13),n=e.slice(14,16);return{year:Number(e.slice(0,4)),month:Number(e.slice(5,7))-1,date:Number(e.slice(8,10)),hours:t!==""?Number(t):void 0,minutes:n!==""?Number(n):void 0}},h4=e=>[e.config.locale,{month:"long"}],p4=e=>[e.config.locale,{year:"numeric"}],gbe=(e,t,n)=>{const i=tr(t).toLocaleString(...h4(e)),r=tr(t).toLocaleString(...p4(e)),a=tr(n).toLocaleString(...h4(e)),o=tr(n).toLocaleString(...p4(e));return i===a&&r===o?`${i} ${r}`:i!==a&&r===o?`${i} – ${a} ${r}`:`${i} ${r} – ${a} ${o}`},ybe=e=>{const t=tr(e.datePickerState.selectedDate.value).toLocaleString(...h4(e)),n=tr(e.datePickerState.selectedDate.value).toLocaleString(...p4(e));return`${t} ${n}`};function _be(){const e=Sa(or),[t,n]=On("");return Ni(()=>{e.calendarState.view.value===va.Week&&n(gbe(e,e.calendarState.range.value.start,e.calendarState.range.value.end)),(e.calendarState.view.value===va.MonthGrid||e.calendarState.view.value===va.Day||e.calendarState.view.value===va.MonthAgenda)&&n(ybe(e))},[e.calendarState.range.value]),He("span",{className:"sx__range-heading",children:t})}let bbe=class extends Error{constructor(t,n){super(`Number must be between ${t} and ${n}.`),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:n})}};const so=e=>{if(e<0||e>99)throw new bbe(0,99);return String(e).padStart(2,"0")},wa=e=>`${e.getFullYear()}-${so(e.getMonth()+1)}-${so(e.getDate())}`,wbe=e=>`${so(e.getHours())}:${so(e.getMinutes())}`,Mw=e=>`${wa(e)} ${wbe(e)}`;function Sbe(){const e=Sa(or);return He("button",{className:"sx__today-button sx__ripple",onClick:()=>{e.datePickerState.selectedDate.value=wa(new Date)},children:e.translate("Today")})}const m4=e=>e.key==="Enter"||e.key===" ",Cbe=()=>{const e=Sa(or),t=n=>{e.calendarState.setView(n,e.datePickerState.selectedDate.value)};return He("div",{className:"time-frame-buttons",children:[He("button",{className:`time-frame-button ${e.calendarState.view.value==="day"?"active":""}`,onClick:()=>t("day"),children:e.translate("Day")}),He("button",{className:`time-frame-button ${e.calendarState.view.value==="week"?"active":""}`,onClick:()=>t("week"),children:e.translate("Week")}),He("button",{className:`time-frame-button ${[va.MonthAgenda,va.MonthGrid].includes(e.calendarState.view.value)?"active":""}`,onClick:()=>t(e.calendarState.isCalendarSmall.value?"month-agenda":"month-grid"),children:e.translate("Month")})]})};function Ebe({toggleView:e=!0}){const t=Sa(or),[n,i]=On([]);Ni(()=>{t.calendarState.isCalendarSmall.value?i(t.config.views.filter(v=>v.hasSmallScreenCompat)):i(t.config.views.filter(v=>v.hasWideScreenCompat))},[t.calendarState.isCalendarSmall.value]);const[r,a]=On("");Ni(()=>{const v=t.config.views.find(y=>y.name===t.calendarState.view.value);v&&a(t.translate(v.label))},[t.calendarState.view.value]);const[o,s]=On(!1),l=v=>{const y=v.target;y instanceof HTMLElement&&!y.closest(".sx__view-selection")&&s(!1)};Ni(()=>(document.addEventListener("click",l),()=>document.removeEventListener("click",l)),[]);const u=v=>{s(!1),t.calendarState.setView(v,t.datePickerState.selectedDate.value)},[c,d]=On(),[f,h]=On(0),m=v=>{m4(v)&&s(!o),setTimeout(()=>{var y;const _=(y=t.elements.calendarWrapper)===null||y===void 0?void 0:y.querySelectorAll(".sx__view-selection-item");if(!_)return;d(_);const S=_[0];S instanceof HTMLElement&&(h(0),S.focus())},50)},g=(v,y)=>{if(c)if(v.key==="ArrowDown"){const _=c[f+1];_ instanceof HTMLElement&&(h(f+1),_.focus())}else if(v.key==="ArrowUp"){const _=c[f-1];_ instanceof HTMLElement&&(h(f-1),_.focus())}else m4(v)&&u(y)};return e?He(Cbe,{}):He("div",{className:"sx__view-selection",children:[He("div",{tabIndex:0,role:"button","aria-label":t.translate("Select View"),className:"sx__view-selection-selected-item sx__ripple",onClick:()=>s(!o),onKeyDown:m,children:r}),o&&He("ul",{"data-testid":"view-selection-items",className:"sx__view-selection-items",children:n.map(v=>He("li",{"aria-label":t.translate("Select View")+" "+t.translate(v.label),tabIndex:-1,role:"button",onKeyDown:y=>g(y,v.name),onClick:()=>u(v.name),className:"sx__view-selection-item"+(v.name===t.calendarState.view.value?" is-selected":""),children:t.translate(v.label)}))})]})}function FA({direction:e,onClick:t,buttonText:n,disabled:i=!1}){return He("button",{disabled:i,className:"sx__chevron-wrapper sx__ripple",onMouseUp:t,onKeyDown:a=>{m4(a)&&t()},tabIndex:0,children:He("i",{className:`sx__chevron sx__chevron--${e}`,children:n})})}const Jd=(e,t)=>{const{year:n,month:i,date:r}=ol(e);return new Date(n,i,r).toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})},Nf=Jd,p0=(e,t)=>{const{year:n,month:i,date:r,hours:a,minutes:o}=ol(e);return new Date(n,i,r,a,o).toLocaleTimeString(t,{hour:"numeric",minute:"numeric"})},Yz=(e,t,n="–")=>{const i={start:e.start,end:e.end};return e._isSingleDayFullDay?Jd(i.start,t):e._isMultiDayFullDay?`${Jd(i.start,t)} ${n} ${Jd(i.end,t)}`:e._isSingleDayTimed?`${Jd(i.start,t)} â‹… ${p0(i.start,t)} ${n} ${p0(i.end,t)}`:`${Jd(i.start,t)}, ${p0(i.start,t)} ${n} ${Jd(i.end,t)}, ${p0(i.end,t)}`},Kn=e=>e.slice(0,10),sm=e=>e.slice(11);function xbe(){const e=Sa(or),t=l=>{const u=e.config.views.find(c=>c.name===e.calendarState.view.value);u&&(e.datePickerState.selectedDate.value=u.backwardForwardFn(e.datePickerState.selectedDate.value,l==="forwards"?u.backwardForwardUnits:-u.backwardForwardUnits))},[n,i]=On("");om(()=>{i(`${Nf(e.calendarState.range.value.start,e.config.locale)} ${e.translate("to")} ${Nf(e.calendarState.range.value.end,e.config.locale)}`)});const[r,a]=On(""),[o,s]=On("");return Ni(()=>{const l=e.config.views.find(u=>u.name===e.calendarState.view.value);l&&(a(l.setDateRange({range:e.calendarState.range,calendarConfig:e.config,timeUnitsImpl:e.timeUnitsImpl,date:l.backwardForwardFn(e.datePickerState.selectedDate.value,-l.backwardForwardUnits)}).end),s(l.setDateRange({range:e.calendarState.range,calendarConfig:e.config,timeUnitsImpl:e.timeUnitsImpl,date:l.backwardForwardFn(e.datePickerState.selectedDate.value,l.backwardForwardUnits)}).start))},[e.datePickerState.selectedDate.value,e.calendarState.view.value]),He(nr,{children:He("div",{className:"sx__forward-backward-navigation","aria-label":n,"aria-live":"polite",children:[He(FA,{disabled:!!(e.config.minDate&&Kn(r)<e.config.minDate),onClick:()=>t("backwards"),direction:"previous",buttonText:e.translate("Previous period")}),He(FA,{disabled:!!(e.config.maxDate&&Kn(o)>e.config.maxDate),onClick:()=>t("forwards"),direction:"next",buttonText:e.translate("Next period")})]})})}var kbe="data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 18.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' %5b %3c!ENTITY ns_extend 'http://ns.adobe.com/Extensibility/1.0/'%3e %3c!ENTITY ns_ai 'http://ns.adobe.com/AdobeIllustrator/10.0/'%3e %3c!ENTITY ns_graphs 'http://ns.adobe.com/Graphs/1.0/'%3e %3c!ENTITY ns_vars 'http://ns.adobe.com/Variables/1.0/'%3e %3c!ENTITY ns_imrep 'http://ns.adobe.com/ImageReplacement/1.0/'%3e %3c!ENTITY ns_sfw 'http://ns.adobe.com/SaveForWeb/1.0/'%3e %3c!ENTITY ns_custom 'http://ns.adobe.com/GenericCustomNamespace/1.0/'%3e %3c!ENTITY ns_adobe_xpath 'http://ns.adobe.com/XPath/1.0/'%3e%5d%3e%3csvg version='1.1' id='Layer_1' xmlns:x='%26ns_extend%3b' xmlns:i='%26ns_ai%3b' xmlns:graph='%26ns_graphs%3b' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24px' height='24px' viewBox='0 0 24 24' enable-background='new 0 0 24 24' xml:space='preserve'%3e%3cmetadata%3e %3csfw xmlns='%26ns_sfw%3b'%3e %3cslices%3e%3c/slices%3e %3csliceSourceBounds width='505' height='984' bottomLeftOrigin='true' x='0' y='-120'%3e%3c/sliceSourceBounds%3e %3c/sfw%3e%3c/metadata%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M20%2c24H4c-2.2%2c0-4-1.8-4-4V4c0-2.2%2c1.8-4%2c4-4h16c2.2%2c0%2c4%2c1.8%2c4%2c4v16C24%2c22.2%2c22.2%2c24%2c20%2c24z M4%2c2C2.9%2c2%2c2%2c2.9%2c2%2c4v16 c0%2c1.1%2c0.9%2c2%2c2%2c2h16c1.1%2c0%2c2-0.9%2c2-2V4c0-1.1-0.9-2-2-2H4z'/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cpath d='M8%2c24c-0.6%2c0-1-0.4-1-1V1c0-0.6%2c0.4-1%2c1-1s1%2c0.4%2c1%2c1v22C9%2c23.6%2c8.6%2c24%2c8%2c24z'/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cpath d='M14%2c13c-0.3%2c0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1%2c0-1.4l3-3c0.4-0.4%2c1-0.4%2c1.4%2c0s0.4%2c1%2c0%2c1.4l-3%2c3C14.5%2c12.9%2c14.3%2c13%2c14%2c13z '/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cpath d='M17%2c16c-0.3%2c0-0.5-0.1-0.7-0.3l-3-3c-0.4-0.4-0.4-1%2c0-1.4s1-0.4%2c1.4%2c0l3%2c3c0.4%2c0.4%2c0.4%2c1%2c0%2c1.4C17.5%2c15.9%2c17.3%2c16%2c17%2c16z '/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3c/svg%3e",Tbe="data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 18.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' %5b %3c!ENTITY ns_extend 'http://ns.adobe.com/Extensibility/1.0/'%3e %3c!ENTITY ns_ai 'http://ns.adobe.com/AdobeIllustrator/10.0/'%3e %3c!ENTITY ns_graphs 'http://ns.adobe.com/Graphs/1.0/'%3e %3c!ENTITY ns_vars 'http://ns.adobe.com/Variables/1.0/'%3e %3c!ENTITY ns_imrep 'http://ns.adobe.com/ImageReplacement/1.0/'%3e %3c!ENTITY ns_sfw 'http://ns.adobe.com/SaveForWeb/1.0/'%3e %3c!ENTITY ns_custom 'http://ns.adobe.com/GenericCustomNamespace/1.0/'%3e %3c!ENTITY ns_adobe_xpath 'http://ns.adobe.com/XPath/1.0/'%3e%5d%3e%3csvg version='1.1' id='Layer_1' xmlns:x='%26ns_extend%3b' xmlns:i='%26ns_ai%3b' xmlns:graph='%26ns_graphs%3b' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24px' height='24px' viewBox='0 0 24 24' enable-background='new 0 0 24 24' xml:space='preserve'%3e%3cmetadata%3e %3csfw xmlns='%26ns_sfw%3b'%3e %3cslices%3e%3c/slices%3e %3csliceSourceBounds width='505' height='984' bottomLeftOrigin='true' x='0' y='-120'%3e%3c/sliceSourceBounds%3e %3c/sfw%3e%3c/metadata%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M20%2c24H4c-2.2%2c0-4-1.8-4-4V4c0-2.2%2c1.8-4%2c4-4h16c2.2%2c0%2c4%2c1.8%2c4%2c4v16C24%2c22.2%2c22.2%2c24%2c20%2c24z M4%2c2C2.9%2c2%2c2%2c2.9%2c2%2c4v16 c0%2c1.1%2c0.9%2c2%2c2%2c2h16c1.1%2c0%2c2-0.9%2c2-2V4c0-1.1-0.9-2-2-2H4z'/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cpath d='M8%2c24c-0.6%2c0-1-0.4-1-1V1c0-0.6%2c0.4-1%2c1-1s1%2c0.4%2c1%2c1v22C9%2c23.6%2c8.6%2c24%2c8%2c24z'/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cg%3e %3cpath d='M17%2c13c-0.3%2c0-0.5-0.1-0.7-0.3l-3-3c-0.4-0.4-0.4-1%2c0-1.4s1-0.4%2c1.4%2c0l3%2c3c0.4%2c0.4%2c0.4%2c1%2c0%2c1.4C17.5%2c12.9%2c17.3%2c13%2c17%2c13 z'/%3e %3c/g%3e %3c/g%3e %3cg%3e %3cg%3e %3cpath d='M14%2c16c-0.3%2c0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1%2c0-1.4l3-3c0.4-0.4%2c1-0.4%2c1.4%2c0s0.4%2c1%2c0%2c1.4l-3%2c3C14.5%2c15.9%2c14.3%2c16%2c14%2c16 z'/%3e %3c/g%3e %3c/g%3e %3c/g%3e%3c/g%3e%3c/svg%3e",Pbe="data:image/svg+xml,%3c%3fxml version='1.0' %3f%3e%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 4c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm2 2v12h14V6H3zm2-6h2v2H5V0zm8 0h2v2h-2V0zM5 9h2v2H5V9zm0 4h2v2H5v-2zm4-4h2v2H9V9zm0 4h2v2H9v-2zm4-4h2v2h-2V9zm0 4h2v2h-2v-2z'/%3e%3c/svg%3e";function Wz({strokeColor:e}){return He(nr,{children:He("svg",{className:"sx__event-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[He("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),He("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),He("g",{id:"SVGRepo_iconCarrier",children:[He("path",{d:"M12 8V12L15 15",stroke:e,"stroke-width":"2","stroke-linecap":"round"}),He("circle",{cx:"12",cy:"12",r:"9",stroke:e,"stroke-width":"2"})]})]})})}function $be({strokeColor:e}){return He(nr,{children:He("svg",{className:"sx__event-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[He("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),He("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),He("g",{id:"SVGRepo_iconCarrier",children:[He("path",{d:"M15 7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7C9 5.34315 10.3431 4 12 4C13.6569 4 15 5.34315 15 7Z",stroke:e,"stroke-width":"2"}),He("path",{d:"M5 19.5C5 15.9101 7.91015 13 11.5 13H12.5C16.0899 13 19 15.9101 19 19.5V20C19 20.5523 18.5523 21 18 21H6C5.44772 21 5 20.5523 5 20V19.5Z",stroke:e,"stroke-width":"2"})]})]})})}const Abe=/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,Bh=/^(\d{4})-(\d{2})-(\d{2}) (0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,m0=/^(\d{4})-(\d{2})-(\d{2})$/;let Obe=class extends Error{constructor(t){super(`Invalid time string: ${t}`)}};const uk=1.6666666666666667,cd=e=>{if(!Abe.test(e))throw new Obe(e);const[t,n]=e.split(":").map(r=>parseInt(r,10));let i=(n*uk).toString();return i.split(".")[0].length<2&&(i=`0${i}`),Number(t+i)},kb=e=>{const t=Math.floor(e/100),n=Math.round(e%100/uk);return`${so(t)}:${so(n)}`},Dbe=(e,t)=>{const n=t/uk,i=tr(e);return i.setMinutes(i.getMinutes()+n),Mw(i)};var v4;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(v4||(v4={}));const Gz="en-US",ck=v4.MONDAY,Ibe="primary";class Nbe{constructor(t,n,i,r,a,o,s,l,u,c=void 0,d={}){Object.defineProperty(this,"_config",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"start",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"end",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"people",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"location",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"calendarId",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:c}),Object.defineProperty(this,"_foreignProperties",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"_previousConcurrentEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_totalConcurrentEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nDaysInGrid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eventFragments",{enumerable:!0,configurable:!0,writable:!0,value:{}})}get _isSingleDayTimed(){return Bh.test(this.start)&&Bh.test(this.end)&&Kn(this.start)===Kn(this.end)}get _isSingleDayFullDay(){return m0.test(this.start)&&m0.test(this.end)&&this.start===this.end}get _isMultiDayTimed(){return Bh.test(this.start)&&Bh.test(this.end)&&Kn(this.start)!==Kn(this.end)}get _isMultiDayFullDay(){return m0.test(this.start)&&m0.test(this.end)&&this.start!==this.end}get _isSingleHybridDayTimed(){if(!this._config.isHybridDay||!Bh.test(this.start)||!Bh.test(this.end))return!1;const t=Kn(this.start),n=Kn(this.end),i=wa(new Date(tr(n).getTime()-864e5));if(t!==n&&t!==i)return!1;const r=this._config.dayBoundaries,a=cd(sm(this.start)),o=cd(sm(this.end));return a>=r.start&&(o<=r.end||o>a)||a<r.end&&o<=r.end}get _color(){return this.calendarId&&this._config.calendars.value&&this.calendarId in this._config.calendars.value?this._config.calendars.value[this.calendarId].colorName:Ibe}_getForeignProperties(){return this._foreignProperties}_getExternalEvent(){return{id:this.id,start:this.start,end:this.end,title:this.title,people:this.people,location:this.location,description:this.description,calendarId:this.calendarId,_options:this._options,...this._getForeignProperties()}}}class Kz{constructor(t,n,i,r){Object.defineProperty(this,"_config",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"start",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"end",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"people",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"location",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"calendarId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_foreignProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new Nbe(this._config,this.id,this.start,this.end,this.title,this.people,this.location,this.description,this.calendarId,this._options,this._foreignProperties)}withTitle(t){return this.title=t,this}withPeople(t){return this.people=t,this}withLocation(t){return this.location=t,this}withDescription(t){return this.description=t,this}withForeignProperties(t){return this._foreignProperties=t,this}withCalendarId(t){return this.calendarId=t,this}withOptions(t){return this._options=t,this}}const y1=(e,t)=>{const n=new Kz(t.config,e.id,e.start,e.end).withTitle(e.title).withPeople(e.people).withCalendarId(e.calendarId).withForeignProperties(JSON.parse(JSON.stringify(e._getForeignProperties()))).withLocation(e.location).withDescription(e.description).build();return n._nDaysInGrid=e._nDaysInGrid,n},Mbe=e=>e.reduce((t,n,i)=>i===0?n:i===e.length-1?`${t} & ${n}`:`${t}, ${n}`,""),Fl=()=>"s"+Math.random().toString(36).substring(2,11),Zz=(e,t)=>{const{year:n,month:i,date:r,hours:a,minutes:o}=ol(e),s=a!==void 0&&o!==void 0,l=new Date(n,i,r,a??0,o??0);let u=(l.getMonth()+t)%12;return u<0&&(u+=12),l.setMonth(l.getMonth()+t),l.getMonth()>u?l.setDate(0):l.getMonth()<u&&(l.setMonth(l.getMonth()+1),l.setDate(0)),s?Mw(l):wa(l)},gh=(e,t)=>{const{year:n,month:i,date:r,hours:a,minutes:o}=ol(e),s=a!==void 0&&o!==void 0,l=new Date(n,i,r,a??0,o??0);return l.setDate(l.getDate()+t),s?Mw(l):wa(l)},Wc=e=>document.querySelector(`[data-ccid="${e}"]`);function Lbe(){const e=Sa(or),[t,n]=On(!1);e.config.plugins.sidebar&&n(e.config.plugins.sidebar.isOpen.value);const i=()=>{e.config.callbacks.onAddTimeOff&&e.config.callbacks.onAddTimeOff()},r=()=>{var h;e.config.plugins.sidebar&&(e.config.plugins.sidebar.isOpen.value=!(!((h=e.config.plugins.sidebar)===null||h===void 0)&&h.isOpen.value),n(e.config.plugins.sidebar.isOpen.value),e.config.callbacks.onToggleSidePanel&&e.config.callbacks.onToggleSidePanel(e.config.plugins.sidebar.isOpen.value))},a=e.config._customComponentFns.headerContentLeftPrepend,o=On(a?Fl():void 0)[0],s=e.config._customComponentFns.headerContentLeftAppend,l=On(s?Fl():void 0)[0],u=e.config._customComponentFns.headerContentRightPrepend,c=On(u?Fl():void 0)[0],d=e.config._customComponentFns.headerContentRightAppend,f=On(d?Fl():void 0)[0];return Ni(()=>{a&&o&&a(Wc(o),{}),s&&s(Wc(l),{}),u&&u(Wc(c),{}),d&&d(Wc(f),{})},[]),He("header",{className:"sx__calendar-header",children:He("div",{className:"sx__calendar-header-content",children:[He("div",{children:e.config.plugins.sidebar&&(t?He("img",{src:kbe,className:"cursor-pointer",alt:"Icon hide side panel",onClick:r}):He("img",{src:Tbe,className:"cursor-pointer",alt:"Icon open side panel",onClick:r}))}),He("div",{children:[o&&He("div",{"data-ccid":o}),He(Sbe,{}),He(xbe,{}),He(_be,{}),l&&He("div",{"data-ccid":l})]}),c&&He("div",{"data-ccid":c}),He(Ebe,{toggleView:!0}),He("div",{className:"sx__calendar-header-content-add-time-off",onClick:i,children:[He("img",{src:Pbe,alt:"Calendar icon",width:"24"}),He("span",{children:e.translate("Add time off")})]}),He("div",{children:f&&He("div",{"data-ccid":f})})]})})}const Rbe=(e,t)=>{e.elements.calendarWrapper=document.getElementById(t)},Fbe=(e,t)=>{const n=e.config.views.find(i=>i.name===e.calendarState.view.value);if(t){if(n.hasSmallScreenCompat)return;const i=e.config.views.find(r=>r.hasSmallScreenCompat);i&&e.calendarState.setView(i.name,e.datePickerState.selectedDate.value)}else{if(n.hasWideScreenCompat)return;const i=e.config.views.find(r=>r.hasWideScreenCompat);i&&e.calendarState.setView(i.name,e.datePickerState.selectedDate.value)}},Vbe=e=>{const t=document.documentElement,n=e.elements.calendarWrapper,i=+window.getComputedStyle(t).fontSize.split("p")[0],r=700,a=16/i,o=r/a;if(!n)return;const s=e.config.callbacks.isCalendarSmall?e.config.callbacks.isCalendarSmall(e):n.clientWidth<o;s!==e.calendarState.isCalendarSmall.value&&(e.calendarState.isCalendarSmall.value=s,Fbe(e,s))};function Bbe(e){const t="sx__calendar-wrapper",[n,i]=On([t]);return om(()=>{const r=[t];e.calendarState.isCalendarSmall.value&&r.push("sx__is-calendar-small"),e.calendarState.isDark.value&&r.push("is-dark"),i(r)}),n}const zbe=e=>{Object.values(e.config.plugins).forEach(t=>{t!=null&&t.init&&t.init(e)})},jbe=e=>{Object.values(e.config.plugins).forEach(t=>{t!=null&&t.destroy&&t.destroy()})},Ube=e=>{Object.values(e.config.plugins).forEach(t=>{t!=null&&t.beforeInit&&t.beforeInit(e)})};function Hbe({$app:e}){var t;const n=Fl(),i=Fl();Ni(()=>(Rbe(e,n),zbe(e),()=>jbe(e)),[]);const r=()=>{Vbe(e)};Ni(()=>{if(e.config.isResponsive)return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]);const a=Bbe(e),[o,s]=On();om(()=>{const f=e.config.views.find(m=>m.name===e.calendarState.view.value),h=document.getElementById(i);!f||!h||f.name===(o==null?void 0:o.name)||(o&&o.destroy(),s(f),f.render(h,e))});const[l,u]=On(""),[c,d]=On("");return om(()=>{var f,h;const m=(((f=e.calendarState.range.value)===null||f===void 0?void 0:f.start)||"")>l;d(m?"sx__slide-left":"sx__slide-right"),setTimeout(()=>{d("")},300),u(((h=e.calendarState.range.value)===null||h===void 0?void 0:h.start)||"")}),He(nr,{children:He("div",{className:a.join(" "),id:n,children:He("div",{className:"sx__calendar",children:He(or.Provider,{value:e,children:[He(Lbe,{}),He("div",{className:"sx__calendar-content",children:[e.config.plugins.sidebar&&He(e.config.plugins.sidebar.ComponentFn,{$app:e}),He("div",{className:"sx__calendar-view-container-wrapper",children:He("div",{className:["sx__view-container",c].join(" "),id:i})})]}),e.config.plugins.eventModal&&e.config.plugins.eventModal.calendarEvent.value&&He(e.config.plugins.eventModal.ComponentFn,{$app:e},(t=e.config.plugins.eventModal.calendarEvent.value)===null||t===void 0?void 0:t.id)]})})})})}const u_=(e,t)=>{const{id:n,start:i,end:r,title:a,description:o,location:s,people:l,_options:u,...c}=e;return new Kz(t,n,i,r).withTitle(a).withDescription(o).withLocation(s).withPeople(l).withCalendarId(e.calendarId).withOptions(u).withForeignProperties(c).build()};class qbe{constructor(t){Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:t})}set(t){this.$app.calendarEvents.list.value=t.map(n=>u_(n,this.$app.config))}add(t){const n=u_(t,this.$app.config),i=[...this.$app.calendarEvents.list.value];i.push(n),this.$app.calendarEvents.list.value=i}get(t){var n;return(n=this.$app.calendarEvents.list.value.find(i=>i.id===t))===null||n===void 0?void 0:n._getExternalEvent()}getAll(){return this.$app.calendarEvents.list.value.map(t=>t._getExternalEvent())}remove(t){const n=this.$app.calendarEvents.list.value.findIndex(r=>r.id===t),i=[...this.$app.calendarEvents.list.value];i.splice(n,1),this.$app.calendarEvents.list.value=i}update(t){const n=this.$app.calendarEvents.list.value.findIndex(r=>r.id===t.id),i=[...this.$app.calendarEvents.list.value];i.splice(n,1,u_(t,this.$app.config)),this.$app.calendarEvents.list.value=i}}class Ybe{constructor(t){Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.events=new qbe(this.$app),Ube(this.$app)}render(t){Cb(ce(Hbe,{$app:this.$app}),t)}setTheme(t){this.$app.calendarState.isDark.value=t==="dark"}_setCustomComponentFn(t,n){this.$app.config._customComponentFns[t]=n}}class Wbe{constructor(t,n,i,r,a,o,s,l={calendarWrapper:void 0},u={onAddTimeOff:()=>{}}){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"timeUnitsImpl",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"calendarState",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"datePickerState",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"translate",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"datePickerConfig",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"calendarEvents",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"elements",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"customCallbacks",{enumerable:!0,configurable:!0,writable:!0,value:u})}}class Gbe{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timeUnitsImpl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datePickerState",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"calendarState",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"translate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datePickerConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"calendarEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customCallbacks",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new Wbe(this.config,this.timeUnitsImpl,this.calendarState,this.datePickerState,this.translate,this.datePickerConfig,this.calendarEvents,{calendarWrapper:void 0},this.customCallbacks)}withConfig(t){return this.config=t,this}withTimeUnitsImpl(t){return this.timeUnitsImpl=t,this}withDatePickerState(t){return this.datePickerState=t,this}withCalendarState(t){return this.calendarState=t,this}withTranslate(t){return this.translate=t,this}withDatePickerConfig(t){return this.datePickerConfig=t,this}withCalendarEvents(t){return this.calendarEvents=t,this}withCustomCallbacks(t){return this.customCallbacks=t,this}}var g4;(function(e){e.MONTH_DAYS="month-days",e.YEARS="years"})(g4||(g4={}));var Ws;(function(e){e.SLASH="/",e.DASH="-",e.PERIOD="."})(Ws||(Ws={}));var Gs;(function(e){e.DMY="DMY",e.MDY="MDY",e.YMD="YMD"})(Gs||(Gs={}));const dv={slashMDY:{delimiter:Ws.SLASH,order:Gs.MDY},slashDMY:{delimiter:Ws.SLASH,order:Gs.DMY},slashYMD:{delimiter:Ws.SLASH,order:Gs.YMD},periodDMY:{delimiter:Ws.PERIOD,order:Gs.DMY},dashYMD:{delimiter:Ws.DASH,order:Gs.YMD}},Kbe=new Map([["en-US",dv.slashMDY],["en-GB",dv.slashDMY],["zh-CN",dv.slashYMD],["de-DE",dv.periodDMY],["sv-SE",dv.dashYMD]]);class Zbe extends Error{constructor(t){super(`Locale not supported: ${t}`)}}class Xz extends Error{constructor(t,n){super(`Invalid date format: ${t} for locale: ${n}`)}}const v0=(e,t,n)=>{const i=e.match(t);if(!i)throw new Xz(e,n);return i},Xbe=(e,t)=>{if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const i=Kbe.get(t);if(!i)throw new Zbe(t);const{order:r,delimiter:a}=i,o=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/,s=/^(\d{1,2})\.(\d{1,2})\.(\d{4})$/,l=/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/;if(r===Gs.DMY&&a===Ws.SLASH){const u=v0(e,o,t),[,c,d,f]=u;return`${f}-${so(+d)}-${so(+c)}`}if(r===Gs.MDY&&a===Ws.SLASH){const u=v0(e,o,t),[,c,d,f]=u;return`${f}-${so(+c)}-${so(+d)}`}if(r===Gs.YMD&&a===Ws.SLASH){const u=v0(e,l,t),[,c,d,f]=u;return`${c}-${so(+d)}-${so(+f)}`}if(r===Gs.DMY&&a===Ws.PERIOD){const u=v0(e,s,t),[,c,d,f]=u;return`${f}-${so(+d)}-${so(+c)}`}throw new Xz(e,t)},Jbe=(e,t)=>{var n;const i=wa(new Date),r=typeof t=="string"?t:i,a=mr(!1),o=mr(e.disabled||!1),s=mr(g4.MONTH_DAYS),l=mr(r),u=mr(r||i),c=mr(((n=e.style)===null||n===void 0?void 0:n.dark)||!1),d=mr(t||""),f=mr(t||"");sc(()=>{try{const g=Xbe(d.value,e.locale);if(g<e.min||g>e.max){d.value=f.value;return}l.value=g,u.value=g,f.value=d.value}catch{}});let h=!1;const m=g=>{if(!h)return h=!0;e.listeners.onChange(g)};return sc(()=>{var g;!((g=e.listeners)===null||g===void 0)&&g.onChange&&m(l.value)}),{inputWrapperElement:mr(void 0),isOpen:a,isDisabled:o,datePickerView:s,selectedDate:l,datePickerDate:u,inputDisplayedValue:d,isDark:c,open:()=>a.value=!0,close:()=>a.value=!1,toggle:()=>a.value=!a.value,setView:g=>s.value=g}},Qbe={Date:"Datum","MM/DD/YYYY":"TT.MM.JJJJ","Next month":"Nächster Monat","Previous month":"Vorheriger Monat","Choose Date":"Datum auswählen","Select View":"Ansicht auswählen"},e2e={Today:"Heute",Month:"Monat",Week:"Woche",Day:"Tag",events:"Ereignisse",event:"Ereignis","My appointments":"Meine Termine","Add time off":"Freizeit hinzufügen","No events":"Keine Ereignisse","Next period":"Nächster Zeitraum","Previous period":"Vorheriger Zeitraum",to:"bis","Full day- and multiple day events":"Ganztägige und mehrtägige Ereignisse","Link to {{n}} more events on {{date}}":"Link zu {{n}} weiteren Ereignissen am {{date}}","Link to 1 more event on {{date}}":"Link zu 1 weiteren Ereignis am {{date}}"},t2e={...Qbe,...e2e},n2e={Date:"Date","MM/DD/YYYY":"MM/DD/YYYY","Next month":"Next month","Previous month":"Previous month","Choose Date":"Choose Date","Select View":"Select View"},i2e={Today:"Today",Month:"Month",Week:"Week",Day:"Day",events:"events",event:"event","My appointments":"My appointments","Add time off":"Add time off","No events":"No events","Next period":"Next period","Previous period":"Previous period",to:"to","Full day- and multiple day events":"Full day- and multiple day events","Link to {{n}} more events on {{date}}":"Link to {{n}} more events on {{date}}","Link to 1 more event on {{date}}":"Link to 1 more event on {{date}}"},r2e={...n2e,...i2e},a2e={Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Mese successivo","Previous month":"Mese precedente","Choose Date":"Scegli la data","Select View":"Seleziona la vista"},o2e={Today:"Oggi",Month:"Mese",Week:"Settimana",Day:"Giorno",events:"eventi",event:"evento","My appointments":"I miei appuntamenti","Add time off":"Aggiungi un periodo di ferie","No events":"Nessun evento","Next period":"Periodo successivo","Previous period":"Periodo precedente",to:"a","Full day- and multiple day events":"Eventi della giornata e plurigiornalieri","Link to {{n}} more events on {{date}}":"Link a {{n}} eventi in più il {{date}}","Link to 1 more event on {{date}}":"Link a 1 evento in più il {{date}}"},s2e={...a2e,...o2e},l2e={Date:"Date","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Next month","Previous month":"Previous month","Choose Date":"Choose Date","Select View":"Select View"},u2e={Today:"Today",Month:"Month",Week:"Week",Day:"Day",events:"events",event:"event","My appointments":"My appointments","Add time off":"Add time off","No events":"No events","Next period":"Next period","Previous period":"Previous period",to:"to","Full day- and multiple day events":"Full day- and multiple day events","Link to {{n}} more events on {{date}}":"Link to {{n}} more events on {{date}}","Link to 1 more event on {{date}}":"Link to 1 more event on {{date}}"},c2e={...l2e,...u2e},d2e={Date:"Datum","MM/DD/YYYY":"Ã…Ã…Ã…Ã…-MM-DD","Next month":"Nästa mÃ¥nad","Previous month":"FöregÃ¥ende mÃ¥nad","Choose Date":"Välj datum","Select View":"Välj vy"},f2e={Today:"Idag",Month:"MÃ¥nad",Week:"Vecka",Day:"Dag",events:"händelser",event:"händelse","My appointments":"Mina möten","Add time off":"Lägg till ledig tid","No events":"Inga händelser","Next period":"Nästa period","Previous period":"FöregÃ¥ende period",to:"till","Full day- and multiple day events":"Heldags- och flerdagshändelser","Link to {{n}} more events on {{date}}":"Länk till {{n}} fler händelser den {{date}}","Link to 1 more event on {{date}}":"Länk till 1 händelse till den {{date}}"},h2e={...d2e,...f2e},p2e={Date:"日期","MM/DD/YYYY":"å¹´/月/æ—¥","Next month":"下个月","Previous month":"上个月","Choose Date":"选择日期","Select View":"选择视图"},m2e={Today:"今天",Month:"月",Week:"周",Day:"æ—¥",events:"场活动",event:"活动","My appointments":"我的约会","Add time off":"æ·»åŠ ä¼‘å‡æ—¶é—´","No events":"没有活动","Next period":"下一段时间","Previous period":"上一段时间",to:"至","Full day- and multiple day events":"全天和多天活动","Link to {{n}} more events on {{date}}":"链接到{{date}}上的{{n}}个更多活动","Link to 1 more event on {{date}}":"链接到{{date}}上的1个更多活动"},v2e={...p2e,...m2e},g2e={Date:"日付","MM/DD/YYYY":"å¹´/月/æ—¥","Next month":"æ¬¡ã®æœˆ","Previous month":"å‰ã®æœˆ","Choose Date":"æ—¥ä»˜ã‚’é¸æŠž","Select View":"ãƒ“ãƒ¥ãƒ¼ã‚’é¸æŠž"},y2e={Today:"今日",Month:"月",Week:"週",Day:"æ—¥",events:"イベント",event:"イベント","My appointments":"ç§ã®äºˆå®š","Add time off":"ä¼‘æš‡ã‚’è¿½åŠ ","No events":"イベントãªã—","Next period":"æ¬¡ã®æœŸé–“","Previous period":"å‰ã®æœŸé–“",to:"ã‹ã‚‰","Full day- and multiple day events":"終日ãŠã‚ˆã³è¤‡æ•°æ—¥ã‚¤ãƒ™ãƒ³ãƒˆ","Link to {{n}} more events on {{date}}":"{{date}} ã«{{n}}ä»¶ã®ã‚¤ãƒ™ãƒ³ãƒˆã¸ã®ãƒªãƒ³ã‚¯","Link to 1 more event on {{date}}":"{{date}} ã«1ä»¶ã®ã‚¤ãƒ™ãƒ³ãƒˆã¸ã®ãƒªãƒ³ã‚¯"},_2e={...g2e,...y2e},b2e={Date:"Дата","MM/DD/YYYY":"ММ/ДД/ГГГГ","Next month":"Следующий меÑÑц","Previous month":"Прошлый меÑÑц","Choose Date":"Выберите дату","Select View":"Выберите вид"},w2e={Today:"СегоднÑ",Month:"МеÑÑц",Week:"ÐеделÑ",Day:"День",events:"ÑобытиÑ",event:"Ñобытие","My appointments":"Мои вÑтречи","Add time off":"Добавить отпуÑк","No events":"Ðет Ñобытий","Next period":"Следующий период","Previous period":"Прошлый период",to:"по","Full day- and multiple day events":"Ð¡Ð¾Ð±Ñ‹Ñ‚Ð¸Ñ Ð½Ð° целый день и неÑколько дней подрÑд","Link to {{n}} more events on {{date}}":"СÑылка на {{n}} дополнительных Ñобытий на {{date}}","Link to 1 more event on {{date}}":"СÑылка на 1 дополнительное Ñобытие на {{date}}"},S2e={...b2e,...w2e},C2e={Date:"ì¼ìž","MM/DD/YYYY":"ë…„/ì›”/ì¼","Next month":"ë‹¤ìŒ ë‹¬","Previous month":"ì´ì „ 달","Choose Date":"ë‚ ì§œ ì„ íƒ","Select View":"보기 ì„ íƒ"},E2e={Today:"오늘",Month:"ì›”",Week:"주",Day:"ì¼",events:"ì¼ì •들",event:"ì¼ì •","My appointments":"ë‚´ 약ì†","Add time off":"휴가 추가","No events":"ì¼ì • ì—†ìŒ","Next period":"다ìŒ","Previous period":"ì´ì „",to:"부터","Full day- and multiple day events":"ì¢…ì¼ ë° ë³µìˆ˜ì¼ ì¼ì •","Link to {{n}} more events on {{date}}":"{{date}}ì— {{n}}ê°œ ì´ìƒì˜ ì´ë²¤íŠ¸ë¡œ ì´ë™","Link to 1 more event on {{date}}":"{{date}}ì— 1ê°œ ì´ìƒì˜ ì´ë²¤íŠ¸ë¡œ ì´ë™"},x2e={...C2e,...E2e},k2e={Date:"Date","MM/DD/YYYY":"JJ/MM/AAAA","Next month":"Mois suivant","Previous month":"Mois précédent","Choose Date":"Choisir une date","Select View":"Choisir la vue"},T2e={Today:"Aujourd'hui",Month:"Mois",Week:"Semaine",Day:"Jour",events:"événements",event:"événement","My appointments":"Mes rendez-vous","Add time off":"Ajouter une période de congés","No events":"Aucun événement","Next period":"Période suivante","Previous period":"Période précédente",to:"à ","Full day- and multiple day events":"Événements d'une ou plusieurs journées","Link to {{n}} more events on {{date}}":"Lien vers {{n}} autres événements le {{date}}","Link to 1 more event on {{date}}":"Lien vers 1 autre événement le {{date}}"},P2e={...k2e,...T2e},$2e={Date:"Dato","MM/DD/YYYY":"Ã…Ã…Ã…Ã…-MM-DD","Next month":"Næste mÃ¥ned","Previous month":"ForegÃ¥ende mÃ¥ned","Choose Date":"Vælg dato","Select View":"Vælg visning"},A2e={Today:"I dag",Month:"MÃ¥ned",Week:"Uge",Day:"Dag",events:"begivenheder",event:"begivenhed","My appointments":"Mine aftaler","Add time off":"Tilføj fritid","No events":"Ingen begivenheder","Next period":"Næste periode","Previous period":"ForgÃ¥ende periode",to:"til","Full day- and multiple day events":"Heldagsbegivenheder og flerdagsbegivenheder","Link to {{n}} more events on {{date}}":"Link til {{n}} flere begivenheder den {{date}}","Link to 1 more event on {{date}}":"Link til 1 mere begivenhed den {{date}}"},O2e={...$2e,...A2e},D2e={Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"NastÄ™pny miesiÄ…c","Previous month":"Poprzedni miesiÄ…c","Choose Date":"Wybiewrz datÄ™","Select View":"Wybierz widok"},I2e={Today:"Dzisiaj",Month:"MiesiÄ…c",Week:"TydzieÅ„",Day:"DzieÅ„",events:"wydarzenia",event:"wydarzenie","My appointments":"Moje spotkania","Add time off":"Dodaj urlop","No events":"Brak wydarzeÅ„","Next period":"NastÄ™pny okres","Previous period":"Poprzedni okres",to:"do","Full day- and multiple day events":"Wydarzenia caÅ‚odniowe i wielodniowe","Link to {{n}} more events on {{date}}":"Link do {{n}} kolejnych wydarzeÅ„ w dniu {{date}}","Link to 1 more event on {{date}}":"Link do 1 kolejnego wydarzenia w dniu {{date}}"},N2e={...D2e,...I2e},M2e={Date:"Fecha","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Siguiente mes","Previous month":"Mes anterior","Choose Date":"Seleccione una fecha","Select View":"Seleccione una vista"},L2e={Today:"Hoy",Month:"Mes",Week:"Semana",Day:"DÃa",events:"eventos",event:"evento","My appointments":"Mis citas","Add time off":"Agregar tiempo libre","No events":"Sin eventos","Next period":"Siguiente perÃodo","Previous period":"PerÃodo anterior",to:"a","Full day- and multiple day events":"DÃa completo y eventos de múltiples dÃas","Link to {{n}} more events on {{date}}":"Enlace a {{n}} eventos más el {{date}}","Link to 1 more event on {{date}}":"Enlace a 1 evento más el {{date}}"},R2e={...M2e,...L2e},F2e={Today:"Vandaag",Month:"Maand",Week:"Week",Day:"Dag",events:"gebeurtenissen",event:"gebeurtenis","My appointments":"Mijn afspraken","Add time off":"Vrije tijd toevoegen","No events":"Geen gebeurtenissen","Next period":"Volgende periode","Previous period":"Vorige periode",to:"tot","Full day- and multiple day events":"Evenementen van een hele dag en meerdere dagen","Link to {{n}} more events on {{date}}":"Link naar {{n}} meer evenementen op {{date}}","Link to 1 more event on {{date}}":"Link naar 1 meer evenement op {{date}}"},V2e={Date:"Datum","MM/DD/YYYY":"DD-MM-JJJJ","Next month":"Vorige maand","Previous month":"Volgende maand","Choose Date":"Datum kiezen","Select View":"Weergave kiezen"},B2e={...V2e,...F2e},z2e={Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Mês seguinte","Previous month":"Mês anterior","Choose Date":"Escolha uma data","Select View":"Selecione uma visualização"},j2e={Today:"Hoje",Month:"Mês",Week:"Semana",Day:"Dia",events:"eventos",event:"evento","My appointments":"Meus compromissos","Add time off":"Adicionar tempo livre","No events":"Sem eventos","Next period":"PerÃodo seguinte","Previous period":"PerÃodo anterior",to:"a","Full day- and multiple day events":"Dia inteiro e eventos de vários dias","Link to {{n}} more events on {{date}}":"Link para mais {{n}} eventos em {{date}}","Link to 1 more event on {{date}}":"Link para mais 1 evento em {{date}}"},U2e={...z2e,...j2e},H2e={Date:"Dátum","MM/DD/YYYY":"DD/MM/YYYY","Next month":"ÄŽalšà mesiac","Previous month":"Predchádzajúci mesiac","Choose Date":"Vyberte dátum","Select View":"Vyberte zobrazenie"},q2e={Today:"Dnes",Month:"Mesiac",Week:"Týždeň",Day:"Deň",events:"udalosti",event:"udalosÅ¥","My appointments":"Moje stretnutia","Add time off":"PridaÅ¥ voľno","No events":"Žiadne udalosti","Next period":"ÄŽalÅ¡ie obdobie","Previous period":"Predchádzajúce obdobie",to:"do","Full day- and multiple day events":"Celodenné a viacdňové udalosti","Link to {{n}} more events on {{date}}":"Odkaz na {{n}} ÄalÅ¡Ãch udalostà dňa {{date}}","Link to 1 more event on {{date}}":"Odkaz na 1 ÄalÅ¡iu udalosÅ¥ dňa {{date}}"},Y2e={...H2e,...q2e},W2e={Date:"Датум","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Следен меÑец","Previous month":"Претходен меÑец","Choose Date":"Избери Датум","Select View":"Избери Преглед"},G2e={Today:"ДенеÑ",Month:"МеÑец",Week:"Ðедела",Day:"Ден",events:"наÑтани",event:"наÑтан","Add time off":"додади Ñлободен ден","My appointments":"моите ÑоÑтаноци","No events":"Ðема наÑтани","Next period":"Следен период","Previous period":"Претходен период",to:"до","Full day- and multiple day events":"Целодневни и повеќедневни наÑтани","Link to {{n}} more events on {{date}}":"Линк до {{n}} повеќе наÑтани на {{date}}","Link to 1 more event on {{date}}":"Линк до 1 повеќе наÑтан на {{date}}"},K2e={...W2e,...G2e},Z2e={Date:"Tarih","MM/DD/YYYY":"GG/AA/YYYY","Next month":"Sonraki ay","Previous month":"Önceki ay","Choose Date":"Tarih Seç","Select View":"Görünüm Seç"},X2e={Today:"Bugün",Month:"Aylık",Week:"Haftalık",Day:"Günlük",events:"etkinlikler",event:"etkinlik","Add time off":"İzin ekle","My appointments":"Randevularım","No events":"Etkinlik yok","Next period":"Sonraki dönem","Previous period":"Önceki dönem",to:"dan","Full day- and multiple day events":"Tüm gün ve çoklu gün etkinlikleri","Link to {{n}} more events on {{date}}":"{{date}} tarihinde {{n}} etkinliÄŸe baÄŸlantı","Link to 1 more event on {{date}}":"{{date}} tarihinde 1 etkinliÄŸe baÄŸlantı"},J2e={...Z2e,...X2e},Q2e={Date:"ДатаÑÑ‹","MM/DD/YYYY":"ÐÐ/КК/ЖЖЖЖ","Next month":"Кийинки ай","Previous month":"Өткөн ай","Choose Date":"Күндү тандаңыз","Select View":"Көрүнүштү тандаңыз"},ewe={Today:"Бүгүн",Month:"Ðй",Week:"Ðпта",Day:"Күн",events:"ОкуÑлар",event:"ОкуÑ","Add time off":"ÐÑ Ð°Ð»ÑƒÑƒ кошуу","My appointments":"Менин жолугушууларым","No events":"ÐžÐºÑƒÑ Ð¶Ð¾Ðº","Next period":"Кийинки мезгил","Previous period":"Өткөн мезгил",to:"чейин","Full day- and multiple day events":"Күн бою жана бир нече күн катары менен болгон окуÑлар","Link to {{n}} more events on {{date}}":"{{date}} күнүндө {{n}} окуÑга байланыш","Link to 1 more event on {{date}}":"{{date}} күнүндө 1 окуÑга байланыш"},twe={...Q2e,...ewe},nwe={Date:"Tanggal","MM/DD/YYYY":"DD.MM.YYYY","Next month":"Bulan depan","Previous month":"Bulan sebelumnya","Choose Date":"Pilih tanggal","Select View":"Pilih tampilan"},iwe={Today:"Hari Ini",Month:"Bulan",Week:"Minggu",Day:"Hari",events:"Acara",event:"Acara","My appointments":"Janji temu saya","Add time off":"Tambahkan waktu libur","No events":"Tidak ada acara","Next period":"Periode selanjutnya","Previous period":"Periode sebelumnya",to:"sampai","Full day- and multiple day events":"Sepanjang hari dan acara beberapa hari ","Link to {{n}} more events on {{date}}":"Tautan ke {{n}} acara lainnya pada {{date}}","Link to 1 more event on {{date}}":"Tautan ke 1 acara lainnya pada {{date}}"},rwe={...nwe,...iwe},awe={Date:"Datum","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Dalšà mÄ›sÃc","Previous month":"PÅ™edchozà mÄ›sÃc","Choose Date":"Vyberte datum","Select View":"Vyberte zobrazenÃ"},owe={Today:"Dnes",Month:"MÄ›sÃc",Week:"Týden",Day:"Den",events:"události",event:"událost","My appointments":"Moje schůzky","Add time off":"PÅ™idat volno","No events":"Žádné události","Next period":"PÅ™ÃÅ¡tà obdobÃ","Previous period":"PÅ™edchozà obdobÃ",to:"do","Full day- and multiple day events":"Celodennà a vÃcedennà události","Link to {{n}} more events on {{date}}":"Odkaz na {{n}} dalÅ¡Ãch událostà dne {{date}}","Link to 1 more event on {{date}}":"Odkaz na 1 dalšà událost dne {{date}}"},swe={...awe,...owe},lwe={Date:"Kuupäev","MM/DD/YYYY":"PP.KK.AAAA","Next month":"Järgmine kuu","Previous month":"Eelmine kuu","Choose Date":"Vali kuupäev","Select View":"Vali vaade"},uwe={Today:"Täna",Month:"Kuu",Week:"Nädal",Day:"Päev",events:"sündmused",event:"sündmus","My appointments":"Minu kohtumised","Add time off":"Lisa puhkeaeg","No events":"Pole sündmusi","Next period":"Järgmine periood","Previous period":"Eelmine periood",to:"kuni","Full day- and multiple day events":"Täispäeva- ja mitmepäevasündmused","Link to {{n}} more events on {{date}}":"Link {{n}} rohkematele sündmustele kuupäeval {{date}}","Link to 1 more event on {{date}}":"Link ühele lisasündmusele kuupäeval {{date}}"},cwe={...lwe,...uwe},dwe={Date:"Дата","MM/DD/YYYY":"ММ/ДД/Ð Ð Ð Ð ","Next month":"ÐаÑтупний міÑÑць","Previous month":"Минулий міÑÑць","Choose Date":"Виберіть дату","Select View":"Виберіть виглÑд"},fwe={Today:"Сьогодні",Month:"МіÑÑць",Week:"Тиждень",Day:"День",events:"події",event:"подіÑ","My appointments":"Мої зуÑтрічі","Add time off":"Додати Ñ‡Ð°Ñ Ð²Ñ–Ð´Ð¿Ð¾Ñ‡Ð¸Ð½ÐºÑƒ","No events":"Ðемає подій","Next period":"ÐаÑтупний період","Previous period":"Минулий період",to:"по","Full day- and multiple day events":"Події на цілий день Ñ– кілька днів поÑпіль","Link to {{n}} more events on {{date}}":"ПоÑÐ¸Ð»Ð°Ð½Ð½Ñ Ð½Ð° {{n}} додаткові події на {{date}}","Link to 1 more event on {{date}}":"ПоÑÐ¸Ð»Ð°Ð½Ð½Ñ Ð½Ð° 1 додаткову подію на {{date}}"},hwe={...dwe,...fwe};class pwe extends Error{constructor(t){super(`Invalid locale: ${t}`)}}const mwe=(e,t)=>(n,i)=>{if(!/^[a-z]{2}-[A-Z]{2}$/.test(e))throw new pwe(e);const r=e.replace("-",""),a=t[r];if(!a)return n;let o=a[n]||n;return Object.keys(i||{}).forEach(s=>{const l=String(i==null?void 0:i[s]);l&&(o=o.replace(`{{${s}}}`,l))}),o},vwe={Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Següent mes","Previous month":"Mes anterior","Choose Date":"Selecciona una data","Select View":"Selecciona una vista"},gwe={Today:"Avui",Month:"Mes",Week:"Setmana",Day:"Dia",events:"Esdeveniments",event:"Esdeveniment","My appointments":"Mis citas","Add time off":"Añadir tiempo libre","No events":"Sense esdeveniments","Next period":"Següent perÃode","Previous period":"PerÃode anterior",to:"a","Full day- and multiple day events":"Esdeveniments de dia complet i de múltiples dies","Link to {{n}} more events on {{date}}":"Enllaç a {{n}} esdeveniments més el {{date}}","Link to 1 more event on {{date}}":"Enllaç a 1 esdeveniment més el {{date}}"},ywe={...vwe,...gwe},_we={deDE:t2e,enUS:r2e,itIT:s2e,enGB:c2e,svSE:h2e,zhCN:v2e,jaJP:_2e,ruRU:S2e,koKR:x2e,frFR:P2e,daDK:O2e,mkMK:K2e,plPL:N2e,esES:R2e,nlNL:B2e,ptBR:U2e,skSK:Y2e,trTR:J2e,kyKG:twe,idID:rwe,csCZ:swe,etEE:cwe,ukUA:hwe,caES:ywe};class bwe{constructor(t){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:t})}setLight(){Object.entries(this.config.calendars.value||{}).forEach(([t,n])=>{if(!n.lightColors){console.warn(`No light colors defined for calendar ${t}`);return}this.setColors(n.colorName,n.lightColors)})}setDark(){Object.entries(this.config.calendars.value||{}).forEach(([t,n])=>{if(!n.darkColors){console.warn(`No dark colors defined for calendar ${t}`);return}this.setColors(n.colorName,n.darkColors)})}setColors(t,n){document.documentElement.style.setProperty(`--sx-color-${t}`,n.main),document.documentElement.style.setProperty(`--sx-color-${t}-container`,n.container),document.documentElement.style.setProperty(`--sx-color-on-${t}-container`,n.onContainer)}}const wwe=(e,t,n)=>{var i;const r=mr(((i=e.views.find(f=>f.name===e.defaultView))===null||i===void 0?void 0:i.name)||e.views[0].name),a=Uz(()=>r.value),o=mr(null);let s=!1;const l=f=>{if(!s)return s=!0;e.callbacks.onRangeUpdate&&f.value&&e.callbacks.onRangeUpdate(f.value)};sc(()=>{e.callbacks.onRangeUpdate&&o.value&&l(o)});const u=f=>{var h,m;const v=e.views.find(y=>y.name===r.value).setDateRange({calendarConfig:e,date:f,range:o,timeUnitsImpl:t});v.start===((h=o.value)===null||h===void 0?void 0:h.start)&&v.end===((m=o.value)===null||m===void 0?void 0:m.end)||(o.value=v)};u(n||wa(new Date));const c=mr(void 0),d=mr(e.isDark||!1);return sc(()=>{const f=new bwe(e);d.value?f.setDark():f.setLight()}),{view:a,isDark:d,setRange:u,range:o,isCalendarSmall:c,setView:(f,h)=>{fbe(()=>{r.value=f,u(h)})}}},Swe=(e,t)=>{const n=mr(e.map(r=>u_(r,t))),i=mr(void 0);return{list:n,filterPredicate:i}};va.Week;const Cwe={start:0,end:2400},Ewe=1600,_1="blocker",xwe=(e,t,n)=>e===t?2400:n?2400-e+t:t-e;class kwe{constructor(t=Gz,n=ck,i=va.Week,r=[],a=Cwe,o,s={},l={},u=!1,c=!0,d={},f={},h=void 0,m=void 0,g={nEventsPerDay:4}){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"defaultView",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"views",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"dayBoundaries",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"weekOptions",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"isDark",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"isResponsive",{enumerable:!0,configurable:!0,writable:!0,value:c}),Object.defineProperty(this,"callbacks",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"_customComponentFns",{enumerable:!0,configurable:!0,writable:!0,value:f}),Object.defineProperty(this,"minDate",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(this,"maxDate",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(this,"monthGridOptions",{enumerable:!0,configurable:!0,writable:!0,value:g}),Object.defineProperty(this,"calendars",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.calendars=mr(s)}get isHybridDay(){return this.dayBoundaries.start>this.dayBoundaries.end||this.dayBoundaries.start!==0&&this.dayBoundaries.start===this.dayBoundaries.end}get timePointsPerDay(){return xwe(this.dayBoundaries.start,this.dayBoundaries.end,this.isHybridDay)}}class Twe{constructor(){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"views",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dayBoundaries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"weekOptions",{enumerable:!0,configurable:!0,writable:!0,value:{gridHeight:Ewe,nDays:7,eventWidth:100}}),Object.defineProperty(this,"monthGridOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"calendars",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"isDark",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isResponsive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"callbacks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minDate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxDate",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new kwe(this.locale,this.firstDayOfWeek,this.defaultView,this.views,this.dayBoundaries,this.weekOptions,this.calendars,this.plugins,this.isDark,this.isResponsive,this.callbacks,{},this.minDate,this.maxDate,this.monthGridOptions)}withLocale(t){return this.locale=t,this}withFirstDayOfWeek(t){return this.firstDayOfWeek=t,this}withDefaultView(t){return this.defaultView=t,this}withViews(t){return this.views=t,this}withDayBoundaries(t){return t?(this.dayBoundaries={start:cd(t.start),end:cd(t.end)},this):this}withWeekOptions(t){return this.weekOptions={...this.weekOptions,...t},this}withCalendars(t){return this.calendars=t,this}withPlugins(t){return t?(t.forEach(n=>{this.plugins[n.name]=n}),this):this}withIsDark(t){return this.isDark=t,this}withIsResponsive(t){return this.isResponsive=t,this}withCallbacks(t){return this.callbacks=t,this}withMinDate(t){return this.minDate=t,this}withMaxDate(t){return this.maxDate=t,this}withMonthGridOptions(t){return this.monthGridOptions=t,this}}const Pwe=e=>new Twe().withLocale(e.locale).withFirstDayOfWeek(e.firstDayOfWeek).withDefaultView(e.defaultView).withViews(e.views).withDayBoundaries(e.dayBoundaries).withWeekOptions(e.weekOptions).withCalendars(e.calendars).withPlugins(e.plugins).withIsDark(e.isDark).withIsResponsive(e.isResponsive).withCallbacks(e.callbacks).withMinDate(e.minDate).withMaxDate(e.maxDate).withMonthGridOptions(e.monthGridOptions).build();var y4;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(y4||(y4={}));class Jz extends Error{constructor(){super("Year zero does not exist in the Gregorian calendar.")}}class $we extends Date{constructor(t,n,i){if(super(t,n,i),t===0)throw new Jz;this.setFullYear(t)}get year(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}class Awe{constructor(t=ck){Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:t})}getMonthWithTrailingAndLeadingDays(t,n){if(t===0)throw new Jz;const i=new Date(t,n,1),r=[this.getWeekFor(i)];let a=!0,o=r[0][0];for(;a;){const s=new Date(o.getFullYear(),o.getMonth(),o.getDate()+7);s.getMonth()===n?(r.push(this.getWeekFor(s)),o=s):a=!1}return r}getWeekFor(t){const n=[this.getFirstDateOfWeek(t)];for(;n.length<7;){const i=n[n.length-1],r=new Date(i);r.setDate(i.getDate()+1),n.push(r)}return n}getMonthsFor(t){return Object.values(y4).filter(n=>!isNaN(Number(n))).map(n=>new $we(t,Number(n),1))}getFirstDateOfWeek(t){const n=t.getDay()-this.firstDayOfWeek,i=t;return n===0||(n>0?i.setDate(t.getDate()-n):i.setDate(t.getDate()-(7+n))),i}}class Owe{constructor(){Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new Awe(this.firstDayOfWeek)}withFirstDayOfWeek(t){return this.firstDayOfWeek=t,this}}const Dwe=e=>new Owe().withFirstDayOfWeek(e.firstDayOfWeek).build();var Tb;(function(e){e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end"})(Tb||(Tb={}));class Iwe{constructor(t=Gz,n=ck,i=wa(new Date(1970,0,1)),r=wa(new Date(new Date().getFullYear()+1,11,31)),a=Tb.BOTTOM_START,o={},s={},l,u,c,d){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"placement",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"teleportTo",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:c}),Object.defineProperty(this,"disabled",{enumerable:!0,configurable:!0,writable:!0,value:d})}}class Nwe{constructor(){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"placement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"teleportTo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new Iwe(this.locale,this.firstDayOfWeek,this.min,this.max,this.placement,this.listeners,this.style,this.teleportTo,this.label,this.name,this.disabled)}withLocale(t){return this.locale=t,this}withFirstDayOfWeek(t){return this.firstDayOfWeek=t,this}withMin(t){return this.min=t,this}withMax(t){return this.max=t,this}withPlacement(t){return this.placement=t,this}withListeners(t){return this.listeners=t,this}withStyle(t){return this.style=t,this}withTeleportTo(t){return this.teleportTo=t,this}withLabel(t){return this.label=t,this}withName(t){return this.name=t,this}withDisabled(t){return this.disabled=t,this}}const Mwe=(e,t)=>{var n;return new Nwe().withLocale(e.locale).withFirstDayOfWeek(e.firstDayOfWeek).withMin(e.minDate).withMax(e.maxDate).withStyle((n=e.datePicker)===null||n===void 0?void 0:n.style).withPlacement(Tb.BOTTOM_END).withListeners({onChange:t}).build()},Lwe=(e,t)=>{let n=null;return i=>{var r;e.setRange(i),!((r=t.callbacks)===null||r===void 0)&&r.onSelectedDateUpdate&&i!==n&&(n=i,t.callbacks.onSelectedDateUpdate(i))}},Rwe=e=>{var t;const n=Pwe(e),i=Dwe(n),r=wwe(n,i,e.selectedDate),a=Lwe(r,e),o=Mwe(e,a),s=Jbe(o,e.selectedDate||((t=e.datePicker)===null||t===void 0?void 0:t.selectedDate)),l=Swe(e.events||[],n),u=e.customCallBacks||{onAddTimeOff:()=>{}};return new Gbe().withConfig(n).withTimeUnitsImpl(i).withDatePickerState(s).withCalendarEvents(l).withDatePickerConfig(o).withCalendarState(r).withTranslate(mwe(n.locale,_we)).withCustomCallbacks(u).build()},Fwe=e=>new Ybe(Rwe(e));class Vwe{constructor(t){Object.defineProperty(this,"randomId",{enumerable:!0,configurable:!0,writable:!0,value:Fl()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"Component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"setDateRange",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hasSmallScreenCompat",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hasWideScreenCompat",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"backwardForwardFn",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"backwardForwardUnits",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.label=t.label,this.Component=t.Component,this.setDateRange=t.setDateRange,this.hasSmallScreenCompat=t.hasSmallScreenCompat,this.hasWideScreenCompat=t.hasWideScreenCompat,this.backwardForwardFn=t.backwardForwardFn,this.backwardForwardUnits=t.backwardForwardUnits}render(t,n){Cb(ce(this.Component,{$app:n,id:this.randomId}),t)}destroy(){const t=document.getElementById(this.randomId);t&&t.remove()}}const Lw=e=>new Vwe(e),_4=(e,t,n)=>{if(n<t.start){const i=2400-t.start;return(n+i)/e*100}return(n-t.start)/e*100},Bwe=(e,t,n,i)=>_4(i,n,cd(sm(t)))-_4(i,n,cd(sm(e))),zwe=(e,t)=>!e._totalConcurrentEvents||!e._previousConcurrentEvents?0:(e._previousConcurrentEvents||0)/(e._totalConcurrentEvents||0)*t,jwe=(e,t)=>t-e,Uwe=e=>e._previousConcurrentEvents?"1px solid #fff":0,Qz=e=>"time-grid-event-copy-"+e,fy=e=>"touches"in e&&typeof e.touches=="object";function Rw(e){const[t,n]=On(),i=u=>{if(!u)return n(void 0);n(y1(u,e))},[r,a]=On(),o=(u,c)=>{a(setTimeout(()=>u(c),150))},s=(u,c)=>{if(fy(u)&&u.touches.length===0||!e.config.plugins.eventModal)return;const d=u.target;if(!(d instanceof HTMLElement))return;const f=d.classList.contains("sx__event")?d:d.closest(".sx__event");f instanceof HTMLElement&&(e.config.plugins.eventModal.calendarEventElement.value=f,e.config.plugins.eventModal.setCalendarEvent(c,f.getBoundingClientRect()))};return{eventCopy:t,updateCopy:i,createDragStartTimeout:o,setClickedEventIfNotDragging:(u,c)=>{r&&(clearTimeout(r),s(c,u)),a(void 0)},setClickedEvent:s}}const Hwe=(e,t)=>{let n=e?"custom-time-grid-event-"+Fl():void 0;return n&&t&&(n+="-copy"),n},Fw=(e,t)=>{e.config.callbacks.onEventClick&&e.config.callbacks.onEventClick(t._getExternalEvent())},ej=e=>{const t=fy(e)?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},qwe=(e,t,n)=>_4(n,t,cd(sm(e))),Ywe=e=>{setTimeout(()=>{e()})};function tj({calendarEvent:e,dayBoundariesDateTime:t,isCopy:n,setMouseDown:i}){var r,a;const o=Sa(or),{eventCopy:s,updateCopy:l,createDragStartTimeout:u,setClickedEventIfNotDragging:c}=Rw(o),d=[o.config.locale,{hour:"numeric",minute:"numeric"}],f=(E,A)=>{const D=tr(E).toLocaleTimeString(...d),T=tr(A).toLocaleTimeString(...d);return`${D} – ${T}`},h={borderLeft:`4px solid var(--sx-color-${e._color})`,textColor:`var(--sx-color-on-${e._color}-container)`,backgroundColor:`var(--sx-color-${e._color}-container)`,iconStroke:`var(--sx-color-on-${e._color}-container)`},m=zwe(e,o.config.weekOptions.eventWidth),g=E=>{var A;if(fy(E)&&E.preventDefault(),!t||!E.target||!o.config.plugins.dragAndDrop||!((A=e._options)===null||A===void 0)&&A.disableDND)return;const D=y1(e,o);l(D),o.config.plugins.dragAndDrop.createTimeGridDragHandler({$app:o,eventCoordinates:ej(E),updateCopy:l,eventCopy:D},t)},v=o.config._customComponentFns.timeGridEvent,y=Hwe(v,n);Ni(()=>{v&&v(Wc(y),{calendarEvent:e._getExternalEvent()})},[e,s]);const _=E=>{E.stopPropagation(),Fw(o,e)},S=E=>{if(i(!0),E.stopPropagation(),!!t&&o.config.plugins.resize){const A=y1(e,o);l(A),o.config.plugins.resize.createTimeGridEventResizer(A,l,E,t)}},w=Uwe(e),x=["sx__time-grid-event","sx__event"];n&&x.push("is-event-copy"),!((r=e._options)===null||r===void 0)&&r.additionalClasses&&x.push(...e._options.additionalClasses);const k=E=>{i(!0),u(g,E)},P=E=>{Ywe(()=>i(!1)),c(e,E)};return He(nr,{children:[He("div",{id:n?Qz(e.id):void 0,"data-event-id":e.id,onClick:_,onMouseDown:k,onMouseUp:P,onTouchStart:k,onTouchEnd:P,className:x.join(" "),tabIndex:0,style:{top:`${qwe(e.start,o.config.dayBoundaries,o.config.timePointsPerDay)}%`,height:`${Bwe(e.start,e.end,o.config.dayBoundaries,o.config.timePointsPerDay)}%`,left:`${m}%`,width:`${jwe(m,n?100:o.config.weekOptions.eventWidth)}%`,backgroundColor:v?void 0:h.backgroundColor,color:v?void 0:h.textColor,borderTop:w,borderRight:w,borderBottom:w,borderLeft:v?void 0:h.borderLeft,padding:v?"0":void 0},children:He("div",{"data-ccid":y,className:"sx__time-grid-event-inner",children:[!v&&He(nr,{children:[e.title&&He("div",{className:"sx__time-grid-event-title",children:e.title}),He("div",{className:"sx__time-grid-event-time",children:[He(Wz,{strokeColor:h.iconStroke}),f(e.start,e.end)]}),e.people&&e.people.length>0&&He("div",{className:"sx__time-grid-event-people",children:[He($be,{strokeColor:h.iconStroke}),Mbe(e.people)]})]}),o.config.plugins.resize&&!(!((a=e._options)===null||a===void 0)&&a.disableResize)&&He("div",{className:"sx__time-grid-event-resize-handle",onMouseDown:S})]})}),s&&He(tj,{calendarEvent:s,isCopy:!0,setMouseDown:i})]})}const dk=(e,t)=>e.start===t.start?e.end<t.end?1:e.end>t.end?-1:0:e.start<t.start?-1:e.start>t.start?1:0,Wwe=(e,t)=>{const n=Kn(e.start),i=Kn(t.start),r=Kn(e.end),a=Kn(t.end);return n===i?r<a?1:r>a?-1:0:n<i?-1:n>i?1:0},b4=(e,t=[],n=0)=>{for(let i=n;i<e.length;i++){const r=e[i],a=e[i+1];if(t.length&&(!a||t.every(o=>o.end<a.start))){t.push(r);for(let o=0;o<t.length;o++){const s=t[o],l=t.filter((c,d)=>c===s||d>o?!1:c.start<=s.start&&c.end>s.start).length,u=t.filter((c,d)=>c===s||d<o?!1:c.start<s.end&&c.end>=s.start).length;s._totalConcurrentEvents=l+u+1,s._previousConcurrentEvents=l}return t=[],b4(e,t,i+1)}if(a&&r.end>a.start||t.some(o=>o.end>r.start))return t.push(r),b4(e,t,i+1);r._totalConcurrentEvents=1,r._previousConcurrentEvents=0}return e},aS=(e,t)=>`${wa(tr(e))} ${t}`,Gwe=(e,t,n)=>{if(!(e.target instanceof HTMLElement))return;const i="sx__time-grid-day",r=e.target.classList.contains(i)?e.target:e.target.closest("."+i),o=(e.clientY-r.getBoundingClientRect().top)/r.getBoundingClientRect().height*100,s=Math.round(t.config.timePointsPerDay/100*o);return Dbe(n,s)},Vw=e=>{switch(e){case 0:return"sx__sunday";case 1:return"sx__monday";case 2:return"sx__tuesday";case 3:return"sx__wednesday";case 4:return"sx__thursday";case 5:return"sx__friday";case 6:return"sx__saturday";default:throw new Error("Invalid weekday")}};function Kwe({calendarEvents:e,date:t}){const[n,i]=On(!1),r=Sa(or),a=kb(r.config.dayBoundaries.start),o=kb(r.config.dayBoundaries.end),s=aS(t,a),l=r.config.isHybridDay?gh(aS(t,o),1):aS(t,o),u={start:s,end:l},c=e.sort(dk),[d,f]=On([]);Ni(()=>{f(b4(c))},[e]);const h=(_,S)=>{if(!S||n)return;const w=Gwe(_,r,s);w&&S(w)},m=()=>{setTimeout(()=>{i(!1)},10)},g=["sx__time-grid-day",Vw(tr(t).getDay())],[v,y]=On(g);return om(()=>{const _=[...g];r.datePickerState.selectedDate.value===t&&_.push("is-selected"),y(_)}),He("div",{className:v.join(" "),"data-time-grid-date":t,onClick:_=>h(_,r.config.callbacks.onClickDateTime),onDblClick:_=>h(_,r.config.callbacks.onDoubleClickDateTime),"aria-label":Nf(t,r.config.locale),onMouseLeave:()=>i(!1),onMouseUp:m,onTouchEnd:m,children:d.map(_=>He(tj,{calendarEvent:_,dayBoundariesDateTime:u,isCopy:_.isCopy,setMouseDown:i},_.id))})}const Zwe=({start:e,end:t},n)=>{const i=[];let r=Math.floor(e/100);if(n){for(;r<24;)i.push(r),r+=1;r=0}const a=t===0?24:Math.ceil(t/100);for(;r<a;)i.push(r),r+=1;return i};function Xwe(){const e=Sa(or),[t,n]=On([]);return Ni(()=>{n(Zwe(e.config.dayBoundaries,e.config.isHybridDay));const i=e.config.timePointsPerDay/100,r=e.config.weekOptions.gridHeight/i;document.documentElement.style.setProperty("--sx-week-grid-hour-height",`${r}px`)},[]),He(nr,{children:He("div",{className:"sx__week-grid__time-axis",children:t.map(i=>He("div",{className:"sx__week-grid__hour",children:He("span",{className:"sx__week-grid__hour-text",children:new Date(0,0,0,i).toLocaleTimeString(e.config.locale,{hour:"numeric"})})}))})})}const Jwe=(e,t)=>e.map(n=>n.toLocaleString(t,{weekday:"short"}).charAt(0)),fk=(e,t)=>e.toLocaleString(t,{weekday:"short"}),Qwe=(e,t)=>e.map(n=>fk(n,t)),e3e=(e,t)=>["zh-cn","ca-es"].includes(t.toLowerCase())?Qwe(e,t):Jwe(e,t),nj=e=>{const t=new Date;return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function t3e({week:e}){const t=Sa(or),n=i=>{const r=["sx__week-grid__date",Vw(i.getDay())];return nj(i)&&r.push("sx__week-grid__date--is-today"),r.join(" ")};return He(nr,{children:He("div",{className:"sx__week-grid__date-axis",children:e.map(i=>He("div",{className:n(i),"data-date":wa(i),children:[He("div",{className:"sx__week-grid__day-name",children:fk(i,t.config.locale)}),He("div",{className:"sx__week-grid__date-number",children:i.getDate()})]}))})})}const n3e=e=>{const t=[],n=[];for(const i of e){if(i._isSingleDayTimed||i._isSingleHybridDayTimed){n.push(i);continue}(i._isSingleDayFullDay||i._isMultiDayFullDay||i._isMultiDayTimed)&&t.push(i)}return{timeGridEvents:n,dateGridEvents:t}},VA=(e,t)=>{const n=wa(t);return e[n]={date:n,timeGridEvents:[],dateGridEvents:{}},e},i3e=e=>e.calendarState.view.value===va.Day?VA({},tr(e.calendarState.range.value.start)):e.timeUnitsImpl.getWeekFor(tr(e.calendarState.range.value.start)).slice(0,e.config.weekOptions.nDays).reduce(VA,{}),r3e=(e,t,n)=>{for(const i of e){const r=n.calendarState.range.value;if(i.start>=r.start&&i.end<=r.end){let a=Kn(i.start);const o=sm(i.start);cd(o)<n.config.dayBoundaries.start&&(a=gh(a,-1)),t[a]&&t[a].timeGridEvents.push(i)}}return t},a3e=(e,t)=>{const n=Object.keys(t).sort(),i=n[0],r=n[n.length-1],a=new Set;for(const o of e){const s=Kn(o.start),l=Kn(o.end),u=!!t[s];let c=u;if(!u&&s<i&&l>=i&&(c=!0),!c)continue;const d=u?s:i,f=l<=r?l:r,h=Object.values(t).filter(v=>v.date>=d&&v.date<=f);let m,g=0;for(;m===void 0;)h.every(y=>!y.dateGridEvents[g])?(m=g,a.add(g)):g++;for(const[v,y]of h.entries())v===0?(o._nDaysInGrid=h.length,y.dateGridEvents[m]=o):y.dateGridEvents[m]=_1}for(const o of Array.from(a))for(const[,s]of Object.entries(t))s.dateGridEvents[o]||(s.dateGridEvents[o]=void 0);return t},o3e=(e,t,n)=>{let i=2;const r=10;return e&&n&&(i+=r),t&&n&&(i+=r),i},s3e=(e,t,n)=>({borderBottomLeftRadius:e||n?0:void 0,borderTopLeftRadius:e||n?0:void 0,borderBottomRightRadius:t||n?0:void 0,borderTopRightRadius:t||n?0:void 0});function ij({calendarEvent:e,gridRow:t,isCopy:n}){var i,r;const a=Sa(or),{eventCopy:o,updateCopy:s,setClickedEventIfNotDragging:l,createDragStartTimeout:u}=Rw(a),c={borderLeft:`4px solid var(--sx-color-${e._color})`,color:`var(--sx-color-on-${e._color}-container)`,backgroundColor:`var(--sx-color-${e._color}-container)`},d=w=>{var x;if(!a.config.plugins.dragAndDrop||!((x=e._options)===null||x===void 0)&&x.disableDND)return;fy(w)&&w.preventDefault();const k=y1(e,a);s(k),a.config.plugins.dragAndDrop.createDateGridDragHandler({eventCoordinates:ej(w),eventCopy:k,updateCopy:s,$app:a})},f=Kn(e.start)<Kn(a.calendarState.range.value.start),h=Kn(e.end)>Kn(a.calendarState.range.value.end),m={backgroundColor:c.backgroundColor},g=a.config._customComponentFns.dateGridEvent;let v=g?"custom-date-grid-event-"+Fl():void 0;n&&v&&(v+="-copy"),Ni(()=>{g&&g(Wc(v),{calendarEvent:e._getExternalEvent()})},[e,o]);const y=w=>{w.stopPropagation();const x=y1(e,a);s(x),a.config.plugins.resize.createDateGridEventResizer(x,s,w)},_=["sx__event","sx__date-grid-event","sx__date-grid-cell"];n&&_.push("sx__date-grid-event--copy"),f&&_.push("sx__date-grid-event--overflow-left"),h&&_.push("sx__date-grid-event--overflow-right"),!((i=e._options)===null||i===void 0)&&i.additionalClasses&&_.push(...e._options.additionalClasses);const S=f?"none":c.borderLeft;return He(nr,{children:[He("div",{id:n?Qz(e.id):void 0,tabIndex:0,"aria-label":e.title+" "+Yz(e,a.config.locale,a.translate("to")),"data-ccid":v,"data-event-id":e.id,onMouseDown:w=>u(d,w),onMouseUp:w=>l(e,w),onTouchStart:w=>u(d,w),onTouchEnd:w=>l(e,w),onClick:()=>Fw(a,e),className:_.join(" "),style:{width:`calc(${e._nDaysInGrid*100}% - ${o3e(f,h,!g)}px)`,gridRow:t,display:o?"none":"flex",padding:g?"0px":void 0,borderLeft:g?void 0:S,color:g?void 0:c.color,backgroundColor:g?void 0:c.backgroundColor,...s3e(f,h,!!g)},children:[!g&&He(nr,{children:[f&&He("div",{className:"sx__date-grid-event--left-overflow",style:m}),He("span",{className:"sx__date-grid-event-text",children:e.title}),h&&He("div",{className:"sx__date-grid-event--right-overflow",style:m})]}),a.config.plugins.resize&&!(!((r=e._options)===null||r===void 0)&&r.disableResize)&&!h&&He("div",{className:"sx__date-grid-event-resize-handle",onMouseDown:y})]}),o&&He(ij,{calendarEvent:o,gridRow:t,isCopy:!0})]})}function l3e({calendarEvents:e,date:t}){return He("div",{className:"sx__date-grid-day","data-date-grid-date":t,children:Object.values(e).map((n,i)=>n===_1||!n?He("div",{className:"sx__date-grid-cell",style:{gridRow:i+1}}):He(ij,{calendarEvent:n,gridRow:i+1}))})}const rj=({$app:e,id:t})=>{document.documentElement.style.setProperty("--sx-week-grid-height",`${e.config.weekOptions.gridHeight}px`);const[n,i]=On({});return om(()=>{var r,a;const o=(r=e.calendarState.range.value)===null||r===void 0?void 0:r.start,s=(a=e.calendarState.range.value)===null||a===void 0?void 0:a.end;if(!o||!s)return;let l=i3e(e);const u=e.calendarEvents.filterPredicate.value?e.calendarEvents.list.value.filter(e.calendarEvents.filterPredicate.value):e.calendarEvents.list.value,{dateGridEvents:c,timeGridEvents:d}=n3e(u);l=a3e(c.sort(dk),l),l=r3e(d,l,e),i(l)}),He(nr,{children:He(or.Provider,{value:e,children:He("div",{className:"sx__week-wrapper",id:t,children:[He("div",{className:"sx__week-header",children:He("div",{className:"sx__week-header-content",children:[He(t3e,{week:Object.values(n).map(r=>tr(r.date))}),He("div",{className:"sx__date-grid","aria-label":e.translate("Full day- and multiple day events"),children:Object.values(n).map(r=>He(l3e,{date:r.date,calendarEvents:r.dateGridEvents},r.date))}),He("div",{className:"sx__week-header-border"})]})}),He("div",{className:"sx__week-grid",children:[He(Xwe,{}),Object.values(n).map(r=>He(Kwe,{calendarEvents:r.timeGridEvents,date:r.date},r.date))]})]})})})},aj=(e,t)=>`${wa(t)} ${kb(e.dayBoundaries.start)}`,oj=(e,t)=>{let n=kb(e.dayBoundaries.end),i=wa(t);return e.isHybridDay&&(i=gh(i,1)),e.dayBoundaries.end===2400&&(n="23:59"),`${i} ${n}`},u3e=e=>{const t=e.timeUnitsImpl.getWeekFor(tr(e.date)).slice(0,e.calendarConfig.weekOptions.nDays);return{start:aj(e.calendarConfig,t[0]),end:oj(e.calendarConfig,t[t.length-1])}},sj=e=>{const{year:t,month:n}=ol(e.date),i=e.timeUnitsImpl.getMonthWithTrailingAndLeadingDays(t,n),r=wa(i[i.length-1][i[i.length-1].length-1]);return{start:Mw(i[0][0]),end:`${r} 23:59`}},c3e=e=>({start:aj(e.calendarConfig,tr(e.date)),end:oj(e.calendarConfig,tr(e.date))}),d3e={name:va.Week,label:"Week",Component:rj,setDateRange:u3e,hasSmallScreenCompat:!1,hasWideScreenCompat:!0,backwardForwardFn:gh,backwardForwardUnits:7},lj=Lw(d3e),f3e=(e,t)=>(e.push({date:wa(t),events:{}}),e),h3e=(e,t)=>{const{year:n,month:i}=ol(e),r=t.getMonthWithTrailingAndLeadingDays(n,i),a=[];for(const o of r)a.push(o.reduce(f3e,[]));return a};function p3e({gridRow:e,calendarEvent:t,date:n,isFirstWeek:i,isLastWeek:r}){var a,o,s;const l=Sa(or),u=i&&((a=l.calendarState.range.value)===null||a===void 0?void 0:a.start)&&Kn(t.start)<Kn(l.calendarState.range.value.start),c=r&&((o=l.calendarState.range.value)===null||o===void 0?void 0:o.end)&&Kn(t.end)>Kn(l.calendarState.range.value.end),{createDragStartTimeout:d,setClickedEventIfNotDragging:f}=Rw(l),h=Kn(t.start)===n,m=t._eventFragments[n],g={borderLeft:h?`4px solid var(--sx-color-${t._color})`:void 0,color:`var(--sx-color-on-${t._color}-container)`,backgroundColor:`var(--sx-color-${t._color}-container)`,width:`calc(${m*100+"%"} + ${m}px - 10px)`},v=x=>{var k;fy(x)&&x.preventDefault(),x.target&&(!l.config.plugins.dragAndDrop||!((k=t._options)===null||k===void 0)&&k.disableDND||l.config.plugins.dragAndDrop.createMonthGridDragHandler(t,l))},y=l.config._customComponentFns.monthGridEvent,_=y?"custom-month-grid-event-"+Fl():void 0;Ni(()=>{y&&y(Wc(_),{calendarEvent:t._getExternalEvent(),hasStartDate:h})},[t]);const S=x=>{x.stopPropagation(),Fw(l,t)},w=["sx__event","sx__month-grid-event","sx__month-grid-cell"];return!((s=t._options)===null||s===void 0)&&s.additionalClasses&&w.push(...t._options.additionalClasses),u&&w.push("sx__month-grid-event--overflow-left"),c&&w.push("sx__month-grid-event--overflow-right"),He("div",{draggable:!!l.config.plugins.dragAndDrop,"data-event-id":t.id,"data-ccid":_,onMouseDown:x=>d(v,x),onMouseUp:x=>f(t,x),onTouchStart:x=>d(v,x),onTouchEnd:x=>f(t,x),onClick:S,className:w.join(" "),style:{gridRow:e,width:g.width,padding:y?"0px":void 0,borderLeft:y?void 0:g.borderLeft,color:y?void 0:g.color,backgroundColor:y?void 0:g.backgroundColor},tabIndex:0,children:!y&&He("div",{className:"sx__month-grid-event-title",children:t.title})})}function m3e({day:e,isFirstWeek:t,isLastWeek:n}){const i=Sa(or),r=Object.values(e.events).filter(_=>typeof _=="object"||_===_1).length,a=_=>_===1?i.translate("event"):i.translate("events"),o=_=>_===1?i.translate("Link to 1 more event on {{date}}",{date:Nf(e.date,i.config.locale)}):i.translate("Link to {{n}} more events on {{date}}",{date:Nf(e.date,i.config.locale),n:r-i.config.monthGridOptions.nEventsPerDay}),s=_=>{_.stopPropagation(),i.config.callbacks.onClickPlusEvents&&i.config.callbacks.onClickPlusEvents(e.date),i.config.views.find(S=>S.name===va.Day)&&setTimeout(()=>{i.datePickerState.selectedDate.value=e.date,i.calendarState.setView(va.Day,e.date)},250)},l=["sx__month-grid-day__header-date"],u=tr(e.date),c=u;nj(c)&&l.push("sx__is-today");const{month:d}=ol(i.datePickerState.selectedDate.value),{month:f}=ol(e.date),h=["sx__month-grid-day",Vw(u.getDay())],[m,g]=On(h);Ni(()=>{const _=[...h];f!==d&&_.push("is-leading-or-trailing"),i.datePickerState.selectedDate.value===e.date&&_.push("is-selected"),g(_)},[i.datePickerState.selectedDate.value]);const y=(()=>Object.values(e.events).slice(i.config.monthGridOptions.nEventsPerDay).filter(_=>_===_1||typeof _=="object").length)();return He("div",{className:m.join(" "),"data-date":e.date,onClick:()=>i.config.callbacks.onClickDate&&i.config.callbacks.onClickDate(e.date),"aria-label":Nf(e.date,i.config.locale),onDblClick:()=>{var _,S;return(S=(_=i.config.callbacks).onDoubleClickDate)===null||S===void 0?void 0:S.call(_,e.date)},children:[He("div",{className:"sx__month-grid-day__header",children:[t?He("div",{className:"sx__month-grid-day__header-day-name",children:fk(c,i.config.locale)}):null,He("div",{className:l.join(" "),children:c.getDate()})]}),He("div",{className:"sx__month-grid-day__events",children:Object.values(e.events).slice(0,i.config.monthGridOptions.nEventsPerDay).map((_,S)=>typeof _!="object"?He("div",{className:"sx__month-grid-blocker sx__month-grid-cell",style:{gridRow:S+1}}):He(p3e,{gridRow:S+1,calendarEvent:_,date:e.date,isFirstWeek:t,isLastWeek:n}))}),y>0?He("button",{className:"sx__month-grid-day__events-more sx__ripple--wide","aria-label":o(y),onClick:s,children:`+ ${y} ${a(y)}`}):null]})}function v3e({week:e,isFirstWeek:t,isLastWeek:n}){return He("div",{className:"sx__month-grid-week",children:e.map(i=>{const r=i.date;return He(m3e,{day:i,isFirstWeek:t,isLastWeek:n},r)})})}const g3e=(e,t)=>{const n=Object.keys(t).sort(),i=n[0],r=n[n.length-1],a=new Set;for(const o of e){const s=Kn(o.start),l=Kn(o.end),u=!!t[s];let c=u;if(!u&&s<i&&l>=i&&(c=!0),!c)continue;const d=u?s:i,f=l<=r?l:r,h=Object.values(t).filter(v=>v.date>=d&&v.date<=f);let m,g=0;for(;m===void 0;)h.every(y=>!y.events[g])?(m=g,a.add(g)):g++;for(const[v,y]of h.entries())v===0?(o._eventFragments[d]=h.length,y.events[m]=o):y.events[m]=_1}for(const o of Array.from(a))for(const[,s]of Object.entries(t))s.events[o]||(s.events[o]=void 0);return t},y3e=(e,t)=>{const n=[];return e.forEach(i=>{const r={};i.forEach(a=>r[a.date]=a),n.push(r)}),n.forEach(i=>g3e(t,i)),e},_3e=({$app:e,id:t})=>{var n,i;const[r,a]=On([]);return Ni(()=>{e.calendarEvents.list.value.forEach(l=>{l._eventFragments={}});const o=h3e(e.datePickerState.selectedDate.value,e.timeUnitsImpl),s=e.calendarEvents.filterPredicate.value?e.calendarEvents.list.value.filter(e.calendarEvents.filterPredicate.value):e.calendarEvents.list.value;a(y3e(o,s.sort(Wwe)))},[(n=e.calendarState.range.value)===null||n===void 0?void 0:n.start,(i=e.calendarState.range.value)===null||i===void 0?void 0:i.end,e.calendarEvents.list.value,e.calendarEvents.filterPredicate.value]),He(or.Provider,{value:e,children:He("div",{id:t,className:"sx__month-grid-wrapper",children:r.map((o,s)=>He(v3e,{week:o,isFirstWeek:s===0,isLastWeek:s===r.length-1},s))})})},b3e={name:va.MonthGrid,label:"Month",setDateRange:sj,Component:_3e,hasWideScreenCompat:!0,hasSmallScreenCompat:!1,backwardForwardFn:Zz,backwardForwardUnits:1},w3e=Lw(b3e),S3e=({$app:e,id:t})=>He(rj,{$app:e,id:t}),C3e={name:va.Day,label:"Day",setDateRange:c3e,hasWideScreenCompat:!0,hasSmallScreenCompat:!0,Component:S3e,backwardForwardFn:gh,backwardForwardUnits:1},E3e=Lw(C3e),x3e=(e,t)=>{const{year:n,month:i}=ol(e);return{weeks:t.getMonthWithTrailingAndLeadingDays(n,i).map(a=>a.map(o=>({date:wa(o),events:[]})))}};function k3e({day:e,isActive:t,setActiveDate:n}){const i=Sa(or),{month:r}=ol(i.datePickerState.selectedDate.value),{month:a}=ol(e.date),o=tr(e.date),s=["sx__month-agenda-day",Vw(o.getDay())];t&&s.push("sx__month-agenda-day--active"),a!==r&&s.push("is-leading-or-trailing");const l=()=>{var d,f;n(e.date),(f=(d=i.config.callbacks).onClickAgendaDate)===null||f===void 0||f.call(d,e.date)},u=d=>d.date===i.datePickerState.selectedDate.value,c=d=>{const f=new Map([["ArrowDown",7],["ArrowUp",-7],["ArrowLeft",-1],["ArrowRight",1]]);i.datePickerState.selectedDate.value=gh(i.datePickerState.selectedDate.value,f.get(d.key)||0)};return He("button",{className:s.join(" "),onClick:l,"aria-label":Nf(e.date,i.config.locale),tabIndex:u(e)?0:-1,"data-agenda-focus":u(e)?"true":void 0,onKeyDown:c,children:[He("div",{children:o.getDate()}),He("div",{className:"sx__month-agenda-day__event-icons",children:e.events.slice(0,3).map(d=>He("div",{style:{backgroundColor:`var(--sx-color-${d._color})`,filter:"brightness(1.6)"},className:"sx__month-agenda-day__event-icon"}))})]})}function T3e({week:e,setActiveDate:t,activeDate:n}){return He("div",{className:"sx__month-agenda-week",children:e.map((i,r)=>He(k3e,{setActiveDate:t,day:i,isActive:n===i.date},r+i.date))})}function P3e({week:e}){const t=Sa(or),n=e3e(e.map(i=>tr(i.date)),t.config.locale);return He("div",{className:"sx__month-agenda-day-names",children:n.map(i=>He("div",{className:"sx__month-agenda-day-name",children:i}))})}const $3e=(e,t)=>{let n=e;const i=[n];for(;n<t;)n=gh(n,1),i.push(n);return i},A3e=e=>t=>{$3e(Kn(t.start),Kn(t.end)).forEach(n=>{e[n]&&e[n].events.push(t)})},O3e=(e,t)=>{const n=e.weeks.reduce((i,r)=>(r.forEach(a=>{i[a.date]=a}),i),{});return t.forEach(A3e(n)),e};function D3e({calendarEvent:e}){const t=Sa(or),{setClickedEvent:n}=Rw(t),i={backgroundColor:`var(--sx-color-${e._color}-container)`,color:`var(--sx-color-on-${e._color}-container)`,borderLeft:`4px solid var(--sx-color-${e._color})`},r=t.config._customComponentFns.monthAgendaEvent,a=r?"custom-month-agenda-event-"+e.id:void 0;Ni(()=>{r&&r(Wc(a),{calendarEvent:e._getExternalEvent()})},[e]);const o=s=>{Fw(t,e),n(s,e)};return He("div",{className:"sx__event sx__month-agenda-event","data-ccid":a,"data-event-id":e.id,style:{backgroundColor:r?void 0:i.backgroundColor,color:r?void 0:i.color,borderLeft:r?void 0:i.borderLeft,padding:r?"0px":void 0},onClick:s=>o(s),tabIndex:0,children:!r&&He(nr,{children:[He("div",{className:"sx__month-agenda-event__title",children:e.title}),He("div",{className:"sx__month-agenda-event__time sx__month-agenda-event__has-icon",children:[He(Wz,{strokeColor:`var(--sx-color-on-${e._color}-container)`}),Yz(e,t.config.locale)]})]})})}function I3e({events:e}){const t=Sa(or);return He("div",{className:"sx__month-agenda-events",children:e.length?e.map(n=>He(D3e,{calendarEvent:n},n.id)):He("div",{className:"sx__month-agenda-events__empty",children:t.translate("No events")})})}const N3e=({$app:e,id:t})=>{var n;const i=()=>{const o=e.calendarEvents.filterPredicate.value?e.calendarEvents.list.value.filter(e.calendarEvents.filterPredicate.value):e.calendarEvents.list.value;return O3e(x3e(e.datePickerState.selectedDate.value,e.timeUnitsImpl),o.sort(dk))},[r,a]=On(i());return Ni(()=>{a(i())},[e.datePickerState.selectedDate.value,e.calendarEvents.list.value,e.calendarEvents.filterPredicate.value]),Ni(()=>{const o=new MutationObserver(l=>{l.forEach(u=>{const c=u.target;c.dataset.agendaFocus==="true"&&c.focus()})}),s=document.getElementById(t);return o.observe(s,{childList:!0,subtree:!0,attributes:!0}),()=>o.disconnect()},[]),He(or.Provider,{value:e,children:He("div",{id:t,className:"sx__month-agenda-wrapper",children:[He(P3e,{week:r.weeks[0]}),He("div",{className:"sx__month-agenda-weeks",children:r.weeks.map((o,s)=>He(T3e,{week:o,setActiveDate:l=>e.datePickerState.selectedDate.value=l,activeDate:e.datePickerState.selectedDate.value},s))}),He(I3e,{events:((n=r.weeks.flat().find(o=>o.date===e.datePickerState.selectedDate.value))===null||n===void 0?void 0:n.events)||[]},e.datePickerState.selectedDate.value)]})})},M3e={name:va.MonthAgenda,label:"Month",setDateRange:sj,Component:N3e,hasSmallScreenCompat:!0,hasWideScreenCompat:!1,backwardForwardFn:Zz,backwardForwardUnits:1};Lw(M3e);class L3e extends Error{constructor(t,n){super(`Number must be between ${t} and ${n}.`),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:n})}}const Pb=e=>{if(e<0||e>99)throw new L3e(0,99);return String(e).padStart(2,"0")},hk=e=>`${e.getFullYear()}-${Pb(e.getMonth()+1)}-${Pb(e.getDate())}`,R3e=e=>`${Pb(e.getHours())}:${Pb(e.getMinutes())}`,uj=e=>`${hk(e)} ${R3e(e)}`,F3e=(e,t,n)=>{if(n<t.start){const i=2400-t.start;return(n+i)/e*100}return(n-t.start)/e*100};let V3e=class extends Error{constructor(t){super(`Invalid time string: ${t}`)}};const B3e=/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,z3e=e=>{const t=e.slice(11,13),n=e.slice(14,16);return{year:Number(e.slice(0,4)),month:Number(e.slice(5,7))-1,date:Number(e.slice(8,10)),hours:t!==""?Number(t):void 0,minutes:n!==""?Number(n):void 0}},j3e=1.6666666666666667,U3e=e=>{if(!B3e.test(e))throw new V3e(e);const[t,n]=e.split(":").map(r=>parseInt(r,10));let i=(n*j3e).toString();return i.split(".")[0].length<2&&(i=`0${i}`),Number(t+i)},H3e=e=>e.slice(11),q3e=(e,t,n)=>F3e(n,t,U3e(H3e(e)));var w4;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(w4||(w4={}));w4.MONDAY;const Y3e=(e,t)=>{const{year:n,month:i,date:r,hours:a,minutes:o}=z3e(e),s=a!==void 0&&o!==void 0,l=new Date(n,i,r,a??0,o??0);return l.setMinutes(l.getMinutes()+t),s?uj(l):hk(l)};class W3e{constructor(t={}){if(Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"current-time-plugin"}),Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"observer",{enumerable:!0,configurable:!0,writable:!0,value:null}),typeof t.timeZoneOffset=="number"&&(t.timeZoneOffset<-720||t.timeZoneOffset>840))throw new Error("Invalid time zone offset: "+t.timeZoneOffset)}init(t){this.$app=t,this.observer=new MutationObserver(i=>{for(const r of i)r.type==="childList"&&this.setIndicator()});const n=t.elements.calendarWrapper;if(!n)throw new Error("Calendar wrapper not found");this.observer.observe(n,{childList:!0,subtree:!0})}setIndicator(t=!1){const n=hk(new Date);let i=uj(new Date);this.config.timeZoneOffset&&(i=Y3e(i,this.config.timeZoneOffset));const r=this.$app.elements.calendarWrapper.querySelector(`[data-time-grid-date="${n}"]`);if(!r)return;const a=r.querySelector(".sx__current-time-indicator");if(a&&t&&a.remove(),r&&!a){const o=document.createElement("div");o.classList.add("sx__current-time-indicator");const s=q3e(i,this.$app.config.dayBoundaries,this.$app.config.timePointsPerDay)+"%";o.style.top=s,r.appendChild(o),this.config.fullWeekWidth&&this.createFullWidthIndicator(s),setTimeout(this.setIndicator.bind(this,!0),6e4-Date.now()%6e4)}}createFullWidthIndicator(t){const n=document.createElement("div");n.classList.add("sx__current-time-indicator-full-week"),n.style.top=t;const i=document.querySelector(".sx__week-grid"),r=i==null?void 0:i.querySelector(".sx__current-time-indicator-full-week");r&&r.remove(),i&&i.appendChild(n)}destroy(){this.observer&&this.observer.disconnect()}}const G3e=e=>new W3e(e);var S4;(function(e){e.DragAndDrop="dragAndDrop",e.EventModal="eventModal",e.ScrollController="scrollController",e.EventRecurrence="eventRecurrence",e.Resize="resize",e.CalendarControls="calendarControls",e.Sidebar="sidebar",e.Header="header"})(S4||(S4={}));const K3e=()=>"s"+Math.random().toString(36).substring(2,11);function Z3e({$app:e}){const[t]=On(K3e()),n=e.config._customComponentFns.sidebar;return Ni(()=>{var i;n&&n(document.querySelector(`[data-ccid=${t}]`),{isOpen:(i=e.config.plugins.sidebar)===null||i===void 0?void 0:i.isOpen})},[]),He("div",{id:t,"data-ccid":t,className:"sx__calendar-sidebar",children:!n&&He(nr,{children:"custom sidebar in the sidebar.tsx"})})}const X3e=()=>({name:S4.Sidebar,isOpen:mr(!0),ComponentFn:Z3e});var C4;(function(e){e.DragAndDrop="dragAndDrop",e.EventModal="eventModal",e.ScrollController="scrollController",e.EventRecurrence="eventRecurrence",e.Resize="resize",e.CalendarControls="calendarControls",e.Sidebar="sidebar",e.Header="header"})(C4||(C4={}));const J3e=/^(\d{4})-(\d{2})-(\d{2})$/;class Q3e{constructor(){Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:C4.CalendarControls}),Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}beforeInit(t){this.$app=t}init(t){this.$app=t}setDate(t){if(!J3e.test(t))throw new Error("Invalid date. Expected format YYYY-MM-DD");this.$app.datePickerState.selectedDate.value=t}setView(t){if(!this.$app.config.views.find(i=>i.name===t))throw new Error(`Invalid view name. Expected one of ${this.$app.config.views.map(i=>i.name).join(", ")}`);this.$app.calendarState.setView(t,this.$app.datePickerState.selectedDate.value)}getDate(){return this.$app.datePickerState.selectedDate.value}getView(){return this.$app.calendarState.view.value}getRange(){return this.$app.calendarState.range.value}}const eSe=()=>new Q3e;class tSe{constructor(){Ns(this,"name","calendars-updater");Ns(this,"$app")}destroy(){}init(t){this.$app=t}}const Ja=new tSe,cj=()=>({updateHeaderState(e){var t,n,i;(i=(n=(t=Ja.$app)==null?void 0:t.config)==null?void 0:n.plugins)!=null&&i.header&&(Ja.$app.config.plugins.header.textSwitchBtn.value=e)}}),E4=z(null),nSe=()=>{var e,t,n;(n=(t=(e=Ja.$app)==null?void 0:e.config)==null?void 0:t.plugins)!=null&&n.sidebar&&(E4.value=Ja.$app.config.plugins.sidebar.isOpen.value)},Rm=()=>({sidebarState:E4,initSidebarState:nSe,updateSidebarState(e){var t,n,i;(i=(n=(t=Ja.$app)==null?void 0:t.config)==null?void 0:n.plugins)!=null&&i.sidebar&&(Ja.$app.config.plugins.sidebar.isOpen.value=e,E4.value=e)}}),BA=vn(),Uo=Pi("appointment-reason",()=>{const e=z([]),t=Ss("cached-raisons",[]),n=z(!1),i=async()=>{if(t.value.length)try{e.value=t.value.map(o=>({...o,remote:o.remote?"yes":"no"}))}catch(o){console.error("Failed to parse cached data:",o)}else await r()},r=async()=>{try{const o=await BA.get("/appointment-reason/me");if(o.status!==200)throw Error(JSON.stringify(o.data));const s=o.data.map(l=>({...l,remote:l.remote?"yes":"no"}));e.value=o.data.map(l=>({...l,remote:l.remote?"yes":"no"})),t.value=s}catch(o){console.error("Failed to fetch appointment reasons:",o)}},a=async()=>{try{const o=await BA.get("/appointment-reason/me");if(o.status!==200)throw Error(JSON.stringify(o.data));const s=o.data.map(l=>({...l,remote:l.remote?"yes":"no"}));e.value=o.data.map(l=>({...l,remote:l.remote?"yes":"no"})),t.value=s,n.value=!0}catch(o){console.error("Failed to fetch appointment reasons:",o)}};return i(),{appointmentReasons:e,fillAppointmentReasons:r,refreshAppointmentReasons:a,cachedRaisons:t}}),iSe=vn(),Ho=Pi("profile",()=>{const e=z([]),t=z(!1),{t:n}=gn(),i=z(0),r=z(!1),a=z(!1),o=Ss("cached-profiles",[]),s=async()=>{if(o.value.length)try{e.value=o.value}catch(h){console.error("Failed to parse cached profile data:",h)}else await l()},l=async()=>{try{const h=await f();if(h.status!==200)throw Error(JSON.stringify(h.data));e.value=h.data,o.value=e.value,t.value=!0,d()}catch(h){console.error("Failed to fetch profiles:",h),nt.error(n("profile.errorGetProfile"))}},u=async()=>{try{const h=await f();if(h.status!==200)throw Error(JSON.stringify(h.data));e.value=h.data,o.value=e.value,t.value=!0,d()}catch(h){console.error("Failed to refresh profiles:",h),nt.error(n("profile.errorGetProfile"))}},c=async()=>{try{await s(),t.value==!1&&await l()}catch(h){console.error("Failed to initialize profiles:",h)}},d=()=>{const h=Cs();h.dialogTimeSlotCreationProfileAddress&&(!h.dialogTimeSlotCreationProfileAddress.profile||!e.value.some(m=>m.id===h.dialogTimeSlotCreationProfileAddress.profile.id))&&(h.dialogTimeSlotCreationProfileAddress.profile=e.value[0])},f=async()=>{const h=window.location.href,m=h.includes("time-slot")||h.includes("appointment")?{onlyPublished:!0}:{},g=await iSe.get("/profile/",{params:m});return{status:g.status,data:g.data}};return{profiles:e,initProfiles:c,refreshProfiles:u,setDefaultProfileIfNotExist:d,totalProfile:i,createNewProfils:r,loadProfile:a,cachedProfiles:o,getProfiles:f}}),oS=4,sS="h",Cs=Pi("dialog-timeslot",()=>{const e=z(!1),t=z(null),n=z(null),i=z(!1);z(!0);const r=z(null),a=z(null),o=z("#4467c5"),s=z([]),l=z([]),u=hl(),c=Ho(),d=z(!1),f=z($e().hour()),h=z($e().minute()),m=$e().add(4,"hour"),g=z(m.hour()),v=z(m.minute()),y=z(!1),_=z(null),S=z("no"),w=()=>{y.value=!1,t.value=n.value,S.value=="yes"?q.value="yes":q.value="no"},x=()=>{_.value=null},k=Ss("dialogTimeSlotCreationProfileAddress",{}),P=(pe,ge,Te,Z)=>{k.value={profile:pe,address:ge,profiles:Te,addresses:Z}},E=z(null),A=z($e().add(1,"month").format("YYYY-MM-DD")),D=z(!1),T=z($e().format("YYYY-MM-DD HH:mm").split(" ")[1]),O=z($e().add(oS,sS).format("YYYY-MM-DD HH:mm").split(" ")[1]),N=z(null),V=z("in-person"),j=z([]),q=z("no"),ne=B(()=>N.value.every(pe=>pe.remote==="no")),ae=pe=>{n.value=t.value,t.value=pe.id,y.value=!0,S.value=q.value,_.value=pe,_.value.repeat==!0?q.value="yes":q.value="no"},Y=B(()=>{const pe=$e(`${E.value} ${T.value}`,"YYYY-MM-DD HH:mm"),ge=$e(`${E.value} ${O.value}`,"YYYY-MM-DD HH:mm");return ge.isBefore(pe)||ge.isSame(pe)}),M=B(()=>{const pe=$e(`${E.value} ${T.value}`,"YYYY-MM-DD HH:mm"),ge=$e(`${E.value} ${O.value}`,"YYYY-MM-DD HH:mm");return s.value&&0<s.value.length&&(r.value=s.value[0]),ge.isBefore(pe)||ge.isSame(pe)?!1:!!(a.value&&0<s.value.length&&N.value&&0<N.value.length&&E.value&&V.value)}),I=B(()=>V.value=="remote"||V.value=="both"),W=B(()=>V.value=="in-person"||V.value=="both"),te=async()=>{u.addresses.length>0&&c.profiles.length>0?(u.addresses.length>0&&(k.value.address=u.addresses[0],k.value.addresses=u.addresses),c.profiles.length>0&&(k.value.profile=c.profiles[0],k.value.profiles=c.profiles)):k.value=null},he=async()=>{if(await Uo().fillAppointmentReasons(),!e.value){N.value=null,Un();const ge=Ho();!k.value.address&&!k.value.profile&&(u.addresses.length>0&&(k.value.address=u.addresses[0]),ge.profiles.length>0&&(k.value.profile=ge.profiles[0])),a.value=k.value.address,a.value.remote&&(V.value="remote"),r.value=k.value.profile,o.value="#4467c5",A.value=$e(E.value).add(1,"month").format("YYYY-MM-DD")}},oe=(pe,ge)=>{E.value=$e(pe,"YYYY-MM-DD HH:mm").toDate(),T.value=pe.split(" ")[1],O.value=ge.split(" ")[1],i.value=!0,he()},U=()=>{const pe=$e().format("YYYY-MM-DD HH:mm");E.value=pe.split(" ")[0],T.value=pe.split(" ")[1],O.value=$e().add(oS,sS).format("HH:mm"),i.value?ee():he(),i.value=!i.value},ee=()=>{t.value=null,e.value=!1,r.value=null,a.value=null,o.value="#4467c5",E.value=$e().format("YYYY-MM-DD HH:mm"),A.value=$e(E.value).add(1,"month").format("YYYY-MM-DD"),T.value=$e().format("HH:mm"),O.value=$e().add(oS,sS).format("HH:mm"),N.value=null,V.value="in-person",j.value=[],q.value="no"},re=pe=>{const ge=c.profiles.find(Z=>Z.id===pe.profileId),Te=u.addresses.find(Z=>Z.id===pe.addressId);t.value=pe.timeSlotId,r.value=ge,a.value=Te,s.value=ge?[ge]:pe.profiles,l.value=[Te],e.value=!0,E.value=pe.start.split(" ")[0],A.value=pe.dateEnd,T.value=pe.start.split(" ")[1],O.value=pe.end.split(" ")[1],N.value=pe.appointmentReasons??null,h.value=Number(pe.start.split(":")[1]),f.value=Number(pe.start.split(" ")[1].split(":")[0]),v.value=Number(pe.end.split(":")[1]),g.value=Number(pe.end.split(" ")[1].split(":")[0]),D.value=!pe.dateEnd,V.value=pe.acceptRemote,q.value=pe.weekRepeat,j.value=pe.days,o.value=pe.color?pe.color:"#4467c5",oe(pe.start,pe.end)};Ve(D,pe=>{pe?A.value=null:e.value?(A.value==null||A.value==null)&&(A.value=$e(E.value).add(1,"month").format("YYYY-MM-DD")):A.value=$e(E.value).add(1,"month").format("YYYY-MM-DD")}),Ve(l,pe=>{var ge;pe&&(a.value=l.value[0],(ge=a.value)!=null&&ge.remote&&(V.value="remote"))}),Ve(q,pe=>{pe&&(pe=="no"?(j.value=[],A.value=null):e.value||(A.value=$e(E.value).add(1,"month").format("YYYY-MM-DD")))});const ue=z(1);return{timeSlotId:t,dialogTimeSlotCreationProfileAddress:k,isDialogTimeSlotOpen:i,saveToLocalStorage:P,hasErrorDate:Y,isEditing:e,selectedProfile:r,selectedAddress:a,selectedProfiles:s,selectedAddresses:l,selectedDate:E,selectedDateEnd:A,isIndefinite:D,selectedStartTime:T,selectedEndTime:O,color:o,selectedAppointmentReasons:N,hasOnlyPresentialReasons:ne,acceptRemote:V,selectedDays:j,onOpen:he,formValid:M,repeatTimeSlot:q,isRemote:I,isPresential:W,openDialogWithDateTime:oe,openDialogWithEvent:re,resetData:ee,toggleDialogTimeSlot:U,everyXWeek:ue,resetDialogTimeSlotCreationProfileAddress:te,isConflictModalOpen:y,conflictTimeslot:_,openConflictModal:ae,closeConflictModal:w,deleteConflictModal:x,isCurrentTimeslotRepeat:S,startHour:f,startMinute:h,endHour:g,endMinute:v,dialogYouNeedProfilesAndAddress:d}});var x4;(function(e){e.DragAndDrop="dragAndDrop",e.EventModal="eventModal",e.ScrollController="scrollController",e.EventRecurrence="eventRecurrence",e.Resize="resize",e.CalendarControls="calendarControls"})(x4||(x4={}));class rSe extends Error{constructor(t){super(`Invalid time string: ${t}`)}}const aSe=/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,oSe=1.6666666666666667,sSe=e=>{if(!aSe.test(e))throw new rSe(e);const[t,n]=e.split(":").map(r=>parseInt(r,10));let i=(n*oSe).toString();return i.split(".")[0].length<2&&(i=`0${i}`),Number(t+i)};var $b;(function(e){e.Day="day",e.Week="week",e.MonthGrid="month-grid",e.MonthAgenda="month-agenda"})($b||($b={}));class lSe{constructor(t={}){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:x4.ScrollController}),Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"observer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hasScrolledSinceViewRender",{enumerable:!0,configurable:!0,writable:!0,value:!1})}init(t){this.$app=t,this.setInitialScroll(t),this.setUpViewChangeEffect()}setInitialScroll(t){t.elements.calendarWrapper.querySelector(".sx__time-grid-day")?this.scrollOnRender():this.waitUntilGridDayExistsThenScroll()}setUpViewChangeEffect(){sc(()=>{var t,n;this.hasScrolledSinceViewRender=!1,($b.Day===((t=this.$app)===null||t===void 0?void 0:t.calendarState.view.value)||$b.Week===((n=this.$app)===null||n===void 0?void 0:n.calendarState.view.value))&&this.setInitialScroll(this.$app)})}scrollOnRender(){this.scrollTo(this.config.initialScroll||"07:50")}destroy(){var t;(t=this.observer)===null||t===void 0||t.disconnect()}scrollTo(t){if(!this.$app)throw new Error("[Schedule-X error]: Plugin not yet initialized. You cannot scroll before the calendar is rendered. For configuring the initial scroll, use the `initialScroll` parameter");const n=this.$app,i=n.config.weekOptions.gridHeight/(n.config.timePointsPerDay/100),r=sSe(t),s=(n.config.isHybridDay&&r<n.config.dayBoundaries.start?2400-n.config.dayBoundaries.start+r:r-n.config.dayBoundaries.start)/100*i;n.elements.calendarWrapper.querySelector(".sx__view-container").scroll(0,s)}waitUntilGridDayExistsThenScroll(){this.observer=new MutationObserver(t=>{t.forEach(n=>{var i;const r=Array.from(n.addedNodes).find(a=>a instanceof HTMLElement?a.classList.contains("sx__time-grid-day"):!1);n.type==="childList"&&r&&!this.hasScrolledSinceViewRender&&(this.scrollOnRender(),this.hasScrolledSinceViewRender=!0,(i=this.observer)===null||i===void 0||i.disconnect())})}),this.observer.observe(this.$app.elements.calendarWrapper,{childList:!0,subtree:!0})}}const uSe=(e={})=>new lSe(e);$e.extend(Nm);$e.extend(Im);const cSe=vn(),dSe=15,fSe="m",Eg=Pi("dialog-practitioner-appointment",()=>{const e=z(!1),t=z(null),n=z(!1),i=Un(),r=z(!1),a=z(null),o=z(null),s=z(null),l=z($e().add(1,"hour").minute(0).format("HH:mm")),u=B(()=>d.value?$e(`${s.value} ${l.value}`).add(d.value.duration,"minutes").format("HH:mm"):$e().add(dSe,fSe).format("HH:mm")),c=z(null),d=z(null),f=z("in-person"),h=z(""),m=B(()=>{const I=$e(`${s.value} ${l.value}`,"YYYY-MM-DD HH:mm"),W=$e(`${s.value} ${u.value}`,"YYYY-MM-DD HH:mm");return W.isBefore(I)||W.isSame(I)}),g=z(0),v=z(0),y=B(()=>f.value=="remote"),_=B(()=>f.value=="in-person"),S=z(""),w=(I,W)=>{j(),s.value=$e(I,"YYYY-MM-DD HH:mm").toDate(),l.value=I.split(" ")[1],v.value=Number(I.split(":")[1]),g.value=Number(I.split(" ")[1].split(":")[0]),n.value=!0};Ve(n,()=>{n.value||j()});const x=async()=>{const I=$e().format("YYYY-MM-DD HH:mm");l.value=I.split(" ")[1],n.value=!n.value,n.value&&!e.value&&j()},k=z(!1),P=z(""),E=z(""),A=z(""),D=z(""),T=z(!0),O=()=>{k.value=!1,P.value=""};Ve([A,E,P],([I,W,te],[he,oe,U])=>{k.value&&(o.value={firstName:I,lastName:W,email:te})});const N=Uo(),V=B(()=>{const I=N.appointmentReasons;return Array.isArray(I)?I:[]}),j=()=>{var I;t.value=null,e.value=!1,c.value=null,s.value=null,l.value=$e().add(1,"hour").minute(0).format("HH:mm"),d.value=((I=V.value)==null?void 0:I[0])||null,f.value="in-person",O(),o.value=null,h.value="",E.value="",A.value="",S.value="",P.value=""},q=Xl();return{id:t,isOpen:n,hasErrorDate:m,isEditing:e,selectedProfile:a,selectedAddress:c,selectedDate:s,selectedStartTime:l,selectedEndTime:u,selectedPatient:o,selectedAppointmentReason:d,acceptRemote:f,description:h,isRemote:y,isPresential:_,isNewPatient:k,newPatientEmail:P,newPatientPhone:D,newPatientLastName:E,newPatientFirstName:A,fileteredAppointmentReason:V,remoteAppointmentLink:S,closeNewPatient:O,createAppointment:()=>{var W,te;y.value&&((W=i.user)!=null&&W.hasVisioToolFeature)&&T.value&&!((te=S.value)!=null&&te.includes("/appointment/"))&&(S.value="");const I={owner:o.value.id?o.value.id:null,firstNamePatient:k.value?A.value:o.value.firstName,lastNamePatient:k.value?E.value:o.value.lastName,emailPatient:k.value?P.value:o.value.email,address:c.value.id,appointmentReason:d.value.id,phoneNumber:k.value?D.value:o.value.phoneNumber,dateTime:$e(`${$e(s.value).format("YYYY-MM-DD")} ${Number(g.value)<10?"0"+Number(g.value):Number(g.value)}:${Number(v.value)<10?"0"+Number(v.value):Number(v.value)}`,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm"),remote:y.value,presential:_.value,comment:h.value,meetingLink:S.value,useInternalVisioTool:T.value,timezone:$e.tz.guess()};q.handleCreateAppointment(I)},updateAppointment:async()=>{var W,te;y.value&&((W=i.user)!=null&&W.hasVisioToolFeature)&&T.value&&!((te=S.value)!=null&&te.includes("/appointment/"))&&(S.value="");const I={appointmentReason:d.value.id,dateTime:$e(`${$e(s.value).format("YYYY-MM-DD")} ${Number(g.value)<10?"0"+Number(g.value):Number(g.value)}:${Number(v.value)<10?"0"+Number(v.value):Number(v.value)}`,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm"),remote:y.value,presential:_.value,comment:h.value,timezone:$e.tz.guess(),meetingLink:y.value?S.value:"",useInternalVisioTool:T.value,address:c.value.id};await q.handleUpdateAppointment(t.value,I)},openDialogWithDateTime:w,resetData:j,toggleDialog:x,toggleDialogModify:I=>{var W,te;if(n.value=!n.value,e.value=!e.value,I){o.value=I.value.patient;const{appointmentReason:{profile:he}}=I.value,{profiles:oe}=Ho(),{addresses:U}=hl();a.value=oe.find(ee=>ee.id===he.id),c.value=U.find(ee=>ee.id===I.value.address.id),d.value=I.value.appointmentReason,f.value=I.value.acceptRemote,h.value=I.value.description,s.value=$e(I.value.start,"YYYY-MM-DD HH:mm").toDate(),v.value=Number(I.value.start.split(":")[1]),g.value=Number(I.value.start.split(" ")[1].split(":")[0]),t.value=I.value.id,S.value=I.value.meetingLink,(W=S.value)!=null&&W.includes("/appointment/")||(S.value==""||S.value==null)&&((te=i.user)==null?void 0:te.hasVisioToolFeature)==!0?T.value=!0:T.value=!1}},startHour:g,startMinute:v,useInternalVisioTool:T,userStore:i,patientHistories:async(I,W)=>{try{if(r.value)return;r.value=!0;const te=await cSe.get(`/appointment/${I}/patient/${W}`);return r.value=!1,te}catch{}finally{r.value=!1}},loadingHistory:r}}),yh=Pi("vacation-event",()=>{const e=vn(),{t}=gn(),n=z([]),i=z(!1);z([]);const r=Ss("cached-vacations",[]),a=async()=>{if(r.value.length)try{n.value=r.value}catch(c){console.error("Failed to parse cached vacation data:",c)}else await s()},o=c=>c.map(d=>{const f=$e(d.startDate).format("YYYY-MM-DD HH:mm"),h=$e(d.endDate).format("YYYY-MM-DD HH:mm");return{id:d.id,title:t("dashboard.time-slot.dialogVacation.vacation"),start:f,end:h,type:"VacationEvent"}}),s=async()=>{try{const c=await e.get("/vacation/all");if(c.status!==200)throw Error(JSON.stringify(c));n.value=o(c.data),r.value=n.value,i.value=!0}catch(c){console.error("Failed to fetch vacation events:",c)}};return{vacations:n,initVacations:async()=>{try{await a(),i.value==!1&&await s()}catch{nt.error(t("dashboard.time-slot.errorGetTimeSlot"))}},refreshVacations:async()=>{try{const c=await e.get("/vacation/all");if(c.status!==200)throw Error(JSON.stringify(c));n.value=o(c.data),i.value=!0,r.value=n.value}catch(c){console.error("Failed to refresh vacation events:",c)}},cachedVacations:r}});$e.extend(Nm);$e.extend(Im);const lS=vn(),{t:Rs}=_s.global,lm=Pi("timeslot",()=>{const e=it([]),t=ly(),n=Cs(),i=hl(),r=async(y,_,S,w,x,k)=>{try{const P=await lS.get(`/agenda/agenda?profiles=${y.join(",")}&addresses=${_.join(",")}&appointmentReason=${S.join(",")}&start=${x}&end=${k}&owner=${w||""}&agendaType=time-slot`);if(P.status!==200)throw Error(JSON.stringify(P));e.value=a(P.data.timeslots)}catch(P){console.error(P)}},a=y=>{const _=Uo();return[...y.map(S=>{const w=S.timeslot,{start:x,end:k}=S;let P="in-person";w.presential&&w.remote?P="both":w.presential?P="in-person":w.remote&&(P="remote");let E="yes";w.weekRepeat||(E="no");const A=w.agenda.agendaType=="old"?w.agenda.profile.id:null;return w.agenda.agendaType=="old"?w.agenda.address.id:w.address.id,w.timezone?w.timezone:$e.tz.guess(),{id:S.id,type:"TimeSlotEvent",start:$e(x).utc().tz($e.tz.guess()).format("YYYY-MM-DD HH:mm"),end:$e(k).utc().tz($e.tz.guess()).format("YYYY-MM-DD HH:mm"),dateEnd:w.dateEnd?$e.utc(w.dateEnd).tz($e.tz.guess()).subtract(1,"day").format("YYYY-MM-DD"):null,title:(()=>{const D=w.appointmentReasons.map(T=>T.label).join(", ");return D.length>40?D.slice(0,40)+"...":D})(),description:w.appointmentReasons.map(D=>`${D.label} : ${D.description}`).join(` `),location:`Remote : ${w.remote}, Presential : ${w.presential}`,calendarId:String(fj.PROFILE_1),appointmentReasons:w.appointmentReasons.map(D=>({...D,delayBeforeConfirm:D.delayBeforeConfirm,remote:D.remote?"yes":"no",profile:{id:A}})),profiles:w.profiles,profileId:w.agenda.agendaType=="old"?w.agenda.profile.id:null,addressId:w.agenda.agendaType=="old"?w.agenda.address.id:w.address.id,acceptRemote:P,days:w.days.sort(),weekRepeat:E,weekRepetition:w.weekRepetition?w.weekRepetition:1,timeSlotId:w.id,color:w.color?w.color:"#4467c5",profileColor:pj[u.profiles.findIndex(D=>D.id==A)],appointmentReasonColor:hj[_.appointmentReasons.findIndex(D=>D.id==w.appointmentReasons[0].id)]}})]},o=y=>y.map(_=>_.id),s=y=>y.map(_=>_.id),l=z("");Un();const u=Ho(),c=yh(),d=async({profileIds:y,addressIds:_,appointmentReasonIds:S,ownerId:w,start:x,end:k}={profileIds:null,addressIds:null,appointmentReasonIds:null,ownerId:null,start:null,end:null})=>{try{Yr.start(),um.value.events.set([]),await c.initVacations(),await i.initAddresses(),_||(_=o(i.addresses)),await u.initProfiles(),y||(y=s(u.profiles));const P=Uo();await P.fillAppointmentReasons(),S||(S=P.appointmentReasons.map(A=>A.id)),x===null&&(x=$e(Ja.$app.calendarState.range.value.start,"YYYY-MM-DD HH:mm").toISOString()),k===null&&(k=$e(Ja.$app.calendarState.range.value.end,"YYYY-MM-DD HH:mm").add(1,"minute").toISOString()),await r(y,_,S,w,x,k);const E=[...e.value,...c.vacations];um.value.events.set(E),f()}catch(P){console.error(P),nt.error(Rs("dashboard.time-slot.errorGetTimeSlot"))}Yr.stop()},f=()=>{function y(S){return S.map(k=>$e(k,"YYYY-MM-DD HH:mm")).reduce((k,P)=>k.hour()<P.hour()||k.hour()===P.hour()&&k.minute()<P.minute()?k:P).format("YYYY-MM-DD HH:mm")}if(!e.value.length)return;const _=y(e.value.map(S=>S.start));dj.scrollTo(_.split(" ")[1])},h=z(!1),m=async(y,_)=>{var w,x;try{h.value=!0;let k;if(console.log("no verify"),y.weekRepeat,n.isEditing&&n.repeatTimeSlot==="yes")Hn.emit("openModalConfirm",{mode:"edition",message:"",messageChangeAll:"",messageChangeSingle:"",change:_});else{let P;P=n.isEditing?Rs("dashboard.time-slot.confirmEditTimeSlotMessage"):Rs("dashboard.time-slot.confirmCreateTimeSlotMessage"),Ow.confirm({title:n.isEditing?Rs("dashboard.time-slot.confirmEditTimeSlot"):Rs("dashboard.time-slot.confirmCreateTimeSlot"),message:P,optionsConfirm:{onCancel(){l.value=""},onConfirm(){v(y,_)}},cancelBtnLabel:Rs("dashboard.time-slot.cancel"),confirmBtnLabel:Rs("dashboard.time-slot.confirm")})}}catch(k){console.error("error in create or uPdate",k),nt.error((x=(w=k.response)==null?void 0:w.data)==null?void 0:x.message),h.value=!1}h.value=!1},g={create:{call:async(y,_="single")=>{try{return await lS.post("/timeslot/create",y,{headers:{"Content-Type":"application/json"}})}catch(S){S.response.status==422?(S.response.data.message&&nt.error(S.response.data.message),S.response.data.appointmentReasons&&(l.value=S.response.data.appointmentReasons,nt.error(S.response.data.appointmentReasons)),n.openConflictModal(S.response.data.timeslot)):nt.error(Rs("dashboard.time-slot.errorCreateTimeSlot"))}},success:()=>{nt.success(Rs("dashboard.time-slot.successCreateTimeSlot"))},error:()=>{Yr.stop()}},edit:{call:async(y,_="single")=>{try{return await lS.put(`/timeslot/${n.timeSlotId}/update?change=${_}`,y,{headers:{"Content-Type":"application/json"}})}catch(S){S.response.status==422&&(nt.error(S.response.data.message),n.openConflictModal(S.response.data.timeslot))}},success:()=>{nt.success(Rs("dashboard.time-slot.successUpdateTimeSlot"))},error:()=>{Yr.stop()}}},v=async(y,_)=>{l.value="";const S=n.isEditing?g.edit:g.create;Yr.start();try{const w=await S.call(y,_);if(w.status!=200)throw Error(JSON.stringify(w));nt.success(Rs("dashboard.time-slot.successOperation")),S.success(),t.fetchDashboardStatus(),await d(),n.isDialogTimeSlotOpen&&n.toggleDialogTimeSlot()}catch{S.error(),Yr.stop()}Hn.emit("closeTimeslotConfirmDialog"),Yr.stop()};return{timeSlots:e,loading:h,initTimeSlots:d,formatResponse:a,handleCreateOrUpdateTimeSlot:m,handleConfirmTimeSlot:v,errors:l,scrollToFirstHour:f}});var k4;(function(e){e.DragAndDrop="dragAndDrop",e.EventModal="eventModal",e.ScrollController="scrollController",e.EventRecurrence="eventRecurrence",e.Resize="resize",e.CalendarControls="calendarControls",e.Sidebar="sidebar",e.Header="header"})(k4||(k4={}));const hSe=()=>({name:k4.Header,textSwitchBtn:mr("")}),dj=uSe({initialScroll:"05:50"}),{updateSidebarState:pSe}=Rm(),Ab="YYYY-MM-DD HH:mm",mSe="fr-FR",vSe=[E3e,lj,w3e],cs=eSe(),gSe=[],ySe=[cs,G3e(),X3e(),Ja,dj,hSe()];var fj=(e=>(e[e.PROFILE_1=0]="PROFILE_1",e[e.PROFILE_2=1]="PROFILE_2",e[e.PROFILE_3=2]="PROFILE_3",e))(fj||{});const _Se={0:{colorName:"profile1",lightColors:{main:"#ebba55",container:"#ebba55aa",onContainer:"#000"},darkColors:{main:"#fff5c0",onContainer:"#fff5de",container:"#a29742"}},1:{colorName:"profile2",lightColors:{main:"#f91c45",container:"#ffd2dc",onContainer:"#59000d"},darkColors:{main:"#ffc0cc",onContainer:"#ffdee6",container:"#a24258"}},2:{colorName:"profile3",lightColors:{main:"#1cf9b0",container:"#dafff0",onContainer:"#004d3d"},darkColors:{main:"#c0fff5",onContainer:"#e6fff5",container:"#42a297"}}},hj=["#4467C5","#1d98ba","#3367c5","#32cb90","#9ac465","#fd552f","#f78d37","#ebba55","#9a8cd3","#f59ca4","#F5DAD2","#FCFFE0","#BACD92","#75A47F","#8B322C","#DD5746","#FFCF96","#FF8080","#FB88B4","#F9F07A","#B7C9F2","#9195F6","#337357","#FFD23F","#EE4266","#5E1675","#59D5E0","#F5DD61","#FAA300","#F4538A","#C0D6E8","#FBF8DD","#E9C874"],pj=["#24DFD5","#24DFD5","#1AAAEB"],mj=()=>In.currentRoute.value.name==="DashboardAppointment",vj=()=>In.currentRoute.value.name==="DashboardTimeSlot",gj=(e,t=null)=>{mj()&&Eg().openDialogWithDateTime(e,t),vj()&&Cs().openDialogWithDateTime(e,t)},bSe=e=>{const t={id:e.id,startDate:e.start,endDate:e.end,startMinute:Number(e.start.split(":")[1]),startHour:Number(e.start.split(" ")[1].split(":")[0]),endMinute:Number(e.end.split(":")[1]),endHour:Number(e.end.split(" ")[1].split(":")[0])};Hn.emit("updateVacation",t)},wSe=e=>{const t=$e(e,"YYYY-MM-DD").add(8,"h").format(Ab),n=$e(e,"YYYY-MM-DD").add(18,"h").format(Ab);gj(t,n)},SSe=e=>{},CSe=e=>{if(e.type==="VacationEvent"){bSe(e);return}else e.type==="PractitionerAppointmentEvent"?Hn.emit("openDetailsAppointmentWithEvent",e):e.type==="TimeSlotEvent"&&(console.log("calendarEvent",e),Cs().openDialogWithEvent(e))},ESe=e=>{const t=Cs(),n=hl(),i=Ho();if(!n.addresses||!n.addresses.length||!i.profiles||!i.profiles.length){t.dialogYouNeedProfilesAndAddress=!0;return}const r=0,a=$e(e.split(":")[0]+":"+r,"YYYY-MM-DD HH:mm").format(Ab),o=$e(e.split(":")[0]+":"+r,"YYYY-MM-DD HH:mm").add(1,"h").format(Ab);gj(a,o)},xSe={async onRangeUpdate(e){In.currentRoute.value.name==="DashboardTimeSlot"?await lm().initTimeSlots():In.currentRoute.value.name==="DashboardAppointment"&&await Xl().initAppointments()},onEventUpdate:SSe,onEventClick:CSe,onClickDate:wSe,onClickDateTime:ESe,onToggleSidePanel:e=>{pSe(e)},onAddTimeOff:()=>{Hn.emit("toggleVacationDialog")},async onChangeToAppointments(){mj()&&(lm().initTimeSlots(),await In.push({name:"DashboardTimeSlot"})),vj()&&(Xl().initAppointments(),await In.push({name:"DashboardAppointment"}))}},kSe={gridHeight:900,eventWidth:85,resizableSidebar:!1},TSe={views:vSe,events:gSe,plugins:ySe,locale:mSe,calendars:_Se,defaultView:lj.name,callbacks:xSe,weekOptions:kSe},um=it(Fwe(TSe)),Ld=vn();$e.extend(Nm);const Xl=Pi("practitioner-appointment",()=>{const e=Ho(),t=z(!1),{t:n}=gn(),i=z([]),r=z([]),a=z(!1),o=z(null),s=z(null),l=z($e().format("MMMM YYYY")),u=z({profileIds:null,addressIds:null,appointmentReasonIds:null,patientId:null}),c=z({}),d=async(T,O,N,V=null)=>{try{let j,q;In.currentRoute.value.name==="DashboardAppointment"&&In.currentRoute.value.query.viewMode==="lists"?(j=o.value,q=s.value):(j=$e(Ja.$app.calendarState.range.value.start,"YYYY-MM-DD HH:mm").toISOString(),q=$e(Ja.$app.calendarState.range.value.end,"YYYY-MM-DD HH:mm").toISOString());const ne=await Ld.get(`/agenda/agenda?profiles=${T.join(",")}&addresses=${O.join(",")}&appointmentReason=${N.join(",")}&start=${j}&end=${q}&owner=${V||""}&agendaType=appointment`);if(ne.status!==200)throw Error(JSON.stringify(ne));i.value=f(ne.data.appointments.map(ae=>ae.appointment))}catch(j){console.error(j)}},f=T=>{const O=Uo();return!T||!T.length?[]:T.map(N=>{const V=g.addresses.find(ne=>ne.id==(N.agenda.agendaType=="old"?N.agenda.address.id:N.address.id)),j=O.appointmentReasons.find(ne=>ne.id==N.appointmentReason),q=N.owner?N.owner.firstName+" "+N.owner.lastName:N.label;return{id:N.id,type:"PractitionerAppointmentEvent",start:$e(N.startDateTime).format("YYYY-MM-DD HH:mm"),end:$e(N.endDateTime).format("YYYY-MM-DD HH:mm"),title:q,address:V,patient:{...N.owner,fullName:q},appointmentReason:j,acceptRemote:N.presential?"in-person":"remote",description:N.comment??N.description,profile:N.profile,event_type:N.type,meetingLink:N.meetingLink,internalMeetingLink:N.internalMeetingLink,profileColor:pj[e.profiles.findIndex(ne=>ne.id==(N.agenda.agendaType=="old"?N.agenda.profile.id:N.profile.id))],appointmentReasonColor:hj[O.appointmentReasons.findIndex(ne=>ne.id==(N.agenda.agendaType=="old"?N.agenda.address.id:N.address.id))]}})},h=T=>T.map(O=>O.id),m=T=>T.map(O=>O.id);Un();const g=hl(),v=yh(),y=async({profileIds:T,addressIds:O,appointmentReasonIds:N,patientId:V}={profileIds:null,addressIds:null,appointmentReasonIds:null,patientId:null})=>{if(!t.value)try{Yr.start(),t.value=!0,um.value.events.set([]),await v.initVacations(),await g.initAddresses(),(!O||!O.length)&&(O=h(g.addresses)),await e.initProfiles(),(!T||!T.length)&&(T=m(e.profiles));const j=Uo();await j.fillAppointmentReasons(),(!N||!N.length)&&(N=j.appointmentReasons.map(ne=>ne.id)),await d(T,O,N,V);const q=[...i.value,...v.vacations];um.value.events.set(q)}catch(j){console.error(j),nt.error(n("common.error.errorHasOccurred"))}finally{t.value=!1,Yr.stop()}},_=z(!1),S=async T=>{var N,V;const O=Eg();try{_.value=!0;const j=await Ld.post("/appointment/",T,{headers:{"Content-Type":"application/json"}});if(j.status==422)j.data.message==="invalid date"?nt.error(n("common.error.invalidDate")):nt.error(j.data.message);else if(j.status!=200)throw Error(JSON.stringify(j));await y(u.value),nt.success(j.data.message),O.resetData(),O.isOpen=!1,c.value={}}catch(j){nt.error((V=(N=j.response)==null?void 0:N.data)==null?void 0:V.message),c.value=j.response.data,O.isOpen=!0}_.value=!1},w=T=>c.value[T]?c.value[T][0]:"",x=async(T,O)=>{var V,j;const N=Eg();try{_.value=!0;const q=await Ld.put("/appointment/"+T,O,{headers:{"Content-Type":"application/json"}});if(q.status==422){nt.error(q.data.message);return}else if(q.status!=200)throw Error(JSON.stringify(q));await y(u.value),nt.success(q.data.message),N.toggleDialogModify(null),Hn.emit("close-dialog-details"),c.value={}}catch(q){q.status===422?c.value=q.response.data:nt.error((j=(V=q.response)==null?void 0:V.data)==null?void 0:j.message)}_.value=!1},k=async T=>{var N,V;try{_.value=!0;const j=await Ld.delete("/appointment/"+T);if(j.status==422)nt.error(j.data.message);else if(j.status!=200)throw Error(JSON.stringify(j));await y(u.value),nt.success(j.data.message)}catch(j){nt.error((V=(N=j.response)==null?void 0:N.data)==null?void 0:V.message)}const O=Eg();O.resetData(),O.isOpen=!1,_.value=!1},P=T=>T.map(O=>({...O,fullName:O.firstName+" "+O.lastName}));return{appointments:i,patients:r,patientsLoaded:a,filter:u,loading:_,initAppointments:y,formatResponse:f,handleCreateAppointment:S,handleUpdateAppointment:x,handleDeleteAppointment:k,formatPatients:P,fillPatients:async(T="")=>{if(!a.value){try{_.value=!0;const O=await Ld.get("/appointment/users?name="+T);if(O.status!=200)throw Error(JSON.stringify(O));const N=P(O.data);N.sort((V,j)=>V.fullName.localeCompare(j.fullName)),r.value=N,a.value=!0}catch(O){console.error("Erreur lors du chargement des patients:",O),nt.error(n("common.error.errorHasOccurred"))}_.value=!1}},fill:d,errorMessage:w,confirmPatientPresence:async T=>{try{await Ld.post(`/appointment-notification/${T}/confirmed`,{headers:{"Content-Type":"application/json"}})}catch{nt.error(n("common.error.errorHasOccurred"))}},confirmPatientAbsence:async T=>{try{await Ld.post(`/appointment-notification/${T}/confirmed`,{headers:{"Content-Type":"application/json"}})}catch(O){nt.error(n("common.error.errorHasOccurred")),console.error(O)}},endDateRange:s,startDateRange:o,currentMonthYear:l}});_s.global;const PSe=vn(),Un=Pi("user",()=>{const e=Ss("user",{}),t=z(!1),n=X1(),i=fh(),r=ud(),a=hl(),o=z(document.visibilityState==="visible"),s=ow(),l=()=>{var x;const w=(x=e.value)==null?void 0:x.token;if(w){const k=lfe(w),P=$e.unix(k.exp);$e().isBefore(P)?(t.value=!0,E$({id:e.value.id,email:e.value.email})):c()}},u=async()=>{const w=await afe();d(w)},c=async()=>{var w;if(!((w=e.value)!=null&&w.refreshToken))return Promise.reject("No refresh token");try{const x=await PSe.post("/refresh-token",{refreshToken:e.value.refreshToken},{headers:{"Content-Type":"application/json"}});d({status:x.status,data:x.data})}catch(x){d({status:x.status,data:x.data})}},d=async w=>{if(w.status===200)return e.value=w.data,t.value=!0,E$({id:e.value.id,email:e.value.email}),e.value.profilType==="patient"||s.navRole==="patient"?s.toggleNavRole("patient"):e.value.profilType==="practitioner"&&s.toggleNavRole("praticien"),r4().updateStoredLocation({city:w.data.appointmentCity,coords:{latitude:w.data.appointmentLatitude,longitude:w.data.appointmentLongitude}}),(e.value.profilType==="patient"||e.value.profilType==="practitioner")&&(await V_e().fetchConsultations(),await z_e().fetchConsultations()),!0;f()},f=async(w=!0)=>{const x=i.fullPath;t.value=!1,await S(),w&&await n.push({name:"Login",query:{redirectUrl:x}}),e.value.addons=[],e.value=null,R_e();const k=Xl();k.patients=[],k.patientsLoaded=!1,a.cachedAddress=[];const P=Ho(),E=Uo(),A=yh();P.cachedProfiles=[],E.cachedRaisons=[],A.cachedVacations=[],localStorage.removeItem("user"),localStorage.removeItem("profiles"),localStorage.removeItem("vacations"),localStorage.removeItem("appointmentReasons"),localStorage.removeItem("dialogTimeSlotCreationProfileAddress");const D=Kr();D.resetSubscriptionStatusAfterLogout(),D.discountCodes=[],D.selectedAddons=[],r.step=null},h=z([]),m=async()=>{},g=z([]),v=async()=>{},y=w=>{var x;return((x=e.value.features)==null?void 0:x.includes(w))??!1},_=()=>{(function(w,x,k){console.log("load widget");const P=function(A,D){A.q.push(D)},E=w.document;w.Cal=w.Cal||function(){const A=w.Cal,D=arguments;if(A.loaded||(A.ns={},A.q=A.q||[],E.head.appendChild(E.createElement("script")).src=x,A.loaded=!0),D[0]===k){const T=function(){P(T,arguments)},O=D[1];T.q=T.q||[],typeof O=="string"?(A.ns[O]=A.ns[O]||T,P(A.ns[O],D),P(A,["initNamespace",O])):P(A,D);return}P(A,D)}})(window,"https://cal.holitime.org/embed/embed.js","init"),window.Cal("init","votre-lancement-holitime",{origin:"https://cal.holitime.org"}),window.Cal.ns["votre-lancement-holitime"]("ui",{cssVarsPerTheme:{light:{"cal-brand":"#153d35"},dark:{"cal-brand":"#12c29b"}},hideEventTypeDetails:!1,layout:"month_view"})},S=()=>!1;return{user:e,isLogged:t,init:l,login:u,refreshToken:c,handleLoginResponse:d,logout:f,profiles:h,initProfiles:m,addresses:g,initAddresses:v,unAuthorizedFeature:y,unloadCalWidget:S,loadCalWidget:_,isPageVisible:o}});function zA(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}const $Se=Ss("selected-pack",{}),Ob=B(()=>$Se.value),ASe=[{path:"/dashboard",component:()=>Ct(()=>import("./LayoutDashboard-ff0900d4.js"),["assets/LayoutDashboard-ff0900d4.js","assets/AppBarDashboard-4b2a402a.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/BeCalledBack.vue_vue_type_script_setup_true_lang-270c6fe6.js","assets/AppBarDashboard-a30bc732.css","assets/CheckIcon.vue_vue_type_script_setup_true_lang-a6716ca0.js","assets/XIcon.vue_vue_type_script_setup_true_lang-89a3207f.js","assets/RecapPlan.vue_vue_type_script_setup_true_lang-de111b5c.js","assets/InfoIcon.vue_vue_type_script_setup_true_lang-6d931131.js","assets/BirthDate.vue_vue_type_script_setup_true_lang-25933849.js","assets/EnvelopeIcon.vue_vue_type_script_setup_true_lang-7e0ca338.js","assets/AppointmentHistoryCard-eea92950.js","assets/AppointmentHistoryCard-b0712132.css","assets/parsePhoneNumber-cd7cb389.js","assets/LayoutDashboard-24131152.css"]),children:[{path:"",name:"DashboardHome",component:()=>Ct(()=>import("./Home-ef1dd1c3.js"),["assets/Home-ef1dd1c3.js","assets/Home-eaad31dc.css"]),meta:{ogDescription:'La plateforme dédiée aux pratiques de bien-être naturelles et holistiques"',title:"Holitime - Dashboard",ogTitle:"Holitime - Dashboard",name:"Tableau de bord"}},{path:"/sponsorship",name:"AffiliateDashboard",component:()=>Ct(()=>import("./AffiliateDashboard-eac831b8.js"),["assets/AffiliateDashboard-eac831b8.js","assets/AffiliateDashboard-a294faf8.css"]),meta:{title:"Holitime - Parrainage",name:"Parrainage"}},{path:"address",name:"DashboardAddress",component:()=>Ct(()=>Promise.resolve().then(()=>c6e),void 0),meta:{title:"Holitime - Adresse",name:"Mes Adresses"}},{path:"time-slot",name:"DashboardTimeSlot",component:()=>Ct(()=>Promise.resolve().then(()=>p7e),void 0),meta:{title:"Holitime - Créneaux",name:"Mes Créneaux"}},{path:"appointment",name:"DashboardAppointment",component:()=>Ct(()=>Promise.resolve().then(()=>rOe),void 0),meta:{title:"Holitime - Rendez-vous",name:"Mes Rendez-vous"},beforeEnter:(e,t,n)=>{e.query.viewMode?n():n({...e,query:{...e.query,viewMode:"calendar"}})}},{path:"profile",name:"DashboardProfile",component:()=>Ct(()=>Promise.resolve().then(()=>KBe),void 0),meta:{title:"Holitime - Profil",name:"Mes Profils"},beforeEnter:(e,t,n)=>{e.query.tab?n():n({...e,query:{...e.query,tab:"info"}})}},{path:"subscription",name:"DashboardSubscription",component:()=>Ct(()=>Promise.resolve().then(()=>Wqe),void 0),meta:{title:"Holitime - Abonnement",name:"Mon abonnement"}},{path:"reset-password",name:"ForgotPassword",component:()=>Ct(()=>import("./ForgotPassword-4c01e7da.js"),[]),meta:{title:"Holitime - réinitialisation du mot de passe",name:"Mot de passe oublié"}},{path:"appointments-patients",name:"DashboardAppointmentsPatients",component:()=>Ct(()=>import("./AppointmentPatient-7c5deccf.js"),["assets/AppointmentPatient-7c5deccf.js","assets/EnvelopeIcon.vue_vue_type_script_setup_true_lang-7e0ca338.js","assets/agendaDetails-949258e8.js","assets/parsePhoneNumber-cd7cb389.js","assets/DeleteIcon.vue_vue_type_script_setup_true_lang-b0f27621.js","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/AppointmentPatient-c602f125.css"]),meta:{title:"Holitime - Rendez-vous patients",name:"Mes rendez-vous"},beforeEnter:(e,t,n)=>{e.query.tab?n():n({...e,query:{...e.query,tab:"upcoming_event"}})}},{path:"avis",name:"DashboardAppointmentsPatientsAvis",component:()=>Ct(()=>import("./AppointmentPatient-7c5deccf.js"),["assets/AppointmentPatient-7c5deccf.js","assets/EnvelopeIcon.vue_vue_type_script_setup_true_lang-7e0ca338.js","assets/agendaDetails-949258e8.js","assets/parsePhoneNumber-cd7cb389.js","assets/DeleteIcon.vue_vue_type_script_setup_true_lang-b0f27621.js","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/AppointmentPatient-c602f125.css"]),meta:{ogDescription:'La plateforme dédiée aux pratiques de bien-être naturelles et holistiques"',title:"Holitime - Rendez-vous patients",ogTitle:"Holitime - Rendez-vous patients"}},{path:"legal-support",name:"DashboardLegalSupport",component:()=>Ct(()=>import("./LegalSupport-f22f9c92.js"),["assets/LegalSupport-f22f9c92.js","assets/LegalSupport-e837d9ec.css"]),meta:{title:"Holitime - Accompagnement Juridique",name:"Accompagnement juridique"},beforeEnter:(e,t,n)=>{Un().user.legal.isLinkActive?n():n({name:"DashboardHome"})}},{path:"patient-lists",name:"DashboardPatientLists",component:()=>Ct(()=>import("./PatientLists-1e651a4d.js"),[]),meta:{title:"Holitime - Mes Patients"}},{path:"discipline-lists",name:"DashboardDisciplines",component:()=>Ct(()=>import("./DisciplineLists-a20237eb.js"),[]),meta:{title:"Holitime - Mes Disciplines"}},{path:"pratitionners-lists",name:"DashboardPraticienLists",component:()=>Ct(()=>import("./PratitionnerLists-20dc56c7.js"),[]),meta:{title:"Holitime - Mes Praticiens"}},{path:"tracking-lists",name:"DashboardTrackingLists",component:()=>Ct(()=>import("./Suivis-ee384cd8.js"),[]),meta:{title:"Holitime - Ma liste de suivis"}},{path:"profile-lists",name:"DashboardMobileProfilLists",component:()=>Ct(()=>import("./ProfileLists-d690f32d.js"),["assets/ProfileLists-d690f32d.js","assets/ProfileLists-3c667b7f.css"]),meta:{title:"Listes de profiles"}},{path:"settings",name:"DashboardSettings",component:()=>Ct(()=>import("./Settings-ed3b6e4e.js"),["assets/Settings-ed3b6e4e.js","assets/BirthDate.vue_vue_type_script_setup_true_lang-25933849.js","assets/country.utils-72de2bfe.js","assets/ResetPasswordForm.vue_vue_type_style_index_0_sccoped_true_lang-e87798e6.js","assets/DeleteIcon.vue_vue_type_script_setup_true_lang-b0f27621.js","assets/ResetPasswordForm-e95ab426.css","assets/Settings-211d1c5b.css"]),meta:{title:"Holitime - Paramètres",name:"Paramètres"}},{path:"clients",name:"DashboardClients",component:()=>Ct(()=>import("./Clients-c2776aed.js"),["assets/Clients-c2776aed.js","assets/EnvelopeIcon.vue_vue_type_script_setup_true_lang-7e0ca338.js","assets/GoogleIcon.vue_vue_type_script_setup_true_lang-185158a8.js","assets/parsePhoneNumber-cd7cb389.js","assets/index-72b3bdb7.js","assets/index-32859929.css","assets/AppointmentHistoryCard-eea92950.js","assets/AppointmentHistoryCard-b0712132.css","assets/Clients-b2c9f31e.css"]),meta:{title:"Holitime - Fiche client",name:"Mes clients"}}]},{path:"/onboarding",component:()=>Ct(()=>import("./BlankDashboard-a0e0ac18.js"),["assets/BlankDashboard-a0e0ac18.js","assets/AppBar-8194a01c.js","assets/logo-horizontal-dc50b46c.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/VSecondaryBtn-a2e49935.js","assets/VSecondaryBtn-d558369c.css","assets/AppBar-7ae7700d.css","assets/BlankDashboard-73552114.css"]),children:[{path:"",name:"Onboarding",component:()=>Ct(()=>import("./PractitionerOnboarding-ed4a5377.js"),["assets/PractitionerOnboarding-ed4a5377.js","assets/BirthDate.vue_vue_type_script_setup_true_lang-25933849.js","assets/country.utils-72de2bfe.js","assets/ResetPasswordForm.vue_vue_type_style_index_0_sccoped_true_lang-e87798e6.js","assets/DeleteIcon.vue_vue_type_script_setup_true_lang-b0f27621.js","assets/ResetPasswordForm-e95ab426.css","assets/PractitionerOnboarding-57440c67.css"]),meta:{title:"Holitime - Onboarding"}}]},{path:"/appointment/:meetId",component:()=>Ct(()=>import("./EmptyDashboard-fbd91018.js"),["assets/EmptyDashboard-fbd91018.js","assets/logo-horizontal-dc50b46c.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/VSecondaryBtn-a2e49935.js","assets/VSecondaryBtn-d558369c.css","assets/EmptyDashboard-64dfa6dd.css"]),children:[{path:"",name:"AppointmentMeetRedirect",component:()=>Ct(()=>import("./AppointmentMeetRedirect-c17a3eb7.js"),["assets/AppointmentMeetRedirect-c17a3eb7.js","assets/AppointmentMeetRedirect-c87496cb.css"]),meta:{title:"Holitime - Connexion à la visioconférence",name:"Connexion à la visioconférence"}}]},{path:"/",component:()=>Ct(()=>import("./Default-8a3a48cb.js"),["assets/Default-8a3a48cb.js","assets/AppBar-8194a01c.js","assets/logo-horizontal-dc50b46c.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/VSecondaryBtn-a2e49935.js","assets/VSecondaryBtn-d558369c.css","assets/AppBar-7ae7700d.css","assets/CrowdbunkerIcon.vue_vue_type_script_setup_true_lang-5783e9c5.js","assets/XIcon.vue_vue_type_script_setup_true_lang-89a3207f.js","assets/Default-7217971f.css"]),children:[{path:"",name:"Home",component:()=>Ct(()=>import("./Home-ecc3b24d.js"),["assets/Home-ecc3b24d.js","assets/PractitionerCard-19d7716e.js","assets/SearchPageHelper-1832333f.js","assets/PractitionerCard-c1bd0bf1.css","assets/ScalendarIcon.vue_vue_type_script_setup_true_lang-6aecba46.js","assets/MainSearchBar-171da578.js","assets/MainSearchBar-e4300170.css","assets/wave_green_bottom-783b99b6.js","assets/BeCalledBack.vue_vue_type_script_setup_true_lang-270c6fe6.js","assets/Home-a93d24b7.css"]),meta:{title:"Holitime - Bienvenue"}},{path:"/praticiens",name:"PractitionerPresentation",component:()=>Ct(()=>import("./PractitionerPresentation-07068ace.js"),["assets/PractitionerPresentation-07068ace.js","assets/ScalendarIcon.vue_vue_type_script_setup_true_lang-6aecba46.js","assets/PackagesMain-8f452a8e.js","assets/PackagesMain-7ed595a3.css","assets/BeCalledBack.vue_vue_type_script_setup_true_lang-270c6fe6.js","assets/PractitionerPresentation-8154ee4a.css"]),meta:{title:"Holitime - Praticiens"}},{path:"/partners",name:"Partners",component:()=>Ct(()=>import("./Ambassador-ce049250.js"),["assets/Ambassador-ce049250.js","assets/wave_green_bottom-783b99b6.js","assets/Ambassador-e72d1fd8.css"]),meta:{title:"Holitime - Partenaires"}},{path:"/cgu",name:"CGU",component:()=>Ct(()=>import("./CGU-9b44c055.js"),["assets/CGU-9b44c055.js","assets/CGU-41f12464.css"]),meta:{title:"Holitime - Conditions generale utilisation"}},{path:"/data-policy",name:"DataPolicy",component:()=>Ct(()=>import("./DataPolicy-93aba9b8.js"),["assets/DataPolicy-93aba9b8.js","assets/DataPolicy-3b546863.css"]),meta:{title:"Holitime - Politiques"}},{path:"/link-connect",name:"LinkConnect",component:()=>Ct(()=>import("./LinkConnect-b3e5efa3.js"),[]),meta:{title:"Holitime - link-connect"}},{path:"/email-verify",name:"EmailVerify",component:()=>Ct(()=>import("./EmailVerify-f4361727.js"),[]),meta:{title:"Holitime - Email Verify"}},{path:"/subscription",name:"Subscription",component:()=>Ct(()=>import("./Subscription-b00de8b7.js"),["assets/Subscription-b00de8b7.js","assets/RecapPlan.vue_vue_type_script_setup_true_lang-de111b5c.js","assets/Subscription-82d4e191.css"]),meta:{title:"Holitime - Souscription"}},{path:"/shedule-appointment/:id",name:"ScheduleAppointment",component:()=>Ct(()=>import("./ScheduleAppointment-dd9e71ee.js"),["assets/ScheduleAppointment-dd9e71ee.js","assets/GoogleIcon.vue_vue_type_script_setup_true_lang-185158a8.js","assets/agendaDetails-949258e8.js","assets/BirthDate.vue_vue_type_script_setup_true_lang-25933849.js","assets/ScheduleAppointment-e7f2c024.css"]),meta:{title:"Holitime - Calendrier"},beforeEnter:(e,t,n)=>{e.query.step?n():n({...e,query:{...e.query,step:"2"}})}},{path:"/:discipline/:city/:practitionerSlug",name:"PractitionerPublicProfile",component:()=>Ct(()=>import("./PractitionerPublicProfile-c485c48d.js"),["assets/PractitionerPublicProfile-c485c48d.js","assets/wave-6326c329.js","assets/PractitionerCard-19d7716e.js","assets/SearchPageHelper-1832333f.js","assets/PractitionerCard-c1bd0bf1.css","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/parsePhoneNumber-cd7cb389.js","assets/VerifiedBadge-dcfc458d.js","assets/VerifiedBadge-8cdb6ba3.css","assets/index-72b3bdb7.js","assets/index-32859929.css","assets/PractitionerPublicProfile-27961c9c.css"]),meta:{title:"Holitime",ogTitle:"",ogDescription:"",ogType:"profile",ogUrl:"",ogImage:"",ogSite_name:"Holitime",ogLocale:"fr_FR"}},{path:"/search",name:"SearchPage",component:()=>Ct(()=>import("./SearchPage-4cc0b2ae.js"),["assets/SearchPage-4cc0b2ae.js","assets/MainSearchBar-171da578.js","assets/MainSearchBar-e4300170.css","assets/VerifiedBadge-dcfc458d.js","assets/SearchPageHelper-1832333f.js","assets/VerifiedBadge-8cdb6ba3.css","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/SearchPage-ea7f85d5.css"]),meta:{title:"Holitime - Recherche"}},{path:"/:disciplineSlug",name:"DisciplineSearchPage",component:()=>Ct(()=>import("./SearchPage-4cc0b2ae.js"),["assets/SearchPage-4cc0b2ae.js","assets/MainSearchBar-171da578.js","assets/MainSearchBar-e4300170.css","assets/VerifiedBadge-dcfc458d.js","assets/SearchPageHelper-1832333f.js","assets/VerifiedBadge-8cdb6ba3.css","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/SearchPage-ea7f85d5.css"]),meta:{title:"Holitime"},beforeEnter:(e,t,n)=>{const i=e.meta.title.replace(":disciplineSlug",e.params.disciplineSlug);document.title=i+" - "+e.params.disciplineSlug,n()}},{path:"/:disciplineSlug/:city",name:"DisciplineCitySearchPage",component:()=>Ct(()=>import("./SearchPage-4cc0b2ae.js"),["assets/SearchPage-4cc0b2ae.js","assets/MainSearchBar-171da578.js","assets/MainSearchBar-e4300170.css","assets/VerifiedBadge-dcfc458d.js","assets/SearchPageHelper-1832333f.js","assets/VerifiedBadge-8cdb6ba3.css","assets/weekday-e5224c6e.js","assets/weekday-61a1c5ea.css","assets/SearchPage-ea7f85d5.css"]),meta:{title:"Holitime"},beforeEnter:(e,t,n)=>{const i=zA(e.params.disciplineSlug),r=zA(e.params.city),a=`${i} - ${r} | Prendre rendez-vous sur Holitime`,o=`Prenez rendez-vous avec un praticien de ${i} à ${r} sur Holitime`;document.title=a,document.querySelector('meta[property="og:title"]').setAttribute("content",a),document.querySelector('meta[property="og:description"]').setAttribute("content",o),n(),document.querySelector('meta[name="description"]').setAttribute("content",o)}},{path:"/404",name:"404",component:()=>Ct(()=>import("./PageNotFound-03f322e9.js"),[]),meta:{title:"Holitime - 404"}},{path:"/mission",name:"Mission",component:()=>Ct(()=>import("./Mission-05faad4e.js"),["assets/Mission-05faad4e.js","assets/wave-6326c329.js","assets/CrowdbunkerIcon.vue_vue_type_script_setup_true_lang-5783e9c5.js","assets/Mission-9a5cc289.css"]),meta:{title:"Mission - Holitime"}}]},{path:"/",component:()=>Ct(()=>import("./AuthLayout-8054f3f5.js"),["assets/AuthLayout-8054f3f5.js","assets/logo-horizontal-dc50b46c.js","assets/AppBarDashboard-4b2a402a.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/BeCalledBack.vue_vue_type_script_setup_true_lang-270c6fe6.js","assets/AppBarDashboard-a30bc732.css","assets/PraticienBenefits-7baa9ebb.js","assets/PraticienBenefits-25982a57.css","assets/AuthLayout-2a7607d1.css"]),children:[{path:"/login",name:"Login",component:()=>Ct(()=>import("./Login-843de904.js"),["assets/Login-843de904.js","assets/index-72b3bdb7.js","assets/index-32859929.css"]),meta:{ogTitle:"Espace Praticien/client - Connexion Sécurisée",ogDescription:`Utilisez notre outil de recherche avancée pour trouver le praticien qui correspond parfaitement à vos besoins. Consultez les profils détaillés, lisez les avis des patients et prenez rendez-vous en quelques clics.`,title:"Holitime - Connexion"}},{path:"/login-with-link",name:"LoginWithLink",component:()=>Ct(()=>import("./LoginWithLink-d219e055.js"),[]),meta:{ogTitle:"Espace Praticien/client - Connexion Sécurisée",ogDescription:`Utilisez notre outil de recherche avancée pour trouver le praticien qui correspond parfaitement à vos besoins. Consultez les profils détaillés, lisez les avis des patients et prenez rendez-vous en quelques clics.`,title:"Holitime - Connexion"}},{path:"/register",name:"Register",component:()=>Ct(()=>import("./Register-e158330e.js"),["assets/Register-e158330e.js","assets/PraticienBenefits-7baa9ebb.js","assets/PraticienBenefits-25982a57.css","assets/InfoIcon.vue_vue_type_script_setup_true_lang-6d931131.js","assets/country.utils-72de2bfe.js","assets/Register-266ca040.css"]),meta:{title:"Holitime - Inscription"},beforeEnter:(e,t,n)=>{e.query.role?n():n({...e,query:{...e.query,role:"praticien"}})}},{path:"/change-password-request",name:"RequestPassword",component:()=>Ct(()=>import("./ForgotPasswordRequest-a7409b9e.js"),[]),meta:{title:"Holitime - Password"}},{path:"/confirmation",name:"Confirmation",component:()=>Ct(()=>import("./RegisterConfirmation-32723182.js"),["assets/RegisterConfirmation-32723182.js","assets/RegisterConfirmation-73568189.css"]),meta:{title:"Holitime - Password"}}]},{path:"/progress",component:()=>Ct(()=>import("./RegisterProgress-dfa39e63.js"),["assets/RegisterProgress-dfa39e63.js","assets/AppBarDashboard-4b2a402a.js","assets/AuthMenu-f69250f7.js","assets/AuthMenu-76554b91.css","assets/BeCalledBack.vue_vue_type_script_setup_true_lang-270c6fe6.js","assets/AppBarDashboard-a30bc732.css"]),children:[{path:"reminder-pack",name:"ReminderPack",component:()=>Ct(()=>import("./ReminderPack-53a8f314.js"),["assets/ReminderPack-53a8f314.js","assets/PackagesMain-8f452a8e.js","assets/PackagesMain-7ed595a3.css"]),meta:{title:"Holitime - Subscription Lists",name:"Lists",layout:"remimder-pack"},beforeEnter:(e,t,n)=>{Un().user.profilType==="practitioner"&&!Un().user.isSignUpIncomplete?n({name:"ChangeSubscription"}):n()}},{path:"step2",name:"StepTwo",component:()=>Ct(()=>import("./StepTwo-35f86f42.js"),["assets/StepTwo-35f86f42.js","assets/CheckIcon.vue_vue_type_script_setup_true_lang-a6716ca0.js","assets/StepTwo-156fd382.css"]),meta:{title:"Holitime - Subscription Step 2",name:"Subscription Step 2"},beforeEnter:(e,t,n)=>{Ob.value&&!Ob.value.price&&Un().user.isSignUpIncomplete?n({name:"ReminderPack"}):e.query.nextStep?Un().user.isSignUpIncomplete?n():n({name:"DashboardSubscription"}):n({...e,query:{...e.query,nextStep:"subscription"}})}},{path:"change-subscription",name:"DashboardChangeSubscription",component:()=>Ct(()=>import("./ChangeSubscription-4bc5a620.js"),["assets/ChangeSubscription-4bc5a620.js","assets/PackagesMain-8f452a8e.js","assets/PackagesMain-7ed595a3.css","assets/ChangeSubscription-85b599c1.css"]),meta:{title:"Holitime - Changement d'Abonnement",name:"Changement d'abonnement"},beforeEnter:(e,t,n)=>{Kr().subscriptionStatus.monthsAlreadyPaid&&Kr().subscriptionStatus.monthsAlreadyPaid<40&&Kr().subscriptionStatus.status!=="active"&&Kr().subscriptionStatus.status!=="canceled"?n({name:"DashboardSubscription"}):n()}}]}],In=Xue({history:Tue({VITE_APP_ENV:"production",VITE_API_URL:"https://api.holitime.org",VITE_FRONT_URL:"https://holitime.org",VITE_STRIPE_PUBLIC_KEY:"pk_live_51PSyQ3RtGn4wziDXKZ6zOfPTWcuNvcliYAg0rVOAJE1LhiYIoTDl9Uz5gbZucdRLs0UjW9Mile0Pvll6GIwQ0NwD00vt2l5s3D",VITE_GEOCODE_EARTH_API_KEY:"ge-91e51166b78bb0ee",VITE_GOOGLE_MAPS_API_KEY:"AIzaSyC1nASQFlMZvAc93aRuW4r2OVRGJkT6zhQ",VITE_SEARCH_API_URL:"https://search.holitime.org",VITE_X_TYPESENSE_API_KEY:"LYKiC9aeiXd6NrfummDAkRG7lmbfu8oy",VITE_APP_VERSION:"v4.4.0",VITE_CLOUDFLARE_SITE_KEY:"0x4AAAAAAA5Y_kac8cNv9qcA",SUDO_GID:"0",npm_package_devDependencies__types_node:"^18.19.31",npm_package_dependencies__vueup_vue_quill:"^1.2.0",npm_package_dependencies_pinia:"^2.1.7",npm_package_dependencies__preact_signals:"^1.2.3",npm_package_dependencies__holitime_schedule_x_theme_default:"^1.58.2",USER:"buildbot",npm_package_devDependencies__types_google_maps:"^3.55.11",npm_package_devDependencies__babel_types:"^7.24.5",npm_config_version_commit_hooks:"true",npm_config_user_agent:"yarn/1.22.19 npm/? node/v18.20.8 linux x64",SENTRY_AUTH_TOKEN:"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",CI:"true",NODE_VERSION:"18",npm_package_devDependencies_unplugin_fonts:"^1.1.1",npm_package_devDependencies_cors:"^2.8.5",npm_package_dependencies_vue:"^3.2.0",npm_package_dependencies__uppy_core:"^3.11.1",npm_package_dependencies__unhead_vue:"^1.9.16",npm_package_dependencies__schedule_x_drag_and_drop:"^1.58.1",npm_config_bin_links:"true",YARN_VERSION:"1.22.19",CF_PAGES_COMMIT_SHA:"3da32bc89e751d43e858f4a507dc1e75fe3669b1",ROOT_DIR:"/",npm_node_execpath:"/opt/buildhome/.asdf/installs/nodejs/18.20.8/bin/node",npm_package_devDependencies_vite:"^4.5.3",npm_package_devDependencies_nodemon:"^3.1.0",npm_config_init_version:"1.0.0",SHLVL:"2",npm_package_dependencies__uppy_locales:"^3.5.3",HOME:"/opt/buildhome",npm_package_devDependencies_sass:"^1.76.0",npm_package_devDependencies__typescript_eslint_parser:"^6.21.0",npm_package_dependencies__uppy_webcam:"^3.4.1",npm_package_dependencies__holitime_schedule_x_shared:"^1.57.1",npm_package_dependencies__holitime_schedule_x_calendar:"^1.58.3",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_package_dependencies__uppy_dashboard:"^3.8.2",npm_package_scripts_server:"nodemon server/index.mjs",COREPACK_ROOT:"/opt/buildhome/.asdf/installs/nodejs/18.20.8/lib/node_modules/corepack",npm_package_dependencies__sentry_vite_plugin:"^2.16.1",npm_config_init_license:"MIT",NODE_OPTIONS:"--max_old_space_size=4096",YARN_WRAP_OUTPUT:"false",npm_package_dependencies_vue_meeting_selector:"^3.1.0",npm_config_version_tag_prefix:"v",npm_package_dependencies__holitime_schedule_x_calendar_controls:"^1.57.1",PKG_EXECPATH:"/opt/build/bin/build",npm_package_devDependencies_jsonwebtoken:"^9.0.2",npm_package_devDependencies_husky:"^8.0.3",npm_package_dependencies_dayjs:"^1.11.11",npm_package_description:"## Project setup",npm_package_devDependencies_typescript:"^5.4.5",npm_package_dependencies__sentry_vue:"^7.113.0",CF_PAGES_BRANCH:"master",npm_package_readmeFilename:"README.md",npm_package_devDependencies_vue_tsc:"^1.8.27",npm_package_dependencies_xlsx:"^0.18.5",npm_package_dependencies_roboto_fontface:"^0.10.0",npm_package_dependencies_jwt_decode:"^4.0.0",SUDO_UID:"0",COREPACK_ENABLE_DOWNLOAD_PROMPT:"1",npm_package_devDependencies_prettier:"^3.2.5",npm_package_devDependencies__types_vue_tel_input:"^2.1.6",npm_package_dependencies__uppy_aws_s3:"^3.6.2",npm_package_scripts_dev:"vite",LOGNAME:"buildbot",npm_package_devDependencies__vue_leaflet_vue_leaflet:"^0.10.1",npm_package_dependencies__vueuse_core:"^10.9.0",npm_package_dependencies__schedule_x_resize:"^1.58.1",npm_package_dependencies__schedule_x_event_recurrence:"^1.58.1",npm_package_dependencies_events:"^3.3.0",npm_package_dependencies__uppy_image_editor:"^2.4.5",npm_package_dependencies__uppy_drop_target:"^2.1.0",npm_package_dependencies__schedule_x_event_modal:"^1.58.1",npm_package_private:"true",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^6.21.0",npm_package_scripts_prepare:"husky install",npm_package_scripts_lint:"eslint . --fix --ignore-path .gitignore",npm_config_registry:"https://registry.yarnpkg.com",TERM:"unknown",npm_package_dependencies_vuetify:"^3.7.4",npm_package_dependencies_core_js:"^3.37.0",npm_package_devDependencies__vitejs_plugin_vue:"^4.6.2",npm_config_ignore_scripts:"",npm_config_version:"1.22.19",npm_package_dependencies_axios:"^1.7.7",PATH:"/tmp/yarn--1756322995583-0.32057545308655544:/opt/buildhome/repo/node_modules/.bin:/opt/buildhome/.config/yarn/link/node_modules/.bin:/opt/buildhome/.yarn/bin:/opt/buildhome/.asdf/installs/nodejs/18.20.8/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/buildhome/.asdf/installs/nodejs/18.20.8/lib/node_modules/npm/bin/node-gyp-bin:/opt/buildhome/.asdf/installs/nodejs/18.20.8/bin/node_modules/npm/bin/node-gyp-bin:/opt/buildhome/.asdf/plugins/nodejs/shims:/opt/buildhome/.asdf/installs/nodejs/18.20.8/bin:/opt/buildhome/.asdf/shims:/opt/buildhome/.asdf/bin:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.local/bin",NODE:"/opt/buildhome/.asdf/installs/nodejs/18.20.8/bin/node",CF_PAGES_URL:"https://ae529fdd.holitime.pages.dev",npm_package_dependencies_swiper:"^11.1.1",npm_package_name:"holitime-front",npm_package_dependencies_quill:"^1.3.7",npm_package_dependencies__holitime_schedule_x_vue:"^1.52.0",npm_package_devDependencies_leaflet:"^1.9.4",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies__vue_eslint_config_typescript:"^11.0.3",npm_lifecycle_script:"vue-tsc --noEmit && vite build",npm_package_dependencies_vue_tel_input:"^8.3.1",npm_package_dependencies_sweetalert2:"^11.10.8",npm_package_dependencies__uppy_file_input:"^3.1.2",npm_package_dependencies__mdi_font:"7.0.96",SUDO_COMMAND:"/opt/build/bin/build bash build.sh",npm_package_dependencies__holitime_schedule_x_translations:"^1.57.1",npm_config_version_git_message:"v%s",SHELL:"/bin/bash",npm_lifecycle_event:"build",npm_package_dependencies__holitime_schedule_x_sidebar:"^1.56.0",npm_package_version:"0.0.0",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_vue_i18n:"^9.13.1",npm_package_scripts_build:"vue-tsc --noEmit && vite build",REPO_DIR:"/opt/buildhome/repo",SUDO_USER:"root",npm_package_dependencies__schedule_x_scroll_controller:"^1.58.1",npm_package_devDependencies_vite_plugin_vuetify:"^1.0.2",npm_package_devDependencies_express:"^4.19.2",npm_package_dependencies_vue_router:"^4.3.2",npm_package_dependencies__schedule_x_current_time:"^1.58.1",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",npm_package_optionalDependencies__esbuild_darwin_arm64:"*",npm_package_dependencies__holitime_schedule_x_header:"^1.56.0",npm_config_strict_ssl:"true",npm_package_devDependencies_eslint_plugin_prettier:"^5.1.3",npm_package_dependencies_photoswipe:"^5.4.4",npm_package_dependencies__uppy_xhr_upload:"^3.6.6",PWD:"/opt/buildhome/repo",npm_execpath:"/opt/buildhome/.cache/node/corepack/v1/yarn/1.22.19/bin/yarn.js",npm_package_dependencies_p_queue:"^8.1.0",CF_PAGES:"1",npm_package_devDependencies_multer:"^1.4.5-lts.1",npm_package_devDependencies_eslint_plugin_vue:"^9.25.0",npm_package_dependencies_date_fns:"^4.1.0",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_dependencies__schedule_x_date_picker:"^1.58.1",npm_package_scripts_preview:"vite preview",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",INIT_CWD:"/opt/buildhome/repo",npm_package_dependencies_libphonenumber_js:"^1.11.9",NODE_ENV:"production"}.BASE_URL),routes:ASe,scrollBehavior(e,t,n){return n||(e.hash?{el:e.hash,behavior:"smooth"}:{top:0})}}),OSe=Ss("ref-slug",null);In.afterEach(e=>{e.hash||window.scrollTo(0,0),e.query.ref&&(OSe.value=Array.isArray(e.query.ref)?e.query.ref[0]:e.query.ref)});In.beforeEach((e,t,n)=>{var c;const i=ow();if(i.pageNotFound=!1,document.title=`${e.meta.title}`,document.querySelector('meta[property="og:title"]').setAttribute("content",`${e.meta.ogTitle?e.meta.ogTitle:"Holitime - Votre Portail vers le Bien-être Holistique et Naturel"}`),document.querySelector('meta[property="og:description"]').setAttribute("content",`${e.meta.ogDescription?e.meta.ogDescription:"La plateforme dédiée aux pratiques de bien-être naturelles et holistiques"}`),e.matched.length===0){i.pageNotFound=!0,n({name:"404"});return}const r=Un();if(Kr(),/^\/affiliation/.test(e.path)&&!r.isLogged){n({name:"Partners"});return}const l=/^\/(dashboard|onboarding|subscription|appointment)/.test(e.path),u=/^\/dashboard/;if(e.name==="Register"&&e.query.role==="praticien"&&e.query.step==="1"&&r.isLogged){n({name:"DashboardSettings"});return}if(e.name==="Login"&&r.isLogged){n({name:"DashboardSettings"});return}if(l&&!r.isLogged){n({name:"Login",query:{redirectUrl:e.fullPath}});return}if(u.test(e.path)&&e.name!=="ForgotPassword"&&e.name!=="EmailVerify"&&r.user.profilType==="practitioner"&&i.navRole==="praticien"&&r.user.isSignUpIncomplete)if(Ob.value&&!((c=Ob.value)!=null&&c.price)){n({name:"ReminderPack"});return}else{n({name:"StepTwo",query:{nextStep:"subscription"}});return}if(u.test(e.path)&&(i.navRole==="patient"||r.user.profilType==="patient")&&(e.name==="DashboardHome"||e.name==="DashboardAddress"||e.name==="DashboardTimeSlot"||e.name==="DashboardAppointment"||e.name==="DashboardProfile"||e.name==="DashboardLegalSupport"||e.name==="DashboardSubscription"||e.name==="DashboardClients")){n({name:"DashboardAppointmentsPatients"});return}else n()});In.afterEach(()=>{Yr.stop()});const on=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},_h="/assets/_close-88359872.svg";var yj={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(e,t){(function(i,r){e.exports=r()})(typeof self<"u"?self:ri,function(){return function(n){var i={};function r(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=i,r.d=function(a,o,s){r.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(o,"a",o),o},r.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},r.p="",r(r.s=109)}([function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(17),o=r(18),s=r(19),l=r(45),u=r(46),c=r(47),d=r(48),f=r(49),h=r(12),m=r(32),g=r(33),v=r(31),y=r(1),_={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:a.default,Format:o.default,Leaf:s.default,Embed:d.default,Scroll:l.default,Block:c.default,Inline:u.default,Text:f.default,Attributor:{Attribute:h.default,Class:m.default,Style:g.default,Store:v.default}};i.default=_},function(n,i,r){var a=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var S in _)_.hasOwnProperty(S)&&(y[S]=_[S])};return function(y,_){v(y,_);function S(){this.constructor=y}y.prototype=_===null?Object.create(_):(S.prototype=_.prototype,new S)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=function(v){a(y,v);function y(_){var S=this;return _="[Parchment] "+_,S=v.call(this,_)||this,S.message=_,S.name=S.constructor.name,S}return y}(Error);i.ParchmentError=o;var s={},l={},u={},c={};i.DATA_KEY="__blot";var d;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(d=i.Scope||(i.Scope={}));function f(v,y){var _=m(v);if(_==null)throw new o("Unable to create "+v+" blot");var S=_,w=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:S.create(y);return new S(w,y)}i.create=f;function h(v,y){return y===void 0&&(y=!1),v==null?null:v[i.DATA_KEY]!=null?v[i.DATA_KEY].blot:y?h(v.parentNode,y):null}i.find=h;function m(v,y){y===void 0&&(y=d.ANY);var _;if(typeof v=="string")_=c[v]||s[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)_=c.text;else if(typeof v=="number")v&d.LEVEL&d.BLOCK?_=c.block:v&d.LEVEL&d.INLINE&&(_=c.inline);else if(v instanceof HTMLElement){var S=(v.getAttribute("class")||"").split(/\s+/);for(var w in S)if(_=l[S[w]],_)break;_=_||u[v.tagName]}return _==null?null:y&d.LEVEL&_.scope&&y&d.TYPE&_.scope?_:null}i.query=m;function g(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];if(v.length>1)return v.map(function(w){return g(w)});var _=v[0];if(typeof _.blotName!="string"&&typeof _.attrName!="string")throw new o("Invalid definition");if(_.blotName==="abstract")throw new o("Cannot register abstract class");if(c[_.blotName||_.attrName]=_,typeof _.keyName=="string")s[_.keyName]=_;else if(_.className!=null&&(l[_.className]=_),_.tagName!=null){Array.isArray(_.tagName)?_.tagName=_.tagName.map(function(w){return w.toUpperCase()}):_.tagName=_.tagName.toUpperCase();var S=Array.isArray(_.tagName)?_.tagName:[_.tagName];S.forEach(function(w){(u[w]==null||_.className==null)&&(u[w]=_)})}return _}i.register=g},function(n,i,r){var a=r(51),o=r(11),s=r(3),l=r(20),u=String.fromCharCode(0),c=function(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]};c.prototype.insert=function(d,f){var h={};return d.length===0?this:(h.insert=d,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(h.attributes=f),this.push(h))},c.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},c.prototype.retain=function(d,f){if(d<=0)return this;var h={retain:d};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(h.attributes=f),this.push(h)},c.prototype.push=function(d){var f=this.ops.length,h=this.ops[f-1];if(d=s(!0,{},d),typeof h=="object"){if(typeof d.delete=="number"&&typeof h.delete=="number")return this.ops[f-1]={delete:h.delete+d.delete},this;if(typeof h.delete=="number"&&d.insert!=null&&(f-=1,h=this.ops[f-1],typeof h!="object"))return this.ops.unshift(d),this;if(o(d.attributes,h.attributes)){if(typeof d.insert=="string"&&typeof h.insert=="string")return this.ops[f-1]={insert:h.insert+d.insert},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof h.retain=="number")return this.ops[f-1]={retain:h.retain+d.retain},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this}}return f===this.ops.length?this.ops.push(d):this.ops.splice(f,0,d),this},c.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},c.prototype.filter=function(d){return this.ops.filter(d)},c.prototype.forEach=function(d){this.ops.forEach(d)},c.prototype.map=function(d){return this.ops.map(d)},c.prototype.partition=function(d){var f=[],h=[];return this.forEach(function(m){var g=d(m)?f:h;g.push(m)}),[f,h]},c.prototype.reduce=function(d,f){return this.ops.reduce(d,f)},c.prototype.changeLength=function(){return this.reduce(function(d,f){return f.insert?d+l.length(f):f.delete?d-f.delete:d},0)},c.prototype.length=function(){return this.reduce(function(d,f){return d+l.length(f)},0)},c.prototype.slice=function(d,f){d=d||0,typeof f!="number"&&(f=1/0);for(var h=[],m=l.iterator(this.ops),g=0;g<f&&m.hasNext();){var v;g<d?v=m.next(d-g):(v=m.next(f-g),h.push(v)),g+=l.length(v)}return new c(h)},c.prototype.compose=function(d){var f=l.iterator(this.ops),h=l.iterator(d.ops),m=[],g=h.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){for(var v=g.retain;f.peekType()==="insert"&&f.peekLength()<=v;)v-=f.peekLength(),m.push(f.next());g.retain-v>0&&h.next(g.retain-v)}for(var y=new c(m);f.hasNext()||h.hasNext();)if(h.peekType()==="insert")y.push(h.next());else if(f.peekType()==="delete")y.push(f.next());else{var _=Math.min(f.peekLength(),h.peekLength()),S=f.next(_),w=h.next(_);if(typeof w.retain=="number"){var x={};typeof S.retain=="number"?x.retain=_:x.insert=S.insert;var k=l.attributes.compose(S.attributes,w.attributes,typeof S.retain=="number");if(k&&(x.attributes=k),y.push(x),!h.hasNext()&&o(y.ops[y.ops.length-1],x)){var P=new c(f.rest());return y.concat(P).chop()}}else typeof w.delete=="number"&&typeof S.retain=="number"&&y.push(w)}return y.chop()},c.prototype.concat=function(d){var f=new c(this.ops.slice());return d.ops.length>0&&(f.push(d.ops[0]),f.ops=f.ops.concat(d.ops.slice(1))),f},c.prototype.diff=function(d,f){if(this.ops===d.ops)return new c;var h=[this,d].map(function(_){return _.map(function(S){if(S.insert!=null)return typeof S.insert=="string"?S.insert:u;var w=_===d?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),m=new c,g=a(h[0],h[1],f),v=l.iterator(this.ops),y=l.iterator(d.ops);return g.forEach(function(_){for(var S=_[1].length;S>0;){var w=0;switch(_[0]){case a.INSERT:w=Math.min(y.peekLength(),S),m.push(y.next(w));break;case a.DELETE:w=Math.min(S,v.peekLength()),v.next(w),m.delete(w);break;case a.EQUAL:w=Math.min(v.peekLength(),y.peekLength(),S);var x=v.next(w),k=y.next(w);o(x.insert,k.insert)?m.retain(w,l.attributes.diff(x.attributes,k.attributes)):m.push(k).delete(w);break}S-=w}}),m.chop()},c.prototype.eachLine=function(d,f){f=f||` `;for(var h=l.iterator(this.ops),m=new c,g=0;h.hasNext();){if(h.peekType()!=="insert")return;var v=h.peek(),y=l.length(v)-h.peekLength(),_=typeof v.insert=="string"?v.insert.indexOf(f,y)-y:-1;if(_<0)m.push(h.next());else if(_>0)m.push(h.next(_));else{if(d(m,h.next(1).attributes||{},g)===!1)return;g+=1,m=new c}}m.length()>0&&d(m,{},g)},c.prototype.transform=function(d,f){if(f=!!f,typeof d=="number")return this.transformPosition(d,f);for(var h=l.iterator(this.ops),m=l.iterator(d.ops),g=new c;h.hasNext()||m.hasNext();)if(h.peekType()==="insert"&&(f||m.peekType()!=="insert"))g.retain(l.length(h.next()));else if(m.peekType()==="insert")g.push(m.next());else{var v=Math.min(h.peekLength(),m.peekLength()),y=h.next(v),_=m.next(v);if(y.delete)continue;_.delete?g.push(_):g.retain(v,l.attributes.transform(y.attributes,_.attributes,f))}return g.chop()},c.prototype.transformPosition=function(d,f){f=!!f;for(var h=l.iterator(this.ops),m=0;h.hasNext()&&m<=d;){var g=h.peekLength(),v=h.peekType();if(h.next(),v==="delete"){d-=Math.min(g,d-m);continue}else v==="insert"&&(m<d||!f)&&(d+=g);m+=g}return d},n.exports=c},function(n,i){var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},u=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var m=r.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&r.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var v;for(v in h);return typeof v>"u"||r.call(h,v)},c=function(h,m){o&&m.name==="__proto__"?o(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},d=function(h,m){if(m==="__proto__")if(r.call(h,m)){if(s)return s(h,m).value}else return;return h[m]};n.exports=function f(){var h,m,g,v,y,_,S=arguments[0],w=1,x=arguments.length,k=!1;for(typeof S=="boolean"&&(k=S,S=arguments[1]||{},w=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});w<x;++w)if(h=arguments[w],h!=null)for(m in h)g=d(S,m),v=d(h,m),S!==v&&(k&&v&&(u(v)||(y=l(v)))?(y?(y=!1,_=g&&l(g)?g:[]):_=g&&u(g)?g:{},c(S,{name:m,newValue:f(k,_,v)})):typeof v<"u"&&c(S,{name:m,newValue:v}));return S}},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=function(){function T(O,N){for(var V=0;V<N.length;V++){var j=N[V];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,N,V){return N&&T(O.prototype,N),V&&T(O,V),O}}(),o=function T(O,N,V){O===null&&(O=Function.prototype);var j=Object.getOwnPropertyDescriptor(O,N);if(j===void 0){var q=Object.getPrototypeOf(O);return q===null?void 0:T(q,N,V)}else{if("value"in j)return j.value;var ne=j.get;return ne===void 0?void 0:ne.call(V)}},s=r(3),l=S(s),u=r(2),c=S(u),d=r(0),f=S(d),h=r(16),m=S(h),g=r(6),v=S(g),y=r(7),_=S(y);function S(T){return T&&T.__esModule?T:{default:T}}function w(T,O){if(!(T instanceof O))throw new TypeError("Cannot call a class as a function")}function x(T,O){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:T}function k(T,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);T.prototype=Object.create(O&&O.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(T,O):T.__proto__=O)}var P=1,E=function(T){k(O,T);function O(){return w(this,O),x(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return a(O,[{key:"attach",value:function(){o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(V,j){var q=f.default.query(V,f.default.Scope.BLOCK_ATTRIBUTE);q!=null&&this.attributes.attribute(q,j)}},{key:"formatAt",value:function(V,j,q,ne){this.format(q,ne)}},{key:"insertAt",value:function(V,j,q){if(typeof j=="string"&&j.endsWith(` `)){var ne=f.default.create(A.blotName);this.parent.insertBefore(ne,V===0?this:this.next),ne.insertAt(0,j.slice(0,-1))}else o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,V,j,q)}}]),O}(f.default.Embed);E.scope=f.default.Scope.BLOCK_BLOT;var A=function(T){k(O,T);function O(N){w(this,O);var V=x(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return V.cache={},V}return a(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(V,j){return j.length()===0?V:V.insert(j.value(),D(j))},new c.default).insert(` `,D(this))),this.cache.delta}},{key:"deleteAt",value:function(V,j){o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,V,j),this.cache={}}},{key:"formatAt",value:function(V,j,q,ne){j<=0||(f.default.query(q,f.default.Scope.BLOCK)?V+j===this.length()&&this.format(q,ne):o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,V,Math.min(j,this.length()-V-1),q,ne),this.cache={})}},{key:"insertAt",value:function(V,j,q){if(q!=null)return o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,V,j,q);if(j.length!==0){var ne=j.split(` `),ae=ne.shift();ae.length>0&&(V<this.length()-1||this.children.tail==null?o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(V,this.length()-1),ae):this.children.tail.insertAt(this.children.tail.length(),ae),this.cache={});var Y=this;ne.reduce(function(M,I){return Y=Y.split(M,!0),Y.insertAt(0,I),I.length},V+ae.length)}}},{key:"insertBefore",value:function(V,j){var q=this.children.head;o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,V,j),q instanceof m.default&&q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+P),this.cache.length}},{key:"moveChildren",value:function(V,j){o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,V,j),this.cache={}}},{key:"optimize",value:function(V){o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,V),this.cache={}}},{key:"path",value:function(V){return o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,V,!0)}},{key:"removeChild",value:function(V){o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,V),this.cache={}}},{key:"split",value:function(V){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(V===0||V>=this.length()-P)){var q=this.clone();return V===0?(this.parent.insertBefore(q,this),this):(this.parent.insertBefore(q,this.next),q)}else{var ne=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,V,j);return this.cache={},ne}}}]),O}(f.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[v.default,f.default.Embed,_.default];function D(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return T==null||(typeof T.formats=="function"&&(O=(0,l.default)(O,T.formats())),T.parent==null||T.parent.blotName=="scroll"||T.parent.statics.scope!==T.statics.scope)?O:D(T.parent,O)}i.bubbleFormats=D,i.BlockEmbed=E,i.default=A},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=function(){function Y(M,I){var W=[],te=!0,he=!1,oe=void 0;try{for(var U=M[Symbol.iterator](),ee;!(te=(ee=U.next()).done)&&(W.push(ee.value),!(I&&W.length===I));te=!0);}catch(re){he=!0,oe=re}finally{try{!te&&U.return&&U.return()}finally{if(he)throw oe}}return W}return function(M,I){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return Y(M,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function Y(M,I){for(var W=0;W<I.length;W++){var te=I[W];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(M,te.key,te)}}return function(M,I,W){return I&&Y(M.prototype,I),W&&Y(M,W),M}}();r(50);var l=r(2),u=D(l),c=r(14),d=D(c),f=r(8),h=D(f),m=r(9),g=D(m),v=r(0),y=D(v),_=r(15),S=D(_),w=r(3),x=D(w),k=r(10),P=D(k),E=r(34),A=D(E);function D(Y){return Y&&Y.__esModule?Y:{default:Y}}function T(Y,M,I){return M in Y?Object.defineProperty(Y,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):Y[M]=I,Y}function O(Y,M){if(!(Y instanceof M))throw new TypeError("Cannot call a class as a function")}var N=(0,P.default)("quill"),V=function(){s(Y,null,[{key:"debug",value:function(I){I===!0&&(I="log"),P.default.level(I)}},{key:"find",value:function(I){return I.__quill||y.default.find(I)}},{key:"import",value:function(I){return this.imports[I]==null&&N.error("Cannot import "+I+". Are you sure it was registered?"),this.imports[I]}},{key:"register",value:function(I,W){var te=this,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof I!="string"){var oe=I.attrName||I.blotName;typeof oe=="string"?this.register("formats/"+oe,I,W):Object.keys(I).forEach(function(U){te.register(U,I[U],W)})}else this.imports[I]!=null&&!he&&N.warn("Overwriting "+I+" with",W),this.imports[I]=W,(I.startsWith("blots/")||I.startsWith("formats/"))&&W.blotName!=="abstract"?y.default.register(W):I.startsWith("modules")&&typeof W.register=="function"&&W.register()}}]);function Y(M){var I=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,Y),this.options=j(M,W),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",M);this.options.debug&&Y.debug(this.options.debug);var te=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new S.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(oe){oe===h.default.events.TEXT_CHANGE&&I.root.classList.toggle("ql-blank",I.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(oe,U){var ee=I.selection.lastRange,re=ee&&ee.length===0?ee.index:void 0;q.call(I,function(){return I.editor.update(null,U,re)},oe)});var he=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+te+"<p><br></p></div>");this.setContents(he),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(Y,[{key:"addContainer",value:function(I){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof I=="string"){var te=I;I=document.createElement("div"),I.classList.add(te)}return this.container.insertBefore(I,W),I}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(I,W,te){var he=this,oe=ne(I,W,te),U=o(oe,4);return I=U[0],W=U[1],te=U[3],q.call(this,function(){return he.editor.deleteText(I,W)},te,I,-1*W)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(I),this.container.classList.toggle("ql-disabled",!I)}},{key:"focus",value:function(){var I=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=I,this.scrollIntoView()}},{key:"format",value:function(I,W){var te=this,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return q.call(this,function(){var oe=te.getSelection(!0),U=new u.default;if(oe==null)return U;if(y.default.query(I,y.default.Scope.BLOCK))U=te.editor.formatLine(oe.index,oe.length,T({},I,W));else{if(oe.length===0)return te.selection.format(I,W),U;U=te.editor.formatText(oe.index,oe.length,T({},I,W))}return te.setSelection(oe,h.default.sources.SILENT),U},he)}},{key:"formatLine",value:function(I,W,te,he,oe){var U=this,ee=void 0,re=ne(I,W,te,he,oe),ue=o(re,4);return I=ue[0],W=ue[1],ee=ue[2],oe=ue[3],q.call(this,function(){return U.editor.formatLine(I,W,ee)},oe,I,0)}},{key:"formatText",value:function(I,W,te,he,oe){var U=this,ee=void 0,re=ne(I,W,te,he,oe),ue=o(re,4);return I=ue[0],W=ue[1],ee=ue[2],oe=ue[3],q.call(this,function(){return U.editor.formatText(I,W,ee)},oe,I,0)}},{key:"getBounds",value:function(I){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=void 0;typeof I=="number"?te=this.selection.getBounds(I,W):te=this.selection.getBounds(I.index,I.length);var he=this.container.getBoundingClientRect();return{bottom:te.bottom-he.top,height:te.height,left:te.left-he.left,right:te.right-he.left,top:te.top-he.top,width:te.width}}},{key:"getContents",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-I,te=ne(I,W),he=o(te,2);return I=he[0],W=he[1],this.editor.getContents(I,W)}},{key:"getFormat",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof I=="number"?this.editor.getFormat(I,W):this.editor.getFormat(I.index,I.length)}},{key:"getIndex",value:function(I){return I.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(I){return this.scroll.leaf(I)}},{key:"getLine",value:function(I){return this.scroll.line(I)}},{key:"getLines",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof I!="number"?this.scroll.lines(I.index,I.length):this.scroll.lines(I,W)}},{key:"getModule",value:function(I){return this.theme.modules[I]}},{key:"getSelection",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return I&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-I,te=ne(I,W),he=o(te,2);return I=he[0],W=he[1],this.editor.getText(I,W)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(I,W,te){var he=this,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Y.sources.API;return q.call(this,function(){return he.editor.insertEmbed(I,W,te)},oe,I)}},{key:"insertText",value:function(I,W,te,he,oe){var U=this,ee=void 0,re=ne(I,0,te,he,oe),ue=o(re,4);return I=ue[0],ee=ue[2],oe=ue[3],q.call(this,function(){return U.editor.insertText(I,W,ee)},oe,I,W.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(I,W,te){this.clipboard.dangerouslyPasteHTML(I,W,te)}},{key:"removeFormat",value:function(I,W,te){var he=this,oe=ne(I,W,te),U=o(oe,4);return I=U[0],W=U[1],te=U[3],q.call(this,function(){return he.editor.removeFormat(I,W)},te,I)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(I){var W=this,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return q.call(this,function(){I=new u.default(I);var he=W.getLength(),oe=W.editor.deleteText(0,he),U=W.editor.applyDelta(I),ee=U.ops[U.ops.length-1];ee!=null&&typeof ee.insert=="string"&&ee.insert[ee.insert.length-1]===` `&&(W.editor.deleteText(W.getLength()-1,1),U.delete(1));var re=oe.compose(U);return re},te)}},{key:"setSelection",value:function(I,W,te){if(I==null)this.selection.setRange(null,W||Y.sources.API);else{var he=ne(I,W,te),oe=o(he,4);I=oe[0],W=oe[1],te=oe[3],this.selection.setRange(new _.Range(I,W),te),te!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(I){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,te=new u.default().insert(I);return this.setContents(te,W)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,W=this.scroll.update(I);return this.selection.update(I),W}},{key:"updateContents",value:function(I){var W=this,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return q.call(this,function(){return I=new u.default(I),W.editor.applyDelta(I,te)},te,!0)}}]),Y}();V.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},V.events=h.default.events,V.sources=h.default.sources,V.version="1.3.7",V.imports={delta:u.default,parchment:y.default,"core/module":g.default,"core/theme":A.default};function j(Y,M){if(M=(0,x.default)(!0,{container:Y,modules:{clipboard:!0,keyboard:!0,history:!0}},M),!M.theme||M.theme===V.DEFAULTS.theme)M.theme=A.default;else if(M.theme=V.import("themes/"+M.theme),M.theme==null)throw new Error("Invalid theme "+M.theme+". Did you register it?");var I=(0,x.default)(!0,{},M.theme.DEFAULTS);[I,M].forEach(function(he){he.modules=he.modules||{},Object.keys(he.modules).forEach(function(oe){he.modules[oe]===!0&&(he.modules[oe]={})})});var W=Object.keys(I.modules).concat(Object.keys(M.modules)),te=W.reduce(function(he,oe){var U=V.import("modules/"+oe);return U==null?N.error("Cannot load "+oe+" module. Are you sure you registered it?"):he[oe]=U.DEFAULTS||{},he},{});return M.modules!=null&&M.modules.toolbar&&M.modules.toolbar.constructor!==Object&&(M.modules.toolbar={container:M.modules.toolbar}),M=(0,x.default)(!0,{},V.DEFAULTS,{modules:te},I,M),["bounds","container","scrollingContainer"].forEach(function(he){typeof M[he]=="string"&&(M[he]=document.querySelector(M[he]))}),M.modules=Object.keys(M.modules).reduce(function(he,oe){return M.modules[oe]&&(he[oe]=M.modules[oe]),he},{}),M}function q(Y,M,I,W){if(this.options.strict&&!this.isEnabled()&&M===h.default.sources.USER)return new u.default;var te=I==null?null:this.getSelection(),he=this.editor.delta,oe=Y();if(te!=null&&(I===!0&&(I=te.index),W==null?te=ae(te,oe,M):W!==0&&(te=ae(te,I,W,M)),this.setSelection(te,h.default.sources.SILENT)),oe.length()>0){var U,ee=[h.default.events.TEXT_CHANGE,oe,he,M];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(ee)),M!==h.default.sources.SILENT){var re;(re=this.emitter).emit.apply(re,ee)}}return oe}function ne(Y,M,I,W,te){var he={};return typeof Y.index=="number"&&typeof Y.length=="number"?typeof M!="number"?(te=W,W=I,I=M,M=Y.length,Y=Y.index):(M=Y.length,Y=Y.index):typeof M!="number"&&(te=W,W=I,I=M,M=0),(typeof I>"u"?"undefined":a(I))==="object"?(he=I,te=W):typeof I=="string"&&(W!=null?he[I]=W:te=I),te=te||h.default.sources.API,[Y,M,he,te]}function ae(Y,M,I,W){if(Y==null)return null;var te=void 0,he=void 0;if(M instanceof u.default){var oe=[Y.index,Y.index+Y.length].map(function(ue){return M.transformPosition(ue,W!==h.default.sources.USER)}),U=o(oe,2);te=U[0],he=U[1]}else{var ee=[Y.index,Y.index+Y.length].map(function(ue){return ue<M||ue===M&&W===h.default.sources.USER?ue:I>=0?ue+I:Math.max(M,ue+I)}),re=o(ee,2);te=re[0],he=re[1]}return new _.Range(te,he-te)}i.expandConfig=j,i.overload=ne,i.default=V},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var w=_[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,_);if(w===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,_,S)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(S)}},s=r(7),l=d(s),u=r(0),c=d(u);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function h(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function m(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var g=function(v){m(y,v);function y(){return f(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"formatAt",value:function(S,w,x,k){if(y.compare(this.statics.blotName,x)<0&&c.default.query(x,c.default.Scope.BLOT)){var P=this.isolate(S,w);k&&P.wrap(x,k)}else o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,S,w,x,k)}},{key:"optimize",value:function(S){if(o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,S),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(S,w){var x=y.order.indexOf(S),k=y.order.indexOf(w);return x>=0||k>=0?x-k:S===w?0:S<w?-1:1}}]),y}(c.default.Inline);g.allowedChildren=[g,c.default.Embed,l.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function c(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var d=function(f){c(h,f);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default.Text);i.default=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function _(S,w){for(var x=0;x<w.length;x++){var k=w[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,w,x){return w&&_(S.prototype,w),x&&_(S,x),S}}(),o=function _(S,w,x){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,w);if(k===void 0){var P=Object.getPrototypeOf(S);return P===null?void 0:_(P,w,x)}else{if("value"in k)return k.value;var E=k.get;return E===void 0?void 0:E.call(x)}},s=r(54),l=d(s),u=r(10),c=d(u);function d(_){return _&&_.__esModule?_:{default:_}}function f(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function h(_,S){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:_}function m(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(_,S):_.__proto__=S)}var g=(0,c.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(_){document.addEventListener(_,function(){for(var S=arguments.length,w=Array(S),x=0;x<S;x++)w[x]=arguments[x];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var P;(P=k.__quill.emitter).handleDOM.apply(P,w)}})})});var y=function(_){m(S,_);function S(){f(this,S);var w=h(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));return w.listeners={},w.on("error",g.error),w}return a(S,[{key:"emit",value:function(){g.log.apply(g,arguments),o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(x){for(var k=arguments.length,P=Array(k>1?k-1:0),E=1;E<k;E++)P[E-1]=arguments[E];(this.listeners[x.type]||[]).forEach(function(A){var D=A.node,T=A.handler;(x.target===D||D.contains(x.target))&&T.apply(void 0,[x].concat(P))})}},{key:"listenDOM",value:function(x,k,P){this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push({node:k,handler:P})}}]),S}(l.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},i.default=y},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});function a(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var o=function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,s),this.quill=l,this.options=u};o.DEFAULTS={},i.default=o},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function s(u){if(a.indexOf(u)<=a.indexOf(o)){for(var c,d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];(c=console)[u].apply(c,f)}}function l(u){return a.reduce(function(c,d){return c[d]=s.bind(console,d,u),c},{})}s.level=l.level=function(u){o=u},i.default=l},function(n,i,r){var a=Array.prototype.slice,o=r(52),s=r(53),l=n.exports=function(f,h,m){return m||(m={}),f===h?!0:f instanceof Date&&h instanceof Date?f.getTime()===h.getTime():!f||!h||typeof f!="object"&&typeof h!="object"?m.strict?f===h:f==h:d(f,h,m)};function u(f){return f==null}function c(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function d(f,h,m){var g,v;if(u(f)||u(h)||f.prototype!==h.prototype)return!1;if(s(f))return s(h)?(f=a.call(f),h=a.call(h),l(f,h,m)):!1;if(c(f)){if(!c(h)||f.length!==h.length)return!1;for(g=0;g<f.length;g++)if(f[g]!==h[g])return!1;return!0}try{var y=o(f),_=o(h)}catch{return!1}if(y.length!=_.length)return!1;for(y.sort(),_.sort(),g=y.length-1;g>=0;g--)if(y[g]!=_[g])return!1;for(g=y.length-1;g>=0;g--)if(v=y[g],!l(f[v],h[v],m))return!1;return typeof f==typeof h}},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(1),o=function(){function s(l,u,c){c===void 0&&(c={}),this.attrName=l,this.keyName=u;var d=a.Scope.TYPE&a.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&a.Scope.LEVEL|d:this.scope=a.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(u){return u.name})},s.prototype.add=function(l,u){return this.canAdd(l,u)?(l.setAttribute(this.keyName,u),!0):!1},s.prototype.canAdd=function(l,u){var c=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var u=l.getAttribute(this.keyName);return this.canAdd(l,u)&&u?u:""},s}();i.default=o},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var a=function(){function E(A,D){var T=[],O=!0,N=!1,V=void 0;try{for(var j=A[Symbol.iterator](),q;!(O=(q=j.next()).done)&&(T.push(q.value),!(D&&T.length===D));O=!0);}catch(ne){N=!0,V=ne}finally{try{!O&&j.return&&j.return()}finally{if(N)throw V}}return T}return function(A,D){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return E(A,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function E(A,D){for(var T=0;T<D.length;T++){var O=D[T];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,D,T){return D&&E(A.prototype,D),T&&E(A,T),A}}(),s=function E(A,D,T){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,D);if(O===void 0){var N=Object.getPrototypeOf(A);return N===null?void 0:E(N,D,T)}else{if("value"in O)return O.value;var V=O.get;return V===void 0?void 0:V.call(T)}},l=r(2),u=_(l),c=r(0),d=_(c),f=r(4),h=_(f),m=r(6),g=_(m),v=r(7),y=_(v);function _(E){return E&&E.__esModule?E:{default:E}}function S(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function w(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function x(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var k=function(E){x(A,E);function A(){return S(this,A),w(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A}(g.default);k.blotName="code",k.tagName="CODE";var P=function(E){x(A,E);function A(){return S(this,A),w(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"delta",value:function(){var T=this,O=this.domNode.textContent;return O.endsWith(` `)&&(O=O.slice(0,-1)),O.split(` `).reduce(function(N,V){return N.insert(V).insert(` `,T.formats())},new u.default)}},{key:"format",value:function(T,O){if(!(T===this.statics.blotName&&O)){var N=this.descendant(y.default,this.length()-1),V=a(N,1),j=V[0];j!=null&&j.deleteAt(j.length()-1,1),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,T,O)}}},{key:"formatAt",value:function(T,O,N,V){if(O!==0&&!(d.default.query(N,d.default.Scope.BLOCK)==null||N===this.statics.blotName&&V===this.statics.formats(this.domNode))){var j=this.newlineIndex(T);if(!(j<0||j>=T+O)){var q=this.newlineIndex(T,!0)+1,ne=j-q+1,ae=this.isolate(q,ne),Y=ae.next;ae.format(N,V),Y instanceof A&&Y.formatAt(0,T-q+O-ne,N,V)}}}},{key:"insertAt",value:function(T,O,N){if(N==null){var V=this.descendant(y.default,T),j=a(V,2),q=j[0],ne=j[1];q.insertAt(ne,O)}}},{key:"length",value:function(){var T=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?T:T+1}},{key:"newlineIndex",value:function(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,T).lastIndexOf(` `);var N=this.domNode.textContent.slice(T).indexOf(` `);return N>-1?T+N:-1}},{key:"optimize",value:function(T){this.domNode.textContent.endsWith(` `)||this.appendChild(d.default.create("text",` `)),s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,T);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(T),O.moveChildren(this),O.remove())}},{key:"replace",value:function(T){s(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,T),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=d.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof d.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(T){var O=s(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,T);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),A}(h.default);P.blotName="code-block",P.tagName="PRE",P.TAB=" ",i.Code=k,i.default=P},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=function(){function Y(M,I){var W=[],te=!0,he=!1,oe=void 0;try{for(var U=M[Symbol.iterator](),ee;!(te=(ee=U.next()).done)&&(W.push(ee.value),!(I&&W.length===I));te=!0);}catch(re){he=!0,oe=re}finally{try{!te&&U.return&&U.return()}finally{if(he)throw oe}}return W}return function(M,I){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return Y(M,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function Y(M,I){for(var W=0;W<I.length;W++){var te=I[W];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(M,te.key,te)}}return function(M,I,W){return I&&Y(M.prototype,I),W&&Y(M,W),M}}(),l=r(2),u=O(l),c=r(20),d=O(c),f=r(0),h=O(f),m=r(13),g=O(m),v=r(24),y=O(v),_=r(4),S=O(_),w=r(16),x=O(w),k=r(21),P=O(k),E=r(11),A=O(E),D=r(3),T=O(D);function O(Y){return Y&&Y.__esModule?Y:{default:Y}}function N(Y,M,I){return M in Y?Object.defineProperty(Y,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):Y[M]=I,Y}function V(Y,M){if(!(Y instanceof M))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,q=function(){function Y(M){V(this,Y),this.scroll=M,this.delta=this.getDelta()}return s(Y,[{key:"applyDelta",value:function(I){var W=this,te=!1;this.scroll.update();var he=this.scroll.length();return this.scroll.batchStart(),I=ae(I),I.reduce(function(oe,U){var ee=U.retain||U.delete||U.insert.length||1,re=U.attributes||{};if(U.insert!=null){if(typeof U.insert=="string"){var ue=U.insert;ue.endsWith(` `)&&te&&(te=!1,ue=ue.slice(0,-1)),oe>=he&&!ue.endsWith(` `)&&(te=!0),W.scroll.insertAt(oe,ue);var pe=W.scroll.line(oe),ge=o(pe,2),Te=ge[0],Z=ge[1],X=(0,T.default)({},(0,_.bubbleFormats)(Te));if(Te instanceof S.default){var ye=Te.descendant(h.default.Leaf,Z),Se=o(ye,1),Ee=Se[0];X=(0,T.default)(X,(0,_.bubbleFormats)(Ee))}re=d.default.attributes.diff(X,re)||{}}else if(a(U.insert)==="object"){var _e=Object.keys(U.insert)[0];if(_e==null)return oe;W.scroll.insertAt(oe,_e,U.insert[_e])}he+=ee}return Object.keys(re).forEach(function(be){W.scroll.formatAt(oe,ee,be,re[be])}),oe+ee},0),I.reduce(function(oe,U){return typeof U.delete=="number"?(W.scroll.deleteAt(oe,U.delete),oe):oe+(U.retain||U.insert.length||1)},0),this.scroll.batchEnd(),this.update(I)}},{key:"deleteText",value:function(I,W){return this.scroll.deleteAt(I,W),this.update(new u.default().retain(I).delete(W))}},{key:"formatLine",value:function(I,W){var te=this,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(he).forEach(function(oe){if(!(te.scroll.whitelist!=null&&!te.scroll.whitelist[oe])){var U=te.scroll.lines(I,Math.max(W,1)),ee=W;U.forEach(function(re){var ue=re.length();if(!(re instanceof g.default))re.format(oe,he[oe]);else{var pe=I-re.offset(te.scroll),ge=re.newlineIndex(pe+ee)-pe+1;re.formatAt(pe,ge,oe,he[oe])}ee-=ue})}}),this.scroll.optimize(),this.update(new u.default().retain(I).retain(W,(0,P.default)(he)))}},{key:"formatText",value:function(I,W){var te=this,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(he).forEach(function(oe){te.scroll.formatAt(I,W,oe,he[oe])}),this.update(new u.default().retain(I).retain(W,(0,P.default)(he)))}},{key:"getContents",value:function(I,W){return this.delta.slice(I,I+W)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(I,W){return I.concat(W.delta())},new u.default)}},{key:"getFormat",value:function(I){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=[],he=[];W===0?this.scroll.path(I).forEach(function(U){var ee=o(U,1),re=ee[0];re instanceof S.default?te.push(re):re instanceof h.default.Leaf&&he.push(re)}):(te=this.scroll.lines(I,W),he=this.scroll.descendants(h.default.Leaf,I,W));var oe=[te,he].map(function(U){if(U.length===0)return{};for(var ee=(0,_.bubbleFormats)(U.shift());Object.keys(ee).length>0;){var re=U.shift();if(re==null)return ee;ee=ne((0,_.bubbleFormats)(re),ee)}return ee});return T.default.apply(T.default,oe)}},{key:"getText",value:function(I,W){return this.getContents(I,W).filter(function(te){return typeof te.insert=="string"}).map(function(te){return te.insert}).join("")}},{key:"insertEmbed",value:function(I,W,te){return this.scroll.insertAt(I,W,te),this.update(new u.default().retain(I).insert(N({},W,te)))}},{key:"insertText",value:function(I,W){var te=this,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return W=W.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(I,W),Object.keys(he).forEach(function(oe){te.scroll.formatAt(I,W.length,oe,he[oe])}),this.update(new u.default().retain(I).insert(W,(0,P.default)(he)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var I=this.scroll.children.head;return I.statics.blotName!==S.default.blotName||I.children.length>1?!1:I.children.head instanceof x.default}},{key:"removeFormat",value:function(I,W){var te=this.getText(I,W),he=this.scroll.line(I+W),oe=o(he,2),U=oe[0],ee=oe[1],re=0,ue=new u.default;U!=null&&(U instanceof g.default?re=U.newlineIndex(ee)-ee+1:re=U.length()-ee,ue=U.delta().slice(ee,ee+re-1).insert(` `));var pe=this.getContents(I,W+re),ge=pe.diff(new u.default().insert(te).concat(ue)),Te=new u.default().retain(I).concat(ge);return this.applyDelta(Te)}},{key:"update",value:function(I){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,he=this.delta;if(W.length===1&&W[0].type==="characterData"&&W[0].target.data.match(j)&&h.default.find(W[0].target)){var oe=h.default.find(W[0].target),U=(0,_.bubbleFormats)(oe),ee=oe.offset(this.scroll),re=W[0].oldValue.replace(y.default.CONTENTS,""),ue=new u.default().insert(re),pe=new u.default().insert(oe.value()),ge=new u.default().retain(ee).concat(ue.diff(pe,te));I=ge.reduce(function(Te,Z){return Z.insert?Te.insert(Z.insert,U):Te.push(Z)},new u.default),this.delta=he.compose(I)}else this.delta=this.getDelta(),(!I||!(0,A.default)(he.compose(I),this.delta))&&(I=he.diff(this.delta,te));return I}}]),Y}();function ne(Y,M){return Object.keys(M).reduce(function(I,W){return Y[W]==null||(M[W]===Y[W]?I[W]=M[W]:Array.isArray(M[W])?M[W].indexOf(Y[W])<0&&(I[W]=M[W].concat([Y[W]])):I[W]=[M[W],Y[W]]),I},{})}function ae(Y){return Y.reduce(function(M,I){if(I.insert===1){var W=(0,P.default)(I.attributes);return delete W.image,M.insert({image:I.attributes.image},W)}if(I.attributes!=null&&(I.attributes.list===!0||I.attributes.bullet===!0)&&(I=(0,P.default)(I),I.attributes.list?I.attributes.list="ordered":(I.attributes.list="bullet",delete I.attributes.bullet)),typeof I.insert=="string"){var te=I.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return M.insert(te,I.attributes)}return M.push(I)},new u.default)}i.default=q},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=function(){function E(A,D){var T=[],O=!0,N=!1,V=void 0;try{for(var j=A[Symbol.iterator](),q;!(O=(q=j.next()).done)&&(T.push(q.value),!(D&&T.length===D));O=!0);}catch(ne){N=!0,V=ne}finally{try{!O&&j.return&&j.return()}finally{if(N)throw V}}return T}return function(A,D){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return E(A,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function E(A,D){for(var T=0;T<D.length;T++){var O=D[T];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,D,T){return D&&E(A.prototype,D),T&&E(A,T),A}}(),s=r(0),l=y(s),u=r(21),c=y(u),d=r(11),f=y(d),h=r(8),m=y(h),g=r(10),v=y(g);function y(E){return E&&E.__esModule?E:{default:E}}function _(E){if(Array.isArray(E)){for(var A=0,D=Array(E.length);A<E.length;A++)D[A]=E[A];return D}else return Array.from(E)}function S(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}var w=(0,v.default)("quill:selection"),x=function E(A){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;S(this,E),this.index=A,this.length=D},k=function(){function E(A,D){var T=this;S(this,E),this.emitter=D,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new x(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){T.mouseDown||setTimeout(T.update.bind(T,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(O,N){O===m.default.events.TEXT_CHANGE&&N.length()>0&&T.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(T.hasFocus()){var O=T.getNativeRange();O!=null&&O.start.node!==T.cursor.textNode&&T.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{T.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var V=N.range,j=V.startNode,q=V.startOffset,ne=V.endNode,ae=V.endOffset;T.setNativeRange(j,q,ne,ae)}}),this.update(m.default.sources.SILENT)}return o(E,[{key:"handleComposition",value:function(){var D=this;this.root.addEventListener("compositionstart",function(){D.composing=!0}),this.root.addEventListener("compositionend",function(){if(D.composing=!1,D.cursor.parent){var T=D.cursor.restore();if(!T)return;setTimeout(function(){D.setNativeRange(T.startNode,T.startOffset,T.endNode,T.endOffset)},1)}})}},{key:"handleDragging",value:function(){var D=this;this.emitter.listenDOM("mousedown",document.body,function(){D.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){D.mouseDown=!1,D.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(D,T){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[D])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||l.default.query(D,l.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=l.default.find(O.start.node,!1);if(N==null)return;if(N instanceof l.default.Leaf){var V=N.split(O.start.offset);N.parent.insertBefore(this.cursor,V)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(D,T),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(D){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();D=Math.min(D,O-1),T=Math.min(D+T,O-1)-D;var N=void 0,V=this.scroll.leaf(D),j=a(V,2),q=j[0],ne=j[1];if(q==null)return null;var ae=q.position(ne,!0),Y=a(ae,2);N=Y[0],ne=Y[1];var M=document.createRange();if(T>0){M.setStart(N,ne);var I=this.scroll.leaf(D+T),W=a(I,2);if(q=W[0],ne=W[1],q==null)return null;var te=q.position(ne,!0),he=a(te,2);return N=he[0],ne=he[1],M.setEnd(N,ne),M.getBoundingClientRect()}else{var oe="left",U=void 0;return N instanceof Text?(ne<N.data.length?(M.setStart(N,ne),M.setEnd(N,ne+1)):(M.setStart(N,ne-1),M.setEnd(N,ne),oe="right"),U=M.getBoundingClientRect()):(U=q.domNode.getBoundingClientRect(),ne>0&&(oe="right")),{bottom:U.top+U.height,height:U.height,left:U[oe],right:U[oe],top:U.top,width:0}}}},{key:"getNativeRange",value:function(){var D=document.getSelection();if(D==null||D.rangeCount<=0)return null;var T=D.getRangeAt(0);if(T==null)return null;var O=this.normalizeNative(T);return w.info("getNativeRange",O),O}},{key:"getRange",value:function(){var D=this.getNativeRange();if(D==null)return[null,null];var T=this.normalizedToRange(D);return[T,D]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(D){var T=this,O=[[D.start.node,D.start.offset]];D.native.collapsed||O.push([D.end.node,D.end.offset]);var N=O.map(function(q){var ne=a(q,2),ae=ne[0],Y=ne[1],M=l.default.find(ae,!0),I=M.offset(T.scroll);return Y===0?I:M instanceof l.default.Container?I+M.length():I+M.index(ae,Y)}),V=Math.min(Math.max.apply(Math,_(N)),this.scroll.length()-1),j=Math.min.apply(Math,[V].concat(_(N)));return new x(j,V-j)}},{key:"normalizeNative",value:function(D){if(!P(this.root,D.startContainer)||!D.collapsed&&!P(this.root,D.endContainer))return null;var T={start:{node:D.startContainer,offset:D.startOffset},end:{node:D.endContainer,offset:D.endOffset},native:D};return[T.start,T.end].forEach(function(O){for(var N=O.node,V=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>V)N=N.childNodes[V],V=0;else if(N.childNodes.length===V)N=N.lastChild,V=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=V}),T}},{key:"rangeToNative",value:function(D){var T=this,O=D.collapsed?[D.index]:[D.index,D.index+D.length],N=[],V=this.scroll.length();return O.forEach(function(j,q){j=Math.min(V-1,j);var ne=void 0,ae=T.scroll.leaf(j),Y=a(ae,2),M=Y[0],I=Y[1],W=M.position(I,q!==0),te=a(W,2);ne=te[0],I=te[1],N.push(ne,I)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(D){var T=this.lastRange;if(T!=null){var O=this.getBounds(T.index,T.length);if(O!=null){var N=this.scroll.length()-1,V=this.scroll.line(Math.min(T.index,N)),j=a(V,1),q=j[0],ne=q;if(T.length>0){var ae=this.scroll.line(Math.min(T.index+T.length,N)),Y=a(ae,1);ne=Y[0]}if(!(q==null||ne==null)){var M=D.getBoundingClientRect();O.top<M.top?D.scrollTop-=M.top-O.top:O.bottom>M.bottom&&(D.scrollTop+=O.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(D,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,V=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",D,T,O,N),!(D!=null&&(this.root.parentNode==null||D.parentNode==null||O.parentNode==null))){var j=document.getSelection();if(j!=null)if(D!=null){this.hasFocus()||this.root.focus();var q=(this.getNativeRange()||{}).native;if(q==null||V||D!==q.startContainer||T!==q.startOffset||O!==q.endContainer||N!==q.endOffset){D.tagName=="BR"&&(T=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var ne=document.createRange();ne.setStart(D,T),ne.setEnd(O,N),j.removeAllRanges(),j.addRange(ne)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(D){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof T=="string"&&(O=T,T=!1),w.info("setRange",D),D!=null){var N=this.rangeToNative(D);this.setNativeRange.apply(this,_(N).concat([T]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,T=this.lastRange,O=this.getRange(),N=a(O,2),V=N[0],j=N[1];if(this.lastRange=V,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(T,this.lastRange)){var q;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var ne=[m.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(T),D];if((q=this.emitter).emit.apply(q,[m.default.events.EDITOR_CHANGE].concat(ne)),D!==m.default.sources.SILENT){var ae;(ae=this.emitter).emit.apply(ae,ne)}}}}]),E}();function P(E,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),E.contains(A)}i.Range=x,i.default=k},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(y)}},s=r(0),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"insertInto",value:function(y,_){y.children.length===0?o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,y,_):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g}(l.default.Embed);h.blotName="break",h.tagName="BR",i.default=h},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(44),s=r(30),l=r(1),u=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.build(),m}return f.prototype.appendChild=function(h){this.insertBefore(h)},f.prototype.attach=function(){d.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},f.prototype.build=function(){var h=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var g=c(m);h.insertBefore(g,h.children.head||void 0)}catch(v){if(v instanceof l.ParchmentError)return;throw v}})},f.prototype.deleteAt=function(h,m){if(h===0&&m===this.length())return this.remove();this.children.forEachAt(h,m,function(g,v,y){g.deleteAt(v,y)})},f.prototype.descendant=function(h,m){var g=this.children.find(m),v=g[0],y=g[1];return h.blotName==null&&h(v)||h.blotName!=null&&v instanceof h?[v,y]:v instanceof f?v.descendant(h,y):[null,-1]},f.prototype.descendants=function(h,m,g){m===void 0&&(m=0),g===void 0&&(g=Number.MAX_VALUE);var v=[],y=g;return this.children.forEachAt(m,g,function(_,S,w){(h.blotName==null&&h(_)||h.blotName!=null&&_ instanceof h)&&v.push(_),_ instanceof f&&(v=v.concat(_.descendants(h,S,y))),y-=w}),v},f.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),d.prototype.detach.call(this)},f.prototype.formatAt=function(h,m,g,v){this.children.forEachAt(h,m,function(y,_,S){y.formatAt(_,S,g,v)})},f.prototype.insertAt=function(h,m,g){var v=this.children.find(h),y=v[0],_=v[1];if(y)y.insertAt(_,m,g);else{var S=g==null?l.create("text",m):l.create(m,g);this.appendChild(S)}},f.prototype.insertBefore=function(h,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return h instanceof g}))throw new l.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,m)},f.prototype.length=function(){return this.children.reduce(function(h,m){return h+m.length()},0)},f.prototype.moveChildren=function(h,m){this.children.forEach(function(g){h.insertBefore(g,m)})},f.prototype.optimize=function(h){if(d.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var m=l.create(this.statics.defaultChild);this.appendChild(m),m.optimize(h)}else this.remove()},f.prototype.path=function(h,m){m===void 0&&(m=!1);var g=this.children.find(h,m),v=g[0],y=g[1],_=[[this,h]];return v instanceof f?_.concat(v.path(y,m)):(v!=null&&_.push([v,y]),_)},f.prototype.removeChild=function(h){this.children.remove(h)},f.prototype.replace=function(h){h instanceof f&&h.moveChildren(this),d.prototype.replace.call(this,h)},f.prototype.split=function(h,m){if(m===void 0&&(m=!1),!m){if(h===0)return this;if(h===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(h,this.length(),function(v,y,_){v=v.split(y,m),g.appendChild(v)}),g},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(h,m){var g=this,v=[],y=[];h.forEach(function(_){_.target===g.domNode&&_.type==="childList"&&(v.push.apply(v,_.addedNodes),y.push.apply(y,_.removedNodes))}),y.forEach(function(_){if(!(_.parentNode!=null&&_.tagName!=="IFRAME"&&document.body.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var S=l.find(_);S!=null&&(S.domNode.parentNode==null||S.domNode.parentNode===g.domNode)&&S.detach()}}),v.filter(function(_){return _.parentNode==g.domNode}).sort(function(_,S){return _===S?0:_.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(_){var S=null;_.nextSibling!=null&&(S=l.find(_.nextSibling));var w=c(_);(w.next!=S||w.next==null)&&(w.parent!=null&&w.parent.removeChild(g),g.insertBefore(w,S||void 0))})},f}(s.default);function c(d){var f=l.find(d);if(f==null)try{f=l.create(d)}catch{f=l.create(l.Scope.INLINE),[].slice.call(d.childNodes).forEach(function(m){f.domNode.appendChild(m)}),d.parentNode&&d.parentNode.replaceChild(f.domNode,d),f.attach()}return f}i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(12),s=r(31),l=r(17),u=r(1),c=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.attributes=new s.default(m.domNode),m}return f.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},f.prototype.format=function(h,m){var g=u.query(h);g instanceof o.default?this.attributes.attribute(g,m):m&&g!=null&&(h!==this.statics.blotName||this.formats()[h]!==m)&&this.replaceWith(h,m)},f.prototype.formats=function(){var h=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(h[this.statics.blotName]=m),h},f.prototype.replaceWith=function(h,m){var g=d.prototype.replaceWith.call(this,h,m);return this.attributes.copy(g),g},f.prototype.update=function(h,m){var g=this;d.prototype.update.call(this,h,m),h.some(function(v){return v.target===g.domNode&&v.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(h,m){var g=d.prototype.wrap.call(this,h,m);return g instanceof f&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},f}(l.default);i.default=c},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(30),s=r(1),l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.value=function(d){return!0},c.prototype.index=function(d,f){return this.domNode===d||this.domNode.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},c.prototype.position=function(d,f){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return d>0&&(h+=1),[this.parent.domNode,h]},c.prototype.value=function(){var d;return d={},d[this.statics.blotName]=this.statics.value(this.domNode)||!0,d},c.scope=s.Scope.INLINE_BLOT,c}(o.default);i.default=l},function(n,i,r){var a=r(11),o=r(3),s={attributes:{compose:function(u,c,d){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var f=o(!0,{},c);d||(f=Object.keys(f).reduce(function(m,g){return f[g]!=null&&(m[g]=f[g]),m},{}));for(var h in u)u[h]!==void 0&&c[h]===void 0&&(f[h]=u[h]);return Object.keys(f).length>0?f:void 0},diff:function(u,c){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var d=Object.keys(u).concat(Object.keys(c)).reduce(function(f,h){return a(u[h],c[h])||(f[h]=c[h]===void 0?null:c[h]),f},{});return Object.keys(d).length>0?d:void 0},transform:function(u,c,d){if(typeof u!="object")return c;if(typeof c=="object"){if(!d)return c;var f=Object.keys(c).reduce(function(h,m){return u[m]===void 0&&(h[m]=c[m]),h},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(u){return new l(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function l(u){this.ops=u,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(u){u||(u=1/0);var c=this.ops[this.index];if(c){var d=this.offset,f=s.length(c);if(u>=f-d?(u=f-d,this.index+=1,this.offset=0):this.offset+=u,typeof c.delete=="number")return{delete:u};var h={};return c.attributes&&(h.attributes=c.attributes),typeof c.retain=="number"?h.retain=u:typeof c.insert=="string"?h.insert=c.insert.substr(d,u):h.insert=c.insert,h}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,c=this.index,d=this.next(),f=this.ops.slice(this.index);return this.offset=u,this.index=c,[d].concat(f)}else return[]},n.exports=s},function(n,i){var r=function(){function a(g,v){return v!=null&&g instanceof v}var o;try{o=Map}catch{o=function(){}}var s;try{s=Set}catch{s=function(){}}var l;try{l=Promise}catch{l=function(){}}function u(g,v,y,_,S){typeof v=="object"&&(y=v.depth,_=v.prototype,S=v.includeNonEnumerable,v=v.circular);var w=[],x=[],k=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof y>"u"&&(y=1/0);function P(E,A){if(E===null)return null;if(A===0)return E;var D,T;if(typeof E!="object")return E;if(a(E,o))D=new o;else if(a(E,s))D=new s;else if(a(E,l))D=new l(function(M,I){E.then(function(W){M(P(W,A-1))},function(W){I(P(W,A-1))})});else if(u.__isArray(E))D=[];else if(u.__isRegExp(E))D=new RegExp(E.source,m(E)),E.lastIndex&&(D.lastIndex=E.lastIndex);else if(u.__isDate(E))D=new Date(E.getTime());else{if(k&&Buffer.isBuffer(E))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(E.length):D=new Buffer(E.length),E.copy(D),D;a(E,Error)?D=Object.create(E):typeof _>"u"?(T=Object.getPrototypeOf(E),D=Object.create(T)):(D=Object.create(_),T=_)}if(v){var O=w.indexOf(E);if(O!=-1)return x[O];w.push(E),x.push(D)}a(E,o)&&E.forEach(function(M,I){var W=P(I,A-1),te=P(M,A-1);D.set(W,te)}),a(E,s)&&E.forEach(function(M){var I=P(M,A-1);D.add(I)});for(var N in E){var V;T&&(V=Object.getOwnPropertyDescriptor(T,N)),!(V&&V.set==null)&&(D[N]=P(E[N],A-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(E),N=0;N<j.length;N++){var q=j[N],ne=Object.getOwnPropertyDescriptor(E,q);ne&&!ne.enumerable&&!S||(D[q]=P(E[q],A-1),ne.enumerable||Object.defineProperty(D,q,{enumerable:!1}))}if(S)for(var ae=Object.getOwnPropertyNames(E),N=0;N<ae.length;N++){var Y=ae[N],ne=Object.getOwnPropertyDescriptor(E,Y);ne&&ne.enumerable||(D[Y]=P(E[Y],A-1),Object.defineProperty(D,Y,{enumerable:!1}))}return D}return P(g,y)}u.clonePrototype=function(v){if(v===null)return null;var y=function(){};return y.prototype=v,new y};function c(g){return Object.prototype.toString.call(g)}u.__objToStr=c;function d(g){return typeof g=="object"&&c(g)==="[object Date]"}u.__isDate=d;function f(g){return typeof g=="object"&&c(g)==="[object Array]"}u.__isArray=f;function h(g){return typeof g=="object"&&c(g)==="[object RegExp]"}u.__isRegExp=h;function m(g){var v="";return g.global&&(v+="g"),g.ignoreCase&&(v+="i"),g.multiline&&(v+="m"),v}return u.__getRegExpFlags=m,u}();typeof n=="object"&&n.exports&&(n.exports=r)},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function D(T,O){var N=[],V=!0,j=!1,q=void 0;try{for(var ne=T[Symbol.iterator](),ae;!(V=(ae=ne.next()).done)&&(N.push(ae.value),!(O&&N.length===O));V=!0);}catch(Y){j=!0,q=Y}finally{try{!V&&ne.return&&ne.return()}finally{if(j)throw q}}return N}return function(T,O){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return D(T,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function D(T,O){for(var N=0;N<O.length;N++){var V=O[N];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(T,V.key,V)}}return function(T,O,N){return O&&D(T.prototype,O),N&&D(T,N),T}}(),s=function D(T,O,N){T===null&&(T=Function.prototype);var V=Object.getOwnPropertyDescriptor(T,O);if(V===void 0){var j=Object.getPrototypeOf(T);return j===null?void 0:D(j,O,N)}else{if("value"in V)return V.value;var q=V.get;return q===void 0?void 0:q.call(N)}},l=r(0),u=w(l),c=r(8),d=w(c),f=r(4),h=w(f),m=r(16),g=w(m),v=r(13),y=w(v),_=r(25),S=w(_);function w(D){return D&&D.__esModule?D:{default:D}}function x(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function k(D,T){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:D}function P(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(D,T):D.__proto__=T)}function E(D){return D instanceof h.default||D instanceof f.BlockEmbed}var A=function(D){P(T,D);function T(O,N){x(this,T);var V=k(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,O));return V.emitter=N.emitter,Array.isArray(N.whitelist)&&(V.whitelist=N.whitelist.reduce(function(j,q){return j[q]=!0,j},{})),V.domNode.addEventListener("DOMNodeInserted",function(){}),V.optimize(),V.enable(),V}return o(T,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,V){var j=this.line(N),q=a(j,2),ne=q[0],ae=q[1],Y=this.line(N+V),M=a(Y,1),I=M[0];if(s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,N,V),I!=null&&ne!==I&&ae>0){if(ne instanceof f.BlockEmbed||I instanceof f.BlockEmbed){this.optimize();return}if(ne instanceof y.default){var W=ne.newlineIndex(ne.length(),!0);if(W>-1&&(ne=ne.split(W+1),ne===I)){this.optimize();return}}else if(I instanceof y.default){var te=I.newlineIndex(0);te>-1&&I.split(te+1)}var he=I.children.head instanceof g.default?null:I.children.head;ne.moveChildren(I,he),ne.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,V,j,q){this.whitelist!=null&&!this.whitelist[j]||(s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,N,V,j,q),this.optimize())}},{key:"insertAt",value:function(N,V,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[V])){if(N>=this.length())if(j==null||u.default.query(V,u.default.Scope.BLOCK)==null){var q=u.default.create(this.statics.defaultChild);this.appendChild(q),j==null&&V.endsWith(` `)&&(V=V.slice(0,-1)),q.insertAt(0,V,j)}else{var ne=u.default.create(V,j);this.appendChild(ne)}else s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,N,V,j);this.optimize()}}},{key:"insertBefore",value:function(N,V){if(N.statics.scope===u.default.Scope.INLINE_BLOT){var j=u.default.create(this.statics.defaultChild);j.appendChild(N),N=j}s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,N,V)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(E,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function q(ne,ae,Y){var M=[],I=Y;return ne.children.forEachAt(ae,Y,function(W,te,he){E(W)?M.push(W):W instanceof u.default.Container&&(M=M.concat(q(W,te,I))),I-=he}),M};return j(this,N,V)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,N,V),N.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,N,V))}},{key:"path",value:function(N){return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var V=d.default.sources.USER;typeof N=="string"&&(V=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,V,N),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,V,N)}}}]),T}(u.default.Scroll);A.blotName="scroll",A.className="ql-editor",A.tagName="DIV",A.defaultChild="block",A.allowedChildren=[h.default,f.BlockEmbed,S.default],i.default=A},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},o=function(){function U(ee,re){var ue=[],pe=!0,ge=!1,Te=void 0;try{for(var Z=ee[Symbol.iterator](),X;!(pe=(X=Z.next()).done)&&(ue.push(X.value),!(re&&ue.length===re));pe=!0);}catch(ye){ge=!0,Te=ye}finally{try{!pe&&Z.return&&Z.return()}finally{if(ge)throw Te}}return ue}return function(ee,re){if(Array.isArray(ee))return ee;if(Symbol.iterator in Object(ee))return U(ee,re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function U(ee,re){for(var ue=0;ue<re.length;ue++){var pe=re[ue];pe.enumerable=pe.enumerable||!1,pe.configurable=!0,"value"in pe&&(pe.writable=!0),Object.defineProperty(ee,pe.key,pe)}}return function(ee,re,ue){return re&&U(ee.prototype,re),ue&&U(ee,ue),ee}}(),l=r(21),u=D(l),c=r(11),d=D(c),f=r(3),h=D(f),m=r(2),g=D(m),v=r(20),y=D(v),_=r(0),S=D(_),w=r(5),x=D(w),k=r(10),P=D(k),E=r(9),A=D(E);function D(U){return U&&U.__esModule?U:{default:U}}function T(U,ee,re){return ee in U?Object.defineProperty(U,ee,{value:re,enumerable:!0,configurable:!0,writable:!0}):U[ee]=re,U}function O(U,ee){if(!(U instanceof ee))throw new TypeError("Cannot call a class as a function")}function N(U,ee){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:U}function V(U,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);U.prototype=Object.create(ee&&ee.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(U,ee):U.__proto__=ee)}var j=(0,P.default)("quill:keyboard"),q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ne=function(U){V(ee,U),s(ee,null,[{key:"match",value:function(ue,pe){return pe=oe(pe),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ge){return!!pe[ge]!==ue[ge]&&pe[ge]!==null})?!1:pe.key===(ue.which||ue.keyCode)}}]);function ee(re,ue){O(this,ee);var pe=N(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this,re,ue));return pe.bindings={},Object.keys(pe.options.bindings).forEach(function(ge){ge==="list autofill"&&re.scroll.whitelist!=null&&!re.scroll.whitelist.list||pe.options.bindings[ge]&&pe.addBinding(pe.options.bindings[ge])}),pe.addBinding({key:ee.keys.ENTER,shiftKey:null},W),pe.addBinding({key:ee.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(pe.addBinding({key:ee.keys.BACKSPACE},{collapsed:!0},Y),pe.addBinding({key:ee.keys.DELETE},{collapsed:!0},M)):(pe.addBinding({key:ee.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Y),pe.addBinding({key:ee.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),pe.addBinding({key:ee.keys.BACKSPACE},{collapsed:!1},I),pe.addBinding({key:ee.keys.DELETE},{collapsed:!1},I),pe.addBinding({key:ee.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Y),pe.listen(),pe}return s(ee,[{key:"addBinding",value:function(ue){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Te=oe(ue);if(Te==null||Te.key==null)return j.warn("Attempted to add invalid keyboard binding",Te);typeof pe=="function"&&(pe={handler:pe}),typeof ge=="function"&&(ge={handler:ge}),Te=(0,h.default)(Te,pe,ge),this.bindings[Te.key]=this.bindings[Te.key]||[],this.bindings[Te.key].push(Te)}},{key:"listen",value:function(){var ue=this;this.quill.root.addEventListener("keydown",function(pe){if(!pe.defaultPrevented){var ge=pe.which||pe.keyCode,Te=(ue.bindings[ge]||[]).filter(function(rt){return ee.match(pe,rt)});if(Te.length!==0){var Z=ue.quill.getSelection();if(!(Z==null||!ue.quill.hasFocus())){var X=ue.quill.getLine(Z.index),ye=o(X,2),Se=ye[0],Ee=ye[1],_e=ue.quill.getLeaf(Z.index),be=o(_e,2),ie=be[0],se=be[1],de=Z.length===0?[ie,se]:ue.quill.getLeaf(Z.index+Z.length),xe=o(de,2),Re=xe[0],Pe=xe[1],we=ie instanceof S.default.Text?ie.value().slice(0,se):"",Ae=Re instanceof S.default.Text?Re.value().slice(Pe):"",Ie={collapsed:Z.length===0,empty:Z.length===0&&Se.length()<=1,format:ue.quill.getFormat(Z),offset:Ee,prefix:we,suffix:Ae},Ye=Te.some(function(rt){if(rt.collapsed!=null&&rt.collapsed!==Ie.collapsed||rt.empty!=null&&rt.empty!==Ie.empty||rt.offset!=null&&rt.offset!==Ie.offset)return!1;if(Array.isArray(rt.format)){if(rt.format.every(function(Ot){return Ie.format[Ot]==null}))return!1}else if(a(rt.format)==="object"&&!Object.keys(rt.format).every(function(Ot){return rt.format[Ot]===!0?Ie.format[Ot]!=null:rt.format[Ot]===!1?Ie.format[Ot]==null:(0,d.default)(rt.format[Ot],Ie.format[Ot])}))return!1;return rt.prefix!=null&&!rt.prefix.test(Ie.prefix)||rt.suffix!=null&&!rt.suffix.test(Ie.suffix)?!1:rt.handler.call(ue,Z,Ie)!==!0});Ye&&pe.preventDefault()}}}})}}]),ee}(A.default);ne.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},ne.DEFAULTS={bindings:{bold:he("bold"),italic:he("italic"),underline:he("underline"),indent:{key:ne.keys.TAB,format:["blockquote","indent","list"],handler:function(ee,re){if(re.collapsed&&re.offset!==0)return!0;this.quill.format("indent","+1",x.default.sources.USER)}},outdent:{key:ne.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(ee,re){if(re.collapsed&&re.offset!==0)return!0;this.quill.format("indent","-1",x.default.sources.USER)}},"outdent backspace":{key:ne.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(ee,re){re.format.indent!=null?this.quill.format("indent","-1",x.default.sources.USER):re.format.list!=null&&this.quill.format("list",!1,x.default.sources.USER)}},"indent code-block":te(!0),"outdent code-block":te(!1),"remove tab":{key:ne.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(ee){this.quill.deleteText(ee.index-1,1,x.default.sources.USER)}},tab:{key:ne.keys.TAB,handler:function(ee){this.quill.history.cutoff();var re=new g.default().retain(ee.index).delete(ee.length).insert(" ");this.quill.updateContents(re,x.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ee.index+1,x.default.sources.SILENT)}},"list empty enter":{key:ne.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(ee,re){this.quill.format("list",!1,x.default.sources.USER),re.format.indent&&this.quill.format("indent",!1,x.default.sources.USER)}},"checklist enter":{key:ne.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(ee){var re=this.quill.getLine(ee.index),ue=o(re,2),pe=ue[0],ge=ue[1],Te=(0,h.default)({},pe.formats(),{list:"checked"}),Z=new g.default().retain(ee.index).insert(` `,Te).retain(pe.length()-ge-1).retain(1,{list:"unchecked"});this.quill.updateContents(Z,x.default.sources.USER),this.quill.setSelection(ee.index+1,x.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:ne.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(ee,re){var ue=this.quill.getLine(ee.index),pe=o(ue,2),ge=pe[0],Te=pe[1],Z=new g.default().retain(ee.index).insert(` `,re.format).retain(ge.length()-Te-1).retain(1,{header:null});this.quill.updateContents(Z,x.default.sources.USER),this.quill.setSelection(ee.index+1,x.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(ee,re){var ue=re.prefix.length,pe=this.quill.getLine(ee.index),ge=o(pe,2),Te=ge[0],Z=ge[1];if(Z>ue)return!0;var X=void 0;switch(re.prefix.trim()){case"[]":case"[ ]":X="unchecked";break;case"[x]":X="checked";break;case"-":case"*":X="bullet";break;default:X="ordered"}this.quill.insertText(ee.index," ",x.default.sources.USER),this.quill.history.cutoff();var ye=new g.default().retain(ee.index-Z).delete(ue+1).retain(Te.length()-2-Z).retain(1,{list:X});this.quill.updateContents(ye,x.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ee.index-ue,x.default.sources.SILENT)}},"code exit":{key:ne.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(ee){var re=this.quill.getLine(ee.index),ue=o(re,2),pe=ue[0],ge=ue[1],Te=new g.default().retain(ee.index+pe.length()-ge-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Te,x.default.sources.USER)}},"embed left":ae(ne.keys.LEFT,!1),"embed left shift":ae(ne.keys.LEFT,!0),"embed right":ae(ne.keys.RIGHT,!1),"embed right shift":ae(ne.keys.RIGHT,!0)}};function ae(U,ee){var re,ue=U===ne.keys.LEFT?"prefix":"suffix";return re={key:U,shiftKey:ee,altKey:null},T(re,ue,/^$/),T(re,"handler",function(ge){var Te=ge.index;U===ne.keys.RIGHT&&(Te+=ge.length+1);var Z=this.quill.getLeaf(Te),X=o(Z,1),ye=X[0];return ye instanceof S.default.Embed?(U===ne.keys.LEFT?ee?this.quill.setSelection(ge.index-1,ge.length+1,x.default.sources.USER):this.quill.setSelection(ge.index-1,x.default.sources.USER):ee?this.quill.setSelection(ge.index,ge.length+1,x.default.sources.USER):this.quill.setSelection(ge.index+ge.length+1,x.default.sources.USER),!1):!0}),re}function Y(U,ee){if(!(U.index===0||this.quill.getLength()<=1)){var re=this.quill.getLine(U.index),ue=o(re,1),pe=ue[0],ge={};if(ee.offset===0){var Te=this.quill.getLine(U.index-1),Z=o(Te,1),X=Z[0];if(X!=null&&X.length()>1){var ye=pe.formats(),Se=this.quill.getFormat(U.index-1,1);ge=y.default.attributes.diff(ye,Se)||{}}}var Ee=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ee.prefix)?2:1;this.quill.deleteText(U.index-Ee,Ee,x.default.sources.USER),Object.keys(ge).length>0&&this.quill.formatLine(U.index-Ee,Ee,ge,x.default.sources.USER),this.quill.focus()}}function M(U,ee){var re=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ee.suffix)?2:1;if(!(U.index>=this.quill.getLength()-re)){var ue={},pe=0,ge=this.quill.getLine(U.index),Te=o(ge,1),Z=Te[0];if(ee.offset>=Z.length()-1){var X=this.quill.getLine(U.index+1),ye=o(X,1),Se=ye[0];if(Se){var Ee=Z.formats(),_e=this.quill.getFormat(U.index,1);ue=y.default.attributes.diff(Ee,_e)||{},pe=Se.length()}}this.quill.deleteText(U.index,re,x.default.sources.USER),Object.keys(ue).length>0&&this.quill.formatLine(U.index+pe-1,re,ue,x.default.sources.USER)}}function I(U){var ee=this.quill.getLines(U),re={};if(ee.length>1){var ue=ee[0].formats(),pe=ee[ee.length-1].formats();re=y.default.attributes.diff(pe,ue)||{}}this.quill.deleteText(U,x.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(U.index,1,re,x.default.sources.USER),this.quill.setSelection(U.index,x.default.sources.SILENT),this.quill.focus()}function W(U,ee){var re=this;U.length>0&&this.quill.scroll.deleteAt(U.index,U.length);var ue=Object.keys(ee.format).reduce(function(pe,ge){return S.default.query(ge,S.default.Scope.BLOCK)&&!Array.isArray(ee.format[ge])&&(pe[ge]=ee.format[ge]),pe},{});this.quill.insertText(U.index,` `,ue,x.default.sources.USER),this.quill.setSelection(U.index+1,x.default.sources.SILENT),this.quill.focus(),Object.keys(ee.format).forEach(function(pe){ue[pe]==null&&(Array.isArray(ee.format[pe])||pe!=="link"&&re.quill.format(pe,ee.format[pe],x.default.sources.USER))})}function te(U){return{key:ne.keys.TAB,shiftKey:!U,format:{"code-block":!0},handler:function(re){var ue=S.default.query("code-block"),pe=re.index,ge=re.length,Te=this.quill.scroll.descendant(ue,pe),Z=o(Te,2),X=Z[0],ye=Z[1];if(X!=null){var Se=this.quill.getIndex(X),Ee=X.newlineIndex(ye,!0)+1,_e=X.newlineIndex(Se+ye+ge),be=X.domNode.textContent.slice(Ee,_e).split(` `);ye=0,be.forEach(function(ie,se){U?(X.insertAt(Ee+ye,ue.TAB),ye+=ue.TAB.length,se===0?pe+=ue.TAB.length:ge+=ue.TAB.length):ie.startsWith(ue.TAB)&&(X.deleteAt(Ee+ye,ue.TAB.length),ye-=ue.TAB.length,se===0?pe-=ue.TAB.length:ge-=ue.TAB.length),ye+=ie.length+1}),this.quill.update(x.default.sources.USER),this.quill.setSelection(pe,ge,x.default.sources.SILENT)}}}}function he(U){return{key:U[0].toUpperCase(),shortKey:!0,handler:function(re,ue){this.quill.format(U,!ue.format[U],x.default.sources.USER)}}}function oe(U){if(typeof U=="string"||typeof U=="number")return oe({key:U});if((typeof U>"u"?"undefined":a(U))==="object"&&(U=(0,u.default)(U,!1)),typeof U.key=="string")if(ne.keys[U.key.toUpperCase()]!=null)U.key=ne.keys[U.key.toUpperCase()];else if(U.key.length===1)U.key=U.key.toUpperCase().charCodeAt(0);else return null;return U.shortKey&&(U[q]=U.shortKey,delete U.shortKey),U}i.default=ne,i.SHORTKEY=q},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function y(_,S){var w=[],x=!0,k=!1,P=void 0;try{for(var E=_[Symbol.iterator](),A;!(x=(A=E.next()).done)&&(w.push(A.value),!(S&&w.length===S));x=!0);}catch(D){k=!0,P=D}finally{try{!x&&E.return&&E.return()}finally{if(k)throw P}}return w}return function(_,S){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return y(_,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function y(_,S,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,S);if(x===void 0){var k=Object.getPrototypeOf(_);return k===null?void 0:y(k,S,w)}else{if("value"in x)return x.value;var P=x.get;return P===void 0?void 0:P.call(w)}},s=function(){function y(_,S){for(var w=0;w<S.length;w++){var x=S[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,S,w){return S&&y(_.prototype,S),w&&y(_,w),_}}(),l=r(0),u=f(l),c=r(7),d=f(c);function f(y){return y&&y.__esModule?y:{default:y}}function h(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function m(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function g(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var v=function(y){g(_,y),s(_,null,[{key:"value",value:function(){}}]);function _(S,w){h(this,_);var x=m(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,S));return x.selection=w,x.textNode=document.createTextNode(_.CONTENTS),x.domNode.appendChild(x.textNode),x._length=0,x}return s(_,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,x){if(this._length!==0)return o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x);for(var k=this,P=0;k!=null&&k.statics.scope!==u.default.Scope.BLOCK_BLOT;)P+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=_.CONTENTS.length,k.optimize(),k.formatAt(P,_.CONTENTS.length,w,x),this._length=0)}},{key:"index",value:function(w,x){return w===this.textNode?0:o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"index",this).call(this,w,x)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,x=this.selection.getNativeRange(),k=void 0,P=void 0,E=void 0;if(x!=null&&x.start.node===w&&x.end.node===w){var A=[w,x.start.offset,x.end.offset];k=A[0],P=A[1],E=A[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==_.CONTENTS){var D=this.textNode.data.split(_.CONTENTS).join("");this.next instanceof d.default?(k=this.next.domNode,this.next.insertAt(0,D),this.textNode.data=_.CONTENTS):(this.textNode.data=D,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(_.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),P!=null){var T=[P,E].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),O=a(T,2);return P=O[0],E=O[1],{startNode:k,startOffset:P,endNode:k,endOffset:E}}}}},{key:"update",value:function(w,x){var k=this;if(w.some(function(E){return E.type==="characterData"&&E.target===k.textNode})){var P=this.restore();P&&(x.range=P)}}},{key:"value",value:function(){return""}}]),_}(u.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",i.default=v},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(0),o=u(a),s=r(4),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(o.default.Container);h.allowedChildren=[l.default,s.BlockEmbed,h],i.default=h},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var w=_[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,_);if(w===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,_,S)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(S)}},s=r(0),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function c(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function f(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var h=function(v){f(y,v);function y(){return c(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"value",value:function(S){var w=o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,S);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(x){return("00"+parseInt(x).toString(16)).slice(-2)}).join("")):w}}]),y}(l.default.Attributor.Style),m=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),g=new h("color","color",{scope:l.default.Scope.INLINE});i.ColorAttributor=h,i.ColorClass=m,i.ColorStyle=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:g(w,y,_)}else{if("value"in S)return S.value;var x=S.get;return x===void 0?void 0:x.call(_)}},s=r(6),l=u(s);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function d(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function f(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){f(v,g);function v(){return c(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(_,S){if(_!==this.statics.blotName||!S)return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,_,S);S=this.constructor.sanitize(S),this.domNode.setAttribute("href",S)}}],[{key:"create",value:function(_){var S=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,_);return _=this.sanitize(_),S.setAttribute("href",_),S.setAttribute("rel","noopener noreferrer"),S.setAttribute("target","_blank"),S}},{key:"formats",value:function(_){return _.getAttribute("href")}},{key:"sanitize",value:function(_){return m(_,this.PROTOCOL_WHITELIST)?_:this.SANITIZED_URL}}]),v}(l.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(g,v){var y=document.createElement("a");y.href=g;var _=y.href.slice(0,y.href.indexOf(":"));return v.indexOf(_)>-1}i.default=h,i.sanitize=m},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},o=function(){function v(y,_){for(var S=0;S<_.length;S++){var w=_[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),s=r(23),l=d(s),u=r(107),c=d(u);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function m(v,y){v.setAttribute(y,v.getAttribute(y)!=="true")}var g=function(){function v(y){var _=this;f(this,v),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){_.togglePicker()}),this.label.addEventListener("keydown",function(S){switch(S.keyCode){case l.default.keys.ENTER:_.togglePicker();break;case l.default.keys.ESCAPE:_.escape(),S.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(_){var S=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),_.hasAttribute("value")&&w.setAttribute("data-value",_.getAttribute("value")),_.textContent&&w.setAttribute("data-label",_.textContent),w.addEventListener("click",function(){S.selectItem(w,!0)}),w.addEventListener("keydown",function(x){switch(x.keyCode){case l.default.keys.ENTER:S.selectItem(w,!0),x.preventDefault();break;case l.default.keys.ESCAPE:S.escape(),x.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var _=document.createElement("span");return _.classList.add("ql-picker-label"),_.innerHTML=c.default,_.tabIndex="0",_.setAttribute("role","button"),_.setAttribute("aria-expanded","false"),this.container.appendChild(_),_}},{key:"buildOptions",value:function(){var _=this,S=document.createElement("span");S.classList.add("ql-picker-options"),S.setAttribute("aria-hidden","true"),S.tabIndex="-1",S.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",S.id),this.options=S,[].slice.call(this.select.options).forEach(function(w){var x=_.buildItem(w);S.appendChild(x),w.selected===!0&&_.selectItem(x)}),this.container.appendChild(S)}},{key:"buildPicker",value:function(){var _=this;[].slice.call(this.select.attributes).forEach(function(S){_.container.setAttribute(S.name,S.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var _=this;this.close(),setTimeout(function(){return _.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(_){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(_!==w&&(w!=null&&w.classList.remove("ql-selected"),_!=null&&(_.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(_.parentNode.children,_),_.hasAttribute("data-value")?this.label.setAttribute("data-value",_.getAttribute("data-value")):this.label.removeAttribute("data-value"),_.hasAttribute("data-label")?this.label.setAttribute("data-label",_.getAttribute("data-label")):this.label.removeAttribute("data-label"),S))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var x=document.createEvent("Event");x.initEvent("change",!0,!0),this.select.dispatchEvent(x)}this.close()}}},{key:"update",value:function(){var _=void 0;if(this.select.selectedIndex>-1){var S=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];_=this.select.options[this.select.selectedIndex],this.selectItem(S)}else this.selectItem(null);var w=_!=null&&_!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),v}();i.default=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(0),o=j(a),s=r(5),l=j(s),u=r(4),c=j(u),d=r(16),f=j(d),h=r(25),m=j(h),g=r(24),v=j(g),y=r(35),_=j(y),S=r(6),w=j(S),x=r(22),k=j(x),P=r(7),E=j(P),A=r(55),D=j(A),T=r(42),O=j(T),N=r(23),V=j(N);function j(q){return q&&q.__esModule?q:{default:q}}l.default.register({"blots/block":c.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":m.default,"blots/cursor":v.default,"blots/embed":_.default,"blots/inline":w.default,"blots/scroll":k.default,"blots/text":E.default,"modules/clipboard":D.default,"modules/history":O.default,"modules/keyboard":V.default}),o.default.register(c.default,f.default,v.default,w.default,k.default,E.default),i.default=l.default},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(1),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?u=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?u=document.createElement(l):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,u){var c=this.isolate(l,u);c.remove()},s.prototype.formatAt=function(l,u,c,d){var f=this.isolate(l,u);if(a.query(c,a.Scope.BLOT)!=null&&d)f.wrap(c,d);else if(a.query(c,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);f.wrap(h),h.format(c,d)}},s.prototype.insertAt=function(l,u,c){var d=c==null?a.create("text",u):a.create(u,c),f=this.split(l);this.parent.insertBefore(d,f)},s.prototype.insertInto=function(l,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var c=null;l.children.insertBefore(this,u),u!=null&&(c=u.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=c)&&l.domNode.insertBefore(this.domNode,c),this.parent=l,this.attach()},s.prototype.isolate=function(l,u){var c=this.split(l);return c.split(u),c},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,u){var c=typeof l=="string"?a.create(l,u):l;return c.replace(this),c},s.prototype.split=function(l,u){return l===0?this:this.next},s.prototype.update=function(l,u){},s.prototype.wrap=function(l,u){var c=typeof l=="string"?a.create(l,u):l;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},s.blotName="abstract",s}();i.default=o},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(12),o=r(32),s=r(33),l=r(1),u=function(){function c(d){this.attributes={},this.domNode=d,this.build()}return c.prototype.attribute=function(d,f){f?d.add(this.domNode,f)&&(d.value(this.domNode)!=null?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},c.prototype.build=function(){var d=this;this.attributes={};var f=a.default.keys(this.domNode),h=o.default.keys(this.domNode),m=s.default.keys(this.domNode);f.concat(h).concat(m).forEach(function(g){var v=l.query(g,l.Scope.ATTRIBUTE);v instanceof a.default&&(d.attributes[v.attrName]=v)})},c.prototype.copy=function(d){var f=this;Object.keys(this.attributes).forEach(function(h){var m=f.attributes[h].value(f.domNode);d.format(h,m)})},c.prototype.move=function(d){var f=this;this.copy(d),Object.keys(this.attributes).forEach(function(h){f.attributes[h].remove(f.domNode)}),this.attributes={}},c.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(f,h){return f[h]=d.attributes[h].value(d.domNode),f},{})},c}();i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(12);function s(u,c){var d=u.getAttribute("class")||"";return d.split(/\s+/).filter(function(f){return f.indexOf(c+"-")===0})}var l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},c.prototype.add=function(d,f){return this.canAdd(d,f)?(this.remove(d),d.classList.add(this.keyName+"-"+f),!0):!1},c.prototype.remove=function(d){var f=s(d,this.keyName);f.forEach(function(h){d.classList.remove(h)}),d.classList.length===0&&d.removeAttribute("class")},c.prototype.value=function(d){var f=s(d,this.keyName)[0]||"",h=f.slice(this.keyName.length+1);return this.canAdd(d,h)?h:""},c}(o.default);i.default=l},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(12);function s(u){var c=u.split("-"),d=c.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return c[0]+d}var l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(f){var h=f.split(":");return h[0].trim()})},c.prototype.add=function(d,f){return this.canAdd(d,f)?(d.style[s(this.keyName)]=f,!0):!1},c.prototype.remove=function(d){d.style[s(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},c.prototype.value=function(d){var f=d.style[s(this.keyName)];return this.canAdd(d,f)?f:""},c}(o.default);i.default=l},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function l(u,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,c,d){return c&&l(u.prototype,c),d&&l(u,d),u}}();function o(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(u,c){o(this,l),this.quill=u,this.options=c,this.modules={}}return a(l,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(d){c.modules[d]==null&&c.addModule(d)})}},{key:"addModule",value:function(c){var d=this.quill.constructor.import("modules/"+c);return this.modules[c]=new d(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),l}();s.DEFAULTS={modules:{}},s.themes={default:s},i.default=s},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function y(_,S){for(var w=0;w<S.length;w++){var x=S[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,S,w){return S&&y(_.prototype,S),w&&y(_,w),_}}(),o=function y(_,S,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,S);if(x===void 0){var k=Object.getPrototypeOf(_);return k===null?void 0:y(k,S,w)}else{if("value"in x)return x.value;var P=x.get;return P===void 0?void 0:P.call(w)}},s=r(0),l=d(s),u=r(7),c=d(u);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function h(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function m(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var g="\uFEFF",v=function(y){m(_,y);function _(S){f(this,_);var w=h(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,S));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(x){w.contentNode.appendChild(x)}),w.leftGuard=document.createTextNode(g),w.rightGuard=document.createTextNode(g),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return a(_,[{key:"index",value:function(w,x){return w===this.leftGuard?0:w===this.rightGuard?1:o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"index",this).call(this,w,x)}},{key:"restore",value:function(w){var x=void 0,k=void 0,P=w.data.split(g).join("");if(w===this.leftGuard)if(this.prev instanceof c.default){var E=this.prev.length();this.prev.insertAt(E,P),x={startNode:this.prev.domNode,startOffset:E+P.length}}else k=document.createTextNode(P),this.parent.insertBefore(l.default.create(k),this),x={startNode:k,startOffset:P.length};else w===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,P),x={startNode:this.next.domNode,startOffset:P.length}):(k=document.createTextNode(P),this.parent.insertBefore(l.default.create(k),this.next),x={startNode:k,startOffset:P.length}));return w.data=g,x}},{key:"update",value:function(w,x){var k=this;w.forEach(function(P){if(P.type==="characterData"&&(P.target===k.leftGuard||P.target===k.rightGuard)){var E=k.restore(P.target);E&&(x.range=E)}})}}]),_}(l.default.Embed);i.default=v},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new o.default.Attributor.Attribute("align","align",l),c=new o.default.Attributor.Class("align","ql-align",l),d=new o.default.Attributor.Style("align","text-align",l);i.AlignAttribute=u,i.AlignClass=c,i.AlignStyle=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var a=r(0),o=l(a),s=r(26);function l(d){return d&&d.__esModule?d:{default:d}}var u=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),c=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});i.BackgroundClass=u,i.BackgroundStyle=c},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},u=new o.default.Attributor.Attribute("direction","dir",l),c=new o.default.Attributor.Class("direction","ql-direction",l),d=new o.default.Attributor.Style("direction","direction",l);i.DirectionAttribute=u,i.DirectionClass=c,i.DirectionStyle=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=function(){function y(_,S){for(var w=0;w<S.length;w++){var x=S[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,S,w){return S&&y(_.prototype,S),w&&y(_,w),_}}(),o=function y(_,S,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,S);if(x===void 0){var k=Object.getPrototypeOf(_);return k===null?void 0:y(k,S,w)}else{if("value"in x)return x.value;var P=x.get;return P===void 0?void 0:P.call(w)}},s=r(0),l=u(s);function u(y){return y&&y.__esModule?y:{default:y}}function c(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function d(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function f(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var h={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new l.default.Attributor.Class("font","ql-font",h),g=function(y){f(_,y);function _(){return c(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"value",value:function(w){return o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),_}(l.default.Attributor.Style),v=new g("font","font-family",h);i.FontStyle=v,i.FontClass=m},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var a=r(0),o=s(a);function s(c){return c&&c.__esModule?c:{default:c}}var l=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=l,i.SizeStyle=u},function(n,i,r){n.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var a=function(){function S(w,x){for(var k=0;k<x.length;k++){var P=x[k];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(w,P.key,P)}}return function(w,x,k){return x&&S(w.prototype,x),k&&S(w,k),w}}(),o=r(0),s=f(o),l=r(5),u=f(l),c=r(9),d=f(c);function f(S){return S&&S.__esModule?S:{default:S}}function h(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function m(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function g(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var v=function(S){g(w,S);function w(x,k){h(this,w);var P=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,x,k));return P.lastRecorded=0,P.ignoreChange=!1,P.clear(),P.quill.on(u.default.events.EDITOR_CHANGE,function(E,A,D,T){E!==u.default.events.TEXT_CHANGE||P.ignoreChange||(!P.options.userOnly||T===u.default.sources.USER?P.record(A,D):P.transform(A))}),P.quill.keyboard.addBinding({key:"Z",shortKey:!0},P.undo.bind(P)),P.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},P.redo.bind(P)),/Win/i.test(navigator.platform)&&P.quill.keyboard.addBinding({key:"Y",shortKey:!0},P.redo.bind(P)),P}return a(w,[{key:"change",value:function(k,P){if(this.stack[k].length!==0){var E=this.stack[k].pop();this.stack[P].push(E),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(E[k],u.default.sources.USER),this.ignoreChange=!1;var A=_(E[k]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,P){if(k.ops.length!==0){this.stack.redo=[];var E=this.quill.getContents().diff(P),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var D=this.stack.undo.pop();E=E.compose(D.undo),k=D.redo.compose(k)}else this.lastRecorded=A;this.stack.undo.push({redo:k,undo:E}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(P){P.undo=k.transform(P.undo,!0),P.redo=k.transform(P.redo,!0)}),this.stack.redo.forEach(function(P){P.undo=k.transform(P.undo,!0),P.redo=k.transform(P.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w}(d.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(S){var w=S.ops[S.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(` `):w.attributes!=null?Object.keys(w.attributes).some(function(x){return s.default.query(x,s.default.Scope.BLOCK)!=null}):!1}function _(S){var w=S.reduce(function(k,P){return k+=P.delete||0,k},0),x=S.length()-w;return y(S)&&(x-=1),x}i.default=v,i.getLastChangeIndex=_},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var a=function(){function W(te,he){for(var oe=0;oe<he.length;oe++){var U=he[oe];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(te,U.key,U)}}return function(te,he,oe){return he&&W(te.prototype,he),oe&&W(te,oe),te}}(),o=function W(te,he,oe){te===null&&(te=Function.prototype);var U=Object.getOwnPropertyDescriptor(te,he);if(U===void 0){var ee=Object.getPrototypeOf(te);return ee===null?void 0:W(ee,he,oe)}else{if("value"in U)return U.value;var re=U.get;return re===void 0?void 0:re.call(oe)}},s=r(3),l=A(s),u=r(2),c=A(u),d=r(8),f=A(d),h=r(23),m=A(h),g=r(34),v=A(g),y=r(59),_=A(y),S=r(60),w=A(S),x=r(28),k=A(x),P=r(61),E=A(P);function A(W){return W&&W.__esModule?W:{default:W}}function D(W,te){if(!(W instanceof te))throw new TypeError("Cannot call a class as a function")}function T(W,te){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:W}function O(W,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);W.prototype=Object.create(te&&te.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(W,te):W.__proto__=te)}var N=[!1,"center","right","justify"],V=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],q=["1","2","3",!1],ne=["small",!1,"large","huge"],ae=function(W){O(te,W);function te(he,oe){D(this,te);var U=T(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,he,oe)),ee=function re(ue){if(!document.body.contains(he.root))return document.body.removeEventListener("click",re);U.tooltip!=null&&!U.tooltip.root.contains(ue.target)&&document.activeElement!==U.tooltip.textbox&&!U.quill.hasFocus()&&U.tooltip.hide(),U.pickers!=null&&U.pickers.forEach(function(pe){pe.container.contains(ue.target)||pe.close()})};return he.emitter.listenDOM("click",document.body,ee),U}return a(te,[{key:"addModule",value:function(oe){var U=o(te.prototype.__proto__||Object.getPrototypeOf(te.prototype),"addModule",this).call(this,oe);return oe==="toolbar"&&this.extendToolbar(U),U}},{key:"buildButtons",value:function(oe,U){oe.forEach(function(ee){var re=ee.getAttribute("class")||"";re.split(/\s+/).forEach(function(ue){if(ue.startsWith("ql-")&&(ue=ue.slice(3),U[ue]!=null))if(ue==="direction")ee.innerHTML=U[ue][""]+U[ue].rtl;else if(typeof U[ue]=="string")ee.innerHTML=U[ue];else{var pe=ee.value||"";pe!=null&&U[ue][pe]&&(ee.innerHTML=U[ue][pe])}})})}},{key:"buildPickers",value:function(oe,U){var ee=this;this.pickers=oe.map(function(ue){if(ue.classList.contains("ql-align"))return ue.querySelector("option")==null&&I(ue,N),new w.default(ue,U.align);if(ue.classList.contains("ql-background")||ue.classList.contains("ql-color")){var pe=ue.classList.contains("ql-background")?"background":"color";return ue.querySelector("option")==null&&I(ue,V,pe==="background"?"#ffffff":"#000000"),new _.default(ue,U[pe])}else return ue.querySelector("option")==null&&(ue.classList.contains("ql-font")?I(ue,j):ue.classList.contains("ql-header")?I(ue,q):ue.classList.contains("ql-size")&&I(ue,ne)),new k.default(ue)});var re=function(){ee.pickers.forEach(function(pe){pe.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,re)}}]),te}(v.default);ae.DEFAULTS=(0,l.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var te=this,he=this.container.querySelector("input.ql-image[type=file]");he==null&&(he=document.createElement("input"),he.setAttribute("type","file"),he.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),he.classList.add("ql-image"),he.addEventListener("change",function(){if(he.files!=null&&he.files[0]!=null){var oe=new FileReader;oe.onload=function(U){var ee=te.quill.getSelection(!0);te.quill.updateContents(new c.default().retain(ee.index).delete(ee.length).insert({image:U.target.result}),f.default.sources.USER),te.quill.setSelection(ee.index+1,f.default.sources.SILENT),he.value=""},oe.readAsDataURL(he.files[0])}}),this.container.appendChild(he)),he.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Y=function(W){O(te,W);function te(he,oe){D(this,te);var U=T(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,he,oe));return U.textbox=U.root.querySelector('input[type="text"]'),U.listen(),U}return a(te,[{key:"listen",value:function(){var oe=this;this.textbox.addEventListener("keydown",function(U){m.default.match(U,"enter")?(oe.save(),U.preventDefault()):m.default.match(U,"escape")&&(oe.cancel(),U.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),U!=null?this.textbox.value=U:oe!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+oe)||""),this.root.setAttribute("data-mode",oe)}},{key:"restoreFocus",value:function(){var oe=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=oe}},{key:"save",value:function(){var oe=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var U=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",oe,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",oe,f.default.sources.USER)),this.quill.root.scrollTop=U;break}case"video":oe=M(oe);case"formula":{if(!oe)break;var ee=this.quill.getSelection(!0);if(ee!=null){var re=ee.index+ee.length;this.quill.insertEmbed(re,this.root.getAttribute("data-mode"),oe,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(re+1," ",f.default.sources.USER),this.quill.setSelection(re+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),te}(E.default);function M(W){var te=W.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||W.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return te?(te[1]||"https")+"://www.youtube.com/embed/"+te[2]+"?showinfo=0":(te=W.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(te[1]||"https")+"://player.vimeo.com/video/"+te[2]+"/":W}function I(W,te){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;te.forEach(function(oe){var U=document.createElement("option");oe===he?U.setAttribute("selected","selected"):U.setAttribute("value",oe),W.appendChild(U)})}i.BaseTooltip=Y,i.default=ae},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,u=this.iterator();l=u();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,u=this.head;u!=null;){if(u===s)return l;l+=u.length(),u=u.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var u,c=this.iterator();u=c();){var d=u.length();if(s<d||l&&s===d&&(u.next==null||u.next.length()!==0))return[u,s];s-=d}return[null,0]},o.prototype.forEach=function(s){for(var l,u=this.iterator();l=u();)s(l)},o.prototype.forEachAt=function(s,l,u){if(!(l<=0))for(var c=this.find(s),d=c[0],f=c[1],h,m=s-f,g=this.iterator(d);(h=g())&&m<s+l;){var v=h.length();s>m?u(h,s-m,Math.min(l,m+v-s)):u(h,0,Math.min(v,s+l-m)),m+=v}},o.prototype.map=function(s){return this.reduce(function(l,u){return l.push(s(u)),l},[])},o.prototype.reduce=function(s,l){for(var u,c=this.iterator();u=c();)l=s(l,u);return l},o}();i.default=a},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(17),s=r(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,c=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.scroll=m,m.observer=new MutationObserver(function(g){m.update(g)}),m.observer.observe(m.domNode,l),m.attach(),m}return f.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(h,m){this.update(),h===0&&m===this.length()?this.children.forEach(function(g){g.remove()}):d.prototype.deleteAt.call(this,h,m)},f.prototype.formatAt=function(h,m,g,v){this.update(),d.prototype.formatAt.call(this,h,m,g,v)},f.prototype.insertAt=function(h,m,g){this.update(),d.prototype.insertAt.call(this,h,m,g)},f.prototype.optimize=function(h,m){var g=this;h===void 0&&(h=[]),m===void 0&&(m={}),d.prototype.optimize.call(this,m);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)h.push(v.pop());for(var y=function(x,k){k===void 0&&(k=!0),!(x==null||x===g)&&x.domNode.parentNode!=null&&(x.domNode[s.DATA_KEY].mutations==null&&(x.domNode[s.DATA_KEY].mutations=[]),k&&y(x.parent))},_=function(x){x.domNode[s.DATA_KEY]==null||x.domNode[s.DATA_KEY].mutations==null||(x instanceof o.default&&x.children.forEach(_),x.optimize(m))},S=h,w=0;S.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(S.forEach(function(x){var k=s.find(x.target,!0);k!=null&&(k.domNode===x.target&&(x.type==="childList"?(y(s.find(x.previousSibling,!1)),[].forEach.call(x.addedNodes,function(P){var E=s.find(P,!1);y(E,!1),E instanceof o.default&&E.children.forEach(function(A){y(A,!1)})})):x.type==="attributes"&&y(k.prev)),y(k))}),this.children.forEach(_),S=[].slice.call(this.observer.takeRecords()),v=S.slice();v.length>0;)h.push(v.pop())}},f.prototype.update=function(h,m){var g=this;m===void 0&&(m={}),h=h||this.observer.takeRecords(),h.map(function(v){var y=s.find(v.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[v],y):(y.domNode[s.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===g||v.domNode[s.DATA_KEY]==null||v.update(v.domNode[s.DATA_KEY].mutations||[],m)}),this.domNode[s.DATA_KEY].mutations!=null&&d.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,m),this.optimize(h,m)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f}(o.default);i.default=c},function(n,i,r){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){c(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(18),s=r(1);function l(c,d){if(Object.keys(c).length!==Object.keys(d).length)return!1;for(var f in c)if(c[f]!==d[f])return!1;return!0}var u=function(c){a(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){if(f.tagName!==d.tagName)return c.formats.call(this,f)},d.prototype.format=function(f,h){var m=this;f===this.statics.blotName&&!h?(this.children.forEach(function(g){g instanceof o.default||(g=g.wrap(d.blotName,!0)),m.attributes.copy(g)}),this.unwrap()):c.prototype.format.call(this,f,h)},d.prototype.formatAt=function(f,h,m,g){if(this.formats()[m]!=null||s.query(m,s.Scope.ATTRIBUTE)){var v=this.isolate(f,h);v.format(m,g)}else c.prototype.formatAt.call(this,f,h,m,g)},d.prototype.optimize=function(f){c.prototype.optimize.call(this,f);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var m=this.next;m instanceof d&&m.prev===this&&l(h,m.formats())&&(m.moveChildren(this),m.remove())},d.blotName="inline",d.scope=s.Scope.INLINE_BLOT,d.tagName="SPAN",d}(o.default);i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(18),s=r(1),l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(d){var f=s.query(c.blotName).tagName;if(d.tagName!==f)return u.formats.call(this,d)},c.prototype.format=function(d,f){s.query(d,s.Scope.BLOCK)!=null&&(d===this.statics.blotName&&!f?this.replaceWith(c.blotName):u.prototype.format.call(this,d,f))},c.prototype.formatAt=function(d,f,h,m){s.query(h,s.Scope.BLOCK)!=null?this.format(h,m):u.prototype.formatAt.call(this,d,f,h,m)},c.prototype.insertAt=function(d,f,h){if(h==null||s.query(f,s.Scope.INLINE)!=null)u.prototype.insertAt.call(this,d,f,h);else{var m=this.split(d),g=s.create(f,h);m.parent.insertBefore(g,m)}},c.prototype.update=function(d,f){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,d,f)},c.blotName="block",c.scope=s.Scope.BLOCK_BLOT,c.tagName="P",c}(o.default);i.default=l},function(n,i,r){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var d in c)c.hasOwnProperty(d)&&(u[d]=c[d])};return function(u,c){l(u,c);function d(){this.constructor=u}u.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(19),s=function(l){a(u,l);function u(){return l!==null&&l.apply(this,arguments)||this}return u.formats=function(c){},u.prototype.format=function(c,d){l.prototype.formatAt.call(this,0,this.length(),c,d)},u.prototype.formatAt=function(c,d,f,h){c===0&&d===this.length()?this.format(f,h):l.prototype.formatAt.call(this,c,d,f,h)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(o.default);i.default=s},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(19),s=r(1),l=function(u){a(c,u);function c(d){var f=u.call(this,d)||this;return f.text=f.statics.value(f.domNode),f}return c.create=function(d){return document.createTextNode(d)},c.value=function(d){var f=d.data;return f.normalize&&(f=f.normalize()),f},c.prototype.deleteAt=function(d,f){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+f)},c.prototype.index=function(d,f){return this.domNode===d?f:-1},c.prototype.insertAt=function(d,f,h){h==null?(this.text=this.text.slice(0,d)+f+this.text.slice(d),this.domNode.data=this.text):u.prototype.insertAt.call(this,d,f,h)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(d){u.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(d,f){return[this.domNode,d]},c.prototype.split=function(d,f){if(f===void 0&&(f=!1),!f){if(d===0)return this;if(d===this.length())return this.next}var h=s.create(this.domNode.splitText(d));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},c.prototype.update=function(d,f){var h=this;d.some(function(m){return m.type==="characterData"&&m.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=s.Scope.INLINE_BLOT,c}(o.default);i.default=l},function(n,i,r){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:o.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var u=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>u.length)&&(l=u.length),l-=s.length;var c=u.indexOf(s,l);return c!==-1&&c===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),c=u.length>>>0,d=arguments[1],f,h=0;h<c;h++)if(f=u[h],l.call(d,f,h,u))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,i){var r=-1,a=1,o=0;function s(w,x,k){if(w==x)return w?[[o,w]]:[];(k<0||w.length<k)&&(k=null);var P=d(w,x),E=w.substring(0,P);w=w.substring(P),x=x.substring(P),P=f(w,x);var A=w.substring(w.length-P);w=w.substring(0,w.length-P),x=x.substring(0,x.length-P);var D=l(w,x);return E&&D.unshift([o,E]),A&&D.push([o,A]),m(D),k!=null&&(D=y(D,k)),D=_(D),D}function l(w,x){var k;if(!w)return[[a,x]];if(!x)return[[r,w]];var P=w.length>x.length?w:x,E=w.length>x.length?x:w,A=P.indexOf(E);if(A!=-1)return k=[[a,P.substring(0,A)],[o,E],[a,P.substring(A+E.length)]],w.length>x.length&&(k[0][0]=k[2][0]=r),k;if(E.length==1)return[[r,w],[a,x]];var D=h(w,x);if(D){var T=D[0],O=D[1],N=D[2],V=D[3],j=D[4],q=s(T,N),ne=s(O,V);return q.concat([[o,j]],ne)}return u(w,x)}function u(w,x){for(var k=w.length,P=x.length,E=Math.ceil((k+P)/2),A=E,D=2*E,T=new Array(D),O=new Array(D),N=0;N<D;N++)T[N]=-1,O[N]=-1;T[A+1]=0,O[A+1]=0;for(var V=k-P,j=V%2!=0,q=0,ne=0,ae=0,Y=0,M=0;M<E;M++){for(var I=-M+q;I<=M-ne;I+=2){var W=A+I,te;I==-M||I!=M&&T[W-1]<T[W+1]?te=T[W+1]:te=T[W-1]+1;for(var he=te-I;te<k&&he<P&&w.charAt(te)==x.charAt(he);)te++,he++;if(T[W]=te,te>k)ne+=2;else if(he>P)q+=2;else if(j){var oe=A+V-I;if(oe>=0&&oe<D&&O[oe]!=-1){var U=k-O[oe];if(te>=U)return c(w,x,te,he)}}}for(var ee=-M+ae;ee<=M-Y;ee+=2){var oe=A+ee,U;ee==-M||ee!=M&&O[oe-1]<O[oe+1]?U=O[oe+1]:U=O[oe-1]+1;for(var re=U-ee;U<k&&re<P&&w.charAt(k-U-1)==x.charAt(P-re-1);)U++,re++;if(O[oe]=U,U>k)Y+=2;else if(re>P)ae+=2;else if(!j){var W=A+V-ee;if(W>=0&&W<D&&T[W]!=-1){var te=T[W],he=A+te-W;if(U=k-U,te>=U)return c(w,x,te,he)}}}}return[[r,w],[a,x]]}function c(w,x,k,P){var E=w.substring(0,k),A=x.substring(0,P),D=w.substring(k),T=x.substring(P),O=s(E,A),N=s(D,T);return O.concat(N)}function d(w,x){if(!w||!x||w.charAt(0)!=x.charAt(0))return 0;for(var k=0,P=Math.min(w.length,x.length),E=P,A=0;k<E;)w.substring(A,E)==x.substring(A,E)?(k=E,A=k):P=E,E=Math.floor((P-k)/2+k);return E}function f(w,x){if(!w||!x||w.charAt(w.length-1)!=x.charAt(x.length-1))return 0;for(var k=0,P=Math.min(w.length,x.length),E=P,A=0;k<E;)w.substring(w.length-E,w.length-A)==x.substring(x.length-E,x.length-A)?(k=E,A=k):P=E,E=Math.floor((P-k)/2+k);return E}function h(w,x){var k=w.length>x.length?w:x,P=w.length>x.length?x:w;if(k.length<4||P.length*2<k.length)return null;function E(ne,ae,Y){for(var M=ne.substring(Y,Y+Math.floor(ne.length/4)),I=-1,W="",te,he,oe,U;(I=ae.indexOf(M,I+1))!=-1;){var ee=d(ne.substring(Y),ae.substring(I)),re=f(ne.substring(0,Y),ae.substring(0,I));W.length<re+ee&&(W=ae.substring(I-re,I)+ae.substring(I,I+ee),te=ne.substring(0,Y-re),he=ne.substring(Y+ee),oe=ae.substring(0,I-re),U=ae.substring(I+ee))}return W.length*2>=ne.length?[te,he,oe,U,W]:null}var A=E(k,P,Math.ceil(k.length/4)),D=E(k,P,Math.ceil(k.length/2)),T;if(!A&&!D)return null;D?A?T=A[4].length>D[4].length?A:D:T=D:T=A;var O,N,V,j;w.length>x.length?(O=T[0],N=T[1],V=T[2],j=T[3]):(V=T[0],j=T[1],O=T[2],N=T[3]);var q=T[4];return[O,N,V,j,q]}function m(w){w.push([o,""]);for(var x=0,k=0,P=0,E="",A="",D;x<w.length;)switch(w[x][0]){case a:P++,A+=w[x][1],x++;break;case r:k++,E+=w[x][1],x++;break;case o:k+P>1?(k!==0&&P!==0&&(D=d(A,E),D!==0&&(x-k-P>0&&w[x-k-P-1][0]==o?w[x-k-P-1][1]+=A.substring(0,D):(w.splice(0,0,[o,A.substring(0,D)]),x++),A=A.substring(D),E=E.substring(D)),D=f(A,E),D!==0&&(w[x][1]=A.substring(A.length-D)+w[x][1],A=A.substring(0,A.length-D),E=E.substring(0,E.length-D))),k===0?w.splice(x-P,k+P,[a,A]):P===0?w.splice(x-k,k+P,[r,E]):w.splice(x-k-P,k+P,[r,E],[a,A]),x=x-k-P+(k?1:0)+(P?1:0)+1):x!==0&&w[x-1][0]==o?(w[x-1][1]+=w[x][1],w.splice(x,1)):x++,P=0,k=0,E="",A="";break}w[w.length-1][1]===""&&w.pop();var T=!1;for(x=1;x<w.length-1;)w[x-1][0]==o&&w[x+1][0]==o&&(w[x][1].substring(w[x][1].length-w[x-1][1].length)==w[x-1][1]?(w[x][1]=w[x-1][1]+w[x][1].substring(0,w[x][1].length-w[x-1][1].length),w[x+1][1]=w[x-1][1]+w[x+1][1],w.splice(x-1,1),T=!0):w[x][1].substring(0,w[x+1][1].length)==w[x+1][1]&&(w[x-1][1]+=w[x+1][1],w[x][1]=w[x][1].substring(w[x+1][1].length)+w[x+1][1],w.splice(x+1,1),T=!0)),x++;T&&m(w)}var g=s;g.INSERT=a,g.DELETE=r,g.EQUAL=o,n.exports=g;function v(w,x){if(x===0)return[o,w];for(var k=0,P=0;P<w.length;P++){var E=w[P];if(E[0]===r||E[0]===o){var A=k+E[1].length;if(x===A)return[P+1,w];if(x<A){w=w.slice();var D=x-k,T=[E[0],E[1].slice(0,D)],O=[E[0],E[1].slice(D)];return w.splice(P,1,T,O),[P+1,w]}else k=A}}throw new Error("cursor_pos is out of bounds!")}function y(w,x){var k=v(w,x),P=k[1],E=k[0],A=P[E],D=P[E+1];if(A==null)return w;if(A[0]!==o)return w;if(D!=null&&A[1]+D[1]===D[1]+A[1])return P.splice(E,2,D,A),S(P,E,2);if(D!=null&&D[1].indexOf(A[1])===0){P.splice(E,2,[D[0],A[1]],[0,A[1]]);var T=D[1].slice(A[1].length);return T.length>0&&P.splice(E+2,0,[D[0],T]),S(P,E,3)}else return w}function _(w){for(var x=!1,k=function(D){return D.charCodeAt(0)>=56320&&D.charCodeAt(0)<=57343},P=function(D){return D.charCodeAt(D.length-1)>=55296&&D.charCodeAt(D.length-1)<=56319},E=2;E<w.length;E+=1)w[E-2][0]===o&&P(w[E-2][1])&&w[E-1][0]===r&&k(w[E-1][1])&&w[E][0]===a&&k(w[E][1])&&(x=!0,w[E-1][1]=w[E-2][1].slice(-1)+w[E-1][1],w[E][1]=w[E-2][1].slice(-1)+w[E][1],w[E-2][1]=w[E-2][1].slice(0,-1));if(!x)return w;for(var A=[],E=0;E<w.length;E+=1)w[E][1].length>0&&A.push(w[E]);return A}function S(w,x,k){for(var P=x+k-1;P>=0&&P>=x-1;P--)if(P+1<w.length){var E=w[P],A=w[P+1];E[0]===A[1]&&w.splice(P,2,[E[0],E[1]+A[1]])}return w}},function(n,i){i=n.exports=typeof Object.keys=="function"?Object.keys:r,i.shim=r;function r(a){var o=[];for(var s in a)o.push(s);return o}},function(n,i){var r=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";i=n.exports=r?a:o,i.supported=a;function a(s){return Object.prototype.toString.call(s)=="[object Arguments]"}i.unsupported=o;function o(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}},function(n,i){var r=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function s(u,c,d){this.fn=u,this.context=c,this.once=d||!1}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],d,f;if(this._eventsCount===0)return c;for(f in d=this._events)r.call(d,f)&&c.push(a?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},l.prototype.listeners=function(c,d){var f=a?a+c:c,h=this._events[f];if(d)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var m=0,g=h.length,v=new Array(g);m<g;m++)v[m]=h[m].fn;return v},l.prototype.emit=function(c,d,f,h,m,g){var v=a?a+c:c;if(!this._events[v])return!1;var y=this._events[v],_=arguments.length,S,w;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),_){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,f),!0;case 4:return y.fn.call(y.context,d,f,h),!0;case 5:return y.fn.call(y.context,d,f,h,m),!0;case 6:return y.fn.call(y.context,d,f,h,m,g),!0}for(w=1,S=new Array(_-1);w<_;w++)S[w-1]=arguments[w];y.fn.apply(y.context,S)}else{var x=y.length,k;for(w=0;w<x;w++)switch(y[w].once&&this.removeListener(c,y[w].fn,void 0,!0),_){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,d);break;case 3:y[w].fn.call(y[w].context,d,f);break;case 4:y[w].fn.call(y[w].context,d,f,h);break;default:if(!S)for(k=1,S=new Array(_-1);k<_;k++)S[k-1]=arguments[k];y[w].fn.apply(y[w].context,S)}}return!0},l.prototype.on=function(c,d,f){var h=new s(d,f||this),m=a?a+c:c;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],h]:this._events[m].push(h):(this._events[m]=h,this._eventsCount++),this},l.prototype.once=function(c,d,f){var h=new s(d,f||this,!0),m=a?a+c:c;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],h]:this._events[m].push(h):(this._events[m]=h,this._eventsCount++),this},l.prototype.removeListener=function(c,d,f,h){var m=a?a+c:c;if(!this._events[m])return this;if(!d)return--this._eventsCount===0?this._events=new o:delete this._events[m],this;var g=this._events[m];if(g.fn)g.fn===d&&(!h||g.once)&&(!f||g.context===f)&&(--this._eventsCount===0?this._events=new o:delete this._events[m]);else{for(var v=0,y=[],_=g.length;v<_;v++)(g[v].fn!==d||h&&!g[v].once||f&&g[v].context!==f)&&y.push(g[v]);y.length?this._events[m]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new o:delete this._events[m]}return this},l.prototype.removeAllListeners=function(c){var d;return c?(d=a?a+c:c,this._events[d]&&(--this._eventsCount===0?this._events=new o:delete this._events[d])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=a,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},o=function(){function _e(be,ie){var se=[],de=!0,xe=!1,Re=void 0;try{for(var Pe=be[Symbol.iterator](),we;!(de=(we=Pe.next()).done)&&(se.push(we.value),!(ie&&se.length===ie));de=!0);}catch(Ae){xe=!0,Re=Ae}finally{try{!de&&Pe.return&&Pe.return()}finally{if(xe)throw Re}}return se}return function(be,ie){if(Array.isArray(be))return be;if(Symbol.iterator in Object(be))return _e(be,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function _e(be,ie){for(var se=0;se<ie.length;se++){var de=ie[se];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(be,de.key,de)}}return function(be,ie,se){return ie&&_e(be.prototype,ie),se&&_e(be,se),be}}(),l=r(3),u=O(l),c=r(2),d=O(c),f=r(0),h=O(f),m=r(5),g=O(m),v=r(10),y=O(v),_=r(9),S=O(_),w=r(36),x=r(37),k=r(13),P=O(k),E=r(26),A=r(38),D=r(39),T=r(40);function O(_e){return _e&&_e.__esModule?_e:{default:_e}}function N(_e,be,ie){return be in _e?Object.defineProperty(_e,be,{value:ie,enumerable:!0,configurable:!0,writable:!0}):_e[be]=ie,_e}function V(_e,be){if(!(_e instanceof be))throw new TypeError("Cannot call a class as a function")}function j(_e,be){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:_e}function q(_e,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);_e.prototype=Object.create(be&&be.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,be):_e.__proto__=be)}var ne=(0,y.default)("quill:clipboard"),ae="__ql-matcher",Y=[[Node.TEXT_NODE,Ee],[Node.TEXT_NODE,X],["br",ge],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,pe],[Node.ELEMENT_NODE,ye],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,Se],["li",Z],["b",re.bind(re,"bold")],["i",re.bind(re,"italic")],["style",Te]],M=[w.AlignAttribute,A.DirectionAttribute].reduce(function(_e,be){return _e[be.keyName]=be,_e},{}),I=[w.AlignStyle,x.BackgroundStyle,E.ColorStyle,A.DirectionStyle,D.FontStyle,T.SizeStyle].reduce(function(_e,be){return _e[be.keyName]=be,_e},{}),W=function(_e){q(be,_e);function be(ie,se){V(this,be);var de=j(this,(be.__proto__||Object.getPrototypeOf(be)).call(this,ie,se));return de.quill.root.addEventListener("paste",de.onPaste.bind(de)),de.container=de.quill.addContainer("ql-clipboard"),de.container.setAttribute("contenteditable",!0),de.container.setAttribute("tabindex",-1),de.matchers=[],Y.concat(de.options.matchers).forEach(function(xe){var Re=o(xe,2),Pe=Re[0],we=Re[1];!se.matchVisual&&we===ye||de.addMatcher(Pe,we)}),de}return s(be,[{key:"addMatcher",value:function(se,de){this.matchers.push([se,de])}},{key:"convert",value:function(se){if(typeof se=="string")return this.container.innerHTML=se.replace(/\>\r?\n +\</g,"><"),this.convert();var de=this.quill.getFormat(this.quill.selection.savedRange.index);if(de[P.default.blotName]){var xe=this.container.innerText;return this.container.innerHTML="",new d.default().insert(xe,N({},P.default.blotName,de[P.default.blotName]))}var Re=this.prepareMatching(),Pe=o(Re,2),we=Pe[0],Ae=Pe[1],Ie=ee(this.container,we,Ae);return oe(Ie,` `)&&Ie.ops[Ie.ops.length-1].attributes==null&&(Ie=Ie.compose(new d.default().retain(Ie.length()-1).delete(1))),ne.log("convert",this.container.innerHTML,Ie),this.container.innerHTML="",Ie}},{key:"dangerouslyPasteHTML",value:function(se,de){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof se=="string")this.quill.setContents(this.convert(se),de),this.quill.setSelection(0,g.default.sources.SILENT);else{var Re=this.convert(de);this.quill.updateContents(new d.default().retain(se).concat(Re),xe),this.quill.setSelection(se+Re.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(se){var de=this;if(!(se.defaultPrevented||!this.quill.isEnabled())){var xe=this.quill.getSelection(),Re=new d.default().retain(xe.index),Pe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){Re=Re.concat(de.convert()).delete(xe.length),de.quill.updateContents(Re,g.default.sources.USER),de.quill.setSelection(Re.length()-xe.length,g.default.sources.SILENT),de.quill.scrollingContainer.scrollTop=Pe,de.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var se=this,de=[],xe=[];return this.matchers.forEach(function(Re){var Pe=o(Re,2),we=Pe[0],Ae=Pe[1];switch(we){case Node.TEXT_NODE:xe.push(Ae);break;case Node.ELEMENT_NODE:de.push(Ae);break;default:[].forEach.call(se.container.querySelectorAll(we),function(Ie){Ie[ae]=Ie[ae]||[],Ie[ae].push(Ae)});break}}),[de,xe]}}]),be}(S.default);W.DEFAULTS={matchers:[],matchVisual:!0};function te(_e,be,ie){return(typeof be>"u"?"undefined":a(be))==="object"?Object.keys(be).reduce(function(se,de){return te(se,de,be[de])},_e):_e.reduce(function(se,de){return de.attributes&&de.attributes[be]?se.push(de):se.insert(de.insert,(0,u.default)({},N({},be,ie),de.attributes))},new d.default)}function he(_e){if(_e.nodeType!==Node.ELEMENT_NODE)return{};var be="__ql-computed-style";return _e[be]||(_e[be]=window.getComputedStyle(_e))}function oe(_e,be){for(var ie="",se=_e.ops.length-1;se>=0&&ie.length<be.length;--se){var de=_e.ops[se];if(typeof de.insert!="string")break;ie=de.insert+ie}return ie.slice(-1*be.length)===be}function U(_e){if(_e.childNodes.length===0)return!1;var be=he(_e);return["block","list-item"].indexOf(be.display)>-1}function ee(_e,be,ie){return _e.nodeType===_e.TEXT_NODE?ie.reduce(function(se,de){return de(_e,se)},new d.default):_e.nodeType===_e.ELEMENT_NODE?[].reduce.call(_e.childNodes||[],function(se,de){var xe=ee(de,be,ie);return de.nodeType===_e.ELEMENT_NODE&&(xe=be.reduce(function(Re,Pe){return Pe(de,Re)},xe),xe=(de[ae]||[]).reduce(function(Re,Pe){return Pe(de,Re)},xe)),se.concat(xe)},new d.default):new d.default}function re(_e,be,ie){return te(ie,_e,!0)}function ue(_e,be){var ie=h.default.Attributor.Attribute.keys(_e),se=h.default.Attributor.Class.keys(_e),de=h.default.Attributor.Style.keys(_e),xe={};return ie.concat(se).concat(de).forEach(function(Re){var Pe=h.default.query(Re,h.default.Scope.ATTRIBUTE);Pe!=null&&(xe[Pe.attrName]=Pe.value(_e),xe[Pe.attrName])||(Pe=M[Re],Pe!=null&&(Pe.attrName===Re||Pe.keyName===Re)&&(xe[Pe.attrName]=Pe.value(_e)||void 0),Pe=I[Re],Pe!=null&&(Pe.attrName===Re||Pe.keyName===Re)&&(Pe=I[Re],xe[Pe.attrName]=Pe.value(_e)||void 0))}),Object.keys(xe).length>0&&(be=te(be,xe)),be}function pe(_e,be){var ie=h.default.query(_e);if(ie==null)return be;if(ie.prototype instanceof h.default.Embed){var se={},de=ie.value(_e);de!=null&&(se[ie.blotName]=de,be=new d.default().insert(se,ie.formats(_e)))}else typeof ie.formats=="function"&&(be=te(be,ie.blotName,ie.formats(_e)));return be}function ge(_e,be){return oe(be,` `)||be.insert(` `),be}function Te(){return new d.default}function Z(_e,be){var ie=h.default.query(_e);if(ie==null||ie.blotName!=="list-item"||!oe(be,` `))return be;for(var se=-1,de=_e.parentNode;!de.classList.contains("ql-clipboard");)(h.default.query(de)||{}).blotName==="list"&&(se+=1),de=de.parentNode;return se<=0?be:be.compose(new d.default().retain(be.length()-1).retain(1,{indent:se}))}function X(_e,be){return oe(be,` `)||(U(_e)||be.length()>0&&_e.nextSibling&&U(_e.nextSibling))&&be.insert(` `),be}function ye(_e,be){if(U(_e)&&_e.nextElementSibling!=null&&!oe(be,` `)){var ie=_e.offsetHeight+parseFloat(he(_e).marginTop)+parseFloat(he(_e).marginBottom);_e.nextElementSibling.offsetTop>_e.offsetTop+ie*1.5&&be.insert(` `)}return be}function Se(_e,be){var ie={},se=_e.style||{};return se.fontStyle&&he(_e).fontStyle==="italic"&&(ie.italic=!0),se.fontWeight&&(he(_e).fontWeight.startsWith("bold")||parseInt(he(_e).fontWeight)>=700)&&(ie.bold=!0),Object.keys(ie).length>0&&(be=te(be,ie)),parseFloat(se.textIndent||0)>0&&(be=new d.default().insert(" ").concat(be)),be}function Ee(_e,be){var ie=_e.data;if(_e.parentNode.tagName==="O:P")return be.insert(ie.trim());if(ie.trim().length===0&&_e.parentNode.classList.contains("ql-clipboard"))return be;if(!he(_e.parentNode).whiteSpace.startsWith("pre")){var se=function(xe,Re){return Re=Re.replace(/[^\u00a0]/g,""),Re.length<1&&xe?" ":Re};ie=ie.replace(/\r\n/g," ").replace(/\n/g," "),ie=ie.replace(/\s\s+/g,se.bind(se,!0)),(_e.previousSibling==null&&U(_e.parentNode)||_e.previousSibling!=null&&U(_e.previousSibling))&&(ie=ie.replace(/^\s+/,se.bind(se,!1))),(_e.nextSibling==null&&U(_e.parentNode)||_e.nextSibling!=null&&U(_e.nextSibling))&&(ie=ie.replace(/\s+$/,se.bind(se,!1)))}return be.insert(ie)}i.default=W,i.matchAttributor=ue,i.matchBlot=pe,i.matchNewline=X,i.matchSpacing=ye,i.matchText=Ee},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(y)}},s=r(6),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"optimize",value:function(y){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(l.default);h.blotName="bold",h.tagName=["STRONG","B"],i.default=h},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var a=function(){function T(O,N){var V=[],j=!0,q=!1,ne=void 0;try{for(var ae=O[Symbol.iterator](),Y;!(j=(Y=ae.next()).done)&&(V.push(Y.value),!(N&&V.length===N));j=!0);}catch(M){q=!0,ne=M}finally{try{!j&&ae.return&&ae.return()}finally{if(q)throw ne}}return V}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return T(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function T(O,N){for(var V=0;V<N.length;V++){var j=N[V];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,N,V){return N&&T(O.prototype,N),V&&T(O,V),O}}(),s=r(2),l=y(s),u=r(0),c=y(u),d=r(5),f=y(d),h=r(10),m=y(h),g=r(9),v=y(g);function y(T){return T&&T.__esModule?T:{default:T}}function _(T,O,N){return O in T?Object.defineProperty(T,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):T[O]=N,T}function S(T,O){if(!(T instanceof O))throw new TypeError("Cannot call a class as a function")}function w(T,O){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:T}function x(T,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);T.prototype=Object.create(O&&O.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(T,O):T.__proto__=O)}var k=(0,m.default)("quill:toolbar"),P=function(T){x(O,T);function O(N,V){S(this,O);var j=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,V));if(Array.isArray(j.options.container)){var q=document.createElement("div");A(q,j.options.container),N.container.parentNode.insertBefore(q,N.container),j.container=q}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var ne;return ne=k.error("Container required for toolbar",j.options),w(j,ne)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(ae){j.addHandler(ae,j.options.handlers[ae])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(ae){j.attach(ae)}),j.quill.on(f.default.events.EDITOR_CHANGE,function(ae,Y){ae===f.default.events.SELECTION_CHANGE&&j.update(Y)}),j.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var ae=j.quill.selection.getRange(),Y=a(ae,1),M=Y[0];j.update(M)}),j}return o(O,[{key:"addHandler",value:function(V,j){this.handlers[V]=j}},{key:"attach",value:function(V){var j=this,q=[].find.call(V.classList,function(ae){return ae.indexOf("ql-")===0});if(q){if(q=q.slice(3),V.tagName==="BUTTON"&&V.setAttribute("type","button"),this.handlers[q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[q]==null){k.warn("ignoring attaching to disabled format",q,V);return}if(c.default.query(q)==null){k.warn("ignoring attaching to nonexistent format",q,V);return}}var ne=V.tagName==="SELECT"?"change":"click";V.addEventListener(ne,function(ae){var Y=void 0;if(V.tagName==="SELECT"){if(V.selectedIndex<0)return;var M=V.options[V.selectedIndex];M.hasAttribute("selected")?Y=!1:Y=M.value||!1}else V.classList.contains("ql-active")?Y=!1:Y=V.value||!V.hasAttribute("value"),ae.preventDefault();j.quill.focus();var I=j.quill.selection.getRange(),W=a(I,1),te=W[0];if(j.handlers[q]!=null)j.handlers[q].call(j,Y);else if(c.default.query(q).prototype instanceof c.default.Embed){if(Y=prompt("Enter "+q),!Y)return;j.quill.updateContents(new l.default().retain(te.index).delete(te.length).insert(_({},q,Y)),f.default.sources.USER)}else j.quill.format(q,Y,f.default.sources.USER);j.update(te)}),this.controls.push([q,V])}}},{key:"update",value:function(V){var j=V==null?{}:this.quill.getFormat(V);this.controls.forEach(function(q){var ne=a(q,2),ae=ne[0],Y=ne[1];if(Y.tagName==="SELECT"){var M=void 0;if(V==null)M=null;else if(j[ae]==null)M=Y.querySelector("option[selected]");else if(!Array.isArray(j[ae])){var I=j[ae];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),M=Y.querySelector('option[value="'+I+'"]')}M==null?(Y.value="",Y.selectedIndex=-1):M.selected=!0}else if(V==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var W=j[ae]===Y.getAttribute("value")||j[ae]!=null&&j[ae].toString()===Y.getAttribute("value")||j[ae]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",W)}else Y.classList.toggle("ql-active",j[ae]!=null)})}}]),O}(v.default);P.DEFAULTS={};function E(T,O,N){var V=document.createElement("button");V.setAttribute("type","button"),V.classList.add("ql-"+O),N!=null&&(V.value=N),T.appendChild(V)}function A(T,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var V=document.createElement("span");V.classList.add("ql-formats"),N.forEach(function(j){if(typeof j=="string")E(V,j);else{var q=Object.keys(j)[0],ne=j[q];Array.isArray(ne)?D(V,q,ne):E(V,q,ne)}}),T.appendChild(V)})}function D(T,O,N){var V=document.createElement("select");V.classList.add("ql-"+O),N.forEach(function(j){var q=document.createElement("option");j!==!1?q.setAttribute("value",j):q.setAttribute("selected","selected"),V.appendChild(q)}),T.appendChild(V)}P.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var V=this.quill.getFormat();Object.keys(V).forEach(function(j){c.default.query(j,c.default.Scope.INLINE)!=null&&O.quill.format(j,!1)})}else this.quill.removeFormat(N,f.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",f.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",O,f.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),V=this.quill.getFormat(N),j=parseInt(V.indent||0);if(O==="+1"||O==="-1"){var q=O==="+1"?1:-1;V.direction==="rtl"&&(q*=-1),this.quill.format("indent",j+q,f.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,f.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),V=this.quill.getFormat(N);O==="check"?V.list==="checked"||V.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",O,f.default.sources.USER)}}},i.default=P,i.addControls=A},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(y)}},s=r(28),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(v,y){c(this,g);var _=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v));return _.label.innerHTML=y,_.container.classList.add("ql-color-picker"),[].slice.call(_.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(S){S.classList.add("ql-primary")}),_}return a(g,[{key:"buildItem",value:function(y){var _=o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,y);return _.style.backgroundColor=y.getAttribute("value")||"",_}},{key:"selectItem",value:function(y,_){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,_);var S=this.label.querySelector(".ql-color-label"),w=y&&y.getAttribute("data-value")||"";S&&(S.tagName==="line"?S.style.stroke=w:S.style.fill=w)}}]),g}(l.default);i.default=h},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(y)}},s=r(28),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(v,y){c(this,g);var _=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v));return _.container.classList.add("ql-icon-picker"),[].forEach.call(_.container.querySelectorAll(".ql-picker-item"),function(S){S.innerHTML=y[S.getAttribute("data-value")||""]}),_.defaultItem=_.container.querySelector(".ql-selected"),_.selectItem(_.defaultItem),_}return a(g,[{key:"selectItem",value:function(y,_){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,_),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),g}(l.default);i.default=h},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function l(u,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,c,d){return c&&l(u.prototype,c),d&&l(u,d),u}}();function o(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(u,c){var d=this;o(this,l),this.quill=u,this.boundsContainer=c||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return a(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var d=c.left+c.width/2-this.root.offsetWidth/2,f=c.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),g=0;if(m.right>h.right&&(g=h.right-m.right,this.root.style.left=d+g+"px"),m.left<h.left&&(g=h.left-m.left,this.root.style.left=d+g+"px"),m.bottom>h.bottom){var v=m.bottom-m.top,y=c.bottom-c.top+v;this.root.style.top=f-y+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();i.default=s},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function D(T,O){var N=[],V=!0,j=!1,q=void 0;try{for(var ne=T[Symbol.iterator](),ae;!(V=(ae=ne.next()).done)&&(N.push(ae.value),!(O&&N.length===O));V=!0);}catch(Y){j=!0,q=Y}finally{try{!V&&ne.return&&ne.return()}finally{if(j)throw q}}return N}return function(T,O){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return D(T,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function D(T,O,N){T===null&&(T=Function.prototype);var V=Object.getOwnPropertyDescriptor(T,O);if(V===void 0){var j=Object.getPrototypeOf(T);return j===null?void 0:D(j,O,N)}else{if("value"in V)return V.value;var q=V.get;return q===void 0?void 0:q.call(N)}},s=function(){function D(T,O){for(var N=0;N<O.length;N++){var V=O[N];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(T,V.key,V)}}return function(T,O,N){return O&&D(T.prototype,O),N&&D(T,N),T}}(),l=r(3),u=S(l),c=r(8),d=S(c),f=r(43),h=S(f),m=r(27),g=S(m),v=r(15),y=r(41),_=S(y);function S(D){return D&&D.__esModule?D:{default:D}}function w(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function x(D,T){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:D}function k(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(D,T):D.__proto__=T)}var P=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(D){k(T,D);function T(O,N){w(this,T),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=P);var V=x(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,O,N));return V.quill.container.classList.add("ql-snow"),V}return s(T,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),_.default),this.tooltip=new A(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(V,j){N.handlers.link.call(N,!j.format.link)})}}]),T}(h.default);E.DEFAULTS=(0,u.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){if(T){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var V=this.quill.theme.tooltip;V.edit("link",N)}else this.quill.format("link",!1)}}}}});var A=function(D){k(T,D);function T(O,N){w(this,T);var V=x(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,O,N));return V.preview=V.root.querySelector("a.ql-preview"),V}return s(T,[{key:"listen",value:function(){var N=this;o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(V){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),V.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(V){if(N.linkRange!=null){var j=N.linkRange;N.restoreFocus(),N.quill.formatText(j,"link",!1,d.default.sources.USER),delete N.linkRange}V.preventDefault(),N.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(V,j,q){if(V!=null){if(V.length===0&&q===d.default.sources.USER){var ne=N.quill.scroll.descendant(g.default,V.index),ae=a(ne,2),Y=ae[0],M=ae[1];if(Y!=null){N.linkRange=new v.Range(V.index-M,Y.length());var I=g.default.formats(Y.domNode);N.preview.textContent=I,N.preview.setAttribute("href",I),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){o(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),T}(f.BaseTooltip);A.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=E},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(29),o=de(a),s=r(36),l=r(38),u=r(64),c=r(65),d=de(c),f=r(66),h=de(f),m=r(67),g=de(m),v=r(37),y=r(26),_=r(39),S=r(40),w=r(56),x=de(w),k=r(68),P=de(k),E=r(27),A=de(E),D=r(69),T=de(D),O=r(70),N=de(O),V=r(71),j=de(V),q=r(72),ne=de(q),ae=r(73),Y=de(ae),M=r(13),I=de(M),W=r(74),te=de(W),he=r(75),oe=de(he),U=r(57),ee=de(U),re=r(41),ue=de(re),pe=r(28),ge=de(pe),Te=r(59),Z=de(Te),X=r(60),ye=de(X),Se=r(61),Ee=de(Se),_e=r(108),be=de(_e),ie=r(62),se=de(ie);function de(xe){return xe&&xe.__esModule?xe:{default:xe}}o.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":S.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":S.SizeStyle},!0),o.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":u.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":_.FontClass,"formats/size":S.SizeClass,"formats/blockquote":d.default,"formats/code-block":I.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":x.default,"formats/code":M.Code,"formats/italic":P.default,"formats/link":A.default,"formats/script":T.default,"formats/strike":N.default,"formats/underline":j.default,"formats/image":ne.default,"formats/video":Y.default,"formats/list/item":m.ListItem,"modules/formula":te.default,"modules/syntax":oe.default,"modules/toolbar":ee.default,"themes/bubble":be.default,"themes/snow":se.default,"ui/icons":ue.default,"ui/picker":ge.default,"ui/icon-picker":ye.default,"ui/color-picker":Z.default,"ui/tooltip":Ee.default},!0),i.default=o.default},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var a=function(){function g(v,y){for(var _=0;_<y.length;_++){var S=y[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,_){return y&&g(v.prototype,y),_&&g(v,_),v}}(),o=function g(v,y,_){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(S===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:g(w,y,_)}else{if("value"in S)return S.value;var x=S.get;return x===void 0?void 0:x.call(_)}},s=r(0),l=u(s);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function d(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function f(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){f(v,g);function v(){return c(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"add",value:function(_,S){if(S==="+1"||S==="-1"){var w=this.value(_)||0;S=S==="+1"?w+1:w-1}return S===0?(this.remove(_),!0):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,_,S)}},{key:"canAdd",value:function(_,S){return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,_,S)||o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,_,parseInt(S))}},{key:"value",value:function(_){return parseInt(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,_))||void 0}}]),v}(l.default.Attributor.Class),m=new h("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=m},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(4),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function c(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var d=function(f){c(h,f);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default);d.blotName="blockquote",d.tagName="blockquote",i.default=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function h(m,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,v){return g&&h(m.prototype,g),v&&h(m,v),m}}(),o=r(4),s=l(o);function l(h){return h&&h.__esModule?h:{default:h}}function u(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function c(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function d(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var f=function(h){d(m,h);function m(){return u(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),m}(s.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],i.default=f},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var a=function(){function w(x,k){for(var P=0;P<k.length;P++){var E=k[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,k,P){return k&&w(x.prototype,k),P&&w(x,P),x}}(),o=function w(x,k,P){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,k);if(E===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:w(A,k,P)}else{if("value"in E)return E.value;var D=E.get;return D===void 0?void 0:D.call(P)}},s=r(0),l=h(s),u=r(4),c=h(u),d=r(25),f=h(d);function h(w){return w&&w.__esModule?w:{default:w}}function m(w,x,k){return x in w?Object.defineProperty(w,x,{value:k,enumerable:!0,configurable:!0,writable:!0}):w[x]=k,w}function g(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function v(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function y(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){y(x,w);function x(){return g(this,x),v(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(P,E){P===S.blotName&&!E?this.replaceWith(l.default.create(this.statics.scope)):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,P,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(P,E){return this.parent.isolate(this.offset(this.parent),this.length()),P===this.parent.statics.blotName?(this.parent.replaceWith(P,E),this):(this.parent.unwrap(),o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,P,E))}}],[{key:"formats",value:function(P){return P.tagName===this.tagName?void 0:o(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,P)}}]),x}(c.default);_.blotName="list-item",_.tagName="LI";var S=function(w){y(x,w),a(x,null,[{key:"create",value:function(P){var E=P==="ordered"?"OL":"UL",A=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,E);return(P==="checked"||P==="unchecked")&&A.setAttribute("data-checked",P==="checked"),A}},{key:"formats",value:function(P){if(P.tagName==="OL")return"ordered";if(P.tagName==="UL")return P.hasAttribute("data-checked")?P.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function x(k){g(this,x);var P=v(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,k)),E=function(D){if(D.target.parentNode===k){var T=P.statics.formats(k),O=l.default.find(D.target);T==="checked"?O.format("list","unchecked"):T==="unchecked"&&O.format("list","checked")}};return k.addEventListener("touchstart",E),k.addEventListener("mousedown",E),P}return a(x,[{key:"format",value:function(P,E){this.children.length>0&&this.children.tail.format(P,E)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(P,E){if(P instanceof _)o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,P,E);else{var A=E==null?this.length():E.offset(this),D=this.split(A);D.parent.insertBefore(P,D)}}},{key:"optimize",value:function(P){o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,P);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(P){if(P.statics.blotName!==this.statics.blotName){var E=l.default.create(this.statics.defaultChild);P.moveChildren(E),this.appendChild(E)}o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,P)}}]),x}(f.default);S.blotName="list",S.scope=l.default.Scope.BLOCK_BLOT,S.tagName=["OL","UL"],S.defaultChild="list-item",S.allowedChildren=[_],i.ListItem=_,i.default=S},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(56),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function c(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var d=function(f){c(h,f);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default);d.blotName="italic",d.tagName=["EM","I"],i.default=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function m(g,v){for(var y=0;y<v.length;y++){var _=v[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,v,y){return v&&m(g.prototype,v),y&&m(g,y),g}}(),o=function m(g,v,y){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,v);if(_===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:m(S,v,y)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(y)}},s=r(6),l=u(s);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h=function(m){f(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),g}(l.default);h.blotName="script",h.tagName=["SUB","SUP"],i.default=h},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function c(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var d=function(f){c(h,f);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default);d.blotName="strike",d.tagName="S",i.default=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function c(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var d=function(f){c(h,f);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(o.default);d.blotName="underline",d.tagName="U",i.default=d},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var w=_[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,_);if(w===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,_,S)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(S)}},s=r(0),l=c(s),u=r(27);function c(v){return v&&v.__esModule?v:{default:v}}function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function f(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m=["alt","height","width"],g=function(v){h(y,v);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(S,w){m.indexOf(S)>-1?w?this.domNode.setAttribute(S,w):this.domNode.removeAttribute(S):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,S,w)}}],[{key:"create",value:function(S){var w=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,S);return typeof S=="string"&&w.setAttribute("src",this.sanitize(S)),w}},{key:"formats",value:function(S){return m.reduce(function(w,x){return S.hasAttribute(x)&&(w[x]=S.getAttribute(x)),w},{})}},{key:"match",value:function(S){return/\.(jpe?g|gif|png)$/.test(S)||/^data:image\/.+;base64/.test(S)}},{key:"sanitize",value:function(S){return(0,u.sanitize)(S,["http","https","data"])?S:"//:0"}},{key:"value",value:function(S){return S.getAttribute("src")}}]),y}(l.default.Embed);g.blotName="image",g.tagName="IMG",i.default=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function v(y,_){for(var S=0;S<_.length;S++){var w=_[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,_,S){return _&&v(y.prototype,_),S&&v(y,S),y}}(),o=function v(y,_,S){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,_);if(w===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,_,S)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(S)}},s=r(4),l=r(27),u=c(l);function c(v){return v&&v.__esModule?v:{default:v}}function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function f(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m=["height","width"],g=function(v){h(y,v);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(S,w){m.indexOf(S)>-1?w?this.domNode.setAttribute(S,w):this.domNode.removeAttribute(S):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,S,w)}}],[{key:"create",value:function(S){var w=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,S);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(S)),w}},{key:"formats",value:function(S){return m.reduce(function(w,x){return S.hasAttribute(x)&&(w[x]=S.getAttribute(x)),w},{})}},{key:"sanitize",value:function(S){return u.default.sanitize(S)}},{key:"value",value:function(S){return S.getAttribute("src")}}]),y}(s.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",i.default=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var a=function(){function S(w,x){for(var k=0;k<x.length;k++){var P=x[k];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(w,P.key,P)}}return function(w,x,k){return x&&S(w.prototype,x),k&&S(w,k),w}}(),o=function S(w,x,k){w===null&&(w=Function.prototype);var P=Object.getOwnPropertyDescriptor(w,x);if(P===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:S(E,x,k)}else{if("value"in P)return P.value;var A=P.get;return A===void 0?void 0:A.call(k)}},s=r(35),l=h(s),u=r(5),c=h(u),d=r(9),f=h(d);function h(S){return S&&S.__esModule?S:{default:S}}function m(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function g(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function v(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var y=function(S){v(w,S);function w(){return m(this,w),g(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return a(w,null,[{key:"create",value:function(k){var P=o(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,P,{throwOnError:!1,errorColor:"#f00"}),P.setAttribute("data-value",k)),P}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),w}(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var _=function(S){v(w,S),a(w,null,[{key:"register",value:function(){c.default.register(y,!0)}}]);function w(){m(this,w);var x=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return x}return w}(f.default);i.FormulaBlot=y,i.default=_},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var a=function(){function k(P,E){for(var A=0;A<E.length;A++){var D=E[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(P,D.key,D)}}return function(P,E,A){return E&&k(P.prototype,E),A&&k(P,A),P}}(),o=function k(P,E,A){P===null&&(P=Function.prototype);var D=Object.getOwnPropertyDescriptor(P,E);if(D===void 0){var T=Object.getPrototypeOf(P);return T===null?void 0:k(T,E,A)}else{if("value"in D)return D.value;var O=D.get;return O===void 0?void 0:O.call(A)}},s=r(0),l=g(s),u=r(5),c=g(u),d=r(9),f=g(d),h=r(13),m=g(h);function g(k){return k&&k.__esModule?k:{default:k}}function v(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function y(k,P){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:k}function _(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(k,P):k.__proto__=P)}var S=function(k){_(P,k);function P(){return v(this,P),y(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return a(P,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),o(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var D=this.domNode.textContent;this.cachedText!==D&&((D.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(D),this.domNode.normalize(),this.attach()),this.cachedText=D)}}]),P}(m.default);S.className="ql-syntax";var w=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),x=function(k){_(P,k),a(P,null,[{key:"register",value:function(){c.default.register(w,!0),c.default.register(S,!0)}}]);function P(E,A){v(this,P);var D=y(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,E,A));if(typeof D.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var T=null;return D.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(T),T=setTimeout(function(){D.highlight(),T=null},D.options.interval)}),D.highlight(),D}return a(P,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var D=this.quill.getSelection();this.quill.scroll.descendants(S).forEach(function(T){T.highlight(A.options.highlight)}),this.quill.update(c.default.sources.SILENT),D!=null&&this.quill.setSelection(D,c.default.sources.SILENT)}}}]),P}(f.default);x.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var P=window.hljs.highlightAuto(k);return P.value}}(),interval:1e3},i.CodeBlock=S,i.CodeToken=w,i.default=x},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,i){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,i){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,i){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,i){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,i){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var a=function P(E,A,D){E===null&&(E=Function.prototype);var T=Object.getOwnPropertyDescriptor(E,A);if(T===void 0){var O=Object.getPrototypeOf(E);return O===null?void 0:P(O,A,D)}else{if("value"in T)return T.value;var N=T.get;return N===void 0?void 0:N.call(D)}},o=function(){function P(E,A){for(var D=0;D<A.length;D++){var T=A[D];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}return function(E,A,D){return A&&P(E.prototype,A),D&&P(E,D),E}}(),s=r(3),l=v(s),u=r(8),c=v(u),d=r(43),f=v(d),h=r(15),m=r(41),g=v(m);function v(P){return P&&P.__esModule?P:{default:P}}function y(P,E){if(!(P instanceof E))throw new TypeError("Cannot call a class as a function")}function _(P,E){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:P}function S(P,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);P.prototype=Object.create(E&&E.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(P,E):P.__proto__=E)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],x=function(P){S(E,P);function E(A,D){y(this,E),D.modules.toolbar!=null&&D.modules.toolbar.container==null&&(D.modules.toolbar.container=w);var T=_(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,A,D));return T.quill.container.classList.add("ql-bubble"),T}return o(E,[{key:"extendToolbar",value:function(D){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(D.container),this.buildButtons([].slice.call(D.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(D.container.querySelectorAll("select")),g.default)}}]),E}(f.default);x.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(P){S(E,P);function E(A,D){y(this,E);var T=_(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,A,D));return T.quill.on(c.default.events.EDITOR_CHANGE,function(O,N,V,j){if(O===c.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&j===c.default.sources.USER){T.show(),T.root.style.left="0px",T.root.style.width="",T.root.style.width=T.root.offsetWidth+"px";var q=T.quill.getLines(N.index,N.length);if(q.length===1)T.position(T.quill.getBounds(N));else{var ne=q[q.length-1],ae=T.quill.getIndex(ne),Y=Math.min(ne.length()-1,N.index+N.length-ae),M=T.quill.getBounds(new h.Range(ae,Y));T.position(M)}}else document.activeElement!==T.textbox&&T.quill.hasFocus()&&T.hide()}),T}return o(E,[{key:"listen",value:function(){var D=this;a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){D.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!D.root.classList.contains("ql-hidden")){var T=D.quill.getSelection();T!=null&&D.position(D.quill.getBounds(T))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(D){var T=a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,D),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",T===0)return T;O.style.marginLeft=-1*T-O.offsetWidth/2+"px"}}]),E}(d.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=k,i.default=x},function(n,i,r){n.exports=r(63)}]).default})})(yj);var DSe=yj.exports;const uS=Ei(DSe);var Vl=-1,Qs=1,uo=0;function b1(e,t,n,i){if(e===t)return e?[[uo,e]]:[];if(n!=null){var r=RSe(e,t,n);if(r)return r}var a=pk(e,t),o=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=mk(e,t);var s=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var l=ISe(e,t);return o&&l.unshift([uo,o]),s&&l.push([uo,s]),_j(l,i),l}function ISe(e,t){var n;if(!e)return[[Qs,t]];if(!t)return[[Vl,e]];var i=e.length>t.length?e:t,r=e.length>t.length?t:e,a=i.indexOf(r);if(a!==-1)return n=[[Qs,i.substring(0,a)],[uo,r],[Qs,i.substring(a+r.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Vl),n;if(r.length===1)return[[Vl,e],[Qs,t]];var o=MSe(e,t);if(o){var s=o[0],l=o[1],u=o[2],c=o[3],d=o[4],f=b1(s,u),h=b1(l,c);return f.concat([[uo,d]],h)}return NSe(e,t)}function NSe(e,t){for(var n=e.length,i=t.length,r=Math.ceil((n+i)/2),a=r,o=2*r,s=new Array(o),l=new Array(o),u=0;u<o;u++)s[u]=-1,l[u]=-1;s[a+1]=0,l[a+1]=0;for(var c=n-i,d=c%2!==0,f=0,h=0,m=0,g=0,v=0;v<r;v++){for(var y=-v+f;y<=v-h;y+=2){var _=a+y,S;y===-v||y!==v&&s[_-1]<s[_+1]?S=s[_+1]:S=s[_-1]+1;for(var w=S-y;S<n&&w<i&&e.charAt(S)===t.charAt(w);)S++,w++;if(s[_]=S,S>n)h+=2;else if(w>i)f+=2;else if(d){var x=a+c-y;if(x>=0&&x<o&&l[x]!==-1){var k=n-l[x];if(S>=k)return jA(e,t,S,w)}}}for(var P=-v+m;P<=v-g;P+=2){var x=a+P,k;P===-v||P!==v&&l[x-1]<l[x+1]?k=l[x+1]:k=l[x-1]+1;for(var E=k-P;k<n&&E<i&&e.charAt(n-k-1)===t.charAt(i-E-1);)k++,E++;if(l[x]=k,k>n)g+=2;else if(E>i)m+=2;else if(!d){var _=a+c-P;if(_>=0&&_<o&&s[_]!==-1){var S=s[_],w=a+S-_;if(k=n-k,S>=k)return jA(e,t,S,w)}}}}return[[Vl,e],[Qs,t]]}function jA(e,t,n,i){var r=e.substring(0,n),a=t.substring(0,i),o=e.substring(n),s=t.substring(i),l=b1(r,a),u=b1(o,s);return l.concat(u)}function pk(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(a,r)==t.substring(a,r)?(n=r,a=n):i=r,r=Math.floor((i-n)/2+n);return bj(e.charCodeAt(r-1))&&r--,r}function mk(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(e.length-r,e.length-a)==t.substring(t.length-r,t.length-a)?(n=r,a=n):i=r,r=Math.floor((i-n)/2+n);return wj(e.charCodeAt(e.length-r))&&r--,r}function MSe(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||i.length*2<n.length)return null;function r(h,m,g){for(var v=h.substring(g,g+Math.floor(h.length/4)),y=-1,_="",S,w,x,k;(y=m.indexOf(v,y+1))!==-1;){var P=pk(h.substring(g),m.substring(y)),E=mk(h.substring(0,g),m.substring(0,y));_.length<E+P&&(_=m.substring(y-E,y)+m.substring(y,y+P),S=h.substring(0,g-E),w=h.substring(g+P),x=m.substring(0,y-E),k=m.substring(y+P))}return _.length*2>=h.length?[S,w,x,k,_]:null}var a=r(n,i,Math.ceil(n.length/4)),o=r(n,i,Math.ceil(n.length/2)),s;if(!a&&!o)return null;o?a?s=a[4].length>o[4].length?a:o:s=o:s=a;var l,u,c,d;e.length>t.length?(l=s[0],u=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],l=s[2],u=s[3]);var f=s[4];return[l,u,c,d,f]}function _j(e,t){e.push([uo,""]);for(var n=0,i=0,r=0,a="",o="",s;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Qs:r++,o+=e[n][1],n++;break;case Vl:i++,a+=e[n][1],n++;break;case uo:var l=n-r-i-1;if(t){if(l>=0&&Cj(e[l][1])){var u=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),a=u+a,o=u+o,!e[l][1]){e.splice(l,1),n--;var c=l-1;e[c]&&e[c][0]===Qs&&(r++,o=e[c][1]+o,c--),e[c]&&e[c][0]===Vl&&(i++,a=e[c][1]+a,c--),l=c}}if(Sj(e[n][1])){var u=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),a+=u,o+=u}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(a.length>0||o.length>0){a.length>0&&o.length>0&&(s=pk(o,a),s!==0&&(l>=0?e[l][1]+=o.substring(0,s):(e.splice(0,0,[uo,o.substring(0,s)]),n++),o=o.substring(s),a=a.substring(s)),s=mk(o,a),s!==0&&(e[n][1]=o.substring(o.length-s)+e[n][1],o=o.substring(0,o.length-s),a=a.substring(0,a.length-s)));var d=r+i;a.length===0&&o.length===0?(e.splice(n-d,d),n=n-d):a.length===0?(e.splice(n-d,d,[Qs,o]),n=n-d+1):o.length===0?(e.splice(n-d,d,[Vl,a]),n=n-d+1):(e.splice(n-d,d,[Vl,a],[Qs,o]),n=n-d+2)}n!==0&&e[n-1][0]===uo?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,i=0,a="",o="";break}}e[e.length-1][1]===""&&e.pop();var f=!1;for(n=1;n<e.length-1;)e[n-1][0]===uo&&e[n+1][0]===uo&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),f=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),f=!0)),n++;f&&_j(e,t)}function bj(e){return e>=55296&&e<=56319}function wj(e){return e>=56320&&e<=57343}function Sj(e){return wj(e.charCodeAt(0))}function Cj(e){return bj(e.charCodeAt(e.length-1))}function LSe(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function cS(e,t,n,i){return Cj(e)||Sj(i)?null:LSe([[uo,e],[Vl,t],[Qs,n],[uo,i]])}function RSe(e,t,n){var i=typeof n=="number"?{index:n,length:0}:n.oldRange,r=typeof n=="number"?null:n.newRange,a=e.length,o=t.length;if(i.length===0&&(r===null||r.length===0)){var s=i.index,l=e.slice(0,s),u=e.slice(s),c=r?r.index:null;e:{var d=s+o-a;if(c!==null&&c!==d||d<0||d>o)break e;var f=t.slice(0,d),h=t.slice(d);if(h!==u)break e;var m=Math.min(s,d),g=l.slice(0,m),v=f.slice(0,m);if(g!==v)break e;var y=l.slice(m),_=f.slice(m);return cS(g,y,_,u)}e:{if(c!==null&&c!==s)break e;var S=s,f=t.slice(0,S),h=t.slice(S);if(f!==l)break e;var w=Math.min(a-S,o-S),x=u.slice(u.length-w),k=h.slice(h.length-w);if(x!==k)break e;var y=u.slice(0,u.length-w),_=h.slice(0,h.length-w);return cS(l,y,_,x)}}if(i.length>0&&r&&r.length===0)e:{var g=e.slice(0,i.index),x=e.slice(i.index+i.length),m=g.length,w=x.length;if(o<m+w)break e;var v=t.slice(0,m),k=t.slice(o-w);if(g!==v||x!==k)break e;var y=e.slice(m,a-w),_=t.slice(m,o-w);return cS(g,y,_,x)}return null}function Bw(e,t,n){return b1(e,t,n,!0)}Bw.INSERT=Qs;Bw.DELETE=Vl;Bw.EQUAL=uo;var FSe=Bw,Db={exports:{}};Db.exports;(function(e,t){var n=200,i="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object GeneratorFunction]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object Promise]",v="[object RegExp]",y="[object Set]",_="[object String]",S="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",k="[object DataView]",P="[object Float32Array]",E="[object Float64Array]",A="[object Int8Array]",D="[object Int16Array]",T="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",V="[object Uint16Array]",j="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,ne=/\w*$/,ae=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,M={};M[a]=M[o]=M[x]=M[k]=M[s]=M[l]=M[P]=M[E]=M[A]=M[D]=M[T]=M[f]=M[h]=M[m]=M[v]=M[y]=M[_]=M[S]=M[O]=M[N]=M[V]=M[j]=!0,M[u]=M[c]=M[w]=!1;var I=typeof ri=="object"&&ri&&ri.Object===Object&&ri,W=typeof self=="object"&&self&&self.Object===Object&&self,te=I||W||Function("return this")(),he=t&&!t.nodeType&&t,oe=he&&!0&&e&&!e.nodeType&&e,U=oe&&oe.exports===he;function ee(H,me){return H.set(me[0],me[1]),H}function re(H,me){return H.add(me),H}function ue(H,me){for(var ke=-1,Ke=H?H.length:0;++ke<Ke&&me(H[ke],ke,H)!==!1;);return H}function pe(H,me){for(var ke=-1,Ke=me.length,zt=H.length;++ke<Ke;)H[zt+ke]=me[ke];return H}function ge(H,me,ke,Ke){var zt=-1,Et=H?H.length:0;for(Ke&&Et&&(ke=H[++zt]);++zt<Et;)ke=me(ke,H[zt],zt,H);return ke}function Te(H,me){for(var ke=-1,Ke=Array(H);++ke<H;)Ke[ke]=me(ke);return Ke}function Z(H,me){return H==null?void 0:H[me]}function X(H){var me=!1;if(H!=null&&typeof H.toString!="function")try{me=!!(H+"")}catch{}return me}function ye(H){var me=-1,ke=Array(H.size);return H.forEach(function(Ke,zt){ke[++me]=[zt,Ke]}),ke}function Se(H,me){return function(ke){return H(me(ke))}}function Ee(H){var me=-1,ke=Array(H.size);return H.forEach(function(Ke){ke[++me]=Ke}),ke}var _e=Array.prototype,be=Function.prototype,ie=Object.prototype,se=te["__core-js_shared__"],de=function(){var H=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),xe=be.toString,Re=ie.hasOwnProperty,Pe=ie.toString,we=RegExp("^"+xe.call(Re).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=U?te.Buffer:void 0,Ie=te.Symbol,Ye=te.Uint8Array,rt=Se(Object.getPrototypeOf,Object),Ot=Object.create,$n=ie.propertyIsEnumerable,jt=_e.splice,Fn=Object.getOwnPropertySymbols,at=Ae?Ae.isBuffer:void 0,dt=Se(Object.keys,Object),ft=Ri(te,"DataView"),Kt=Ri(te,"Map"),St=Ri(te,"Promise"),Mt=Ri(te,"Set"),sn=Ri(te,"WeakMap"),lr=Ri(Object,"create"),ml=et(ft),Rr=et(Kt),Es=et(St),xs=et(Mt),ur=et(sn),$i=Ie?Ie.prototype:void 0,cr=$i?$i.valueOf:void 0;function Er(H){var me=-1,ke=H?H.length:0;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function Ed(){this.__data__=lr?lr(null):{}}function xd(H){return this.has(H)&&delete this.__data__[H]}function pc(H){var me=this.__data__;if(lr){var ke=me[H];return ke===i?void 0:ke}return Re.call(me,H)?me[H]:void 0}function Zi(H){var me=this.__data__;return lr?me[H]!==void 0:Re.call(me,H)}function yt(H,me){var ke=this.__data__;return ke[H]=lr&&me===void 0?i:me,this}Er.prototype.clear=Ed,Er.prototype.delete=xd,Er.prototype.get=pc,Er.prototype.has=Zi,Er.prototype.set=yt;function Ai(H){var me=-1,ke=H?H.length:0;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function ks(){this.__data__=[]}function mc(H){var me=this.__data__,ke=to(me,H);if(ke<0)return!1;var Ke=me.length-1;return ke==Ke?me.pop():jt.call(me,ke,1),!0}function Ko(H){var me=this.__data__,ke=to(me,H);return ke<0?void 0:me[ke][1]}function Ts(H){return to(this.__data__,H)>-1}function vl(H,me){var ke=this.__data__,Ke=to(ke,H);return Ke<0?ke.push([H,me]):ke[Ke][1]=me,this}Ai.prototype.clear=ks,Ai.prototype.delete=mc,Ai.prototype.get=Ko,Ai.prototype.has=Ts,Ai.prototype.set=vl;function Jn(H){var me=-1,ke=H?H.length:0;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function gl(){this.__data__={hash:new Er,map:new(Kt||Ai),string:new Er}}function su(H){return Br(this,H).delete(H)}function lu(H){return Br(this,H).get(H)}function uu(H){return Br(this,H).has(H)}function yl(H,me){return Br(this,H).set(H,me),this}Jn.prototype.clear=gl,Jn.prototype.delete=su,Jn.prototype.get=lu,Jn.prototype.has=uu,Jn.prototype.set=yl;function dr(H){this.__data__=new Ai(H)}function vc(){this.__data__=new Ai}function yo(H){return this.__data__.delete(H)}function kd(H){return this.__data__.get(H)}function gc(H){return this.__data__.has(H)}function _l(H,me){var ke=this.__data__;if(ke instanceof Ai){var Ke=ke.__data__;if(!Kt||Ke.length<n-1)return Ke.push([H,me]),this;ke=this.__data__=new Jn(Ke)}return ke.set(H,me),this}dr.prototype.clear=vc,dr.prototype.delete=yo,dr.prototype.get=kd,dr.prototype.has=gc,dr.prototype.set=_l;function _o(H,me){var ke=xr(H)||Nt(H)?Te(H.length,String):[],Ke=ke.length,zt=!!Ke;for(var Et in H)(me||Re.call(H,Et))&&!(zt&&(Et=="length"||Zt(Et,Ke)))&&ke.push(Et);return ke}function bl(H,me,ke){var Ke=H[me];(!(Re.call(H,me)&&Eo(Ke,ke))||ke===void 0&&!(me in H))&&(H[me]=ke)}function to(H,me){for(var ke=H.length;ke--;)if(Eo(H[ke][0],me))return ke;return-1}function Fr(H,me){return H&&Xo(me,no(me),H)}function bo(H,me,ke,Ke,zt,Et,un){var gt;if(Ke&&(gt=Et?Ke(H,zt,Et,un):Ke(H)),gt!==void 0)return gt;if(!Xi(H))return H;var Fi=xr(H);if(Fi){if(gt=Ne(H),!me)return Td(H,gt)}else{var Xt=Be(H),Vi=Xt==c||Xt==d;if(Ps(H))return Na(H,me);if(Xt==m||Xt==a||Vi&&!Et){if(X(H))return Et?H:{};if(gt=Dt(Vi?{}:H),!me)return Co(H,Fr(gt,H))}else{if(!M[Xt])return Et?H:{};gt=Qe(H,Xt,bo,me)}}un||(un=new dr);var ia=un.get(H);if(ia)return ia;if(un.set(H,gt),!Fi)var Ji=ke?si(H):no(H);return ue(Ji||H,function(fr,kr){Ji&&(kr=fr,fr=H[kr]),bl(gt,kr,bo(fr,me,ke,Ke,kr,H,un))}),gt}function cu(H){return Xi(H)?Ot(H):{}}function wo(H,me,ke){var Ke=me(H);return xr(H)?Ke:pe(Ke,ke(H))}function Qt(H){return Pe.call(H)}function Dn(H){if(!Xi(H)||Sn(H))return!1;var me=Jo(H)||X(H)?we:ae;return me.test(et(H))}function Zo(H){if(!en(H))return dt(H);var me=[];for(var ke in Object(H))Re.call(H,ke)&&ke!="constructor"&&me.push(ke);return me}function Na(H,me){if(me)return H.slice();var ke=new H.constructor(H.length);return H.copy(ke),ke}function So(H){var me=new H.constructor(H.byteLength);return new Ye(me).set(new Ye(H)),me}function na(H,me){var ke=me?So(H.buffer):H.buffer;return new H.constructor(ke,H.byteOffset,H.byteLength)}function Bt(H,me,ke){var Ke=me?ke(ye(H),!0):ye(H);return ge(Ke,ee,new H.constructor)}function Vn(H){var me=new H.constructor(H.source,ne.exec(H));return me.lastIndex=H.lastIndex,me}function du(H,me,ke){var Ke=me?ke(Ee(H),!0):Ee(H);return ge(Ke,re,new H.constructor)}function wl(H){return cr?Object(cr.call(H)):{}}function Vr(H,me){var ke=me?So(H.buffer):H.buffer;return new H.constructor(ke,H.byteOffset,H.length)}function Td(H,me){var ke=-1,Ke=H.length;for(me||(me=Array(Ke));++ke<Ke;)me[ke]=H[ke];return me}function Xo(H,me,ke,Ke){ke||(ke={});for(var zt=-1,Et=me.length;++zt<Et;){var un=me[zt],gt=Ke?Ke(ke[un],H[un],un,ke,H):void 0;bl(ke,un,gt===void 0?H[un]:gt)}return ke}function Co(H,me){return Xo(H,zr(H),me)}function si(H){return wo(H,no,zr)}function Br(H,me){var ke=H.__data__;return ln(me)?ke[typeof me=="string"?"string":"hash"]:ke.map}function Ri(H,me){var ke=Z(H,me);return Dn(ke)?ke:void 0}var zr=Fn?Se(Fn,Object):gi,Be=Qt;(ft&&Be(new ft(new ArrayBuffer(1)))!=k||Kt&&Be(new Kt)!=f||St&&Be(St.resolve())!=g||Mt&&Be(new Mt)!=y||sn&&Be(new sn)!=w)&&(Be=function(H){var me=Pe.call(H),ke=me==m?H.constructor:void 0,Ke=ke?et(ke):void 0;if(Ke)switch(Ke){case ml:return k;case Rr:return f;case Es:return g;case xs:return y;case ur:return w}return me});function Ne(H){var me=H.length,ke=H.constructor(me);return me&&typeof H[0]=="string"&&Re.call(H,"index")&&(ke.index=H.index,ke.input=H.input),ke}function Dt(H){return typeof H.constructor=="function"&&!en(H)?cu(rt(H)):{}}function Qe(H,me,ke,Ke){var zt=H.constructor;switch(me){case x:return So(H);case s:case l:return new zt(+H);case k:return na(H,Ke);case P:case E:case A:case D:case T:case O:case N:case V:case j:return Vr(H,Ke);case f:return Bt(H,Ke,ke);case h:case _:return new zt(H);case v:return Vn(H);case y:return du(H,Ke,ke);case S:return wl(H)}}function Zt(H,me){return me=me??r,!!me&&(typeof H=="number"||Y.test(H))&&H>-1&&H%1==0&&H<me}function ln(H){var me=typeof H;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?H!=="__proto__":H===null}function Sn(H){return!!de&&de in H}function en(H){var me=H&&H.constructor,ke=typeof me=="function"&&me.prototype||ie;return H===ke}function et(H){if(H!=null){try{return xe.call(H)}catch{}try{return H+""}catch{}}return""}function Bn(H){return bo(H,!0,!0)}function Eo(H,me){return H===me||H!==H&&me!==me}function Nt(H){return fu(H)&&Re.call(H,"callee")&&(!$n.call(H,"callee")||Pe.call(H)==a)}var xr=Array.isArray;function yn(H){return H!=null&&$s(H.length)&&!Jo(H)}function fu(H){return As(H)&&yn(H)}var Ps=at||Nn;function Jo(H){var me=Xi(H)?Pe.call(H):"";return me==c||me==d}function $s(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=r}function Xi(H){var me=typeof H;return!!H&&(me=="object"||me=="function")}function As(H){return!!H&&typeof H=="object"}function no(H){return yn(H)?_o(H):Zo(H)}function gi(){return[]}function Nn(){return!1}e.exports=Bn})(Db,Db.exports);var Ej=Db.exports,Ib={exports:{}};Ib.exports;(function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,a=2,o=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",y="[object Null]",_="[object Object]",S="[object Promise]",w="[object Proxy]",x="[object RegExp]",k="[object Set]",P="[object String]",E="[object Symbol]",A="[object Undefined]",D="[object WeakMap]",T="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",V="[object Float64Array]",j="[object Int8Array]",q="[object Int16Array]",ne="[object Int32Array]",ae="[object Uint8Array]",Y="[object Uint8ClampedArray]",M="[object Uint16Array]",I="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,oe={};oe[N]=oe[V]=oe[j]=oe[q]=oe[ne]=oe[ae]=oe[Y]=oe[M]=oe[I]=!0,oe[s]=oe[l]=oe[T]=oe[c]=oe[O]=oe[d]=oe[f]=oe[h]=oe[g]=oe[v]=oe[_]=oe[x]=oe[k]=oe[P]=oe[D]=!1;var U=typeof ri=="object"&&ri&&ri.Object===Object&&ri,ee=typeof self=="object"&&self&&self.Object===Object&&self,re=U||ee||Function("return this")(),ue=t&&!t.nodeType&&t,pe=ue&&!0&&e&&!e.nodeType&&e,ge=pe&&pe.exports===ue,Te=ge&&U.process,Z=function(){try{return Te&&Te.binding&&Te.binding("util")}catch{}}(),X=Z&&Z.isTypedArray;function ye(H,me){for(var ke=-1,Ke=H==null?0:H.length,zt=0,Et=[];++ke<Ke;){var un=H[ke];me(un,ke,H)&&(Et[zt++]=un)}return Et}function Se(H,me){for(var ke=-1,Ke=me.length,zt=H.length;++ke<Ke;)H[zt+ke]=me[ke];return H}function Ee(H,me){for(var ke=-1,Ke=H==null?0:H.length;++ke<Ke;)if(me(H[ke],ke,H))return!0;return!1}function _e(H,me){for(var ke=-1,Ke=Array(H);++ke<H;)Ke[ke]=me(ke);return Ke}function be(H){return function(me){return H(me)}}function ie(H,me){return H.has(me)}function se(H,me){return H==null?void 0:H[me]}function de(H){var me=-1,ke=Array(H.size);return H.forEach(function(Ke,zt){ke[++me]=[zt,Ke]}),ke}function xe(H,me){return function(ke){return H(me(ke))}}function Re(H){var me=-1,ke=Array(H.size);return H.forEach(function(Ke){ke[++me]=Ke}),ke}var Pe=Array.prototype,we=Function.prototype,Ae=Object.prototype,Ie=re["__core-js_shared__"],Ye=we.toString,rt=Ae.hasOwnProperty,Ot=function(){var H=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),$n=Ae.toString,jt=RegExp("^"+Ye.call(rt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=ge?re.Buffer:void 0,at=re.Symbol,dt=re.Uint8Array,ft=Ae.propertyIsEnumerable,Kt=Pe.splice,St=at?at.toStringTag:void 0,Mt=Object.getOwnPropertySymbols,sn=Fn?Fn.isBuffer:void 0,lr=xe(Object.keys,Object),ml=zr(re,"DataView"),Rr=zr(re,"Map"),Es=zr(re,"Promise"),xs=zr(re,"Set"),ur=zr(re,"WeakMap"),$i=zr(Object,"create"),cr=et(ml),Er=et(Rr),Ed=et(Es),xd=et(xs),pc=et(ur),Zi=at?at.prototype:void 0,yt=Zi?Zi.valueOf:void 0;function Ai(H){var me=-1,ke=H==null?0:H.length;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function ks(){this.__data__=$i?$i(null):{},this.size=0}function mc(H){var me=this.has(H)&&delete this.__data__[H];return this.size-=me?1:0,me}function Ko(H){var me=this.__data__;if($i){var ke=me[H];return ke===i?void 0:ke}return rt.call(me,H)?me[H]:void 0}function Ts(H){var me=this.__data__;return $i?me[H]!==void 0:rt.call(me,H)}function vl(H,me){var ke=this.__data__;return this.size+=this.has(H)?0:1,ke[H]=$i&&me===void 0?i:me,this}Ai.prototype.clear=ks,Ai.prototype.delete=mc,Ai.prototype.get=Ko,Ai.prototype.has=Ts,Ai.prototype.set=vl;function Jn(H){var me=-1,ke=H==null?0:H.length;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function gl(){this.__data__=[],this.size=0}function su(H){var me=this.__data__,ke=Na(me,H);if(ke<0)return!1;var Ke=me.length-1;return ke==Ke?me.pop():Kt.call(me,ke,1),--this.size,!0}function lu(H){var me=this.__data__,ke=Na(me,H);return ke<0?void 0:me[ke][1]}function uu(H){return Na(this.__data__,H)>-1}function yl(H,me){var ke=this.__data__,Ke=Na(ke,H);return Ke<0?(++this.size,ke.push([H,me])):ke[Ke][1]=me,this}Jn.prototype.clear=gl,Jn.prototype.delete=su,Jn.prototype.get=lu,Jn.prototype.has=uu,Jn.prototype.set=yl;function dr(H){var me=-1,ke=H==null?0:H.length;for(this.clear();++me<ke;){var Ke=H[me];this.set(Ke[0],Ke[1])}}function vc(){this.size=0,this.__data__={hash:new Ai,map:new(Rr||Jn),string:new Ai}}function yo(H){var me=Ri(this,H).delete(H);return this.size-=me?1:0,me}function kd(H){return Ri(this,H).get(H)}function gc(H){return Ri(this,H).has(H)}function _l(H,me){var ke=Ri(this,H),Ke=ke.size;return ke.set(H,me),this.size+=ke.size==Ke?0:1,this}dr.prototype.clear=vc,dr.prototype.delete=yo,dr.prototype.get=kd,dr.prototype.has=gc,dr.prototype.set=_l;function _o(H){var me=-1,ke=H==null?0:H.length;for(this.__data__=new dr;++me<ke;)this.add(H[me])}function bl(H){return this.__data__.set(H,i),this}function to(H){return this.__data__.has(H)}_o.prototype.add=_o.prototype.push=bl,_o.prototype.has=to;function Fr(H){var me=this.__data__=new Jn(H);this.size=me.size}function bo(){this.__data__=new Jn,this.size=0}function cu(H){var me=this.__data__,ke=me.delete(H);return this.size=me.size,ke}function wo(H){return this.__data__.get(H)}function Qt(H){return this.__data__.has(H)}function Dn(H,me){var ke=this.__data__;if(ke instanceof Jn){var Ke=ke.__data__;if(!Rr||Ke.length<n-1)return Ke.push([H,me]),this.size=++ke.size,this;ke=this.__data__=new dr(Ke)}return ke.set(H,me),this.size=ke.size,this}Fr.prototype.clear=bo,Fr.prototype.delete=cu,Fr.prototype.get=wo,Fr.prototype.has=Qt,Fr.prototype.set=Dn;function Zo(H,me){var ke=Nt(H),Ke=!ke&&Eo(H),zt=!ke&&!Ke&&yn(H),Et=!ke&&!Ke&&!zt&&As(H),un=ke||Ke||zt||Et,gt=un?_e(H.length,String):[],Fi=gt.length;for(var Xt in H)(me||rt.call(H,Xt))&&!(un&&(Xt=="length"||zt&&(Xt=="offset"||Xt=="parent")||Et&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||Qe(Xt,Fi)))&>.push(Xt);return gt}function Na(H,me){for(var ke=H.length;ke--;)if(Bn(H[ke][0],me))return ke;return-1}function So(H,me,ke){var Ke=me(H);return Nt(H)?Ke:Se(Ke,ke(H))}function na(H){return H==null?H===void 0?A:y:St&&St in Object(H)?Be(H):en(H)}function Bt(H){return Xi(H)&&na(H)==s}function Vn(H,me,ke,Ke,zt){return H===me?!0:H==null||me==null||!Xi(H)&&!Xi(me)?H!==H&&me!==me:du(H,me,ke,Ke,Vn,zt)}function du(H,me,ke,Ke,zt,Et){var un=Nt(H),gt=Nt(me),Fi=un?l:Dt(H),Xt=gt?l:Dt(me);Fi=Fi==s?_:Fi,Xt=Xt==s?_:Xt;var Vi=Fi==_,ia=Xt==_,Ji=Fi==Xt;if(Ji&&yn(H)){if(!yn(me))return!1;un=!0,Vi=!1}if(Ji&&!Vi)return Et||(Et=new Fr),un||As(H)?Xo(H,me,ke,Ke,zt,Et):Co(H,me,Fi,ke,Ke,zt,Et);if(!(ke&r)){var fr=Vi&&rt.call(H,"__wrapped__"),kr=ia&&rt.call(me,"__wrapped__");if(fr||kr){var Os=fr?H.value():H,Ds=kr?me.value():me;return Et||(Et=new Fr),zt(Os,Ds,ke,Ke,Et)}}return Ji?(Et||(Et=new Fr),si(H,me,ke,Ke,zt,Et)):!1}function wl(H){if(!$s(H)||ln(H))return!1;var me=Ps(H)?jt:te;return me.test(et(H))}function Vr(H){return Xi(H)&&Jo(H.length)&&!!oe[na(H)]}function Td(H){if(!Sn(H))return lr(H);var me=[];for(var ke in Object(H))rt.call(H,ke)&&ke!="constructor"&&me.push(ke);return me}function Xo(H,me,ke,Ke,zt,Et){var un=ke&r,gt=H.length,Fi=me.length;if(gt!=Fi&&!(un&&Fi>gt))return!1;var Xt=Et.get(H);if(Xt&&Et.get(me))return Xt==me;var Vi=-1,ia=!0,Ji=ke&a?new _o:void 0;for(Et.set(H,me),Et.set(me,H);++Vi<gt;){var fr=H[Vi],kr=me[Vi];if(Ke)var Os=un?Ke(kr,fr,Vi,me,H,Et):Ke(fr,kr,Vi,H,me,Et);if(Os!==void 0){if(Os)continue;ia=!1;break}if(Ji){if(!Ee(me,function(Ds,hu){if(!ie(Ji,hu)&&(fr===Ds||zt(fr,Ds,ke,Ke,Et)))return Ji.push(hu)})){ia=!1;break}}else if(!(fr===kr||zt(fr,kr,ke,Ke,Et))){ia=!1;break}}return Et.delete(H),Et.delete(me),ia}function Co(H,me,ke,Ke,zt,Et,un){switch(ke){case O:if(H.byteLength!=me.byteLength||H.byteOffset!=me.byteOffset)return!1;H=H.buffer,me=me.buffer;case T:return!(H.byteLength!=me.byteLength||!Et(new dt(H),new dt(me)));case c:case d:case v:return Bn(+H,+me);case f:return H.name==me.name&&H.message==me.message;case x:case P:return H==me+"";case g:var gt=de;case k:var Fi=Ke&r;if(gt||(gt=Re),H.size!=me.size&&!Fi)return!1;var Xt=un.get(H);if(Xt)return Xt==me;Ke|=a,un.set(H,me);var Vi=Xo(gt(H),gt(me),Ke,zt,Et,un);return un.delete(H),Vi;case E:if(yt)return yt.call(H)==yt.call(me)}return!1}function si(H,me,ke,Ke,zt,Et){var un=ke&r,gt=Br(H),Fi=gt.length,Xt=Br(me),Vi=Xt.length;if(Fi!=Vi&&!un)return!1;for(var ia=Fi;ia--;){var Ji=gt[ia];if(!(un?Ji in me:rt.call(me,Ji)))return!1}var fr=Et.get(H);if(fr&&Et.get(me))return fr==me;var kr=!0;Et.set(H,me),Et.set(me,H);for(var Os=un;++ia<Fi;){Ji=gt[ia];var Ds=H[Ji],hu=me[Ji];if(Ke)var Eh=un?Ke(hu,Ds,Ji,me,H,Et):Ke(Ds,hu,Ji,H,me,Et);if(!(Eh===void 0?Ds===hu||zt(Ds,hu,ke,Ke,Et):Eh)){kr=!1;break}Os||(Os=Ji=="constructor")}if(kr&&!Os){var xh=H.constructor,Ma=me.constructor;xh!=Ma&&"constructor"in H&&"constructor"in me&&!(typeof xh=="function"&&xh instanceof xh&&typeof Ma=="function"&&Ma instanceof Ma)&&(kr=!1)}return Et.delete(H),Et.delete(me),kr}function Br(H){return So(H,no,Ne)}function Ri(H,me){var ke=H.__data__;return Zt(me)?ke[typeof me=="string"?"string":"hash"]:ke.map}function zr(H,me){var ke=se(H,me);return wl(ke)?ke:void 0}function Be(H){var me=rt.call(H,St),ke=H[St];try{H[St]=void 0;var Ke=!0}catch{}var zt=$n.call(H);return Ke&&(me?H[St]=ke:delete H[St]),zt}var Ne=Mt?function(H){return H==null?[]:(H=Object(H),ye(Mt(H),function(me){return ft.call(H,me)}))}:gi,Dt=na;(ml&&Dt(new ml(new ArrayBuffer(1)))!=O||Rr&&Dt(new Rr)!=g||Es&&Dt(Es.resolve())!=S||xs&&Dt(new xs)!=k||ur&&Dt(new ur)!=D)&&(Dt=function(H){var me=na(H),ke=me==_?H.constructor:void 0,Ke=ke?et(ke):"";if(Ke)switch(Ke){case cr:return O;case Er:return g;case Ed:return S;case xd:return k;case pc:return D}return me});function Qe(H,me){return me=me??o,!!me&&(typeof H=="number"||he.test(H))&&H>-1&&H%1==0&&H<me}function Zt(H){var me=typeof H;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?H!=="__proto__":H===null}function ln(H){return!!Ot&&Ot in H}function Sn(H){var me=H&&H.constructor,ke=typeof me=="function"&&me.prototype||Ae;return H===ke}function en(H){return $n.call(H)}function et(H){if(H!=null){try{return Ye.call(H)}catch{}try{return H+""}catch{}}return""}function Bn(H,me){return H===me||H!==H&&me!==me}var Eo=Bt(function(){return arguments}())?Bt:function(H){return Xi(H)&&rt.call(H,"callee")&&!ft.call(H,"callee")},Nt=Array.isArray;function xr(H){return H!=null&&Jo(H.length)&&!Ps(H)}var yn=sn||Nn;function fu(H,me){return Vn(H,me)}function Ps(H){if(!$s(H))return!1;var me=na(H);return me==h||me==m||me==u||me==w}function Jo(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=o}function $s(H){var me=typeof H;return H!=null&&(me=="object"||me=="function")}function Xi(H){return H!=null&&typeof H=="object"}var As=X?be(X):Vr;function no(H){return xr(H)?Zo(H):Td(H)}function gi(){return[]}function Nn(){return!1}e.exports=fu})(Ib,Ib.exports);var xj=Ib.exports,vk={},kj=ri&&ri.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vk,"__esModule",{value:!0});var VSe=kj(Ej),BSe=kj(xj),T4;(function(e){function t(a,o,s){a===void 0&&(a={}),o===void 0&&(o={}),typeof a!="object"&&(a={}),typeof o!="object"&&(o={});var l=VSe.default(o);s||(l=Object.keys(l).reduce(function(c,d){return l[d]!=null&&(c[d]=l[d]),c},{}));for(var u in a)a[u]!==void 0&&o[u]===void 0&&(l[u]=a[u]);return Object.keys(l).length>0?l:void 0}e.compose=t;function n(a,o){a===void 0&&(a={}),o===void 0&&(o={}),typeof a!="object"&&(a={}),typeof o!="object"&&(o={});var s=Object.keys(a).concat(Object.keys(o)).reduce(function(l,u){return BSe.default(a[u],o[u])||(l[u]=o[u]===void 0?null:o[u]),l},{});return Object.keys(s).length>0?s:void 0}e.diff=n;function i(a,o){a===void 0&&(a={}),o===void 0&&(o={}),a=a||{};var s=Object.keys(o).reduce(function(l,u){return o[u]!==a[u]&&a[u]!==void 0&&(l[u]=o[u]),l},{});return Object.keys(a).reduce(function(l,u){return a[u]!==o[u]&&o[u]===void 0&&(l[u]=null),l},s)}e.invert=i;function r(a,o,s){if(s===void 0&&(s=!1),typeof a!="object")return o;if(typeof o=="object"){if(!s)return o;var l=Object.keys(o).reduce(function(u,c){return a[c]===void 0&&(u[c]=o[c]),u},{});return Object.keys(l).length>0?l:void 0}}e.transform=r})(T4||(T4={}));vk.default=T4;var g0={},y0={},UA;function zSe(){if(UA)return y0;UA=1;var e=ri&&ri.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(y0,"__esModule",{value:!0});var t=e(Tj()),n=function(){function i(r){this.ops=r,this.index=0,this.offset=0}return i.prototype.hasNext=function(){return this.peekLength()<1/0},i.prototype.next=function(r){r||(r=1/0);var a=this.ops[this.index];if(a){var o=this.offset,s=t.default.length(a);if(r>=s-o?(r=s-o,this.index+=1,this.offset=0):this.offset+=r,typeof a.delete=="number")return{delete:r};var l={};return a.attributes&&(l.attributes=a.attributes),typeof a.retain=="number"?l.retain=r:typeof a.insert=="string"?l.insert=a.insert.substr(o,r):l.insert=a.insert,l}else return{retain:1/0}},i.prototype.peek=function(){return this.ops[this.index]},i.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},i.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},i.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var r=this.offset,a=this.index,o=this.next(),s=this.ops.slice(this.index);return this.offset=r,this.index=a,[o].concat(s)}else return[]},i}();return y0.default=n,y0}var HA;function Tj(){if(HA)return g0;HA=1;var e=ri&&ri.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(g0,"__esModule",{value:!0});var t=e(zSe()),n;return function(i){function r(o){return new t.default(o)}i.iterator=r;function a(o){return typeof o.delete=="number"?o.delete:typeof o.retain=="number"?o.retain:typeof o.insert=="string"?o.insert.length:1}i.length=a}(n||(n={})),g0.default=n,g0}var hy=ri&&ri.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_0=hy(FSe),jSe=hy(Ej),dS=hy(xj),fv=hy(vk),oa=hy(Tj()),USe=String.fromCharCode(0),HSe=function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var i={};return typeof t=="string"&&t.length===0?this:(i.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(i.attributes=n),this.push(i))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var i={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(i.attributes=n),this.push(i)},e.prototype.push=function(t){var n=this.ops.length,i=this.ops[n-1];if(t=jSe.default(t),typeof i=="object"){if(typeof t.delete=="number"&&typeof i.delete=="number")return this.ops[n-1]={delete:i.delete+t.delete},this;if(typeof i.delete=="number"&&t.insert!=null&&(n-=1,i=this.ops[n-1],typeof i!="object"))return this.ops.unshift(t),this;if(dS.default(t.attributes,i.attributes)){if(typeof t.insert=="string"&&typeof i.insert=="string")return this.ops[n-1]={insert:i.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof i.retain=="number")return this.ops[n-1]={retain:i.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],i=[];return this.forEach(function(r){var a=t(r)?n:i;a.push(r)}),[n,i]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+oa.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+oa.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var i=[],r=oa.default.iterator(this.ops),a=0;a<n&&r.hasNext();){var o=void 0;a<t?o=r.next(t-a):(o=r.next(n-a),i.push(o)),a+=oa.default.length(o)}return new e(i)},e.prototype.compose=function(t){var n=oa.default.iterator(this.ops),i=oa.default.iterator(t.ops),r=[],a=i.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var o=a.retain;n.peekType()==="insert"&&n.peekLength()<=o;)o-=n.peekLength(),r.push(n.next());a.retain-o>0&&i.next(a.retain-o)}for(var s=new e(r);n.hasNext()||i.hasNext();)if(i.peekType()==="insert")s.push(i.next());else if(n.peekType()==="delete")s.push(n.next());else{var l=Math.min(n.peekLength(),i.peekLength()),u=n.next(l),c=i.next(l);if(typeof c.retain=="number"){var d={};typeof u.retain=="number"?d.retain=l:d.insert=u.insert;var f=fv.default.compose(u.attributes,c.attributes,typeof u.retain=="number");if(f&&(d.attributes=f),s.push(d),!i.hasNext()&&dS.default(s.ops[s.ops.length-1],d)){var h=new e(n.rest());return s.concat(h).chop()}}else typeof c.delete=="number"&&typeof u.retain=="number"&&s.push(c)}return s.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var i=[this,t].map(function(l){return l.map(function(u){if(u.insert!=null)return typeof u.insert=="string"?u.insert:USe;var c=l===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")}),r=new e,a=_0.default(i[0],i[1],n),o=oa.default.iterator(this.ops),s=oa.default.iterator(t.ops);return a.forEach(function(l){for(var u=l[1].length;u>0;){var c=0;switch(l[0]){case _0.default.INSERT:c=Math.min(s.peekLength(),u),r.push(s.next(c));break;case _0.default.DELETE:c=Math.min(u,o.peekLength()),o.next(c),r.delete(c);break;case _0.default.EQUAL:c=Math.min(o.peekLength(),s.peekLength(),u);var d=o.next(c),f=s.next(c);dS.default(d.insert,f.insert)?r.retain(c,fv.default.diff(d.attributes,f.attributes)):r.push(f).delete(c);break}u-=c}}),r.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=` `);for(var i=oa.default.iterator(this.ops),r=new e,a=0;i.hasNext();){if(i.peekType()!=="insert")return;var o=i.peek(),s=oa.default.length(o)-i.peekLength(),l=typeof o.insert=="string"?o.insert.indexOf(n,s)-s:-1;if(l<0)r.push(i.next());else if(l>0)r.push(i.next(l));else{if(t(r,i.next(1).attributes||{},a)===!1)return;a+=1,r=new e}}r.length()>0&&t(r,{},a)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(i,r){if(r.insert)n.delete(oa.default.length(r));else{if(r.retain&&r.attributes==null)return n.retain(r.retain),i+r.retain;if(r.delete||r.retain&&r.attributes){var a=r.delete||r.retain,o=t.slice(i,i+a);return o.forEach(function(s){r.delete?n.push(s):r.retain&&r.attributes&&n.retain(oa.default.length(s),fv.default.invert(r.attributes,s.attributes))}),i+a}}return i},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t=="number")return this.transformPosition(t,n);for(var i=t,r=oa.default.iterator(this.ops),a=oa.default.iterator(i.ops),o=new e;r.hasNext()||a.hasNext();)if(r.peekType()==="insert"&&(n||a.peekType()!=="insert"))o.retain(oa.default.length(r.next()));else if(a.peekType()==="insert")o.push(a.next());else{var s=Math.min(r.peekLength(),a.peekLength()),l=r.next(s),u=a.next(s);if(l.delete)continue;u.delete?o.push(u):o.retain(s,fv.default.transform(l.attributes,u.attributes,n))}return o.chop()},e.prototype.transformPosition=function(t,n){n===void 0&&(n=!1),n=!!n;for(var i=oa.default.iterator(this.ops),r=0;i.hasNext()&&r<=t;){var a=i.peekLength(),o=i.peekType();if(i.next(),o==="delete"){t-=Math.min(a,t-r);continue}else o==="insert"&&(r<t||!n)&&(t+=a);r+=a}return t},e.Op=oa.default,e.AttributeMap=fv.default,e}(),qSe=HSe;const Qh=Ei(qSe);/*! * VueQuill @vueup/vue-quill v1.2.0 * https://vueup.github.io/vue-quill/ * * Includes quill v1.3.7 * https://quilljs.com/ * * Copyright (c) 2023 Ahmad Luthfi Masruri * Released under the MIT license * Date: 2023-05-12T08:44:03.742Z */const qA={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},YSe=ot({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(qA).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{tn(()=>{a()}),Ci(()=>{n=null});let n,i;const r=z(),a=()=>{var T;if(r.value){if(i=o(),e.modules)if(Array.isArray(e.modules))for(const O of e.modules)uS.register(`modules/${O.name}`,O.module);else uS.register(`modules/${e.modules.name}`,e.modules.module);n=new uS(r.value,i),S(e.content),n.on("text-change",d),n.on("selection-change",h),n.on("editor-change",m),e.theme!=="bubble"&&r.value.classList.remove("ql-bubble"),e.theme!=="snow"&&r.value.classList.remove("ql-snow"),(T=n.getModule("toolbar"))===null||T===void 0||T.container.addEventListener("mousedown",O=>{O.preventDefault()}),t.emit("ready",n)}},o=()=>{const T={};if(e.theme!==""&&(T.theme=e.theme),e.readOnly&&(T.readOnly=e.readOnly),e.placeholder&&(T.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(T.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:qA[e.toolbar]})()}),e.modules){const O=(()=>{var N,V;const j={};if(Array.isArray(e.modules))for(const q of e.modules)j[q.name]=(N=q.options)!==null&&N!==void 0?N:{};else j[e.modules.name]=(V=e.modules.options)!==null&&V!==void 0?V:{};return j})();T.modules=Object.assign({},T.modules,O)}return Object.assign({},e.globalOptions,e.options,T)},s=T=>typeof T=="object"&&T?T.slice():T,l=T=>Object.values(T.ops).some(O=>!O.retain||Object.keys(O).length!==1);let u;const c=T=>{if(typeof u==typeof T){if(T===u)return!0;if(typeof T=="object"&&T&&typeof u=="object"&&u)return!l(u.diff(T))}return!1},d=(T,O,N)=>{u=s(_()),c(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:T,oldContents:O,source:N})},f=z(),h=(T,O,N)=>{f.value=!!(n!=null&&n.hasFocus()),t.emit("selectionChange",{range:T,oldRange:O,source:N})};Ve(f,T=>{T?t.emit("focus",r):t.emit("blur",r)});const m=(...T)=>{T[0]==="text-change"&&t.emit("editorChange",{name:T[0],delta:T[1],oldContents:T[2],source:T[3]}),T[0]==="selection-change"&&t.emit("editorChange",{name:T[0],range:T[1],oldRange:T[2],source:T[3]})},g=()=>r.value,v=()=>{var T;return(T=n==null?void 0:n.getModule("toolbar"))===null||T===void 0?void 0:T.container},y=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},_=(T,O)=>e.contentType==="html"?k():e.contentType==="text"?w(T,O):n==null?void 0:n.getContents(T,O),S=(T,O="api")=>{const N=T||(e.contentType==="delta"?new Qh:"");e.contentType==="html"?P(N):e.contentType==="text"?x(N,O):n==null||n.setContents(N,O),u=s(N)},w=(T,O)=>{var N;return(N=n==null?void 0:n.getText(T,O))!==null&&N!==void 0?N:""},x=(T,O="api")=>{n==null||n.setText(T,O)},k=()=>{var T;return(T=n==null?void 0:n.root.innerHTML)!==null&&T!==void 0?T:""},P=T=>{n&&(n.root.innerHTML=T)},E=(T,O="api")=>{const N=n==null?void 0:n.clipboard.convert(T);N&&(n==null||n.setContents(N,O))},A=()=>{n==null||n.focus()},D=()=>{Pt(()=>{var T;!t.slots.toolbar&&n&&((T=n.getModule("toolbar"))===null||T===void 0||T.container.remove()),a()})};return Ve(()=>e.content,T=>{if(!n||!T||c(T))return;const O=n.getSelection();O&&Pt(()=>n==null?void 0:n.setSelection(O)),S(T)},{deep:!0}),Ve(()=>e.enable,T=>{n&&n.enable(T)}),{editor:r,getEditor:g,getToolbar:v,getQuill:y,getContents:_,setContents:S,getHTML:k,setHTML:P,pasteHTML:E,focus:A,getText:w,setText:x,reinit:D}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),vi("div",{ref:"editor",...this.$attrs})]}});var c_=Object.prototype.hasOwnProperty,Pj=Object.prototype.toString,YA=Object.defineProperty,WA=Object.getOwnPropertyDescriptor,GA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Pj.call(t)==="[object Array]"},KA=function(t){if(!t||Pj.call(t)!=="[object Object]")return!1;var n=c_.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&c_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||c_.call(t,r)},ZA=function(t,n){YA&&n.name==="__proto__"?YA(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},XA=function(t,n){if(n==="__proto__")if(c_.call(t,n)){if(WA)return WA(t,n).value}else return;return t[n]},gk=function e(){var t,n,i,r,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)i=XA(s,n),r=XA(t,n),s!==r&&(c&&r&&(KA(r)||(a=GA(r)))?(a?(a=!1,o=i&&GA(i)?i:[]):o=i&&KA(i)?i:{},ZA(s,{name:n,newValue:e(c,o,r)})):typeof r<"u"&&ZA(s,{name:n,newValue:r}));return s};const Bl=Ei(gk);var Ul=-1,zl=1,fa=0;function w1(e,t,n){if(e==t)return e?[[fa,e]]:[];(n<0||e.length<n)&&(n=null);var i=yk(e,t),r=e.substring(0,i);e=e.substring(i),t=t.substring(i),i=_k(e,t);var a=e.substring(e.length-i);e=e.substring(0,e.length-i),t=t.substring(0,t.length-i);var o=WSe(e,t);return r&&o.unshift([fa,r]),a&&o.push([fa,a]),$j(o),n!=null&&(o=JSe(o,n)),o=QSe(o),o}function WSe(e,t){var n;if(!e)return[[zl,t]];if(!t)return[[Ul,e]];var i=e.length>t.length?e:t,r=e.length>t.length?t:e,a=i.indexOf(r);if(a!=-1)return n=[[zl,i.substring(0,a)],[fa,r],[zl,i.substring(a+r.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Ul),n;if(r.length==1)return[[Ul,e],[zl,t]];var o=KSe(e,t);if(o){var s=o[0],l=o[1],u=o[2],c=o[3],d=o[4],f=w1(s,u),h=w1(l,c);return f.concat([[fa,d]],h)}return GSe(e,t)}function GSe(e,t){for(var n=e.length,i=t.length,r=Math.ceil((n+i)/2),a=r,o=2*r,s=new Array(o),l=new Array(o),u=0;u<o;u++)s[u]=-1,l[u]=-1;s[a+1]=0,l[a+1]=0;for(var c=n-i,d=c%2!=0,f=0,h=0,m=0,g=0,v=0;v<r;v++){for(var y=-v+f;y<=v-h;y+=2){var _=a+y,S;y==-v||y!=v&&s[_-1]<s[_+1]?S=s[_+1]:S=s[_-1]+1;for(var w=S-y;S<n&&w<i&&e.charAt(S)==t.charAt(w);)S++,w++;if(s[_]=S,S>n)h+=2;else if(w>i)f+=2;else if(d){var x=a+c-y;if(x>=0&&x<o&&l[x]!=-1){var k=n-l[x];if(S>=k)return JA(e,t,S,w)}}}for(var P=-v+m;P<=v-g;P+=2){var x=a+P,k;P==-v||P!=v&&l[x-1]<l[x+1]?k=l[x+1]:k=l[x-1]+1;for(var E=k-P;k<n&&E<i&&e.charAt(n-k-1)==t.charAt(i-E-1);)k++,E++;if(l[x]=k,k>n)g+=2;else if(E>i)m+=2;else if(!d){var _=a+c-P;if(_>=0&&_<o&&s[_]!=-1){var S=s[_],w=a+S-_;if(k=n-k,S>=k)return JA(e,t,S,w)}}}}return[[Ul,e],[zl,t]]}function JA(e,t,n,i){var r=e.substring(0,n),a=t.substring(0,i),o=e.substring(n),s=t.substring(i),l=w1(r,a),u=w1(o,s);return l.concat(u)}function yk(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(a,r)==t.substring(a,r)?(n=r,a=n):i=r,r=Math.floor((i-n)/2+n);return r}function _k(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(e.length-r,e.length-a)==t.substring(t.length-r,t.length-a)?(n=r,a=n):i=r,r=Math.floor((i-n)/2+n);return r}function KSe(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||i.length*2<n.length)return null;function r(h,m,g){for(var v=h.substring(g,g+Math.floor(h.length/4)),y=-1,_="",S,w,x,k;(y=m.indexOf(v,y+1))!=-1;){var P=yk(h.substring(g),m.substring(y)),E=_k(h.substring(0,g),m.substring(0,y));_.length<E+P&&(_=m.substring(y-E,y)+m.substring(y,y+P),S=h.substring(0,g-E),w=h.substring(g+P),x=m.substring(0,y-E),k=m.substring(y+P))}return _.length*2>=h.length?[S,w,x,k,_]:null}var a=r(n,i,Math.ceil(n.length/4)),o=r(n,i,Math.ceil(n.length/2)),s;if(!a&&!o)return null;o?a?s=a[4].length>o[4].length?a:o:s=o:s=a;var l,u,c,d;e.length>t.length?(l=s[0],u=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],l=s[2],u=s[3]);var f=s[4];return[l,u,c,d,f]}function $j(e){e.push([fa,""]);for(var t=0,n=0,i=0,r="",a="",o;t<e.length;)switch(e[t][0]){case zl:i++,a+=e[t][1],t++;break;case Ul:n++,r+=e[t][1],t++;break;case fa:n+i>1?(n!==0&&i!==0&&(o=yk(a,r),o!==0&&(t-n-i>0&&e[t-n-i-1][0]==fa?e[t-n-i-1][1]+=a.substring(0,o):(e.splice(0,0,[fa,a.substring(0,o)]),t++),a=a.substring(o),r=r.substring(o)),o=_k(a,r),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),r=r.substring(0,r.length-o))),n===0?e.splice(t-i,n+i,[zl,a]):i===0?e.splice(t-n,n+i,[Ul,r]):e.splice(t-n-i,n+i,[Ul,r],[zl,a]),t=t-n-i+(n?1:0)+(i?1:0)+1):t!==0&&e[t-1][0]==fa?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,i=0,n=0,r="",a="";break}e[e.length-1][1]===""&&e.pop();var s=!1;for(t=1;t<e.length-1;)e[t-1][0]==fa&&e[t+1][0]==fa&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&$j(e)}var zw=w1;zw.INSERT=zl;zw.DELETE=Ul;zw.EQUAL=fa;var ZSe=zw;function XSe(e,t){if(t===0)return[fa,e];for(var n=0,i=0;i<e.length;i++){var r=e[i];if(r[0]===Ul||r[0]===fa){var a=n+r[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var o=t-n,s=[r[0],r[1].slice(0,o)],l=[r[0],r[1].slice(o)];return e.splice(i,1,s,l),[i+1,e]}else n=a}}throw new Error("cursor_pos is out of bounds!")}function JSe(e,t){var n=XSe(e,t),i=n[1],r=n[0],a=i[r],o=i[r+1];if(a==null)return e;if(a[0]!==fa)return e;if(o!=null&&a[1]+o[1]===o[1]+a[1])return i.splice(r,2,o,a),QA(i,r,2);if(o!=null&&o[1].indexOf(a[1])===0){i.splice(r,2,[o[0],a[1]],[0,a[1]]);var s=o[1].slice(a[1].length);return s.length>0&&i.splice(r+2,0,[o[0],s]),QA(i,r,3)}else return e}function QSe(e){for(var t=!1,n=function(o){return o.charCodeAt(0)>=56320&&o.charCodeAt(0)<=57343},i=function(o){return o.charCodeAt(o.length-1)>=55296&&o.charCodeAt(o.length-1)<=56319},r=2;r<e.length;r+=1)e[r-2][0]===fa&&i(e[r-2][1])&&e[r-1][0]===Ul&&n(e[r-1][1])&&e[r][0]===zl&&n(e[r][1])&&(t=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));if(!t)return e;for(var a=[],r=0;r<e.length;r+=1)e[r][1].length>0&&a.push(e[r]);return a}function QA(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],a=e[i+1];r[0]===a[1]&&e.splice(i,2,[r[0],r[1]+a[1]])}return e}var e7=Object.prototype.toString,Aj=function(t){var n=e7.call(t),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&e7.call(t.callee)==="[object Function]"),i},fS,t7;function e5e(){if(t7)return fS;t7=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Aj,r=Object.prototype.propertyIsEnumerable,a=!r.call({toString:null},"toString"),o=r.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var h=f.constructor;return h&&h.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",g=n.call(h)==="[object Function]",v=i(h),y=m&&n.call(h)==="[object String]",_=[];if(!m&&!g&&!v)throw new TypeError("Object.keys called on a non-object");var S=o&&g;if(y&&h.length>0&&!t.call(h,0))for(var w=0;w<h.length;++w)_.push(String(w));if(v&&h.length>0)for(var x=0;x<h.length;++x)_.push(String(x));else for(var k in h)!(S&&k==="prototype")&&t.call(h,k)&&_.push(String(k));if(a)for(var P=d(h),E=0;E<s.length;++E)!(P&&s[E]==="constructor")&&t.call(h,s[E])&&_.push(s[E]);return _}}return fS=e,fS}var t5e=Array.prototype.slice,n5e=Aj,n7=Object.keys,d_=n7?function(t){return n7(t)}:e5e(),i7=Object.keys;d_.shim=function(){if(Object.keys){var t=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);t||(Object.keys=function(i){return n5e(i)?i7(t5e.call(i)):i7(i)})}else Object.keys=d_;return Object.keys||d_};var Oj=d_,Dj=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;t[n]=r;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==r||o.enumerable!==!0)return!1}return!0},i5e=Dj,bk=function(){return i5e()&&!!Symbol.toStringTag},r5e=Error,a5e=EvalError,o5e=RangeError,s5e=ReferenceError,Ij=SyntaxError,Fm=TypeError,l5e=URIError,r7=typeof Symbol<"u"&&Symbol,u5e=Dj,c5e=function(){return typeof r7!="function"||typeof Symbol!="function"||typeof r7("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:u5e()},hS={__proto__:null,foo:{}},d5e=Object,f5e=function(){return{__proto__:hS}.foo===hS.foo&&!(hS instanceof d5e)},h5e="Function.prototype.bind called on incompatible ",p5e=Object.prototype.toString,m5e=Math.max,v5e="[object Function]",a7=function(t,n){for(var i=[],r=0;r<t.length;r+=1)i[r]=t[r];for(var a=0;a<n.length;a+=1)i[a+t.length]=n[a];return i},g5e=function(t,n){for(var i=[],r=n||0,a=0;r<t.length;r+=1,a+=1)i[a]=t[r];return i},y5e=function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n},_5e=function(t){var n=this;if(typeof n!="function"||p5e.apply(n)!==v5e)throw new TypeError(h5e+n);for(var i=g5e(arguments,1),r,a=function(){if(this instanceof r){var c=n.apply(this,a7(i,arguments));return Object(c)===c?c:this}return n.apply(t,a7(i,arguments))},o=m5e(0,n.length-i.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(r=Function("binder","return function ("+y5e(s,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var u=function(){};u.prototype=n.prototype,r.prototype=new u,u.prototype=null}return r},b5e=_5e,wk=Function.prototype.bind||b5e,w5e=Function.prototype.call,S5e=Object.prototype.hasOwnProperty,C5e=wk,E5e=C5e.call(w5e,S5e),_n,x5e=r5e,k5e=a5e,T5e=o5e,P5e=s5e,cm=Ij,Cp=Fm,$5e=l5e,Nj=Function,pS=function(e){try{return Nj('"use strict"; return ('+e+").constructor;")()}catch{}},Mf=Object.getOwnPropertyDescriptor;if(Mf)try{Mf({},"")}catch{Mf=null}var mS=function(){throw new Cp},A5e=Mf?function(){try{return arguments.callee,mS}catch{try{return Mf(arguments,"callee").get}catch{return mS}}}():mS,zh=c5e(),O5e=f5e(),Hr=Object.getPrototypeOf||(O5e?function(e){return e.__proto__}:null),ep={},D5e=typeof Uint8Array>"u"||!Hr?_n:Hr(Uint8Array),Lf={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?_n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?_n:ArrayBuffer,"%ArrayIteratorPrototype%":zh&&Hr?Hr([][Symbol.iterator]()):_n,"%AsyncFromSyncIteratorPrototype%":_n,"%AsyncFunction%":ep,"%AsyncGenerator%":ep,"%AsyncGeneratorFunction%":ep,"%AsyncIteratorPrototype%":ep,"%Atomics%":typeof Atomics>"u"?_n:Atomics,"%BigInt%":typeof BigInt>"u"?_n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?_n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?_n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?_n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":x5e,"%eval%":eval,"%EvalError%":k5e,"%Float32Array%":typeof Float32Array>"u"?_n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?_n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?_n:FinalizationRegistry,"%Function%":Nj,"%GeneratorFunction%":ep,"%Int8Array%":typeof Int8Array>"u"?_n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?_n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?_n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zh&&Hr?Hr(Hr([][Symbol.iterator]())):_n,"%JSON%":typeof JSON=="object"?JSON:_n,"%Map%":typeof Map>"u"?_n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!zh||!Hr?_n:Hr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?_n:Promise,"%Proxy%":typeof Proxy>"u"?_n:Proxy,"%RangeError%":T5e,"%ReferenceError%":P5e,"%Reflect%":typeof Reflect>"u"?_n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?_n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!zh||!Hr?_n:Hr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?_n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zh&&Hr?Hr(""[Symbol.iterator]()):_n,"%Symbol%":zh?Symbol:_n,"%SyntaxError%":cm,"%ThrowTypeError%":A5e,"%TypedArray%":D5e,"%TypeError%":Cp,"%Uint8Array%":typeof Uint8Array>"u"?_n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?_n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?_n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?_n:Uint32Array,"%URIError%":$5e,"%WeakMap%":typeof WeakMap>"u"?_n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?_n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?_n:WeakSet};if(Hr)try{null.error}catch(e){var I5e=Hr(Hr(e));Lf["%Error.prototype%"]=I5e}var N5e=function e(t){var n;if(t==="%AsyncFunction%")n=pS("async function () {}");else if(t==="%GeneratorFunction%")n=pS("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=pS("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Hr&&(n=Hr(r.prototype))}return Lf[t]=n,n},o7={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},py=wk,Nb=E5e,M5e=py.call(Function.call,Array.prototype.concat),L5e=py.call(Function.apply,Array.prototype.splice),s7=py.call(Function.call,String.prototype.replace),Mb=py.call(Function.call,String.prototype.slice),R5e=py.call(Function.call,RegExp.prototype.exec),F5e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V5e=/\\(\\)?/g,B5e=function(t){var n=Mb(t,0,1),i=Mb(t,-1);if(n==="%"&&i!=="%")throw new cm("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new cm("invalid intrinsic syntax, expected opening `%`");var r=[];return s7(t,F5e,function(a,o,s,l){r[r.length]=s?s7(l,V5e,"$1"):o||a}),r},z5e=function(t,n){var i=t,r;if(Nb(o7,i)&&(r=o7[i],i="%"+r[0]+"%"),Nb(Lf,i)){var a=Lf[i];if(a===ep&&(a=N5e(i)),typeof a>"u"&&!n)throw new Cp("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new cm("intrinsic "+t+" does not exist!")},my=function(t,n){if(typeof t!="string"||t.length===0)throw new Cp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Cp('"allowMissing" argument must be a boolean');if(R5e(/^%?[^%]*%?$/,t)===null)throw new cm("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=B5e(t),r=i.length>0?i[0]:"",a=z5e("%"+r+"%",n),o=a.name,s=a.value,l=!1,u=a.alias;u&&(r=u[0],L5e(i,M5e([0,1],u)));for(var c=1,d=!0;c<i.length;c+=1){var f=i[c],h=Mb(f,0,1),m=Mb(f,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new cm("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(l=!0),r+="."+f,o="%"+r+"%",Nb(Lf,o))s=Lf[o];else if(s!=null){if(!(f in s)){if(!n)throw new Cp("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mf&&c+1>=i.length){var g=Mf(s,f);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[f]}else d=Nb(s,f),s=s[f];d&&!l&&(Lf[o]=s)}}return s},Mj={exports:{}},j5e=my,f_=j5e("%Object.defineProperty%",!0)||!1;if(f_)try{f_({},"a",{value:1})}catch{f_=!1}var Sk=f_,U5e=my,h_=U5e("%Object.getOwnPropertyDescriptor%",!0);if(h_)try{h_([],"length")}catch{h_=null}var Lj=h_,l7=Sk,H5e=Ij,jh=Fm,u7=Lj,Ck=function(t,n,i){if(!t||typeof t!="object"&&typeof t!="function")throw new jh("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new jh("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new jh("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new jh("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new jh("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new jh("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!u7&&u7(t,n);if(l7)l7(t,n,{configurable:o===null&&l?l.configurable:!o,enumerable:r===null&&l?l.enumerable:!r,value:i,writable:a===null&&l?l.writable:!a});else if(s||!r&&!a&&!o)t[n]=i;else throw new H5e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},P4=Sk,Rj=function(){return!!P4};Rj.hasArrayLengthDefineBug=function(){if(!P4)return null;try{return P4([],"length",{value:1}).length!==1}catch{return!0}};var Ek=Rj,q5e=my,c7=Ck,Y5e=Ek(),d7=Lj,f7=Fm,W5e=q5e("%Math.floor%"),G5e=function(t,n){if(typeof t!="function")throw new f7("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||W5e(n)!==n)throw new f7("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,a=!0;if("length"in t&&d7){var o=d7(t,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(a=!1)}return(r||a||!i)&&(Y5e?c7(t,"length",n,!0,!0):c7(t,"length",n)),t};(function(e){var t=wk,n=my,i=G5e,r=Fm,a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(o,a),l=Sk,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new r("a function is required");var h=s(t,o,arguments);return i(h,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return s(t,a,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(Mj);var xk=Mj.exports,Fj=my,Vj=xk,K5e=Vj(Fj("String.prototype.indexOf")),Bj=function(t,n){var i=Fj(t,!!n);return typeof i=="function"&&K5e(t,".prototype.")>-1?Vj(i):i},Z5e=bk(),X5e=Bj,$4=X5e("Object.prototype.toString"),jw=function(t){return Z5e&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:$4(t)==="[object Arguments]"},zj=function(t){return jw(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$4(t)!=="[object Array]"&&$4(t.callee)==="[object Function]"},J5e=function(){return jw(arguments)}();jw.isLegacyArguments=zj;var Q5e=J5e?jw:zj,eCe=Oj,tCe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",nCe=Object.prototype.toString,iCe=Array.prototype.concat,h7=Ck,rCe=function(e){return typeof e=="function"&&nCe.call(e)==="[object Function]"},jj=Ek(),aCe=function(e,t,n,i){if(t in e){if(i===!0){if(e[t]===n)return}else if(!rCe(i)||!i())return}jj?h7(e,t,n,!0):h7(e,t,n)},Uj=function(e,t){var n=arguments.length>2?arguments[2]:{},i=eCe(t);tCe&&(i=iCe.call(i,Object.getOwnPropertySymbols(t)));for(var r=0;r<i.length;r+=1)aCe(e,i[r],t[i[r]],n[i[r]])};Uj.supportsDescriptors=!!jj;var vy=Uj,p7=function(e){return e!==e},Hj=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||p7(t)&&p7(n))},oCe=Hj,qj=function(){return typeof Object.is=="function"?Object.is:oCe},sCe=qj,lCe=vy,uCe=function(){var t=sCe();return lCe(Object,{is:t},{is:function(){return Object.is!==t}}),t},cCe=vy,dCe=xk,fCe=Hj,Yj=qj,hCe=uCe,Wj=dCe(Yj(),Object);cCe(Wj,{getPolyfill:Yj,implementation:fCe,shim:hCe});var pCe=Wj,A4=Bj,Gj=bk(),Kj,Zj,O4,D4;if(Gj){Kj=A4("Object.prototype.hasOwnProperty"),Zj=A4("RegExp.prototype.exec"),O4={};var vS=function(){throw O4};D4={toString:vS,valueOf:vS},typeof Symbol.toPrimitive=="symbol"&&(D4[Symbol.toPrimitive]=vS)}var mCe=A4("Object.prototype.toString"),vCe=Object.getOwnPropertyDescriptor,gCe="[object RegExp]",yCe=Gj?function(t){if(!t||typeof t!="object")return!1;var n=vCe(t,"lastIndex"),i=n&&Kj(n,"value");if(!i)return!1;try{Zj(t,D4)}catch(r){return r===O4}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:mCe(t)===gCe},S1=function(){return typeof(function(){}).name=="string"},xg=Object.getOwnPropertyDescriptor;if(xg)try{xg([],"length")}catch{xg=null}S1.functionsHaveConfigurableNames=function(){if(!S1()||!xg)return!1;var t=xg(function(){},"name");return!!t&&!!t.configurable};var _Ce=Function.prototype.bind;S1.boundFunctionsHaveNames=function(){return S1()&&typeof _Ce=="function"&&(function(){}).bind().name!==""};var bCe=S1,m7=Ck,wCe=Ek(),SCe=bCe.functionsHaveConfigurableNames(),CCe=Fm,ECe=function(t,n){if(typeof t!="function")throw new CCe("`fn` is not a function");var i=arguments.length>2&&!!arguments[2];return(!i||SCe)&&(wCe?m7(t,"name",n,!0,!0):m7(t,"name",n)),t},xCe=ECe,kCe=Fm,TCe=Object,Xj=xCe(function(){if(this==null||this!==TCe(this))throw new kCe("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),PCe=Xj,$Ce=vy.supportsDescriptors,ACe=Object.getOwnPropertyDescriptor,Jj=function(){if($Ce&&/a/mig.flags==="gim"){var t=ACe(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(i,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return PCe},OCe=vy.supportsDescriptors,DCe=Jj,ICe=Object.getOwnPropertyDescriptor,NCe=Object.defineProperty,MCe=TypeError,v7=Object.getPrototypeOf,LCe=/a/,RCe=function(){if(!OCe||!v7)throw new MCe("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=DCe(),n=v7(LCe),i=ICe(n,"flags");return(!i||i.get!==t)&&NCe(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},FCe=vy,VCe=xk,BCe=Xj,Qj=Jj,zCe=RCe,eU=VCe(Qj());FCe(eU,{getPolyfill:Qj,implementation:BCe,shim:zCe});var jCe=eU,UCe=Date.prototype.getDay,HCe=function(t){try{return UCe.call(t),!0}catch{return!1}},qCe=Object.prototype.toString,YCe="[object Date]",WCe=bk(),GCe=function(t){return typeof t!="object"||t===null?!1:WCe?HCe(t):qCe.call(t)===YCe},g7=Oj,y7=Q5e,_7=pCe,b7=yCe,w7=jCe,S7=GCe,C7=Date.prototype.getTime;function tU(e,t,n){var i=n||{};return(i.strict?_7(e,t):e===t)?!0:!e||!t||typeof e!="object"&&typeof t!="object"?i.strict?_7(e,t):e==t:KCe(e,t,i)}function E7(e){return e==null}function x7(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function KCe(e,t,n){var i,r;if(typeof e!=typeof t||E7(e)||E7(t)||e.prototype!==t.prototype||y7(e)!==y7(t))return!1;var a=b7(e),o=b7(t);if(a!==o)return!1;if(a||o)return e.source===t.source&&w7(e)===w7(t);if(S7(e)&&S7(t))return C7.call(e)===C7.call(t);var s=x7(e),l=x7(t);if(s!==l)return!1;if(s||l){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var u=g7(e),c=g7(t)}catch{return!1}if(u.length!==c.length)return!1;for(u.sort(),c.sort(),i=u.length-1;i>=0;i--)if(u[i]!=c[i])return!1;for(i=u.length-1;i>=0;i--)if(r=u[i],!tU(e[r],t[r],n))return!1;return!0}var kk=tU;const nU=Ei(kk);var ZCe=kk,XCe=gk,Tk={attributes:{compose:function(e,t,n){typeof e!="object"&&(e={}),typeof t!="object"&&(t={});var i=XCe(!0,{},t);n||(i=Object.keys(i).reduce(function(a,o){return i[o]!=null&&(a[o]=i[o]),a},{}));for(var r in e)e[r]!==void 0&&t[r]===void 0&&(i[r]=e[r]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){typeof e!="object"&&(e={}),typeof t!="object"&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(i,r){return ZCe(e[r],t[r])||(i[r]=t[r]===void 0?null:t[r]),i},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if(typeof e!="object")return t;if(typeof t=="object"){if(!n)return t;var i=Object.keys(t).reduce(function(r,a){return e[a]===void 0&&(r[a]=t[a]),r},{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new bh(e)},length:function(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.insert=="string"?e.insert.length:1}};function bh(e){this.ops=e,this.index=0,this.offset=0}bh.prototype.hasNext=function(){return this.peekLength()<1/0};bh.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=Tk.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,typeof t.delete=="number")return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),typeof t.retain=="number"?r.retain=e:typeof t.insert=="string"?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}else return{retain:1/0}};bh.prototype.peek=function(){return this.ops[this.index]};bh.prototype.peekLength=function(){return this.ops[this.index]?Tk.length(this.ops[this.index])-this.offset:1/0};bh.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"};bh.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}else return[]};var iU=Tk;const JCe=Ei(iU);var b0=ZSe,Pk=kk,QCe=gk,ga=iU,e4e=String.fromCharCode(0),qn=function(e){Array.isArray(e)?this.ops=e:e!=null&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};qn.prototype.insert=function(e,t){var n={};return e.length===0?this:(n.insert=e,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))};qn.prototype.delete=function(e){return e<=0?this:this.push({delete:e})};qn.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)};qn.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=QCe(!0,{},e),typeof n=="object"){if(typeof e.delete=="number"&&typeof n.delete=="number")return this.ops[t-1]={delete:n.delete+e.delete},this;if(typeof n.delete=="number"&&e.insert!=null&&(t-=1,n=this.ops[t-1],typeof n!="object"))return this.ops.unshift(e),this;if(Pk(e.attributes,n.attributes)){if(typeof e.insert=="string"&&typeof n.insert=="string")return this.ops[t-1]={insert:n.insert+e.insert},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this;if(typeof e.retain=="number"&&typeof n.retain=="number")return this.ops[t-1]={retain:n.retain+e.retain},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this};qn.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this};qn.prototype.filter=function(e){return this.ops.filter(e)};qn.prototype.forEach=function(e){this.ops.forEach(e)};qn.prototype.map=function(e){return this.ops.map(e)};qn.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(i){var r=e(i)?t:n;r.push(i)}),[t,n]};qn.prototype.reduce=function(e,t){return this.ops.reduce(e,t)};qn.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+ga.length(t):t.delete?e-t.delete:e},0)};qn.prototype.length=function(){return this.reduce(function(e,t){return e+ga.length(t)},0)};qn.prototype.slice=function(e,t){e=e||0,typeof t!="number"&&(t=1/0);for(var n=[],i=ga.iterator(this.ops),r=0;r<t&&i.hasNext();){var a;r<e?a=i.next(e-r):(a=i.next(t-r),n.push(a)),r+=ga.length(a)}return new qn(n)};qn.prototype.compose=function(e){var t=ga.iterator(this.ops),n=ga.iterator(e.ops),i=[],r=n.peek();if(r!=null&&typeof r.retain=="number"&&r.attributes==null){for(var a=r.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),i.push(t.next());r.retain-a>0&&n.next(r.retain-a)}for(var o=new qn(i);t.hasNext()||n.hasNext();)if(n.peekType()==="insert")o.push(n.next());else if(t.peekType()==="delete")o.push(t.next());else{var s=Math.min(t.peekLength(),n.peekLength()),l=t.next(s),u=n.next(s);if(typeof u.retain=="number"){var c={};typeof l.retain=="number"?c.retain=s:c.insert=l.insert;var d=ga.attributes.compose(l.attributes,u.attributes,typeof l.retain=="number");if(d&&(c.attributes=d),o.push(c),!n.hasNext()&&Pk(o.ops[o.ops.length-1],c)){var f=new qn(t.rest());return o.concat(f).chop()}}else typeof u.delete=="number"&&typeof l.retain=="number"&&o.push(u)}return o.chop()};qn.prototype.concat=function(e){var t=new qn(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t};qn.prototype.diff=function(e,t){if(this.ops===e.ops)return new qn;var n=[this,e].map(function(s){return s.map(function(l){if(l.insert!=null)return typeof l.insert=="string"?l.insert:e4e;var u=s===e?"on":"with";throw new Error("diff() called "+u+" non-document")}).join("")}),i=new qn,r=b0(n[0],n[1],t),a=ga.iterator(this.ops),o=ga.iterator(e.ops);return r.forEach(function(s){for(var l=s[1].length;l>0;){var u=0;switch(s[0]){case b0.INSERT:u=Math.min(o.peekLength(),l),i.push(o.next(u));break;case b0.DELETE:u=Math.min(l,a.peekLength()),a.next(u),i.delete(u);break;case b0.EQUAL:u=Math.min(a.peekLength(),o.peekLength(),l);var c=a.next(u),d=o.next(u);Pk(c.insert,d.insert)?i.retain(u,ga.attributes.diff(c.attributes,d.attributes)):i.push(d).delete(u);break}l-=u}}),i.chop()};qn.prototype.eachLine=function(e,t){t=t||` `;for(var n=ga.iterator(this.ops),i=new qn,r=0;n.hasNext();){if(n.peekType()!=="insert")return;var a=n.peek(),o=ga.length(a)-n.peekLength(),s=typeof a.insert=="string"?a.insert.indexOf(t,o)-o:-1;if(s<0)i.push(n.next());else if(s>0)i.push(n.next(s));else{if(e(i,n.next(1).attributes||{},r)===!1)return;r+=1,i=new qn}}i.length()>0&&e(i,{},r)};qn.prototype.transform=function(e,t){if(t=!!t,typeof e=="number")return this.transformPosition(e,t);for(var n=ga.iterator(this.ops),i=ga.iterator(e.ops),r=new qn;n.hasNext()||i.hasNext();)if(n.peekType()==="insert"&&(t||i.peekType()!=="insert"))r.retain(ga.length(n.next()));else if(i.peekType()==="insert")r.push(i.next());else{var a=Math.min(n.peekLength(),i.peekLength()),o=n.next(a),s=i.next(a);if(o.delete)continue;s.delete?r.push(s):r.retain(a,ga.attributes.transform(o.attributes,s.attributes,t))}return r.chop()};qn.prototype.transformPosition=function(e,t){t=!!t;for(var n=ga.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var r=n.peekLength(),a=n.peekType();if(n.next(),a==="delete"){e-=Math.min(r,e-i);continue}else a==="insert"&&(i<e||!t)&&(e+=r);i+=r}return e};var t4e=qn;const wn=Ei(t4e);var rU={exports:{}};(function(e,t){(function(i,r){e.exports=r()})(typeof self<"u"?self:ri,function(){return function(n){var i={};function r(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=i,r.d=function(a,o,s){r.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(o,"a",o),o},r.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},r.p="",r(r.s=9)}([function(n,i,r){var a=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var S in _)_.hasOwnProperty(S)&&(y[S]=_[S])};return function(y,_){v(y,_);function S(){this.constructor=y}y.prototype=_===null?Object.create(_):(S.prototype=_.prototype,new S)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=function(v){a(y,v);function y(_){var S=this;return _="[Parchment] "+_,S=v.call(this,_)||this,S.message=_,S.name=S.constructor.name,S}return y}(Error);i.ParchmentError=o;var s={},l={},u={},c={};i.DATA_KEY="__blot";var d;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(d=i.Scope||(i.Scope={}));function f(v,y){var _=m(v);if(_==null)throw new o("Unable to create "+v+" blot");var S=_,w=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:S.create(y);return new S(w,y)}i.create=f;function h(v,y){return y===void 0&&(y=!1),v==null?null:v[i.DATA_KEY]!=null?v[i.DATA_KEY].blot:y?h(v.parentNode,y):null}i.find=h;function m(v,y){y===void 0&&(y=d.ANY);var _;if(typeof v=="string")_=c[v]||s[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)_=c.text;else if(typeof v=="number")v&d.LEVEL&d.BLOCK?_=c.block:v&d.LEVEL&d.INLINE&&(_=c.inline);else if(v instanceof HTMLElement){var S=(v.getAttribute("class")||"").split(/\s+/);for(var w in S)if(_=l[S[w]],_)break;_=_||u[v.tagName]}return _==null?null:y&d.LEVEL&_.scope&&y&d.TYPE&_.scope?_:null}i.query=m;function g(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];if(v.length>1)return v.map(function(w){return g(w)});var _=v[0];if(typeof _.blotName!="string"&&typeof _.attrName!="string")throw new o("Invalid definition");if(_.blotName==="abstract")throw new o("Cannot register abstract class");if(c[_.blotName||_.attrName]=_,typeof _.keyName=="string")s[_.keyName]=_;else if(_.className!=null&&(l[_.className]=_),_.tagName!=null){Array.isArray(_.tagName)?_.tagName=_.tagName.map(function(w){return w.toUpperCase()}):_.tagName=_.tagName.toUpperCase();var S=Array.isArray(_.tagName)?_.tagName:[_.tagName];S.forEach(function(w){(u[w]==null||_.className==null)&&(u[w]=_)})}return _}i.register=g},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(0),o=function(){function s(l,u,c){c===void 0&&(c={}),this.attrName=l,this.keyName=u;var d=a.Scope.TYPE&a.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&a.Scope.LEVEL|d:this.scope=a.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(u){return u.name})},s.prototype.add=function(l,u){return this.canAdd(l,u)?(l.setAttribute(this.keyName,u),!0):!1},s.prototype.canAdd=function(l,u){var c=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var u=l.getAttribute(this.keyName);return this.canAdd(l,u)&&u?u:""},s}();i.default=o},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(11),s=r(5),l=r(0),u=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.build(),m}return f.prototype.appendChild=function(h){this.insertBefore(h)},f.prototype.attach=function(){d.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},f.prototype.build=function(){var h=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var g=c(m);h.insertBefore(g,h.children.head||void 0)}catch(v){if(v instanceof l.ParchmentError)return;throw v}})},f.prototype.deleteAt=function(h,m){if(h===0&&m===this.length())return this.remove();this.children.forEachAt(h,m,function(g,v,y){g.deleteAt(v,y)})},f.prototype.descendant=function(h,m){var g=this.children.find(m),v=g[0],y=g[1];return h.blotName==null&&h(v)||h.blotName!=null&&v instanceof h?[v,y]:v instanceof f?v.descendant(h,y):[null,-1]},f.prototype.descendants=function(h,m,g){m===void 0&&(m=0),g===void 0&&(g=Number.MAX_VALUE);var v=[],y=g;return this.children.forEachAt(m,g,function(_,S,w){(h.blotName==null&&h(_)||h.blotName!=null&&_ instanceof h)&&v.push(_),_ instanceof f&&(v=v.concat(_.descendants(h,S,y))),y-=w}),v},f.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),d.prototype.detach.call(this)},f.prototype.formatAt=function(h,m,g,v){this.children.forEachAt(h,m,function(y,_,S){y.formatAt(_,S,g,v)})},f.prototype.insertAt=function(h,m,g){var v=this.children.find(h),y=v[0],_=v[1];if(y)y.insertAt(_,m,g);else{var S=g==null?l.create("text",m):l.create(m,g);this.appendChild(S)}},f.prototype.insertBefore=function(h,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return h instanceof g}))throw new l.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,m)},f.prototype.length=function(){return this.children.reduce(function(h,m){return h+m.length()},0)},f.prototype.moveChildren=function(h,m){this.children.forEach(function(g){h.insertBefore(g,m)})},f.prototype.optimize=function(h){if(d.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var m=l.create(this.statics.defaultChild);this.appendChild(m),m.optimize(h)}else this.remove()},f.prototype.path=function(h,m){m===void 0&&(m=!1);var g=this.children.find(h,m),v=g[0],y=g[1],_=[[this,h]];return v instanceof f?_.concat(v.path(y,m)):(v!=null&&_.push([v,y]),_)},f.prototype.removeChild=function(h){this.children.remove(h)},f.prototype.replace=function(h){h instanceof f&&h.moveChildren(this),d.prototype.replace.call(this,h)},f.prototype.split=function(h,m){if(m===void 0&&(m=!1),!m){if(h===0)return this;if(h===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(h,this.length(),function(v,y,_){v=v.split(y,m),g.appendChild(v)}),g},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(h,m){var g=this,v=[],y=[];h.forEach(function(_){_.target===g.domNode&&_.type==="childList"&&(v.push.apply(v,_.addedNodes),y.push.apply(y,_.removedNodes))}),y.forEach(function(_){if(!(_.parentNode!=null&&_.tagName!=="IFRAME"&&document.body.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var S=l.find(_);S!=null&&(S.domNode.parentNode==null||S.domNode.parentNode===g.domNode)&&S.detach()}}),v.filter(function(_){return _.parentNode==g.domNode}).sort(function(_,S){return _===S?0:_.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(_){var S=null;_.nextSibling!=null&&(S=l.find(_.nextSibling));var w=c(_);(w.next!=S||w.next==null)&&(w.parent!=null&&w.parent.removeChild(g),g.insertBefore(w,S||void 0))})},f}(s.default);function c(d){var f=l.find(d);if(f==null)try{f=l.create(d)}catch{f=l.create(l.Scope.INLINE),[].slice.call(d.childNodes).forEach(function(m){f.domNode.appendChild(m)}),d.parentNode&&d.parentNode.replaceChild(f.domNode,d),f.attach()}return f}i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(1),s=r(6),l=r(2),u=r(0),c=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.attributes=new s.default(m.domNode),m}return f.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},f.prototype.format=function(h,m){var g=u.query(h);g instanceof o.default?this.attributes.attribute(g,m):m&&g!=null&&(h!==this.statics.blotName||this.formats()[h]!==m)&&this.replaceWith(h,m)},f.prototype.formats=function(){var h=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(h[this.statics.blotName]=m),h},f.prototype.replaceWith=function(h,m){var g=d.prototype.replaceWith.call(this,h,m);return this.attributes.copy(g),g},f.prototype.update=function(h,m){var g=this;d.prototype.update.call(this,h,m),h.some(function(v){return v.target===g.domNode&&v.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(h,m){var g=d.prototype.wrap.call(this,h,m);return g instanceof f&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},f}(l.default);i.default=c},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(5),s=r(0),l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.value=function(d){return!0},c.prototype.index=function(d,f){return this.domNode===d||this.domNode.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},c.prototype.position=function(d,f){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return d>0&&(h+=1),[this.parent.domNode,h]},c.prototype.value=function(){return d={},d[this.statics.blotName]=this.statics.value(this.domNode)||!0,d;var d},c.scope=s.Scope.INLINE_BLOT,c}(o.default);i.default=l},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(0),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?u=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?u=document.createElement(l):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,u){var c=this.isolate(l,u);c.remove()},s.prototype.formatAt=function(l,u,c,d){var f=this.isolate(l,u);if(a.query(c,a.Scope.BLOT)!=null&&d)f.wrap(c,d);else if(a.query(c,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);f.wrap(h),h.format(c,d)}},s.prototype.insertAt=function(l,u,c){var d=c==null?a.create("text",u):a.create(u,c),f=this.split(l);this.parent.insertBefore(d,f)},s.prototype.insertInto=function(l,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var c=null;l.children.insertBefore(this,u),u!=null&&(c=u.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=c)&&l.domNode.insertBefore(this.domNode,c),this.parent=l,this.attach()},s.prototype.isolate=function(l,u){var c=this.split(l);return c.split(u),c},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,u){var c=typeof l=="string"?a.create(l,u):l;return c.replace(this),c},s.prototype.split=function(l,u){return l===0?this:this.next},s.prototype.update=function(l,u){},s.prototype.wrap=function(l,u){var c=typeof l=="string"?a.create(l,u):l;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},s.blotName="abstract",s}();i.default=o},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(1),o=r(7),s=r(8),l=r(0),u=function(){function c(d){this.attributes={},this.domNode=d,this.build()}return c.prototype.attribute=function(d,f){f?d.add(this.domNode,f)&&(d.value(this.domNode)!=null?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},c.prototype.build=function(){var d=this;this.attributes={};var f=a.default.keys(this.domNode),h=o.default.keys(this.domNode),m=s.default.keys(this.domNode);f.concat(h).concat(m).forEach(function(g){var v=l.query(g,l.Scope.ATTRIBUTE);v instanceof a.default&&(d.attributes[v.attrName]=v)})},c.prototype.copy=function(d){var f=this;Object.keys(this.attributes).forEach(function(h){var m=f.attributes[h].value(f.domNode);d.format(h,m)})},c.prototype.move=function(d){var f=this;this.copy(d),Object.keys(this.attributes).forEach(function(h){f.attributes[h].remove(f.domNode)}),this.attributes={}},c.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(f,h){return f[h]=d.attributes[h].value(d.domNode),f},{})},c}();i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(1);function s(u,c){var d=u.getAttribute("class")||"";return d.split(/\s+/).filter(function(f){return f.indexOf(c+"-")===0})}var l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},c.prototype.add=function(d,f){return this.canAdd(d,f)?(this.remove(d),d.classList.add(this.keyName+"-"+f),!0):!1},c.prototype.remove=function(d){var f=s(d,this.keyName);f.forEach(function(h){d.classList.remove(h)}),d.classList.length===0&&d.removeAttribute("class")},c.prototype.value=function(d){var f=s(d,this.keyName)[0]||"",h=f.slice(this.keyName.length+1);return this.canAdd(d,h)?h:""},c}(o.default);i.default=l},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(1);function s(u){var c=u.split("-"),d=c.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return c[0]+d}var l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(f){var h=f.split(":");return h[0].trim()})},c.prototype.add=function(d,f){return this.canAdd(d,f)?(d.style[s(this.keyName)]=f,!0):!1},c.prototype.remove=function(d){d.style[s(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},c.prototype.value=function(d){var f=d.style[s(this.keyName)];return this.canAdd(d,f)?f:""},c}(o.default);i.default=l},function(n,i,r){n.exports=r(10)},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=r(2),o=r(3),s=r(4),l=r(12),u=r(13),c=r(14),d=r(15),f=r(16),h=r(1),m=r(7),g=r(8),v=r(6),y=r(0),_={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:a.default,Format:o.default,Leaf:s.default,Embed:d.default,Scroll:l.default,Block:c.default,Inline:u.default,Text:f.default,Attributor:{Attribute:h.default,Class:m.default,Style:g.default,Store:v.default}};i.default=_},function(n,i,r){Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,u=this.iterator();l=u();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,u=this.head;u!=null;){if(u===s)return l;l+=u.length(),u=u.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var u,c=this.iterator();u=c();){var d=u.length();if(s<d||l&&s===d&&(u.next==null||u.next.length()!==0))return[u,s];s-=d}return[null,0]},o.prototype.forEach=function(s){for(var l,u=this.iterator();l=u();)s(l)},o.prototype.forEachAt=function(s,l,u){if(!(l<=0))for(var c=this.find(s),d=c[0],f=c[1],h,m=s-f,g=this.iterator(d);(h=g())&&m<s+l;){var v=h.length();s>m?u(h,s-m,Math.min(l,m+v-s)):u(h,0,Math.min(v,s+l-m)),m+=v}},o.prototype.map=function(s){return this.reduce(function(l,u){return l.push(s(u)),l},[])},o.prototype.reduce=function(s,l){for(var u,c=this.iterator();u=c();)l=s(l,u);return l},o}();i.default=a},function(n,i,r){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(2),s=r(0),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,c=function(d){a(f,d);function f(h){var m=d.call(this,h)||this;return m.scroll=m,m.observer=new MutationObserver(function(g){m.update(g)}),m.observer.observe(m.domNode,l),m.attach(),m}return f.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(h,m){this.update(),h===0&&m===this.length()?this.children.forEach(function(g){g.remove()}):d.prototype.deleteAt.call(this,h,m)},f.prototype.formatAt=function(h,m,g,v){this.update(),d.prototype.formatAt.call(this,h,m,g,v)},f.prototype.insertAt=function(h,m,g){this.update(),d.prototype.insertAt.call(this,h,m,g)},f.prototype.optimize=function(h,m){var g=this;h===void 0&&(h=[]),m===void 0&&(m={}),d.prototype.optimize.call(this,m);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)h.push(v.pop());for(var y=function(x,k){k===void 0&&(k=!0),!(x==null||x===g)&&x.domNode.parentNode!=null&&(x.domNode[s.DATA_KEY].mutations==null&&(x.domNode[s.DATA_KEY].mutations=[]),k&&y(x.parent))},_=function(x){x.domNode[s.DATA_KEY]==null||x.domNode[s.DATA_KEY].mutations==null||(x instanceof o.default&&x.children.forEach(_),x.optimize(m))},S=h,w=0;S.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(S.forEach(function(x){var k=s.find(x.target,!0);k!=null&&(k.domNode===x.target&&(x.type==="childList"?(y(s.find(x.previousSibling,!1)),[].forEach.call(x.addedNodes,function(P){var E=s.find(P,!1);y(E,!1),E instanceof o.default&&E.children.forEach(function(A){y(A,!1)})})):x.type==="attributes"&&y(k.prev)),y(k))}),this.children.forEach(_),S=[].slice.call(this.observer.takeRecords()),v=S.slice();v.length>0;)h.push(v.pop())}},f.prototype.update=function(h,m){var g=this;m===void 0&&(m={}),h=h||this.observer.takeRecords(),h.map(function(v){var y=s.find(v.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[v],y):(y.domNode[s.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===g||v.domNode[s.DATA_KEY]==null||v.update(v.domNode[s.DATA_KEY].mutations||[],m)}),this.domNode[s.DATA_KEY].mutations!=null&&d.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,m),this.optimize(h,m)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f}(o.default);i.default=c},function(n,i,r){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){c(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(3),s=r(0);function l(c,d){if(Object.keys(c).length!==Object.keys(d).length)return!1;for(var f in c)if(c[f]!==d[f])return!1;return!0}var u=function(c){a(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){if(f.tagName!==d.tagName)return c.formats.call(this,f)},d.prototype.format=function(f,h){var m=this;f===this.statics.blotName&&!h?(this.children.forEach(function(g){g instanceof o.default||(g=g.wrap(d.blotName,!0)),m.attributes.copy(g)}),this.unwrap()):c.prototype.format.call(this,f,h)},d.prototype.formatAt=function(f,h,m,g){if(this.formats()[m]!=null||s.query(m,s.Scope.ATTRIBUTE)){var v=this.isolate(f,h);v.format(m,g)}else c.prototype.formatAt.call(this,f,h,m,g)},d.prototype.optimize=function(f){c.prototype.optimize.call(this,f);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var m=this.next;m instanceof d&&m.prev===this&&l(h,m.formats())&&(m.moveChildren(this),m.remove())},d.blotName="inline",d.scope=s.Scope.INLINE_BLOT,d.tagName="SPAN",d}(o.default);i.default=u},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(3),s=r(0),l=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(d){var f=s.query(c.blotName).tagName;if(d.tagName!==f)return u.formats.call(this,d)},c.prototype.format=function(d,f){s.query(d,s.Scope.BLOCK)!=null&&(d===this.statics.blotName&&!f?this.replaceWith(c.blotName):u.prototype.format.call(this,d,f))},c.prototype.formatAt=function(d,f,h,m){s.query(h,s.Scope.BLOCK)!=null?this.format(h,m):u.prototype.formatAt.call(this,d,f,h,m)},c.prototype.insertAt=function(d,f,h){if(h==null||s.query(f,s.Scope.INLINE)!=null)u.prototype.insertAt.call(this,d,f,h);else{var m=this.split(d),g=s.create(f,h);m.parent.insertBefore(g,m)}},c.prototype.update=function(d,f){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,d,f)},c.blotName="block",c.scope=s.Scope.BLOCK_BLOT,c.tagName="P",c}(o.default);i.default=l},function(n,i,r){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var d in c)c.hasOwnProperty(d)&&(u[d]=c[d])};return function(u,c){l(u,c);function d(){this.constructor=u}u.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(4),s=function(l){a(u,l);function u(){return l!==null&&l.apply(this,arguments)||this}return u.formats=function(c){},u.prototype.format=function(c,d){l.prototype.formatAt.call(this,0,this.length(),c,d)},u.prototype.formatAt=function(c,d,f,h){c===0&&d===this.length()?this.format(f,h):l.prototype.formatAt.call(this,c,d,f,h)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(o.default);i.default=s},function(n,i,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])};return function(c,d){u(c,d);function f(){this.constructor=c}c.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(i,"__esModule",{value:!0});var o=r(4),s=r(0),l=function(u){a(c,u);function c(d){var f=u.call(this,d)||this;return f.text=f.statics.value(f.domNode),f}return c.create=function(d){return document.createTextNode(d)},c.value=function(d){var f=d.data;return f.normalize&&(f=f.normalize()),f},c.prototype.deleteAt=function(d,f){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+f)},c.prototype.index=function(d,f){return this.domNode===d?f:-1},c.prototype.insertAt=function(d,f,h){h==null?(this.text=this.text.slice(0,d)+f+this.text.slice(d),this.domNode.data=this.text):u.prototype.insertAt.call(this,d,f,h)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(d){u.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(d,f){return[this.domNode,d]},c.prototype.split=function(d,f){if(f===void 0&&(f=!1),!f){if(d===0)return this;if(d===this.length())return this.next}var h=s.create(this.domNode.splitText(d));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},c.prototype.update=function(d,f){var h=this;d.some(function(m){return m.type==="characterData"&&m.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=s.Scope.INLINE_BLOT,c}(o.default);i.default=l}])})})(rU);var n4e=rU.exports;const ht=Ei(n4e);let aU=document.createElement("div");aU.classList.toggle("test-class",!1);if(aU.classList.contains("test-class")){let e=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,n){return arguments.length>1&&!this.contains(t)==!n?n:e.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();(typeof t!="number"||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof e!="function")throw new TypeError("predicate must be a function");for(var t=Object(this),n=t.length>>>0,i=arguments[1],r,a=0;a<n;a++)if(r=t[a],e.call(i,r,a,t))return r}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)});class Uw extends ht.Embed{static value(){}insertInto(t,n){t.children.length===0?super.insertInto(t,n):this.remove()}length(){return 0}value(){return""}}Uw.blotName="break";Uw.tagName="BR";class C1 extends ht.Text{}class Ks extends ht.Inline{static compare(t,n){let i=Ks.order.indexOf(t),r=Ks.order.indexOf(n);return i>=0||r>=0?i-r:t===n?0:t<n?-1:1}formatAt(t,n,i,r){if(Ks.compare(this.statics.blotName,i)<0&&ht.query(i,ht.Scope.BLOT)){let a=this.isolate(t,n);r&&a.wrap(i,r)}else super.formatAt(t,n,i,r)}optimize(t){if(super.optimize(t),this.parent instanceof Ks&&Ks.compare(this.statics.blotName,this.parent.statics.blotName)>0){let n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}Ks.allowedChildren=[Ks,ht.Embed,C1];Ks.order=["cursor","inline","underline","strike","italic","bold","script","link","code"];const k7=1;class i4e extends ht.Embed{attach(){super.attach(),this.attributes=new ht.Attributor.Store(this.domNode)}delta(){return new wn().insert(this.value(),Bl(this.formats(),this.attributes.values()))}format(t,n){let i=ht.query(t,ht.Scope.BLOCK_ATTRIBUTE);i!=null&&this.attributes.attribute(i,n)}formatAt(t,n,i,r){this.format(i,r)}insertAt(t,n,i){if(typeof n=="string"&&n.endsWith(` `)){let r=ht.create(Ju.blotName);this.parent.insertBefore(r,t===0?this:this.next),r.insertAt(0,n.slice(0,-1))}else super.insertAt(t,n,i)}}i4e.scope=ht.Scope.BLOCK_BLOT;class Ju extends ht.Block{constructor(t){super(t),this.cache={}}delta(){return this.cache.delta==null&&(this.cache.delta=this.descendants(ht.Leaf).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),Uc(n)),new wn).insert(` `,Uc(this))),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,i,r){n<=0||(ht.query(i,ht.Scope.BLOCK)?t+n===this.length()&&this.format(i,r):super.formatAt(t,Math.min(n,this.length()-t-1),i,r),this.cache={})}insertAt(t,n,i){if(i!=null)return super.insertAt(t,n,i);if(n.length===0)return;let r=n.split(` `),a=r.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let o=this;r.reduce(function(s,l){return o=o.split(s,!0),o.insertAt(0,l),l.length},t+a.length)}insertBefore(t,n){let i=this.children.head;super.insertBefore(t,n),i instanceof Uw&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+k7),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t,n=!1){if(n&&(t===0||t>=this.length()-k7)){let i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}else{let i=super.split(t,n);return this.cache={},i}}}Ju.blotName="block";Ju.tagName="P";Ju.defaultChild="break";Ju.allowedChildren=[Ks,ht.Embed,C1];function Uc(e,t={}){return e==null||(typeof e.formats=="function"&&(t=Bl(t,e.formats())),e.parent==null||e.parent.blotName=="scroll"||e.parent.statics.scope!==e.statics.scope)?t:Uc(e.parent,t)}class oU extends Ks{}oU.blotName="code";oU.tagName="CODE";class Hl extends Ju{static create(t){let n=super.create(t);return n.setAttribute("spellcheck",!1),n}static formats(){return!0}delta(){let t=this.domNode.textContent;return t.endsWith(` `)&&(t=t.slice(0,-1)),t.split(` `).reduce((n,i)=>n.insert(i).insert(` `,this.formats()),new wn)}format(t,n){if(t===this.statics.blotName&&n)return;let[i]=this.descendant(C1,this.length()-1);i!=null&&i.deleteAt(i.length()-1,1),super.format(t,n)}formatAt(t,n,i,r){if(n===0||ht.query(i,ht.Scope.BLOCK)==null||i===this.statics.blotName&&r===this.statics.formats(this.domNode))return;let a=this.newlineIndex(t);if(a<0||a>=t+n)return;let o=this.newlineIndex(t,!0)+1,s=a-o+1,l=this.isolate(o,s),u=l.next;l.format(i,r),u instanceof Hl&&u.formatAt(0,t-o+n-s,i,r)}insertAt(t,n,i){if(i!=null)return;let[r,a]=this.descendant(C1,t);r.insertAt(a,n)}length(){let t=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?t:t+1}newlineIndex(t,n=!1){if(n)return this.domNode.textContent.slice(0,t).lastIndexOf(` `);{let i=this.domNode.textContent.slice(t).indexOf(` `);return i>-1?t+i:-1}}optimize(t){this.domNode.textContent.endsWith(` `)||this.appendChild(ht.create("text",` `)),super.optimize(t);let n=this.next;n!=null&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}replace(t){super.replace(t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(n){let i=ht.find(n);i==null?n.parentNode.removeChild(n):i instanceof ht.Embed?i.remove():i.unwrap()})}}Hl.blotName="code-block";Hl.tagName="PRE";Hl.TAB=" ";class Oo extends ht.Embed{static value(){}constructor(t,n){super(t),this.selection=n,this.textNode=document.createTextNode(Oo.CONTENTS),this.domNode.appendChild(this.textNode),this._length=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,n){if(this._length!==0)return super.format(t,n);let i=this,r=0;for(;i!=null&&i.statics.scope!==ht.Scope.BLOCK_BLOT;)r+=i.offset(i.parent),i=i.parent;i!=null&&(this._length=Oo.CONTENTS.length,i.optimize(),i.formatAt(r,Oo.CONTENTS.length,t,n),this._length=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this._length}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return;let t=this.textNode,n=this.selection.getNativeRange(),i,r,a;for(n!=null&&n.start.node===t&&n.end.node===t&&([i,r,a]=[t,n.start.offset,n.end.offset]);this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==Oo.CONTENTS){let o=this.textNode.data.split(Oo.CONTENTS).join("");this.next instanceof C1?(i=this.next.domNode,this.next.insertAt(0,o),this.textNode.data=Oo.CONTENTS):(this.textNode.data=o,this.parent.insertBefore(ht.create(this.textNode),this),this.textNode=document.createTextNode(Oo.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),r!=null)return[r,a]=[r,a].map(function(o){return Math.max(0,Math.min(i.data.length,o-1))}),{startNode:i,startOffset:r,endNode:i,endOffset:a}}update(t,n){if(t.some(i=>i.type==="characterData"&&i.target===this.textNode)){let i=this.restore();i&&(n.range=i)}}value(){return""}}Oo.blotName="cursor";Oo.className="ql-cursor";Oo.tagName="span";Oo.CONTENTS="\uFEFF";var sU={exports:{}};(function(e){var t=function(){function n(f,h){return h!=null&&f instanceof h}var i;try{i=Map}catch{i=function(){}}var r;try{r=Set}catch{r=function(){}}var a;try{a=Promise}catch{a=function(){}}function o(f,h,m,g,v){typeof h=="object"&&(m=h.depth,g=h.prototype,v=h.includeNonEnumerable,h=h.circular);var y=[],_=[],S=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof m>"u"&&(m=1/0);function w(x,k){if(x===null)return null;if(k===0)return x;var P,E;if(typeof x!="object")return x;if(n(x,i))P=new i;else if(n(x,r))P=new r;else if(n(x,a))P=new a(function(ne,ae){x.then(function(Y){ne(w(Y,k-1))},function(Y){ae(w(Y,k-1))})});else if(o.__isArray(x))P=[];else if(o.__isRegExp(x))P=new RegExp(x.source,d(x)),x.lastIndex&&(P.lastIndex=x.lastIndex);else if(o.__isDate(x))P=new Date(x.getTime());else{if(S&&Buffer.isBuffer(x))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(x.length):P=new Buffer(x.length),x.copy(P),P;n(x,Error)?P=Object.create(x):typeof g>"u"?(E=Object.getPrototypeOf(x),P=Object.create(E)):(P=Object.create(g),E=g)}if(h){var A=y.indexOf(x);if(A!=-1)return _[A];y.push(x),_.push(P)}n(x,i)&&x.forEach(function(ne,ae){var Y=w(ae,k-1),M=w(ne,k-1);P.set(Y,M)}),n(x,r)&&x.forEach(function(ne){var ae=w(ne,k-1);P.add(ae)});for(var D in x){var T;E&&(T=Object.getOwnPropertyDescriptor(E,D)),!(T&&T.set==null)&&(P[D]=w(x[D],k-1))}if(Object.getOwnPropertySymbols)for(var O=Object.getOwnPropertySymbols(x),D=0;D<O.length;D++){var N=O[D],V=Object.getOwnPropertyDescriptor(x,N);V&&!V.enumerable&&!v||(P[N]=w(x[N],k-1),V.enumerable||Object.defineProperty(P,N,{enumerable:!1}))}if(v)for(var j=Object.getOwnPropertyNames(x),D=0;D<j.length;D++){var q=j[D],V=Object.getOwnPropertyDescriptor(x,q);V&&V.enumerable||(P[q]=w(x[q],k-1),Object.defineProperty(P,q,{enumerable:!1}))}return P}return w(f,m)}o.clonePrototype=function(h){if(h===null)return null;var m=function(){};return m.prototype=h,new m};function s(f){return Object.prototype.toString.call(f)}o.__objToStr=s;function l(f){return typeof f=="object"&&s(f)==="[object Date]"}o.__isDate=l;function u(f){return typeof f=="object"&&s(f)==="[object Array]"}o.__isArray=u;function c(f){return typeof f=="object"&&s(f)==="[object RegExp]"}o.__isRegExp=c;function d(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}return o.__getRegExpFlags=d,o}();e.exports&&(e.exports=t)})(sU);var r4e=sU.exports;const Rf=Ei(r4e),a4e=/^[ -~]*$/;let o4e=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){let n=!1;this.scroll.update();let i=this.scroll.length();return this.scroll.batchStart(),t=l4e(t),t.reduce((r,a)=>{let o=a.retain||a.delete||a.insert.length||1,s=a.attributes||{};if(a.insert!=null){if(typeof a.insert=="string"){let l=a.insert;l.endsWith(` `)&&n&&(n=!1,l=l.slice(0,-1)),r>=i&&!l.endsWith(` `)&&(n=!0),this.scroll.insertAt(r,l);let[u,c]=this.scroll.line(r),d=Bl({},Uc(u));if(u instanceof Ju){let[f]=u.descendant(ht.Leaf,c);d=Bl(d,Uc(f))}s=JCe.attributes.diff(d,s)||{}}else if(typeof a.insert=="object"){let l=Object.keys(a.insert)[0];if(l==null)return r;this.scroll.insertAt(r,l,a.insert[l])}i+=o}return Object.keys(s).forEach(l=>{this.scroll.formatAt(r,o,l,s[l])}),r+o},0),t.reduce((r,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(r,a.delete),r):r+(a.retain||a.insert.length||1),0),this.scroll.batchEnd(),this.update(t)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new wn().retain(t).delete(n))}formatLine(t,n,i={}){return this.scroll.update(),Object.keys(i).forEach(r=>{if(this.scroll.whitelist!=null&&!this.scroll.whitelist[r])return;let a=this.scroll.lines(t,Math.max(n,1)),o=n;a.forEach(s=>{let l=s.length();if(!(s instanceof Hl))s.format(r,i[r]);else{let u=t-s.offset(this.scroll),c=s.newlineIndex(u+o)-u+1;s.formatAt(u,c,r,i[r])}o-=l})}),this.scroll.optimize(),this.update(new wn().retain(t).retain(n,Rf(i)))}formatText(t,n,i={}){return Object.keys(i).forEach(r=>{this.scroll.formatAt(t,n,r,i[r])}),this.update(new wn().retain(t).retain(n,Rf(i)))}getContents(t,n){return this.delta.slice(t,t+n)}getDelta(){return this.scroll.lines().reduce((t,n)=>t.concat(n.delta()),new wn)}getFormat(t,n=0){let i=[],r=[];n===0?this.scroll.path(t).forEach(function(o){let[s]=o;s instanceof Ju?i.push(s):s instanceof ht.Leaf&&r.push(s)}):(i=this.scroll.lines(t,n),r=this.scroll.descendants(ht.Leaf,t,n));let a=[i,r].map(function(o){if(o.length===0)return{};let s=Uc(o.shift());for(;Object.keys(s).length>0;){let l=o.shift();if(l==null)return s;s=s4e(Uc(l),s)}return s});return Bl.apply(Bl,a)}getText(t,n){return this.getContents(t,n).filter(function(i){return typeof i.insert=="string"}).map(function(i){return i.insert}).join("")}insertEmbed(t,n,i){return this.scroll.insertAt(t,n,i),this.update(new wn().retain(t).insert({[n]:i}))}insertText(t,n,i={}){return n=n.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(t,n),Object.keys(i).forEach(r=>{this.scroll.formatAt(t,n.length,r,i[r])}),this.update(new wn().retain(t).insert(n,Rf(i)))}isBlank(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;let t=this.scroll.children.head;return t.statics.blotName!==Ju.blotName||t.children.length>1?!1:t.children.head instanceof Uw}removeFormat(t,n){let i=this.getText(t,n),[r,a]=this.scroll.line(t+n),o=0,s=new wn;r!=null&&(r instanceof Hl?o=r.newlineIndex(a)-a+1:o=r.length()-a,s=r.delta().slice(a,a+o-1).insert(` `));let u=this.getContents(t,n+o).diff(new wn().insert(i).concat(s)),c=new wn().retain(t).concat(u);return this.applyDelta(c)}update(t,n=[],i=void 0){let r=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(a4e)&&ht.find(n[0].target)){let a=ht.find(n[0].target),o=Uc(a),s=a.offset(this.scroll),l=n[0].oldValue.replace(Oo.CONTENTS,""),u=new wn().insert(l),c=new wn().insert(a.value());t=new wn().retain(s).concat(u.diff(c,i)).reduce(function(f,h){return h.insert?f.insert(h.insert,o):f.push(h)},new wn),this.delta=r.compose(t)}else this.delta=this.getDelta(),(!t||!nU(r.compose(t),this.delta))&&(t=r.diff(this.delta,i));return t}};function s4e(e,t){return Object.keys(t).reduce(function(n,i){return e[i]==null||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n},{})}function l4e(e){return e.reduce(function(t,n){if(n.insert===1){let i=Rf(n.attributes);return delete i.image,t.insert({image:n.attributes.image},i)}if(n.attributes!=null&&(n.attributes.list===!0||n.attributes.bullet===!0)&&(n=Rf(n),n.attributes.list?n.attributes.list="ordered":(n.attributes.list="bullet",delete n.attributes.bullet)),typeof n.insert=="string"){let i=n.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return t.insert(i,n.attributes)}return t.push(n)},new wn)}var lU={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(o,s,l){this.fn=o,this.context=s,this.once=l||!1}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var s=[],l,u;if(this._eventsCount===0)return s;for(u in l=this._events)t.call(l,u)&&s.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},a.prototype.listeners=function(s,l){var u=n?n+s:s,c=this._events[u];if(l)return!!c;if(!c)return[];if(c.fn)return[c.fn];for(var d=0,f=c.length,h=new Array(f);d<f;d++)h[d]=c[d].fn;return h},a.prototype.emit=function(s,l,u,c,d,f){var h=n?n+s:s;if(!this._events[h])return!1;var m=this._events[h],g=arguments.length,v,y;if(m.fn){switch(m.once&&this.removeListener(s,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,u),!0;case 4:return m.fn.call(m.context,l,u,c),!0;case 5:return m.fn.call(m.context,l,u,c,d),!0;case 6:return m.fn.call(m.context,l,u,c,d,f),!0}for(y=1,v=new Array(g-1);y<g;y++)v[y-1]=arguments[y];m.fn.apply(m.context,v)}else{var _=m.length,S;for(y=0;y<_;y++)switch(m[y].once&&this.removeListener(s,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,u);break;case 4:m[y].fn.call(m[y].context,l,u,c);break;default:if(!v)for(S=1,v=new Array(g-1);S<g;S++)v[S-1]=arguments[S];m[y].fn.apply(m[y].context,v)}}return!0},a.prototype.on=function(s,l,u){var c=new r(l,u||this),d=n?n+s:s;return this._events[d]?this._events[d].fn?this._events[d]=[this._events[d],c]:this._events[d].push(c):(this._events[d]=c,this._eventsCount++),this},a.prototype.once=function(s,l,u){var c=new r(l,u||this,!0),d=n?n+s:s;return this._events[d]?this._events[d].fn?this._events[d]=[this._events[d],c]:this._events[d].push(c):(this._events[d]=c,this._eventsCount++),this},a.prototype.removeListener=function(s,l,u,c){var d=n?n+s:s;if(!this._events[d])return this;if(!l)return--this._eventsCount===0?this._events=new i:delete this._events[d],this;var f=this._events[d];if(f.fn)f.fn===l&&(!c||f.once)&&(!u||f.context===u)&&(--this._eventsCount===0?this._events=new i:delete this._events[d]);else{for(var h=0,m=[],g=f.length;h<g;h++)(f[h].fn!==l||c&&!f[h].once||u&&f[h].context!==u)&&m.push(f[h]);m.length?this._events[d]=m.length===1?m[0]:m:--this._eventsCount===0?this._events=new i:delete this._events[d]}return this},a.prototype.removeAllListeners=function(s){var l;return s?(l=n?n+s:s,this._events[l]&&(--this._eventsCount===0?this._events=new i:delete this._events[l])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=n,a.EventEmitter=a,e.exports=a})(lU);var u4e=lU.exports;const c4e=Ei(u4e);let I4=["error","warn","log","info"],uU="warn";function cU(e,...t){I4.indexOf(e)<=I4.indexOf(uU)&&console[e](...t)}function Vm(e){return I4.reduce(function(t,n){return t[n]=cU.bind(console,n,e),t},{})}cU.level=Vm.level=function(e){uU=e};let gS=Vm("quill:events");const d4e=["selectionchange","mousedown","mouseup","click"];d4e.forEach(function(e){document.addEventListener(e,(...t)=>{[].slice.call(document.querySelectorAll(".ql-container")).forEach(n=>{n.__quill&&n.__quill.emitter&&n.__quill.emitter.handleDOM(...t)})})});class pn extends c4e{constructor(){super(),this.listeners={},this.on("error",gS.error)}emit(){gS.log.apply(gS,arguments),super.emit.apply(this,arguments)}handleDOM(t,...n){(this.listeners[t.type]||[]).forEach(function({node:i,handler:r}){(t.target===i||i.contains(t.target))&&r(t,...n)})}listenDOM(t,n,i){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:n,handler:i})}}pn.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};pn.sources={API:"api",SILENT:"silent",USER:"user"};class $k{constructor(t,n={}){this.quill=t,this.options=n}}$k.DEFAULTS={};let yS=Vm("quill:selection");class Lb{constructor(t,n=0){this.index=t,this.length=n}}class f4e{constructor(t,n){this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=ht.create("cursor",this),this.lastRange=this.savedRange=new Lb(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||setTimeout(this.update.bind(this,pn.sources.USER),1)}),this.emitter.on(pn.events.EDITOR_CHANGE,(i,r)=>{i===pn.events.TEXT_CHANGE&&r.length()>0&&this.update(pn.sources.SILENT)}),this.emitter.on(pn.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let i=this.getNativeRange();i!=null&&i.start.node!==this.cursor.textNode&&this.emitter.once(pn.events.SCROLL_UPDATE,()=>{try{this.setNativeRange(i.start.node,i.start.offset,i.end.node,i.end.offset)}catch{}})}),this.emitter.on(pn.events.SCROLL_OPTIMIZE,(i,r)=>{if(r.range){const{startNode:a,startOffset:o,endNode:s,endOffset:l}=r.range;this.setNativeRange(a,o,s,l)}}),this.update(pn.sources.SILENT)}handleComposition(){this.root.addEventListener("compositionstart",()=>{this.composing=!0}),this.root.addEventListener("compositionend",()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(pn.sources.USER)})}focus(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}format(t,n){if(this.scroll.whitelist!=null&&!this.scroll.whitelist[t])return;this.scroll.update();let i=this.getNativeRange();if(!(i==null||!i.native.collapsed||ht.query(t,ht.Scope.BLOCK))){if(i.start.node!==this.cursor.textNode){let r=ht.find(i.start.node,!1);if(r==null)return;if(r instanceof ht.Leaf){let a=r.split(i.start.offset);r.parent.insertBefore(this.cursor,a)}else r.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t,n=0){let i=this.scroll.length();t=Math.min(t,i-1),n=Math.min(t+n,i-1)-t;let r,[a,o]=this.scroll.leaf(t);if(a==null)return null;[r,o]=a.position(o,!0);let s=document.createRange();if(n>0)return s.setStart(r,o),[a,o]=this.scroll.leaf(t+n),a==null?null:([r,o]=a.position(o,!0),s.setEnd(r,o),s.getBoundingClientRect());{let l="left",u;return r instanceof Text?(o<r.data.length?(s.setStart(r,o),s.setEnd(r,o+1)):(s.setStart(r,o-1),s.setEnd(r,o),l="right"),u=s.getBoundingClientRect()):(u=a.domNode.getBoundingClientRect(),o>0&&(l="right")),{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}}getNativeRange(){let t=document.getSelection();if(t==null||t.rangeCount<=0)return null;let n=t.getRangeAt(0);if(n==null)return null;let i=this.normalizeNative(n);return yS.info("getNativeRange",i),i}getRange(){let t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root}normalizedToRange(t){let n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);let i=n.map(o=>{let[s,l]=o,u=ht.find(s,!0),c=u.offset(this.scroll);return l===0?c:u instanceof ht.Container?c+u.length():c+u.index(s,l)}),r=Math.min(Math.max(...i),this.scroll.length()-1),a=Math.min(r,...i);return new Lb(a,r-a)}normalizeNative(t){if(!T7(this.root,t.startContainer)||!t.collapsed&&!T7(this.root,t.endContainer))return null;let n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach(function(i){let r=i.node,a=i.offset;for(;!(r instanceof Text)&&r.childNodes.length>0;)if(r.childNodes.length>a)r=r.childNodes[a],a=0;else if(r.childNodes.length===a)r=r.lastChild,a=r instanceof Text?r.data.length:r.childNodes.length+1;else break;i.node=r,i.offset=a}),n}rangeToNative(t){let n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],r=this.scroll.length();return n.forEach((a,o)=>{a=Math.min(r-1,a);let s,[l,u]=this.scroll.leaf(a);[s,u]=l.position(u,o!==0),i.push(s,u)}),i.length<2&&(i=i.concat(i)),i}scrollIntoView(t){let n=this.lastRange;if(n==null)return;let i=this.getBounds(n.index,n.length);if(i==null)return;let r=this.scroll.length()-1,[a]=this.scroll.line(Math.min(n.index,r)),o=a;if(n.length>0&&([o]=this.scroll.line(Math.min(n.index+n.length,r))),a==null||o==null)return;let s=t.getBoundingClientRect();i.top<s.top?t.scrollTop-=s.top-i.top:i.bottom>s.bottom&&(t.scrollTop+=i.bottom-s.bottom)}setNativeRange(t,n,i=t,r=n,a=!1){if(yS.info("setNativeRange",t,n,i,r),t!=null&&(this.root.parentNode==null||t.parentNode==null||i.parentNode==null))return;let o=document.getSelection();if(o!=null)if(t!=null){this.hasFocus()||this.root.focus();let s=(this.getNativeRange()||{}).native;if(s==null||a||t!==s.startContainer||n!==s.startOffset||i!==s.endContainer||r!==s.endOffset){t.tagName=="BR"&&(n=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),i.tagName=="BR"&&(r=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);let l=document.createRange();l.setStart(t,n),l.setEnd(i,r),o.removeAllRanges(),o.addRange(l)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}setRange(t,n=!1,i=pn.sources.API){if(typeof n=="string"&&(i=n,n=!1),yS.info("setRange",t),t!=null){let r=this.rangeToNative(t);this.setNativeRange(...r,n)}else this.setNativeRange(null);this.update(i)}update(t=pn.sources.USER){let n=this.lastRange,[i,r]=this.getRange();if(this.lastRange=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!nU(n,this.lastRange)){!this.composing&&r!=null&&r.native.collapsed&&r.start.node!==this.cursor.textNode&&this.cursor.restore();let a=[pn.events.SELECTION_CHANGE,Rf(this.lastRange),Rf(n),t];this.emitter.emit(pn.events.EDITOR_CHANGE,...a),t!==pn.sources.SILENT&&this.emitter.emit(...a)}}}function T7(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}class E1{constructor(t,n){this.quill=t,this.options=n,this.modules={}}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){let n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}}E1.DEFAULTS={modules:{}};E1.themes={default:E1};let p_=Vm("quill");class Or{static debug(t){t===!0&&(t="log"),Vm.level(t)}static find(t){return t.__quill||ht.find(t)}static import(t){return this.imports[t]==null&&p_.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(t,n,i=!1){if(typeof t!="string"){let r=t.attrName||t.blotName;typeof r=="string"?this.register("formats/"+r,t,n):Object.keys(t).forEach(a=>{this.register(a,t[a],n)})}else this.imports[t]!=null&&!i&&p_.warn(`Overwriting ${t} with`,n),this.imports[t]=n,(t.startsWith("blots/")||t.startsWith("formats/"))&&n.blotName!=="abstract"?ht.register(n):t.startsWith("modules")&&typeof n.register=="function"&&n.register()}constructor(t,n={}){if(this.options=h4e(t,n),this.container=this.options.container,this.container==null)return p_.error("Invalid Quill container",t);this.options.debug&&Or.debug(this.options.debug);let i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new pn,this.scroll=ht.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o4e(this.scroll),this.selection=new f4e(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(pn.events.EDITOR_CHANGE,a=>{a===pn.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(pn.events.SCROLL_UPDATE,(a,o)=>{let s=this.selection.lastRange,l=s&&s.length===0?s.index:void 0;kl.call(this,()=>this.editor.update(null,o,l),a)});let r=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">${i}<p><br></p></div>`);this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}addContainer(t,n=null){if(typeof t=="string"){let i=t;t=document.createElement("div"),t.classList.add(i)}return this.container.insertBefore(t,n),t}blur(){this.selection.setRange(null)}deleteText(t,n,i){return[t,n,,i]=Ec(t,n,i),kl.call(this,()=>this.editor.deleteText(t,n),i,t,-1*n)}disable(){this.enable(!1)}enable(t=!0){this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}format(t,n,i=pn.sources.API){return kl.call(this,()=>{let r=this.getSelection(!0),a=new wn;if(r==null)return a;if(ht.query(t,ht.Scope.BLOCK))a=this.editor.formatLine(r.index,r.length,{[t]:n});else{if(r.length===0)return this.selection.format(t,n),a;a=this.editor.formatText(r.index,r.length,{[t]:n})}return this.setSelection(r,pn.sources.SILENT),a},i)}formatLine(t,n,i,r,a){let o;return[t,n,o,a]=Ec(t,n,i,r,a),kl.call(this,()=>this.editor.formatLine(t,n,o),a,t,0)}formatText(t,n,i,r,a){let o;return[t,n,o,a]=Ec(t,n,i,r,a),kl.call(this,()=>this.editor.formatText(t,n,o),a,t,0)}getBounds(t,n=0){let i;typeof t=="number"?i=this.selection.getBounds(t,n):i=this.selection.getBounds(t.index,t.length);let r=this.container.getBoundingClientRect();return{bottom:i.bottom-r.top,height:i.height,left:i.left-r.left,right:i.right-r.left,top:i.top-r.top,width:i.width}}getContents(t=0,n=this.getLength()-t){return[t,n]=Ec(t,n),this.editor.getContents(t,n)}getFormat(t=this.getSelection(!0),n=0){return typeof t=="number"?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(t=0,n=Number.MAX_VALUE){return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n)}getModule(t){return this.theme.modules[t]}getSelection(t=!1){return t&&this.focus(),this.update(),this.selection.getRange()[0]}getText(t=0,n=this.getLength()-t){return[t,n]=Ec(t,n),this.editor.getText(t,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,n,i,r=Or.sources.API){return kl.call(this,()=>this.editor.insertEmbed(t,n,i),r,t)}insertText(t,n,i,r,a){let o;return[t,,o,a]=Ec(t,0,i,r,a),kl.call(this,()=>this.editor.insertText(t,n,o),a,t,n.length)}isEnabled(){return!this.container.classList.contains("ql-disabled")}off(){return this.emitter.off.apply(this.emitter,arguments)}on(){return this.emitter.on.apply(this.emitter,arguments)}once(){return this.emitter.once.apply(this.emitter,arguments)}pasteHTML(t,n,i){this.clipboard.dangerouslyPasteHTML(t,n,i)}removeFormat(t,n,i){return[t,n,,i]=Ec(t,n,i),kl.call(this,()=>this.editor.removeFormat(t,n),i,t)}scrollIntoView(){this.selection.scrollIntoView(this.scrollingContainer)}setContents(t,n=pn.sources.API){return kl.call(this,()=>{t=new wn(t);let i=this.getLength(),r=this.editor.deleteText(0,i),a=this.editor.applyDelta(t),o=a.ops[a.ops.length-1];return o!=null&&typeof o.insert=="string"&&o.insert[o.insert.length-1]===` `&&(this.editor.deleteText(this.getLength()-1,1),a.delete(1)),r.compose(a)},n)}setSelection(t,n,i){t==null?this.selection.setRange(null,n||Or.sources.API):([t,n,,i]=Ec(t,n,i),this.selection.setRange(new Lb(t,n),i),i!==pn.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}setText(t,n=pn.sources.API){let i=new wn().insert(t);return this.setContents(i,n)}update(t=pn.sources.USER){let n=this.scroll.update(t);return this.selection.update(t),n}updateContents(t,n=pn.sources.API){return kl.call(this,()=>(t=new wn(t),this.editor.applyDelta(t,n)),n,!0)}}Or.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};Or.events=pn.events;Or.sources=pn.sources;Or.version=typeof QUILL_VERSION>"u"?"dev":QUILL_VERSION;Or.imports={delta:wn,parchment:ht,"core/module":$k,"core/theme":E1};function h4e(e,t){if(t=Bl(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),!t.theme||t.theme===Or.DEFAULTS.theme)t.theme=E1;else if(t.theme=Or.import(`themes/${t.theme}`),t.theme==null)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);let n=Bl(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(a){a.modules=a.modules||{},Object.keys(a.modules).forEach(function(o){a.modules[o]===!0&&(a.modules[o]={})})});let r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(a,o){let s=Or.import(`modules/${o}`);return s==null?p_.error(`Cannot load ${o} module. Are you sure you registered it?`):a[o]=s.DEFAULTS||{},a},{});return t.modules!=null&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=Bl(!0,{},Or.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach(function(a){typeof t[a]=="string"&&(t[a]=document.querySelector(t[a]))}),t.modules=Object.keys(t.modules).reduce(function(a,o){return t.modules[o]&&(a[o]=t.modules[o]),a},{}),t}function kl(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===pn.sources.USER)return new wn;let r=n==null?null:this.getSelection(),a=this.editor.delta,o=e();if(r!=null&&(n===!0&&(n=r.index),i==null?r=P7(r,o,t):i!==0&&(r=P7(r,n,i,t)),this.setSelection(r,pn.sources.SILENT)),o.length()>0){let s=[pn.events.TEXT_CHANGE,o,a,t];this.emitter.emit(pn.events.EDITOR_CHANGE,...s),t!==pn.sources.SILENT&&this.emitter.emit(...s)}return o}function Ec(e,t,n,i,r){let a={};return typeof e.index=="number"&&typeof e.length=="number"?typeof t!="number"?(r=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):typeof t!="number"&&(r=i,i=n,n=t,t=0),typeof n=="object"?(a=n,r=i):typeof n=="string"&&(i!=null?a[n]=i:r=n),r=r||pn.sources.API,[e,t,a,r]}function P7(e,t,n,i){if(e==null)return null;let r,a;return t instanceof wn?[r,a]=[e.index,e.index+e.length].map(function(o){return t.transformPosition(o,i!==pn.sources.USER)}):[r,a]=[e.index,e.index+e.length].map(function(o){return o<t||o===t&&i===pn.sources.USER?o:n>=0?o+n:Math.max(t,o+n)}),new Lb(r,a-r)}let Ak={scope:ht.Scope.BLOCK,whitelist:["right","center","justify"]},p4e=new ht.Attributor.Attribute("align","align",Ak);new ht.Attributor.Class("align","ql-align",Ak);let m4e=new ht.Attributor.Style("align","text-align",Ak);class dU extends ht.Attributor.Style{value(t){let n=super.value(t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(i){return("00"+parseInt(i).toString(16)).slice(-2)}).join("")):n}}new ht.Attributor.Class("color","ql-color",{scope:ht.Scope.INLINE});let v4e=new dU("color","color",{scope:ht.Scope.INLINE});new ht.Attributor.Class("background","ql-bg",{scope:ht.Scope.INLINE});let g4e=new dU("background","background-color",{scope:ht.Scope.INLINE}),Ok={scope:ht.Scope.BLOCK,whitelist:["rtl"]},y4e=new ht.Attributor.Attribute("direction","dir",Ok);new ht.Attributor.Class("direction","ql-direction",Ok);let _4e=new ht.Attributor.Style("direction","direction",Ok),fU={scope:ht.Scope.INLINE,whitelist:["serif","monospace"]};new ht.Attributor.Class("font","ql-font",fU);class b4e extends ht.Attributor.Style{value(t){return super.value(t).replace(/["']/g,"")}}let w4e=new b4e("font","font-family",fU);new ht.Attributor.Class("size","ql-size",{scope:ht.Scope.INLINE,whitelist:["small","large","huge"]});let S4e=new ht.Attributor.Style("size","font-size",{scope:ht.Scope.INLINE,whitelist:["10px","18px","32px"]}),C4e=Vm("quill:clipboard");const m_="__ql-matcher",E4e=[[Node.TEXT_NODE,D4e],[Node.TEXT_NODE,A7],["br",P4e],[Node.ELEMENT_NODE,A7],[Node.ELEMENT_NODE,T4e],[Node.ELEMENT_NODE,mU],[Node.ELEMENT_NODE,k4e],[Node.ELEMENT_NODE,O4e],["li",A4e],["b",w0.bind(w0,"bold")],["i",w0.bind(w0,"italic")],["style",$4e]],x4e=[p4e,y4e].reduce(function(e,t){return e[t.keyName]=t,e},{}),$7=[m4e,g4e,v4e,_4e,w4e,S4e].reduce(function(e,t){return e[t.keyName]=t,e},{});class hU extends $k{constructor(t,n){super(t,n),this.quill.root.addEventListener("paste",this.onPaste.bind(this)),this.container=this.quill.addContainer("ql-clipboard"),this.container.setAttribute("contenteditable",!0),this.container.setAttribute("tabindex",-1),this.matchers=[],E4e.concat(this.options.matchers).forEach(([i,r])=>{!n.matchVisual&&r===mU||this.addMatcher(i,r)})}addMatcher(t,n){this.matchers.push([t,n])}convert(t){if(typeof t=="string")return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();const n=this.quill.getFormat(this.quill.selection.savedRange.index);if(n[Hl.blotName]){const o=this.container.innerText;return this.container.innerHTML="",new wn().insert(o,{[Hl.blotName]:n[Hl.blotName]})}let[i,r]=this.prepareMatching(),a=pU(this.container,i,r);return yy(a,` `)&&a.ops[a.ops.length-1].attributes==null&&(a=a.compose(new wn().retain(a.length()-1).delete(1))),C4e.log("convert",this.container.innerHTML,a),this.container.innerHTML="",a}dangerouslyPasteHTML(t,n,i=Or.sources.API){if(typeof t=="string")this.quill.setContents(this.convert(t),n),this.quill.setSelection(0,Or.sources.SILENT);else{let r=this.convert(n);this.quill.updateContents(new wn().retain(t).concat(r),i),this.quill.setSelection(t+r.length(),Or.sources.SILENT)}}onPaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;let n=this.quill.getSelection(),i=new wn().retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(Or.sources.SILENT),setTimeout(()=>{i=i.concat(this.convert()).delete(n.length),this.quill.updateContents(i,Or.sources.USER),this.quill.setSelection(i.length()-n.length,Or.sources.SILENT),this.quill.scrollingContainer.scrollTop=r,this.quill.focus()},1)}prepareMatching(){let t=[],n=[];return this.matchers.forEach(i=>{let[r,a]=i;switch(r){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(this.container.querySelectorAll(r),o=>{o[m_]=o[m_]||[],o[m_].push(a)});break}}),[t,n]}}hU.DEFAULTS={matchers:[],matchVisual:!0};function gy(e,t,n){return typeof t=="object"?Object.keys(t).reduce(function(i,r){return gy(i,r,t[r])},e):e.reduce(function(i,r){return r.attributes&&r.attributes[t]?i.push(r):i.insert(r.insert,Bl({},{[t]:n},r.attributes))},new wn)}function Ff(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};const t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function yy(e,t){let n="";for(let i=e.ops.length-1;i>=0&&n.length<t.length;--i){let r=e.ops[i];if(typeof r.insert!="string")break;n=r.insert+n}return n.slice(-1*t.length)===t}function wf(e){if(e.childNodes.length===0)return!1;let t=Ff(e);return["block","list-item"].indexOf(t.display)>-1}function pU(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce(function(i,r){return r(e,i)},new wn):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(i,r)=>{let a=pU(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(a=t.reduce(function(o,s){return s(r,o)},a),a=(r[m_]||[]).reduce(function(o,s){return s(r,o)},a)),i.concat(a)},new wn):new wn}function w0(e,t,n){return gy(n,e,!0)}function k4e(e,t){let n=ht.Attributor.Attribute.keys(e),i=ht.Attributor.Class.keys(e),r=ht.Attributor.Style.keys(e),a={};return n.concat(i).concat(r).forEach(o=>{let s=ht.query(o,ht.Scope.ATTRIBUTE);s!=null&&(a[s.attrName]=s.value(e),a[s.attrName])||(s=x4e[o],s!=null&&(s.attrName===o||s.keyName===o)&&(a[s.attrName]=s.value(e)||void 0),s=$7[o],s!=null&&(s.attrName===o||s.keyName===o)&&(s=$7[o],a[s.attrName]=s.value(e)||void 0))}),Object.keys(a).length>0&&(t=gy(t,a)),t}function T4e(e,t){let n=ht.query(e);if(n==null)return t;if(n.prototype instanceof ht.Embed){let i={},r=n.value(e);r!=null&&(i[n.blotName]=r,t=new wn().insert(i,n.formats(e)))}else typeof n.formats=="function"&&(t=gy(t,n.blotName,n.formats(e)));return t}function P4e(e,t){return yy(t,` `)||t.insert(` `),t}function $4e(){return new wn}function A4e(e,t){let n=ht.query(e);if(n==null||n.blotName!=="list-item"||!yy(t,` `))return t;let i=-1,r=e.parentNode;for(;!r.classList.contains("ql-clipboard");)(ht.query(r)||{}).blotName==="list"&&(i+=1),r=r.parentNode;return i<=0?t:t.compose(new wn().retain(t.length()-1).retain(1,{indent:i}))}function A7(e,t){return yy(t,` `)||(wf(e)||t.length()>0&&e.nextSibling&&wf(e.nextSibling))&&t.insert(` `),t}function mU(e,t){if(wf(e)&&e.nextElementSibling!=null&&!yy(t,` `)){let n=e.offsetHeight+parseFloat(Ff(e).marginTop)+parseFloat(Ff(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+n*1.5&&t.insert(` `)}return t}function O4e(e,t){let n={},i=e.style||{};return i.fontStyle&&Ff(e).fontStyle==="italic"&&(n.italic=!0),i.fontWeight&&(Ff(e).fontWeight.startsWith("bold")||parseInt(Ff(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=gy(t,n)),parseFloat(i.textIndent||0)>0&&(t=new wn().insert(" ").concat(t)),t}function D4e(e,t){let n=e.data;if(e.parentNode.tagName==="O:P")return t.insert(n.trim());if(n.trim().length===0&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!Ff(e.parentNode).whiteSpace.startsWith("pre")){let i=function(r,a){return a=a.replace(/[^\u00a0]/g,""),a.length<1&&r?" ":a};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(e.previousSibling==null&&wf(e.parentNode)||e.previousSibling!=null&&wf(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(e.nextSibling==null&&wf(e.parentNode)||e.nextSibling!=null&&wf(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}const I4e={class:"d-flex"},N4e={class:"flex-grow-1"},M4e={key:0,class:"text-caption text-error ml-3"},L4e={key:1,class:"text-caption text-medium-emphasis ml-3"},R4e={key:0,class:"text-caption text-medium-emphasis mr-3 flex-shrink-0"},F4e={key:0},V4e=ot({__name:"RichEditor",props:{label:String,hint:String,rules:{type:Array,default:()=>[]},counter:Number||Boolean,toolbar:{type:Array,default:()=>[["bold","italic"],[{list:"ordered"},{list:"bullet"}]]}},emits:["is-valid"],setup(e,{expose:t,emit:n}){const i=e,r=n;function a(S,w){return S.tagName==="B"||S.tagName==="STRONG"?w.compose(new Qh().retain(w.length(),{bold:!0})):w}function o(S,w){return S.nodeType===Node.TEXT_NODE?new Qh().insert(S.data):w}function s(S,w){return S.tagName==="I"||S.tagName==="EM"?w.compose(new Qh().retain(w.length(),{italic:!0})):w}function l(S,w){return S.tagName==="UL"?w.compose(new Qh().retain(w.length(),{list:"bullet"})):S.tagName==="OL"?w.compose(new Qh().retain(w.length(),{list:"ordered"})):w}const u={name:"clipboard",module:hU,options:{matchers:[["B",a],["STRONG",a],["I",s],["EM",s],["UL",l],["OL",l],[Node.TEXT_NODE,o]]}},c=z(!1),d=z([]),f=z(""),h=z(null),m=S=>i.rules.map(w=>typeof w=="function"?w(S):!0).filter(w=>w!==!0),g=S=>(d.value=m(S),r("is-valid",d.value.length===0),d.value.length===0),v=()=>{var w,x;const S=((x=(w=h.value)==null?void 0:w.getText())==null?void 0:x.trim())||"";f.value=S,g(S)},y=()=>g(f.value),_=()=>{c.value=!1,g(f.value)};return t({isValid:y}),(S,w)=>(J(),ve("div",{class:Gt(["rich-editor",{focus:c.value,"has-error":d.value.length>0}])},[F("div",{class:Gt(["text-caption ml-3",{"text-secondary":c.value,"text-error":d.value.length,"text-medium-emphasis":!c.value&&!d.value.length}])},Q(e.label),3),C(K(YSe),Me({ref_key:"editor",ref:h},S.$attrs,{color:"secondary",theme:"snow",class:"v-field__input",toolbar:e.toolbar,modules:u,options:{debug:"error"},onFocus:w[0]||(w[0]=x=>c.value=!0),onBlur:_,onTextChange:v,style:{"font-size":"15px","font-weight":"400 !important"}}),null,16,["toolbar"]),F("div",I4e,[F("div",N4e,[d.value.length>0?(J(),ve("div",M4e,Q(d.value[0]),1)):(J(),ve("div",L4e,Q(e.hint),1))]),i.counter?(J(),ve("div",R4e,[Ze(Q(f.value.length)+" ",1),typeof e.counter=="number"?(J(),ve("span",F4e," / "+Q(e.counter),1)):De("",!0)])):De("",!0)])],2))}});const v_=on(V4e,[["__scopeId","data-v-6deaeb31"]]),vU=()=>{const{t:e}=gn(),t=B(()=>[a=>!!a||e("login.error.emailRequired"),a=>/.+@.+\..+/.test(a)||e("login.error.emailInvalid")]),n=B(()=>[a=>!!a||e("accountForm.fieldRequired")]),i=B(()=>[a=>a.length<=1e3||e("patient.maxLength")]),r=B(()=>[a=>!!a||e("accountForm.fieldRequired"),a=>a.length<=500||e("500_caracteres")]);return{emailRules:t,required:n,maxLengthRule:i,messageRule:r}},B4e=["height"],z4e=["fill"],Dk=ot({__name:"CloseIcon",props:{size:{type:String,default:20},color:{type:String,default:"#A82525"}},setup(e){return(t,n)=>(J(),ve("svg",{class:Gt(e.size),height:e.size,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M13.5306 7.53063L11.0603 10L13.5306 12.4694C13.6003 12.5391 13.6556 12.6218 13.6933 12.7128C13.731 12.8039 13.7504 12.9015 13.7504 13C13.7504 13.0985 13.731 13.1961 13.6933 13.2872C13.6556 13.3782 13.6003 13.4609 13.5306 13.5306C13.4609 13.6003 13.3782 13.6556 13.2872 13.6933C13.1961 13.731 13.0986 13.7504 13 13.7504C12.9015 13.7504 12.8039 13.731 12.7128 13.6933C12.6218 13.6556 12.5391 13.6003 12.4694 13.5306L10 11.0603L7.53063 13.5306C7.46095 13.6003 7.37822 13.6556 7.28718 13.6933C7.19613 13.731 7.09855 13.7504 7 13.7504C6.90146 13.7504 6.80388 13.731 6.71283 13.6933C6.62179 13.6556 6.53906 13.6003 6.46938 13.5306C6.3997 13.4609 6.34442 13.3782 6.30671 13.2872C6.269 13.1961 6.24959 13.0985 6.24959 13C6.24959 12.9015 6.269 12.8039 6.30671 12.7128C6.34442 12.6218 6.3997 12.5391 6.46938 12.4694L8.93969 10L6.46938 7.53063C6.32865 7.38989 6.24959 7.19902 6.24959 7C6.24959 6.80098 6.32865 6.61011 6.46938 6.46937C6.61011 6.32864 6.80098 6.24958 7 6.24958C7.19903 6.24958 7.3899 6.32864 7.53063 6.46937L10 8.93969L12.4694 6.46937C12.5391 6.39969 12.6218 6.34442 12.7128 6.3067C12.8039 6.26899 12.9015 6.24958 13 6.24958C13.0986 6.24958 13.1961 6.26899 13.2872 6.3067C13.3782 6.34442 13.4609 6.39969 13.5306 6.46937C13.6003 6.53906 13.6556 6.62178 13.6933 6.71283C13.731 6.80387 13.7504 6.90145 13.7504 7C13.7504 7.09855 13.731 7.19613 13.6933 7.28717C13.6556 7.37822 13.6003 7.46094 13.5306 7.53063ZM19.75 10C19.75 11.9284 19.1782 13.8134 18.1068 15.4168C17.0355 17.0202 15.5127 18.2699 13.7312 19.0078C11.9496 19.7458 9.98919 19.9389 8.09787 19.5627C6.20656 19.1865 4.46928 18.2579 3.10571 16.8943C1.74215 15.5307 0.813554 13.7934 0.437348 11.9021C0.061142 10.0108 0.254225 8.05042 0.992179 6.26884C1.73013 4.48726 2.97982 2.96451 4.58319 1.89317C6.18657 0.821828 8.07164 0.25 10 0.25C12.585 0.25273 15.0634 1.28084 16.8913 3.10872C18.7192 4.93661 19.7473 7.41498 19.75 10ZM18.25 10C18.25 8.3683 17.7661 6.77325 16.8596 5.41655C15.9531 4.05984 14.6646 3.00242 13.1571 2.37799C11.6497 1.75357 9.99085 1.59019 8.39051 1.90852C6.79017 2.22685 5.32016 3.01259 4.16637 4.16637C3.01259 5.32015 2.22685 6.79016 1.90853 8.3905C1.5902 9.99085 1.75358 11.6496 2.378 13.1571C3.00242 14.6646 4.05984 15.9531 5.41655 16.8596C6.77326 17.7661 8.36831 18.25 10 18.25C12.1873 18.2475 14.2843 17.3775 15.8309 15.8309C17.3775 14.2843 18.2475 12.1873 18.25 10Z",fill:e.color},null,8,z4e)],10,B4e))}}),j4e=Oe({hideActions:Boolean,...wm(),...qL(),...W1({placeholder:"mm/dd/yyyy",prependIcon:"$calendar"}),...Li(DR({weeksInMonth:"dynamic",hideHeader:!0}),["active"])},"VDateInput"),dm=ze()({name:"VDateInput",props:j4e(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:i}=ki(),r=Cm(),{isFocused:a,focus:o,blur:s}=au(e),l=vt(e,"modelValue",e.multiple?[]:null),u=it(!1),c=B(()=>{const g=hi(l.value);if(!g.length)return null;if(e.multiple===!0)return i("$vuetify.datePicker.itemsSelected",g.length);if(e.multiple==="range"){const v=g[0],y=g[g.length-1];return r.isValid(v)&&r.isValid(y)?`${r.format(v,"keyboardDate")} - ${r.format(y,"keyboardDate")}`:""}return r.isValid(l.value)?r.format(l.value,"keyboardDate"):""}),d=B(()=>!e.disabled&&!e.readonly);function f(g){if(g.key!=="Enter")return;if(!u.value||!a.value){u.value=!0;return}const v=g.target;l.value=r.date(v.value)}function h(g){g.preventDefault(),g.stopPropagation(),u.value=!0}function m(){u.value=!1}We(()=>{const g=lC.filterProps(e),v=J_.filterProps(Li(e,["active"])),y=Tn.filterProps(e);return C(Tn,Me(y,{class:e.class,style:e.style,modelValue:c.value,onKeydown:d.value?f:void 0,focused:u.value||a.value,onFocus:o,onBlur:s,"onClick:control":d.value?h:void 0,"onClick:prepend":d.value?h:void 0}),{default:()=>{var _;return[C(ho,{modelValue:u.value,"onUpdate:modelValue":S=>u.value=S,activator:"parent","min-width":"0",closeOnContentClick:!1,openOnClick:!1},{default:()=>[C(lC,Me(g,{modelValue:l.value,"onUpdate:modelValue":S=>l.value=S,onSave:m}),{default:S=>{let{actions:w,model:x}=S;return C(J_,Me(v,{modelValue:e.hideActions?l.value:x.value,"onUpdate:modelValue":k=>{e.hideActions?(l.value=k,e.multiple||(u.value=!1)):x.value=k},onMousedown:k=>k.preventDefault()}),{actions:e.hideActions?void 0:w})}})]}),(_=n.default)==null?void 0:_.call(n)]}})})}}),U4e=ot({__name:"SelectHourMinute",props:{minute:{},minuteModifiers:{},hour:{},hourModifiers:{}},emits:["update:minute","update:hour"],setup(e){const t=Hg(e,"minute"),n=Hg(e,"hour"),i=Array.from({length:24},(u,c)=>({title:c+"h",value:c})),r=z(!1),a=u=>{n.value=u},o=Array.from({length:60},(u,c)=>c),s=z(!1),l=u=>{t.value=u};return(u,c)=>(J(),je(Ka,{"no-gutters":""},{default:le(()=>[C(ho,{modelValue:r.value,"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),transition:"scale-transition"},{activator:le(({props:d})=>[F("div",Me({class:"select-hour d-flex align-center py-2 cursor-pointer"},d),[Ze(Q(typeof n.value=="number"?K(i)[n.value].title:n.value)+" ",1),C(ut,{class:Gt(["transition-smooth",{"rotated-angle":r.value}]),color:"black",icon:"mdi-chevron-down"},null,8,["class"])],16)]),default:le(()=>[C(rl,{density:"compact",modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=d=>n.value=d),"max-height":"300"},{default:le(()=>[(J(!0),ve(Ue,null,Ht(K(i),d=>(J(),je(fi,{value:d.value,key:`hour-${d.value}`,onClick:f=>a(d.value)},{default:le(()=>[C(ha,null,{default:le(()=>[Ze(Q(d.title),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),C(ho,{modelValue:s.value,"onUpdate:modelValue":c[3]||(c[3]=d=>s.value=d),transition:"scale-transition"},{activator:le(({props:d})=>[F("div",Me({class:"select-minute d-flex align-center pl-2 pr-1 py-2 cursor-pointer"},d),[Ze(Q(t.value)+" ",1),C(ut,{class:Gt(["transition-smooth",{"rotated-angle":s.value}]),color:"black",icon:"mdi-chevron-down"},null,8,["class"])],16)]),default:le(()=>[C(rl,{density:"compact",modelValue:t.value,"onUpdate:modelValue":c[2]||(c[2]=d=>t.value=d),"max-height":"300"},{default:le(()=>[(J(!0),ve(Ue,null,Ht(K(o),d=>(J(),je(fi,{value:d,key:d,onClick:f=>l(d)},{default:le(()=>[C(ha,null,{default:le(()=>[Ze(Q(d),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}))}});const Rb=on(U4e,[["__scopeId","data-v-c95e0bfd"]]);const H4e=[["Afghanistan (â€«Ø§ÙØºØ§Ù†Ø³ØªØ§Ù†â€¬â€Ž)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Õ€Õ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (AzÉ™rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (â€«Ø§Ù„Ø¨ØØ±ÙŠÙ†â€¬â€Ž)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (БеларуÑÑŒ)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (БоÑна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (БългариÑ)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (ä¸å›½)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (ΚÏÏ€Ïος)","cy","357"],["Czech Republic (ÄŒeská republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (სáƒáƒ¥áƒáƒ თველáƒ)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ãsland)","is","354"],["India (à¤à¤¾à¤°à¤¤)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישר×ל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (КазахÑтан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (КыргызÑтан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (ì¡°ì„ ë¯¼ì£¼ì£¼ì˜ ì¸ë¯¼ 공화êµ)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عÙمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫Ùلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (РоÑÑиÑ)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and PrÃncipe (São Tomé e PrÃncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민êµ)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (à·à·Šâ€à¶»à·“ ලංකà·à·€)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (å°ç£)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية Ø§Ù„Ù…ØªØØ¯Ø©â€¬â€Ž)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (OÊ»zbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (â€«Ø§Ù„ØµØØ±Ø§Ø¡ الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Ã…land Islands","ax","358",1,["18"]]],q4e=H4e.map(([e,t,n,i=0,r=null])=>({name:e,iso2:t.toUpperCase(),dialCode:n,priority:i,areaCodes:r}));function Y4e(){return fetch("https://ip2c.org/s").then(e=>e.text()).then(e=>{const t=(e||"").toString();if(!t||t[0]!=="1")throw new Error("unable to fetch the country");return t.substr(2,2)})}function W4e(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){const n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}}const G4e=[{name:"allCountries",type:Array,default:q4e,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],K4e=[...G4e].reduce((e,t)=>{if(t.name.includes(".")){const[n,i]=t.name.split(".");e[n]?Object.assign(e[n],{[i]:t.default}):Object.assign(e,{[n]:{[i]:t.default}})}else Object.assign(e,{[t.name]:t.default});return e},{}),O7={options:{...K4e}},Z4e={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function X4e(e,t){var n=Array.prototype.slice.call(t);return n.push(Z4e),e.apply(this,n)}function N4(e){"@babel/helpers - typeof";return N4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N4(e)}function D7(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function J4e(e,t,n){return t&&D7(e.prototype,t),n&&D7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x1(e,t)}function tEe(e){var t=yU();return function(){var n=k1(e),i;if(t){var r=k1(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return nEe(this,i)}}function nEe(e,t){if(t&&(N4(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gU(e)}function gU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M4(e){var t=typeof Map=="function"?new Map:void 0;return M4=function(n){if(n===null||!iEe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return g_(n,arguments,k1(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),x1(i,n)},M4(e)}function g_(e,t,n){return yU()?g_=Reflect.construct:g_=function(i,r,a){var o=[null];o.push.apply(o,r);var s=Function.bind.apply(i,o),l=new s;return a&&x1(l,a.prototype),l},g_.apply(null,arguments)}function yU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function iEe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function x1(e,t){return x1=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},x1(e,t)}function k1(e){return k1=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},k1(e)}var Ru=function(e){eEe(n,e);var t=tEe(n);function n(i){var r;return Q4e(this,n),r=t.call(this,i),Object.setPrototypeOf(gU(r),n.prototype),r.name=r.constructor.name,r}return J4e(n)}(M4(Error)),Ik=2,rEe=17,aEe=3,sl="0-9ï¼-ï¼™Ù -Ù©Û°-Û¹",oEe="-â€-―−ーï¼",sEe="ï¼/",lEe="..",uEe="  Â​â  ",cEe="()()[]\\[\\]",dEe="~â“∼~",Fb="".concat(oEe).concat(sEe).concat(lEe).concat(uEe).concat(cEe).concat(dEe),Nk="++";function I7(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),i=t[0].split("."),r=0;r<3;r++){var a=Number(n[r]),o=Number(i[r]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var fEe={}.constructor;function y_(e){return e!=null&&e.constructor===fEe}function L4(e){"@babel/helpers - typeof";return L4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L4(e)}function Hw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N7(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qw(e,t,n){return t&&N7(e.prototype,t),n&&N7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var hEe="1.2.0",pEe="1.7.35",M7=" ext. ",mEe=/^\d+$/,Qa=function(){function e(t){Hw(this,e),_Ee(t),this.metadata=t,_U.call(this,t)}return qw(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(t){return t!=="001"})}},{key:"getCountryMetadata",value:function(t){return this.metadata.countries[t]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(t){return this.getCountryMetadata(t)!==void 0}},{key:"hasCallingCode",value:function(t){if(this.getCountryCodesForCallingCode(t))return!0;if(this.nonGeographic()){if(this.nonGeographic()[t])return!0}else{var n=this.countryCallingCodes()[t];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(t){return this.nonGeographic()?!!this.nonGeographic()[t]:!this.getCountryCodesForCallingCode(t)}},{key:"country",value:function(t){return this.selectNumberingPlan(t)}},{key:"selectNumberingPlan",value:function(t,n){if(t&&mEe.test(t)&&(n=t,t=null),t&&t!=="001"){if(!this.hasCountry(t))throw new Error("Unknown country: ".concat(t));this.numberingPlan=new L7(this.getCountryMetadata(t),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new L7(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(t){var n=this.countryCallingCodes()[t];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(t){var n=this.getCountryCodesForCallingCode(t);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(t){var n=this.getCountryCodeForCallingCode(t);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var i=this.nonGeographic()[t];if(i)return i}else{var r=this.countryCallingCodes()[t];if(r&&r.length===1&&r[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(t){return this.numberingPlan.type(t)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(t){return this.selectNumberingPlan(t)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),L7=function(){function e(t,n){Hw(this,e),this.globalMetadataObject=n,this.metadata=t,_U.call(this,n.metadata)}return qw(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(t){return t[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var t=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(i){return new vEe(i,t)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(t){return t[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(t){if(this.hasTypes()&&R7(this.types(),t))return new yEe(R7(this.types(),t),this)}},{key:"ext",value:function(){return this.v1||this.v2?M7:this.metadata[13]||M7}}]),e}(),vEe=function(){function e(t,n){Hw(this,e),this._format=t,this.metadata=n}return qw(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!gEe.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),gEe=/^\(?\$1\)?$/,yEe=function(){function e(t,n){Hw(this,e),this.type=t,this.metadata=n}return qw(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function R7(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function _Ee(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!y_(e)||!y_(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(y_(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+bEe(e)+": "+e,"."))}var bEe=function(e){return L4(e)};function Mk(e,t){if(t=new Qa(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function wEe(e,t){return t.countries.hasOwnProperty(e)}function _U(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?I7(t,hEe)===-1?this.v2=!0:I7(t,pEe)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var SEe=";ext=",Uh=function(e){return"([".concat(sl,"]{1,").concat(e,"})")};function bU(e){var t="20",n="15",i="9",r="6",a="[  \\t,]*",o="[:\\..]?[  \\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½…?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",c="[- ]+",d="[  \\t]*",f="(?:,{2}|;)",h=SEe+Uh(t),m=a+l+o+Uh(t)+s,g=a+u+o+Uh(i)+s,v=c+Uh(r)+"#",y=d+f+o+Uh(n)+s,_=d+"(?:,)+"+o+Uh(i)+s;return h+"|"+m+"|"+g+"|"+v+"|"+y+"|"+_}var CEe="["+sl+"]{"+Ik+"}",EEe="["+Nk+"]{0,1}(?:["+Fb+"]*["+sl+"]){3,}["+Fb+sl+"]*",xEe=new RegExp("^["+Nk+"]{0,1}(?:["+Fb+"]*["+sl+"]){1,2}$","i"),kEe=EEe+"(?:"+bU()+")?",TEe=new RegExp("^"+CEe+"$|^"+kEe+"$","i");function PEe(e){return e.length>=Ik&&TEe.test(e)}function $Ee(e){return xEe.test(e)}var F7=new RegExp("(?:"+bU()+")$","i");function AEe(e){var t=e.search(F7);if(t<0)return{};for(var n=e.slice(0,t),i=e.match(F7),r=1;r<i.length;){if(i[r])return{number:n,ext:i[r]};r++}}var OEe={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","1":"1","ï¼’":"2","3":"3","ï¼”":"4","5":"5","ï¼–":"6","ï¼—":"7","8":"8","ï¼™":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function DEe(e){return OEe[e]}function IEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=NEe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NEe(e,t){if(e){if(typeof e=="string")return V7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V7(e,t)}}function V7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function B7(e){for(var t="",n=IEe(e.split("")),i;!(i=n()).done;){var r=i.value;t+=MEe(r,t)||""}return t}function MEe(e,t){return e==="+"?t?void 0:"+":DEe(e)}function LEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=REe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function REe(e,t){if(e){if(typeof e=="string")return z7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z7(e,t)}}function z7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function FEe(e,t){for(var n=e.slice(),i=LEe(t),r;!(r=i()).done;){var a=r.value;e.indexOf(a)<0&&n.push(a)}return n.sort(function(o,s){return o-s})}function Lk(e,t){return wU(e,void 0,t)}function wU(e,t,n){var i=n.type(t),r=i&&i.possibleLengths()||n.possibleLengths();if(!r)return"IS_POSSIBLE";if(t==="FIXED_LINE_OR_MOBILE"){if(!n.type("FIXED_LINE"))return wU(e,"MOBILE",n);var a=n.type("MOBILE");a&&(r=FEe(r,a.possibleLengths()))}else if(t&&!i)return"INVALID_LENGTH";var o=e.length,s=r[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":r[r.length-1]<o?"TOO_LONG":r.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function VEe(e,t,n){if(t===void 0&&(t={}),n=new Qa(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return SU(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function SU(e,t){switch(Lk(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function lc(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function BEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zEe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zEe(e,t){if(e){if(typeof e=="string")return j7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j7(e,t)}}function j7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var jEe=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Rk(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new Qa(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(lc(i,n.nationalNumberPattern())){if(_S(i,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||_S(i,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var r=BEe(jEe),a;!(a=r()).done;){var o=a.value;if(_S(i,o,n))return o}}}}function _S(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:lc(e,t.pattern())}function UEe(e,t,n){if(t=t||{},n=new Qa(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return Rk(e,t,n.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return lc(i,n.nationalNumberPattern())}function HEe(e,t,n){var i=new Qa(n),r=i.getCountryCodesForCallingCode(e);return r?r.filter(function(a){return qEe(t,a,n)}):[]}function qEe(e,t,n){var i=new Qa(n);return i.selectNumberingPlan(t),i.numberingPlan.possibleLengths().indexOf(e.length)>=0}function YEe(e){return e.replace(new RegExp("[".concat(Fb,"]+"),"g")," ").trim()}var WEe=/(\$\d)/;function GEe(e,t,n){var i=n.useInternationalFormat,r=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),i?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(WEe,t.nationalPrefixFormattingRule()):t.format());return i?YEe(a):a}var KEe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ZEe(e,t,n){var i=new Qa(n);if(i.selectNumberingPlan(e,t),i.defaultIDDPrefix())return i.defaultIDDPrefix();if(KEe.test(i.IDDPrefix()))return i.IDDPrefix()}function XEe(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function JEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=QEe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QEe(e,t){if(e){if(typeof e=="string")return U7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U7(e,t)}}function U7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function H7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function q7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H7(Object(n),!0).forEach(function(i){exe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H7(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function exe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y7={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function txe(e,t,n,i){if(n?n=q7(q7({},Y7),n):n=Y7,i=new Qa(i),e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.country(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var r=i.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return a?(o=Vb(a,e.carrierCode,"NATIONAL",i,n),bS(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return a?(o=Vb(a,null,"INTERNATIONAL",i,n),o="+".concat(r," ").concat(o),bS(o,e.ext,i,n.formatExtension)):"+".concat(r);case"E.164":return"+".concat(r).concat(a);case"RFC3966":return XEe({number:"+".concat(r).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=ixe(a,e.carrierCode,r,n.fromCountry,i);return bS(s,e.ext,i,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Vb(e,t,n,i,r){var a=nxe(i.formats(),e);return a?GEe(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&r&&r.nationalPrefix===!1),carrierCode:t,metadata:i}):e}function nxe(e,t){for(var n=JEe(e),i;!(i=n()).done;){var r=i.value;if(r.leadingDigitsPatterns().length>0){var a=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(t.search(a)!==0)continue}if(lc(t,r.pattern()))return r}}function bS(e,t,n,i){return t?i(e,t,n):e}function ixe(e,t,n,i,r){var a=Mk(i,r.metadata);if(a===n){var o=Vb(e,t,"NATIONAL",r);return n==="1"?n+" "+o:o}var s=ZEe(i,void 0,r.metadata);if(s)return"".concat(s," ").concat(n," ").concat(Vb(e,null,"INTERNATIONAL",r))}function W7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function G7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W7(Object(n),!0).forEach(function(i){rxe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W7(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function rxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function axe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K7(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function oxe(e,t,n){return t&&K7(e.prototype,t),n&&K7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var sxe=function(){function e(t,n,i){if(axe(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!i)throw new TypeError("`metadata` not passed");var r=uxe(t,i),a=r.country,o=r.countryCallingCode;this.country=a,this.countryCallingCode=o,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}}return oxe(e,[{key:"setExt",value:function(t){this.ext=t}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:HEe(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return VEe(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return UEe(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var t=new Qa(this.getMetadata());return t.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return Rk(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,n){return txe(this,t,n?G7(G7({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}]),e}(),lxe=function(e){return/^[A-Z]{2}$/.test(e)};function uxe(e,t){var n,i,r=new Qa(t);return lxe(e)?(n=e,r.selectNumberingPlan(n),i=r.countryCallingCode()):i=e,{country:n,countryCallingCode:i}}var cxe=new RegExp("(["+sl+"])");function dxe(e,t,n,i){if(t){var r=new Qa(i);r.selectNumberingPlan(t,n);var a=new RegExp(r.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(cxe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function fxe(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),i=n.exec(e);if(i){var r,a,o=i.length-1,s=o>0&&i[o];if(t.nationalPrefixTransformRule()&&s)r=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=i[1]);else{var l=i[0];r=e.slice(l.length),s&&(a=i[1])}var u;if(s){var c=e.indexOf(i[1]),d=e.slice(0,c);d===t.numberingPlan.nationalPrefix()&&(u=t.numberingPlan.nationalPrefix())}else u=i[0];return{nationalNumber:r,nationalPrefix:u,carrierCode:a}}}return{nationalNumber:e}}function R4(e,t){var n=fxe(e,t),i=n.carrierCode,r=n.nationalNumber;if(r!==e){if(!hxe(e,r,t))return{nationalNumber:e};if(t.possibleLengths()&&!pxe(r,t))return{nationalNumber:e}}return{nationalNumber:r,carrierCode:i}}function hxe(e,t,n){return!(lc(e,n.nationalNumberPattern())&&!lc(t,n.nationalNumberPattern()))}function pxe(e,t){switch(Lk(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function mxe(e,t,n,i){var r=t?Mk(t,i):n;if(e.indexOf(r)===0){i=new Qa(i),i.selectNumberingPlan(t,n);var a=e.slice(r.length),o=R4(a,i),s=o.nationalNumber,l=R4(e,i),u=l.nationalNumber;if(!lc(u,i.nationalNumberPattern())&&lc(s,i.nationalNumberPattern())||Lk(u,i)==="TOO_LONG")return{countryCallingCode:r,number:a}}return{number:e}}function vxe(e,t,n,i){if(!e)return{};var r;if(e[0]!=="+"){var a=dxe(e,t,n,i);if(a&&a!==e)r=!0,e="+"+a;else{if(t||n){var o=mxe(e,t,n,i),s=o.countryCallingCode,l=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}}if(e[1]==="0")return{};i=new Qa(i);for(var u=2;u-1<=aEe&&u<=e.length;){var c=e.slice(1,u);if(i.hasCallingCode(c))return i.selectNumberingPlan(c),{countryCallingCodeSource:r?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:e.slice(u)};u++}return{}}function gxe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=yxe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yxe(e,t){if(e){if(typeof e=="string")return Z7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z7(e,t)}}function Z7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _xe(e,t){var n=t.countries,i=t.defaultCountry,r=t.metadata;r=new Qa(r);for(var a=[],o=gxe(n),s;!(s=o()).done;){var l=s.value;if(r.country(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(Rk({phone:e,country:l},void 0,r.metadata))if(i){if(l===i)return l;a.push(l)}else return l}if(a.length>0)return a[0]}function bxe(e,t){var n=t.nationalNumber,i=t.defaultCountry,r=t.metadata,a=r.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:_xe(n,{countries:a,defaultCountry:i,metadata:r.metadata})}var CU="+",wxe="[\\-\\.\\(\\)]?",X7="(["+sl+"]|"+wxe+")",Sxe="^\\"+CU+X7+"*["+sl+"]"+X7+"*$",Cxe=new RegExp(Sxe,"g"),F4=sl,Exe="["+F4+"]+((\\-)*["+F4+"])*",xxe="a-zA-Z",kxe="["+xxe+"]+((\\-)*["+F4+"])*",Txe="^("+Exe+"\\.)*"+kxe+"\\.?$",Pxe=new RegExp(Txe,"g"),J7="tel:",V4=";phone-context=",$xe=";isub=";function Axe(e){var t=e.indexOf(V4);if(t<0)return null;var n=t+V4.length;if(n>=e.length)return"";var i=e.indexOf(";",n);return i>=0?e.substring(n,i):e.substring(n)}function Oxe(e){return e===null?!0:e.length===0?!1:Cxe.test(e)||Pxe.test(e)}function Dxe(e,t){var n=t.extractFormattedPhoneNumber,i=Axe(e);if(!Oxe(i))throw new Ru("NOT_A_NUMBER");var r;if(i===null)r=n(e)||"";else{r="",i.charAt(0)===CU&&(r+=i);var a=e.indexOf(J7),o;a>=0?o=a+J7.length:o=0;var s=e.indexOf(V4);r+=e.substring(o,s)}var l=r.indexOf($xe);if(l>0&&(r=r.substring(0,l)),r!=="")return r}var Ixe=250,Nxe=new RegExp("["+Nk+sl+"]"),Mxe=new RegExp("[^"+sl+"#]+$");function Lxe(e,t,n){if(t=t||{},n=new Qa(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ru("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=Fxe(e,t.v2,t.extract),r=i.number,a=i.ext,o=i.error;if(!r){if(t.v2)throw o==="TOO_SHORT"?new Ru("TOO_SHORT"):new Ru("NOT_A_NUMBER");return{}}var s=Bxe(r,t.defaultCountry,t.defaultCallingCode,n),l=s.country,u=s.nationalNumber,c=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ru("INVALID_COUNTRY");return{}}if(!u||u.length<Ik){if(t.v2)throw new Ru("TOO_SHORT");return{}}if(u.length>rEe){if(t.v2)throw new Ru("TOO_LONG");return{}}if(t.v2){var h=new sxe(c,u,n.metadata);return l&&(h.country=l),f&&(h.carrierCode=f),a&&(h.ext=a),h.__countryCallingCodeSource=d,h}var m=(t.extended?n.hasSelectedNumberingPlan():l)?lc(u,n.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:c,carrierCode:f,valid:m,possible:m?!0:!!(t.extended===!0&&n.possibleLengths()&&SU(u,n)),phone:u,ext:a}:m?Vxe(l,u,a):{}}function Rxe(e,t,n){if(e){if(e.length>Ixe){if(n)throw new Ru("TOO_LONG");return}if(t===!1)return e;var i=e.search(Nxe);if(!(i<0))return e.slice(i).replace(Mxe,"")}}function Fxe(e,t,n){var i=Dxe(e,{extractFormattedPhoneNumber:function(a){return Rxe(a,n,t)}});if(!i)return{};if(!PEe(i))return $Ee(i)?{error:"TOO_SHORT"}:{};var r=AEe(i);return r.ext?r:{number:i}}function Vxe(e,t,n){var i={country:e,phone:t};return n&&(i.ext=n),i}function Bxe(e,t,n,i){var r=vxe(B7(e),t,n,i.metadata),a=r.countryCallingCodeSource,o=r.countryCallingCode,s=r.number,l;if(o)i.selectNumberingPlan(o);else if(s&&(t||n))i.selectNumberingPlan(t,n),t&&(l=t),o=n||Mk(t,i.metadata);else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:o};var u=R4(B7(s),i),c=u.nationalNumber,d=u.carrierCode,f=bxe(o,{nationalNumber:c,defaultCountry:t,metadata:i});return f&&(l=f,f==="001"||i.country(l)),{country:l,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:c,carrierCode:d}}function Q7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q7(Object(n),!0).forEach(function(i){zxe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q7(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jxe(e,t,n){return Lxe(e,eO(eO({},t),{},{v2:!0}),n)}function tO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Uxe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(n),!0).forEach(function(i){Hxe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qxe(e,t){return Kxe(e)||Gxe(e,t)||Wxe(e,t)||Yxe()}function Yxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wxe(e,t){if(e){if(typeof e=="string")return nO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nO(e,t)}}function nO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Gxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,a=!1,o,s;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));r=!0);}catch(l){a=!0,s=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(a)throw s}}return i}}function Kxe(e){if(Array.isArray(e))return e}function Zxe(e){var t=Array.prototype.slice.call(e),n=qxe(t,4),i=n[0],r=n[1],a=n[2],o=n[3],s,l,u;if(typeof i=="string")s=i;else throw new TypeError("A text for parsing must be a string.");if(!r||typeof r=="string")o?(l=a,u=o):(l=void 0,u=a),r&&(l=Uxe({defaultCountry:r},l));else if(y_(r))a?(l=r,u=a):u=r;else throw new Error("Invalid second argument: ".concat(r));return{text:s,options:l,metadata:u}}function iO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function rO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(n),!0).forEach(function(i){Xxe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Xxe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jxe(e,t,n){t&&t.defaultCountry&&!wEe(t.defaultCountry,n)&&(t=rO(rO({},t),{},{defaultCountry:void 0}));try{return jxe(e,t,n)}catch(i){if(!(i instanceof Ru))throw i}}function Qxe(){var e=Zxe(arguments),t=e.text,n=e.options,i=e.metadata;return Jxe(t,n,i)}function wS(){return X4e(Qxe,arguments)}const e8e={beforeMount(e,t,n){if(typeof t.value!="function"){const i=n.context.name;let r=`[Vue-click-outside:] provided expression ${t.expression} is not a function, but has to be`;i&&(r+=`Found in component ${i}`),console.warn(r)}e.clickOutsideEvent=function(i){const r=i.composedPath?i.composedPath():i.path;e===i.target||e.contains(i.target)||r.includes(e)||t.value(i,e)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},t8e=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};function Ra(e){const t=O7.options[e];return typeof t>"u"?O7.options[e]:t}const n8e={name:"VueTelInput",directives:{clickOutside:e8e},props:{modelValue:{type:String,default:""},allCountries:{type:Array,default:()=>Ra("allCountries")},autoFormat:{type:Boolean,default:()=>Ra("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>Ra("customValidate")},defaultCountry:{type:[String,Number],default:()=>Ra("defaultCountry")},disabled:{type:Boolean,default:()=>Ra("disabled")},autoDefaultCountry:{type:Boolean,default:()=>Ra("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>Ra("dropdownOptions")},ignoredCountries:{type:Array,default:()=>Ra("ignoredCountries")},inputOptions:{type:Object,default:()=>Ra("inputOptions")},invalidMsg:{type:String,default:()=>Ra("invalidMsg")},mode:{type:String,default:()=>Ra("mode")},onlyCountries:{type:Array,default:()=>Ra("onlyCountries")},preferredCountries:{type:Array,default:()=>Ra("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>Ra("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>Ra("styleClasses")}},data(){return{phone:"",activeCountryCode:"",open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:null,dropdownOpenDirection:"below",parsedPlaceholder:this.inputOptions.placeholder,searchQuery:""}},computed:{activeCountry(){return this.findCountry(this.activeCountryCode)},parsedMode(){return this.mode==="auto"?!this.phone||this.phone[0]!=="+"?"national":"international":["international","national"].includes(this.mode)?this.mode:(console.error('Invalid value of prop "mode"'),"international")},filteredCountries(){return this.onlyCountries.length?this.allCountries.filter(({iso2:e})=>this.onlyCountries.some(t=>t.toUpperCase()===e)):this.ignoredCountries.length?this.allCountries.filter(({iso2:e})=>!this.ignoredCountries.includes(e.toUpperCase())&&!this.ignoredCountries.includes(e.toLowerCase())):this.allCountries},sortedCountries(){const e=[...this.getCountries(this.preferredCountries).map(n=>({...n,preferred:!0})),...this.filteredCountries];if(!this.dropdownOptions.showSearchBox)return e;const t=this.searchQuery.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return e.filter(n=>new RegExp(t,"i").test(n.name)||new RegExp(t,"i").test(n.iso2)||new RegExp(t,"i").test(n.dialCode))},phoneObject(){var e,t,n;let i;((e=this.phone)==null?void 0:e[0])==="+"?i=wS(this.phone)||{}:i=wS(this.phone,this.activeCountryCode)||{};const{metadata:r,...a}=i;let o=(t=i.isValid)==null?void 0:t.call(i),s=this.phone;return o&&(s=(n=i.format)==null?void 0:n.call(i,this.parsedMode.toUpperCase())),i.country&&(this.ignoredCountries.length||this.onlyCountries.length)&&(this.findCountry(i.country)||(o=!1,Object.assign(i,{country:null}))),Object.assign(a,{countryCode:i.country,valid:o,country:this.activeCountry,formatted:s}),a}},watch:{activeCountry(e,t){if(!e&&t!=null&&t.iso2){this.activeCountryCode=t.iso2;return}e!=null&&e.iso2&&this.$emit("country-changed",e)},"phoneObject.countryCode":function(e){this.activeCountryCode=e||""},"phoneObject.valid":function(){this.$emit("validate",this.phoneObject)},"phoneObject.formatted":function(e){!this.autoFormat||this.customValidate||(this.emitInput(e),this.$nextTick(()=>{e&&!this.modelValue&&(this.phone=e)}))},"inputOptions.placeholder":function(){this.resetPlaceholder()},modelValue(e,t){this.testCharacters()?this.phone=e:this.$nextTick(()=>{this.phone=t,this.onInput()})},open(e){e?(this.setDropdownPosition(),this.$emit("open")):this.$emit("close")}},mounted(){this.modelValue&&(this.phone=this.modelValue.trim()),this.cleanInvalidCharacters(),this.initializeCountry().then(()=>{var e;!this.phone&&(e=this.inputOptions)!=null&&e.showDialCode&&this.activeCountryCode&&(this.phone=`+${this.activeCountryCode}`),this.$emit("validate",this.phoneObject)}).catch(console.error).then(()=>{this.finishMounted=!0})},methods:{resetPlaceholder(){this.parsedPlaceholder=this.inputOptions.placeholder},initializeCountry(){return new Promise(e=>{var t;if(((t=this.phone)==null?void 0:t[0])==="+"){e();return}if(this.defaultCountry){if(typeof this.defaultCountry=="string"){this.choose(this.defaultCountry),e();return}if(typeof this.defaultCountry=="number"){const i=this.findCountryByDialCode(this.defaultCountry);if(i){this.choose(i.iso2),e();return}}}const n=this.preferredCountries[0]||this.filteredCountries[0];this.autoDefaultCountry?Y4e().then(i=>{this.choose(i||this.activeCountryCode)}).catch(i=>{console.warn(i),this.choose(n)}).then(()=>{e()}):(this.choose(n),e())})},getCountries(e=[]){return e.map(t=>this.findCountry(t)).filter(Boolean)},findCountry(e=""){return this.filteredCountries.find(t=>t.iso2===e.toUpperCase())},findCountryByDialCode(e){return this.filteredCountries.find(t=>Number(t.dialCode)===e)},getItemClass(e,t){const n=this.selectedIndex===e,i=e===this.preferredCountries.length-1,r=this.preferredCountries.some(a=>a.toUpperCase()===t);return{highlighted:n,"last-preferred":i,preferred:r}},choose(e){var t,n;let i=e;if(typeof i=="string"&&(i=this.findCountry(i)),!!i){if(((t=this.phone)==null?void 0:t[0])==="+"&&i.iso2&&this.phoneObject.nationalNumber){this.activeCountryCode=i.iso2,this.phone=wS(this.phoneObject.nationalNumber,i.iso2).formatInternational();return}if((n=this.inputOptions)!=null&&n.showDialCode&&i){this.phone=`+${i.dialCode}`,this.activeCountryCode=i.iso2||"";return}this.activeCountryCode=i.iso2||"",this.emitInput(this.phone)}},cleanInvalidCharacters(){const e=this.phone;if(this.validCharactersOnly){const t=this.phone.match(/[()\-+0-9\s]*/g);this.phone=t.join("")}if(this.customValidate&&this.customValidate instanceof RegExp){const t=this.phone.match(this.customValidate);this.phone=t.join("")}e!==this.phone&&this.emitInput(this.phone)},testCharacters(){return this.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(this.phone)?!1:this.customValidate?this.testCustomValidate():!0},testCustomValidate(){return this.customValidate instanceof RegExp?this.customValidate.test(this.phone):!1},onInput(){this.$refs.input.setCustomValidity(this.phoneObject.valid?"":this.invalidMsg),this.emitInput(this.phone)},emitInput(e){this.$emit("update:modelValue",e),this.$emit("on-input",e,this.phoneObject,this.$refs.input)},onBlur(){this.$emit("blur")},onFocus(){W4e(this.$refs.input,this.phone.length),this.$emit("focus")},onEnter(){this.$emit("enter")},onSpace(){this.$emit("space")},focus(){this.$refs.input.focus()},toggleDropdown(){this.disabled||this.dropdownOptions.disabled||(this.searchQuery="",this.open=!this.open)},clickedOutside(){this.open=!1},keyboardNav(e){if(e.keyCode===40){e.preventDefault(),this.open=!0,this.selectedIndex===null?this.selectedIndex=0:this.selectedIndex=Math.min(this.sortedCountries.length-1,this.selectedIndex+1);const t=this.$refs.list.children[this.selectedIndex];t.focus(),t.offsetTop+t.clientHeight>this.$refs.list.scrollTop+this.$refs.list.clientHeight&&(this.$refs.list.scrollTop=t.offsetTop-this.$refs.list.clientHeight+t.clientHeight)}else if(e.keyCode===38){e.preventDefault(),this.open=!0,this.selectedIndex===null?this.selectedIndex=this.sortedCountries.length-1:this.selectedIndex=Math.max(0,this.selectedIndex-1);const t=this.$refs.list.children[this.selectedIndex];t.focus(),t.offsetTop<this.$refs.list.scrollTop&&(this.$refs.list.scrollTop=t.offsetTop)}else if(e.keyCode===13)this.selectedIndex!==null&&this.choose(this.sortedCountries[this.selectedIndex]),this.open=!this.open;else{this.typeToFindInput+=e.key,clearTimeout(this.typeToFindTimer),this.typeToFindTimer=setTimeout(()=>{this.typeToFindInput=""},700);const t=this.sortedCountries.slice(this.preferredCountries.length).findIndex(n=>n.name.toLowerCase().startsWith(this.typeToFindInput));if(t>=0){this.selectedIndex=this.preferredCountries.length+t;const n=this.$refs.list.children[this.selectedIndex],i=n.offsetTop<this.$refs.list.scrollTop,r=n.offsetTop+n.clientHeight>this.$refs.list.scrollTop+this.$refs.list.clientHeight;(i||r)&&(this.$refs.list.scrollTop=n.offsetTop-this.$refs.list.clientHeight/2)}}},reset(){this.selectedIndex=this.sortedCountries.map(e=>e.iso2).indexOf(this.activeCountryCode),this.open=!1},setDropdownPosition(){window.innerHeight-this.$el.getBoundingClientRect().bottom>200?this.dropdownOpenDirection="below":this.dropdownOpenDirection="above"}}},i8e=["aria-expanded","tabindex"],r8e={class:"vti__selection"},a8e={key:1,class:"vti__country-code"},o8e={class:"vti__dropdown-arrow"},s8e=["placeholder"],l8e=["onClick","onMousemove","aria-selected"],u8e={key:1},c8e=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"];function d8e(e,t,n,i,r,a){const o=po("click-outside");return J(),ve("div",{class:Gt(["vue-tel-input",n.styleClasses,{disabled:n.disabled}])},[xt((J(),ve("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":r.open,role:"button",class:Gt(["vti__dropdown",{open:r.open,disabled:n.dropdownOptions.disabled}]),tabindex:n.dropdownOptions.tabindex,onKeydown:[t[2]||(t[2]=(...s)=>a.keyboardNav&&a.keyboardNav(...s)),t[4]||(t[4]=Vc((...s)=>a.toggleDropdown&&a.toggleDropdown(...s),["space"])),t[5]||(t[5]=Vc((...s)=>a.reset&&a.reset(...s),["esc"])),t[6]||(t[6]=Vc((...s)=>a.reset&&a.reset(...s),["tab"]))],onClick:t[3]||(t[3]=(...s)=>a.toggleDropdown&&a.toggleDropdown(...s))},[F("span",r8e,[n.dropdownOptions.showFlags?(J(),ve("span",{key:0,class:Gt(["vti__flag",r.activeCountryCode.toLowerCase()])},null,2)):De("",!0),n.dropdownOptions.showDialCodeInSelection?(J(),ve("span",a8e," +"+Q(a.activeCountry&&a.activeCountry.dialCode),1)):De("",!0),zg(e.$slots,"arrow-icon",{open:r.open},()=>[F("span",o8e,Q(r.open?"â–²":"â–¼"),1)])]),r.open?(J(),ve("ul",{key:0,ref:"list",class:Gt(["vti__dropdown-list",r.dropdownOpenDirection]),role:"listbox"},[n.dropdownOptions.showSearchBox?xt((J(),ve("input",{key:0,class:"vti__input vti__search_box","aria-label":"Search by country name or country code",placeholder:a.sortedCountries.length?a.sortedCountries[0].name:"",type:"text","onUpdate:modelValue":t[0]||(t[0]=s=>r.searchQuery=s),onClick:t[1]||(t[1]=Vo(()=>{},["stop"]))},null,8,s8e)),[[Tf,r.searchQuery]]):De("",!0),(J(!0),ve(Ue,null,Ht(a.sortedCountries,(s,l)=>(J(),ve("li",{role:"option",class:Gt(["vti__dropdown-item",a.getItemClass(l,s.iso2)]),key:s.iso2+(s.preferred?"-preferred":""),tabindex:"-1",onClick:u=>a.choose(s),onMousemove:u=>r.selectedIndex=l,"aria-selected":r.activeCountryCode===s.iso2&&!s.preferred},[n.dropdownOptions.showFlags?(J(),ve("span",{key:0,class:Gt(["vti__flag",s.iso2.toLowerCase()])},null,2)):De("",!0),F("strong",null,Q(s.name),1),n.dropdownOptions.showDialCodeInList?(J(),ve("span",u8e," +"+Q(s.dialCode),1)):De("",!0)],42,l8e))),128))],2)):De("",!0)],42,i8e)),[[o,a.clickedOutside]]),xt(F("input",{"onUpdate:modelValue":t[7]||(t[7]=s=>r.phone=s),ref:"input",type:n.inputOptions.type,autocomplete:n.inputOptions.autocomplete,autofocus:n.inputOptions.autofocus,class:Gt(["vti__input",n.inputOptions.styleClasses]),disabled:n.disabled,id:n.inputOptions.id,maxlength:n.inputOptions.maxlength,name:n.inputOptions.name,placeholder:r.parsedPlaceholder,readonly:n.inputOptions.readonly,required:n.inputOptions.required,tabindex:n.inputOptions.tabindex,value:n.modelValue,"aria-describedby":n.inputOptions["aria-describedby"],onBlur:t[8]||(t[8]=(...s)=>a.onBlur&&a.onBlur(...s)),onFocus:t[9]||(t[9]=(...s)=>a.onFocus&&a.onFocus(...s)),onInput:t[10]||(t[10]=(...s)=>a.onInput&&a.onInput(...s)),onKeyup:[t[11]||(t[11]=Vc((...s)=>a.onEnter&&a.onEnter(...s),["enter"])),t[12]||(t[12]=Vc((...s)=>a.onSpace&&a.onSpace(...s),["space"]))]},null,42,c8e),[[zZ,r.phone]]),zg(e.$slots,"icon-right")],2)}const f8e=t8e(n8e,[["render",d8e]]),h8e={key:0,class:"text-caption text-disabled animate-slide-down"},p8e=ot({inheritAttrs:!0,__name:"Phone",props:{modelValue:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{default:"Enter a phone number"},rules:{default:()=>[]},rounded:{type:Boolean,default:!1},size:{default:"medium"},defaultCountry:{default:"fr"},autoDefaultCountry:{type:Boolean,default:!0},onlyCountries:{default:()=>[]},preferredCountries:{default:()=>[]},ignoredCountries:{default:()=>[]},showDialCode:{type:Boolean,default:!0},hint:{default:""},errorMessages:{default:()=>[]}},emits:["update:modelValue","valide","change"],setup(e,{emit:t}){const{t:n}=gn(),i=e,r=t;let a=z(i.modelValue),o=z([]);const s=z(!1),l=c=>{s.value=c.valid,r("valide",c.valid)},u=(c,d)=>{r("update:modelValue",a.value),r("change",d),i.rules&&i.rules.length>0&&(o.value=i.rules.map(f=>f(a.value)).filter(f=>f!==!0)),a.value&&o.value.length===0&&!s.value&&o.value.push(n("input.invalidPhoneNumber")),(s.value||!a.value&&!i.required)&&(o.value=[])};return Ve(()=>i.errorMessages,c=>{typeof c=="string"?o.value=[c]:(c=c.filter(d=>d),o.value=c)}),Ve(()=>i.modelValue,c=>{a.value=c}),(c,d)=>(J(),ve(Ue,null,[C(K(f8e),Me(c.$attrs,{styleClasses:[i.rounded?"rounded-lg":"",i.size,K(o).length>0?"error":"","custum-padding"],modelValue:K(a),"onUpdate:modelValue":d[0]||(d[0]=f=>Yn(a)?a.value=f:a=f),defaultCountry:i.defaultCountry,autoDefaultCountry:i.autoDefaultCountry,onlyCountries:i.onlyCountries,preferredCountries:i.preferredCountries,ignoredCountries:i.ignoredCountries,autoFormat:!0,disabled:i.disabled,validCharactersOnly:!0,inputOptions:{id:"",autocomplete:"on","aria-describedby":"",name:"telephone",placeholder:i.label,showDialCode:i.showDialCode,readonly:!1,required:i.required,type:"tel",styleClasses:"",maxlength:25},dropdownOptions:{disabled:!1,showDialCodeInList:!0,showDialCodeInSelection:!0,showFlags:!0,showSearchBox:!0},onValidate:l,onOnInput:u,mode:"national"}),null,16,["styleClasses","modelValue","defaultCountry","autoDefaultCountry","onlyCountries","preferredCountries","ignoredCountries","disabled","inputOptions"]),(J(!0),ve(Ue,null,Ht(K(o),f=>(J(),ve("span",{class:"text-caption text-error animate-slide-down",key:f},Q(f),1))),128)),K(o).length?De("",!0):(J(),ve("span",h8e,Q(i.hint),1))],64))}});const m8e=on(p8e,[["__scopeId","data-v-280496ed"]]),v8e=["width","height"],g8e=F("circle",{cx:"32",cy:"32",r:"32",fill:"#F3FCFA"},null,-1),y8e=F("path",{d:"M48.0813 45.1253C45.7016 41.0113 42.0344 38.0613 37.7547 36.6628C39.8717 35.4026 41.5164 33.4823 42.4363 31.1969C43.3563 28.9115 43.5005 26.3872 42.847 24.0118C42.1935 21.6365 40.7783 19.5413 38.8188 18.048C36.8592 16.5548 34.4637 15.7461 32.0001 15.7461C29.5364 15.7461 27.1409 16.5548 25.1813 18.048C23.2218 19.5413 21.8066 21.6365 21.1531 24.0118C20.4996 26.3872 20.6439 28.9115 21.5638 31.1969C22.4837 33.4823 24.1284 35.4026 26.2454 36.6628C21.9657 38.0597 18.2985 41.0097 15.9188 45.1253C15.8315 45.2676 15.7737 45.426 15.7486 45.591C15.7235 45.756 15.7317 45.9244 15.7728 46.0862C15.8138 46.248 15.8868 46.3999 15.9875 46.5331C16.0883 46.6662 16.2146 46.7778 16.3592 46.8613C16.5037 46.9447 16.6635 46.9984 16.8291 47.0192C16.9948 47.0399 17.1629 47.0272 17.3235 46.982C17.4842 46.9367 17.6342 46.8597 17.7646 46.7555C17.895 46.6513 18.0032 46.522 18.0829 46.3753C21.0266 41.2878 26.2297 38.2503 32.0001 38.2503C37.7704 38.2503 42.9735 41.2878 45.9172 46.3753C45.9969 46.522 46.1051 46.6513 46.2355 46.7555C46.366 46.8597 46.5159 46.9367 46.6766 46.982C46.8372 47.0272 47.0054 47.0399 47.171 47.0192C47.3366 46.9984 47.4964 46.9447 47.641 46.8613C47.7855 46.7778 47.9119 46.6662 48.0126 46.5331C48.1133 46.3999 48.1863 46.248 48.2274 46.0862C48.2684 45.9244 48.2766 45.756 48.2515 45.591C48.2265 45.426 48.1686 45.2676 48.0813 45.1253ZM23.2501 27.0003C23.2501 25.2698 23.7632 23.578 24.7247 22.1391C25.6862 20.7002 27.0527 19.5787 28.6516 18.9164C30.2504 18.2541 32.0098 18.0809 33.7071 18.4185C35.4044 18.7561 36.9635 19.5895 38.1872 20.8132C39.4109 22.0369 40.2443 23.596 40.5819 25.2933C40.9195 26.9906 40.7463 28.75 40.084 30.3488C39.4217 31.9477 38.3002 33.3142 36.8613 34.2757C35.4224 35.2372 33.7306 35.7503 32.0001 35.7503C29.6802 35.7479 27.456 34.8252 25.8156 33.1848C24.1752 31.5444 23.2525 29.3202 23.2501 27.0003Z",fill:"#004838"},null,-1),_8e=[g8e,y8e],Uu=ot({__name:"PractitionerAvatar",props:{color:{type:String,default:"rgba(18, 194, 155, 0.05)"},size:{type:String,default:"800px"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_8e,8,v8e))}}),b8e={key:0,class:"tooltip-header"},w8e={class:"d-flex flex-column ga-3",style:{padding:"15.84px !important"}},S8e={class:"tooltip-title"},C8e={class:"tooltip-desc"},E8e={key:1,class:"tooltip-desc"},x8e=F("br",null,null,-1),k8e={class:"d-flex align-center justify-space-between"},T8e={key:0,class:"step-count"},P8e={key:1},$8e={class:"d-flex ga-2 align-center"},A8e={key:0},Ep=ot({__name:"TooltipWrapper",props:{id:String,location:{type:String,default:"end"}},setup(e){const t=ud(),n=fh(),{smAndUp:i,mobile:r}=Ki(),a=z(!1),{id:o,location:s}=e,l=B(()=>{var h;if((h=t.step)!=null&&h.targetHtmlElement)return t.step.targetHtmlElement===o}),u=async()=>{if(r.value){a.value=!0,await t.toggleOnboarding(!0),a.value=!1;return}try{await t.nextStep(),n.name!==d.value.page&&await In.push({name:d.value.page}),t.manualProccess=!1}catch{}},c=async()=>{try{await t.previousStep(),n.name!==d.value.page&&await In.push({name:d.value.page}),t.manualProccess=!1}catch{}},d=B(()=>t.step);tn(async()=>{await Pt(),await t.currentStep()});const f=B(()=>s.split(" ")[0]);return(h,m)=>(J(),ve(Ue,null,[l.value?(J(),je(ka,{key:0,eager:"",offset:"0",width:"350","model-value":K(t).visible,"onUpdate:modelValue":m[4]||(m[4]=g=>K(t).visible=g),"open-on-hover":!1,"open-on-focus":!1,"open-on-click":!1,location:e.location,"content-class":`onboarding-tooltip elevation-14 ${f.value}`,persistent:""},{activator:le(({props:g})=>[F("div",NE(_2(g)),[zg(h.$slots,"default")],16)]),default:le(()=>[F("div",null,[d.value.tooltipOrder<=1?(J(),ve("div",b8e,Q(h.$t("onboarding.welcomeTitle")),1)):De("",!0),F("div",w8e,[K(r)?(J(),ve("div",E8e,[F("span",null,Q(h.$t("onboarding.mobileTitle")),1),x8e,F("span",null,Q(h.$t("onboarding.mobileDesc")),1)])):(J(),ve(Ue,{key:0},[F("div",S8e,Q(d.value.title),1),F("div",C8e,Q(d.value.description),1)],64)),F("div",k8e,[K(r)?De("",!0):(J(),ve("span",T8e,Q(h.$t("onboarding.stepCount",{value:d.value.tooltipOrder})),1)),K(r)?(J(),ve("div",P8e)):De("",!0),F("div",$8e,[d.value.tooltipOrder>1&&!K(r)?(J(),ve("div",{key:0,class:"text-gray-80 cursor-pointer action-btn",onClick:m[0]||(m[0]=()=>c())},[K(t).prevLoading?(J(),je(ad,{key:1,size:18,indeterminate:"",color:"#616161",width:3})):(J(),ve("div",A8e,[C(ut,{color:"#616161"},{default:le(()=>[Ze("mdi-chevron-left")]),_:1}),F("span",null,Q(h.$t("onboarding.prev")),1)]))])):De("",!0),K(r)?(J(),je(Je,{key:2,loading:a.value,onClick:m[2]||(m[2]=()=>u()),rounded:"lg",variant:"flat",class:"d-flex align-center action-btn cursor-pointer",color:"secondary"},{default:le(()=>[Ze(Q(h.$t("onboarding.agree")),1)]),_:1},8,["loading"])):(J(),je(Je,{key:1,loading:K(t).nextLoading,color:"secondary",rounded:"lg",variant:"flat",class:"d-flex align-center action-btn cursor-pointer",onClick:m[1]||(m[1]=()=>u())},{default:le(()=>[F("span",null,Q(K(t).step.targetHtmlElement==="submit-account-validation-button"?h.$t("onboarding.finish"):h.$t("onboarding.next")),1),C(ut,null,{default:le(()=>[Ze("mdi-chevron-right")]),_:1})]),_:1},8,["loading"]))])])])]),C(Je,{onClick:m[3]||(m[3]=g=>(K(t).onboardingAlert=!0,K(t).visible=!1)),style:{top:"9px",right:"5px"},class:"position-absolute",color:"#7E652B",size:"small",variant:"text",density:"compact",icon:"$close"})]),_:3},8,["model-value","location","content-class"])):De("",!0),l.value?De("",!0):zg(h.$slots,"default",{key:1})],64))}});const O8e=["width","height"],D8e=["fill"],EU=ot({__name:"WarningIcon",props:{size:{type:Number,default:90},color:{type:String,default:"#029978"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M45 1.93359C21.215 1.93359 1.93359 21.215 1.93359 45C1.93359 68.785 21.215 88.0664 45 88.0664C68.785 88.0664 88.0664 68.785 88.0664 45C88.0664 21.215 68.785 1.93359 45 1.93359ZM39.6962 20.8738C39.6962 19.4723 40.2529 18.1281 41.244 17.137C42.2351 16.1459 43.5793 15.5892 44.9808 15.5892C46.3824 15.5892 47.7266 16.1459 48.7177 17.137C49.7088 18.1281 50.2657 19.4722 50.2657 20.8738V51.4721C50.2657 52.8737 49.7088 54.2179 48.7177 55.2089C47.7266 56.2 46.3824 56.7568 44.9808 56.7568C43.5792 56.7567 42.2351 56.1999 41.244 55.2088C40.2529 54.2177 39.6962 52.8735 39.6962 51.4719V20.8738ZM49.6338 72.4771C48.565 73.5313 47.1641 74.1827 45.6693 74.3206C44.1745 74.4585 42.678 74.0744 41.4345 73.2335C40.1909 72.3927 39.277 71.147 38.8481 69.7084C38.4193 68.2698 38.502 66.7271 39.0822 65.3426C39.6625 63.958 40.7043 62.8173 42.0307 62.1142C43.3571 61.4112 44.886 61.1892 46.3575 61.4862C47.829 61.7832 49.1522 62.5807 50.1021 63.7431C51.052 64.9055 51.5699 66.3611 51.5677 67.8623C51.5749 68.7224 51.4072 69.575 51.0747 70.3682C50.7423 71.1615 50.252 71.8789 49.6338 72.4769V72.4771Z",fill:e.color},null,8,D8e)],8,O8e))}}),I8e={class:"font-weight-bold title"},N8e={class:"d-flex flex-column ga-3"},M8e={class:"d-flex justify-center"},L8e={class:"text-center py-5"},R8e={key:0,class:"text-center font-weight-bold text-gray-80"},F8e={key:1,class:"alert-desc"},V8e={class:"d-sm-flex ga-2"},B8e={style:{color:"#757575","font-weight":"700"}},z8e=ot({__name:"AlertDialog",props:{title:{required:!0,type:String},minTitle:String,description:String,dialog:Boolean,warningColor:{type:String,color:"#12C29B"}},emits:["update:cancel","update:confirm"],setup(e,{emit:t}){const{t:n}=gn(),i=t;return(r,a)=>(J(),je(ir,{"model-value":e.dialog,persistent:"","max-width":"500",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"d-flex justify-center w-full align-center bg-surface-lighten-1"},{default:le(()=>[F("span",I8e,Q(e.title),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:a[0]||(a[0]=o=>i("update:cancel")),src:_h})]),_:1}),C(br,{class:"pa-5"},{default:le(()=>[F("div",N8e,[F("div",M8e,[C(EU,{color:e.warningColor},null,8,["color"])]),F("div",L8e,[e.minTitle?(J(),ve("p",R8e,Q(e.minTitle),1)):De("",!0),e.description?(J(),ve("p",F8e,Q(e.description),1)):De("",!0)]),F("div",V8e,[C(Je,{color:"#E0E0E0",class:"w-sm-50 w-100",onClick:a[1]||(a[1]=o=>i("update:cancel"))},{default:le(()=>[F("span",B8e,Q(K(n)("dashboard.appointment.dialogDetails.cancelBtn")),1)]),_:1}),C(Je,{class:"w-sm-50 w-100 mt-sm-0 mt-2",onClick:a[2]||(a[2]=o=>i("update:confirm")),color:"secondary"},{default:le(()=>[Ze(Q(K(n)("dashboard.appointment.dialogDetails.confirmBtn")),1)]),_:1})])])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const j8e=on(z8e,[["__scopeId","data-v-e8901184"]]),xU=e=>{const t=z(null),n=z(null),i=z(null),r=z(null),a=z(null),o=z("");return{stripe:t,stripeElements:n,stripeCard:i,stripeCardExpiry:r,stripeCardCvc:a,stripeError:o,initStripe:()=>{t.value=window.Stripe("pk_live_51PSyQ3RtGn4wziDXKZ6zOfPTWcuNvcliYAg0rVOAJE1LhiYIoTDl9Uz5gbZucdRLs0UjW9Mile0Pvll6GIwQ0NwD00vt2l5s3D"),n.value=t.value.elements();const l={base:{iconColor:e.current.value.colors.primary,color:e.current.value.colors.primary,fontSize:"16px",fontFamily:'"Roboto", sans-serif',fontWeight:400,"::placeholder":{color:"rgba(0, 0, 0, 0.6)",fontWeight:400}},invalid:{iconColor:e.current.value.colors.error,color:e.current.value.colors.error}};i.value=n.value.create("cardNumber",{style:l,showIcon:!0}),r.value=n.value.create("cardExpiry",{style:l}),a.value=n.value.create("cardCvc",{style:l}),Pt(()=>{i.value.mount("#card-element"),r.value.mount("#card-expiry"),a.value.mount("#card-cvc"),i.value.on("change",u=>{u.error?o.value=u.error.message:o.value=""})})}}},U8e="/assets/check_new-dc9a1baf.svg",H8e="/assets/close-719d6828.svg",q8e=["width","height"],Y8e=["fill"],W8e=ot({__name:"CheckednIcon",props:{size:{type:Number,default:14},color:{type:String,default:"#029978"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M9.85375 5.14625C9.90024 5.19269 9.93712 5.24783 9.96228 5.30853C9.98744 5.36923 10.0004 5.43429 10.0004 5.5C10.0004 5.56571 9.98744 5.63077 9.96228 5.69147C9.93712 5.75217 9.90024 5.80731 9.85375 5.85375L6.35375 9.35375C6.30732 9.40024 6.25217 9.43712 6.19147 9.46228C6.13077 9.48744 6.06571 9.50039 6 9.50039C5.9343 9.50039 5.86923 9.48744 5.80853 9.46228C5.74783 9.43712 5.69269 9.40024 5.64625 9.35375L4.14625 7.85375C4.05243 7.75993 3.99972 7.63268 3.99972 7.5C3.99972 7.36732 4.05243 7.24007 4.14625 7.14625C4.24007 7.05243 4.36732 6.99972 4.5 6.99972C4.63268 6.99972 4.75993 7.05243 4.85375 7.14625L6 8.29313L9.14625 5.14625C9.19269 5.09976 9.24783 5.06288 9.30853 5.03772C9.36923 5.01256 9.43429 4.99961 9.5 4.99961C9.56571 4.99961 9.63077 5.01256 9.69147 5.03772C9.75217 5.06288 9.80732 5.09976 9.85375 5.14625ZM13.5 7C13.5 8.28558 13.1188 9.54229 12.4046 10.6112C11.6903 11.6801 10.6752 12.5132 9.48744 13.0052C8.29973 13.4972 6.99279 13.6259 5.73192 13.3751C4.47104 13.1243 3.31285 12.5052 2.40381 11.5962C1.49477 10.6872 0.875703 9.52896 0.624899 8.26809C0.374095 7.00721 0.502816 5.70028 0.994786 4.51256C1.48676 3.32484 2.31988 2.30968 3.3888 1.59545C4.45772 0.881218 5.71442 0.5 7 0.5C8.72335 0.50182 10.3756 1.18722 11.5942 2.40582C12.8128 3.62441 13.4982 5.27665 13.5 7ZM12.5 7C12.5 5.9122 12.1774 4.84883 11.5731 3.94436C10.9687 3.03989 10.1098 2.33494 9.10476 1.91866C8.09977 1.50238 6.9939 1.39346 5.92701 1.60568C4.86011 1.8179 3.8801 2.34172 3.11092 3.11091C2.34173 3.8801 1.8179 4.86011 1.60568 5.927C1.39347 6.9939 1.50238 8.09977 1.91867 9.10476C2.33495 10.1098 3.0399 10.9687 3.94437 11.5731C4.84884 12.1774 5.91221 12.5 7 12.5C8.45819 12.4983 9.85617 11.9184 10.8873 10.8873C11.9184 9.85617 12.4983 8.45818 12.5 7Z",fill:e.color},null,8,Y8e)],8,q8e))}}),G8e=["width","height"],K8e=b2('<g opacity="0.5" clip-path="url(#clip0_11253_644)"><path d="M21.75 9.25L12 21.25L2.25 9.25L7.5 3.25H16.5L21.75 9.25Z" fill="#38ACFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12 21.75C11.8494 21.75 11.7069 21.6822 11.6119 21.5653L1.86194 9.5653C1.70835 9.37626 1.71332 9.10405 1.87371 8.92075L7.12371 2.92075C7.21866 2.81224 7.35582 2.75 7.5 2.75H16.5C16.6442 2.75 16.7813 2.81224 16.8763 2.92075L22.1263 8.92075C22.2867 9.10405 22.2916 9.37626 22.1381 9.5653L12.3881 21.5653C12.2931 21.6822 12.1506 21.75 12 21.75ZM7.5 3.25H16.5L21.75 9.25L12 21.25L2.25 9.25L7.5 3.25Z" fill="#042360"></path><path d="M16.5 3.25L21.75 9.25H2.25L7.5 3.25H16.5Z" fill="#63BDFF"></path><path d="M21.75 9.25L12 21.25V3.25H16.5L21.75 9.25Z" fill="#2D88F3"></path><path d="M21.75 9.25H12V3.25H16.5L21.75 9.25Z" fill="#53A1FE"></path><path d="M2.25 9.25L12 21.25L7 9.25L12 3.25H7.5L2.25 9.25Z" fill="#46CAF3"></path><path d="M7.75 3.25L2.25 9.25H7L12 3.25H7.75Z" fill="#68DBFF"></path><path d="M2.25 9.25L12 21.25L4 9.25L9.25 3.25H7.5L2.25 9.25Z" fill="#C1E9FF"></path><path d="M7.5 3.25L2.25 9.25H4L9.25 3.25H7.5Z" fill="#D8F1FF"></path><path d="M21.75 9.25L12 21.25L17 9.25L12 3.25H16.5L21.75 9.25Z" fill="#4E5CDE"></path><path d="M16.5 3.25L21.75 9.25H17L12 3.25H16.5Z" fill="#6A78F5"></path><path d="M21.75 9.25L12 21.25L20 9.25L14.75 3.25H16.5L21.75 9.25Z" fill="#2D88F3"></path><path d="M16.5 3.25L21.75 9.25H20L14.75 3.25H16.5Z" fill="#52A1FE"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6.66374 4.81108C6.76807 4.90151 6.77935 5.0594 6.68893 5.16374L3.43893 8.91374C3.3485 9.01808 3.19061 9.02935 3.08627 8.93893C2.98193 8.8485 2.97065 8.69061 3.06108 8.58627L6.31108 4.83627C6.40151 4.73193 6.5594 4.72065 6.66374 4.81108Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4137 4.81108C11.5181 4.90151 11.5294 5.0594 11.4389 5.16374L8.18893 8.91374C8.0985 9.01808 7.94061 9.02935 7.83627 8.93893C7.73193 8.8485 7.72065 8.69061 7.81108 8.58627L11.0611 4.83627C11.1515 4.73193 11.3094 4.72065 11.4137 4.81108Z" fill="#8FD0FF"></path><path d="M14.25 12.5C14.25 12.6381 14.1381 12.75 14 12.75C13.8619 12.75 13.75 12.6381 13.75 12.5C13.75 12.3619 13.8619 12.25 14 12.25C14.1381 12.25 14.25 12.3619 14.25 12.5Z" fill="#2478DC"></path><path d="M15 13.5C15 13.6381 14.8881 13.75 14.75 13.75C14.6119 13.75 14.5 13.6381 14.5 13.5C14.5 13.3619 14.6119 13.25 14.75 13.25C14.8881 13.25 15 13.3619 15 13.5Z" fill="#2478DC"></path><path d="M14 14.75C14 14.8881 13.8881 15 13.75 15C13.6119 15 13.5 14.8881 13.5 14.75C13.5 14.6119 13.6119 14.5 13.75 14.5C13.8881 14.5 14 14.6119 14 14.75Z" fill="#2478DC"></path><path d="M13.25 15.25C13.25 15.3881 13.1381 15.5 13 15.5C12.8619 15.5 12.75 15.3881 12.75 15.25C12.75 15.1119 12.8619 15 13 15C13.1381 15 13.25 15.1119 13.25 15.25Z" fill="#2478DC"></path><path d="M13.25 16.75C13.25 16.8881 13.1381 17 13 17C12.8619 17 12.75 16.8881 12.75 16.75C12.75 16.6119 12.8619 16.5 13 16.5C13.1381 16.5 13.25 16.6119 13.25 16.75Z" fill="#2478DC"></path><path d="M13.5 11.75C13.5 11.8881 13.3881 12 13.25 12C13.1119 12 13 11.8881 13 11.75C13 11.6119 13.1119 11.5 13.25 11.5C13.3881 11.5 13.5 11.6119 13.5 11.75Z" fill="#2478DC"></path><path d="M15.5 11.25C15.5 11.3881 15.3881 11.5 15.25 11.5C15.1119 11.5 15 11.3881 15 11.25C15 11.1119 15.1119 11 15.25 11C15.3881 11 15.5 11.1119 15.5 11.25Z" fill="#2478DC"></path><path d="M14.5 11.125C14.5 11.3321 14.3321 11.5 14.125 11.5C13.9179 11.5 13.75 11.3321 13.75 11.125C13.75 10.9179 13.9179 10.75 14.125 10.75C14.3321 10.75 14.5 10.9179 14.5 11.125Z" fill="#2478DC"></path><path d="M14 13.625C14 13.8321 13.8321 14 13.625 14C13.4179 14 13.25 13.8321 13.25 13.625C13.25 13.4179 13.4179 13.25 13.625 13.25C13.8321 13.25 14 13.4179 14 13.625Z" fill="#2478DC"></path><g style="mix-blend-mode:hue;"><rect x="-9" y="-20" width="115" height="132" fill="white"></rect></g></g><defs><clipPath id="clip0_11253_644"><rect width="24" height="24" fill="white"></rect></clipPath></defs>',2),Z8e=[K8e],Hh=ot({__name:"DiamondBlackIcon",props:{size:{type:Number,default:24}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z8e,8,G8e))}}),X8e=["width","height"],J8e=b2('<path d="M20.75 7.25L11 19.25L1.25 7.25L6.5 1.25H15.5L20.75 7.25Z" fill="#38ACFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 19.75C10.8494 19.75 10.7069 19.6822 10.6119 19.5653L0.861943 7.5653C0.708351 7.37626 0.713321 7.10405 0.873712 6.92075L6.12371 0.920748C6.21866 0.81224 6.35582 0.75 6.5 0.75H15.5C15.6442 0.75 15.7813 0.81224 15.8763 0.920748L21.1263 6.92075C21.2867 7.10405 21.2916 7.37626 21.1381 7.5653L11.3881 19.5653C11.2931 19.6822 11.1506 19.75 11 19.75ZM6.5 1.25H15.5L20.75 7.25L11 19.25L1.25 7.25L6.5 1.25Z" fill="#042360"></path><path d="M15.5 1.25L20.75 7.25H1.25L6.5 1.25H15.5Z" fill="#63BDFF"></path><path d="M20.75 7.25L11 19.25V1.25H15.5L20.75 7.25Z" fill="white"></path><path d="M20.75 7.25H11V1.25H15.5L20.75 7.25Z" fill="white"></path><path d="M1.25 7.25L11 19.25L6 7.25L11 1.25H6.5L1.25 7.25Z" fill="#46CAF3"></path><path d="M6.75 1.25L1.25 7.25H6L11 1.25H6.75Z" fill="#68DBFF"></path><path d="M1.25 7.25L11 19.25L3 7.25L8.25 1.25H6.5L1.25 7.25Z" fill="#C1E9FF"></path><path d="M6.5 1.25L1.25 7.25H3L8.25 1.25H6.5Z" fill="#D8F1FF"></path><path d="M20.75 7.25L11 19.25L16 7.25L11 1.25H15.5L20.75 7.25Z" fill="white"></path><path d="M15.5 1.25L20.75 7.25H16L11 1.25H15.5Z" fill="white"></path><path d="M20.75 7.25L11 19.25L19 7.25L13.75 1.25H15.5L20.75 7.25Z" fill="white"></path><path d="M15.5 1.25L20.75 7.25H19L13.75 1.25H15.5Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M5.66374 2.81108C5.76807 2.90151 5.77935 3.0594 5.68893 3.16374L2.43893 6.91374C2.3485 7.01808 2.19061 7.02935 2.08627 6.93893C1.98193 6.8485 1.97065 6.69061 2.06108 6.58627L5.31108 2.83627C5.40151 2.73193 5.5594 2.72065 5.66374 2.81108Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.4137 2.81108C10.5181 2.90151 10.5294 3.0594 10.4389 3.16374L7.18893 6.91374C7.0985 7.01808 6.94061 7.02935 6.83627 6.93893C6.73193 6.8485 6.72065 6.69061 6.81108 6.58627L10.0611 2.83627C10.1515 2.73193 10.3094 2.72065 10.4137 2.81108Z" fill="#8FD0FF"></path><path d="M13.25 10.5C13.25 10.6381 13.1381 10.75 13 10.75C12.8619 10.75 12.75 10.6381 12.75 10.5C12.75 10.3619 12.8619 10.25 13 10.25C13.1381 10.25 13.25 10.3619 13.25 10.5Z" fill="#2478DC"></path><path d="M14 11.5C14 11.6381 13.8881 11.75 13.75 11.75C13.6119 11.75 13.5 11.6381 13.5 11.5C13.5 11.3619 13.6119 11.25 13.75 11.25C13.8881 11.25 14 11.3619 14 11.5Z" fill="#2478DC"></path><path d="M13 12.75C13 12.8881 12.8881 13 12.75 13C12.6119 13 12.5 12.8881 12.5 12.75C12.5 12.6119 12.6119 12.5 12.75 12.5C12.8881 12.5 13 12.6119 13 12.75Z" fill="#2478DC"></path><path d="M12.25 13.25C12.25 13.3881 12.1381 13.5 12 13.5C11.8619 13.5 11.75 13.3881 11.75 13.25C11.75 13.1119 11.8619 13 12 13C12.1381 13 12.25 13.1119 12.25 13.25Z" fill="#2478DC"></path><path d="M12.25 14.75C12.25 14.8881 12.1381 15 12 15C11.8619 15 11.75 14.8881 11.75 14.75C11.75 14.6119 11.8619 14.5 12 14.5C12.1381 14.5 12.25 14.6119 12.25 14.75Z" fill="#2478DC"></path><path d="M12.5 9.75C12.5 9.88807 12.3881 10 12.25 10C12.1119 10 12 9.88807 12 9.75C12 9.61193 12.1119 9.5 12.25 9.5C12.3881 9.5 12.5 9.61193 12.5 9.75Z" fill="#2478DC"></path><path d="M14.5 9.25C14.5 9.38807 14.3881 9.5 14.25 9.5C14.1119 9.5 14 9.38807 14 9.25C14 9.11193 14.1119 9 14.25 9C14.3881 9 14.5 9.11193 14.5 9.25Z" fill="#2478DC"></path><path d="M13.5 9.125C13.5 9.33211 13.3321 9.5 13.125 9.5C12.9179 9.5 12.75 9.33211 12.75 9.125C12.75 8.91789 12.9179 8.75 13.125 8.75C13.3321 8.75 13.5 8.91789 13.5 9.125Z" fill="#2478DC"></path><path d="M13 11.625C13 11.8321 12.8321 12 12.625 12C12.4179 12 12.25 11.8321 12.25 11.625C12.25 11.4179 12.4179 11.25 12.625 11.25C12.8321 11.25 13 11.4179 13 11.625Z" fill="#2478DC"></path>',24),Q8e=[J8e],aO=ot({__name:"DiamondSemiIcon",props:{size:{type:Number,default:22}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q8e,8,X8e))}}),eke=["width","height"],tke=b2('<path d="M21.75 9.25L12 21.25L2.25 9.25L7.5 3.25H16.5L21.75 9.25Z" fill="#38ACFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12 21.75C11.8494 21.75 11.7069 21.6822 11.6119 21.5653L1.86194 9.5653C1.70835 9.37626 1.71332 9.10405 1.87371 8.92075L7.12371 2.92075C7.21866 2.81224 7.35582 2.75 7.5 2.75H16.5C16.6442 2.75 16.7813 2.81224 16.8763 2.92075L22.1263 8.92075C22.2867 9.10405 22.2916 9.37626 22.1381 9.5653L12.3881 21.5653C12.2931 21.6822 12.1506 21.75 12 21.75ZM7.5 3.25H16.5L21.75 9.25L12 21.25L2.25 9.25L7.5 3.25Z" fill="#042360"></path><path d="M16.5 3.25L21.75 9.25H2.25L7.5 3.25H16.5Z" fill="#63BDFF"></path><path d="M21.75 9.25L12 21.25V3.25H16.5L21.75 9.25Z" fill="#2D88F3"></path><path d="M21.75 9.25H12V3.25H16.5L21.75 9.25Z" fill="#53A1FE"></path><path d="M2.25 9.25L12 21.25L7 9.25L12 3.25H7.5L2.25 9.25Z" fill="#46CAF3"></path><path d="M7.75 3.25L2.25 9.25H7L12 3.25H7.75Z" fill="#68DBFF"></path><path d="M2.25 9.25L12 21.25L4 9.25L9.25 3.25H7.5L2.25 9.25Z" fill="#C1E9FF"></path><path d="M7.5 3.25L2.25 9.25H4L9.25 3.25H7.5Z" fill="#D8F1FF"></path><path d="M21.75 9.25L12 21.25L17 9.25L12 3.25H16.5L21.75 9.25Z" fill="#4E5CDE"></path><path d="M16.5 3.25L21.75 9.25H17L12 3.25H16.5Z" fill="#6A78F5"></path><path d="M21.75 9.25L12 21.25L20 9.25L14.75 3.25H16.5L21.75 9.25Z" fill="#2D88F3"></path><path d="M16.5 3.25L21.75 9.25H20L14.75 3.25H16.5Z" fill="#52A1FE"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6.66374 4.81108C6.76808 4.90151 6.77935 5.0594 6.68893 5.16374L3.43893 8.91374C3.3485 9.01808 3.19061 9.02935 3.08627 8.93893C2.98193 8.8485 2.97065 8.69061 3.06108 8.58627L6.31108 4.83627C6.40151 4.73193 6.5594 4.72065 6.66374 4.81108Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4137 4.81108C11.5181 4.90151 11.5294 5.0594 11.4389 5.16374L8.18893 8.91374C8.0985 9.01808 7.94061 9.02935 7.83627 8.93893C7.73193 8.8485 7.72065 8.69061 7.81108 8.58627L11.0611 4.83627C11.1515 4.73193 11.3094 4.72065 11.4137 4.81108Z" fill="#8FD0FF"></path><path d="M14.25 12.5C14.25 12.6381 14.1381 12.75 14 12.75C13.8619 12.75 13.75 12.6381 13.75 12.5C13.75 12.3619 13.8619 12.25 14 12.25C14.1381 12.25 14.25 12.3619 14.25 12.5Z" fill="#2478DC"></path><path d="M15 13.5C15 13.6381 14.8881 13.75 14.75 13.75C14.6119 13.75 14.5 13.6381 14.5 13.5C14.5 13.3619 14.6119 13.25 14.75 13.25C14.8881 13.25 15 13.3619 15 13.5Z" fill="#2478DC"></path><path d="M14 14.75C14 14.8881 13.8881 15 13.75 15C13.6119 15 13.5 14.8881 13.5 14.75C13.5 14.6119 13.6119 14.5 13.75 14.5C13.8881 14.5 14 14.6119 14 14.75Z" fill="#2478DC"></path><path d="M13.25 15.25C13.25 15.3881 13.1381 15.5 13 15.5C12.8619 15.5 12.75 15.3881 12.75 15.25C12.75 15.1119 12.8619 15 13 15C13.1381 15 13.25 15.1119 13.25 15.25Z" fill="#2478DC"></path><path d="M13.25 16.75C13.25 16.8881 13.1381 17 13 17C12.8619 17 12.75 16.8881 12.75 16.75C12.75 16.6119 12.8619 16.5 13 16.5C13.1381 16.5 13.25 16.6119 13.25 16.75Z" fill="#2478DC"></path><path d="M13.5 11.75C13.5 11.8881 13.3881 12 13.25 12C13.1119 12 13 11.8881 13 11.75C13 11.6119 13.1119 11.5 13.25 11.5C13.3881 11.5 13.5 11.6119 13.5 11.75Z" fill="#2478DC"></path><path d="M15.5 11.25C15.5 11.3881 15.3881 11.5 15.25 11.5C15.1119 11.5 15 11.3881 15 11.25C15 11.1119 15.1119 11 15.25 11C15.3881 11 15.5 11.1119 15.5 11.25Z" fill="#2478DC"></path><path d="M14.5 11.125C14.5 11.3321 14.3321 11.5 14.125 11.5C13.9179 11.5 13.75 11.3321 13.75 11.125C13.75 10.9179 13.9179 10.75 14.125 10.75C14.3321 10.75 14.5 10.9179 14.5 11.125Z" fill="#2478DC"></path><path d="M14 13.625C14 13.8321 13.8321 14 13.625 14C13.4179 14 13.25 13.8321 13.25 13.625C13.25 13.4179 13.4179 13.25 13.625 13.25C13.8321 13.25 14 13.4179 14 13.625Z" fill="#2478DC"></path>',24),nke=[tke],qh=ot({__name:"DiamondBlueIcon",props:{size:{type:Number,default:24}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nke,8,eke))}}),ike=["width","height"],rke=["fill"],oO=ot({__name:"CalendarIcon",props:{size:{type:Number,default:17},color:{type:String,default:"#007058"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M14.25 1.5H12.375V0.875C12.375 0.70924 12.3092 0.550268 12.1919 0.433058C12.0747 0.315848 11.9158 0.25 11.75 0.25C11.5842 0.25 11.4253 0.315848 11.3081 0.433058C11.1908 0.550268 11.125 0.70924 11.125 0.875V1.5H4.875V0.875C4.875 0.70924 4.80915 0.550268 4.69194 0.433058C4.57473 0.315848 4.41576 0.25 4.25 0.25C4.08424 0.25 3.92527 0.315848 3.80806 0.433058C3.69085 0.550268 3.625 0.70924 3.625 0.875V1.5H1.75C1.41848 1.5 1.10054 1.6317 0.866116 1.86612C0.631696 2.10054 0.5 2.41848 0.5 2.75V15.25C0.5 15.5815 0.631696 15.8995 0.866116 16.1339C1.10054 16.3683 1.41848 16.5 1.75 16.5H14.25C14.5815 16.5 14.8995 16.3683 15.1339 16.1339C15.3683 15.8995 15.5 15.5815 15.5 15.25V2.75C15.5 2.41848 15.3683 2.10054 15.1339 1.86612C14.8995 1.6317 14.5815 1.5 14.25 1.5ZM3.625 2.75V3.375C3.625 3.54076 3.69085 3.69973 3.80806 3.81694C3.92527 3.93415 4.08424 4 4.25 4C4.41576 4 4.57473 3.93415 4.69194 3.81694C4.80915 3.69973 4.875 3.54076 4.875 3.375V2.75H11.125V3.375C11.125 3.54076 11.1908 3.69973 11.3081 3.81694C11.4253 3.93415 11.5842 4 11.75 4C11.9158 4 12.0747 3.93415 12.1919 3.81694C12.3092 3.69973 12.375 3.54076 12.375 3.375V2.75H14.25V5.25H1.75V2.75H3.625ZM14.25 15.25H1.75V6.5H14.25V15.25ZM11.2547 8.55781C11.3128 8.61586 11.3589 8.68479 11.3904 8.76066C11.4218 8.83654 11.438 8.91787 11.438 9C11.438 9.08213 11.4218 9.16346 11.3904 9.23934C11.3589 9.31521 11.3128 9.38414 11.2547 9.44219L7.50469 13.1922C7.44664 13.2503 7.37771 13.2964 7.30184 13.3279C7.22596 13.3593 7.14463 13.3755 7.0625 13.3755C6.98037 13.3755 6.89904 13.3593 6.82316 13.3279C6.74729 13.2964 6.67836 13.2503 6.62031 13.1922L4.74531 11.3172C4.62804 11.1999 4.56215 11.0409 4.56215 10.875C4.56215 10.7091 4.62804 10.5501 4.74531 10.4328C4.86259 10.3155 5.02165 10.2497 5.1875 10.2497C5.35335 10.2497 5.51241 10.3155 5.62969 10.4328L7.0625 11.8664L10.3703 8.55781C10.4284 8.4997 10.4973 8.4536 10.5732 8.42215C10.649 8.3907 10.7304 8.37451 10.8125 8.37451C10.8946 8.37451 10.976 8.3907 11.0518 8.42215C11.1277 8.4536 11.1966 8.4997 11.2547 8.55781Z",fill:e.color},null,8,rke)],8,ike))}}),ake={class:"d-flex flex-column ga-0 mt-2"},oke={class:"pack-title d-flex flex-wrap align-center ga-1"},ske={key:0,class:"d-flex align-center ga-1 rounded-pill bg-secondary selected"},lke={class:"min-desc"},uke={key:0,class:"d-flex ga-2"},cke={key:1,class:"d-flex ga-2"},dke={key:2,class:"d-flex ga-2"},fke={key:3,class:"d-flex ga-2"},hke={class:"d-flex align-center ga-2"},pke={class:"pack-price d-flex align-center"},mke={key:0,class:"price-charge"},vke={key:0},gke={key:1},yke={class:"d-flex justify-space-between align-center py-1 ga-1"},_ke={class:"d-flex flex-column ga-1"},bke={key:0,class:"appoint-number"},wke={key:1,class:"appoint-number"},Ske={class:"croiss-auto"},Cke={class:"d-flex ga-1 align-center"},Eke={key:0,class:"max-appointment-allowed"},xke={class:"pb-5"},kke={class:"my-5"},Tke=["innerHTML"],Pke={class:"d-flex align-center justify-space-between pb-5"},$ke={class:"d-flex flex-column ga-0"},Ake={class:"appoint-number d-flex align-center flex-wrap"},Oke={class:"min-desc"},Dke={class:"visio-actived-text d-flex align-center ga-1 font-weight-bold"},Ike={class:"feature-list d-flex flex-column ga-2"},Nke={key:0,width:"18",height:"18",src:U8e},Mke={key:1,width:"18",height:"18",src:H8e},Lke={key:1,class:"d-sm-flex w-100"},Rke={class:"w-sm-33 text-center d-flex flex-column ga-3 pa-2"},Fke={class:"d-flex justify-center"},Vke={class:"d-flex flex-column text-center ga-0 mt-2"},Bke={class:"pack-ineline-title d-flex align-center justify-center ga-1"},zke={class:"min-desc"},jke={class:"d-flex justify-center"},Uke={key:0,class:"d-flex ga-2"},Hke={key:1,class:"d-flex ga-2"},qke={key:2,class:"d-flex ga-2"},Yke={key:3,class:"d-flex ga-2"},Wke={class:"pa-2 w-sm-66"},Gke={class:"d-flex flex-column ga-3"},Kke={class:"d-flex align-center ga-2 justify-between"},Zke={class:"pack-ineline-price"},Xke={key:0,class:"price-charge"},Jke={key:1,class:"price-charge"},Qke={class:"d-flex justify-space-between align-center py-1 ga-1"},eTe={class:"d-flex flex-column ga-1"},tTe={key:0,class:"appoint-number"},nTe={key:1,class:"appoint-number"},iTe={class:"croiss-auto"},rTe={class:"d-flex ga-1 align-center"},aTe={key:0,style:{"font-weight":"700",color:"#029978","font-size":"24px","line-height":"140%","letter-spacing":"0%"}},oTe=["innerHTML"],sTe=ot({__name:"PackagesCard",props:{thePackage:{type:Object,required:!0},displayAction:{type:Boolean,default:!0},displayPriceWithTva:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},displayMore:{type:Boolean,default:!1},showFeature:{type:Boolean,default:!0},classes:{type:String,default:"rounded-b-xl border-t-0 rounded-t-0 shadow-lg"},selected_tmp_id:{type:String,default:""},loadingPrice:{type:Boolean,default:!1},ineline:{type:Boolean,default:!1}},setup(e){const{t}=gn(),n=Ss("selected-pack",{}),i=Un(),r=e,a=Kr(),o=z(""),s=B(()=>{if(a.subscriptionStatus&&a.subscriptionStatus.subscriptionLevel){const f=a.subscriptionStatus.subscriptionLevel;return o.value=f.id,f.id}}),l=z(r.showFeature),u=()=>{n.value={id:r.thePackage.id,name:r.thePackage.name,price:r.thePackage.price,type:r.thePackage.type,category:r.thePackage.category,addons:r.thePackage.addons},i.isLogged?i.isLogged&&!i.user.isSignUpIncomplete&&i.user.profilType==="practitioner"?In.push({name:"DashboardChangeSubscription"}):In.push({name:"StepTwo",query:{nextStep:"subscription"}}):In.push({name:"Register"})},c=B(()=>Number(r.thePackage.contributionNote)),d=f=>{if(!i.user.isSignUpIncomplete&&f.category==="premium"&&f.type==="monthly"){In.push({name:"DashboardChangeSubscription"});return}};return(f,h)=>(J(),ve("div",null,[C(Cn,{disabled:e.disabled,class:Gt(["pack-card cursor-pointer",e.classes,{"border-lg border-opacity-100 border-secondary custom-shadow":e.thePackage.category==="premium"&&!e.ineline,"border-lg border-opacity-100 border-secondary":e.selected_tmp_id===e.thePackage.id}]),border:"sm",elevation:"0",color:e.selected_tmp_id===e.thePackage.id?"#eafffa":"white"},{default:le(()=>{var m,g,v,y,_,S,w,x;return[e.ineline?(J(),ve("div",Lke,[F("div",Rke,[F("div",Fke,[C(Ii,{eager:"",width:40,height:40,alt:e.thePackage.name,src:(_=e.thePackage.icon)==null?void 0:_.url},null,8,["alt","src"])]),F("div",Vke,[F("h2",Bke,[F("span",null,Q(e.thePackage.name),1)]),F("span",zke,Q(e.thePackage.contributionTitle),1)]),F("div",jke,[c.value==0?(J(),ve("div",Uke,[C(aO),(J(),ve(Ue,null,Ht(4,k=>C(Hh)),64))])):De("",!0),c.value==1?(J(),ve("div",Hke,[C(qh),(J(!0),ve(Ue,null,Ht(5-c.value,k=>(J(),je(Hh))),256))])):De("",!0),c.value==2?(J(),ve("div",qke,[(J(!0),ve(Ue,null,Ht(c.value,k=>(J(),je(qh))),256)),(J(!0),ve(Ue,null,Ht(5-c.value,k=>(J(),je(Hh))),256))])):De("",!0),c.value==5?(J(),ve("div",Yke,[(J(!0),ve(Ue,null,Ht(c.value,k=>(J(),je(qh))),256))])):De("",!0)])]),C(jn,{vertical:""}),F("div",Wke,[F("div",Gke,[F("div",Kke,[F("span",Zke,Q(e.displayPriceWithTva&&!e.disabled?e.thePackage.priceWithTva:(S=e.thePackage)==null?void 0:S.price)+"€ ",1),(w=e.thePackage.type)!=null&&w.includes("life")?De("",!0):(J(),ve("span",Xke,Q(e.displayPriceWithTva&&!e.disabled?"TTC":"H.T")+"/"+Q(e.thePackage.type==="annually"?"An":"Mois"),1)),(x=e.thePackage.type)!=null&&x.includes("life")?(J(),ve("span",Jke,Q(e.displayPriceWithTva&&!e.disabled?"TTC":"H.T"),1)):De("",!0)]),F("div",null,[C(jn),F("div",Qke,[F("div",eTe,[e.thePackage.maxAppointmentAllowed>0?(J(),ve("span",tTe,Q(f.$t("subscriptionCard.rdv_count",{value:e.thePackage.maxAppointmentAllowed})),1)):De("",!0),e.thePackage.maxAppointmentAllowed===0?(J(),ve("span",nTe,Q(K(t)("holitime_ref")),1)):De("",!0),F("span",iTe,"("+Q(f.$t("subscriptionCard.self_growth"))+")",1)]),F("div",rTe,[e.thePackage.maxAppointmentAllowed>=0?(J(),ve("span",aTe,Q(e.thePackage.maxAppointmentAllowed),1)):De("",!0),C(oO,{color:"#007058",size:16})])]),C(jn)]),F("div",{class:"pack-desc",innerHTML:e.thePackage.description},null,8,oTe)])])])):(J(),ve(Ue,{key:0},[F("div",null,[C(Ii,{eager:"",width:40,height:40,alt:e.thePackage.name,src:(m=e.thePackage.icon)==null?void 0:m.url},null,8,["alt","src"]),F("div",ake,[F("h2",oke,[F("span",null,Q(e.thePackage.name),1),s.value===e.thePackage.id?(J(),ve("span",ske,[C(W8e,{color:"#FFFFFF"}),F("span",null,Q(f.$t("subscriptionCard.selected")),1)])):De("",!0)]),F("span",lke,Q(e.thePackage.contributionTitle),1)]),c.value==0?(J(),ve("div",uke,[C(aO),(J(),ve(Ue,null,Ht(4,k=>C(Hh,{key:k})),64))])):De("",!0),c.value==1?(J(),ve("div",cke,[C(qh),(J(!0),ve(Ue,null,Ht(5-c.value,k=>(J(),je(Hh,{key:k}))),128))])):De("",!0),c.value==2?(J(),ve("div",dke,[(J(!0),ve(Ue,null,Ht(c.value,k=>(J(),je(qh,{key:k}))),128)),(J(!0),ve(Ue,null,Ht(5-c.value,k=>(J(),je(Hh,{key:k}))),128))])):De("",!0),c.value==5?(J(),ve("div",fke,[(J(!0),ve(Ue,null,Ht(c.value,k=>(J(),je(qh,{key:k}))),128))])):De("",!0)]),F("div",hke,[F("div",pke,[e.loadingPrice&&!e.disabled?(J(),je(ad,{key:0,size:20,witdth:5,indeterminate:"",color:"gray-80"})):De("",!0),F("span",null,Q(e.displayPriceWithTva&&!e.disabled?e.thePackage.priceWithTva:(g=e.thePackage)==null?void 0:g.price)+"€ ",1)]),(v=e.thePackage.type)!=null&&v.includes("life")?De("",!0):(J(),ve("div",mke,[Ze(Q(e.displayPriceWithTva&&!e.disabled?"TTC":"H.T")+" ",1),e.thePackage.type==="annually"?(J(),ve("span",vke,"/An")):De("",!0),e.thePackage.type==="monthly"?(J(),ve("span",gke,"/Mois")):De("",!0)]))]),e.thePackage.type==="monthly"?(J(),ve(Ue,{key:0},[C(jn),F("div",yke,[F("div",_ke,[e.thePackage.maxAppointmentAllowed>0?(J(),ve("span",bke,Q(f.$t("subscriptionCard.rdv_count",{value:e.thePackage.maxAppointmentAllowed})),1)):De("",!0),e.thePackage.maxAppointmentAllowed===0?(J(),ve("span",wke,Q(K(t)("holitime_ref")),1)):De("",!0),F("span",Ske,"("+Q(f.$t("subscriptionCard.self_growth"))+")",1)]),F("div",Cke,[e.thePackage.maxAppointmentAllowed>=0?(J(),ve("span",Eke,Q(e.thePackage.maxAppointmentAllowed),1)):De("",!0),C(oO,{color:"#007058",size:16})])]),C(jn)],64)):De("",!0),F("div",xke,[F("div",kke,[e.displayAction?(J(),je(Je,{key:0,"data-cy":`step2-button-type-${e.thePackage.name}`,class:Gt(["my-2",{"border border-md border-secondary border-opacity-100":e.thePackage.category!=="premium"}]),block:"",variant:e.thePackage.category==="premium"?"flat":"outlined",color:"#029978",onClick:h[0]||(h[0]=()=>u())},{default:le(()=>[Ze(Q(K(i).isLogged&&!K(i).user.isSignUpIncomplete?f.$t("subscriptionCard.change_btn"):K(i).isLogged?f.$t("subscriptionCard.next_btn"):f.$t("subscriptionCard.register_btn")),1)]),_:1},8,["data-cy","variant","class"])):De("",!0),F("div",{onClick:h[1]||(h[1]=()=>d(e.thePackage)),class:Gt([{"border-dashed border-yellow rounded-pill text-center":e.thePackage.type==="annually","text-decoration-underline":e.thePackage.category==="premium"&&e.thePackage.type==="monthly"},"pack-desc cursor-pointer"]),style:pa(e.thePackage.type==="annually"?{color:"#9C7E3A",backgroundColor:"#FFFBF1",padding:"8px 12px"}:{}),innerHTML:e.thePackage.description},null,14,Tke)]),C(jn)]),K(In).currentRoute.value.name==="DashboardSubscription"?(J(!0),ve(Ue,{key:1},Ht((y=K(i).user)==null?void 0:y.addons,k=>{var P;return J(),ve("div",Pke,[F("div",$ke,[F("h2",Ake,Q(k.name+((P=k==null?void 0:k.billing)!=null&&P.includes("life")?" (A vie)":k.billing?k.billing.includes("monthly")?" (Mensuel)":" (Annuel)":"")),1),F("span",Oke," ("+Q(k.description)+") ",1)]),F("div",Dke,[Ze(" Activé "),C(ut,{color:"#029978",size:"15"},{default:le(()=>[Ze("mdi-check-circle")]),_:1})])])}),256)):De("",!0),F("div",Ike,[l.value?(J(!0),ve(Ue,{key:0},Ht(e.thePackage.advantages,(k,P)=>(J(),ve("div",{key:P,class:"d-flex align-center ga-2"},[k.status?(J(),ve("img",Nke)):(J(),ve("img",Mke)),F("span",null,Q(k.title),1)]))),128)):De("",!0),e.displayMore?(J(),ve("div",{key:1,onClick:h[2]||(h[2]=k=>l.value=!l.value),class:"d-flex align-center cursor-pointer d-flex justify-center text-secondary"},[F("span",null,Q(l.value?f.$t("subscriptionCard.less_details"):f.$t("subscriptionCard.more_details")),1),C(ut,null,{default:le(()=>[Ze(Q(l.value?"mdi-chevron-up":"mdi-chevron-down"),1)]),_:1})])):De("",!0)])],64))]}),_:1},8,["disabled","class","color"])]))}});const B4=on(sTe,[["__scopeId","data-v-a2062145"]]),Fk=e=>(ul("data-v-d724290c"),e=e(),cl(),e),lTe={class:""},uTe={key:0},cTe={class:""},dTe={class:"px-3 py-2"},fTe=Fk(()=>F("div",{id:"card-element"},"Elements will create input elements here",-1)),hTe={class:"d-sm-flex"},pTe={class:"w-sm-50 border-custom pa-3"},mTe=Fk(()=>F("div",{id:"card-expiry"}," Elements will create input elements here ",-1)),vTe={class:"w-sm-50 pa-3"},gTe=Fk(()=>F("div",{id:"card-cvc",style:{width:"100%"}}," Elements will create input elements here ",-1)),yTe=ot({__name:"PaymentField",props:{displayLabel:{type:Boolean,default:!1},loading:Boolean,cyContexte:{type:String,default:"dashboard"}},setup(e,{expose:t}){const n=Un(),{stripe:i,stripeError:r,stripeCard:a,stripeCardExpiry:o,stripeCardCvc:s,initStripe:l}=xU(A2()),u=z("");tn(async()=>{console.info("---init---"),await l()});const c=async()=>{try{const m=await i.value.createPaymentMethod({type:"card",card:a.value,billing_details:{name:u.value||n.user.firstName+n.user.lastName}});return m.error?{status:!1,error:m.error.message}:{status:!0,paymentMethodId:m.paymentMethod.id}}catch{return{status:!1,error:"Une erreur est survenue",paymentMethodId:null}}},d=async(m,g)=>{try{const v=await i.value.confirmCardSetup(m,{payment_method:g});return v.error?{status:!1,error:v.error.message}:{status:!0,error:""}}catch{return{status:!1,error:"Une erreur est survenue"}}},f=async(m,g)=>{try{const v=await i.value.confirmCardPayment(m,{payment_method:g});return v.error?{status:!1,error:v.error.message}:{status:!0,error:""}}catch{return{status:!1,error:"Une erreur est survenue"}}},h=m=>{setTimeout(()=>{m.focus()},10)};return t({paymentMethod:c,confirmCardPayment:f,confirmCardSetup:d,initStripe:l}),(m,g)=>{const v=p2("card-input");return J(),ve("div",lTe,[e.displayLabel?(J(),ve("div",uTe,[F("label",cTe,Q(m.$t("bank-info-title")),1),C(Tn,{class:"mt-2",rounded:"lg",density:"compact",readonly:e.loading,placeholder:m.$t("name-in-cart"),required:"",type:"text","bg-color":"white",modelValue:u.value,"onUpdate:modelValue":g[0]||(g[0]=y=>u.value=y),"data-cy":`${e.cyContexte}-cart-name-input`},null,8,["readonly","placeholder","modelValue","data-cy"])])):De("",!0),C(Cn,{color:"white",elevation:"0",border:""},{default:le(()=>[F("div",dTe,[C(v,{"onUpdate:focused":g[1]||(g[1]=y=>h(K(a))),"error-messages":K(r),readonly:e.loading,"data-cy":`${e.cyContexte}-cart-number-input`},{default:le(()=>[fTe]),_:1},8,["error-messages","readonly","data-cy"])]),C(jn),C(br,{border:"",class:"pa-0"},{default:le(()=>[F("div",hTe,[F("div",pTe,[C(v,{placeholder:"MM / AA","onUpdate:focused":g[2]||(g[2]=y=>h(K(o))),"hide-details":"",readonly:e.loading,"data-cy":`${e.cyContexte}-cart-expired-date-input`},{default:le(()=>[mTe]),_:1},8,["readonly","data-cy"])]),F("div",vTe,[C(v,{placeholder:"***","onUpdate:focused":g[3]||(g[3]=y=>h(K(s))),"hide-details":"",readonly:e.loading,"data-cy":`${e.cyContexte}-cart-cvc-input`},{default:le(()=>[gTe]),_:1},8,["readonly","data-cy"])])])]),_:1})]),_:1})])}}});const kU=on(yTe,[["__scopeId","data-v-d724290c"]]),_Te=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,EYe=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z\d]).{8,}$/,bTe=/^[A-Z]{2}[A-Z0-9]{2,12}$/,Bb=e=>{Array.isArray(e)?e.forEach(t=>Bb(t)):Object.keys(e).forEach(t=>{typeof e[t]=="object"&&e[t]!==null&&"error"in e[t]&&(e[t].error=void 0)})},sO=(e,t)=>{Bb(e);const n=[],i=Array.isArray(e)?e:[e],r=(a,o,s)=>{for(const[l,u]of Object.entries(o)){let c=!1;for(const d of s)if(l in d){c=!0;break}c?l in a&&typeof a[l]=="object"&&a[l]!==null&&(a[l].error=u,"value"in a[l]&&Array.isArray(a[l].value)&&a[l].value.every(d=>typeof d=="object"&&d!==null)?(Array.isArray(u)||typeof u=="object")&&a[l].value.forEach((d,f)=>{f in u&&(d.error=u[f])}):a[l].error=u):n.push(u)}};return i.forEach(a=>r(a,t,i)),[...new Set(n)]},lO=()=>{const e=document.querySelector(".v-input--error, .text-error");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},wTe=["width","height"],STe=["fill"],kg=ot({__name:"LocationIcon",props:{width:{type:Number,default:12},height:{type:Number,default:14},color:{type:String,default:"#616161"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M6 3.28125C5.52409 3.28125 5.05887 3.42237 4.66316 3.68678C4.26745 3.95118 3.95904 4.32698 3.77692 4.76667C3.59479 5.20635 3.54714 5.69017 3.63999 6.15694C3.73283 6.6237 3.962 7.05246 4.29852 7.38898C4.63504 7.7255 5.0638 7.95467 5.53056 8.04752C5.99733 8.14036 6.48115 8.09271 6.92083 7.91059C7.36052 7.72846 7.73632 7.42005 8.00072 7.02434C8.26513 6.62864 8.40625 6.16341 8.40625 5.6875C8.40553 5.04955 8.15178 4.43793 7.70068 3.98682C7.24957 3.53572 6.63796 3.28197 6 3.28125ZM6 6.78125C5.78368 6.78125 5.57221 6.7171 5.39235 6.59692C5.21248 6.47674 5.07229 6.30592 4.98951 6.10606C4.90672 5.9062 4.88506 5.68629 4.92727 5.47412C4.96947 5.26195 5.07364 5.06707 5.2266 4.9141C5.37957 4.76114 5.57445 4.65697 5.78662 4.61477C5.99879 4.57256 6.2187 4.59422 6.41856 4.67701C6.61842 4.75979 6.78924 4.89998 6.90942 5.07985C7.0296 5.25971 7.09375 5.47118 7.09375 5.6875C7.09375 5.97758 6.97852 6.25578 6.7734 6.4609C6.56828 6.66602 6.29008 6.78125 6 6.78125ZM6 0.65625C4.66607 0.657698 3.3872 1.18824 2.44397 2.13147C1.50074 3.0747 0.970198 4.35357 0.96875 5.6875C0.96875 9.91813 5.43344 13.0922 5.62375 13.2251C5.73404 13.3023 5.86539 13.3436 6 13.3436C6.13461 13.3436 6.26596 13.3023 6.37625 13.2251C7.22187 12.6019 7.99553 11.8865 8.68297 11.0923C10.2191 9.32805 11.0313 7.45773 11.0313 5.6875C11.0298 4.35357 10.4993 3.0747 9.55603 2.13147C8.6128 1.18824 7.33393 0.657698 6 0.65625ZM7.71172 10.2107C7.19029 10.8097 6.61754 11.3619 6 11.8612C5.38246 11.3619 4.80971 10.8097 4.28828 10.2107C3.375 9.15305 2.28125 7.50914 2.28125 5.6875C2.28125 4.70123 2.67305 3.75535 3.37045 3.05795C4.06785 2.36055 5.01373 1.96875 6 1.96875C6.98627 1.96875 7.93215 2.36055 8.62955 3.05795C9.32696 3.75535 9.71875 4.70123 9.71875 5.6875C9.71875 7.50914 8.625 9.15305 7.71172 10.2107Z",fill:e.color},null,8,STe)],8,wTe))}}),CTe=["width","height"],ETe=["fill"],TU=ot({__name:"DurationIcon",props:{size:{type:Number,default:14},color:{type:String,default:"#616161"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M13.4998 7.54295C13.3936 8.77793 12.9369 9.95689 12.1834 10.9411C11.4299 11.9253 10.4109 12.6739 9.24645 13.0987C8.08197 13.5235 6.82039 13.6069 5.61013 13.339C4.39987 13.0712 3.29128 12.4632 2.41479 11.5868C1.5383 10.7103 0.930374 9.60168 0.66253 8.39142C0.394686 7.18116 0.478069 5.91957 0.902869 4.75509C1.32767 3.59061 2.07621 2.57168 3.06044 1.81817C4.04466 1.06466 5.22362 0.607927 6.4586 0.501699C6.52426 0.496282 6.59034 0.503851 6.65308 0.523973C6.71582 0.544096 6.77397 0.576378 6.82423 0.618977C6.87449 0.661576 6.91587 0.713657 6.946 0.772247C6.97614 0.830837 6.99443 0.894788 6.99985 0.960449C7.00527 1.02611 6.9977 1.09219 6.97757 1.15493C6.95745 1.21767 6.92517 1.27582 6.88257 1.32608C6.83997 1.37634 6.78789 1.41772 6.7293 1.44785C6.67071 1.47798 6.60676 1.49628 6.5411 1.5017C5.49584 1.59151 4.49798 1.97799 3.66492 2.61568C2.83186 3.25336 2.19826 4.11572 1.83868 5.10128C1.47909 6.08684 1.40848 7.1546 1.63515 8.17893C1.86182 9.20326 2.37634 10.1415 3.11818 10.8834C3.86001 11.6252 4.79829 12.1397 5.82262 12.3664C6.84695 12.5931 7.91471 12.5225 8.90027 12.1629C9.88583 11.8033 10.7482 11.1697 11.3859 10.3366C12.0236 9.50357 12.41 8.50571 12.4998 7.46045C12.5108 7.32784 12.574 7.20501 12.6755 7.11898C12.777 7.03294 12.9085 6.99076 13.0411 7.0017C13.1737 7.01264 13.2965 7.07581 13.3826 7.17731C13.4686 7.27882 13.5108 7.41034 13.4998 7.54295ZM6.49985 3.5017V7.0017C6.49985 7.13431 6.55253 7.26148 6.6463 7.35525C6.74006 7.44902 6.86724 7.5017 6.99985 7.5017H10.4998C10.6325 7.5017 10.7596 7.44902 10.8534 7.35525C10.9472 7.26148 10.9998 7.13431 10.9998 7.0017C10.9998 6.86909 10.9472 6.74191 10.8534 6.64815C10.7596 6.55438 10.6325 6.5017 10.4998 6.5017H7.49985V3.5017C7.49985 3.36909 7.44717 3.24191 7.3534 3.14815C7.25963 3.05438 7.13246 3.0017 6.99985 3.0017C6.86724 3.0017 6.74006 3.05438 6.6463 3.14815C6.55253 3.24191 6.49985 3.36909 6.49985 3.5017ZM8.99985 2.0017C9.14819 2.0017 9.29319 1.95771 9.41653 1.8753C9.53986 1.79289 9.63599 1.67576 9.69276 1.53871C9.74952 1.40167 9.76438 1.25087 9.73544 1.10538C9.7065 0.959895 9.63507 0.826258 9.53018 0.721369C9.42529 0.616479 9.29165 0.545049 9.14617 0.51611C9.00068 0.487171 8.84988 0.502023 8.71284 0.558789C8.57579 0.615555 8.45866 0.711684 8.37625 0.835021C8.29384 0.958358 8.24985 1.10336 8.24985 1.2517C8.24985 1.45061 8.32887 1.64138 8.46952 1.78203C8.61017 1.92268 8.80094 2.0017 8.99985 2.0017ZM11.2498 3.5017C11.3982 3.5017 11.5432 3.45771 11.6665 3.3753C11.7899 3.29289 11.886 3.17576 11.9428 3.03871C11.9995 2.90167 12.0144 2.75087 11.9854 2.60538C11.9565 2.4599 11.8851 2.32626 11.7802 2.22137C11.6753 2.11648 11.5417 2.04505 11.3962 2.01611C11.2507 1.98717 11.0999 2.00202 10.9628 2.05879C10.8258 2.11555 10.7087 2.21168 10.6262 2.33502C10.5438 2.45836 10.4998 2.60336 10.4998 2.7517C10.4998 2.95061 10.5789 3.14138 10.7195 3.28203C10.8602 3.42268 11.0509 3.5017 11.2498 3.5017ZM12.7498 5.7517C12.8982 5.7517 13.0432 5.70771 13.1665 5.6253C13.2899 5.54289 13.386 5.42576 13.4428 5.28871C13.4995 5.15167 13.5144 5.00087 13.4854 4.85538C13.4565 4.70989 13.3851 4.57626 13.2802 4.47137C13.1753 4.36648 13.0417 4.29505 12.8962 4.26611C12.7507 4.23717 12.5999 4.25202 12.4628 4.30879C12.3258 4.36555 12.2087 4.46168 12.1262 4.58502C12.0438 4.70836 11.9998 4.85336 11.9998 5.0017C11.9998 5.20061 12.0789 5.39138 12.2195 5.53203C12.3602 5.67268 12.5509 5.7517 12.7498 5.7517Z",fill:e.color},null,8,ETe)],8,CTe))}}),xTe=["width","height"],kTe=["fill"],TTe=ot({__name:"ProfileIcon",props:{width:{type:Number,default:20},height:{type:Number,default:12},color:{type:String,default:"#616161"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M11.2501 2.25215C11.2501 2.08639 11.316 1.92742 11.4332 1.81021C11.5504 1.693 11.7094 1.62715 11.8751 1.62715H19.3751C19.5409 1.62715 19.6998 1.693 19.8171 1.81021C19.9343 1.92742 20.0001 2.08639 20.0001 2.25215C20.0001 2.41791 19.9343 2.57689 19.8171 2.6941C19.6998 2.81131 19.5409 2.87715 19.3751 2.87715H11.8751C11.7094 2.87715 11.5504 2.81131 11.4332 2.6941C11.316 2.57689 11.2501 2.41791 11.2501 2.25215ZM19.3751 5.37715H11.8751C11.7094 5.37715 11.5504 5.443 11.4332 5.56021C11.316 5.67742 11.2501 5.83639 11.2501 6.00215C11.2501 6.16791 11.316 6.32689 11.4332 6.4441C11.5504 6.56131 11.7094 6.62715 11.8751 6.62715H19.3751C19.5409 6.62715 19.6998 6.56131 19.8171 6.4441C19.9343 6.32689 20.0001 6.16791 20.0001 6.00215C20.0001 5.83639 19.9343 5.67742 19.8171 5.56021C19.6998 5.443 19.5409 5.37715 19.3751 5.37715ZM19.3751 9.12715H13.7501C13.5844 9.12715 13.4254 9.193 13.3082 9.31021C13.191 9.42742 13.1251 9.58639 13.1251 9.75215C13.1251 9.91791 13.191 10.0769 13.3082 10.1941C13.4254 10.3113 13.5844 10.3772 13.7501 10.3772H19.3751C19.5409 10.3772 19.6998 10.3113 19.8171 10.1941C19.9343 10.0769 20.0001 9.91791 20.0001 9.75215C20.0001 9.58639 19.9343 9.42742 19.8171 9.31021C19.6998 9.193 19.5409 9.12715 19.3751 9.12715ZM11.8556 10.8459C11.876 10.9254 11.8806 11.0082 11.869 11.0895C11.8575 11.1707 11.83 11.2489 11.7882 11.3196C11.7464 11.3903 11.6911 11.452 11.6255 11.5013C11.5598 11.5506 11.4851 11.5864 11.4056 11.6068C11.3546 11.6206 11.3021 11.6274 11.2493 11.6272C11.1107 11.6272 10.976 11.5812 10.8664 11.4964C10.7568 11.4115 10.6785 11.2926 10.6439 11.1584C10.1626 9.28809 8.27355 7.87715 6.24933 7.87715C4.22511 7.87715 2.33605 9.28731 1.8548 11.1584C1.81336 11.319 1.70983 11.4565 1.56698 11.5408C1.42413 11.625 1.25366 11.6491 1.09308 11.6076C0.9325 11.5662 0.794959 11.4626 0.710714 11.3198C0.626469 11.1769 0.602421 11.0065 0.643862 10.8459C1.08058 9.14981 2.35011 7.77637 3.96105 7.0959C3.34076 6.61814 2.88557 5.9582 2.65932 5.20865C2.43306 4.4591 2.4471 3.65753 2.69944 2.91636C2.95179 2.17519 3.4298 1.53159 4.06643 1.07583C4.70306 0.620066 5.46638 0.375 6.24933 0.375C7.03228 0.375 7.7956 0.620066 8.43223 1.07583C9.06886 1.53159 9.54687 2.17519 9.79922 2.91636C10.0516 3.65753 10.0656 4.4591 9.83934 5.20865C9.61309 5.9582 9.1579 6.61814 8.53761 7.0959C10.1493 7.77637 11.4189 9.14981 11.8556 10.8459ZM6.25011 6.62715C6.74457 6.62715 7.22791 6.48053 7.63904 6.20583C8.05016 5.93112 8.37059 5.54068 8.55981 5.08386C8.74903 4.62705 8.79854 4.12438 8.70208 3.63943C8.60561 3.15448 8.36751 2.70902 8.01788 2.35939C7.66825 2.00976 7.22279 1.77165 6.73784 1.67519C6.25289 1.57873 5.75022 1.62824 5.2934 1.81745C4.83659 2.00667 4.44614 2.32711 4.17144 2.73823C3.89673 3.14935 3.75011 3.6327 3.75011 4.12715C3.75011 4.7902 4.0135 5.42608 4.48234 5.89492C4.95119 6.36376 5.58707 6.62715 6.25011 6.62715Z",fill:e.color},null,8,kTe)],8,xTe))}}),PTe=["width","height"],$Te=["fill","stroke"],Tg=ot({__name:"visioIcon",props:{width:{type:Number,default:15},height:{type:Number,default:10},color:{type:String,default:"#007058"},outlined:{type:Boolean,default:!1}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 15 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M11 1.5V8.5C11 8.76522 10.8946 9.01957 10.7071 9.20711C10.5196 9.39464 10.2652 9.5 10 9.5H1C0.734784 9.5 0.48043 9.39464 0.292893 9.20711C0.105357 9.01957 0 8.76522 0 8.5V1.5C0 1.23478 0.105357 0.98043 0.292893 0.792893C0.48043 0.605357 0.734784 0.5 1 0.5H10C10.2652 0.5 10.5196 0.605357 10.7071 0.792893C10.8946 0.98043 11 1.23478 11 1.5ZM14.625 1.51562C14.5545 1.49836 14.4811 1.49623 14.4096 1.50938C14.3382 1.52252 14.2704 1.55063 14.2106 1.59188L12.1113 2.99125C12.077 3.0141 12.0489 3.04505 12.0295 3.08136C12.0101 3.11767 12 3.15821 12 3.19938V6.80062C12 6.84179 12.0101 6.88233 12.0295 6.91864C12.0489 6.95495 12.077 6.9859 12.1113 7.00875L14.2225 8.41625C14.3015 8.46896 14.3939 8.49808 14.4889 8.50018C14.5839 8.50228 14.6775 8.47729 14.7588 8.42813C14.834 8.38032 14.8956 8.31401 14.9379 8.23555C14.9801 8.15709 15.0015 8.0691 15 7.98V2C15.0001 1.88911 14.9632 1.78135 14.8954 1.69366C14.8275 1.60598 14.7324 1.54335 14.625 1.51562Z",fill:e.outlined?"none":e.color,stroke:e.outlined?e.color:"none","stroke-width":"2"},null,8,$Te)],8,PTe))}}),ATe=["width","height"],OTe=["fill","stroke"],Vk=ot({__name:"MotifIcon",props:{width:{type:Number,default:12},height:{type:Number,default:13},color:{type:String,default:"#616161"},plain:{type:Boolean,default:!1}},setup(e){return(t,n)=>(J(),ve(Ue,null,[De("",!0),(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M9.5 1.74855V7.37355C9.4997 7.42693 9.488 7.47964 9.46569 7.52814C9.44338 7.57665 9.41097 7.61983 9.37063 7.6548C8.65438 8.27495 7.96953 8.49855 7.31656 8.49855C6.43016 8.49855 5.60234 8.08886 4.83219 7.7087C3.58766 7.0923 2.50578 6.55839 1.25 7.55026V9.62355C1.25 9.723 1.21049 9.81839 1.14016 9.88871C1.06984 9.95904 0.974456 9.99855 0.875 9.99855C0.775544 9.99855 0.680161 9.95904 0.609835 9.88871C0.539509 9.81839 0.5 9.723 0.5 9.62355V1.74855C0.50036 1.69512 0.51213 1.64239 0.534523 1.59389C0.556917 1.54538 0.589416 1.50222 0.629844 1.4673C2.31734 0.00573252 3.83187 0.754326 5.16687 1.4148C6.45312 2.05136 7.56828 2.60167 8.87937 1.4673C8.93356 1.42032 9.00009 1.38987 9.07106 1.37955C9.14203 1.36923 9.21447 1.37948 9.27979 1.40909C9.34512 1.43869 9.40058 1.4864 9.43961 1.54657C9.47864 1.60673 9.4996 1.67683 9.5 1.74855Z",fill:e.plain?e.color:"none",stroke:e.plain?"none":e.color},null,8,OTe)],8,ATe))],64))}}),DTe={class:"d-flex justify-center align-center text-adaptative"},ITe={key:0,style:{width:"100px"},class:"col"},NTe={class:"col"},MTe=ot({__name:"FormBlock",props:{title:String,isNew:Boolean,loading:Boolean,hideWhenLoading:Boolean},emits:["update:is-valid"],setup(e,{expose:t,emit:n}){const i=ow(),r=gn().t,a=n,o=z(null);return t({isValid:async()=>{var u;return(await((u=o.value)==null?void 0:u.validate())).valid}}),(l,u)=>(J(),je(Cn,{color:"white",elevation:"0",rounded:"lg",class:"mb-6"},{default:le(()=>[e.title?(J(),je(rc,{key:0,class:"d-flex align-center justify-center bg-surface rounded-t-lg py-1 text-h6 text-primary title font-weight-bold",style:{"justify-content":"space-between"}},{default:le(()=>[F("div",DTe,[e.isNew&&!K(i).innerLoading?(J(),ve("div",ITe,[C(ma,{color:"accent",density:"compact",variant:"flat",class:"ml-1"},{default:le(()=>[Ze(Q(K(r)("common.new")),1)]),_:1})])):De("",!0),F("div",NTe,Q(e.title),1)])]),_:1})):De("",!0),F("div",{class:Gt(["py-3",{"hide-content":e.hideWhenLoading&&e.loading}])},[C(ou,{ref_key:"form",ref:o,"onUpdate:modelValue":u[0]||(u[0]=c=>a("update:is-valid",c))},{default:le(()=>[zg(l.$slots,"default",{},void 0,!0)]),_:3},512)],2)]),_:3}))}});const SS=on(MTe,[["__scopeId","data-v-520e6c2d"]]),Yw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEYSURBVHgB3dK9UcNAEAXgt2sDqUugBNwBqgBTASbyeEgUyhGKQKGIGEUaSqACXAIluARCGIlbdhnLso2wdHbC8ELd6Zv9OeCvh+CbLLolUChAiMn90/YxwyeKMcmoX1LAkBjZ7Gp/cIm5o4+guLl7dQ6NaDfQMGAs69+myaIJbQeryo7fhyT0TMXJC/JwsEJLvmS4tLre74Rpm7hO3xwQcxYBikoeBnaFis8cQg/VL9QVWz9SNBaSi29Aq3aTJN7d8g7Mou2nJHy6jTVX2ILZ/GyOTdhP8EDMUi8lm430CYwVG+6LWVYz7DkZQDA/BNsAf40H1g56YpZ6KY/ROTFysraXEZYzH2wT1PR0MbBZ1oeLcprM8a/yBTTJt5h+9UqaAAAAAElFTkSuQmCC",LTe=e=>[...e].map(n=>({...n})),RTe="FR",FTe="BE",VTe="LU",BTe="CH",zTe="CA",jTe="GP",UTe="MQ",HTe="GF",qTe="YT",YTe={France:RTe,Belgique:FTe,Bénin:"BJ",Luxembourg:VTe,Suisse:BTe,Canada:zTe,Guadeloupe:jTe,Martinique:UTe,Guyane:HTe,Réunion:"RE",Mayotte:qTe,"Saint-Pierre-et-Miquelon":"PM","Wallis-et-Futuna":"WF","Polynésie française":"PF","Nouvelle-Calédonie":"NC","Saint-Barthélemy":"BL","Saint-Martin":"MF","Terres Australes et Antarctiques Françaises":"TF"};function WTe(e){return YTe[e]}const xp=(e,t=20)=>e.length>t?`${e.substring(0,t)}...`:e,GTe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbfSURBVHgB7Z29bhtHEMdnlkrCLirTmX4C022QwFJnBDAiPYGtSglcxG4Myo2pJpCdwnZhC3Qj+wmkAE6RSgzgAOlMP4EvTxC5cxzeTmaWHyKlO/KOt9xbUvsDTInHk0T+PTc7O7M7B7BIHNxZNf8WCARfEOE+VutAWFdK1wjgEiDW+S2uIlCiqAR4AqAj/pkTPued1ioCpA78uNcGTyhX4P3GGii4hgRriLAGFiGCthGd8KhMwd0LzKIqpA1CdTPNMm3DV0PE/4ltHcdP4fYvHXCIO4H3G7fYSm/attS8EFCHND5lq34JDpi/wM937mAFHriy1qyIVZOG3XkLPT+B2RWgggP+AzXwmHkLbV/g/UaN3cBB2a4gL0R0RIR3WegILKLAJuIOFL5dNHEFRNxQit7C83t3wCJ2LJhjWPy3eriIwiZC8FKTcRsRFKS4wM/u13FFH/rua/PS983rRUUu5iJa9zZwhY6XTVxBPpNxGfwZoQCzC8z+VoE69C38sguuymcs4pcrMAutxgOlYA8uCDxwX6cb3wC8fvMH5CS/wGK55Yj7DjX8zlPed3z9ytjxFTiE/+Aafff1B/jtz79y/lwO2B+ZS8YtkdKw1T2TsFnhiYzmiQw49v8a9CZsPzrKen52gWUCITGuW58b6UkjOb8nvpqOwanIdKK7ej1r0ijbIGfEhWPXA5pY7sQwiV/Tco5TOD+9UjnMmvjPJDBbSbOEUCzqZsnjmnMk8e4O0QL/q2ZyldMF5kGNH2+CY/hD/J31XM4jOM3xClIkyBK+TRZYXAOnGiGQiKrgA9Fo4jmTXuRB7fFyTySKwv64YiKZVNIFlgoEUKFp4kXAuAqpLaaQKjBHDcE1ZARVuhUnC2ysd/kSOPPCaJUy4CUKHKw3P2bASzp+7kiw3hnBVdHu7NFzAmMFf4LATHBEcW6+MC7wC65OENUhMBNJEcWYwIq01YLfRURWLY09H33CdahrECgGjruJU4FloUgY3CxgBru1wbOhwAohzNoswaKujXzfg93DFQhYgSqnrnYo8NIsGvEAE030E/I9gSckKwIzIqv1oS+wIgyxr2U45D0VmJ/VIGAXhTXzRR7CAGcf6oe8fQvGULWwDCIaozUC86hXg4BlaCSKCHW3OYCjAgfmBVeTmsF65wVPNoIFzxkFW02ny44uFFtPToIFz5m+wBis2DpkNB2EaR8gYJtIHnpTZQLnqxOXHQQ0RtubyfXVDthjsKS25yI0RuAZBPRl5pN9zKVoiuSLEVgjeegiOEedZZm+rGH2cC2HQjViwdWqlz4YP31xMO0c2d4AHjLY/tATmCcbhNAGz+CBYkM2PSa+KNbd2nkMJWxvmAaPacMNiyvDgzEfVP4VPtkCmtRq3KIYn5qOUkqz21BX8BPIAvEaeMjonpGhwBqgzR/Gy2WrZldPhR73nvk/+eQa55Hufz+2EVG1dv4JueHCRHp77/Lgybg5EL2CQDFofCwbE1gTZN6DG0jG9GYb4dxeZXzRODYrU7yCk1GkXyGhGTxMxVaZ6KEGXkEdvf3w6uiRlbOnqBhekVfRhL6rtx89SXihWdnn6KK3n6QGHoDS8O7ssaQTfRnslIb1qfuVzY57fOvB+x0b3AakxTy7UD67GTeDR+DB+0Wd/B5S+0WoVuM9lHjpaQ2X83R8KvmqS7ReITVqd9+H4RQz1czbTqvEEDPNeoX0aRFfnmXlJ7gA8B7yUlLKlTN5v8YT+l5OnHdSLFa8IPU6LMM94ElMOHFn1uSJfVkDCM6Q31VljBfx1PaLmZoilTH5yDXIDXsKORRZ+lv+sDd1nMqUmqLPqpvguG43rdHFGDyrc7wFLTLNQzOQLffHCXndVZsu/bG5YtKS7aNIF0JwWdXAE52jaWgmFzGktbOhgJw2puPi5xHphMbJvZ5pTXBc0UDQm/FcGtP14YCeR81B8tsd0tyeHyIuI3F5i+oIZWzcSc2LpJJbYIFneU3wtPoxR3Z5ttaEnMzUfZVev2njjW9l5cp1uBCI5T6cqSHqTBY8xPhkGe2Xtcwkt/CJt/L43HO/AYpSSoNOJ0Qmcrr9c6E1I8VLtL0Gnev83dLU8yTZpD//eLWouP3fZY9ehCGD36K6DInz4928kcLE3wi26d2o5An/+x4WCLHaWMMt2zcqsS9wH9/qZRNI7LBti7kJPMBfoe27g8S/Ao7oCy0+utSN56ZaouFlvDS3OzvDZ8/u1+MV0z5M2q7UwAm9dRWyZqzr+O6IzgUexdxJAGkDEeu2W4qJpZIsaNTQ7l6oW05OwAgu3VeUrvVF53APL6WHfeJH6QOnNjucDIpAq0ghdbrVjx3ZBAiBnCzgbX//B1SEeGvCXUVsAAAAAElFTkSuQmCC",KTe={class:"title font-weight-bold"},ZTe={class:"d-flex flex-column ga-8 mx-auto"},XTe={class:"d-flex flex-column ga-2"},JTe={key:0,class:"text-gray-80 font-weight-bold",style:{"font-size":"16px"}},QTe={key:1,class:"text-gray-80 text-center",style:{"font-size":"13px"}},e9e=["innerHTML"],t9e={key:3},n9e={style:{"text-align":"left",color:"#616161",display:"block","font-size":"14px"}},i9e={class:"d-sm-flex align-center justify-center ga-sm-2 mt-6"},r9e=ot({__name:"AddressDialog",props:{dialog:Boolean,loading:Boolean,changeAddressFrom:String,type:{type:String,required:!0}},emits:["update:confirm","update:close","update:changeAddressFrom"],setup(e,{emit:t}){const{t:n}=gn();z(!0);const i=t,r=z(null),a=new Date().toISOString().split("T")[0],o=z({date:""});ys(()=>{s("date")});const s=c=>{o.value[c]=""},l=()=>(o.value.date="",r.value&&r.value<a?(o.value.date="La date ne peut pas être dans le passé",!1):!0),u=c=>{if(c==="delete"){i("update:confirm");return}l()&&(i("update:changeAddressFrom",r.value),i("update:confirm"))};return(c,d)=>(J(),je(ir,{"model-value":e.dialog,persistent:"","max-width":"500",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white",rounded:"xl"},{default:le(()=>[C(_r,{class:"d-flex justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[F("span",KTe,Q(e.type==="delete"?K(n)("address.title"):K(n)("address.edit_title")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:d[0]||(d[0]=f=>i("update:close")),src:_h})]),_:1}),C(br,{class:""},{default:le(()=>[F("div",ZTe,[C(Ii,{width:"80",height:"80",class:"mx-auto d-flex align-center war-icon",src:GTe}),F("div",XTe,[e.type==="delete"?(J(),ve("p",JTe,Q(K(n)("address.message",{value:"supprimer"})),1)):De("",!0),e.type=="delete"?(J(),ve("p",QTe,Q(K(n)("address.description")),1)):De("",!0),e.type=="edit"?(J(),ve("div",{key:2,class:"text-gray-80 text-left",style:{"font-size":"13px"},innerHTML:K(n)("address.edit_message")},null,8,e9e)):De("",!0),e.type=="edit"?(J(),ve("div",t9e,[F("label",n9e,Q(c.$t("dashboard.addresses.chooseDate")),1),C(K(dm),{"prepend-icon":"",class:"w-100",modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),"append-inner-icon":"mdi-calendar-remove",placeholder:c.$t("dashboard.time-slot.dialogVacation.datePlaceholder"),density:"compact",rounded:"lg","hide-details":"auto","hide-actions":"",variant:"outlined",min:K(a),"error-messages":o.value.date},null,8,["modelValue","placeholder","min","error-messages"])])):De("",!0)])]),F("div",i9e,[C(Je,{style:{color:"#757575"},color:"#E0E0E0",class:"w-sm-50 d-flex justify-center mb-sm-0 mb-3 w-100 font-weight-bold py-5",onClick:d[2]||(d[2]=f=>i("update:close"))},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.AnnulerBtn")),1)]),_:1}),C(Je,{color:"white",loading:e.loading,class:"w-sm-50 w-100 bg-secondary py-5 d-flex justify-center",onClick:d[3]||(d[3]=f=>u(e.type))},{default:le(()=>[Ze(Q(e.type==="delete"?K(n)("confirm-delete",{value:"suppression"}):K(n)("dashboard.addresses.edit")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const a9e=on(r9e,[["__scopeId","data-v-aa4c494b"]]);const uO=(e,t)=>{for(const n of Object.keys(t))e.on(n,t[n])},PU=e=>{for(const t of Object.keys(e)){const n=e[t];n&&Fc(n.cancel)&&n.cancel()}},o9e=e=>!e||typeof e.charAt!="function"?e:e.charAt(0).toUpperCase()+e.slice(1),Fc=e=>typeof e=="function",wh=(e,t,n)=>{for(const i in n){const r="set"+o9e(i);e[r]?Ve(()=>n[i],(a,o)=>{e[r](a,o)}):t[r]&&Ve(()=>n[i],a=>{t[r](a)})}},Sh=(e,t,n={})=>{const i={...n};for(const r in e){const a=t[r],o=e[r];a&&(a&&a.custom===!0||o!==void 0&&(i[r]=o))}return i},Bm=e=>{const t={},n={};for(const i in e)if(i.startsWith("on")&&!i.startsWith("onUpdate")&&i!=="onReady"){const r=i.slice(2).toLocaleLowerCase();t[r]=e[i]}else n[i]=e[i];return{listeners:t,attrs:n}},s9e=async e=>{const t=await Promise.all([Ct(()=>import("./marker-icon-2x-2335d857.js"),[]),Ct(()=>import("./marker-icon-e7f9f25c.js"),[]),Ct(()=>import("./marker-shadow-e2a15600.js"),[])]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},S0=e=>{const t=z((...i)=>console.warn(`Method ${e} has been invoked without being replaced`)),n=(...i)=>t.value(...i);return n.wrapped=t,an(e,n),n},C0=(e,t)=>e.wrapped.value=t,Qu=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,nl=e=>{const t=kt(e);if(t===void 0)throw new Error(`Attempt to inject ${e.description} before it was provided.`);return t},Ch=Symbol("useGlobalLeaflet"),_y=Symbol("addLayer"),$U=Symbol("removeLayer"),AU=Symbol("registerControl"),l9e=Symbol("registerLayerControl"),OU=Symbol("canSetParentHtml"),DU=Symbol("setParentHtml"),IU=Symbol("setIcon"),u9e=Symbol("bindPopup"),NU=Symbol("bindTooltip"),c9e=Symbol("unbindPopup"),MU=Symbol("unbindTooltip"),by={options:{type:Object,default:()=>({}),custom:!0}},wy=e=>({options:e.options,methods:{}}),zm={...by,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},LU=(e,t,n)=>{const i=nl(_y),r=nl($U),{options:a,methods:o}=wy(e),s=Sh(e,zm,a),l=()=>i({leafletObject:t.value}),u=()=>r({leafletObject:t.value}),c={...o,setAttribution(d){u(),t.value.options.attribution=d,e.visible&&l()},setName(){u(),e.visible&&l()},setLayerType(){u(),e.visible&&l()},setVisible(d){t.value&&(d?l():u())},bindPopup(d){if(!t.value||!Fc(t.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}t.value.bindPopup(d)},bindTooltip(d){if(!t.value||!Fc(t.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}t.value.bindTooltip(d)},unbindTooltip(){t.value&&(Fc(t.value.closeTooltip)&&t.value.closeTooltip(),Fc(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(Fc(t.value.closePopup)&&t.value.closePopup(),Fc(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(d){n.emit("update:visible",d)}};return an(u9e,c.bindPopup),an(NU,c.bindTooltip),an(c9e,c.unbindPopup),an(MU,c.unbindTooltip),ys(()=>{c.unbindPopup(),c.unbindTooltip(),u()}),{options:s,methods:c}},d9e=(e,t)=>{if(e&&t.default)return vi("div",{style:{display:"none"}},t.default())},f9e={...zm,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},RU={...f9e,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},h9e={...RU,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}};({...h9e});const jm={...by,position:{type:String}},p9e=(e,t)=>{const{options:n,methods:i}=wy(e),r=Sh(e,jm,n),a={...i,setPosition(o){t.value&&t.value.setPosition(o)}};return ys(()=>{t.value&&t.value.remove()}),{options:r,methods:a}},m9e=e=>e.default?vi("div",{ref:"root"},e.default()):null;({...jm});({...jm});({...jm});({...jm});({...jm});const FU={...zm};({...FU});({...FU});const Bk={...zm,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},VU=(e,t,n)=>{const{options:i,methods:r}=LU(e,t,n),a=Sh(e,Bk,i),o={...r,setTileComponent(){var s;(s=t.value)==null||s.redraw()}};return ys(()=>{t.value.off()}),{options:a,methods:o}},v9e=(e,t,n,i)=>e.extend({initialize(r){this.tileComponents={},this.on("tileunload",this._unloadTile),n.setOptions(this,r)},createTile(r){const a=this._tileCoordsToKey(r);this.tileComponents[a]=t.create("div");const o=vi({setup:i,props:["coords"]},{coords:r});return ix(o,this.tileComponents[a]),this.tileComponents[a]},_unloadTile(r){const a=this._tileCoordsToKey(r.coords);this.tileComponents[a]&&(this.tileComponents[a].innerHTML="",this.tileComponents[a]=void 0)}});({...Bk});const cO={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}};({...cO,...by});({...zm});function BU(e,t,n){var i,r,a;t===void 0&&(t=50),n===void 0&&(n={});var o=(i=n.isImmediate)!=null&&i,s=(r=n.callback)!=null&&r,l=n.maxWait,u=Date.now(),c=[];function d(){if(l!==void 0){var h=Date.now()-u;if(h+t>=l)return l-h}return t}var f=function(){var h=[].slice.call(arguments),m=this;return new Promise(function(g,v){var y=o&&a===void 0;if(a!==void 0&&clearTimeout(a),a=setTimeout(function(){if(a=void 0,u=Date.now(),!o){var S=e.apply(m,h);s&&s(S),c.forEach(function(w){return(0,w.resolve)(S)}),c=[]}},d()),y){var _=e.apply(m,h);return s&&s(_),g(_)}c.push({resolve:g,reject:v})})};return f.cancel=function(h){a!==void 0&&clearTimeout(a),c.forEach(function(m){return(0,m.reject)(h)}),c=[]},f}const dO={...by,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},g9e=ot({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:dO,setup(e,t){const n=z(),i=er({ready:!1,layersToAdd:[],layersInControl:[]}),{options:r}=wy(e),a=Sh(e,dO,r),{listeners:o,attrs:s}=Bm(t.attrs),l=S0(_y),u=S0($U),c=S0(AU),d=S0(l9e);an(Ch,e.useGlobalLeaflet);const f=B(()=>{const y={};return e.noBlockingAnimations&&(y.animate=!1),y}),h=B(()=>{const y=f.value;return e.padding&&(y.padding=e.padding),e.paddingTopLeft&&(y.paddingTopLeft=e.paddingTopLeft),e.paddingBottomRight&&(y.paddingBottomRight=e.paddingBottomRight),y}),m={moveend:BU(y=>{i.leafletRef&&(t.emit("update:zoom",i.leafletRef.getZoom()),t.emit("update:center",i.leafletRef.getCenter()),t.emit("update:bounds",i.leafletRef.getBounds()))}),overlayadd(y){const _=i.layersInControl.find(S=>S.name===y.name);_&&_.updateVisibleProp(!0)},overlayremove(y){const _=i.layersInControl.find(S=>S.name===y.name);_&&_.updateVisibleProp(!1)}};tn(async()=>{e.useGlobalLeaflet&&(Qu.L=Qu.L||await Ct(()=>Promise.resolve().then(()=>c_e),void 0));const{map:y,CRS:_,Icon:S,latLngBounds:w,latLng:x,stamp:k}=e.useGlobalLeaflet?Qu.L:await Ct(()=>import("./leaflet-src.esm-f4a4a567.js"),[]);try{a.beforeMapMount&&await a.beforeMapMount()}catch(A){console.error(`The following error occurred running the provided beforeMapMount hook ${A.message}`)}await s9e(S);const P=typeof a.crs=="string"?_[a.crs]:a.crs;a.crs=P||_.EPSG3857;const E={addLayer(A){A.layerType!==void 0&&(i.layerControl===void 0?i.layersToAdd.push(A):i.layersInControl.find(D=>k(D.leafletObject)===k(A.leafletObject))||(i.layerControl.addLayer(A),i.layersInControl.push(A))),A.visible!==!1&&i.leafletRef.addLayer(A.leafletObject)},removeLayer(A){A.layerType!==void 0&&(i.layerControl===void 0?i.layersToAdd=i.layersToAdd.filter(D=>D.name!==A.name):(i.layerControl.removeLayer(A.leafletObject),i.layersInControl=i.layersInControl.filter(D=>k(D.leafletObject)!==k(A.leafletObject)))),i.leafletRef.removeLayer(A.leafletObject)},registerLayerControl(A){i.layerControl=A,i.layersToAdd.forEach(D=>{i.layerControl.addLayer(D)}),i.layersToAdd=[],c(A)},registerControl(A){i.leafletRef.addControl(A.leafletObject)},setZoom(A){const D=i.leafletRef.getZoom();A!==D&&i.leafletRef.setZoom(A,f.value)},setCrs(A){const D=i.leafletRef.getBounds();i.leafletRef.options.crs=A,i.leafletRef.fitBounds(D,{animate:!1,padding:[0,0]})},fitBounds(A){i.leafletRef.fitBounds(A,h.value)},setBounds(A){if(!A)return;const D=w(A);D.isValid()&&!(i.lastSetBounds||i.leafletRef.getBounds()).equals(D,0)&&(i.lastSetBounds=D,i.leafletRef.fitBounds(D))},setCenter(A){if(A==null)return;const D=x(A),T=i.lastSetCenter||i.leafletRef.getCenter();(T.lat!==D.lat||T.lng!==D.lng)&&(i.lastSetCenter=D,i.leafletRef.panTo(D,f.value))}};C0(l,E.addLayer),C0(u,E.removeLayer),C0(c,E.registerControl),C0(d,E.registerLayerControl),i.leafletRef=eu(y(n.value,a)),wh(E,i.leafletRef,e),uO(i.leafletRef,m),uO(i.leafletRef,o),i.ready=!0,Pt(()=>t.emit("ready",i.leafletRef))}),Ci(()=>{PU(m),i.leafletRef&&(i.leafletRef.off(),i.leafletRef.remove())});const g=B(()=>i.leafletRef),v=B(()=>i.ready);return{root:n,ready:v,leafletObject:g,attrs:s}},render({attrs:e}){return e.style||(e.style={}),e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%"),vi("div",{...e,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),y9e=["Symbol(Comment)","Symbol(Text)"],_9e=["LTooltip","LPopup"],zU={...zm,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},b9e=(e,t,n)=>{const{options:i,methods:r}=LU(e,t,n),a=Sh(e,zU,i),o={...r,setDraggable(s){t.value.dragging&&(s?t.value.dragging.enable():t.value.dragging.disable())},latLngSync(s){n.emit("update:latLng",s.latlng),n.emit("update:lat-lng",s.latlng)},setLatLng(s){if(s!=null&&t.value){const l=t.value.getLatLng();(!l||!l.equals(s))&&t.value.setLatLng(s)}}};return{options:a,methods:o}},w9e=(e,t)=>{const n=t.slots.default&&t.slots.default();return n&&n.length&&n.some(S9e)};function S9e(e){return!(y9e.includes(e.type.toString())||_9e.includes(e.type.name))}const C9e=ot({name:"LMarker",props:zU,setup(e,t){const n=z(),i=z(!1),r=kt(Ch),a=nl(_y);an(OU,()=>{var u;return!!((u=n.value)!=null&&u.getElement())}),an(DU,u=>{var c,d;const f=Fc((c=n.value)==null?void 0:c.getElement)&&((d=n.value)==null?void 0:d.getElement());f&&(f.innerHTML=u)}),an(IU,u=>{var c;return((c=n.value)==null?void 0:c.setIcon)&&n.value.setIcon(u)});const{options:o,methods:s}=b9e(e,n,t),l={moveHandler:BU(s.latLngSync)};return tn(async()=>{const{marker:u,divIcon:c}=r?Qu.L:await Ct(()=>import("./leaflet-src.esm-f4a4a567.js"),[]);w9e(o,t)&&(o.icon=c({className:""})),n.value=eu(u(e.latLng,o));const{listeners:d}=Bm(t.attrs);n.value.on(d),n.value.on("move",l.moveHandler),wh(s,n.value,e),a({...e,...s,leafletObject:n.value}),i.value=!0,Pt(()=>t.emit("ready",n.value))}),Ci(()=>PU(l)),{ready:i,leafletObject:n}},render(){return d9e(this.ready,this.$slots)}}),E9e={...RU,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},fO={...E9e},jU={...by,content:{type:String,default:null}},x9e=(e,t)=>{const{options:n,methods:i}=wy(e),r={...i,setContent(a){t.value&&a!==null&&a!==void 0&&t.value.setContent(a)}};return{options:n,methods:r}},k9e=e=>e.default?vi("div",{ref:"root"},e.default()):null;({...jU});({...fO,latLngs:{...fO.latLngs}});const zk={...Bk,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:e=>typeof e=="string"?!0:Array.isArray(e)?e.every(t=>typeof t=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},T9e=(e,t,n)=>{const{options:i,methods:r}=VU(e,t,n),a=Sh(e,zk,i),o={...r};return{options:a,methods:o}},P9e=ot({props:zk,setup(e,t){const n=z(),i=kt(Ch),r=nl(_y),{options:a,methods:o}=T9e(e,n,t);return tn(async()=>{const{tileLayer:s}=i?Qu.L:await Ct(()=>import("./leaflet-src.esm-f4a4a567.js"),[]);n.value=eu(s(e.url,a));const{listeners:l}=Bm(t.attrs);n.value.on(l),wh(o,n.value,e),r({...e,...o,leafletObject:n.value}),Pt(()=>t.emit("ready",n.value))}),{leafletObject:n}},render(){return null}}),$9e={...jU},A9e=(e,t)=>{const{options:n,methods:i}=x9e(e,t),r=nl(MU);return Ci(()=>{r()}),{options:n,methods:i}},xYe=ot({name:"LTooltip",props:$9e,setup(e,t){const n=z(),i=z(null),r=kt(Ch),a=nl(NU),{options:o,methods:s}=A9e(e,n);return tn(async()=>{const{tooltip:l}=r?Qu.L:await Ct(()=>import("./leaflet-src.esm-f4a4a567.js"),[]);n.value=eu(l(o)),wh(s,n.value,e);const{listeners:u}=Bm(t.attrs);n.value.on(u),n.value.setContent(e.content||i.value||""),a(n.value),Pt(()=>t.emit("ready",n.value))}),{root:i,leafletObject:n}},render(){return k9e(this.$slots)}});({...zk});const O9e={style:{height:"500px",width:"100%"}},D9e="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",I9e='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',N9e=ot({__name:"MapAddress",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapcountry:{type:String,default:""},searchQuery:{type:String,default:""},not_yet:{type:Boolean,default:!1},postalCode:{type:[String,Number]},city:{type:String}},emits:["update:position","streetLoaading"],setup(e,{expose:t,emit:n}){const i=nk(),r=e,a=n,o=z(11.5),s=z([parseFloat(r.latitude)||0,parseFloat(r.longitude)||0]),l={zoomSnap:.5},u=f=>{o.value=f},c=f=>{if(!r.not_yet)return;const{lat:h,lng:m}=f.latlng;s.value=f.latlng,a("update:position",{latitude:h,longitude:m})},d=async()=>{if(r.not_yet)try{a("streetLoaading",{value:!0});const f=await i.getFormatedAddressFromQuery({searchQuery:r.searchQuery,city:r.city,postalCode:String(r.postalCode),country:r.mapcountry});f.latitude&&f.longitude?(s.value=[parseFloat(f.latitude),parseFloat(f.longitude)],a("update:position",f),await Pt()):nt.info("aucun résultat trouvé")}catch{}finally{a("streetLoaading",{value:!1})}};return Ve(()=>[r.latitude,r.longitude],async()=>{s.value=[parseFloat(r.latitude),parseFloat(r.longitude)]}),t({fetchCountryCoordinates:d}),(f,h)=>(J(),ve("div",O9e,[C(K(g9e),{zoom:o.value,center:s.value,options:l,"onUpdate:zoom":u,onClick:c},{default:le(()=>[C(K(C9e),{"lat-lng":s.value},null,8,["lat-lng"]),C(K(P9e),{"layer-type":"base",url:D9e,attribution:I9e})]),_:1},8,["zoom","center"])]))}}),M9e={class:""},L9e={class:"text-grey"},R9e={class:"add-lists d-flex flex-column ga-3 mt-5"},F9e={class:"add-block d-flex flex-column ga-3"},V9e={class:"add-title"},B9e={key:0},z9e={key:1,class:""},j9e={class:"d-flex flex-column ga-2"},U9e={class:"rounded-lg cursor-pointer d-flex align-center justify-space-between bg-white px-2 py-1"},H9e={class:"add-val"},q9e={class:"d-flex ga-2 align-center"},Y9e=["onClick"],W9e={key:0,class:"pl-sm-6 d-sm-flex ga-5 w-100 pb-5"},G9e={class:"w-sm-66"},K9e={class:"add-title"},Z9e={key:0},X9e={class:"w-sm-50"},J9e={class:"w-sm-50"};const Q9e={key:1},e6e={class:"d-sm-flex ga-2"},t6e={class:"w-sm-50 w-100"},n6e={class:"w-sm-50 w-100"},i6e={class:"d-sm-flex ga-2"},r6e={class:"text-gray-80"},a6e={class:"w-sm-33 h-auto"},o6e=ot({__name:"AddressForm",setup(e){const t=z(null),n=nk(),i=z(!1);B(()=>new Date().toISOString().split("T")[0]);const r=ly(),a=gn().t,{xs:o}=Ki(),s=[Ie=>!!Ie||a("dashboard.addresses.requiredField")],l=z([]),u=z(null),c=B(()=>M.formMode),d=Ie=>{X.value[Ie]&&(X.value[Ie]=null)},f=async()=>{if(!await u.value.validate())return!1;if(c.value===Nu.EDIT){te("edit");return}ye()},h=B(()=>M.displayAddrForm),m=z(!1),g=z(),v=z(""),y=z({label:"",value:null}),_=z(""),S=z(""),w=z(null),x=z(0),k=z(""),P=z(""),E=z(!1),A=z(""),D=z([]),T=z(!1),O=z(null),N=z(""),V=z();B(()=>l.value.filter((Ie,Ye)=>Ye!=O.value));const j=z(!1),q=Ie=>{j.value=Ie},ne=z(!1),ae=z(!1),Y=z(""),M=hl();B(()=>Y.value=="edit"?a("dashboard.addresses.alertOnUpdate"):Y.value=="delete"?a("dashboard.addresses.alertOnDelete",l.value.length):Y.value=="warning"?a("dashboard.addresses.alertOnWarning"):"");const I=()=>{ae.value=!0},W=()=>{ae.value=!1},te=async Ie=>{if(!(!T.value&&Ie!=="delete"&&Ie!=="warning"))if(Y.value=Ie,Ie==="delete"){const{status:Ye,data:rt}=await J_e(l.value[O.value].id);rt?I():await oe(O.value)}else i.value=!0,g.value="edit"},he=Ie=>{l.value.length>1&&(i.value=!0,g.value="delete",O.value=Ie)},oe=async Ie=>{if(!Z.value&&!(l.value.length<=1)){Z.value=!0,q(!0);try{await X_e(l.value[Ie].id),await ie(),nt.success(a("dashboard.addresses.successDelete")),r.fetchDashboardStatus(),await M.refreshAddresses(),M.displayAddrForm&&(M.displayAddrForm=!1)}catch(Ye){console.error(Ye)}q(!1),W(),Z.value=!1,i.value=!1}};z(""),Ve(v,(Ie,Ye)=>{Ie!==Ye&&(D.value=[])}),Ve(()=>M.formMode,Ie=>{var Ye;Ie==Nu.ADD&&(U(),(Ye=u.value)==null||Ye.reset())});const U=()=>{v.value="",y.value={label:"",value:null},_.value="",S.value="",w.value=null,x.value++,E.value=!1,N.value=null},ee=Ie=>{y.value={label:"",value:null},u.value.reset(),Ie=="add"?M.formMode=Nu.ADD:Ie=="cancel"&&(U(),M.formMode=Nu.HIDDEN),M.displayAddrForm=!M.displayAddrForm,O.value=null},re=()=>{ne.value=!0},ue=Gf(async Ie=>{if(!Ie){ne.value=!1;return}try{const Ye=await n.getAutocompleteSuggestionsPlaces(Ie,v.value?[WTe(v.value)]:[]);D.value=Ye}catch(Ye){throw new Error(`Error fetching data: ${Ye}`)}ne.value=!1},500),pe=(Ie,Ye)=>{Ie&&(M.displayAddrForm=!0,v.value=Ie.country,_.value=Ie.postalCode,S.value=Ie.city,w.value=Ie.additionalInstructions,x.value++,k.value=Ie.latitude,P.value=Ie.longitude,m.value=Ie.remote??!1,E.value=Ie.noAddYet??!1,A.value=Ie.addressLine,y.value={label:Ie.addressLine,value:{addressLine:Ie.addressLine,country:v.value,postalCode:_.value,city:S.value,additionalInstructions:w.value,latitude:k.value,longitude:P.value,remote:m.value,noAddYet:E.value}},M.formMode=Nu.EDIT,O.value=Ye)},ge=async Ie=>{Ie&&(Ie.value=await n.getFormatedAddressFromPlace(Ie.value),_.value=Ie.value.postalCode,S.value=Ie.value.city,k.value=Ie.value.latitude,P.value=Ie.value.longitude,y.value={label:Ie.value.addressLine,value:{addressLine:Ie.value.addressLine,country:v.value,postalCode:_.value,city:S.value,additionalInstructions:w.value,latitude:k.value,longitude:P.value}})},Te=z(!1),Z=z(!1),X=z({postalCode:null,city:null,changeAddressFrom:null,country:null}),ye=async()=>{var Ye;if(q(!0),u.value.validate(),!u.value.isValid)return;JSON.parse(JSON.stringify(l.value)).map(rt=>{const Ot={...rt};return Object.prototype.hasOwnProperty.call(Ot,"remote")||(Ot.remote=!1),Ot});const Ie={additionalInstructions:w.value?w.value:null,addressLine:E.value?A.value:(Ye=y==null?void 0:y.value)==null?void 0:Ye.label,city:S.value,country:v.value,postalCode:_.value,latitude:k.value,longitude:P.value,remote:m.value,noAddYet:E.value};if(c.value==Nu.ADD)Se(Ie);else if(c.value==Nu.EDIT){const rt={...Ie,changeAddressFrom:N.value};Z.value=!0;const{id:Ot}=l.value[O.value];rt.id=Ot,Ee(rt)}},Se=async Ie=>{if(Te.value)return!1;Te.value=!0;const Ye=await Z_e(Ie);Ye.status==200?(U(),u.value.reset(),nt.success(a("dashboard.addresses.successCreate")),await ie(),await M.refreshAddresses(),X.value={postalCode:null,city:null,changeAddressFrom:null,country:null},r.fetchDashboardStatus(),q(!1),Z.value=!1,M.displayAddrForm=!1):(nt.error(a("dashboard.addresses.errorUpdate")),Ye.status===422&&(X.value=Ye.data)),Te.value=!1},Ee=async Ie=>{if(Te.value)return!1;Te.value=!0;const Ye=await K_e(Ie);if(Ye.status===200)try{console.log("update 200"),U(),u.value.reset(),nt.success(a("dashboard.addresses.successUpdate")),await ie(),await M.refreshAddresses(),X.value={postalCode:null,city:null,changeAddressFrom:null,country:null},Te.value=!1,q(!1),W(),Z.value=!1,i.value=!1,M.displayAddrForm=!1}catch(rt){console.log("update error ===>>>",rt)}else Z.value=!1,i.value=!1,Te.value=!1,Ye.status===422&&(X.value=Ye.data),nt.error("")},_e=()=>{navigator.geolocation.getCurrentPosition(Ie=>{k.value=Ie.coords.latitude.toString(),P.value=Ie.coords.longitude.toString()},Ie=>{console.error("an error has occured:",Ie)})},be=z(!1),ie=async()=>{try{be.value=!0;const{status:Ie,data:Ye}=await a4();if(Ie!==200)throw Error("Error occurred on get addresses");l.value=LTe(Ye),M.totalAddr=l.value.length}catch{}finally{be.value=!1}};tn(async()=>{Yr.start(),await _e(),await ie();const Ie=await Ez(!0);V.value=Ie,Yr.stop()});const se=Ie=>{if(!E.value)return!1;k.value=Ie.latitude,P.value=Ie.longitude,(Ie.country||Ie.city)&&(v.value=Ie.country,S.value=Ie.city)};B(()=>v.value);const de=z(""),xe=z(""),Re=z(!1);Ve(()=>de.value,()=>{setTimeout(()=>{xe.value=de.value},1e3)}),Ve(()=>M.displayAddrForm,async()=>{M.displayAddrForm&&M.formMode==="add"&&(U(),await _e())});const Pe=Ie=>{Re.value=Ie.value};Ci(()=>{M.formMode=Nu.HIDDEN,M.displayAddrForm=!1,U()});const we=Ie=>{N.value=Ie},Ae=Gf(()=>{t.value.fetchCountryCoordinates()},500);return Ve([()=>de.value,()=>S.value],()=>{Re.value||!de.value||Ae()}),(Ie,Ye)=>(J(),ve("div",M9e,[F("h3",L9e,Q(K(a)("dashboard.addresses.description")),1),F("div",R9e,[F("div",F9e,[F("div",V9e,[l.value.length?(J(),ve("p",B9e,Q(K(a)("dashboard.addresses.registeredAddresses")),1)):be.value?De("",!0):(J(),ve("p",z9e,Q(K(a)("dashboard.addresses.noAddress")),1))]),F("div",j9e,[(J(!0),ve(Ue,null,Ht(l.value,(rt,Ot)=>(J(),je(EM,{class:"",key:rt.addressLine},{default:le(()=>[F("div",U9e,[F("p",H9e,Q(K(xp)(K(If)(rt,!0),60)),1),F("div",q9e,[F("img",{class:"cursor-pointer",width:"24",height:"24",src:Yw,onClick:$n=>pe(rt,Ot)},null,8,Y9e),C(Dk,{class:Gt([{"cursor-not-allowed opacity-50 pointer-events-none":l.value.length<=1},"cursor-pointer"]),onClick:$n=>he(Ot)},null,8,["class","onClick"])])])]),_:2},1024))),128))])]),C(Yu,null,{default:le(()=>[h.value?(J(),ve("div",W9e,[F("div",G9e,[F("p",K9e,Q(K(M).formMode==="edit"?`${K(a)("dashboard.addresses.edit-form-title")}`:`${K(a)("dashboard.addresses.add-form-title")}`),1),C(K(ou),{ref_key:"form",ref:u,modelValue:T.value,"onUpdate:modelValue":Ye[16]||(Ye[16]=rt=>T.value=rt),onSubmit:Vo(f,["prevent"]),class:"d-flex flex-column ga-4"},{default:le(()=>{var rt,Ot,$n;return[C(i8,{modelValue:m.value,"onUpdate:modelValue":Ye[0]||(Ye[0]=jt=>m.value=jt),label:K(a)("dashboard.addresses.useOnlyRemote"),color:"blue","hide-details":""},null,8,["modelValue","label"]),F("div",null,[F("label",null,Q(K(a)("dashboard.addresses.selectCountry")+"*"),1),C(qp,{modelValue:v.value,"onUpdate:modelValue":[Ye[1]||(Ye[1]=jt=>v.value=jt),Ye[2]||(Ye[2]=()=>d("country"))],items:V.value,"item-title":"label",rules:s,clearable:"","hide-details":"auto","validate-on":"lazy",rounded:"lg",density:"compact","error-messages":(rt=X.value)==null?void 0:rt.country},null,8,["modelValue","items","error-messages"])]),E.value?De("",!0):(J(),ve("div",Z9e,[F("label",null,Q(K(a)("dashboard.addresses.address")+"*"),1),C(qp,{rounded:"lg",density:"compact",modelValue:y.value,"onUpdate:modelValue":[Ye[3]||(Ye[3]=jt=>y.value=jt),Ye[4]||(Ye[4]=jt=>ge(jt))],rules:s,items:D.value,"auto-select-first":!1,"custom-filter":()=>!0,clearable:"","item-title":"label","item-value":"value","return-object":"","hide-details":"","validate-on":"lazy",autocomplete:"new-input",onInput:re,"onUpdate:search":K(ue)},{"append-inner":le(({isActive:jt})=>[xt(C(Je,{loading:ne.value,variant:"text",icon:"mdi-loading",disabled:""},null,8,["loading"]),[[hn,ne.value&&jt]])]),_:1},8,["modelValue","items","onUpdate:search"])])),F("div",null,[F("div",{class:Gt(["d-flex ga-4 ga-sm-2",{"flex-column":K(o)}])},[F("div",X9e,[F("label",null,Q(K(a)("dashboard.addresses.postalCode")+"*"),1),C(Tn,{rounded:"lg",density:"compact",modelValue:_.value,"onUpdate:modelValue":Ye[5]||(Ye[5]=jt=>_.value=jt),rules:s,"hide-details":"auto",clearable:"","validate-on":"lazy","error-messages":(Ot=X.value)==null?void 0:Ot.postalCode,onInput:Ye[6]||(Ye[6]=jt=>d("postalCode")),type:"text",placeholder:K(a)("dashboard.addresses.postalCode")},null,8,["modelValue","error-messages","placeholder"])]),F("div",J9e,[F("label",null,Q(K(a)("dashboard.addresses.city")+"*"),1),C(Tn,{rounded:"lg",density:"compact",modelValue:S.value,"onUpdate:modelValue":Ye[7]||(Ye[7]=jt=>S.value=jt),rules:s,clearable:"","validate-on":"lazy","error-messages":($n=X.value)==null?void 0:$n.city,onInput:Ye[8]||(Ye[8]=jt=>d("city")),type:"text","hide-details":"auto",placeholder:K(a)("dashboard.addresses.city")},null,8,["modelValue","error-messages","placeholder"])])],2),C(jf,{modelValue:E.value,"onUpdate:modelValue":Ye[9]||(Ye[9]=jt=>E.value=jt),"hide-details":"",color:"#757575",density:"compact",label:K(a)("dashboard.addresses.no_addr_yet")},null,8,["modelValue","label"]),(h.value,De("",!0))]),E.value?(J(),ve("div",Q9e,[F("label",null,Q(K(a)("dashboard.addresses.street")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:de.value,"onUpdate:modelValue":Ye[10]||(Ye[10]=jt=>de.value=jt),"hide-details":"auto",clearable:"","validate-on":"lazy",placeholder:K(a)("dashboard.addresses.street_placeholder"),loading:Re.value,disabled:!_.value},null,8,["modelValue","placeholder","loading","disabled"])])):De("",!0),E.value?(J(),ve(Ue,{key:2},[F("div",e6e,[F("div",t6e,[F("label",null,Q(K(a)("dashboard.addresses.longitude")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:P.value,"onUpdate:modelValue":Ye[11]||(Ye[11]=jt=>P.value=jt),rules:s,disabled:"","hide-details":"",clearable:"","validate-on":"lazy"},null,8,["modelValue"])]),F("div",n6e,[F("label",null,Q(K(a)("dashboard.addresses.latitude")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:k.value,"onUpdate:modelValue":Ye[12]||(Ye[12]=jt=>k.value=jt),rules:s,"hide-details":"",clearable:"","validate-on":"lazy",disabled:""},null,8,["modelValue"])])]),F("div",null,[F("label",null,Q(K(a)("dashboard.addresses.public_address")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:A.value,"onUpdate:modelValue":Ye[13]||(Ye[13]=jt=>A.value=jt),rules:s,"hide-details":"",clearable:"","validate-on":"lazy"},null,8,["modelValue"])])],64)):De("",!0),F("div",null,[F("label",null,Q(K(a)("dashboard.addresses.addtionnalInfo")),1),(J(),je(v_,{content:w.value,"onUpdate:content":Ye[14]||(Ye[14]=jt=>w.value=jt),key:x.value,contentType:"html",class:"rich-text-field",counter:500},null,8,["content"]))]),F("div",i6e,[C(Je,{class:"w-sm-50 w-100",color:"#E0E0E0",onClick:Ye[15]||(Ye[15]=jt=>ee("cancel"))},{default:le(()=>[F("span",r6e,Q(K(a)("dashboard.addresses.cancel")),1)]),_:1}),C(Je,{class:"mb-3 mt-2 mt-sm-0 text-uppercase align-self-center w-sm-50 w-100",color:"secondary",loading:Te.value,type:"submit"},{default:le(()=>[Ze(Q(K(M).formMode==="edit"?K(a)("dashboard.addresses.updateAddresses"):K(a)("dashboard.addresses.validate")),1)]),_:1},8,["loading"])])]}),_:1},8,["modelValue"])]),F("div",a6e,[C(N9e,{ref_key:"RefMap",ref:t,"onUpdate:position":Ye[17]||(Ye[17]=rt=>se(rt)),latitude:k.value,longitude:P.value,mapcountry:v.value,city:S.value,searchQuery:xe.value,not_yet:E.value,postalCode:_.value,onStreetLoaading:Ye[18]||(Ye[18]=rt=>Pe(rt))},null,8,["latitude","longitude","mapcountry","city","searchQuery","not_yet","postalCode"])])])):De("",!0)]),_:1})]),i.value?(J(),je(a9e,{key:0,loading:Z.value,"onUpdate:close":Ye[19]||(Ye[19]=rt=>i.value=!1),"onUpdate:confirm":Ye[20]||(Ye[20]=rt=>g.value==="delete"?oe(O.value):ye()),dialog:i.value,type:g.value,changeAddressFrom:N.value,"onUpdate:changeAddressFrom":we},null,8,["loading","dialog","type","changeAddressFrom"])):De("",!0)]))}});const s6e=on(o6e,[["__scopeId","data-v-b992ad8b"]]),l6e={class:"px-2"},u6e=ot({__name:"Addresses",setup(e){return Z1((t,n,i)=>{const r=ud();if(r.hasOnboarding&&!r.manualProccess){r.onboardingAlert=!0,r.leave=!1;const a=Ve(()=>r.leave,o=>{o?(r.leave=!1,r.onboardingAlert=!1,i()):(r.onboardingAlert=!1,i(!1)),a()})}else i()}),(t,n)=>(J(),ve("div",l6e,[C(s6e)]))}}),c6e=Object.freeze(Object.defineProperty({__proto__:null,default:u6e},Symbol.toStringTag,{value:"Module"}));const d6e=(e,t)=>(n,i)=>{const r={Component:vi(t,i),wrapperElement:n};e(r)};class f6e extends Error{constructor(t){super(t),this.name="[Schedule-X reactivity error]"}}const UU=ot({name:"ScheduleXCalendar",props:{calendarApp:{type:Object,required:!0},customComponents:{type:Object,default:()=>({})}},data(){return{elId:"sx"+Math.random().toString(36).substr(2,9),customComponentsMeta:[]}},mounted(){if(Zu(this.calendarApp))throw new f6e("calendarApp cannot be saved in a ref. Since this causes deep reactivity, it destroys the calendars internal reactivity. Save in a normal const or shallowRef");const e={...this.customComponents,...this.$slots};for(const[t,n]of Object.entries(e))this.calendarApp._setCustomComponentFn(t,d6e(this.setCustomComponentMeta,n));this.calendarApp.render(document.getElementById(this.elId))},methods:{setCustomComponentMeta(e){if(!(e.wrapperElement instanceof HTMLElement))return;const t=({wrapperElement:a})=>a instanceof HTMLElement,n=[...this.customComponentsMeta.filter(t)],i=e.wrapperElement.dataset.ccid,r=n.find(({wrapperElement:a})=>a.dataset.ccid===i);r&&n.splice(n.indexOf(r),1),this.customComponentsMeta=[...n,e]}},render(){const e=this.customComponentsMeta.map(({Component:t,wrapperElement:n})=>vi(yN,{to:n},t));return vi("div",{id:this.elId,class:"sx-vue-calendar-wrapper"},vi(Ue,{},e))}});var jk,mn,HU,qU,af,hO,YU,z4,Uk,j4,U4,WU,H4={},GU=[],h6e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ww=Array.isArray;function Gc(e,t){for(var n in t)e[n]=t[n];return e}function KU(e){var t=e.parentNode;t&&t.removeChild(e)}function pO(e,t,n){var i,r,a,o={};for(a in t)a=="key"?i=t[a]:a=="ref"?r=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?jk.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return __(e,o,i,r,null)}function __(e,t,n,i,r){var a={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++HU,__i:-1,__u:0};return r==null&&mn.vnode!=null&&mn.vnode(a),a}function T1(e){return e.children}function ql(e,t){this.props=e,this.context=t}function Qf(e,t){if(t==null)return e.__?Qf(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Qf(e):null}function ZU(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ZU(e)}}function q4(e){(!e.__d&&(e.__d=!0)&&af.push(e)&&!zb.__r++||hO!==mn.debounceRendering)&&((hO=mn.debounceRendering)||YU)(zb)}function zb(){var e,t,n,i,r,a,o,s;for(af.sort(z4);e=af.shift();)e.__d&&(t=af.length,i=void 0,a=(r=(n=e).__v).__e,o=[],s=[],n.__P&&((i=Gc({},r)).__v=r.__v+1,mn.vnode&&mn.vnode(i),QU(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[a]:null,o,a??Qf(r),!!(32&r.__u),s),i.__v=r.__v,i.__.__k[i.__i]=i,v6e(o,i,s),i.__e!=a&&ZU(i)),af.length>t&&af.sort(z4));zb.__r=0}function XU(e,t,n,i,r,a,o,s,l,u,c){var d,f,h,m,g,v=i&&i.__k||GU,y=t.length;for(n.__d=l,p6e(n,t,v),l=n.__d,d=0;d<y;d++)(h=n.__k[d])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?H4:v[h.__i]||H4,h.__i=d,QU(e,h,f,r,a,o,s,l,u,c),m=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&Hk(f.ref,null,h),c.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),65536&h.__u||f.__k===h.__k?l=JU(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function p6e(e,t,n){var i,r,a,o,s,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],i=0;i<l;i++)o=i+d,(r=e.__k[i]=(r=t[i])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?__(null,r,null,null,null):Ww(r)?__(T1,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?__(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,s=m6e(r,n,o,c),r.__i=s,a=null,s!==-1&&(c--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof r.type!="function"&&(r.__u|=65536)):s!==o&&(s==o-1?d=s-o:s==o+1?d++:s>o?c>l-o?d+=s-o:d--:s<o&&d++,s!==i+d&&(r.__u|=65536))):(a=n[o])&&a.key==null&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Qf(a)),Y4(a,a,!1),n[o]=null,c--);if(c)for(i=0;i<u;i++)(a=n[i])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Qf(a)),Y4(a,a))}function JU(e,t,n){var i,r;if(typeof e.type=="function"){for(i=e.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=e,t=JU(i[r],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Qf(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function jb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ww(e)?e.some(function(n){jb(n,t)}):t.push(e)),t}function m6e(e,t,n,i){var r=e.key,a=e.type,o=n-1,s=n+1,l=t[n];if(l===null||l&&r==l.key&&a===l.type&&!(131072&l.__u))return n;if(i>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&r==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&r==l.key&&a===l.type)return s;s++}}return-1}function mO(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||h6e.test(t)?n:n+"px"}function E0(e,t,n,i,r){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||mO(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||mO(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?i?n.u=i.u:(n.u=Uk,e.addEventListener(t,a?U4:j4,a)):e.removeEventListener(t,a?U4:j4,a);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function vO(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Uk++;else if(t.t<n.u)return;return n(mn.event?mn.event(t):t)}}}function QU(e,t,n,i,r,a,o,s,l,u){var c,d,f,h,m,g,v,y,_,S,w,x,k,P,E,A,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(c=mn.__b)&&c(t);e:if(typeof D=="function")try{if(y=t.props,_="prototype"in D&&D.prototype.render,S=(c=D.contextType)&&i[c.__c],w=c?S?S.props.value:c.__:i,n.__c?v=(d=t.__c=n.__c).__=d.__E:(_?t.__c=d=new D(y,w):(t.__c=d=new ql(y,w),d.constructor=D,d.render=y6e),S&&S.sub(d),d.props=y,d.state||(d.state={}),d.context=w,d.__n=i,f=d.__d=!0,d.__h=[],d._sb=[]),_&&d.__s==null&&(d.__s=d.state),_&&D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Gc({},d.__s)),Gc(d.__s,D.getDerivedStateFromProps(y,d.__s))),h=d.props,m=d.state,d.__v=t,f)_&&D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),_&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(_&&D.getDerivedStateFromProps==null&&y!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,w),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,w)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,w),_&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,g)})}if(d.context=w,d.props=y,d.__P=e,d.__e=!1,k=mn.__r,P=0,_){for(d.state=d.__s,d.__d=!1,k&&k(t),c=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,k&&k(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++P<25);d.state=d.__s,d.getChildContext!=null&&(i=Gc(Gc({},i),d.getChildContext())),_&&!f&&d.getSnapshotBeforeUpdate!=null&&(g=d.getSnapshotBeforeUpdate(h,m)),XU(e,Ww(A=c!=null&&c.type===T1&&c.key==null?c.props.children:c)?A:[A],t,n,i,r,a,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||a!=null){for(t.__u|=l?160:32;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;mn.__e(T,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=g6e(n.__e,t,n,i,r,a,o,l,u);(c=mn.diffed)&&c(t)}function v6e(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)Hk(n[i],n[++i],n[++i]);mn.__c&&mn.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(a){a.call(r)})}catch(a){mn.__e(a,r.__v)}})}function g6e(e,t,n,i,r,a,o,s,l){var u,c,d,f,h,m,g,v=n.props,y=t.props,_=t.type;if(_==="svg"?r="http://www.w3.org/2000/svg":_==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!_&&(_?h.localName===_:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(_===null)return document.createTextNode(y);e=document.createElementNS(r,_,y.is&&y),a=null,s=!1}if(_===null)v===y||s&&e.data===y||(e.data=y);else{if(a=a&&jk.call(e.childNodes),v=n.props||H4,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)if(h=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=h;else if(u!=="key"&&!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;E0(e,u,null,h,r)}}for(u in y)h=y[u],u=="children"?f=h:u=="dangerouslySetInnerHTML"?c=h:u=="value"?m=h:u=="checked"?g=h:u==="key"||s&&typeof h!="function"||v[u]===h||E0(e,u,h,v[u],r);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),XU(e,Ww(f)?f:[f],t,n,i,_==="foreignObject"?"http://www.w3.org/1999/xhtml":r,a,o,a?a[0]:n.__k&&Qf(n,0),s,l),a!=null)for(u=a.length;u--;)a[u]!=null&&KU(a[u]);s||(u="value",m!==void 0&&(m!==e[u]||_==="progress"&&!m||_==="option"&&m!==v[u])&&E0(e,u,m,v[u],r),u="checked",g!==void 0&&g!==e[u]&&E0(e,u,g,v[u],r))}return e}function Hk(e,t,n){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&t==null||(e.__u=e(t))}else e.current=t}catch(r){mn.__e(r,n)}}function Y4(e,t,n){var i,r;if(mn.unmount&&mn.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Hk(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){mn.__e(a,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Y4(i[r],t,n||typeof e.type!="function");n||e.__e==null||KU(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function y6e(e,t,n){return this.constructor(e,n)}function _6e(e,t){var n={__c:t="__cC"+WU++,__:e,Consumer:function(i,r){return i.children(r)},Provider:function(i){var r,a;return this.getChildContext||(r=[],(a={})[t]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&r.some(function(s){s.__e=!0,q4(s)})},this.sub=function(o){r.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.splice(r.indexOf(o),1),s&&s.call(o)}}),i.children}};return n.Provider.__=n.Consumer.contextType=n}jk=GU.slice,mn={__e:function(e,t,n,i){for(var r,a,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((a=r.constructor)&&a.getDerivedStateFromError!=null&&(r.setState(a.getDerivedStateFromError(e)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,i||{}),o=r.__d),o)return r.__E=r}catch(s){e=s}throw e}},HU=0,qU=function(e){return e!=null&&e.constructor==null},ql.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gc({},this.state),typeof e=="function"&&(e=e(Gc({},n),this.props)),e&&Gc(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),q4(this))},ql.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),q4(this))},ql.prototype.render=T1,af=[],YU=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z4=function(e,t){return e.__v.__b-t.__v.__b},zb.__r=0,Uk=0,j4=vO(!1),U4=vO(!0),WU=0;var W4,Mo,CS,gO,yO=0,eH=[],$r=mn,_O=$r.__b,bO=$r.__r,wO=$r.diffed,SO=$r.__c,CO=$r.unmount,EO=$r.__;function b6e(e,t){$r.__h&&$r.__h(Mo,e,yO||t),yO=0;var n=Mo.__H||(Mo.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function tH(e,t){var n=b6e(W4++,7);return C6e(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function w6e(){for(var e;e=eH.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(b_),e.__H.__h.forEach(G4),e.__H.__h=[]}catch(t){e.__H.__h=[],$r.__e(t,e.__v)}}$r.__b=function(e){Mo=null,_O&&_O(e)},$r.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),EO&&EO(e,t)},$r.__r=function(e){bO&&bO(e),W4=0;var t=(Mo=e.__c).__H;t&&(CS===Mo?(t.__h=[],Mo.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(b_),t.__h.forEach(G4),t.__h=[],W4=0)),CS=Mo},$r.diffed=function(e){wO&&wO(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(eH.push(t)!==1&&gO===$r.requestAnimationFrame||((gO=$r.requestAnimationFrame)||S6e)(w6e)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),CS=Mo=null},$r.__c=function(e,t){t.some(function(n){try{n.__h.forEach(b_),n.__h=n.__h.filter(function(i){return!i.__||G4(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],$r.__e(i,n.__v)}}),SO&&SO(e,t)},$r.unmount=function(e){CO&&CO(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{b_(i)}catch(r){t=r}}),n.__H=void 0,t&&$r.__e(t,n.__v))};var xO=typeof requestAnimationFrame=="function";function S6e(e){var t,n=function(){clearTimeout(i),xO&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);xO&&(t=requestAnimationFrame(n))}function b_(e){var t=Mo,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Mo=t}function G4(e){var t=Mo;e.__c=e.__(),Mo=t}function C6e(e,t){return!e||e.length!==t.length||t.some(function(n,i){return n!==e[i]})}function E6e(e,t){for(var n in t)e[n]=t[n];return e}function kO(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function TO(e,t){this.props=e,this.context=t}(TO.prototype=new ql).isPureReactComponent=!0,TO.prototype.shouldComponentUpdate=function(e,t){return kO(this.props,e)||kO(this.state,t)};var PO=mn.__b;mn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),PO&&PO(e)};var x6e=mn.__e;mn.__e=function(e,t,n,i){if(e.then){for(var r,a=t;a=a.__;)if((r=a.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}x6e(e,t,n,i)};var $O=mn.unmount;function nH(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),e.__c.__H=null),(e=E6e({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(i){return nH(i,t,n)})),e}function iH(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(i){return iH(i,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ES(){this.__u=0,this.t=null,this.__b=null}function rH(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function x0(){this.u=null,this.o=null}mn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$O&&$O(e)},(ES.prototype=new ql).__c=function(e,t){var n=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=rH(i.__v),a=!1,o=function(){a||(a=!0,n.__R=null,r?r(s):s())};n.__R=o;var s=function(){if(!--i.__u){if(i.state.__a){var l=i.state.__a;i.__v.__k[0]=iH(l,l.__c.__P,l.__c.__O)}var u;for(i.setState({__a:i.__b=null});u=i.t.pop();)u.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(o,o)},ES.prototype.componentWillUnmount=function(){this.t=[]},ES.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=nH(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&pO(T1,null,e.fallback);return r&&(r.__u&=-33),[pO(T1,null,t.__a?null:e.children),r]};var AO=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(x0.prototype=new ql).__a=function(e){var t=this,n=rH(t.__v),i=t.o.get(e);return i[0]++,function(r){var a=function(){t.props.revealOrder?(i.push(r),AO(t,e,i)):r()};n?n(a):a()}},x0.prototype.render=function(e){this.u=null,this.o=new Map;var t=jb(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},x0.prototype.componentDidUpdate=x0.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){AO(e,n,t)})};var k6e=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,T6e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,P6e=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$6e=/[A-Z0-9]/g,A6e=typeof document<"u",O6e=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ql.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ql.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var OO=mn.event;function D6e(){}function I6e(){return this.cancelBubble}function N6e(){return this.defaultPrevented}mn.event=function(e){return OO&&(e=OO(e)),e.persist=D6e,e.isPropagationStopped=I6e,e.isDefaultPrevented=N6e,e.nativeEvent=e};var M6e={enumerable:!1,configurable:!0,get:function(){return this.class}},DO=mn.vnode;mn.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,i=t.type,r={};for(var a in n){var o=n[a];if(!(a==="value"&&"defaultValue"in n&&o==null||A6e&&a==="children"&&i==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&o===!0?o="":s==="translate"&&o==="no"?o=!1:s==="ondoubleclick"?a="ondblclick":s!=="onchange"||i!=="input"&&i!=="textarea"||O6e(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":P6e.test(a)?a=s:i.indexOf("-")===-1&&T6e.test(a)?a=a.replace($6e,"-$&").toLowerCase():o===null&&(o=void 0):s=a="oninput",s==="oninput"&&r[a=s]&&(a="oninputCapture"),r[a]=o}}i=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=jb(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),i=="select"&&r.defaultValue!=null&&(r.value=jb(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",M6e)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=k6e,DO&&DO(e)};var IO=mn.__r;mn.__r=function(e){IO&&IO(e),e.__c};var NO=mn.diffed;mn.diffed=function(e){NO&&NO(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};var L6e=Symbol.for("preact-signals");function qk(){if(kp>1)kp--;else{for(var e,t=!1;Pg!==void 0;){var n=Pg;for(Pg=void 0,K4++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&sH(n))try{n.c()}catch(r){t||(e=r,t=!0)}n=i}}if(K4=0,kp--,t)throw e}}var ti=void 0,Pg=void 0,kp=0,K4=0,Ub=0;function aH(e){if(ti!==void 0){var t=e.n;if(t===void 0||t.t!==ti)return t={i:0,S:e,p:ti.s,n:void 0,t:ti,e:void 0,x:void 0,r:t},ti.s!==void 0&&(ti.s.n=t),ti.s=t,e.n=t,32&ti.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ti.s,t.n=void 0,ti.s.n=t,ti.s=t),t}}function Ea(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ea.prototype.brand=L6e;Ea.prototype.h=function(){return!0};Ea.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Ea.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Ea.prototype.subscribe=function(e){var t=this;return Wk(function(){var n=t.value,i=ti;ti=void 0;try{e(n)}finally{ti=i}})};Ea.prototype.valueOf=function(){return this.value};Ea.prototype.toString=function(){return this.value+""};Ea.prototype.toJSON=function(){return this.value};Ea.prototype.peek=function(){var e=ti;ti=void 0;try{return this.value}finally{ti=e}};Object.defineProperty(Ea.prototype,"value",{get:function(){var e=aH(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(K4>100)throw new Error("Cycle detected");this.v=e,this.i++,Ub++,kp++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{qk()}}}});function oH(e){return new Ea(e)}function sH(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function lH(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function uH(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Um(e){Ea.call(this,void 0),this.x=e,this.s=void 0,this.g=Ub-1,this.f=4}(Um.prototype=new Ea).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ub))return!0;if(this.g=Ub,this.f|=1,this.i>0&&!sH(this))return this.f&=-2,!0;var e=ti;try{lH(this),ti=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ti=e,uH(this),this.f&=-2,!0};Um.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ea.prototype.S.call(this,e)};Um.prototype.U=function(e){if(this.t!==void 0&&(Ea.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Um.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Um.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=aH(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function R6e(e){return new Um(e)}function cH(e){var t=e.u;if(e.u=void 0,typeof t=="function"){kp++;var n=ti;ti=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Yk(e),i}finally{ti=n,qk()}}}function Yk(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cH(e)}function F6e(e){if(ti!==this)throw new Error("Out-of-order effect");uH(this),ti=e,this.f&=-2,8&this.f&&Yk(this),qk()}function Sy(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Sy.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Sy.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cH(this),lH(this),kp++;var e=ti;return ti=this,F6e.bind(this,e)};Sy.prototype.N=function(){2&this.f||(this.f|=2,this.o=Pg,Pg=this)};Sy.prototype.d=function(){this.f|=8,1&this.f||Yk(this)};function Wk(e){var t=new Sy(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var xS;function Hm(e,t){mn[e]=t.bind(null,mn[e]||function(){})}function Hb(e){xS&&xS(),xS=e&&e.S()}function dH(e){var t=this,n=e.data,i=B6e(n);i.value=n;var r=tH(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var o;!qU(r.peek())&&((o=t.base)==null?void 0:o.nodeType)===3?t.base.data=r.peek():(t.__$f|=1,t.setState({}))},R6e(function(){var o=i.value.value;return o===0?0:o===!0?"":o||""})},[]);return r.value}dH.displayName="_st";Object.defineProperties(Ea.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dH},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Hm("__b",function(e,t){if(typeof t.type=="string"){var n,i=t.props;for(var r in i)if(r!=="children"){var a=i[r];a instanceof Ea&&(n||(t.__np=n={}),n[r]=a,i[r]=a.peek())}}e(t)});Hm("__r",function(e,t){Hb();var n,i=t.__c;i&&(i.__$f&=-2,(n=i.__$u)===void 0&&(i.__$u=n=function(r){var a;return Wk(function(){a=this}),a.c=function(){i.__$f|=1,i.setState({})},a}())),Hb(n),e(t)});Hm("__e",function(e,t,n,i){Hb(),e(t,n,i)});Hm("diffed",function(e,t){Hb();var n;if(typeof t.type=="string"&&(n=t.__e)){var i=t.__np,r=t.props;if(i){var a=n.U;if(a)for(var o in a){var s=a[o];s!==void 0&&!(o in i)&&(s.d(),a[o]=void 0)}else n.U=a={};for(var l in i){var u=a[l],c=i[l];u===void 0?(u=V6e(n,l,c,r),a[l]=u):u.o(c,r)}}}e(t)});function V6e(e,t,n,i){var r=t in e&&e.ownerSVGElement===void 0,a=oH(n);return{o:function(o,s){a.value=o,i=s},d:Wk(function(){var o=a.value.value;i[t]!==o&&(i[t]=o,r?e[t]=o:o?e.setAttribute(t,o):e.removeAttribute(t))})}}Hm("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var i=n.U;if(i){n.U=void 0;for(var r in i){var a=i[r];a&&a.d()}}}}else{var o=t.__c;if(o){var s=o.__$u;s&&(o.__$u=void 0,s.d())}}e(t)});Hm("__h",function(e,t,n,i){(i<3||i===9)&&(t.__$f|=2),e(t,n,i)});ql.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in t)return!0;for(var r in e)if(r!=="__source"&&e[r]!==this.props[r])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function B6e(e){return tH(function(){return oH(e)},[])}_6e({});var MO;(function(e){e.MONTH_DAYS="month-days",e.YEARS="years"})(MO||(MO={}));var Z4;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(Z4||(Z4={}));Z4.MONDAY;var LO;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(LO||(LO={}));var of;(function(e){e.SLASH="/",e.DASH="-",e.PERIOD="."})(of||(of={}));var sf;(function(e){e.DMY="DMY",e.MDY="MDY",e.YMD="YMD"})(sf||(sf={}));of.SLASH,sf.MDY,of.SLASH,sf.DMY,of.SLASH,sf.YMD,of.PERIOD,sf.DMY,of.DASH,sf.YMD;var RO;(function(e){e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end"})(RO||(RO={}));const z6e={class:"font-weight-bold title"},j6e={class:"d-flex align-center ga-2"},U6e={class:"d-flex align-center justify-between"},H6e={class:"d-flex align-center justify-between"},q6e={class:"text-caption font-italic"},Y6e={class:"d-sm-flex mt-2 ga-2"},W6e=ot({__name:"DialogMotive",props:L_({isEdit:{type:Boolean,required:!1},motiveData:{type:Object,required:!1},defaultSelectedProfileId:{type:String,required:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ho(),{t:n}=gn(),i=fh(),r=Hg(e,"modelValue"),a=z(null),o=vn(),s=Uo(),l=e,u=z(null),c=z(null),d=z({}),f=z(null),h=z("no"),m=z(!1),g=z(!1),v=z(null),y=Array.from({length:60},(Y,M)=>{const I=(M+1)*5,W=Math.floor(I/60),te=I%60;return{title:`${W?W+" h":""} ${te?te+" minutes":""}`,value:I}}),{initTimeSlots:_}=lm(),{initAppointments:S}=Xl(),{refreshAppointmentReasons:w}=Uo(),x=[30,60,2*60,4*60,6*60,12*60,24*60,2*24*60,3*24*60].map(Y=>{const M=Math.floor(Y/60),I=Y%60,W=Math.floor(M/24);return{title:`${W?W+" jour"+(W>1?"s":""):""} ${M%24?M%24+" h":""} ${I?I+" minutes":""}`.trim(),value:Y}}),k=z([]),P=z(null),E=z(!1),A=async()=>{E.value=!0;const{data:Y}=await t.getProfiles();k.value=Y,P.value=Y.find(M=>M.id===l.defaultSelectedProfileId)??Y[0],l.motiveData&&l.motiveData.profile.id&&(P.value=k.value.find(M=>M.id==l.motiveData.profile.id)),E.value=!1};Ve(r,(Y,M)=>{Y&&A()}),Ve(g,(Y,M)=>{Y==!1&&(f.value=null)});const D=Y=>d.value[Y]?d.value[Y][0]:"",T=B(()=>!(!a.value||!u.value||!c.value)),O=z(!1),N=z(!1),V=async()=>{O.value=!0;try{const Y=await o.post("/appointment-reason/",{label:a.value,description:null,price:parseFloat(u.value.replace(/[€,]/g,"")),profile:P.value.id,duration:c.value,delayBeforeConfirm:g.value?f.value:0,breakDuration:m.value?v.value:null,remote:h.value=="yes",presential:!0},{headers:{"Content-Type":"application/json"}});if(Y.status!=200)throw Error(JSON.stringify(Y));const M=Cs();s.appointmentReasons.push(Y.data);try{await w()}catch(I){console.error(I)}Array.isArray(M.selectedAppointmentReasons)?M.selectedAppointmentReasons.push(Y.data):M.selectedAppointmentReasons=[Y.data],nt.success(n("dashboard.time-slot.dialogMotive.successCreateAppointmentReason")),r.value=!1}catch(Y){nt.error(n("dashboard.time-slot.dialogMotive.errorCreateAppointmentReason")),d.value=Y.response.data,console.error(Y)}O.value=!1},j=()=>{u.value=null,c.value=null,f.value=null,v.value=null,a.value=null,P.value=k.value[0]};Ve(()=>l.isEdit,(Y,M)=>{Y||j()}),Ve(()=>{var Y;return(Y=l.motiveData)==null?void 0:Y.id},(Y,M)=>{Y?(u.value=l.motiveData?l.motiveData.price:null,c.value=l.motiveData?l.motiveData.duration:null,l.motiveData.breakDuration>0&&(m.value=!0),l.motiveData.delayBeforeConfirm>0&&(g.value=!0),f.value=l.motiveData?l.motiveData.delayBeforeConfirm:null,l.motiveData.delayBeforeConfirm==0&&(f.value=null),v.value=l.motiveData?l.motiveData.breakDuration:null,a.value=l.motiveData?l.motiveData.label:null,h.value=l.motiveData.remote,P.value=k.value.find(I=>I.id===l.motiveData.profile.id)):j()});const q=async()=>{try{O.value=!0;const Y=await o.put("/appointment-reason/"+l.motiveData.id,{label:a.value,price:u.value,profile:P.value.id,description:null,duration:c.value,breakDuration:m.value?v.value:null,remote:h.value=="yes",delayBeforeConfirm:g.value?f.value:0},{headers:{"Content-Type":"application/json"}});if(Y.status!=200)throw Error(JSON.stringify(Y));i.path==="/dashboard/time-slot"?await Promise.all([_(),w()]):i.path==="/dashboard/appointment"&&await Promise.all([S(),w()]),nt.success(n("dashboard.time-slot.dialogMotive.successEditAppointmentReason"))}catch{O.value=!1,nt.error(n("common.error.errorHasOccurred"))}r.value=!1,O.value=!1},ne=async()=>{Ow.confirm({title:n("dashboard.time-slot.dialogMotive.confirmDeleteTitle"),message:n("dashboard.time-slot.dialogMotive.confirmDeleteMessage"),optionsConfirm:{onConfirm:()=>{ae()},onCancel:()=>{}}})},ae=async()=>{try{N.value=!0;const Y=await o.delete("/appointment-reason/"+l.motiveData.id);if(Y.status!==200)throw Error(JSON.stringify(Y));i.path==="/dashboard/time-slot"?await Promise.all([_(),w()]):i.path==="/dashboard/appointment"&&await Promise.all([S(),w()]),r.value=!1,N.value=!1,nt.success(n("dashboard.time-slot.dialogMotive.successDeleteMotive"))}catch{N.value=!1,nt.error(n("common.error.errorHasOccurred"))}};return Ve(()=>r.value,()=>{l.isEdit||j()}),(Y,M)=>(J(),je(ir,{"model-value":r.value,persistent:"",width:"500",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{class:"bg-white"},{default:le(()=>[C(_r,{class:"d-flex justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[F("span",z6e,Q(l.isEdit?Y.$t("dashboard.time-slot.dialogMotive.editMotiveTitle"):Y.$t("dashboard.time-slot.dialogMotive.createMotiveTitle"))+" "+Q(),1),C(Je,{class:"close-icon mr-2",variant:"text",icon:"mdi-close-circle-outline",onClick:M[0]||(M[0]=I=>r.value=!1)})]),_:1}),C(br,{class:"d-flex flex-column ga-5 xxs-padding"},{default:le(()=>[C(Oa,{modelValue:P.value,"onUpdate:modelValue":M[1]||(M[1]=I=>P.value=I),"error-messages":D("selectedProfile"),items:k.value,class:"e",variant:"underlined",label:Y.$t("dashboard.time-slot.dialogMotive.selectProfile"),"item-title":"mainDiscipline.name","item-value":"id","return-object":""},{"append-inner":le(({})=>[xt(C(Je,{loading:E.value,variant:"text",icon:"mdi-loading",disabled:""},null,8,["loading"]),[[hn,E.value]])]),_:1},8,["modelValue","error-messages","items","label"]),C(K_,{modelValue:a.value,"onUpdate:modelValue":M[2]||(M[2]=I=>a.value=I),variant:"underlined",label:Y.$t("dashboard.time-slot.dialogMotive.placeholderSelectAppointmentReason"),rounded:!1},{"append-inner":le(({})=>[C(ut,{icon:"mdi-checkbox-marked",color:"green"}),C(ut,{icon:"mdi-chevron-down"})]),_:1},8,["modelValue","label"]),F("div",j6e,[C(ut,{icon:"mdi-currency-eur"}),Ze(" "+Q(Y.$t("dashboard.time-slot.dialogMotive.tarif"))+" ",1),C(Tn,{modelValue:u.value,"onUpdate:modelValue":M[3]||(M[3]=I=>u.value=I),density:"compact","error-messages":D("price"),"hide-details":!D("price"),class:"mr-4",placeholder:Y.$t("dashboard.time-slot.dialogMotive.pricePlaceholder")},null,8,["modelValue","error-messages","hide-details","placeholder"]),C(ut,{icon:"mdi-clock-outline"}),Ze(" "+Q(Y.$t("dashboard.time-slot.dialogMotive.duration"))+" ",1),C(Tn,{outlined:"",density:"compact","error-messages":D("duration"),modelValue:c.value,"onUpdate:modelValue":M[4]||(M[4]=I=>c.value=I),"hide-details":!D("duration"),placeholder:Y.$t("dashboard.time-slot.dialogMotive.timePlaceholder")},null,8,["error-messages","modelValue","hide-details","placeholder"])]),F("div",U6e,[Ze(Q(Y.$t("dashboard.time-slot.dialogMotive.suggestBreak"))+" ",1),C(jf,{color:"blue","hide-details":"",modelValue:m.value,"onUpdate:modelValue":M[5]||(M[5]=I=>m.value=I),value:!0,class:"breakBlockMobile"},null,8,["modelValue"]),C(ka,{width:"200px"},{activator:le(({props:I})=>[C(ut,Me(I,{icon:"mdi-help-circle-outline",color:"grey"}),null,16)]),default:le(()=>[Ze(" "+Q(Y.$t("dashboard.time-slot.dialogMotive.tooltipHelpBreak")),1)]),_:1})]),m.value?(J(),je(Oa,{key:0,density:"compact",modelValue:v.value,"onUpdate:modelValue":M[6]||(M[6]=I=>v.value=I),items:K(y),"item-title":"title",placeholder:Y.$t("dashboard.time-slot.dialogMotive.placeholderBreakTime"),"item-value":"value"},null,8,["modelValue","items","placeholder"])):De("",!0),F("div",H6e,[Ze(Q(Y.$t("dashboard.time-slot.dialogMotive.suggestDelayBeforeConfirm"))+" ",1),C(jf,{color:"blue","hide-details":"",modelValue:g.value,"onUpdate:modelValue":M[7]||(M[7]=I=>g.value=I),value:!0,class:"breakBlockMobile"},null,8,["modelValue"]),C(ka,{width:"200px"},{activator:le(({props:I})=>[C(ut,Me(I,{icon:"mdi-help-circle-outline",color:"grey"}),null,16)]),default:le(()=>[Ze(" "+Q(Y.$t("dashboard.time-slot.dialogMotive.tooltipHelpDelay")),1)]),_:1})]),g.value?(J(),je(Oa,{key:1,density:"compact",modelValue:f.value,"onUpdate:modelValue":M[8]||(M[8]=I=>f.value=I),items:K(x),"item-title":"title",placeholder:Y.$t("dashboard.time-slot.dialogMotive.placeholderDelayBeforeConfirm"),"item-value":"value"},null,8,["modelValue","items","placeholder"])):De("",!0),F("p",q6e,Q(Y.$t("dashboard.time-slot.dialogMotive.attachedToSelectedProfile")),1),F("div",Y6e,[e.isEdit?(J(),je(Je,{key:0,color:"red",variant:"flat",loading:N.value,onClick:ne,class:"w-sm-50 w-100 mb-2 mb-sm-0"},{default:le(()=>[Ze(Q(K(n)("dashboard.time-slot.dialogMotive.deleteMotive")),1)]),_:1},8,["loading"])):De("",!0),e.isEdit?(J(),je(Je,{key:1,class:"px-6 w-sm-50 w-100",variant:"flat",color:"secondary",loading:O.value,disabled:!T.value,onClick:q},{default:le(()=>[Ze(Q(Y.$t("dashboard.time-slot.dialogMotive.update")),1)]),_:1},8,["loading","disabled"])):De("",!0),e.isEdit?De("",!0):(J(),je(Je,{key:2,style:{color:"#757575"},class:"px-6 w-sm-50 w-100 font-weight-bold",color:"#E0E0E0",onClick:M[9]||(M[9]=I=>r.value=!1)},{default:le(()=>[Ze(Q(Y.$t("dashboard.time-slot.cancel")),1)]),_:1})),e.isEdit?De("",!0):(J(),je(Je,{key:3,class:"px-6 w-sm-50 w-100",variant:"flat",color:"secondary",loading:O.value,disabled:!T.value,onClick:V},{default:le(()=>[Ze(Q(Y.$t("dashboard.time-slot.save")),1)]),_:1},8,["loading","disabled"]))])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const fH=on(W6e,[["__scopeId","data-v-eb0afac0"]]),G6e=e=>(ul("data-v-a8c3fa85"),e=e(),cl(),e),K6e={class:"d-flex flex-column ga-3"},Z6e={class:"filter-title"},X6e={key:0},J6e={class:"text-caption"},Q6e={key:0},ePe={key:1,class:"text-black text-caption align-self-center"},tPe={class:"d-flex flex-wrap ga-1"},nPe={class:"d-flex align-space-center justify-space-between ga-1"},iPe={class:"discipline-choose"},rPe={key:0},aPe={key:1,class:"text-black text-caption align-self-center"},oPe={class:"d-flex flex-wrap ga-1"},sPe={class:"d-flex align-space-center justify-space-between ga-1"},lPe={class:"discipline-choose"},uPe={key:0},cPe={key:1,class:"text-black text-caption align-self-center"},dPe={class:"d-flex flex-wrap ga-1"},fPe={class:"d-flex align-space-center justify-space-between ga-1"},hPe={class:"discipline-choose"},pPe={class:"d-flex flex-column ga-2"},mPe={class:"mb-1 filter-title"},vPe={class:"align-center d-flex ga-2"},gPe={class:"motives-list",rounded:"lg",color:"white",border:""},yPe={class:""},_Pe={class:"d-flex justify-space-between px-4 py-1 motive-list cursor-pointer"},bPe={class:""},wPe={class:"motive-title"},SPe={class:"d-flex ga-1 motive-detail"},CPe={class:""},EPe={class:""},xPe=G6e(()=>F("img",{width:"18",height:"18",src:Yw,alt:"edit"},null,-1)),kPe={key:0,class:"text-center font-italic text-gray-80"},TPe=ot({__name:"CustomSidebar",setup(e){const{t}=gn(),n=Xl(),i=Y=>{const M=Y.getFullYear(),I=String(Y.getMonth()+1).padStart(2,"0"),W=String(Y.getDate()).padStart(2,"0"),te=`${M}-${I}-${W}`;cs.setDate(te),n.currentMonthYear=$e(Y).format("MMMM YYYY")},r=Cs();Un();const a=hl(),o=Ho(),s=z([]);Ve(()=>o.profiles,Y=>{Y&&Y.length>0&&(s.value=Y.map(M=>({...M.mainDiscipline,profileId:M.id})))});const{lgAndUp:l}=Ki(),{sidebarState:u,updateSidebarState:c,initSidebarState:d}=Rm(),f=Uo(),h=z(null),m=z(!1),g=()=>{m.value=!0},v=Gf(async Y=>{Y&&(await n.fillPatients(Y.trim()),m.value=!1)},500),y=Y=>{h.value=Y,n.filter.patientId=Y?Y.id:""},_=z([]),S=z([]),w=z([]),x=z(new Date),k=z("018ea8c3-97c6-75ce-8909-7b8f32756b57");Ve(u,(Y,M)=>{const I=document.querySelector(".sx__calendar-content");Y&&l.value?I.classList.remove("hidden-sidebar"):!Y&&l.value&&I.classList.add("hidden-sidebar")}),Ve([_,S,w,h],([Y,M,I,W],[te,he,oe,U])=>{const ee=Y.map(pe=>pe.profileId),re=M.map(pe=>pe.id),ue=I.map(pe=>pe.id);D(ee,re,ue,W?W.id:"")});const P=Y=>{_.value=_.value.filter(M=>M.id!==Y.id)},E=Y=>{w.value=w.value.filter(M=>M.id!==Y.id)},A=Y=>{S.value=S.value.filter(M=>M.id!==Y.id)},D=Gf(async(Y=null,M=null,I=null,W=null)=>{In.currentRoute.value.name==="DashboardTimeSlot"&&Hn.emit("initTimeSlots",{profileIds:Y,appointmentReasonIds:M,addressIds:I,ownerId:W,start:null,end:null}),In.currentRoute.value.name==="DashboardAppointment"&&n.initAppointments({profileIds:Y,appointmentReasonIds:M,addressIds:I,patientId:W})},1e3);B(()=>In.currentRoute.value.name==="DashboardTimeSlot");const T=B(()=>In.currentRoute.value.name==="DashboardAppointment");B(()=>T.value?t("dashboard.appointment.createAppointment"):t("dashboard.time-slot.createTimeSlot"));const O=z(!1),N=z(!1),V=er({breakDuration:null,description:"",duration:0,id:"",label:"",price:0,profile:{id:""},remote:"no",timeslot:null,delayBeforeConfirm:0}),j=Y=>{Object.assign(V,Y),N.value=!0,O.value=!0},q=()=>{if(!a.addresses||!a.addresses.length||!o.profiles||!o.profiles.length){r.dialogYouNeedProfilesAndAddress=!0;return}N.value=!1,Object.assign(V,{}),O.value=!0};tn(async()=>{d(),await n.fillPatients(),l.value||c(!1)});const ne=z(""),ae=B(()=>ne.value?f.appointmentReasons.filter(Y=>Y.label.toLowerCase().includes(ne.value.toLowerCase())):f.appointmentReasons);return(Y,M)=>(J(),ve("div",K6e,[C(J_,{modelValue:x.value,"onUpdate:modelValue":[M[0]||(M[0]=I=>x.value=I),i],"hide-details":"","bg-color":"white","show-adjacent-months":"",class:"flex-grow-0 flex-shrink-0 pa-1 pt-0 custom-date-picker","hide-header":""},null,8,["modelValue"]),F("div",Z6e,Q(Y.$t("calendar.filterBy"))+" :",1),Y.$route.name==="DashboardAppointment"?(J(),ve("div",X6e,[C(qp,{modelValue:h.value,"onUpdate:modelValue":[M[1]||(M[1]=I=>h.value=I),M[2]||(M[2]=I=>y(I))],placeholder:Y.$t("dashboard.appointment.placeholderSearchPatient"),items:K(n).patients,"auto-select-first":!1,"custom-filter":()=>!0,clearable:"","item-title":"fullName","item-value":"id","return-object":"","hide-details":"","validate-on":"lazy",variant:"solo",class:"custom-input border rounded-lg","bg-color":"transparent",density:"compact",onInput:g,"onUpdate:search":K(v)},{"append-inner":le(({isActive:I})=>[xt(C(Je,{loading:m.value,variant:"text",icon:"mdi-loading",disabled:""},null,8,["loading"]),[[hn,m.value&&I]])]),item:le(({item:I,props:W})=>[C(fi,NE(_2(W)),{prepend:le(()=>[C(Ui,{color:"surface-variant",size:"33"},{default:le(()=>[Ze(Q(I.raw.firstName.slice(0,1)),1)]),_:2},1024)]),default:le(()=>[F("div",J6e,Q(I.raw.email),1)]),_:2},1040)]),"prepend-inner":le(()=>[C(ut,{size:"16"},{default:le(()=>[Ze("mdi-account-outline")]),_:1})]),_:1},8,["modelValue","placeholder","items","onUpdate:search"])])):De("",!0),C(Oa,{modelValue:_.value,"onUpdate:modelValue":M[3]||(M[3]=I=>_.value=I),"hide-details":"",density:"compact",class:"flex-grow-0","item-title":"name","return-object":"",multiple:"",placeholder:Y.$t("dashboard.time-slot.yourProfile"),items:s.value,rounded:"lg"},{selection:le(({item:I,index:W})=>[W<1?(J(),ve("span",Q6e,Q(I.title),1)):De("",!0),W===1?(J(),ve("span",ePe," , ... ")):De("",!0)]),"prepend-inner":le(()=>[C(ut,{size:"16"},{default:le(()=>[Ze("mdi-account-circle-outline")]),_:1})]),_:1},8,["modelValue","placeholder","items"]),F("div",tPe,[(J(!0),ve(Ue,null,Ht(_.value,I=>(J(),je(ma,{class:"px-1",key:I.id||I.name,variant:"elevated",elevation:"0",border:"",color:"#E0E0E0",density:"compact",rounded:"pill"},{default:le(()=>[F("div",nPe,[F("span",iPe,Q(I.name),1),C(ut,{color:"#757575",size:"16",class:"ml-auto cursor-pointer",onClick:W=>P(I)},{default:le(()=>[Ze(" mdi-close-circle-outline ")]),_:2},1032,["onClick"])])]),_:2},1024))),128))]),C(Oa,{modelValue:w.value,"onUpdate:modelValue":M[4]||(M[4]=I=>w.value=I),class:"flex-grow-0","hide-details":"",density:"compact",multiple:"","item-value":"id","return-object":"","item-title":"formattedAddress",placeholder:Y.$t("dashboard.time-slot.yourAddress"),items:K(a).addresses,rounded:"lg"},{selection:le(({item:I,index:W})=>[W<1?(J(),ve("span",rPe,Q(I.title),1)):De("",!0),W===1?(J(),ve("span",aPe," , ... ")):De("",!0)]),"prepend-inner":le(()=>[C(kg,{height:16,width:16})]),_:1},8,["modelValue","placeholder","items"]),F("div",oPe,[(J(!0),ve(Ue,null,Ht(w.value,I=>(J(),je(ma,{class:"px-1",key:I.id,variant:"elevated",elevation:"0",border:"",color:"#E0E0E0",density:"compact",rounded:"pill"},{default:le(()=>[F("div",sPe,[F("span",lPe,Q(I.addressLine),1),C(ut,{color:"#757575",size:"16",class:"ml-auto cursor-pointer",onClick:W=>E(I)},{default:le(()=>[Ze(" mdi-close-circle-outline ")]),_:2},1032,["onClick"])])]),_:2},1024))),128))]),C(Oa,{modelValue:S.value,"onUpdate:modelValue":M[5]||(M[5]=I=>S.value=I),class:"flex-grow-0","hide-details":"",density:"compact",multiple:"","item-value":"id","return-object":"","item-title":"label",placeholder:Y.$t("dashboard.time-slot.motif"),items:K(f).appointmentReasons,rounded:"lg"},{selection:le(({item:I,index:W})=>[W<1?(J(),ve("span",uPe,Q(I.title),1)):De("",!0),W===1?(J(),ve("span",cPe," , ... ")):De("",!0)]),"prepend-inner":le(()=>[C(Vk,{width:14,height:14})]),_:1},8,["modelValue","placeholder","items"]),F("div",dPe,[(J(!0),ve(Ue,null,Ht(S.value,I=>(J(),je(ma,{class:"px-1",key:I.id,variant:"elevated",elevation:"0",border:"",color:"#E0E0E0",density:"compact",rounded:"pill"},{default:le(()=>[F("div",fPe,[F("span",hPe,Q(K(xp)(I.label)),1),C(ut,{color:"#757575",size:"16",class:"ml-auto cursor-pointer",onClick:W=>A(I)},{default:le(()=>[Ze(" mdi-close-circle-outline ")]),_:2},1032,["onClick"])])]),_:2},1024))),128))]),F("div",pPe,[F("div",null,[F("div",mPe,Q(Y.$t("dashboard.time-slot.motives")),1),F("div",vPe,[C(Tn,{modelValue:ne.value,"onUpdate:modelValue":M[6]||(M[6]=I=>ne.value=I),placeholder:Y.$t("calendar.search"),"hide-details":"",density:"compact",rounded:"lg"},{"prepend-inner":le(()=>[C(ut,{size:"16"},{default:le(()=>[Ze("mdi-magnify")]),_:1})]),_:1},8,["modelValue","placeholder"]),C(Je,{density:"comfortable",variant:"flat",color:"secondary",icon:"mdi-loading",onClick:q},{default:le(()=>[C(ut,null,{default:le(()=>[Ze("mdi-plus")]),_:1})]),_:1})])]),F("div",gPe,[(J(!0),ve(Ue,null,Ht(ae.value,(I,W)=>(J(),ve("div",yPe,[F("div",_Pe,[F("div",bPe,[F("span",wPe,Q(K(xp)(I.label)),1),F("div",SPe,[F("span",CPe,Q(Y.$t("dashboard.time-slot.dialogTimeSlot.duration",{duration:I.duration})),1),Ze(" - "),F("span",EPe,Q(I.price)+" €",1)])]),C(Je,{icon:"",variant:"text",size:"small",class:"pa-1",onClick:te=>j(I)},{default:le(()=>[xPe]),_:2},1032,["onClick"])])]))),256)),K(f).appointmentReasons.length?De("",!0):(J(),ve("div",kPe,Q(Y.$t("calendar.no-motif")),1))]),De("",!0)]),C(fH,{modelValue:O.value,"onUpdate:modelValue":M[8]||(M[8]=I=>O.value=I),"profile-id":k.value,"is-edit":N.value,"motive-data":V},null,8,["modelValue","profile-id","is-edit","motive-data"])]))}});const FO=on(TPe,[["__scopeId","data-v-a8c3fa85"]]),PPe={key:1,class:"d-flex flex-column fill-height custom-sidebar-right"},hH=ot({__name:"CustomSidebarWrapper",setup(e){const{lgAndUp:t,mdAndDown:n}=Ki(),{sidebarState:i,updateSidebarState:r}=Rm(),a=fh(),o=cj(),{t:s}=gn();return tn(()=>{a.name==="DashboardTimeSlot"&&o.updateHeaderState(s("dashboard.menu.appointment")),a.name==="DashboardAppointment"&&o.updateHeaderState(s("dashboard.menu.timeslot"))}),(l,u)=>K(n)?(J(),je(RR,{key:0,"model-value":K(i),temporary:!0,absolute:"",class:"custom-nav-drawer d-flex flex-column fill-height ga-5 px-4 custom-sidebar-right",width:"222",color:"white","onUpdate:modelValue":u[0]||(u[0]=c=>K(r)(!K(i)))},{default:le(()=>[C(FO)]),_:1},8,["model-value"])):K(t)?(J(),ve("div",PPe,[C(FO)])):De("",!0)}});const $Pe={class:"font-weight-bold"},APe={class:"text-teal font-weight-bold"},OPe={class:"d-sm-flex align-center ga-2 w-100 mt-2"},DPe={class:"w-sm-66 w-100 mb-2 mb-sm-0"},IPe={class:"text-gray-80"},NPe={class:"w-sm-33 w-100"},MPe={class:"text-gray-80"},LPe={key:0,class:"text-error text-caption"},RPe={class:"text-teal font-weight-bold"},FPe={class:"d-sm-flex align-center ga-2 w-100 mt-2"},VPe={class:"w-sm-66 w-100 mb-2 mb-sm-0"},BPe={class:"text-gray-80"},zPe={class:"w-sm-33 w-100"},jPe={class:"text-gray-80"},UPe={key:0,class:"text-error text-caption"},HPe={key:0,class:"text-error text-caption"},qPe={class:"w-100 d-sm-flex ga-sm-2 ga-0 mt-5"},YPe={style:{color:"#757575","font-weight":"700"}};const pH=ot({__name:"DialogVacation",setup(e){const{t}=gn(),{smAndDown:n,xs:i}=Ki(),r=z(!1),a=z(!1),o=z(!1),s=z(null),l=z(null),u=z(null),c=z(null),d=z(null),f=z(null),h=new Date().toISOString().split("T")[0],m=z(""),g=z(""),v=z("#12C29B"),y=z("");Hn.addListener("toggleVacationDialog",()=>{a.value=!a.value});const _=z("");Hn.addListener("updateVacation",Pe=>{r.value=!0,a.value=!0,_.value=Pe.id,s.value=$e(Pe.startDate,"YYYY-MM-DD HH:mm").toDate(),l.value=$e(Pe.startDate,"YYYY-MM-DD HH:mm"),u.value=$e(Pe.endDate,"YYYY-MM-DD HH:mm").toDate(),c.value=$e(Pe.endDate).format("HH:mm"),Y.value=Pe.startHour,M.value=Pe.startMinute,I.value=Pe.endHour,W.value=Pe.endMinute});const{refreshVacations:S}=yh(),w=()=>{k.value={},a.value=!1,r.value=!1,be.value=!1,s.value=null,l.value=null,u.value=null,c.value=null,Z.value="",Y.value=0,M.value=0,I.value=23,W.value=59,o.value=!1},x=z(!1),k=z({}),P=()=>(k.value={},s.value||(k.value.startDate="Entrez une date de début."),u.value||(k.value.endDate="Entrez une date de fin."),Object.keys(k.value).length===0),E=B(()=>$e(`${$e(s.value).format("YYYY-MM-DD")} ${Number(Y.value)<10?"0"+Number(Y.value):Number(Y.value)}:${Number(M.value)<10?"0"+Number(M.value):Number(M.value)}`,"YYYY-MM-DD HH:mm")),A=B(()=>$e(`${$e(u.value).format("YYYY-MM-DD")} ${Number(I.value)<10?"0"+Number(I.value):Number(I.value)}:${Number(W.value)<10?"0"+Number(W.value):Number(W.value)}`,"YYYY-MM-DD HH:mm")),D=async()=>{if(!P())return!1;await T(),be.value=!1,m.value=r.value?t("dashboard.time-slot.dialogVacation.confirmUpdateVacation"):t("dashboard.time-slot.dialogVacation.confirmCreateVacation"),y.value=r.value?"":t("dashboard.time-slot.dialogVacation.confirmMinTitle"),g.value=Z.value,o.value=!0},T=async()=>{if(!P())return!1;try{Se.value=!0;const Pe={startDate:E.value.toISOString(),endDate:A.value.toISOString()};let we;if(r.value)try{we=await X.put(`/vacation/${_.value}/validate`,Pe,{headers:{"Content-Type":"application/json"}})}catch(Ae){Z.value=Ae.response.data.message}else try{we=await X.post("/vacation/validate",Pe,{headers:{"Content-Type":"application/json"}}),Z.value=we.data.message}catch(Ae){Z.value=Ae.response.data.message,v.value="red"}}catch{}Se.value=!1},O=()=>{w()},N=z(t("dashboard.time-slot.dialogVacation.year")),V=z(t("dashboard.time-slot.dialogVacation.month")),j=z(t("dashboard.time-slot.dialogVacation.day")),q=z(t("dashboard.time-slot.dialogVacation.year")),ne=z(t("dashboard.time-slot.dialogVacation.month")),ae=z(t("dashboard.time-slot.dialogVacation.day")),Y=z(0),M=z(0),I=z(23),W=z(59),te=()=>typeof N.value!="number"||typeof V.value!="number"||typeof j.value!="number",he=()=>typeof q.value!="number"||typeof ne.value!="number"||typeof ae.value!="number",oe=B(()=>te()?$e("invalid date"):$e(`${N.value}-${V.value}-${j.value} ${Number(Y.value)<10?"0"+Number(Y.value):Number(Y.value)}:${Number(M.value)<10?"0"+Number(M.value):Number(M.value)}`,"YYYY-MM-DD HH:mm")),U=B(()=>he()?$e("invalid date"):$e(`${q.value}-${ne.value}-${ae.value} ${Number(I.value)<10?"0"+Number(I.value):Number(I.value)}:${Number(W.value)<10?"0"+Number(W.value):Number(W.value)}`,"YYYY-MM-DD HH:mm")),ee=()=>!(oe.value.isValid&&oe.value.isValid()&&U.value.isValid()),re=z(!1),ue=z(!1);Ve([N,V,j,Y,M,q,ne,ae,I,W],([Pe,we,Ae,Ie,Ye,rt,Ot,$n,jt,Fn],[at,dt,ft,Kt,St,Mt,sn,lr,ml,Rr])=>{N.value=Pe,V.value=we,j.value=Ae,Y.value=Ie,M.value=Ye,q.value=rt,ne.value=Ot,ae.value=$n,I.value=jt,W.value=Fn,pe()});const pe=()=>{re.value=!ee(),ue.value=!!ge(),ue.value&&ye()},ge=()=>!ee()&&(oe.value.isAfter(U.value)||oe.value.isSame(U.value))?t("dashboard.time-slot.dialogVacation.errorDate"):!1,Te=z(!1),Z=z("");B(()=>Z.value?!0:!!ge()),B(()=>{const Pe=ge();return Te.value?t("dashboard.time-slot.dialogVacation.alert"):Pe?String(Pe):Z.value?Z.value:""});const X=vn(),ye=async()=>{if(!ee()){try{Se.value=!0;const Pe={startDate:oe.value.toISOString(),endDate:U.value.toISOString()};let we;if(r.value)try{we=await X.put(`/vacation/${_.value}/validate`,Pe,{headers:{"Content-Type":"application/json"}})}catch(Ae){Z.value=Ae.response.data.message}else try{we=await X.post("/vacation/validate",Pe,{headers:{"Content-Type":"application/json"}}),Z.value=we.data.message}catch(Ae){Z.value=Ae.response.data.message}}catch{}Se.value=!1}},Se=z(!1),Ee=async()=>{Se.value=!0;try{const Pe={startDate:E.value.toISOString(),endDate:A.value.toISOString()};let we;if(r.value){if(we=await X.put(`/vacation/${_.value}/update`,Pe),we.status!==200)throw Error(JSON.stringify(we));nt.success(r.value?t("dashboard.time-slot.dialogVacation.successVacactionValidateUpdate"):t("dashboard.time-slot.dialogVacation.successVacactionValidate"))}else we=await X.post("/vacation/create",Pe),nt.success(t("dashboard.time-slot.dialogVacation.successVacactionValidate"));await S(),await xe()}catch{nt.error(t("dashboard.time-slot.dialogVacation.errorVacactionValidate"))}Se.value=!1,w()},_e=z(!1),be=z(!1),ie=()=>{be.value=!0,m.value=t("dashboard.time-slot.dialogVacation.confirmDeletionTitle"),g.value=t("dashboard.time-slot.dialogVacation.confirmDeletionMessage"),o.value=!0},se=()=>{if(be.value){Re();return}Ee()},de=X1(),xe=async()=>{const{initTimeSlots:Pe}=lm(),{initAppointments:we}=Xl();de.currentRoute.value.name==="DashboardTimeSlot"&&await Pe(),de.currentRoute.value.name==="DashboardAppointment"&&await we()},Re=async()=>{_e.value=!0;try{await X.delete("/vacation/"+_.value+"/delete"),nt.success(t("dashboard.time-slot.dialogVacation.successDeleteVacaction")),await S(),await xe()}catch{nt.error(t("common.error.errorHasOccurred"))}_e.value=!1,w()};return(Pe,we)=>(J(),je(ir,{modelValue:a.value,"onUpdate:modelValue":we[21]||(we[21]=Ae=>a.value=Ae),persistent:"","min-width":K(n)?100:500,width:"600",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{class:"bg-white"},{default:le(()=>[C(_r,{style:{"background-color":"#0299781a"},class:"d-flex pa-2 justify-center w-full align-center text-primary"},{default:le(()=>[F("span",$Pe,Q(r.value?Pe.$t("dashboard.time-slot.dialogVacation.titleEdit"):Pe.$t("dashboard.time-slot.dialogVacation.title")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:we[0]||(we[0]=()=>O()),src:_h})]),_:1}),C(ou,{ref:"form",modelValue:x.value,"onUpdate:modelValue":we[8]||(we[8]=Ae=>x.value=Ae)},{default:le(()=>[C(br,{class:"d-flex flex-column ga-5 px-4 px-sm-10 pt-5"},{default:le(()=>[F("div",null,[F("span",APe,Q(Pe.$t("dashboard.time-slot.dialogVacation.from")),1),F("div",OPe,[F("div",DPe,[F("span",IPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.startDate")),1),C(K(dm),{"prepend-icon":"",class:"w-100 rounded-lg border",ref_key:"startDatePicker",ref:d,modelValue:s.value,"onUpdate:modelValue":we[1]||(we[1]=Ae=>s.value=Ae),"append-inner-icon":"mdi-calendar-remove",placeholder:Pe.$t("dashboard.time-slot.dialogVacation.datePlaceholder"),density:"compact",rounded:"lg","hide-details":"auto","hide-actions":"",flat:"",variant:"outlined",min:K(h)},null,8,["modelValue","placeholder","min"])]),F("div",NPe,[F("span",MPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.startTime")),1),C(Rb,{class:"d",hour:Y.value,"onUpdate:hour":we[2]||(we[2]=Ae=>Y.value=Ae),minute:M.value,"onUpdate:minute":we[3]||(we[3]=Ae=>M.value=Ae)},null,8,["hour","minute"])])]),k.value.startDate?(J(),ve("span",LPe,Q(k.value.startDate),1)):De("",!0)]),F("div",null,[F("span",RPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.to")),1),F("div",FPe,[F("div",VPe,[F("span",BPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.endDate")),1),C(K(dm),{"prepend-icon":"",class:"w-100 endDate",ref_key:"endDatePicker",ref:f,modelValue:u.value,"onUpdate:modelValue":we[4]||(we[4]=Ae=>u.value=Ae),"append-inner-icon":"mdi-calendar-remove",placeholder:Pe.$t("dashboard.time-slot.dialogVacation.datePlaceholder"),density:"compact",rounded:"lg","hide-details":"auto","hide-actions":"",variant:"outlined",min:K(h)},null,8,["modelValue","placeholder","min"])]),F("div",zPe,[F("span",jPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.endTime")),1),C(Rb,{class:"d",hour:I.value,"onUpdate:hour":we[5]||(we[5]=Ae=>I.value=Ae),minute:W.value,"onUpdate:minute":we[6]||(we[6]=Ae=>W.value=Ae)},null,8,["hour","minute"]),k.value.endDateTime?(J(),ve("span",UPe,Q(k.value.endDateTime),1)):De("",!0)])]),k.value.endDate?(J(),ve("span",HPe,Q(k.value.endDate),1)):De("",!0)]),F("div",qPe,[r.value?(J(),je(Je,{key:0,class:"w-sm-50 w-100 mb-2 mb-sm-0",color:"red-darken-1",loading:_e.value,onClick:ie},{default:le(()=>[Ze(Q(Pe.$t("dashboard.time-slot.delete")),1)]),_:1},8,["loading"])):(J(),je(Je,{key:1,onClick:O,color:"#E0E0E0",class:"w-sm-50 w-100 mb-2 mb-sm-0"},{default:le(()=>[F("span",YPe,Q(Pe.$t("dashboard.time-slot.dialogVacation.cancelBtn")),1)]),_:1})),C(Je,{loading:Se.value,onClick:we[7]||(we[7]=()=>D()),color:"secondary",class:"w-sm-50 w-100"},{default:le(()=>[Ze(Q(r.value?`${Pe.$t("dashboard.time-slot.dialogVacation.save")}`:`${Pe.$t("dashboard.time-slot.dialogVacation.create")}`),1)]),_:1},8,["loading"])])]),_:1})]),_:1},8,["modelValue"]),De("",!0),De("",!0),De("",!0)]),_:1}),o.value?(J(),je(j8e,{key:0,dialog:o.value,"onUpdate:cancel":we[19]||(we[19]=Ae=>o.value=!1),"onUpdate:confirm":we[20]||(we[20]=()=>se()),title:m.value,minTitle:y.value,description:g.value,warningColor:v.value},null,8,["dialog","title","minTitle","description","warningColor"])):De("",!0)]),_:1},8,["modelValue","min-width"]))}});const Gk="/assets/google-logo-378e5047.svg",WPe={class:"calendar-title d-flex justify-start"},GPe={key:1,class:"duration d-flex align-center ga-1"},KPe={key:0,class:"d-inline-flex calendar-appointment-google-icon",src:Gk},ZPe={key:2,class:"nowrap motif-label d-inline-flex mt-1"},XPe={class:"d-flex flex-column ga-3"},JPe={class:"tooltip-title"},QPe={class:"d-flex align-center ga-1 text-gray-80"},e$e={key:0,class:"d-inline-flex calendar-appointment-google-icon",src:Gk},t$e={class:"duration"},n$e={key:0,class:"remote-rdv d-inline-flex"},i$e={class:"d-flex flex-column ga-2",style:{"font-size":"10px"}},r$e={class:"d-flex justify-space-between align-start"},a$e={class:"d-flex align-center ga-1"},o$e={class:"text-gray-80",style:{"font-weight":"500"}},s$e={class:"text-gray-70"},l$e={class:"d-flex align-start justify-space-between"},u$e={class:"d-flex align-center ga-1"},c$e={class:"text-gray-80",style:{"font-weight":"500"}},d$e={key:0,class:"text-gray-70 text-right"},f$e={key:1,class:"text-gray-70 text-right"},h$e={class:"d-flex align-start justify-space-between"},p$e={class:"d-flex align-center ga-1"},m$e={class:"text-gray-80",style:{"font-weight":"500"}},v$e={class:"text-gray-70 text-right"},g$e={key:0,class:"d-flex align-start justify-space-between align-center"},y$e={class:"d-flex align-center ga-1"},_$e={class:"text-right bg-gray-20 pa-1 rounded-pill",style:{color:"#000000"}},b$e=ot({__name:"CustomTimeGridEvent",props:{calendarEvent:{type:Object,required:!0}},setup(e){$e.extend(Im);function t(u,c,d,f){let h=$e(u,"YYYY-MM-DD HH:mm"),m=$e(c,"YYYY-MM-DD HH:mm"),g=$e(d,"YYYY-MM-DD HH:mm"),v=$e(f,"YYYY-MM-DD HH:mm");return h.isBefore(v)&&m.isAfter(g)}const n=e,i=yh(),r=B(()=>{if(n.calendarEvent.type!=="TimeSlotEvent")return!1;for(const u of i.vacations)if(t(n.calendarEvent.start,n.calendarEvent.end,u.start,u.end))return!0;return!1}),a=B(()=>{let u=n.calendarEvent.color?n.calendarEvent.color:"#4467c5",d=((h,m)=>{const g=h.replace("#",""),v=parseInt(g.substring(0,2),16),y=parseInt(g.substring(2,4),16),_=parseInt(g.substring(4,6),16);return`rgba(${v}, ${y}, ${_}, ${m})`})(u,.1),f={color:u,background:d,border:"1px solid "+u,borderRadius:"8px"};return n.calendarEvent.type==="VacationEvent"&&(f.borderLeft="4px solid #6750a4",f.background="#eaddff",f.color="#6750a4"),r.value&&(f.opacity="0.5 !important"),f}),o=B(()=>$e(n.calendarEvent.start,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h")),s=B(()=>$e(n.calendarEvent.end,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h")),l=B(()=>{let u=$e(n.calendarEvent.end),c=$e(n.calendarEvent.start);return u.diff(c,"minute")});return(u,c)=>(J(),je(ka,{eager:"",offset:"7",width:"306","content-class":"time-grid-event elevation-14",location:"end"},{activator:le(({props:d})=>{var f;return[F("div",Me(d,{class:["custom-time-grid-event cursor-pointer",{"border-green":e.calendarEvent.event_type=="synced_from_google","event-true-color":e.calendarEvent.color!=null}],style:a.value}),[e.calendarEvent.weekRepeat=="yes"?(J(),je(ut,{key:0,class:"icon-repeat"},{default:le(()=>[Ze(" mdi-autorenew ")]),_:1})):De("",!0),F("div",WPe,Q(K(xp)(e.calendarEvent.title)),1),l.value>45?(J(),ve("div",GPe,[e.calendarEvent.event_type=="synced_from_google"?(J(),ve("img",KPe)):(J(),ve(Ue,{key:1},[e.calendarEvent.acceptRemote==="remote"?(J(),je(Tg,{key:0,color:"#616161",outlined:""})):(J(),je(kg,{key:1}))],64)),F("span",{class:Gt({"text-white":e.calendarEvent.event_type=="synced_from_google"})},Q(u.$t("dashboard.time-slot.from_X_to_Y",{X:o.value,Y:s.value})),3)])):De("",!0),e.calendarEvent.appointmentReason&&((f=e.calendarEvent.appointmentReason)==null?void 0:f.duration)>60?(J(),ve("div",ZPe,Q(K(xp)(e.calendarEvent.appointmentReason.label)),1)):De("",!0)],16)]}),default:le(()=>{var d,f,h,m;return[F("div",XPe,[F("div",null,[F("div",JPe,Q(K(xp)(e.calendarEvent.title,40)),1),F("div",QPe,[e.calendarEvent.event_type=="synced_from_google"?(J(),ve("img",e$e)):(J(),ve(Ue,{key:1},[e.calendarEvent.acceptRemote==="remote"?(J(),je(Tg,{key:0,color:"#616161",outlined:""})):(J(),je(kg,{key:1}))],64)),F("span",t$e,Q(u.$t("dashboard.time-slot.from_X_to_Y",{X:o.value,Y:s.value})),1)]),e.calendarEvent.acceptRemote==="remote"?(J(),ve("div",n$e,Q(u.$t("calendar.remote-consultation")),1)):De("",!0)]),F("div",i$e,[F("div",r$e,[F("div",a$e,[C(TU),F("span",o$e,Q(u.$t("calendar.duration")),1)]),F("span",s$e,Q(K(ik)(l.value)),1)]),F("div",l$e,[F("div",u$e,[C(Vk),F("span",c$e,Q(u.$t("calendar.motif")),1)]),e.calendarEvent.appointmentReason&&e.calendarEvent.appointmentReason.label?(J(),ve("span",d$e,Q(e.calendarEvent.appointmentReason.label),1)):(J(),ve("span",f$e,"-"))]),F("div",h$e,[F("div",p$e,[C(kg),F("span",m$e,Q(u.$t("calendar.address")),1)]),F("span",v$e,Q((f=(d=e.calendarEvent)==null?void 0:d.address)==null?void 0:f.formattedAddress),1)]),((h=e.calendarEvent)==null?void 0:h.acceptRemote)==="remote"?(J(),ve("div",g$e,[F("div",y$e,[C(Tg)]),F("span",_$e,Q(((m=e.calendarEvent)==null?void 0:m.meetingLink)??"---"),1)])):De("",!0)])])]}),_:1}))}});const mH=on(b$e,[["__scopeId","data-v-8415a62e"]]);var vH=(e=>(e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY",e[e.SUNDAY=0]="SUNDAY",e))(vH||{});const w$e={for:"",class:"custom-text-gray"},S$e={class:"mt-2"},C$e={for:"",class:"custom-text-gray"},E$e=ot({__name:"SelectProfilesAndAddresses",props:{initialProfiles:{type:Array,default:()=>[]},initialAddresses:{type:Array,default:()=>[]}},emits:["update:profiles","update:addresses","update:is-valid"],setup(e,{expose:t,emit:n}){const{t:i}=gn(),r=[w=>w&&w.length?!0:"Ce champ est requis"],a=z(0),o=z(0),s=e,l=z(null);Un();const u=hl(),c=Ho(),d=Cs(),f=n,h=z([]),m=z([]),g=z(null),v=()=>{h.value=[],m.value=[],d.selectedProfiles=[],d.selectedAddresses=[],l.value&&l.value.reset()},y=w=>{d.selectedProfiles=w,d.saveToLocalStorage(w[0],d.selectedAddresses[0],d.selectedProfiles,d.selectedAddresses),f("update:profiles",w)},_=w=>{w.length>1?m.value=[w[w.length-1]]:m.value=w,d.selectedAddresses=m.value,d.saveToLocalStorage(d.selectedProfiles[0],m.value[0],d.selectedProfiles,m.value),f("update:addresses",m.value),Pt(()=>{g.value&&g.value.blur()})};return tn(()=>{a.value++,o.value++,h.value=s.initialProfiles,m.value=d.selectedAddresses}),ys(()=>{v()}),t({validate:async()=>{if(!l.value)return;const w=await l.value.validate();return f("update:is-valid",w),w}}),(w,x)=>(J(),je(ou,{class:"","onUpdate:modelValue":x[2]||(x[2]=k=>f("update:is-valid",k)),ref_key:"profileAddr",ref:l},{default:le(()=>[F("div",null,[F("label",w$e,Q(K(i)("dashboard.time-slot.dialogTimeSlot.selectProfile")),1),(J(),je(K_,{rules:r,density:"compact",class:"mt-1",modelValue:h.value,"onUpdate:modelValue":[x[0]||(x[0]=k=>h.value=k),y],items:K(c).profiles,multiple:"","item-title":"mainDiscipline.name","item-value":"id",placeholder:"Profils",chips:"","chips-rounded":"",clearable:"",key:a.value,"hide-details":"auto"},null,8,["modelValue","items"]))]),F("div",S$e,[F("label",C$e,Q(K(i)("dashboard.time-slot.dialogTimeSlot.selectAddress")),1),(J(),je(K_,{rules:r,density:"compact",class:"mt-1",modelValue:m.value,"onUpdate:modelValue":[x[1]||(x[1]=k=>m.value=k),_],items:K(u).addresses,multiple:"","item-title":"formattedAddress","item-value":"id",placeholder:"Selectionner une adresse","hide-selected":"",variant:"outlined",clearable:"",ref_key:"addressCombobox",ref:g,key:o.value,"hide-details":"auto"},null,8,["modelValue","items"]))])]),_:1},512))}});const x$e=on(E$e,[["__scopeId","data-v-73a82916"]]),k$e={class:"d-flex flex-column grid-container-parent"},T$e={key:1,class:"text-center text-caption text-red font-italic"},P$e=ot({__name:"SelectDate",props:L_({endReadOnly:{type:Boolean,default:!1}},{date:{},dateModifiers:{}}),emits:L_(["update:date"],["update:date"]),setup(e,{emit:t}){const n=Hg(e,"date"),i=new Date().toISOString().split("T")[0],r=B(()=>$e(n.value).toDate());z(!1),z(!1),z(!1),B(()=>$e(n.value,"YYYY-MM-DD").locale("fr").format("dddd D MMMM"));const a=l=>{n.value=$e(l).format("YYYY-MM-DD")},o=t;Ve(n,()=>{o("update:date",n.value)});const s=B(()=>!1);return(l,u)=>(J(),ve("div",k$e,[De("",!0),C(K(dm),{"prepend-icon":"",class:"w-100 rounded-lg mb-2",ref:"startDatePicker",modelValue:r.value,"onUpdate:modelValue":[u[1]||(u[1]=c=>r.value=c),a],"append-inner-icon":"mdi-calendar-remove",placeholder:l.$t("dashboard.time-slot.dialogVacation.datePlaceholder"),density:"compact",rounded:"lg","hide-details":"auto","hide-actions":"",flat:"",variant:"outlined",min:K(i)},null,8,["modelValue","placeholder","min"]),s.value?(J(),ve("div",T$e,Q(l.$t("dashboard.time-slot.dialogTimeSlot.errorSelectedTimes")),1)):De("",!0)]))}});const $$e=on(P$e,[["__scopeId","data-v-cdbf31bd"]]),A$e={class:"d-flex flex-column ga-2"},O$e={for:"",class:"custom-text-gray"},D$e={class:"d-flex flex-wrap colors"},I$e=["onClick"],N$e=ot({__name:"ColorPicker",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=["#4467c5","#D50101","#E67C73","#F4511E","#F6BF25","#33B679","#0A8043","#049BE5","#4050B5"],r=a=>{n("update:modelValue",a)};return(a,o)=>(J(),ve("div",A$e,[F("label",O$e,Q(a.$t("dashboard.time-slot.colorTitle")),1),F("div",D$e,[(J(),ve(Ue,null,Ht(i,s=>F("div",{key:s,style:pa({backgroundColor:s}),class:Gt(["color-box",{selected:s===a.modelValue,"selected-color":a.modelValue==null}]),onClick:l=>r(s)},null,14,I$e)),64))])]))}});const M$e=on(N$e,[["__scopeId","data-v-b5160f4e"]]),eo=e=>(ul("data-v-d255b855"),e=e(),cl(),e),L$e=eo(()=>F("div",null,null,-1)),R$e=eo(()=>F("span",{class:"modal-title text-primary"},"Suppression de créneaux",-1)),F$e={class:"timeslot-info"},V$e=eo(()=>F("strong",null,"Profils :",-1)),B$e=eo(()=>F("br",null,null,-1)),z$e=eo(()=>F("strong",null,"Adresse :",-1)),j$e=eo(()=>F("br",null,null,-1)),U$e={key:0},H$e=eo(()=>F("br",null,null,-1)),q$e={key:0},Y$e={key:1},W$e=eo(()=>F("br",null,null,-1)),G$e={key:2},K$e=eo(()=>F("br",null,null,-1)),Z$e=eo(()=>F("strong",null,"Heure de début :",-1)),X$e=eo(()=>F("br",null,null,-1)),J$e=eo(()=>F("strong",null,"Heure de fin :",-1)),Q$e=eo(()=>F("br",null,null,-1)),eAe=eo(()=>F("strong",null,"Type de créneaux :",-1)),tAe=eo(()=>F("br",null,null,-1)),nAe={key:3},iAe={key:4},rAe=ot({__name:"TimeslotConflictDialog",props:{timeslot:{type:Object,required:!0},isOpen:{type:Boolean,required:!0}},emits:["close","delete"],setup(e,{emit:t}){$e.extend(Nm),$e.extend(Im);const n=e,i=t,r=()=>{i("close")},a=()=>{i("delete")},o=h=>{const m={weekday:"long",year:"numeric",month:"long",day:"numeric"};return new Date(h).toLocaleDateString("fr-FR",m)},s=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],l=B(()=>n.timeslot.days.map(h=>s[h]).join(", ")),u=B(()=>$e(n.timeslot.start).utc().tz($e.tz.guess()).format("HH:mm")),c=B(()=>$e(n.timeslot.end).utc().tz($e.tz.guess()).format("HH:mm")),d=B(()=>o(n.timeslot.date)),f=B(()=>n.timeslot.dateEnd?o($e.utc(n.timeslot.dateEnd).tz($e.tz.guess()).subtract(1,"day").format("YYYY-MM-DD")):o(n.timeslot.date));return(h,m)=>(J(),je(ir,{"model-value":e.isOpen,"max-width":"550px",persistent:"","onUpdate:modelValue":r,transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{class:"timeslot-modal"},{default:le(()=>[C(_r,{class:"modal-header"},{default:le(()=>[L$e,R$e,C(Je,{variant:"text",color:"primary",icon:"mdi-close-circle-outline",onClick:r})]),_:1}),C(br,{class:"d-flex flex-column"},{default:le(()=>{var g,v;return[C(ut,{color:"error",class:"warning-icon"},{default:le(()=>[Ze("mdi-alert-circle")]),_:1}),C(j2,{class:"modal-subtitle mb-5"},{default:le(()=>[Ze(" Nous avons remarqué un chevauchement de créneaux. ")]),_:1}),F("div",F$e,[F("div",null,[V$e,Ze(" "+Q((g=e.timeslot)==null?void 0:g.profiles),1),B$e,z$e,Ze(" "+Q((v=e.timeslot)==null?void 0:v.address),1),j$e,F("strong",null,[Ze("Date "),e.timeslot.repeat?(J(),ve("span",U$e,"de début")):De("",!0),Ze(" :")]),Ze(" "+Q(d.value),1),H$e,e.timeslot.repeat?(J(),ve("strong",q$e,"Date de fin : ")):De("",!0),e.timeslot.dateEnd&&e.timeslot.repeat?(J(),ve("span",Y$e,[Ze(Q(f.value),1),W$e])):De("",!0),!e.timeslot.dateEnd&&e.timeslot.repeat?(J(),ve("span",G$e,[Ze(" Indéfinement "),K$e])):De("",!0),Z$e,Ze(" "+Q(u.value),1),X$e,J$e,Ze(" "+Q(c.value),1),Q$e,eAe,Ze(" "+Q(e.timeslot.repeat?"Répété":"Unitaire"),1),tAe,e.timeslot.repeat?(J(),ve("strong",nAe,"Jours :")):De("",!0),e.timeslot.repeat?(J(),ve("span",iAe,Q(l.value),1)):De("",!0)])])]}),_:1}),C(Yp,{class:"modal-actions"},{default:le(()=>[C(Je,{class:"w-50",color:"grey",variant:"flat",onClick:r},{default:le(()=>[Ze("Annuler")]),_:1}),C(Je,{class:"w-50",variant:"flat",color:"red-lighten-1",onClick:a},{default:le(()=>[Ze("Supprimer")]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const aAe=on(rAe,[["__scopeId","data-v-d255b855"]]),oAe={class:"font-weight-bold title"},sAe={class:"py-2"},lAe={class:"d-sm-flex align-center ga-2 my-2"},uAe={class:"w-sm-50"},cAe={class:"text-capitalize"},dAe={class:"w-sm-50 mt-2 mt-sm-0"},fAe={class:"text-capitalize"},hAe={key:0,class:"text-center text-red text-subtitle-2 font-italic"},pAe={class:"d-flex align-center ga-sm-4 ga-2 mt-3"},mAe={class:"w-100"},vAe={class:"text-gray-80"},gAe={class:"d-flex flex-row justify-between"},yAe={class:"text-caption"},_Ae={key:1,class:"text-grey text-caption align-self-center"},bAe={class:"d-flex flex-column ga-sm-4 ga-2"},wAe={class:"mt-3 font-bold text-start custom-text-gray"},SAe={key:1,class:"d-flex justify-content-between align-center ga-4 px-5"},CAe={class:"custom-text-gray"},EAe={key:2,class:"d-flex align-start justify-content-between flex-column ga-3"},xAe={class:"d-flex align-center ga-4"},kAe={class:"custom-text-gray"},TAe={class:"custom-text-gray"},PAe={class:"d-flex flex-column align-start justify-center ga-1"},$Ae={class:"d-flex align-center"},AAe={for:"",class:"custom-text-gray"},OAe={key:0,class:"w-100"},DAe={class:"text-gray"},IAe={class:"d-sm-flex mt-5 ga-2"},NAe={style:{color:"#757575","font-weight":"600"}},MAe={class:"mb-4"},LAe={key:0,class:"font-italic"},RAe={key:1,class:"font-italic"},FAe=ot({__name:"DialogTimeSlot",setup(e){$e.extend(Nm),$e.extend(Im);const{required:t}=vU(),n=z(!1),{xs:i}=Ki(),r=vn(),{t:a}=gn(),o=Cs(),s=lm(),l=z(!1),u=new Date().toISOString().split("T")[0],c=z(!1),d=Uo(),f=z(null),h=()=>{o.selectedAppointmentReasons=[]};z("#4467c5");const m=z(!1),g=()=>{m.value=!0},v=oe=>oe&&!String(oe).trim()||!isNaN(parseFloat(oe))&&oe>0?!0:a("dashboard.time-slot.errorNumberRule"),y=[oe=>oe&&oe.length>0?!0:"Ce champ est requis"];Ve(()=>o.selectedAppointmentReasons,async()=>{var oe,U;await Pt(),(U=(oe=f.value)==null?void 0:oe.validate)==null||U.call(oe),s.errors&&(s.errors="")},{deep:!0});const _=z(null),S=z(null),w=z(null),x=z(o.everyXWeek),k=async()=>{if(c.value=!1,!(await w.value.validate()).valid||!n.value)return!1;P.value==="edition"&&(A.value="single");const U=$e().hour(Number(o.startHour)).minute(Number(o.startMinute)),ee=$e().hour(Number(o.endHour)).minute(Number(o.endMinute)),re=U.format("HH:mm"),ue=ee.format("HH:mm");if(!ee.isAfter(U)){c.value=!0;return}o.selectedDate=$e(_.value).format("YYYY-MM-DD"),o.everyXWeek=x.value;const pe={profile:o.selectedProfiles[0].id,address:o.selectedAddress.id,profiles:o.selectedProfiles.map(ge=>ge.id),addresses:o.selectedAddresses.map(ge=>ge.id),days:o.selectedDays,weekRepeat:o.repeatTimeSlot==="yes",weekRepetition:o.repeatTimeSlot==="yes"?Number(o.everyXWeek):null,date:o.selectedDate,dateEnd:o.repeatTimeSlot==="yes"?o.selectedDateEnd:null,startTime:re,endTime:ue,remote:o.isRemote,presential:o.isPresential,appointmentReasons:o.selectedAppointmentReasons.map(ge=>({appointmentReason:ge.id})),timezone:$e.tz.guess(),color:o.color};s.handleCreateOrUpdateTimeSlot(pe,A.value)};Hn.on("deleteConflictTimeslotDialog",()=>{M()});const P=z("edition"),E=z(!1);Hn.on("closeTimeslotConfirmDialog",()=>{E.value=!1});const A=z("removeAfterDate"),D=z(a("dashboard.time-slot.dialogTimeSlot.applyChangesFor")),T=z(a("dashboard.time-slot.dialogTimeSlot.confirmEdition")),O=z(""),N=z(""),V=z(""),j=z(a("confirmDialog.confirmBtn")),q=()=>{O.value="",N.value="",V.value="",D.value=a("dashboard.time-slot.dialogTimeSlot.applyChangesFor"),P.value="edition",E.value=!1,A.value="single",T.value=a("dashboard.time-slot.dialogTimeSlot.confirmEdition"),N.value="",V.value="",j.value=a("confirmDialog.confirmBtn")},ne=oe=>{N.value=oe},ae=oe=>{V.value=oe};Hn.on("openModalConfirm",({mode:oe,message:U,messageChangeAll:ee,messageChangeSingle:re,change:ue})=>{q(),P.value=oe,O.value=U,ne(ee),ae(re),E.value=!0,A.value=ue});const Y=z(!1),M=async()=>{try{Yr.start();let U,ee;o.repeatTimeSlot=="yes"?(O.value=a("dashboard.time-slot.dialogTimeSlot.validateDeleteSlot"),A.value="single",E.value=!0,P.value="deletion",T.value=a("dashboard.time-slot.dialogTimeSlot.confirmDeletion"),D.value=a("dashboard.time-slot.dialogTimeSlot.applyDeletionFor")):Ow.confirm({title:a("dashboard.time-slot.dialogTimeSlot.confirmDeletion"),message:"",optionsConfirm:{onConfirm:()=>{W()},onCancel:()=>{}}})}catch(U){U.response.status==422?nt.error(U.response.data.message):nt.error(a("dashboard.time-slot.dialogTimeSlot.errorDelete"))}Yr.stop()},I=()=>{P.value==="deletion"&&W();const oe=$e().hour(Number(o.startHour)).minute(Number(o.startMinute)),U=$e().hour(Number(o.endHour)).minute(Number(o.endMinute)),ee=oe.format("HH:mm"),re=U.format("HH:mm");if(P.value==="edition"){const ue={profile:o.selectedProfiles[0].id,address:o.selectedAddress.id,profiles:o.selectedProfiles.map(pe=>pe.id),addresses:o.selectedAddresses.map(pe=>pe.id),days:o.selectedDays,weekRepeat:o.repeatTimeSlot==="yes",weekRepetition:o.repeatTimeSlot==="yes"?Number(o.everyXWeek):null,date:o.selectedDate,dateEnd:o.selectedDateEnd,startTime:ee,endTime:re,remote:o.isRemote,presential:o.isPresential,appointmentReasons:o.selectedAppointmentReasons.map(pe=>({appointmentReason:pe.id})),timezone:$e.tz.guess(),color:o.color};s.handleConfirmTimeSlot(ue,A.value)}},W=async()=>{try{Yr.start();let oe=$e(`${$e(o.selectedDate).format("YYYY-MM-DD")} ${o.selectedStartTime}:${o.selectedEndTime}`,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD"),U=`/timeslot/${o.timeSlotId}/delete?applyChangesFor=${A.value}`;U+=`&date=${oe}`;let ee=await r.delete(U);if(ee.status!=200)throw Error(JSON.stringify(ee));nt.success(a("dashboard.time-slot.dialogTimeSlot.successDelete")),o.isConflictModalOpen!=!0?(await s.initTimeSlots(),o.toggleDialogTimeSlot(),E.value=!1):(o.isCurrentTimeslotRepeat=="yes"?o.repeatTimeSlot="yes":o.repeatTimeSlot="no",o.closeConflictModal(),E.value=!1)}catch(oe){oe.response.status==422?nt.error(oe.response.data.message):nt.error(a("dashboard.time-slot.dialogTimeSlot.errorDelete"))}Yr.stop(),E.value=!1,q()},te=oe=>{o.selectedDateEnd=oe};Ve(()=>o.isDialogTimeSlotOpen,oe=>{if(oe){const U=o.selectedDate?$e(o.selectedDate):$e();if(_.value=$e(o.selectedDate,"YYYY-MM-DD HH:mm").toDate()??null,!o.isEditing){const ee=U.add(4,"hour");o.startHour=U.hour(),o.startMinute=U.minute(),o.endHour=ee.hour(),o.endMinute=ee.minute(),c.value=!1}}});const he=()=>{o.toggleDialogTimeSlot()};return(oe,U)=>(J(),ve(Ue,null,[C(ir,{"model-value":K(o).isDialogTimeSlotOpen,persistent:"",class:"timeSlotDialogModal",width:"550",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white",class:""},{default:le(()=>[C(_r,{class:"d-flex justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[F("span",oAe,Q(K(o).isEditing?oe.$t("dashboard.time-slot.dialogTimeSlot.editTimeSlot"):oe.$t("dashboard.time-slot.createTimeSlot")),1),C(Je,{class:"close-icon mr-2",variant:"text",icon:"mdi-close-circle-outline",onClick:U[0]||(U[0]=()=>K(o).toggleDialogTimeSlot())})]),_:1}),C(jn),C(br,{class:"pa-sm-5 pa-2 scrollable-container"},{default:le(()=>[C(ou,{ref_key:"form",ref:S,modelValue:n.value,"onUpdate:modelValue":U[17]||(U[17]=ee=>n.value=ee),onSubmit:Vo(k,["prevent"])},{default:le(()=>{var ee;return[C(x$e,{ref_key:"profileAddr",ref:w,initialProfiles:K(o).selectedProfiles,initialAddresses:K(o).selectedAddresses,"onUpdate:profiles":U[1]||(U[1]=()=>h()),"onUpdate:isValid":U[2]||(U[2]=re=>l.value=re)},null,8,["initialProfiles","initialAddresses"]),F("div",sAe,[F("label",null,Q(oe.$t("dashboard.time-slot.date")),1),C(K(dm),{"prepend-icon":"",class:"w-100 rounded-lg",ref:"startDatePicker",modelValue:_.value,"onUpdate:modelValue":U[3]||(U[3]=re=>_.value=re),"append-inner-icon":"mdi-calendar-outline",placeholder:oe.$t("dashboard.time-slot.dialogVacation.datePlaceholder"),density:"compact",rounded:"lg","hide-details":"auto","hide-actions":"",flat:"",variant:"outlined",min:K(u),rules:K(t)},null,8,["modelValue","placeholder","min","rules"])]),F("div",lAe,[F("div",uAe,[F("label",cAe,Q(oe.$t("dashboard.time-slot.from")),1),C(Rb,{class:"w-100",hour:K(o).startHour,"onUpdate:hour":U[4]||(U[4]=re=>K(o).startHour=re),minute:K(o).startMinute,"onUpdate:minute":U[5]||(U[5]=re=>K(o).startMinute=re)},null,8,["hour","minute"])]),F("div",dAe,[F("label",fAe,Q(oe.$t("dashboard.time-slot.to")),1),C(Rb,{class:"w-100",hour:K(o).endHour,"onUpdate:hour":U[6]||(U[6]=re=>K(o).endHour=re),minute:K(o).endMinute,"onUpdate:minute":U[7]||(U[7]=re=>K(o).endMinute=re)},null,8,["hour","minute"])])]),c.value?(J(),ve("div",hAe,Q(oe.$t("dashboard.time-slot.dialogTimeSlot.InvalideTime")),1)):De("",!0),F("div",pAe,[F("div",mAe,[F("label",vAe,Q(oe.$t("dashboard.time-slot.dialogTimeSlot.labelSelectMotive")),1),C(Oa,{ref_key:"reasonRef",ref:f,rules:y,modelValue:K(o).selectedAppointmentReasons,"onUpdate:modelValue":U[8]||(U[8]=re=>K(o).selectedAppointmentReasons=re),items:K(d).appointmentReasons.filter(re=>K(o).selectedProfiles.some(ue=>ue.id===re.profile.id)),class:"select-reason",clearable:"",rounded:"",multiple:"",density:"compact","item-title":"label","item-value":"id","return-object":"",placeholder:oe.$t("dashboard.time-slot.dialogTimeSlot.placeholderSelectMotive"),"no-data-text":oe.$t("dashboard.time-slot.dialogTimeSlot.noAppointmentReason")},{item:le(({item:re,props:ue})=>[C(fi,NE(_2(ue)),{default:le(()=>[F("div",gAe,[F("span",{class:Gt(["flex-shrink-1",{"fs-10":K(i)}])},Q(re.value.label),3),F("span",yAe,Q(oe.$t("dashboard.time-slot.dialogTimeSlot.duration",{duration:String(JSON.stringify(re.raw.duration))})),1)])]),_:2},1040)]),selection:le(({item:re,index:ue})=>[ue<=1?(J(),je(ma,{key:0,rounded:""},{default:le(()=>[Ze(Q(re.title),1)]),_:2},1024)):De("",!0),ue==2?(J(),ve("span",_Ae,Q(oe.$t("dashboard.time-slot.dialogTimeSlot.plusXOther",{n:K(o).selectedAppointmentReasons.length-2})),1)):De("",!0)]),append:le(()=>[C(Je,{color:"secondary",icon:"mdi-plus",density:"comfortable",variant:"flat",onClick:g})]),_:1},8,["modelValue","items","placeholder","no-data-text"])])]),C(fH,{modelValue:m.value,"onUpdate:modelValue":U[9]||(U[9]=re=>m.value=re),"default-selected-profile-id":(ee=K(o).selectedProfile)==null?void 0:ee.id},null,8,["modelValue","default-selected-profile-id"]),C(M$e,{modelValue:K(o).color,"onUpdate:modelValue":U[10]||(U[10]=re=>K(o).color=re)},null,8,["modelValue"]),F("div",bAe,[F("p",wAe,Q(oe.$t("dashboard.time-slot.IAcceptRendezVous")),1),C(Q_,{class:"ga-2 flex radio-group-custom d-flex text-start justify-start align-start",inline:"","hide-details":"",modelValue:K(o).acceptRemote,"onUpdate:modelValue":U[11]||(U[11]=re=>K(o).acceptRemote=re)},{default:le(()=>{var re,ue,pe;return[C(zc,{disabled:(re=K(o).selectedAddress)==null?void 0:re.remote,color:"secondary",label:oe.$t("dashboard.time-slot.in-person"),value:"in-person"},null,8,["disabled","label"]),C(zc,{checked:(ue=K(o).selectedAddress)==null?void 0:ue.remote,color:"secondary",label:oe.$t("dashboard.time-slot.remote"),value:"remote"},null,8,["checked","label"]),C(zc,{disabled:(pe=K(o).selectedAddress)==null?void 0:pe.remote,color:"secondary",value:"both",label:oe.$t("dashboard.time-slot.theTwo")},null,8,["disabled","label"])]}),_:1},8,["modelValue"])]),C(jn,{class:"my-2"}),K(o).isEditing?De("",!0):(J(),ve("div",SAe,[F("span",CAe,Q(oe.$t("dashboard.time-slot.doYouWantToRepeatTimeSlot")),1),C(jf,{class:"d-flex flex-shrink-1 flex-grow-0",modelValue:K(o).repeatTimeSlot,"onUpdate:modelValue":U[12]||(U[12]=re=>K(o).repeatTimeSlot=re),color:"secondary","true-value":"yes","false-value":"no","hide-details":""},null,8,["modelValue"])])),K(o).repeatTimeSlot==="yes"?(J(),ve("div",EAe,[F("div",xAe,[F("span",kAe,Q(oe.$t("dashboard.time-slot.every")),1),C(Tn,{modelValue:x.value,"onUpdate:modelValue":U[13]||(U[13]=re=>x.value=re),"hide-details":"",density:"compact",class:"flex-grow-0 input-every-x-week",rules:[v],size:"xs"},null,8,["modelValue","rules"]),F("span",TAe,Q(oe.$t("dashboard.time-slot.weekThe")),1)]),C(DM,{modelValue:K(o).selectedDays,"onUpdate:modelValue":U[14]||(U[14]=re=>K(o).selectedDays=re),mandatory:"",multiple:"",density:"comfortable",divided:"",class:"v-btn-toggle-custom",shaped:""},{default:le(()=>[(J(!0),ve(Ue,null,Ht(Object.values(K(vH)).filter(re=>!isNaN(Number(re))),re=>(J(),je(Je,{key:re,value:re,text:oe.$t("dashboard.time-slot.short-day-"+re),size:K(i)?"x-small":"small"},null,8,["value","text","size"]))),128))]),_:1},8,["modelValue"]),F("div",PAe,[F("div",$Ae,[F("label",AAe,Q(oe.$t("dashboard.time-slot.dialogTimeSlot.repetitionEnd")),1),C(jf,{modelValue:K(o).isIndefinite,"onUpdate:modelValue":U[15]||(U[15]=re=>K(o).isIndefinite=re),class:"ml-3",label:oe.$t("dashboard.time-slot.dialogTimeSlot.endless"),"hide-details":""},null,8,["modelValue","label"])]),K(o).isIndefinite?De("",!0):(J(),ve("div",OAe,[C($$e,{date:K(o).selectedDateEnd,"onUpdate:date":[U[16]||(U[16]=re=>K(o).selectedDateEnd=re),te]},null,8,["date"]),F("div",DAe," ("+Q(oe.$t("dashboard.time-slot.dialogTimeSlot.dateBetween"))+") ",1)]))])])):De("",!0),F("div",IAe,[K(o).isEditing?(J(),je(Je,{key:0,class:"w-sm-50 w-100",color:"red",loading:Y.value,onClick:M},{default:le(()=>[Ze(Q(oe.$t("dashboard.time-slot.delete")),1)]),_:1},8,["loading"])):(J(),je(Je,{key:1,onClick:he,color:"#E0E0E0",class:"w-sm-50 d-flex mb-sm-0 mb-3 w-100"},{default:le(()=>[F("span",NAe,Q(K(a)("cancel_btn")),1)]),_:1})),C(Je,{class:"px-6 w-sm-50 w-100 mt-2 mt-sm-0",variant:"flat",color:"secondary",loading:K(s).loading,type:"submit"},{default:le(()=>[Ze(Q(oe.$t("dashboard.time-slot.save")),1)]),_:1},8,["loading"])])]}),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model-value"]),C(ir,{modelValue:E.value,"onUpdate:modelValue":U[20]||(U[20]=ee=>E.value=ee),persistent:"","min-width":K(i)?0:500,width:"fit-content",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{class:"bg-white"},{default:le(()=>[C(_r,{class:"d-flex pa-4 justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[Ze(Q(T.value),1)]),_:1}),C(br,{class:"mx-auto"},{default:le(()=>[F("div",MAe,Q(O.value),1),Ze(" "+Q(D.value)+" ",1),C(Q_,{color:"secondary",modelValue:A.value,"onUpdate:modelValue":U[18]||(U[18]=ee=>A.value=ee)},{default:le(()=>[C(zc,{label:oe.$t("dashboard.time-slot.dialogTimeSlot.onlyThisOccurrences"),value:"single"},null,8,["label"]),A.value==="single"?(J(),ve("div",LAe,Q(V.value),1)):De("",!0),C(zc,{label:oe.$t("dashboard.time-slot.dialogTimeSlot.allFutureOccurrences"),value:P.value==="deletion"?"removeAfterDate":"all"},null,8,["label","value"]),A.value==="removeAfterDate"||A.value==="all"?(J(),ve("div",RAe,Q(N.value),1)):De("",!0)]),_:1},8,["modelValue"])]),_:1}),C(Yp,{class:"pa-5"},{default:le(()=>[C(t8),C(Je,{class:"px-6",variant:"outlined",color:"black",onClick:q},{default:le(()=>[Ze(Q(oe.$t("confirmDialog.cancelBtn")),1)]),_:1}),C(Je,{class:"px-6",variant:"flat",color:"blue-darken-1",loading:K(s).loading,onClick:U[19]||(U[19]=()=>I())},{default:le(()=>[Ze(Q(j.value),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue","min-width"]),K(o).isConflictModalOpen?(J(),je(aAe,{key:0,timeslot:K(o).conflictTimeslot,isOpen:K(o).isConflictModalOpen,onClose:K(o).closeConflictModal,onDelete:U[21]||(U[21]=ee=>M())},null,8,["timeslot","isOpen","onClose"])):De("",!0)],64))}});const VAe=on(FAe,[["__scopeId","data-v-2cb7b85a"]]),BAe={style:{width:"80px","text-overflow":"ellipsis",overflow:"hidden"}},zAe=ot({__name:"CustomMonthGridEvent",props:{calendarEvent:{type:Object,required:!0}},setup(e){function t(o,s,l,u){let c=$e(o,"YYYY-MM-DD HH:mm"),d=$e(s,"YYYY-MM-DD HH:mm"),f=$e(l,"YYYY-MM-DD HH:mm"),h=$e(u,"YYYY-MM-DD HH:mm");return c.isBefore(h)&&d.isAfter(f)}const n=e,i=yh(),r=B(()=>{if(n.calendarEvent.type!=="TimeSlotEvent")return!1;for(const o of i.vacations)if(t(n.calendarEvent.start,n.calendarEvent.end,o.start,o.end))return!0;return!1}),a=B(()=>{let o=n.calendarEvent.color?n.calendarEvent.color:"#4467c5",l=((c,d)=>{const f=c.replace("#",""),h=parseInt(f.substring(0,2),16),m=parseInt(f.substring(2,4),16),g=parseInt(f.substring(4,6),16);return`rgba(${h}, ${m}, ${g}, ${d})`})(o,.1),u={color:o,background:l,border:"1px solid "+o,borderRadius:"8px"};return n.calendarEvent.type==="VacationEvent"&&(u.borderLeft="4px solid #6750a4",u.background="#eaddff",u.color="#6750a4"),r.value&&(u.opacity="0.5 !important"),u});return(o,s)=>(J(),ve("div",{class:Gt(["custom-month-grid-event cursor-pointer",{"border-green":e.calendarEvent.event_type=="synced_from_google"}]),style:pa(a.value)},[F("div",BAe,Q(e.calendarEvent.title),1),e.calendarEvent.weekRepeat=="yes"?(J(),je(ut,{key:0,class:"icon-repeat"},{default:le(()=>[Ze(" mdi-autorenew ")]),_:1})):De("",!0)],6))}});const gH=on(zAe,[["__scopeId","data-v-ad3054c2"]]),jAe=ot({__name:"CustomMonthAgenda",props:{calendarEvent:{type:Object,required:!0}},setup(e){function t(o,s,l,u){let c=$e(o,"YYYY-MM-DD HH:mm"),d=$e(s,"YYYY-MM-DD HH:mm"),f=$e(l,"YYYY-MM-DD HH:mm"),h=$e(u,"YYYY-MM-DD HH:mm");return c.isBefore(h)&&d.isAfter(f)}const n=e,i=yh(),r=B(()=>{if(n.calendarEvent.type!=="TimeSlotEvent")return!1;for(const o of i.vacations)if(t(n.calendarEvent.start,n.calendarEvent.end,o.start,o.end))return!0;return!1}),a=B(()=>{let o=n.calendarEvent.color?n.calendarEvent.color:"#4467c5",l=((c,d)=>{const f=c.replace("#",""),h=parseInt(f.substring(0,2),16),m=parseInt(f.substring(2,4),16),g=parseInt(f.substring(4,6),16);return`rgba(${h}, ${m}, ${g}, ${d})`})(o,.1),u={color:o,background:l,border:"1px solid "+o,borderRadius:"8px"};return n.calendarEvent.type==="VacationEvent"&&(u.borderLeft="4px solid #6750a4",u.background="#eaddff",u.color="#6750a4"),r.value&&(u.opacity="0.5 !important"),u});return(o,s)=>(J(),ve("div",{class:"custom-time-grid-event cursor-pointer",style:pa(a.value)},[e.calendarEvent.weekRepeat=="yes"?(J(),je(ut,{key:0,class:"icon-repeat"},{default:le(()=>[Ze(" mdi-autorenew ")]),_:1})):De("",!0),F("div",null,Q(e.calendarEvent.title),1),F("div",null,Q(o.$t("dashboard.time-slot.from_X_to_Y",{X:K($e)(e.calendarEvent.start,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h"),Y:K($e)(e.calendarEvent.end,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h")})),1)],4))}});const UAe=on(jAe,[["__scopeId","data-v-1914e0de"]]),HAe="/assets/warning-profile-ccc70664.png",qAe={class:"px-2"},YAe={class:"d-flex flex-column ga-10 pt-10 content-msg"},WAe={class:"d-flex justify-center"},GAe={class:"d-flex flex-column ga-2"},KAe={class:"alert-create-title"},ZAe={class:"alert-create-desc"},XAe={class:"d-sm-flex justify-center mt-10 ga-1"},JAe={style:{color:"#757575","font-size":"14px","line-height":"140%","font-weight":"600"}},QAe=ot({__name:"ProfilAddressAlert",setup(e){const t=Cs();return(n,i)=>(J(),ve("div",null,[C(ir,{modelValue:K(t).dialogYouNeedProfilesAndAddress,"onUpdate:modelValue":i[1]||(i[1]=r=>K(t).dialogYouNeedProfilesAndAddress=r),persistent:"",width:"380",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{rounded:"xl",class:"bg-white pb-8"},{default:le(()=>[C(_r,{class:"alert-title d-flex pa-3 justify-center w-full align-center"},{default:le(()=>[F("span",null,Q(n.$t("dashboard.time-slot.dialogYouNeedProfileAndAddress.title")),1),C(Je,{onClick:i[0]||(i[0]=r=>K(t).dialogYouNeedProfilesAndAddress=!1),variant:"outlined",density:"compact",size:"small",class:"position-absolute",style:{right:"10px"},icon:"$close"})]),_:1}),F("div",qAe,[F("div",YAe,[F("div",WAe,[C(Ii,{width:"93",height:"93",src:HAe})]),F("div",GAe,[F("div",KAe,Q(n.$t("dashboard.time-slot.dialogYouNeedProfileAndAddress.profileAdd")),1),F("div",ZAe,Q(n.$t("dashboard.time-slot.dialogYouNeedProfileAndAddress.message")),1)])]),F("div",XAe,[C(Je,{to:{name:"DashboardAddress"},class:"w-sm-auto w-100",variant:"flat",color:"#E0E0E0"},{default:le(()=>[F("span",JAe,Q(n.$t("dashboard.time-slot.dialogYouNeedProfileAndAddress.goToAddresses")),1)]),_:1}),C(Je,{to:{name:"DashboardProfile"},class:"w-sm-auto w-100 text-white mt-2 mt-sm-0",variant:"flat",color:"#12C29B"},{default:le(()=>[F("span",null,Q(n.$t("dashboard.time-slot.dialogYouNeedProfileAndAddress.goToProfiles")),1)]),_:1})])])]),_:1})]),_:1},8,["modelValue"])]))}});const yH=on(QAe,[["__scopeId","data-v-a710d0e8"]]),e7e={class:"d-flex align-center ga-sm-2"},t7e={class:"d-block current-date text-capitalize"},n7e={class:"d-none d-sm-block",style:{"font-size":"12px"}},i7e=ot({__name:"CustomNavigation",setup(e){const t=B(()=>i.currentMonthYear),n=B(()=>{const o=$e.tz.guess();return`(UTC${$e().tz(o).format("Z")}) Heure (${o.replace("_"," ")})`}),i=Xl(),r=async()=>{const s=Ja.$app.calendarState.view.value,l=$e(cs.getDate());let u;switch(s){case"day":u=l.add(1,"day").startOf("day"),u.endOf("day");break;case"week":u=l.add(1,"week").startOf("week"),u.endOf("week");break;case"month-grid":default:u=l.add(1,"month").startOf("month"),u.endOf("month");break}cs.setDate(u.format("YYYY-MM-DD")),cs.setView(`${s}`),i.currentMonthYear=u.format("MMMM YYYY")},a=async()=>{const s=Ja.$app.calendarState.view.value;let l;const u=$e(cs.getDate());switch(s){case"day":l=u.subtract(1,"day"),l.endOf("day");break;case"week":l=u.subtract(1,"week"),l.add(6,"day").endOf("day");break;case"month-grid":default:l=u.subtract(1,"month").startOf("month"),l.endOf("month");break}cs.setDate(l.format("YYYY-MM-DD")),cs.setView(s),i.currentMonthYear=l.format("MMMM YYYY")};return(o,s)=>(J(),ve("div",e7e,[F("div",null,[F("span",t7e,Q(t.value),1),F("span",n7e,Q(n.value),1)]),C(Je,{onClick:s[0]||(s[0]=()=>a()),density:"compact",color:"white",icon:""},{default:le(()=>[C(ut,null,{default:le(()=>[Ze("mdi-chevron-left")]),_:1})]),_:1}),C(Je,{onClick:s[1]||(s[1]=()=>r()),density:"compact",color:"white",icon:""},{default:le(()=>[C(ut,null,{default:le(()=>[Ze("mdi-chevron-right")]),_:1})]),_:1})]))}});const _H=on(i7e,[["__scopeId","data-v-f9c82a6f"]]),r7e={class:"d-flex ga-sm-3 ga-1"},a7e={class:"d-flex align-center ga-2",style:{"font-size":"14px"}},o7e={key:0},s7e={key:1},l7e=ot({__name:"CustomViewNavigation",setup(e){const t=Xl(),n=z("week");z($e().format("MMMM YYYY"));const i=a=>{n.value=a,t.currentMonthYear=$e().format("MMMM YYYY"),cs.setDate($e().format("YYYY-MM-DD")),cs.setView(a)};Ve(()=>n.value,a=>{Ja.$app.calendarState,$e().startOf("week"),cs.setView(a)});const r=[{title:"Semaine",key:"week"},{title:"Mois",key:"month-grid"}];return(a,o)=>(J(),ve("div",r7e,[C(Je,{class:Gt([{"active-btn":n.value==="day"},"holi-btn"]),onClick:o[0]||(o[0]=()=>i("day")),variant:"outlined"},{default:le(()=>[Ze(Q(a.$t("calendar.today")),1)]),_:1},8,["class"]),C(ho,{"open-on-click":""},{activator:le(({props:s})=>[C(Je,Me(s,{class:[{"active-btn":n.value==="week"},"holi-btn"],variant:"outlined"}),{default:le(()=>[F("div",a7e,[n.value==="week"||n.value==="day"?(J(),ve("span",o7e,Q(a.$t("calendar.week")),1)):De("",!0),n.value==="month-grid"?(J(),ve("span",s7e,Q(a.$t("calendar.month")),1)):De("",!0),C(ut,null,{default:le(()=>[Ze("mdi-chevron-down")]),_:1})])]),_:2},1040,["class"])]),default:le(()=>[C(rl,{density:"compact"},{default:le(()=>[(J(),ve(Ue,null,Ht(r,(s,l)=>C(fi,{key:l,value:s.key,onClick:()=>i(s.key)},{default:le(()=>[C(ha,null,{default:le(()=>[Ze(Q(s.title),1)]),_:2},1024)]),_:2},1032,["value","onClick"])),64))]),_:1})]),_:1})]))}});const bH=on(l7e,[["__scopeId","data-v-81e0dc61"]]),u7e={class:"bg-white d-flex justify-space-between align-center",style:{position:"sticky",width:"100%","margin-bottom":"8px",padding:"5px"}},c7e={class:"d-sm-flex flex-wrap justify-space-between"},d7e={class:"d-flex ga-sm-3 ga-1 align-center"},wH=ot({__name:"CustomCalendarHeader",setup(e){const t=z(!0),{sidebarState:n,updateSidebarState:i}=Rm(),r=()=>{t.value=!t.value;const a=Ja.$app.config.plugins.sidebar.isOpen.value;i(!a)};return(a,o)=>(J(),ve("div",u7e,[F("div",c7e,[C(_H)]),F("div",d7e,[C(bH),t.value?(J(),je(Je,{key:0,variant:"outlined",class:"cursor-pointer border",density:"compact",icon:"mdi-chevron-double-right",rounded:"lg",onClick:o[0]||(o[0]=()=>r()),color:"gray-80"})):(J(),je(Je,{key:1,variant:"outlined",class:"cursor-pointer border",density:"compact",icon:"mdi-chevron-double-left",rounded:"lg",color:"gray-80",onClick:o[1]||(o[1]=()=>r())}))])]))}}),f7e={class:""},h7e=ot({__name:"TimeSlots",setup(e){const t=Un();gn();const{initTimeSlots:n}=lm(),i=Uo(),r=hl(),a=Cs();fh(),ys(()=>{a.dialogYouNeedProfilesAndAddress=!1}),Hn.on("initTimeSlots",({profileIds:f,appointmentReasonIds:h,addressIds:m,ownerId:g,start:v,end:y}={profileIds:o.profiles.map(_=>_.id),appointmentReasonIds:i.appointmentReasons.map(_=>_.id),addressIds:r.addresses.map(_=>_.id),start:null,end:null})=>{n({profileIds:f,appointmentReasonIds:h,addressIds:m,ownerId:g,start:v,end:y})}),z(!1);const o=Ho();tn(async()=>{await o.initProfiles(),await r.initAddresses(),n(),await o.refreshProfiles(),await r.refreshAddresses(),await a.resetDialogTimeSlotCreationProfileAddress(),await i.refreshAppointmentReasons()});const s=z({sidebar:hH,timeGridEvent:mH,monthGridEvent:gH,monthAgendaEvent:UAe,headerContentRightAppend:_H,headerContentRightPrepend:bH}),{lgAndUp:l,xs:u}=Ki(),{sidebarState:c}=Rm(),d=()=>{const f=document.querySelector(".sx__calendar-content");f&&(l.value&&c.value&&f.classList.remove("hidden-sidebar"),l.value&&f.classList.contains("hidden-sidebar")&&!c.value&&f.classList.add("hidden-sidebar"),l.value||f.classList.remove("hidden-sidebar"))};return Z1((f,h,m)=>{const g=ud();if(g.hasOnboarding&&!g.manualProccess){g.onboardingAlert=!0,g.leave=!1;const v=Ve(()=>g.leave,y=>{y?(g.leave=!1,g.onboardingAlert=!1,m()):(g.onboardingAlert=!1,m(!1)),v()})}else m()}),(f,h)=>(J(),ve(Ue,null,[F("div",f7e,[C(wH),F("div",{style:pa({overflowY:"auto",overflowX:"hidden",height:K(t).user.isActive?"calc(100vh - 220px + 90px - 90px)":"calc(100vh - 220px)"})},[xt(C(K(UU),{class:"height-fill","calendar-app":K(um),"custom-components":s.value},null,8,["calendar-app","custom-components"]),[[u8,d]])],4)]),C(pH),K(a).isDialogTimeSlotOpen?(J(),je(VAe,{key:0})):De("",!0),K(a).dialogYouNeedProfilesAndAddress?(J(),je(yH,{key:1})):De("",!0)],64))}});const p7e=Object.freeze(Object.defineProperty({__proto__:null,default:h7e},Symbol.toStringTag,{value:"Module"})),m7e={class:"d-flex flex-column ga-3 cursor-pointer"},v7e={key:0,class:"appointment-start text-capitalize"},g7e={class:"appointment-card d-sm-flex border pa-3 rounded-lg justify-space-between"},y7e={class:"d-sm-flex align-center ga-2"},_7e={class:"d-flex ga-2 flex-column"},b7e={class:"d-flex align-center appointment-title"},w7e={key:0,class:"d-inline-flex calendar-appointment-google-icon",src:Gk},S7e={class:"d-flex flex-wrap ga-sm-4 ga-1 detail-list"},C7e={class:"d-flex align-center ga-1"},E7e={class:"d-flex align-center ga-1"},x7e={class:"d-flex align-center ga-1"},k7e={class:"d-flex flex-column justify-space-between"},T7e={key:0,class:"d-sm-flex justify-end"},P7e=F("div",null,null,-1),$7e=F("span",null,"Voir le détails",-1),k0=ot({__name:"AppointmentList",props:{appointment:Object,startDate:{type:Boolean,default:!1}},emits:["update:detail"],setup(e,{emit:t}){const{appointment:n,startDate:i}=e,r=()=>{Hn.emit("openDetailsAppointmentWithEvent",n)};B(()=>{let s=$e(n.end),l=$e(n.start);return s.diff(l,"minute")});const a=B(()=>$e(n.start,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h")),o=B(()=>$e(n.end,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD H:mm").split(" ")[1].replace(":","h"));return(s,l)=>(J(),ve("div",m7e,[e.startDate?(J(),ve("span",v7e,Q(K($e)(e.appointment.start).format("dddd, D MMMM YYYY")),1)):De("",!0),F("div",g7e,[F("div",y7e,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>{var u,c,d,f,h,m,g;return[xt(C(Uu,{color:"#9E9E9E"},null,512),[[hn,!e.appointment.patient.avatar]]),xt(C(Ii,{src:typeof((c=(u=e.appointment)==null?void 0:u.patient)==null?void 0:c.avatar)=="string"?(f=(d=e.appointment)==null?void 0:d.patient)==null?void 0:f.avatar:(g=(m=(h=e.appointment)==null?void 0:h.patient)==null?void 0:m.avatar)==null?void 0:g.url,cover:!0},null,8,["src"]),[[hn,e.appointment.patient.avatar]])]}),_:1}),F("div",_7e,[F("div",b7e,[F("span",null,Q(e.appointment.patient.fullName),1),e.appointment.event_type==="synced_from_google"?(J(),ve("img",w7e)):De("",!0)]),F("div",S7e,[F("div",C7e,[C(TU),Ze(" "+Q(s.$t("dashboard.time-slot.from_X_to_Y",{X:a.value,Y:o.value})),1)]),F("div",E7e,[C(TTe),F("span",null,Q(e.appointment.acceptRemote==="remote"?s.$t("calendar.remote-consultation"):s.$t("calendar.consultation")),1)]),F("div",x7e,[C(Vk),F("span",null,Q(e.appointment.profile.mainDiscipline.name),1)])])])]),F("div",k7e,[e.appointment.acceptRemote==="remote"?(J(),ve("div",T7e,[C(Tg)])):De("",!0),P7e,C(Je,{onClick:l[0]||(l[0]=()=>r()),color:"#F8F8F8",class:"detail-icon d-flex justify-center align-center",density:"comfortable"},{append:le(()=>[C(ut,{color:"#424242"},{default:le(()=>[Ze("mdi-eye-outline")]),_:1})]),default:le(()=>[$7e]),_:1})])])]))}});const A7e={class:"appointment-view"},O7e={key:1,class:"w-100 ga-2 d-flex flex-column pa-3"},D7e={class:"text-dark-green list-title"},I7e={class:"d-flex align-center flex-wrap w-sm-75 ga-1"},N7e={class:"d-flex flex-column ga-2"},M7e={class:"appointmentTitle"},L7e=F("br",null,null,-1),R7e={class:"appointmentDay"},F7e={class:"cursor-pointer d-flex align-center"},V7e={class:"d-none d-sm-block Unfolded"},B7e={key:0,class:"text-center text-gray-80 font-italic"},z7e={key:0,class:"d-flex flex-column ga-2"},j7e={class:"appointmentTitle"},U7e=F("br",null,null,-1),H7e={class:"appointmentDay"},q7e={class:"cursor-pointer d-flex align-center"},Y7e={class:"Unfolded d-none d-sm-block"},W7e={key:0,class:"text-center text-gray-80 font-italic"},G7e={class:"d-flex flex-column ga-2"},K7e={class:"appointmentTitle"},Z7e={class:"cursor-pointer d-flex align-center"},X7e={class:"Unfolded d-none d-sm-block"},J7e={key:1,class:"d-flex flex-column ga-2"},Q7e={class:"appointmentTitle"},eOe=F("br",null,null,-1),tOe={class:"cursor-pointer d-flex align-center"},nOe={class:"d-none d-sm-block Unfolded"},iOe=ot({__name:"Appointment",setup(e){vn();const t=Uo(),n=Un(),i=hl(),r=Cs(),a=Ho();Eg();const o=z(!0),s=z(!0),l=z(!0),u=z(!0),c=z(""),d=z([]);Ve(d,async I=>{const[W,te]=f(I);j.startDateRange=$e($e(W).format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString(),j.endDateRange=$e($e(te).format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString(),await M()});const f=I=>{if(!Array.isArray(I)||I.length===0)return[null,null];const W=[...I].sort((oe,U)=>new Date(oe).getTime()-new Date(U).getTime()),te=$e(W[0]).format("YYYY-MM-DD"),he=$e(W[W.length-1]).format("YYYY-MM-DD");return[te,he]},h=()=>{o.value=!0,s.value=!0,l.value=!0,u.value=!0},m=B(()=>j.appointments),g=z($e()),v=z($e().add(1,"day")),y=B(()=>m.value.filter(I=>$e(I.start,"YYYY-MM-DD HH:mm").isSame(g.value,"day")&&I.acceptRemote===E.value&&I.patient.fullName.toLowerCase().includes(c.value.toLowerCase())).sort((I,W)=>$e(I.start,"YYYY-MM-DD HH:mm").valueOf()-$e(W.start,"YYYY-MM-DD HH:mm").valueOf())),_=B(()=>m.value.filter(I=>$e(I.start,"YYYY-MM-DD HH:mm").isSame(v.value,"day")&&I.acceptRemote===E.value&&I.patient.fullName.toLowerCase().includes(c.value.toLowerCase())).sort((I,W)=>$e(I.start,"YYYY-MM-DD HH:mm").valueOf()-$e(W.start,"YYYY-MM-DD HH:mm").valueOf())),S=B(()=>m.value.filter(I=>$e(I.end,"YYYY-MM-DD HH:mm").isBefore(g.value)&&I.acceptRemote===E.value&&I.patient.fullName.toLowerCase().includes(c.value.toLowerCase())).sort((I,W)=>$e(W.start,"YYYY-MM-DD HH:mm").valueOf()-$e(I.start,"YYYY-MM-DD HH:mm").valueOf())),w=$e(v.value).endOf("day"),x=B(()=>m.value.filter(I=>$e(I.start,"YYYY-MM-DD HH:mm").isAfter(w)&&I.acceptRemote===E.value&&I.patient.fullName.toLowerCase().includes(c.value.toLowerCase())).sort((I,W)=>$e(I.start,"YYYY-MM-DD HH:mm").valueOf()-$e(W.start,"YYYY-MM-DD HH:mm").valueOf())),k=[{key:"upcoming",label:"A venir"},{key:"past",label:"Passé"}],P=[{key:"remote",label:"Téléconsultation"},{key:"in-person",label:"Présentiel"}],E=z("in-person"),A=z("upcoming");Ve([A,E],()=>{h()}),ys(()=>{r.dialogYouNeedProfilesAndAddress=!1});const D={sidebar:hH,timeGridEvent:mH,monthGridEvent:gH},{lgAndUp:T}=Ki(),{sidebarState:O,updateSidebarState:N}=Rm(),V=()=>{const I=document.querySelector(".sx__calendar-content");I&&(T.value&&O.value&&I.classList.remove("hidden-sidebar"),T.value&&I.classList.contains("hidden-sidebar")&&!O.value&&I.classList.add("hidden-sidebar"),T.value||I.classList.remove("hidden-sidebar"))},j=Xl(),q=fh(),ne=cj(),{t:ae}=gn(),Y=X1();Hn.on("reInitAppointments",()=>{j.initAppointments()}),tn(async()=>{j.startDateRange=$e($e().startOf("month").format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString(),j.endDateRange=$e($e().endOf("month").format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString(),await M()});const M=async()=>{await j.initAppointments(),q.name==="DashboardTimeSlot"&&ne.updateHeaderState(ae("dashboard.menu.appointment")),q.name==="DashboardAppointment"&&ne.updateHeaderState(ae("dashboard.menu.timeslot")),await a.refreshProfiles(),await i.refreshAddresses(),await r.resetDialogTimeSlotCreationProfileAddress(),await t.refreshAppointmentReasons()};return Ve(()=>q.query.viewMode,async I=>{if(["calendar","lists"].includes(I))I==="calendar"?cs.setView("week"):(j.startDateRange=$e($e().startOf("month").format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString(),j.endDateRange=$e($e().endOf("month").format("YYYY-MM-DD HH:mm"),"YYYY-MM-DD HH:mm").toISOString()),await M(),s.value=!0,o.value=!0;else return await Y.replace({name:"DashboardAppointment",query:{viewMode:"calendar"}})},{immediate:!0}),Z1((I,W,te)=>{const he=ud();if(he.hasOnboarding&&!he.manualProccess){he.onboardingAlert=!0,he.leave=!1;const oe=Ve(()=>he.leave,U=>{U?(he.leave=!1,he.onboardingAlert=!1,te()):(he.onboardingAlert=!1,te(!1)),oe()})}else te()}),(I,W)=>(J(),ve("div",A7e,[K(q).query.viewMode==="calendar"?(J(),ve(Ue,{key:0},[C(wH),F("div",{class:"calendar-scroll",style:pa({overflowY:"auto",overflowX:"hidden",height:K(n).user.isActive?"calc(100vh - 220px + 90px - 90px)":"calc(100vh - 220px)"})},[xt(C(K(UU),{class:"height-fill","custom-components":D,"calendar-app":K(um)},null,8,["calendar-app"]),[[u8,V]])],4)],64)):(J(),ve("div",O7e,[F("div",null,[F("div",D7e,Q(I.$t("calendar.appointment-liste-title")),1),F("div",I7e,[C(Tn,{placeholder:I.$t("calendar.search"),"hide-details":"",density:"compact",class:"search-filter",modelValue:c.value,"onUpdate:modelValue":W[0]||(W[0]=te=>c.value=te),rounded:"lg"},{"prepend-inner":le(()=>[C(ut,{size:16},{default:le(()=>[Ze("mdi-magnify")]),_:1})]),_:1},8,["placeholder","modelValue"]),C(Oa,{"item-value":"key","item-title":"label",modelValue:A.value,"onUpdate:modelValue":W[1]||(W[1]=te=>A.value=te),items:k,class:"type-filter","hide-details":"",density:"compact",rounded:"lg"},{"prepend-inner":le(()=>[A.value==="past"?(J(),je(ut,{key:0,size:"16"},{default:le(()=>[Ze("mdi-clock-remove-outline")]),_:1})):(J(),je(ut,{key:1,size:"16"},{default:le(()=>[Ze("mdi-clock-outline")]),_:1}))]),_:1},8,["modelValue"]),C(Oa,{"item-value":"key","item-title":"label",modelValue:E.value,"onUpdate:modelValue":W[2]||(W[2]=te=>E.value=te),items:P,class:"key-filter","hide-details":"",density:"compact",rounded:"lg"},{"prepend-inner":le(()=>[E.value==="remote"?(J(),je(Tg,{key:0,color:"#616161",outlined:""})):(J(),je(kg,{key:1}))]),_:1},8,["modelValue"]),C(K(dm),{"prepend-icon":"","prepend-inner-icon":"mdi-calendar-blank-outline",modelValue:d.value,"onUpdate:modelValue":W[3]||(W[3]=te=>d.value=te),multiple:"range",flat:"",variant:"outlined",density:"compact","hide-details":"",class:"range-filter",placeholder:I.$t("calendar.period"),rounded:"lg"},null,8,["modelValue","placeholder"])])]),A.value==="upcoming"?(J(),ve(Ue,{key:0},[F("div",N7e,[F("div",null,[F("div",{onClick:W[4]||(W[4]=te=>o.value=!o.value),class:"cursor-pointer d-flex justify-space-between align-end"},[F("div",null,[F("span",M7e,Q(I.$t("calendar.today"))+" ("+Q(y.value.length)+")",1),L7e,F("span",R7e,Q(K($e)(g.value).format("D MMMM YYYY")),1)]),F("div",F7e,[F("span",V7e,Q(o.value?I.$t("calendar.un-display-list"):I.$t("calendar.display-list")),1),o.value?(J(),je(ut,{key:1,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-up")]),_:1})):(J(),je(ut,{key:0,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-down")]),_:1}))])]),C(jn)]),o.value?(J(),ve(Ue,{key:0},[(J(!0),ve(Ue,null,Ht(y.value,te=>(J(),je(k0,{appointment:te},null,8,["appointment"]))),256)),y.value.length==0?(J(),ve("div",B7e,Q(I.$t("calendar.no-appointment")),1)):De("",!0)],64)):De("",!0)]),_.value.length>0?(J(),ve("div",z7e,[F("div",{class:"d-flex justify-space-between align-end cursor-pointer",onClick:W[5]||(W[5]=te=>s.value=!s.value)},[F("div",null,[F("span",j7e,Q(I.$t("calendar.tomorrow"))+" ("+Q(_.value.length)+")",1),U7e,F("span",H7e,Q(K($e)(v.value).format("D MMMM YYYY")),1)]),F("div",q7e,[F("span",Y7e,Q(s.value?I.$t("calendar.un-display-list"):I.$t("calendar.display-list")),1),s.value?(J(),je(ut,{key:1,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-up")]),_:1})):(J(),je(ut,{key:0,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-down")]),_:1}))])]),C(jn),s.value?(J(),ve(Ue,{key:0},[(J(!0),ve(Ue,null,Ht(_.value,te=>(J(),je(k0,{appointment:te},null,8,["appointment"]))),256)),_.value.length==0?(J(),ve("div",W7e,Q(I.$t("calendar.no-appointment")),1)):De("",!0)],64)):De("",!0)])):De("",!0),F("div",G7e,[F("div",{class:"d-flex justify-space-between align-end cursor-pointer",onClick:W[6]||(W[6]=te=>u.value=!u.value)},[F("div",null,[F("span",K7e,Q(I.$t("calendar.all-apointments"))+" ("+Q(x.value.length)+")",1)]),F("div",Z7e,[F("span",X7e,Q(u.value?I.$t("calendar.un-display-list"):I.$t("calendar.display-list")),1),u.value?(J(),je(ut,{key:1,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-up")]),_:1})):(J(),je(ut,{key:0,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-down")]),_:1}))])]),C(jn),u.value?(J(!0),ve(Ue,{key:0},Ht(x.value,te=>(J(),je(k0,{startDate:"",appointment:te},null,8,["appointment"]))),256)):De("",!0)])],64)):(J(),ve("div",J7e,[F("div",{onClick:W[7]||(W[7]=te=>l.value=!l.value),class:"d-flex cursor-pointer justify-space-between align-end"},[F("div",null,[F("span",Q7e,Q(I.$t("calendar.future-appointment"))+" ("+Q(S.value.length)+")",1),eOe]),F("div",tOe,[F("span",nOe,Q(l.value?I.$t("calendar.un-display-list"):I.$t("calendar.display-list")),1),l.value?(J(),je(ut,{key:1,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-up")]),_:1})):(J(),je(ut,{key:0,color:"#616161"},{default:le(()=>[Ze("mdi-chevron-down")]),_:1}))])]),C(jn),l.value?(J(!0),ve(Ue,{key:0},Ht(S.value,te=>(J(),je(k0,{startDate:"",appointment:te},null,8,["appointment"]))),256)):De("",!0)]))])),C(pH),K(r).dialogYouNeedProfilesAndAddress?(J(),je(yH,{key:2})):De("",!0)]))}});const rOe=Object.freeze(Object.defineProperty({__proto__:null,default:iOe},Symbol.toStringTag,{value:"Module"}));function T0(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aOe=0;function SH(e){return"__private_"+aOe+++"_"+e}function oOe(e,t,n){const i=[];return e.forEach(r=>typeof r!="string"?i.push(r):t[Symbol.split](r).forEach((a,o,s)=>{a!==""&&i.push(a),o<s.length-1&&i.push(n)})),i}/** * Takes a string with placeholder variables like `%{smart_count} file selected` * and replaces it with values from options `{smart_count: 5}` * * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299 * * @param phrase that needs interpolation, with placeholders * @param options with values that will be used to replace placeholders */function VO(e,t){const n=/\$/g,i="$$$$";let r=[e];if(t==null)return r;for(const a of Object.keys(t))if(a!=="_"){let o=t[a];typeof o=="string"&&(o=n[Symbol.replace](o,i)),r=oOe(r,new RegExp(`%\\{${a}\\}`,"g"),o)}return r}const sOe=e=>{throw new Error(`missing string: ${e}`)};var hv=SH("onMissingKey"),pv=SH("apply");class CH{constructor(t,n){let{onMissingKey:i=sOe}=n===void 0?{}:n;Object.defineProperty(this,pv,{value:lOe}),Object.defineProperty(this,hv,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(r){return r===1?0:1}},Array.isArray(t)?t.forEach(T0(this,pv)[pv],this):T0(this,pv)[pv](t),T0(this,hv)[hv]=i}translate(t,n){return this.translateArray(t,n).join("")}translateArray(t,n){let i=this.locale.strings[t];if(i==null&&(T0(this,hv)[hv](t),i=t),typeof i=="object"){if(n&&typeof n.smart_count<"u"){const a=this.locale.pluralize(n.smart_count);return VO(i[a],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof i!="string")throw new Error("string was not a string");return VO(i,n)}}function lOe(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var uOe=function(){var t={},n=t._fns={};t.emit=function(o,s,l,u,c,d,f){var h=i(o);h.length&&r(o,h,[s,l,u,c,d,f])},t.on=function(o,s){n[o]||(n[o]=[]),n[o].push(s)},t.once=function(o,s){function l(){s.apply(this,arguments),t.off(o,l)}this.on(o,l)},t.off=function(o,s){var l=[];if(o&&s){var u=this._fns[o],c=0,d=u?u.length:0;for(c;c<d;c++)u[c]!==s&&l.push(u[c])}l.length?this._fns[o]=l:delete this._fns[o]};function i(a){var o=n[a]?n[a]:[],s=a.indexOf(":"),l=s===-1?[a]:[a.substring(0,s),a.substring(s+1)],u=Object.keys(n),c=0,d=u.length;for(c;c<d;c++){var f=u[c];if(f==="*"&&(o=o.concat(n[f])),l.length===2&&l[0]===f){o=o.concat(n[f]);break}}return o}function r(a,o,s){var l=0,u=o.length;for(l;l<u&&o[l];l++)o[l].event=a,o[l].apply(o[l],s)}return t};const cOe=Ei(uOe);let dOe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gw=(e=21)=>{let t="",n=e;for(;n--;)t+=dOe[Math.random()*64|0];return t};function fOe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kk=fOe,hOe=typeof ri=="object"&&ri&&ri.Object===Object&&ri,pOe=hOe,mOe=pOe,vOe=typeof self=="object"&&self&&self.Object===Object&&self,gOe=mOe||vOe||Function("return this")(),EH=gOe,yOe=EH,_Oe=function(){return yOe.Date.now()},bOe=_Oe,wOe=/\s/;function SOe(e){for(var t=e.length;t--&&wOe.test(e.charAt(t)););return t}var COe=SOe,EOe=COe,xOe=/^\s+/;function kOe(e){return e&&e.slice(0,EOe(e)+1).replace(xOe,"")}var TOe=kOe,POe=EH,$Oe=POe.Symbol,xH=$Oe,BO=xH,kH=Object.prototype,AOe=kH.hasOwnProperty,OOe=kH.toString,mv=BO?BO.toStringTag:void 0;function DOe(e){var t=AOe.call(e,mv),n=e[mv];try{e[mv]=void 0;var i=!0}catch{}var r=OOe.call(e);return i&&(t?e[mv]=n:delete e[mv]),r}var IOe=DOe,NOe=Object.prototype,MOe=NOe.toString;function LOe(e){return MOe.call(e)}var ROe=LOe,zO=xH,FOe=IOe,VOe=ROe,BOe="[object Null]",zOe="[object Undefined]",jO=zO?zO.toStringTag:void 0;function jOe(e){return e==null?e===void 0?zOe:BOe:jO&&jO in Object(e)?FOe(e):VOe(e)}var UOe=jOe;function HOe(e){return e!=null&&typeof e=="object"}var qOe=HOe,YOe=UOe,WOe=qOe,GOe="[object Symbol]";function KOe(e){return typeof e=="symbol"||WOe(e)&&YOe(e)==GOe}var ZOe=KOe,XOe=TOe,UO=Kk,JOe=ZOe,HO=0/0,QOe=/^[-+]0x[0-9a-f]+$/i,eDe=/^0b[01]+$/i,tDe=/^0o[0-7]+$/i,nDe=parseInt;function iDe(e){if(typeof e=="number")return e;if(JOe(e))return HO;if(UO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=UO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=XOe(e);var n=eDe.test(e);return n||tDe.test(e)?nDe(e.slice(2),n?2:8):QOe.test(e)?HO:+e}var rDe=iDe,aDe=Kk,kS=bOe,qO=rDe,oDe="Expected a function",sDe=Math.max,lDe=Math.min;function uDe(e,t,n){var i,r,a,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(oDe);t=qO(t)||0,aDe(n)&&(c=!!n.leading,d="maxWait"in n,a=d?sDe(qO(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function h(k){var P=i,E=r;return i=r=void 0,u=k,o=e.apply(E,P),o}function m(k){return u=k,s=setTimeout(y,t),c?h(k):o}function g(k){var P=k-l,E=k-u,A=t-P;return d?lDe(A,a-E):A}function v(k){var P=k-l,E=k-u;return l===void 0||P>=t||P<0||d&&E>=a}function y(){var k=kS();if(v(k))return _(k);s=setTimeout(y,g(k))}function _(k){return s=void 0,f&&i?h(k):(i=r=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,i=l=r=s=void 0}function w(){return s===void 0?o:_(kS())}function x(){var k=kS(),P=v(k);if(i=arguments,r=this,l=k,P){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return x.cancel=S,x.flush=w,x}var TH=uDe;const cDe=Ei(TH);var dDe=TH,fDe=Kk,hDe="Expected a function";function pDe(e,t,n){var i=!0,r=!0;if(typeof e!="function")throw new TypeError(hDe);return fDe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),dDe(e,t,{leading:i,maxWait:t,trailing:r})}var mDe=pDe;const PH=Ei(mDe);function w_(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vDe=0;function $H(e){return"__private_"+vDe+++"_"+e}const gDe={version:"3.2.2"};var lf=$H("callbacks"),TS=$H("publish");class AH{constructor(){Object.defineProperty(this,TS,{value:yDe}),this.state={},Object.defineProperty(this,lf,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const n={...this.state},i={...this.state,...t};this.state=i,w_(this,TS)[TS](n,i,t)}subscribe(t){return w_(this,lf)[lf].add(t),()=>{w_(this,lf)[lf].delete(t)}}}function yDe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w_(this,lf)[lf].forEach(i=>{i(...t)})}AH.VERSION=gDe.version;function OH(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const X4={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function DH(e){var t;if(e.type)return e.type;const n=e.name?(t=OH(e.name).extension)==null?void 0:t.toLowerCase():null;return n&&n in X4?X4[n]:"application/octet-stream"}function _De(e){return e.charCodeAt(0).toString(32)}function YO(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${_De(n)}`,"/"))+t}function bDe(e,t){let n=t||"uppy";return typeof e.name=="string"&&(n+=`-${YO(e.name.toLowerCase())}`),e.type!==void 0&&(n+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(n+=`-${YO(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(n+=`-${e.data.size}`),e.data.lastModified!==void 0&&(n+=`-${e.data.lastModified}`),n}function wDe(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function SDe(e,t){if(wDe(e))return e.id;const n=DH(e);return bDe({...e,type:n},t)}function CDe(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const i=t[1].split(".",2),r=parseInt(i[0],10),a=parseInt(i[1],10);return r<15||r===15&&a<15063||r>18||r===18&&a>=18218}function EDe(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function PS(e){return e<10?`0${e}`:e.toString()}function S_(){const e=new Date,t=PS(e.getHours()),n=PS(e.getMinutes()),i=PS(e.getSeconds());return`${t}:${n}:${i}`}const xDe={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${S_()}]`,...t)}},kDe={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${S_()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${S_()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${S_()}]`,...t)}};var TDe=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const n=t<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(n&&(t=-t),t<1)return`${(n?"-":"")+t} B`;const r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),i.length-1);t=Number(t/1024**r);const a=i[r];return t>=10||t%1===0?`${(n?"-":"")+t.toFixed(0)} ${a}`:`${(n?"-":"")+t.toFixed(1)} ${a}`};const Sf=Ei(TDe);function IH(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}IH.prototype.match=function(e){var t=!0,n=this.parts,i,r=n.length,a;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(a=(e||"").split(this.separator),i=0;t&&i<r;i++)n[i]!=="*"&&(i<a.length?t=n[i]===a[i]:t=!1);t=t&&a}else if(typeof e.splice=="function")for(t=[],i=e.length;i--;)this.match(e[i])&&(t[t.length]=e[i]);else if(typeof e=="object"){t={};for(var o in e)this.match(o)&&(t[o]=e[o])}return t};var PDe=function(e,t,n){var i=new IH(e,n||/[\/\.]/);return typeof t<"u"?i.match(t):i},$De=PDe,ADe=/[\/\+\.]/,ODe=function(e,t){function n(i){var r=$De(i,e,ADe);return r&&r.length>=2}return t?n(t.split(";")[0]):n};const DDe=Ei(ODe),IDe={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class js extends Error{constructor(t,n){var i;super(t),this.isRestriction=!0,this.isUserFacing=(i=n==null?void 0:n.isUserFacing)!=null?i:!0,n!=null&&n.file&&(this.file=n.file)}}class NDe{constructor(t,n){this.getI18n=n,this.getOpts=()=>{var i;const r=t();if(((i=r.restrictions)==null?void 0:i.allowedFileTypes)!=null&&!Array.isArray(r.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return r}}validateAggregateRestrictions(t,n){const{maxTotalFileSize:i,maxNumberOfFiles:r}=this.getOpts().restrictions;if(r&&t.filter(o=>!o.isGhost).length+n.length>r)throw new js(`${this.getI18n()("youCanOnlyUploadX",{smart_count:r})}`);if(i){const a=[...t,...n].reduce((o,s)=>{var l;return o+((l=s.size)!=null?l:0)},0);if(a>i)throw new js(this.getI18n()("aggregateExceedsSize",{sizeAllowed:Sf(i),size:Sf(a)}))}}validateSingleFile(t){const{maxFileSize:n,minFileSize:i,allowedFileTypes:r}=this.getOpts().restrictions;if(r&&!r.some(o=>o.includes("/")?t.type?DDe(t.type.replace(/;.*?$/,""),o):!1:o[0]==="."&&t.extension?t.extension.toLowerCase()===o.slice(1).toLowerCase():!1)){const o=r.join(", ");throw new js(this.getI18n()("youCanOnlyUploadFileTypes",{types:o}),{file:t})}if(n&&t.size!=null&&t.size>n)throw new js(this.getI18n()("exceedsSize",{size:Sf(n),file:t.name}),{file:t});if(i&&t.size!=null&&t.size<i)throw new js(this.getI18n()("inferiorSize",{size:Sf(i)}),{file:t})}validate(t,n){n.forEach(i=>{this.validateSingleFile(i)}),this.validateAggregateRestrictions(t,n)}validateMinNumberOfFiles(t){const{minNumberOfFiles:n}=this.getOpts().restrictions;if(n&&Object.keys(t).length<n)throw new js(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:n}))}getMissingRequiredMetaFields(t){const n=new js(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:i}=this.getOpts().restrictions,r=[];for(const a of i)(!Object.hasOwn(t.meta,a)||t.meta[a]==="")&&r.push(a);return{missingFields:r,error:n}}}const MDe={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let NH,MH;function bt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LDe=0;function sr(e){return"__private_"+LDe+++"_"+e}const RDe={version:"3.13.1"},P0={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var sa=sr("plugins"),Do=sr("restricter"),vv=sr("storeUnsubscribe"),wu=sr("emitter"),uf=sr("preProcessors"),cf=sr("uploaders"),Hu=sr("postProcessors"),Io=sr("informAndEmit"),P1=sr("checkRequiredMetaFieldsOnFile"),$S=sr("checkRequiredMetaFields"),gv=sr("assertNewUploadAllowed"),J4=sr("transformFile"),yv=sr("startIfAutoProceed"),_v=sr("checkAndUpdateFileState"),AS=sr("addListeners"),qs=sr("updateOnlineStatus"),bv=sr("requestClientById"),Su=sr("createUpload"),OS=sr("getUpload"),Cf=sr("removeUpload"),Cu=sr("runUpload");NH=Symbol.for("uppy test: getPlugins");MH=Symbol.for("uppy test: createUpload");let LH=class RH{constructor(t){Object.defineProperty(this,Cu,{value:KDe}),Object.defineProperty(this,Cf,{value:GDe}),Object.defineProperty(this,OS,{value:WDe}),Object.defineProperty(this,Su,{value:YDe}),Object.defineProperty(this,AS,{value:qDe}),Object.defineProperty(this,_v,{value:HDe}),Object.defineProperty(this,yv,{value:UDe}),Object.defineProperty(this,J4,{value:jDe}),Object.defineProperty(this,gv,{value:zDe}),Object.defineProperty(this,$S,{value:BDe}),Object.defineProperty(this,P1,{value:VDe}),Object.defineProperty(this,Io,{value:FDe}),Object.defineProperty(this,sa,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Do,{writable:!0,value:void 0}),Object.defineProperty(this,vv,{writable:!0,value:void 0}),Object.defineProperty(this,wu,{writable:!0,value:cOe()}),Object.defineProperty(this,uf,{writable:!0,value:new Set}),Object.defineProperty(this,cf,{writable:!0,value:new Set}),Object.defineProperty(this,Hu,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=PH((r,a)=>{const o=this.getFile(r==null?void 0:r.id);if(r==null||!o){this.log(`Not setting progress for a file that has been removed: ${r==null?void 0:r.id}`);return}if(o.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${r.id}`);return}const s=Number.isFinite(a.bytesTotal)&&a.bytesTotal>0;this.setFileState(r.id,{progress:{...o.progress,bytesUploaded:a.bytesUploaded,bytesTotal:a.bytesTotal,percentage:s?Math.round(a.bytesUploaded/a.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,qs,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,bv,{writable:!0,value:new Map}),this.defaultLocale=MDe;const n={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:IDe,meta:{},onBeforeFileAdded:(r,a)=>!Object.hasOwn(a,r.id),onBeforeUpload:r=>r,store:new AH,logger:xDe,infoTimeout:5e3},i={...n,...t};this.opts={...i,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=kDe),this.log(`Using Core v${RH.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...P0,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:CDe(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),bt(this,Do)[Do]=new NDe(()=>this.opts,()=>this.i18n),bt(this,vv)[vv]=this.store.subscribe((r,a,o)=>{this.emit("state-update",r,a,o),this.updateAll(a)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),bt(this,AS)[AS]()}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];bt(this,wu)[wu].emit(t,...i)}on(t,n){return bt(this,wu)[wu].on(t,n),this}once(t,n){return bt(this,wu)[wu].once(t,n),this}off(t,n){return bt(this,wu)[wu].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const n=this.getState().files;this.setState({files:{...n,...Object.fromEntries(Object.entries(t).map(i=>{let[r,a]=i;return[r,{...n[r],...a}]}))}})}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:n})}i18nInit(){const t=i=>this.log(`Missing i18n string: ${i}`,"error"),n=new CH([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=n.translate.bind(n),this.i18nArray=n.translateArray.bind(n),this.locale=n.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},i={};Object.keys(n).forEach(r=>{i[r]={...n[r],progress:{...n[r].progress,...t}}}),this.setState({files:i,...P0}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:n}=this.getState();if(Object.keys(n).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...P0,files:{}})}addPreProcessor(t){bt(this,uf)[uf].add(t)}removePreProcessor(t){return bt(this,uf)[uf].delete(t)}addPostProcessor(t){bt(this,Hu)[Hu].add(t)}removePostProcessor(t){return bt(this,Hu)[Hu].delete(t)}addUploader(t){bt(this,cf)[cf].add(t)}removeUploader(t){return bt(this,cf)[cf].delete(t)}setMeta(t){const n={...this.getState().meta,...t},i={...this.getState().files};Object.keys(i).forEach(r=>{i[r]={...i[r],meta:{...i[r].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:i})}setFileMeta(t,n){const i={...this.getState().files};if(!i[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const r={...i[t].meta,...n};i[t]={...i[t],meta:r},this.setState({files:i})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(n=>this.getFile(n))}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:i}=this.getState(),r=Object.values(t),a=[],o=[],s=[],l=[],u=[],c=[],d=[],f=[],h=[];for(const m of r){const{progress:g}=m;!g.uploadComplete&&g.uploadStarted&&(a.push(m),m.isPaused||f.push(m)),g.uploadStarted||o.push(m),(g.uploadStarted||g.preprocess||g.postprocess)&&s.push(m),g.uploadStarted&&l.push(m),m.isPaused&&u.push(m),g.uploadComplete&&c.push(m),m.error&&d.push(m),(g.preprocess||g.postprocess)&&h.push(m)}return{newFiles:o,startedFiles:s,uploadStartedFiles:l,pausedFiles:u,completeFiles:c,erroredFiles:d,inProgressFiles:a,inProgressNotPausedFiles:f,processingFiles:h,isUploadStarted:l.length>0,isAllComplete:n===100&&c.length===r.length&&h.length===0,isAllErrored:!!i&&d.length===r.length,isAllPaused:a.length!==0&&u.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:r.some(m=>m.isGhost)}}validateRestrictions(t,n){n===void 0&&(n=this.getFiles());try{bt(this,Do)[Do].validate(n,[t])}catch(i){return i}return null}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!!(n[t]&&!n[t].isGhost)}addFile(t){bt(this,gv)[gv](t);const{nextFilesState:n,validFilesToAdd:i,errors:r}=bt(this,_v)[_v]([t]),a=r.filter(s=>s.isRestriction);if(bt(this,Io)[Io](a),r.length>0)throw r[0];this.setState({files:n});const[o]=i;return this.emit("file-added",o),this.emit("files-added",i),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),bt(this,yv)[yv](),o.id}addFiles(t){bt(this,gv)[gv]();const{nextFilesState:n,validFilesToAdd:i,errors:r}=bt(this,_v)[_v](t),a=r.filter(s=>s.isRestriction);bt(this,Io)[Io](a);const o=r.filter(s=>!s.isRestriction);if(o.length>0){let s=`Multiple errors occurred while adding files: `;if(o.forEach(l=>{s+=` * ${l.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:s},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,s);{const l=new Error(s);throw l.errors=o,l}}this.setState({files:n}),i.forEach(s=>{this.emit("file-added",s)}),this.emit("files-added",i),i.length>5?this.log(`Added batch of ${i.length} files`):Object.values(i).forEach(s=>{this.log(`Added file: ${s.name} id: ${s.id} type: ${s.type}`)}),i.length>0&&bt(this,yv)[yv]()}removeFiles(t,n){const{files:i,currentUploads:r}=this.getState(),a={...i},o={...r},s=Object.create(null);t.forEach(d=>{i[d]&&(s[d]=i[d],delete a[d])});function l(d){return s[d]===void 0}Object.keys(o).forEach(d=>{const f=r[d].fileIDs.filter(l);if(f.length===0){delete o[d];return}const{capabilities:h}=this.getState();if(f.length!==r[d].fileIDs.length&&!h.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");o[d]={...r[d],fileIDs:f}});const u={currentUploads:o,files:a};Object.keys(a).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(d=>{this.emit("file-removed",s[d],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const i=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:i}),this.emit("upload-pause",t,i),i}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(i=>!t[i].progress.uploadComplete&&t[i].progress.uploadStarted).forEach(i=>{const r={...t[i],isPaused:!0};t[i]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(i=>!t[i].progress.uploadComplete&&t[i].progress.uploadStarted).forEach(i=>{const r={...t[i],isPaused:!1,error:null};t[i]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(r=>t[r].error);if(n.forEach(r=>{const a={...t[r],isPaused:!1,error:null};t[r]=a}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const i=bt(this,Su)[Su](n,{forceAllowNewUpload:!0});return bt(this,Cu)[Cu](i)}cancelAll(t){let{reason:n="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:n}),n==="user"){const{files:i}=this.getState(),r=Object.keys(i);r.length&&this.removeFiles(r,"cancel-all"),this.setState(P0)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=bt(this,Su)[Su]([t],{forceAllowNewUpload:!0});return bt(this,Cu)[Cu](n)}logout(){this.iteratePlugins(t=>{var n;(n=t.provider)==null||n.logout==null||n.logout()})}calculateTotalProgress(){const n=this.getFiles().filter(u=>u.progress.uploadStarted||u.progress.preprocess||u.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const i=n.filter(u=>u.progress.bytesTotal!=null),r=n.filter(u=>u.progress.bytesTotal==null);if(i.length===0){const u=n.length*100,c=r.reduce((f,h)=>f+h.progress.percentage,0),d=Math.round(c/u*100);this.setState({totalProgress:d});return}let a=i.reduce((u,c)=>{var d;return u+((d=c.progress.bytesTotal)!=null?d:0)},0);const o=a/i.length;a+=o*r.length;let s=0;i.forEach(u=>{s+=u.progress.bytesUploaded}),r.forEach(u=>{s+=o*(u.progress.percentage||0)/100});let l=a===0?0:Math.round(s/a*100);l>100&&(l=100),this.setState({totalProgress:l}),this.emit("progress",l)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function"){const o=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(o)}const i=new t(this,n),r=i.id;if(!r)throw new Error("Your plugin must have an id");if(!i.type)throw new Error("Your plugin must have a type");const a=this.getPlugin(r);if(a){const o=`Already found a plugin named '${a.id}'. Tried to use: '${r}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${r} v${t.VERSION}`),i.type in bt(this,sa)[sa]?bt(this,sa)[sa][i.type].push(i):bt(this,sa)[sa][i.type]=[i],i.install(),this.emit("plugin-added",i),this}getPlugin(t){for(const n of Object.values(bt(this,sa)[sa])){const i=n.find(r=>r.id===t);if(i!=null)return i}}[NH](t){return bt(this,sa)[sa][t]}iteratePlugins(t){Object.values(bt(this,sa)[sa]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=bt(this,sa)[sa][t.type],i=n.findIndex(o=>o.id===t.id);i!==-1&&n.splice(i,1);const a={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(a)}close(t){let{reason:n}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:n}),bt(this,vv)[vv](),this.iteratePlugins(i=>{this.removePlugin(i)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",bt(this,qs)[qs]),window.removeEventListener("offline",bt(this,qs)[qs]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,i){n===void 0&&(n="info"),i===void 0&&(i=3e3);const r=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:r?t.message:t,details:r?t.details:null}]}),setTimeout(()=>this.hideInfo(),i),this.emit("info-visible")}log(t,n){const{logger:i}=this.opts;switch(n){case"error":i.error(t);break;case"warning":i.warn(t);break;default:i.debug(t);break}}registerRequestClient(t,n){bt(this,bv)[bv].set(t,n)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const n=bt(this,bv)[bv].get(t.remote.requestClientId);if(n==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return n}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?bt(this,Cu)[Cu](t):(bt(this,Cf)[Cf](t),Promise.reject(new Error("Nonexistent upload")))}[MH](){return bt(this,Su)[Su](...arguments)}addResultData(t,n){if(!bt(this,OS)[OS](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:i}=this.getState(),r={...i[t],result:{...i[t].result,...n}};this.setState({currentUploads:{...i,[t]:r}})}upload(){var t;(t=bt(this,sa)[sa].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const i=this.opts.onBeforeUpload(n);return i===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(i&&typeof i=="object"&&(n=i,this.setState({files:n})),Promise.resolve().then(()=>bt(this,Do)[Do].validateMinNumberOfFiles(n)).catch(r=>{throw bt(this,Io)[Io]([r]),r}).then(()=>{if(!bt(this,$S)[$S](n))throw new js(this.i18n("missingRequiredMetaField"))}).catch(r=>{throw r}).then(()=>{const{currentUploads:r}=this.getState(),a=Object.values(r).flatMap(l=>l.fileIDs),o=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);!u.progress.uploadStarted&&a.indexOf(l)===-1&&o.push(u.id)});const s=bt(this,Su)[Su](o);return bt(this,Cu)[Cu](s)}).catch(r=>{throw this.emit("error",r),this.log(r,"error"),r}))}};function FDe(e){for(const a of e)a.isRestriction?this.emit("restriction-failed",a.file,a):this.emit("error",a,a.file),this.log(a,"warning");const t=e.filter(a=>a.isUserFacing),n=4,i=t.slice(0,n),r=t.slice(n);i.forEach(a=>{let{message:o,details:s=""}=a;this.info({message:o,details:s},"error",this.opts.infoTimeout)}),r.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:r.length})})}function VDe(e){const{missingFields:t,error:n}=bt(this,Do)[Do].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1):!0}function BDe(e){let t=!0;for(const n of Object.values(e))bt(this,P1)[P1](n)||(t=!1);return t}function zDe(e){const{allowNewUpload:t}=this.getState();if(t===!1){const n=new js(this.i18n("noMoreFilesAllowed"),{file:e});throw bt(this,Io)[Io]([n]),n}}function jDe(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,n=DH(t),i=EDe(n,t),r=OH(i).extension,a=SDe(t,this.getID()),o=t.meta||{};o.name=i,o.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:a,name:i,extension:r||"",meta:{...this.getState().meta,...o},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function UDe(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function HDe(e){const{files:t}=this.getState(),n={...t},i=[],r=[];for(const o of e)try{var a;let s=bt(this,J4)[J4](o);const l=(a=t[s.id])==null?void 0:a.isGhost;l&&(s={...t[s.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${s.name}, ${s.id}`));const u=this.opts.onBeforeFileAdded(s,n);if(!u&&this.checkIfFileAlreadyExists(s.id))throw new js(this.i18n("noDuplicates",{fileName:s.name}),{file:o});if(u===!1&&!l)throw new js("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});typeof u=="object"&&u!==null&&(s=u),bt(this,Do)[Do].validateSingleFile(s),n[s.id]=s,i.push(s)}catch(s){r.push(s)}try{bt(this,Do)[Do].validateAggregateRestrictions(Object.values(t),i)}catch(o){return r.push(o),{nextFilesState:t,validFilesToAdd:[],errors:r}}return{nextFilesState:n,validFilesToAdd:i,errors:r}}function qDe(){const e=(i,r,a)=>{let o=i.message||"Unknown error";i.details&&(o+=` ${i.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:a})};this.on("error",e),this.on("upload-error",(i,r,a)=>{if(e(r,i,a),typeof r=="object"&&r.message){var o;this.log(r.message,"error");const s=new Error(this.i18n("failedToUpload",{file:(o=i==null?void 0:i.name)!=null?o:""}));s.isUserFacing=!0,s.details=r.message,r.details&&(s.details+=` ${r.details}`),bt(this,Io)[Io]([s])}else bt(this,Io)[Io]([r])});let t=null;this.on("upload-stalled",(i,r)=>{const{message:a}=i,o=r.map(s=>s.meta.name).join(", ");t||(this.info({message:a,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${a} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const n=i=>{const r=i.filter(o=>{const s=o!=null&&this.getFile(o.id);return s||this.log(`Not setting progress for a file that has been removed: ${o==null?void 0:o.id}`),s}),a=Object.fromEntries(r.map(o=>[o.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:o.size}}]));this.patchFilesState(a)};this.on("upload-start",i=>{i.forEach(r=>{this.emit("upload-started",r)}),n(i)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(i,r)=>{if(i==null||!this.getFile(i.id)){this.log(`Not setting progress for a file that has been removed: ${i==null?void 0:i.id}`);return}const a=this.getFile(i.id).progress;this.setFileState(i.id,{progress:{...a,postprocess:bt(this,Hu)[Hu].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:a.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),i.size==null&&this.setFileState(i.id,{size:r.bytesUploaded||a.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(i,r)=>{if(i==null||!this.getFile(i.id)){this.log(`Not setting progress for a file that has been removed: ${i==null?void 0:i.id}`);return}this.setFileState(i.id,{progress:{...this.getFile(i.id).progress,preprocess:r}})}),this.on("preprocess-complete",i=>{if(i==null||!this.getFile(i.id)){this.log(`Not setting progress for a file that has been removed: ${i==null?void 0:i.id}`);return}const r={...this.getState().files};r[i.id]={...r[i.id],progress:{...r[i.id].progress}},delete r[i.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(i,r)=>{if(i==null||!this.getFile(i.id)){this.log(`Not setting progress for a file that has been removed: ${i==null?void 0:i.id}`);return}this.setFileState(i.id,{progress:{...this.getState().files[i.id].progress,postprocess:r}})}),this.on("postprocess-complete",i=>{if(i==null||!this.getFile(i.id)){this.log(`Not setting progress for a file that has been removed: ${i==null?void 0:i.id}`);return}const r={...this.getState().files};r[i.id]={...r[i.id],progress:{...r[i.id].progress}},delete r[i.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",i=>{i&&bt(this,P1)[P1](i)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",bt(this,qs)[qs]),window.addEventListener("offline",bt(this,qs)[qs]),setTimeout(bt(this,qs)[qs],3e3))}function YDe(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const a=Gw();return this.emit("upload",{id:a,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...r,[a]:{fileIDs:e,step:0,result:{}}}}),a}function WDe(e){const{currentUploads:t}=this.getState();return t[e]}function GDe(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function KDe(e){const t=()=>{const{currentUploads:a}=this.getState();return a[e]};let n=t();const i=[...bt(this,uf)[uf],...bt(this,cf)[cf],...bt(this,Hu)[Hu]];try{for(let a=n.step||0;a<i.length&&n;a++){const o=i[a];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...n,step:a}}});const{fileIDs:s}=n;await o(s,e),n=t()}}catch(a){throw bt(this,Cf)[Cf](e),a}if(n){n.fileIDs.forEach(l=>{const u=this.getFile(l);u&&u.progress.postprocess&&this.emit("postprocess-complete",u)});const a=n.fileIDs.map(l=>this.getFile(l)),o=a.filter(l=>!l.error),s=a.filter(l=>l.error);this.addResultData(e,{successful:o,failed:s,uploadID:e}),n=t()}let r;return n&&(r=n.result,this.emit("complete",r),bt(this,Cf)[Cf](e)),r==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),r}LH.VERSION=RDe.version;const Zk=LH;function FH(e){return typeof e!="object"||e===null||!("nodeType"in e)?!1:e.nodeType===Node.ELEMENT_NODE}function ZDe(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):FH(e)?e:null}function VH(e){for(var t;e&&!e.dir;)e=e.parentNode;return(t=e)==null?void 0:t.dir}class Xk{constructor(t,n){this.uppy=t,this.opts=n??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:n}=this.uppy.getState();this.uppy.setState({plugins:{...n,[this.id]:{...n[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new CH([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}function WO(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var XDe=0;function JDe(e){return"__private_"+XDe+++"_"+e}function QDe(e){let t=null,n;return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return n=r,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}var wv=JDe("updateUI");class qb extends Xk{constructor(){super(...arguments),Object.defineProperty(this,wv,{writable:!0,value:void 0})}getTargetPlugin(t){let n;if(typeof(t==null?void 0:t.addTarget)=="function")n=t,n instanceof qb||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:n,UIPlugin:qb}}));else if(typeof t=="function"){const i=t;this.uppy.iteratePlugins(r=>{r instanceof i&&(n=r)})}return n}mount(t,n){const i=n.id,r=ZDe(t);if(r){this.isTargetDOMEl=!0;const s=document.createElement("div");return s.classList.add("uppy-Root"),WO(this,wv)[wv]=QDe(l=>{this.uppy.getPlugin(this.id)&&(Cb(this.render(l),s),this.afterUpdate())}),this.uppy.log(`Installing ${i} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Cb(this.render(this.uppy.getState()),s),this.el=s,r.appendChild(s),s.dir=this.opts.direction||VH(s)||"ltr",this.onMount(),this.el}const a=this.getTargetPlugin(t);if(a)return this.uppy.log(`Installing ${i} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let o=`Invalid target option given to ${i}.`;throw typeof t=="function"?o+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":o+="If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}render(t){throw new Error("Extend the render method to add your plugin to a DOM element")}update(t){if(this.el!=null){var n,i;(n=(i=WO(this,wv))[wv])==null||n.call(i,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}const qm=qb;class eIe extends Error{constructor(){super(...arguments),this.name="UserFacingApiError"}}var BH={};function gs(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var tIe=gs;gs.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};gs.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};gs.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},n),this._options.unref&&this._timer.unref(),!0};gs.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};gs.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};gs.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};gs.prototype.start=gs.prototype.try;gs.prototype.errors=function(){return this._errors};gs.prototype.attempts=function(){return this._attempts};gs.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var r=this._errors[i],a=r.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=r,n=o)}return t};(function(e){var t=tIe;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in n)i[r]=n[r];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var a=[],o=0;o<i.retries;o++)a.push(this.createTimeout(o,i));return n&&n.forever&&!a.length&&a.push(this.createTimeout(o,i)),a.sort(function(s,l){return s-l}),a},e.createTimeout=function(n,i){var r=i.randomize?Math.random()+1:1,a=Math.round(r*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return a=Math.min(a,i.maxTimeout),a},e.wrap=function(n,i,r){if(i instanceof Array&&(r=i,i=null),!r){r=[];for(var a in n)typeof n[a]=="function"&&r.push(a)}for(var o=0;o<r.length;o++){var s=r[o],l=n[s];n[s]=(function(c){var d=e.operation(i),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(m){d.retry(m)||(m&&(arguments[0]=d.mainError()),h.apply(this,arguments))}),d.attempt(function(){c.apply(n,f)})}).bind(n,l),n[s].options=i}}})(BH);var nIe=BH;const iIe=Ei(nIe),rIe=Object.prototype.toString,aIe=e=>rIe.call(e)==="[object Error]",oIe=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);function sIe(e){return e&&aIe(e)&&e.name==="TypeError"&&typeof e.message=="string"?e.message==="Load failed"?e.stack===void 0:oIe.has(e.message):!1}let Q4=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}};const GO=(e,t,n)=>{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function zH(e,t){return new Promise((n,i)=>{t={onFailedAttempt(){},retries:10,shouldRetry:()=>!0,...t};const r=iIe.operation(t),a=()=>{var s;r.stop(),i((s=t.signal)==null?void 0:s.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",a,{once:!0});const o=()=>{var s;(s=t.signal)==null||s.removeEventListener("abort",a),r.stop()};r.attempt(async s=>{try{const l=await e(s);o(),n(l)}catch(l){try{if(!(l instanceof Error))throw new TypeError(`Non-error was thrown: "${l}". You should only throw errors.`);if(l instanceof Q4)throw l.originalError;if(l instanceof TypeError&&!sIe(l))throw l;if(GO(l,s,t),await t.shouldRetry(l)||(r.stop(),i(l)),await t.onFailedAttempt(l),!r.retry(l))throw r.mainError()}catch(u){GO(u,s,t),o(),i(u)}}})})}class jH extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}function lIe(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new jH(e)})}function UH(e,t){return Object.prototype.hasOwnProperty.call(e,t)}class HH extends Error{constructor(t,n){super(t),this.cause=n==null?void 0:n.cause,this.cause&&UH(this.cause,"isNetworkError")?this.isNetworkError=this.cause.isNetworkError:this.isNetworkError=!1}}function uIe(e,t,n){const{progress:i,bytesUploaded:r,bytesTotal:a}=t;i&&(e.uppy.log(`Upload progress: ${i}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:r,bytesTotal:a}))}const cIe=PH(uIe,300,{leading:!0,trailing:!0});function dIe(e){var t;const i=(t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e))==null?void 0:t[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${i}`}class fIe extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}let qH;function Eu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hIe=0;function Kw(e){return"__private_"+hIe+++"_"+e}const pIe={version:"3.8.1"};function mIe(e){return e.replace(/\/$/,"")}const YH=10,vIe=5*60*1e3,gIe=401;class yIe extends Error{constructor(t){let{statusCode:n,message:i}=t;super(i),this.name="HttpError",this.statusCode=n}}async function _Ie(e){if(e.status===gIe)throw new fIe;if(e.ok)return e.json();let t=`Failed request with status: ${e.status}. ${e.statusText}`,n;try{n=await e.json(),n.message&&(t=`${t} message: ${n.message}`),n.requestId&&(t=`${t} request-Id: ${n.requestId}`)}catch(i){throw new Error(t,{cause:i})}throw e.status>=400&&e.status<=499&&n.message?new eIe(n.message):new yIe({statusCode:e.status,message:t})}var xu=Kw("companionHeaders"),Sv=Kw("getUrl"),DS=Kw("requestSocketToken"),Cv=Kw("awaitRemoteFileUpload");qH=Symbol.for("uppy test: getCompanionHeaders");class Jk{constructor(t,n){Object.defineProperty(this,Cv,{value:wIe}),Object.defineProperty(this,Sv,{value:bIe}),Object.defineProperty(this,xu,{writable:!0,value:void 0}),Object.defineProperty(this,DS,{writable:!0,value:async i=>{var r;let{file:a,postBody:o,signal:s}=i;if(((r=a.remote)==null?void 0:r.url)==null)throw new Error("Cannot connect to an undefined URL");return(await this.post(a.remote.url,{...a.remote.body,...o},{signal:s})).token}}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),Eu(this,xu)[xu]=n==null?void 0:n.companionHeaders}setCompanionHeaders(t){Eu(this,xu)[xu]=t}[qH](){return Eu(this,xu)[xu]}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return mIe(t&&t[n]?t[n]:n)}async headers(t){return t===void 0&&(t=!1),{...{Accept:"application/json",...t?void 0:{"Content-Type":"application/json"}},...Eu(this,xu)[xu]}}onReceiveResponse(t){const{headers:n}=t,r=this.uppy.getState().companion||{},a=this.opts.companionUrl;n.has("i-am")&&n.get("i-am")!==r[a]&&this.uppy.setState({companion:{...r,[a]:n.get("i-am")}})}async request(t){let{path:n,method:i="GET",data:r,skipPostResponse:a,signal:o}=t;try{const s=await this.headers(!r),l=await lIe(Eu(this,Sv)[Sv](n),{method:i,signal:o,headers:s,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return a||this.onReceiveResponse(l),await _Ie(l)}catch(s){throw s.isAuthError||s.name==="UserFacingApiError"||s.name==="AbortError"?s:new HH(`Could not ${i} ${Eu(this,Sv)[Sv](n)}`,{cause:s})}}async get(t,n){return typeof n=="boolean"&&(n={skipPostResponse:n}),this.request({...n,path:t})}async post(t,n,i){return typeof i=="boolean"&&(i={skipPostResponse:i}),this.request({...i,path:t,method:"POST",data:n})}async delete(t,n,i){return typeof i=="boolean"&&(i={skipPostResponse:i}),this.request({...i,path:t,method:"DELETE",data:n})}async uploadRemoteFile(t,n,i){var r=this;try{const{signal:a,getQueue:o}=i||{};return await zH(async()=>{var s;const l=(s=this.uppy.getFile(t.id))==null?void 0:s.serverToken;if(l!=null)return this.uppy.log(`Connecting to exiting websocket ${l}`),Eu(this,Cv)[Cv]({file:t,queue:o(),signal:a});const c=await o().wrapPromiseFunction(async function(){try{return await Eu(r,DS)[DS](...arguments)}catch(d){if(d.isAuthError)throw new Q4(d);if(d.cause==null)throw d;const f=d.cause,h=()=>[408,409,429,418,423].includes(f.statusCode)||f.statusCode>=500&&f.statusCode<=599&&![501,505].includes(f.statusCode);throw f.name==="HttpError"&&!h()?new Q4(f):f}},{priority:-1})({file:t,postBody:n,signal:a}).abortOn(a);if(this.uppy.getFile(t.id))return this.uppy.setFileState(t.id,{serverToken:c}),Eu(this,Cv)[Cv]({file:this.uppy.getFile(t.id),queue:o(),signal:a})},{retries:YH,signal:a,onFailedAttempt:s=>this.uppy.log(`Retrying upload due to: ${s.message}`,"warning")})}catch(a){if(a.name==="AbortError")return;throw this.uppy.emit("upload-error",t,a),a}}}function bIe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function wIe(e){let{file:t,queue:n,signal:i}=e,r;const{capabilities:a}=this.uppy.getState();try{return await new Promise((o,s)=>{const l=t.serverToken,u=dIe(t.remote.companionUrl);let c,d,f,{isPaused:h}=t;const m=(P,E)=>{if(c==null||c.readyState!==c.OPEN){var A;this.uppy.log(`Cannot send "${P}" to socket ${t.id} because the socket state was ${String((A=c)==null?void 0:A.readyState)}`,"warning");return}c.send(JSON.stringify({action:P,payload:E??{}}))};function g(){a.resumableUploads&&m(h?"pause":"resume")}const v=async()=>{d&&d.abort(),d=new AbortController;const P=A=>{var D;this.uppy.setFileState(t.id,{serverToken:null}),(D=d)==null||D.abort==null||D.abort(),s(A)};function E(){clearTimeout(f),!h&&(f=setTimeout(()=>P(new Error("Timeout waiting for message from Companion socket")),vIe))}try{await n.wrapPromiseFunction(async()=>{await zH(async()=>new Promise((D,T)=>{c=new WebSocket(`${u}/api/${l}`),E(),c.addEventListener("close",()=>{c=void 0,T(new Error("Socket closed unexpectedly"))}),c.addEventListener("error",N=>{var V;this.uppy.log(`Companion socket error ${JSON.stringify(N)}, closing socket`,"warning"),(V=c)==null||V.close()}),c.addEventListener("open",()=>{g()}),c.addEventListener("message",N=>{E();try{const{action:ae,payload:Y}=JSON.parse(N.data);switch(ae){case"progress":{cIe(this,Y,this.uppy.getFile(t.id));break}case"success":{var V,j,q,ne;const M=(V=Y.response)==null?void 0:V.responseText;this.uppy.emit("upload-success",this.uppy.getFile(t.id),{uploadURL:Y.url,status:(j=(q=Y.response)==null?void 0:q.status)!=null?j:200,body:M?JSON.parse(M):void 0}),(ne=d)==null||ne.abort==null||ne.abort(),o();break}case"error":{const{message:M}=Y.error;throw Object.assign(new Error(M),{cause:Y.error})}default:this.uppy.log(`Companion socket unknown action ${ae}`,"warning")}}catch(ae){P(ae)}});const O=()=>{this.uppy.log(`Closing socket ${t.id}`,"info"),clearTimeout(f),c&&c.close(),c=void 0};d.signal.addEventListener("abort",()=>{O()})}),{retries:YH,signal:d.signal,onFailedAttempt:()=>{d.signal.aborted||this.uppy.log(`Retrying websocket ${t.id}`,"info")}})})().abortOn(d.signal)}catch(A){if(d.signal.aborted)return;P(A)}},y=P=>{if(a.resumableUploads)if(h=P,c&&g(),P){var E;(E=d)==null||E.abort==null||E.abort()}else v()},_=P=>{var E;a.individualCancellation&&P.id===t.id&&(m("cancel"),(E=d)==null||E.abort==null||E.abort(),this.uppy.log(`upload ${t.id} was removed`,"info"),o())},S=P=>{var E;let{reason:A}=P;A==="user"&&m("cancel"),(E=d)==null||E.abort==null||E.abort(),this.uppy.log(`upload ${t.id} was canceled`,"info"),o()},w=(P,E)=>{P===t.id&&y(E)},x=()=>y(!0),k=()=>y(!1);this.uppy.on("file-removed",_),this.uppy.on("cancel-all",S),this.uppy.on("upload-pause",w),this.uppy.on("pause-all",x),this.uppy.on("resume-all",k),r=()=>{this.uppy.off("file-removed",_),this.uppy.off("cancel-all",S),this.uppy.off("upload-pause",w),this.uppy.off("pause-all",x),this.uppy.off("resume-all",k)},i.addEventListener("abort",()=>{var P;(P=d)==null||P.abort()}),v()})}finally{r==null||r()}}Jk.VERSION=pIe.version;function ku(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var SIe=0;function WH(e){return"__private_"+SIe+++"_"+e}var Fa=WH("uppy"),Ev=WH("events");class GH{constructor(t){Object.defineProperty(this,Fa,{writable:!0,value:void 0}),Object.defineProperty(this,Ev,{writable:!0,value:[]}),ku(this,Fa)[Fa]=t}on(t,n){return ku(this,Ev)[Ev].push([t,n]),ku(this,Fa)[Fa].on(t,n)}remove(){for(const[t,n]of ku(this,Ev)[Ev].splice(0))ku(this,Fa)[Fa].off(t,n)}onFilePause(t,n){this.on("upload-pause",(i,r)=>{t===i&&n(r)})}onFileRemove(t,n){this.on("file-removed",i=>{t===i.id&&n(i.id)})}onPause(t,n){this.on("upload-pause",(i,r)=>{t===i&&n(r)})}onRetry(t,n){this.on("upload-retry",i=>{t===i&&n()})}onRetryAll(t,n){this.on("retry-all",()=>{ku(this,Fa)[Fa].getFile(t)&&n()})}onPauseAll(t,n){this.on("pause-all",()=>{ku(this,Fa)[Fa].getFile(t)&&n()})}onCancelAll(t,n){var i=this;this.on("cancel-all",function(){ku(i,Fa)[Fa].getFile(t)&&n(...arguments)})}onResumeAll(t,n){this.on("resume-all",()=>{ku(this,Fa)[Fa].getFile(t)&&n()})}}function Rt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var CIe=0;function go(e){return"__private_"+CIe+++"_"+e}function EIe(e){return new Error("Cancelled",{cause:e})}function KO(e){if(e!=null){var t;const n=()=>this.abort(e.reason);e.addEventListener("abort",n,{once:!0});const i=()=>{e.removeEventListener("abort",n)};(t=this.then)==null||t.call(this,i,i)}return this}var $o=go("activeRequests"),Wa=go("queuedHandlers"),ko=go("paused"),Rd=go("pauseTimer"),Va=go("downLimit"),Fd=go("upperLimit"),Tu=go("rateLimitingTimer"),$g=go("call"),qu=go("queueNext"),eE=go("next"),IS=go("queue"),tE=go("dequeue"),NS=go("resume"),Vd=go("increaseLimit");class KH{constructor(t){Object.defineProperty(this,tE,{value:$Ie}),Object.defineProperty(this,IS,{value:PIe}),Object.defineProperty(this,eE,{value:TIe}),Object.defineProperty(this,qu,{value:kIe}),Object.defineProperty(this,$g,{value:xIe}),Object.defineProperty(this,$o,{writable:!0,value:0}),Object.defineProperty(this,Wa,{writable:!0,value:[]}),Object.defineProperty(this,ko,{writable:!0,value:!1}),Object.defineProperty(this,Rd,{writable:!0,value:void 0}),Object.defineProperty(this,Va,{writable:!0,value:1}),Object.defineProperty(this,Fd,{writable:!0,value:void 0}),Object.defineProperty(this,Tu,{writable:!0,value:void 0}),Object.defineProperty(this,NS,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Vd,{writable:!0,value:()=>{if(Rt(this,ko)[ko]){Rt(this,Tu)[Tu]=setTimeout(Rt(this,Vd)[Vd],0);return}Rt(this,Va)[Va]=this.limit,this.limit=Math.ceil((Rt(this,Fd)[Fd]+Rt(this,Va)[Va])/2);for(let n=Rt(this,Va)[Va];n<=this.limit;n++)Rt(this,qu)[qu]();Rt(this,Fd)[Fd]-Rt(this,Va)[Va]>3?Rt(this,Tu)[Tu]=setTimeout(Rt(this,Vd)[Vd],2e3):Rt(this,Va)[Va]=Math.floor(Rt(this,Va)[Va]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return!Rt(this,ko)[ko]&&Rt(this,$o)[$o]<this.limit?Rt(this,$g)[$g](t):Rt(this,IS)[IS](t,n)}wrapSyncFunction(t,n){var i=this;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];const s=i.run(()=>(t(...a),queueMicrotask(()=>s.done()),()=>{}),n);return{abortOn:KO,abort(){s.abort()}}}}wrapPromiseFunction(t,n){var i=this;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];let s;const l=new Promise((u,c)=>{s=i.run(()=>{let d,f;try{f=Promise.resolve(t(...a))}catch(h){f=Promise.reject(h)}return f.then(h=>{d?c(d):(s.done(),u(h))},h=>{d?c(d):(s.done(),c(h))}),h=>{d=EIe(h)}},n)});return l.abort=u=>{s.abort(u)},l.abortOn=KO,l}}resume(){Rt(this,ko)[ko]=!1,clearTimeout(Rt(this,Rd)[Rd]);for(let t=0;t<this.limit;t++)Rt(this,qu)[qu]()}pause(t){t===void 0&&(t=null),Rt(this,ko)[ko]=!0,clearTimeout(Rt(this,Rd)[Rd]),t!=null&&(Rt(this,Rd)[Rd]=setTimeout(Rt(this,NS)[NS],t))}rateLimit(t){clearTimeout(Rt(this,Tu)[Tu]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(Rt(this,Fd)[Fd]=this.limit-1,this.limit=Rt(this,Va)[Va],Rt(this,Tu)[Tu]=setTimeout(Rt(this,Vd)[Vd],t))}get isPaused(){return Rt(this,ko)[ko]}}function xIe(e){Rt(this,$o)[$o]+=1;let t=!1,n;try{n=e()}catch(i){throw Rt(this,$o)[$o]-=1,i}return{abort:i=>{t||(t=!0,Rt(this,$o)[$o]-=1,n==null||n(i),Rt(this,qu)[qu]())},done:()=>{t||(t=!0,Rt(this,$o)[$o]-=1,Rt(this,qu)[qu]())}}}function kIe(){queueMicrotask(()=>Rt(this,eE)[eE]())}function TIe(){if(Rt(this,ko)[ko]||Rt(this,$o)[$o]>=this.limit||Rt(this,Wa)[Wa].length===0)return;const e=Rt(this,Wa)[Wa].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=Rt(this,$g)[$g](e.fn);e.abort=t.abort,e.done=t.done}function PIe(e,t){const n={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{Rt(this,tE)[tE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=Rt(this,Wa)[Wa].findIndex(r=>n.priority>r.priority);return i===-1?Rt(this,Wa)[Wa].push(n):Rt(this,Wa)[Wa].splice(i,0,n),n}function $Ie(e){const t=Rt(this,Wa)[Wa].indexOf(e);t!==-1&&Rt(this,Wa)[Wa].splice(t,1)}const ZH=Symbol("__queue");function XH(e){const t=n=>"error"in n&&!!n.error;return e.filter(n=>!t(n))}function JH(e){return e.filter(t=>{var n;return!((n=t.progress)!=null&&n.uploadStarted)||!t.isRestored})}const{AbortController:MS}=globalThis,QH=function(e,t){e===void 0&&(e="Aborted");const n=new DOMException(e,"AbortError");return t!=null&&UH(t,"cause")&&Object.defineProperty(n,"cause",{__proto__:null,configurable:!0,writable:!0,value:t.cause}),n};function wt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AIe=0;function Lr(e){return"__private_"+AIe+++"_"+e}const OIe=1024*1024,ZO={getChunkSize(e){return Math.ceil(e.size/1e4)},onProgress(){},onPartComplete(){},onSuccess(){},onError(e){throw e}};function DIe(e){if(typeof e=="string")return parseInt(e,10);if(typeof e=="number")return e;throw new TypeError("Expected a number")}const C_=Symbol("pausing upload, not an actual error");var da=Lr("abortController"),Pr=Lr("chunks"),qa=Lr("chunkState"),Ao=Lr("data"),Ro=Lr("file"),Ag=Lr("uploadHasStarted"),xv=Lr("onError"),Vf=Lr("onSuccess"),Fu=Lr("shouldUseMultipart"),df=Lr("isRestoring"),$1=Lr("onReject"),Qd=Lr("maxMultipartParts"),Qv=Lr("minPartSize"),LS=Lr("initChunks"),RS=Lr("createUpload"),kv=Lr("resumeUpload"),eg=Lr("onPartProgress"),tg=Lr("onPartComplete"),FS=Lr("abortUpload");class IIe{constructor(t,n){var i,r;Object.defineProperty(this,FS,{value:RIe}),Object.defineProperty(this,kv,{value:LIe}),Object.defineProperty(this,RS,{value:MIe}),Object.defineProperty(this,LS,{value:NIe}),Object.defineProperty(this,da,{writable:!0,value:new MS}),Object.defineProperty(this,Pr,{writable:!0,value:void 0}),Object.defineProperty(this,qa,{writable:!0,value:void 0}),Object.defineProperty(this,Ao,{writable:!0,value:void 0}),Object.defineProperty(this,Ro,{writable:!0,value:void 0}),Object.defineProperty(this,Ag,{writable:!0,value:!1}),Object.defineProperty(this,xv,{writable:!0,value:void 0}),Object.defineProperty(this,Vf,{writable:!0,value:void 0}),Object.defineProperty(this,Fu,{writable:!0,value:void 0}),Object.defineProperty(this,df,{writable:!0,value:void 0}),Object.defineProperty(this,$1,{writable:!0,value:a=>(a==null?void 0:a.cause)===C_?null:wt(this,xv)[xv](a)}),Object.defineProperty(this,Qd,{writable:!0,value:1e4}),Object.defineProperty(this,Qv,{writable:!0,value:5*OIe}),Object.defineProperty(this,eg,{writable:!0,value:a=>o=>{if(!o.lengthComputable)return;wt(this,qa)[qa][a].uploaded=DIe(o.loaded);const s=wt(this,qa)[qa].reduce((l,u)=>l+u.uploaded,0);this.options.onProgress(s,wt(this,Ao)[Ao].size)}}),Object.defineProperty(this,tg,{writable:!0,value:a=>o=>{wt(this,Pr)[Pr][a]=null,wt(this,qa)[qa][a].etag=o,wt(this,qa)[qa][a].done=!0;const s={PartNumber:a+1,ETag:o};this.options.onPartComplete(s)}}),this.options={...ZO,...n},(r=(i=this.options).getChunkSize)!=null||(i.getChunkSize=ZO.getChunkSize),wt(this,Ao)[Ao]=t,wt(this,Ro)[Ro]=n.file,wt(this,Vf)[Vf]=this.options.onSuccess,wt(this,xv)[xv]=this.options.onError,wt(this,Fu)[Fu]=this.options.shouldUseMultipart,wt(this,df)[df]=n.uploadId&&n.key,wt(this,LS)[LS]()}start(){wt(this,Ag)[Ag]?(wt(this,da)[da].signal.aborted||wt(this,da)[da].abort(C_),wt(this,da)[da]=new MS,wt(this,kv)[kv]()):wt(this,df)[df]?(this.options.companionComm.restoreUploadFile(wt(this,Ro)[Ro],{uploadId:this.options.uploadId,key:this.options.key}),wt(this,kv)[kv]()):wt(this,RS)[RS]()}pause(){wt(this,da)[da].abort(C_),wt(this,da)[da]=new MS}abort(t){var n;t===void 0&&(t=void 0),(n=t)!=null&&n.really?wt(this,FS)[FS]():this.pause()}get chunkState(){return wt(this,qa)[qa]}}function NIe(){const e=wt(this,Ao)[Ao].size,t=typeof wt(this,Fu)[Fu]=="function"?wt(this,Fu)[Fu](wt(this,Ro)[Ro]):!!wt(this,Fu)[Fu];if(t&&e>wt(this,Qv)[Qv]){let n=Math.max(this.options.getChunkSize(wt(this,Ao)[Ao]),wt(this,Qv)[Qv]),i=Math.floor(e/n);i>wt(this,Qd)[Qd]&&(i=wt(this,Qd)[Qd],n=e/wt(this,Qd)[Qd]),wt(this,Pr)[Pr]=Array(i);for(let r=0,a=0;r<e;r+=n,a++){const o=Math.min(e,r+n),s=()=>{const l=r;return wt(this,Ao)[Ao].slice(l,o)};if(wt(this,Pr)[Pr][a]={getData:s,onProgress:wt(this,eg)[eg](a),onComplete:wt(this,tg)[tg](a),shouldUseMultipart:t},wt(this,df)[df]){const l=r+n>e?e-r:n;wt(this,Pr)[Pr][a].setAsUploaded=()=>{wt(this,Pr)[Pr][a]=null,wt(this,qa)[qa][a].uploaded=l}}}}else wt(this,Pr)[Pr]=[{getData:()=>wt(this,Ao)[Ao],onProgress:wt(this,eg)[eg](0),onComplete:wt(this,tg)[tg](0),shouldUseMultipart:t}];wt(this,qa)[qa]=wt(this,Pr)[Pr].map(()=>({uploaded:0}))}function MIe(){this.options.companionComm.uploadFile(wt(this,Ro)[Ro],wt(this,Pr)[Pr],wt(this,da)[da].signal).then(wt(this,Vf)[Vf],wt(this,$1)[$1]),wt(this,Ag)[Ag]=!0}function LIe(){this.options.companionComm.resumeUploadFile(wt(this,Ro)[Ro],wt(this,Pr)[Pr],wt(this,da)[da].signal).then(wt(this,Vf)[Vf],wt(this,$1)[$1])}function RIe(){wt(this,da)[da].abort(),this.options.companionComm.abortFileUpload(wt(this,Ro)[Ro]).catch(e=>this.options.log(e))}function FIe(e){let{method:t="PUT",CanonicalUri:n="/",CanonicalQueryString:i="",SignedHeaders:r,HashedPayload:a}=e;const o=Object.keys(r).map(s=>s.toLowerCase()).sort();return[t,n,i,...o.map(s=>`${s}:${r[s]}`),"",o.join(";"),a].join(` `)}const Qk=new TextEncoder,eT={name:"HMAC",hash:"SHA-256"};async function VIe(e){const{subtle:t}=globalThis.crypto;return t.digest(eT.hash,Qk.encode(e))}async function BIe(e){const{subtle:t}=globalThis.crypto;return t.importKey("raw",typeof e=="string"?Qk.encode(e):e,eT,!1,["sign"])}function XO(e){const t=new Uint8Array(e);let n="";for(let i=0;i<t.length;i++)n+=t[i].toString(16).padStart(2,"0");return n}async function Tv(e,t){const{subtle:n}=globalThis.crypto;return n.sign(eT,await BIe(e),Qk.encode(t))}async function zIe(e){let{accountKey:t,accountSecret:n,sessionToken:i,bucketName:r,Key:a,Region:o,expires:s,uploadId:l,partNumber:u}=e;const c="s3",d=`${r}.${c}.${o}.amazonaws.com`,f=`/${encodeURI(a)}`,h="UNSIGNED-PAYLOAD",m=new Date().toISOString().replace(/[-:]|\.\d+/g,""),g=m.slice(0,8),v=`${g}/${o}/${c}/aws4_request`,y=new URL(`https://${d}${f}`);y.searchParams.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),y.searchParams.set("X-Amz-Content-Sha256",h),y.searchParams.set("X-Amz-Credential",`${t}/${v}`),y.searchParams.set("X-Amz-Date",m),y.searchParams.set("X-Amz-Expires",s),y.searchParams.set("X-Amz-Security-Token",i),y.searchParams.set("X-Amz-SignedHeaders","host"),u&&y.searchParams.set("partNumber",u),l&&y.searchParams.set("uploadId",l),y.searchParams.set("x-id",u&&l?"UploadPart":"PutObject");const _=FIe({CanonicalUri:f,CanonicalQueryString:y.search.slice(1),SignedHeaders:{host:d},HashedPayload:h}),S=XO(await VIe(_)),w=["AWS4-HMAC-SHA256",m,v,S].join(` `),x=await Tv(`AWS4${n}`,g),k=await Tv(x,o),P=await Tv(k,c),E=await Tv(P,"aws4_request"),A=XO(await Tv(E,w));return y.searchParams.set("X-Amz-Signature",A),y}let eq;function lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jIe=0;function oi(e){return"__private_"+jIe+++"_"+e}const UIe={version:"3.10.2"};function tp(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}function HIe(e){const t=new URL(e);return t.search="",t.hash="",t.href}function tq(e){const t=e.Expiration;if(t){const n=Math.floor((new Date(t)-Date.now())/1e3);if(n>9)return n}}function JO(e){let{meta:t,allowedMetaFields:n,querify:i=!1}=e;const r=n??Object.keys(t);return t?Object.fromEntries(r.filter(a=>t[a]!=null).map(a=>{const o=i?`metadata[${a}]`:a,s=String(t[a]);return[o,s]})):{}}function xa(e){if(e!=null&&e.aborted)throw QH("The operation was aborted",{cause:e.reason})}var Pv=oi("abortMultipartUpload"),la=oi("cache"),$v=oi("createMultipartUpload"),Av=oi("fetchSignature"),Og=oi("getUploadParameters"),Ov=oi("listParts"),ef=oi("previousRetryDelay"),ff=oi("requests"),Bd=oi("retryDelays"),zd=oi("sendCompletionRequest"),jd=oi("setS3MultipartState"),hf=oi("uploadPartBytes"),ca=oi("getFile"),VS=oi("shouldRetry"),Dv=oi("nonMultipartUpload");class qIe{constructor(t,n,i,r){Object.defineProperty(this,Dv,{value:WIe}),Object.defineProperty(this,VS,{value:YIe}),Object.defineProperty(this,Pv,{writable:!0,value:void 0}),Object.defineProperty(this,la,{writable:!0,value:new WeakMap}),Object.defineProperty(this,$v,{writable:!0,value:void 0}),Object.defineProperty(this,Av,{writable:!0,value:void 0}),Object.defineProperty(this,Og,{writable:!0,value:void 0}),Object.defineProperty(this,Ov,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,Bd,{writable:!0,value:void 0}),Object.defineProperty(this,zd,{writable:!0,value:void 0}),Object.defineProperty(this,jd,{writable:!0,value:void 0}),Object.defineProperty(this,hf,{writable:!0,value:void 0}),Object.defineProperty(this,ca,{writable:!0,value:void 0}),lt(this,ff)[ff]=t,lt(this,jd)[jd]=i,lt(this,ca)[ca]=r,this.setOptions(n)}setOptions(t){const n=lt(this,ff)[ff];if("abortMultipartUpload"in t&&(lt(this,Pv)[Pv]=n.wrapPromiseFunction(t.abortMultipartUpload,{priority:1})),"createMultipartUpload"in t&&(lt(this,$v)[$v]=n.wrapPromiseFunction(t.createMultipartUpload,{priority:-1})),"signPart"in t&&(lt(this,Av)[Av]=n.wrapPromiseFunction(t.signPart)),"listParts"in t&&(lt(this,Ov)[Ov]=n.wrapPromiseFunction(t.listParts)),"completeMultipartUpload"in t&&(lt(this,zd)[zd]=n.wrapPromiseFunction(t.completeMultipartUpload,{priority:1})),"retryDelays"in t){var i;lt(this,Bd)[Bd]=(i=t.retryDelays)!=null?i:[]}"uploadPartBytes"in t&&(lt(this,hf)[hf]=n.wrapPromiseFunction(t.uploadPartBytes,{priority:1/0})),"getUploadParameters"in t&&(lt(this,Og)[Og]=n.wrapPromiseFunction(t.getUploadParameters))}async getUploadId(t,n){let i;for(;(i=lt(this,la)[la].get(t.data))!=null;)try{return await i}catch{}const r=lt(this,$v)[$v](lt(this,ca)[ca](t),n),a=()=>{r.abort(n.reason),lt(this,la)[la].delete(t.data)};return n.addEventListener("abort",a,{once:!0}),lt(this,la)[la].set(t.data,r),r.then(async o=>{n.removeEventListener("abort",a),lt(this,jd)[jd](t,o),lt(this,la)[la].set(t.data,o)},()=>{n.removeEventListener("abort",a),lt(this,la)[la].delete(t.data)}),r}async abortFileUpload(t){const n=lt(this,la)[la].get(t.data);if(n==null)return;lt(this,la)[la].delete(t.data),lt(this,jd)[jd](t,Object.create(null));let i;try{i=await n}catch{return}await lt(this,Pv)[Pv](lt(this,ca)[ca](t),i)}async uploadFile(t,n,i){if(xa(i),n.length===1&&!n[0].shouldUseMultipart)return lt(this,Dv)[Dv](t,n[0],i);const{uploadId:r,key:a}=await this.getUploadId(t,i);xa(i);try{const o=await Promise.all(n.map((s,l)=>this.uploadChunk(t,l+1,s,i)));return xa(i),await lt(this,zd)[zd](lt(this,ca)[ca](t),{key:a,uploadId:r,parts:o,signal:i},i).abortOn(i)}catch(o){throw(o==null?void 0:o.cause)!==C_&&(o==null?void 0:o.name)!=="AbortError"&&this.abortFileUpload(t),o}}restoreUploadFile(t,n){lt(this,la)[la].set(t.data,n)}async resumeUploadFile(t,n,i){if(xa(i),n.length===1&&n[0]!=null&&!n[0].shouldUseMultipart)return lt(this,Dv)[Dv](t,n[0],i);const{uploadId:r,key:a}=await this.getUploadId(t,i);xa(i);const o=await lt(this,Ov)[Ov](lt(this,ca)[ca](t),{uploadId:r,key:a,signal:i},i).abortOn(i);xa(i);const s=await Promise.all(n.map((l,u)=>{const c=u+1,d=o.find(f=>{let{PartNumber:h}=f;return h===c});return d==null?this.uploadChunk(t,c,l,i):(l==null||l.setAsUploaded==null||l.setAsUploaded(),{PartNumber:c,ETag:d.ETag})}));return xa(i),lt(this,zd)[zd](lt(this,ca)[ca](t),{key:a,uploadId:r,parts:s,signal:i},i).abortOn(i)}async uploadChunk(t,n,i,r){xa(r);const{uploadId:a,key:o}=await this.getUploadId(t,r),s=lt(this,Bd)[Bd].values(),l=lt(this,Bd)[Bd].values(),u=()=>{const c=s.next();return c==null||c.done?null:c.value};for(;;){xa(r);const c=i.getData(),{onProgress:d,onComplete:f}=i;let h;try{h=await lt(this,Av)[Av](lt(this,ca)[ca](t),{uploadId:a,key:o,partNumber:n,body:c,signal:r}).abortOn(r)}catch(m){const g=u();if(g==null||r.aborted)throw m;await new Promise(v=>setTimeout(v,g));continue}xa(r);try{return{PartNumber:n,...await lt(this,hf)[hf]({signature:h,body:c,size:c.size,onProgress:d,onComplete:f,signal:r}).abortOn(r)}}catch(m){if(!await lt(this,VS)[VS](m,l))throw m}}}}async function YIe(e,t){var n;const i=lt(this,ff)[ff],r=e==null||(n=e.source)==null?void 0:n.status;if(r==null)return!1;if(r===403&&e.message==="Request has expired"){if(!i.isPaused){if(i.limit===1||lt(this,ef)[ef]==null){const a=t.next();if(a==null||a.done)return!1;lt(this,ef)[ef]=a.value}i.rateLimit(0),await new Promise(a=>setTimeout(a,lt(this,ef)[ef]))}}else if(r===429){if(!i.isPaused){const a=t.next();if(a==null||a.done)return!1;i.rateLimit(a.value)}}else{if(r>400&&r<500&&r!==409)return!1;if(typeof navigator<"u"&&navigator.onLine===!1)i.isPaused||(i.pause(),window.addEventListener("online",()=>{i.resume()},{once:!0}));else{const a=t.next();if(a==null||a.done)return!1;await new Promise(o=>setTimeout(o,a.value))}}return!0}async function WIe(e,t,n){const{method:i="POST",url:r,fields:a,headers:o}=await lt(this,Og)[Og](lt(this,ca)[ca](e),{signal:n}).abortOn(n);let s;const l=t.getData();if(i.toUpperCase()==="POST"){const f=new FormData;Object.entries(a).forEach(h=>{let[m,g]=h;return f.set(m,g)}),f.set("file",l),s=f}else s=l;const{onProgress:u,onComplete:c}=t,d=await lt(this,hf)[hf]({signature:{url:r,headers:o,method:i},body:s,size:l.size,onProgress:u,onComplete:c,signal:n}).abortOn(n);return"location"in d?d:{location:HIe(r),...d}}var pf=oi("companionCommunicationQueue"),Qi=oi("client"),ua=oi("cachedTemporaryCredentials"),BS=oi("getTemporarySecurityCredentials"),zS=oi("setS3MultipartState"),Ef=oi("getFile"),jS=oi("uploadLocalFile"),US=oi("getCompanionClientArgs"),Iv=oi("upload"),Ud=oi("setCompanionHeaders"),Pu=oi("setResumableUploadsCapability"),Nv=oi("resetResumableCapability");eq=Symbol.for("uppy test: getClient");class Zw extends Xk{constructor(t,n){var i;super(t,n),Object.defineProperty(this,US,{value:ZIe}),Object.defineProperty(this,jS,{value:KIe}),Object.defineProperty(this,BS,{value:GIe}),Object.defineProperty(this,pf,{writable:!0,value:void 0}),Object.defineProperty(this,Qi,{writable:!0,value:void 0}),Object.defineProperty(this,ua,{writable:!0,value:void 0}),Object.defineProperty(this,zS,{writable:!0,value:(a,o)=>{let{key:s,uploadId:l}=o;const u=this.uppy.getFile(a.id);u!=null&&this.uppy.setFileState(a.id,{s3Multipart:{...u.s3Multipart,key:s,uploadId:l}})}}),Object.defineProperty(this,Ef,{writable:!0,value:a=>this.uppy.getFile(a.id)||a}),Object.defineProperty(this,Iv,{writable:!0,value:async a=>{if(a.length===0)return;const o=this.uppy.getFilesByIds(a),s=XH(o),l=JH(s);this.uppy.emit("upload-start",l);const u=s.map(d=>{if(d.isRemote){const f=()=>this.requests;lt(this,Pu)[Pu](!1);const h=new AbortController,m=v=>{v.id===d.id&&h.abort()};this.uppy.on("file-removed",m);const g=this.uppy.getRequestClientForFile(d).uploadRemoteFile(d,lt(this,US)[US](d),{signal:h.signal,getQueue:f});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",m)},{priority:-1})(),g}return lt(this,jS)[jS](d)}),c=await Promise.all(u);return lt(this,Pu)[Pu](!0),c}}),Object.defineProperty(this,Ud,{writable:!0,value:()=>{lt(this,Qi)[Qi].setCompanionHeaders(this.opts.companionHeaders)}}),Object.defineProperty(this,Pu,{writable:!0,value:a=>{const{capabilities:o}=this.uppy.getState();this.uppy.setState({capabilities:{...o,resumableUploads:a}})}}),Object.defineProperty(this,Nv,{writable:!0,value:()=>{lt(this,Pu)[Pu](!0)}}),this.type="uploader",this.id=this.opts.id||"AwsS3Multipart",this.title="AWS S3 Multipart",lt(this,Qi)[Qi]=new Jk(t,n);const r={allowedMetaFields:null,limit:6,shouldUseMultipart:a=>a.size!==0,retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:this.createMultipartUpload.bind(this),listParts:this.listParts.bind(this),abortMultipartUpload:this.abortMultipartUpload.bind(this),completeMultipartUpload:this.completeMultipartUpload.bind(this),getTemporarySecurityCredentials:!1,signPart:n!=null&&n.getTemporarySecurityCredentials?this.createSignedURL.bind(this):this.signPart.bind(this),uploadPartBytes:Zw.uploadPartBytes,getUploadParameters:n!=null&&n.getTemporarySecurityCredentials?this.createSignedURL.bind(this):this.getUploadParameters.bind(this),companionHeaders:{}};this.opts={...r,...n},(n==null?void 0:n.prepareUploadParts)!=null&&n.signPart==null&&(this.opts.signPart=async(a,o)=>{let{uploadId:s,key:l,partNumber:u,body:c,signal:d}=o;const{presignedUrls:f,headers:h}=await n.prepareUploadParts(a,{uploadId:s,key:l,parts:[{number:u,chunk:c}],signal:d});return{url:f==null?void 0:f[u],headers:h==null?void 0:h[u]}}),this.requests=(i=this.opts.rateLimitedQueue)!=null?i:new KH(this.opts.limit),lt(this,pf)[pf]=new qIe(this.requests,this.opts,lt(this,zS)[zS],lt(this,Ef)[Ef]),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.uploaderSockets=Object.create(null)}[eq](){return lt(this,Qi)[Qi]}setOptions(t){lt(this,pf)[pf].setOptions(t),super.setOptions(t),lt(this,Ud)[Ud]()}resetUploaderReferences(t,n){n===void 0&&(n={}),this.uploaders[t]&&(this.uploaders[t].abort({really:n.abort||!1}),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null),this.uploaderSockets[t]&&(this.uploaderSockets[t].close(),this.uploaderSockets[t]=null)}assertHost(t){if(!this.opts.companionUrl)throw new Error(`Expected a \`companionUrl\` option containing a Companion address, or if you are not using Companion, a custom \`${t}\` implementation.`)}createMultipartUpload(t,n){this.assertHost("createMultipartUpload"),xa(n);const i=JO({meta:t.meta,allowedMetaFields:this.opts.allowedMetaFields});return lt(this,Qi)[Qi].post("s3/multipart",{filename:t.name,type:t.type,metadata:i},{signal:n}).then(tp)}listParts(t,n,i){let{key:r,uploadId:a}=n;this.assertHost("listParts"),xa(i);const o=encodeURIComponent(r);return lt(this,Qi)[Qi].get(`s3/multipart/${a}?key=${o}`,{signal:i}).then(tp)}completeMultipartUpload(t,n,i){let{key:r,uploadId:a,parts:o}=n;this.assertHost("completeMultipartUpload"),xa(i);const s=encodeURIComponent(r),l=encodeURIComponent(a);return lt(this,Qi)[Qi].post(`s3/multipart/${l}/complete?key=${s}`,{parts:o},{signal:i}).then(tp)}async createSignedURL(t,n){const i=await lt(this,BS)[BS](n),r=tq(i.credentials)||604800,{uploadId:a,key:o,partNumber:s,signal:l}=n;return{method:"PUT",expires:r,fields:{},url:`${await zIe({accountKey:i.credentials.AccessKeyId,accountSecret:i.credentials.SecretAccessKey,sessionToken:i.credentials.SessionToken,expires:r,bucketName:i.bucket,Region:i.region,Key:o??`${crypto.randomUUID()}-${t.name}`,uploadId:a,partNumber:s,signal:l})}`,headers:{"Content-Type":t.type}}}signPart(t,n){let{uploadId:i,key:r,partNumber:a,signal:o}=n;if(this.assertHost("signPart"),xa(o),i==null||r==null||a==null)throw new Error("Cannot sign without a key, an uploadId, and a partNumber");const s=encodeURIComponent(r);return lt(this,Qi)[Qi].get(`s3/multipart/${i}/${a}?key=${s}`,{signal:o}).then(tp)}abortMultipartUpload(t,n,i){let{key:r,uploadId:a}=n;this.assertHost("abortMultipartUpload");const o=encodeURIComponent(r),s=encodeURIComponent(a);return lt(this,Qi)[Qi].delete(`s3/multipart/${s}?key=${o}`,void 0,{signal:i}).then(tp)}getUploadParameters(t,n){const{meta:i}=t,{type:r,name:a}=i,o=JO({meta:i,allowedMetaFields:this.opts.allowedMetaFields,querify:!0}),s=new URLSearchParams({filename:a,type:r,...o});return lt(this,Qi)[Qi].get(`s3/params?${s}`,n)}static async uploadPartBytes(t){let{signature:{url:n,expires:i,headers:r,method:a="PUT"},body:o,size:s=o.size,onProgress:l,onComplete:u,signal:c}=t;if(xa(c),n==null)throw new Error("Cannot upload to an undefined URL");return new Promise((d,f)=>{const h=new XMLHttpRequest;h.open(a,n,!0),r&&Object.keys(r).forEach(v=>{h.setRequestHeader(v,r[v])}),h.responseType="text",typeof i=="number"&&(h.timeout=i*1e3);function m(){h.abort()}function g(){c.removeEventListener("abort",m)}c.addEventListener("abort",m),h.upload.addEventListener("progress",v=>{l(v)}),h.addEventListener("abort",()=>{g(),f(QH())}),h.addEventListener("timeout",()=>{g();const v=new Error("Request has expired");v.source={status:403},f(v)}),h.addEventListener("load",v=>{if(g(),v.target.status===403&&v.target.responseText.includes("<Message>Request has expired</Message>")){const S=new Error("Request has expired");S.source=v.target,f(S);return}if(v.target.status<200||v.target.status>=300){const S=new Error("Non 2xx");S.source=v.target,f(S);return}l==null||l({loaded:s,lengthComputable:!0});const y=v.target.getResponseHeader("ETag"),_=v.target.getResponseHeader("Location");if(a.toUpperCase()==="POST"&&_===null&&console.warn("AwsS3/Multipart: Could not read the Location header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."),y===null){f(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."));return}u==null||u(y),d({ETag:y,..._?{location:_}:void 0})}),h.addEventListener("error",v=>{g();const y=new Error("Unknown error");y.source=v.target,f(y)}),h.send(o)})}install(){lt(this,Pu)[Pu](!0),this.uppy.addPreProcessor(lt(this,Ud)[Ud]),this.uppy.addUploader(lt(this,Iv)[Iv]),this.uppy.on("cancel-all",lt(this,Nv)[Nv])}uninstall(){this.uppy.removePreProcessor(lt(this,Ud)[Ud]),this.uppy.removeUploader(lt(this,Iv)[Iv]),this.uppy.off("cancel-all",lt(this,Nv)[Nv])}}async function GIe(e){return xa(e==null?void 0:e.signal),lt(this,ua)[ua]==null&&(this.opts.getTemporarySecurityCredentials===!0?(this.assertHost("getTemporarySecurityCredentials"),lt(this,ua)[ua]=lt(this,Qi)[Qi].get("s3/sts",null,e).then(tp)):lt(this,ua)[ua]=this.opts.getTemporarySecurityCredentials(e),lt(this,ua)[ua]=await lt(this,ua)[ua],setTimeout(()=>{lt(this,ua)[ua]=null},(tq(lt(this,ua)[ua].credentials)||0)*500)),lt(this,ua)[ua]}function KIe(e){var t=this;return new Promise((n,i)=>{const r=(c,d)=>{this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:c,bytesTotal:d})},a=c=>{this.uppy.log(c),this.uppy.emit("upload-error",e,c),this.resetUploaderReferences(e.id),i(c)},o=c=>{const d={body:{...c},uploadURL:c.location};this.resetUploaderReferences(e.id),this.uppy.emit("upload-success",lt(this,Ef)[Ef](e),d),c.location&&this.uppy.log(`Download ${e.name} from ${c.location}`),n()},s=c=>{this.uppy.emit("s3-multipart:part-uploaded",lt(this,Ef)[Ef](e),c)},l=new IIe(e.data,{companionComm:lt(this,pf)[pf],log:function(){return t.uppy.log(...arguments)},getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onProgress:r,onError:a,onSuccess:o,onPartComplete:s,file:e,shouldUseMultipart:this.opts.shouldUseMultipart,...e.s3Multipart});this.uploaders[e.id]=l;const u=new GH(this.uppy);this.uploaderEvents[e.id]=u,u.onFileRemove(e.id,c=>{l.abort(),this.resetUploaderReferences(e.id,{abort:!0}),n(`upload ${c.id} was removed`)}),u.onCancelAll(e.id,function(c){let{reason:d}=c===void 0?{}:c;d==="user"&&(l.abort(),t.resetUploaderReferences(e.id,{abort:!0})),n(`upload ${e.id} was canceled`)}),u.onFilePause(e.id,c=>{c?l.pause():l.start()}),u.onPauseAll(e.id,()=>{l.pause()}),u.onResumeAll(e.id,()=>{l.start()}),l.start()})}function ZIe(e){return{...e.remote.body,protocol:"s3-multipart",size:e.data.size,metadata:e.meta}}Zw.VERSION=UIe.version;function ns(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var XIe=0;function Xw(e){return"__private_"+XIe+++"_"+e}var $u=Xw("aliveTimer"),Hd=Xw("isDone"),Mv=Xw("onTimedOut"),qd=Xw("timeout");class JIe{constructor(t,n){Object.defineProperty(this,$u,{writable:!0,value:void 0}),Object.defineProperty(this,Hd,{writable:!0,value:!1}),Object.defineProperty(this,Mv,{writable:!0,value:void 0}),Object.defineProperty(this,qd,{writable:!0,value:void 0}),ns(this,qd)[qd]=t,ns(this,Mv)[Mv]=()=>n(t)}progress(){ns(this,Hd)[Hd]||ns(this,qd)[qd]>0&&(clearTimeout(ns(this,$u)[$u]),ns(this,$u)[$u]=setTimeout(ns(this,Mv)[Mv],ns(this,qd)[qd]))}done(){ns(this,Hd)[Hd]||(clearTimeout(ns(this,$u)[$u]),ns(this,$u)[$u]=void 0,ns(this,Hd)[Hd]=!0)}}function QIe(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function QO(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var eNe=0;function nq(e){return"__private_"+eNe+++"_"+e}function eD(e,t){if(QIe(e))return new jH(t,e);const n=new HH("Upload error",{cause:t});return n.request=e,n}function tNe(e){return e.data.slice(0,e.data.size,e.meta.type)}function nNe(e,t,n){(Array.isArray(n.allowedMetaFields)?n.allowedMetaFields:Object.keys(t)).forEach(r=>{e.append(r,t[r])})}function iNe(e,t){const n=new FormData;nNe(n,e.meta,t);const i=tNe(e);return e.name?n.append(t.fieldName,i,e.meta.name):n.append(t.fieldName,i),n}const rNe=e=>e.data;var HS=nq("addEventHandlerForFile"),qS=nq("addEventHandlerIfFileStillExists");class aNe{constructor(t,n){Object.defineProperty(this,qS,{value:sNe}),Object.defineProperty(this,HS,{value:oNe}),this.uppy=t,this.opts={validateStatus(i){return i>=200&&i<300},...n},this.requests=n[ZH],this.uploaderEvents=Object.create(null),this.i18n=n.i18n}getOptions(t){var n;const{uppy:i}=this,r=i.getState().xhrUpload;return{...this.opts,...r||{},...t.xhrUpload||{},headers:{...this.opts.headers,...r==null?void 0:r.headers,...(n=t.xhrUpload)==null?void 0:n.headers}}}uploadLocalFile(t){const n=this.getOptions(t);return new Promise((i,r)=>{const a=n.formData?iNe(t,n):rNe(t),o=new XMLHttpRequest;this.uploaderEvents[t.id]=new GH(this.uppy);const s=new JIe(n.timeout,()=>{o.abort(),u.done();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,c),r(c)}),l=Gw();o.upload.addEventListener("loadstart",()=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} started`)}),o.upload.addEventListener("progress",c=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} progress: ${c.loaded} / ${c.total}`),s.progress(),c.lengthComputable&&this.uppy.emit("upload-progress",this.uppy.getFile(t.id),{uploader:this,bytesUploaded:c.loaded,bytesTotal:c.total})}),o.addEventListener("load",c=>{if(this.uppy.log(`[AwsS3/XHRUpload] ${l} finished`),s.done(),u.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n.validateStatus(c.target.status,o.responseText,o)){const m=n.getResponseData(o.responseText,o),g=m[n.responseUrlFieldName],v={status:c.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",this.uppy.getFile(t.id),v),g&&this.uppy.log(`Download ${t.name} from ${g}`),i(t)}const d=n.getResponseData(o.responseText,o),f=eD(o,n.getResponseError(o.responseText,o)),h={status:c.target.status,body:d};return this.uppy.emit("upload-error",t,f,h),r(f)}),o.addEventListener("error",()=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} errored`),s.done(),u.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const c=eD(o,n.getResponseError(o.responseText,o));return this.uppy.emit("upload-error",t,c),r(c)}),o.open(n.method.toUpperCase(),n.endpoint,!0),o.withCredentials=!!n.withCredentials,n.responseType!==""&&(o.responseType=n.responseType),Object.keys(n.headers).forEach(c=>{o.setRequestHeader(c,n.headers[c])});const u=this.requests.run(()=>(o.send(a),()=>{s.done(),o.abort()}),{priority:1});QO(this,HS)[HS]("file-removed",t.id,()=>{u.abort(),r(new Error("File removed"))}),QO(this,qS)[qS]("cancel-all",t.id,function(c){let{reason:d}=c===void 0?{}:c;d==="user"&&u.abort(),r(new Error("Upload cancelled"))})})}}function oNe(e,t,n){this.uploaderEvents[t].on(e,i=>{var r;const a=(r=i==null?void 0:i.id)!=null?r:i;t===a&&n()})}function sNe(e,t,n){var i=this;this.uploaderEvents[t].on(e,function(){i.uppy.getFile(t)&&n(...arguments)})}function lNe(e){return e.replace(/;.*$/,"")}function iq(e,t){const n=t.headers?t.headers["content-type"]:t.getResponseHeader("Content-Type");if(typeof n=="string"){const i=lNe(n).toLowerCase();if(i==="application/xml"||i==="text/xml"||i==="text/html"&&/^<\?xml /.test(e))return!0}return!1}const uNe={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};let rq;function Tr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cNe=0;function Ym(e){return"__private_"+cNe+++"_"+e}const dNe={version:"3.6.2"};function fNe(e,t){return!e&&!t.startsWith("https://")&&!t.startsWith("http://")&&(t=`https://${t}`),new URL(t,e||void 0).toString()}function ng(e,t){const n=e.indexOf(`<${t}>`),i=e.indexOf(`</${t}>`,n);return n!==-1&&i!==-1?e.slice(n+t.length+2,i):""}function hNe(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}function pNe(e,t){if(!(t!=null&&typeof t.url=="string"&&(typeof t.fields=="object"||t.fields==null)))throw new TypeError(`AwsS3: got incorrect result from 'getUploadParameters()' for file '${e.name}', expected an object '{ url, method, fields, headers }' but got '${JSON.stringify(t)}' instead. See https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`);if(!(t.method==null||/^p(u|os)t$/i.test(t.method)))throw new TypeError(`AwsS3: got incorrect method from 'getUploadParameters()' for file '${e.name}', expected 'PUT' or 'POST' but got '${t.method}' instead. See https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`)}function mNe(e,t){if(!iq(e,t))return;const n=ng(e,"Message");return new Error(n)}let tD=!1;var xo=Ym("client"),Fs=Ym("requests"),Yd=Ym("uploader"),Lv=Ym("handleUpload"),Rv=Ym("setCompanionHeaders"),YS=Ym("getCompanionClientArgs");rq=Symbol.for("uppy test: getClient");class Jw extends Xk{constructor(t,n){if((n==null?void 0:n.shouldUseMultipart)!=null)return new Zw(t,n);super(t,n),Object.defineProperty(this,xo,{writable:!0,value:void 0}),Object.defineProperty(this,Fs,{writable:!0,value:void 0}),Object.defineProperty(this,Yd,{writable:!0,value:void 0}),Object.defineProperty(this,Lv,{writable:!0,value:async r=>{const a=Object.create(null);function o(f){var h;const{id:m}=f;(h=a[m])==null||h.abort()}this.uppy.on("file-removed",o);const s=this.uppy.getFilesByIds(r),l=XH(s),u=JH(l);this.uppy.emit("upload-start",u);const c=Tr(this,Fs)[Fs].wrapPromiseFunction(f=>this.opts.getUploadParameters(f)),d=r.length;return Promise.allSettled(r.map((f,h)=>(a[f]=c(this.uppy.getFile(f)),a[f].then(m=>{delete a[f];const g=this.uppy.getFile(f);pNe(g,m);const{method:v="POST",url:y,fields:_,headers:S}=m,w={method:v,formData:v.toUpperCase()==="POST",endpoint:y,allowedMetaFields:_?Object.keys(_):[]};return S&&(w.headers=S),this.uppy.setFileState(g.id,{meta:{...g.meta,..._},xhrUpload:w}),this.uploadFile(g.id,h,d)}).catch(m=>{delete a[f];const g=this.uppy.getFile(f);return this.uppy.emit("upload-error",g,m),Promise.reject(m)})))).finally(()=>{this.uppy.off("file-removed",o)})}}),Object.defineProperty(this,Rv,{writable:!0,value:()=>(Tr(this,xo)[xo].setCompanionHeaders(this.opts.companionHeaders),Promise.resolve())}),Object.defineProperty(this,YS,{writable:!0,value:r=>{const a=Tr(this,Yd)[Yd].getOptions(r),o=Array.isArray(a.allowedMetaFields)?a.allowedMetaFields:Object.keys(r.meta);return{...r.remote.body,protocol:"multipart",endpoint:a.endpoint,size:r.data.size,fieldname:a.fieldName,metadata:Object.fromEntries(o.map(s=>[s,r.meta[s]])),httpMethod:a.method,useFormData:a.formData,headers:typeof a.headers=="function"?a.headers(r):a.headers}}}),this.type="uploader",this.id=this.opts.id||"AwsS3",this.title="AWS S3",this.defaultLocale=uNe;const i={timeout:30*1e3,limit:0,allowedMetaFields:[],getUploadParameters:this.getUploadParameters.bind(this),shouldUseMultipart:!1,companionHeaders:{}};if(this.opts={...i,...n},(n==null?void 0:n.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");this.i18nInit(),Tr(this,xo)[xo]=new Jk(t,n),Tr(this,Fs)[Fs]=new KH(this.opts.limit)}[rq](){return Tr(this,xo)[xo]}get client(){return Tr(this,xo)[xo]}set client(t){Tr(this,xo)[xo]=t}getUploadParameters(t){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");const n=t.meta.name,{type:i}=t.meta,r=Object.fromEntries(this.opts.allowedMetaFields.filter(o=>t.meta[o]!=null).map(o=>[`metadata[${o}]`,t.meta[o].toString()])),a=new URLSearchParams({filename:n,type:i,...r});return Tr(this,xo)[xo].get(`s3/params?${a}`).then(hNe)}uploadFile(t,n,i){const r=this.uppy.getFile(t);if(this.uppy.log(`uploading ${n} of ${i}`),r.error)throw new Error(r.error);if(r.isRemote){const a=()=>Tr(this,Fs)[Fs],o=new AbortController,s=u=>{u.id===r.id&&o.abort()};this.uppy.on("file-removed",s);const l=this.uppy.getRequestClientForFile(r).uploadRemoteFile(r,Tr(this,YS)[YS](r),{signal:o.signal,getQueue:a});return Tr(this,Fs)[Fs].wrapSyncFunction(()=>{this.uppy.off("file-removed",s)},{priority:-1})(),l}return Tr(this,Yd)[Yd].uploadLocalFile(r,n,i)}install(){const{uppy:t}=this;t.addPreProcessor(Tr(this,Rv)[Rv]),t.addUploader(Tr(this,Lv)[Lv]);function n(r,a){const o=this;return iq(r,a)?{location:fNe(a.responseURL,ng(r,"Location")),bucket:ng(r,"Bucket"),key:ng(r,"Key"),etag:ng(r,"ETag")}:o.method.toUpperCase()==="POST"?(tD||(t.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),tD=!0),{location:null}):a.responseURL?{location:a.responseURL.replace(/\?.*$/,"")}:{location:null}}const i={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout,[ZH]:Tr(this,Fs)[Fs],responseType:"text",getResponseData:this.opts.getResponseData||n,getResponseError:mNe};i.i18n=this.i18n,Tr(this,Yd)[Yd]=new aNe(t,i)}uninstall(){this.uppy.removePreProcessor(Tr(this,Rv)[Rv]),this.uppy.removeUploader(Tr(this,Lv)[Lv])}}Jw.VERSION=dNe.version;function nD(e,t,n,i){return n===0||e===t?e:i===0?t:e+(t-e)*2**(-i/n)}const $l={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"};var aq={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=r(a,i(s)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=r(o,s));return o}function r(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(aq);var vNe=aq.exports;const ll=Ei(vNe);function WS(e){const t=[];let n="indeterminate",i;for(const{progress:a}of Object.values(e)){const{preprocess:o,postprocess:s}=a;i==null&&(o||s)&&({mode:n,message:i}=o||s),(o==null?void 0:o.mode)==="determinate"&&t.push(o.value),(s==null?void 0:s.mode)==="determinate"&&t.push(s.value)}const r=t.reduce((a,o)=>a+o/t.length,0);return{mode:n,message:i,value:r}}function gNe(e){const t=Math.floor(e/3600)%24,n=Math.floor(e/60)%60,i=Math.floor(e%60);return{hours:t,minutes:n,seconds:i}}function yNe(e){const t=gNe(e),n=t.hours===0?"":`${t.hours}h`,i=t.minutes===0?"":`${t.hours===0?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`,r=t.hours!==0?"":`${t.minutes===0?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`;return`${n}${i}${r}`}const _Ne="·",iD=()=>` ${_Ne} `;function bNe(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:a,isSomeGhost:o,startUpload:s}=e,l=ll("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":a===$l.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":o}),u=t&&n&&!i?r("uploadXNewFiles",{smart_count:t}):r("uploadXFiles",{smart_count:t});return ce("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:s,disabled:o,"data-uppy-super-focusable":!0},u)}function wNe(e){const{i18n:t,uppy:n}=e;return ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll().catch(()=>{}),"data-uppy-super-focusable":!0,"data-cy":"retry"},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},ce("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))}function SNe(e){const{i18n:t,uppy:n}=e;return ce("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},ce("g",{fill:"none",fillRule:"evenodd"},ce("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),ce("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))}function CNe(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:a}=e,o=n(t?"resume":"pause");function s(){if(!i){if(!r){a.cancelAll();return}if(t){a.resumeAll();return}a.pauseAll()}}return ce("button",{title:o,"aria-label":o,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:s,"data-cy":"togglePauseResume","data-uppy-super-focusable":!0},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},ce("g",{fill:"none",fillRule:"evenodd"},ce("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),ce("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))}function ENe(e){const{i18n:t,doneButtonHandler:n}=e;return ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))}function oq(){return ce("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},ce("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function xNe(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,a="·";return ce("div",{className:"uppy-StatusBar-content"},ce(oq,null),i==="determinate"?`${Math.round(n*100)}% ${a} `:"",r)}function kNe(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:a,i18n:o}=e,s=t>1;return ce("div",{className:"uppy-StatusBar-statusSecondary"},s&&o("filesUploadedOfTotal",{complete:n,smart_count:t}),ce("span",{className:"uppy-StatusBar-additionalInfo"},s&&iD(),o("dataUploadedOfTotal",{complete:Sf(i),total:Sf(r)}),iD(),o("xTimeLeft",{time:yNe(a)})))}function sq(e){const{i18n:t,complete:n,numUploads:i}=e;return ce("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function TNe(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=ll("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return ce("div",{className:"uppy-StatusBar-statusSecondary"},ce("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),ce("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}function PNe(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:a,isAllComplete:o,isAllPaused:s,newFiles:l,numUploads:u,complete:c,totalUploadedSize:d,totalSize:f,totalETA:h,startUpload:m}=e,g=l&&a;if(!a||o)return null;const v=t(s?"paused":"uploading");function y(){return!s&&!g&&r?n?ce(kNe,{numUploads:u,complete:c,totalUploadedSize:d,totalSize:f,totalETA:h,i18n:t}):ce(sq,{i18n:t,complete:c,numUploads:u}):null}return ce("div",{className:"uppy-StatusBar-content","aria-label":v,title:v},s?null:ce(oq,null),ce("div",{className:"uppy-StatusBar-status"},ce("div",{className:"uppy-StatusBar-statusPrimary"},n?`${v}: ${i}%`:v),y(),g?ce(TNe,{i18n:t,newFiles:l,startUpload:m}):null))}function $Ne(e){const{i18n:t}=e;return ce("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},ce("div",{className:"uppy-StatusBar-status"},ce("div",{className:"uppy-StatusBar-statusPrimary"},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},ce("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))}function ANe(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;function a(){const o=`${n("uploadFailed")} ${t}`;alert(o)}return ce("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},ce("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),ce("div",{className:"uppy-StatusBar-status"},ce("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),ce("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:a,type:"button"},"?")),ce(sq,{i18n:n,complete:i,numUploads:r})))}const{STATE_ERROR:rD,STATE_WAITING:aD,STATE_PREPROCESSING:GS,STATE_UPLOADING:$0,STATE_POSTPROCESSING:KS,STATE_COMPLETE:A0}=$l;function lq(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:a,error:o,hideUploadButton:s,hidePauseResumeButton:l,hideCancelButton:u,hideRetryButton:c,recoveredState:d,uploadState:f,totalProgress:h,files:m,supportsUploadProgress:g,hideAfterFinish:v,isSomeGhost:y,doneButtonHandler:_,isUploadStarted:S,i18n:w,startUpload:x,uppy:k,isAllComplete:P,showProgressDetails:E,numUploads:A,complete:D,totalSize:T,totalETA:O,totalUploadedSize:N}=e;function V(){switch(f){case KS:case GS:{const ee=WS(m);return ee.mode==="determinate"?ee.value*100:h}case rD:return null;case $0:return g?h:null;default:return h}}function j(){switch(f){case KS:case GS:{const{mode:ee}=WS(m);return ee==="indeterminate"}case $0:return!g;default:return!1}}function q(){if(d)return!1;switch(f){case aD:return s||t===0;case A0:return v;default:return!1}}const ne=V(),ae=q(),Y=ne??100,M=!o&&t&&!i&&!r&&n&&!s,I=!u&&f!==aD&&f!==A0,W=a&&!l&&f===$0,te=o&&!P&&!c,he=_&&f===A0,oe=ll("uppy-StatusBar-progress",{"is-indeterminate":j()}),U=ll("uppy-StatusBar",`is-${f}`,{"has-ghosts":y});return ce("div",{className:U,"aria-hidden":ae},ce("div",{className:oe,style:{width:`${Y}%`},role:"progressbar","aria-label":`${Y}%`,"aria-valuetext":`${Y}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ne}),(()=>{switch(f){case GS:case KS:return ce(xNe,{progress:WS(m)});case A0:return ce($Ne,{i18n:w});case rD:return ce(ANe,{error:o,i18n:w,numUploads:A,complete:D});case $0:return ce(PNe,{i18n:w,supportsUploadProgress:g,totalProgress:h,showProgressDetails:E,isUploadStarted:S,isAllComplete:P,isAllPaused:r,newFiles:t,numUploads:A,complete:D,totalUploadedSize:N,totalSize:T,totalETA:O,startUpload:x});default:return null}})(),ce("div",{className:"uppy-StatusBar-actions"},d||M?ce(bNe,{newFiles:t,isUploadStarted:S,recoveredState:d,i18n:w,isSomeGhost:y,startUpload:x,uploadState:f}):null,te?ce(wNe,{i18n:w,uppy:k}):null,W?ce(CNe,{isAllPaused:r,i18n:w,isAllComplete:P,resumableUploads:a,uppy:k}):null,I?ce(SNe,{i18n:w,uppy:k}):null,he?ce(ENe,{i18n:w,doneButtonHandler:_}):null))}lq.defaultProps={doneButtonHandler:void 0,hideAfterFinish:!1,hideCancelButton:!1,hidePauseResumeButton:!1,hideRetryButton:!1,hideUploadButton:void 0,showProgressDetails:void 0};const ONe={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Oi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DNe=0;function Wm(e){return"__private_"+DNe+++"_"+e}const INe={version:"3.3.3"},NNe=2e3,MNe=2e3;function LNe(e,t,n,i){if(e)return $l.STATE_ERROR;if(t)return $l.STATE_COMPLETE;if(n)return $l.STATE_WAITING;let r=$l.STATE_WAITING;const a=Object.keys(i);for(let o=0;o<a.length;o++){const{progress:s}=i[a[o]];if(s.uploadStarted&&!s.uploadComplete)return $l.STATE_UPLOADING;s.preprocess&&(r=$l.STATE_PREPROCESSING),s.postprocess&&r!==$l.STATE_PREPROCESSING&&(r=$l.STATE_POSTPROCESSING)}return r}const RNe={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};var ls=Wm("lastUpdateTime"),Us=Wm("previousUploadedBytes"),Vu=Wm("previousSpeed"),To=Wm("previousETA"),ZS=Wm("computeSmoothETA"),Fv=Wm("onUploadStart");class uq extends qm{constructor(t,n){super(t,{...RNe,...n}),Object.defineProperty(this,ZS,{value:FNe}),Object.defineProperty(this,ls,{writable:!0,value:void 0}),Object.defineProperty(this,Us,{writable:!0,value:void 0}),Object.defineProperty(this,Vu,{writable:!0,value:void 0}),Object.defineProperty(this,To,{writable:!0,value:void 0}),this.startUpload=()=>this.uppy.upload().catch(()=>{}),Object.defineProperty(this,Fv,{writable:!0,value:()=>{const{recoveredState:i}=this.uppy.getState();if(Oi(this,Vu)[Vu]=null,Oi(this,To)[To]=null,i){Oi(this,Us)[Us]=Object.values(i.files).reduce((r,a)=>{let{progress:o}=a;return r+o.bytesUploaded},0),this.uppy.emit("restore-confirmed");return}Oi(this,ls)[ls]=performance.now(),Oi(this,Us)[Us]=0}}),this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=ONe,this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(t){const{capabilities:n,files:i,allowNewUpload:r,totalProgress:a,error:o,recoveredState:s}=t,{newFiles:l,startedFiles:u,completeFiles:c,isUploadStarted:d,isAllComplete:f,isAllErrored:h,isAllPaused:m,isUploadInProgress:g,isSomeGhost:v}=this.uppy.getObjectOfFilesPerState(),y=s?Object.values(i):l,_=!!n.resumableUploads,S=n.uploadProgress!==!1;let w=0,x=0;u.forEach(P=>{w+=P.progress.bytesTotal||0,x+=P.progress.bytesUploaded||0});const k=Oi(this,ZS)[ZS]({uploaded:x,total:w,remaining:w-x});return lq({error:o,uploadState:LNe(o,f,s,t.files||{}),allowNewUpload:r,totalProgress:a,totalSize:w,totalUploadedSize:x,isAllComplete:!1,isAllPaused:m,isAllErrored:h,isUploadStarted:d,isUploadInProgress:g,isSomeGhost:v,recoveredState:s,complete:c.length,newFiles:y.length,numUploads:u.length,totalETA:k,files:i,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:_,supportsUploadProgress:S,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const t=this.el;VH(t)||(t.dir="ltr")}install(){const{target:t}=this.opts;t&&this.mount(t,this),this.uppy.on("upload",Oi(this,Fv)[Fv]),Oi(this,ls)[ls]=performance.now(),Oi(this,Us)[Us]=this.uppy.getFiles().reduce((n,i)=>n+i.progress.bytesUploaded,0)}uninstall(){this.unmount(),this.uppy.off("upload",Oi(this,Fv)[Fv])}}function FNe(e){var t,n;if(e.total===0||e.remaining===0)return 0;(n=(t=Oi(this,ls))[ls])!=null||(t[ls]=performance.now());const i=performance.now()-Oi(this,ls)[ls];if(i===0){var r;return Math.round(((r=Oi(this,To)[To])!=null?r:0)/100)/10}const a=e.uploaded-Oi(this,Us)[Us];if(Oi(this,Us)[Us]=e.uploaded,a<=0){var o;return Math.round(((o=Oi(this,To)[To])!=null?o:0)/100)/10}const s=a/i,l=Oi(this,Vu)[Vu]==null?s:nD(s,Oi(this,Vu)[Vu],NNe,i);Oi(this,Vu)[Vu]=l;const u=e.remaining/l,c=Math.max(Oi(this,To)[To]-i,0),d=Oi(this,To)[To]==null?u:nD(u,c,MNe,i);return Oi(this,To)[To]=d,Oi(this,ls)[ls]=performance.now(),Math.round(d/100)/10}uq.VERSION=INe.version;const oD=300;class VNe extends ms{constructor(){super(...arguments),this.ref=ebe()}componentWillEnter(t){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(t,oD)}componentWillLeave(t){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(t,oD)}render(){const{children:t}=this.props;return ce("div",{className:"uppy-Informer-animated",ref:this.ref},t)}}function BNe(e,t){return Object.assign(e,t)}function zNe(e,t){var n;return(n=e==null?void 0:e.key)!=null?n:t}function jNe(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=i=>{e.refs[t]=i})}function Vv(e){const t={};for(let n=0;n<e.length;n++)if(e[n]!=null){const i=zNe(e[n],n.toString(36));t[i]=e[n]}return t}function UNe(e,t){e=e||{},t=t||{};const n=o=>t.hasOwnProperty(o)?t[o]:e[o],i={};let r=[];for(const o in e)t.hasOwnProperty(o)?r.length&&(i[o]=r,r=[]):r.push(o);const a={};for(const o in t){if(i.hasOwnProperty(o))for(let s=0;s<i[o].length;s++){const l=i[o][s];a[i[o][s]]=n(l)}a[o]=n(o)}for(let o=0;o<r.length;o++)a[r[o]]=n(r[o]);return a}const HNe=e=>e;class cq extends ms{constructor(t,n){super(t,n),this.refs={},this.state={children:Vv(Rc(Rc(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const t=this.state.children;for(const n in t)t[n]&&this.performAppear(n)}componentWillReceiveProps(t){const n=Vv(Rc(t.children)||[]),i=this.state.children;this.setState(a=>({children:UNe(a.children,n)}));let r;for(r in n)if(n.hasOwnProperty(r)){const a=i&&i.hasOwnProperty(r);n[r]&&a&&this.currentlyTransitioningKeys[r]?(this.keysToEnter.push(r),this.keysToAbortLeave.push(r)):n[r]&&!a&&!this.currentlyTransitioningKeys[r]&&this.keysToEnter.push(r)}for(r in i)if(i.hasOwnProperty(r)){const a=n&&n.hasOwnProperty(r);i[r]&&!a&&!this.currentlyTransitioningKeys[r]&&this.keysToLeave.push(r)}}componentDidUpdate(){const{keysToEnter:t}=this;this.keysToEnter=[],t.forEach(this.performEnter);const{keysToLeave:n}=this;this.keysToLeave=[],n.forEach(this.performLeave)}_finishAbort(t){const n=this.keysToAbortLeave.indexOf(t);n!==-1&&this.keysToAbortLeave.splice(n,1)}performAppear(t){this.currentlyTransitioningKeys[t]=!0;const n=this.refs[t];n!=null&&n.componentWillAppear?n.componentWillAppear(this._handleDoneAppearing.bind(this,t)):this._handleDoneAppearing(t)}_handleDoneAppearing(t){const n=this.refs[t];n!=null&&n.componentDidAppear&&n.componentDidAppear(),delete this.currentlyTransitioningKeys[t],this._finishAbort(t);const i=Vv(Rc(this.props.children)||[]);(!i||!i.hasOwnProperty(t))&&this.performLeave(t)}performEnter(t){this.currentlyTransitioningKeys[t]=!0;const n=this.refs[t];n!=null&&n.componentWillEnter?n.componentWillEnter(this._handleDoneEntering.bind(this,t)):this._handleDoneEntering(t)}_handleDoneEntering(t){const n=this.refs[t];n!=null&&n.componentDidEnter&&n.componentDidEnter(),delete this.currentlyTransitioningKeys[t],this._finishAbort(t);const i=Vv(Rc(this.props.children)||[]);(!i||!i.hasOwnProperty(t))&&this.performLeave(t)}performLeave(t){if(this.keysToAbortLeave.indexOf(t)!==-1)return;this.currentlyTransitioningKeys[t]=!0;const i=this.refs[t];i!=null&&i.componentWillLeave?i.componentWillLeave(this._handleDoneLeaving.bind(this,t)):this._handleDoneLeaving(t)}_handleDoneLeaving(t){if(this.keysToAbortLeave.indexOf(t)!==-1)return;const i=this.refs[t];i!=null&&i.componentDidLeave&&i.componentDidLeave(),delete this.currentlyTransitioningKeys[t];const r=Vv(Rc(this.props.children)||[]);if(r&&r.hasOwnProperty(t))this.performEnter(t);else{const a=BNe({},this.state.children);delete a[t],this.setState({children:a})}}render(t,n){let{childFactory:i,transitionLeave:r,transitionName:a,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:l,transitionEnterTimeout:u,transitionAppearTimeout:c,component:d,...f}=t,{children:h}=n;const m=Object.entries(h).map(g=>{let[v,y]=g;if(!y)return;const _=jNe(this,v);return Mz(i(y),{ref:_,key:v})}).filter(Boolean);return ce(d,f,m)}}cq.defaultProps={component:"span",childFactory:HNe};const qNe={version:"3.1.0"};class dq extends qm{constructor(t,n){super(t,n),this.render=i=>ce("div",{className:"uppy uppy-Informer"},ce(cq,null,i.info.map(r=>ce(VNe,{key:r.message},ce("p",{role:"alert"},r.message," ",r.details&&ce("span",{"aria-label":r.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${r.message} ${r.details}`)},"?")))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer"}install(){const{target:t}=this.opts;t&&this.mount(t,this)}}dq.VERSION=qNe.version;const YNe=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function WNe(e,t,n){var i,r;const a=YNe.exec(e),o=(i=(r=t.mimeType)!=null?r:a==null?void 0:a[1])!=null?i:"plain/text";let s;if((a==null?void 0:a[2])!=null){const l=atob(decodeURIComponent(a[3])),u=new Uint8Array(l.length);for(let c=0;c<l.length;c++)u[c]=l.charCodeAt(c);s=[u]}else(a==null?void 0:a[3])!=null&&(s=[decodeURIComponent(a[3])]);return n?new File(s,t.name||"",{type:o}):new Blob(s,{type:o})}function sD(e){return e.startsWith("blob:")}function lD(e){return e?/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e):!1}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fq=typeof self<"u"?self:global;const A1=typeof navigator<"u",GNe=A1&&typeof HTMLImageElement>"u",uD=!(typeof global>"u"||typeof process>"u"||!process.versions||!process.versions.node),hq=fq.Buffer,pq=!!hq,KNe=e=>e!==void 0;function mq(e){return e===void 0||(e instanceof Map?e.size===0:Object.values(e).filter(KNe).length===0)}function Jr(e){let t=new Error(e);throw delete t.stack,t}function cD(e){let t=function(n){let i=0;return n.ifd0.enabled&&(i+=1024),n.exif.enabled&&(i+=2048),n.makerNote&&(i+=2048),n.userComment&&(i+=1024),n.gps.enabled&&(i+=512),n.interop.enabled&&(i+=100),n.ifd1.enabled&&(i+=1024),i+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const XS=e=>String.fromCharCode.apply(null,e),dD=typeof TextDecoder<"u"?new TextDecoder("utf-8"):void 0;class Zs{static from(t,n){return t instanceof this&&t.le===n?t:new Zs(t,void 0,void 0,n)}constructor(t,n=0,i,r){if(typeof r=="boolean"&&(this.le=r),Array.isArray(t)&&(t=new Uint8Array(t)),t===0)this.byteOffset=0,this.byteLength=0;else if(t instanceof ArrayBuffer){i===void 0&&(i=t.byteLength-n);let a=new DataView(t,n,i);this._swapDataView(a)}else if(t instanceof Uint8Array||t instanceof DataView||t instanceof Zs){i===void 0&&(i=t.byteLength-n),(n+=t.byteOffset)+i>t.byteOffset+t.byteLength&&Jr("Creating view outside of available memory in ArrayBuffer");let a=new DataView(t.buffer,n,i);this._swapDataView(a)}else if(typeof t=="number"){let a=new DataView(new ArrayBuffer(t));this._swapDataView(a)}else Jr("Invalid input argument for BufferView: "+t)}_swapArrayBuffer(t){this._swapDataView(new DataView(t))}_swapBuffer(t){this._swapDataView(new DataView(t.buffer,t.byteOffset,t.byteLength))}_swapDataView(t){this.dataView=t,this.buffer=t.buffer,this.byteOffset=t.byteOffset,this.byteLength=t.byteLength}_lengthToEnd(t){return this.byteLength-t}set(t,n,i=Zs){return t instanceof DataView||t instanceof Zs?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||Jr("BufferView.set(): Invalid data argument."),this.toUint8().set(t,n),new i(this,n,t.byteLength)}subarray(t,n){return n=n||this._lengthToEnd(t),new Zs(this,t,n)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(t,n){return new Uint8Array(this.buffer,this.byteOffset+t,n)}getString(t=0,n=this.byteLength){return r=this.getUint8Array(t,n),dD?dD.decode(r):pq?Buffer.from(r).toString("utf8"):decodeURIComponent(escape(XS(r)));var r}getLatin1String(t=0,n=this.byteLength){let i=this.getUint8Array(t,n);return XS(i)}getUnicodeString(t=0,n=this.byteLength){const i=[];for(let r=0;r<n&&t+r<this.byteLength;r+=2)i.push(this.getUint16(t+r));return XS(i)}getInt8(t){return this.dataView.getInt8(t)}getUint8(t){return this.dataView.getUint8(t)}getInt16(t,n=this.le){return this.dataView.getInt16(t,n)}getInt32(t,n=this.le){return this.dataView.getInt32(t,n)}getUint16(t,n=this.le){return this.dataView.getUint16(t,n)}getUint32(t,n=this.le){return this.dataView.getUint32(t,n)}getFloat32(t,n=this.le){return this.dataView.getFloat32(t,n)}getFloat64(t,n=this.le){return this.dataView.getFloat64(t,n)}getFloat(t,n=this.le){return this.dataView.getFloat32(t,n)}getDouble(t,n=this.le){return this.dataView.getFloat64(t,n)}getUintBytes(t,n,i){switch(n){case 1:return this.getUint8(t,i);case 2:return this.getUint16(t,i);case 4:return this.getUint32(t,i);case 8:return this.getUint64&&this.getUint64(t,i)}}getUint(t,n,i){switch(n){case 8:return this.getUint8(t,i);case 16:return this.getUint16(t,i);case 32:return this.getUint32(t,i);case 64:return this.getUint64&&this.getUint64(t,i)}}toString(t){return this.dataView.toString(t,this.constructor.name)}ensureChunk(){}}function nE(e,t){Jr(`${e} '${t}' was not loaded, try using full build of exifr.`)}class tT extends Map{constructor(t){super(),this.kind=t}get(t,n){return this.has(t)||nE(this.kind,t),n&&(t in n||function(i,r){Jr(`Unknown ${i} '${r}'.`)}(this.kind,t),n[t].enabled||nE(this.kind,t)),super.get(t)}keyList(){return Array.from(this.keys())}}var vq=new tT("file parser"),Hs=new tT("segment parser"),nT=new tT("file reader");let ZNe=fq.fetch;function fD(e,t){return(n=e).startsWith("data:")||n.length>1e4?rE(e,t,"base64"):uD&&e.includes("://")?iE(e,t,"url",hD):uD?rE(e,t,"fs"):A1?iE(e,t,"url",hD):void Jr("Invalid input argument");var n}async function iE(e,t,n,i){return nT.has(n)?rE(e,t,n):i?async function(r,a){let o=await a(r);return new Zs(o)}(e,i):void Jr(`Parser ${n} is not loaded`)}async function rE(e,t,n){let i=new(nT.get(n))(e,t);return await i.read(),i}const hD=e=>ZNe(e).then(t=>t.arrayBuffer()),aE=e=>new Promise((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}),iT=new Map,XNe=new Map,JNe=new Map,O0=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],gq=["jfif","xmp","icc","iptc","ihdr"],oE=["tiff",...gq],Ur=["ifd0","ifd1","exif","gps","interop"],D0=[...oE,...Ur],I0=["makerNote","userComment"],yq=["translateKeys","translateValues","reviveValues","multiSegment"],N0=[...yq,"sanitize","mergeOutput","silentErrors"];class _q{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Bv extends _q{get needed(){return this.enabled||this.deps.size>0}constructor(t,n,i,r){if(super(),Mn(this,"enabled",!1),Mn(this,"skip",new Set),Mn(this,"pick",new Set),Mn(this,"deps",new Set),Mn(this,"translateKeys",!1),Mn(this,"translateValues",!1),Mn(this,"reviveValues",!1),this.key=t,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=Ur.includes(t),this.canBeFiltered&&(this.dict=iT.get(t)),i!==void 0)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if(typeof i=="object"){if(this.enabled=!0,this.parse=i.parse!==!1,this.canBeFiltered){let{pick:a,skip:o}=i;a&&a.length>0&&this.translateTagSet(a,this.pick),o&&o.length>0&&this.translateTagSet(o,this.skip)}this.applyInheritables(i)}else i===!0||i===!1?this.parse=this.enabled=i:Jr(`Invalid options argument: ${i}`)}applyInheritables(t){let n,i;for(n of yq)i=t[n],i!==void 0&&(this[n]=i)}translateTagSet(t,n){if(this.dict){let i,r,{tagKeys:a,tagValues:o}=this.dict;for(i of t)typeof i=="string"?(r=o.indexOf(i),r===-1&&(r=a.indexOf(Number(i))),r!==-1&&n.add(Number(a[r]))):n.add(i)}else for(let i of t)n.add(i)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Yb(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Yb(this.pick,this.deps)}}var za={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},pD=new Map;class rT extends _q{static useCached(t){let n=pD.get(t);return n!==void 0||(n=new this(t),pD.set(t,n)),n}constructor(t){super(),t===!0?this.setupFromTrue():t===void 0?this.setupFromUndefined():Array.isArray(t)?this.setupFromArray(t):typeof t=="object"?this.setupFromObject(t):Jr(`Invalid options argument ${t}`),this.firstChunkSize===void 0&&(this.firstChunkSize=A1?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let t;for(t of O0)this[t]=za[t];for(t of N0)this[t]=za[t];for(t of I0)this[t]=za[t];for(t of D0)this[t]=new Bv(t,za[t],void 0,this)}setupFromTrue(){let t;for(t of O0)this[t]=za[t];for(t of N0)this[t]=za[t];for(t of I0)this[t]=!0;for(t of D0)this[t]=new Bv(t,!0,void 0,this)}setupFromArray(t){let n;for(n of O0)this[n]=za[n];for(n of N0)this[n]=za[n];for(n of I0)this[n]=za[n];for(n of D0)this[n]=new Bv(n,!1,void 0,this);this.setupGlobalFilters(t,void 0,Ur)}setupFromObject(t){let n;for(n of(Ur.ifd0=Ur.ifd0||Ur.image,Ur.ifd1=Ur.ifd1||Ur.thumbnail,Object.assign(this,t),O0))this[n]=JS(t[n],za[n]);for(n of N0)this[n]=JS(t[n],za[n]);for(n of I0)this[n]=JS(t[n],za[n]);for(n of oE)this[n]=new Bv(n,za[n],t[n],this);for(n of Ur)this[n]=new Bv(n,za[n],t[n],this.tiff);this.setupGlobalFilters(t.pick,t.skip,Ur,D0),t.tiff===!0?this.batchEnableWithBool(Ur,!0):t.tiff===!1?this.batchEnableWithUserValue(Ur,t):Array.isArray(t.tiff)?this.setupGlobalFilters(t.tiff,void 0,Ur):typeof t.tiff=="object"&&this.setupGlobalFilters(t.tiff.pick,t.tiff.skip,Ur)}batchEnableWithBool(t,n){for(let i of t)this[i].enabled=n}batchEnableWithUserValue(t,n){for(let i of t){let r=n[i];this[i].enabled=r!==!1&&r!==void 0}}setupGlobalFilters(t,n,i,r=i){if(t&&t.length){for(let o of r)this[o].enabled=!1;let a=mD(t,i);for(let[o,s]of a)Yb(this[o].pick,s),this[o].enabled=!0}else if(n&&n.length){let a=mD(n,i);for(let[o,s]of a)Yb(this[o].skip,s)}}filterNestedSegmentTags(){let{ifd0:t,exif:n,xmp:i,iptc:r,icc:a}=this;this.makerNote?n.deps.add(37500):n.skip.add(37500),this.userComment?n.deps.add(37510):n.skip.add(37510),i.enabled||t.skip.add(700),r.enabled||t.skip.add(33723),a.enabled||t.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:t,exif:n,gps:i,interop:r}=this;r.needed&&(n.deps.add(40965),t.deps.add(40965)),n.needed&&t.deps.add(34665),i.needed&&t.deps.add(34853),this.tiff.enabled=Ur.some(a=>this[a].enabled===!0)||this.makerNote||this.userComment;for(let a of Ur)this[a].finalizeFilters()}get onlyTiff(){return!gq.map(t=>this[t].enabled).some(t=>t===!0)&&this.tiff.enabled}checkLoadedPlugins(){for(let t of oE)this[t].enabled&&!Hs.has(t)&&nE("segment parser",t)}}function mD(e,t){let n,i,r,a,o=[];for(r of t){for(a of(n=iT.get(r),i=[],n))(e.includes(a[0])||e.includes(a[1]))&&i.push(a[0]);i.length&&o.push([r,i])}return o}function JS(e,t){return e!==void 0?e:t!==void 0?t:void 0}function Yb(e,t){for(let n of t)e.add(n)}Mn(rT,"default",za);class QNe{constructor(t){Mn(this,"parsers",{}),Mn(this,"output",{}),Mn(this,"errors",[]),Mn(this,"pushToErrors",n=>this.errors.push(n)),this.options=rT.useCached(t)}async read(t){this.file=await function(n,i){return typeof n=="string"?fD(n,i):A1&&!GNe&&n instanceof HTMLImageElement?fD(n.src,i):n instanceof Uint8Array||n instanceof ArrayBuffer||n instanceof DataView?new Zs(n):A1&&n instanceof Blob?iE(n,i,"blob",aE):void Jr("Invalid input argument")}(t,this.options)}setup(){if(this.fileParser)return;let{file:t}=this,n=t.getUint16(0);for(let[i,r]of vq)if(r.canHandle(t,n))return this.fileParser=new r(this.options,this.file,this.parsers),t[i]=!0;this.file.close&&this.file.close(),Jr("Unknown file format")}async parse(){let{output:t,errors:n}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),n.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&n.length>0&&(t.errors=n),mq(i=t)?void 0:i;var i}async executeParsers(){let{output:t}=this;await this.fileParser.parse();let n=Object.values(this.parsers).map(async i=>{let r=await i.parse();i.assignToOutput(t,r)});this.options.silentErrors&&(n=n.map(i=>i.catch(this.pushToErrors))),await Promise.all(n)}async extractThumbnail(){this.setup();let{options:t,file:n}=this,i=Hs.get("tiff",t);var r;if(n.tiff?r={start:0,type:"tiff"}:n.jpeg&&(r=await this.fileParser.getOrFindSegment("tiff")),r===void 0)return;let a=await this.fileParser.ensureSegmentChunk(r),o=this.parsers.tiff=new i(a,t,n),s=await o.extractThumbnail();return n.close&&n.close(),s}}class cp{static findPosition(t,n){let i=t.getUint16(n+2)+2,r=typeof this.headerLength=="function"?this.headerLength(t,n,i):this.headerLength,a=n+r,o=i-r;return{offset:n,length:i,headerLength:r,start:a,size:o,end:a+o}}static parse(t,n={}){return new this(t,new rT({[this.type]:n}),t).parse()}normalizeInput(t){return t instanceof Zs?t:new Zs(t)}constructor(t,n={},i){Mn(this,"errors",[]),Mn(this,"raw",new Map),Mn(this,"handleError",r=>{if(!this.options.silentErrors)throw r;this.errors.push(r.message)}),this.chunk=this.normalizeInput(t),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(t,n){let i=JNe.get(n),r=XNe.get(n),a=iT.get(n),o=this.options[n],s=o.reviveValues&&!!i,l=o.translateValues&&!!r,u=o.translateKeys&&!!a,c={};for(let[d,f]of t)s&&i.has(d)?f=i.get(d)(f):l&&r.has(d)&&(f=this.translateValue(f,r.get(d))),u&&a.has(d)&&(d=a.get(d)||d),c[d]=f;return c}translateValue(t,n){return n[t]||n.DEFAULT||t}assignToOutput(t,n){this.assignObjectToOutput(t,this.constructor.type,n)}assignObjectToOutput(t,n,i){if(this.globalOptions.mergeOutput)return Object.assign(t,i);t[n]?Object.assign(t[n],i):t[n]=i}}Mn(cp,"headerLength",4),Mn(cp,"type",void 0),Mn(cp,"multiSegment",!1),Mn(cp,"canHandle",()=>!1);function eMe(e){return e===192||e===194||e===196||e===219||e===221||e===218||e===254}function tMe(e){return e>=224&&e<=239}function nMe(e,t,n){for(let[i,r]of Hs)if(r.canHandle(e,t,n))return i}class vD extends class{constructor(t,n,i){Mn(this,"errors",[]),Mn(this,"ensureSegmentChunk",async r=>{let a=r.start,o=r.size||65536;if(this.file.chunked)if(this.file.available(a,o))r.chunk=this.file.subarray(a,o);else try{r.chunk=await this.file.readChunk(a,o)}catch(s){Jr(`Couldn't read segment: ${JSON.stringify(r)}. ${s.message}`)}else this.file.byteLength>a+o?r.chunk=this.file.subarray(a,o):r.size===void 0?r.chunk=this.file.subarray(a):Jr("Segment unreachable: "+JSON.stringify(r));return r.chunk}),this.extendOptions&&this.extendOptions(t),this.options=t,this.file=n,this.parsers=i}injectSegment(t,n){this.options[t].enabled&&this.createParser(t,n)}createParser(t,n){let i=new(Hs.get(t))(n,this.options,this.file);return this.parsers[t]=i}createParsers(t){for(let n of t){let{type:i,chunk:r}=n,a=this.options[i];if(a&&a.enabled){let o=this.parsers[i];o&&o.append||o||this.createParser(i,r)}}}async readSegments(t){let n=t.map(this.ensureSegmentChunk);await Promise.all(n)}}{constructor(...t){super(...t),Mn(this,"appSegments",[]),Mn(this,"jpegSegments",[]),Mn(this,"unknownSegments",[])}static canHandle(t,n){return n===65496}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(t){t===!0?(this.findAll=!0,this.wanted=new Set(Hs.keyList())):(t=t===void 0?Hs.keyList().filter(n=>this.options[n].enabled):t.filter(n=>this.options[n].enabled&&Hs.has(n)),this.findAll=!1,this.remaining=new Set(t),this.wanted=new Set(t)),this.unfinishedMultiSegment=!1}async findAppSegments(t=0,n){this.setupSegmentFinderArgs(n);let{file:i,findAll:r,wanted:a,remaining:o}=this;if(!r&&this.file.chunked&&(r=Array.from(a).some(s=>{let l=Hs.get(s),u=this.options[s];return l.multiSegment&&u.multiSegment}),r&&await this.file.readWhole()),t=this.findAppSegmentsInRange(t,i.byteLength),!this.options.onlyTiff&&i.chunked){let s=!1;for(;o.size>0&&!s&&(i.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:l}=i,u=this.appSegments.some(c=>!this.file.available(c.offset||c.start,c.length||c.size));if(s=t>l&&!u?!await i.readNextChunk(t):!await i.readNextChunk(l),(t=this.findAppSegmentsInRange(t,i.byteLength))===void 0)return}}}findAppSegmentsInRange(t,n){n-=2;let i,r,a,o,s,l,{file:u,findAll:c,wanted:d,remaining:f,options:h}=this;for(;t<n;t++)if(u.getUint8(t)===255){if(i=u.getUint8(t+1),tMe(i)){if(r=u.getUint16(t+2),a=nMe(u,t,r),a&&d.has(a)&&(o=Hs.get(a),s=o.findPosition(u,t),l=h[a],s.type=a,this.appSegments.push(s),!c&&(o.multiSegment&&l.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||f.delete(a)):f.delete(a),f.size===0)))break;h.recordUnknownSegments&&(s=cp.findPosition(u,t),s.marker=i,this.unknownSegments.push(s)),t+=r+1}else if(eMe(i)){if(r=u.getUint16(t+2),i===218&&h.stopAfterSos!==!1)return;h.recordJpegSegments&&this.jpegSegments.push({offset:t,length:r,marker:i}),t+=r+1}}return t}mergeMultiSegments(){if(!this.appSegments.some(n=>n.multiSegment))return;let t=function(n,i){let r,a,o,s=new Map;for(let l=0;l<n.length;l++)r=n[l],a=r[i],s.has(a)?o=s.get(a):s.set(a,o=[]),o.push(r);return Array.from(s)}(this.appSegments,"type");this.mergedAppSegments=t.map(([n,i])=>{let r=Hs.get(n,this.options);return r.handleMultiSegments?{type:n,chunk:r.handleMultiSegments(i)}:i[0]})}getSegment(t){return this.appSegments.find(n=>n.type===t)}async getOrFindSegment(t){let n=this.getSegment(t);return n===void 0&&(await this.findAppSegments(0,[t]),n=this.getSegment(t)),n}}Mn(vD,"type","jpeg"),vq.set("jpeg",vD);const iMe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class rMe extends cp{parseHeader(){var t=this.chunk.getUint16();t===18761?this.le=!0:t===19789&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(t,n,i=new Map){let{pick:r,skip:a}=this.options[n];r=new Set(r);let o=r.size>0,s=a.size===0,l=this.chunk.getUint16(t);t+=2;for(let u=0;u<l;u++){let c=this.chunk.getUint16(t);if(o){if(r.has(c)&&(i.set(c,this.parseTag(t,c,n)),r.delete(c),r.size===0))break}else!s&&a.has(c)||i.set(c,this.parseTag(t,c,n));t+=12}return i}parseTag(t,n,i){let{chunk:r}=this,a=r.getUint16(t+2),o=r.getUint32(t+4),s=iMe[a];if(s*o<=4?t+=8:t=r.getUint32(t+8),(a<1||a>13)&&Jr(`Invalid TIFF value type. block: ${i.toUpperCase()}, tag: ${n.toString(16)}, type: ${a}, offset ${t}`),t>r.byteLength&&Jr(`Invalid TIFF value offset. block: ${i.toUpperCase()}, tag: ${n.toString(16)}, type: ${a}, offset ${t} is outside of chunk size ${r.byteLength}`),a===1)return r.getUint8Array(t,o);if(a===2)return(l=function(u){for(;u.endsWith("\0");)u=u.slice(0,-1);return u}(l=r.getString(t,o)).trim())===""?void 0:l;var l;if(a===7)return r.getUint8Array(t,o);if(o===1)return this.parseTagValue(a,t);{let u=new(function(d){switch(d){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 10:return Array;case 11:return Float32Array;case 12:return Float64Array;default:return Array}}(a))(o),c=s;for(let d=0;d<o;d++)u[d]=this.parseTagValue(a,t),t+=c;return u}}parseTagValue(t,n){let{chunk:i}=this;switch(t){case 1:return i.getUint8(n);case 3:return i.getUint16(n);case 4:return i.getUint32(n);case 5:return i.getUint32(n)/i.getUint32(n+4);case 6:return i.getInt8(n);case 8:return i.getInt16(n);case 9:return i.getInt32(n);case 10:return i.getInt32(n)/i.getInt32(n+4);case 11:return i.getFloat(n);case 12:return i.getDouble(n);case 13:return i.getUint32(n);default:Jr(`Invalid tiff type ${t}`)}}}class QS extends rMe{static canHandle(t,n){return t.getUint8(n+1)===225&&t.getUint32(n+4)===1165519206&&t.getUint16(n+8)===0}async parse(){this.parseHeader();let{options:t}=this;return t.ifd0.enabled&&await this.parseIfd0Block(),t.exif.enabled&&await this.safeParse("parseExifBlock"),t.gps.enabled&&await this.safeParse("parseGpsBlock"),t.interop.enabled&&await this.safeParse("parseInteropBlock"),t.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(t){let n=this[t]();return n.catch!==void 0&&(n=n.catch(this.handleError)),n}findIfd0Offset(){this.ifd0Offset===void 0&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(this.ifd1Offset===void 0){this.findIfd0Offset();let t=this.chunk.getUint16(this.ifd0Offset),n=this.ifd0Offset+2+12*t;this.ifd1Offset=this.chunk.getUint32(n)}}parseBlock(t,n){let i=new Map;return this[n]=i,this.parseTags(t,n,i),i}async parseIfd0Block(){if(this.ifd0)return;let{file:t}=this;this.findIfd0Offset(),this.ifd0Offset<8&&Jr("Malformed EXIF data"),!t.chunked&&this.ifd0Offset>t.byteLength&&Jr(`IFD0 offset points to outside of file. this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&await t.ensureChunk(this.ifd0Offset,cD(this.options));let n=this.parseBlock(this.ifd0Offset,"ifd0");return n.size!==0?(this.exifOffset=n.get(34665),this.interopOffset=n.get(40965),this.gpsOffset=n.get(34853),this.xmp=n.get(700),this.iptc=n.get(33723),this.icc=n.get(34675),this.options.sanitize&&(n.delete(34665),n.delete(40965),n.delete(34853),n.delete(700),n.delete(33723),n.delete(34675)),n):void 0}async parseExifBlock(){if(this.exif||(this.ifd0||await this.parseIfd0Block(),this.exifOffset===void 0))return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,cD(this.options));let t=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=t.get(40965)),this.makerNote=t.get(37500),this.userComment=t.get(37510),this.options.sanitize&&(t.delete(40965),t.delete(37500),t.delete(37510)),this.unpack(t,41728),this.unpack(t,41729),t}unpack(t,n){let i=t.get(n);i&&i.length===1&&t.set(n,i[0])}async parseGpsBlock(){if(this.gps||(this.ifd0||await this.parseIfd0Block(),this.gpsOffset===void 0))return;let t=this.parseBlock(this.gpsOffset,"gps");return t&&t.has(2)&&t.has(4)&&(t.set("latitude",gD(...t.get(2),t.get(1))),t.set("longitude",gD(...t.get(4),t.get(3)))),t}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),this.interopOffset!==void 0||this.exif||await this.parseExifBlock(),this.interopOffset!==void 0))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(t=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||t))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),this.ifd1===void 0)return;let t=this.ifd1.get(513),n=this.ifd1.get(514);return this.chunk.getUint8Array(t,n)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let t,n,i,r={};for(n of Ur)if(t=this[n],!mq(t))if(i=this.canTranslate?this.translateBlock(t,n):Object.fromEntries(t),this.options.mergeOutput){if(n==="ifd1")continue;Object.assign(r,i)}else r[n]=i;return this.makerNote&&(r.makerNote=this.makerNote),this.userComment&&(r.userComment=this.userComment),r}assignToOutput(t,n){if(this.globalOptions.mergeOutput)Object.assign(t,n);else for(let[i,r]of Object.entries(n))this.assignObjectToOutput(t,i,r)}}function gD(e,t,n,i){var r=e+t/60+n/3600;return i!=="S"&&i!=="W"||(r*=-1),r}Mn(QS,"type","tiff"),Mn(QS,"headerLength",10),Hs.set("tiff",QS);const aT={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1};Object.assign({},aT,{firstChunkSize:4e4,gps:[1,2,3,4]});Object.assign({},aT,{tiff:!1,ifd1:!0,mergeOutput:!1});const aMe=Object.assign({},aT,{firstChunkSize:4e4,ifd0:[274]});async function oMe(e){let t=new QNe(aMe);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const sMe=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});let ig=!0,rg=!0;if(typeof navigator=="object"){let e=navigator.userAgent;if(e.includes("iPad")||e.includes("iPhone")){let t=e.match(/OS (\d+)_(\d+)/);if(t){let[,n,i]=t;ig=Number(n)+.1*Number(i)<13.4,rg=!1}}else if(e.includes("OS X 10")){let[,t]=e.match(/OS X 10[_.](\d+)/);ig=rg=Number(t)<15}if(e.includes("Chrome/")){let[,t]=e.match(/Chrome\/(\d+)/);ig=rg=Number(t)<81}else if(e.includes("Firefox/")){let[,t]=e.match(/Firefox\/(\d+)/);ig=rg=Number(t)<77}}async function lMe(e){let t=await oMe(e);return Object.assign({canvas:ig,css:rg},sMe[t])}class uMe extends Zs{constructor(...t){super(...t),Mn(this,"ranges",new cMe),this.byteLength!==0&&this.ranges.add(0,this.byteLength)}_tryExtend(t,n,i){if(t===0&&this.byteLength===0&&i){let r=new DataView(i.buffer||i,i.byteOffset,i.byteLength);this._swapDataView(r)}else{let r=t+n;if(r>this.byteLength){let{dataView:a}=this._extend(r);this._swapDataView(a)}}}_extend(t){let n;n=pq?hq.allocUnsafe(t):new Uint8Array(t);let i=new DataView(n.buffer,n.byteOffset,n.byteLength);return n.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:n,dataView:i}}subarray(t,n,i=!1){return n=n||this._lengthToEnd(t),i&&this._tryExtend(t,n),this.ranges.add(t,n),super.subarray(t,n)}set(t,n,i=!1){i&&this._tryExtend(n,t.byteLength,t);let r=super.set(t,n);return this.ranges.add(n,r.byteLength),r}async ensureChunk(t,n){this.chunked&&(this.ranges.available(t,n)||await this.readChunk(t,n))}available(t,n){return this.ranges.available(t,n)}}class cMe{constructor(){Mn(this,"list",[])}get length(){return this.list.length}add(t,n,i=0){let r=t+n,a=this.list.filter(o=>yD(t,o.offset,r)||yD(t,o.end,r));if(a.length>0){t=Math.min(t,...a.map(s=>s.offset)),r=Math.max(r,...a.map(s=>s.end)),n=r-t;let o=a.shift();o.offset=t,o.length=n,o.end=r,this.list=this.list.filter(s=>!a.includes(s))}else this.list.push({offset:t,length:n,end:r})}available(t,n){let i=t+n;return this.list.some(r=>r.offset<=t&&i<=r.end)}}function yD(e,t,n){return e<=t&&t<=n}class dMe extends uMe{constructor(t,n){super(0),Mn(this,"chunksRead",0),this.input=t,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(t=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let n=this.options.chunkSize,i=await this.readChunk(t,n);return!!i&&i.byteLength===n}async readChunk(t,n){if(this.chunksRead++,(n=this.safeWrapAddress(t,n))!==0)return this._readChunk(t,n)}safeWrapAddress(t,n){return this.size!==void 0&&t+n>this.size?Math.max(0,this.size-t):n}get nextChunkOffset(){if(this.ranges.list.length!==0)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return this.size!==void 0&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}nT.set("blob",class extends dMe{async readWhole(){this.chunked=!1;let e=await aE(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await aE(i);return this.set(r,e,!0)}});const fMe={strings:{generatingThumbnails:"Generating thumbnails..."}},hMe={version:"3.1.0"};function pMe(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(i){if(i.code===18)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise(i=>{e.toBlob(i,t,n)}).then(i=>{if(i===null)throw new Error("cannot read image, probably an svg with external resources");return i}):Promise.resolve().then(()=>WNe(e.toDataURL(t,n),{})).then(i=>{if(i===null)throw new Error("could not extract blob, probably an old browser");return i})}function mMe(e,t){let n=e.width,i=e.height;(t.deg===90||t.deg===270)&&(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const a=r.getContext("2d");return a.translate(n/2,i/2),t.canvas&&(a.rotate(t.rad),a.scale(t.scaleX,t.scaleY)),a.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r}function vMe(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),a=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,a=Math.round(r/t)),a>i&&(a=i,r=Math.round(t*a)),e.width>r){const o=document.createElement("canvas");return o.width=r,o.height=a,o.getContext("2d").drawImage(e,0,0,r,a),o}return e}const gMe={thumbnailWidth:null,thumbnailHeight:null,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,lazy:!1};class bq extends qm{constructor(t,n){if(super(t,{...gMe,...n}),this.onFileAdded=i=>{!i.preview&&i.data&&lD(i.type)&&!i.isRemote&&this.addToQueue(i.id)},this.onCancelRequest=i=>{const r=this.queue.indexOf(i.id);r!==-1&&this.queue.splice(r,1)},this.onFileRemoved=i=>{const r=this.queue.indexOf(i.id);r!==-1&&this.queue.splice(r,1),i.preview&&sD(i.preview)&&URL.revokeObjectURL(i.preview)},this.onRestored=()=>{this.uppy.getFiles().filter(r=>r.isRestored).forEach(r=>{(!r.preview||sD(r.preview))&&this.addToQueue(r.id)})},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=i=>{i.forEach(a=>{const o=this.uppy.getFile(a);this.uppy.emit("preprocess-progress",o,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})});const r=()=>{i.forEach(a=>{const o=this.uppy.getFile(a);this.uppy.emit("preprocess-complete",o)})};return new Promise(a=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",()=>{r(),a()}):(r(),a())})},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType,this.defaultLocale=fMe,this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(t,n,i){const r=URL.createObjectURL(t.data),a=new Promise((s,l)=>{const u=new Image;u.src=r,u.addEventListener("load",()=>{URL.revokeObjectURL(r),s(u)}),u.addEventListener("error",c=>{URL.revokeObjectURL(r),l(c.error||new Error("Could not create thumbnail"))})}),o=lMe(t.data).catch(()=>1);return Promise.all([a,o]).then(s=>{let[l,u]=s;const c=this.getProportionalDimensions(l,n,i,u.deg),d=mMe(l,u),f=this.resizeImage(d,c.width,c.height);return pMe(f,this.thumbnailType,80)}).then(s=>URL.createObjectURL(s))}getProportionalDimensions(t,n,i,r){let a=t.width/t.height;return(r===90||r===270)&&(a=t.height/t.width),n!=null?{width:n,height:Math.round(n/a)}:i!=null?{width:Math.round(i*a),height:i}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/a)}}resizeImage(t,n,i){let r=vMe(t),a=Math.ceil(Math.log2(r.width/n));a<1&&(a=1);let o=n*2**(a-1),s=i*2**(a-1);const l=2;for(;a--;){const u=document.createElement("canvas");u.width=o,u.height=s,u.getContext("2d").drawImage(r,0,0,o,s),r=u,o=Math.round(o/l),s=Math.round(s/l)}return r}setPreviewURL(t,n){this.uppy.setFileState(t,{preview:n})}addToQueue(t){this.queue.push(t),this.queueProcessing===!1&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const t=this.uppy.getFile(this.queue.shift());return t?this.requestThumbnail(t).catch(()=>{}).then(()=>this.processQueue()):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(t){return lD(t.type)&&!t.isRemote?this.createThumbnail(t,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(n=>{this.setPreviewURL(t.id,n),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${t.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(t.id),n)}).catch(n=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${t.id}:`,"warning"),this.uppy.log(n,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(t.id),n)}):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}bq.VERSION=hMe.version;function _D(e){if(typeof e=="string"){const t=document.querySelectorAll(e);return t.length===0?null:Array.from(t)}return typeof e=="object"&&FH(e)?[e]:null}const Dg=Array.from;function wq(e,t,n,i){let{onSuccess:r}=i;e.readEntries(a=>{const o=[...t,...a];a.length?queueMicrotask(()=>{wq(e,o,n,{onSuccess:r})}):r(o)},a=>{n(a),r(t)})}function Sq(e,t){return e==null?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile(){return new Promise((n,i)=>e.file(n,i))},async*values(){const n=e.createReader();yield*await new Promise(r=>{wq(n,[],t,{onSuccess:a=>r(a.map(o=>Sq(o,t)))})})},isSameEntry:void 0}}function Cq(e,t,n){try{return n===void 0&&(n=void 0),async function*(){const i=()=>`${t}/${e.name}`;if(e.kind==="file"){const r=await e.getFile();r!=null?(r.relativePath=t?i():null,yield r):n!=null&&(yield n)}else if(e.kind==="directory")for await(const r of e.values())yield*Cq(r,t?i():e.name);else n!=null&&(yield n)}()}catch(i){return Promise.reject(i)}}async function*yMe(e,t){const n=await Promise.all(Array.from(e.items,async i=>{var r;let a;const o=()=>typeof i.getAsEntry=="function"?i.getAsEntry():i.webkitGetAsEntry();return(r=a)!=null||(a=Sq(o(),t)),{fileSystemHandle:a,lastResortFile:i.getAsFile()}}));for(const{lastResortFile:i,fileSystemHandle:r}of n)if(r!=null)try{yield*Cq(r,"",i)}catch(a){i!=null?yield i:t(a)}else i!=null&&(yield i)}function _Me(e){const t=Dg(e.files);return Promise.resolve(t)}async function bMe(e,t){var n;const i=(n=t==null?void 0:t.logDropError)!=null?n:Function.prototype;try{const r=[];for await(const a of yMe(e,i))r.push(a);return r}catch{return _Me(e)}}var Eq={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,d,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new r(c,d||l,f),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],h]:l._events[m].push(h):(l._events[m]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function s(){this._events=new i,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)t.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,m=new Array(h);f<h;f++)m[f]=d[f].fn;return m},s.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},s.prototype.emit=function(u,c,d,f,h,m){var g=n?n+u:u;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,_,S;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,d),!0;case 4:return v.fn.call(v.context,c,d,f),!0;case 5:return v.fn.call(v.context,c,d,f,h),!0;case 6:return v.fn.call(v.context,c,d,f,h,m),!0}for(S=1,_=new Array(y-1);S<y;S++)_[S-1]=arguments[S];v.fn.apply(v.context,_)}else{var w=v.length,x;for(S=0;S<w;S++)switch(v[S].once&&this.removeListener(u,v[S].fn,void 0,!0),y){case 1:v[S].fn.call(v[S].context);break;case 2:v[S].fn.call(v[S].context,c);break;case 3:v[S].fn.call(v[S].context,c,d);break;case 4:v[S].fn.call(v[S].context,c,d,f);break;default:if(!_)for(x=1,_=new Array(y-1);x<y;x++)_[x-1]=arguments[x];v[S].fn.apply(v[S].context,_)}}return!0},s.prototype.on=function(u,c,d){return a(this,u,c,d,!1)},s.prototype.once=function(u,c,d){return a(this,u,c,d,!0)},s.prototype.removeListener=function(u,c,d,f){var h=n?n+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===c&&(!f||m.once)&&(!d||m.context===d)&&o(this,h);else{for(var g=0,v=[],y=m.length;g<y;g++)(m[g].fn!==c||f&&!m[g].once||d&&m[g].context!==d)&&v.push(m[g]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Eq);var wMe=Eq.exports;const SMe=Ei(wMe);globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sE.apply(this,arguments)}const CMe={position:"relative",width:"100%",minHeight:"100%"},EMe={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class xMe extends ms{constructor(t){super(t),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:t}=this.state;t!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(t){let{data:n,rowHeight:i,renderRow:r,overscanCount:a=10,...o}=t;const{offset:s,height:l}=this.state;let u=Math.floor(s/i),c=Math.floor(l/i);a&&(u=Math.max(0,u-u%a),c+=a);const d=u+c+4,f=n.slice(u,d),h={...CMe,height:n.length*i},m={...EMe,top:u*i};return ce("div",sE({onScroll:this.handleScroll},o),ce("div",{role:"presentation",style:h},ce("div",{role:"presentation",style:m},f.map(r))))}}function kMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},ce("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var bD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function TMe(e,t){return!!(e===t||bD(e)&&bD(t))}function PMe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!TMe(e[n],t[n]))return!1;return!0}function wD(e,t){t===void 0&&(t=PMe);var n=null;function i(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return i.clear=function(){n=null},i}const xq=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];function kq(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e}function SD(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function $Me(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}function AMe(e){return e.contains(document.activeElement)}function Tq(e,t,n){const i=kq(n,t),r=Dg(i.querySelectorAll(xq)),a=r.indexOf(document.activeElement);AMe(i)?e.shiftKey&&a===0?$Me(e,r):!e.shiftKey&&a===r.length-1&&SD(e,r):SD(e,r)}function OMe(e,t,n){t===null||Tq(e,t,n)}function DMe(){let e=!1;return cDe((n,i)=>{const r=kq(n,i),a=r.contains(document.activeElement);if(a&&e)return;const o=r.querySelector("[data-uppy-super-focusable]");if(!(a&&!o))if(o)o.focus({preventScroll:!0}),e=!0;else{const s=r.querySelector(xq);s==null||s.focus({preventScroll:!0}),e=!1}},260)}function IMe(){const e=document.body;return!(!("draggable"in e)||!("ondragstart"in e&&"ondrop"in e)||!("FormData"in window)||!("FileReader"in window))}var NMe=function(t,n){if(t===n)return!0;for(var i in t)if(!(i in n))return!1;for(var i in n)if(t[i]!==n[i])return!1;return!0};const MMe=Ei(NMe);function LMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},ce("g",{fill:"#686DE0",fillRule:"evenodd"},ce("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),ce("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),ce("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}function RMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},ce("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}function FMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},ce("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}function VMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},ce("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}function BMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},ce("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}function zMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},ce("g",{fill:"#A7AFB7",fillRule:"nonzero"},ce("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),ce("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))}function jMe(){return ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},ce("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}function oT(e){const t={color:"#838999",icon:zMe()};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return n==="text"?{color:"#5a5e69",icon:jMe()}:n==="image"?{color:"#686de0",icon:LMe()}:n==="audio"?{color:"#068dbb",icon:RMe()}:n==="video"?{color:"#19af67",icon:FMe()}:n==="application"&&i==="pdf"?{color:"#e25149",icon:VMe()}:n==="application"&&["zip","x-7z-compressed","x-zip-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)!==-1?{color:"#00C469",icon:BMe()}:t}function Pq(e){const{file:t}=e;if(t.preview)return ce("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=oT(t.type);return ce("div",{className:"uppy-Dashboard-Item-previewIconWrap"},ce("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},ce("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}const UMe=(e,t)=>(typeof t=="function"?t():t).filter(r=>r.id===e)[0].name;function $q(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:a}=t;if(!(a!=null&&a.length))return null;const o=a.map(s=>UMe(s,r)).join(", ");return ce("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:a.length,fields:o})," ",ce("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))}function HMe(e){const{file:t,i18n:n,toggleFileCard:i,metaFields:r,showLinkToFileUploadResult:a}=e,o="rgba(255, 255, 255, 0.5)",s=t.preview?o:oT(t.type).color;return ce("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:s}},a&&t.uploadURL&&ce("a",{className:"uppy-Dashboard-Item-previewLink",href:t.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":t.meta.name},ce("span",{hidden:!0},t.meta.name)),ce(Pq,{file:t}),ce($q,{file:t,i18n:n,toggleFileCard:i,metaFields:r}))}function qMe(e){if(!e.isUploaded){if(e.error&&!e.hideRetryButton){e.uppy.retryUpload(e.file.id);return}e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id)}}function CD(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function e5(e){return ce("div",{className:"uppy-Dashboard-Item-progress"},ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":CD(e),title:CD(e),onClick:()=>qMe(e)},e.children))}function M0(e){let{children:t}=e;return ce("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function t5(e){let{progress:t}=e;const n=2*Math.PI*15;return ce("g",null,ce("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),ce("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}function YMe(e){if(!e.file.progress.uploadStarted)return null;if(e.isUploaded)return ce("div",{className:"uppy-Dashboard-Item-progress"},ce("div",{className:"uppy-Dashboard-Item-progressIndicator"},ce(M0,null,ce("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),ce("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"}))));if(!e.recoveredState)return e.error&&!e.hideRetryButton?ce(e5,e,ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},ce("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),ce("path",{d:"M7.9 3H10v2H7.9z"}),ce("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),ce("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?ce(e5,e,ce(M0,null,ce(t5,{progress:e.file.progress.percentage}),e.file.isPaused?ce("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):ce("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},ce("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),ce("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):!e.resumableUploads&&e.individualCancellation&&!e.hideCancelButton?ce(e5,e,ce(M0,null,ce(t5,{progress:e.file.progress.percentage}),ce("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):ce("div",{className:"uppy-Dashboard-Item-progress"},ce("div",{className:"uppy-Dashboard-Item-progressIndicator"},ce(M0,null,ce(t5,{progress:e.file.progress.percentage}))))}const n5="...";function Aq(e,t){if(t===0)return"";if(e.length<=t)return e;if(t<=n5.length+1)return`${e.slice(0,t-1)}…`;const n=t-n5.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+n5+e.slice(-r)}const WMe=e=>{const{author:t,name:n}=e.file.meta;function i(){return e.isSingleFile&&e.containerHeight>=350?90:e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30}return ce("div",{className:"uppy-Dashboard-Item-name",title:n},Aq(n,i()))},GMe=e=>{var t;const{author:n}=e.file.meta,i=(t=e.file.remote)==null?void 0:t.providerName,r="·";return n?ce("div",{className:"uppy-Dashboard-Item-author"},ce("a",{href:`${n.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},Aq(n.name,13)),i?ce(nr,null,` ${r} `,i,` ${r} `):null):null},KMe=e=>e.file.size&&ce("div",{className:"uppy-Dashboard-Item-statusSize"},Sf(e.file.size)),ZMe=e=>e.file.isGhost&&ce("span",null," • ",ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))),XMe=e=>{let{file:t,onClick:n}=e;return t.error?ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};function JMe(e){const{file:t}=e;return ce("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},ce("div",{className:"uppy-Dashboard-Item-fileName"},WMe(e),ce(XMe,{file:e.file,onClick:()=>alert(e.file.error)})),ce("div",{className:"uppy-Dashboard-Item-status"},GMe(e),KMe(e),ZMe(e)),ce($q,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}function QMe(e,t){return t===void 0&&(t="Copy the URL below"),new Promise(n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch{return document.body.removeChild(i),r()}})}function eLe(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:a,onClick:o}=e;return!n&&i&&i.length>0||!n&&r(t)?ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":a("editFileWithFilename",{file:t.meta.name}),title:a("editFileWithFilename",{file:t.meta.name}),onClick:()=>o()},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},ce("g",{fillRule:"evenodd"},ce("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),ce("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),ce("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function tLe(e){let{i18n:t,onClick:n,file:i}=e;return ce("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},ce("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),ce("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}const nLe=(e,t)=>{QMe(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then(()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)}).catch(t.uppy.log).then(()=>e.target.focus({preventScroll:!0}))};function iLe(e){const{i18n:t}=e;return ce("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:n=>nLe(n,e)},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},ce("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}function rLe(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:a,showLinkToFileUploadResult:o,showRemoveButton:s,i18n:l,toggleFileCard:u,openFileEditor:c}=e;return ce("div",{className:"uppy-Dashboard-Item-actionWrapper"},ce(eLe,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:a,onClick:()=>{a&&a.length>0?u(!0,n.id):c(n)}}),o&&n.uploadURL?ce(iLe,{file:n,uppy:t,i18n:l}):null,s?ce(tLe,{i18n:l,file:n,uppy:t,onClick:()=>t.removeFile(n.id,"removed-by-user")}):null)}class aLe extends ms{componentDidMount(){const{file:t}=this.props;t.preview||this.props.handleRequestThumbnail(t)}shouldComponentUpdate(t){return!MMe(this.props,t)}componentDidUpdate(){const{file:t}=this.props;t.preview||this.props.handleRequestThumbnail(t)}componentWillUnmount(){const{file:t}=this.props;t.preview||this.props.handleCancelThumbnail(t)}render(){const{file:t}=this.props,n=t.progress.preprocess||t.progress.postprocess,i=t.progress.uploadComplete&&!n&&!t.error,r=t.progress.uploadStarted||n,a=t.progress.uploadStarted&&!t.progress.uploadComplete||n,o=t.error||!1,{isGhost:s}=t;let l=(this.props.individualCancellation||!a)&&!i;i&&this.props.showRemoveButtonAfterComplete&&(l=!0);const u=ll({"uppy-Dashboard-Item":!0,"is-inprogress":a&&!this.props.recoveredState,"is-processing":n,"is-complete":i,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return ce("div",{className:u,id:`uppy_${t.id}`,role:this.props.role},ce("div",{className:"uppy-Dashboard-Item-preview"},ce(HMe,{file:t,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),ce(YMe,{uppy:this.props.uppy,file:t,error:o,isUploaded:i,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),ce("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},ce(JMe,{file:t,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields,isSingleFile:this.props.isSingleFile}),ce(rLe,{file:t,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:l,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:r,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}function oLe(e,t){const n=[];let i=[];return e.forEach(r=>{i.length<t?i.push(r):(n.push(i),i=[r])}),i.length&&n.push(i),n}function sLe(e){let{id:t,error:n,i18n:i,uppy:r,files:a,acquirers:o,resumableUploads:s,hideRetryButton:l,hidePauseResumeButton:u,hideCancelButton:c,showLinkToFileUploadResult:d,showRemoveButtonAfterComplete:f,isWide:h,metaFields:m,isSingleFile:g,toggleFileCard:v,handleRequestThumbnail:y,handleCancelThumbnail:_,recoveredState:S,individualCancellation:w,itemsPerRow:x,openFileEditor:k,canEditFile:P,toggleAddFilesPanel:E,containerWidth:A,containerHeight:D}=e;const T=x===1?71:200,O=cy(()=>{const V=(q,ne)=>a[ne].isGhost-a[q].isGhost,j=Object.keys(a);return S&&j.sort(V),oLe(j,x)},[a,x,S]),N=V=>ce("div",{class:"uppy-Dashboard-filesInner",role:"presentation",key:V[0]},V.map(j=>ce(aLe,{key:j,uppy:r,id:t,error:n,i18n:i,acquirers:o,resumableUploads:s,individualCancellation:w,hideRetryButton:l,hidePauseResumeButton:u,hideCancelButton:c,showLinkToFileUploadResult:d,showRemoveButtonAfterComplete:f,isWide:h,metaFields:m,recoveredState:S,isSingleFile:g,containerWidth:A,containerHeight:D,toggleFileCard:v,handleRequestThumbnail:y,handleCancelThumbnail:_,role:"listitem",openFileEditor:k,canEditFile:P,toggleAddFilesPanel:E,file:a[j]})));return g?ce("div",{class:"uppy-Dashboard-files"},N(O[0])):ce(xMe,{class:"uppy-Dashboard-files",role:"list",data:O,renderRow:N,rowHeight:T})}let Oq;Oq=Symbol.for("uppy test: disable unused locale key warning");class Dq extends ms{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.triggerVideoCameraInputClick=()=>{this.mobileVideoFileInput.click()},this.triggerPhotoCameraInputClick=()=>{this.mobilePhotoFileInput.click()},this.onFileInputChange=t=>{this.props.handleInputChange(t),t.target.value=null},this.renderHiddenInput=(t,n)=>ce("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:t,type:"file",name:"files[]",multiple:this.props.maxNumberOfFiles!==1,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:n}),this.renderHiddenCameraInput=(t,n,i)=>{const a={photo:"image/*",video:"video/*"}[t];return ce("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,type:"file",name:`camera-${t}`,onChange:this.onFileInputChange,capture:n,accept:a,ref:i})},this.renderMyDeviceAcquirer=()=>ce("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},ce("div",{className:"uppy-DashboardTab-inner"},ce("svg",{className:"uppy-DashboardTab-iconMyDevice","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},ce("path",{d:"M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z",fill:"currentcolor","fill-rule":"evenodd"}))),ce("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderPhotoCamera=()=>ce("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobilePhotoCamera"},ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerPhotoCameraInputClick},ce("div",{className:"uppy-DashboardTab-inner"},ce("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},ce("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383","fill-rule":"nonzero"}))),ce("div",{className:"uppy-DashboardTab-name"},this.props.i18n("takePictureBtn")))),this.renderVideoCamera=()=>ce("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobileVideoCamera"},ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerVideoCameraInputClick},ce("div",{className:"uppy-DashboardTab-inner"},ce("svg",{"aria-hidden":"true",width:"32",height:"32",viewBox:"0 0 32 32"},ce("path",{fill:"#FF675E",fillRule:"nonzero",d:"m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z "}))),ce("div",{className:"uppy-DashboardTab-name"},this.props.i18n("recordVideoBtn")))),this.renderBrowseButton=(t,n)=>{const i=this.props.acquirers.length;return ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-browse",onClick:n,"data-uppy-super-focusable":i===0},t)},this.renderDropPasteBrowseTagline=t=>{const n=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),i=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),r=this.props.fileManagerSelectionType,a=r.charAt(0).toUpperCase()+r.slice(1);return ce("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):t>0?this.props.i18nArray(`dropPasteImport${a}`,{browseFiles:n,browseFolders:i,browse:n}):this.props.i18nArray(`dropPaste${a}`,{browseFiles:n,browseFolders:i,browse:n}))},this.renderAcquirer=t=>{var n;return ce("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":t.id},ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":t.id,"aria-controls":`uppy-DashboardContent-panel--${t.id}`,"aria-selected":((n=this.props.activePickerPanel)==null?void 0:n.id)===t.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(t.id)},ce("div",{className:"uppy-DashboardTab-inner"},t.icon()),ce("div",{className:"uppy-DashboardTab-name"},t.name)))},this.renderAcquirers=t=>{const n=[...t],i=n.splice(t.length-2,t.length);return ce(nr,null,n.map(r=>this.renderAcquirer(r)),ce("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map(r=>this.renderAcquirer(r))))},this.renderSourcesList=(t,n)=>{const{showNativePhotoCameraButton:i,showNativeVideoCameraButton:r}=this.props;let a=[];const o="myDevice";n||a.push({key:o,elements:this.renderMyDeviceAcquirer()}),i&&a.push({key:"nativePhotoCameraButton",elements:this.renderPhotoCamera()}),r&&a.push({key:"nativePhotoCameraButton",elements:this.renderVideoCamera()}),a.push(...t.map(d=>({key:d.id,elements:this.renderAcquirer(d)}))),a.length===1&&a[0].key===o&&(a=[]);const l=[...a],u=l.splice(a.length-2,a.length),c=d=>d.map(f=>{let{key:h,elements:m}=f;return ce(nr,{key:h},m)});return ce(nr,null,this.renderDropPasteBrowseTagline(a.length),ce("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},c(l),ce("span",{role:"presentation",style:{"white-space":"nowrap"}},c(u))))}}[Oq](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:t}=this.props,n=ce("span",null,ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},ce("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),ce("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy")),i=t("poweredBy",{uppy:n});return ce("a",{tabIndex:-1,href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},i)}render(){const{showNativePhotoCameraButton:t,showNativeVideoCameraButton:n,nativeCameraFacingMode:i}=this.props;return ce("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,r=>{this.fileInput=r}),this.renderHiddenInput(!0,r=>{this.folderInput=r}),t&&this.renderHiddenCameraInput("photo",i,r=>{this.mobilePhotoFileInput=r}),n&&this.renderHiddenCameraInput("video",i,r=>{this.mobileVideoFileInput=r}),this.renderSourcesList(this.props.acquirers,this.props.disableLocalFiles),ce("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&ce("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}const lLe=e=>ce("div",{className:ll("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":!e.showAddFilesPanel},ce("div",{className:"uppy-DashboardContent-bar"},ce("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),ce("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),ce(Dq,e));function Kc(e){const{tagName:t}=e.target;if(t==="INPUT"||t==="TEXTAREA"){e.stopPropagation();return}e.preventDefault(),e.stopPropagation()}function uLe(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:a,uppy:o}=e;return ce("div",{className:ll("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:Kc,onDragLeave:Kc,onDrop:Kc,onPaste:Kc},ce("div",{className:"uppy-DashboardContent-bar"},ce("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),ce("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),ce("div",{className:"uppy-DashboardContent-panelBody"},o.getPlugin(t.id).render(a)))}function cLe(e){const t=e.files[e.fileCardFor],n=()=>{e.uppy.emit("file-editor:cancel",t),e.closeFileEditor()};return ce("div",{className:ll("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},ce("div",{className:"uppy-DashboardContent-bar"},ce("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:ce("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),ce("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n},e.i18n("cancel")),ce("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),ce("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map(i=>e.uppy.getPlugin(i.id).render(e.state))))}const Tl={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function dLe(e,t,n,i){if(i===void 0&&(i={}),e)return Tl.STATE_ERROR;if(t)return Tl.STATE_COMPLETE;if(n)return Tl.STATE_PAUSED;let r=Tl.STATE_WAITING;const a=Object.keys(i);for(let o=0;o<a.length;o++){const{progress:s}=i[a[o]];if(s.uploadStarted&&!s.uploadComplete)return Tl.STATE_UPLOADING;s.preprocess&&r!==Tl.STATE_UPLOADING&&(r=Tl.STATE_PREPROCESSING),s.postprocess&&r!==Tl.STATE_UPLOADING&&r!==Tl.STATE_PREPROCESSING&&(r=Tl.STATE_POSTPROCESSING)}return r}function fLe(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:a,inProgressNotPausedFiles:o,newFiles:s,processingFiles:l}=e;switch(dLe(r,i,a,t)){case"uploading":return n("uploadingXFiles",{smart_count:o.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:s.length});case"complete":return n("uploadComplete");case"error":return n("error")}}function hLe(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:a,uppy:o}=e;let{allowNewUpload:s}=e;return s&&r&&(s=e.totalFileCount<e.maxNumberOfFiles),ce("div",{className:"uppy-DashboardContent-bar"},!n&&!i?ce("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>o.cancelAll()},t("cancel")):ce("div",null),ce("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},ce(fLe,e)),s?ce("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>a(!0)},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},ce("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),ce("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):ce("div",null))}function pLe(e){const{computedMetaFields:t,requiredMetaFields:n,updateMeta:i,form:r,formState:a}=e,o={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return t.map(s=>{const l=`uppy-Dashboard-FileCard-input-${s.id}`,u=n.includes(s.id);return ce("fieldset",{key:s.id,className:"uppy-Dashboard-FileCard-fieldset"},ce("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:l},s.name),s.render!==void 0?s.render({value:a[s.id],onChange:c=>i(c,s.id),fieldCSSClasses:o,required:u,form:r.id},ce):ce("input",{className:o.text,id:l,form:r.id,type:s.type||"text",required:u,value:a[s.id],placeholder:s.placeholder,onInput:c=>i(c.target.value,s.id),"data-uppy-super-focusable":!0}))})}function mLe(e){var t;const{files:n,fileCardFor:i,toggleFileCard:r,saveFileCard:a,metaFields:o,requiredMetaFields:s,openFileEditor:l,i18n:u,i18nArray:c,className:d,canEditFile:f}=e,h=()=>typeof o=="function"?o(n[i]):o,m=n[i],g=(t=h())!=null?t:[],v=f(m),y={};g.forEach(E=>{var A;y[E.id]=(A=m.meta[E.id])!=null?A:""});const[_,S]=On(y),w=lbe(E=>{E.preventDefault(),a(_,i)},[a,_,i]),x=(E,A)=>{S({..._,[A]:E})},k=()=>{r(!1)},[P]=On(()=>{const E=document.createElement("form");return E.setAttribute("tabindex","-1"),E.id=Gw(),E});return Ni(()=>(document.body.appendChild(P),P.addEventListener("submit",w),()=>{P.removeEventListener("submit",w),document.body.removeChild(P)}),[P,w]),ce("div",{className:ll("uppy-Dashboard-FileCard",d),"data-uppy-panelType":"FileCard",onDragOver:Kc,onDragLeave:Kc,onDrop:Kc,onPaste:Kc},ce("div",{className:"uppy-DashboardContent-bar"},ce("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},c("editing",{file:ce("span",{className:"uppy-DashboardContent-titleFile"},m.meta?m.meta.name:m.name)})),ce("button",{className:"uppy-DashboardContent-back",type:"button",form:P.id,title:u("finishEditingFile"),onClick:k},u("cancel"))),ce("div",{className:"uppy-Dashboard-FileCard-inner"},ce("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:oT(m.type).color}},ce(Pq,{file:m}),v&&ce("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:E=>{w(E),l(m)}},u("editImage"))),ce("div",{className:"uppy-Dashboard-FileCard-info"},ce(pLe,{computedMetaFields:g,requiredMetaFields:s,updateMeta:x,form:P,formState:_})),ce("div",{className:"uppy-Dashboard-FileCard-actions"},ce("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"submit",form:P.id},u("saveChanges")),ce("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:k,form:P.id},u("cancel")))))}const Yh="uppy-transition-slideDownUp",ED=250;function L0(e){let{children:t}=e;const[n,i]=On(null),[r,a]=On(""),o=s_(),s=s_(),l=s_(),u=()=>{a(`${Yh}-enter`),cancelAnimationFrame(l.current),clearTimeout(s.current),s.current=void 0,l.current=requestAnimationFrame(()=>{a(`${Yh}-enter ${Yh}-enter-active`),o.current=setTimeout(()=>{a("")},ED)})},c=()=>{a(`${Yh}-leave`),cancelAnimationFrame(l.current),clearTimeout(o.current),o.current=void 0,l.current=requestAnimationFrame(()=>{a(`${Yh}-leave ${Yh}-leave-active`),s.current=setTimeout(()=>{i(null),a("")},ED)})};return Ni(()=>{const d=Rc(t)[0];n!==d&&(d&&!n?u():n&&!d&&!s.current&&c(),i(d))},[t,n]),Ni(()=>()=>{clearTimeout(o.current),clearTimeout(s.current),cancelAnimationFrame(l.current)},[]),n?Mz(n,{className:ll(r,n.props.className)}):null}function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mf.apply(this,arguments)}const xD=900,kD=700,i5=576,TD=330;function vLe(e){const t=e.totalFileCount===0,n=e.totalFileCount===1,i=e.containerWidth>i5,r=e.containerHeight>TD,a=ll({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>i5,"uppy-size--lg":e.containerWidth>kD,"uppy-size--xl":e.containerWidth>xD,"uppy-size--height-md":e.containerHeight>TD,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible,"uppy-Dashboard--singleFile":e.singleFileFullScreen&&n&&r});let o=1;e.containerWidth>xD?o=5:e.containerWidth>kD?o=4:e.containerWidth>i5&&(o=3);const s=e.showSelectedFiles&&!t,l=e.recoveredState?Object.keys(e.recoveredState.files).length:null,u=e.files?Object.keys(e.files).filter(f=>e.files[f].isGhost).length:null,c=()=>u>0?e.i18n("recoveredXFiles",{smart_count:u}):e.i18n("recoveredAllFiles");return ce("div",{className:a,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&IMe(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},ce("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),ce("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:e.inline?void 0:"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:ce("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},ce("span",{"aria-hidden":"true"},"×")),ce("div",{className:"uppy-Dashboard-innerWrap"},ce("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),s&&ce(hLe,e),l&&ce("div",{className:"uppy-Dashboard-serviceMsg"},ce("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},ce("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},ce("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),ce("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),ce("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),ce("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),ce("div",{className:"uppy-Dashboard-serviceMsg-text"},c())),s?ce(sLe,{id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,files:e.files,acquirers:e.acquirers,resumableUploads:e.resumableUploads,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail,recoveredState:e.recoveredState,individualCancellation:e.individualCancellation,openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,isSingleFile:n,itemsPerRow:o}):ce(Dq,mf({},e,{isSizeMD:i})),ce(L0,null,e.showAddFilesPanel?ce(lLe,mf({key:"AddFiles"},e,{isSizeMD:i})):null),ce(L0,null,e.fileCardFor?ce(mLe,mf({key:"FileCard"},e)):null),ce(L0,null,e.activePickerPanel?ce(uLe,mf({key:"Picker"},e)):null),ce(L0,null,e.showFileEditor?ce(cLe,mf({key:"Editor"},e)):null),ce("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map(f=>e.uppy.getPlugin(f.id).render(e.state))))))}const gLe={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editImage:"Edit image",editing:"Editing %{file}",error:"Error",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},takePictureBtn:"Take Picture",recordVideoBtn:"Record Video"}};function yi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yLe=0;function pl(e){return"__private_"+yLe+++"_"+e}const _Le={version:"3.9.1"},r5=wD.default||wD,PD=9,bLe=27;function $D(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}const wLe={target:"body",metaFields:[],inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:kMe,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,singleFileFullScreen:!0,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,showNativePhotoCameraButton:!1,showNativeVideoCameraButton:!1,theme:"light",autoOpen:null,autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1,doneButtonHandler:void 0,onRequestCloseModal:null};var Wd=pl("disabledNodes"),Au=pl("generateLargeThumbnailIfSingleFile"),zv=pl("openFileEditorWhenFilesAdded"),Gd=pl("attachRenderFunctionToTarget"),a5=pl("isTargetSupported"),o5=pl("getAcquirers"),s5=pl("getProgressIndicators"),Ou=pl("getEditors"),l5=pl("addSpecifiedPluginsFromOptions"),u5=pl("autoDiscoverPlugins"),Kd=pl("addSupportedPluginIfNoTarget");class Cd extends qm{constructor(t,n){var i,r;let a;n?n.autoOpen===void 0?a=n.autoOpenFileEditor?"imageEditor":null:a=n.autoOpen:a=null,super(t,{...wLe,...n,autoOpen:a}),Object.defineProperty(this,Wd,{writable:!0,value:void 0}),this.modalName=`uppy-Dashboard-${Gw()}`,this.superFocus=DMe(),this.ifFocusedOnUppyRecently=!1,this.removeTarget=o=>{const l=this.getPluginState().targets.filter(u=>u.id!==o.id);this.setPluginState({targets:l})},this.addTarget=o=>{const s=o.id||o.constructor.name,l=o.title||s,u=o.type;if(u!=="acquirer"&&u!=="progressindicator"&&u!=="editor"){const h="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return this.uppy.log(h,"error"),null}const c={id:s,name:l,type:u},f=this.getPluginState().targets.slice();return f.push(c),this.setPluginState({targets:f}),this.el},this.hideAllPanels=()=>{var o;const s=this.getPluginState(),l={activePickerPanel:void 0,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};s.activePickerPanel===l.activePickerPanel&&s.showAddFilesPanel===l.showAddFilesPanel&&s.showFileEditor===l.showFileEditor&&s.activeOverlayType===l.activeOverlayType||(this.setPluginState(l),this.uppy.emit("dashboard:close-panel",(o=s.activePickerPanel)==null?void 0:o.id))},this.showPanel=o=>{const{targets:s}=this.getPluginState(),l=s.find(u=>u.type==="acquirer"&&u.id===o);this.setPluginState({activePickerPanel:l,activeOverlayType:"PickerPanel"}),this.uppy.emit("dashboard:show-panel",o)},this.canEditFile=o=>{const{targets:s}=this.getPluginState();return yi(this,Ou)[Ou](s).some(u=>this.uppy.getPlugin(u.id).canEditFile(o))},this.openFileEditor=o=>{const{targets:s}=this.getPluginState(),l=yi(this,Ou)[Ou](s);this.setPluginState({showFileEditor:!0,fileCardFor:o.id||null,activeOverlayType:"FileEditor"}),l.forEach(u=>{this.uppy.getPlugin(u.id).selectFile(o)})},this.closeFileEditor=()=>{const{metaFields:o}=this.getPluginState();o&&o.length>0?this.setPluginState({showFileEditor:!1,activeOverlayType:"FileCard"}):this.setPluginState({showFileEditor:!1,fileCardFor:null,activeOverlayType:"AddFiles"})},this.saveFileEditor=()=>{const{targets:o}=this.getPluginState();yi(this,Ou)[Ou](o).forEach(l=>{this.uppy.getPlugin(l.id).save()}),this.closeFileEditor()},this.openModal=()=>{const{promise:o,resolve:s}=$D();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const l=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",l,!1),s()};this.el.addEventListener("animationend",l,!1)}else this.setPluginState({isHidden:!1}),s();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),o},this.closeModal=o=>{var s;const l=(s=o==null?void 0:o.manualClose)!=null?s:!0,{isHidden:u,isClosing:c}=this.getPluginState();if(u||c)return;const{promise:d,resolve:f}=$D();if(this.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),this.opts.animateOpenClose){this.setPluginState({isClosing:!0});const m=()=>{this.setPluginState({isHidden:!0,isClosing:!1}),this.superFocus.cancel(),this.savedActiveElement.focus(),this.el.removeEventListener("animationend",m,!1),f()};this.el.addEventListener("animationend",m,!1)}else this.setPluginState({isHidden:!0}),this.superFocus.cancel(),this.savedActiveElement.focus(),f();if(document.removeEventListener("keydown",this.handleKeyDownInModal),l&&this.opts.browserBackButtonClose){var h;(h=history.state)!=null&&h[this.modalName]&&history.back()}return this.uppy.emit("dashboard:modal-closed"),d},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=o=>{const{capabilities:s}=this.uppy.getState();this.uppy.setState({capabilities:{...s,darkMode:o}})},this.handleSystemDarkModeChange=o=>{const s=o.matches;this.uppy.log(`[Dashboard] Dark mode is ${s?"on":"off"}`),this.setDarkModeCapability(s)},this.toggleFileCard=(o,s)=>{const l=this.uppy.getFile(s);o?this.uppy.emit("dashboard:file-edit-start",l):this.uppy.emit("dashboard:file-edit-complete",l),this.setPluginState({fileCardFor:o?s:null,activeOverlayType:o?"FileCard":null})},this.toggleAddFilesPanel=o=>{this.setPluginState({showAddFilesPanel:o,activeOverlayType:o?"AddFiles":null})},this.addFiles=o=>{const s=o.map(l=>({source:this.id,name:l.name,type:l.type,data:l,meta:{relativePath:l.relativePath||l.webkitRelativePath||null}}));try{this.uppy.addFiles(s)}catch(l){this.uppy.log(l)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver(o=>{const s=o[0],{width:l,height:u}=s.contentRect;this.setPluginState({containerWidth:l,containerHeight:u,areInsidesReadyToBeVisible:!0})}),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(()=>{const o=this.getPluginState(),s=!this.opts.inline&&o.isHidden;!o.areInsidesReadyToBeVisible&&!s&&(this.uppy.log("[Dashboard] resize event didn’t fire on time: defaulted to mobile layout","warning"),this.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=o=>{this.el.contains(o.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableInteractiveElements=o=>{var s;const l=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[role="button"]:not([disabled])'],u=(s=yi(this,Wd)[Wd])!=null?s:Dg(this.el.querySelectorAll(l)).filter(c=>!c.classList.contains("uppy-Dashboard-close"));for(const c of u)c.tagName==="A"?c.setAttribute("aria-disabled",o):c.disabled=o;o?yi(this,Wd)[Wd]=u:yi(this,Wd)[Wd]=null,this.dashboardIsDisabled=o},this.updateBrowserHistory=()=>{var o;(o=history.state)!=null&&o[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=o=>{var s;this.isModalOpen()&&(!o.state||!o.state[this.modalName])&&this.closeModal({manualClose:!1}),!this.isModalOpen()&&(s=o.state)!=null&&s[this.modalName]&&history.back()},this.handleKeyDownInModal=o=>{o.keyCode===bLe&&this.requestCloseModal(),o.keyCode===PD&&Tq(o,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=o=>{this.uppy.iteratePlugins(l=>{l.type==="acquirer"&&(l.handleRootPaste==null||l.handleRootPaste(o))});const s=Dg(o.clipboardData.files);s.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(s))},this.handleInputChange=o=>{o.preventDefault();const s=Dg(o.target.files);s.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(s))},this.handleDragOver=o=>{var s,l;o.preventDefault(),o.stopPropagation();const u=()=>{let h=!0;return this.uppy.iteratePlugins(m=>{m.canHandleRootDrop!=null&&m.canHandleRootDrop(o)&&(h=!0)}),h},c=()=>{const{types:h}=o.dataTransfer;return h.some(m=>m==="Files")},d=u(),f=c();if(!d&&!f||this.opts.disabled||this.opts.disableLocalFiles&&(f||!d)||!this.uppy.getState().allowNewUpload){o.dataTransfer.dropEffect="none",clearTimeout(this.removeDragOverClassTimeout);return}o.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),(s=(l=this.opts).onDragOver)==null||s.call(l,o)},this.handleDragLeave=o=>{var s,l;o.preventDefault(),o.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(()=>{this.setPluginState({isDraggingOver:!1})},50),(s=(l=this.opts).onDragLeave)==null||s.call(l,o)},this.handleDrop=async o=>{var s,l;o.preventDefault(),o.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins(f=>{f.type==="acquirer"&&(f.handleRootDrop==null||f.handleRootDrop(o))});let u=!1;const c=f=>{this.uppy.log(f,"error"),u||(this.uppy.info(f.message,"error"),u=!0)};this.uppy.log("[Dashboard] Processing dropped files");const d=await bMe(o.dataTransfer,{logDropError:c});d.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(d)),(s=(l=this.opts).onDrop)==null||s.call(l,o)},this.handleRequestThumbnail=o=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",o)},this.handleCancelThumbnail=o=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",o)},this.handleKeyDownInInline=o=>{o.keyCode===PD&&OMe(o,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=o=>{this.el.contains(document.activeElement)&&this.handlePaste(o)},this.handleComplete=o=>{let{failed:s}=o;this.opts.closeAfterFinish&&!(s!=null&&s.length)&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,Au,{writable:!0,value:()=>{if(this.opts.disableThumbnailGenerator)return;const o=600,s=this.uppy.getFiles();if(s.length===1){const l=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);l==null||l.setOptions({thumbnailWidth:o});const u={...s[0],preview:void 0};l==null||l.requestThumbnail(u).then(()=>{l==null||l.setOptions({thumbnailWidth:this.opts.thumbnailWidth})})}}}),Object.defineProperty(this,zv,{writable:!0,value:o=>{const s=o[0],{metaFields:l}=this.getPluginState(),u=l&&l.length>0,c=this.canEditFile(s);u&&this.opts.autoOpen==="metaEditor"?this.toggleFileCard(!0,s.id):c&&this.opts.autoOpen==="imageEditor"&&this.openFileEditor(s)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const o=_D(this.opts.trigger);o?o.forEach(s=>s.addEventListener("click",this.openModal)):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-added",yi(this,Kd)[Kd]),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),this.uppy.on("files-added",yi(this,Au)[Au]),this.uppy.on("file-removed",yi(this,Au)[Au]),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpen&&this.uppy.on("files-added",yi(this,zv)[zv])},this.removeEvents=()=>{const o=_D(this.opts.trigger);!this.opts.inline&&o&&o.forEach(s=>s.removeEventListener("click",this.openModal)),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-added",yi(this,Kd)[Kd]),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),this.uppy.off("files-added",yi(this,Au)[Au]),this.uppy.off("file-removed",yi(this,Au)[Au]),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpen&&this.uppy.off("files-added",yi(this,zv)[zv])},this.superFocusOnEachUpdate=()=>{const o=this.el.contains(document.activeElement),s=document.activeElement===document.body||document.activeElement===null,l=this.uppy.getState().info.length===0,u=!this.opts.inline;l&&(u||o||s&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{if(this.opts.disabled&&!this.dashboardIsDisabled){this.disableInteractiveElements(!0);return}!this.opts.disabled&&this.dashboardIsDisabled&&this.disableInteractiveElements(!1),this.superFocusOnEachUpdate()},this.saveFileCard=(o,s)=>{this.uppy.setFileMeta(s,o),this.toggleFileCard(!1,s)},Object.defineProperty(this,Gd,{writable:!0,value:o=>{const s=this.uppy.getPlugin(o.id);return{...o,icon:s.icon||this.opts.defaultPickerIcon,render:s.render}}}),Object.defineProperty(this,a5,{writable:!0,value:o=>{const s=this.uppy.getPlugin(o.id);return typeof s.isSupported!="function"?!0:s.isSupported()}}),Object.defineProperty(this,o5,{writable:!0,value:r5(o=>o.filter(s=>s.type==="acquirer"&&yi(this,a5)[a5](s)).map(yi(this,Gd)[Gd]))}),Object.defineProperty(this,s5,{writable:!0,value:r5(o=>o.filter(s=>s.type==="progressindicator").map(yi(this,Gd)[Gd]))}),Object.defineProperty(this,Ou,{writable:!0,value:r5(o=>o.filter(s=>s.type==="editor").map(yi(this,Gd)[Gd]))}),this.render=o=>{const s=this.getPluginState(),{files:l,capabilities:u,allowNewUpload:c}=o,{newFiles:d,uploadStartedFiles:f,completeFiles:h,erroredFiles:m,inProgressFiles:g,inProgressNotPausedFiles:v,processingFiles:y,isUploadStarted:_,isAllComplete:S,isAllErrored:w,isAllPaused:x}=this.uppy.getObjectOfFilesPerState(),k=yi(this,o5)[o5](s.targets),P=yi(this,s5)[s5](s.targets),E=yi(this,Ou)[Ou](s.targets);let A;return this.opts.theme==="auto"?A=u.darkMode?"dark":"light":A=this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),vLe({state:o,isHidden:s.isHidden,files:l,newFiles:d,uploadStartedFiles:f,completeFiles:h,erroredFiles:m,inProgressFiles:g,inProgressNotPausedFiles:v,processingFiles:y,isUploadStarted:_,isAllComplete:S,isAllErrored:w,isAllPaused:x,totalFileCount:Object.keys(l).length,totalProgress:o.totalProgress,allowNewUpload:c,acquirers:k,theme:A,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:s.activePickerPanel,showFileEditor:s.showFileEditor,saveFileEditor:this.saveFileEditor,closeFileEditor:this.closeFileEditor,disableInteractiveElements:this.disableInteractiveElements,animateOpenClose:this.opts.animateOpenClose,isClosing:s.isClosing,progressindicators:P,editors:E,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:o.recoveredState,metaFields:s.metaFields,resumableUploads:u.resumableUploads||!1,individualCancellation:u.individualCancellation,isMobileDevice:u.isMobileDevice,fileCardFor:s.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:s.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:s.containerWidth,containerHeight:s.containerHeight,areInsidesReadyToBeVisible:s.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,showNativePhotoCameraButton:this.opts.showNativePhotoCameraButton,showNativeVideoCameraButton:this.opts.showNativeVideoCameraButton,nativeCameraFacingMode:this.opts.nativeCameraFacingMode,singleFileFullScreen:this.opts.singleFileFullScreen,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:s.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},Object.defineProperty(this,l5,{writable:!0,value:()=>{(this.opts.plugins||[]).forEach(s=>{const l=this.uppy.getPlugin(s);l?l.mount(this,l):this.uppy.log(`[Uppy] Dashboard could not find plugin '${s}', make sure to uppy.use() the plugins you are specifying`,"warning")})}}),Object.defineProperty(this,u5,{writable:!0,value:()=>{this.uppy.iteratePlugins(yi(this,Kd)[Kd])}}),Object.defineProperty(this,Kd,{writable:!0,value:o=>{var s;const l=["acquirer","editor"];o&&!((s=o.opts)!=null&&s.target)&&l.includes(o.type)&&(this.getPluginState().targets.some(c=>o.id===c.id)||o.mount(this,o))}}),this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:void 0,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:o,closeAfterFinish:s}=this.opts;if(o&&s)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:l,allowMultipleUploadBatches:u}=this.uppy.opts;(l||u)&&s&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:c}=this.opts;c&&this.mount(c,this),this.opts.disableStatusBar||this.uppy.use(uq,{id:`${this.id}:StatusBar`,target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(dq,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(bq,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery=typeof window<"u"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const d=this.darkModeMediaQuery?this.darkModeMediaQuery.matches:!1;if(this.uppy.log(`[Dashboard] Dark mode is ${d?"on":"off"}`),this.setDarkModeCapability(d),this.opts.theme==="auto"){var f;(f=this.darkModeMediaQuery)==null||f.addListener(this.handleSystemDarkModeChange)}yi(this,l5)[l5](),yi(this,u5)[u5](),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const l=this.uppy.getPlugin(`${this.id}:Informer`);l&&this.uppy.removePlugin(l)}if(!this.opts.disableStatusBar){const l=this.uppy.getPlugin(`${this.id}:StatusBar`);l&&this.uppy.removePlugin(l)}if(!this.opts.disableThumbnailGenerator){const l=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);l&&this.uppy.removePlugin(l)}if((this.opts.plugins||[]).forEach(l=>{const u=this.uppy.getPlugin(l);u&&u.unmount()}),this.opts.theme==="auto"){var s;(s=this.darkModeMediaQuery)==null||s.removeListener(this.handleSystemDarkModeChange)}this.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.defaultLocale=gLe,this.opts.doneButtonHandler===void 0&&(this.opts.doneButtonHandler=()=>{this.uppy.clearUploadedFiles(),this.requestCloseModal()}),(r=(i=this.opts).onRequestCloseModal)!=null||(i.onRequestCloseModal=()=>this.closeModal()),this.i18nInit()}}Cd.VERSION=_Le.version;/*! * Cropper.js v1.5.7 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2020-05-23T05:23:00.081Z */function E_(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E_=function(t){return typeof t}:E_=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E_(e)}function SLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function CLe(e,t,n){return t&&AD(e.prototype,t),n&&AD(e,n),e}function ELe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function Iq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(i){ELe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Nq(e){return xLe(e)||kLe(e)||TLe(e)||PLe()}function xLe(e){if(Array.isArray(e))return lE(e)}function kLe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TLe(e,t){if(e){if(typeof e=="string")return lE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lE(e,t)}}function lE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function PLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Qw=typeof window<"u"&&typeof window.document<"u",Jl=Qw?window:{},sT=Qw&&Jl.document.documentElement?"ontouchstart"in Jl.document.documentElement:!1,lT=Qw?"PointerEvent"in Jl:!1,_i="cropper",uT="all",Mq="crop",Lq="move",Rq="zoom",Zd="e",Xd="w",Wh="s",xc="n",jv="ne",Uv="nw",Hv="se",qv="sw",uE="".concat(_i,"-crop"),DD="".concat(_i,"-disabled"),lo="".concat(_i,"-hidden"),ID="".concat(_i,"-hide"),$Le="".concat(_i,"-invisible"),Wb="".concat(_i,"-modal"),cE="".concat(_i,"-move"),O1="".concat(_i,"Action"),R0="".concat(_i,"Preview"),cT="crop",Fq="move",Vq="none",dE="crop",fE="cropend",hE="cropmove",pE="cropstart",ND="dblclick",ALe=sT?"touchstart":"mousedown",OLe=sT?"touchmove":"mousemove",DLe=sT?"touchend touchcancel":"mouseup",MD=lT?"pointerdown":ALe,LD=lT?"pointermove":OLe,RD=lT?"pointerup pointercancel":DLe,FD="ready",VD="resize",BD="wheel",mE="zoom",zD="image/jpeg",ILe=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,NLe=/^data:/,MLe=/^data:image\/jpeg;base64,/,LLe=/^img|canvas$/i,jD={viewMode:0,dragMode:cT,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},RLe='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',FLe=Number.isNaN||Jl.isNaN;function bn(e){return typeof e=="number"&&!FLe(e)}var UD=function(t){return t>0&&t<1/0};function c5(e){return typeof e>"u"}function eh(e){return E_(e)==="object"&&e!==null}var VLe=Object.prototype.hasOwnProperty;function dp(e){if(!eh(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&VLe.call(n,"isPrototypeOf")}catch{return!1}}function oo(e){return typeof e=="function"}var BLe=Array.prototype.slice;function Bq(e){return Array.from?Array.from(e):BLe.call(e)}function gr(e,t){return e&&oo(t)&&(Array.isArray(e)||bn(e.length)?Bq(e).forEach(function(n,i){t.call(e,n,i,e)}):eh(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var bi=Object.assign||function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return eh(t)&&i.length>0&&i.forEach(function(a){eh(a)&&Object.keys(a).forEach(function(o){t[o]=a[o]})}),t},zLe=/\.\d*(?:0|9){12}\d*$/;function Tp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return zLe.test(e)?Math.round(e*t)/t:e}var jLe=/^width|height|left|top|marginLeft|marginTop$/;function Zc(e,t){var n=e.style;gr(t,function(i,r){jLe.test(r)&&bn(i)&&(i="".concat(i,"px")),n[r]=i})}function ULe(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function qr(e,t){if(t){if(bn(e.length)){gr(e,function(i){qr(i,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Yl(e,t){if(t){if(bn(e.length)){gr(e,function(n){Yl(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function fp(e,t,n){if(t){if(bn(e.length)){gr(e,function(i){fp(i,t,n)});return}n?qr(e,t):Yl(e,t)}}var HLe=/([a-z\d])([A-Z])/g;function dT(e){return e.replace(HLe,"$1-$2").toLowerCase()}function vE(e,t){return eh(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(dT(t)))}function D1(e,t,n){eh(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(dT(t)),n)}function qLe(e,t){if(eh(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(dT(t)))}var zq=/\s\s*/,jq=function(){var e=!1;if(Qw){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(a){t=a}});Jl.addEventListener("test",n,i),Jl.removeEventListener("test",n,i)}return e}();function Vs(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(zq).forEach(function(a){if(!jq){var o=e.listeners;o&&o[a]&&o[a][n]&&(r=o[a][n],delete o[a][n],Object.keys(o[a]).length===0&&delete o[a],Object.keys(o).length===0&&delete e.listeners)}e.removeEventListener(a,r,i)})}function rs(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(zq).forEach(function(a){if(i.once&&!jq){var o=e.listeners,s=o===void 0?{}:o;r=function(){delete s[a][n],e.removeEventListener(a,r,i);for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];n.apply(e,c)},s[a]||(s[a]={}),s[a][n]&&e.removeEventListener(a,s[a][n],i),s[a][n]=r,e.listeners=s}e.addEventListener(a,r,i)})}function Pp(e,t,n){var i;return oo(Event)&&oo(CustomEvent)?i=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(i)}function Uq(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var d5=Jl.location,YLe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function HD(e){var t=e.match(YLe);return t!==null&&(t[1]!==d5.protocol||t[2]!==d5.hostname||t[3]!==d5.port)}function qD(e){var t="timestamp=".concat(new Date().getTime());return e+(e.indexOf("?")===-1?"?":"&")+t}function Ig(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,r=e.translateX,a=e.translateY,o=[];bn(r)&&r!==0&&o.push("translateX(".concat(r,"px)")),bn(a)&&a!==0&&o.push("translateY(".concat(a,"px)")),bn(t)&&t!==0&&o.push("rotate(".concat(t,"deg)")),bn(n)&&n!==1&&o.push("scaleX(".concat(n,")")),bn(i)&&i!==1&&o.push("scaleY(".concat(i,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function WLe(e){var t=Iq({},e),n=[];return gr(e,function(i,r){delete t[r],gr(t,function(a){var o=Math.abs(i.startX-a.startX),s=Math.abs(i.startY-a.startY),l=Math.abs(i.endX-a.endX),u=Math.abs(i.endY-a.endY),c=Math.sqrt(o*o+s*s),d=Math.sqrt(l*l+u*u),f=(d-c)/c;n.push(f)})}),n.sort(function(i,r){return Math.abs(i)<Math.abs(r)}),n[0]}function F0(e,t){var n=e.pageX,i=e.pageY,r={endX:n,endY:i};return t?r:Iq({startX:n,startY:i},r)}function GLe(e){var t=0,n=0,i=0;return gr(e,function(r){var a=r.startX,o=r.startY;t+=a,n+=o,i+=1}),t/=i,n/=i,{pageX:t,pageY:n}}function Xc(e){var t=e.aspectRatio,n=e.height,i=e.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=UD(i),o=UD(n);if(a&&o){var s=n*t;r==="contain"&&s>i||r==="cover"&&s<i?n=i/t:i=n*t}else a?n=i/t:o&&(i=n*t);return{width:i,height:n}}function KLe(e){var t=e.width,n=e.height,i=e.degree;if(i=Math.abs(i)%180,i===90)return{width:n,height:t};var r=i%90*Math.PI/180,a=Math.sin(r),o=Math.cos(r),s=t*o+n*a,l=t*a+n*o;return i>90?{width:l,height:s}:{width:s,height:l}}function ZLe(e,t,n,i){var r=t.aspectRatio,a=t.naturalWidth,o=t.naturalHeight,s=t.rotate,l=s===void 0?0:s,u=t.scaleX,c=u===void 0?1:u,d=t.scaleY,f=d===void 0?1:d,h=n.aspectRatio,m=n.naturalWidth,g=n.naturalHeight,v=i.fillColor,y=v===void 0?"transparent":v,_=i.imageSmoothingEnabled,S=_===void 0?!0:_,w=i.imageSmoothingQuality,x=w===void 0?"low":w,k=i.maxWidth,P=k===void 0?1/0:k,E=i.maxHeight,A=E===void 0?1/0:E,D=i.minWidth,T=D===void 0?0:D,O=i.minHeight,N=O===void 0?0:O,V=document.createElement("canvas"),j=V.getContext("2d"),q=Xc({aspectRatio:h,width:P,height:A}),ne=Xc({aspectRatio:h,width:T,height:N},"cover"),ae=Math.min(q.width,Math.max(ne.width,m)),Y=Math.min(q.height,Math.max(ne.height,g)),M=Xc({aspectRatio:r,width:P,height:A}),I=Xc({aspectRatio:r,width:T,height:N},"cover"),W=Math.min(M.width,Math.max(I.width,a)),te=Math.min(M.height,Math.max(I.height,o)),he=[-W/2,-te/2,W,te];return V.width=Tp(ae),V.height=Tp(Y),j.fillStyle=y,j.fillRect(0,0,ae,Y),j.save(),j.translate(ae/2,Y/2),j.rotate(l*Math.PI/180),j.scale(c,f),j.imageSmoothingEnabled=S,j.imageSmoothingQuality=x,j.drawImage.apply(j,[e].concat(Nq(he.map(function(oe){return Math.floor(Tp(oe))})))),j.restore(),V}var Hq=String.fromCharCode;function XLe(e,t,n){var i="";n+=t;for(var r=t;r<n;r+=1)i+=Hq(e.getUint8(r));return i}var JLe=/^data:.*,/;function QLe(e){var t=e.replace(JLe,""),n=atob(t),i=new ArrayBuffer(n.length),r=new Uint8Array(i);return gr(r,function(a,o){r[o]=n.charCodeAt(o)}),i}function eRe(e,t){for(var n=[],i=8192,r=new Uint8Array(e);r.length>0;)n.push(Hq.apply(null,Bq(r.subarray(0,i)))),r=r.subarray(i);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function tRe(e){var t=new DataView(e),n;try{var i,r,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var o=t.byteLength,s=2;s+1<o;){if(t.getUint8(s)===255&&t.getUint8(s+1)===225){r=s;break}s+=1}if(r){var l=r+4,u=r+10;if(XLe(t,l,4)==="Exif"){var c=t.getUint16(u);if(i=c===18761,(i||c===19789)&&t.getUint16(u+2,i)===42){var d=t.getUint32(u+4,i);d>=8&&(a=u+d)}}}if(a){var f=t.getUint16(a,i),h,m;for(m=0;m<f;m+=1)if(h=a+m*12+2,t.getUint16(h,i)===274){h+=8,n=t.getUint16(h,i),t.setUint16(h,1,i);break}}}catch{n=1}return n}function nRe(e){var t=0,n=1,i=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:i=-1;break;case 5:t=90,i=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:i}}var iRe={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,n=this.options,i=this.container,r=this.cropper;qr(r,lo),Yl(t,lo);var a={width:Math.max(i.offsetWidth,Number(n.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(n.minContainerHeight)||100)};this.containerData=a,Zc(r,{width:a.width,height:a.height}),qr(t,lo),Yl(r,lo)},initCanvas:function(){var t=this.containerData,n=this.imageData,i=this.options.viewMode,r=Math.abs(n.rotate)%180===90,a=r?n.naturalHeight:n.naturalWidth,o=r?n.naturalWidth:n.naturalHeight,s=a/o,l=t.width,u=t.height;t.height*s>t.width?i===3?l=t.height*s:u=t.width/s:i===3?u=t.width/s:l=t.height*s;var c={aspectRatio:s,naturalWidth:a,naturalHeight:o,width:l,height:u};c.left=(t.width-l)/2,c.top=(t.height-u)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=i===1||i===2,this.limitCanvas(!0,!0),this.initialImageData=bi({},n),this.initialCanvasData=bi({},c)},limitCanvas:function(t,n){var i=this.options,r=this.containerData,a=this.canvasData,o=this.cropBoxData,s=i.viewMode,l=a.aspectRatio,u=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,d=Number(i.minCanvasHeight)||0;s>1?(c=Math.max(c,r.width),d=Math.max(d,r.height),s===3&&(d*l>c?c=d*l:d=c/l)):s>0&&(c?c=Math.max(c,u?o.width:0):d?d=Math.max(d,u?o.height:0):u&&(c=o.width,d=o.height,d*l>c?c=d*l:d=c/l));var f=Xc({aspectRatio:l,width:c,height:d});c=f.width,d=f.height,a.minWidth=c,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(n)if(s>(u?0:1)){var h=r.width-a.width,m=r.height-a.height;a.minLeft=Math.min(0,h),a.minTop=Math.min(0,m),a.maxLeft=Math.max(0,h),a.maxTop=Math.max(0,m),u&&this.limited&&(a.minLeft=Math.min(o.left,o.left+(o.width-a.width)),a.minTop=Math.min(o.top,o.top+(o.height-a.height)),a.maxLeft=o.left,a.maxTop=o.top,s===2&&(a.width>=r.width&&(a.minLeft=Math.min(0,h),a.maxLeft=Math.max(0,h)),a.height>=r.height&&(a.minTop=Math.min(0,m),a.maxTop=Math.max(0,m))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(t,n){var i=this.canvasData,r=this.imageData;if(n){var a=KLe({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=a.width,s=a.height,l=i.width*(o/i.naturalWidth),u=i.height*(s/i.naturalHeight);i.left-=(l-i.width)/2,i.top-=(u-i.height)/2,i.width=l,i.height=u,i.aspectRatio=o/s,i.naturalWidth=o,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,Zc(this.canvas,bi({width:i.width,height:i.height},Ig({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var n=this.canvasData,i=this.imageData,r=i.naturalWidth*(n.width/n.naturalWidth),a=i.naturalHeight*(n.height/n.naturalHeight);bi(i,{width:r,height:a,left:(n.width-r)/2,top:(n.height-a)/2}),Zc(this.image,bi({width:i.width,height:i.height},Ig(bi({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,n=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,r=Number(t.autoCropArea)||.8,a={width:n.width,height:n.height};i&&(n.height*i>n.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*r),a.height=Math.max(a.minHeight,a.height*r),a.left=n.left+(n.width-a.width)/2,a.top=n.top+(n.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=bi({},a)},limitCropBox:function(t,n){var i=this.options,r=this.containerData,a=this.canvasData,o=this.cropBoxData,s=this.limited,l=i.aspectRatio;if(t){var u=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,d=s?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,f=s?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;u=Math.min(u,r.width),c=Math.min(c,r.height),l&&(u&&c?c*l>u?c=u/l:u=c*l:u?c=u/l:c&&(u=c*l),f*l>d?f=d/l:d=f*l),o.minWidth=Math.min(u,d),o.minHeight=Math.min(c,f),o.maxWidth=d,o.maxHeight=f}n&&(s?(o.minLeft=Math.max(0,a.left),o.minTop=Math.max(0,a.top),o.maxLeft=Math.min(r.width,a.left+a.width)-o.width,o.maxTop=Math.min(r.height,a.top+a.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var t=this.options,n=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&D1(this.face,O1,i.width>=n.width&&i.height>=n.height?Lq:uT),Zc(this.cropBox,bi({width:i.width,height:i.height},Ig({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Pp(this.element,dE,this.getData())}},rRe={initPreview:function(){var t=this.element,n=this.crossOrigin,i=this.options.preview,r=n?this.crossOriginUrl:this.url,a=t.alt||"The image to preview",o=document.createElement("img");if(n&&(o.crossOrigin=n),o.src=r,o.alt=a,this.viewBox.appendChild(o),this.viewBoxImage=o,!!i){var s=i;typeof i=="string"?s=t.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,gr(s,function(l){var u=document.createElement("img");D1(l,R0,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(u.crossOrigin=n),u.src=r,u.alt=a,u.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(u)})}},resetPreview:function(){gr(this.previews,function(t){var n=vE(t,R0);Zc(t,{width:n.width,height:n.height}),t.innerHTML=n.html,qLe(t,R0)})},preview:function(){var t=this.imageData,n=this.canvasData,i=this.cropBoxData,r=i.width,a=i.height,o=t.width,s=t.height,l=i.left-n.left-t.left,u=i.top-n.top-t.top;!this.cropped||this.disabled||(Zc(this.viewBoxImage,bi({width:o,height:s},Ig(bi({translateX:-l,translateY:-u},t)))),gr(this.previews,function(c){var d=vE(c,R0),f=d.width,h=d.height,m=f,g=h,v=1;r&&(v=f/r,g=a*v),a&&g>h&&(v=h/a,m=r*v,g=h),Zc(c,{width:m,height:g}),Zc(c.getElementsByTagName("img")[0],bi({width:o*v,height:s*v},Ig(bi({translateX:-l*v,translateY:-u*v},t))))}))}},aRe={bind:function(){var t=this.element,n=this.options,i=this.cropper;oo(n.cropstart)&&rs(t,pE,n.cropstart),oo(n.cropmove)&&rs(t,hE,n.cropmove),oo(n.cropend)&&rs(t,fE,n.cropend),oo(n.crop)&&rs(t,dE,n.crop),oo(n.zoom)&&rs(t,mE,n.zoom),rs(i,MD,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&rs(i,BD,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&rs(i,ND,this.onDblclick=this.dblclick.bind(this)),rs(t.ownerDocument,LD,this.onCropMove=this.cropMove.bind(this)),rs(t.ownerDocument,RD,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&rs(window,VD,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,i=this.cropper;oo(n.cropstart)&&Vs(t,pE,n.cropstart),oo(n.cropmove)&&Vs(t,hE,n.cropmove),oo(n.cropend)&&Vs(t,fE,n.cropend),oo(n.crop)&&Vs(t,dE,n.crop),oo(n.zoom)&&Vs(t,mE,n.zoom),Vs(i,MD,this.onCropStart),n.zoomable&&n.zoomOnWheel&&Vs(i,BD,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Vs(i,ND,this.onDblclick),Vs(t.ownerDocument,LD,this.onCropMove),Vs(t.ownerDocument,RD,this.onCropEnd),n.responsive&&Vs(window,VD,this.onResize)}},oRe={resize:function(){if(!this.disabled){var t=this.options,n=this.container,i=this.containerData,r=n.offsetWidth/i.width;if(r!==1||n.offsetHeight!==i.height){var a,o;t.restore&&(a=this.getCanvasData(),o=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(gr(a,function(s,l){a[l]=s*r})),this.setCropBoxData(gr(o,function(s,l){o[l]=s*r})))}}},dblclick:function(){this.disabled||this.options.dragMode===Vq||this.setDragMode(ULe(this.dragBox,uE)?Fq:cT)},wheel:function(t){var n=this,i=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*i,t)))},cropStart:function(t){var n=t.buttons,i=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(bn(n)&&n!==1||bn(i)&&i!==0||t.ctrlKey))){var r=this.options,a=this.pointers,o;t.changedTouches?gr(t.changedTouches,function(s){a[s.identifier]=F0(s)}):a[t.pointerId||0]=F0(t),Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?o=Rq:o=vE(t.target,O1),ILe.test(o)&&Pp(this.element,pE,{originalEvent:t,action:o})!==!1&&(t.preventDefault(),this.action=o,this.cropping=!1,o===Mq&&(this.cropping=!0,qr(this.dragBox,Wb)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var i=this.pointers;t.preventDefault(),Pp(this.element,hE,{originalEvent:t,action:n})!==!1&&(t.changedTouches?gr(t.changedTouches,function(r){bi(i[r.identifier]||{},F0(r,!0))}):bi(i[t.pointerId||0]||{},F0(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,i=this.pointers;t.changedTouches?gr(t.changedTouches,function(r){delete i[r.identifier]}):delete i[t.pointerId||0],n&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,fp(this.dragBox,Wb,this.cropped&&this.options.modal)),Pp(this.element,fE,{originalEvent:t,action:n}))}}},sRe={change:function(t){var n=this.options,i=this.canvasData,r=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,l=n.aspectRatio,u=a.left,c=a.top,d=a.width,f=a.height,h=u+d,m=c+f,g=0,v=0,y=r.width,_=r.height,S=!0,w;!l&&t.shiftKey&&(l=d&&f?d/f:1),this.limited&&(g=a.minLeft,v=a.minTop,y=g+Math.min(r.width,i.width,i.left+i.width),_=v+Math.min(r.height,i.height,i.top+i.height));var x=o[Object.keys(o)[0]],k={x:x.endX-x.startX,y:x.endY-x.startY},P=function(A){switch(A){case Zd:h+k.x>y&&(k.x=y-h);break;case Xd:u+k.x<g&&(k.x=g-u);break;case xc:c+k.y<v&&(k.y=v-c);break;case Wh:m+k.y>_&&(k.y=_-m);break}};switch(s){case uT:u+=k.x,c+=k.y;break;case Zd:if(k.x>=0&&(h>=y||l&&(c<=v||m>=_))){S=!1;break}P(Zd),d+=k.x,d<0&&(s=Xd,d=-d,u-=d),l&&(f=d/l,c+=(a.height-f)/2);break;case xc:if(k.y<=0&&(c<=v||l&&(u<=g||h>=y))){S=!1;break}P(xc),f-=k.y,c+=k.y,f<0&&(s=Wh,f=-f,c-=f),l&&(d=f*l,u+=(a.width-d)/2);break;case Xd:if(k.x<=0&&(u<=g||l&&(c<=v||m>=_))){S=!1;break}P(Xd),d-=k.x,u+=k.x,d<0&&(s=Zd,d=-d,u-=d),l&&(f=d/l,c+=(a.height-f)/2);break;case Wh:if(k.y>=0&&(m>=_||l&&(u<=g||h>=y))){S=!1;break}P(Wh),f+=k.y,f<0&&(s=xc,f=-f,c-=f),l&&(d=f*l,u+=(a.width-d)/2);break;case jv:if(l){if(k.y<=0&&(c<=v||h>=y)){S=!1;break}P(xc),f-=k.y,c+=k.y,d=f*l}else P(xc),P(Zd),k.x>=0?h<y?d+=k.x:k.y<=0&&c<=v&&(S=!1):d+=k.x,k.y<=0?c>v&&(f-=k.y,c+=k.y):(f-=k.y,c+=k.y);d<0&&f<0?(s=qv,f=-f,d=-d,c-=f,u-=d):d<0?(s=Uv,d=-d,u-=d):f<0&&(s=Hv,f=-f,c-=f);break;case Uv:if(l){if(k.y<=0&&(c<=v||u<=g)){S=!1;break}P(xc),f-=k.y,c+=k.y,d=f*l,u+=a.width-d}else P(xc),P(Xd),k.x<=0?u>g?(d-=k.x,u+=k.x):k.y<=0&&c<=v&&(S=!1):(d-=k.x,u+=k.x),k.y<=0?c>v&&(f-=k.y,c+=k.y):(f-=k.y,c+=k.y);d<0&&f<0?(s=Hv,f=-f,d=-d,c-=f,u-=d):d<0?(s=jv,d=-d,u-=d):f<0&&(s=qv,f=-f,c-=f);break;case qv:if(l){if(k.x<=0&&(u<=g||m>=_)){S=!1;break}P(Xd),d-=k.x,u+=k.x,f=d/l}else P(Wh),P(Xd),k.x<=0?u>g?(d-=k.x,u+=k.x):k.y>=0&&m>=_&&(S=!1):(d-=k.x,u+=k.x),k.y>=0?m<_&&(f+=k.y):f+=k.y;d<0&&f<0?(s=jv,f=-f,d=-d,c-=f,u-=d):d<0?(s=Hv,d=-d,u-=d):f<0&&(s=Uv,f=-f,c-=f);break;case Hv:if(l){if(k.x>=0&&(h>=y||m>=_)){S=!1;break}P(Zd),d+=k.x,f=d/l}else P(Wh),P(Zd),k.x>=0?h<y?d+=k.x:k.y>=0&&m>=_&&(S=!1):d+=k.x,k.y>=0?m<_&&(f+=k.y):f+=k.y;d<0&&f<0?(s=Uv,f=-f,d=-d,c-=f,u-=d):d<0?(s=qv,d=-d,u-=d):f<0&&(s=jv,f=-f,c-=f);break;case Lq:this.move(k.x,k.y),S=!1;break;case Rq:this.zoom(WLe(o),t),S=!1;break;case Mq:if(!k.x||!k.y){S=!1;break}w=Uq(this.cropper),u=x.startX-w.left,c=x.startY-w.top,d=a.minWidth,f=a.minHeight,k.x>0?s=k.y>0?Hv:jv:k.x<0&&(u-=d,s=k.y>0?qv:Uv),k.y<0&&(c-=f),this.cropped||(Yl(this.cropBox,lo),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}S&&(a.width=d,a.height=f,a.left=u,a.top=c,this.action=s,this.renderCropBox()),gr(o,function(E){E.startX=E.endX,E.startY=E.endY})}},lRe={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&qr(this.dragBox,Wb),Yl(this.cropBox,lo),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=bi({},this.initialImageData),this.canvasData=bi({},this.initialCanvasData),this.cropBoxData=bi({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(bi(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Yl(this.dragBox,Wb),qr(this.cropBox,lo)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,gr(this.previews,function(i){i.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Yl(this.cropper,DD)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,qr(this.cropper,DD)),this},destroy:function(){var t=this.element;return t[_i]?(t[_i]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,r=i.left,a=i.top;return this.moveTo(c5(t)?t:r+Number(t),c5(n)?n:a+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(bn(t)&&(i.left=t,r=!0),bn(n)&&(i.top=n,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,n){var i=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,null,n)},zoomTo:function(t,n,i){var r=this.options,a=this.canvasData,o=a.width,s=a.height,l=a.naturalWidth,u=a.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var c=l*t,d=u*t;if(Pp(this.element,mE,{ratio:t,oldRatio:o/l,originalEvent:i})===!1)return this;if(i){var f=this.pointers,h=Uq(this.cropper),m=f&&Object.keys(f).length?GLe(f):{pageX:i.pageX,pageY:i.pageY};a.left-=(c-o)*((m.pageX-h.left-a.left)/o),a.top-=(d-s)*((m.pageY-h.top-a.top)/s)}else dp(n)&&bn(n.x)&&bn(n.y)?(a.left-=(c-o)*((n.x-a.left)/o),a.top-=(d-s)*((n.y-a.top)/s)):(a.left-=(c-o)/2,a.top-=(d-s)/2);a.width=c,a.height=d,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),bn(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,bn(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(bn(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.imageData,r=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(bn(t)&&(i.scaleX=t,r=!0),bn(n)&&(i.scaleY=n,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,i=this.imageData,r=this.canvasData,a=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var s=i.width/i.naturalWidth;if(gr(o,function(c,d){o[d]=c/s}),t){var l=Math.round(o.y+o.height),u=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=u-o.x,o.height=l-o.y}}else o={x:0,y:0,width:0,height:0};return n.rotatable&&(o.rotate=i.rotate||0),n.scalable&&(o.scaleX=i.scaleX||1,o.scaleY=i.scaleY||1),o},setData:function(t){var n=this.options,i=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&dp(t)){var o=!1;n.rotatable&&bn(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,o=!0),n.scalable&&(bn(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,o=!0),bn(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;bn(t.x)&&(a.left=t.x*s+r.left),bn(t.y)&&(a.top=t.y*s+r.top),bn(t.width)&&(a.width=t.width*s),bn(t.height)&&(a.height=t.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?bi({},this.containerData):{}},getImageData:function(){return this.sized?bi({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&gr(["left","top","width","height","naturalWidth","naturalHeight"],function(i){n[i]=t[i]}),n},setCanvasData:function(t){var n=this.canvasData,i=n.aspectRatio;return this.ready&&!this.disabled&&dp(t)&&(bn(t.left)&&(n.left=t.left),bn(t.top)&&(n.top=t.top),bn(t.width)?(n.width=t.width,n.height=t.width/i):bn(t.height)&&(n.height=t.height,n.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,i=this.options.aspectRatio,r,a;return this.ready&&this.cropped&&!this.disabled&&dp(t)&&(bn(t.left)&&(n.left=t.left),bn(t.top)&&(n.top=t.top),bn(t.width)&&t.width!==n.width&&(r=!0,n.width=t.width),bn(t.height)&&t.height!==n.height&&(a=!0,n.height=t.height),i&&(r?n.height=n.width/i:a&&(n.width=n.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,i=ZLe(this.image,this.imageData,n,t);if(!this.cropped)return i;var r=this.getData(),a=r.x,o=r.y,s=r.width,l=r.height,u=i.width/Math.floor(n.naturalWidth);u!==1&&(a*=u,o*=u,s*=u,l*=u);var c=s/l,d=Xc({aspectRatio:c,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),f=Xc({aspectRatio:c,width:t.minWidth||0,height:t.minHeight||0},"cover"),h=Xc({aspectRatio:c,width:t.width||(u!==1?i.width:s),height:t.height||(u!==1?i.height:l)}),m=h.width,g=h.height;m=Math.min(d.width,Math.max(f.width,m)),g=Math.min(d.height,Math.max(f.height,g));var v=document.createElement("canvas"),y=v.getContext("2d");v.width=Tp(m),v.height=Tp(g),y.fillStyle=t.fillColor||"transparent",y.fillRect(0,0,m,g);var _=t.imageSmoothingEnabled,S=_===void 0?!0:_,w=t.imageSmoothingQuality;y.imageSmoothingEnabled=S,w&&(y.imageSmoothingQuality=w);var x=i.width,k=i.height,P=a,E=o,A,D,T,O,N,V;P<=-s||P>x?(P=0,A=0,T=0,N=0):P<=0?(T=-P,P=0,A=Math.min(x,s+P),N=A):P<=x&&(T=0,A=Math.min(s,x-P),N=A),A<=0||E<=-l||E>k?(E=0,D=0,O=0,V=0):E<=0?(O=-E,E=0,D=Math.min(k,l+E),V=D):E<=k&&(O=0,D=Math.min(l,k-E),V=D);var j=[P,E,A,D];if(N>0&&V>0){var q=m/s;j.push(T*q,O*q,N*q,V*q)}return y.drawImage.apply(y,[i].concat(Nq(j.map(function(ne){return Math.floor(Tp(ne))})))),v},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!c5(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,i=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var a=t===cT,o=n.movable&&t===Fq;t=a||o?t:Vq,n.dragMode=t,D1(i,O1,t),fp(i,uE,a),fp(i,cE,o),n.cropBoxMovable||(D1(r,O1,t),fp(r,uE,a),fp(r,cE,o))}return this}},uRe=Jl.Cropper,qq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(SLe(this,e),!t||!LLe.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=bi({},jD,dp(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return CLe(e,[{key:"init",value:function(){var n=this.element,i=n.tagName.toLowerCase(),r;if(!n[_i]){if(n[_i]=this,i==="img"){if(this.isImg=!0,r=n.getAttribute("src")||"",this.originalUrl=r,!r)return;r=n.src}else i==="canvas"&&window.HTMLCanvasElement&&(r=n.toDataURL());this.load(r)}}},{key:"load",value:function(n){var i=this;if(n){this.url=n,this.imageData={};var r=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(NLe.test(n)){MLe.test(n)?this.read(QLe(n)):this.clone();return}var o=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=s,o.onerror=s,o.ontimeout=s,o.onprogress=function(){o.getResponseHeader("content-type")!==zD&&o.abort()},o.onload=function(){i.read(o.response)},o.onloadend=function(){i.reloading=!1,i.xhr=null},a.checkCrossOrigin&&HD(n)&&r.crossOrigin&&(n=qD(n)),o.open("GET",n),o.responseType="arraybuffer",o.withCredentials=r.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(n){var i=this.options,r=this.imageData,a=tRe(n),o=0,s=1,l=1;if(a>1){this.url=eRe(n,zD);var u=nRe(a);o=u.rotate,s=u.scaleX,l=u.scaleY}i.rotatable&&(r.rotate=o),i.scalable&&(r.scaleX=s,r.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,i=this.url,r=n.crossOrigin,a=i;this.options.checkCrossOrigin&&HD(i)&&(r||(r="anonymous"),a=qD(i)),this.crossOrigin=r,this.crossOriginUrl=a;var o=document.createElement("img");r&&(o.crossOrigin=r),o.src=a||i,o.alt=n.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),qr(o,ID),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var n=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var r=Jl.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Jl.navigator.userAgent),a=function(u,c){bi(n.imageData,{naturalWidth:u,naturalHeight:c,aspectRatio:u/c}),n.sizing=!1,n.sized=!0,n.build()};if(i.naturalWidth&&!r){a(i.naturalWidth,i.naturalHeight);return}var o=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){a(o.width,o.height),r||s.removeChild(o)},o.src=i.src,r||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(o))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,i=this.options,r=this.image,a=n.parentNode,o=document.createElement("div");o.innerHTML=RLe;var s=o.querySelector(".".concat(_i,"-container")),l=s.querySelector(".".concat(_i,"-canvas")),u=s.querySelector(".".concat(_i,"-drag-box")),c=s.querySelector(".".concat(_i,"-crop-box")),d=c.querySelector(".".concat(_i,"-face"));this.container=a,this.cropper=s,this.canvas=l,this.dragBox=u,this.cropBox=c,this.viewBox=s.querySelector(".".concat(_i,"-view-box")),this.face=d,l.appendChild(r),qr(n,lo),a.insertBefore(s,n.nextSibling),this.isImg||Yl(r,ID),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,qr(c,lo),i.guides||qr(c.getElementsByClassName("".concat(_i,"-dashed")),lo),i.center||qr(c.getElementsByClassName("".concat(_i,"-center")),lo),i.background&&qr(s,"".concat(_i,"-bg")),i.highlight||qr(d,$Le),i.cropBoxMovable&&(qr(d,cE),D1(d,O1,uT)),i.cropBoxResizable||(qr(c.getElementsByClassName("".concat(_i,"-line")),lo),qr(c.getElementsByClassName("".concat(_i,"-point")),lo)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),oo(i.ready)&&rs(n,FD,i.ready,{once:!0}),Pp(n,FD)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Yl(this.element,lo))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=uRe,e}},{key:"setDefaults",value:function(n){bi(jD,dp(n)&&n)}}]),e}();bi(qq.prototype,iRe,rRe,aRe,oRe,sRe,lRe);function cRe(e,t){const n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i),a=t.width*r,o=t.height*r,s=(e.width-a)/2,l=(e.height-o)/2;return{width:a,height:o,left:s,top:l}}function dRe(e){return e*(Math.PI/180)}function fRe(e,t,n){const i=Math.abs(dRe(n));return Math.max((Math.sin(i)*e+Math.cos(i)*t)/t,(Math.sin(i)*t+Math.cos(i)*e)/e)}function hRe(e,t,n){return t.left<e.left?{left:e.left,width:n.width}:t.top<e.top?{top:e.top,height:n.height}:t.left+t.width>e.left+e.width?{left:e.left+e.width-n.width,width:n.width}:t.top+t.height>e.top+e.height?{top:e.top+e.height-n.height,height:n.height}:null}function pRe(e,t,n){return t.left<e.left?{left:e.left,width:n.left+n.width-e.left}:t.top<e.top?{top:e.top,height:n.top+n.height-e.top}:t.left+t.width>e.left+e.width?{left:n.left,width:e.left+e.width-n.left}:t.top+t.height>e.top+e.height?{top:n.top,height:e.top+e.height-n.top}:null}class mRe extends ms{constructor(t){super(t),this.onRotate90Deg=()=>{const{angle90Deg:n}=this.state,i=n-90;this.setState({angle90Deg:i,angleGranular:0}),this.cropper.scale(1),this.cropper.rotateTo(i);const r=this.cropper.getCanvasData(),a=this.cropper.getContainerData(),o=cRe(a,r);this.cropper.setCanvasData(o),this.cropper.setCropBoxData(o)},this.onRotateGranular=n=>{const i=Number(n.target.value);this.setState({angleGranular:i});const{angle90Deg:r}=this.state,a=r+i;this.cropper.rotateTo(a);const o=this.cropper.getImageData(),s=fRe(o.naturalWidth,o.naturalHeight,i),l=this.cropper.getImageData().scaleX<0?-s:s;this.cropper.scale(l,s)},this.state={angle90Deg:0,angleGranular:0,prevCropboxData:null},this.storePrevCropboxData=this.storePrevCropboxData.bind(this),this.limitCropboxMovement=this.limitCropboxMovement.bind(this)}componentDidMount(){const{opts:t,storeCropperInstance:n}=this.props;this.cropper=new qq(this.imgElement,t.cropperOptions),this.imgElement.addEventListener("cropstart",this.storePrevCropboxData),this.imgElement.addEventListener("cropend",this.limitCropboxMovement),n(this.cropper)}componentWillUnmount(){this.cropper.destroy(),this.imgElement.removeEventListener("cropstart",this.storePrevCropboxData),this.imgElement.removeEventListener("cropend",this.limitCropboxMovement)}storePrevCropboxData(){this.setState({prevCropboxData:this.cropper.getCropBoxData()})}limitCropboxMovement(t){const n=this.cropper.getCanvasData(),i=this.cropper.getCropBoxData(),{prevCropboxData:r}=this.state;if(t.detail.action==="all"){const a=hRe(n,i,r);a&&this.cropper.setCropBoxData(a)}else{const a=pRe(n,i,r);a&&this.cropper.setCropBoxData(a)}}renderGranularRotate(){const{i18n:t}=this.props,{angleGranular:n}=this.state;return ce("label",{role:"tooltip","aria-label":`${n}º`,"data-microtip-position":"top",className:"uppy-ImageCropper-rangeWrapper"},ce("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.onRotateGranular,onChange:this.onRotateGranular,value:n,min:"-45",max:"45","aria-label":t("rotate")}))}renderRevert(){const{i18n:t,opts:n}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("revert"),onClick:()=>{this.cropper.reset(),this.cropper.setAspectRatio(n.cropperOptions.initialAspectRatio),this.setState({angle90Deg:0,angleGranular:0})}},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M0 0h24v24H0z",fill:"none"}),ce("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})))}renderRotate(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("rotate"),onClick:this.onRotate90Deg},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),ce("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"})))}renderFlip(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("flipHorizontal"),onClick:()=>this.cropper.scaleX(-this.cropper.getData().scaleX||-1)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M0 0h24v24H0z",fill:"none"}),ce("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"})))}renderZoomIn(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("zoomIn"),onClick:()=>this.cropper.zoom(.1)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},ce("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ce("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),ce("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})))}renderZoomOut(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("zoomOut"),onClick:()=>this.cropper.zoom(-.1)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ce("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})))}renderCropSquare(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("aspectRatioSquare"),onClick:()=>this.cropper.setAspectRatio(1)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M0 0h24v24H0z",fill:"none"}),ce("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})))}renderCropWidescreen(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button",className:"uppy-u-reset uppy-c-btn","aria-label":t("aspectRatioLandscape"),onClick:()=>this.cropper.setAspectRatio(16/9)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),ce("path",{fill:"none",d:"M0 0h24v24H0z"})))}renderCropWidescreenVertical(){const{i18n:t}=this.props;return ce("button",{role:"button tooltip","data-microtip-position":"top",type:"button","aria-label":t("aspectRatioPortrait"),className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(9/16)},ce("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},ce("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),ce("path",{d:"M0 0h24v24H0z",fill:"none"})))}render(){const{currentImage:t,opts:n}=this.props,{actions:i}=n,r=URL.createObjectURL(t.data);return ce("div",{className:"uppy-ImageCropper"},ce("div",{className:"uppy-ImageCropper-container"},ce("img",{className:"uppy-ImageCropper-image",alt:t.name,src:r,ref:a=>{this.imgElement=a}})),ce("div",{className:"uppy-ImageCropper-controls"},i.revert&&this.renderRevert(),i.rotate&&this.renderRotate(),i.granularRotate&&this.renderGranularRotate(),i.flip&&this.renderFlip(),i.zoomIn&&this.renderZoomIn(),i.zoomOut&&this.renderZoomOut(),i.cropSquare&&this.renderCropSquare(),i.cropWidescreen&&this.renderCropWidescreen(),i.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}const vRe={strings:{revert:"Reset",rotate:"Rotate 90°",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontally",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}},gRe={version:"2.4.6"},Yq={viewMode:0,background:!1,autoCropArea:1,responsive:!0,minCropBoxWidth:70,minCropBoxHeight:70,croppedCanvasOptions:{},initialAspectRatio:0},Wq={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},yRe={quality:.8,actions:Wq,cropperOptions:Yq};class fT extends qm{constructor(t,n){super(t,{...yRe,...n,actions:{...Wq,...n==null?void 0:n.actions},cropperOptions:{...Yq,...n==null?void 0:n.cropperOptions}}),this.save=()=>{const i=o=>{const{currentImage:s}=this.getPluginState();this.uppy.setFileState(s.id,{data:new File([o],s.name,{type:o.type}),size:o.size,preview:void 0});const l=this.uppy.getFile(s.id);this.uppy.emit("thumbnail:request",l),this.setPluginState({currentImage:l}),this.uppy.emit("file-editor:complete",l)},{currentImage:r}=this.getPluginState(),a=this.cropper.getCroppedCanvas({});a.width%2!==0&&this.cropper.setData({width:a.width-1}),a.height%2!==0&&this.cropper.setData({height:a.height-1}),this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob(i,r.type,this.opts.quality)},this.storeCropperInstance=i=>{this.cropper=i},this.selectFile=i=>{this.uppy.emit("file-editor:start",i),this.setPluginState({currentImage:i})},this.id=this.opts.id||"ImageEditor",this.title="Image Editor",this.type="editor",this.defaultLocale=vRe,this.i18nInit()}canEditFile(t){if(!t.type||t.isRemote)return!1;const n=t.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(n)}install(){this.setPluginState({currentImage:null});const{target:t}=this.opts;t&&this.mount(t,this)}uninstall(){const{currentImage:t}=this.getPluginState();if(t){const n=this.uppy.getFile(t.id);this.uppy.emit("file-editor:cancel",n)}this.unmount()}render(){const{currentImage:t}=this.getPluginState();return t===null||t.isRemote?null:ce(mRe,{currentImage:t,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}}fT.VERSION=gRe.version;const _Re={__proto__:null,"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};function f5(e){return[e]=e.split(";",1),_Re[e]||null}var e3={exports:{}};e3.exports=hT;e3.exports.isMobile=hT;e3.exports.default=hT;const bRe=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,wRe=/CrOS/,SRe=/android|ipad|playbook|silk/i;function hT(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=bRe.test(t)&&!wRe.test(t)||!!e.tablet&&SRe.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}var CRe=e3.exports;const ERe=Ei(CRe);function xRe(e,t,n){return new Promise(i=>{e.toBlob(i,t,n)})}function kRe(){return typeof MediaRecorder=="function"&&!!MediaRecorder.prototype&&typeof MediaRecorder.prototype.start=="function"}function Gq(){return ce("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},ce("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))}function TRe(e){let{onSnapshot:t,i18n:n}=e;return ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:n("takePicture"),"aria-label":n("takePicture"),onClick:t,"data-uppy-super-focusable":!0},Gq())}function PRe(e){let{recording:t,onStartRecording:n,onStopRecording:i,i18n:r}=e;return t?ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:r("stopRecording"),"aria-label":r("stopRecording"),onClick:i,"data-uppy-super-focusable":!0},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},ce("rect",{x:"15",y:"15",width:"70",height:"70"}))):ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:r("startRecording"),"aria-label":r("startRecording"),onClick:n,"data-uppy-super-focusable":!0},ce("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},ce("circle",{cx:"50",cy:"50",r:"40"})))}function $Re(e){return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`}function ARe(e){let{recordingLengthSeconds:t,i18n:n}=e;const i=$Re(t);return ce("span",{"aria-label":n("recordingLength",{recording_length:i})},i)}function ORe(e){let{currentDeviceId:t,videoSources:n,onChangeVideoSource:i}=e;return ce("div",{className:"uppy-Webcam-videoSource"},ce("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:r=>{i(r.target.value)}},n.map(r=>ce("option",{key:r.deviceId,value:r.deviceId,selected:r.deviceId===t},r.label))))}function DRe(e){let{onSubmit:t,i18n:n}=e;return ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:n("submitRecordedFile"),"aria-label":n("submitRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},ce("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},ce("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}function IRe(e){let{onDiscard:t,i18n:n}=e;return ce("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:n("discardRecordedFile"),"aria-label":n("discardRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},ce("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},ce("g",{fill:"#FFF",fillRule:"evenodd"},ce("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),ce("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},gE.apply(this,arguments)}function V0(e,t){return e.includes(t)}class NRe extends ms{componentDidMount(){const{onFocus:t}=this.props;t()}componentWillUnmount(){const{onStop:t}=this.props;t()}render(){const{src:t,recordedVideo:n,recording:i,modes:r,supportsRecording:a,videoSources:o,showVideoSourceDropdown:s,showRecordingLength:l,onSubmit:u,i18n:c,mirror:d,onSnapshot:f,onStartRecording:h,onStopRecording:m,onDiscardRecordedVideo:g,recordingLengthSeconds:v}=this.props,y=!!n,_=!y&&a&&(V0(r,"video-only")||V0(r,"audio-only")||V0(r,"video-audio")),S=!y&&V0(r,"picture"),w=a&&l&&!y,x=s&&o&&o.length>1,k={playsInline:!0};return n?(k.muted=!1,k.controls=!0,k.src=n,this.videoElement&&(this.videoElement.srcObject=null)):(k.muted=!0,k.autoPlay=!0,k.srcObject=t),ce("div",{className:"uppy uppy-Webcam-container"},ce("div",{className:"uppy-Webcam-videoContainer"},ce("video",gE({ref:P=>this.videoElement=P,className:`uppy-Webcam-video ${d?"uppy-Webcam-video--mirrored":""}`},k))),ce("div",{className:"uppy-Webcam-footer"},ce("div",{className:"uppy-Webcam-videoSourceContainer"},x?ORe(this.props):null),ce("div",{className:"uppy-Webcam-buttonContainer"},S&&ce(TRe,{onSnapshot:f,i18n:c}),_&&ce(PRe,{recording:i,onStartRecording:h,onStopRecording:m,i18n:c}),y&&ce(DRe,{onSubmit:u,i18n:c}),y&&ce(IRe,{onDiscard:g,i18n:c})),ce("div",{className:"uppy-Webcam-recordingLength"},w&&ce(ARe,{recordingLengthSeconds:v,i18n:c}))))}}function MRe(e){let{icon:t,i18n:n,hasCamera:i}=e;return ce("div",{className:"uppy-Webcam-permissons"},ce("div",{className:"uppy-Webcam-permissonsIcon"},t()),ce("h1",{className:"uppy-Webcam-title"},n(i?"allowAccessTitle":"noCameraTitle")),ce("p",null,n(i?"allowAccessDescription":"noCameraDescription")))}const LRe={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};function yE(){return yE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yE.apply(this,arguments)}function Yv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var RRe=0;function FRe(e){return"__private_"+RRe+++"_"+e}const VRe={version:"3.4.2"};function YD(e){return e[0]==="."?X4[e.slice(1)]:e}function BRe(e){return/^video\/[^*]+$/.test(e)}function zRe(e){return/^image\/[^*]+$/.test(e)}function jRe(){return navigator.mediaDevices}function h5(e,t){return e.includes(t)}const URe={onBeforeSnapshot:()=>Promise.resolve(),countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1,mobileNativeCamera:ERe({tablet:!0})};var Bs=FRe("enableMirror");class pT extends qm{constructor(t,n){super(t,{...URe,...n}),Object.defineProperty(this,Bs,{writable:!0,value:void 0}),this.mediaDevices=jRe(),this.supportsUserMedia=!!this.mediaDevices,this.protocol=location.protocol.match(/https/i)?"https":"http",this.id=this.opts.id||"Webcam",this.type="acquirer",this.capturedMediaFile=null,this.icon=()=>ce("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},ce("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383",fillRule:"nonzero"})),this.defaultLocale=LRe,this.i18nInit(),this.title=this.i18n("pluginNameCamera"),Yv(this,Bs)[Bs]=this.opts.mirror,this.install=this.install.bind(this),this.setPluginState=this.setPluginState.bind(this),this.render=this.render.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.takeSnapshot=this.takeSnapshot.bind(this),this.startRecording=this.startRecording.bind(this),this.stopRecording=this.stopRecording.bind(this),this.discardRecordedVideo=this.discardRecordedVideo.bind(this),this.submit=this.submit.bind(this),this.oneTwoThreeSmile=this.oneTwoThreeSmile.bind(this),this.focus=this.focus.bind(this),this.changeVideoSource=this.changeVideoSource.bind(this),this.webcamActive=!1,this.opts.countdown&&(this.opts.onBeforeSnapshot=this.oneTwoThreeSmile),this.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null})}setOptions(t){super.setOptions({...t,videoConstraints:{...this.opts.videoConstraints,...t==null?void 0:t.videoConstraints}})}hasCameraCheck(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then(t=>t.some(n=>n.kind==="videoinput")):Promise.resolve(!1)}isAudioOnly(){return this.opts.modes.length===1&&this.opts.modes[0]==="audio-only"}getConstraints(t){t===void 0&&(t=null);const n=this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("audio-only")!==-1,i=!this.isAudioOnly()&&(this.opts.modes.indexOf("video-audio")!==-1||this.opts.modes.indexOf("video-only")!==-1||this.opts.modes.indexOf("picture")!==-1),r={...this.opts.videoConstraints||{facingMode:this.opts.facingMode},...t?{deviceId:t,facingMode:null}:{}};return{audio:n,video:i?r:!1}}start(t){var n;if(t===void 0&&(t=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(Yv(this,Bs)[Bs]=!0);const i=this.getConstraints((n=t)==null?void 0:n.deviceId);this.hasCameraCheck().then(r=>(this.setPluginState({hasCamera:r}),this.mediaDevices.getUserMedia(i).then(a=>{this.stream=a;let o=null;const s=this.isAudioOnly()?a.getAudioTracks():a.getVideoTracks();!t||!t.deviceId?o=s[0].getSettings().deviceId:s.forEach(l=>{l.getSettings().deviceId===t.deviceId&&(o=l.getSettings().deviceId)}),this.updateVideoSources(),this.setPluginState({currentDeviceId:o,cameraReady:!0})}).catch(a=>{this.setPluginState({cameraReady:!1,cameraError:a}),this.uppy.info(a.message,"error")})))}getMediaRecorderOptions(){const t={};if(MediaRecorder.isTypeSupported){const{restrictions:n}=this.uppy.opts;let i=[];this.opts.preferredVideoMimeType?i=[this.opts.preferredVideoMimeType]:n.allowedFileTypes&&(i=n.allowedFileTypes.map(YD).filter(BRe));const r=o=>MediaRecorder.isTypeSupported(o)&&f5(o),a=i.filter(r);a.length>0&&(t.mimeType=a[0])}return t}startRecording(){this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];let t=!1;this.recorder.addEventListener("dataavailable",n=>{this.recordingChunks.push(n.data);const{restrictions:i}=this.uppy.opts;if(this.recordingChunks.length>1&&i.maxFileSize!=null&&!t){const r=this.recordingChunks.reduce((l,u)=>l+u.size,0),o=(r-this.recordingChunks[0].size)/(this.recordingChunks.length-1)*3,s=Math.max(0,i.maxFileSize-o);r>s&&(t=!0,this.uppy.info(this.i18n("recordingStoppedMaxSize"),"warning",4e3),this.stopRecording())}}),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval(()=>{const n=this.getPluginState().recordingLengthSeconds;this.setPluginState({recordingLengthSeconds:n+1})},1e3)),this.setPluginState({isRecording:!0})}stopRecording(){return new Promise(n=>{this.recorder.addEventListener("stop",()=>{n()}),this.recorder.stop(),this.opts.showRecordingLength&&(clearInterval(this.recordingLengthTimer),this.setPluginState({recordingLengthSeconds:0}))}).then(()=>(this.setPluginState({isRecording:!1}),this.getVideo())).then(n=>{try{this.capturedMediaFile=n,this.setPluginState({recordedVideo:URL.createObjectURL(n.data)}),Yv(this,Bs)[Bs]=!1}catch(i){i.isRestriction||this.uppy.log(i)}}).then(()=>{this.recordingChunks=null,this.recorder=null},n=>{throw this.recordingChunks=null,this.recorder=null,n})}discardRecordedVideo(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(Yv(this,Bs)[Bs]=!0),this.capturedMediaFile=null}submit(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(t){t.isRestriction||this.uppy.log(t,"error")}}async stop(){if(this.stream){const t=this.stream.getAudioTracks(),n=this.stream.getVideoTracks();t.concat(n).forEach(i=>i.stop())}this.recorder&&await new Promise(t=>{this.recorder.addEventListener("stop",t,{once:!0}),this.recorder.stop(),this.opts.showRecordingLength&&clearInterval(this.recordingLengthTimer)}),this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0})}getVideoElement(){return this.el.querySelector(".uppy-Webcam-video")}oneTwoThreeSmile(){return new Promise((t,n)=>{let i=this.opts.countdown;const r=setInterval(()=>{if(!this.webcamActive)return clearInterval(r),this.captureInProgress=!1,n(new Error("Webcam is not active"));i?(this.uppy.info(`${i}...`,"warning",800),i--):(clearInterval(r),this.uppy.info(this.i18n("smile"),"success",1500),setTimeout(()=>t(),1500))},1e3)})}takeSnapshot(){this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(t=>{const n=typeof t=="object"?t.message:t;return this.uppy.info(n,"error",5e3),Promise.reject(new Error(`onBeforeSnapshot: ${n}`))}).then(()=>this.getImage()).then(t=>{this.captureInProgress=!1;try{this.uppy.addFile(t)}catch(n){n.isRestriction||this.uppy.log(n)}},t=>{throw this.captureInProgress=!1,t}))}getImage(){const t=this.getVideoElement();if(!t)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));const n=t.videoWidth,i=t.videoHeight,r=document.createElement("canvas");r.width=n,r.height=i,r.getContext("2d").drawImage(t,0,0);const{restrictions:o}=this.uppy.opts;let s=[];this.opts.preferredImageMimeType?s=[this.opts.preferredImageMimeType]:o.allowedFileTypes&&(s=o.allowedFileTypes.map(YD).filter(zRe));const l=s[0]||"image/jpeg",u=f5(l)||"jpg",c=`cam-${Date.now()}.${u}`;return xRe(r,l).then(d=>({source:this.id,name:c,data:new Blob([d],{type:l}),type:l}))}getVideo(){const t=this.recordingChunks.find(o=>{var s;return((s=o.type)==null?void 0:s.length)>0}).type,n=f5(t);if(!n)return Promise.reject(new Error(`Could not retrieve recording: Unsupported media type "${t}"`));const i=`webcam-${Date.now()}.${n}`,r=new Blob(this.recordingChunks,{type:t}),a={source:this.id,name:i,data:new Blob([r],{type:t}),type:t};return Promise.resolve(a)}focus(){this.opts.countdown&&setTimeout(()=>{this.uppy.info(this.i18n("smile"),"success",1500)},1e3)}changeVideoSource(t){this.stop(),this.start({deviceId:t})}updateVideoSources(){this.mediaDevices.enumerateDevices().then(t=>{this.setPluginState({videoSources:t.filter(n=>n.kind==="videoinput")})})}render(){this.webcamActive||this.start();const t=this.getPluginState();return!t.cameraReady||!t.hasCamera?ce(MRe,{icon:Gq,i18n:this.i18n,hasCamera:t.hasCamera}):ce(NRe,yE({},t,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:kRe(),recording:t.isRecording,mirror:Yv(this,Bs)[Bs],src:this.stream}))}install(){const{mobileNativeCamera:t,modes:n,facingMode:i,videoConstraints:r}=this.opts,{target:a}=this.opts;if(t&&a){var o;(o=this.getTargetPlugin(a))==null||o.setOptions({showNativeVideoCameraButton:h5(n,"video-only")||h5(n,"video-audio"),showNativePhotoCameraButton:h5(n,"picture"),nativeCameraFacingMode:(r==null?void 0:r.facingMode)||i});return}this.setPluginState({cameraReady:!1,recordingLengthSeconds:0}),a&&this.mount(a,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=()=>{if(this.updateVideoSources(),this.stream){let s=!0;const{videoSources:l,currentDeviceId:u}=this.getPluginState();l.forEach(c=>{u===c.deviceId&&(s=!1)}),s&&(this.stop(),this.start())}})}uninstall(){this.stop(),this.unmount()}onUnmount(){this.stop()}}pT.VERSION=VRe.version;const dd={strings:{},pluralize(e){return e<=1?0:1}};dd.strings={addBulkFilesFailed:{0:"L’ajout de %{smart_count} fichier a échoué",1:"L’ajout de %{smart_count} fichiers a échoué"},addedNumFiles:"%{numFiles} fichier(s) ajouté(s)",addingMoreFiles:"Ajout de fichiers",addMore:"Ajouter d’autres",addMoreFiles:"Ajouter d’autres fichiers",allFilesFromFolderNamed:"Tous les fichiers du dossier %{name}",allowAccessDescription:"Pour prendre des photos ou enregistrer une vidéo, veuillez autoriser l’accès à votre caméra pour ce site.",allowAccessTitle:"Veuillez autoriser l’accès à votre caméra",authAborted:"Authentification interrompue",authenticateWith:"Se connecter à %{pluginName}",authenticateWithTitle:"Veuillez vous authentifier avec %{pluginName} pour sélectionner les fichiers",back:"Retour",browse:"naviguer",browseFiles:"naviguer",cancel:"Annuler",cancelUpload:"Annuler le téléversement",chooseFiles:"Choisir des fichiers",closeModal:"Fermer la fenêtre",companionError:"Connexion à Companion a échoué",companionUnauthorizeHint:"Pour vous déconnecter de votre compte %{provider}, veuillez aller à %{url}",complete:"Terminé",compressedX:"%{size} économisé(s) par la compression",compressingImages:"Compression des images…",connectedToInternet:"Connecté à Internet",copyLink:"Copier le lien",copyLinkToClipboardFallback:"Copier le lien ci-dessous",copyLinkToClipboardSuccess:"Lien copié",creatingAssembly:"Préparation du téléversement…",creatingAssemblyFailed:"Transloadit: Impossible de créer Assembly",dashboardTitle:"Téléverseur de fichiers",dashboardWindowTitle:"Fenêtre de téléversement de fichiers (Appuyez sur Échap pour fermer)",dataUploadedOfTotal:"%{complete} sur %{total}",done:"Terminé",dropHereOr:"Déposer les fichiers ici ou %{browse}",dropHint:"Déposez vos fichiers ici",dropPasteBoth:"Déposer les fichiers ici, coller ou %{browse}",dropPasteFiles:"Déposer les fichiers ici, coller ou %{browse}",dropPasteFolders:"Déposer les fichiers ici, coller ou %{browse}",dropPasteImportBoth:"Déposer les fichiers ici, coller, %{browse} ou importer de",dropPasteImportFiles:"Déposer les fichiers ici, coller, %{browse} ou importer de",dropPasteImportFolders:"Déposer les fichiers ici, coller, %{browse} ou importer de",editFile:"Modifier le fichier",editImage:"Modifier l’image",editFileWithFilename:"Modifier le fichier %{file}",editing:"Modification en cours de %{file}",emptyFolderAdded:"Aucun fichier n’a été ajouté depuis un dossier vide",encoding:"Traitement…",enterCorrectUrl:"Lien incorrect: Assurez-vous que vous entrez un lien direct vers le fichier",enterUrlToImport:"Entrez le lien pour importer un fichier",exceedsSize:"Ce fichier dépasse la taille maximale autorisée de %{size}",failedToFetch:"Companion a échoué à récupérer ce lien, assurez-vous qu’il est correct",failedToUpload:"Le téléversement de %{file} a échoué",fileSource:"Fichier source: %{name}",filesUploadedOfTotal:{0:"%{complete} sur %{smart_count} fichier téléversé",1:"%{complete} sur %{smart_count} fichiers téléversés"},filter:"Filtrer",finishEditingFile:"Terminer l’édition du fichier",folderAdded:{0:"%{smart_count} fichier ajouté de %{folder}",1:"%{smart_count} fichiers ajoutés de %{folder}"},generatingThumbnails:"Génération des vignettes…",import:"Importer",importFrom:"Importer de %{name}",loading:"Chargement…",logOut:"Déconnexion",micDisabled:"Accès au micro refusé par l’utilisateur",myDevice:"Mon Appareil",noDuplicates:'Impossible d’ajouter le fichier "%{fileName}", il existe déjà ',noFilesFound:"Vous n’avez aucun fichier ou dossier ici",noInternetConnection:"Pas de connexion à Internet",noMoreFilesAllowed:"Impossible d’ajouter de nouveaux fichiers: en cours de chargement ",openFolderNamed:"Ouvrir %{name}",pause:"Pause",pauseUpload:"Mettre en pause le téléversement",paused:"En pause",poweredBy:"Propulsé par %{uppy}",processingXFiles:{0:"Traitement de %{smart_count} fichier",1:"Traitement de %{smart_count} fichiers"},recording:"Enregistrement",recordingLength:"Durée d’enregistrement %{recording_length}",recordingStoppedMaxSize:"L’enregistrement s’est arrété car la taille du fichier dépasse la limite",removeFile:"Effacer le fichier %{file}",resetFilter:"Réinitialiser filtre",resume:"Reprendre",resumeUpload:"Reprendre le téléversement",retry:"Réessayer",retryUpload:"Réessayer le téléversement",save:"Sauvegarder",saveChanges:"Sauvegarder les modifications",selectFileNamed:"Sélectionner le fichier %{name}",selectX:{0:"Sélectionner %{smart_count}",1:"Sélectionner %{smart_count}"},smile:"Souriez !",startRecording:"Commencer l’enregistrement vidéo",stopRecording:"Arrêter l’enregistrement vidéo",streamActive:"Stream actif",streamPassive:"Stream passif",submitRecordedFile:"Envoyer la vidéo enregistrée",takePicture:"Prendre une photo",timedOut:"Téléversement bloqué durant %{seconds} secondes, annulation.",unselectFileNamed:"Désélectionner le fichier %{name}",upload:"Téléverser",uploadComplete:"Téléversement terminé",uploadFailed:"Le téléversement a échoué",uploadPaused:"Téléversement mis en pause",uploadStalled:"Téléversement bloqué depuis %{seconds} secondes. Il est peut-être nécessaire de recommencer l’opération.",uploadXFiles:{0:"Téléverser %{smart_count} fichier",1:"Téléverser %{smart_count} fichiers"},uploadXNewFiles:{0:"Téléverser +%{smart_count} fichier",1:"Téléverser +%{smart_count} fichiers"},uploading:"Téléversement en cours",uploadingXFiles:{0:"Téléversement de %{smart_count} fichier",1:"Téléversement de %{smart_count} fichiers"},xFilesSelected:{0:"%{smart_count} fichier sélectionné",1:"%{smart_count} fichiers sélectionnés"},xMoreFilesAdded:{0:"%{smart_count} autre fichier ajouté",1:"%{smart_count} autres fichiers ajoutés"},xTimeLeft:"%{time} restantes",youCanOnlyUploadFileTypes:"Vous pouvez seulement téléverser: %{types}",youCanOnlyUploadX:{0:"Vous pouvez seulement téléverser %{smart_count} fichier",1:"Vous pouvez seulement téléverser %{smart_count} fichiers"},youHaveToAtLeastSelectX:{0:"Vous devez sélectionner au moins %{smart_count} fichier",1:"Vous devez sélectionner au moins %{smart_count} fichiers"}};typeof Uppy<"u"&&(globalThis.Uppy.locales.fr_FR=dd);const HRe={debug:!0,locale:{...dd,strings:{...dd.strings,takePicture:"Caméra"}},restrictions:{allowedFileTypes:["image/jpeg","image/png","image/gif"],maxFileSize:5*1024*1024,maxNumberOfFiles:1}},qRe={inline:!1,target:"#dashboard-uppy",hideUploadButton:!1,proudlyDisplayPoweredByUppy:!1,plugins:["Webcam"]},YRe={target:Cd},WRe={target:Cd,modes:["picture"]},GRe={shouldUseMultipart:!1,getUploadParameters(e){return vn().post("/file/presign",{name:e.name,contentType:e.type,size:e.size}).then(n=>{const{data:i}=n;return e.meta.key=i.key,{method:i.method,url:i.url,fields:i.fields,headers:{}}})}},WD=new Zk(HRe).use(Cd,qRe).use(fT,YRe).use(pT,WRe).use(Jw,GRe),_E={debug:!0,locale:{...dd,strings:{...dd.strings,takePicture:"Caméra"}},restrictions:{allowedFileTypes:["image/jpeg","image/png","image/gif"],maxFileSize:30*1024*1024,maxNumberOfFiles:5}},bE={inline:!1,target:"#dashboard-uppy",hideUploadButton:!1,proudlyDisplayPoweredByUppy:!1},KRe={target:Cd},ZRe={target:Cd,modes:["picture"]},XRe={shouldUseMultipart:!1,getUploadParameters(e){return vn().post("/file/presign",{name:e.name,contentType:e.type,size:e.size}).then(n=>{const{data:i}=n;return e.meta.key=i.key,{method:i.method,url:i.url,fields:i.fields,headers:{}}})}},Gb=new Zk(_E).use(Cd,bE).use(fT,KRe).use(pT,ZRe).use(Jw,XRe),JRe=e=>{_E.restrictions.maxNumberOfFiles=e,Gb.setOptions(_E),bE.note=`Max. ${e} ${_s.global.t("photoService.photo",e)}`,Gb.getPlugin("Dashboard").setOptions(bE)},wE={debug:!0,locale:{...dd,strings:{...dd.strings,takePicture:"Caméra"}},restrictions:{allowedFileTypes:["image/jpeg","image/png","image/gif",".pdf"],maxFileSize:10*1024*1024,maxNumberOfFiles:3}},SE={inline:!1,target:"#dashboard-uppy",hideUploadButton:!1,proudlyDisplayPoweredByUppy:!1},QRe={shouldUseMultipart:!1,getUploadParameters(e){return vn().post("/file/presign",{name:e.name,contentType:e.type,size:e.size}).then(n=>{const{data:i}=n;return e.meta.key=i.key,{method:i.method,url:i.url,fields:i.fields,headers:{}}})}},Kb=new Zk(wE).use(Cd,SE).use(Jw,QRe),eFe=e=>{wE.restrictions.maxNumberOfFiles=e,Kb.setOptions(wE),SE.note=`Max. ${e} ${_s.global.t("documentService.file",e)}`,Kb.getPlugin("Dashboard").setOptions(SE)},tFe={};function nFe(e,t){return J(),je(qp,Me(e.$attrs,{chips:"",clearable:"",multiple:"","clear-on-select":"","closable-chips":"",color:"secondary","hide-details":"auto"}),{chip:le(({item:n,props:i})=>[C(ma,Me(i,{color:"#757575",rounded:"lg"}),{default:le(()=>[Ze(Q(n.title),1)]),_:2},1040)]),_:1},16)}const Wv=on(tFe,[["render",nFe]]),iFe={class:"d-flex justify-center"},B0=ot({__name:"ErrorList",props:{errors:[Array,String]},setup(e){const t=e,n=B(()=>typeof t.errors=="string"?[t.errors]:t.errors);return(i,r)=>(J(),ve("div",iFe,[(J(!0),ve(Ue,null,Ht(n.value,(a,o)=>(J(),ve("div",{key:o,class:"text-error text-caption"},Q(a),1))),128))]))}}),rFe={class:"mb-5 text-center"},aFe={class:"d-flex ga-2 w-100 mt-2"},oFe=ot({__name:"SuggestDisciplineDialog",props:{dialog:Boolean},emits:["update:dialog"],setup(e,{emit:t}){const{t:n}=gn(),i=z(null),r=z(!1),a=z(!1),o=t,s=z({discipline:{value:"",error:"",rules:[c=>!!c||n("profileForm.suggestDisciplineForm.discipline.error.required")]}}),l=()=>{var d;if((d=i.value)==null||d.validate(),!s.value.discipline.value)return;const c=vn("/discipline");r.value=!0,c.post("/suggest",{name:s.value.discipline.value}).then(()=>{o("update:dialog",!1),s.value.discipline.value="",nt.success(n("profileForm.suggestDisciplineForm.successMessage"))}).catch(f=>{var h;(h=f.data)!=null&&h.message&&(s.value.discipline.error=f.data.message)}).finally(()=>{r.value=!1})},u=()=>{s.value.discipline.value="",s.value.discipline.error="",a.value=!1,o("update:dialog",!1)};return(c,d)=>(J(),je(ir,{"model-value":e.dialog,"max-width":"500"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"sugges-title"},{default:le(()=>[Ze(Q(c.$t("profileForm.suggestDisciplineForm.title")),1)]),_:1}),C(Je,{onClick:d[0]||(d[0]=()=>u()),color:"#007058",size:"small",style:{position:"absolute",right:"10px",top:"15px"},variant:"outlined",density:"compact",icon:"$close"}),C(br,null,{default:le(()=>[F("p",rFe,Q(c.$t("profileForm.suggestDisciplineForm.description")),1),F("div",null,[F("label",null,Q(c.$t("profileForm.suggestDisciplineForm.discipline.label")),1),C(Tn,{class:"",density:"compact",rounded:"lg",ref_key:"discipline",ref:i,modelValue:s.value.discipline.value,"onUpdate:modelValue":d[1]||(d[1]=f=>s.value.discipline.value=f),rules:s.value.discipline.rules,"error-messages":s.value.discipline.error,placeholder:c.$t("profileForm.suggestDisciplineForm.placeholder")},null,8,["modelValue","rules","error-messages","placeholder"])]),F("div",aFe,[C(Je,{class:"w-50",style:{color:"#757575","font-weight":"700"},color:"#E0E0E0",variant:"flat",text:a.value?c.$t("commonDialog.closeBtn"):c.$t("confirmDialog.cancelBtn"),onClick:u},null,8,["text"]),a.value?De("",!0):(J(),je(Je,{key:0,class:"w-50",color:"secondary",variant:"flat",text:c.$t("profileForm.suggestDisciplineForm.submitBtn"),loading:r.value,onClick:d[2]||(d[2]=()=>l())},null,8,["text","loading"]))])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const sFe=on(oFe,[["__scopeId","data-v-85e5dbec"]]),lFe={class:"font-weight-bold title"},uFe={class:"px-5 py-5"},cFe={class:"border-md border-bright-red border-opacity-100 w-sm-66 rounded-lg mx-auto mb-5 pa-3"},dFe={class:"d-flex ga-2 align-center"},fFe={class:"profil-idx"},hFe={class:"profil-slug"},pFe={class:"text-center pb-5"},mFe={class:"delete-title"},vFe={key:0,class:"mt-3 delete-desc"},gFe={class:"d-sm-flex ga-sm-2"},yFe={class:"font-weight-bold",style:{color:"#757575"}},_Fe=ot({__name:"AlertDeleteProfilDialog",props:{display:Boolean,profileIndex:Number,profileSlug:{type:String,default:""},profileAvatar:String,isDeleteDraft:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["confirmDelete","cancel"],setup(e,{emit:t}){const{t:n}=gn(),i=t;return(r,a)=>(J(),je(ir,{persistent:"","model-value":e.display,width:"650"},{default:le(()=>[C(Cn,{"max-width":"700",color:"white",transition:"dialog-top-transition"},{default:le(()=>[C(_r,{class:"py-3 d-flex justify-center w-full align-center bg-surface-lighten-1"},{default:le(()=>[F("span",lFe,Q(e.isDeleteDraft?K(n)("profileForm.draft-title"):K(n)("profileDialog.title")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:a[0]||(a[0]=o=>i("cancel")),src:_h})]),_:1}),F("div",uFe,[F("div",cFe,[F("div",dFe,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>[xt(C(Uu,{width:"64",height:"64",color:"#9E9E9E"},null,512),[[hn,!e.profileAvatar]]),xt(C(Ii,{src:e.profileAvatar,cover:!0},null,8,["src"]),[[hn,e.profileAvatar]])]),_:1}),F("div",null,[F("div",fFe,"Profil "+Q(e.profileIndex),1),F("div",hFe,Q(e.isDeleteDraft?"Profil Non publié":e.profileSlug),1)])])]),F("div",pFe,[F("span",mFe,Q(e.isDeleteDraft?r.$t("profileForm.delete-title-draft"):r.$t("profileForm.delete-title")),1),e.isDeleteDraft?De("",!0):(J(),ve("p",vFe,Q(r.$t("profileForm.delete-desc")),1))]),F("div",gFe,[C(Je,{color:"#E0E0E0",class:"w-sm-50 w-100",onClick:a[1]||(a[1]=o=>i("cancel"))},{default:le(()=>[F("span",yFe,Q(K(n)("confirmDialog.cancelBtn")),1)]),_:1}),C(Je,{color:"#FF5353",class:"w-sm-50 w-100 mt-sm-0 mt-2",text:K(n)("confirmDialog.confirmBtn"),onClick:a[2]||(a[2]=o=>i("confirmDelete")),loading:e.loading,disabled:e.loading},null,8,["text","loading","disabled"])])])]),_:1})]),_:1},8,["model-value"]))}});const bFe=on(_Fe,[["__scopeId","data-v-b1028fa1"]]),wFe=["width","height"],SFe=["fill"],Zb=ot({__name:"PencilIcon",props:{size:{type:String,default:20},color:{type:String,default:"#029978"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M21.5111 7.01166L17.3214 2.82197C17.1996 2.70008 17.0549 2.60339 16.8956 2.53742C16.7364 2.47145 16.5657 2.4375 16.3933 2.4375C16.221 2.4375 16.0503 2.47145 15.891 2.53742C15.7318 2.60339 15.5871 2.70008 15.4652 2.82197L3.90488 14.3832C3.78276 14.5049 3.68593 14.6496 3.61996 14.8089C3.55399 14.9682 3.52019 15.1389 3.52051 15.3113V19.501C3.52051 19.8491 3.65879 20.183 3.90493 20.4291C4.15107 20.6753 4.48491 20.8135 4.83301 20.8135H9.0227C9.19511 20.8139 9.36588 20.7801 9.52517 20.7141C9.68446 20.6481 9.82912 20.5513 9.95082 20.4292L21.5111 8.86791C21.633 8.74603 21.7297 8.60133 21.7957 8.44208C21.8617 8.28284 21.8956 8.11215 21.8956 7.93978C21.8956 7.76741 21.8617 7.59673 21.7957 7.43748C21.7297 7.27823 21.633 7.13354 21.5111 7.01166ZM9.15488 19.6332C9.11988 19.6684 9.07235 19.6883 9.0227 19.6885H4.83301C4.78328 19.6885 4.73559 19.6688 4.70043 19.6336C4.66526 19.5985 4.64551 19.5508 4.64551 19.501V15.3113C4.64572 15.2617 4.66561 15.2142 4.70082 15.1792L13.083 6.79603L17.5371 11.251L9.15488 19.6332ZM20.7152 8.07291L18.333 10.4551L13.8789 6.00103L16.2611 3.61791C16.2785 3.60047 16.2992 3.58664 16.322 3.57721C16.3448 3.56777 16.3692 3.56292 16.3938 3.56292C16.4184 3.56292 16.4428 3.56777 16.4656 3.57721C16.4884 3.58664 16.509 3.60047 16.5264 3.61791L20.7152 7.80759C20.7326 7.82501 20.7465 7.84569 20.7559 7.86845C20.7653 7.89121 20.7702 7.91561 20.7702 7.94025C20.7702 7.96489 20.7653 7.98929 20.7559 8.01205C20.7465 8.03481 20.7326 8.05549 20.7152 8.07291Z",fill:e.color},null,8,SFe)],8,wFe))}}),CFe={class:"font-weight-bold title"},EFe={class:"d-flex flex-column ga-3"},xFe={class:"d-flex justify-center"},kFe={class:"alert-desc"},TFe={class:"d-sm-flex justify-end ga-2"},PFe=ot({__name:"ProfileAlert",props:{dialog:Boolean,loading:{type:Boolean,default:!1}},emits:["update:leave","update:save-exit","update:close"],setup(e,{emit:t}){const{t:n}=gn(),i=t;return(r,a)=>(J(),je(ir,{"model-value":e.dialog,persistent:"","max-width":"600",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"d-flex justify-center w-full align-center bg-surface-lighten-1"},{default:le(()=>[F("span",CFe,Q(K(n)("profileForm.alertTitle")),1),C(Je,{onClick:a[0]||(a[0]=o=>i("update:close")),color:"#007058",size:"small",style:{position:"absolute",right:"10px",top:"15px"},variant:"outlined",density:"compact",icon:"$close"})]),_:1}),C(br,{class:"pa-5"},{default:le(()=>[F("div",EFe,[F("div",xFe,[C(EU,{color:"#FF5353"})]),F("p",kFe,Q(K(n)("profileForm.alertDescription")),1),F("div",TFe,[C(Je,{color:"#E0E0E0",class:"w-sm-50 w-100",onClick:a[1]||(a[1]=o=>i("update:leave"))},{default:le(()=>[Ze(Q(K(n)("profileForm.leave")),1)]),_:1}),C(Je,{loading:e.loading,disabled:e.loading,class:"w-sm-50 w-100 mt-sm-0 mt-2",onClick:a[2]||(a[2]=o=>i("update:save-exit")),color:"secondary"},{default:le(()=>[Ze(Q(K(n)("profileForm.saveAndExit")),1)]),_:1},8,["loading","disabled"])])])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const $Fe=on(PFe,[["__scopeId","data-v-61689ca2"]]),AFe=["width","height"],OFe=["fill"],DFe={__name:"CameraIcon",props:{width:{type:Number,default:21},height:{type:Number,default:18},color:{type:String,default:"#12C29B"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M18.2997 2.67594H15.4927L14.1072 0.596263C14.0537 0.516057 13.9812 0.450321 13.8961 0.404904C13.8111 0.359486 13.7161 0.335795 13.6197 0.335938H7.37969C7.28327 0.335795 7.18831 0.359486 7.10326 0.404904C7.01821 0.450321 6.9457 0.516057 6.89219 0.596263L5.50574 2.67594H2.69969C2.1308 2.67594 1.58521 2.90193 1.18294 3.30419C0.780678 3.70646 0.554688 4.25205 0.554688 4.82094V15.7409C0.554688 16.3098 0.780678 16.8554 1.18294 17.2577C1.58521 17.6599 2.1308 17.8859 2.69969 17.8859H18.2997C18.8686 17.8859 19.4142 17.6599 19.8164 17.2577C20.2187 16.8554 20.4447 16.3098 20.4447 15.7409V4.82094C20.4447 4.25205 20.2187 3.70646 19.8164 3.30419C19.4142 2.90193 18.8686 2.67594 18.2997 2.67594ZM19.2747 15.7409C19.2747 15.9995 19.172 16.2475 18.9891 16.4304C18.8063 16.6132 18.5583 16.7159 18.2997 16.7159H2.69969C2.4411 16.7159 2.19311 16.6132 2.01026 16.4304C1.82741 16.2475 1.72469 15.9995 1.72469 15.7409V4.82094C1.72469 4.56235 1.82741 4.31436 2.01026 4.13151C2.19311 3.94866 2.4411 3.84594 2.69969 3.84594H5.81969C5.91611 3.84608 6.01106 3.82239 6.09612 3.77697C6.18117 3.73155 6.25367 3.66582 6.30719 3.58561L7.69266 1.50594H13.3057L14.6922 3.58561C14.7457 3.66582 14.8182 3.73155 14.9033 3.77697C14.9883 3.82239 15.0833 3.84608 15.1797 3.84594H18.2997C18.5583 3.84594 18.8063 3.94866 18.9891 4.13151C19.172 4.31436 19.2747 4.56235 19.2747 4.82094V15.7409ZM14.2047 10.2809C14.2047 10.4361 14.1431 10.5849 14.0333 10.6946C13.9236 10.8043 13.7748 10.8659 13.6197 10.8659H11.0847V13.4009C11.0847 13.5561 11.0231 13.7049 10.9133 13.8146C10.8036 13.9243 10.6548 13.9859 10.4997 13.9859C10.3445 13.9859 10.1957 13.9243 10.086 13.8146C9.97632 13.7049 9.91469 13.5561 9.91469 13.4009V10.8659H7.37969C7.22454 10.8659 7.07574 10.8043 6.96603 10.6946C6.85632 10.5849 6.79469 10.4361 6.79469 10.2809C6.79469 10.1258 6.85632 9.97699 6.96603 9.86728C7.07574 9.75757 7.22454 9.69594 7.37969 9.69594H9.91469V7.16094C9.91469 7.00579 9.97632 6.85699 10.086 6.74728C10.1957 6.63757 10.3445 6.57594 10.4997 6.57594C10.6548 6.57594 10.8036 6.63757 10.9133 6.74728C11.0231 6.85699 11.0847 7.00579 11.0847 7.16094V9.69594H13.6197C13.7748 9.69594 13.9236 9.75757 14.0333 9.86728C14.1431 9.97699 14.2047 10.1258 14.2047 10.2809Z",fill:e.color},null,8,OFe)],8,AFe))}},IFe=["width","height"],NFe=["fill"],GD=ot({__name:"PresentationIcon",props:{width:{type:Number,default:16},height:{type:Number,default:16},color:{type:String,default:"#757575"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M9.00087 1.99977C9.00087 1.86716 9.05355 1.73998 9.14732 1.64622C9.24109 1.55245 9.36826 1.49977 9.50087 1.49977H15.5009C15.6335 1.49977 15.7607 1.55245 15.8544 1.64622C15.9482 1.73998 16.0009 1.86716 16.0009 1.99977C16.0009 2.13238 15.9482 2.25955 15.8544 2.35332C15.7607 2.44709 15.6335 2.49977 15.5009 2.49977H9.50087C9.36826 2.49977 9.24109 2.44709 9.14732 2.35332C9.05355 2.25955 9.00087 2.13238 9.00087 1.99977ZM15.5009 4.49977H9.50087C9.36826 4.49977 9.24109 4.55245 9.14732 4.64622C9.05355 4.73998 9.00087 4.86716 9.00087 4.99977C9.00087 5.13238 9.05355 5.25956 9.14732 5.35332C9.24109 5.44709 9.36826 5.49977 9.50087 5.49977H15.5009C15.6335 5.49977 15.7607 5.44709 15.8544 5.35332C15.9482 5.25956 16.0009 5.13238 16.0009 4.99977C16.0009 4.86716 15.9482 4.73998 15.8544 4.64622C15.7607 4.55245 15.6335 4.49977 15.5009 4.49977ZM15.5009 7.49977H11.0009C10.8683 7.49977 10.7411 7.55245 10.6473 7.64622C10.5535 7.73998 10.5009 7.86716 10.5009 7.99977C10.5009 8.13238 10.5535 8.25956 10.6473 8.35332C10.7411 8.44709 10.8683 8.49977 11.0009 8.49977H15.5009C15.6335 8.49977 15.7607 8.44709 15.8544 8.35332C15.9482 8.25956 16.0009 8.13238 16.0009 7.99977C16.0009 7.86716 15.9482 7.73998 15.8544 7.64622C15.7607 7.55245 15.6335 7.49977 15.5009 7.49977ZM9.48525 8.87477C9.50159 8.93838 9.50524 9.00459 9.496 9.06961C9.48675 9.13463 9.46478 9.19719 9.43135 9.25372C9.39792 9.31025 9.35368 9.35964 9.30116 9.39907C9.24864 9.4385 9.18886 9.4672 9.12525 9.48352C9.08449 9.4945 9.04245 9.49997 9.00025 9.49977C8.88935 9.49983 8.78159 9.46302 8.69391 9.39513C8.60622 9.32725 8.54359 9.23214 8.51587 9.12477C8.13087 7.62852 6.61962 6.49977 5.00025 6.49977C3.38087 6.49977 1.86962 7.6279 1.48462 9.12477C1.45147 9.25323 1.36864 9.36327 1.25436 9.43066C1.14008 9.49806 1.00371 9.5173 0.875245 9.48415C0.746781 9.45099 0.636748 9.36817 0.569352 9.25389C0.501956 9.13961 0.482718 9.00323 0.51587 8.87477C0.865245 7.5179 1.88087 6.41915 3.16962 5.87477C2.67339 5.49256 2.30924 4.96461 2.12824 4.36497C1.94723 3.76533 1.95846 3.12407 2.16034 2.53114C2.36222 1.9382 2.74462 1.42332 3.25393 1.05871C3.76323 0.6941 4.37388 0.498047 5.00025 0.498047C5.62661 0.498047 6.23726 0.6941 6.74657 1.05871C7.25587 1.42332 7.63828 1.9382 7.84016 2.53114C8.04203 3.12407 8.05326 3.76533 7.87226 4.36497C7.69125 4.96461 7.3271 5.49256 6.83087 5.87477C8.12025 6.41915 9.13587 7.5179 9.48525 8.87477ZM5.00087 5.49977C5.39643 5.49977 5.78311 5.38247 6.11201 5.16271C6.44091 4.94295 6.69725 4.63059 6.84863 4.26514C7.00001 3.89968 7.03961 3.49755 6.96244 3.10959C6.88527 2.72163 6.69479 2.36526 6.41508 2.08556C6.13538 1.80585 5.77901 1.61537 5.39105 1.5382C5.00309 1.46103 4.60096 1.50064 4.2355 1.65201C3.87005 1.80339 3.55769 2.05973 3.33793 2.38863C3.11817 2.71753 3.00087 3.10421 3.00087 3.49977C3.00087 4.0302 3.21158 4.53891 3.58666 4.91398C3.96173 5.28906 4.47044 5.49977 5.00087 5.49977Z",fill:e.color},null,8,NFe)],8,IFe))}}),MFe=["width","height"],LFe=["fill"],RFe=ot({__name:"DiplomeIcon",props:{color:{type:String,default:"#757575"},width:{type:Number,default:15},height:{type:Number,default:13}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M14.5 6C14.5005 5.4258 14.3598 4.86028 14.0902 4.35331C13.8205 3.84635 13.4303 3.4135 12.9539 3.09294C12.4775 2.77239 11.9296 2.57396 11.3584 2.51516C10.7872 2.45636 10.2103 2.539 9.67863 2.75578C9.14692 2.97256 8.67671 3.31683 8.30946 3.75824C7.94221 4.19965 7.6892 4.72463 7.57274 5.2869C7.45629 5.84917 7.47995 6.43146 7.64166 6.98242C7.80336 7.53339 8.09814 8.0361 8.5 8.44625V12C8.49994 12.0853 8.52169 12.1691 8.56318 12.2436C8.60467 12.3181 8.66452 12.3808 8.73705 12.4256C8.80958 12.4705 8.89237 12.496 8.97756 12.4999C9.06274 12.5037 9.14749 12.4857 9.22375 12.4475L11 11.5588L12.7762 12.4475C12.8525 12.4857 12.9373 12.5037 13.0224 12.4999C13.1076 12.496 13.1904 12.4705 13.2629 12.4256C13.3355 12.3808 13.3953 12.3181 13.4368 12.2436C13.4783 12.1691 13.5001 12.0853 13.5 12V8.44625C14.1413 7.79356 14.5004 6.91502 14.5 6ZM11 3.5C11.4945 3.5 11.9778 3.64662 12.3889 3.92133C12.8 4.19603 13.1205 4.58648 13.3097 5.04329C13.4989 5.50011 13.5484 6.00277 13.452 6.48773C13.3555 6.97268 13.1174 7.41814 12.7678 7.76777C12.4181 8.1174 11.9727 8.3555 11.4877 8.45196C11.0028 8.54843 10.5001 8.49892 10.0433 8.3097C9.58648 8.12048 9.19603 7.80005 8.92133 7.38893C8.64662 6.9778 8.5 6.49445 8.5 6C8.5 5.33696 8.76339 4.70107 9.23223 4.23223C9.70107 3.76339 10.337 3.5 11 3.5ZM11.2238 10.5525C11.1543 10.5177 11.0777 10.4996 11 10.4996C10.9223 10.4996 10.8457 10.5177 10.7762 10.5525L9.5 11.1912V9.16187C9.96871 9.3845 10.4811 9.5 11 9.5C11.5189 9.5 12.0313 9.3845 12.5 9.16187V11.1912L11.2238 10.5525ZM7.5 10C7.5 10.1326 7.44732 10.2598 7.35355 10.3536C7.25979 10.4473 7.13261 10.5 7 10.5H1.5C1.23478 10.5 0.98043 10.3946 0.792893 10.2071C0.605357 10.0196 0.5 9.76522 0.5 9.5V1.5C0.5 1.23478 0.605357 0.98043 0.792893 0.792893C0.98043 0.605357 1.23478 0.5 1.5 0.5H12.5C12.7652 0.5 13.0196 0.605357 13.2071 0.792893C13.3946 0.98043 13.5 1.23478 13.5 1.5C13.5 1.63261 13.4473 1.75979 13.3536 1.85355C13.2598 1.94732 13.1326 2 13 2C12.8674 2 12.7402 1.94732 12.6464 1.85355C12.5527 1.75979 12.5 1.63261 12.5 1.5H1.5V9.5H7C7.13261 9.5 7.25979 9.55268 7.35355 9.64645C7.44732 9.74021 7.5 9.86739 7.5 10ZM6.5 6.5C6.5 6.63261 6.44732 6.75979 6.35355 6.85355C6.25979 6.94732 6.13261 7 6 7H3.5C3.36739 7 3.24021 6.94732 3.14645 6.85355C3.05268 6.75979 3 6.63261 3 6.5C3 6.36739 3.05268 6.24021 3.14645 6.14645C3.24021 6.05268 3.36739 6 3.5 6H6C6.13261 6 6.25979 6.05268 6.35355 6.14645C6.44732 6.24021 6.5 6.36739 6.5 6.5ZM6.5 4.5C6.5 4.63261 6.44732 4.75979 6.35355 4.85355C6.25979 4.94732 6.13261 5 6 5H3.5C3.36739 5 3.24021 4.94732 3.14645 4.85355C3.05268 4.75979 3 4.63261 3 4.5C3 4.36739 3.05268 4.24021 3.14645 4.14645C3.24021 4.05268 3.36739 4 3.5 4H6C6.13261 4 6.25979 4.05268 6.35355 4.14645C6.44732 4.24021 6.5 4.36739 6.5 4.5Z",fill:e.color},null,8,LFe)],8,MFe))}}),FFe=["width","height"],VFe=["fill"],BFe=ot({__name:"ImageIcon",props:{size:{type:Number,default:16},color:{type:String,default:"#757575"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M13.5 2.5H4.5C4.23478 2.5 3.98043 2.60536 3.79289 2.79289C3.60536 2.98043 3.5 3.23478 3.5 3.5V4.5H2.5C2.23478 4.5 1.98043 4.60536 1.79289 4.79289C1.60536 4.98043 1.5 5.23478 1.5 5.5V12.5C1.5 12.7652 1.60536 13.0196 1.79289 13.2071C1.98043 13.3946 2.23478 13.5 2.5 13.5H11.5C11.7652 13.5 12.0196 13.3946 12.2071 13.2071C12.3946 13.0196 12.5 12.7652 12.5 12.5V11.5H13.5C13.7652 11.5 14.0196 11.3946 14.2071 11.2071C14.3946 11.0196 14.5 10.7652 14.5 10.5V3.5C14.5 3.23478 14.3946 2.98043 14.2071 2.79289C14.0196 2.60536 13.7652 2.5 13.5 2.5ZM4.5 3.5H13.5V7.42188L12.8706 6.79313C12.7778 6.70024 12.6675 6.62656 12.5462 6.57629C12.4248 6.52602 12.2948 6.50015 12.1634 6.50015C12.0321 6.50015 11.902 6.52602 11.7807 6.57629C11.6594 6.62656 11.5491 6.70024 11.4563 6.79313L10.2063 8.04313L7.45625 5.29313C7.26873 5.10573 7.01448 5.00046 6.74937 5.00046C6.48427 5.00046 6.23002 5.10573 6.0425 5.29313L4.5 6.83563V3.5ZM11.5 12.5H2.5V5.5H3.5V10.5C3.5 10.7652 3.60536 11.0196 3.79289 11.2071C3.98043 11.3946 4.23478 11.5 4.5 11.5H11.5V12.5ZM13.5 10.5H4.5V8.25L6.75 6L9.85375 9.10375C9.94751 9.19745 10.0746 9.25008 10.2072 9.25008C10.3397 9.25008 10.4669 9.19745 10.5606 9.10375L12.1644 7.5L13.5 8.83625V10.5ZM10 5.25C10 5.10166 10.044 4.95666 10.1264 4.83332C10.2088 4.70999 10.3259 4.61386 10.463 4.55709C10.6 4.50032 10.7508 4.48547 10.8963 4.51441C11.0418 4.54335 11.1754 4.61478 11.2803 4.71967C11.3852 4.82456 11.4566 4.9582 11.4856 5.10368C11.5145 5.24917 11.4997 5.39997 11.4429 5.53701C11.3861 5.67406 11.29 5.79119 11.1667 5.8736C11.0433 5.95601 10.8983 6 10.75 6C10.5511 6 10.3603 5.92098 10.2197 5.78033C10.079 5.63968 10 5.44891 10 5.25Z",fill:e.color},null,8,VFe)],8,FFe))}}),zFe=["width","height"],jFe=["fill"],UFe=ot({__name:"InformationIcon",props:{color:{type:String,default:"#424242"},width:{type:Number,default:14},height:{type:String,default:"10"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M13.25 5C13.25 5.19891 13.171 5.38968 13.0303 5.53033C12.8897 5.67098 12.6989 5.75 12.5 5.75H1.5C1.30109 5.75 1.11032 5.67098 0.96967 5.53033C0.829018 5.38968 0.75 5.19891 0.75 5C0.75 4.80109 0.829018 4.61032 0.96967 4.46967C1.11032 4.32902 1.30109 4.25 1.5 4.25H12.5C12.6989 4.25 12.8897 4.32902 13.0303 4.46967C13.171 4.61032 13.25 4.80109 13.25 5ZM1.5 1.75H12.5C12.6989 1.75 12.8897 1.67098 13.0303 1.53033C13.171 1.38968 13.25 1.19891 13.25 1C13.25 0.801088 13.171 0.610322 13.0303 0.46967C12.8897 0.329018 12.6989 0.25 12.5 0.25H1.5C1.30109 0.25 1.11032 0.329018 0.96967 0.46967C0.829018 0.610322 0.75 0.801088 0.75 1C0.75 1.19891 0.829018 1.38968 0.96967 1.53033C1.11032 1.67098 1.30109 1.75 1.5 1.75ZM12.5 8.25H1.5C1.30109 8.25 1.11032 8.32902 0.96967 8.46967C0.829018 8.61032 0.75 8.80109 0.75 9C0.75 9.19891 0.829018 9.38968 0.96967 9.53033C1.11032 9.67098 1.30109 9.75 1.5 9.75H12.5C12.6989 9.75 12.8897 9.67098 13.0303 9.53033C13.171 9.38968 13.25 9.19891 13.25 9C13.25 8.80109 13.171 8.61032 13.0303 8.46967C12.8897 8.32902 12.6989 8.25 12.5 8.25Z",fill:e.color},null,8,jFe)],8,zFe))}}),HFe=["width","height"],qFe=["fill"],YFe=ot({__name:"ClosexIcon",props:{size:{type:Number,default:14},color:{type:String,default:"#757575"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M13.0675 12.1832C13.1256 12.2412 13.1717 12.3102 13.2031 12.386C13.2345 12.4619 13.2507 12.5432 13.2507 12.6253C13.2507 12.7075 13.2345 12.7888 13.2031 12.8647C13.1717 12.9405 13.1256 13.0095 13.0675 13.0675C13.0095 13.1256 12.9405 13.1717 12.8647 13.2031C12.7888 13.2345 12.7075 13.2507 12.6253 13.2507C12.5432 13.2507 12.4619 13.2345 12.386 13.2031C12.3102 13.1717 12.2412 13.1256 12.1832 13.0675L7.00035 7.88394L1.81753 13.0675C1.70026 13.1848 1.5412 13.2507 1.37535 13.2507C1.2095 13.2507 1.05044 13.1848 0.93316 13.0675C0.815885 12.9503 0.75 12.7912 0.75 12.6253C0.75 12.4595 0.815885 12.3004 0.93316 12.1832L6.11675 7.00035L0.93316 1.81753C0.815885 1.70026 0.75 1.5412 0.75 1.37535C0.75 1.2095 0.815885 1.05044 0.93316 0.93316C1.05044 0.815885 1.2095 0.75 1.37535 0.75C1.5412 0.75 1.70026 0.815885 1.81753 0.93316L7.00035 6.11675L12.1832 0.93316C12.3004 0.815885 12.4595 0.75 12.6253 0.75C12.7912 0.75 12.9503 0.815885 13.0675 0.93316C13.1848 1.05044 13.2507 1.2095 13.2507 1.37535C13.2507 1.5412 13.1848 1.70026 13.0675 1.81753L7.88394 7.00035L13.0675 12.1832Z",fill:e.color},null,8,qFe)],8,HFe))}}),WFe=["width","height"],GFe=["fill"],Xb=ot({__name:"TrashIcon",props:{color:{type:String,default:"white"},width:{type:Number,default:16},height:{type:Number,default:17}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.width,height:e.height,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("path",{d:"M14.875 2.75H1.125C0.95924 2.75 0.800269 2.81585 0.683058 2.93306C0.565848 3.05027 0.5 3.20924 0.5 3.375C0.5 3.54076 0.565848 3.69973 0.683058 3.81694C0.800269 3.93415 0.95924 4 1.125 4H1.75V15.25C1.75 15.5815 1.8817 15.8995 2.11612 16.1339C2.35054 16.3683 2.66848 16.5 3 16.5H13C13.3315 16.5 13.6495 16.3683 13.8839 16.1339C14.1183 15.8995 14.25 15.5815 14.25 15.25V4H14.875C15.0408 4 15.1997 3.93415 15.3169 3.81694C15.4342 3.69973 15.5 3.54076 15.5 3.375C15.5 3.20924 15.4342 3.05027 15.3169 2.93306C15.1997 2.81585 15.0408 2.75 14.875 2.75ZM13 15.25H3V4H13V15.25ZM4.25 0.875C4.25 0.70924 4.31585 0.550268 4.43306 0.433058C4.55027 0.315848 4.70924 0.25 4.875 0.25H11.125C11.2908 0.25 11.4497 0.315848 11.5669 0.433058C11.6842 0.550268 11.75 0.70924 11.75 0.875C11.75 1.04076 11.6842 1.19973 11.5669 1.31694C11.4497 1.43415 11.2908 1.5 11.125 1.5H4.875C4.70924 1.5 4.55027 1.43415 4.43306 1.31694C4.31585 1.19973 4.25 1.04076 4.25 0.875Z",fill:e.color},null,8,GFe)],8,WFe))}}),KFe={class:"d-flex flex-column ga-3"},ZFe=["onClick"],XFe={class:"d-flex align-center ga-2"},JFe={style:{"font-size":"16px"}},QFe={style:{color:"#f56565"}},eVe=["onClick"],tVe={class:"d-flex align-center ga-2"},nVe={class:"text-bright-orange",style:{"font-size":"16px"}},iVe={class:"text-bright-orange",style:{"font-weight":"600","font-size":"12px"}},rVe={style:{color:"#f56565"}},aVe=ot({__name:"ProfileListDialog",props:{dialog:Boolean,profiles:Object,currentProfileId:String},emits:["update:close","update:selected","update:delete","update:draft"],setup(e,{emit:t}){const{t:n}=gn(),i=t;return(r,a)=>(J(),je(ir,{"model-value":e.dialog,persistent:"","max-width":"600",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"d-flex justify-end w-full align-center bg-white"},{default:le(()=>[C(YFe,{onClick:a[0]||(a[0]=o=>i("update:close")),class:"cursor-pointer"})]),_:1}),C(br,{class:"px-5 pt-0"},{default:le(()=>[F("div",KFe,[F("p",null,Q(K(n)("dashboard.profile.select_profil")),1),(J(!0),ve(Ue,null,Ht(e.profiles.slice().reverse(),(o,s)=>{var l,u;return J(),ve(Ue,null,[o.id?(J(),ve("div",{key:0,onClick:()=>i("update:selected",{profile:o,index:s}),class:Gt(["cursor-pointer rounded-lg profile-card d-flex align-center justify-space-between pa-1",{"border-md border-teal border-opacity-100":o.id===e.currentProfileId}]),style:{"background-color":"#e0e0e0"}},[F("div",XFe,[C(Ui,{size:"40",class:"border-md"},{default:le(()=>{var c;return[xt(C(Uu,{width:"40",height:"40",color:"#9E9E9E"},null,512),[[hn,!o.avatar]]),xt(C(Ii,{src:(c=o.avatar)==null?void 0:c.url,cover:!0},null,8,["src"]),[[hn,o.avatar]])]}),_:2},1024),F("div",null,[F("div",JFe,Q(o.mainDiscipline.name),1),F("div",{class:Gt({"text-blue":(l=o.draft)==null?void 0:l.isSynced,"text-teal":!((u=o.draft)!=null&&u.isSynced)}),style:{"font-weight":"600","font-size":"12px"}},Q(o.draft.isSynced?r.$t("accountForm.save-and-publish"):r.$t("accountForm.not-synced")),3)])]),C(ho,{"offset-y":""},{activator:le(({props:c})=>[C(Je,Me({icon:"mdi-dots-horizontal",variant:"text",ref_for:!0},c),null,16)]),default:le(()=>[C(rl,{"base-color":"#757575",class:"mt-2 pa-2","bg-color":"white",rounded:"lg",density:"compact",nav:""},{default:le(()=>{var c,d;return[o.profileAddresses[0]?(J(),je(fi,{key:0,class:"menu-item",to:{name:"PractitionerPublicProfile",params:{discipline:o.mainDiscipline.slug,city:(d=(c=o.profileAddresses[0])==null?void 0:c.address)==null?void 0:d.city,practitionerSlug:o.slug}},target:"_blank"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(ut,{color:"#9E9E9E"},{default:le(()=>[Ze("mdi-eye-outline")]),_:1}),F("span",null,Q(r.$t("dashboard.profile.see_as_patient")),1)]),_:1})]),_:2},1032,["to"])):De("",!0),C(fi,{onClick:()=>i("update:draft",{id:o.id}),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(ut,{color:"#9E9E9E"},{default:le(()=>[Ze("mdi-content-copy")]),_:1}),F("span",null,Q(r.$t("dashboard.profile.copy_in_draft")),1)]),_:1})]),_:2},1032,["onClick"]),C(fi,{onClick:()=>i("update:selected",{profile:o,index:s}),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Zb,{color:"#757575",size:"24"}),F("span",null,Q(r.$t("dashboard.profile.update_profile")),1)]),_:1})]),_:2},1032,["onClick"]),C(jn),C(fi,{onClick:f=>i("update:delete",{profile:o,idx:s}),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Xb,{color:"#F56565"}),F("span",QFe,Q(r.$t("accountForm.avatar.deleteProfil")),1)]),_:1})]),_:2},1032,["onClick"])]}),_:2},1024)]),_:2},1024)],10,ZFe)):(J(),ve("div",{key:1,onClick:()=>i("update:selected",{profile:o,index:s}),class:Gt(["cursor-pointer rounded-lg profile-card d-flex align-center justify-space-between pa-1",{"border-md border-bright-orange border-opacity-100":o.draft.id===e.currentProfileId}]),style:{"background-color":"#e0e0e0"}},[F("div",tVe,[C(Ui,{size:"40",class:"border-md"},{default:le(()=>{var c;return[xt(C(Uu,{width:"40",height:"40",color:"#9E9E9E"},null,512),[[hn,!o.avatar]]),xt(C(Ii,{src:(c=o.avatar)==null?void 0:c.url,cover:!0},null,8,["src"]),[[hn,o.avatar]])]}),_:2},1024),F("div",null,[F("div",nVe,Q(o.draft.mainDiscipline.name??K(n)("dashboard.profile.unPublish")),1),F("div",iVe,Q(r.$t("accountForm.not-publish")),1)])]),C(ho,{"offset-y":""},{activator:le(({props:c})=>[C(Je,Me({icon:"mdi-dots-horizontal",variant:"text",ref_for:!0},c),null,16)]),default:le(()=>[C(rl,{"base-color":"#757575",class:"mt-2 pa-2","bg-color":"white",rounded:"lg",density:"compact",nav:""},{default:le(()=>[C(fi,{onClick:()=>i("update:selected",{profile:o,index:s}),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Zb,{color:"#757575",size:"24"}),F("span",null,Q(r.$t("dashboard.profile.update_profile")),1)]),_:1})]),_:2},1032,["onClick"]),C(jn),C(fi,{onClick:c=>i("update:delete",{profile:o,idx:s}),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Xb,{color:"#F56565"}),F("span",rVe,Q(r.$t("accountForm.avatar.deleteProfil")),1)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)],10,eVe))],64)}),256))])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const oVe=on(aVe,[["__scopeId","data-v-d7763f8e"]]);/*! * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com * (c) 2024 Dmytro Semenov */function ag(e,t,n){const i=document.createElement(t);return e&&(i.className=e),n&&n.appendChild(i),i}function sVe(e,t,n){let i=`translate3d(${e}px,${t||0}px,0)`;return n!==void 0&&(i+=` scale3d(${n},${n},1)`),i}function CE(e,t,n){e.style.width=typeof t=="number"?`${t}px`:t,e.style.height=typeof n=="number"?`${n}px`:n}const is={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function lVe(e){return"button"in e&&e.button===1||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}function og(e,t,n=document){let i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const r=typeof e=="string"?e:t;r&&(i=Array.from(n.querySelectorAll(r)))}return i}function uVe(e){return typeof e=="function"&&e.prototype&&e.prototype.goTo}function KD(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class cVe{constructor(t,n){this.type=t,this.defaultPrevented=!1,n&&Object.assign(this,n)}preventDefault(){this.defaultPrevented=!0}}class dVe{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,n,i=100){var r,a,o;this._filters[t]||(this._filters[t]=[]),(r=this._filters[t])===null||r===void 0||r.push({fn:n,priority:i}),(a=this._filters[t])===null||a===void 0||a.sort((s,l)=>s.priority-l.priority),(o=this.pswp)===null||o===void 0||o.addFilter(t,n,i)}removeFilter(t,n){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==n)),this.pswp&&this.pswp.removeFilter(t,n)}applyFilters(t,...n){var i;return(i=this._filters[t])===null||i===void 0||i.forEach(r=>{n[0]=r.fn.apply(this,n)}),n[0]}on(t,n){var i,r;this._listeners[t]||(this._listeners[t]=[]),(i=this._listeners[t])===null||i===void 0||i.push(n),(r=this.pswp)===null||r===void 0||r.on(t,n)}off(t,n){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(r=>n!==r)),(i=this.pswp)===null||i===void 0||i.off(t,n)}dispatch(t,n){var i;if(this.pswp)return this.pswp.dispatch(t,n);const r=new cVe(t,n);return(i=this._listeners[t])===null||i===void 0||i.forEach(a=>{a.call(this,r)}),r}}class fVe{constructor(t,n){if(this.element=ag("pswp__img pswp__img--placeholder",t?"img":"div",n),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,n){this.element&&(this.element.tagName==="IMG"?(CE(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=sVe(0,0,t/250)):CE(this.element,t,n))}destroy(){var t;(t=this.element)!==null&&t!==void 0&&t.parentNode&&this.element.remove(),this.element=null}}class hVe{constructor(t,n,i){this.instance=n,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=is.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new fVe(i,this.slide.container)}this.element&&!n||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=ag("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=ag("pswp__content","div"),this.element.innerHTML=this.data.html||""),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var n,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const r=this.element;this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=(n=this.data.src)!==null&&n!==void 0?n:"",r.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=is.LOADING,r.complete?this.onLoaded():(r.onload=()=>{this.onLoaded()},r.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=is.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===is.LOADED||this.state===is.ERROR)&&this.removePlaceholder())}onError(){this.state=is.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===is.LOADING,this)}isError(){return this.state===is.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,n){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,n),!this.instance.dispatch("contentResize",{content:this,width:t,height:n}).defaultPrevented&&(CE(this.element,t,n),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=n,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:n,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==is.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,n=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||n>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=n+"px",t.dataset.largestUsedSize=String(n))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,n;let i=ag("pswp__error-msg","div");i.innerText=(t=(n=this.instance.options)===null||n===void 0?void 0:n.errorMsg)!==null&&t!==void 0?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=ag("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===is.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||KD())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!KD()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===is.LOADED||this.state===is.ERROR)&&this.removePlaceholder()))}}function pVe(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function z0(e,t,n,i,r){let a=0;if(t.paddingFn)a=t.paddingFn(n,i,r)[e];else if(t.padding)a=t.padding[e];else{const o="padding"+e[0].toUpperCase()+e.slice(1);t[o]&&(a=t[o])}return Number(a)||0}function mVe(e,t,n,i){return{x:t.x-z0("left",e,t,n,i)-z0("right",e,t,n,i),y:t.y-z0("top",e,t,n,i)-z0("bottom",e,t,n,i)}}const ZD=4e3;class vVe{constructor(t,n,i,r){this.pswp=r,this.options=t,this.itemData=n,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,n,i){const r={x:t,y:n};this.elementSize=r,this.panAreaSize=i;const a=i.x/r.x,o=i.y/r.y;this.fit=Math.min(1,a<o?a:o),this.fill=Math.min(1,a>o?a:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const n=t+"ZoomLevel",i=this.options[n];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>ZD&&(t=ZD/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}function Kq(e,t,n){const i=t.createContentFromData(e,n);let r;const{options:a}=t;if(a){r=new vVe(a,e,-1);let o;t.pswp?o=t.pswp.viewportSize:o=pVe(a,t);const s=mVe(a,o,e,n);r.update(i.width,i.height,s)}return i.lazyLoad(),r&&i.setDisplayedSize(Math.ceil(i.width*r.initial),Math.ceil(i.height*r.initial)),i}function gVe(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return Kq(n,t,e)}class yVe extends dVe{getNumItems(){var t;let n=0;const i=(t=this.options)===null||t===void 0?void 0:t.dataSource;i&&"length"in i?n=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(n=i.items.length));const r=this.dispatch("numItems",{dataSource:i,numItems:n});return this.applyFilters("numItems",r.numItems,i)}createContentFromData(t,n){return new hVe(t,this,n)}getItemData(t){var n;const i=(n=this.options)===null||n===void 0?void 0:n.dataSource;let r={};Array.isArray(i)?r=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),r=i.items[t]);let a=r;a instanceof Element&&(a=this._domElementToItemData(a));const o=this.dispatch("itemData",{itemData:a||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){var n,i;return(n=this.options)!==null&&n!==void 0&&n.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?og(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const n={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){n.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(n.srcset=i.dataset.pswpSrcset),n.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,n.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,n.w=n.width,n.h=n.height,i.dataset.pswpType&&(n.type=i.dataset.pswpType);const a=t.querySelector("img");if(a){var r;n.msrc=a.currentSrc||a.src,n.alt=(r=a.getAttribute("alt"))!==null&&r!==void 0?r:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(n.thumbCropped=!0)}return this.applyFilters("domItemData",n,t,i)}lazyLoadData(t,n){return Kq(t,this,n)}}class _Ve extends yVe{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){og(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(lVe(t)||window.pswp)return;let n={x:t.clientX,y:t.clientY};!n.x&&!n.y&&(n=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const r={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,r,n))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const n=t.target,r=og(this.options.children,this.options.childSelector,t.currentTarget).findIndex(a=>a===n||a.contains(n));return r!==-1?r:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,n,i){if(window.pswp||!this.options)return!1;if(!n&&this.options.gallery&&this.options.children){const r=og(this.options.gallery);r[0]&&(n={gallery:r[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,n),!0}preload(t,n){const{options:i}=this;n&&(i.dataSource=n);const r=[],a=typeof i.pswpModule;if(uVe(i.pswpModule))r.push(Promise.resolve(i.pswpModule));else{if(a==="string")throw new Error("pswpModule as string is no longer supported");if(a==="function")r.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&r.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=gVe(t,this));const o=++this._uid;Promise.all(r).then(s=>{if(this.shouldOpen){const l=s[0];this._openPhotoswipe(l,o)}})}_openPhotoswipe(t,n){if(n!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(r=>{var a;(a=this._listeners[r])===null||a===void 0||a.forEach(o=>{i.on(r,o)})}),Object.keys(this._filters).forEach(r=>{var a;(a=this._filters[r])===null||a===void 0||a.forEach(o=>{i.addFilter(r,o.fn,o.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var t;(t=this.pswp)===null||t===void 0||t.destroy(),this.shouldOpen=!1,this._listeners={},og(this.options.gallery,this.options.gallerySelector).forEach(n=>{n.removeEventListener("click",this.onThumbnailsClick,!1)})}}class Zq extends Error{constructor(t){super(t),this.name="TimeoutError"}}class bVe extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const XD=e=>globalThis.DOMException===void 0?new bVe(e):new DOMException(e),JD=e=>{const t=e.reason===void 0?XD("This operation was aborted."):e.reason;return t instanceof Error?t:XD(t)};function wVe(e,t){const{milliseconds:n,fallback:i,message:r,customTimers:a={setTimeout,clearTimeout}}=t;let o,s;const u=new Promise((c,d)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:h}=t;h.aborted&&d(JD(h)),s=()=>{d(JD(h))},h.addEventListener("abort",s,{once:!0})}if(n===Number.POSITIVE_INFINITY){e.then(c,d);return}const f=new Zq;o=a.setTimeout.call(void 0,()=>{if(i){try{c(i())}catch(h){d(h)}return}typeof e.cancel=="function"&&e.cancel(),r===!1?c():r instanceof Error?d(r):(f.message=r??`Promise timed out after ${n} milliseconds`,d(f))},n),(async()=>{try{c(await e)}catch(h){d(h)}})()}).finally(()=>{u.clear(),s&&t.signal&&t.signal.removeEventListener("abort",s)});return u.clear=()=>{a.clearTimeout.call(void 0,o),o=void 0},u}function SVe(e,t,n){let i=0,r=e.length;for(;r>0;){const a=Math.trunc(r/2);let o=i+a;n(e[o],t)<=0?(i=++o,r-=a+1):r=a}return i}var as;class CVe{constructor(){Gn(this,as,[])}enqueue(t,n){n={priority:0,...n};const i={priority:n.priority,id:n.id,run:t};if(this.size===0||At(this,as)[this.size-1].priority>=n.priority){At(this,as).push(i);return}const r=SVe(At(this,as),i,(a,o)=>o.priority-a.priority);At(this,as).splice(r,0,i)}setPriority(t,n){const i=At(this,as).findIndex(a=>a.id===t);if(i===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[r]=At(this,as).splice(i,1);this.enqueue(r.run,{priority:n,id:t})}dequeue(){const t=At(this,as).shift();return t==null?void 0:t.run}filter(t){return At(this,as).filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return At(this,as).length}}as=new WeakMap;var $p,Ap,Hc,I1,Op,N1,os,Dp,Ha,M1,ss,Ip,Bu,L1,Jb,Qb,Xq,e2,Jq,t2,Qq,n2,eY,i2,tY,Np,x_,R1,EE,F1,xE,Mp,k_,r2,nY,Lp,T_;class EVe extends SMe{constructor(n){var i,r;super();Gn(this,Qb);Gn(this,e2);Gn(this,t2);Gn(this,n2);Gn(this,i2);Gn(this,Np);Gn(this,R1);Gn(this,F1);Gn(this,Mp);Gn(this,r2);Gn(this,Lp);Gn(this,$p,void 0);Gn(this,Ap,void 0);Gn(this,Hc,0);Gn(this,I1,void 0);Gn(this,Op,void 0);Gn(this,N1,0);Gn(this,os,void 0);Gn(this,Dp,void 0);Gn(this,Ha,void 0);Gn(this,M1,void 0);Gn(this,ss,0);Gn(this,Ip,void 0);Gn(this,Bu,void 0);Gn(this,L1,void 0);Gn(this,Jb,1n);Ns(this,"timeout");if(n={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:CVe,...n},!(typeof n.intervalCap=="number"&&n.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((i=n.intervalCap)==null?void 0:i.toString())??""}\` (${typeof n.intervalCap})`);if(n.interval===void 0||!(Number.isFinite(n.interval)&&n.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((r=n.interval)==null?void 0:r.toString())??""}\` (${typeof n.interval})`);Bi(this,$p,n.carryoverConcurrencyCount),Bi(this,Ap,n.intervalCap===Number.POSITIVE_INFINITY||n.interval===0),Bi(this,I1,n.intervalCap),Bi(this,Op,n.interval),Bi(this,Ha,new n.queueClass),Bi(this,M1,n.queueClass),this.concurrency=n.concurrency,this.timeout=n.timeout,Bi(this,L1,n.throwOnTimeout===!0),Bi(this,Bu,n.autoStart===!1)}get concurrency(){return At(this,Ip)}set concurrency(n){if(!(typeof n=="number"&&n>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`);Bi(this,Ip,n),ra(this,Mp,k_).call(this)}setPriority(n,i){At(this,Ha).setPriority(n,i)}async add(n,i={}){return i.id??(i.id=(Qm(this,Jb)._++).toString()),i={timeout:this.timeout,throwOnTimeout:At(this,L1),...i},new Promise((r,a)=>{At(this,Ha).enqueue(async()=>{var o;Qm(this,ss)._++,Qm(this,Hc)._++;try{(o=i.signal)==null||o.throwIfAborted();let s=n({signal:i.signal});i.timeout&&(s=wVe(Promise.resolve(s),{milliseconds:i.timeout})),i.signal&&(s=Promise.race([s,ra(this,r2,nY).call(this,i.signal)]));const l=await s;r(l),this.emit("completed",l)}catch(s){if(s instanceof Zq&&!i.throwOnTimeout){r();return}a(s),this.emit("error",s)}finally{ra(this,t2,Qq).call(this)}},i),this.emit("add"),ra(this,Np,x_).call(this)})}async addAll(n,i){return Promise.all(n.map(async r=>this.add(r,i)))}start(){return At(this,Bu)?(Bi(this,Bu,!1),ra(this,Mp,k_).call(this),this):this}pause(){Bi(this,Bu,!0)}clear(){Bi(this,Ha,new(At(this,M1)))}async onEmpty(){At(this,Ha).size!==0&&await ra(this,Lp,T_).call(this,"empty")}async onSizeLessThan(n){At(this,Ha).size<n||await ra(this,Lp,T_).call(this,"next",()=>At(this,Ha).size<n)}async onIdle(){At(this,ss)===0&&At(this,Ha).size===0||await ra(this,Lp,T_).call(this,"idle")}get size(){return At(this,Ha).size}sizeBy(n){return At(this,Ha).filter(n).length}get pending(){return At(this,ss)}get isPaused(){return At(this,Bu)}}$p=new WeakMap,Ap=new WeakMap,Hc=new WeakMap,I1=new WeakMap,Op=new WeakMap,N1=new WeakMap,os=new WeakMap,Dp=new WeakMap,Ha=new WeakMap,M1=new WeakMap,ss=new WeakMap,Ip=new WeakMap,Bu=new WeakMap,L1=new WeakMap,Jb=new WeakMap,Qb=new WeakSet,Xq=function(){return At(this,Ap)||At(this,Hc)<At(this,I1)},e2=new WeakSet,Jq=function(){return At(this,ss)<At(this,Ip)},t2=new WeakSet,Qq=function(){Qm(this,ss)._--,ra(this,Np,x_).call(this),this.emit("next")},n2=new WeakSet,eY=function(){ra(this,F1,xE).call(this),ra(this,R1,EE).call(this),Bi(this,Dp,void 0)},i2=new WeakSet,tY=function(){const n=Date.now();if(At(this,os)===void 0){const i=At(this,N1)-n;if(i<0)Bi(this,Hc,At(this,$p)?At(this,ss):0);else return At(this,Dp)===void 0&&Bi(this,Dp,setTimeout(()=>{ra(this,n2,eY).call(this)},i)),!0}return!1},Np=new WeakSet,x_=function(){if(At(this,Ha).size===0)return At(this,os)&&clearInterval(At(this,os)),Bi(this,os,void 0),this.emit("empty"),At(this,ss)===0&&this.emit("idle"),!1;if(!At(this,Bu)){const n=!At(this,i2,tY);if(At(this,Qb,Xq)&&At(this,e2,Jq)){const i=At(this,Ha).dequeue();return i?(this.emit("active"),i(),n&&ra(this,R1,EE).call(this),!0):!1}}return!1},R1=new WeakSet,EE=function(){At(this,Ap)||At(this,os)!==void 0||(Bi(this,os,setInterval(()=>{ra(this,F1,xE).call(this)},At(this,Op))),Bi(this,N1,Date.now()+At(this,Op)))},F1=new WeakSet,xE=function(){At(this,Hc)===0&&At(this,ss)===0&&At(this,os)&&(clearInterval(At(this,os)),Bi(this,os,void 0)),Bi(this,Hc,At(this,$p)?At(this,ss):0),ra(this,Mp,k_).call(this)},Mp=new WeakSet,k_=function(){for(;ra(this,Np,x_).call(this););},r2=new WeakSet,nY=async function(n){return new Promise((i,r)=>{n.addEventListener("abort",()=>{r(n.reason)},{once:!0})})},Lp=new WeakSet,T_=async function(n,i){return new Promise(r=>{const a=()=>{i&&!i()||(this.off(n,a),r())};this.on(n,a)})};const xVe={class:"text-grey mb-2 auto-save-title"},kVe={key:0},TVe={class:"d-flex flex-column ga-2"},PVe={class:"d-flex align-start"},$Ve={class:"ml-2 w-100 d-flex justify-space-between align-start"},AVe={class:"text-danger",style:{"font-weight":"600","font-size":"12px"}},OVe={key:0,class:"d-flex flex-wrap ga-2"},DVe={class:"text-gray-80"},IVe={key:1,class:"profil-tagline"},NVe={key:2,class:"font-italic profil-tagline-empty"},MVe={class:"d-flex align-start"},LVe={class:"ml-2 w-100 d-flex justify-space-between align-start"},RVe={class:"d-flex align-center ga-1"},FVe={style:{color:"#f56565"}},VVe={class:"d-flex flex-wrap ga-2"},BVe={class:"text-gray-80"},zVe={key:0,class:"profil-tagline"},jVe={key:1,class:"font-italic profil-tagline-empty"},UVe={key:1},HVe={class:"d-flex align-start"},qVe={class:"ml-2 w-100 d-flex justify-space-between align-start"},YVe={class:"profile-slug text-bright-orange text-break"},WVe={class:"text-bright-orange",style:{"font-weight":"600","font-size":"12px"}},GVe={class:"d-flex align-center ga-1"},KVe={style:{color:"#f56565"}},ZVe={class:"d-flex flex-wrap ga-2"},XVe={class:"text-gray-80"},JVe={key:0,class:"profil-tagline"},QVe={key:1,class:"font-italic profil-tagline-empty"},eBe={key:1},tBe={class:"d-flex align-start"},nBe={class:"ml-2 w-100 d-flex justify-space-between align-start"},iBe={class:"text-dark-green",style:{"font-weight":"600","font-size":"12px"}},rBe={class:"d-flex flex-wrap ga-2"},aBe={class:"text-gray-80"},oBe={key:0,class:"profil-tagline"},sBe={key:1,class:"font-italic profil-tagline-empty"},lBe={key:0},uBe={key:1},cBe={class:"d-flex flex-wrap ga-2 align-center mt-sm-0 mt-2"},dBe={style:{"font-size":"14px"}},fBe={class:"pa-2 block-profile"},hBe={class:"tab-header pa-2 align-center"},pBe={class:"w-100 d-flex align-center pa-1 rounded-lg overflow-x-auto justify-between ga-3",style:{color:"#757575","background-color":"#f5f5f5"}},mBe={class:"d-sm-flex ga-2 align-center justify-space-between"},vBe={class:"d-flex align-center ga-2"},gBe={style:{position:"relative",width:"fit-content",height:"fit-content"}},yBe={style:{"font-size":"13px"},class:"d-flex flex-column ga-1"},_Be={class:"d-flex align-center ga-1 text-gray-80"},bBe={style:{"font-weight":"600"}},wBe={class:"d-flex flex-column ga-1"},SBe={class:"text-gray-80"},CBe={class:"d-flex flex-column ga-2"},EBe={class:"tab-title py-2"},xBe={class:"suggest-custom"},kBe={key:0},TBe={class:"tab-title py-2"},PBe={class:"d-flex justify-space-between align-center"},$Be={class:"tab-title py-2"},ABe={class:"d-sm-flex ga-2"},OBe={class:"w-sm-50"},DBe={class:"w-sm-50 d-flex ga-2"},IBe={class:"w-100"},NBe={class:"w-100"},MBe={class:"d-flex align-center ga-1"},LBe={style:{color:"#424242","font-weight":"400"}},RBe={class:"text-decoration-underline"},FBe={key:1,class:"d-flex justify-center align-space-center font-italic text-gray-80"},VBe={class:"py-2"},BBe={class:"d-flex justify-space-between align-center"},zBe={class:"tab-title py-2"},jBe={key:1,class:"d-flex justify-center align-space-center font-italic text-gray-80"},UBe={key:0,class:"pa-1 d-sm-flex justify-sm-end ga-2"},HBe={key:1,class:"pa-sm-5 pa-2 ga-2"},QD=3,qBe=5,p5=100,m5=1e3,eI=100,v5=1e3,g5=1e3,j0=5,tI=3,YBe=80,WBe=ot({__name:"ProfileForm",props:{embedded:Boolean},emits:["submitLoading"],setup(e,{expose:t,emit:n}){const i=new EVe({concurrency:1}),r=z(!1),a=Un(),o=Ho(),{mdAndDown:s,mobile:l,xs:u,sm:c,smAndDown:d,mdAndUp:f}=Ki();ud();const h=X1(),m=fh(),g=z(0),v=gn().t,y=ow(),_=z(null),S=n,w=ly(),x=z(!1),k=z({schoolName:{value:"",error:""},discipline:{value:"",error:""},title:{value:"",error:""},graduationYear:{value:null,error:""},durationValue:{value:null,error:"",hasError:!1},durationUnit:{value:"years",error:""},documents:{value:[],error:""},error:{value:"",error:""}}),E=z({...{avatar:{src:"",key:"",error:""},disciplines:{value:[],error:""},mainDiscipline:{value:null,error:""},practitionerServices:{value:[],error:""},targetAudiences:{value:[],error:""},paymentMethods:{value:[],error:""},spokenLanguages:{value:[],error:""},email:{value:"",error:""},webSite:{value:"",error:""},phone:{value:"",error:"",normalizedValue:"",valid:!0},tagline:{value:"",error:""},mainDescription:{value:"",error:"",valid:!1},sessionDescription:{value:"",error:"",valid:null},expectedBenefits:{value:"",error:"",valid:null},photos:{value:[],error:""},degrees:{value:[],error:""},isDraft:!1,DraftId:""}}),A=()=>{ne.value="",Ts.value++,vl.value++,Jn.value++,gl.value++,su.value++,lu.value++,uu.value++,E.value={...E.value,mainDescription:{...E.value.mainDescription,value:""},avatar:{...E.value.avatar,src:"",key:""},disciplines:{...E.value.disciplines,value:[]},mainDiscipline:{...E.value.mainDiscipline,value:""},practitionerServices:{...E.value.practitionerServices,value:[]},webSite:{...E.value.webSite,value:""},email:{...E.value.email,value:""},phone:{...E.value.phone,value:""},degrees:{...E.value.degrees,value:[]},photos:{...E.value.photos,value:[]},expectedBenefits:{...E.value.expectedBenefits,value:""},sessionDescription:{...E.value.sessionDescription,value:""},targetAudiences:{...E.value.sessionDescription,value:[]},paymentMethods:{...E.value.paymentMethods,value:[]},spokenLanguages:{...E.value.spokenLanguages,value:[]},tagline:{...E.value.tagline,value:""}},D.value="",T.value=!0},D=z(""),T=z(!1),O=z(!1),N=z({}),V=z(!1),j=z(!1);Ve(()=>E.value.disciplines.value,()=>{E.value.disciplines.value.includes(E.value.mainDiscipline.value)||(E.value.mainDiscipline.value=null),E.value.disciplines.value.length==1&&(E.value.mainDiscipline.value=E.value.disciplines.value[0])});const q=Be=>{const{index:Ne,profile:Dt}=Be;Ko(Dt,Ne),x.value=!1},ne=z(null),ae=z(!1),Y=z(!1),M=z([]),I=z(),W=z([{id:"all",name:v("profileForm.targetAudiences.audience.all")},{id:"adults",name:v("profileForm.targetAudiences.audience.adults")},{id:"children",name:v("profileForm.targetAudiences.audience.children")},{id:"adolescents",name:v("profileForm.targetAudiences.audience.adolescents")},{id:"elderly",name:v("profileForm.targetAudiences.audience.elderly")},{id:"pregnantWomen",name:v("profileForm.targetAudiences.audience.pregnantWomen")},{id:"women",name:v("profileForm.targetAudiences.audience.women")},{id:"men",name:v("profileForm.targetAudiences.audience.men")}]),te=z([{id:"cash",name:v("profileForm.paymentMethods.method.cash")},{id:"creditCard",name:v("profileForm.paymentMethods.method.creditCard")},{id:"check",name:v("profileForm.paymentMethods.method.check")},{id:"transfer",name:v("profileForm.paymentMethods.method.transfer")}]),he=B(()=>[{id:"years",name:v("profileForm.degrees.durationUnit.years",2)},{id:"months",name:v("profileForm.degrees.durationUnit.months")},{id:"weeks",name:v("profileForm.degrees.durationUnit.weeks",2)},{id:"days",name:v("profileForm.degrees.durationUnit.days",2)}]);z([{id:"years",name:v("profileForm.degrees.durationUnit.years",k.value.durationValue.value)},{id:"months",name:v("profileForm.degrees.durationUnit.months")},{id:"weeks",name:v("profileForm.degrees.durationUnit.weeks")}]);const oe=B(()=>ft.value.filter(Be=>E.value.disciplines.value.some(Ne=>Ne===Be.id))),U=[Be=>Be.length||v("profileForm.disciplines.error.required"),Be=>Be&&Be.length<=QD||v("profileForm.disciplines.error.max")],ee=[Be=>Be&&Be.length<=qBe||v("profileForm.practitionerServices.error.max")],re=[Be=>Be.length||v("profileForm.targetAudiences.error.required"),Be=>Be&&Be.length>1&&Be.some(Ne=>Ne==="all")?v("profileForm.targetAudiences.error.allWithOthers"):!0],ue=[Be=>Be.length||v("profileForm.paymentMethods.error.required")],pe=[Be=>Be.length||v("profileForm.spokenLanguages.error.required"),Be=>5>=Be.length||v("profileForm.spokenLanguages.error.maximum5Languages")],ge=[Be=>!Be.length||_Te.test(Be)||v("commonForm.email.error.invalid")],Te=Be=>/^(?!:\/\/)([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?$/.test(Be)||v("profileForm.validDomain"),Z=[Be=>{if(!Be)return!0;try{const Ne=new URL(Be),Dt=Ne.hostname;return Te(Ne.hostname)}catch{return v("profileForm.invalidUrl")}}],X=[Be=>Be.length<=p5||v("profileForm.tagline.error.max",{maxLength:p5})],ye=[Be=>!!Be||v("profileForm.mainDescription.error.required"),Be=>Be.length<=m5||v("profileForm.mainDescription.error.max",{maxLength:m5}),Be=>Be.length>eI||v("profileForm.mainDescription.error.min",{minLength:eI})],Se=[Be=>Be.length<=v5||v("profileForm.sessionDescription.error.max",{maxLength:v5})],Ee=[Be=>Be.length<=g5||v("profileForm.expectedBenefits.error.max",{maxLength:g5})],_e=[Be=>!!Be||v("commonForm.error.required"),Be=>Be.length<=100||v("profileForm.degree_hint")],be=[Be=>!!Be||v("commonForm.error.required")],ie=z(!0),se=B(()=>ie.value&&E.value.phone.valid!==!1),de=B(()=>I.value.isValid()!==!1&&E.value.sessionDescription.valid!==!1&&E.value.expectedBenefits.valid!==!1),xe=z(!0),Re=z(),Pe=z(),we=z(),Ae=z(!1),Ie=new Date().getFullYear(),Ye=Array.from({length:YBe},(Be,Ne)=>Ie-Ne),rt=z([]),Ot=()=>{WD.getPlugin("Dashboard").openModal()},$n=()=>{JRe(j0-E.value.photos.value.length),Gb.getPlugin("Dashboard").openModal()},jt=Be=>{eFe(tI-Be.length),rt.value=Be,Kb.getPlugin("Dashboard").openModal()};WD.on("complete",Be=>{const Ne=Be.successful[0];E.value.avatar.src=Ne.preview,E.value.avatar.key=Ne.uploadURL}),Gb.on("complete",Be=>{const Ne=Be.successful;Ae.value=!0,Ne.slice(0,j0-E.value.photos.value.length).forEach(Dt=>{E.value.photos.value.push({src:Dt.preview,key:Dt.uploadURL})})}),Kb.on("complete",Be=>{Be.successful.slice(0,j0-rt.value.length).forEach(Dt=>{rt.value.push({src:Dt.preview,key:Dt.uploadURL,name:Dt.name})})});const Fn=z(0),at=async Be=>{E.value.phone.normalizedValue=Be.number},dt=()=>{const Be=JSON.parse(JSON.stringify(k.value));E.value.degrees.value.push(Be),Fn.value=E.value.degrees.value.length-1},ft=z([]),Kt=z([]),St=vn(),Mt=()=>{Promise.all([St.get("/discipline/list"),St.get("/practitioner-service/list")]).then(([Be,Ne])=>{ft.value=Be.data,Kt.value=Ne.data}).catch(Be=>{console.error("Error fetching data:",Be)})},sn=Be=>Object.keys(Be).reduce((Ne,Dt)=>(typeof Be[Dt]=="object"&&Be[Dt].value&&(Ne[Dt]=Be[Dt].value),Ne),{}),lr=z(!1),ml=B(()=>y.submitDraftLoading),Rr=z([]),Es=z(!1),xs=z(""),ur=z(""),$i=z(""),cr=z(""),Er=z(""),Ed=z(!1),xd=z(!1),pc=Gf(async()=>{j.value&&(i.clear(),i.add(async()=>{T.value=!0,await Zi(),Fr(),j.value=!1,r.value=!1}))},2e3),Zi=async()=>{if(Rr.value=[],!T.value&&(ur.value="",$i.value="",cr.value="",Bb(E.value),E.value.degrees.value.map(Qe=>{Qe.error&&(Qe.error=void 0)}),await Re.value.isValid(),await Pe.value.isValid(),await we.value.isValid(),await Pt(),se.value||(ur.value="red"),de.value||($i.value="red"),xe.value||(cr.value="red"),!se.value||!de.value||!await we.value.isValid()))return lO(),Promise.reject("Form not valid");const Be={...sn(E.value),phone:E.value.phone.normalizedValue,avatar:E.value.avatar.key||"",disciplines:E.value.disciplines.value,practitionerServices:E.value.practitionerServices.value,targetAudiences:E.value.targetAudiences.value,paymentMethods:E.value.paymentMethods.value,spokenLanguages:E.value.spokenLanguages.value,photos:E.value.photos.value.map(Qe=>Qe.key),degrees:E.value.degrees.value.map(Qe=>({schoolName:Qe.schoolName.value,discipline:Qe.discipline.value,title:Qe.title.value,graduationYear:Qe.graduationYear.value,durationValue:Qe.durationValue.value,durationUnit:Qe.durationUnit.value,documents:Qe.documents.value.map(Zt=>Zt.key)})),draftId:D.value,isDraft:T.value};T.value?y.submitDraftLoading=!0:lr.value=!0;const Ne=vn("/profile"),Dt=ne.value?`/${ne.value}`:"/";return Ne.post(Dt,Be,{headers:{"Content-Type":"application/json"}}).then(Qe=>{if(ne.value=Qe.data.id,Es.value?T.value||(w.fetchDashboardStatus(),nt.success(v("dashboard.profile.success")),Es.value=!1):T.value||nt.success(v("dashboard.profile.publish_success")),j.value=!1,T.value){const Zt=M.value.findIndex(ln=>ln.draft.id===Qe.data.draft.id);return Zt!==-1?(M.value[Zt]={...M.value[Zt],draft:Qe.data.draft},_.value=Zt+1,yo(M.value[Zt])):(M.value.push(Qe.data),_.value=M.value.length,yo(Qe.data)),o.totalProfile=M.value.length,Rr.value=sO(E.value,Qe.data.errors),Promise.resolve()}return a.refreshToken(),yt(),o.refreshProfiles(),Promise.resolve()}).catch(async Qe=>{Ed.value=!0,Qe.response.status===422?(Rr.value=await sO(E.value,Qe.response.data),await Pt(),lO()):nt.error(v("dashboard.account.update.error"))}).finally(()=>{lr.value=!1,y.submitDraftLoading=!1})},yt=()=>{if(V.value=!0,o.loadProfile)return;y.setInnerLoading(!0),o.loadProfile=!0,vn("/profile").get("/").then(Ne=>{if(M.value=Ne.data,M.value.length===0){dr(),h.push({query:{...m.query,selected_profile:"New"}}),V.value=!1;return}let Dt=null;o.totalProfile=M.value.length,m.query.selected_profile&&Number(m.query.selected_profile)<=o.totalProfile?(Dt=M.value[Number(m.query.selected_profile)-1],_.value=m.query.selected_profile):(Dt=M.value[M.value.length-1],_.value=M.value.length),yo(Dt)}).catch(Ne=>{console.error(Ne),nt.error(v("common.error.errorHasOccurred"))}).finally(()=>{y.setInnerLoading(!1),o.loadProfile=!1})};Ve(lr,Be=>{S("submitLoading",Be)}),t({submit:Zi}),tn(async()=>{Mt(),yt()});const Ai=B(()=>o.loadProfile),ks=z(!1),mc=async()=>{if(!ks.value){ks.value=!0;try{return await St.delete(`/profile/${xs.value}?isDraft=${Dn.value}`),nt.success(v("dashboard.profile.delete_message")),w.fetchDashboardStatus(),o.refreshProfiles(),Promise.resolve()}catch{nt.error(v("dashboard.profile.delete_error"))}finally{A(),await yt(),Y.value=!1,ks.value=!1}}},Ko=(Be,Ne)=>{document.getElementById("newProfil"),_.value=M.value.length-Ne,yo(Be)},Ts=z(0),vl=z(0),Jn=z(0),gl=z(0),su=z(0),lu=z(0),uu=z(0),yl=z(""),dr=()=>{document.getElementById("newProfil"),r.value=!0,Es.value=!0,A()};Ve(()=>o.createNewProfils,()=>{o.createNewProfils&&vc()});const vc=()=>{V.value=!0,Rr.value=[],ur.value="",$i.value="",cr.value="",h.push({query:{tab:"info",selected_profile:"New"}}),dr(),o.createNewProfils=!1,setTimeout(()=>{V.value=!1},0)},yo=Be=>{var Dt,Qe,Zt,ln;Bb(E.value);const Ne=Be.draft;ne.value=Be.id||Ne.id,ur.value="",$i.value="",cr.value="",Er.value="",Rr.value=[],V.value=!0,N.value=JSON.parse(JSON.stringify(Ne)),T.value||(Ts.value++,vl.value++,Jn.value++,gl.value++,su.value++,lu.value++,uu.value++),E.value.avatar.src=(Dt=Ne.avatar)==null?void 0:Dt.url,E.value.avatar.key=(Qe=Ne.avatar)==null?void 0:Qe.key,E.value.disciplines.value=Ne.disciplines.map(Sn=>Sn.id),E.value.mainDiscipline.value=(Zt=Ne.mainDiscipline)==null?void 0:Zt.id,a.user.mainDiscipline=((ln=Ne.mainDiscipline)==null?void 0:ln.name)??"",E.value.practitionerServices.value=Ne.services.map(Sn=>Sn.id),E.value.targetAudiences.value=Ne.targetAudiences,E.value.paymentMethods.value=Ne.paymentMethods,E.value.spokenLanguages.value=Ne.spokenLanguages,E.value.email.value=Ne.publicEmail||"",E.value.webSite.value=Ne.webSite||"",E.value.phone.value=Ne.publicPhone||"",E.value.tagline.value=Ne.tagline||"",E.value.mainDescription.value=Ne.mainDescription||"",E.value.sessionDescription.value=Ne.sessionDescription||"",E.value.expectedBenefits.value=Ne.expectedBenefits||"",E.value.photos.value=Ne.photos.map(Sn=>({src:Sn.url,key:Sn.id})),E.value.degrees.value=Ne.degrees.map(Sn=>({schoolName:{value:Sn.schoolName},discipline:{value:Sn.discipline},title:{value:Sn.title},graduationYear:{value:Sn.graduationYear},durationValue:{value:Sn.durationValue},durationUnit:{value:Sn.durationUnit},documents:{value:Sn.verificationDocuments.map((en,et)=>({src:en.url,key:en.id,name:en.name||`Document ${et+1}`}))}})),D.value=Ne.id,T.value=Ne.isDraft,O.value=Ne.isSynced,h.push({query:{...m.query,selected_profile:_.value}}),setTimeout(()=>{V.value=!1},0)},kd=Be=>{window.open(Be,"_blank")};Ve(()=>E.value,Be=>{if(V.value||xd.value)return!1;j.value=JSON.stringify(Be)!==JSON.stringify(N.value),pc()},{deep:!0});const gc=z(!1),_l=z(!1);Z1((Be,Ne,Dt)=>{const Qe=ud();if(console.log("isFormDirty",j.value),j.value&&!Qe.hasOnboarding)pc(),console.log("onboarding");else if(Qe.hasOnboarding&&!Qe.manualProccess){Qe.onboardingAlert=!0,Qe.leave=!1;const Zt=Ve(()=>Qe.leave,ln=>{ln?(Qe.leave=!1,Qe.onboardingAlert=!1,Dt()):(Qe.onboardingAlert=!1,Dt(!1)),Zt()})}else Dt()});const _o=Be=>{yl.value=m.query.tab,h.push({name:"DashboardProfile",query:{...m.query,tab:Be}})},bl=z(["info","presentation","degrees","pictures"]);Ve(()=>m.query.tab,()=>{const Be=m.query.tab;return bl.value.includes(Be)?Be:h.replace({name:"DashboardProfile",query:{...m.query,tab:"info"}})},{immediate:!0});const to=async Be=>{switch(Be){case"info":await Re.value.isValid(),se.value?ur.value="yellow":ur.value="red";break;case"presentation":await Pe.value.isValid(),de.value?$i.value="yellow":$i.value="red";break;case"degrees":await we.value.isValid(),xe.value?E.value.degrees.value.length?cr.value="yellow":cr.value="":cr.value="red";break;case"pictures":E.value.photos.value.length&&Ae.value?Er.value="yellow":Er.value="";break}},Fr=async()=>{const Be=["info","presentation","degrees","pictures"];for(const Ne of Be)await to(Ne)};Ve(()=>yl.value,async Be=>{to(Be)},{immediate:!0}),Ve(()=>[m.query.selected_profile,o.totalProfile],([Be,Ne])=>{if(!(!Ne||!Be)&&Number(Be)>Number(Ne))return h.replace({name:"DashboardProfile",query:{...m.query,selected_profile:Number(Ne)}})},{immediate:!0}),Ve(()=>[E.value.webSite.value,E.value.phone.value,E.value.email.value,E.value.disciplines.value,E.value.mainDiscipline.value,E.value.practitionerServices.value,E.value.targetAudiences.value,E.value.paymentMethods.value,E.value.spokenLanguages.value],async()=>{if(V.value)return!1;if(await Re.value.isValid(),!se.value){ur.value="red";return}ur.value="yellow"},{deep:!0}),Ve(()=>[E.value.expectedBenefits.value,E.value.sessionDescription.value,E.value.tagline.value,E.value.mainDescription.value],async()=>{if(V.value)return!1;if(await Re.value.isValid(),!de.value){$i.value="red";return}$i.value="yellow"},{deep:!0});const bo=Be=>{yl.value=m.query.tab;const Ne=m.query.tab,Dt=bl.value.indexOf(Ne);to(yl.value);let Qe=Dt;Be==="next"?Qe=Dt+1:Be==="previous"&&(Qe=Dt-1);const Zt=bl.value[Qe];h.push({query:{...m.query,tab:Zt}})},cu=z(),wo=z(),Qt=z(""),Dn=z(!1),Zo=(Be,Ne)=>{var Dt,Qe;Dn.value=!1,cu.value=M.value.length-Ne,Be.id?(xs.value=Be.id,wo.value=Be.slug,Qt.value=(Dt=Be==null?void 0:Be.avatar)==null?void 0:Dt.url):(xs.value=Be.draft.id,Dn.value=!0,wo.value="",Qt.value=(Qe=Be==null?void 0:Be.draft.avatar)==null?void 0:Qe.url),Y.value=!0},Na=()=>(x.value=!0,!1),So=async()=>{T.value=!0,await Zi()},na=z(!1),Bt=async Be=>{if(!na.value){na.value=!0;try{await St.put(`/profile/copy-to-draft/${Be}`),x.value=!1,nt.success(v("dashboard.profile.draft_is_now_update")),a.refreshToken(),yt()}catch{nt.error(v("dashboard.profile.error_occured"))}finally{na.value=!1}}},Vn=z([]),du=Be=>{const Ne=E.value.photos.value.map((Qe,Zt)=>{const ln=Vn.value[Zt];return{src:Qe.src,w:ln?ln.naturalWidth:1200,h:ln?ln.naturalHeight:800}}),Dt=new _Ve({dataSource:Ne,pswpModule:()=>Ct(()=>import("./photoswipe.esm-9bbc00ee.js"),[])});Dt.init(),Dt.loadAndOpen(Be)},wl=Be=>{if(Be.draft.isSynced&&Be.id===ne.value)return"border-md border-blue-07 border-opacity-100";if(!Be.draft.isSynced)return"border-md border-orange-pure border-opacity-100"},Vr=B(()=>$i.value==="red"?v("dashboard.profile.status.error"):$i.value==="yellow"?v("dashboard.profile.status.notSave"):v("dashboard.profile.status.saved")),Td=B(()=>cr.value==="red"?v("dashboard.profile.status.error"):cr.value==="yellow"?v("dashboard.profile.status.notSave"):v("dashboard.profile.status.saved")),Xo=B(()=>Er.value==="red"?v("dashboard.profile.status.error"):Er.value==="yellow"?v("dashboard.profile.status.notSave"):v("dashboard.profile.status.saved")),Co=B(()=>ur.value==="red"?v("dashboard.profile.status.error"):ur.value==="yellow"?v("dashboard.profile.status.notSave"):v("dashboard.profile.status.saved")),si=async()=>{T.value=!0,_l.value=!1,gc.value=!0,await Zi()},Br=Be=>Be.length>12?Be.slice(0,12)+"…":Be,Ri=B(()=>{var Be;return r.value?"Nouveau profil":((Be=ft.value.find(Ne=>Ne.id===E.value.mainDiscipline.value))==null?void 0:Be.name)||"Nouveau profil"}),zr=B(()=>E.value.disciplines.value.map(Be=>ft.value.find(Ne=>Ne.id===Be)).filter(Boolean));return(Be,Ne)=>{const Dt=p2("i18n-t");return J(),je(Jx,{fluid:"",class:"pa-1",style:{"min-height":"calc(100vh - 300px)",overflow:"hidden"}},{default:le(()=>[F("div",xVe,Q(K(v)("dashboard.profile.autoSaveInfo")),1),C(Ka,null,{default:le(()=>[C(Qn,{cols:"auto",sm:"12",md:"4",class:"py-1 scroll-on-hover-profile-lists d-none d-md-block",style:pa({overflowX:"hidden",height:K(a).user.isActive?"calc(100vh - 220px + 60px)":"calc(100vh - 220px - 40px)"})},{default:le(()=>[Ai.value?(J(),ve(Ue,{key:0},Ht(3,Qe=>F("div",null,[C(r1,{class:"border-md border-opacity-90 rounded-xl overflow-y-hidden mt-2",elevation:"0",color:"white","min-width":"365",type:"card, sentences, image, table-heading, list-item-two-line",height:"175"})])),64)):(J(),ve(Ue,{key:1},[M.value.length?(J(),ve("div",kVe,[F("div",TVe,[K(m).query.selected_profile==="New"||r.value?(J(),je(Cn,{key:0,onClick:Ne[0]||(Ne[0]=Qe=>vc()),elevation:"0",color:"white",height:"auto",class:"border-md border-danger border-opacity-100 d-flex flex-column ga-4 border-opacity-90 rounded-xl pa-4 overflow-y-hidden",style:{"min-height":"160px"}},{default:le(()=>{var Qe,Zt;return[F("div",PVe,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>[xt(C(Uu,{color:"#9E9E9E"},null,512),[[hn,!E.value.avatar.src||r.value]]),xt(C(Ii,{src:E.value.avatar.src,cover:!0},null,8,["src"]),[[hn,E.value.avatar.src&&!r.value]])]),_:1}),F("div",$Ve,[F("div",null,[C(ka,{density:"compact",location:"top",text:Ri.value},{activator:le(({props:ln})=>[F("div",Me(ln,{class:"text-dark-green profile-slug text-break cursor-pointer"}),Q(Ri.value),17)]),_:1},8,["text"]),F("div",AVe,Q(K(v)("dashboard.profile.noSave")),1)])])]),r.value?De("",!0):(J(),ve("div",OVe,[(J(!0),ve(Ue,null,Ht(zr.value,(ln,Sn)=>(J(),je(ma,{key:Sn,color:"#F5F5F5",variant:"flat",rounded:"md",density:"compact"},{default:le(()=>[F("span",DVe,Q(ln.name),1)]),_:2},1024))),128))])),(Qe=E.value)!=null&&Qe.tagline.value&&!r.value?(J(),ve("div",IVe,Q((Zt=E.value)==null?void 0:Zt.tagline.value),1)):(J(),ve("div",NVe,Q(K(v)("dashboard.profile.emptyPresentation")),1))]}),_:1})):De("",!0),(J(!0),ve(Ue,null,Ht(M.value.slice().reverse(),(Qe,Zt)=>(J(),ve(Ue,{key:Zt},[Qe.id&&Qe.draft.isSynced?(J(),je(Cn,{key:0,onClick:ln=>Ko(Qe,Zt),elevation:"0",color:"white",height:"auto",class:Gt(["d-flex flex-column ga-4 border-md border-opacity-90 rounded-xl pa-4 overflow-y-hidden",wl(Qe)]),style:{"min-height":"160px"}},{default:le(()=>{var ln,Sn;return[F("div",MVe,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>{var en;return[xt(C(Uu,{color:"#9E9E9E"},null,512),[[hn,!Qe.avatar]]),xt(C(Ii,{src:(en=Qe.avatar)==null?void 0:en.url,cover:!0},null,8,["src"]),[[hn,Qe.avatar]])]}),_:2},1024),F("div",LVe,[F("div",null,[C(ka,{density:"compact",location:"top",text:Qe.mainDiscipline.name},{activator:le(({props:en})=>[F("div",Me({ref_for:!0},en,{class:"text-dark-green profile-slug text-break",style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}),Q(Br(Qe.mainDiscipline.name)),17)]),_:2},1032,["text"]),F("div",{class:Gt({"text-blue":(ln=Qe.draft)==null?void 0:ln.isSynced,"text-orange-pure":!((Sn=Qe.draft)!=null&&Sn.isSynced)}),style:{"font-weight":"600","font-size":"12px"}},Q(Qe.draft.isSynced?K(v)("accountForm.save-and-publish"):K(v)("accountForm.save-as-draft")),3)]),F("div",RVe,[C(ho,{"offset-y":""},{activator:le(({props:en})=>[C(Je,Me({icon:"mdi-dots-horizontal",variant:"text",ref_for:!0},en),null,16)]),default:le(()=>[C(rl,{"base-color":"#757575",class:"mt-2 pa-2","bg-color":"white",rounded:"lg",density:"compact",nav:""},{default:le(()=>{var en,et;return[Qe.profileAddresses[0]?(J(),je(fi,{key:0,class:"menu-item",to:{name:"PractitionerPublicProfile",params:{discipline:Qe.mainDiscipline.slug,city:(et=(en=Qe.profileAddresses[0])==null?void 0:en.address)==null?void 0:et.city,practitionerSlug:Qe.slug}},target:"_blank"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(ut,{color:"#9E9E9E"},{default:le(()=>[Ze("mdi-eye-outline")]),_:1}),F("span",null,Q(K(v)("dashboard.profile.see_as_patient")),1)]),_:1})]),_:2},1032,["to"])):De("",!0),C(fi,{onClick:()=>Bt(Qe.id),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(ut,{color:"#9E9E9E"},{default:le(()=>[Ze("mdi-content-copy")]),_:1}),F("span",null,Q(K(v)("dashboard.profile.copy_in_draft")),1)]),_:1})]),_:2},1032,["onClick"]),C(fi,{onClick:()=>Ko(Qe,Zt),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Zb,{color:"#757575",size:"24"}),F("span",null,Q(K(v)("dashboard.profile.update_profile")),1)]),_:1})]),_:2},1032,["onClick"]),C(jn),C(fi,{onClick:Bn=>Zo(Qe,Zt),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Xb,{color:"#F56565"}),F("span",FVe,Q(K(v)("accountForm.avatar.deleteProfil")),1)]),_:1})]),_:2},1032,["onClick"])]}),_:2},1024)]),_:2},1024)])])]),F("div",VVe,[(J(!0),ve(Ue,null,Ht(Qe.disciplines,(en,et)=>(J(),je(ma,{key:et,color:"#F5F5F5",variant:"flat",rounded:"md",density:"compact"},{default:le(()=>[F("span",BVe,Q(en.name),1)]),_:2},1024))),128))]),Qe!=null&&Qe.tagline?(J(),ve("div",zVe,Q(Qe==null?void 0:Qe.tagline),1)):(J(),ve("div",jVe,Q(K(v)("dashboard.profile.emptyPresentation")),1))]}),_:2},1032,["onClick","class"])):(J(),ve("div",UVe,[C(Cn,{onClick:ln=>Ko(Qe,Zt),elevation:"0",color:"white",height:"auto",class:Gt(["d-flex flex-column ga-4 border-md rounded-xl pa-4 overflow-y-hidden",{"border-orange-pure border-opacity-100":Qe.draft.id===D.value}]),style:{"min-height":"160px"}},{default:le(()=>{var ln,Sn;return[F("div",HVe,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>{var en;return[xt(C(Uu,{width:"64",height:"64",color:"#9E9E9E"},null,512),[[hn,!Qe.draft.avatar]]),xt(C(Ii,{src:(en=Qe.draft.avatar)==null?void 0:en.url,cover:!0},null,8,["src"]),[[hn,Qe.draft.avatar]])]}),_:2},1024),F("div",qVe,[F("div",null,[F("div",YVe,[C(ka,{density:"compact",location:"top",text:((ln=Qe.draft.mainDiscipline)==null?void 0:ln.name)??K(v)("dashboard.profile.unPublish")},{activator:le(({props:en})=>{var et,Bn;return[F("div",Me({ref_for:!0},en,{class:"text-dark-green profile-slug text-break"}),Q(Br(((Bn=(et=Qe.draft)==null?void 0:et.mainDiscipline)==null?void 0:Bn.name)??K(v)("dashboard.profile.unPublish"))),17)]}),_:2},1032,["text"])]),F("div",WVe,Q(K(v)("accountForm.not-publish")),1)]),F("div",GVe,[C(ho,null,{activator:le(({props:en})=>[C(Je,Me({icon:"mdi-dots-horizontal",variant:"text",ref_for:!0},en),null,16)]),default:le(()=>[C(rl,{"base-color":"#757575",class:"mt-2 pa-2","bg-color":"white",rounded:"lg",density:"compact",nav:""},{default:le(()=>[C(fi,{onClick:()=>Ko(Qe,Zt)},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Zb,{color:"#757575",size:"24"}),F("span",null,Q(K(v)("dashboard.profile.update_profile")),1)]),_:1})]),_:2},1032,["onClick"]),C(jn),C(fi,{onClick:en=>Zo(Qe,Zt),class:"menu-item"},{default:le(()=>[C(ha,{class:"d-flex align-center ga-1"},{default:le(()=>[C(Xb,{color:"#F56565"}),F("span",KVe,Q(K(v)("accountForm.avatar.deleteProfil")),1)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)])])]),F("div",ZVe,[(J(!0),ve(Ue,null,Ht((Sn=Qe.draft)==null?void 0:Sn.disciplines,(en,et)=>(J(),je(ma,{key:et,color:"#F5F5F5",variant:"flat",rounded:"md",density:"compact"},{default:le(()=>[F("span",XVe,Q(en==null?void 0:en.name),1)]),_:2},1024))),128))]),Qe!=null&&Qe.draft.tagline?(J(),ve("div",JVe,Q(Qe==null?void 0:Qe.draft.tagline),1)):(J(),ve("div",QVe,Q(K(v)("dashboard.profile.emptyPresentation")),1))]}),_:2},1032,["onClick","class"])]))],64))),128))])])):(J(),ve("div",eBe,[K(m).query.selected_profile==="New"?(J(),je(Cn,{key:0,elevation:"0",color:"white",height:"auto",class:"border-md border-teal-green border-opacity-100 d-flex flex-column ga-4 rounded-xl pa-4 overflow-y-hidden",style:{"min-height":"160px"}},{default:le(()=>{var Qe,Zt;return[F("div",tBe,[C(Ui,{size:"64",class:"border-md"},{default:le(()=>[xt(C(Uu,{color:"#9E9E9E"},null,512),[[hn,!E.value.avatar.src]]),xt(C(Ii,{src:E.value.avatar.src,cover:!0},null,8,["src"]),[[hn,E.value.avatar.src]])]),_:1}),F("div",nBe,[F("div",null,[C(ka,{density:"compact",location:"top",text:Ri.value},{activator:le(({props:ln})=>[F("div",Me(ln,{class:"text-yellow profile-slug text-break cursor-pointer"}),Q(Ri.value),17)]),_:1},8,["text"]),F("div",iBe,Q(K(v)("dashboard.profile.noSave")),1)])])]),F("div",rBe,[(J(!0),ve(Ue,null,Ht(zr.value,(ln,Sn)=>(J(),je(ma,{key:Sn,color:"#F5F5F5",variant:"flat",rounded:"md",density:"compact"},{default:le(()=>[F("span",aBe,Q(ln.name),1)]),_:2},1024))),128))]),(Qe=E.value)!=null&&Qe.tagline.value?(J(),ve("div",oBe,Q((Zt=E.value)==null?void 0:Zt.tagline.value),1)):(J(),ve("div",sBe,Q(K(v)("dashboard.profile.emptyPresentation")),1))]}),_:1})):De("",!0)]))],64))]),_:1},8,["style"]),C(Qn,{sm:"12",md:"8",class:"py-0",style:pa({overflowY:"auto",overflowX:"hidden",height:K(a).user.isActive?"calc(100vh - 220px + 60px)":"calc(100vh - 220px - 40px)"})},{default:le(()=>[Ai.value?(J(),je(r1,{key:0,class:"border-md border-opacity-90 rounded-xl overflow-y-hidden",elevation:"0",color:"white","min-width":"80%",type:"card, sentences, image, table-heading, list-item-two-line",height:"100%"})):(J(),je(Cn,{key:1,disabled:na.value,loading:na.value,class:"border w-100 position-relative",style:pa([{"background-color":"#f5f5f5"},{overflowY:"auto",overflowX:"hidden",height:K(a).user.isActive?"calc(100vh - 220px + 60px)":"calc(100vh - 220px - 40px)"}]),id:"newProfil",rounded:"0",elevation:"0"},{default:le(()=>{var Qe,Zt,ln,Sn,en;return[F("div",{style:pa({backgroundColor:K(m).query.selected_profile==="New"?"#FEEFEB":O.value?"#BAD8FF":"#FFE8E8"}),class:Gt([K(m).query.selected_profile==="New"?"text-danger":O.value?"text-blue-07":"text-orange-pure","detail-title overflow-y-auto d-sm-flex justify-space-between align-center"])},[F("div",null,[K(m).query.selected_profile==="New"||!M.value.length?(J(),ve("div",lBe,Q(K(v)("dashboard.profile.new_profile")),1)):(J(),ve("div",uBe,[Ze(Q(K(v)("profileForm.profil_detail"))+" ",1),F("span",null,Q(((Zt=(Qe=M.value[Number(_.value)-1])==null?void 0:Qe.mainDiscipline)==null?void 0:Zt.name)||((en=(Sn=(ln=M.value[Number(_.value)-1])==null?void 0:ln.draft)==null?void 0:Sn.mainDiscipline)==null?void 0:en.name)),1)]))]),F("div",cBe,[C(Ep,{location:"left",id:"publish-btn"},{default:le(()=>[C(Je,{block:K(l),onClick:Ne[1]||(Ne[1]=et=>(T.value=!1,Zi())),loading:lr.value,color:"blue",rounded:"pill",class:"w-auto"},{default:le(()=>[F("span",dBe,Q(K(v)("profileForm.save_publish")),1)]),_:1},8,["block","loading"])]),_:1})])],6),F("div",fBe,[C(Cn,{color:"white",elevation:"0"},{default:le(()=>[F("div",hBe,[F("div",pBe,[C(Qn,{class:"pa-0"},{default:le(()=>[F("div",{class:Gt([K(m).query.tab==="info"?"tab-size border bg-white rounded-lg pa-1 px-2":"","d-flex align-center ga-1 cursor-pointer justify-center"]),onClick:Ne[2]||(Ne[2]=et=>_o("info"))},[C(UFe,{color:K(m).query.tab==="info"?"#424242":"#757575"},null,8,["color"]),F("span",null,Q(K(v)("profileForm.info")),1),C(ka,{text:Co.value,offset:"0",location:"top"},{activator:le(({props:et})=>[ur.value?(J(),je(Zv,Me({key:0},et,{color:ur.value,inline:"",dot:""}),null,16,["color"])):De("",!0)]),_:1},8,["text"])],2)]),_:1}),C(Qn,{class:"pa-0"},{default:le(()=>[F("div",{class:Gt([K(m).query.tab==="presentation"?"tab-size border bg-white rounded-lg pa-1 px-2":"","d-flex align-center justify-center ga-1 cursor-pointer"]),onClick:Ne[3]||(Ne[3]=et=>_o("presentation"))},[C(GD,{color:K(m).query.tab==="presentation"?"#424242":"#757575"},null,8,["color"]),F("span",null,Q(K(v)("profileForm.presentation_title")),1),C(ka,{text:Vr.value,offset:"0",location:"top"},{activator:le(({props:et})=>[$i.value?(J(),je(Zv,Me({key:0},et,{color:$i.value,inline:"",dot:""}),null,16,["color"])):De("",!0)]),_:1},8,["text"])],2)]),_:1}),C(Qn,{class:"pa-0"},{default:le(()=>[F("div",{class:Gt([K(m).query.tab==="degrees"?"tab-size border bg-white rounded-lg pa-1 px-2":"","d-flex align-center justify-center ga-1 cursor-pointer"]),onClick:Ne[4]||(Ne[4]=et=>_o("degrees"))},[C(RFe,{color:K(m).query.tab==="degrees"?"#424242":"#757575"},null,8,["color"]),F("span",null,Q(K(v)("profileForm.degree")),1),C(ka,{text:Td.value,offset:"0",location:"top"},{activator:le(({props:et})=>[cr.value?(J(),je(Zv,Me({key:0},et,{color:cr.value,inline:"",dot:""}),null,16,["color"])):De("",!0)]),_:1},8,["text"])],2)]),_:1}),C(Qn,{class:"pa-0"},{default:le(()=>[F("div",{class:Gt([K(m).query.tab==="pictures"?"tab-size border bg-white rounded-lg pa-1 px-2":"","d-flex align-center ga-1 cursor-pointer justify-center"]),onClick:Ne[5]||(Ne[5]=et=>_o("pictures"))},[C(BFe,{color:K(m).query.tab==="pictures"?"#424242":"#757575"},null,8,["color"]),F("span",null,Q(K(v)("profileForm.photos_title")),1),C(ka,{text:Xo.value,offset:"0",location:"top"},{activator:le(({props:et})=>[Er.value?(J(),je(Zv,Me({key:0},et,{color:Er.value,inline:"",dot:""}),null,16,["color"])):De("",!0)]),_:1},8,["text"])],2)]),_:1})])]),C(jn,{color:"#757575"}),F("div",{class:"px-2 pt-2 form-scroll",style:pa({overflowX:"hidden",height:K(a).user.isActive?"calc(100vh - 400px + 60px)":"calc(100vh - 400px - 40px)"})},[F("div",null,[Rr.value.length?(J(),je(Cn,{key:0,color:"#FFE8E8",class:"pa-2 elevation-0 mb-2"},{default:le(()=>[C(B0,{errors:Rr.value},null,8,["errors"])]),_:1})):De("",!0),C(Cn,{class:"block-content pa-2 border",color:"white",elevation:"0"},{default:le(()=>[F("div",mBe,[F("div",vBe,[F("div",gBe,[C(Ep,{id:"profile-upload"},{default:le(()=>[C(Ui,{size:"80",class:"border-sm border-gray-ligth border-opacity-100"},{default:le(()=>[xt(C(Uu,{color:"#9E9E9E"},null,512),[[hn,!E.value.avatar.src]]),xt(C(Ii,{src:E.value.avatar.src,cover:!0},null,8,["src"]),[[hn,E.value.avatar.src]])]),_:1})]),_:1}),F("div",{class:"elevation-0 visio-icon-profile cursor-pointer",onClick:Ne[6]||(Ne[6]=()=>Ot())},[C(DFe,{width:20,height:20})])]),F("div",yBe,[F("div",_Be,[F("span",bBe,Q(K(v)("profileForm.picture")),1),C(ka,{class:"cursor-pointer",location:"top",width:"200",text:K(v)("profileForm.suggest-image")},{activator:le(({props:et})=>[C(ut,Me(et,{class:"cursor-pointer",size:"15",color:"gray"}),{default:le(()=>[Ze("mdi-information")]),_:2},1040)]),_:1},8,["text"])]),F("div",wBe,[F("span",SBe,Q(K(v)("accountForm.avatar.caption-2")),1)])])]),(K(m).query.selected_profile,De("",!0))]),C(B0,{class:"text-left",errors:E.value.avatar.error},null,8,["errors"])]),_:1})]),F("div",null,[C(Yu,null,{default:le(()=>[xt(C(SS,{id:"newProfil",ref_key:"formBlock1",ref:Re,"is-new":ne.value===null,"onUpdate:isValid":Ne[19]||(Ne[19]=et=>ie.value=et)},{default:le(()=>[F("div",CBe,[F("div",null,[C(Ep,{id:"profile-info",location:"top start"},{default:le(()=>[F("div",EBe,Q(K(v)("profileForm.info")),1)]),_:1}),F("div",null,[F("label",null,Q(K(v)("profileForm.disciplines.label")),1),(J(),je(Wv,{rounded:"lg",density:"compact",key:gl.value,modelValue:E.value.disciplines.value,"onUpdate:modelValue":Ne[7]||(Ne[7]=et=>E.value.disciplines.value=et),items:ft.value,"item-title":"name","item-value":"id",rules:U,"error-messages":E.value.disciplines.error,counter:"3","persistent-counter":E.value.disciplines.value.length>=QD,color:"secondary","no-data-text":K(v)("profileForm.disciplines.noDataText")},null,8,["modelValue","items","error-messages","persistent-counter","no-data-text"])),F("span",xBe,[C(Dt,{keypath:"profileForm.disciplines.suggest"},{link:le(()=>[F("a",{style:{color:"#12c29b"},href:"#",onClick:Ne[8]||(Ne[8]=Vo(et=>ae.value=!0,["prevent"]))},Q(K(v)("profileForm.disciplines.suggestLinkLabel")),1)]),_:1})])])]),C(sFe,{dialog:ae.value,"onUpdate:dialog":Ne[9]||(Ne[9]=et=>ae.value=et)},null,8,["dialog"]),E.value.disciplines.value.length>1?(J(),ve("div",kBe,[F("label",null,Q(K(v)("profileForm.mainDiscipline.label")),1),C(Oa,{rounded:"lg",density:"compact",modelValue:E.value.mainDiscipline.value,"onUpdate:modelValue":Ne[10]||(Ne[10]=et=>E.value.mainDiscipline.value=et),hint:K(v)("profileForm.mainDiscipline.hint"),"persistent-hint":"",items:oe.value,"error-messages":E.value.mainDiscipline.error,"item-title":"name","item-value":"id","hide-details":"auto"},null,8,["modelValue","hint","items","error-messages"])])):De("",!0),F("div",null,[F("label",null,Q(K(v)("profileForm.practitionerServices.label")),1),C(Wv,{rounded:"lg",density:"compact",modelValue:E.value.practitionerServices.value,"onUpdate:modelValue":Ne[11]||(Ne[11]=et=>E.value.practitionerServices.value=et),hint:K(v)("profileForm.practitionerServices.hint"),"persistent-hint":"",items:Kt.value,"item-title":"name","item-value":"id",rules:ee,"error-messages":E.value.practitionerServices.error,color:"secondary","return-object":!1,"no-data-text":K(v)("profileForm.practitionerServices.noDataText")},null,8,["modelValue","hint","items","error-messages","no-data-text"])]),F("div",null,[F("label",null,Q(K(v)("profileForm.targetAudiences.label")),1),(J(),je(Wv,{rounded:"lg",density:"compact",key:su.value,modelValue:E.value.targetAudiences.value,"onUpdate:modelValue":Ne[12]||(Ne[12]=et=>E.value.targetAudiences.value=et),items:W.value,"item-title":"name","item-value":"id",rules:re,"error-messages":E.value.targetAudiences.error,color:"secondary"},null,8,["modelValue","items","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.paymentMethods.label")),1),(J(),je(Wv,{rounded:"lg",density:"compact",key:lu.value,modelValue:E.value.paymentMethods.value,"onUpdate:modelValue":Ne[13]||(Ne[13]=et=>E.value.paymentMethods.value=et),items:te.value,"item-title":"name","item-value":"id",rules:ue,"error-messages":E.value.paymentMethods.error,color:"secondary"},null,8,["modelValue","items","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.spokenLanguages.label")),1),(J(),je(Wv,{rounded:"lg",density:"compact",key:uu.value,modelValue:E.value.spokenLanguages.value,"onUpdate:modelValue":Ne[14]||(Ne[14]=et=>E.value.spokenLanguages.value=et),items:K(mz),"item-title":"nativeName","item-value":"code",rules:pe,"error-messages":E.value.spokenLanguages.error,color:"secondary"},null,8,["modelValue","items","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.email.label")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:E.value.email.value,"onUpdate:modelValue":Ne[15]||(Ne[15]=et=>E.value.email.value=et),hint:K(v)("profileForm.email.hint"),rules:ge,"error-messages":E.value.email.error,color:"secondary","hide-details":"auto",placeholder:K(v)("profileForm.email.label")},null,8,["modelValue","hint","error-messages","placeholder"])]),F("div",null,[F("label",null,Q(K(v)("profileForm.phone.label")),1),C(m8e,{modelValue:E.value.phone.value,"onUpdate:modelValue":Ne[16]||(Ne[16]=et=>E.value.phone.value=et),hint:K(v)("profileForm.phone.hint"),"error-messages":E.value.phone.error,"show-dial-code":!1,rounded:"",required:"",onChange:at,onValide:Ne[17]||(Ne[17]=et=>E.value.phone.valid=et)},null,8,["modelValue","hint","error-messages"])]),F("div",null,[F("label",null,Q(K(v)("profileForm.website")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:E.value.webSite.value,"onUpdate:modelValue":Ne[18]||(Ne[18]=et=>E.value.webSite.value=et),rules:Z,"error-messages":E.value.webSite.error,color:"secondary",placeholder:"https://","hide-details":"auto"},null,8,["modelValue","error-messages"])])])]),_:1},8,["is-new"]),[[hn,K(m).query.tab==="info"]])]),_:1}),C(Yu,null,{default:le(()=>[xt(C(SS,{ref_key:"formBlock2",ref:Pe,"onUpdate:isValid":Ne[27]||(Ne[27]=et=>de.value=et)},{default:le(()=>[F("div",null,[F("div",TBe,Q(K(v)("profileForm.presentation_title")),1),F("div",null,[F("label",null,Q(K(v)("profileForm.tagline.label")),1),(J(),je(l8,{id:K(v)("profileForm.tagline.label"),key:g.value,style:{"font-size":"20px !important"},modelValue:E.value.tagline.value,"onUpdate:modelValue":Ne[20]||(Ne[20]=et=>E.value.tagline.value=et),hint:K(v)("profileForm.tagline.hint"),rules:X,"error-messages":E.value.tagline.error,color:"secondary",rows:"2",counter:p5,"persistent-counter":""},null,8,["id","modelValue","hint","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.mainDescription.label")),1),(J(),je(v_,{ref_key:"mainDescriptionEditor",ref:I,key:Ts.value,content:E.value.mainDescription.value,"onUpdate:content":Ne[21]||(Ne[21]=et=>E.value.mainDescription.value=et),contentType:"html",hint:K(v)("profileForm.mainDescription.hint"),rules:ye,"error-messages":E.value.mainDescription.error,color:"secondary",counter:m5,onIsValid:Ne[22]||(Ne[22]=et=>E.value.mainDescription.valid=et)},null,8,["content","hint","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.sessionDescription.label")),1),(J(),je(v_,{content:E.value.sessionDescription.value,"onUpdate:content":Ne[23]||(Ne[23]=et=>E.value.sessionDescription.value=et),key:Jn.value,contentType:"html",hint:K(v)("profileForm.sessionDescription.hint"),rules:Se,"error-messages":E.value.sessionDescription.error,color:"secondary",counter:v5,onIsValid:Ne[24]||(Ne[24]=et=>E.value.sessionDescription.valid=et)},null,8,["content","hint","error-messages"]))]),F("div",null,[F("label",null,Q(K(v)("profileForm.expectedBenefits.label")),1),(J(),je(v_,{content:E.value.expectedBenefits.value,"onUpdate:content":Ne[25]||(Ne[25]=et=>E.value.expectedBenefits.value=et),key:vl.value,contentType:"html",hint:K(v)("profileForm.expectedBenefits.hint"),rules:Ee,"error-messages":E.value.expectedBenefits.error,color:"secondary",counter:g5,onIsValid:Ne[26]||(Ne[26]=et=>E.value.expectedBenefits.valid=et)},null,8,["content","hint","error-messages"]))])])]),_:1},512),[[hn,K(m).query.tab==="presentation"]])]),_:1}),C(Yu,null,{default:le(()=>[xt(C(SS,{ref_key:"formBlock3",ref:we,"onUpdate:isValid":Ne[30]||(Ne[30]=et=>xe.value=et)},{default:le(()=>[F("div",PBe,[F("div",$Be,[F("span",null,Q(K(v)("dashboard.profile.degree_title",2)),1)]),E.value.degrees.value.length<5?(J(),ve("div",{key:0,class:"cursor-pointer add-img-btn",onClick:dt},[C(ut,null,{default:le(()=>[Ze("mdi-plus")]),_:1}),F("span",null,Q(E.value.degrees.value.length<1?K(v)("profileForm.degrees.addBtn"):K(v)("profileForm.degrees.addAnotherBtn")),1)])):De("",!0)]),E.value.degrees.value.length?(J(),ve(Ue,{key:0},[C(WR,{"slider-color":"secondary","selected-class":"active-tab",modelValue:Fn.value,"onUpdate:modelValue":Ne[28]||(Ne[28]=et=>Fn.value=et),"bg-color":"white"},{default:le(()=>[(J(!0),ve(Ue,null,Ht(E.value.degrees.value,(et,Bn)=>(J(),je(a8,{key:Bn,value:Bn},{default:le(()=>[Ze(Q(K(v)("dashboard.profile.degree_title"))+": "+Q(String(Bn+1).padStart(2,"0")),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),C(o8,{modelValue:Fn.value,"onUpdate:modelValue":Ne[29]||(Ne[29]=et=>Fn.value=et)},{default:le(()=>[(J(!0),ve(Ue,null,Ht(E.value.degrees.value,(et,Bn)=>(J(),je(s8,{key:Bn,value:Bn},{default:le(()=>[C(Ka,null,{default:le(()=>[C(Qn,{cols:"12"},{default:le(()=>[C(rc,{border:"",rounded:"lg",class:"pa-2 mt-3",color:"transparent"},{default:le(()=>{var Eo,Nt,xr,yn,fu,Ps,Jo,$s,Xi,As,no,gi;return[F("div",null,[F("label",null,Q(K(v)("profileForm.degrees.schoolName.label"))+"(*)",1),C(Tn,{rounded:"lg",density:"compact",modelValue:et.schoolName.value,"onUpdate:modelValue":Nn=>et.schoolName.value=Nn,rules:_e,color:"secondary","error-messages":(Nt=(Eo=E.value.degrees.value[Bn])==null?void 0:Eo.error)==null?void 0:Nt.schoolName},null,8,["modelValue","onUpdate:modelValue","error-messages"])]),F("div",null,[F("label",null,Q(K(v)("profileForm.degrees.discipline.label"))+"(*)",1),C(Tn,{rounded:"lg",density:"compact",modelValue:et.discipline.value,"onUpdate:modelValue":Nn=>et.discipline.value=Nn,rules:_e,color:"secondary","error-messages":(yn=(xr=E.value.degrees.value[Bn])==null?void 0:xr.error)==null?void 0:yn.discipline},null,8,["modelValue","onUpdate:modelValue","error-messages"])]),F("div",ABe,[F("div",OBe,[F("label",null,Q(K(v)("profileForm.degrees.graduationYear.label"))+"(*)",1),C(Oa,{rounded:"lg",density:"compact",modelValue:et.graduationYear.value,"onUpdate:modelValue":Nn=>et.graduationYear.value=Nn,items:K(Ye),rules:be,color:"secondary","error-messages":(Ps=(fu=E.value.degrees.value[Bn])==null?void 0:fu.error)==null?void 0:Ps.graduationYear},null,8,["modelValue","onUpdate:modelValue","items","error-messages"])]),F("div",DBe,[F("div",IBe,[F("label",null,Q(K(v)("profileForm.degrees.durationValue.label"))+"(*)",1),C(Oa,{rounded:"lg",density:"compact",modelValue:et.durationValue.value,"onUpdate:modelValue":Nn=>et.durationValue.value=Nn,"bg-color":"transparent",color:"secondary",flat:"",rules:be,"error-messages":($s=(Jo=E.value.degrees.value[Bn])==null?void 0:Jo.error)==null?void 0:$s.durationValue,placeholder:K(v)("profileForm.degrees.durationValue.label"),items:Array.from({length:10},(Nn,H)=>H+1),style:{"min-width":"100px"}},null,8,["modelValue","onUpdate:modelValue","error-messages","placeholder","items"])]),F("div",NBe,[F("label",null,Q(K(v)("profileForm.degrees.durationUnit.years")),1),C(Oa,{rounded:"lg",modelValue:et.durationUnit.value,"onUpdate:modelValue":Nn=>et.durationUnit.value=Nn,class:"flex-0-0",items:he.value,"item-title":"name","item-value":"id","bg-color":"transparent","single-line":"",flat:"",density:"compact","error-messages":(As=(Xi=E.value.degrees.value[Bn])==null?void 0:Xi.error)==null?void 0:As.durationUnit},null,8,["modelValue","onUpdate:modelValue","items","error-messages"])])])]),F("div",null,[F("label",null,Q(K(v)("profileForm.degrees.description.label")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:et.title.value,"onUpdate:modelValue":Nn=>et.title.value=Nn,placeholder:K(v)("profileForm.degrees.description.label"),rules:_e,color:"secondary","error-messages":(gi=(no=E.value.degrees.value[Bn])==null?void 0:no.error)==null?void 0:gi.title},null,8,["modelValue","onUpdate:modelValue","placeholder","error-messages"])]),C(Ka,null,{default:le(()=>[C(Qn,{cols:"12"},{default:le(()=>[F("div",{ref_for:!0,ref:"uppyDocuments"},null,512),(J(!0),ve(Ue,null,Ht(et.documents.value,(Nn,H)=>(J(),je(ma,{key:Nn.src,class:"ma-1 cursor-pointer",color:"secondary",closable:"",onClick:()=>kd(Nn.src),"onClick:close":me=>et.documents.value.splice(H,1)},{default:le(()=>[Ze(Q(Nn.name),1)]),_:2},1032,["onClick","onClick:close"]))),128))]),_:2},1024),C(Qn,{cols:"12"},{default:le(()=>[et.documents.value.length<tI?(J(),je(Je,{key:0,block:"",rounded:"lg",color:"#C2C2C2",onClick:Nn=>jt(et.documents.value)},{default:le(()=>[F("div",MBe,[C(ut,{color:"#424242"},{default:le(()=>[Ze("mdi-plus-circle-outline")]),_:1}),F("span",LBe,Q(K(v)("profileForm.degrees.addDocumentBtn")),1)])]),_:2},1032,["onClick"])):De("",!0)]),_:2},1024),C(Qn,{cols:"12",class:"text-caption py-0 text-center document-hint"},{default:le(()=>[Ze(Q(K(v)("profileForm.degrees.documentHint")),1)]),_:1}),C(Qn,{cols:"12",class:"d-flex justify-center"},{default:le(()=>[C(Je,{color:"#FF5353",variant:"text",size:"small",onClick:Nn=>(E.value.degrees.value.splice(Bn,1),Fn.value=Fn.value-1)},{default:le(()=>[F("span",RBe,Q(K(v)("profileForm.degrees.deleteBtn")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])],64)):(J(),ve("div",FBe,Q(K(v)("profileForm.degrees.noDegree")),1))]),_:1},512),[[hn,K(m).query.tab==="degrees"]])]),_:1}),C(Yu,null,{default:le(()=>[xt(F("div",VBe,[F("div",BBe,[F("div",zBe,[F("span",null,Q(K(v)("dashboard.profile.image")),1)]),E.value.photos.value.length<j0?(J(),ve("div",{key:0,class:"cursor-pointer add-img-btn",onClick:$n},[C(ut,null,{default:le(()=>[Ze("mdi-plus")]),_:1}),F("span",null,Q(K(v)("dashboard.profile.add_image")),1)])):De("",!0)]),E.value.photos.value.length?(J(),ve(Ue,{key:0},[C(Ka,null,{default:le(()=>[(J(!0),ve(Ue,null,Ht(E.value.photos.value,(et,Bn)=>(J(),je(Qn,{key:et.src,cols:"6",sm:"4",md:"3"},{default:le(()=>[C(Ii,{ref_for:!0,ref:Eo=>Vn.value[Bn]=Eo,onClick:Eo=>du(Bn),src:et.src,cover:!0,class:"mb-2 cursor-pointer",width:"100%","aspect-ratio":"1",rounded:"lg"},{default:le(()=>[C(Dk,{class:"position-absolute cursor-pointer",onClick:Vo(Eo=>E.value.photos.value.splice(E.value.photos.value.indexOf(et),1),["prevent","stop"]),style:{top:"5px",right:"5px","z-index":"1"},color:"red"},null,8,["onClick"])]),_:2},1032,["onClick","src"]),C(B0,{errors:et.error},null,8,["errors"])]),_:2},1024))),128))]),_:1}),C(B0,{errors:E.value.photos.error},null,8,["errors"])],64)):(J(),ve("div",jBe,Q(K(v)("profileForm.degrees.noPictures")),1))],512),[[hn,K(m).query.tab==="pictures"]])]),_:1})])],4)]),_:1})]),K(l)?(J(),ve("div",HBe,[K(m).query.tab!=="info"?(J(),je(Je,{key:0,block:"",onClick:Ne[33]||(Ne[33]=()=>bo("previous")),variant:"outlined",rounded:"lg",color:"#757575"},{default:le(()=>[C(ut,null,{default:le(()=>[Ze("mdi-chevron-left")]),_:1}),F("span",null,Q(K(v)("profileForm.previous")),1)]),_:1})):De("",!0),K(m).query.tab!=="pictures"?(J(),je(Je,{key:1,block:"",class:"mt-2 mt-sm-0",onClick:Ne[34]||(Ne[34]=()=>bo("next")),variant:"outlined",rounded:"lg",color:"#757575"},{default:le(()=>[F("span",null,Q(K(v)("profileForm.next")),1),C(ut,null,{default:le(()=>[Ze("mdi-chevron-right")]),_:1})]),_:1})):De("",!0)])):(J(),ve("div",UBe,[K(m).query.tab!=="info"?(J(),je(Je,{key:0,onClick:Ne[31]||(Ne[31]=()=>bo("previous")),variant:"outlined",rounded:"lg",color:"#757575"},{default:le(()=>[C(ut,null,{default:le(()=>[Ze("mdi-chevron-left")]),_:1}),F("span",null,Q(K(v)("profileForm.previous")),1)]),_:1})):De("",!0),De("",!0),K(m).query.tab!=="pictures"?(J(),je(Je,{key:2,onClick:Ne[32]||(Ne[32]=()=>bo("next")),variant:"outlined",rounded:"lg",color:"#757575"},{default:le(()=>[F("span",null,Q(K(v)("profileForm.next")),1),C(ut,null,{default:le(()=>[Ze("mdi-chevron-right")]),_:1})]),_:1})):De("",!0)]))]}),_:1},8,["disabled","loading","style"]))]),_:1},8,["style"])]),_:1}),(e.embedded,De("",!0)),C($Fe,{dialog:_l.value,loading:ml.value,"onUpdate:saveExit":Ne[35]||(Ne[35]=()=>si()),"onUpdate:leave":Ne[36]||(Ne[36]=Qe=>(_l.value=!1,gc.value=!0)),"onUpdate:close":Ne[37]||(Ne[37]=Qe=>_l.value=!1)},null,8,["dialog","loading"]),F("div",{onClick:Na,class:"d-md-none bg-white profile-mobile-lists cursor-pointer position-fixed d-flex justify-center align-center elevation-4 rounded-circle"},[C(GD,{width:23.25,height:13.5,color:"#029978"})]),C(bFe,{display:Y.value,onCancel:Ne[38]||(Ne[38]=Qe=>Y.value=!1),onConfirmDelete:Ne[39]||(Ne[39]=()=>mc()),"profile-index":cu.value,"profile-slug":wo.value,"profile-avatar":Qt.value,isDeleteDraft:Dn.value,loading:ks.value},null,8,["display","profile-index","profile-slug","profile-avatar","isDeleteDraft","loading"]),x.value?(J(),je(oVe,{key:1,currentProfileId:ne.value,profiles:M.value,dialog:x.value,"onUpdate:selected":Ne[40]||(Ne[40]=Qe=>q(Qe)),"onUpdate:close":Ne[41]||(Ne[41]=Qe=>x.value=!1),"onUpdate:delete":Ne[42]||(Ne[42]=Qe=>Zo(Qe.profile,Qe.idx)),"onUpdate:draft":Ne[43]||(Ne[43]=Qe=>Bt(Qe.id))},null,8,["currentProfileId","profiles","dialog"])):De("",!0)]),_:1})}}});const GBe=ot({__name:"Profiles",setup(e){return(t,n)=>(J(),je(WBe))}}),KBe=Object.freeze(Object.defineProperty({__proto__:null,default:GBe},Symbol.toStringTag,{value:"Module"})),ZBe={class:"billing-title"},XBe={class:"pa-3"},JBe=["data-cy","placeholder","readonly"],QBe={class:"d-sm-flex address"},eze={class:"w-sm-50 border-custom pa-3"},tze=["data-cy","placeholder","readonly"],nze={class:"w-sm-50 pa-3"},ize=["data-cy","placeholder","readonly"],rze=ot({__name:"Address",props:L_({loading:{type:Boolean,default:!1},cyContexte:{type:String,default:"dashboard"}},{modelValue:{default:{addressCompany:"",postalCodeCompany:"",cityCompany:""}},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const{t}=gn();z(!1),z(!1);const n=Hg(e,"modelValue"),i=B(()=>n.value||{addressCompany:"",postalCodeCompany:"",cityCompany:""});return(r,a)=>(J(),je(ou,{class:"d-flex ga-2 flex-column"},{default:le(()=>[F("label",ZBe,Q(K(t)("register.billing_address")),1),C(Cn,{color:"white",class:"border-card",elevation:"0"},{default:le(()=>[C(br,{class:"pa-0"},{default:le(()=>[F("div",XBe,[xt(F("input",{"data-cy":`${e.cyContexte}-addressCompany-input`,class:"pa-0 no-focus w-100",placeholder:r.$t("register.billing_address_placeholder"),readonly:e.loading,"onUpdate:modelValue":a[0]||(a[0]=o=>i.value.addressCompany=o)},null,8,JBe),[[Tf,i.value.addressCompany]])]),C(jn,{color:"#b2aeae",opacity:"2"}),F("div",QBe,[F("div",eze,[xt(F("input",{"data-cy":`${e.cyContexte}-postalCodeCompany-input`,class:"pa-0 no-focus w-100",placeholder:r.$t("register.postal_code"),readonly:e.loading,"onUpdate:modelValue":a[1]||(a[1]=o=>i.value.postalCodeCompany=o)},null,8,tze),[[Tf,i.value.postalCodeCompany]])]),F("div",nze,[xt(F("input",{"data-cy":`${e.cyContexte}-cityCompany-input`,class:"pa-0 no-focus w-100",placeholder:r.$t("register.city"),readonly:e.loading,"onUpdate:modelValue":a[2]||(a[2]=o=>i.value.cityCompany=o)},null,8,ize),[[Tf,i.value.cityCompany]])])])]),_:1})]),_:1})]),_:1}))}});const aze=on(rze,[["__scopeId","data-v-49109c13"]]),iY=e=>(ul("data-v-8d832c5a"),e=e(),cl(),e),oze={class:"font-weight-bold title"},sze={class:"d-flex align-center"},lze={class:"d-sm-flex ga-sm-2"},uze={class:"w-sm-50 w-100"},cze={class:"w-sm-50 w-100"},dze=iY(()=>F("label",null,"% de TVA",-1)),fze={class:""};const hze={class:"text-red text-caption text-center"},pze={class:"text-red py-2 text-caption text-center"},mze={class:"d-sm-flex mt-5 ga-2"},vze=iY(()=>F("span",{class:"text-gray-80"},"Annuler",-1)),gze=ot({__name:"CompanyDialog",emits:["update:company","update:close"],setup(e,{emit:t}){const n=Kr(),i=vn(),{t:r}=gn(),a=z(!1),o=z(!1),s=[x=>!!x||`${r("dashboard.subscription.required")}`],l=z(!1),u=z(),c=z({nameCompany:"",siret:"",addressCompany:"",countryCompany:"",postalCodeCompany:"",cityCompany:"",tvaNumberCompany:""}),d=z(!1),f=z(!1),h=z(!1),m=z(),g=z(""),v=z({}),y=z(),_=x=>{v.value[x]&&(v.value[x]=null)},S=async()=>{var x,k,P,E,A,D,T,O,N,V,j,q,ne,ae,Y,M;if(u.value="",m.value="",!d.value||l.value)return!1;l.value=!0;try{const{data:I}=await i.post("/account/billing-informations",c.value);nt.success(r("dashboard.subscription.messages.informations.success")),await n.fetchSubscriptionStatus(),n.displayBillingModal=!1,await n.fetchInfoData()}catch(I){nt.error(r("dashboard.subscription.messages.informations.error")),m.value="",((x=I.response)==null?void 0:x.status)===422&&("addressCompany"in((k=I.response)==null?void 0:k.data)&&(m.value+=` `+((A=(E=(P=I.response)==null?void 0:P.data)==null?void 0:E.addressCompany)==null?void 0:A[0])),"postalCodeCompany"in((D=I.response)==null?void 0:D.data)&&(m.value+=` `+((N=(O=(T=I.response)==null?void 0:T.data)==null?void 0:O.postalCodeCompany)==null?void 0:N[0])),"cityCompany"in((V=I.response)==null?void 0:V.data)&&(m.value+=` `+((ne=(q=(j=I.response)==null?void 0:j.data)==null?void 0:q.cityCompany)==null?void 0:ne[0])),v.value=(ae=I.response)==null?void 0:ae.data),u.value=(M=(Y=I.response)==null?void 0:Y.data)==null?void 0:M.message}finally{l.value=!1}},w=z(0);return Ve(()=>c.value.countryCompany,async()=>{if(f.value)return!1;c.value.tvaNumberCompany?w.value=0:w.value=await n.tvaByCountry(c.value.countryCompany)}),Ve(()=>n.displayBillingModal,()=>{f.value=!0,setTimeout(()=>{f.value=!1},0)},{immediate:!0}),Ve(()=>c.value.tvaNumberCompany,async x=>{if(f.value)return!1;if(g.value="",c.value.tvaNumberCompany){const k=x.replace(/\s+/g,"");h.value=bTe.test(k),h.value?w.value=0:g.value=r("incorrect_number")}else w.value=await n.tvaByCountry(c.value.countryCompany)},{flush:"post"}),tn(async()=>{if(!n.userInformation)return;c.value.nameCompany=n.userInformation.nameCompany,c.value.countryCompany=n.userInformation.countryCompany,c.value.siret=n.userInformation.siret,c.value.addressCompany=n.userInformation.addressCompany,c.value.tvaNumberCompany=n.userInformation.tvaNumberCompany,c.value.cityCompany=n.userInformation.cityCompany,c.value.postalCodeCompany=n.userInformation.postalCodeCompany,w.value=n.subscriptionStatus.tva;const x=await Ez();y.value=x}),(x,k)=>(J(),je(ir,{"model-value":K(n).displayBillingModal,persistent:"","max-width":"600",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white",rounded:"xl"},{default:le(()=>[C(_r,{class:"py-3 d-flex justify-center w-full align-center bg-surface-lighten-1"},{default:le(()=>[F("span",oze,Q(K(r)("dashboard.subscription.update_information_modal_title")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:k[0]||(k[0]=P=>K(n).displayBillingModal=!1),src:_h})]),_:1}),C(ou,{onSubmit:Vo(S,["prevent"]),modelValue:d.value,"onUpdate:modelValue":k[25]||(k[25]=P=>d.value=P)},{default:le(()=>[C(br,{class:"pa-8"},{default:le(()=>{var P,E;return[F("div",null,[F("label",null,Q(K(r)("dashboard.subscription.company_label")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:c.value.nameCompany,"onUpdate:modelValue":k[1]||(k[1]=A=>c.value.nameCompany=A),"error-messages":(P=v.value)==null?void 0:P.nameCompany,onInput:k[2]||(k[2]=A=>_("nameCompany")),type:"text"},null,8,["modelValue","error-messages"])]),F("div",null,[F("label",null,Q(K(r)("dashboard.subscription.siret")),1),C(Tn,{rounded:"lg",density:"compact",modelValue:c.value.siret,"onUpdate:modelValue":k[3]||(k[3]=A=>c.value.siret=A),"error-messages":(E=v.value)==null?void 0:E.siret,onInput:k[4]||(k[4]=A=>_("siret")),type:"text"},null,8,["modelValue","error-messages"])]),F("div",null,[F("div",sze,[F("label",null,Q(K(r)("dashboard.subscription.tva_number")),1),C(ka,{text:x.$t("register.tva_infobulle")},{activator:le(({props:A})=>[C(ut,Me({size:"x-small",class:"cursor-pointer",color:"#757575"},A),{default:le(()=>[Ze("mdi-information")]),_:2},1040)]),_:1},8,["text"])]),C(Tn,{rounded:"lg",density:"compact",modelValue:c.value.tvaNumberCompany,"onUpdate:modelValue":k[5]||(k[5]=A=>c.value.tvaNumberCompany=A),"error-messages":g.value,onInput:k[6]||(k[6]=A=>_("tvaNumberCompany")),type:"text",clearable:""},null,8,["modelValue","error-messages"])]),F("div",lze,[F("div",uze,[F("label",null,Q(x.$t("dashboard.addresses.selectCountry")),1),C(qp,{rounded:"lg",density:"compact",class:"mb-5",modelValue:c.value.countryCompany,"onUpdate:modelValue":k[7]||(k[7]=A=>c.value.countryCompany=A),items:y.value,"item-title":"label",rules:s,clearable:"","hide-details":"auto"},null,8,["modelValue","items"])]),F("div",cze,[dze,C(Tn,{readonly:"",rounded:"lg",modelValue:w.value,"onUpdate:modelValue":k[8]||(k[8]=A=>w.value=A),class:"text-disabled",density:"compact",variant:"outlined"},null,8,["modelValue"])])]),F("div",fze,[C(aze,{modelValue:c.value,"onUpdate:modelValue":k[9]||(k[9]=A=>c.value=A)},null,8,["modelValue"]),De("",!0),C(Ka,null,{default:le(()=>[C(Qn,{cols:12},{default:le(()=>[F("p",hze,Q(m.value),1)]),_:1})]),_:1})]),F("p",pze,Q(u.value),1),F("div",mze,[C(Je,{onClick:k[24]||(k[24]=A=>K(n).displayBillingModal=!1),class:"w-sm-50 w-100",color:"#E0E0E0"},{default:le(()=>[vze]),_:1}),C(Je,{loading:l.value,type:"submit",color:"secondary",class:"w-sm-50 w-100 mt-sm-0 mt-2"},{default:le(()=>[Ze(Q(K(r)("dashboard.subscription.saveBtn")),1)]),_:1},8,["loading"])])]}),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value"]))}});const yze=on(gze,[["__scopeId","data-v-8d832c5a"]]),_ze={class:"mt-8 d-flex flex-column ga-3"},bze={class:"text-dark-green font-weight-medium"},wze={class:"d-flex flex-column ga-10 position-relative"},Sze={class:"title text-gray-80 font-weight-bold"},Cze={class:"value text-gray-80"},Eze={class:"title text-gray-80 font-weight-bold"},xze={class:"value text-gray-80"},kze={class:"title text-gray-80 font-weight-bold"},Tze={key:0,class:"value"},Pze={class:"text-gray-80"},$ze={class:"text-gray-80"},Aze={key:1,class:"text-gray-80 value"},Oze={class:"title text-gray-80 font-weight-bold"},Dze={class:"value text-gray-80"},Ize={class:"description-info",style:{color:"#9e9e9e"}},Nze=ot({__name:"BillingInfo",setup(e){const t=Kr(),{t:n,d:i,n:r}=gn(),a=B(()=>{if(t.userInformation&&t.userInformation.fullName){const{fullName:c}=t.userInformation;return c}}),o=B(()=>{if(t.userInformation&&t.userInformation.tvaNumberCompany){const{tvaNumberCompany:c}=t.userInformation;if(c)return c}return n("common.notSpecified")}),s=B(()=>{if(t.userInformation&&t.userInformation.siret){const{siret:c}=t.userInformation;if(c)return c}return n("common.notSpecified")}),l=B(()=>{if(t.userInformation&&t.userInformation.addressCompany)return t.userInformation.addressCompany}),u=B(()=>{if(t.userInformation&&t.userInformation.cityCompany){const{countryCompany:c,cityCompany:d,postalCodeCompany:f}=t.userInformation;if(c||d||f)return[f,d,c].filter(Boolean).join(" ")}});return z(!1),(c,d)=>(J(),ve("div",null,[F("div",_ze,[F("span",bze,Q(K(n)("dashboard.subscription.billing_info")),1),C(Cn,{elevation:"0",color:"white",border:"",class:"pa-sm-5 pa-2",rounded:"xl"},{default:le(()=>[F("div",wze,[F("div",null,[C(Ka,null,{default:le(()=>[C(Qn,{cols:"6"},{default:le(()=>[F("div",Sze,Q(K(n)("dashboard.subscription.full_name")),1),F("div",Cze,Q(a.value),1)]),_:1}),C(Qn,{cols:"6"},{default:le(()=>[F("div",Eze,Q(K(n)("dashboard.subscription.company_number")),1),F("div",xze,Q(s.value),1)]),_:1})]),_:1}),C(Ka,null,{default:le(()=>[C(Qn,{cols:"6"},{default:le(()=>[F("div",kze,Q(K(n)("dashboard.subscription.address")),1),l.value||u.value?(J(),ve("div",Tze,[F("div",Pze,Q(l.value),1),F("div",$ze,Q(u.value),1)])):(J(),ve("div",Aze,Q(K(n)("common.notSpecified")),1))]),_:1}),C(Qn,{cols:"6"},{default:le(()=>[F("div",Oze,Q(K(n)("dashboard.subscription.tva_number"))+": ",1),F("div",Dze,Q(o.value),1)]),_:1})]),_:1})]),F("p",Ize,Q(K(n)("dashboard.subscription.information_desc")),1),C(Je,{style:{right:"0",top:"0"},icon:"",density:"compact",class:"position-absolute d-flex justify-center align-center",color:"white"},{default:le(()=>[F("img",{onClick:d[0]||(d[0]=f=>K(t).displayBillingModal=!0),width:"20",height:"20",src:Yw})]),_:1})])]),_:1})]),K(t).displayBillingModal?(J(),je(yze,{key:0})):De("",!0)]))}});const Mze=on(Nze,[["__scopeId","data-v-f568b274"]]),Lze=e=>(ul("data-v-426221bb"),e=e(),cl(),e),Rze={class:"font-weight-bold title"},Fze={class:"text-red text-caption text-center py-2"},Vze={class:"d-sm-flex mt-5 ga-2"},Bze=Lze(()=>F("span",{class:"text-gray-80"},"Annuler",-1)),zze=ot({__name:"UpdateCardDialog",props:{dialog:Boolean},emits:["update:close"],setup(e,{emit:t}){const{t:n}=gn(),i=t;xU(A2());const r=z(null),a=z(!1);z(""),z(""),Un();const o=z(),s=Kr(),l=ly(),u=async()=>{o.value="",a.value=!0;const c=await r.value.paymentMethod();if(c.status){const d=await s.updateUserCard(c.paymentMethodId);d.status?await r.value.confirmCardSetup(d.clientSecret,c.paymentMethodId).then(async f=>{f.status?(a.value=!1,a.value=!1,i("update:close"),nt.success(n("dashboard.subscription.update_card_success")),s.fetchCardInfo(),s.fetchCardInfo(),l.fetchDashboardStatus()):(o.value=f.error,a.value=!1,nt.error(""))}):(a.value=!1,o.value=d.error)}else return o.value=c.error,a.value=!1,nt.error(""),!1};return(c,d)=>(J(),je(ir,{"model-value":e.dialog,persistent:"","max-width":"600",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"d-flex pa-1 justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[F("span",Rze,Q(K(n)("dashboard.subscription.updateCard")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:d[0]||(d[0]=f=>i("update:close")),src:_h})]),_:1}),C(br,{class:"px-md-15"},{default:le(()=>[C(kU,{ref_key:"paymentRef",ref:r,displayLabel:""},null,512),F("div",Fze,Q(o.value),1),F("div",Vze,[C(Je,{onClick:d[1]||(d[1]=f=>i("update:close")),class:"w-sm-50 w-100",color:"#E0E0E0"},{default:le(()=>[Bze]),_:1}),C(Je,{type:"submit",onClick:u,loading:a.value,color:"secondary",class:"mt-sm-0 mt-2 w-sm-50 w-100"},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.saveBtn")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const jze=on(zze,[["__scopeId","data-v-426221bb"]]),rY=e=>(ul("data-v-cc894670"),e=e(),cl(),e),Uze={class:"mt-8 d-flex flex-column ga-3"},Hze={class:"text-dark-green font-weight-medium"},qze={class:"d-flex flex-column ga-10 position-relative"},Yze={class:"title text-gray-80 font-weight-bold"},Wze={class:"value text-gray-80"},Gze={class:"title text-gray-80 font-weight-bold"},Kze={class:"value text-gray-80"},Zze=rY(()=>F("div",{class:"title text-gray-80 font-weight-bold"},"CCV",-1)),Xze=rY(()=>F("div",{class:"value text-gray-80"},"***",-1)),Jze={key:0,class:"text-disabled mt-2"},Qze={key:0},eje={key:1},tje={key:1,class:"font-italic description mt-2"},nje=ot({__name:"PaymentMethode",setup(e){const{t,d:n,n:i}=gn(),r=Kr(),a=z(!1),o=B(()=>{if(r.cardData)return r.cardData.lastFour?`**** **** **** ${r.cardData.lastFour}`:t("common.notSpecified")}),s=B(()=>{if(r.cardData)return r.cardData.expiryMonth?`${String(r.cardData.expiryMonth).padStart(2,"0")} / ${r.cardData.expiryYear}`:t("common.notSpecified")});return B(()=>{if(!r.userInformation)return;const{countryCompany:l,cityCompany:u}=r.userInformation;return l||u?[l,u].filter(Boolean).join(" - "):t("common.notSpecified")}),(l,u)=>(J(),ve("div",Uze,[F("span",Hze,Q(K(t)("dashboard.subscription.payment_mode")),1),C(Cn,{elevation:"0",color:"white",border:"",class:"pa-5",rounded:"xl"},{default:le(()=>{var c;return[F("div",qze,[F("div",null,[C(Ka,null,{default:le(()=>[C(Qn,{cols:"12"},{default:le(()=>[F("div",Yze,Q(K(t)("dashboard.subscription.card_number")),1),F("div",Wze,Q(o.value),1)]),_:1})]),_:1}),C(Ka,null,{default:le(()=>[C(Qn,{cols:"6",sm:"4"},{default:le(()=>[F("div",Gze,Q(K(t)("dashboard.subscription.expired")),1),F("div",Kze,Q(s.value),1)]),_:1}),C(Qn,{cols:"6",sm:"4"},{default:le(()=>[Zze,Xze]),_:1})]),_:1})]),C(Je,{class:"position-absolute d-flex justify-center align-center",color:"white",density:"compact",style:{right:"0",top:"0"},icon:""},{default:le(()=>[F("img",{onClick:u[0]||(u[0]=d=>a.value=!0),width:"20",height:"20",src:Yw})]),_:1})]),(c=K(r).cardData)!=null&&c.lastFour?De("",!0):(J(),ve("div",Jze,[K(r).subscriptionStatus&&K(r).subscriptionStatus.isLifetime?(J(),ve("span",Qze,Q(K(t)("dashboard.subscription.add_payment_card_islife")),1)):(J(),ve("span",eje,Q(K(t)("dashboard.subscription.add_payment_card")),1))])),K(r).isCardExpired?(J(),ve("p",tje,Q(K(t)("expired-card")),1)):De("",!0)]}),_:1}),a.value?(J(),je(jze,{key:0,dialog:a.value,"onUpdate:close":u[1]||(u[1]=c=>a.value=!1)},null,8,["dialog"])):De("",!0)]))}});const ije=on(nje,[["__scopeId","data-v-cc894670"]]),rje=e=>(ul("data-v-71f1ab4f"),e=e(),cl(),e),aje={class:"subscription-info w-100"},oje={class:"title d-flex align-center justify-space-between pa-2"},sje={class:"title-1 font-weight-medium"},lje={class:"text-right"},uje={class:"title-2 font-weight-medium"},cje={key:0},dje={key:0,class:"d-flex flex-column pt-2 ga-5"},fje={style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},hje=["innerHTML"],pje=rje(()=>F("span",{class:"text-gray-800 font-weight-bold text-right"},"-",-1)),mje={key:0,class:"d-flex flex-column ga-5"},vje={style:{"font-size":"14px"},class:"d-flex flex-column"},gje={key:0,class:"text-gray-80 d-flex justify-space-between"},yje={key:0,class:"text-gray-800 font-weight-bold"},_je={key:1,class:"text-gray-800 font-weight-bold"},bje={key:1,class:"d-flex flex-column pt-2 ga-5"},wje={key:0,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Sje=["innerHTML"],Cje={class:"text-gray-800 font-weight-bold"},Eje={key:1,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},xje={class:"text-gray-800 font-weight-bold"},kje={key:2,class:"text-gray-80 d-flex justify-space-between",style:{"font-size":"14px"}},Tje={style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Pje={class:"text-gray-800 font-weight-bold text-right"},$je={key:3,class:"d-flex flex-column ga-5"},Aje={style:{"font-size":"14px"},class:"d-flex flex-column"},Oje={key:0,class:"text-gray-80 d-flex justify-space-between"},Dje={key:0,class:"text-gray-800 font-weight-bold"},Ije={key:1,class:"text-gray-800 font-weight-bold"},Nje={key:4,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Mje={class:"text-gray-800 font-weight-bold text-right"},Lje={style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Rje={class:"text-gray-800 font-weight-bold"},Fje={key:2,class:"d-flex flex-column pt-2 ga-5"},Vje={key:0,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Bje=["innerHTML"],zje={class:"text-gray-800 font-weight-bold text-right"},jje={key:1,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Uje={class:"font-italic"},Hje={key:0,class:"text-gray-800 text-right font-weight-bold"},qje=["innerHTML"],Yje={key:2,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Wje={class:"text-gray-800 font-weight-bold text-right"},Gje={style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},Kje={class:"text-gray-800 font-weight-bold text-right"},Zje={key:3,class:"d-flex flex-column ga-5"},Xje={style:{"font-size":"14px"},class:"d-flex flex-column"},Jje={key:0,class:"text-gray-80 d-flex justify-space-between"},Qje={key:0,class:"text-gray-800 font-weight-bold"},eUe={key:1,class:"text-gray-800 font-weight-bold"},tUe={key:4,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},nUe={class:"text-gray-800 font-weight-bold text-right"},iUe={style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},rUe={class:"text-gray-800 font-weight-bold text-right"},aUe={key:1,class:"text-gray-80",style:{"font-size":"14px"}},oUe={key:0,class:"d-flex flex-column pt-2 ga-5"},sUe={key:0,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},lUe={key:0,class:"text-gray-800 text-right font-weight-bold"},uUe=["innerHTML"],cUe={key:1,style:{"font-size":"14px"},class:"text-gray-80 d-flex justify-space-between"},dUe={class:"text-gray-800 font-weight-bold text-right"},fUe={style:{"font-size":"14px"},class:"text-red d-flex justify-space-between"},hUe={class:"text-gray-800 font-weight-bold text-right"},pUe={key:1},mUe=ot({__name:"SubscriptionInfo",setup(e){const{t}=gn(),n=Kr(),i=Un(),r=B(()=>n.subscriptionStatus.nextBillDate?n.subscriptionStatus.nextBillDate:!1),a=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.discountPercentage)return n.subscriptionStatus.discountPercentage}),o=B(()=>{if(n.hasDiscount)return n.subscriptionStatus&&n.subscriptionStatus.type==="monthly"?6:12}),s=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.discount)return n.subscriptionStatus.discount??0});B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.actualPrice)return n.trialRemainingDays&&n.trialRemainingDays>0?n.subscriptionStatus.actualPrice??n.planChoise.price:n.subscriptionStatus.discountPercentage&&n.subscriptionStatus.discountPercentage>0?n.subscriptionStatus.actualPrice:n.subscriptionStatus.price});const l=B(()=>n.nextBillAmount),u=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.tva)return n.subscriptionStatus.tva}),c=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.monthsAlreadyPaid)return n.subscriptionStatus.monthsAlreadyPaid}),d=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.monthsPresubscribedRemaining)return n.subscriptionStatus.monthsPresubscribedRemaining}),f=B(()=>{let y="";if(n.subscriptionStatus||n.subscriptionStatus.monthsAlreadyPaid&&n.subscriptionStatus.type){const _=n.subscriptionStatus.monthsAlreadyPaid;return n.alreadyPay||n.subscriptionStatus.type==="life"&&_===40?(y=t("life_msg"),y):(y=t("life_msg_unpaid"),y)}}),h=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.status)switch(n.subscriptionStatus.status){case"past_due":return t("stripe_status_msg.past_due");case"canceled":return t("stripe_status_msg.canceled");case"unpaid":return t("stripe_status_msg.unpaid");case"incomplete":return t("stripe_status_msg.incomplete");case"incomplete_expired":return t("stripe_status_msg.incomplete_expired");case"paused":return t("stripe_status_msg.paused");default:return""}}),m=B(()=>{if(n.subscriptionStatus&&n.subscriptionStatus.trial)return n.subscriptionStatus.trial}),g=B(()=>n.subscriptionStatus.contributionAmount??0),v=B(()=>u.value>0?n.subscriptionStatus.subscriptionLevel.priceWithTva:n.subscriptionStatus.subscriptionLevel.price);return(y,_)=>{var S,w,x,k,P,E,A,D,T,O,N,V,j,q,ne,ae,Y;return J(),ve("div",aje,[F("div",oje,[F("div",null,[F("span",sje,Q(K(t)("have_subscribe_to"))+" : ",1)]),F("div",lje,[F("span",uje,Q(K(t)(`${(w=(S=K(n))==null?void 0:S.subscriptionStatus.subscriptionLevel)==null?void 0:w.name}`)),1)])]),!K(n).subscriptionStatus.status||K(n).subscriptionStatus.status==="active"||K(n).subscriptionStatus.status==="trialing"?(J(),ve("div",cje,[K(n).subscriptionStatus.type==="life"?(J(),ve("div",dje,[F("div",fje,[f.value?(J(),ve("span",{key:0,innerHTML:f.value},null,8,hje)):De("",!0),pje]),((P=(k=(x=K(i))==null?void 0:x.user)==null?void 0:k.addons)==null?void 0:P.length)>0?(J(),ve("div",mje,[(J(!0),ve(Ue,null,Ht((A=(E=K(i))==null?void 0:E.user)==null?void 0:A.addons,M=>{var I;return J(),ve("div",vje,[(I=M==null?void 0:M.billing)!=null&&I.includes("life")?De("",!0):(J(),ve("div",gje,[F("span",null,"Option "+Q(M.name)+" :",1),u.value>0?(J(),ve("span",yje,Q(M.priceWithTva)+" € TTC ",1)):(J(),ve("span",_je,Q(M.price)+" € HT ",1))]))])}),256))])):De("",!0)])):K(n).subscriptionStatus&&K(n).subscriptionStatus.type==="monthly"&&K(n).subscriptionStatus.monthsAlreadyPaid>1&&K(n).subscriptionStatus.monthsAlreadyPaid<40?(J(),ve("div",bje,[c.value&&d.value>0?(J(),ve("div",wje,[F("span",{innerHTML:K(t)("presubscribe_msg",{value:c.value})},null,8,Sje),F("span",Cje,Q(K(t)("months_remaining",{value:d.value})),1)])):De("",!0),r.value&&K(n).subscriptionStatus.status==="active"?(J(),ve("div",Eje,[F("span",null,Q(K(t)("next_bill_date"))+":",1),F("span",xje,Q(K($e)(r.value).format("D MMMM YYYY")),1)])):(J(),ve("div",kje,Q(y.$t("pre_subscription_inatif_msg",{value:c.value})),1)),F("div",Tje,[F("span",null,Q(K(t)("plan_price"))+":",1),F("span",Pje,Q(v.value)+" € "+Q(u.value>0?"TTC":"HT"),1)]),((O=(T=(D=K(i))==null?void 0:D.user)==null?void 0:T.addons)==null?void 0:O.length)>0?(J(),ve("div",$je,[(J(!0),ve(Ue,null,Ht((V=(N=K(i))==null?void 0:N.user)==null?void 0:V.addons,M=>{var I;return J(),ve("div",Aje,[(I=M==null?void 0:M.billing)!=null&&I.includes("life")?De("",!0):(J(),ve("div",Oje,[F("span",null,"Option "+Q(M.name)+" :",1),u.value>0?(J(),ve("span",Dje,Q(M.priceWithTva)+" € TTC ",1)):(J(),ve("span",Ije,Q(M.price)+" € HT ",1))]))])}),256))])):De("",!0),K(n).subscriptionStatus.subscriptionLevel.category==="premium"&&g.value>0?(J(),ve("div",Nje,[F("span",null,Q(K(t)("contributionAmount"))+":",1),F("span",Mje,Q(g.value)+"€",1)])):De("",!0),F("div",Lje,[F("span",null,Q(K(t)("next_payment_amount"))+":",1),F("span",Rje,Q(l.value)+" € "+Q(u.value>0?"TTC":"HT"),1)])])):(J(),ve("div",Fje,[a.value&&a.value>0&&K(n).trialRemainingDays&&K(n).trialRemainingDays>0&&s.value>0?(J(),ve("div",Vje,[F("span",{class:"font-italic",innerHTML:K(t)("discount_benefit",{value:s.value})},null,8,Bje),F("span",zje,Q(K(t)("months_remaining",{value:o.value})),1)])):De("",!0),m.value&&K(n).trialExpiredOver2Weeks?(J(),ve("div",jje,[F("span",Uje,Q(K(t)("trial_period"))+":",1),K(n).trialRemainingDays&&K(n).trialRemainingDays>0?(J(),ve("span",Hje,Q(K(t)("remaining_date",{value:K(n).trialRemainingDays})),1)):(J(),ve("span",{key:1,class:"text-gray-800 font-weight-bold text-right",innerHTML:K(t)("remaining_date_pass",{value:K($e)(m.value).format("D MMMM YYYY")})},null,8,qje))])):De("",!0),r.value?(J(),ve("div",Yje,[F("span",null,Q(K(t)("next_bill_date"))+":",1),F("span",Wje,Q(K($e)(r.value).format("D MMMM YYYY")),1)])):De("",!0),F("div",Gje,[F("span",null,Q(K(t)("plan_price"))+":",1),F("span",Kje,Q(v.value)+" € "+Q(u.value>0?"TTC":"HT"),1)]),((ne=(q=(j=K(i))==null?void 0:j.user)==null?void 0:q.addons)==null?void 0:ne.length)>0?(J(),ve("div",Zje,[(J(!0),ve(Ue,null,Ht((Y=(ae=K(i))==null?void 0:ae.user)==null?void 0:Y.addons,M=>{var I;return J(),ve("div",Xje,[(I=M==null?void 0:M.billing)!=null&&I.includes("life")?De("",!0):(J(),ve("div",Jje,[F("span",null,"Option "+Q(M.name)+" :",1),u.value>0?(J(),ve("span",Qje,Q(M.priceWithTva)+" € TTC ",1)):(J(),ve("span",eUe,Q(M.price)+" € HT ",1))]))])}),256))])):De("",!0),K(n).subscriptionStatus.subscriptionLevel.category==="premium"&&g.value>0?(J(),ve("div",tUe,[F("span",null,Q(K(t)("contributionAmount",{type:K(n).subscriptionStatus.subscriptionLevel.type==="monthly"?"mensuelle":"annuelle"}))+":",1),F("span",nUe,Q(g.value)+"€",1)])):De("",!0),F("div",iUe,[F("span",null,Q(K(t)("next_payment_amount"))+":",1),F("span",rUe,Q(l.value)+" € "+Q(u.value>0?"TTC":"HT"),1)])]))])):(J(),ve("div",aUe,[(K(n).subscriptionStatus.status==="canceled"||K(n).subscriptionStatus.status==="paused")&&K(n).remainingDaysAfterCanceled>0?(J(),ve("div",oUe,[m.value&&K(n).trialExpiredOver2Weeks?(J(),ve("div",sUe,[F("span",null,Q(K(t)("trial_period"))+":",1),K(n).trialRemainingDays&&K(n).trialRemainingDays>0?(J(),ve("span",lUe,Q(K(t)("remaining_date",{value:K(n).trialRemainingDays})),1)):(J(),ve("span",{key:1,class:"text-gray-800 font-weight-bold text-right",innerHTML:K(t)("remaining_date_pass",{value:K($e)(m.value).format("D MMMM YYYY")})},null,8,uUe))])):De("",!0),r.value?(J(),ve("div",cUe,[F("span",null,Q(K(t)("subscription_end"))+":",1),F("span",dUe,Q(K($e)(r.value).format("D MMMM YYYY")),1)])):De("",!0),F("div",fUe,[F("span",null,Q(K(t)("subscription_canceled_date"))+": ",1),F("span",hUe,Q(K($e)(K(n).subscriptionStatus.subscriptionEndDate).format("D MMMM YYYY")),1)])])):(J(),ve("span",pUe,Q(h.value),1))]))])}}});const vUe=on(mUe,[["__scopeId","data-v-71f1ab4f"]]),gUe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADTSURBVHgB5ZLBDcIwDEWdwJ1uQEeADWCTjAATlFHCBIwAR25kA1bIBA3fUorSULUu6gHUL33VSeynpDbR7LSQJBljThvIOXcfyl2STCUcJImaJtYfA9GIAi6l+4NAyCqlrmkxx9h7aK2rb4AG9gzFdw2XMfZ1XR9FQH7O+3rW+hDCPkJ3bI55j8+6alpAHl4U2fQwgTp2Dou6oPbQLPLBLrI1RcCWb9IB+6gTj00PrKXJ5zB/8qpvxsYCb3CFxjxppNCscxOr9CCOQEHj5KX/9zf0AlkyUYZLy1mhAAAAAElFTkSuQmCC",yUe={class:"mt-8 d-flex flex-column ga-3"},_Ue={class:"text-dark-green font-weight-medium"},bUe={class:"holitime-ref"},wUe={class:"d-flex justify-center"},SUe={class:"d-flex ga-2"},CUe=["onClick"],EUe={key:1},xUe=10,kUe=ot({__name:"Payments",setup(e){const{t,d:n,n:i}=gn(),r=Kr(),a=vn(),o=[{title:"Date:",value:"createdAt",align:"left"},{title:"Type D'abonnement:",value:"paymentType",align:"left"},{title:"Montant",value:"amount",align:"center"},{title:"Statut",value:"status",align:"center"},{title:"Téléchargement",value:"invoice",align:"center"}];B(()=>r.paymentList);const s=f=>{switch(f){case"succeeded":case"partially_refunded":return{text:t("dashboard.subscription.payments.status.succeeded"),color:"#12C29B1A",code:"secondary"};case"pending":case"failed":return{text:t("dashboard.subscription.payments.status.pending"),color:"#FFC1071A",code:"accent"};case"refunded":return{text:t("dashboard.subscription.payments.status.refunded"),color:"#FFE8E8",code:"error"};case"failed":default:return{text:t("dashboard.subscription.payments.status.failed"),color:"#FFE8E8",code:"error"}}},l=B(()=>r.paymentList.map(f=>({...f,createdAt:n(new Date(f.createdAt),"short"),amount:i(f.amountCents/100,"currency"),status:s(f.status).text,statusColor:s(f.status).color,statusCode:s(f.status).code,paymentType:"Référencement Holitime"}))),u=z({}),c=async f=>{if(u.value[f])return!1;try{u.value={...u.value,[f]:!0};const{data:h}=await a.get(`/payment/download-receipt/${f}`,{responseType:"blob"}),m=document.createElement("a");m.href=URL.createObjectURL(h),m.download="Abonnement Holitime.pdf",document.body.appendChild(m),m.click(),setTimeout(()=>{URL.revokeObjectURL(m.href)},100)}catch{}finally{u.value={...u.value,[f]:!1}}},d=async({page:f,itemsPerPage:h})=>{await r.fetchPayments(f,h)};return(f,h)=>(J(),ve("div",yUe,[F("span",_Ue,Q(K(t)("billing_payment")),1),C(vR,{class:"bg-white",items:l.value,headers:o,"items-per-page":xUe,"items-length":K(r).paymentTotalItems,"items-per-page-options":[10,20,30],loading:K(r).paymentListLoading,"no-data-text":K(t)("dashboard.subscription.payments.noPayment"),"onUpdate:options":d},{"item.status":le(({item:m})=>[F("span",{style:pa({backgroundColor:m.statusColor}),class:Gt(["border-md border-opacity-100 px-4 py-1 rounded-pill",[`text-${m.statusCode}`,`border-${m.statusCode}`]])},Q(m.status),7)]),"item.paymentType":le(({item:m})=>[F("span",bUe,Q(m.paymentType),1)]),"item.invoice":le(({item:m})=>[F("div",wUe,[m.statusCode!="error"?(J(),je(Je,{key:0,class:"download-btn pa-4",rounded:"lg",loading:u.value[m.id],onClick:()=>c(m.id),density:"compact",color:"#F5F5F5"},{default:le(()=>[F("div",SUe,[F("span",null,Q(K(t)("download")),1),m.statusColor!="error"?(J(),ve("img",{key:0,onClick:()=>c(m.id),src:gUe},null,8,CUe)):De("",!0)])]),_:2},1032,["loading","onClick"])):(J(),ve("span",EUe,"-"))])]),_:1},8,["items","items-length","loading","no-data-text"])]))}});const TUe=on(kUe,[["__scopeId","data-v-90f1a688"]]),PUe={key:0,class:"selected-taxe-label"},$Ue={key:1,class:"selected-taxe-label"},AUe={key:2,class:"selected-taxe-label"},OUe=ot({__name:"AddonPrice",props:{price:{},priceWithTva:{},billing:{},displayPriceWithTva:{type:Boolean},priceClass:{}},setup(e){function t(n){return new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0}).format(n)}return(n,i)=>(J(),ve("div",{class:Gt(n.priceClass)},[Ze(Q(n.displayPriceWithTva&&n.priceWithTva?t(n.priceWithTva):t(n.price))+" ",1),n.billing==="monthly"?(J(),ve("span",PUe,Q(n.displayPriceWithTva&&n.priceWithTva?"TTC/mois":"HT/mois"),1)):De("",!0),n.billing==="annually"?(J(),ve("span",$Ue,Q(n.displayPriceWithTva&&n.priceWithTva?"TTC/an":"HT/an"),1)):De("",!0),n.billing==="life"?(J(),ve("span",AUe,Q(n.displayPriceWithTva&&n.priceWithTva?"TTC":"HT"),1)):De("",!0)],2))}});const nI=on(OUe,[["__scopeId","data-v-20c0a8e9"]]),DUe=e=>(ul("data-v-1f367617"),e=e(),cl(),e),IUe={key:0,class:"addon-lists mt-5"},NUe={key:0,class:"selected-title text-secondary"},MUe=DUe(()=>F("span",{class:"text-caption"},"(facultatif)",-1)),LUe=["onClick"],RUe={class:"flex-grow-1 d-flex flex-column justify-content-between"},FUe={class:"font-weight-bold mb-1 text-primary addon-title"},VUe={class:"addon-description mb-0"},BUe=ot({__name:"AddonsList",props:{package:{},billing:{},showCheckboxes:{type:Boolean},displayPriceWithTva:{type:Boolean},notDisplayLifeAddonsAlreadyPaid:{type:Boolean}},setup(e){const t=e;t.billing;const n=z([]);n.value=t.package.addons;const i=Kr();Un();function r(u){return i.selectedAddons.some(c=>typeof c=="object"&&c.id===u.id&&c.billing===u.billing)}function a(u){return!!i.selectedAddons.find(d=>d.id===u.id&&d.lifeAlreadyPaid==!0)}function o(u){return!!i.selectedAddons.find(d=>d.id===u.id&&d.lifeAlreadyPaid==!0&&!u.billing.includes("life"))}function s(u){i.selectedAddons=i.selectedAddons.filter(c=>!(typeof c=="object"&&c.id===u))}function l(u){var d;if(i.selectedAddons.findIndex(f=>typeof f=="object"&&f.id===u.id&&f.billing===u.billing)!==-1)s(u.id);else if(s(u.id),i.selectedAddons.push({id:u.id,billing:u.billing,lifeAlreadyPaid:u.lifeAlreadyPaid}),(d=i.currentChangingPlan.type)!=null&&d.includes("life")&&u.billing!="life"&&u.billing!="lifetime"){const f=i.selectedAddons.find(m=>typeof m=="object"&&m.id===u.id).billing;[...i.selectedAddons].forEach(m=>{m.billing!="life"&&m.billing!="lifetime"&&(m.billing=f,s(m.id),i.selectedAddons.push({id:m.id,billing:f,lifeAlreadyPaid:m.lifeAlreadyPaid}))})}}return Ve(()=>t.package,(u,c)=>{var d,f;if(u!==c){const h=(f=(d=i.currentChangingPlan)==null?void 0:d.addons)==null?void 0:f.map(g=>g.id);[...i.selectedAddons].forEach(g=>{h&&(h!=null&&h.includes(g.id)?h.includes(g.id)&&(i.currentChangingPlan.type!=g.billing||g.billing==="life"||g.billing==="lifetime"||i.currentChangingPlan.type==="life")&&g.billing!="life"&&g.billing!="lifetime"&&i.currentChangingPlan.type!="life"&&i.currentChangingPlan.type!="lifetime"&&(s(g.id),i.selectedAddons.push({id:g.id,billing:i.currentChangingPlan.type,lifeAlreadyPaid:g.lifeAlreadyPaid})):s(g.id)),i.selectedAddons.map(v=>v.id)})}}),(u,c)=>{var d;return((d=u.package.addons)==null?void 0:d.length)>0?(J(),ve("div",IUe,[K(i).selectedAddons.filter(f=>(f==null?void 0:f.lifeAlreadyPaid)!==!0).length>0||!u.notDisplayLifeAddonsAlreadyPaid?(J(),ve("h2",NUe,[Ze(" Option "),MUe])):De("",!0),C(Ka,{class:"addons-list mt-1"},{default:le(()=>[(J(!0),ve(Ue,null,Ht(u.package.addons,f=>(J(),je(Qn,{"data-cy":`step2-option-${f.billing}`,key:f.id,cols:"12",class:Gt({"py-0":!u.showCheckboxes&&!r(f),"h-0":!(!u.showCheckboxes&&r(f)||u.showCheckboxes&&!o(f))||u.notDisplayLifeAddonsAlreadyPaid&&a(f)})},{default:le(()=>{var h,m,g;return[!u.showCheckboxes&&r(f)||u.showCheckboxes&&!o(f)?(J(),ve("div",{key:0,class:Gt(["pa-4 d-flex align-start addon-card border-sm border-opacity-25 rounded-lg ga-3",{"addon-selected border-secondary":r(f)||a(f),"border-gray-300":!r(f),"h-0":!u.showCheckboxes&&!r(f),"clickable-addon":u.showCheckboxes&&!a(f)}]),onClick:v=>u.showCheckboxes&&!a(f)?l(f):null,style:pa(u.showCheckboxes&&!a(f)?"cursor: pointer;":"cursor: default;")},[u.showCheckboxes&&!a(f)?(J(),je(jf,{key:0,"model-value":r(f),"onUpdate:modelValue":()=>l(f),class:"pt-1 mr-xs-0 mr-1",color:"primary",disabled:a(f),"hide-details":"",onClick:c[0]||(c[0]=Vo(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue","disabled"])):De("",!0),F("div",RUe,[F("h3",FUe,[Ze(Q(f.name)+" ",1),F("span",null,Q((h=f.billing)!=null&&h.includes("life")?"(A vie)":(m=f.billing)!=null&&m.includes("monthly")?"(Mensuel)":(g=f.billing)!=null&&g.includes("annually")?"(Annuel)":""),1)]),F("p",VUe,Q(f.description),1),C(nI,{price:f.price,priceWithTva:f.priceWithTva,billing:f.billing,displayPriceWithTva:u.displayPriceWithTva,priceClass:"addon-price text-h6 font-weight-bold text-primary text-left d-sm-none d-block d-inline-block"},null,8,["price","priceWithTva","billing","displayPriceWithTva"])]),C(nI,{price:f.price,priceWithTva:f.priceWithTva,billing:f.billing,displayPriceWithTva:u.displayPriceWithTva,priceClass:"addon-price text-h5 font-weight-bold text-primary text-right d-sm-inline-block d-none"},null,8,["price","priceWithTva","billing","displayPriceWithTva"])],14,LUe)):De("",!0)]}),_:2},1032,["data-cy","class"]))),128))]),_:1})])):De("",!0)}}});const zUe=on(BUe,[["__scopeId","data-v-1f367617"]]),mT=e=>(ul("data-v-0e2d272b"),e=e(),cl(),e),jUe={class:"font-weight-bold title"},UUe={class:"mb-3"},HUe={class:"recap-title"},qUe={class:"d-flex flex-column"},YUe={class:"d-flex flex-column"},WUe={class:"d-flex justify-space-between item-line"},GUe={key:0,class:"title"},KUe={key:1,class:"title"},ZUe={class:"value"},XUe={key:0,class:"d-flex flex-column ga-4 item-line"},JUe={class:"d-flex justify-space-between"},QUe=mT(()=>F("span",{class:"title"}," Options ",-1)),eHe={class:"value"},tHe={key:1,class:"d-flex flex-column ga-4"},nHe={class:"d-flex justify-space-between item-line"},iHe={class:"title"},rHe={class:"plan-price"},aHe={class:"d-flex justify-space-between item-line"},oHe={class:"title"},sHe={class:"contribution-value"},lHe={class:"d-flex justify-space-between item-line"},uHe={class:"title"},cHe={class:"value"},dHe={class:"d-flex justify-space-between pt-5"},fHe={class:"total"},hHe={class:"total-value"},pHe={key:0},mHe={class:"discount-label"},vHe={class:"d-flex align-center ga-2"},gHe={class:"border rounded-lg d-flex flex-column",style:{padding:"10px"}},yHe={class:"d-flex justify-space-between align-center"},_He={class:"become-title"},bHe={class:"contribution-detail"},wHe={key:0,class:"border pa-4 rounded-lg d-flex flex-column ga-2"},SHe=mT(()=>F("span",{class:"become-title"},"Définissez un montant",-1)),CHe=mT(()=>F("p",{class:"contribution-role-desc"}," Ce montant sera ajouté automatiquement à votre forfait premuim par an ",-1)),EHe={class:""},xHe={class:"border pa-4 rounded-xl"},kHe={class:"billing-info-title"},THe={key:0,class:"mb-3"},PHe={key:1,class:"d-sm-flex ga-sm-2"},$He={class:"w-sm-50 mb-sm-0 mb-2"},AHe={class:"text-disabled"},OHe={class:"w-sm-50"},DHe={class:"text-disabled"},IHe={class:"text-red text-caption text-center mt-2"},NHe={class:"d-flex justify-center"},MHe=ot({__name:"ChangeSubscriptionDialog",emits:["update:company","update:close"],setup(e,{emit:t}){const n=z(null),i=Kr(),r=vn(),a=z(),o=z(),s=Un(),l=X1(),{t:u}=gn(),c=z(!1),d=rk(),f=z(!0);z(!1);const h=z(!1),m=z(""),g=z(),v=z(0);z("");const y=z(!1),_=B(()=>i.currentChangingPlan),S=z({10:"1",20:"2",30:"3",40:"4",50:"5",60:"10",70:"20",80:"30",90:"40",100:"50",110:"100"}),w=z(0),x=()=>{const re=Number(N.value.contributionAmount);if(!isNaN(re)){const ue=Object.keys(S.value).find(pe=>S.value[pe]===N.value.contributionAmount);ue&&(w.value=Number(ue))}},k=z(!1),P=z(!1),E=z(""),A=z(!1),D=z(!1),T=B(()=>i.getSubscriptionType()),O=()=>{nt.success(u("dashboard.subscription.change_with_success")),c.value=!1,i.toggleSubscription(),s.refreshToken(),l.push({name:"DashboardSubscription"})},N=z({newSubscriptionLevelId:_.value.id,isContributor:!1,contributionAmount:0,couponCode:null,subscriptionAddons:i.selectedAddons}),V=async()=>{if(m.value="",g.value=null,y.value)return!1;if(!N.value.couponCode)return m.value=u("register.step2.enter_discount_code"),!1;y.value=!0;try{const re=await r.post("/discount-code/details",{code:N.value.couponCode},{headers:{"Content-Type":"application/json"}});g.value=re.data,g.value.id&&(m.value=u("register.step2.valid_discount_code")),g.value.type==="fixed"?v.value=g.value.amount_off/100:v.value=Number(_.value.price)*(g.value.percent_off/100)}catch{m.value=u("register.step2.invalid_discount_code")}finally{y.value=!1}},j=async()=>{a.value="",N.value.subscriptionAddons=i.selectedAddons.filter(re=>re.lifeAlreadyPaid!==!0);try{if(c.value=!0,te.value)if(f.value){if(i.isCardExpired)return a.value=u("expired-card"),c.value=!1,!1;await i.changeSubscriptionPlan(N.value).then(async re=>{re&&(await n.value.confirmCardPayment(re.clientSecret,re.paymentMethodId).then(async()=>{const ue=await i.finalizeChanges({subscriptionLevelId:_.value.id,paymentIntentId:re.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons});(ue.status==="succeeded"||ue.status==="success")&&(c.value=!0),(ue.status==="requires_action"||ue.status==="requires_confirmation")&&ue.clientSecret&&await n.value.confirmCardPayment(ue.clientSecret,re.paymentMethodId).then(async()=>{}).catch(pe=>{console.log(pe),c.value=!1})}).catch(()=>{c.value=!1}),await i.confirmSubscription({subscriptionLevelId:_.value.id,paymentIntentId:re.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons}).then(ue=>{if(ue.status==="succeeded"||ue.status==="success"){O();return}}).catch(()=>{c.value=!1}))})}else await q();else await i.changeSubscriptionPlan(N.value).then(async re=>{re&&(await n.value.confirmCardPayment(re.clientSecret,re.paymentMethodId).then(async()=>{const ue=await i.finalizeChanges({subscriptionLevelId:_.value.id,paymentIntentId:re.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons});(ue.status==="succeeded"||ue.status==="success")&&(c.value=!0),(ue.status==="requires_action"||ue.status==="requires_confirmation")&&ue.clientSecret&&await n.value.confirmCardPayment(ue.clientSecret,re.paymentMethodId).then(async()=>{}).catch(pe=>{console.log(pe),c.value=!1})}).catch(()=>{c.value=!1}),await i.confirmSubscription({subscriptionLevelId:_.value.id,paymentIntentId:re.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons}).then(ue=>{if(ue.status==="succeeded"||ue.status==="success"){O();return}}).catch(()=>{c.value=!1}))})}catch(re){console.error(re),c.value=!1}},q=async()=>{const re=await n.value.paymentMethod();if(re.status){const ue=await i.updateUserCard(re.paymentMethodId);ue.status?n.value.confirmCardSetup(ue.clientSecret,re.paymentMethodId).then(async pe=>{pe.status?i.changeSubscriptionPlan(N.value).then(async ge=>{ge&&(await n.value.confirmCardPayment(ge.clientSecret,ge.paymentMethodId).then(async()=>{const Te=await i.finalizeChanges({subscriptionLevelId:_.value.id,paymentIntentId:ge.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons});(Te.status==="succeeded"||Te.status==="success")&&(c.value=!0),(Te.status==="requires_action"||Te.status==="requires_confirmation")&&Te.clientSecret&&await n.value.confirmCardPayment(Te.clientSecret,ge.paymentMethodId).then(async()=>{}).catch(Z=>{console.log(Z),c.value=!1})}).catch(()=>{c.value=!1}),await i.confirmSubscription({subscriptionLevelId:_.value.id,paymentIntentId:ge.paymentIntentId,subscriptionAddons:N.value.subscriptionAddons}).then(Te=>{if(Te.status==="succeeded"||Te.status==="success"){O();return}}).catch(()=>{c.value=!1}))}).catch(ge=>{c.value=!1,nt.error("")}):(a.value=pe.error,c.value=!1,nt.error(""))}):(c.value=!1,a.value=ue.error)}else return a.value=re.error,c.value=!1,!1},ne=z(0);Ve(()=>i.changeSubscription,()=>{P.value=!0,i.cardData&&i.cardData.lastFour&&!i.isCardExpired?f.value=!0:f.value=!1,setTimeout(()=>{P.value=!1},0)},{immediate:!0}),Ve(()=>i.paymentErrors,()=>{i.paymentErrors&&(a.value=i.paymentErrors,c.value=!1)},{immediate:!0});const ae=z(null),Y=z(null);tn(()=>{if(i.userInformation&&(o.value=i.userInformation,ne.value=i.subscriptionStatus.tva,ae.value=i.subscriptionStatus.actualPrice,Y.value=i.subscriptionStatus.tva,ne.value>0)){A.value=!0;const re=i.currentChangingPlan.price*(1+ne.value/100);i.currentChangingPlan={...i.currentChangingPlan,priceWithTva:re}}}),B(()=>T.value===i.changingPlan.id),B(()=>d.loadTva);const M=async()=>{if(c.value)return!1;i.toggleSubscription()},I=B(()=>`**** **** **** ${i.cardData.lastFour}`),W=B(()=>`${String(i.cardData.expiryMonth).padStart(2,"0")} / ${i.cardData.expiryYear}`),te=B(()=>i.trialRemainingDays>0?E.value==="lifetime":!0);B(()=>i.subscriptionStatus.status==="canceled"||i.subscriptionStatus.status==="incomplete_expired"||i.subscriptionStatus.status==="unpaid"?!1:i.subscriptionStatus.status!=="active"&&i.subscriptionStatus.type==="monthly"&&i.subscriptionStatus.monthsAlreadyPaid<=40&&i.getSubscriptionType()===E.value);const he=B(()=>i.selectedAddons.reduce((re,ue)=>{var Te;const pe=(Te=_.value)==null?void 0:Te.addons.find(Z=>Z.id===ue.id&&Z.billing===ue.billing&&(ue==null?void 0:ue.lifeAlreadyPaid)!==!0);if(!pe)return re;const ge=pe.price??0;return re+Number(ge)},0));B(()=>{const re=Number(_.value.price||0)+Number(he.value||0);return re>0?re:0});const oe=B(()=>{var ue;(ue=i.subscriptionStatus.type)!=null&&ue.includes("life")&&(_.value.price=0);const re=Number(_.value.price||0)+Number(he.value||0)+Number(N.value.contributionAmount||0)-Number(v.value||0);return re>0?re:0}),U=B(()=>{const re=oe.value*(i.subscriptionStatus.tva/100);return Math.round(re*100)/100}),ee=B(()=>{const re=Number(_.value.price||0)+Number(he.value||0)+Number(U.value||0)+Number(N.value.contributionAmount||0)-Number(v.value||0);return re>0?re:0});return Ve(()=>N.value.couponCode,()=>{v.value=0,m.value=""}),Ve(w,re=>N.value.contributionAmount=S.value[re]||re.toString()),(re,ue)=>{const pe=p2("CheckednIcon");return J(),je(ir,{"model-value":K(i).changeSubscription,persistent:"","max-width":"700",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white",rounded:"xl",disabled:c.value},{default:le(()=>[C(_r,{class:"py-3 d-flex justify-center w-full align-center bg-surface-lighten-1"},{default:le(()=>[F("span",jUe,Q(K(i).subscriptionStatus.status==="canceled"?K(u)("dashboard.subscription.active_btn"):K(u)("dashboard.subscription.change_subscription_title")),1),F("img",{style:{position:"absolute",right:"10px"},class:"cursor-pointer mr-2",onClick:M,src:_h})]),_:1}),C(br,null,{default:le(()=>[C(ou,{onSubmit:Vo(j,["prevent"]),onKeydown:ue[9]||(ue[9]=Vc(Vo(()=>{},["prevent"]),["enter"])),modelValue:k.value,"onUpdate:modelValue":ue[10]||(ue[10]=ge=>k.value=ge),class:"d-flex flex-column ga-5"},{default:le(()=>[F("div",UUe,[C(Ka,{dense:""},{default:le(()=>[C(Qn,{cols:"12",sm:"6"},{default:le(()=>[C(B4,{style:{"max-width":"350px"},classes:"border-md border-secondary border-opacity-100 rounded-xl pa-2",displayAction:!1,showFeature:!1,thePackage:_.value,loadingPrice:D.value},null,8,["thePackage","loadingPrice"])]),_:1}),C(Qn,{cols:"12",sm:"6"},{default:le(()=>[C(Cn,{elevation:"0",color:"#F9F9F9",rounded:"xl",class:"border-sm border-ligth-gray border-opacity-100 fill-height pa-5 d-flex flex-column"},{default:le(()=>{var ge,Te;return[F("h3",HUe,Q(re.$t("register.step2.recap_title")),1),F("div",qUe,[F("div",YUe,[F("div",WUe,[(Te=(ge=_.value)==null?void 0:ge.type)!=null&&Te.includes("life")?(J(),ve("span",KUe,Q(re.$t("register.step2.pack_quantity",{value:" à vie"})),1)):(J(),ve("span",GUe,Q(re.$t("register.step2.pack_quantity",{value:_.value.type==="annually"?"an":"mois"})),1)),F("span",ZUe,Q(_.value.price)+"€",1)]),C(jn),K(i).selectedAddons.length>0?(J(),ve("div",XUe,[F("div",JUe,[QUe,F("span",eHe,Q(he.value)+" € ",1)]),C(jn)])):De("",!0),g.value&&g.value.id&&v.value>0?(J(),ve("div",tHe,[F("div",nHe,[F("span",iHe,Q(re.$t("register.step2.discount_title",{discount:g.value.type==="percentage"?`${g.value.percent_off}%`:""})),1),F("span",rHe,Q(v.value>0?`-${v.value}`:v.value)+" €",1)]),C(jn)])):De("",!0),_.value.category==="premium"?(J(),ve(Ue,{key:2},[F("div",aHe,[F("span",oHe,Q(re.$t("register.step2.contribution")),1),F("span",sHe,Q(N.value.contributionAmount)+"€",1)]),C(jn)],64)):De("",!0),F("div",lHe,[F("span",uHe,Q(re.$t("register.step2.taxes")),1),F("span",cHe,Q(U.value)+"€",1)]),C(jn)]),F("div",dHe,[F("span",fHe,Q(re.$t("register.step2.total",{value:U.value>0?"TTC":"HT"})),1),F("span",hHe,Q(ee.value)+"€",1)]),F("span",{class:"cursor-pointer have-discount-label become-title",onClick:ue[0]||(ue[0]=Z=>h.value=!h.value)},Q(re.$t("register.step2.have_discount_code")),1),h.value?(J(),ve("div",pHe,[F("label",mHe,Q(re.$t("register.step2.enter_discount_code")),1),F("div",vHe,[C(Tn,{clearable:"",onKeyup:ue[1]||(ue[1]=Vc(()=>V(),["enter"])),disabled:y.value,modelValue:N.value.couponCode,"onUpdate:modelValue":ue[2]||(ue[2]=Z=>N.value.couponCode=Z),rounded:"lg",density:"compact",class:"","hide-details":""},null,8,["disabled","modelValue"]),C(Je,{onClick:ue[3]||(ue[3]=()=>V()),loading:y.value,round:"lg",color:"secondary"},{default:le(()=>[Ze(Q(re.$t("register.step2.valide_btn")),1)]),_:1},8,["loading"])]),m.value?(J(),ve("div",{key:0,class:Gt(["code-status-res d-flex align-center ga-1",g.value&&g.value.id?"text-teal-green":"text-red"])},[Ze(Q(m.value)+" ",1),g.value&&g.value.id?(J(),je(pe,{key:0})):De("",!0)],2)):De("",!0)])):De("",!0)])]}),_:1})]),_:1})]),_:1})]),C(zUe,{package:K(i).currentChangingPlan,billing:K(i).currentChangingPlan.type,showCheckboxes:!1,displayPriceWithTva:A.value,notDisplayLifeAddonsAlreadyPaid:!0},null,8,["package","billing","displayPriceWithTva"]),_.value.category==="premium"?(J(),ve(Ue,{key:0},[F("div",gHe,[F("div",yHe,[F("h3",_He,Q(re.$t("register.step2.become_contributor")),1),C(i8,{"true-value":!0,"false-value":!1,modelValue:N.value.isContributor,"onUpdate:modelValue":ue[4]||(ue[4]=ge=>N.value.isContributor=ge),"hide-details":"","base-color":"#9CA1B9",density:"compact",color:"secondary"},null,8,["modelValue"])]),F("p",bHe,Q(re.$t("register.step2.become_contribution_detail")),1)]),N.value.isContributor?(J(),ve("div",wHe,[SHe,C(Ka,{dense:""},{default:le(()=>[C(Qn,{cols:"12",sm:"10"},{default:le(()=>[C(G_,{tile:"",max:115,color:"#12C29B",density:"compact","show-ticks":"always",ticks:S.value,step:"10","tick-size":"5","hide-details":"","track-color":"#E0E0E0",modelValue:w.value,"onUpdate:modelValue":ue[5]||(ue[5]=ge=>w.value=ge)},null,8,["ticks","modelValue"])]),_:1}),C(Qn,{cols:"12",sm:"2"},{default:le(()=>[C(Tn,{density:"compact",modelValue:N.value.contributionAmount,"onUpdate:modelValue":ue[6]||(ue[6]=ge=>N.value.contributionAmount=ge),onInput:x,rounded:"lg","hide-details":"",class:"",type:"number",min:"1",suffix:"€"},null,8,["modelValue"])]),_:1})]),_:1}),CHe])):De("",!0)],64)):De("",!0),F("div",EHe,[F("div",xHe,[F("div",kHe,Q(K(u)("dashboard.subscription.billing_info")),1),K(i).cardData.lastFour?(J(),ve("div",THe,[C(Q_,{class:"d-flex",inline:"","hide-details":"",modelValue:f.value,"onUpdate:modelValue":ue[7]||(ue[7]=ge=>f.value=ge)},{default:le(()=>[C(zc,{color:"secondary",readonly:c.value,label:re.$t("use_already_save"),value:!0,class:"text-rigth"},null,8,["readonly","label"]),C(zc,{color:"secondary",readonly:c.value,label:re.$t("new_card"),value:!1},null,8,["readonly","label"])]),_:1},8,["modelValue"])])):De("",!0),K(i).cardData&&K(i).cardData.lastFour&&f.value?(J(),ve("div",PHe,[F("div",$He,[F("label",null,Q(K(u)("register.card_number")),1),F("p",AHe,Q(I.value),1)]),F("div",OHe,[F("label",null,Q(K(u)("expired")),1),F("p",DHe,Q(W.value),1)])])):De("",!0),xt(C(kU,{ref_key:"paymentRef",ref:n},null,512),[[hn,!f.value]])]),F("div",IHe,Q(a.value),1)]),F("div",NHe,[C(Je,{loading:c.value,onKeyup:ue[8]||(ue[8]=Vc(Vo(()=>{},["prevent"]),["enter"])),type:"submit",color:"white",class:"bg-secondary px-5 mt-5 w-sm-75 mx-auto"},{default:le(()=>[Ze(Q(K(i).subscriptionStatus.status==="canceled"?K(u)("dashboard.subscription.active_btn"):K(u)("dashboard.subscription.change_subscription_btn")),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["disabled"])]),_:1},8,["model-value"])}}});const LHe=on(MHe,[["__scopeId","data-v-0e2d272b"]]),RHe=["width","height"],FHe={"clip-path":"url(#clip0_5156_23122)"},VHe=["fill"],BHe=b2('<path d="M85.5016 42C85.5016 65.205 66.4695 84 43.0016 84C29.6406 84 17.7141 77.91 9.91797 68.3682C17.2094 74.1957 26.493 77.6738 36.6 77.6738C60.068 77.6738 79.1 58.8788 79.1 35.6738C79.1 25.6857 75.5805 16.5113 69.6836 9.30566C79.3258 17.01 85.5016 28.7963 85.5016 42Z" fill="#FFBE9D"></path><path d="M28.8667 66.321C27.6475 65.5152 27.3208 63.885 28.1362 62.6802C34.2881 53.5977 43.7815 53.5977 56.922 53.5977C58.3883 53.5977 59.5783 54.7737 59.5783 56.2227C59.5783 57.6717 58.3883 58.8477 56.922 58.8477C43.5531 58.8477 36.9311 59.1338 32.5509 65.6018C31.7301 66.8093 30.0806 67.1217 28.8667 66.321Z" fill="#3E4347"></path><path d="M27.5933 41.7977C31.3576 41.7977 34.4092 38.782 34.4092 35.0619C34.4092 31.3419 31.3576 28.3262 27.5933 28.3262C23.8289 28.3262 20.7773 31.3419 20.7773 35.0619C20.7773 38.782 23.8289 41.7977 27.5933 41.7977Z" fill="#3E4347"></path><path d="M31.4482 33.8912C30.9754 34.3322 30.0829 34.172 29.5118 33.5447C28.9221 32.9199 28.8212 32.0327 29.3179 31.6048C29.8093 31.1585 30.6806 31.3055 31.2703 31.9329C31.8626 32.576 31.9396 33.4475 31.4482 33.8912Z" fill="#5A5F63"></path><path d="M58.4175 41.7977C62.1818 41.7977 65.2334 38.782 65.2334 35.0619C65.2334 31.3419 62.1818 28.3262 58.4175 28.3262C54.6532 28.3262 51.6016 31.3419 51.6016 35.0619C51.6016 38.782 54.6532 41.7977 58.4175 41.7977Z" fill="#3E4347"></path><path d="M62.2685 33.8912C61.7957 34.3322 60.9032 34.172 60.3321 33.5447C59.7424 32.9199 59.6415 32.0327 60.1382 31.6048C60.6296 31.1585 61.5009 31.3055 62.0906 31.9329C62.6829 32.576 62.7599 33.4475 62.2685 33.8912Z" fill="#5A5F63"></path>',6),zHe={id:"clip0_5156_23122"},jHe=["width","height"],UHe=ot({__name:"CancelSubIcon",props:{size:{type:String,default:86},color:{type:String,default:"#FFBE9D"}},setup(e){return(t,n)=>(J(),ve("svg",{width:e.size,height:e.size,viewBox:"0 0 86 84",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[F("g",FHe,[F("path",{d:"M43 84C66.4721 84 85.5 65.196 85.5 42C85.5 18.804 66.4721 0 43 0C19.5279 0 0.5 18.804 0.5 42C0.5 65.196 19.5279 84 43 84Z",fill:e.color},null,8,VHe),BHe]),F("defs",null,[F("clipPath",zHe,[F("rect",{width:e.size,height:e.size,fill:"white",transform:"translate(0.5)"},null,8,jHe)])])],8,RHe))}}),t3=e=>(ul("data-v-d211c514"),e=e(),cl(),e),HHe={class:"title font-weight-bold"},qHe={class:"d-flex justify-center my-5"},YHe={key:0},WHe={class:"text-center d-flex flex-column ga-2 mb-2"},GHe={class:"font-weight-bold"},KHe={class:"d-flex flex-column ga-2 mt-5"},ZHe={class:"text-center"},XHe={class:"d-flex ga-2 align-baseline"},JHe=t3(()=>F("span",{class:"dot"},null,-1)),QHe={class:"d-flex ga-2 align-baseline"},eqe=t3(()=>F("span",{class:"dot"},null,-1)),tqe={class:"d-flex ga-2 align-baseline"},nqe=t3(()=>F("span",{class:"dot"},null,-1)),iqe={class:"d-flex ga-2 align-baseline"},rqe=t3(()=>F("span",{class:"dot"},null,-1)),aqe={key:1},oqe={class:"text-center d-flex flex-column ga-2 mb-2"},sqe={class:"font-weight-bold"},lqe={key:2,class:"d-sm-flex mt-5 ga-sm-3 ga-1"},uqe={class:"text-gray-80"},cqe={key:3,class:"d-sm-flex mt-5 ga-sm-3 ga-1"},dqe={class:"text-gray-80"},fqe=ot({__name:"CancelSubscriptionDialog",setup(e){const t=gn().t,n=Kr();vU();const i=z(!1),r=z(!1),a=z(!1),o=z(""),s=z(0),l=async()=>{if(i.value){r.value=!0;try{await n.cancelTrialSubscription(o.value),s.value++}catch{}finally{r.value=!1}}},u=()=>{a.value=!0},c=async()=>{r.value||n.toggleCancelSubscription()},d=[f=>!!f||t("commonForm.error.required"),f=>f.length<=300||t("300_caracteres")];return(f,h)=>(J(),je(ir,{"model-value":K(n).cancelSubscription,persistent:"","max-width":"550",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{color:"white"},{default:le(()=>[C(_r,{class:"d-flex pa-1 justify-center w-full align-center bg-surface-lighten-1 text-primary"},{default:le(()=>[F("span",HHe,Q(K(t)("cancel_title")),1),C(Dk,{color:"#007058",size:"24",class:"cursor-pointer mr-2",style:{position:"absolute",right:"0"},onClick:c})]),_:1}),C(br,{class:"px-10 text-gray-80"},{default:le(()=>[F("div",qHe,[C(UHe)]),C(ou,{modelValue:i.value,"onUpdate:modelValue":h[4]||(h[4]=m=>i.value=m),onSubmit:Vo(l,["prevent"])},{default:le(()=>[a.value?(J(),ve("div",aqe,[F("div",oqe,[F("p",sqe,Q(K(t)("why_leaving_us")),1),F("p",null,Q(K(t)("can_improve_us")),1)]),F("div",null,[F("label",null,Q(K(t)("your_feedback")),1),(J(),je(l8,{id:K(t)("your_feedback"),key:s.value,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=m=>o.value=m),rules:d,"persistent-hint":"",rows:"8",placeholder:"Texte",hint:K(t)("feedback_max_msg")},null,8,["id","modelValue","hint"]))])])):(J(),ve("div",YHe,[F("div",WHe,[F("p",null,Q(K(t)("sorry_cancel"))+"...",1),F("p",GHe,Q(K(t)("confirm_cancel_msg")),1)]),F("div",KHe,[F("p",ZHe,Q(K(t)("irrevercible_action")),1),F("div",XHe,[JHe,F("span",null,Q(K(t)("referencing_disabled")),1)]),F("div",QHe,[eqe,F("span",null,Q(K(t)("profil_disabled")),1)]),F("div",tqe,[nqe,F("span",null,Q(K(t)("disabled_debit")),1)]),F("div",iqe,[rqe,F("span",null,Q(K(t)("disabled_discount")),1)])])])),a.value?(J(),ve("div",cqe,[C(Je,{disabled:r.value,loading:r.value,type:"submit",class:"w-sm-50 w-100",color:"#E0E0E0"},{default:le(()=>[F("span",dqe,Q(K(t)("cancel_my_subscription")),1)]),_:1},8,["disabled","loading"]),C(Je,{disabled:r.value,onClick:h[3]||(h[3]=()=>K(n).toggleCancelSubscription()),class:"w-sm-50 w-100 mt-2 mt-sm-0",color:"secondary"},{default:le(()=>[Ze(Q(K(t)("cancel")),1)]),_:1},8,["disabled"])])):(J(),ve("div",lqe,[C(Je,{onClick:h[1]||(h[1]=()=>u()),class:"w-sm-50 w-100",color:"#E0E0E0"},{default:le(()=>[F("span",uqe,Q(K(t)("next")),1)]),_:1}),C(Je,{onClick:h[2]||(h[2]=()=>K(n).toggleCancelSubscription()),class:"w-sm-50 w-100 mt-2 mt-sm-0",color:"secondary"},{default:le(()=>[Ze(Q(K(t)("close")),1)]),_:1})]))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model-value"]))}});const hqe=on(fqe,[["__scopeId","data-v-d211c514"]]),pqe=e=>(ul("data-v-f8e50472"),e=e(),cl(),e),mqe={class:"mt-8 d-flex flex-column ga-3"},vqe={class:"d-flex flex-wrap justify-space-between align-center"},gqe={class:"text-dark-green font-weight-medium"},yqe={key:0,class:"d-flex flex-column ga-3"},_qe={key:0},bqe={key:1},wqe={key:2},Sqe={key:3},Cqe={key:0},Eqe={key:1},xqe={key:0},kqe={key:1},Tqe=pqe(()=>F("div",null,null,-1)),Pqe={class:"modal-title text-primary"},$qe=ot({__name:"DiscountCodeList",setup(e){const t=Kr(),{t:n,d:i,n:r}=gn(),a=vn(),o=z([]),s=z(""),l=z(!1),u=z(!1),c=z(!1),d=z(""),f=z("");o.value=t.discountCodes;const h=()=>{u.value=!1,f.value="",s.value="",t.displayCodeModal=!1},m=async y=>{if(f.value="",!y){f.value=n("dashboard.subscription.discount_code.please_enter_code");return}try{l.value=!0;const{data:_}=await a.post("/discount-code/create",{code:y},{headers:{"Content-Type":"application/json"}});return nt.success(n("dashboard.subscription.discount_code.code_applied_with_success")),await t.fetchSubscriptionStatus(),t.displayCodeModal=!1,await t.fetchDiscountCodes(),s.value="",_}catch(_){f.value=_.response.data.message,f.value!=""?nt.error(f.value):nt.error(n("dashboard.subscription.discount_code.error_when_deleting"))}finally{l.value=!1}},g=[{title:"Code",value:"code"},{title:"Réduction",value:"value"},{title:"Début",value:"startDate"},{title:"Fin",value:"endDate",align:"center"},{title:"Statut",value:"status",align:"center"}],v=async()=>{try{l.value=!0,await a.delete(`/discount-code/${d.value}`),nt.success(n("dashboard.subscription.discount_code.code_delete_with_success")),t.fetchDiscountCodes(),c.value=!1}catch{nt.error(n("dashboard.subscription.discount_code.an_error_occurred"))}finally{l.value=!1}};return(y,_)=>(J(),ve("div",mqe,[C(Cn,{elevation:"0",color:"white"},{default:le(()=>[F("div",vqe,[F("div",null,[F("span",gqe,Q(K(n)("discounts")),1)]),C(Ep,{id:"discount-code-add"},{default:le(()=>[C(Je,{color:"grey-lighten-3","append-icon":"mdi-plus",onClick:_[0]||(_[0]=S=>K(t).displayCodeModal=!0)},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.add_btn")),1)]),_:1})]),_:1})]),K(t).discountCodes.length?(J(),ve("div",yqe,[F("div",null,Q(K(n)("dashboard.subscription.discount_code.code_desc")),1),C(mR,{items:K(t).discountCodes,headers:g,class:"bg-white rounded-sm","hide-default-footer":o.value.length<10,density:"compact"},{"item.value":le(({item:S})=>[F("span",null,[S.type==="percentage"?(J(),ve("span",_qe,Q(S.value),1)):(J(),ve("span",bqe,Q(S.value/100),1)),S.type==="percentage"?(J(),ve("span",wqe,Q(K(n)("dashboard.subscription.discount_code.discount_percent")),1)):(J(),ve("span",Sqe,Q(K(n)("dashboard.subscription.discount_code.discount_fixed")),1))])]),"item.startDate":le(({item:S})=>[F("span",null,Q(K(i)(new Date(S.startDate),"short")),1)]),"item.endDate":le(({item:S})=>[S.endDate?(J(),ve("span",Cqe,Q(K(i)(new Date(S.endDate),"short")),1)):(J(),ve("span",Eqe," - "))]),"item.status":le(({item:S})=>[S.status==="applied"?(J(),ve("span",xqe,Q(K(n)("dashboard.subscription.discount_code.applied")),1)):(J(),ve("span",kqe,Q(K(n)("dashboard.subscription.discount_code.no_apply")),1))]),_:1},8,["items","hide-default-footer"])])):De("",!0)]),_:1}),C(ir,{"model-value":K(t).displayCodeModal,"max-width":"550px",persistent:"",transition:"dialog-top-transition"},{default:le(()=>[C(Cn,{class:"timeslot-modal"},{default:le(()=>[C(_r,{class:"modal-header"},{default:le(()=>[Tqe,F("span",Pqe,Q(K(n)("dashboard.subscription.discount_code.add_discount_title")),1),C(Je,{variant:"text",color:"primary",icon:"mdi-close-circle-outline",onClick:_[1]||(_[1]=S=>h())})]),_:1}),C(br,{class:"d-flex flex-column"},{default:le(()=>[C(j2,{class:"modal-subtitle mb-2"}),F("label",null,Q(K(n)("dashboard.subscription.discount_code.enter_code")),1),C(Tn,{modelValue:s.value,"onUpdate:modelValue":_[2]||(_[2]=S=>s.value=S),placeholder:"Code de réduction",rounded:"lg",outlined:"",density:"compact",required:"","error-messages":f.value,"hide-details":"auto"},null,8,["modelValue","error-messages"])]),_:1}),C(Yp,{class:"modal-actions"},{default:le(()=>[C(Je,{class:"w-50",color:"grey",variant:"flat",onClick:_[3]||(_[3]=S=>h())},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.cancel")),1)]),_:1}),C(Je,{class:"w-50",variant:"flat",color:"secondary",onClick:_[4]||(_[4]=S=>m(s.value)),loading:l.value},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.apply")),1)]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["model-value"]),C(ir,{modelValue:c.value,"onUpdate:modelValue":_[6]||(_[6]=S=>c.value=S),"max-width":"400px"},{default:le(()=>[C(Cn,null,{default:le(()=>[C(_r,{class:"headline"},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.confirm_delete")),1)]),_:1}),C(br,null,{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.confirm_delete_msg")),1)]),_:1}),C(Yp,null,{default:le(()=>[C(Je,{onClick:_[5]||(_[5]=S=>c.value=!1)},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.cancel")),1)]),_:1}),C(Je,{color:"red",onClick:v},{default:le(()=>[Ze(Q(K(n)("dashboard.subscription.discount_code.delete_btn")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}});const Aqe=on($qe,[["__scopeId","data-v-f8e50472"]]),Oqe={class:"d-flex justify-space-between ga-5"},Dqe={class:"py-0 first-block"},Iqe={key:0,class:"text-center py-5 font-italic"},Nqe={class:"my-5 d-sm-none d-block d-flex flex-column ga-5"},Mqe={key:2,class:"text-center py-5 font-italic"},Lqe={key:0,class:"text-center py-5 font-italic"},Rqe={key:4,class:"text-center py-5 font-italic"},Fqe={key:6,class:"text-center py-5 font-italic"},Vqe={class:"d-none d-sm-block"},Bqe={key:1},zqe={key:1},jqe={class:"d-flex justify-center"},Uqe={class:"cursor-pointer text-decoration-underline cancel-subscription"},Hqe={key:0,class:"text-center py-5 font-italic"},qqe=ot({__name:"ManageSubscription",setup(e){Ki();const t=Un(),n=z(!1),i=Kr(),{t:r,d:a,n:o}=gn(),s=rk();tn(async()=>{await i.fetchSubscriptionStatus(),await u(),await i.fetchInformation(),await i.fetchDiscountCodes(),await i.fetchCardInfo(),await s.getUserTva()});const l=B(()=>i.subscriptionStatus.subscriptionLevel);Ve([()=>i.displayBillingModal,()=>i.cancelSubscription,()=>i.displayCodeModal,()=>i.displayModal,()=>i.startSubscription],()=>{u()});const u=()=>{if(i.subscriptionStatus.tva>0){n.value=!0;const d=i.subscriptionStatus.subscriptionLevel.price*(1+i.subscriptionStatus.tva/100);i.subscriptionStatus.subscriptionLevel={...i.subscriptionStatus.subscriptionLevel,priceWithTva:d}}else n.value=!1},c=B(()=>!(i.subscriptionStatus.monthsAlreadyPaid&&i.subscriptionStatus.status!=="active"&&i.subscriptionStatus.status!=="canceled"));return(d,f)=>(J(),je(Jx,{fluid:"",class:"pa-0"},{default:le(()=>[F("div",Oqe,[F("div",Dqe,[K(i).loadSubscription?(J(),ve("div",Iqe,Q(K(r)("loading")),1)):(J(),ve(Ue,{key:1},[C(vUe),F("div",Nqe,[K(i).loadSubscription||!K(t).isLogged?(J(),je(r1,{key:0,class:"border-md border-opacity-90 rounded-xl overflow-y-hidden",elevation:"0",color:"white","min-width":"365",type:"card"})):(J(),ve(Ue,{key:1},[l.value?(J(),je(B4,{key:0,displayPriceWithTva:n.value,displayAction:!1,classes:"border-md border-secondary border-opacity-100 rounded-xl pa-2",showFeature:!1,displayMore:!1,thePackage:l.value},null,8,["displayPriceWithTva","thePackage"])):De("",!0),K(i).subscriptionStatus&&K(i).subscriptionStatus.type=="life"&&K(i).subscriptionStatus.status=="active"?De("",!0):(J(),je(Je,{key:1,to:{name:"DashboardChangeSubscription"},block:"",color:"secondary"},{default:le(()=>[Ze(Q(K(r)("change_subscription")),1)]),_:1})),K(i).subscriptionStatus&&K(i).subscriptionStatus.type!="lifetime"&&K(i).subscriptionStatus.type!="life"&&K(i).subscriptionStatus.status!="canceled"&&K(i).subscriptionStatus.status!="incomplete_expired"?(J(),ve("span",{key:2,class:"d-flex justify-center cursor-pointer text-decoration-underline cancel-subscription",onClick:f[0]||(f[0]=()=>K(i).toggleCancelSubscription())},Q(K(r)("cancel_my_subscription")),1)):De("",!0)],64))])],64)),K(i).loadSubscription?(J(),ve("div",Mqe,Q(K(r)("loading")),1)):(J(),ve(Ue,{key:3},[K(i).discountLoading?(J(),ve("div",Lqe,Q(K(r)("loading")),1)):(J(),ve(Ue,{key:1},[K(i).subscriptionStatus.type!="life"?(J(),je(Aqe,{key:0})):De("",!0)],64))],64)),K(i).loadInformation?(J(),ve("div",Rqe,Q(K(r)("loading")),1)):(J(),je(Mze,{key:5})),K(i).loadCard?(J(),ve("div",Fqe,Q(K(r)("loading")),1)):(J(),je(ije,{key:7}))]),F("div",Vqe,[K(i).loadSubscription||!K(t).isLogged?(J(),je(r1,{key:0,class:"border-md border-opacity-90 rounded-xl overflow-y-hidden mx-auto",elevation:"1",color:"white","min-width":"365",height:"500",type:"card, sentences, image, table-heading, list-item-two-line"})):(J(),ve("div",Bqe,[l.value?(J(),je(B4,{key:0,class:"",style:{"max-width":"365px"},displayAction:!1,classes:"border-md border-secondary border-opacity-100 rounded-xl",showFeature:!1,displayMore:"",thePackage:l.value,displayPriceWithTva:n.value},null,8,["thePackage","displayPriceWithTva"])):De("",!0),c.value?(J(),ve("div",zqe,[F("div",jqe,[C(Ep,{id:"change-subscription-btn"},{default:le(()=>[C(Je,{to:{name:"DashboardChangeSubscription"},color:"secondary",class:"mt-3"},{default:le(()=>[Ze(Q(K(r)(K(i).subscriptionStatus.status==="canceled"?"Je m'abonne":"change_subscription")),1)]),_:1})]),_:1})]),K(i).subscriptionStatus&&K(i).subscriptionStatus.type!="lifetime"&&K(i).subscriptionStatus.type!="life"&&K(i).subscriptionStatus.status!="canceled"&&K(i).subscriptionStatus.status!="incomplete_expired"?(J(),je(Ep,{key:0,id:"cancel-subcription-btn"},{default:le(()=>[F("div",{class:"w-66 mx-auto d-flex justify-center mt-3",onClick:f[1]||(f[1]=()=>K(i).toggleCancelSubscription())},[F("span",Uqe,Q(K(r)("cancel_my_subscription")),1)])]),_:1})):De("",!0)])):De("",!0)]))])]),C(Ka,null,{default:le(()=>[C(Qn,{cols:"12"},{default:le(()=>[K(i).paymentListLoading?(J(),ve("div",Hqe,Q(K(r)("loading")),1)):(J(),je(TUe,{key:1}))]),_:1})]),_:1}),K(i).changeSubscription?(J(),je(LHe,{key:0})):De("",!0),K(i).cancelSubscription?(J(),je(hqe,{key:1})):De("",!0)]),_:1}))}});const Yqe=ot({__name:"Subscription",setup(e){return Z1((t,n,i)=>{const r=ud();if(r.hasOnboarding&&!r.manualProccess){r.onboardingAlert=!0,r.leave=!1;const a=Ve(()=>r.leave,o=>{o?(r.leave=!1,r.onboardingAlert=!1,i()):(r.onboardingAlert=!1,i(!1)),a()})}else i()}),(t,n)=>(J(),je(qqe))}}),Wqe=Object.freeze(Object.defineProperty({__proto__:null,default:Yqe},Symbol.toStringTag,{value:"Module"}));export{jn as $,K as A,F as B,Q as C,Je as D,Hn as E,De as F,br as G,Ze as H,Yp as I,Cn as J,ir as K,vn as L,Pi as M,Un as N,Cz as O,$e as P,ik as Q,gn as R,Ve as S,Yr as T,nt as U,$ne as V,_h as W,ou as X,Vo as Y,uC as Z,on as _,Jqe as a,Ep as a$,l8 as a0,pa as a1,ve as a2,V_e as a3,ut as a4,z_e as a5,Qn as a6,Hg as a7,ud as a8,Ii as a9,zc as aA,jf as aB,v_ as aC,Gf as aD,Pt as aE,Ow as aF,ul as aG,cl as aH,ow as aI,P_e as aJ,p2 as aK,Yt as aL,uZ as aM,kt as aN,Xqe as aO,nk as aP,b2 as aQ,A2 as aR,eu as aS,Wi as aT,rl as aU,Ht as aV,j8e as aW,RR as aX,ka as aY,gK as aZ,ma as a_,vU as aa,hl as ab,Ho as ac,Eg as ad,Xl as ae,Uo as af,R_e as ag,tYe as ah,Dk as ai,Oa as aj,qp as ak,xt as al,hn as am,fi as an,Me as ao,Ui as ap,Ue as aq,TM as ar,Yu as as,Tn as at,m8e as au,NE as av,_2 as aw,dm as ax,Rb as ay,Q_ as az,eYe as b,hYe as b$,fh as b0,ly as b1,Kr as b2,rk as b3,kle as b4,Ka as b5,Ele as b6,xU as b7,B4 as b8,kU as b9,SS as bA,t8 as bB,ri as bC,Ei as bD,Z1 as bE,tle as bF,mR as bG,iYe as bH,EYe as bI,Im as bJ,If as bK,m_e as bL,Zb as bM,Xb as bN,Kqe as bO,Sz as bP,J3 as bQ,b_e as bR,gz as bS,Ez as bT,WD as bU,DFe as bV,$t as bW,Bb as bX,pYe as bY,gYe as bZ,yYe as b_,Cs as ba,X1 as bb,ha as bc,ho as bd,W5 as be,_x as bf,Jx as bg,rc as bh,_Te as bi,sO as bj,ys as bk,Nm as bl,Uu as bm,Vk as bn,TU as bo,kg as bp,TTe as bq,Tg as br,EU as bs,EM as bt,$_e as bu,nYe as bv,Ese as bw,Bte as bx,Nu as by,cj as bz,zle as c,LHe as c$,i8 as c0,vYe as c1,um as c2,uYe as c3,zg as c4,a8 as c5,WR as c6,N2 as c7,WBe as c8,qqe as c9,r1 as cA,mYe as cB,g2 as cC,ZE as cD,vs as cE,Sp as cF,P9e as cG,g9e as cH,C9e as cI,xYe as cJ,dYe as cK,XE as cL,an as cM,vi as cN,aN as cO,cse as cP,th as cQ,rYe as cR,d_e as cS,_Ve as cT,Ct as cU,cYe as cV,h_e as cW,GTe as cX,W8e as cY,aze as cZ,bTe as c_,cle as ca,ane as cb,Ss as cc,Uf as cd,Hf as ce,G_ as cf,r4 as cg,pz as ch,wb as ci,fYe as cj,oO as ck,Qoe as cl,Zoe as cm,gC as cn,vC as co,B0 as cp,xne as cq,Cm as cr,Zqe as cs,lYe as ct,Vc as cu,a_ as cv,zUe as cw,_Ye as cx,Kb as cy,ic as cz,Qqe as d,Pte as e,sYe as f,In as g,_s as h,oYe as i,ot as j,z as k,B as l,Tte as m,Ci as n,tn as o,J as p,je as q,aYe as r,Gt as s,C as t,ad as u,Kl as v,le as w,Ki as x,er as y,_r as z}; //# sourceMappingURL=dashboard-practitioner-b373edf1.js.map