vue-select-sides
Version:
select sides component for vue
16 lines • 107 kB
JavaScript
(function(u,Ke){typeof exports=="object"&&typeof module<"u"?module.exports=Ke(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ke):(u=typeof globalThis<"u"?globalThis:u||self,u.vueSelectSides=Ke(u.Vue))})(this,function(u){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}};(function(e){(function(t,n){e.exports=n()})(Ke,function(){var t=Object.prototype.toString,n=Object.prototype.hasOwnProperty;function r(m){if(!m||c(m)&&m.length===0)return!0;for(var g in m)if(n.call(m,g))return!1;return!0}function s(m){return t.call(m)}function l(m){return typeof m=="number"||s(m)==="[object Number]"}function a(m){return typeof m=="string"||s(m)==="[object String]"}function o(m){return typeof m=="object"&&s(m)==="[object Object]"}function c(m){return typeof m=="object"&&typeof m.length=="number"&&s(m)==="[object Array]"}function d(m){return typeof m=="boolean"||s(m)==="[object Boolean]"}function E(m){var g=parseInt(m);return g.toString()===m?g:m}function L(m,g,O,P){if(l(g)&&(g=[g]),r(g))return m;if(a(g))return L(m,g.split("."),O,P);var R=E(g[0]);if(g.length===1){var _=m[R];return(_===void 0||!P)&&(m[R]=O),_}return m[R]===void 0&&(l(R)?m[R]=[]:m[R]={}),L(m[R],g.slice(1),O,P)}function p(m,g){if(l(g)&&(g=[g]),!r(m)){if(r(g))return m;if(a(g))return p(m,g.split("."));var O=E(g[0]),P=m[O];if(g.length===1)P!==void 0&&(c(m)?m.splice(O,1):delete m[O]);else if(m[O]!==void 0)return p(m[O],g.slice(1));return m}}var b={};return b.ensureExists=function(m,g,O){return L(m,g,O,!0)},b.set=function(m,g,O,P){return L(m,g,O,P)},b.insert=function(m,g,O,P){var R=b.get(m,g);P=~~P,c(R)||(R=[],b.set(m,g,R)),R.splice(P,0,O)},b.empty=function(m,g){if(r(g))return m;if(!r(m)){var O,P;if(!(O=b.get(m,g)))return m;if(a(O))return b.set(m,g,"");if(d(O))return b.set(m,g,!1);if(l(O))return b.set(m,g,0);if(c(O))O.length=0;else if(o(O))for(P in O)n.call(O,P)&&delete O[P];else return b.set(m,g,null)}},b.push=function(m,g){var O=b.get(m,g);c(O)||(O=[],b.set(m,g,O)),O.push.apply(O,Array.prototype.slice.call(arguments,2))},b.coalesce=function(m,g,O){for(var P,R=0,_=g.length;R<_;R++)if((P=b.get(m,g[R]))!==void 0)return P;return O},b.get=function(m,g,O){if(l(g)&&(g=[g]),r(g))return m;if(r(m))return O;if(a(g))return b.get(m,g.split("."),O);var P=E(g[0]);return g.length===1?m[P]===void 0?O:m[P]:b.get(m[P],g.slice(1),O)},b.del=function(m,g){return p(m,g)},b})})(sn);var Bl=sn.exports,an=Bl,on,cn,Ct;Ct=function(e){return function(t){return typeof t===e}},cn=function(t,n){var r=1,s=n||function(l,a){return a};return t[0]==="-"&&(r=-1,t=t.substr(1)),function(a,o){var c,d=s(t,an.get(a,t)),E=s(t,an.get(o,t));return d<E&&(c=-1),d>E&&(c=1),d===E&&(c=0),c*r}},on=function(){var t=Array.prototype.slice.call(arguments),n=t.filter(Ct("string")),r=t.filter(Ct("function"))[0];return function(l,a){for(var o=n.length,c=0,d=0;c===0&&d<o;)c=cn(n[d],r)(l,a),d++;return c}};var Wl=on;const un=wl(Wl),he=e=>JSON.parse(JSON.stringify(e)),Te=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),ht=(e,t)=>{let n=[];return e.sortSelectedUp&&n.push("-selectedDefault"),e.orderBy&&(e.orderBy.toLowerCase()==="asc"&&n.push("label"),e.orderBy.toLowerCase()==="desc"&&n.push("-label")),t.sort(un(...n)).map(r=>(r.children&&r.children.sort(un(...n)),r)),t},fn=(e,t)=>e.filter(n=>String(n)!==String(t)),de=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Gl={name:"v-select-all",display:"Select all",emits:["update-select-all"],props:{items:Array}};function Hl(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("a",{href:"javascript:void(0)",onClick:t[0]||(t[0]=a=>e.$emit("update-select-all"))},u.toDisplayString(e.$t("selectAll")),1)}const dn=de(Gl,[["render",Hl]]),Yl={name:"v-deselect-all",display:"Deselect all",emits:["update-deselect-all"],props:{click:Function,items:Array}};function xl(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("a",{href:"javascript:void(0)",onClick:t[0]||(t[0]=a=>e.$emit("update-deselect-all"))},u.toDisplayString(e.$t("deselectAll")),1)}const _n=de(Yl,[["render",xl]]),jl={name:"v-search",display:"Search",props:["modelValue","placeholder"],emits:["update:modelValue"],beforeMount(){this.placeholder?this.thePlaceholder=this.placeholder:this.thePlaceholder=this.$t("searchPlaceholder")},watch:{inputVal(e){this.$emit("update:modelValue",e)}},data(){return{inputVal:this.value,thePlaceholder:""}}},Kl=["placeholder"];function Xl(e,t,n,r,s,l){return u.withDirectives((u.openBlock(),u.createElementBlock("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>s.inputVal=a),placeholder:s.thePlaceholder},null,8,Kl)),[[u.vModelText,s.inputVal]])}const mn=de(jl,[["render",Xl]]),Jl={name:"v-no-results",display:"No results",methods:{}},Ql={class:"no-results"};function ql(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("li",Ql,[u.createElementVNode("span",null,u.toDisplayString(e.$t("searchNoResult")),1)])}const Zl=de(Jl,[["render",ql]]),zl={name:"v-no-selection",display:"No selection",methods:{}},er={class:"no-selection"};function tr(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("li",er,[u.createElementVNode("span",null,u.toDisplayString(e.$t("searchParentSelected")),1)])}const nr={name:"v-list",display:"List",mounted(){},components:{"v-no-results":Zl,"v-no-selection":de(zl,[["render",tr]])},props:{hasChildren:{type:Boolean},items:{type:Array},enableCounter:{type:Boolean,default:!0},type:{type:String},side:{type:String}},emits:["updated-item"],methods:{showNoResultParent(e){if(this.type==="grouped")return this.totalItems(e)===0&&!this.hasChildren;if(this.side==="left")return e.length===0||this.totalParentSelected(e)===e.length||e.length>0&&this.totalItems(e)===0;if(this.side==="right")return e.length===0||this.totalParentSelected(e)!==0&&e.length>0&&this.totalItems(e)===0},showNoSelection(e){if(this.type==="grouped")return this.totalParentSelected(e)===0&&this.hasChildren||e.length===0;if(this.side==="left")return!1;if(this.side==="right")return e.length!==0&&this.totalParentSelected(e)===0},showCounter(e){return this.enableCounter?!this.hasChildren&&e.totalChildrenSelected!==0:!1},showParent(e){return this.hasChildren?e.selected:e.visible},liClass(e,t){let n=[];return t&&n.push("is-parent"),e.selected&&n.push("active"),e.disabled&&n.push("is-disabled"),n},totalItems(e){return e.filter(function(t){return t.visible===!0}).length},totalParentSelected(e){return e.filter(function(t){return t.selected===!0}).length},toggleItem(e,t,n){if(e.disabled==!0)return!1;this.$emit("updated-item",e,t,!n)}},data(){return{}}},lr={class:"vss-list-ul"},rr=["onClick"],sr={style:{}},ar={key:0,class:"vss-list-badge"},or={key:0},cr=["onClick"];function ir(e,t,n,r,s,l){const a=u.resolveComponent("v-no-results"),o=u.resolveComponent("v-no-selection");return u.openBlock(),u.createElementBlock("ul",lr,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,(c,d)=>u.withDirectives((u.openBlock(),u.createElementBlock("li",{key:d,onClick:E=>n.hasChildren?!1:l.toggleItem(c,{},c.selected),class:u.normalizeClass(l.liClass(c,n.hasChildren))},[u.createElementVNode("span",sr,[u.createTextVNode(u.toDisplayString(c.label)+" ",1),l.showCounter(c)?(u.openBlock(),u.createElementBlock("small",ar,u.toDisplayString(c.totalChildrenSelected),1)):u.createCommentVNode("",!0)]),n.hasChildren?(u.openBlock(),u.createElementBlock("ul",or,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.children,(E,L)=>u.withDirectives((u.openBlock(),u.createElementBlock("li",{key:`${d}-${L}`,onClick:p=>l.toggleItem(E,c,E.selected),class:u.normalizeClass(l.liClass(E,!1))},[u.createElementVNode("span",null,u.toDisplayString(E.label),1)],10,cr)),[[u.vShow,E.visible]])),128)),u.withDirectives(u.createVNode(a,null,null,512),[[u.vShow,l.totalItems(c.children)===0]])])):u.createCommentVNode("",!0)],10,rr)),[[u.vShow,l.showParent(c)]])),128)),u.withDirectives(u.createVNode(o,null,null,512),[[u.vShow,l.showNoSelection(n.items)]]),u.withDirectives(u.createVNode(a,null,null,512),[[u.vShow,l.showNoResultParent(n.items)]])])}const pn=de(nr,[["render",ir]]),ur={name:"v-separator",display:"Separator"},fr={class:"vss-span"};function dr(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("div",fr," ‹ › ")}const hn=de(ur,[["render",dr]]),_r={name:"v-total",display:"Total",props:{value:{type:Number}}},mr=["title"];function pr(e,t,n,r,s,l){return u.openBlock(),u.createElementBlock("span",{title:e.$t("totalSelected")},u.toDisplayString(n.value),9,mr)}const En=de(_r,[["render",pr]]),gn={emits:["update-selected"],watch:{modelValue(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.dataSelected=e)},dataSelected(e,t){this.$emit("update-selected",e,t)},orderBy(){this.listLeft=ht(this,this.dataList),this.listRight=ht(this,this.dataList)},list(e){JSON.stringify(e)!==JSON.stringify(this.dataListOriginal)&&(this.prepareList(),this.prepareListLeft())}},props:{placeholderSearchLeft:{type:[String,Boolean]},placeholderSearchRight:{type:[String,Boolean]},type:{type:String},search:{type:Boolean},total:{type:Boolean},toggleAll:{type:Boolean},orderBy:{type:String},sortSelectedUp:{type:Boolean}}},hr={name:"grouped-select-sides",display:"Grouped select sides",mixins:[gn],components:{"v-select-all":dn,"v-deselect-all":_n,"v-search":mn,"v-separator":hn,"v-list":pn,"v-total":En},props:{list:{required:!0,type:[Array,Object]},modelValue:{type:Object,default:()=>({})}},methods:{updateLeftSelectAll(){let e=this;e.listLeft.map(t=>{t.visible===!0&&!t.disabled&&e.updateItem(t,{},!0)})},updateLeftDeselectAll(){let e=this;e.listLeft.map(t=>{t.visible===!0&&!t.disabled&&e.updateItem(t,{},!1)})},updateRightSelectAll(){let e=this;e.listRight.map(t=>{t.children.map(n=>{t.selected===!0&&!t.disabled&&e.updateItem(n,t,!0)})})},updateRightDeselectAll(){let e=this;e.listRight.map(t=>{t.children.map(n=>{t.selected===!0&&!t.disabled&&e.updateItem(n,t,!1)})})},updateItem(e,t,n){let r=he(this.dataSelected);Object.keys(t).length>0?(r[t.value]===void 0&&t.visible&&(r[t.value]=[]),n?e.visible&&r[t.value].indexOf(e.value)===-1&&r[t.value].push(e.value):e.visible&&(r[t.value]=fn(r[t.value],e.value))):n?r[e.value]===void 0&&(r[e.value]=[]):delete r[e.value],this.dataSelected=r},prepareList(){let e=this,t={};e.dataListOriginal=he(e.list);let n=Object.keys(e.modelValue),r=e.list.filter(s=>{let l=s.value,a=n.indexOf(l)>=0;return a?(s.selectedDefault=!0,t[l]=[]):s.selectedDefault=!1,s.children&&s.children.filter(o=>{let c=o.value;a&&(e.modelValue[l].indexOf(c)>=0?(o.selectedDefault=!0,t[l].push(c)):o.selectedDefault=!1)}),s});e.dataSelected=t,e.dataList=ht(e,r)},prepareListLeft(){let e=this;this.listLeft=this.dataList.filter(t=>(t.visible=!0,t.children?(t.children=t.children.map(n=>(e.dataSelected[t.value]!==void 0&&(e.dataSelected[t.value].indexOf(n.value)>=0?n.selected=!0:n.selected=!1),n)),t.children):t))}},beforeMount(){this.prepareList()},mounted(){this.prepareListLeft()},computed:{totalChildrenSelected(){return Object.keys(this.dataSelected).map(e=>this.dataSelected[e].length).reduce((e,t)=>e+t,0)},filteredListL(){let e=this,t=Te(this.searchL),n=Object.keys(this.dataSelected),r=he(this.listLeft);return r=r.filter(s=>{let l=Te(s.label);return n.indexOf(s.value)>=0?s.selected=!0:s.selected=!1,l.includes(t)?s.visible=!0:s.visible=!1,s.children?(s.children=s.children.map(a=>(a.selected=!1,e.dataSelected[s.value]!==void 0&&(e.dataSelected[s.value].indexOf(a.value)>=0?a.selected=!0:a.selected=!1),a)),s.totalChildrenSelected=s.children.filter(function(a){return a.selected===!0}).length,s.children):s}),r},filteredListR(){let e=this,t=Te(e.searchR),n=he(this.listLeft);return n=e.listRight.filter(function(s){return s.children?(s.children=s.children.map(l=>(Te(l.label).includes(t)?l.visible=!0:l.visible=!1,e.dataSelected[s.value]!==void 0&&(e.dataSelected[s.value].indexOf(l.value)>=0?l.selected=!0:l.selected=!1),l)),s.children):s}),n}},watch:{filteredListL(e){this.listRight=e}},data(){return{dataList:[],dataListOriginal:[],dataSelected:{},listLeft:[],listRight:[],searchL:"",searchR:""}}},Er={class:"vss-list"},gr={class:"vss-inner-list"},Nr={class:"vss-footer"},Lr={class:"vss-footer-bg"},Or={key:1,class:"vss-footer-separator"},vr={class:"vss-list"},Tr={class:"vss-inner-list"},br={class:"vss-footer"},Sr={class:"vss-footer-bg"},Ir={key:1,class:"vss-footer-separator"};function Ar(e,t,n,r,s,l){const a=u.resolveComponent("v-search"),o=u.resolveComponent("v-list"),c=u.resolveComponent("v-select-all"),d=u.resolveComponent("v-deselect-all"),E=u.resolveComponent("v-total"),L=u.resolveComponent("v-separator");return u.openBlock(),u.createElementBlock("div",null,[u.createElementVNode("div",Er,[u.createElementVNode("div",gr,[e.search?(u.openBlock(),u.createBlock(a,{key:0,placeholder:e.placeholderSearchLeft,class:"vss-list-search",modelValue:s.searchL,"onUpdate:modelValue":t[0]||(t[0]=p=>s.searchL=p)},null,8,["placeholder","modelValue"])):u.createCommentVNode("",!0),u.createVNode(o,{"has-children":!1,type:e.type,items:l.filteredListL,onUpdatedItem:l.updateItem},null,8,["type","items","onUpdatedItem"]),u.withDirectives(u.createElementVNode("div",Nr,[u.createElementVNode("div",Lr,[u.createElementVNode("div",null,[e.toggleAll?(u.openBlock(),u.createBlock(c,{key:0,items:s.listLeft,onUpdateSelectAll:l.updateLeftSelectAll},null,8,["items","onUpdateSelectAll"])):u.createCommentVNode("",!0),e.toggleAll?(u.openBlock(),u.createElementBlock("div",Or,"/")):u.createCommentVNode("",!0),e.toggleAll?(u.openBlock(),u.createBlock(d,{key:2,items:s.listLeft,onUpdateDeselectAll:l.updateLeftDeselectAll},null,8,["items","onUpdateDeselectAll"])):u.createCommentVNode("",!0)]),e.total?(u.openBlock(),u.createBlock(E,{key:0,value:Object.keys(s.dataSelected).length},null,8,["value"])):u.createCommentVNode("",!0)])],512),[[u.vShow,e.toggleAll||e.total]])])]),u.createVNode(L),u.createElementVNode("div",vr,[u.createElementVNode("div",Tr,[e.search?(u.openBlock(),u.createBlock(a,{key:0,placeholder:e.placeholderSearchRight,class:"vss-list-search",modelValue:s.searchR,"onUpdate:modelValue":t[1]||(t[1]=p=>s.searchR=p)},null,8,["placeholder","modelValue"])):u.createCommentVNode("",!0),u.createVNode(o,{"has-children":!0,type:e.type,items:l.filteredListR,onUpdatedItem:l.updateItem},null,8,["type","items","onUpdatedItem"]),u.withDirectives(u.createElementVNode("div",br,[u.createElementVNode("div",Sr,[u.createElementVNode("div",null,[e.toggleAll?(u.openBlock(),u.createBlock(c,{key:0,items:s.listRight,onUpdateSelectAll:l.updateRightSelectAll},null,8,["items","onUpdateSelectAll"])):u.createCommentVNode("",!0),e.toggleAll?(u.openBlock(),u.createElementBlock("div",Ir,"/")):u.createCommentVNode("",!0),e.toggleAll?(u.openBlock(),u.createBlock(d,{key:2,items:s.listRight,onUpdateDeselectAll:l.updateRightDeselectAll},null,8,["items","onUpdateDeselectAll"])):u.createCommentVNode("",!0)]),e.total?(u.openBlock(),u.createBlock(E,{key:0,value:l.totalChildrenSelected},null,8,["value"])):u.createCommentVNode("",!0)])],512),[[u.vShow,e.toggleAll||e.total]])])])])}const yr=de(hr,[["render",Ar]]),Pr={name:"mirror-select-sides",display:"Mirror select sides",mixins:[gn],components:{"v-select-all":dn,"v-deselect-all":_n,"v-search":mn,"v-separator":hn,"v-list":pn,"v-total":En},props:{list:{required:!0,type:[Array,Object]},modelValue:{type:Array,default:()=>[]}},methods:{updateLeftSelectAll(){let e=this;e.listLeft.map(t=>{t.visible===!0&&!t.disabled&&e.updateItem(t,{},!0)})},updateRightDeselectAll(){let e=this;this.dataSelected=[],e.listRight.map(t=>{t.visible===!0&&!t.disabled&&e.updateItem(t,{},!1)})},updateItem(e,t,n){let r=he(this.dataSelected);n?r.push(e.value):r=fn(r,e.value),this.dataSelected=r},prepareList(){this.dataListOriginal=he(this.list);let e=this,t=[],n=e.list.filter(r=>{let s=r.value;return e.modelValue.indexOf(s)>=0?(r.selectedDefault=!0,t.push(s)):r.selectedDefault=!1,r});e.dataSelected=t,e.dataList=ht(e,n)},prepareListLeft(){this.listLeft=this.dataList.filter(e=>(e.visible=!0,e))}},beforeMount(){this.prepareList()},mounted(){this.prepareListLeft()},computed:{filteredListL(){let e=Te(this.searchL),t=this.dataSelected,n=he(this.listLeft);return n=n.filter(r=>{let s=Te(r.label);return t.indexOf(r.value)>=0?(r.selected=!0,r.visible=!1):(r.selected=!1,r.visible=!0),s.includes(e)&&r.visible===!0?r.visible=!0:r.visible=!1,r}),n},filteredListR(){let e=this,t=Te(e.searchR),n=this.dataSelected,r=he(e.listLeft);return r=r.filter(s=>{let l=Te(s.label);return n.indexOf(s.value)>=0?(s.selected=!0,s.visible=!0):(s.selected=!1,s.visible=!1),l.includes(t)&&s.visible===!0?s.visible=!0:s.visible=!1,s}),r}},data(){return{dataList:[],dataListOriginal:[],dataSelected:[],listLeft:[],listRight:[],searchL:"",searchR:""}}},Cr={class:"vss-list"},kr={class:"vss-inner-list"},Rr={class:"vss-footer"},Dr={class:"vss-footer-bg"},Mr={class:"vss-list"},Fr={class:"vss-inner-list"},Vr={class:"vss-footer"},Ur={class:"vss-footer-bg"};function $r(e,t,n,r,s,l){const a=u.resolveComponent("v-search"),o=u.resolveComponent("v-list"),c=u.resolveComponent("v-select-all"),d=u.resolveComponent("v-total"),E=u.resolveComponent("v-separator"),L=u.resolveComponent("v-deselect-all");return u.openBlock(),u.createElementBlock("div",null,[u.createElementVNode("div",Cr,[u.createElementVNode("div",kr,[e.search?(u.openBlock(),u.createBlock(a,{key:0,placeholder:e.placeholderSearchLeft,class:"vss-list-search",modelValue:s.searchL,"onUpdate:modelValue":t[0]||(t[0]=p=>s.searchL=p)},null,8,["placeholder","modelValue"])):u.createCommentVNode("",!0),u.createVNode(o,{"enable-counter":!1,"has-children":!1,type:e.type,side:"left",items:l.filteredListL,onUpdatedItem:l.updateItem},null,8,["type","items","onUpdatedItem"]),u.withDirectives(u.createElementVNode("div",Rr,[u.createElementVNode("div",Dr,[u.createElementVNode("div",null,[e.toggleAll?(u.openBlock(),u.createBlock(c,{key:0,items:s.listLeft,onUpdateSelectAll:l.updateLeftSelectAll},null,8,["items","onUpdateSelectAll"])):u.createCommentVNode("",!0)]),e.total?(u.openBlock(),u.createBlock(d,{key:0,value:s.dataSelected.length},null,8,["value"])):u.createCommentVNode("",!0)])],512),[[u.vShow,e.toggleAll||e.total]])])]),u.createVNode(E),u.createElementVNode("div",Mr,[u.createElementVNode("div",Fr,[e.search?(u.openBlock(),u.createBlock(a,{key:0,placeholder:e.placeholderSearchRight,class:"vss-list-search",modelValue:s.searchR,"onUpdate:modelValue":t[1]||(t[1]=p=>s.searchR=p)},null,8,["placeholder","modelValue"])):u.createCommentVNode("",!0),u.createVNode(o,{"enable-counter":!1,"has-children":!1,type:e.type,side:"right",items:l.filteredListR,onUpdatedItem:l.updateItem},null,8,["type","items","onUpdatedItem"]),u.withDirectives(u.createElementVNode("div",Vr,[u.createElementVNode("div",Ur,[u.createElementVNode("div",null,[e.toggleAll?(u.openBlock(),u.createBlock(L,{key:0,items:s.listRight,onUpdateDeselectAll:l.updateRightDeselectAll},null,8,["items","onUpdateDeselectAll"])):u.createCommentVNode("",!0)])])],512),[[u.vShow,e.toggleAll||e.total]])])])])}const wr={name:"vue-select-sides",display:"Core select sides",components:{"mirror-select-sides":de(Pr,[["render",$r]]),"grouped-select-sides":yr},props:{list:{required:!0,type:[Array,Object]},type:{type:String,default:void 0},orderBy:{type:String,default:void 0},placeholderSearchLeft:{type:[String,Boolean],default:void 0},placeholderSearchRight:{type:[String,Boolean],default:void 0},sortSelectedUp:{type:Boolean,default:void 0},search:{type:Boolean,default:void 0},total:{type:Boolean,default:void 0},toggleAll:{type:Boolean,default:void 0},modelValue:{type:[Object,Array],default:void 0}},emits:["update:model-value"],watch:{list(e){this.listClone=he(e)},type(e){this.params.type=e},search(e){this.params.search=e},total(e){this.params.total=e},toggleAll(e){this.params.toggleAll=e},orderBy(e){this.params.orderBy=e},placeholderSearchLeft(e){this.params.placeholderSearchLeft=e},placeholderSearchRight(e){this.params.placeholderSearchRight=e},sortSelectedUp(e){this.params.sortSelectedUp=e}},methods:{updateSelected(e){this.$emit("update:model-value",e)},getComponent(){return this.params.type=="mirror"?"mirror-select-sides":"grouped-select-sides"},selectLocale(e){this.enabledLocales.indexOf(e)>=0&&(this.$i18n.locale=e)},setDefaultParams(){let e=this,t={type:e.type,orderBy:e.orderBy,placeholderSearchLeft:e.placeholderSearchLeft,placeholderSearchRight:e.placeholderSearchRight,sortSelectedUp:e.sortSelectedUp,search:e.search,total:e.total,toggleAll:e.toggleAll};Object.keys(t).forEach(n=>{let r=t[n];r===void 0?e.defaultOptions[n]!==void 0&&(e.params[n]=e.defaultOptions[n]):e.params[n]=r}),e.defaultOptions.locale!==void 0&&e.selectLocale(e.defaultOptions.locale)}},computed:{modelProp:{get(){return this.modelValue},set(e){this.$emit("update:model-value",e)}}},beforeMount(){this.setDefaultParams(),this.listClone=he(this.list)},data(){return{listClone:[],locale:"en_US",enabledLocales:["pt_BR","en_US","es_ES","fr_FR","tr_TR","pl_PL","cz_CZ","sk_SK"],params:{type:"mirror",orderBy:void 0,placeholderSearchLeft:!1,placeholderSearchRight:!1,sortSelectedUp:!1,search:!0,total:!0,toggleAll:!0}}}};function Br(e,t,n,r,s,l){return u.openBlock(),u.createBlock(u.resolveDynamicComponent(l.getComponent()),{class:"vss",type:s.params.type,list:s.listClone,search:s.params.search,total:s.params.total,"toggle-all":s.params.toggleAll,"order-by":s.params.orderBy,"placeholder-search-left":s.params.placeholderSearchLeft,"placeholder-search-right":s.params.placeholderSearchRight,"sort-selected-up":s.params.sortSelectedUp,modelValue:l.modelProp,"onUpdate:modelValue":t[0]||(t[0]=a=>l.modelProp=a),onUpdateSelected:l.updateSelected},null,40,["type","list","search","total","toggle-all","order-by","placeholder-search-left","placeholder-search-right","sort-selected-up","modelValue","onUpdateSelected"])}const kt=de(wr,[["render",Br]]),Wr={selectAll:"Vybrat vše ",deselectAll:"Odebrat vše ",searchPlaceholder:"Hledej...",searchNoResult:"Žádný výsledek...",searchParentSelected:"Nic není vybráno...",totalSelected:"Spolu vybrané"},Gr={selectAll:"Select all",deselectAll:"Deselect all",searchPlaceholder:"Search...",searchNoResult:"No result...",searchParentSelected:"No items selected...",totalSelected:"Total items selected"},Hr={selectAll:"Seleccionar todos",deselectAll:"Deseleccionar todos",searchPlaceholder:"Buscar...",searchNoResult:"Sin resultados...",searchParentSelected:"Ningún elemento seleccionado...",totalSelected:"Elementos seleccionados"},Yr={selectAll:"Ajouter tout",deselectAll:"Supprimer tout",searchPlaceholder:"Recherche...",searchNoResult:"Pas de résultat...",searchParentSelected:"Sélection vide...",totalSelected:"Éléments sélectionnés"},xr={selectAll:"Wybierz wszystko",deselectAll:"Wyczyść zaznaczenie",searchPlaceholder:"Szukaj...",searchNoResult:"Brak wyników...",searchParentSelected:"Nie wybrano żadnych elementów...",totalSelected:"Liczba wybranych elementów"},jr={selectAll:"Selecionar todos",deselectAll:"Remover todos",searchPlaceholder:"Pesquisar...",searchNoResult:"Sem nenhum resultado...",searchParentSelected:"Nenhum item selecionado...",totalSelected:"Total de itens selecionados"},Kr={selectAll:"Vybrať všetko",deselectAll:"Odobrať všetko",searchPlaceholder:"Hľadaj...",searchNoResult:"Žiadny výsledok...",searchParentSelected:"Nič nie je vybrané...",totalSelected:"Spolu vybrané"},Xr={selectAll:"Hepsini Seç",deselectAll:"Hepsini Çıkar",searchPlaceholder:"Ara...",searchNoResult:"Sonuç Bulunamadı...",searchParentSelected:"Hiçbiri Seçilmedi...",totalSelected:"Hepsi Seçildi"};/*!
* shared v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/const _e=typeof window<"u";let ce,Ce;if(process.env.NODE_ENV!=="production"){const e=_e&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ce=t=>{e.mark(t)},Ce=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Jr=/\{([0-9a-zA-Z]+)\}/g;function Rt(e,...t){return t.length===1&&$(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Jr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Ee=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Qr=(e,t,n)=>qr({l:e,k:t,s:n}),qr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),q=e=>typeof e=="number"&&isFinite(e),Zr=e=>vn(e)==="[object Date]",be=e=>vn(e)==="[object RegExp]",Et=e=>V(e)&&Object.keys(e).length===0,ne=Object.assign,zr=Object.create,Y=(e=null)=>zr(e);let Nn;const Le=()=>Nn||(Nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Y());function Ln(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const es=Object.prototype.hasOwnProperty;function me(e,t){return es.call(e,t)}const K=Array.isArray,x=e=>typeof e=="function",k=e=>typeof e=="string",U=e=>typeof e=="boolean",$=e=>e!==null&&typeof e=="object",ts=e=>$(e)&&x(e.then)&&x(e.catch),On=Object.prototype.toString,vn=e=>On.call(e),V=e=>{if(!$(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ns=e=>e==null?"":K(e)||V(e)&&e.toString===On?JSON.stringify(e,null,2):String(e);function ls(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Tn=2;function rs(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const l=[];for(let a=0;a<r.length;a++)if(s+=r[a].length+1,s>=t){for(let o=a-Tn;o<=a+Tn||n>s;o++){if(o<0||o>=r.length)continue;const c=o+1;l.push(`${c}${" ".repeat(3-String(c).length)}| ${r[o]}`);const d=r[o].length;if(o===a){const E=t-(s-d)+1,L=Math.max(1,n>s?d-E:n-t);l.push(" | "+" ".repeat(E)+"^".repeat(L))}else if(o>a){if(n>s){const E=Math.max(Math.min(n-s,d),1);l.push(" | "+"^".repeat(E))}s+=d+1}}break}return l.join(`
`)}function gt(e){let t=e;return()=>++t}function z(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const bn={};function Sn(e){bn[e]||(bn[e]=!0,z(e))}function Dt(){const e=new Map;return{events:e,on(n,r){const s=e.get(n);s&&s.push(r)||e.set(n,[r])},off(n,r){const s=e.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(s=>s(r)),(e.get("*")||[]).slice().map(s=>s(n,r))}}}const Nt=e=>!$(e)||K(e);function Lt(e,t){if(Nt(e)||Nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(l=>{l!=="__proto__"&&($(r[l])&&!$(s[l])&&(s[l]=Array.isArray(r[l])?[]:Y()),Nt(s[l])||Nt(r[l])?s[l]=r[l]:n.push({src:r[l],des:s[l]}))})}}/*!
* message-compiler v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function ss(e,t,n){return{line:e,column:t,offset:n}}function Ot(e,t,n){return{start:e,end:t}}const as=/\{([0-9a-zA-Z]+)\}/g;function In(e,...t){return t.length===1&&os(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(as,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const An=Object.assign,yn=e=>typeof e=="string",os=e=>e!==null&&typeof e=="object";function Pn(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const vt={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},cs={[vt.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function is(e,t,...n){const r=In(cs[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const F={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},us={[F.EXPECTED_TOKEN]:"Expected token: '{0}'",[F.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[F.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[F.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[F.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[F.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[F.EMPTY_PLACEHOLDER]:"Empty placeholder",[F.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[F.INVALID_LINKED_FORMAT]:"Invalid linked format",[F.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[F.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[F.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[F.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[F.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[F.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ue(e,t,n={}){const{domain:r,messages:s,args:l}=n,a=In((s||us)[e]||"",...l||[]),o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function fs(e){throw e}const ds=/<\/?[\w\s="/.':;#-\/]+>/,_s=e=>ds.test(e),Oe=" ",ms="\r",re=`
`,ps="\u2028",hs="\u2029";function Es(e){const t=e;let n=0,r=1,s=1,l=0;const a=A=>t[A]===ms&&t[A+1]===re,o=A=>t[A]===re,c=A=>t[A]===hs,d=A=>t[A]===ps,E=A=>a(A)||o(A)||c(A)||d(A),L=()=>n,p=()=>r,b=()=>s,m=()=>l,g=A=>a(A)||c(A)||d(A)?re:t[A],O=()=>g(n),P=()=>g(n+l);function R(){return l=0,E(n)&&(r++,s=0),a(n)&&n++,n++,s++,t[n]}function _(){return a(n+l)&&l++,l++,t[n+l]}function N(){n=0,r=1,s=1,l=0}function I(A=0){l=A}function v(){const A=n+l;for(;A!==n;)R();l=0}return{index:L,line:p,column:b,peekOffset:m,charAt:g,currentChar:O,currentPeek:P,next:R,peek:_,reset:N,resetPeek:I,skipToPeek:v}}const Se=void 0,gs=".",Cn="'",Ns="tokenizer";function Ls(e,t={}){const n=t.location!==!1,r=Es(e),s=()=>r.index(),l=()=>ss(r.line(),r.column(),r.index()),a=l(),o=s(),c={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:E}=t;function L(i,f,T,...M){const Q=d();if(f.column+=T,f.offset+=T,E){const j=n?Ot(Q.startLoc,f):null,H=Ue(i,j,{domain:Ns,args:M});E(H)}}function p(i,f,T){i.endLoc=l(),i.currentType=f;const M={type:f};return n&&(M.loc=Ot(i.startLoc,i.endLoc)),T!=null&&(M.value=T),M}const b=i=>p(i,14);function m(i,f){return i.currentChar()===f?(i.next(),f):(L(F.EXPECTED_TOKEN,l(),0,f),"")}function g(i){let f="";for(;i.currentPeek()===Oe||i.currentPeek()===re;)f+=i.currentPeek(),i.peek();return f}function O(i){const f=g(i);return i.skipToPeek(),f}function P(i){if(i===Se)return!1;const f=i.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function R(i){if(i===Se)return!1;const f=i.charCodeAt(0);return f>=48&&f<=57}function _(i,f){const{currentType:T}=f;if(T!==2)return!1;g(i);const M=P(i.currentPeek());return i.resetPeek(),M}function N(i,f){const{currentType:T}=f;if(T!==2)return!1;g(i);const M=i.currentPeek()==="-"?i.peek():i.currentPeek(),Q=R(M);return i.resetPeek(),Q}function I(i,f){const{currentType:T}=f;if(T!==2)return!1;g(i);const M=i.currentPeek()===Cn;return i.resetPeek(),M}function v(i,f){const{currentType:T}=f;if(T!==8)return!1;g(i);const M=i.currentPeek()===".";return i.resetPeek(),M}function A(i,f){const{currentType:T}=f;if(T!==9)return!1;g(i);const M=P(i.currentPeek());return i.resetPeek(),M}function D(i,f){const{currentType:T}=f;if(!(T===8||T===12))return!1;g(i);const M=i.currentPeek()===":";return i.resetPeek(),M}function y(i,f){const{currentType:T}=f;if(T!==10)return!1;const M=()=>{const j=i.currentPeek();return j==="{"?P(i.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Oe||!j?!1:j===re?(i.peek(),M()):B(i,!1)},Q=M();return i.resetPeek(),Q}function X(i){g(i);const f=i.currentPeek()==="|";return i.resetPeek(),f}function ie(i){const f=g(i),T=i.currentPeek()==="%"&&i.peek()==="{";return i.resetPeek(),{isModulo:T,hasSpace:f.length>0}}function B(i,f=!0){const T=(Q=!1,j="",H=!1)=>{const h=i.currentPeek();return h==="{"?j==="%"?!1:Q:h==="@"||!h?j==="%"?!0:Q:h==="%"?(i.peek(),T(Q,"%",!0)):h==="|"?j==="%"||H?!0:!(j===Oe||j===re):h===Oe?(i.peek(),T(!0,Oe,H)):h===re?(i.peek(),T(!0,re,H)):!0},M=T();return f&&i.resetPeek(),M}function le(i,f){const T=i.currentChar();return T===Se?Se:f(T)?(i.next(),T):null}function et(i){const f=i.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function tt(i){return le(i,et)}function Ne(i){const f=i.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function nt(i){return le(i,Ne)}function lt(i){const f=i.charCodeAt(0);return f>=48&&f<=57}function rt(i){return le(i,lt)}function st(i){const f=i.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function at(i){return le(i,st)}function fe(i){let f="",T="";for(;f=rt(i);)T+=f;return T}function He(i){O(i);const f=i.currentChar();return f!=="%"&&L(F.EXPECTED_TOKEN,l(),0,f),i.next(),"%"}function Ye(i){let f="";for(;;){const T=i.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T==="%")if(B(i))f+=T,i.next();else break;else if(T===Oe||T===re)if(B(i))f+=T,i.next();else{if(X(i))break;f+=T,i.next()}else f+=T,i.next()}return f}function ot(i){O(i);let f="",T="";for(;f=nt(i);)T+=f;return i.currentChar()===Se&&L(F.UNTERMINATED_CLOSING_BRACE,l(),0),T}function ct(i){O(i);let f="";return i.currentChar()==="-"?(i.next(),f+=`-${fe(i)}`):f+=fe(i),i.currentChar()===Se&&L(F.UNTERMINATED_CLOSING_BRACE,l(),0),f}function it(i){return i!==Cn&&i!==re}function yt(i){O(i),m(i,"'");let f="",T="";for(;f=le(i,it);)f==="\\"?T+=ut(i):T+=f;const M=i.currentChar();return M===re||M===Se?(L(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),M===re&&(i.next(),m(i,"'")),T):(m(i,"'"),T)}function ut(i){const f=i.currentChar();switch(f){case"\\":case"'":return i.next(),`\\${f}`;case"u":return xe(i,f,4);case"U":return xe(i,f,6);default:return L(F.UNKNOWN_ESCAPE_SEQUENCE,l(),0,f),""}}function xe(i,f,T){m(i,f);let M="";for(let Q=0;Q<T;Q++){const j=at(i);if(!j){L(F.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${f}${M}${i.currentChar()}`);break}M+=j}return`\\${f}${M}`}function ft(i){return i!=="{"&&i!=="}"&&i!==Oe&&i!==re}function dt(i){O(i);let f="",T="";for(;f=le(i,ft);)T+=f;return T}function _t(i){let f="",T="";for(;f=tt(i);)T+=f;return T}function C(i){const f=T=>{const M=i.currentChar();return M==="{"||M==="%"||M==="@"||M==="|"||M==="("||M===")"||!M||M===Oe?T:(T+=M,i.next(),f(T))};return f("")}function W(i){O(i);const f=m(i,"|");return O(i),f}function mt(i,f){let T=null;switch(i.currentChar()){case"{":return f.braceNest>=1&&L(F.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),i.next(),T=p(f,2,"{"),O(i),f.braceNest++,T;case"}":return f.braceNest>0&&f.currentType===2&&L(F.EMPTY_PLACEHOLDER,l(),0),i.next(),T=p(f,3,"}"),f.braceNest--,f.braceNest>0&&O(i),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),T;case"@":return f.braceNest>0&&L(F.UNTERMINATED_CLOSING_BRACE,l(),0),T=Fe(i,f)||b(f),f.braceNest=0,T;default:{let Q=!0,j=!0,H=!0;if(X(i))return f.braceNest>0&&L(F.UNTERMINATED_CLOSING_BRACE,l(),0),T=p(f,1,W(i)),f.braceNest=0,f.inLinked=!1,T;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return L(F.UNTERMINATED_CLOSING_BRACE,l(),0),f.braceNest=0,pt(i,f);if(Q=_(i,f))return T=p(f,5,ot(i)),O(i),T;if(j=N(i,f))return T=p(f,6,ct(i)),O(i),T;if(H=I(i,f))return T=p(f,7,yt(i)),O(i),T;if(!Q&&!j&&!H)return T=p(f,13,dt(i)),L(F.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,T.value),O(i),T;break}}return T}function Fe(i,f){const{currentType:T}=f;let M=null;const Q=i.currentChar();switch((T===8||T===9||T===12||T===10)&&(Q===re||Q===Oe)&&L(F.INVALID_LINKED_FORMAT,l(),0),Q){case"@":return i.next(),M=p(f,8,"@"),f.inLinked=!0,M;case".":return O(i),i.next(),p(f,9,".");case":":return O(i),i.next(),p(f,10,":");default:return X(i)?(M=p(f,1,W(i)),f.braceNest=0,f.inLinked=!1,M):v(i,f)||D(i,f)?(O(i),Fe(i,f)):A(i,f)?(O(i),p(f,12,_t(i))):y(i,f)?(O(i),Q==="{"?mt(i,f)||M:p(f,11,C(i))):(T===8&&L(F.INVALID_LINKED_FORMAT,l(),0),f.braceNest=0,f.inLinked=!1,pt(i,f))}}function pt(i,f){let T={type:14};if(f.braceNest>0)return mt(i,f)||b(f);if(f.inLinked)return Fe(i,f)||b(f);switch(i.currentChar()){case"{":return mt(i,f)||b(f);case"}":return L(F.UNBALANCED_CLOSING_BRACE,l(),0),i.next(),p(f,3,"}");case"@":return Fe(i,f)||b(f);default:{if(X(i))return T=p(f,1,W(i)),f.braceNest=0,f.inLinked=!1,T;const{isModulo:Q,hasSpace:j}=ie(i);if(Q)return j?p(f,0,Ye(i)):p(f,4,He(i));if(B(i))return p(f,0,Ye(i));break}}return T}function rn(){const{currentType:i,offset:f,startLoc:T,endLoc:M}=c;return c.lastType=i,c.lastOffset=f,c.lastStartLoc=T,c.lastEndLoc=M,c.offset=s(),c.startLoc=l(),r.currentChar()===Se?p(c,14):pt(r,c)}return{nextToken:rn,currentOffset:s,currentPosition:l,context:d}}const Os="parser",vs=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ts(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function bs(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function s(_,N,I,v,...A){const D=_.currentPosition();if(D.offset+=v,D.column+=v,n){const y=t?Ot(I,D):null,X=Ue(N,y,{domain:Os,args:A});n(X)}}function l(_,N,I,v,...A){const D=_.currentPosition();if(D.offset+=v,D.column+=v,r){const y=t?Ot(I,D):null;r(is(N,y,A))}}function a(_,N,I){const v={type:_};return t&&(v.start=N,v.end=N,v.loc={start:I,end:I}),v}function o(_,N,I,v){t&&(_.end=N,_.loc&&(_.loc.end=I))}function c(_,N){const I=_.context(),v=a(3,I.offset,I.startLoc);return v.value=N,o(v,_.currentOffset(),_.currentPosition()),v}function d(_,N){const I=_.context(),{lastOffset:v,lastStartLoc:A}=I,D=a(5,v,A);return D.index=parseInt(N,10),_.nextToken(),o(D,_.currentOffset(),_.currentPosition()),D}function E(_,N,I){const v=_.context(),{lastOffset:A,lastStartLoc:D}=v,y=a(4,A,D);return y.key=N,I===!0&&(y.modulo=!0),_.nextToken(),o(y,_.currentOffset(),_.currentPosition()),y}function L(_,N){const I=_.context(),{lastOffset:v,lastStartLoc:A}=I,D=a(9,v,A);return D.value=N.replace(vs,Ts),_.nextToken(),o(D,_.currentOffset(),_.currentPosition()),D}function p(_){const N=_.nextToken(),I=_.context(),{lastOffset:v,lastStartLoc:A}=I,D=a(8,v,A);return N.type!==12?(s(_,F.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),D.value="",o(D,v,A),{nextConsumeToken:N,node:D}):(N.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,pe(N)),D.value=N.value||"",o(D,_.currentOffset(),_.currentPosition()),{node:D})}function b(_,N){const I=_.context(),v=a(7,I.offset,I.startLoc);return v.value=N,o(v,_.currentOffset(),_.currentPosition()),v}function m(_){const N=_.context(),I=a(6,N.offset,N.startLoc);let v=_.nextToken();if(v.type===9){const A=p(_);I.modifier=A.node,v=A.nextConsumeToken||_.nextToken()}switch(v.type!==10&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(v)),v=_.nextToken(),v.type===2&&(v=_.nextToken()),v.type){case 11:v.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(v)),I.key=b(_,v.value||"");break;case 5:v.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(v)),I.key=E(_,v.value||"");break;case 6:v.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(v)),I.key=d(_,v.value||"");break;case 7:v.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(v)),I.key=L(_,v.value||"");break;default:{s(_,F.UNEXPECTED_EMPTY_LINKED_KEY,N.lastStartLoc,0);const A=_.context(),D=a(7,A.offset,A.startLoc);return D.value="",o(D,A.offset,A.startLoc),I.key=D,o(I,A.offset,A.startLoc),{nextConsumeToken:v,node:I}}}return o(I,_.currentOffset(),_.currentPosition()),{node:I}}function g(_){const N=_.context(),I=N.currentType===1?_.currentOffset():N.offset,v=N.currentType===1?N.endLoc:N.startLoc,A=a(2,I,v);A.items=[];let D=null,y=null;do{const B=D||_.nextToken();switch(D=null,B.type){case 0:B.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(B)),A.items.push(c(_,B.value||""));break;case 6:B.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(B)),A.items.push(d(_,B.value||""));break;case 4:y=!0;break;case 5:B.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(B)),A.items.push(E(_,B.value||"",!!y)),y&&(l(_,vt.USE_MODULO_SYNTAX,N.lastStartLoc,0,pe(B)),y=null);break;case 7:B.value==null&&s(_,F.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,pe(B)),A.items.push(L(_,B.value||""));break;case 8:{const le=m(_);A.items.push(le.node),D=le.nextConsumeToken||null;break}}}while(N.currentType!==14&&N.currentType!==1);const X=N.currentType===1?N.lastOffset:_.currentOffset(),ie=N.currentType===1?N.lastEndLoc:_.currentPosition();return o(A,X,ie),A}function O(_,N,I,v){const A=_.context();let D=v.items.length===0;const y=a(1,N,I);y.cases=[],y.cases.push(v);do{const X=g(_);D||(D=X.items.length===0),y.cases.push(X)}while(A.currentType!==14);return D&&s(_,F.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),o(y,_.currentOffset(),_.currentPosition()),y}function P(_){const N=_.context(),{offset:I,startLoc:v}=N,A=g(_);return N.currentType===14?A:O(_,I,v,A)}function R(_){const N=Ls(_,An({},e)),I=N.context(),v=a(0,I.offset,I.startLoc);return t&&v.loc&&(v.loc.source=_),v.body=P(N),e.onCacheKey&&(v.cacheKey=e.onCacheKey(_)),I.currentType!==14&&s(N,F.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,_[I.offset]||""),o(v,N.currentOffset(),N.currentPosition()),v}return{parse:R}}function pe(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 Ss(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function kn(e,t){for(let n=0;n<e.length;n++)Mt(e[n],t)}function Mt(e,t){switch(e.type){case 1:kn(e.cases,t),t.helper("plural");break;case 2:kn(e.items,t);break;case 6:{Mt(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 Is(e,t={}){const n=Ss(e);n.helper("normalize"),e.body&&Mt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function As(e){const t=e.body;return t.type===2?Rn(t):t.cases.forEach(n=>Rn(n)),e}function Rn(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Pn(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const ys="minifier";function $e(e){switch(e.t=e.type,e.type){case 0:{const t=e;$e(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)$e(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)$e(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;$e(t.key),t.k=t.key,delete t.key,t.modifier&&($e(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Ue(F.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ys,args:[e.type]})}delete e.type}const Ps="parser";function Cs(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:l}=t,a=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:l,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const c=()=>o;function d(O,P){o.code+=O}function E(O,P=!0){const R=P?s:"";d(l?R+" ".repeat(O):R)}function L(O=!0){const P=++o.indentLevel;O&&E(P)}function p(O=!0){const P=--o.indentLevel;O&&E(P)}function b(){E(o.indentLevel)}return{context:c,push:d,indent:L,deindent:p,newline:b,helper:O=>`_${O}`,needIndent:()=>o.needIndent}}function ks(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),we(e,t.key),t.modifier?(e.push(", "),we(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Rs(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let l=0;l<s&&(we(e,t.items[l]),l!==s-1);l++)e.push(", ");e.deindent(r()),e.push("])")}function Ds(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let l=0;l<s&&(we(e,t.cases[l]),l!==s-1);l++)e.push(", ");e.deindent(r()),e.push("])")}}function Ms(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:Ms(e,t);break;case 1:Ds(e,t);break;case 2:Rs(e,t);break;case 6:ks(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 Ue(F.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ps,args:[t.type]})}}const Fs=(e,t={})=>{const n=yn(t.mode)?t.mode:"normal",r=yn(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,l=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],c=Cs(e,{mode:n,filename:r,sourceMap:s,breakLineCode:l,needIndent:a});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(a),o.length>0&&(c.push(`const { ${Pn(o.map(L=>`${L}: _${L}`),", ")} } = ctx`),c.newline()),c.push("return "),we(c,e),c.deindent(a),c.push("}"),delete e.helpers;const{code:d,map:E}=c.context();return{ast:e,code:d,map:E?E.toJSON():void 0}};function Vs(e,t={}){const n=An({},t),r=!!n.jit,s=!!n.minify,l=n.optimize==null?!0:n.optimize,o=bs(n).parse(e);return r?(l&&As(o),s&&$e(o),{ast:o,code:""}):(Is(o,n),Fs(o,n))}/*!
* core-base v9.14.2
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function Us(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Le().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ie=[];Ie[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ie[1]={w:[1],".":[2],"[":[4],o:[7]},Ie[2]={w:[2],i:[3,0],0:[3,0]},Ie[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ie[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ie[5]={"'":[4,0],o:8,l:[5,0]},Ie[6]={'"':[4,0],o:8,l:[6,0]};const $s=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ws(e){return $s.test(e)}function Bs(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 Ws(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 Gs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ws(t)?Bs(t):"*"+t}function Hs(e){const t=[];let n=-1,r=0,s=0,l,a,o,c,d,E,L;const p=[];p[0]=()=>{a===void 0?a=o:a+=o},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),s++},p[3]=()=>{if(s>0)s--,r=4,p[0]();else{if(s=0,a===void 0||(a=Gs(a),a===!1))return!1;p[1]()}};function b(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,o="\\"+m,p[0](),!0}for(;r!==null;)if(n++,l=e[n],!(l==="\\"&&b())){if(c=Ws(l),L=Ie[r],d=L[c]||L.l||8,d===8||(r=d[0],d[1]!==void 0&&(E=p[d[1]],E&&(o=l,E()===!1))))return;if(r===7)return t}}const Dn=new Map;function Ys(e,t){return $(e)?e[t]:null}function xs(e,t){if(!$(e))return null;let n=Dn.get(t);if(n||(n=Hs(t),n&&Dn.set(t,n)),!n)return null;const r=n.length;let s=e,l=0;for(;l<r;){const a=s[n[l]];if(a===void 0||x(s))return null;s=a,l++}return s}const js=e=>e,Ks=e=>"",Xs="text",Js=e=>e.length===0?"":ls(e),Qs=ns;function Mn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qs(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 Zs(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zs(e={}){const t=e.locale,n=qs(e),r=$(e.pluralRules)&&k(t)&&x(e.pluralRules[t])?e.pluralRules[t]:Mn,s=$(e.pluralRules)&&k(t)&&x(e.pluralRules[t])?Mn:void 0,l=P=>P[r(n,P.length,s)],a=e.list||[],o=P=>a[P],c=e.named||Y();q(e.pluralIndex)&&Zs(n,c);const d=P=>c[P];function E(P){const R=x(e.messages)?e.messages(P):$(e.messages)?e.messages[P]:!1;return R||(e.parent?e.parent.message(P):Ks)}const L=P=>e.modifiers?e.modifiers[P]:js,p=V(e.processor)&&x(e.processor.normalize)?e.processor.normalize:Js,b=V(e.processor)&&x(e.processor.interpolate)?e.processor.interpolate:Qs,m=V(e.processor)&&k(e.processor.type)?e.processor.type:Xs,O={list:o,named:d,plural:l,linked:(P,...R)=>{const[_,N]=R;let I="text",v="";R.length===1?$(_)?(v=_.modifier||v,I=_.type||I):k(_)&&(v=_||v):R.length===2&&(k(_)&&(v=_||v),k(N)&&(I=N||I));const A=E(P)(O),D=I==="vnode"&&K(A)&&v?A[0]:A;return v?L(v)(D,I):D},message:E,type:m,interpolate:b,normalize:p,values:ne(Y(),a,c)};return O}let Xe=null;function ea(e){Xe=e}function ta(e,t,n){Xe&&Xe.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const na=la("function:translate");function la(e){return t=>Xe&&Xe.emit(e,t)}const Fn=vt.__EXTEND_POINT__,ke=gt(Fn),se={NOT_FOUND_KEY:Fn,FALLBACK_TO_TRANSLATE:ke(),CANNOT_FORMAT_NUMBER:ke(),FALLBACK_TO_NUMBER_FORMAT:ke(),CANNOT_FORMAT_DATE:ke(),FALLBACK_TO_DATE_FORMAT:ke(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ke(),__EXTEND_POINT__:ke()},ra={[se.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[se.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[se.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[se.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[se.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[se.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[se.EXPERIMENTAL_CUSTOM_MESSAGE_COMPI