bootstrap-vue-wrapper 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap-vue-wrapper.mjs +2177 -5431
- package/dist/bootstrap-vue-wrapper.umd.js +9 -13
- package/package.json +1 -1
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(K,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("bootstrap")):typeof define=="function"&&define.amd?define(["exports","vue","bootstrap"],l):(K=typeof globalThis<"u"?globalThis:K||self,l(K.BootstrapVueWrapper={},K.Vue,K.bootstrap))})(this,function(K,l,De){"use strict";const Vn=l.defineComponent({name:"BsBreadcrumb",props:{items:{type:Array,required:!0}},methods:{isRouteAvailable(e){return e.route!==void 0}}}),ne=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},Bn={"aria-label":"breadcrumb"},wn={class:"breadcrumb"},Un=["textContent"];function Wn(e,t,n,a,s,r){const i=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("nav",Bn,[l.createElementVNode("ol",wn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.items,(c,d)=>(l.openBlock(),l.createElementBlock("li",{key:d,class:l.normalizeClass(["breadcrumb-item",{active:!e.isRouteAvailable(c)}])},[e.isRouteAvailable(c)?(l.openBlock(),l.createBlock(i,{key:0,to:c.route},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.title),1)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("span",{key:1,textContent:l.toDisplayString(c.title)},null,8,Un))],2))),128))])])}const Hn=ne(Vn,[["render",Wn]]),Gn=l.defineComponent({name:"BsForm",emits:["submit"],data(){return{submitClicked:!1}},methods:{onSubmit(e){e.preventDefault(),this.submitClicked=!0,this.$emit("submit",e)}}});function Yn(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("form",{class:l.normalizeClass(["needs-validation",{"was-validated":e.submitClicked}]),novalidate:"",onSubmit:t[0]||(t[0]=(...i)=>e.onSubmit&&e.onSubmit(...i))},[l.renderSlot(e.$slots,"default")],34)}const Kn=ne(Gn,[["render",Yn]]);/*!
|
|
2
2
|
* shared v9.9.0
|
|
3
3
|
* (c) 2024 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
5
|
-
*/const
|
|
6
|
-
`)}function
|
|
5
|
+
*/const fe=typeof window<"u";let te,Le;if(process.env.NODE_ENV!=="production"){const e=fe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(te=t=>{e.mark(t)},Le=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const Xn=/\{([0-9a-zA-Z]+)\}/g;function ft(e,...t){return t.length===1&&$(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Xn,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const me=(e,t=!1)=>t?Symbol.for(e):Symbol(e),jn=(e,t,n)=>qn({l:e,k:t,s:n}),qn=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Q=e=>typeof e=="number"&&isFinite(e),Jn=e=>$t(e)==="[object Date]",Re=e=>$t(e)==="[object RegExp]",nt=e=>F(e)&&Object.keys(e).length===0,Z=Object.assign;let Rt;const _e=()=>Rt||(Rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mt(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Qn=Object.prototype.hasOwnProperty;function at(e,t){return Qn.call(e,t)}const X=Array.isArray,W=e=>typeof e=="function",k=e=>typeof e=="string",U=e=>typeof e=="boolean",$=e=>e!==null&&typeof e=="object",Zn=e=>$(e)&&W(e.then)&&W(e.catch),Ft=Object.prototype.toString,$t=e=>Ft.call(e),F=e=>{if(!$(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},xn=e=>e==null?"":X(e)||F(e)&&e.toString===Ft?JSON.stringify(e,null,2):String(e);function zn(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const Vt=2;function ea(e,t=0,n=e.length){const a=e.split(/\r?\n/);let s=0;const r=[];for(let i=0;i<a.length;i++)if(s+=a[i].length+1,s>=t){for(let c=i-Vt;c<=i+Vt||n>s;c++){if(c<0||c>=a.length)continue;const d=c+1;r.push(`${d}${" ".repeat(3-String(d).length)}| ${a[c]}`);const g=a[c].length;if(c===i){const h=t-(s-g)+1,L=Math.max(1,n>s?g-h:n-t);r.push(" | "+" ".repeat(h)+"^".repeat(L))}else if(c>i){if(n>s){const h=Math.max(Math.min(n-s,g),1);r.push(" | "+"^".repeat(h))}s+=g+1}}break}return r.join(`
|
|
6
|
+
`)}function mt(e){let t=e;return()=>++t}function ge(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Bt={};function ta(e){Bt[e]||(Bt[e]=!0,ge(e))}function na(){const e=new Map;return{events:e,on(n,a){const s=e.get(n);s&&s.push(a)||e.set(n,[a])},off(n,a){const s=e.get(n);s&&s.splice(s.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(s=>s(a)),(e.get("*")||[]).slice().map(s=>s(n,a))}}}const rt=e=>!$(e)||X(e);function lt(e,t){if(rt(e)||rt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:s}=n.pop();Object.keys(a).forEach(r=>{rt(a[r])||rt(s[r])?s[r]=a[r]:n.push({src:a[r],des:s[r]})})}}/*!
|
|
7
7
|
* message-compiler v9.9.0
|
|
8
8
|
* (c) 2024 kazuya kawaguchi
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function
|
|
11
|
-
`,_a="\u2028",ma="\u2029";function ha(t){const e=t;let n=0,r=1,s=1,i=0;const o=D=>e[D]===fa&&e[D+1]===ie,a=D=>e[D]===ie,c=D=>e[D]===ma,_=D=>e[D]===_a,f=D=>o(D)||a(D)||c(D)||_(D),v=()=>n,E=()=>r,N=()=>s,k=()=>i,L=D=>o(D)||c(D)||_(D)?ie:e[D],I=()=>L(n),m=()=>L(n+i);function p(){return i=0,f(n)&&(r++,s=0),o(n)&&n++,n++,s++,e[n]}function T(){return o(n+i)&&i++,i++,e[n+i]}function h(){n=0,r=1,s=1,i=0}function C(D=0){i=D}function y(){const D=n+i;for(;D!==n;)p();i=0}return{index:v,line:E,column:N,peekOffset:k,charAt:L,currentChar:I,currentPeek:m,next:p,peek:T,reset:h,resetPeek:C,skipToPeek:y}}const tt=void 0,pa=".",as="'",Ea="tokenizer";function ga(t,e={}){const n=e.location!==!1,r=ha(t),s=()=>r.index(),i=()=>sa(r.line(),r.column(),r.index()),o=i(),a=s(),c={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},_=()=>c,{onError:f}=e;function v(d,u,g,...w){const V=_();if(u.column+=g,u.offset+=g,f){const H=n?Gn(V.startLoc,u):null,De=Lt(d,H,{domain:Ea,args:w});f(De)}}function E(d,u,g){d.endLoc=i(),d.currentType=u;const w={type:u};return n&&(w.loc=Gn(d.startLoc,d.endLoc)),g!=null&&(w.value=g),w}const N=d=>E(d,14);function k(d,u){return d.currentChar()===u?(d.next(),u):(v(R.EXPECTED_TOKEN,i(),0,u),"")}function L(d){let u="";for(;d.currentPeek()===Xe||d.currentPeek()===ie;)u+=d.currentPeek(),d.peek();return u}function I(d){const u=L(d);return d.skipToPeek(),u}function m(d){if(d===tt)return!1;const u=d.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function p(d){if(d===tt)return!1;const u=d.charCodeAt(0);return u>=48&&u<=57}function T(d,u){const{currentType:g}=u;if(g!==2)return!1;L(d);const w=m(d.currentPeek());return d.resetPeek(),w}function h(d,u){const{currentType:g}=u;if(g!==2)return!1;L(d);const w=d.currentPeek()==="-"?d.peek():d.currentPeek(),V=p(w);return d.resetPeek(),V}function C(d,u){const{currentType:g}=u;if(g!==2)return!1;L(d);const w=d.currentPeek()===as;return d.resetPeek(),w}function y(d,u){const{currentType:g}=u;if(g!==8)return!1;L(d);const w=d.currentPeek()===".";return d.resetPeek(),w}function D(d,u){const{currentType:g}=u;if(g!==9)return!1;L(d);const w=m(d.currentPeek());return d.resetPeek(),w}function O(d,u){const{currentType:g}=u;if(!(g===8||g===12))return!1;L(d);const w=d.currentPeek()===":";return d.resetPeek(),w}function M(d,u){const{currentType:g}=u;if(g!==10)return!1;const w=()=>{const H=d.currentPeek();return H==="{"?m(d.peek()):H==="@"||H==="%"||H==="|"||H===":"||H==="."||H===Xe||!H?!1:H===ie?(d.peek(),w()):m(H)},V=w();return d.resetPeek(),V}function F(d){L(d);const u=d.currentPeek()==="|";return d.resetPeek(),u}function Y(d){const u=L(d),g=d.currentPeek()==="%"&&d.peek()==="{";return d.resetPeek(),{isModulo:g,hasSpace:u.length>0}}function x(d,u=!0){const g=(V=!1,H="",De=!1)=>{const ne=d.currentPeek();return ne==="{"?H==="%"?!1:V:ne==="@"||!ne?H==="%"?!0:V:ne==="%"?(d.peek(),g(V,"%",!0)):ne==="|"?H==="%"||De?!0:!(H===Xe||H===ie):ne===Xe?(d.peek(),g(!0,Xe,De)):ne===ie?(d.peek(),g(!0,ie,De)):!0},w=g();return u&&d.resetPeek(),w}function K(d,u){const g=d.currentChar();return g===tt?tt:u(g)?(d.next(),g):null}function _e(d){return K(d,g=>{const w=g.charCodeAt(0);return w>=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===95||w===36})}function ve(d){return K(d,g=>{const w=g.charCodeAt(0);return w>=48&&w<=57})}function X(d){return K(d,g=>{const w=g.charCodeAt(0);return w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102})}function te(d){let u="",g="";for(;u=ve(d);)g+=u;return g}function He(d){I(d);const u=d.currentChar();return u!=="%"&&v(R.EXPECTED_TOKEN,i(),0,u),d.next(),"%"}function me(d){let u="";for(;;){const g=d.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g==="%")if(x(d))u+=g,d.next();else break;else if(g===Xe||g===ie)if(x(d))u+=g,d.next();else{if(F(d))break;u+=g,d.next()}else u+=g,d.next()}return u}function We(d){I(d);let u="",g="";for(;u=_e(d);)g+=u;return d.currentChar()===tt&&v(R.UNTERMINATED_CLOSING_BRACE,i(),0),g}function ce(d){I(d);let u="";return d.currentChar()==="-"?(d.next(),u+=`-${te(d)}`):u+=te(d),d.currentChar()===tt&&v(R.UNTERMINATED_CLOSING_BRACE,i(),0),u}function Se(d){I(d),k(d,"'");let u="",g="";const w=H=>H!==as&&H!==ie;for(;u=K(d,w);)u==="\\"?g+=xe(d):g+=u;const V=d.currentChar();return V===ie||V===tt?(v(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),V===ie&&(d.next(),k(d,"'")),g):(k(d,"'"),g)}function xe(d){const u=d.currentChar();switch(u){case"\\":case"'":return d.next(),`\\${u}`;case"u":return Te(d,u,4);case"U":return Te(d,u,6);default:return v(R.UNKNOWN_ESCAPE_SEQUENCE,i(),0,u),""}}function Te(d,u,g){k(d,u);let w="";for(let V=0;V<g;V++){const H=X(d);if(!H){v(R.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${u}${w}${d.currentChar()}`);break}w+=H}return`\\${u}${w}`}function he(d){I(d);let u="",g="";const w=V=>V!=="{"&&V!=="}"&&V!==Xe&&V!==ie;for(;u=K(d,w);)g+=u;return g}function we(d){let u="",g="";for(;u=_e(d);)g+=u;return g}function Ze(d){const u=(g=!1,w)=>{const V=d.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Xe?w:V===ie||V===pa?(w+=V,d.next(),u(g,w)):(w+=V,d.next(),u(!0,w))};return u(!1,"")}function ue(d){I(d);const u=k(d,"|");return I(d),u}function Pe(d,u){let g=null;switch(d.currentChar()){case"{":return u.braceNest>=1&&v(R.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),d.next(),g=E(u,2,"{"),I(d),u.braceNest++,g;case"}":return u.braceNest>0&&u.currentType===2&&v(R.EMPTY_PLACEHOLDER,i(),0),d.next(),g=E(u,3,"}"),u.braceNest--,u.braceNest>0&&I(d),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),g;case"@":return u.braceNest>0&&v(R.UNTERMINATED_CLOSING_BRACE,i(),0),g=Ye(d,u)||N(u),u.braceNest=0,g;default:let V=!0,H=!0,De=!0;if(F(d))return u.braceNest>0&&v(R.UNTERMINATED_CLOSING_BRACE,i(),0),g=E(u,1,ue(d)),u.braceNest=0,u.inLinked=!1,g;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return v(R.UNTERMINATED_CLOSING_BRACE,i(),0),u.braceNest=0,$e(d,u);if(V=T(d,u))return g=E(u,5,We(d)),I(d),g;if(H=h(d,u))return g=E(u,6,ce(d)),I(d),g;if(De=C(d,u))return g=E(u,7,Se(d)),I(d),g;if(!V&&!H&&!De)return g=E(u,13,he(d)),v(R.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,g.value),I(d),g;break}return g}function Ye(d,u){const{currentType:g}=u;let w=null;const V=d.currentChar();switch((g===8||g===9||g===12||g===10)&&(V===ie||V===Xe)&&v(R.INVALID_LINKED_FORMAT,i(),0),V){case"@":return d.next(),w=E(u,8,"@"),u.inLinked=!0,w;case".":return I(d),d.next(),E(u,9,".");case":":return I(d),d.next(),E(u,10,":");default:return F(d)?(w=E(u,1,ue(d)),u.braceNest=0,u.inLinked=!1,w):y(d,u)||O(d,u)?(I(d),Ye(d,u)):D(d,u)?(I(d),E(u,12,we(d))):M(d,u)?(I(d),V==="{"?Pe(d,u)||w:E(u,11,Ze(d))):(g===8&&v(R.INVALID_LINKED_FORMAT,i(),0),u.braceNest=0,u.inLinked=!1,$e(d,u))}}function $e(d,u){let g={type:14};if(u.braceNest>0)return Pe(d,u)||N(u);if(u.inLinked)return Ye(d,u)||N(u);switch(d.currentChar()){case"{":return Pe(d,u)||N(u);case"}":return v(R.UNBALANCED_CLOSING_BRACE,i(),0),d.next(),E(u,3,"}");case"@":return Ye(d,u)||N(u);default:if(F(d))return g=E(u,1,ue(d)),u.braceNest=0,u.inLinked=!1,g;const{isModulo:V,hasSpace:H}=Y(d);if(V)return H?E(u,0,me(d)):E(u,4,He(d));if(x(d))return E(u,0,me(d));break}return g}function At(){const{currentType:d,offset:u,startLoc:g,endLoc:w}=c;return c.lastType=d,c.lastOffset=u,c.lastStartLoc=g,c.lastEndLoc=w,c.offset=s(),c.startLoc=i(),r.currentChar()===tt?E(c,14):$e(r,c)}return{nextToken:At,currentOffset:s,currentPosition:i,context:_}}const ba="parser",va=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ta(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Na(t={}){const e=t.location!==!1,{onError:n}=t;function r(m,p,T,h,...C){const y=m.currentPosition();if(y.offset+=h,y.column+=h,n){const D=e?Gn(T,y):null,O=Lt(p,D,{domain:ba,args:C});n(O)}}function s(m,p,T){const h={type:m};return e&&(h.start=p,h.end=p,h.loc={start:T,end:T}),h}function i(m,p,T,h){h&&(m.type=h),e&&(m.end=p,m.loc&&(m.loc.end=T))}function o(m,p){const T=m.context(),h=s(3,T.offset,T.startLoc);return h.value=p,i(h,m.currentOffset(),m.currentPosition()),h}function a(m,p){const T=m.context(),{lastOffset:h,lastStartLoc:C}=T,y=s(5,h,C);return y.index=parseInt(p,10),m.nextToken(),i(y,m.currentOffset(),m.currentPosition()),y}function c(m,p){const T=m.context(),{lastOffset:h,lastStartLoc:C}=T,y=s(4,h,C);return y.key=p,m.nextToken(),i(y,m.currentOffset(),m.currentPosition()),y}function _(m,p){const T=m.context(),{lastOffset:h,lastStartLoc:C}=T,y=s(9,h,C);return y.value=p.replace(va,Ta),m.nextToken(),i(y,m.currentOffset(),m.currentPosition()),y}function f(m){const p=m.nextToken(),T=m.context(),{lastOffset:h,lastStartLoc:C}=T,y=s(8,h,C);return p.type!==12?(r(m,R.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),y.value="",i(y,h,C),{nextConsumeToken:p,node:y}):(p.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Re(p)),y.value=p.value||"",i(y,m.currentOffset(),m.currentPosition()),{node:y})}function v(m,p){const T=m.context(),h=s(7,T.offset,T.startLoc);return h.value=p,i(h,m.currentOffset(),m.currentPosition()),h}function E(m){const p=m.context(),T=s(6,p.offset,p.startLoc);let h=m.nextToken();if(h.type===9){const C=f(m);T.modifier=C.node,h=C.nextConsumeToken||m.nextToken()}switch(h.type!==10&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(h)),h=m.nextToken(),h.type===2&&(h=m.nextToken()),h.type){case 11:h.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(h)),T.key=v(m,h.value||"");break;case 5:h.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(h)),T.key=c(m,h.value||"");break;case 6:h.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(h)),T.key=a(m,h.value||"");break;case 7:h.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(h)),T.key=_(m,h.value||"");break;default:r(m,R.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const C=m.context(),y=s(7,C.offset,C.startLoc);return y.value="",i(y,C.offset,C.startLoc),T.key=y,i(T,C.offset,C.startLoc),{nextConsumeToken:h,node:T}}return i(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const p=m.context(),T=p.currentType===1?m.currentOffset():p.offset,h=p.currentType===1?p.endLoc:p.startLoc,C=s(2,T,h);C.items=[];let y=null;do{const M=y||m.nextToken();switch(y=null,M.type){case 0:M.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(M)),C.items.push(o(m,M.value||""));break;case 6:M.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(M)),C.items.push(a(m,M.value||""));break;case 5:M.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(M)),C.items.push(c(m,M.value||""));break;case 7:M.value==null&&r(m,R.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Re(M)),C.items.push(_(m,M.value||""));break;case 8:const F=E(m);C.items.push(F.node),y=F.nextConsumeToken||null;break}}while(p.currentType!==14&&p.currentType!==1);const D=p.currentType===1?p.lastOffset:m.currentOffset(),O=p.currentType===1?p.lastEndLoc:m.currentPosition();return i(C,D,O),C}function k(m,p,T,h){const C=m.context();let y=h.items.length===0;const D=s(1,p,T);D.cases=[],D.cases.push(h);do{const O=N(m);y||(y=O.items.length===0),D.cases.push(O)}while(C.currentType!==14);return y&&r(m,R.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(D,m.currentOffset(),m.currentPosition()),D}function L(m){const p=m.context(),{offset:T,startLoc:h}=p,C=N(m);return p.currentType===14?C:k(m,T,h,C)}function I(m){const p=ga(m,ss({},t)),T=p.context(),h=s(0,T.offset,T.startLoc);return e&&h.loc&&(h.loc.source=m),h.body=L(p),t.onCacheKey&&(h.cacheKey=t.onCacheKey(m)),T.currentType!==14&&r(p,R.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),i(h,p.currentOffset(),p.currentPosition()),h}return{parse:I}}function Re(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function Aa(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function ls(t,e){for(let n=0;n<t.length;n++)Xn(t[n],e)}function Xn(t,e){switch(t.type){case 1:ls(t.cases,e),e.helper("plural");break;case 2:ls(t.items,e);break;case 6:Xn(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function ya(t,e={}){const n=Aa(t);n.helper("normalize"),t.body&&Xn(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function Oa(t){const e=t.body;return e.type===2?cs(e):e.cases.forEach(n=>cs(n)),t}function cs(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=os(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ca="minifier";function It(t){switch(t.t=t.type,t.type){case 0:const e=t;It(e.body),e.b=e.body,delete e.body;break;case 1:const n=t,r=n.cases;for(let f=0;f<r.length;f++)It(r[f]);n.c=r,delete n.cases;break;case 2:const s=t,i=s.items;for(let f=0;f<i.length;f++)It(i[f]);s.i=i,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const o=t;o.value&&(o.v=o.value,delete o.value);break;case 6:const a=t;It(a.key),a.k=a.key,delete a.key,a.modifier&&(It(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const c=t;c.i=c.index,delete c.index;break;case 4:const _=t;_.k=_.key,delete _.key;break;default:throw Lt(R.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ca,args:[t.type]})}delete t.type}const La="parser";function Ia(t,e){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=e,o=e.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&t.loc&&(a.source=t.loc.source);const c=()=>a;function _(I,m){a.code+=I}function f(I,m=!0){const p=m?s:"";_(i?p+" ".repeat(I):p)}function v(I=!0){const m=++a.indentLevel;I&&f(m)}function E(I=!0){const m=--a.indentLevel;I&&f(m)}function N(){f(a.indentLevel)}return{context:c,push:_,indent:v,deindent:E,newline:N,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Sa(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),St(t,e.key),e.modifier?(t.push(", "),St(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function Da(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const s=e.items.length;for(let i=0;i<s&&(St(t,e.items[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function ka(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const s=e.cases.length;for(let i=0;i<s&&(St(t,e.cases[i]),i!==s-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function wa(t,e){e.body?St(t,e.body):t.push("null")}function St(t,e){const{helper:n}=t;switch(e.type){case 0:wa(t,e);break;case 1:ka(t,e);break;case 2:Da(t,e);break;case 6:Sa(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw Lt(R.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:La,args:[e.type]})}}const Pa=(t,e={})=>{const n=is(e.mode)?e.mode:"normal",r=is(e.filename)?e.filename:"message.intl",s=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
12
|
-
`,
|
|
10
|
+
*/function aa(e,t,n){return{line:e,column:t,offset:n}}function _t(e,t,n){const a={start:e,end:t};return n!=null&&(a.source=n),a}const ra=/\{([0-9a-zA-Z]+)\}/g;function la(e,...t){return t.length===1&&oa(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ra,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const wt=Object.assign,Ut=e=>typeof e=="string",oa=e=>e!==null&&typeof e=="object";function Wt(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const D={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},sa={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Me(e,t,n={}){const{domain:a,messages:s,args:r}=n,i=la((s||sa)[e]||"",...r||[]),c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=a,c}function ia(e){throw e}const ca=/<\/?[\w\s="/.':;#-\/]+>/,ua=e=>ca.test(e),pe=" ",da="\r",x=`
|
|
11
|
+
`,fa="\u2028",ma="\u2029";function _a(e){const t=e;let n=0,a=1,s=1,r=0;const i=S=>t[S]===da&&t[S+1]===x,c=S=>t[S]===x,d=S=>t[S]===ma,g=S=>t[S]===fa,h=S=>i(S)||c(S)||d(S)||g(S),L=()=>n,N=()=>a,A=()=>s,R=()=>r,P=S=>i(S)||d(S)||g(S)?x:t[S],v=()=>P(n),f=()=>P(n+r);function p(){return r=0,h(n)&&(a++,s=0),i(n)&&n++,n++,s++,t[n]}function T(){return i(n+r)&&r++,r++,t[n+r]}function E(){n=0,a=1,s=1,r=0}function y(S=0){r=S}function O(){const S=n+r;for(;S!==n;)p();r=0}return{index:L,line:N,column:A,peekOffset:R,charAt:P,currentChar:v,currentPeek:f,next:p,peek:T,reset:E,resetPeek:y,skipToPeek:O}}const Ne=void 0,pa=".",Ht="'",Ea="tokenizer";function ga(e,t={}){const n=t.location!==!1,a=_a(e),s=()=>a.index(),r=()=>aa(a.line(),a.column(),a.index()),i=r(),c=s(),d={currentType:14,offset:c,startLoc:i,endLoc:i,lastType:14,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},g=()=>d,{onError:h}=t;function L(u,o,m,...C){const M=g();if(o.column+=m,o.offset+=m,h){const V=n?_t(M.startLoc,o):null,de=Me(u,V,{domain:Ea,args:C});h(de)}}function N(u,o,m){u.endLoc=r(),u.currentType=o;const C={type:o};return n&&(C.loc=_t(u.startLoc,u.endLoc)),m!=null&&(C.value=m),C}const A=u=>N(u,14);function R(u,o){return u.currentChar()===o?(u.next(),o):(L(D.EXPECTED_TOKEN,r(),0,o),"")}function P(u){let o="";for(;u.currentPeek()===pe||u.currentPeek()===x;)o+=u.currentPeek(),u.peek();return o}function v(u){const o=P(u);return u.skipToPeek(),o}function f(u){if(u===Ne)return!1;const o=u.charCodeAt(0);return o>=97&&o<=122||o>=65&&o<=90||o===95}function p(u){if(u===Ne)return!1;const o=u.charCodeAt(0);return o>=48&&o<=57}function T(u,o){const{currentType:m}=o;if(m!==2)return!1;P(u);const C=f(u.currentPeek());return u.resetPeek(),C}function E(u,o){const{currentType:m}=o;if(m!==2)return!1;P(u);const C=u.currentPeek()==="-"?u.peek():u.currentPeek(),M=p(C);return u.resetPeek(),M}function y(u,o){const{currentType:m}=o;if(m!==2)return!1;P(u);const C=u.currentPeek()===Ht;return u.resetPeek(),C}function O(u,o){const{currentType:m}=o;if(m!==8)return!1;P(u);const C=u.currentPeek()===".";return u.resetPeek(),C}function S(u,o){const{currentType:m}=o;if(m!==9)return!1;P(u);const C=f(u.currentPeek());return u.resetPeek(),C}function I(u,o){const{currentType:m}=o;if(!(m===8||m===12))return!1;P(u);const C=u.currentPeek()===":";return u.resetPeek(),C}function w(u,o){const{currentType:m}=o;if(m!==10)return!1;const C=()=>{const V=u.currentPeek();return V==="{"?f(u.peek()):V==="@"||V==="%"||V==="|"||V===":"||V==="."||V===pe||!V?!1:V===x?(u.peek(),C()):f(V)},M=C();return u.resetPeek(),M}function G(u){P(u);const o=u.currentPeek()==="|";return u.resetPeek(),o}function oe(u){const o=P(u),m=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:m,hasSpace:o.length>0}}function J(u,o=!0){const m=(M=!1,V="",de=!1)=>{const Ee=u.currentPeek();return Ee==="{"?V==="%"?!1:M:Ee==="@"||!Ee?V==="%"?!0:M:Ee==="%"?(u.peek(),m(M,"%",!0)):Ee==="|"?V==="%"||de?!0:!(V===pe||V===x):Ee===pe?(u.peek(),m(!0,pe,de)):Ee===x?(u.peek(),m(!0,x,de)):!0},C=m();return o&&u.resetPeek(),C}function le(u,o){const m=u.currentChar();return m===Ne?Ne:o(m)?(u.next(),m):null}function we(u){return le(u,m=>{const C=m.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36})}function Je(u){return le(u,m=>{const C=m.charCodeAt(0);return C>=48&&C<=57})}function ue(u){return le(u,m=>{const C=m.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102})}function Ue(u){let o="",m="";for(;o=Je(u);)m+=o;return m}function Qe(u){v(u);const o=u.currentChar();return o!=="%"&&L(D.EXPECTED_TOKEN,r(),0,o),u.next(),"%"}function We(u){let o="";for(;;){const m=u.currentChar();if(m==="{"||m==="}"||m==="@"||m==="|"||!m)break;if(m==="%")if(J(u))o+=m,u.next();else break;else if(m===pe||m===x)if(J(u))o+=m,u.next();else{if(G(u))break;o+=m,u.next()}else o+=m,u.next()}return o}function Ze(u){v(u);let o="",m="";for(;o=we(u);)m+=o;return u.currentChar()===Ne&&L(D.UNTERMINATED_CLOSING_BRACE,r(),0),m}function se(u){v(u);let o="";return u.currentChar()==="-"?(u.next(),o+=`-${Ue(u)}`):o+=Ue(u),u.currentChar()===Ne&&L(D.UNTERMINATED_CLOSING_BRACE,r(),0),o}function He(u){v(u),R(u,"'");let o="",m="";const C=V=>V!==Ht&&V!==x;for(;o=le(u,C);)o==="\\"?m+=xe(u):m+=o;const M=u.currentChar();return M===x||M===Ne?(L(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),M===x&&(u.next(),R(u,"'")),m):(R(u,"'"),m)}function xe(u){const o=u.currentChar();switch(o){case"\\":case"'":return u.next(),`\\${o}`;case"u":return Ge(u,o,4);case"U":return Ge(u,o,6);default:return L(D.UNKNOWN_ESCAPE_SEQUENCE,r(),0,o),""}}function Ge(u,o,m){R(u,o);let C="";for(let M=0;M<m;M++){const V=ue(u);if(!V){L(D.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${o}${C}${u.currentChar()}`);break}C+=V}return`\\${o}${C}`}function ze(u){v(u);let o="",m="";const C=M=>M!=="{"&&M!=="}"&&M!==pe&&M!==x;for(;o=le(u,C);)m+=o;return m}function et(u){let o="",m="";for(;o=we(u);)m+=o;return m}function ut(u){const o=(m=!1,C)=>{const M=u.currentChar();return M==="{"||M==="%"||M==="@"||M==="|"||M==="("||M===")"||!M||M===pe?C:M===x||M===pa?(C+=M,u.next(),o(m,C)):(C+=M,u.next(),o(!0,C))};return o(!1,"")}function ke(u){v(u);const o=R(u,"|");return v(u),o}function Se(u,o){let m=null;switch(u.currentChar()){case"{":return o.braceNest>=1&&L(D.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),m=N(o,2,"{"),v(u),o.braceNest++,m;case"}":return o.braceNest>0&&o.currentType===2&&L(D.EMPTY_PLACEHOLDER,r(),0),u.next(),m=N(o,3,"}"),o.braceNest--,o.braceNest>0&&v(u),o.inLinked&&o.braceNest===0&&(o.inLinked=!1),m;case"@":return o.braceNest>0&&L(D.UNTERMINATED_CLOSING_BRACE,r(),0),m=Ie(u,o)||A(o),o.braceNest=0,m;default:let M=!0,V=!0,de=!0;if(G(u))return o.braceNest>0&&L(D.UNTERMINATED_CLOSING_BRACE,r(),0),m=N(o,1,ke(u)),o.braceNest=0,o.inLinked=!1,m;if(o.braceNest>0&&(o.currentType===5||o.currentType===6||o.currentType===7))return L(D.UNTERMINATED_CLOSING_BRACE,r(),0),o.braceNest=0,Ae(u,o);if(M=T(u,o))return m=N(o,5,Ze(u)),v(u),m;if(V=E(u,o))return m=N(o,6,se(u)),v(u),m;if(de=y(u,o))return m=N(o,7,He(u)),v(u),m;if(!M&&!V&&!de)return m=N(o,13,ze(u)),L(D.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,m.value),v(u),m;break}return m}function Ie(u,o){const{currentType:m}=o;let C=null;const M=u.currentChar();switch((m===8||m===9||m===12||m===10)&&(M===x||M===pe)&&L(D.INVALID_LINKED_FORMAT,r(),0),M){case"@":return u.next(),C=N(o,8,"@"),o.inLinked=!0,C;case".":return v(u),u.next(),N(o,9,".");case":":return v(u),u.next(),N(o,10,":");default:return G(u)?(C=N(o,1,ke(u)),o.braceNest=0,o.inLinked=!1,C):O(u,o)||I(u,o)?(v(u),Ie(u,o)):S(u,o)?(v(u),N(o,12,et(u))):w(u,o)?(v(u),M==="{"?Se(u,o)||C:N(o,11,ut(u))):(m===8&&L(D.INVALID_LINKED_FORMAT,r(),0),o.braceNest=0,o.inLinked=!1,Ae(u,o))}}function Ae(u,o){let m={type:14};if(o.braceNest>0)return Se(u,o)||A(o);if(o.inLinked)return Ie(u,o)||A(o);switch(u.currentChar()){case"{":return Se(u,o)||A(o);case"}":return L(D.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),N(o,3,"}");case"@":return Ie(u,o)||A(o);default:if(G(u))return m=N(o,1,ke(u)),o.braceNest=0,o.inLinked=!1,m;const{isModulo:M,hasSpace:V}=oe(u);if(M)return V?N(o,0,We(u)):N(o,4,Qe(u));if(J(u))return N(o,0,We(u));break}return m}function tt(){const{currentType:u,offset:o,startLoc:m,endLoc:C}=d;return d.lastType=u,d.lastOffset=o,d.lastStartLoc=m,d.lastEndLoc=C,d.offset=s(),d.startLoc=r(),a.currentChar()===Ne?N(d,14):Ae(a,d)}return{nextToken:tt,currentOffset:s,currentPosition:r,context:g}}const Na="parser",ha=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ba(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Ta(e={}){const t=e.location!==!1,{onError:n}=e;function a(f,p,T,E,...y){const O=f.currentPosition();if(O.offset+=E,O.column+=E,n){const S=t?_t(T,O):null,I=Me(p,S,{domain:Na,args:y});n(I)}}function s(f,p,T){const E={type:f};return t&&(E.start=p,E.end=p,E.loc={start:T,end:T}),E}function r(f,p,T,E){E&&(f.type=E),t&&(f.end=p,f.loc&&(f.loc.end=T))}function i(f,p){const T=f.context(),E=s(3,T.offset,T.startLoc);return E.value=p,r(E,f.currentOffset(),f.currentPosition()),E}function c(f,p){const T=f.context(),{lastOffset:E,lastStartLoc:y}=T,O=s(5,E,y);return O.index=parseInt(p,10),f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function d(f,p){const T=f.context(),{lastOffset:E,lastStartLoc:y}=T,O=s(4,E,y);return O.key=p,f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function g(f,p){const T=f.context(),{lastOffset:E,lastStartLoc:y}=T,O=s(9,E,y);return O.value=p.replace(ha,ba),f.nextToken(),r(O,f.currentOffset(),f.currentPosition()),O}function h(f){const p=f.nextToken(),T=f.context(),{lastOffset:E,lastStartLoc:y}=T,O=s(8,E,y);return p.type!==12?(a(f,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),O.value="",r(O,E,y),{nextConsumeToken:p,node:O}):(p.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,ie(p)),O.value=p.value||"",r(O,f.currentOffset(),f.currentPosition()),{node:O})}function L(f,p){const T=f.context(),E=s(7,T.offset,T.startLoc);return E.value=p,r(E,f.currentOffset(),f.currentPosition()),E}function N(f){const p=f.context(),T=s(6,p.offset,p.startLoc);let E=f.nextToken();if(E.type===9){const y=h(f);T.modifier=y.node,E=y.nextConsumeToken||f.nextToken()}switch(E.type!==10&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(E)),E=f.nextToken(),E.type===2&&(E=f.nextToken()),E.type){case 11:E.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(E)),T.key=L(f,E.value||"");break;case 5:E.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(E)),T.key=d(f,E.value||"");break;case 6:E.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(E)),T.key=c(f,E.value||"");break;case 7:E.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(E)),T.key=g(f,E.value||"");break;default:a(f,D.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const y=f.context(),O=s(7,y.offset,y.startLoc);return O.value="",r(O,y.offset,y.startLoc),T.key=O,r(T,y.offset,y.startLoc),{nextConsumeToken:E,node:T}}return r(T,f.currentOffset(),f.currentPosition()),{node:T}}function A(f){const p=f.context(),T=p.currentType===1?f.currentOffset():p.offset,E=p.currentType===1?p.endLoc:p.startLoc,y=s(2,T,E);y.items=[];let O=null;do{const w=O||f.nextToken();switch(O=null,w.type){case 0:w.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(w)),y.items.push(i(f,w.value||""));break;case 6:w.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(w)),y.items.push(c(f,w.value||""));break;case 5:w.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(w)),y.items.push(d(f,w.value||""));break;case 7:w.value==null&&a(f,D.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ie(w)),y.items.push(g(f,w.value||""));break;case 8:const G=N(f);y.items.push(G.node),O=G.nextConsumeToken||null;break}}while(p.currentType!==14&&p.currentType!==1);const S=p.currentType===1?p.lastOffset:f.currentOffset(),I=p.currentType===1?p.lastEndLoc:f.currentPosition();return r(y,S,I),y}function R(f,p,T,E){const y=f.context();let O=E.items.length===0;const S=s(1,p,T);S.cases=[],S.cases.push(E);do{const I=A(f);O||(O=I.items.length===0),S.cases.push(I)}while(y.currentType!==14);return O&&a(f,D.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(S,f.currentOffset(),f.currentPosition()),S}function P(f){const p=f.context(),{offset:T,startLoc:E}=p,y=A(f);return p.currentType===14?y:R(f,T,E,y)}function v(f){const p=ga(f,wt({},e)),T=p.context(),E=s(0,T.offset,T.startLoc);return t&&E.loc&&(E.loc.source=f),E.body=P(p),e.onCacheKey&&(E.cacheKey=e.onCacheKey(f)),T.currentType!==14&&a(p,D.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,f[T.offset]||""),r(E,p.currentOffset(),p.currentPosition()),E}return{parse:v}}function ie(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 Ia(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Gt(e,t){for(let n=0;n<e.length;n++)pt(e[n],t)}function pt(e,t){switch(e.type){case 1:Gt(e.cases,t),t.helper("plural");break;case 2:Gt(e.items,t);break;case 6:pt(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 La(e,t={}){const n=Ia(e);n.helper("normalize"),e.body&&pt(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function Oa(e){const t=e.body;return t.type===2?Yt(t):t.cases.forEach(n=>Yt(n)),e}function Yt(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 a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=Wt(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const Ca="minifier";function Fe(e){switch(e.t=e.type,e.type){case 0:const t=e;Fe(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,a=n.cases;for(let h=0;h<a.length;h++)Fe(a[h]);n.c=a,delete n.cases;break;case 2:const s=e,r=s.items;for(let h=0;h<r.length;h++)Fe(r[h]);s.i=r,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const c=e;Fe(c.key),c.k=c.key,delete c.key,c.modifier&&(Fe(c.modifier),c.m=c.modifier,delete c.modifier);break;case 5:const d=e;d.i=d.index,delete d.index;break;case 4:const g=e;g.k=g.key,delete g.key;break;default:throw Me(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ca,args:[e.type]})}delete e.type}const ya="parser";function ka(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,i=t.location!==!1,c={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};i&&e.loc&&(c.source=e.loc.source);const d=()=>c;function g(v,f){c.code+=v}function h(v,f=!0){const p=f?s:"";g(r?p+" ".repeat(v):p)}function L(v=!0){const f=++c.indentLevel;v&&h(f)}function N(v=!0){const f=--c.indentLevel;v&&h(f)}function A(){h(c.indentLevel)}return{context:d,push:g,indent:L,deindent:N,newline:A,helper:v=>`_${v}`,needIndent:()=>c.needIndent}}function Sa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),$e(e,t.key),t.modifier?(e.push(", "),$e(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Aa(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&($e(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function va(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&($e(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Pa(e,t){t.body?$e(e,t.body):e.push("null")}function $e(e,t){const{helper:n}=e;switch(t.type){case 0:Pa(e,t);break;case 1:va(e,t);break;case 2:Aa(e,t);break;case 6:Sa(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 Me(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ya,args:[t.type]})}}const Da=(e,t={})=>{const n=Ut(t.mode)?t.mode:"normal",a=Ut(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",c=e.helpers||[],d=ka(e,{mode:n,filename:a,sourceMap:s,breakLineCode:r,needIndent:i});d.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(i),c.length>0&&(d.push(`const { ${Wt(c.map(L=>`${L}: _${L}`),", ")} } = ctx`),d.newline()),d.push("return "),$e(d,e),d.deindent(i),d.push("}"),delete e.helpers;const{code:g,map:h}=d.context();return{ast:e,code:g,map:h?h.toJSON():void 0}};function Ra(e,t={}){const n=wt({},t),a=!!n.jit,s=!!n.minify,r=n.optimize==null?!0:n.optimize,c=Ta(n).parse(e);return a?(r&&Oa(c),s&&Fe(c),{ast:c,code:""}):(La(c,n),Da(c,n))}/*!
|
|
13
13
|
* core-base v9.9.0
|
|
14
14
|
* (c) 2024 kazuya kawaguchi
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/function Ra(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ge().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ge().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ge().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const nt=[];nt[0]={w:[0],i:[3,0],"[":[4],o:[7]},nt[1]={w:[1],".":[2],"[":[4],o:[7]},nt[2]={w:[2],i:[3,0],0:[3,0]},nt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},nt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},nt[5]={"'":[4,0],o:8,l:[5,0]},nt[6]={'"':[4,0],o:8,l:[6,0]};const Ma=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Va(t){return Ma.test(t)}function Fa(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function Ba(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;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 Ua(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:Va(e)?Fa(e):"*"+e}function Ha(t){const e=[];let n=-1,r=0,s=0,i,o,a,c,_,f,v;const E=[];E[0]=()=>{o===void 0?o=a:o+=a},E[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},E[2]=()=>{E[0](),s++},E[3]=()=>{if(s>0)s--,r=4,E[0]();else{if(s=0,o===void 0||(o=Ua(o),o===!1))return!1;E[1]()}};function N(){const k=t[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,a="\\"+k,E[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&N())){if(c=Ba(i),v=nt[r],_=v[c]||v.l||8,_===8||(r=_[0],_[1]!==void 0&&(f=E[_[1]],f&&(a=i,f()===!1))))return;if(r===7)return e}}const us=new Map;function Wa(t,e){return W(t)?t[e]:null}function xa(t,e){if(!W(t))return null;let n=us.get(e);if(n||(n=Ha(e),n&&us.set(e,n)),!n)return null;const r=n.length;let s=t,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||G(s))return null;s=o,i++}return s}const Ya=t=>t,Ka=t=>"",ja="text",Ga=t=>t.length===0?"":ea(t),Xa=Zo;function ds(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function qa(t){const e=re(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(re(t.named.count)||re(t.named.n))?re(t.named.count)?t.named.count:re(t.named.n)?t.named.n:e:e}function za(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Qa(t={}){const e=t.locale,n=qa(t),r=W(t.pluralRules)&&P(e)&&G(t.pluralRules[e])?t.pluralRules[e]:ds,s=W(t.pluralRules)&&P(e)&&G(t.pluralRules[e])?ds:void 0,i=m=>m[r(n,m.length,s)],o=t.list||[],a=m=>o[m],c=t.named||{};re(t.pluralIndex)&&za(n,c);const _=m=>c[m];function f(m){const p=G(t.messages)?t.messages(m):W(t.messages)?t.messages[m]:!1;return p||(t.parent?t.parent.message(m):Ka)}const v=m=>t.modifiers?t.modifiers[m]:Ya,E=B(t.processor)&&G(t.processor.normalize)?t.processor.normalize:Ga,N=B(t.processor)&&G(t.processor.interpolate)?t.processor.interpolate:Xa,k=B(t.processor)&&P(t.processor.type)?t.processor.type:ja,I={list:a,named:_,plural:i,linked:(m,...p)=>{const[T,h]=p;let C="text",y="";p.length===1?W(T)?(y=T.modifier||y,C=T.type||C):P(T)&&(y=T||y):p.length===2&&(P(T)&&(y=T||y),P(h)&&(C=h||C));const D=f(m)(I),O=C==="vnode"&&J(D)&&y?D[0]:D;return y?v(y)(O,C):O},message:f,type:k,interpolate:N,normalize:E,values:se({},o,c)};return I}let Qt=null;function Ja(t){Qt=t}function Za(t,e,n){Qt&&Qt.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const el=tl("function:translate");function tl(t){return e=>Qt&&Qt.emit(t,e)}const oe={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},nl={[oe.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[oe.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[oe.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[oe.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[oe.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[oe.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[oe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function _t(t,...e){return Kn(nl[t],...e)}const fs=R.__EXTEND_POINT__,mt=jn(fs),ee={INVALID_ARGUMENT:fs,INVALID_DATE_ARGUMENT:mt(),INVALID_ISO_DATE_ARGUMENT:mt(),NOT_SUPPORT_NON_STRING_MESSAGE:mt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:mt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:mt(),NOT_SUPPORT_LOCALE_TYPE:mt(),__EXTEND_POINT__:mt()};function Me(t){return Lt(t,null,process.env.NODE_ENV!=="production"?{messages:rl}:void 0)}const rl={[ee.INVALID_ARGUMENT]:"Invalid arguments",[ee.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ee.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ee.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ee.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function qn(t,e){return e.locale!=null?_s(e.locale):_s(t.locale)}let zn;function _s(t){if(P(t))return t;if(G(t)){if(t.resolvedOnce&&zn!=null)return zn;if(t.constructor.name==="Function"){const e=t();if(Jo(e))throw Me(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return zn=e}else throw Me(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Me(ee.NOT_SUPPORT_LOCALE_TYPE)}function sl(t,e,n){return[...new Set([n,...J(e)?e:W(e)?Object.keys(e):P(e)?[e]:[n]])]}function ms(t,e,n){const r=P(n)?n:Jt,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;J(o);)o=hs(i,o,e);const a=J(e)||!B(e)?e:e.default?e.default:null;o=P(a)?[a]:a,J(o)&&hs(i,o,!1),s.__localeChainCache.set(r,i)}return i}function hs(t,e,n){let r=!0;for(let s=0;s<e.length&&j(r);s++){const i=e[s];P(i)&&(r=il(t,e[s],n))}return r}function il(t,e,n){let r;const s=e.split("-");do{const i=s.join("-");r=ol(t,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function ol(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const s=e.replace(/!/g,"");t.push(s),(J(n)||B(n))&&n[s]&&(r=n[s])}return r}const al="9.9.0",En=-1,Jt="en-US",gn="",ps=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function ll(){return{upper:(t,e)=>e==="text"&&P(t)?t.toUpperCase():e==="vnode"&&W(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&P(t)?t.toLowerCase():e==="vnode"&&W(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&P(t)?ps(t):e==="vnode"&&W(t)&&"__v_isVNode"in t?ps(t.children):t}}let Es;function gs(t){Es=t}let bs;function cl(t){bs=t}let vs;function ul(t){vs=t}let Ts=null;const dl=t=>{Ts=t},fl=()=>Ts;let Ns=null;const As=t=>{Ns=t},_l=()=>Ns;let ys=0;function ml(t={}){const e=G(t.onWarn)?t.onWarn:et,n=P(t.version)?t.version:al,r=P(t.locale)||G(t.locale)?t.locale:Jt,s=G(r)?Jt:r,i=J(t.fallbackLocale)||B(t.fallbackLocale)||P(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s,o=B(t.messages)?t.messages:{[s]:{}},a=B(t.datetimeFormats)?t.datetimeFormats:{[s]:{}},c=B(t.numberFormats)?t.numberFormats:{[s]:{}},_=se({},t.modifiers||{},ll()),f=t.pluralRules||{},v=G(t.missing)?t.missing:null,E=j(t.missingWarn)||Ct(t.missingWarn)?t.missingWarn:!0,N=j(t.fallbackWarn)||Ct(t.fallbackWarn)?t.fallbackWarn:!0,k=!!t.fallbackFormat,L=!!t.unresolving,I=G(t.postTranslation)?t.postTranslation:null,m=B(t.processor)?t.processor:null,p=j(t.warnHtmlMessage)?t.warnHtmlMessage:!0,T=!!t.escapeParameter,h=G(t.messageCompiler)?t.messageCompiler:Es;process.env.NODE_ENV!=="production"&&G(t.messageCompiler)&&na(_t(oe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const C=G(t.messageResolver)?t.messageResolver:bs||Wa,y=G(t.localeFallbacker)?t.localeFallbacker:vs||sl,D=W(t.fallbackContext)?t.fallbackContext:void 0,O=t,M=W(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,F=W(O.__numberFormatters)?O.__numberFormatters:new Map,Y=W(O.__meta)?O.__meta:{};ys++;const x={version:n,cid:ys,locale:r,fallbackLocale:i,messages:o,modifiers:_,pluralRules:f,missing:v,missingWarn:E,fallbackWarn:N,fallbackFormat:k,unresolving:L,postTranslation:I,processor:m,warnHtmlMessage:p,escapeParameter:T,messageCompiler:h,messageResolver:C,localeFallbacker:y,fallbackContext:D,onWarn:e,__meta:Y};return x.datetimeFormats=a,x.numberFormats=c,x.__datetimeFormatters=M,x.__numberFormatters=F,process.env.NODE_ENV!=="production"&&(x.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Za(x,n,Y),x}function bn(t,e){return t instanceof RegExp?t.test(e):t}function Os(t,e){return t instanceof RegExp?t.test(e):t}function Qn(t,e,n,r,s){const{missing:i,onWarn:o}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:n,key:e,type:s,groupId:`${s}:${e}`})}if(i!==null){const a=i(t,n,e,s);return P(a)?a:e}else return process.env.NODE_ENV!=="production"&&Os(r,e)&&o(_t(oe.NOT_FOUND_KEY,{key:e,locale:n})),e}function Zt(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Jn(t){return n=>hl(n,t)}function hl(t,e){const n=e.b||e.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return t.plural(s.reduce((i,o)=>[...i,Cs(t,o)],[]))}else return Cs(t,n)}function Cs(t,e){const n=e.s||e.static;if(n)return t.type==="text"?n:t.normalize([n]);{const r=(e.i||e.items).reduce((s,i)=>[...s,Zn(t,i)],[]);return t.normalize(r)}}function Zn(t,e){const n=e.t||e.type;switch(n){case 3:const r=e;return r.v||r.value;case 9:const s=e;return s.v||s.value;case 4:const i=e;return t.interpolate(t.named(i.k||i.key));case 5:const o=e;return t.interpolate(t.list(o.i!=null?o.i:o.index));case 6:const a=e,c=a.m||a.modifier;return t.linked(Zn(t,a.k||a.key),c?Zn(t,c):void 0,t.type);case 7:const _=e;return _.v||_.value;case 8:const f=e;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const pl="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ls(t,e){e&&da(t)&&et(Kn(pl,{source:t}))}const Is=t=>t;let Dt=Object.create(null);const ht=t=>W(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function Ss(t,e={}){let n=!1;const r=e.onError||ca;return e.onError=s=>{n=!0,r(s)},{...$a(t,e),detectError:n}}const El=(t,e)=>{if(!P(t))throw Me(ee.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=j(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ls(t,n);const s=(e.onCacheKey||Is)(t),i=Dt[s];if(i)return i;const{code:o,detectError:a}=Ss(t,e),c=new Function(`return ${o}`)();return a?c:Dt[s]=c}};function gl(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&P(t)){const n=j(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ls(t,n);const s=(e.onCacheKey||Is)(t),i=Dt[s];if(i)return i;const{ast:o,detectError:a}=Ss(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),c=Jn(o);return a?c:Dt[s]=c}else{if(process.env.NODE_ENV!=="production"&&!ht(t))return et(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const n=t.cacheKey;if(n){const r=Dt[n];return r||(Dt[n]=Jn(t))}else return Jn(t)}}const Ds=()=>"",Ae=t=>G(t);function ks(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=t,[c,_]=er(...e),f=j(_.missingWarn)?_.missingWarn:t.missingWarn,v=j(_.fallbackWarn)?_.fallbackWarn:t.fallbackWarn,E=j(_.escapeParameter)?_.escapeParameter:t.escapeParameter,N=!!_.resolvedMessage,k=P(_.default)||j(_.default)?j(_.default)?i?c:()=>c:_.default:n?i?c:()=>c:"",L=n||k!=="",I=qn(t,_);E&&bl(_);let[m,p,T]=N?[c,I,a[I]||{}]:ws(t,c,I,o,v,f),h=m,C=c;if(!N&&!(P(h)||ht(h)||Ae(h))&&L&&(h=k,C=h),!N&&(!(P(h)||ht(h)||Ae(h))||!P(p)))return s?En:c;if(process.env.NODE_ENV!=="production"&&P(h)&&t.messageCompiler==null)return et(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let y=!1;const D=()=>{y=!0},O=Ae(h)?h:Ps(t,c,p,h,C,D);if(y)return h;const M=Al(t,p,T,_),F=Qa(M),Y=vl(t,O,F),x=r?r(Y,c):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const K={timestamp:Date.now(),key:P(c)?c:Ae(h)?h.key:"",locale:p||(Ae(h)?h.locale:""),format:P(h)?h:Ae(h)?h.source:"",message:x};K.meta=se({},t.__meta,fl()||{}),el(K)}return x}function bl(t){J(t.list)?t.list=t.list.map(e=>P(e)?Zr(e):e):W(t.named)&&Object.keys(t.named).forEach(e=>{P(t.named[e])&&(t.named[e]=Zr(t.named[e]))})}function ws(t,e,n,r,s,i){const{messages:o,onWarn:a,messageResolver:c,localeFallbacker:_}=t,f=_(t,r,n);let v={},E,N=null,k=n,L=null;const I="translate";for(let m=0;m<f.length;m++){if(E=L=f[m],process.env.NODE_ENV!=="production"&&n!==E&&bn(s,e)&&a(_t(oe.FALLBACK_TO_TRANSLATE,{key:e,target:E})),process.env.NODE_ENV!=="production"&&n!==E){const y=t.__v_emitter;y&&y.emit("fallback",{type:I,key:e,from:k,to:L,groupId:`${I}:${e}`})}v=o[E]||{};let p=null,T,h;if(process.env.NODE_ENV!=="production"&&Ke&&(p=window.performance.now(),T="intlify-message-resolve-start",h="intlify-message-resolve-end",pe&&pe(T)),(N=c(v,e))===null&&(N=v[e]),process.env.NODE_ENV!=="production"&&Ke){const y=window.performance.now(),D=t.__v_emitter;D&&p&&N&&D.emit("message-resolve",{type:"message-resolve",key:e,message:N,time:y-p,groupId:`${I}:${e}`}),T&&h&&pe&&ft&&(pe(h),ft("intlify message resolve",T,h))}if(P(N)||ht(N)||Ae(N))break;const C=Qn(t,e,E,i,I);C!==e&&(N=C),k=L}return[N,E,v]}function Ps(t,e,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=t;if(Ae(r)){const E=r;return E.locale=E.locale||n,E.key=E.key||e,E}if(o==null){const E=()=>r;return E.locale=n,E.key=e,E}let c=null,_,f;process.env.NODE_ENV!=="production"&&Ke&&(c=window.performance.now(),_="intlify-message-compilation-start",f="intlify-message-compilation-end",pe&&pe(_));const v=o(r,Tl(t,n,s,r,a,i));if(process.env.NODE_ENV!=="production"&&Ke){const E=window.performance.now(),N=t.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:r,time:E-c,groupId:`translate:${e}`}),_&&f&&pe&&ft&&(pe(f),ft("intlify message compilation",_,f))}return v.locale=n,v.key=e,v.source=r,v}function vl(t,e,n){let r=null,s,i;process.env.NODE_ENV!=="production"&&Ke&&(r=window.performance.now(),s="intlify-message-evaluation-start",i="intlify-message-evaluation-end",pe&&pe(s));const o=e(n);if(process.env.NODE_ENV!=="production"&&Ke){const a=window.performance.now(),c=t.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:a-r,groupId:`translate:${e.key}`}),s&&i&&pe&&ft&&(pe(i),ft("intlify message evaluation",s,i))}return o}function er(...t){const[e,n,r]=t,s={};if(!P(e)&&!re(e)&&!Ae(e)&&!ht(e))throw Me(ee.INVALID_ARGUMENT);const i=re(e)?String(e):(Ae(e),e);return re(n)?s.plural=n:P(n)?s.default=n:B(n)&&!_n(n)?s.named=n:J(n)&&(s.list=n),re(r)?s.plural=r:P(r)?s.default=r:B(r)&&se(s,r),[i,s]}function Tl(t,e,n,r,s,i){return{locale:e,key:n,warnHtmlMessage:s,onError:o=>{if(i&&i(o),process.env.NODE_ENV!=="production"){const a=Nl(r),c=`Message compilation error: ${o.message}`,_=o.location&&a&&ta(a,o.location.start.offset,o.location.end.offset),f=t.__v_emitter;f&&a&&f.emit("compile-error",{message:a,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(_?`${c}
|
|
17
|
-
${
|
|
16
|
+
*/function Ma(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_e().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_e().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_e().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const he=[];he[0]={w:[0],i:[3,0],"[":[4],o:[7]},he[1]={w:[1],".":[2],"[":[4],o:[7]},he[2]={w:[2],i:[3,0],0:[3,0]},he[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},he[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},he[5]={"'":[4,0],o:8,l:[5,0]},he[6]={'"':[4,0],o:8,l:[6,0]};const Fa=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $a(e){return Fa.test(e)}function Va(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 Ba(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 wa(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:$a(t)?Va(t):"*"+t}function Ua(e){const t=[];let n=-1,a=0,s=0,r,i,c,d,g,h,L;const N=[];N[0]=()=>{i===void 0?i=c:i+=c},N[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},N[2]=()=>{N[0](),s++},N[3]=()=>{if(s>0)s--,a=4,N[0]();else{if(s=0,i===void 0||(i=wa(i),i===!1))return!1;N[1]()}};function A(){const R=e[n+1];if(a===5&&R==="'"||a===6&&R==='"')return n++,c="\\"+R,N[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&A())){if(d=Ba(r),L=he[a],g=L[d]||L.l||8,g===8||(a=g[0],g[1]!==void 0&&(h=N[g[1]],h&&(c=r,h()===!1))))return;if(a===7)return t}}const Kt=new Map;function Wa(e,t){return $(e)?e[t]:null}function Ha(e,t){if(!$(e))return null;let n=Kt.get(t);if(n||(n=Ua(t),n&&Kt.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const i=s[n[r]];if(i===void 0||W(s))return null;s=i,r++}return s}const Ga=e=>e,Ya=e=>"",Ka="text",Xa=e=>e.length===0?"":zn(e),ja=xn;function Xt(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qa(e){const t=Q(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Q(e.named.count)||Q(e.named.n))?Q(e.named.count)?e.named.count:Q(e.named.n)?e.named.n:t:t}function Ja(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Qa(e={}){const t=e.locale,n=qa(e),a=$(e.pluralRules)&&k(t)&&W(e.pluralRules[t])?e.pluralRules[t]:Xt,s=$(e.pluralRules)&&k(t)&&W(e.pluralRules[t])?Xt:void 0,r=f=>f[a(n,f.length,s)],i=e.list||[],c=f=>i[f],d=e.named||{};Q(e.pluralIndex)&&Ja(n,d);const g=f=>d[f];function h(f){const p=W(e.messages)?e.messages(f):$(e.messages)?e.messages[f]:!1;return p||(e.parent?e.parent.message(f):Ya)}const L=f=>e.modifiers?e.modifiers[f]:Ga,N=F(e.processor)&&W(e.processor.normalize)?e.processor.normalize:Xa,A=F(e.processor)&&W(e.processor.interpolate)?e.processor.interpolate:ja,R=F(e.processor)&&k(e.processor.type)?e.processor.type:Ka,v={list:c,named:g,plural:r,linked:(f,...p)=>{const[T,E]=p;let y="text",O="";p.length===1?$(T)?(O=T.modifier||O,y=T.type||y):k(T)&&(O=T||O):p.length===2&&(k(T)&&(O=T||O),k(E)&&(y=E||y));const S=h(f)(v),I=y==="vnode"&&X(S)&&O?S[0]:S;return O?L(O)(I,y):I},message:h,type:R,interpolate:A,normalize:N,values:Z({},i,d)};return v}let Ke=null;function Za(e){Ke=e}function xa(e,t,n){Ke&&Ke.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const za=er("function:translate");function er(e){return t=>Ke&&Ke.emit(e,t)}const z={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},tr={[z.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[z.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[z.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[z.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[z.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[z.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return ft(tr[e],...t)}const jt=D.__EXTEND_POINT__,Ce=mt(jt),q={INVALID_ARGUMENT:jt,INVALID_DATE_ARGUMENT:Ce(),INVALID_ISO_DATE_ARGUMENT:Ce(),NOT_SUPPORT_NON_STRING_MESSAGE:Ce(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ce(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ce(),NOT_SUPPORT_LOCALE_TYPE:Ce(),__EXTEND_POINT__:Ce()};function ce(e){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:nr}:void 0)}const nr={[q.INVALID_ARGUMENT]:"Invalid arguments",[q.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[q.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[q.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[q.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Et(e,t){return t.locale!=null?qt(t.locale):qt(e.locale)}let gt;function qt(e){if(k(e))return e;if(W(e)){if(e.resolvedOnce&>!=null)return gt;if(e.constructor.name==="Function"){const t=e();if(Zn(t))throw ce(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return gt=t}else throw ce(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ce(q.NOT_SUPPORT_LOCALE_TYPE)}function ar(e,t,n){return[...new Set([n,...X(t)?t:$(t)?Object.keys(t):k(t)?[t]:[n]])]}function Jt(e,t,n){const a=k(n)?n:Xe,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let i=[n];for(;X(i);)i=Qt(r,i,t);const c=X(t)||!F(t)?t:t.default?t.default:null;i=k(c)?[c]:c,X(i)&&Qt(r,i,!1),s.__localeChainCache.set(a,r)}return r}function Qt(e,t,n){let a=!0;for(let s=0;s<t.length&&U(a);s++){const r=t[s];k(r)&&(a=rr(e,t[s],n))}return a}function rr(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=lr(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function lr(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(X(n)||F(n))&&n[s]&&(a=n[s])}return a}const or="9.9.0",ot=-1,Xe="en-US",st="",Zt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sr(){return{upper:(e,t)=>t==="text"&&k(e)?e.toUpperCase():t==="vnode"&&$(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&k(e)?e.toLowerCase():t==="vnode"&&$(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&k(e)?Zt(e):t==="vnode"&&$(e)&&"__v_isVNode"in e?Zt(e.children):e}}let xt;function zt(e){xt=e}let en;function ir(e){en=e}let tn;function cr(e){tn=e}let nn=null;const ur=e=>{nn=e},dr=()=>nn;let an=null;const rn=e=>{an=e},fr=()=>an;let ln=0;function mr(e={}){const t=W(e.onWarn)?e.onWarn:ge,n=k(e.version)?e.version:or,a=k(e.locale)||W(e.locale)?e.locale:Xe,s=W(a)?Xe:a,r=X(e.fallbackLocale)||F(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=F(e.messages)?e.messages:{[s]:{}},c=F(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},d=F(e.numberFormats)?e.numberFormats:{[s]:{}},g=Z({},e.modifiers||{},sr()),h=e.pluralRules||{},L=W(e.missing)?e.missing:null,N=U(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,A=U(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,R=!!e.fallbackFormat,P=!!e.unresolving,v=W(e.postTranslation)?e.postTranslation:null,f=F(e.processor)?e.processor:null,p=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,E=W(e.messageCompiler)?e.messageCompiler:xt;process.env.NODE_ENV!=="production"&&W(e.messageCompiler)&&ta(Oe(z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const y=W(e.messageResolver)?e.messageResolver:en||Wa,O=W(e.localeFallbacker)?e.localeFallbacker:tn||ar,S=$(e.fallbackContext)?e.fallbackContext:void 0,I=e,w=$(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,G=$(I.__numberFormatters)?I.__numberFormatters:new Map,oe=$(I.__meta)?I.__meta:{};ln++;const J={version:n,cid:ln,locale:a,fallbackLocale:r,messages:i,modifiers:g,pluralRules:h,missing:L,missingWarn:N,fallbackWarn:A,fallbackFormat:R,unresolving:P,postTranslation:v,processor:f,warnHtmlMessage:p,escapeParameter:T,messageCompiler:E,messageResolver:y,localeFallbacker:O,fallbackContext:S,onWarn:t,__meta:oe};return J.datetimeFormats=c,J.numberFormats=d,J.__datetimeFormatters=w,J.__numberFormatters=G,process.env.NODE_ENV!=="production"&&(J.__v_emitter=I.__v_emitter!=null?I.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&xa(J,n,oe),J}function it(e,t){return e instanceof RegExp?e.test(t):e}function on(e,t){return e instanceof RegExp?e.test(t):e}function Nt(e,t,n,a,s){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const c=r(e,n,t,s);return k(c)?c:t}else return process.env.NODE_ENV!=="production"&&on(a,t)&&i(Oe(z.NOT_FOUND_KEY,{key:t,locale:n})),t}function je(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ht(e){return n=>_r(n,e)}function _r(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,s=a.c||a.cases;return e.plural(s.reduce((r,i)=>[...r,sn(e,i)],[]))}else return sn(e,n)}function sn(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const a=(t.i||t.items).reduce((s,r)=>[...s,bt(e,r)],[]);return e.normalize(a)}}function bt(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const s=t;return s.v||s.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const c=t,d=c.m||c.modifier;return e.linked(bt(e,c.k||c.key),d?bt(e,d):void 0,e.type);case 7:const g=t;return g.v||g.value;case 8:const h=t;return h.v||h.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const pr="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function cn(e,t){t&&ua(e)&&ge(ft(pr,{source:e}))}const un=e=>e;let Ve=Object.create(null);const ye=e=>$(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function dn(e,t={}){let n=!1;const a=t.onError||ia;return t.onError=s=>{n=!0,a(s)},{...Ra(e,t),detectError:n}}const Er=(e,t)=>{if(!k(e))throw ce(q.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&cn(e,n);const s=(t.onCacheKey||un)(e),r=Ve[s];if(r)return r;const{code:i,detectError:c}=dn(e,t),d=new Function(`return ${i}`)();return c?d:Ve[s]=d}};function gr(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&cn(e,n);const s=(t.onCacheKey||un)(e),r=Ve[s];if(r)return r;const{ast:i,detectError:c}=dn(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),d=ht(i);return c?d:Ve[s]=d}else{if(process.env.NODE_ENV!=="production"&&!ye(e))return ge(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const a=Ve[n];return a||(Ve[n]=ht(e))}else return ht(e)}}const fn=()=>"",ae=e=>W(e);function mn(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:i,messages:c}=e,[d,g]=Tt(...t),h=U(g.missingWarn)?g.missingWarn:e.missingWarn,L=U(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn,N=U(g.escapeParameter)?g.escapeParameter:e.escapeParameter,A=!!g.resolvedMessage,R=k(g.default)||U(g.default)?U(g.default)?r?d:()=>d:g.default:n?r?d:()=>d:"",P=n||R!=="",v=Et(e,g);N&&Nr(g);let[f,p,T]=A?[d,v,c[v]||{}]:_n(e,d,v,i,L,h),E=f,y=d;if(!A&&!(k(E)||ye(E)||ae(E))&&P&&(E=R,y=E),!A&&(!(k(E)||ye(E)||ae(E))||!k(p)))return s?ot:d;if(process.env.NODE_ENV!=="production"&&k(E)&&e.messageCompiler==null)return ge(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${d}'.`),d;let O=!1;const S=()=>{O=!0},I=ae(E)?E:pn(e,d,p,E,y,S);if(O)return E;const w=Ir(e,p,T,g),G=Qa(w),oe=hr(e,I,G),J=a?a(oe,d):oe;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const le={timestamp:Date.now(),key:k(d)?d:ae(E)?E.key:"",locale:p||(ae(E)?E.locale:""),format:k(E)?E:ae(E)?E.source:"",message:J};le.meta=Z({},e.__meta,dr()||{}),za(le)}return J}function Nr(e){X(e.list)?e.list=e.list.map(t=>k(t)?Mt(t):t):$(e.named)&&Object.keys(e.named).forEach(t=>{k(e.named[t])&&(e.named[t]=Mt(e.named[t]))})}function _n(e,t,n,a,s,r){const{messages:i,onWarn:c,messageResolver:d,localeFallbacker:g}=e,h=g(e,a,n);let L={},N,A=null,R=n,P=null;const v="translate";for(let f=0;f<h.length;f++){if(N=P=h[f],process.env.NODE_ENV!=="production"&&n!==N&&it(s,t)&&c(Oe(z.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const O=e.__v_emitter;O&&O.emit("fallback",{type:v,key:t,from:R,to:P,groupId:`${v}:${t}`})}L=i[N]||{};let p=null,T,E;if(process.env.NODE_ENV!=="production"&&fe&&(p=window.performance.now(),T="intlify-message-resolve-start",E="intlify-message-resolve-end",te&&te(T)),(A=d(L,t))===null&&(A=L[t]),process.env.NODE_ENV!=="production"&&fe){const O=window.performance.now(),S=e.__v_emitter;S&&p&&A&&S.emit("message-resolve",{type:"message-resolve",key:t,message:A,time:O-p,groupId:`${v}:${t}`}),T&&E&&te&&Le&&(te(E),Le("intlify message resolve",T,E))}if(k(A)||ye(A)||ae(A))break;const y=Nt(e,t,N,r,v);y!==t&&(A=y),R=P}return[A,N,L]}function pn(e,t,n,a,s,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ae(a)){const N=a;return N.locale=N.locale||n,N.key=N.key||t,N}if(i==null){const N=()=>a;return N.locale=n,N.key=t,N}let d=null,g,h;process.env.NODE_ENV!=="production"&&fe&&(d=window.performance.now(),g="intlify-message-compilation-start",h="intlify-message-compilation-end",te&&te(g));const L=i(a,br(e,n,s,a,c,r));if(process.env.NODE_ENV!=="production"&&fe){const N=window.performance.now(),A=e.__v_emitter;A&&d&&A.emit("message-compilation",{type:"message-compilation",message:a,time:N-d,groupId:`translate:${t}`}),g&&h&&te&&Le&&(te(h),Le("intlify message compilation",g,h))}return L.locale=n,L.key=t,L.source=a,L}function hr(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&fe&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",te&&te(s));const i=t(n);if(process.env.NODE_ENV!=="production"&&fe){const c=window.performance.now(),d=e.__v_emitter;d&&a&&d.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-a,groupId:`translate:${t.key}`}),s&&r&&te&&Le&&(te(r),Le("intlify message evaluation",s,r))}return i}function Tt(...e){const[t,n,a]=e,s={};if(!k(t)&&!Q(t)&&!ae(t)&&!ye(t))throw ce(q.INVALID_ARGUMENT);const r=Q(t)?String(t):(ae(t),t);return Q(n)?s.plural=n:k(n)?s.default=n:F(n)&&!nt(n)?s.named=n:X(n)&&(s.list=n),Q(a)?s.plural=a:k(a)?s.default=a:F(a)&&Z(s,a),[r,s]}function br(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=Tr(a),d=`Message compilation error: ${i.message}`,g=i.location&&c&&ea(c,i.location.start.offset,i.location.end.offset),h=e.__v_emitter;h&&c&&h.emit("compile-error",{message:c,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(g?`${d}
|
|
17
|
+
${g}`:d)}else throw i},onCacheKey:i=>jn(t,n,i)}}function Tr(e){if(k(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Ir(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:d,missingWarn:g,fallbackContext:h}=e,N={locale:t,modifiers:s,pluralRules:r,messages:A=>{let R=i(n,A);if(R==null&&h){const[,,P]=_n(h,A,t,c,d,g);R=i(P,A)}if(k(R)||ye(R)){let P=!1;const f=pn(e,A,t,R,A,()=>{P=!0});return P?fn:f}else return ae(R)?R:fn}};return e.processor&&(N.processor=e.processor),a.list&&(N.list=a.list),a.named&&(N.named=a.named),Q(a.plural)&&(N.pluralIndex=a.plural),N}const En=typeof Intl<"u",gn={dateTimeFormat:En&&typeof Intl.DateTimeFormat<"u",numberFormat:En&&typeof Intl.NumberFormat<"u"};function Nn(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!gn.dateTimeFormat)return r(Oe(z.CANNOT_FORMAT_DATE)),st;const[d,g,h,L]=It(...t),N=U(h.missingWarn)?h.missingWarn:e.missingWarn,A=U(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,R=!!h.part,P=Et(e,h),v=i(e,s,P);if(!k(d)||d==="")return new Intl.DateTimeFormat(P,L).format(g);let f={},p,T=null,E=P,y=null;const O="datetime format";for(let w=0;w<v.length;w++){if(p=y=v[w],process.env.NODE_ENV!=="production"&&P!==p&&it(A,d)&&r(Oe(z.FALLBACK_TO_DATE_FORMAT,{key:d,target:p})),process.env.NODE_ENV!=="production"&&P!==p){const G=e.__v_emitter;G&&G.emit("fallback",{type:O,key:d,from:E,to:y,groupId:`${O}:${d}`})}if(f=n[p]||{},T=f[d],F(T))break;Nt(e,d,p,N,O),E=y}if(!F(T)||!k(p))return a?ot:d;let S=`${p}__${d}`;nt(L)||(S=`${S}__${JSON.stringify(L)}`);let I=c.get(S);return I||(I=new Intl.DateTimeFormat(p,Z({},T,L)),c.set(S,I)),R?I.formatToParts(g):I.format(g)}const hn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function It(...e){const[t,n,a,s]=e,r={};let i={},c;if(k(t)){const d=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!d)throw ce(q.INVALID_ISO_DATE_ARGUMENT);const g=d[3]?d[3].trim().startsWith("T")?`${d[1].trim()}${d[3].trim()}`:`${d[1].trim()}T${d[3].trim()}`:d[1].trim();c=new Date(g);try{c.toISOString()}catch{throw ce(q.INVALID_ISO_DATE_ARGUMENT)}}else if(Jn(t)){if(isNaN(t.getTime()))throw ce(q.INVALID_DATE_ARGUMENT);c=t}else if(Q(t))c=t;else throw ce(q.INVALID_ARGUMENT);return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(d=>{hn.includes(d)?i[d]=n[d]:r[d]=n[d]}),k(a)?r.locale=a:F(a)&&(i=a),F(s)&&(i=s),[r.key||"",c,r,i]}function bn(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function Tn(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!gn.numberFormat)return r(Oe(z.CANNOT_FORMAT_NUMBER)),st;const[d,g,h,L]=Lt(...t),N=U(h.missingWarn)?h.missingWarn:e.missingWarn,A=U(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,R=!!h.part,P=Et(e,h),v=i(e,s,P);if(!k(d)||d==="")return new Intl.NumberFormat(P,L).format(g);let f={},p,T=null,E=P,y=null;const O="number format";for(let w=0;w<v.length;w++){if(p=y=v[w],process.env.NODE_ENV!=="production"&&P!==p&&it(A,d)&&r(Oe(z.FALLBACK_TO_NUMBER_FORMAT,{key:d,target:p})),process.env.NODE_ENV!=="production"&&P!==p){const G=e.__v_emitter;G&&G.emit("fallback",{type:O,key:d,from:E,to:y,groupId:`${O}:${d}`})}if(f=n[p]||{},T=f[d],F(T))break;Nt(e,d,p,N,O),E=y}if(!F(T)||!k(p))return a?ot:d;let S=`${p}__${d}`;nt(L)||(S=`${S}__${JSON.stringify(L)}`);let I=c.get(S);return I||(I=new Intl.NumberFormat(p,Z({},T,L)),c.set(S,I)),R?I.formatToParts(g):I.format(g)}const In=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Lt(...e){const[t,n,a,s]=e,r={};let i={};if(!Q(t))throw ce(q.INVALID_ARGUMENT);const c=t;return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(d=>{In.includes(d)?i[d]=n[d]:r[d]=n[d]}),k(a)?r.locale=a:F(a)&&(i=a),F(s)&&(i=s),[r.key||"",c,r,i]}function Ln(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Ma();/*!
|
|
18
18
|
* vue-i18n v9.9.0
|
|
19
19
|
* (c) 2024 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
|
-
*/const yl="9.9.0";function Ol(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ge().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ge().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ge().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ge().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ge().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ws=oe.__EXTEND_POINT__,rt=jn(Ws),ye={FALLBACK_TO_ROOT:Ws,NOT_SUPPORTED_PRESERVE:rt(),NOT_SUPPORTED_FORMATTER:rt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:rt(),NOT_SUPPORTED_GET_CHOICE_INDEX:rt(),COMPONENT_NAME_LEGACY_COMPATIBLE:rt(),NOT_FOUND_PARENT_SCOPE:rt(),IGNORE_OBJ_FLATTEN:rt(),NOTICE_DROP_ALLOW_COMPOSITION:rt()},Cl={[ye.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ye.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[ye.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[ye.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[ye.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[ye.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[ye.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ye.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ye.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function rr(t,...e){return Kn(Cl[t],...e)}const xs=ee.__EXTEND_POINT__,de=jn(xs),q={UNEXPECTED_RETURN_TYPE:xs,INVALID_ARGUMENT:de(),MUST_BE_CALL_SETUP_TOP:de(),NOT_INSTALLED:de(),NOT_AVAILABLE_IN_LEGACY_MODE:de(),REQUIRED_VALUE:de(),INVALID_VALUE:de(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:de(),NOT_INSTALLED_WITH_PROVIDE:de(),UNEXPECTED_ERROR:de(),NOT_COMPATIBLE_LEGACY_VUE_I18N:de(),BRIDGE_SUPPORT_VUE_2_ONLY:de(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:de(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:de(),__EXTEND_POINT__:de()};function st(t,...e){return Lt(t,null,process.env.NODE_ENV!=="production"?{messages:Ll,args:e}:void 0)}const Ll={[q.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[q.INVALID_ARGUMENT]:"Invalid argument",[q.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[q.NOT_INSTALLED]:"Need to install with `app.use` function",[q.UNEXPECTED_ERROR]:"Unexpected error",[q.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[q.REQUIRED_VALUE]:"Required in value: {0}",[q.INVALID_VALUE]:"Invalid value",[q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[q.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[q.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[q.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[q.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},sr=je("__translateVNode"),ir=je("__datetimeParts"),or=je("__numberParts"),ar=je("__enableEmitter"),lr=je("__disableEmitter"),Il=je("__setPluralRules"),Ys=je("__injectWithOption"),cr=je("__dispose");function en(t){if(!W(t))return t;for(const e in t)if(mn(t,e))if(!e.includes("."))W(t[e])&&en(t[e]);else{const n=e.split("."),r=n.length-1;let s=t,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]={}),!W(s[n[o]])){process.env.NODE_ENV!=="production"&&et(rr(ye.IGNORE_OBJ_FLATTEN,{key:n[o]})),i=!0;break}s=s[n[o]]}i||(s[n[r]]=t[e],delete t[e]),W(s[n[r]])&&en(s[n[r]])}return t}function ur(t,e){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=e,o=B(n)?n:J(r)?{}:{[t]:{}};if(J(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:_}=a;c?(o[c]=o[c]||{},pn(_,o[c])):pn(_,o)}else P(a)&&pn(JSON.parse(a),o)}),s==null&&i)for(const a in o)mn(o,a)&&en(o[a]);return o}function Ks(t){return t.type}function Sl(t,e,n){let r=W(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=ur(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(W(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(W(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function js(t){return l.createVNode(l.Text,null,t,0)}const Gs="__INTLIFY_META__",Xs=()=>[],Dl=()=>!1;let qs=0;function zs(t){return(e,n,r,s)=>t(n,r,l.getCurrentInstance()||void 0,s)}const kl=()=>{const t=l.getCurrentInstance();let e=null;return t&&(e=Ks(t)[Gs])?{[Gs]:e}:null};function wl(t={},e){const{__root:n,__injectWithOption:r}=t,s=n===void 0,i=t.flatJson,o=Ke?l.ref:l.shallowRef;let a=j(t.inheritLocale)?t.inheritLocale:!0;const c=o(n&&a?n.locale.value:P(t.locale)?t.locale:Jt),_=o(n&&a?n.fallbackLocale.value:P(t.fallbackLocale)||J(t.fallbackLocale)||B(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),f=o(ur(c.value,t)),v=o(B(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),E=o(B(t.numberFormats)?t.numberFormats:{[c.value]:{}});let N=n?n.missingWarn:j(t.missingWarn)||Ct(t.missingWarn)?t.missingWarn:!0,k=n?n.fallbackWarn:j(t.fallbackWarn)||Ct(t.fallbackWarn)?t.fallbackWarn:!0,L=n?n.fallbackRoot:j(t.fallbackRoot)?t.fallbackRoot:!0,I=!!t.fallbackFormat,m=G(t.missing)?t.missing:null,p=G(t.missing)?zs(t.missing):null,T=G(t.postTranslation)?t.postTranslation:null,h=n?n.warnHtmlMessage:j(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const y=n?n.modifiers:B(t.modifiers)?t.modifiers:{};let D=t.pluralRules||n&&n.pluralRules,O;O=(()=>{s&&As(null);const b={version:yl,locale:c.value,fallbackLocale:_.value,messages:f.value,modifiers:y,pluralRules:D,missing:p===null?void 0:p,missingWarn:N,fallbackWarn:k,fallbackFormat:I,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:h,escapeParameter:C,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=v.value,b.numberFormats=E.value,b.__datetimeFormatters=B(O)?O.__datetimeFormatters:void 0,b.__numberFormatters=B(O)?O.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=B(O)?O.__v_emitter:void 0);const S=ml(b);return s&&As(S),S})(),Zt(O,c.value,_.value);function F(){return[c.value,_.value,f.value,v.value,E.value]}const Y=l.computed({get:()=>c.value,set:b=>{c.value=b,O.locale=c.value}}),x=l.computed({get:()=>_.value,set:b=>{_.value=b,O.fallbackLocale=_.value,Zt(O,c.value,b)}}),K=l.computed(()=>f.value),_e=l.computed(()=>v.value),ve=l.computed(()=>E.value);function X(){return G(T)?T:null}function te(b){T=b,O.postTranslation=b}function He(){return m}function me(b){b!==null&&(p=zs(b)),m=b,O.missing=p}function We(b,S){return b!=="translate"||!S.resolvedMessage}const ce=(b,S,U,Q,yt,Yn)=>{F();let zt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(O.fallbackContext=n?_l():void 0),zt=b(O)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(O.fallbackContext=void 0)}if(U!=="translate exists"&&re(zt)&&zt===En||U==="translate exists"&&!zt){const[Ot,nh]=S();if(process.env.NODE_ENV!=="production"&&n&&P(Ot)&&We(U,nh)&&(L&&(bn(k,Ot)||Os(N,Ot))&&et(rr(ye.FALLBACK_TO_ROOT,{key:Ot,type:U})),process.env.NODE_ENV!=="production")){const{__v_emitter:Vo}=O;Vo&&L&&Vo.emit("fallback",{type:U,key:Ot,to:"global",groupId:`${U}:${Ot}`})}return n&&L?Q(n):yt(Ot)}else{if(Yn(zt))return zt;throw st(q.UNEXPECTED_RETURN_TYPE)}};function Se(...b){return ce(S=>Reflect.apply(ks,null,[S,...b]),()=>er(...b),"translate",S=>Reflect.apply(S.t,S,[...b]),S=>S,S=>P(S))}function xe(...b){const[S,U,Q]=b;if(Q&&!W(Q))throw st(q.INVALID_ARGUMENT);return Se(S,U,se({resolvedMessage:!0},Q||{}))}function Te(...b){return ce(S=>Reflect.apply(Ms,null,[S,...b]),()=>tr(...b),"datetime format",S=>Reflect.apply(S.d,S,[...b]),()=>gn,S=>P(S))}function he(...b){return ce(S=>Reflect.apply(Bs,null,[S,...b]),()=>nr(...b),"number format",S=>Reflect.apply(S.n,S,[...b]),()=>gn,S=>P(S))}function we(b){return b.map(S=>P(S)||re(S)||j(S)?js(String(S)):S)}const ue={normalize:we,interpolate:b=>b,type:"vnode"};function Pe(...b){return ce(S=>{let U;const Q=S;try{Q.processor=ue,U=Reflect.apply(ks,null,[Q,...b])}finally{Q.processor=null}return U},()=>er(...b),"translate",S=>S[sr](...b),S=>[js(S)],S=>J(S))}function Ye(...b){return ce(S=>Reflect.apply(Bs,null,[S,...b]),()=>nr(...b),"number format",S=>S[or](...b),Xs,S=>P(S)||J(S))}function $e(...b){return ce(S=>Reflect.apply(Ms,null,[S,...b]),()=>tr(...b),"datetime format",S=>S[ir](...b),Xs,S=>P(S)||J(S))}function At(b){D=b,O.pluralRules=D}function d(b,S){return ce(()=>{if(!b)return!1;const U=P(S)?S:c.value,Q=w(U),yt=O.messageResolver(Q,b);return ht(yt)||Ae(yt)||P(yt)},()=>[b],"translate exists",U=>Reflect.apply(U.te,U,[b,S]),Dl,U=>j(U))}function u(b){let S=null;const U=ms(O,_.value,c.value);for(let Q=0;Q<U.length;Q++){const yt=f.value[U[Q]]||{},Yn=O.messageResolver(yt,b);if(Yn!=null){S=Yn;break}}return S}function g(b){const S=u(b);return S??(n?n.tm(b)||{}:{})}function w(b){return f.value[b]||{}}function V(b,S){if(i){const U={[b]:S};for(const Q in U)mn(U,Q)&&en(U[Q]);S=U[b]}f.value[b]=S,O.messages=f.value}function H(b,S){f.value[b]=f.value[b]||{};const U={[b]:S};for(const Q in U)mn(U,Q)&&en(U[Q]);S=U[b],pn(S,f.value[b]),O.messages=f.value}function De(b){return v.value[b]||{}}function ne(b,S){v.value[b]=S,O.datetimeFormats=v.value,Fs(O,b,S)}function qt(b,S){v.value[b]=se(v.value[b]||{},S),O.datetimeFormats=v.value,Fs(O,b,S)}function Wn(b){return E.value[b]||{}}function xn(b,S){E.value[b]=S,O.numberFormats=E.value,Hs(O,b,S)}function fn(b,S){E.value[b]=se(E.value[b]||{},S),O.numberFormats=E.value,Hs(O,b,S)}qs++,n&&Ke&&(l.watch(n.locale,b=>{a&&(c.value=b,O.locale=b,Zt(O,c.value,_.value))}),l.watch(n.fallbackLocale,b=>{a&&(_.value=b,O.fallbackLocale=b,Zt(O,c.value,_.value))}));const z={id:qs,locale:Y,fallbackLocale:x,get inheritLocale(){return a},set inheritLocale(b){a=b,b&&n&&(c.value=n.locale.value,_.value=n.fallbackLocale.value,Zt(O,c.value,_.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return y},get pluralRules(){return D||{}},get isGlobal(){return s},get missingWarn(){return N},set missingWarn(b){N=b,O.missingWarn=N},get fallbackWarn(){return k},set fallbackWarn(b){k=b,O.fallbackWarn=k},get fallbackRoot(){return L},set fallbackRoot(b){L=b},get fallbackFormat(){return I},set fallbackFormat(b){I=b,O.fallbackFormat=I},get warnHtmlMessage(){return h},set warnHtmlMessage(b){h=b,O.warnHtmlMessage=b},get escapeParameter(){return C},set escapeParameter(b){C=b,O.escapeParameter=b},t:Se,getLocaleMessage:w,setLocaleMessage:V,mergeLocaleMessage:H,getPostTranslationHandler:X,setPostTranslationHandler:te,getMissingHandler:He,setMissingHandler:me,[Il]:At};return z.datetimeFormats=_e,z.numberFormats=ve,z.rt=xe,z.te=d,z.tm=g,z.d=Te,z.n=he,z.getDateTimeFormat=De,z.setDateTimeFormat=ne,z.mergeDateTimeFormat=qt,z.getNumberFormat=Wn,z.setNumberFormat=xn,z.mergeNumberFormat=fn,z[Ys]=r,z[sr]=Pe,z[ir]=$e,z[or]=Ye,process.env.NODE_ENV!=="production"&&(z[ar]=b=>{O.__v_emitter=b},z[lr]=()=>{O.__v_emitter=void 0}),z}const dr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Pl({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,s)=>[...r,...s.type===l.Fragment?s.children:[s]],[]):e.reduce((n,r)=>{const s=t[r];return s&&(n[r]=s()),n},{})}function Qs(t){return l.Fragment}se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>re(t)||!isNaN(t)}},dr);function $l(t){return J(t)&&!P(t[0])}function Js(t,e,n,r){const{slots:s,attrs:i}=e;return()=>{const o={part:!0};let a={};t.locale&&(o.locale=t.locale),P(t.format)?o.key=t.format:W(t.format)&&(P(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((E,N)=>n.includes(N)?se({},E,{[N]:t.format[N]}):E,{}));const c=r(t.value,o,a);let _=[o.key];J(c)?_=c.map((E,N)=>{const k=s[E.type],L=k?k({[E.type]:E.value,index:N,parts:c}):[E.value];return $l(L)&&(L[0].key=`${E.type}-${N}`),L}):P(c)&&(_=[c]);const f=se({},i),v=P(t.tag)||W(t.tag)?t.tag:Qs();return l.h(v,f,_)}}se({value:{type:Number,required:!0},format:{type:[String,Object]}},dr),se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},dr);function Zs(t,e){}const Rl=je("global-vue-i18n");function vn(t={}){const e=l.getCurrentInstance();if(e==null)throw st(q.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw st(q.NOT_INSTALLED);const n=Ml(e),r=Fl(n),s=Ks(e),i=Vl(t,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw st(q.NOT_AVAILABLE_IN_LEGACY_MODE);return Wl(e,i,r,t)}if(i==="global")return Sl(r,t,s),r;if(i==="parent"){let c=Bl(n,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&et(rr(ye.NOT_FOUND_PARENT_SCOPE)),c=r),c}const o=n;let a=o.__getInstance(e);if(a==null){const c=se({},t);"__i18n"in s&&(c.__i18n=s.__i18n),r&&(c.__root=r),a=wl(c),o.__composerExtend&&(a[cr]=o.__composerExtend(a)),Hl(o,e,a),o.__setInstance(e,a)}return a}function Ml(t){{const e=l.inject(t.isCE?Rl:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw st(t.isCE?q.NOT_INSTALLED_WITH_PROVIDE:q.UNEXPECTED_ERROR);return e}}function Vl(t,e){return _n(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Fl(t){return t.mode==="composition"?t.global:t.global.__composer}function Bl(t,e,n=!1){let r=null;const s=e.root;let i=Ul(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[Ys]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function Ul(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function Hl(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=ra();const s=n;s[ar]&&s[ar](r),r.on("*",Zs)}},e),l.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Zs),s[lr]&&s[lr](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=s[cr];i&&(i(),delete s[cr])},e)}function Wl(t,e,n,r={}){const s=e==="local",i=l.shallowRef(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw st(q.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=j(r.inheritLocale)?r.inheritLocale:!P(r.locale),a=l.ref(!s||o?n.locale.value:P(r.locale)?r.locale:Jt),c=l.ref(!s||o?n.fallbackLocale.value:P(r.fallbackLocale)||J(r.fallbackLocale)||B(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),_=l.ref(ur(a.value,r)),f=l.ref(B(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),v=l.ref(B(r.numberFormats)?r.numberFormats:{[a.value]:{}}),E=s?n.missingWarn:j(r.missingWarn)||Ct(r.missingWarn)?r.missingWarn:!0,N=s?n.fallbackWarn:j(r.fallbackWarn)||Ct(r.fallbackWarn)?r.fallbackWarn:!0,k=s?n.fallbackRoot:j(r.fallbackRoot)?r.fallbackRoot:!0,L=!!r.fallbackFormat,I=G(r.missing)?r.missing:null,m=G(r.postTranslation)?r.postTranslation:null,p=s?n.warnHtmlMessage:j(r.warnHtmlMessage)?r.warnHtmlMessage:!0,T=!!r.escapeParameter,h=s?n.modifiers:B(r.modifiers)?r.modifiers:{},C=r.pluralRules||s&&n.pluralRules;function y(){return[a.value,c.value,_.value,f.value,v.value]}const D=l.computed({get:()=>i.value?i.value.locale.value:a.value,set:u=>{i.value&&(i.value.locale.value=u),a.value=u}}),O=l.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:u=>{i.value&&(i.value.fallbackLocale.value=u),c.value=u}}),M=l.computed(()=>i.value?i.value.messages.value:_.value),F=l.computed(()=>f.value),Y=l.computed(()=>v.value);function x(){return i.value?i.value.getPostTranslationHandler():m}function K(u){i.value&&i.value.setPostTranslationHandler(u)}function _e(){return i.value?i.value.getMissingHandler():I}function ve(u){i.value&&i.value.setMissingHandler(u)}function X(u){return y(),u()}function te(...u){return i.value?X(()=>Reflect.apply(i.value.t,null,[...u])):X(()=>"")}function He(...u){return i.value?Reflect.apply(i.value.rt,null,[...u]):""}function me(...u){return i.value?X(()=>Reflect.apply(i.value.d,null,[...u])):X(()=>"")}function We(...u){return i.value?X(()=>Reflect.apply(i.value.n,null,[...u])):X(()=>"")}function ce(u){return i.value?i.value.tm(u):{}}function Se(u,g){return i.value?i.value.te(u,g):!1}function xe(u){return i.value?i.value.getLocaleMessage(u):{}}function Te(u,g){i.value&&(i.value.setLocaleMessage(u,g),_.value[u]=g)}function he(u,g){i.value&&i.value.mergeLocaleMessage(u,g)}function we(u){return i.value?i.value.getDateTimeFormat(u):{}}function Ze(u,g){i.value&&(i.value.setDateTimeFormat(u,g),f.value[u]=g)}function ue(u,g){i.value&&i.value.mergeDateTimeFormat(u,g)}function Pe(u){return i.value?i.value.getNumberFormat(u):{}}function Ye(u,g){i.value&&(i.value.setNumberFormat(u,g),v.value[u]=g)}function $e(u,g){i.value&&i.value.mergeNumberFormat(u,g)}const At={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:O,messages:M,datetimeFormats:F,numberFormats:Y,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(u){i.value&&(i.value.inheritLocale=u)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(_.value)},get modifiers(){return i.value?i.value.modifiers:h},get pluralRules(){return i.value?i.value.pluralRules:C},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:E},set missingWarn(u){i.value&&(i.value.missingWarn=u)},get fallbackWarn(){return i.value?i.value.fallbackWarn:N},set fallbackWarn(u){i.value&&(i.value.missingWarn=u)},get fallbackRoot(){return i.value?i.value.fallbackRoot:k},set fallbackRoot(u){i.value&&(i.value.fallbackRoot=u)},get fallbackFormat(){return i.value?i.value.fallbackFormat:L},set fallbackFormat(u){i.value&&(i.value.fallbackFormat=u)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:p},set warnHtmlMessage(u){i.value&&(i.value.warnHtmlMessage=u)},get escapeParameter(){return i.value?i.value.escapeParameter:T},set escapeParameter(u){i.value&&(i.value.escapeParameter=u)},t:te,getPostTranslationHandler:x,setPostTranslationHandler:K,getMissingHandler:_e,setMissingHandler:ve,rt:He,d:me,n:We,tm:ce,te:Se,getLocaleMessage:xe,setLocaleMessage:Te,mergeLocaleMessage:he,getDateTimeFormat:we,setDateTimeFormat:Ze,mergeDateTimeFormat:ue,getNumberFormat:Pe,setNumberFormat:Ye,mergeNumberFormat:$e};function d(u){u.locale.value=a.value,u.fallbackLocale.value=c.value,Object.keys(_.value).forEach(g=>{u.mergeLocaleMessage(g,_.value[g])}),Object.keys(f.value).forEach(g=>{u.mergeDateTimeFormat(g,f.value[g])}),Object.keys(v.value).forEach(g=>{u.mergeNumberFormat(g,v.value[g])}),u.escapeParameter=T,u.fallbackFormat=L,u.fallbackRoot=k,u.fallbackWarn=N,u.missingWarn=E,u.warnHtmlMessage=p}return l.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw st(q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=u.locale.value,c.value=u.fallbackLocale.value,_.value=u.messages.value,f.value=u.datetimeFormats.value,v.value=u.numberFormats.value):s&&d(u)}),At}if(Ol(),__INTLIFY_JIT_COMPILATION__?gs(gl):gs(El),cl(xa),ul(ms),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Ge();t.__INTLIFY__=!0,Ja(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function kt(t){const{t:e}=vn(),n=l.ref(null);function r(a){const c=t.value;c!==null&&(a!==null?c.setCustomValidity(a):c.setCustomValidity(""),n.value=s(c))}function s(a){if(a.validity.valueMissing)return e("validator.error.value_missing");if(a.validity.tooShort)return e("validator.error.too_short",[a.minLength]);if(a.validity.tooLong)return e("validator.error.too_long",[a.maxLength]);if(a.validity.rangeUnderflow)return e("validator.error.range_underflow",[a.min]);if(a.validity.rangeOverflow)return e("validator.error.range_overflow",[a.max]);if(a.validity.typeMismatch){if(a.type==="email")return e("validator.error.type_mismatch.email");if(a.type==="url")return e("validator.error.type_mismatch.url")}if(a.validity.badInput){if(a.type==="number")return e("validator.error.bad_input.number");if(a.type==="date")return e("validator.error.bad_input.date")}if(a.validity.patternMismatch)return e("validator.error.pattern_mismatch");if(a.validity.stepMismatch){const c=Math.floor(Number(a.value)/Number(a.step))*Number(a.step),_=Math.ceil(Number(a.value)/Number(a.step))*Number(a.step);return e("validator.error.step_mismatch",[c,_])}return a.validity.customError?a.validationMessage:null}function i(a){a.target!==null&&(n.value=s(a.target))}function o(){return n.value}return{onInvalid:i,getInvalidMessage:o,setCustomError:r}}const xl=l.defineComponent({name:"BsInput",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=l.ref(null);return{inputRef:t,validator:kt(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const e=t.target;this.$emit("update:modelValue",e.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Yl=["for","textContent"],Kl=["id","value","aria-describedby"],jl=["textContent"],Gl=["id","textContent"];function Xl(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock(l.Fragment,null,[t.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:l.toDisplayString(t.label)},null,8,Yl)):l.createCommentVNode("",!0),l.createElementVNode("input",l.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue,class:"form-control"},t.$attrs,{"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:e[0]||(e[0]=(...o)=>t.onInput&&t.onInput(...o)),onInvalid:e[1]||(e[1]=(...o)=>t.onInvalid&&t.onInvalid(...o))}),null,16,Kl),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(t.validator.getInvalidMessage())},null,8,jl)):l.createCommentVNode("",!0),t.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:l.toDisplayString(t.hint)},null,8,Gl)):l.createCommentVNode("",!0)],64)}const ql=Ne(xl,[["render",Xl]]),zl=l.defineComponent({name:"BsCheckbox",props:{value:{type:String,default:null},modelValue:{type:[Array,Boolean],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=l.ref(null);return{inputRef:t,validator:kt(t)}},computed:{isChecked(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===!0}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const n=t.target.checked;if(this.modelValue instanceof Array){const r=[...this.modelValue];n?r.push(this.value):r.splice(r.indexOf(this.value),1),this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",n)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Ql=["id","value","checked","aria-describedby"],Jl=["for","textContent"],Zl=["textContent"],ec=["id","textContent"];function tc(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",t.classContainer])},[l.createElementVNode("input",l.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{type:"checkbox",class:"form-check-input",checked:t.isChecked,"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:e[0]||(e[0]=(...o)=>t.onInput&&t.onInput(...o)),onInvalid:e[1]||(e[1]=(...o)=>t.onInvalid&&t.onInvalid(...o))}),null,16,Ql),t.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:t.id,class:"form-check-label",textContent:l.toDisplayString(t.label)},null,8,Jl)):l.createCommentVNode("",!0),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(t.validator.getInvalidMessage())},null,8,Zl)):l.createCommentVNode("",!0),t.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:l.toDisplayString(t.hint)},null,8,ec)):l.createCommentVNode("",!0)],2)}const nc=Ne(zl,[["render",tc]]),rc=l.defineComponent({name:"BsTextarea",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=l.ref(null);return{inputRef:t,validator:kt(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const e=t.target;this.$emit("update:modelValue",e.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),sc=["for","textContent"],ic=["id","value","aria-describedby"],oc=["textContent"],ac=["id","textContent"];function lc(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock(l.Fragment,null,[t.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:l.toDisplayString(t.label)},null,8,sc)):l.createCommentVNode("",!0),l.createElementVNode("textarea",l.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{class:"form-control","aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:e[0]||(e[0]=(...o)=>t.onInput&&t.onInput(...o)),onInvalid:e[1]||(e[1]=(...o)=>t.onInvalid&&t.onInvalid(...o))}),null,16,ic),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(t.validator.getInvalidMessage())},null,8,oc)):l.createCommentVNode("",!0),t.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:l.toDisplayString(t.hint)},null,8,ac)):l.createCommentVNode("",!0)],64)}const cc=Ne(rc,[["render",lc]]),uc=l.defineComponent({name:"BsPaginator",props:{totalCount:{type:Number,required:!0},pageSize:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxVisiblePage:{type:Number,default:5},firstPageLabel:{type:String,default:"«"},previousPageLabel:{type:String,default:"‹"},nextPageLabel:{type:String,default:"›"},lastPageLabel:{type:String,default:"»"}},emits:["pageChanged"],methods:{getPageCount(){return Math.ceil(this.totalCount/this.pageSize)},getVisiblePages(){const t=[],e=this.getPageRange();for(let n=e.beginPage;n<=e.endPage;n+=1)t.push(n+1);return t},isPageActive(t){return t===this.currentPage},onPageClick(t){this.isPageActive(t)||this.$emit("pageChanged",t)},getPageRange(){let t=Math.max(0,this.currentPage-this.maxVisiblePage/2),e=t+this.maxVisiblePage-1;return e>=this.getPageCount()&&(e=this.getPageCount()-1,t=Math.max(0,e-this.maxVisiblePage+1)),{beginPage:Math.floor(t),endPage:Math.floor(e)}}}}),dc={class:"pagination"},fc=["textContent"],_c=["textContent"],mc=["onClick","textContent"],hc=["textContent"],pc=["textContent"];function Ec(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("nav",null,[l.createElementVNode("ul",dc,[l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-first",{disabled:t.isPageActive(1)}])},[l.createElementVNode("div",{class:"page-link",onClick:e[0]||(e[0]=o=>t.onPageClick(1)),textContent:l.toDisplayString(t.firstPageLabel)},null,8,fc)],2),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-previous",{disabled:t.isPageActive(1)}])},[l.createElementVNode("div",{class:"page-link",onClick:e[1]||(e[1]=o=>t.onPageClick(t.currentPage-1)),textContent:l.toDisplayString(t.previousPageLabel)},null,8,_c)],2),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.getVisiblePages(),(o,a)=>(l.openBlock(),l.createElementBlock("li",{key:a,class:l.normalizeClass(["page-item page-item-number",{active:t.isPageActive(o)}])},[l.createElementVNode("div",{class:"page-link",onClick:c=>t.onPageClick(o),textContent:l.toDisplayString(o)},null,8,mc)],2))),128)),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-next",{disabled:t.isPageActive(t.getPageCount())}])},[l.createElementVNode("div",{class:"page-link",onClick:e[2]||(e[2]=o=>t.onPageClick(t.currentPage+1)),textContent:l.toDisplayString(t.nextPageLabel)},null,8,hc)],2),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-last",{disabled:t.isPageActive(t.getPageCount())}])},[l.createElementVNode("div",{class:"page-link",onClick:e[3]||(e[3]=o=>t.onPageClick(t.getPageCount())),textContent:l.toDisplayString(t.lastPageLabel)},null,8,pc)],2)])])}const gc=Ne(uc,[["render",Ec],["__scopeId","data-v-ff85ae67"]]),bc=l.defineComponent({name:"BsTable",props:{fields:{type:Array,required:!0},items:{type:Array,required:!0},isLoading:{type:Boolean,default:!1},orderBy:{type:String,default:void 0},sortDesc:{type:Boolean,default:void 0},thClass:{type:String,default:void 0},tdClass:{type:String,default:void 0}},emits:["orderChanged"],methods:{isActiveOrderBy(t){return t===this.orderBy},isSortableField(t){return t.sort===void 0||t.sort},getSortIconClass(){if(this.sortDesc===void 0)throw new Error("Sort desc value is null, cannot calculate the sort icon!");return this.sortDesc?"bi bi-caret-up-fill":"bi bi-caret-down-fill"},calcSortDesc(t){return this.sortDesc===void 0?null:this.isOrderByChanged(t)?!1:!this.sortDesc},isOrderByChanged(t){return this.orderBy!==t},onHeadClick(t){this.isSortableField(t)&&this.$emit("orderChanged",{sortDesc:this.calcSortDesc(t.key),orderBy:t.key})}}}),vc=t=>(l.pushScopeId("data-v-e8d4b4dc"),t=t(),l.popScopeId(),t),Tc={class:"table"},Nc=["onClick"],Ac={key:0},yc=["colspan"],Oc=vc(()=>l.createElementVNode("div",{class:"d-flex justify-content-center p-2"},[l.createElementVNode("div",{class:"spinner-border spinner-border-sm"})],-1)),Cc={key:1},Lc=["colspan"],Ic={class:"text-center text-muted small"};function Sc(t,e,n,r,s,i){const o=l.resolveDirective("t");return l.openBlock(),l.createElementBlock("table",Tc,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,a=>(l.openBlock(),l.createElementBlock("th",{key:a.key,class:l.normalizeClass({"cursor-pointer":t.isSortableField(a),"text-decoration-underline":t.isActiveOrderBy(a.key),thClass:t.thClass}),onClick:c=>t.onHeadClick(a)},[l.renderSlot(t.$slots,"tr",{},()=>[l.createTextVNode(l.toDisplayString(a.label)+" ",1),t.isActiveOrderBy(a.key)&&t.sortDesc!==void 0?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(t.getSortIconClass())},null,2)):l.createCommentVNode("",!0)],!0)],10,Nc))),128))])]),l.createElementVNode("tbody",null,[t.isLoading?(l.openBlock(),l.createElementBlock("tr",Ac,[l.createElementVNode("td",{colspan:t.fields.length},[l.renderSlot(t.$slots,"loading",{},()=>[Oc],!0)],8,yc)])):t.items.length===0?(l.openBlock(),l.createElementBlock("tr",Cc,[l.createElementVNode("td",{colspan:t.fields.length},[l.renderSlot(t.$slots,"empty",{},()=>[l.withDirectives(l.createElementVNode("div",Ic,null,512),[[o,"table.empty_text"]])],!0)],8,Lc)])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(t.items,(a,c)=>(l.openBlock(),l.createElementBlock("tr",{key:c,class:l.normalizeClass(a.trClass)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,_=>(l.openBlock(),l.createElementBlock("td",{key:_.key,class:l.normalizeClass(t.tdClass)},[l.renderSlot(t.$slots,"td",{key:c,field:_.key,row:a,value:_.key in a?a[_.key]:null},()=>[l.createTextVNode(l.toDisplayString(a[_.key]),1)],!0)],2))),128))],2))),128))])])}const Dc=Ne(bc,[["render",Sc],["__scopeId","data-v-e8d4b4dc"]]);var ae="top",Ee="bottom",ge="right",le="left",Tn="auto",wt=[ae,Ee,ge,le],pt="start",Pt="end",ei="clippingParents",fr="viewport",$t="popper",ti="reference",_r=wt.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+Pt])},[]),mr=[].concat(wt,[Tn]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+Pt])},[]),ni="beforeRead",ri="read",si="afterRead",ii="beforeMain",oi="main",ai="afterMain",li="beforeWrite",ci="write",ui="afterWrite",di=[ni,ri,si,ii,oi,ai,li,ci,ui];function Ve(t){return t?(t.nodeName||"").toLowerCase():null}function be(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Et(t){var e=be(t).Element;return t instanceof e||t instanceof Element}function Oe(t){var e=be(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function hr(t){if(typeof ShadowRoot>"u")return!1;var e=be(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kc(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},i=e.elements[n];!Oe(i)||!Ve(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var a=s[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function wc(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(c,_){return c[_]="",c},{});!Oe(s)||!Ve(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const pr={name:"applyStyles",enabled:!0,phase:"write",fn:kc,effect:wc,requires:["computeStyles"]};function Fe(t){return t.split("-")[0]}var gt=Math.max,Nn=Math.min,Rt=Math.round;function Er(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function fi(){return!/^((?!chrome|android).)*safari/i.test(Er())}function Mt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,i=1;e&&Oe(t)&&(s=t.offsetWidth>0&&Rt(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Rt(r.height)/t.offsetHeight||1);var o=Et(t)?be(t):window,a=o.visualViewport,c=!fi()&&n,_=(r.left+(c&&a?a.offsetLeft:0))/s,f=(r.top+(c&&a?a.offsetTop:0))/i,v=r.width/s,E=r.height/i;return{width:v,height:E,top:f,right:_+v,bottom:f+E,left:_,x:_,y:f}}function gr(t){var e=Mt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function _i(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&hr(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qe(t){return be(t).getComputedStyle(t)}function Pc(t){return["table","td","th"].indexOf(Ve(t))>=0}function it(t){return((Et(t)?t.ownerDocument:t.document)||window.document).documentElement}function An(t){return Ve(t)==="html"?t:t.assignedSlot||t.parentNode||(hr(t)?t.host:null)||it(t)}function mi(t){return!Oe(t)||qe(t).position==="fixed"?null:t.offsetParent}function $c(t){var e=/firefox/i.test(Er()),n=/Trident/i.test(Er());if(n&&Oe(t)){var r=qe(t);if(r.position==="fixed")return null}var s=An(t);for(hr(s)&&(s=s.host);Oe(s)&&["html","body"].indexOf(Ve(s))<0;){var i=qe(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function tn(t){for(var e=be(t),n=mi(t);n&&Pc(n)&&qe(n).position==="static";)n=mi(n);return n&&(Ve(n)==="html"||Ve(n)==="body"&&qe(n).position==="static")?e:n||$c(t)||e}function br(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function nn(t,e,n){return gt(t,Nn(e,n))}function Rc(t,e,n){var r=nn(t,e,n);return r>n?n:r}function hi(){return{top:0,right:0,bottom:0,left:0}}function pi(t){return Object.assign({},hi(),t)}function Ei(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Mc=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,pi(typeof e!="number"?e:Ei(e,wt))};function Vc(t){var e,n=t.state,r=t.name,s=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Fe(n.placement),c=br(a),_=[le,ge].indexOf(a)>=0,f=_?"height":"width";if(!(!i||!o)){var v=Mc(s.padding,n),E=gr(i),N=c==="y"?ae:le,k=c==="y"?Ee:ge,L=n.rects.reference[f]+n.rects.reference[c]-o[c]-n.rects.popper[f],I=o[c]-n.rects.reference[c],m=tn(i),p=m?c==="y"?m.clientHeight||0:m.clientWidth||0:0,T=L/2-I/2,h=v[N],C=p-E[f]-v[k],y=p/2-E[f]/2+T,D=nn(h,y,C),O=c;n.modifiersData[r]=(e={},e[O]=D,e.centerOffset=D-y,e)}}function Fc(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||_i(e.elements.popper,s)&&(e.elements.arrow=s))}const gi={name:"arrow",enabled:!0,phase:"main",fn:Vc,effect:Fc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vt(t){return t.split("-")[1]}var Bc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uc(t,e){var n=t.x,r=t.y,s=e.devicePixelRatio||1;return{x:Rt(n*s)/s||0,y:Rt(r*s)/s||0}}function bi(t){var e,n=t.popper,r=t.popperRect,s=t.placement,i=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,_=t.adaptive,f=t.roundOffsets,v=t.isFixed,E=o.x,N=E===void 0?0:E,k=o.y,L=k===void 0?0:k,I=typeof f=="function"?f({x:N,y:L}):{x:N,y:L};N=I.x,L=I.y;var m=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),T=le,h=ae,C=window;if(_){var y=tn(n),D="clientHeight",O="clientWidth";if(y===be(n)&&(y=it(n),qe(y).position!=="static"&&a==="absolute"&&(D="scrollHeight",O="scrollWidth")),y=y,s===ae||(s===le||s===ge)&&i===Pt){h=Ee;var M=v&&y===C&&C.visualViewport?C.visualViewport.height:y[D];L-=M-r.height,L*=c?1:-1}if(s===le||(s===ae||s===Ee)&&i===Pt){T=ge;var F=v&&y===C&&C.visualViewport?C.visualViewport.width:y[O];N-=F-r.width,N*=c?1:-1}}var Y=Object.assign({position:a},_&&Bc),x=f===!0?Uc({x:N,y:L},be(n)):{x:N,y:L};if(N=x.x,L=x.y,c){var K;return Object.assign({},Y,(K={},K[h]=p?"0":"",K[T]=m?"0":"",K.transform=(C.devicePixelRatio||1)<=1?"translate("+N+"px, "+L+"px)":"translate3d("+N+"px, "+L+"px, 0)",K))}return Object.assign({},Y,(e={},e[h]=p?L+"px":"",e[T]=m?N+"px":"",e.transform="",e))}function Hc(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,_={placement:Fe(e.placement),variation:Vt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,bi(Object.assign({},_,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,bi(Object.assign({},_,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const vr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hc,data:{}};var yn={passive:!0};function Wc(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,a=o===void 0?!0:o,c=be(e.elements.popper),_=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&_.forEach(function(f){f.addEventListener("scroll",n.update,yn)}),a&&c.addEventListener("resize",n.update,yn),function(){i&&_.forEach(function(f){f.removeEventListener("scroll",n.update,yn)}),a&&c.removeEventListener("resize",n.update,yn)}}const Tr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wc,data:{}};var xc={left:"right",right:"left",bottom:"top",top:"bottom"};function On(t){return t.replace(/left|right|bottom|top/g,function(e){return xc[e]})}var Yc={start:"end",end:"start"};function vi(t){return t.replace(/start|end/g,function(e){return Yc[e]})}function Nr(t){var e=be(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ar(t){return Mt(it(t)).left+Nr(t).scrollLeft}function Kc(t,e){var n=be(t),r=it(t),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;var _=fi();(_||!_&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a+Ar(t),y:c}}function jc(t){var e,n=it(t),r=Nr(t),s=(e=t.ownerDocument)==null?void 0:e.body,i=gt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=gt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+Ar(t),c=-r.scrollTop;return qe(s||n).direction==="rtl"&&(a+=gt(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:c}}function yr(t){var e=qe(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Ti(t){return["html","body","#document"].indexOf(Ve(t))>=0?t.ownerDocument.body:Oe(t)&&yr(t)?t:Ti(An(t))}function rn(t,e){var n;e===void 0&&(e=[]);var r=Ti(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),i=be(r),o=s?[i].concat(i.visualViewport||[],yr(r)?r:[]):r,a=e.concat(o);return s?a:a.concat(rn(An(o)))}function Or(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Gc(t,e){var n=Mt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Ni(t,e,n){return e===fr?Or(Kc(t,n)):Et(e)?Gc(e,n):Or(jc(it(t)))}function Xc(t){var e=rn(An(t)),n=["absolute","fixed"].indexOf(qe(t).position)>=0,r=n&&Oe(t)?tn(t):t;return Et(r)?e.filter(function(s){return Et(s)&&_i(s,r)&&Ve(s)!=="body"}):[]}function qc(t,e,n,r){var s=e==="clippingParents"?Xc(t):[].concat(e),i=[].concat(s,[n]),o=i[0],a=i.reduce(function(c,_){var f=Ni(t,_,r);return c.top=gt(f.top,c.top),c.right=Nn(f.right,c.right),c.bottom=Nn(f.bottom,c.bottom),c.left=gt(f.left,c.left),c},Ni(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ai(t){var e=t.reference,n=t.element,r=t.placement,s=r?Fe(r):null,i=r?Vt(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,c;switch(s){case ae:c={x:o,y:e.y-n.height};break;case Ee:c={x:o,y:e.y+e.height};break;case ge:c={x:e.x+e.width,y:a};break;case le:c={x:e.x-n.width,y:a};break;default:c={x:e.x,y:e.y}}var _=s?br(s):null;if(_!=null){var f=_==="y"?"height":"width";switch(i){case pt:c[_]=c[_]-(e[f]/2-n[f]/2);break;case Pt:c[_]=c[_]+(e[f]/2-n[f]/2);break}}return c}function Ft(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,i=n.strategy,o=i===void 0?t.strategy:i,a=n.boundary,c=a===void 0?ei:a,_=n.rootBoundary,f=_===void 0?fr:_,v=n.elementContext,E=v===void 0?$t:v,N=n.altBoundary,k=N===void 0?!1:N,L=n.padding,I=L===void 0?0:L,m=pi(typeof I!="number"?I:Ei(I,wt)),p=E===$t?ti:$t,T=t.rects.popper,h=t.elements[k?p:E],C=qc(Et(h)?h:h.contextElement||it(t.elements.popper),c,f,o),y=Mt(t.elements.reference),D=Ai({reference:y,element:T,strategy:"absolute",placement:s}),O=Or(Object.assign({},T,D)),M=E===$t?O:y,F={top:C.top-M.top+m.top,bottom:M.bottom-C.bottom+m.bottom,left:C.left-M.left+m.left,right:M.right-C.right+m.right},Y=t.modifiersData.offset;if(E===$t&&Y){var x=Y[s];Object.keys(F).forEach(function(K){var _e=[ge,Ee].indexOf(K)>=0?1:-1,ve=[ae,Ee].indexOf(K)>=0?"y":"x";F[K]+=x[ve]*_e})}return F}function zc(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,_=c===void 0?mr:c,f=Vt(r),v=f?a?_r:_r.filter(function(k){return Vt(k)===f}):wt,E=v.filter(function(k){return _.indexOf(k)>=0});E.length===0&&(E=v);var N=E.reduce(function(k,L){return k[L]=Ft(t,{placement:L,boundary:s,rootBoundary:i,padding:o})[Fe(L)],k},{});return Object.keys(N).sort(function(k,L){return N[k]-N[L]})}function Qc(t){if(Fe(t)===Tn)return[];var e=On(t);return[vi(t),e,vi(e)]}function Jc(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,c=n.fallbackPlacements,_=n.padding,f=n.boundary,v=n.rootBoundary,E=n.altBoundary,N=n.flipVariations,k=N===void 0?!0:N,L=n.allowedAutoPlacements,I=e.options.placement,m=Fe(I),p=m===I,T=c||(p||!k?[On(I)]:Qc(I)),h=[I].concat(T).reduce(function(Te,he){return Te.concat(Fe(he)===Tn?zc(e,{placement:he,boundary:f,rootBoundary:v,padding:_,flipVariations:k,allowedAutoPlacements:L}):he)},[]),C=e.rects.reference,y=e.rects.popper,D=new Map,O=!0,M=h[0],F=0;F<h.length;F++){var Y=h[F],x=Fe(Y),K=Vt(Y)===pt,_e=[ae,Ee].indexOf(x)>=0,ve=_e?"width":"height",X=Ft(e,{placement:Y,boundary:f,rootBoundary:v,altBoundary:E,padding:_}),te=_e?K?ge:le:K?Ee:ae;C[ve]>y[ve]&&(te=On(te));var He=On(te),me=[];if(i&&me.push(X[x]<=0),a&&me.push(X[te]<=0,X[He]<=0),me.every(function(Te){return Te})){M=Y,O=!1;break}D.set(Y,me)}if(O)for(var We=k?3:1,ce=function(he){var we=h.find(function(Ze){var ue=D.get(Ze);if(ue)return ue.slice(0,he).every(function(Pe){return Pe})});if(we)return M=we,"break"},Se=We;Se>0;Se--){var xe=ce(Se);if(xe==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}const yi={name:"flip",enabled:!0,phase:"main",fn:Jc,requiresIfExists:["offset"],data:{_skip:!1}};function Oi(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ci(t){return[ae,ge,Ee,le].some(function(e){return t[e]>=0})}function Zc(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,i=e.modifiersData.preventOverflow,o=Ft(e,{elementContext:"reference"}),a=Ft(e,{altBoundary:!0}),c=Oi(o,r),_=Oi(a,s,i),f=Ci(c),v=Ci(_);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:_,isReferenceHidden:f,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const Li={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zc};function eu(t,e,n){var r=Fe(t),s=[le,ae].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[le,ge].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tu(t){var e=t.state,n=t.options,r=t.name,s=n.offset,i=s===void 0?[0,0]:s,o=mr.reduce(function(f,v){return f[v]=eu(v,e.rects,i),f},{}),a=o[e.placement],c=a.x,_=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=_),e.modifiersData[r]=o}const Ii={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tu};function nu(t){var e=t.state,n=t.name;e.modifiersData[n]=Ai({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Cr={name:"popperOffsets",enabled:!0,phase:"read",fn:nu,data:{}};function ru(t){return t==="x"?"y":"x"}function su(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,c=n.boundary,_=n.rootBoundary,f=n.altBoundary,v=n.padding,E=n.tether,N=E===void 0?!0:E,k=n.tetherOffset,L=k===void 0?0:k,I=Ft(e,{boundary:c,rootBoundary:_,padding:v,altBoundary:f}),m=Fe(e.placement),p=Vt(e.placement),T=!p,h=br(m),C=ru(h),y=e.modifiersData.popperOffsets,D=e.rects.reference,O=e.rects.popper,M=typeof L=="function"?L(Object.assign({},e.rects,{placement:e.placement})):L,F=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(y){if(i){var K,_e=h==="y"?ae:le,ve=h==="y"?Ee:ge,X=h==="y"?"height":"width",te=y[h],He=te+I[_e],me=te-I[ve],We=N?-O[X]/2:0,ce=p===pt?D[X]:O[X],Se=p===pt?-O[X]:-D[X],xe=e.elements.arrow,Te=N&&xe?gr(xe):{width:0,height:0},he=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:hi(),we=he[_e],Ze=he[ve],ue=nn(0,D[X],Te[X]),Pe=T?D[X]/2-We-ue-we-F.mainAxis:ce-ue-we-F.mainAxis,Ye=T?-D[X]/2+We+ue+Ze+F.mainAxis:Se+ue+Ze+F.mainAxis,$e=e.elements.arrow&&tn(e.elements.arrow),At=$e?h==="y"?$e.clientTop||0:$e.clientLeft||0:0,d=(K=Y==null?void 0:Y[h])!=null?K:0,u=te+Pe-d-At,g=te+Ye-d,w=nn(N?Nn(He,u):He,te,N?gt(me,g):me);y[h]=w,x[h]=w-te}if(a){var V,H=h==="x"?ae:le,De=h==="x"?Ee:ge,ne=y[C],qt=C==="y"?"height":"width",Wn=ne+I[H],xn=ne-I[De],fn=[ae,le].indexOf(m)!==-1,z=(V=Y==null?void 0:Y[C])!=null?V:0,b=fn?Wn:ne-D[qt]-O[qt]-z+F.altAxis,S=fn?ne+D[qt]+O[qt]-z-F.altAxis:xn,U=N&&fn?Rc(b,ne,S):nn(N?b:Wn,ne,N?S:xn);y[C]=U,x[C]=U-ne}e.modifiersData[r]=x}}const Si={name:"preventOverflow",enabled:!0,phase:"main",fn:su,requiresIfExists:["offset"]};function iu(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ou(t){return t===be(t)||!Oe(t)?Nr(t):iu(t)}function au(t){var e=t.getBoundingClientRect(),n=Rt(e.width)/t.offsetWidth||1,r=Rt(e.height)/t.offsetHeight||1;return n!==1||r!==1}function lu(t,e,n){n===void 0&&(n=!1);var r=Oe(e),s=Oe(e)&&au(e),i=it(e),o=Mt(t,s,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ve(e)!=="body"||yr(i))&&(a=ou(e)),Oe(e)?(c=Mt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Ar(i))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function cu(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var c=e.get(a);c&&s(c)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||s(i)}),r}function uu(t){var e=cu(t);return di.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function du(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function fu(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Di={placement:"bottom",modifiers:[],strategy:"absolute"};function ki(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Cn(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,i=s===void 0?Di:s;return function(a,c,_){_===void 0&&(_=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Di,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},v=[],E=!1,N={state:f,setOptions:function(m){var p=typeof m=="function"?m(f.options):m;L(),f.options=Object.assign({},i,f.options,p),f.scrollParents={reference:Et(a)?rn(a):a.contextElement?rn(a.contextElement):[],popper:rn(c)};var T=uu(fu([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(h){return h.enabled}),k(),N.update()},forceUpdate:function(){if(!E){var m=f.elements,p=m.reference,T=m.popper;if(ki(p,T)){f.rects={reference:lu(p,tn(T),f.options.strategy==="fixed"),popper:gr(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(F){return f.modifiersData[F.name]=Object.assign({},F.data)});for(var h=0;h<f.orderedModifiers.length;h++){if(f.reset===!0){f.reset=!1,h=-1;continue}var C=f.orderedModifiers[h],y=C.fn,D=C.options,O=D===void 0?{}:D,M=C.name;typeof y=="function"&&(f=y({state:f,options:O,name:M,instance:N})||f)}}}},update:du(function(){return new Promise(function(I){N.forceUpdate(),I(f)})}),destroy:function(){L(),E=!0}};if(!ki(a,c))return N;N.setOptions(_).then(function(I){!E&&_.onFirstUpdate&&_.onFirstUpdate(I)});function k(){f.orderedModifiers.forEach(function(I){var m=I.name,p=I.options,T=p===void 0?{}:p,h=I.effect;if(typeof h=="function"){var C=h({state:f,name:m,instance:N,options:T}),y=function(){};v.push(C||y)}})}function L(){v.forEach(function(I){return I()}),v=[]}return N}}var _u=Cn(),mu=[Tr,Cr,vr,pr],hu=Cn({defaultModifiers:mu}),pu=[Tr,Cr,vr,pr,Ii,yi,Si,gi,Li],Lr=Cn({defaultModifiers:pu});const wi=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ai,afterRead:si,afterWrite:ui,applyStyles:pr,arrow:gi,auto:Tn,basePlacements:wt,beforeMain:ii,beforeRead:ni,beforeWrite:li,bottom:Ee,clippingParents:ei,computeStyles:vr,createPopper:Lr,createPopperBase:_u,createPopperLite:hu,detectOverflow:Ft,end:Pt,eventListeners:Tr,flip:yi,hide:Li,left:le,main:oi,modifierPhases:di,offset:Ii,placements:mr,popper:$t,popperGenerator:Cn,popperOffsets:Cr,preventOverflow:Si,read:ri,reference:ti,right:ge,start:pt,top:ae,variationPlacements:_r,viewport:fr,write:ci},Symbol.toStringTag,{value:"Module"}));/*!
|
|
22
|
-
* Bootstrap v5.3.2 (https://getbootstrap.com/)
|
|
23
|
-
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
24
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
25
|
-
*/const ot=new Map,Ir={set(t,e,n){ot.has(t)||ot.set(t,new Map);const r=ot.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return ot.has(t)&&ot.get(t).get(e)||null},remove(t,e){if(!ot.has(t))return;const n=ot.get(t);n.delete(e),n.size===0&&ot.delete(t)}},Eu=1e6,gu=1e3,Sr="transitionend",Pi=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),bu=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),vu=t=>{do t+=Math.floor(Math.random()*Eu);while(document.getElementById(t));return t},Tu=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),s=Number.parseFloat(n);return!r&&!s?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*gu)},$i=t=>{t.dispatchEvent(new Event(Sr))},ze=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),at=t=>ze(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Pi(t)):null,Bt=t=>{if(!ze(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},lt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",Ri=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ri(t.parentNode):null},Ln=()=>{},sn=t=>{t.offsetHeight},Mi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Dr=[],Nu=t=>{document.readyState==="loading"?(Dr.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Dr)e()}),Dr.push(t)):t()},Ce=()=>document.documentElement.dir==="rtl",Le=t=>{Nu(()=>{const e=Mi();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},fe=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,Vi=(t,e,n=!0)=>{if(!n){fe(t);return}const s=Tu(e)+5;let i=!1;const o=({target:a})=>{a===e&&(i=!0,e.removeEventListener(Sr,o),fe(t))};e.addEventListener(Sr,o),setTimeout(()=>{i||$i(e)},s)},kr=(t,e,n,r)=>{const s=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[s-1]:t[0]:(i+=n?1:-1,r&&(i=(i+s)%s),t[Math.max(0,Math.min(i,s-1))])},Au=/[^.]*(?=\..*)\.|.*/,yu=/\..*/,Ou=/::\d+$/,wr={};let Fi=1;const Bi={mouseenter:"mouseover",mouseleave:"mouseout"},Cu=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Ui(t,e){return e&&`${e}::${Fi++}`||t.uidEvent||Fi++}function Hi(t){const e=Ui(t);return t.uidEvent=e,wr[e]=wr[e]||{},wr[e]}function Lu(t,e){return function n(r){return $r(r,{delegateTarget:t}),n.oneOff&&A.off(t,r.type,e),e.apply(t,[r])}}function Iu(t,e,n){return function r(s){const i=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of i)if(a===o)return $r(s,{delegateTarget:o}),r.oneOff&&A.off(t,s.type,e,n),n.apply(o,[s])}}function Wi(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function xi(t,e,n){const r=typeof e=="string",s=r?n:e||n;let i=Ki(t);return Cu.has(i)||(i=t),[r,s,i]}function Yi(t,e,n,r,s){if(typeof e!="string"||!t)return;let[i,o,a]=xi(e,n,r);e in Bi&&(o=(k=>function(L){if(!L.relatedTarget||L.relatedTarget!==L.delegateTarget&&!L.delegateTarget.contains(L.relatedTarget))return k.call(this,L)})(o));const c=Hi(t),_=c[a]||(c[a]={}),f=Wi(_,o,i?n:null);if(f){f.oneOff=f.oneOff&&s;return}const v=Ui(o,e.replace(Au,"")),E=i?Iu(t,n,o):Lu(t,o);E.delegationSelector=i?n:null,E.callable=o,E.oneOff=s,E.uidEvent=v,_[v]=E,t.addEventListener(a,E,i)}function Pr(t,e,n,r,s){const i=Wi(e[n],r,s);i&&(t.removeEventListener(n,i,!!s),delete e[n][i.uidEvent])}function Su(t,e,n,r){const s=e[n]||{};for(const[i,o]of Object.entries(s))i.includes(r)&&Pr(t,e,n,o.callable,o.delegationSelector)}function Ki(t){return t=t.replace(yu,""),Bi[t]||t}const A={on(t,e,n,r){Yi(t,e,n,r,!1)},one(t,e,n,r){Yi(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[s,i,o]=xi(e,n,r),a=o!==e,c=Hi(t),_=c[o]||{},f=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(_).length)return;Pr(t,c,o,i,s?n:null);return}if(f)for(const v of Object.keys(c))Su(t,c,v,e.slice(1));for(const[v,E]of Object.entries(_)){const N=v.replace(Ou,"");(!a||e.includes(N))&&Pr(t,c,o,E.callable,E.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=Mi(),s=Ki(e),i=e!==s;let o=null,a=!0,c=!0,_=!1;i&&r&&(o=r.Event(e,n),r(t).trigger(o),a=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),_=o.isDefaultPrevented());const f=$r(new Event(e,{bubbles:a,cancelable:!0}),n);return _&&f.preventDefault(),c&&t.dispatchEvent(f),f.defaultPrevented&&o&&o.preventDefault(),f}};function $r(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function ji(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Rr(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Qe={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Rr(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Rr(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let s=r.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=ji(t.dataset[r])}return e},getDataAttribute(t,e){return ji(t.getAttribute(`data-bs-${Rr(e)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=ze(n)?Qe.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...ze(n)?Qe.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,s]of Object.entries(n)){const i=e[r],o=ze(i)?"element":bu(i);if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${s}".`)}}}const Du="5.3.2";class ke extends on{constructor(e,n){super(),e=at(e),e&&(this._element=e,this._config=this._getConfig(n),Ir.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ir.remove(this._element,this.constructor.DATA_KEY),A.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){Vi(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ir.get(at(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return Du}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Mr=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?Pi(n.trim()):null}return e},$={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!lt(n)&&Bt(n))},getSelectorFromElement(t){const e=Mr(t);return e&&$.findOne(e)?e:null},getElementFromSelector(t){const e=Mr(t);return e?$.findOne(e):null},getMultipleElementsFromSelector(t){const e=Mr(t);return e?$.find(e):[]}},In=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;A.on(document,n,`[data-bs-dismiss="${r}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),lt(this))return;const i=$.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},ku="alert",Gi=".bs.alert",wu=`close${Gi}`,Pu=`closed${Gi}`,$u="fade",Ru="show";class Sn extends ke{static get NAME(){return ku}close(){if(A.trigger(this._element,wu).defaultPrevented)return;this._element.classList.remove(Ru);const n=this._element.classList.contains($u);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),A.trigger(this._element,Pu),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=Sn.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}In(Sn,"close"),Le(Sn);const Mu="button",Vu=".bs.button",Fu=".data-api",Bu="active",Xi='[data-bs-toggle="button"]',Uu=`click${Vu}${Fu}`;class Dn extends ke{static get NAME(){return Mu}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Bu))}static jQueryInterface(e){return this.each(function(){const n=Dn.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}A.on(document,Uu,Xi,t=>{t.preventDefault();const e=t.target.closest(Xi);Dn.getOrCreateInstance(e).toggle()}),Le(Dn);const Hu="swipe",Ut=".bs.swipe",Wu=`touchstart${Ut}`,xu=`touchmove${Ut}`,Yu=`touchend${Ut}`,Ku=`pointerdown${Ut}`,ju=`pointerup${Ut}`,Gu="touch",Xu="pen",qu="pointer-event",zu=40,Qu={endCallback:null,leftCallback:null,rightCallback:null},Ju={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class kn extends on{constructor(e,n){super(),this._element=e,!(!e||!kn.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Qu}static get DefaultType(){return Ju}static get NAME(){return Hu}dispose(){A.off(this._element,Ut)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=zu)return;const n=e/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(A.on(this._element,Ku,e=>this._start(e)),A.on(this._element,ju,e=>this._end(e)),this._element.classList.add(qu)):(A.on(this._element,Wu,e=>this._start(e)),A.on(this._element,xu,e=>this._move(e)),A.on(this._element,Yu,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Xu||e.pointerType===Gu)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Zu="carousel",ct=".bs.carousel",qi=".data-api",ed="ArrowLeft",td="ArrowRight",nd=500,an="next",Ht="prev",Wt="left",wn="right",rd=`slide${ct}`,Vr=`slid${ct}`,sd=`keydown${ct}`,id=`mouseenter${ct}`,od=`mouseleave${ct}`,ad=`dragstart${ct}`,ld=`load${ct}${qi}`,cd=`click${ct}${qi}`,zi="carousel",Pn="active",ud="slide",dd="carousel-item-end",fd="carousel-item-start",_d="carousel-item-next",md="carousel-item-prev",Qi=".active",Ji=".carousel-item",hd=Qi+Ji,pd=".carousel-item img",Ed=".carousel-indicators",gd="[data-bs-slide], [data-bs-slide-to]",bd='[data-bs-ride="carousel"]',vd={[ed]:wn,[td]:Wt},Td={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Nd={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ln extends ke{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(Ed,this._element),this._addEventListeners(),this._config.ride===zi&&this.cycle()}static get Default(){return Td}static get DefaultType(){return Nd}static get NAME(){return Zu}next(){this._slide(an)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(Ht)}pause(){this._isSliding&&$i(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){A.one(this._element,Vr,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){A.one(this._element,Vr,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const s=e>r?an:Ht;this._slide(s,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&A.on(this._element,sd,e=>this._keydown(e)),this._config.pause==="hover"&&(A.on(this._element,id,()=>this.pause()),A.on(this._element,od,()=>this._maybeEnableCycle())),this._config.touch&&kn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of $.find(pd,this._element))A.on(r,ad,s=>s.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Wt)),rightCallback:()=>this._slide(this._directionToOrder(wn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),nd+this._config.interval))}};this._swipeHelper=new kn(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=vd[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=$.findOne(Qi,this._indicatorsElement);n.classList.remove(Pn),n.removeAttribute("aria-current");const r=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Pn),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),s=e===an,i=n||kr(this._getItems(),r,s,this._config.wrap);if(i===r)return;const o=this._getItemIndex(i),a=N=>A.trigger(this._element,N,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:o});if(a(rd).defaultPrevented||!r||!i)return;const _=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const f=s?fd:dd,v=s?_d:md;i.classList.add(v),sn(i),r.classList.add(f),i.classList.add(f);const E=()=>{i.classList.remove(f,v),i.classList.add(Pn),r.classList.remove(Pn,v,f),this._isSliding=!1,a(Vr)};this._queueCallback(E,r,this._isAnimated()),_&&this.cycle()}_isAnimated(){return this._element.classList.contains(ud)}_getActive(){return $.findOne(hd,this._element)}_getItems(){return $.find(Ji,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ce()?e===Wt?Ht:an:e===Wt?an:Ht}_orderToDirection(e){return Ce()?e===Ht?Wt:wn:e===Ht?wn:Wt}static jQueryInterface(e){return this.each(function(){const n=ln.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}A.on(document,cd,gd,function(t){const e=$.getElementFromSelector(this);if(!e||!e.classList.contains(zi))return;t.preventDefault();const n=ln.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(Qe.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),A.on(window,ld,()=>{const t=$.find(bd);for(const e of t)ln.getOrCreateInstance(e)}),Le(ln);const Ad="collapse",cn=".bs.collapse",yd=".data-api",Od=`show${cn}`,Cd=`shown${cn}`,Ld=`hide${cn}`,Id=`hidden${cn}`,Sd=`click${cn}${yd}`,Fr="show",xt="collapse",$n="collapsing",Dd="collapsed",kd=`:scope .${xt} .${xt}`,wd="collapse-horizontal",Pd="width",$d="height",Rd=".collapse.show, .collapse.collapsing",Br='[data-bs-toggle="collapse"]',Md={parent:null,toggle:!0},Vd={parent:"(null|element)",toggle:"boolean"};class un extends ke{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=$.find(Br);for(const s of r){const i=$.getSelectorFromElement(s),o=$.find(i).filter(a=>a===this._element);i!==null&&o.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Md}static get DefaultType(){return Vd}static get NAME(){return Ad}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Rd).filter(a=>a!==this._element).map(a=>un.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||A.trigger(this._element,Od).defaultPrevented)return;for(const a of e)a.hide();const r=this._getDimension();this._element.classList.remove(xt),this._element.classList.add($n),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove($n),this._element.classList.add(xt,Fr),this._element.style[r]="",A.trigger(this._element,Cd)},o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||A.trigger(this._element,Ld).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add($n),this._element.classList.remove(xt,Fr);for(const s of this._triggerArray){const i=$.getElementFromSelector(s);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove($n),this._element.classList.add(xt),A.trigger(this._element,Id)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Fr)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=at(e.parent),e}_getDimension(){return this._element.classList.contains(wd)?Pd:$d}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Br);for(const n of e){const r=$.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=$.find(kd,this._config.parent);return $.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(Dd,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=un.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}A.on(document,Sd,Br,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of $.getMultipleElementsFromSelector(this))un.getOrCreateInstance(e,{toggle:!1}).toggle()}),Le(un);const Zi="dropdown",bt=".bs.dropdown",Ur=".data-api",Fd="Escape",eo="Tab",Bd="ArrowUp",to="ArrowDown",Ud=2,Hd=`hide${bt}`,Wd=`hidden${bt}`,xd=`show${bt}`,Yd=`shown${bt}`,no=`click${bt}${Ur}`,ro=`keydown${bt}${Ur}`,Kd=`keyup${bt}${Ur}`,Yt="show",jd="dropup",Gd="dropend",Xd="dropstart",qd="dropup-center",zd="dropdown-center",vt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Qd=`${vt}.${Yt}`,Rn=".dropdown-menu",Jd=".navbar",Zd=".navbar-nav",ef=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",tf=Ce()?"top-end":"top-start",nf=Ce()?"top-start":"top-end",rf=Ce()?"bottom-end":"bottom-start",sf=Ce()?"bottom-start":"bottom-end",of=Ce()?"left-start":"right-start",af=Ce()?"right-start":"left-start",lf="top",cf="bottom",uf={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},df={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Be extends ke{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,Rn)[0]||$.prev(this._element,Rn)[0]||$.findOne(Rn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return uf}static get DefaultType(){return df}static get NAME(){return Zi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lt(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!A.trigger(this._element,xd,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Zd))for(const r of[].concat(...document.body.children))A.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yt),this._element.classList.add(Yt),A.trigger(this._element,Yd,e)}}hide(){if(lt(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!A.trigger(this._element,Hd,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))A.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(Yt),this._element.classList.remove(Yt),this._element.setAttribute("aria-expanded","false"),Qe.removeDataAttribute(this._menu,"popper"),A.trigger(this._element,Wd,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!ze(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Zi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof wi>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:ze(this._config.reference)?e=at(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=Lr(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Yt)}_getPlacement(){const e=this._parent;if(e.classList.contains(Gd))return of;if(e.classList.contains(Xd))return af;if(e.classList.contains(qd))return lf;if(e.classList.contains(zd))return cf;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(jd)?n?nf:tf:n?sf:rf}_detectNavbar(){return this._element.closest(Jd)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Qe.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...fe(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=$.find(ef,this._menu).filter(s=>Bt(s));r.length&&kr(r,n,e===to,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Be.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===Ud||e.type==="keyup"&&e.key!==eo)return;const n=$.find(Qd);for(const r of n){const s=Be.getInstance(r);if(!s||s._config.autoClose===!1)continue;const i=e.composedPath(),o=i.includes(s._menu);if(i.includes(s._element)||s._config.autoClose==="inside"&&!o||s._config.autoClose==="outside"&&o||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===eo||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};e.type==="click"&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===Fd,s=[Bd,to].includes(e.key);if(!s&&!r||n&&!r)return;e.preventDefault();const i=this.matches(vt)?this:$.prev(this,vt)[0]||$.next(this,vt)[0]||$.findOne(vt,e.delegateTarget.parentNode),o=Be.getOrCreateInstance(i);if(s){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),i.focus())}}A.on(document,ro,vt,Be.dataApiKeydownHandler),A.on(document,ro,Rn,Be.dataApiKeydownHandler),A.on(document,no,Be.clearMenus),A.on(document,Kd,Be.clearMenus),A.on(document,no,vt,function(t){t.preventDefault(),Be.getOrCreateInstance(this).toggle()}),Le(Be);const so="backdrop",ff="fade",io="show",oo=`mousedown.bs.${so}`,_f={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mf={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ao extends on{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return _f}static get DefaultType(){return mf}static get NAME(){return so}show(e){if(!this._config.isVisible){fe(e);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(io),this._emulateAnimation(()=>{fe(e)})}hide(e){if(!this._config.isVisible){fe(e);return}this._getElement().classList.remove(io),this._emulateAnimation(()=>{this.dispose(),fe(e)})}dispose(){this._isAppended&&(A.off(this._element,oo),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(ff),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=at(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),A.on(e,oo,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Vi(e,this._getElement(),this._config.isAnimated)}}const hf="focustrap",Mn=".bs.focustrap",pf=`focusin${Mn}`,Ef=`keydown.tab${Mn}`,gf="Tab",bf="forward",lo="backward",vf={autofocus:!0,trapElement:null},Tf={autofocus:"boolean",trapElement:"element"};class co extends on{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return vf}static get DefaultType(){return Tf}static get NAME(){return hf}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),A.off(document,Mn),A.on(document,pf,e=>this._handleFocusin(e)),A.on(document,Ef,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,A.off(document,Mn))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=$.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===lo?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===gf&&(this._lastTabNavDirection=e.shiftKey?lo:bf)}}const uo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fo=".sticky-top",Vn="padding-right",_o="margin-right";class Hr{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Vn,n=>n+e),this._setElementAttributes(uo,Vn,n=>n+e),this._setElementAttributes(fo,_o,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Vn),this._resetElementAttributes(uo,Vn),this._resetElementAttributes(fo,_o)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const s=this.getWidth(),i=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${r(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&Qe.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=s=>{const i=Qe.getDataAttribute(s,n);if(i===null){s.style.removeProperty(n);return}Qe.removeDataAttribute(s,n),s.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(ze(e)){n(e);return}for(const r of $.find(e,this._element))n(r)}}const Nf="modal",Ie=".bs.modal",Af=".data-api",yf="Escape",Of=`hide${Ie}`,Cf=`hidePrevented${Ie}`,mo=`hidden${Ie}`,ho=`show${Ie}`,Lf=`shown${Ie}`,If=`resize${Ie}`,Sf=`click.dismiss${Ie}`,Df=`mousedown.dismiss${Ie}`,kf=`keydown.dismiss${Ie}`,wf=`click${Ie}${Af}`,po="modal-open",Pf="fade",Eo="show",Wr="modal-static",$f=".modal.show",Rf=".modal-dialog",Mf=".modal-body",Vf='[data-bs-toggle="modal"]',Ff={backdrop:!0,focus:!0,keyboard:!0},Bf={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends ke{constructor(e,n){super(e,n),this._dialog=$.findOne(Rf,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Hr,this._addEventListeners()}static get Default(){return Ff}static get DefaultType(){return Bf}static get NAME(){return Nf}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||A.trigger(this._element,ho,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(po),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||A.trigger(this._element,Of).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Eo),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){A.off(window,Ie),A.off(this._dialog,Ie),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ao({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new co({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=$.findOne(Mf,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(Eo);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,A.trigger(this._element,Lf,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){A.on(this._element,kf,e=>{if(e.key===yf){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),A.on(window,If,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),A.on(this._element,Df,e=>{A.one(this._element,Sf,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(po),this._resetAdjustments(),this._scrollBar.reset(),A.trigger(this._element,mo)})}_isAnimated(){return this._element.classList.contains(Pf)}_triggerBackdropTransition(){if(A.trigger(this._element,Cf).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Wr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Wr),this._queueCallback(()=>{this._element.classList.remove(Wr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const s=Ce()?"paddingLeft":"paddingRight";this._element.style[s]=`${n}px`}if(!r&&e){const s=Ce()?"paddingRight":"paddingLeft";this._element.style[s]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=ut.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}A.on(document,wf,Vf,function(t){const e=$.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),A.one(e,ho,s=>{s.defaultPrevented||A.one(e,mo,()=>{Bt(this)&&this.focus()})});const n=$.findOne($f);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(e).toggle(this)}),In(ut),Le(ut);const Uf="offcanvas",Je=".bs.offcanvas",go=".data-api",Hf=`load${Je}${go}`,Wf="Escape",bo="show",vo="showing",To="hiding",xf="offcanvas-backdrop",No=".offcanvas.show",Yf=`show${Je}`,Kf=`shown${Je}`,jf=`hide${Je}`,Ao=`hidePrevented${Je}`,yo=`hidden${Je}`,Gf=`resize${Je}`,Xf=`click${Je}${go}`,qf=`keydown.dismiss${Je}`,zf='[data-bs-toggle="offcanvas"]',Qf={backdrop:!0,keyboard:!0,scroll:!1},Jf={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends ke{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Qf}static get DefaultType(){return Jf}static get NAME(){return Uf}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||A.trigger(this._element,Yf,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Hr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vo);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(bo),this._element.classList.remove(vo),A.trigger(this._element,Kf,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||A.trigger(this._element,jf).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(To),this._backdrop.hide();const n=()=>{this._element.classList.remove(bo,To),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Hr().reset(),A.trigger(this._element,yo)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){A.trigger(this._element,Ao);return}this.hide()},n=!!this._config.backdrop;return new ao({className:xf,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new co({trapElement:this._element})}_addEventListeners(){A.on(this._element,qf,e=>{if(e.key===Wf){if(this._config.keyboard){this.hide();return}A.trigger(this._element,Ao)}})}static jQueryInterface(e){return this.each(function(){const n=Ue.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}A.on(document,Xf,zf,function(t){const e=$.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),lt(this))return;A.one(e,yo,()=>{Bt(this)&&this.focus()});const n=$.findOne(No);n&&n!==e&&Ue.getInstance(n).hide(),Ue.getOrCreateInstance(e).toggle(this)}),A.on(window,Hf,()=>{for(const t of $.find(No))Ue.getOrCreateInstance(t).show()}),A.on(window,Gf,()=>{for(const t of $.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Ue.getOrCreateInstance(t).hide()}),In(Ue),Le(Ue);const Oo={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Zf=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),e_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,t_=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?Zf.has(n)?!!e_.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function n_(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const s=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...s.body.querySelectorAll("*"));for(const o of i){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const c=[].concat(...o.attributes),_=[].concat(e["*"]||[],e[a]||[]);for(const f of c)t_(f,_)||o.removeAttribute(f.nodeName)}return s.body.innerHTML}const r_="TemplateFactory",s_={allowList:Oo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},i_={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},o_={entry:"(string|element|function|null)",selector:"(string|element)"};class a_ extends on{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return s_}static get DefaultType(){return i_}static get NAME(){return r_}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,i]of Object.entries(this._config.content))this._setContent(e,i,s);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},o_)}_setContent(e,n,r){const s=$.findOne(r,e);if(s){if(n=this._resolvePossibleFunction(n),!n){s.remove();return}if(ze(n)){this._putElementInTemplate(at(n),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(n);return}s.textContent=n}}_maybeSanitize(e){return this._config.sanitize?n_(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return fe(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const l_="tooltip",c_=new Set(["sanitize","allowList","sanitizeFn"]),xr="fade",u_="modal",Fn="show",d_=".tooltip-inner",Co=`.${u_}`,Lo="hide.bs.modal",dn="hover",Yr="focus",f_="click",__="manual",m_="hide",h_="hidden",p_="show",E_="shown",g_="inserted",b_="click",v_="focusin",T_="focusout",N_="mouseenter",A_="mouseleave",y_={AUTO:"auto",TOP:"top",RIGHT:Ce()?"left":"right",BOTTOM:"bottom",LEFT:Ce()?"right":"left"},O_={allowList:Oo,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},C_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Kt extends ke{constructor(e,n){if(typeof wi>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return O_}static get DefaultType(){return C_}static get NAME(){return l_}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),A.off(this._element.closest(Co),Lo,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=A.trigger(this._element,this.constructor.eventName(p_)),r=(Ri(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(s),A.trigger(this._element,this.constructor.eventName(g_))),this._popper=this._createPopper(s),s.classList.add(Fn),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))A.on(a,"mouseover",Ln);const o=()=>{A.trigger(this._element,this.constructor.eventName(E_)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||A.trigger(this._element,this.constructor.eventName(m_)).defaultPrevented)return;if(this._getTipElement().classList.remove(Fn),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))A.off(s,"mouseover",Ln);this._activeTrigger[f_]=!1,this._activeTrigger[Yr]=!1,this._activeTrigger[dn]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),A.trigger(this._element,this.constructor.eventName(h_)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(xr,Fn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=vu(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(xr),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new a_({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[d_]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(xr)}_isShown(){return this.tip&&this.tip.classList.contains(Fn)}_createPopper(e){const n=fe(this._config.placement,[this,e,this._element]),r=y_[n.toUpperCase()];return Lr(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return fe(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")A.on(this._element,this.constructor.eventName(b_),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==__){const r=n===dn?this.constructor.eventName(N_):this.constructor.eventName(v_),s=n===dn?this.constructor.eventName(A_):this.constructor.eventName(T_);A.on(this._element,r,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusin"?Yr:dn]=!0,o._enter()}),A.on(this._element,s,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusout"?Yr:dn]=o._element.contains(i.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},A.on(this._element.closest(Co),Lo,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=Qe.getDataAttributes(this._element);for(const r of Object.keys(n))c_.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:at(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=Kt.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Le(Kt);const L_="popover",I_=".popover-header",S_=".popover-body",D_={...Kt.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},k_={...Kt.DefaultType,content:"(null|string|element|function)"};class Kr extends Kt{static get Default(){return D_}static get DefaultType(){return k_}static get NAME(){return L_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[I_]:this._getTitle(),[S_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Kr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Le(Kr);const w_="scrollspy",jr=".bs.scrollspy",P_=".data-api",$_=`activate${jr}`,Io=`click${jr}`,R_=`load${jr}${P_}`,M_="dropdown-item",jt="active",V_='[data-bs-spy="scroll"]',Gr="[href]",F_=".nav, .list-group",So=".nav-link",B_=`${So}, .nav-item > ${So}, .list-group-item`,U_=".dropdown",H_=".dropdown-toggle",W_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},x_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Bn extends ke{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return W_}static get DefaultType(){return x_}static get NAME(){return w_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=at(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(A.off(this._config.target,Io),A.on(this._config.target,Io,Gr,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,s=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:s,behavior:"smooth"});return}r.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=o=>this._targetLinks.get(`#${o.target.id}`),r=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},s=(this._rootElement||document.documentElement).scrollTop,i=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(r(o),!s)return;continue}!i&&!a&&r(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=$.find(Gr,this._config.target);for(const n of e){if(!n.hash||lt(n))continue;const r=$.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(jt),this._activateParents(e),A.trigger(this._element,$_,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(M_)){$.findOne(H_,e.closest(U_)).classList.add(jt);return}for(const n of $.parents(e,F_))for(const r of $.prev(n,B_))r.classList.add(jt)}_clearActiveClass(e){e.classList.remove(jt);const n=$.find(`${Gr}.${jt}`,e);for(const r of n)r.classList.remove(jt)}static jQueryInterface(e){return this.each(function(){const n=Bn.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}A.on(window,R_,()=>{for(const t of $.find(V_))Bn.getOrCreateInstance(t)}),Le(Bn);const Y_="tab",Tt=".bs.tab",K_=`hide${Tt}`,j_=`hidden${Tt}`,G_=`show${Tt}`,X_=`shown${Tt}`,q_=`click${Tt}`,z_=`keydown${Tt}`,Q_=`load${Tt}`,J_="ArrowLeft",Do="ArrowRight",Z_="ArrowUp",ko="ArrowDown",Xr="Home",wo="End",Nt="active",Po="fade",qr="show",em="dropdown",$o=".dropdown-toggle",tm=".dropdown-menu",zr=`:not(${$o})`,nm='.list-group, .nav, [role="tablist"]',rm=".nav-item, .list-group-item",sm=`.nav-link${zr}, .list-group-item${zr}, [role="tab"]${zr}`,Ro='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qr=`${sm}, ${Ro}`,im=`.${Nt}[data-bs-toggle="tab"], .${Nt}[data-bs-toggle="pill"], .${Nt}[data-bs-toggle="list"]`;class Gt extends ke{constructor(e){super(e),this._parent=this._element.closest(nm),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),A.on(this._element,z_,n=>this._keydown(n)))}static get NAME(){return Y_}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?A.trigger(n,K_,{relatedTarget:e}):null;A.trigger(e,G_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Nt),this._activate($.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(qr);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),A.trigger(e,X_,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Po))}_deactivate(e,n){if(!e)return;e.classList.remove(Nt),e.blur(),this._deactivate($.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(qr);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),A.trigger(e,j_,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Po))}_keydown(e){if(![J_,Do,Z_,ko,Xr,wo].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(s=>!lt(s));let r;if([Xr,wo].includes(e.key))r=n[e.key===Xr?0:n.length-1];else{const s=[Do,ko].includes(e.key);r=kr(n,e.target,s,!0)}r&&(r.focus({preventScroll:!0}),Gt.getOrCreateInstance(r).show())}_getChildren(){return $.find(Qr,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=$.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(em))return;const s=(i,o)=>{const a=$.findOne(i,r);a&&a.classList.toggle(o,n)};s($o,Nt),s(tm,qr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Nt)}_getInnerElement(e){return e.matches(Qr)?e:$.findOne(Qr,e)}_getOuterElement(e){return e.closest(rm)||e}static jQueryInterface(e){return this.each(function(){const n=Gt.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}A.on(document,q_,Ro,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!lt(this)&&Gt.getOrCreateInstance(this).show()}),A.on(window,Q_,()=>{for(const t of $.find(im))Gt.getOrCreateInstance(t)}),Le(Gt);const om="toast",dt=".bs.toast",am=`mouseover${dt}`,lm=`mouseout${dt}`,cm=`focusin${dt}`,um=`focusout${dt}`,dm=`hide${dt}`,fm=`hidden${dt}`,_m=`show${dt}`,mm=`shown${dt}`,hm="fade",Mo="hide",Un="show",Hn="showing",pm={animation:"boolean",autohide:"boolean",delay:"number"},Em={animation:!0,autohide:!0,delay:5e3};class Xt extends ke{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Em}static get DefaultType(){return pm}static get NAME(){return om}show(){if(A.trigger(this._element,_m).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(hm);const n=()=>{this._element.classList.remove(Hn),A.trigger(this._element,mm),this._maybeScheduleHide()};this._element.classList.remove(Mo),sn(this._element),this._element.classList.add(Un,Hn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||A.trigger(this._element,dm).defaultPrevented)return;const n=()=>{this._element.classList.add(Mo),this._element.classList.remove(Hn,Un),A.trigger(this._element,fm)};this._element.classList.add(Hn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Un),super.dispose()}isShown(){return this._element.classList.contains(Un)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){A.on(this._element,am,e=>this._onInteraction(e,!0)),A.on(this._element,lm,e=>this._onInteraction(e,!1)),A.on(this._element,cm,e=>this._onInteraction(e,!0)),A.on(this._element,um,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Xt.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}In(Xt),Le(Xt);const gm=l.defineComponent({name:"BsToast",emits:["shown","hidden"],mounted(){const t=this.$refs.toastRef;Xt.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.toast",this.onShown),t.addEventListener("hidden.bs.toast",this.onHidden)},methods:{hide(){Xt.getOrCreateInstance(this.$refs.toastRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),bm={ref:"toastRef",class:"toast hide",role:"alert","aria-live":"assertive","aria-atomic":"true"};function vm(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("div",bm,[l.renderSlot(t.$slots,"default")],512)}const Tm=Ne(gm,[["render",vm]]),Nm=l.defineComponent({name:"BsModal",props:{title:{type:String,required:!0},classDialog:{type:[String,Object],default:null},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1}},emits:["shown","hidden"],mounted(){const t=this.$refs.modalRef;ut.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.modal",this.onShown),t.addEventListener("hidden.bs.modal",this.onHidden)},methods:{hide(){ut.getOrCreateInstance(this.$refs.modalRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),Am={ref:"modalRef",class:"modal fade",tabindex:"-1","aria-hidden":"true"},ym={class:"modal-content"},Om={key:0,class:"modal-header"},Cm=["textContent"],Lm=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"},null,-1),Im={key:1,class:"modal-body"},Sm={key:2,class:"modal-footer"};function Dm(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("div",Am,[l.createElementVNode("div",{class:l.normalizeClass(["modal-dialog",t.classDialog])},[l.createElementVNode("div",ym,[t.hideHeader?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Om,[l.renderSlot(t.$slots,"header",{},()=>[l.createElementVNode("div",{class:"h5 modal-title",textContent:l.toDisplayString(t.title)},null,8,Cm),Lm])])),t.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Im,[l.renderSlot(t.$slots,"body")])),t.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Sm,[l.renderSlot(t.$slots,"footer")]))])],2)],512)}const km=Ne(Nm,[["render",Dm]]),wm=l.defineComponent({name:"BsSelect",props:{modelValue:{type:[String,Number,Array],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},options:{type:Array,required:!0},placeholder:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=l.ref(null);return{inputRef:t,validator:kt(t)}},methods:{getHintId(){return this.id+"Hint"},onInput(t){const e=t.target;this.$emit("update:modelValue",e.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Pm=["for","textContent"],$m=["id","value","aria-labelledby"],Rm={key:0,value:"",disabled:"",hidden:""},Mm=["value"],Vm=["textContent"],Fm=["id","textContent"];function Bm(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock(l.Fragment,null,[t.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:t.id,class:"form-label",textContent:l.toDisplayString(t.label)},null,8,Pm)):l.createCommentVNode("",!0),l.createElementVNode("select",l.mergeProps({id:t.id,ref:"inputRef",class:"form-select",value:t.modelValue,"aria-labelledby":t.hint!==void 0?t.getHintId():null},t.$attrs,{onInput:e[0]||(e[0]=(...o)=>t.onInput&&t.onInput(...o)),onInvalid:e[1]||(e[1]=(...o)=>t.onInvalid&&t.onInvalid(...o))}),[t.placeholder!==void 0?(l.openBlock(),l.createElementBlock("option",Rm,l.toDisplayString(t.placeholder),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.options,(o,a)=>(l.openBlock(),l.createElementBlock("option",{key:a,value:o.value},l.toDisplayString(o.text),9,Mm))),128))],16,$m),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(t.validator.getInvalidMessage())},null,8,Vm)):l.createCommentVNode("",!0),t.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:l.toDisplayString(t.hint)},null,8,Fm)):l.createCommentVNode("",!0)],64)}const Um=Ne(wm,[["render",Bm]]),Hm=l.defineComponent({name:"BsRadio",props:{value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const t=l.ref(null);return{inputRef:t,validator:kt(t)}},computed:{isChecked(){return this.modelValue===this.value}},methods:{getHintId(){return this.id+"Hint"},onInput(){this.$emit("update:modelValue",this.value)},onInvalid(t){this.validatorEnabled&&this.validator.onInvalid(t)}}}),Wm=["id","value","checked","aria-describedby"],xm=["for","textContent"],Ym=["textContent"],Km=["id","textContent"];function jm(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",t.classContainer])},[l.createElementVNode("input",l.mergeProps({id:t.id,ref:"inputRef",value:t.modelValue},t.$attrs,{type:"radio",class:"form-check-input",checked:t.isChecked,"aria-describedby":t.hint!==void 0?t.getHintId():null,onInput:e[0]||(e[0]=(...o)=>t.onInput&&t.onInput(...o)),onInvalid:e[1]||(e[1]=(...o)=>t.onInvalid&&t.onInvalid(...o))}),null,16,Wm),t.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:t.id,class:"form-check-label",textContent:l.toDisplayString(t.label)},null,8,xm)):l.createCommentVNode("",!0),t.validatorEnabled&&t.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(t.validator.getInvalidMessage())},null,8,Ym)):l.createCommentVNode("",!0),t.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:t.getHintId(),class:"form-text",textContent:l.toDisplayString(t.hint)},null,8,Km)):l.createCommentVNode("",!0)],2)}const Gm=Ne(Hm,[["render",jm]]),Xm=l.defineComponent({name:"BsOffcanvas",props:{title:{type:String,required:!0}},emits:["shown","hidden"],mounted(){const t=this.$refs.offcanvasRef;Ue.getOrCreateInstance(t).show(),t.addEventListener("shown.bs.offcanvas",this.onShown),t.addEventListener("hidden.bs.offcanvas",this.onHidden)},methods:{hide(){Ue.getOrCreateInstance(this.$refs.offcanvasRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),qm={ref:"offcanvasRef",class:"offcanvas",tabindex:"-1","aria-labelledby":"offcanvasTitle"},zm={class:"offcanvas-header"},Qm=["textContent"],Jm=l.createElementVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas"},null,-1),Zm={class:"offcanvas-body"};function eh(t,e,n,r,s,i){return l.openBlock(),l.createElementBlock("div",qm,[l.createElementVNode("div",zm,[l.renderSlot(t.$slots,"header",{},()=>[l.createElementVNode("div",{id:"offcanvasTitle",class:"h5 mb-0",textContent:l.toDisplayString(t.title)},null,8,Qm),Jm])]),l.createElementVNode("div",Zm,[l.renderSlot(t.$slots,"body")])],512)}const th=Ne(Xm,[["render",eh]]);Z.BsBreadcrumb=xo,Z.BsCheckbox=nc,Z.BsForm=jo,Z.BsInput=ql,Z.BsModal=km,Z.BsOffcanvas=th,Z.BsPaginator=gc,Z.BsRadio=Gm,Z.BsSelect=Um,Z.BsTable=Dc,Z.BsTextarea=cc,Z.BsToast=Tm,Z.useValidator=kt,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|
|
21
|
+
*/const Lr="9.9.0";function Or(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(_e().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(_e().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_e().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_e().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_e().__INTLIFY_PROD_DEVTOOLS__=!1)}const On=z.__EXTEND_POINT__,be=mt(On),re={FALLBACK_TO_ROOT:On,NOT_SUPPORTED_PRESERVE:be(),NOT_SUPPORTED_FORMATTER:be(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:be(),NOT_SUPPORTED_GET_CHOICE_INDEX:be(),COMPONENT_NAME_LEGACY_COMPATIBLE:be(),NOT_FOUND_PARENT_SCOPE:be(),IGNORE_OBJ_FLATTEN:be(),NOTICE_DROP_ALLOW_COMPOSITION:be()},Cr={[re.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[re.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[re.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[re.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[re.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[re.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[re.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[re.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[re.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function Ot(e,...t){return ft(Cr[e],...t)}const Cn=q.__EXTEND_POINT__,ee=mt(Cn),H={UNEXPECTED_RETURN_TYPE:Cn,INVALID_ARGUMENT:ee(),MUST_BE_CALL_SETUP_TOP:ee(),NOT_INSTALLED:ee(),NOT_AVAILABLE_IN_LEGACY_MODE:ee(),REQUIRED_VALUE:ee(),INVALID_VALUE:ee(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ee(),NOT_INSTALLED_WITH_PROVIDE:ee(),UNEXPECTED_ERROR:ee(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ee(),BRIDGE_SUPPORT_VUE_2_ONLY:ee(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ee(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ee(),__EXTEND_POINT__:ee()};function Te(e,...t){return Me(e,null,process.env.NODE_ENV!=="production"?{messages:yr,args:t}:void 0)}const yr={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ct=me("__translateVNode"),yt=me("__datetimeParts"),kt=me("__numberParts"),St=me("__enableEmitter"),At=me("__disableEmitter"),kr=me("__setPluralRules"),yn=me("__injectWithOption"),vt=me("__dispose");function qe(e){if(!$(e))return e;for(const t in e)if(at(e,t))if(!t.includes("."))$(e[t])&&qe(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let i=0;i<a;i++){if(n[i]in s||(s[n[i]]={}),!$(s[n[i]])){process.env.NODE_ENV!=="production"&&ge(Ot(re.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}s=s[n[i]]}r||(s[n[a]]=e[t],delete e[t]),$(s[n[a]])&&qe(s[n[a]])}return e}function Pt(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,i=F(n)?n:X(a)?{}:{[e]:{}};if(X(a)&&a.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:d,resource:g}=c;d?(i[d]=i[d]||{},lt(g,i[d])):lt(g,i)}else k(c)&<(JSON.parse(c),i)}),s==null&&r)for(const c in i)at(i,c)&&qe(i[c]);return i}function kn(e){return e.type}function Sr(e,t,n){let a=$(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Pt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if($(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if($(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Sn(e){return l.createVNode(l.Text,null,e,0)}const An="__INTLIFY_META__",vn=()=>[],Ar=()=>!1;let Pn=0;function Dn(e){return(t,n,a,s)=>e(n,a,l.getCurrentInstance()||void 0,s)}const vr=()=>{const e=l.getCurrentInstance();let t=null;return e&&(t=kn(e)[An])?{[An]:t}:null};function Pr(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,i=fe?l.ref:l.shallowRef;let c=U(e.inheritLocale)?e.inheritLocale:!0;const d=i(n&&c?n.locale.value:k(e.locale)?e.locale:Xe),g=i(n&&c?n.fallbackLocale.value:k(e.fallbackLocale)||X(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),h=i(Pt(d.value,e)),L=i(F(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),N=i(F(e.numberFormats)?e.numberFormats:{[d.value]:{}});let A=n?n.missingWarn:U(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,R=n?n.fallbackWarn:U(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,P=n?n.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,f=W(e.missing)?e.missing:null,p=W(e.missing)?Dn(e.missing):null,T=W(e.postTranslation)?e.postTranslation:null,E=n?n.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const O=n?n.modifiers:F(e.modifiers)?e.modifiers:{};let S=e.pluralRules||n&&n.pluralRules,I;I=(()=>{s&&rn(null);const _={version:Lr,locale:d.value,fallbackLocale:g.value,messages:h.value,modifiers:O,pluralRules:S,missing:p===null?void 0:p,missingWarn:A,fallbackWarn:R,fallbackFormat:v,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:E,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=L.value,_.numberFormats=N.value,_.__datetimeFormatters=F(I)?I.__datetimeFormatters:void 0,_.__numberFormatters=F(I)?I.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(_.__v_emitter=F(I)?I.__v_emitter:void 0);const b=mr(_);return s&&rn(b),b})(),je(I,d.value,g.value);function G(){return[d.value,g.value,h.value,L.value,N.value]}const oe=l.computed({get:()=>d.value,set:_=>{d.value=_,I.locale=d.value}}),J=l.computed({get:()=>g.value,set:_=>{g.value=_,I.fallbackLocale=g.value,je(I,d.value,_)}}),le=l.computed(()=>h.value),we=l.computed(()=>L.value),Je=l.computed(()=>N.value);function ue(){return W(T)?T:null}function Ue(_){T=_,I.postTranslation=_}function Qe(){return f}function We(_){_!==null&&(p=Dn(_)),f=_,I.missing=p}function Ze(_,b){return _!=="translate"||!b.resolvedMessage}const se=(_,b,B,Y,ve,dt)=>{G();let Ye;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(I.fallbackContext=n?fr():void 0),Ye=_(I)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(I.fallbackContext=void 0)}if(B!=="translate exists"&&Q(Ye)&&Ye===ot||B==="translate exists"&&!Ye){const[Pe,ho]=b();if(process.env.NODE_ENV!=="production"&&n&&k(Pe)&&Ze(B,ho)&&(P&&(it(R,Pe)||on(A,Pe))&&ge(Ot(re.FALLBACK_TO_ROOT,{key:Pe,type:B})),process.env.NODE_ENV!=="production")){const{__v_emitter:$n}=I;$n&&P&&$n.emit("fallback",{type:B,key:Pe,to:"global",groupId:`${B}:${Pe}`})}return n&&P?Y(n):ve(Pe)}else{if(dt(Ye))return Ye;throw Te(H.UNEXPECTED_RETURN_TYPE)}};function He(..._){return se(b=>Reflect.apply(mn,null,[b,..._]),()=>Tt(..._),"translate",b=>Reflect.apply(b.t,b,[..._]),b=>b,b=>k(b))}function xe(..._){const[b,B,Y]=_;if(Y&&!$(Y))throw Te(H.INVALID_ARGUMENT);return He(b,B,Z({resolvedMessage:!0},Y||{}))}function Ge(..._){return se(b=>Reflect.apply(Nn,null,[b,..._]),()=>It(..._),"datetime format",b=>Reflect.apply(b.d,b,[..._]),()=>st,b=>k(b))}function ze(..._){return se(b=>Reflect.apply(Tn,null,[b,..._]),()=>Lt(..._),"number format",b=>Reflect.apply(b.n,b,[..._]),()=>st,b=>k(b))}function et(_){return _.map(b=>k(b)||Q(b)||U(b)?Sn(String(b)):b)}const ke={normalize:et,interpolate:_=>_,type:"vnode"};function Se(..._){return se(b=>{let B;const Y=b;try{Y.processor=ke,B=Reflect.apply(mn,null,[Y,..._])}finally{Y.processor=null}return B},()=>Tt(..._),"translate",b=>b[Ct](..._),b=>[Sn(b)],b=>X(b))}function Ie(..._){return se(b=>Reflect.apply(Tn,null,[b,..._]),()=>Lt(..._),"number format",b=>b[kt](..._),vn,b=>k(b)||X(b))}function Ae(..._){return se(b=>Reflect.apply(Nn,null,[b,..._]),()=>It(..._),"datetime format",b=>b[yt](..._),vn,b=>k(b)||X(b))}function tt(_){S=_,I.pluralRules=S}function u(_,b){return se(()=>{if(!_)return!1;const B=k(b)?b:d.value,Y=C(B),ve=I.messageResolver(Y,_);return ye(ve)||ae(ve)||k(ve)},()=>[_],"translate exists",B=>Reflect.apply(B.te,B,[_,b]),Ar,B=>U(B))}function o(_){let b=null;const B=Jt(I,g.value,d.value);for(let Y=0;Y<B.length;Y++){const ve=h.value[B[Y]]||{},dt=I.messageResolver(ve,_);if(dt!=null){b=dt;break}}return b}function m(_){const b=o(_);return b??(n?n.tm(_)||{}:{})}function C(_){return h.value[_]||{}}function M(_,b){if(r){const B={[_]:b};for(const Y in B)at(B,Y)&&qe(B[Y]);b=B[_]}h.value[_]=b,I.messages=h.value}function V(_,b){h.value[_]=h.value[_]||{};const B={[_]:b};for(const Y in B)at(B,Y)&&qe(B[Y]);b=B[_],lt(b,h.value[_]),I.messages=h.value}function de(_){return L.value[_]||{}}function Ee(_,b){L.value[_]=b,I.datetimeFormats=L.value,bn(I,_,b)}function po(_,b){L.value[_]=Z(L.value[_]||{},b),I.datetimeFormats=L.value,bn(I,_,b)}function Eo(_){return N.value[_]||{}}function go(_,b){N.value[_]=b,I.numberFormats=N.value,Ln(I,_,b)}function No(_,b){N.value[_]=Z(N.value[_]||{},b),I.numberFormats=N.value,Ln(I,_,b)}Pn++,n&&fe&&(l.watch(n.locale,_=>{c&&(d.value=_,I.locale=_,je(I,d.value,g.value))}),l.watch(n.fallbackLocale,_=>{c&&(g.value=_,I.fallbackLocale=_,je(I,d.value,g.value))}));const j={id:Pn,locale:oe,fallbackLocale:J,get inheritLocale(){return c},set inheritLocale(_){c=_,_&&n&&(d.value=n.locale.value,g.value=n.fallbackLocale.value,je(I,d.value,g.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:le,get modifiers(){return O},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return A},set missingWarn(_){A=_,I.missingWarn=A},get fallbackWarn(){return R},set fallbackWarn(_){R=_,I.fallbackWarn=R},get fallbackRoot(){return P},set fallbackRoot(_){P=_},get fallbackFormat(){return v},set fallbackFormat(_){v=_,I.fallbackFormat=v},get warnHtmlMessage(){return E},set warnHtmlMessage(_){E=_,I.warnHtmlMessage=_},get escapeParameter(){return y},set escapeParameter(_){y=_,I.escapeParameter=_},t:He,getLocaleMessage:C,setLocaleMessage:M,mergeLocaleMessage:V,getPostTranslationHandler:ue,setPostTranslationHandler:Ue,getMissingHandler:Qe,setMissingHandler:We,[kr]:tt};return j.datetimeFormats=we,j.numberFormats=Je,j.rt=xe,j.te=u,j.tm=m,j.d=Ge,j.n=ze,j.getDateTimeFormat=de,j.setDateTimeFormat=Ee,j.mergeDateTimeFormat=po,j.getNumberFormat=Eo,j.setNumberFormat=go,j.mergeNumberFormat=No,j[yn]=a,j[Ct]=Se,j[yt]=Ae,j[kt]=Ie,process.env.NODE_ENV!=="production"&&(j[St]=_=>{I.__v_emitter=_},j[At]=()=>{I.__v_emitter=void 0}),j}const Dt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Dr({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===l.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function Rn(e){return l.Fragment}Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Q(e)||!isNaN(e)}},Dt);function Rr(e){return X(e)&&!k(e[0])}function Mn(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const i={part:!0};let c={};e.locale&&(i.locale=e.locale),k(e.format)?i.key=e.format:$(e.format)&&(k(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((N,A)=>n.includes(A)?Z({},N,{[A]:e.format[A]}):N,{}));const d=a(e.value,i,c);let g=[i.key];X(d)?g=d.map((N,A)=>{const R=s[N.type],P=R?R({[N.type]:N.value,index:A,parts:d}):[N.value];return Rr(P)&&(P[0].key=`${N.type}-${A}`),P}):k(d)&&(g=[d]);const h=Z({},r),L=k(e.tag)||$(e.tag)?e.tag:Rn();return l.h(L,h,g)}}Z({value:{type:Number,required:!0},format:{type:[String,Object]}},Dt),Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Dt);function Fn(e,t){}const Mr=me("global-vue-i18n");function ct(e={}){const t=l.getCurrentInstance();if(t==null)throw Te(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(H.NOT_INSTALLED);const n=Fr(t),a=Vr(n),s=kn(t),r=$r(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(H.NOT_AVAILABLE_IN_LEGACY_MODE);return Wr(t,r,a,e)}if(r==="global")return Sr(a,e,s),a;if(r==="parent"){let d=Br(n,t,e.__useComponent);return d==null&&(process.env.NODE_ENV!=="production"&&ge(Ot(re.NOT_FOUND_PARENT_SCOPE)),d=a),d}const i=n;let c=i.__getInstance(t);if(c==null){const d=Z({},e);"__i18n"in s&&(d.__i18n=s.__i18n),a&&(d.__root=a),c=Pr(d),i.__composerExtend&&(c[vt]=i.__composerExtend(c)),Ur(i,t,c),i.__setInstance(t,c)}return c}function Fr(e){{const t=l.inject(e.isCE?Mr:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function $r(e,t){return nt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Vr(e){return e.mode==="composition"?e.global:e.global.__composer}function Br(e,t,n=!1){let a=null;const s=t.root;let r=wr(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(a=c.__composer,n&&a&&!a[yn]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function wr(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Ur(e,t,n){let a=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=na();const s=n;s[St]&&s[St](a),a.on("*",Fn)}},t),l.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",Fn),s[At]&&s[At](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[vt];r&&(r(),delete s[vt])},t)}function Wr(e,t,n,a={}){const s=t==="local",r=l.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=U(a.inheritLocale)?a.inheritLocale:!k(a.locale),c=l.ref(!s||i?n.locale.value:k(a.locale)?a.locale:Xe),d=l.ref(!s||i?n.fallbackLocale.value:k(a.fallbackLocale)||X(a.fallbackLocale)||F(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:c.value),g=l.ref(Pt(c.value,a)),h=l.ref(F(a.datetimeFormats)?a.datetimeFormats:{[c.value]:{}}),L=l.ref(F(a.numberFormats)?a.numberFormats:{[c.value]:{}}),N=s?n.missingWarn:U(a.missingWarn)||Re(a.missingWarn)?a.missingWarn:!0,A=s?n.fallbackWarn:U(a.fallbackWarn)||Re(a.fallbackWarn)?a.fallbackWarn:!0,R=s?n.fallbackRoot:U(a.fallbackRoot)?a.fallbackRoot:!0,P=!!a.fallbackFormat,v=W(a.missing)?a.missing:null,f=W(a.postTranslation)?a.postTranslation:null,p=s?n.warnHtmlMessage:U(a.warnHtmlMessage)?a.warnHtmlMessage:!0,T=!!a.escapeParameter,E=s?n.modifiers:F(a.modifiers)?a.modifiers:{},y=a.pluralRules||s&&n.pluralRules;function O(){return[c.value,d.value,g.value,h.value,L.value]}const S=l.computed({get:()=>r.value?r.value.locale.value:c.value,set:o=>{r.value&&(r.value.locale.value=o),c.value=o}}),I=l.computed({get:()=>r.value?r.value.fallbackLocale.value:d.value,set:o=>{r.value&&(r.value.fallbackLocale.value=o),d.value=o}}),w=l.computed(()=>r.value?r.value.messages.value:g.value),G=l.computed(()=>h.value),oe=l.computed(()=>L.value);function J(){return r.value?r.value.getPostTranslationHandler():f}function le(o){r.value&&r.value.setPostTranslationHandler(o)}function we(){return r.value?r.value.getMissingHandler():v}function Je(o){r.value&&r.value.setMissingHandler(o)}function ue(o){return O(),o()}function Ue(...o){return r.value?ue(()=>Reflect.apply(r.value.t,null,[...o])):ue(()=>"")}function Qe(...o){return r.value?Reflect.apply(r.value.rt,null,[...o]):""}function We(...o){return r.value?ue(()=>Reflect.apply(r.value.d,null,[...o])):ue(()=>"")}function Ze(...o){return r.value?ue(()=>Reflect.apply(r.value.n,null,[...o])):ue(()=>"")}function se(o){return r.value?r.value.tm(o):{}}function He(o,m){return r.value?r.value.te(o,m):!1}function xe(o){return r.value?r.value.getLocaleMessage(o):{}}function Ge(o,m){r.value&&(r.value.setLocaleMessage(o,m),g.value[o]=m)}function ze(o,m){r.value&&r.value.mergeLocaleMessage(o,m)}function et(o){return r.value?r.value.getDateTimeFormat(o):{}}function ut(o,m){r.value&&(r.value.setDateTimeFormat(o,m),h.value[o]=m)}function ke(o,m){r.value&&r.value.mergeDateTimeFormat(o,m)}function Se(o){return r.value?r.value.getNumberFormat(o):{}}function Ie(o,m){r.value&&(r.value.setNumberFormat(o,m),L.value[o]=m)}function Ae(o,m){r.value&&r.value.mergeNumberFormat(o,m)}const tt={get id(){return r.value?r.value.id:-1},locale:S,fallbackLocale:I,messages:w,datetimeFormats:G,numberFormats:oe,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(o){r.value&&(r.value.inheritLocale=o)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(g.value)},get modifiers(){return r.value?r.value.modifiers:E},get pluralRules(){return r.value?r.value.pluralRules:y},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:N},set missingWarn(o){r.value&&(r.value.missingWarn=o)},get fallbackWarn(){return r.value?r.value.fallbackWarn:A},set fallbackWarn(o){r.value&&(r.value.missingWarn=o)},get fallbackRoot(){return r.value?r.value.fallbackRoot:R},set fallbackRoot(o){r.value&&(r.value.fallbackRoot=o)},get fallbackFormat(){return r.value?r.value.fallbackFormat:P},set fallbackFormat(o){r.value&&(r.value.fallbackFormat=o)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:p},set warnHtmlMessage(o){r.value&&(r.value.warnHtmlMessage=o)},get escapeParameter(){return r.value?r.value.escapeParameter:T},set escapeParameter(o){r.value&&(r.value.escapeParameter=o)},t:Ue,getPostTranslationHandler:J,setPostTranslationHandler:le,getMissingHandler:we,setMissingHandler:Je,rt:Qe,d:We,n:Ze,tm:se,te:He,getLocaleMessage:xe,setLocaleMessage:Ge,mergeLocaleMessage:ze,getDateTimeFormat:et,setDateTimeFormat:ut,mergeDateTimeFormat:ke,getNumberFormat:Se,setNumberFormat:Ie,mergeNumberFormat:Ae};function u(o){o.locale.value=c.value,o.fallbackLocale.value=d.value,Object.keys(g.value).forEach(m=>{o.mergeLocaleMessage(m,g.value[m])}),Object.keys(h.value).forEach(m=>{o.mergeDateTimeFormat(m,h.value[m])}),Object.keys(L.value).forEach(m=>{o.mergeNumberFormat(m,L.value[m])}),o.escapeParameter=T,o.fallbackFormat=P,o.fallbackRoot=R,o.fallbackWarn=A,o.missingWarn=N,o.warnHtmlMessage=p}return l.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const o=r.value=e.proxy.$i18n.__composer;t==="global"?(c.value=o.locale.value,d.value=o.fallbackLocale.value,g.value=o.messages.value,h.value=o.datetimeFormats.value,L.value=o.numberFormats.value):s&&u(o)}),tt}if(Or(),__INTLIFY_JIT_COMPILATION__?zt(gr):zt(Er),ir(Ha),cr(Jt),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=_e();e.__INTLIFY__=!0,Za(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Be(e){const{t}=ct(),n=l.ref(null);function a(c){const d=e.value;d!==null&&(c!==null?d.setCustomValidity(c):d.setCustomValidity(""),n.value=s(d))}function s(c){if(c.validity.valueMissing)return t("validator.error.value_missing");if(c.validity.tooShort)return t("validator.error.too_short",[c.minLength]);if(c.validity.tooLong)return t("validator.error.too_long",[c.maxLength]);if(c.validity.rangeUnderflow)return t("validator.error.range_underflow",[c.min]);if(c.validity.rangeOverflow)return t("validator.error.range_overflow",[c.max]);if(c.validity.typeMismatch){if(c.type==="email")return t("validator.error.type_mismatch.email");if(c.type==="url")return t("validator.error.type_mismatch.url")}if(c.validity.badInput){if(c.type==="number")return t("validator.error.bad_input.number");if(c.type==="date")return t("validator.error.bad_input.date")}if(c.validity.patternMismatch)return t("validator.error.pattern_mismatch");if(c.validity.stepMismatch){const d=Math.floor(Number(c.value)/Number(c.step))*Number(c.step),g=Math.ceil(Number(c.value)/Number(c.step))*Number(c.step);return t("validator.error.step_mismatch",[d,g])}return c.validity.customError?c.validationMessage:null}function r(c){c.target!==null&&(n.value=s(c.target))}function i(){return n.value}return{onInvalid:r,getInvalidMessage:i,setCustomError:a}}const Hr=l.defineComponent({name:"BsInput",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=l.ref(null);return{inputRef:e,validator:Be(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const t=e.target;this.$emit("update:modelValue",t.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),Gr=["for","textContent"],Yr=["id","value","aria-describedby"],Kr=["textContent"],Xr=["id","textContent"];function jr(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:l.toDisplayString(e.label)},null,8,Gr)):l.createCommentVNode("",!0),l.createElementVNode("input",l.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue,class:"form-control"},e.$attrs,{"aria-describedby":e.hint!==void 0?e.getHintId():null,onInput:t[0]||(t[0]=(...i)=>e.onInput&&e.onInput(...i)),onInvalid:t[1]||(t[1]=(...i)=>e.onInvalid&&e.onInvalid(...i))}),null,16,Yr),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(e.validator.getInvalidMessage())},null,8,Kr)):l.createCommentVNode("",!0),e.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:l.toDisplayString(e.hint)},null,8,Xr)):l.createCommentVNode("",!0)],64)}const qr=ne(Hr,[["render",jr]]),Jr=l.defineComponent({name:"BsCheckbox",props:{value:{type:String,default:null},modelValue:{type:[Array,Boolean],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=l.ref(null);return{inputRef:e,validator:Be(e)}},computed:{isChecked(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===!0}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const n=e.target.checked;if(this.modelValue instanceof Array){const a=[...this.modelValue];n?a.push(this.value):a.splice(a.indexOf(this.value),1),this.$emit("update:modelValue",a)}else this.$emit("update:modelValue",n)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),Qr=["id","value","checked","aria-describedby"],Zr=["for","textContent"],xr=["textContent"],zr=["id","textContent"];function el(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",e.classContainer])},[l.createElementVNode("input",l.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{type:"checkbox",class:"form-check-input",checked:e.isChecked,"aria-describedby":e.hint!==void 0?e.getHintId():null,onInput:t[0]||(t[0]=(...i)=>e.onInput&&e.onInput(...i)),onInvalid:t[1]||(t[1]=(...i)=>e.onInvalid&&e.onInvalid(...i))}),null,16,Qr),e.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.id,class:"form-check-label",textContent:l.toDisplayString(e.label)},null,8,Zr)):l.createCommentVNode("",!0),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(e.validator.getInvalidMessage())},null,8,xr)):l.createCommentVNode("",!0),e.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:l.toDisplayString(e.hint)},null,8,zr)):l.createCommentVNode("",!0)],2)}const tl=ne(Jr,[["render",el]]),nl=l.defineComponent({name:"BsTextarea",props:{modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=l.ref(null);return{inputRef:e,validator:Be(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const t=e.target;this.$emit("update:modelValue",t.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),al=["for","textContent"],rl=["id","value","aria-describedby"],ll=["textContent"],ol=["id","textContent"];function sl(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:l.toDisplayString(e.label)},null,8,al)):l.createCommentVNode("",!0),l.createElementVNode("textarea",l.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{class:"form-control","aria-describedby":e.hint!==void 0?e.getHintId():null,onInput:t[0]||(t[0]=(...i)=>e.onInput&&e.onInput(...i)),onInvalid:t[1]||(t[1]=(...i)=>e.onInvalid&&e.onInvalid(...i))}),null,16,rl),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(e.validator.getInvalidMessage())},null,8,ll)):l.createCommentVNode("",!0),e.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:l.toDisplayString(e.hint)},null,8,ol)):l.createCommentVNode("",!0)],64)}const il=ne(nl,[["render",sl]]),cl=l.defineComponent({name:"BsPaginator",props:{totalCount:{type:Number,required:!0},pageSize:{type:Number,required:!0},currentPage:{type:Number,required:!0},maxVisiblePage:{type:Number,default:5},firstPageLabel:{type:String,default:"«"},previousPageLabel:{type:String,default:"‹"},nextPageLabel:{type:String,default:"›"},lastPageLabel:{type:String,default:"»"}},emits:["pageChanged"],methods:{getPageCount(){return Math.ceil(this.totalCount/this.pageSize)},getVisiblePages(){const e=[],t=this.getPageRange();for(let n=t.beginPage;n<=t.endPage;n+=1)e.push(n+1);return e},isPageActive(e){return e===this.currentPage},onPageClick(e){this.isPageActive(e)||this.$emit("pageChanged",e)},getPageRange(){let e=Math.max(0,this.currentPage-this.maxVisiblePage/2),t=e+this.maxVisiblePage-1;return t>=this.getPageCount()&&(t=this.getPageCount()-1,e=Math.max(0,t-this.maxVisiblePage+1)),{beginPage:Math.floor(e),endPage:Math.floor(t)}}}}),ul={class:"pagination"},dl=["textContent"],fl=["textContent"],ml=["onClick","textContent"],_l=["textContent"],pl=["textContent"];function El(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("nav",null,[l.createElementVNode("ul",ul,[l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-first",{disabled:e.isPageActive(1)}])},[l.createElementVNode("div",{class:"page-link",onClick:t[0]||(t[0]=i=>e.onPageClick(1)),textContent:l.toDisplayString(e.firstPageLabel)},null,8,dl)],2),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-previous",{disabled:e.isPageActive(1)}])},[l.createElementVNode("div",{class:"page-link",onClick:t[1]||(t[1]=i=>e.onPageClick(e.currentPage-1)),textContent:l.toDisplayString(e.previousPageLabel)},null,8,fl)],2),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.getVisiblePages(),(i,c)=>(l.openBlock(),l.createElementBlock("li",{key:c,class:l.normalizeClass(["page-item page-item-number",{active:e.isPageActive(i)}])},[l.createElementVNode("div",{class:"page-link",onClick:d=>e.onPageClick(i),textContent:l.toDisplayString(i)},null,8,ml)],2))),128)),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-next",{disabled:e.isPageActive(e.getPageCount())}])},[l.createElementVNode("div",{class:"page-link",onClick:t[2]||(t[2]=i=>e.onPageClick(e.currentPage+1)),textContent:l.toDisplayString(e.nextPageLabel)},null,8,_l)],2),l.createElementVNode("li",{class:l.normalizeClass(["page-item page-item-last",{disabled:e.isPageActive(e.getPageCount())}])},[l.createElementVNode("div",{class:"page-link",onClick:t[3]||(t[3]=i=>e.onPageClick(e.getPageCount())),textContent:l.toDisplayString(e.lastPageLabel)},null,8,pl)],2)])])}const gl=ne(cl,[["render",El],["__scopeId","data-v-ff85ae67"]]),Nl=l.defineComponent({name:"BsTable",props:{fields:{type:Array,required:!0},items:{type:Array,required:!0},isLoading:{type:Boolean,default:!1},orderBy:{type:String,default:void 0},sortDesc:{type:Boolean,default:void 0},thClass:{type:String,default:void 0},tdClass:{type:String,default:void 0}},emits:["orderChanged"],methods:{isActiveOrderBy(e){return e===this.orderBy},isSortableField(e){return e.sort===void 0||e.sort},getSortIconClass(){if(this.sortDesc===void 0)throw new Error("Sort desc value is null, cannot calculate the sort icon!");return this.sortDesc?"bi bi-caret-up-fill":"bi bi-caret-down-fill"},calcSortDesc(e){return this.sortDesc===void 0?null:this.isOrderByChanged(e)?!1:!this.sortDesc},isOrderByChanged(e){return this.orderBy!==e},onHeadClick(e){this.isSortableField(e)&&this.$emit("orderChanged",{sortDesc:this.calcSortDesc(e.key),orderBy:e.key})}}}),hl=e=>(l.pushScopeId("data-v-e8d4b4dc"),e=e(),l.popScopeId(),e),bl={class:"table"},Tl=["onClick"],Il={key:0},Ll=["colspan"],Ol=hl(()=>l.createElementVNode("div",{class:"d-flex justify-content-center p-2"},[l.createElementVNode("div",{class:"spinner-border spinner-border-sm"})],-1)),Cl={key:1},yl=["colspan"],kl={class:"text-center text-muted small"};function Sl(e,t,n,a,s,r){const i=l.resolveDirective("t");return l.openBlock(),l.createElementBlock("table",bl,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fields,c=>(l.openBlock(),l.createElementBlock("th",{key:c.key,class:l.normalizeClass({"cursor-pointer":e.isSortableField(c),"text-decoration-underline":e.isActiveOrderBy(c.key),thClass:e.thClass}),onClick:d=>e.onHeadClick(c)},[l.renderSlot(e.$slots,"tr",{},()=>[l.createTextVNode(l.toDisplayString(c.label)+" ",1),e.isActiveOrderBy(c.key)&&e.sortDesc!==void 0?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(e.getSortIconClass())},null,2)):l.createCommentVNode("",!0)],!0)],10,Tl))),128))])]),l.createElementVNode("tbody",null,[e.isLoading?(l.openBlock(),l.createElementBlock("tr",Il,[l.createElementVNode("td",{colspan:e.fields.length},[l.renderSlot(e.$slots,"loading",{},()=>[Ol],!0)],8,Ll)])):e.items.length===0?(l.openBlock(),l.createElementBlock("tr",Cl,[l.createElementVNode("td",{colspan:e.fields.length},[l.renderSlot(e.$slots,"empty",{},()=>[l.withDirectives(l.createElementVNode("div",kl,null,512),[[i,"table.empty_text"]])],!0)],8,yl)])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:2},l.renderList(e.items,(c,d)=>(l.openBlock(),l.createElementBlock("tr",{key:d,class:l.normalizeClass(c.trClass)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fields,g=>(l.openBlock(),l.createElementBlock("td",{key:g.key,class:l.normalizeClass(e.tdClass)},[l.renderSlot(e.$slots,"td",{key:d,field:g.key,row:c,value:g.key in c?c[g.key]:null},()=>[l.createTextVNode(l.toDisplayString(c[g.key]),1)],!0)],2))),128))],2))),128))])])}const Al=ne(Nl,[["render",Sl],["__scopeId","data-v-e8d4b4dc"]]),vl=l.defineComponent({name:"BsToast",emits:["shown","hidden"],mounted(){const e=this.$refs.toastRef;De.Toast.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.toast",this.onShown),e.addEventListener("hidden.bs.toast",this.onHidden)},methods:{hide(){De.Toast.getOrCreateInstance(this.$refs.toastRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),Pl={ref:"toastRef",class:"toast hide",role:"alert","aria-live":"assertive","aria-atomic":"true"};function Dl(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("div",Pl,[l.renderSlot(e.$slots,"default")],512)}const Rl=ne(vl,[["render",Dl]]),Ml=l.defineComponent({name:"BsModal",props:{title:{type:String,required:!0},classDialog:{type:[String,Object],default:null},hideHeader:{type:Boolean,default:!1},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1}},emits:["shown","hidden"],mounted(){const e=this.$refs.modalRef;De.Modal.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.modal",this.onShown),e.addEventListener("hidden.bs.modal",this.onHidden)},methods:{hide(){De.Modal.getOrCreateInstance(this.$refs.modalRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),Fl={ref:"modalRef",class:"modal fade",tabindex:"-1","aria-hidden":"true"},$l={class:"modal-content"},Vl={key:0,class:"modal-header"},Bl=["textContent"],wl=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal"},null,-1),Ul={key:1,class:"modal-body"},Wl={key:2,class:"modal-footer"};function Hl(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("div",Fl,[l.createElementVNode("div",{class:l.normalizeClass(["modal-dialog",e.classDialog])},[l.createElementVNode("div",$l,[e.hideHeader?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Vl,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("div",{class:"h5 modal-title",textContent:l.toDisplayString(e.title)},null,8,Bl),wl])])),e.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Ul,[l.renderSlot(e.$slots,"body")])),e.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Wl,[l.renderSlot(e.$slots,"footer")]))])],2)],512)}const Gl=ne(Ml,[["render",Hl]]),Yl=l.defineComponent({name:"BsSelect",props:{modelValue:{type:[String,Number,Array],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},options:{type:Array,required:!0},placeholder:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=l.ref(null);return{inputRef:e,validator:Be(e)}},methods:{getHintId(){return this.id+"Hint"},onInput(e){const t=e.target;this.$emit("update:modelValue",t.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),Kl=["for","textContent"],Xl=["id","value","aria-labelledby"],jl={key:0,value:"",disabled:"",hidden:""},ql=["value"],Jl=["textContent"],Ql=["id","textContent"];function Zl(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.id,class:"form-label",textContent:l.toDisplayString(e.label)},null,8,Kl)):l.createCommentVNode("",!0),l.createElementVNode("select",l.mergeProps({id:e.id,ref:"inputRef",class:"form-select",value:e.modelValue,"aria-labelledby":e.hint!==void 0?e.getHintId():null},e.$attrs,{onInput:t[0]||(t[0]=(...i)=>e.onInput&&e.onInput(...i)),onInvalid:t[1]||(t[1]=(...i)=>e.onInvalid&&e.onInvalid(...i))}),[e.placeholder!==void 0?(l.openBlock(),l.createElementBlock("option",jl,l.toDisplayString(e.placeholder),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(i,c)=>(l.openBlock(),l.createElementBlock("option",{key:c,value:i.value},l.toDisplayString(i.text),9,ql))),128))],16,Xl),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(e.validator.getInvalidMessage())},null,8,Jl)):l.createCommentVNode("",!0),e.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:l.toDisplayString(e.hint)},null,8,Ql)):l.createCommentVNode("",!0)],64)}const xl=ne(Yl,[["render",Zl]]),zl=l.defineComponent({name:"BsRadio",props:{value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:null},id:{type:String,required:!0},label:{type:String,default:void 0},hint:{type:String,default:void 0},classContainer:{type:String,default:void 0},validatorEnabled:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(){const e=l.ref(null);return{inputRef:e,validator:Be(e)}},computed:{isChecked(){return this.modelValue===this.value}},methods:{getHintId(){return this.id+"Hint"},onInput(){this.$emit("update:modelValue",this.value)},onInvalid(e){this.validatorEnabled&&this.validator.onInvalid(e)}}}),eo=["id","value","checked","aria-describedby"],to=["for","textContent"],no=["textContent"],ao=["id","textContent"];function ro(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["form-check",e.classContainer])},[l.createElementVNode("input",l.mergeProps({id:e.id,ref:"inputRef",value:e.modelValue},e.$attrs,{type:"radio",class:"form-check-input",checked:e.isChecked,"aria-describedby":e.hint!==void 0?e.getHintId():null,onInput:t[0]||(t[0]=(...i)=>e.onInput&&e.onInput(...i)),onInvalid:t[1]||(t[1]=(...i)=>e.onInvalid&&e.onInvalid(...i))}),null,16,eo),e.label!==void 0?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.id,class:"form-check-label",textContent:l.toDisplayString(e.label)},null,8,to)):l.createCommentVNode("",!0),e.validatorEnabled&&e.validator.getInvalidMessage()!==null?(l.openBlock(),l.createElementBlock("div",{key:1,class:"invalid-feedback",textContent:l.toDisplayString(e.validator.getInvalidMessage())},null,8,no)):l.createCommentVNode("",!0),e.hint!==void 0?(l.openBlock(),l.createElementBlock("div",{key:2,id:e.getHintId(),class:"form-text",textContent:l.toDisplayString(e.hint)},null,8,ao)):l.createCommentVNode("",!0)],2)}const lo=ne(zl,[["render",ro]]),oo=l.defineComponent({name:"BsOffcanvas",props:{title:{type:String,required:!0}},emits:["shown","hidden"],mounted(){const e=this.$refs.offcanvasRef;De.Offcanvas.getOrCreateInstance(e).show(),e.addEventListener("shown.bs.offcanvas",this.onShown),e.addEventListener("hidden.bs.offcanvas",this.onHidden)},methods:{hide(){De.Offcanvas.getOrCreateInstance(this.$refs.offcanvasRef).hide()},onShown(){this.$emit("shown")},onHidden(){this.$emit("hidden")}}}),so={ref:"offcanvasRef",class:"offcanvas",tabindex:"-1","aria-labelledby":"offcanvasTitle"},io={class:"offcanvas-header"},co=["textContent"],uo=l.createElementVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas"},null,-1),fo={class:"offcanvas-body"};function mo(e,t,n,a,s,r){return l.openBlock(),l.createElementBlock("div",so,[l.createElementVNode("div",io,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("div",{id:"offcanvasTitle",class:"h5 mb-0",textContent:l.toDisplayString(e.title)},null,8,co),uo])]),l.createElementVNode("div",fo,[l.renderSlot(e.$slots,"body")])],512)}const _o=ne(oo,[["render",mo]]);K.BsBreadcrumb=Hn,K.BsCheckbox=tl,K.BsForm=Kn,K.BsInput=qr,K.BsModal=Gl,K.BsOffcanvas=_o,K.BsPaginator=gl,K.BsRadio=lo,K.BsSelect=xl,K.BsTable=Al,K.BsTextarea=il,K.BsToast=Rl,K.useValidator=Be,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|