@avakhula/ui 0.1.18 → 0.1.20

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.
@@ -1,6 +1,6 @@
1
- (function(pe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(pe=typeof globalThis<"u"?globalThis:pe||self,r(pe.MyLib={},pe.Vue))})(this,function(pe,r){"use strict";const U0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Va={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var n,e;(e=(n=this.$refs.icon)==null?void 0:n.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},qa=["name"];function Fa(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("ion-icon",{style:r.normalizeStyle(e.styles),name:e.name,class:r.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,qa)}const Le=_e(Va,[["render",Fa]]);function pt(){return"_"+Math.random().toString(36).substr(2,9)}const Fi={methods:{enter(t){const n=getComputedStyle(t).width;t.style.width=n,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const e=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=e})},afterEnter(t){t.style.height="auto"},leave(t){const n=getComputedStyle(t).height;t.style.height=n,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},K0="",Ha={name:"IbAccordion",mixins:[Fi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:pt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},za=["id","aria-controls","aria-expanded"],Ua=["id","aria-labelledby"],Ka={class:"accordion-content-wrapper"};function Ga(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-accordion",{active:a.isActive}])},[r.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=r.withModifiers((...l)=>i.onClick&&i.onClick(...l),["prevent"]))},[r.renderSlot(t.$slots,"title",{},void 0,!0),r.createVNode(s,{class:"chevron-icon",name:"chevron-down-outline"})],8,za),r.createVNode(r.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[r.createElementVNode("div",Ka,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ua),[[r.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Wa=_e(Ha,[["render",Ga],["__scopeId","data-v-8ece19c1"]]),Kt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Pr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const G0="",Ya={name:"IbButton",props:{kind:{type:String,default:Kt.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},to:{type:[String,Object]},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{component(){return this.href.length?"a":this.to?"router-link":"button"},classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),(this.href.length||this.to)&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Pr({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},Za=["method","action"],Ja=["value"],Xa=["value"],Qa=["name","value"];function el(t,n,e,o,a,i){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.attrs,{onClick:n[0]||(n[0]=s=>i.onClick(s)),onMouseenter:i.onMouseenter,onMouseleave:i.onMouseleave}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"icon"),r.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?r.withDirectives((r.openBlock(),r.createElementBlock("form",{key:0,ref:"form",method:i.formMethod,action:e.href},[r.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,Ja),r.createElementVNode("input",{type:"hidden",name:"_token",value:i.token},null,8,Xa),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Object.keys(e.postOptions),(s,l)=>(r.openBlock(),r.createElementBlock("input",{key:l,type:"hidden",name:s,value:e.postOptions[s]},null,8,Qa))),128))],8,Za)),[[r.vShow,!1]]):r.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Hi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],zi=["start","end"],Ui=tl.reduce((t,n)=>t.concat(n,n+"-"+zi[0],n+"-"+zi[1]),[]),Ki=Math.min,yn=Math.max,Yn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Gi(t,n){return typeof t=="function"?t(n):t}function Zn(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Wi(t){return t==="y"?"height":"width"}function Yi(t){return["top","bottom"].includes(Zn(t))?"y":"x"}function Zi(t){return il(Yi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Gt(t),a=Zi(t),i=Wi(a);let s=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(s=Ji(s)),[s,Ji(s)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Ji(t){return t.replace(/left|right|bottom|top/g,n=>nl[n])}function ll(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?ll(t):{top:t,right:t,bottom:t,left:t}}function Jn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Xi(t,n,e){let{reference:o,floating:a}=t;const i=Yi(n),s=Zi(n),l=Wi(s),u=Zn(n),d=i==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,c=o[l]/2-a[l]/2;let h;switch(u){case"top":h={x:p,y:o.y-a.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-a.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Gt(n)){case"start":h[s]-=c*(e&&d?-1:1);break;case"end":h[s]+=c*(e&&d?-1:1);break}return h}const cl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=e,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Xi(d,o,u),c=o,h={},v=0;for(let m=0;m<l.length;m++){const{name:_,fn:y}=l[m],{x:g,y:w,data:b,reset:k}=await y({x:p,y:f,initialPlacement:o,placement:c,strategy:a,middlewareData:h,rects:d,platform:s,elements:{reference:t,floating:n}});p=g??p,f=w??f,h={...h,[_]:{...h[_],...b}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(c=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Xi(d,c,u)),m=-1)}return{x:p,y:f,placement:c,strategy:a,middlewareData:h}};async function dl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:c=!1,padding:h=0}=Gi(n,t),v=sl(h),_=l[c?f==="floating"?"reference":"floating":f],y=Jn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(_)))==null||e?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:u})),g=f==="floating"?{...s.floating,x:o,y:a}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:u}):g);return{top:(y.top-k.top+v.top)/b.y,bottom:(k.bottom-y.bottom+v.bottom)/b.y,left:(y.left-k.left+v.left)/b.x,right:(k.right-y.right+v.right)/b.x}}function ul(t,n,e){return(t?[...e.filter(a=>Gt(a)===t),...e.filter(a=>Gt(a)!==t)]:e.filter(a=>Zn(a)===a)).filter(a=>t?Gt(a)===t||(n?al(a)!==a:!1):!0)}const fl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,a;const{rects:i,middlewareData:s,placement:l,platform:u,elements:d}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:c=Ui,autoAlignment:h=!0,...v}=Gi(t,n),m=f!==void 0||c===Ui?ul(f||null,h,c):c,_=await dl(n,v),y=((e=s.autoPlacement)==null?void 0:e.index)||0,g=m[y];if(g==null)return{};const w=ol(g,i,await(u.isRTL==null?void 0:u.isRTL(d.floating)));if(l!==g)return{reset:{placement:m[0]}};const b=[_[Zn(g)],_[w[0]],_[w[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:g,overflows:b}],T=m[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Gt(E.placement);return[E.placement,C&&p?E.overflows.slice(0,2).reduce((O,N)=>O+N,0):E.overflows[0],E.overflows]}).sort((E,C)=>E[1]-C[1]),M=((a=S.filter(E=>E[2].slice(0,Gt(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return M!==l?{data:{index:y+1,overflows:k},reset:{placement:M}}:{}}}};function Vt(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Qi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Qi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function eo(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function bn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function hl(t){return["table","td","th"].includes(Vt(t))}function Ir(t){const n=Br(),e=mt(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function pl(t){let n=on(t);for(;_t(n)&&!Xn(n);){if(Ir(n))return n;n=on(n)}return null}function Br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Vt(t))}function mt(t){return dt(t).getComputedStyle(t)}function Qn(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function on(t){if(Vt(t)==="html")return t;const n=t.assignedSlot||t.parentNode||eo(t)&&t.host||qt(t);return eo(n)?n.host:n}function to(t){const n=on(t);return Xn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&bn(n)?n:to(n)}function Mr(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=to(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=dt(a);return i?n.concat(s,s.visualViewport||[],bn(a)?a:[],s.frameElement&&e?Mr(s.frameElement):[]):n.concat(a,Mr(a,[],e))}function no(t){const n=mt(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=_t(t),i=a?t.offsetWidth:e,s=a?t.offsetHeight:o,l=Yn(e)!==i||Yn(o)!==s;return l&&(e=i,o=s),{width:e,height:o,$:l}}function ro(t){return Tt(t)?t:t.contextElement}function an(t){const n=ro(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:i}=no(n);let s=(i?Yn(e.width):e.width)/o,l=(i?Yn(e.height):e.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ml=jt(0);function io(t){const n=dt(t);return!Br()||!n.visualViewport?ml:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function gl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),i=ro(t);let s=jt(1);n&&(o?Tt(o)&&(s=an(o)):s=an(t));const l=gl(i,e,o)?io(i):jt(0);let u=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,p=a.width/s.x,f=a.height/s.y;if(i){const c=dt(i),h=o&&Tt(o)?dt(o):o;let v=c,m=v.frameElement;for(;m&&o&&h!==v;){const _=an(m),y=m.getBoundingClientRect(),g=mt(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,b=y.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;u*=_.x,d*=_.y,p*=_.x,f*=_.y,u+=w,d+=b,v=dt(m),m=v.frameElement}}return Jn({width:p,height:f,x:u,y:d})}const yl=[":popover-open",":modal"];function oo(t){return yl.some(n=>{try{return t.matches(n)}catch{return!1}})}function bl(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const i=a==="fixed",s=qt(o),l=n?oo(n.floating):!1;if(o===s||l&&i)return e;let u={scrollLeft:0,scrollTop:0},d=jt(1);const p=jt(0),f=_t(o);if((f||!f&&!i)&&((Vt(o)!=="body"||bn(s))&&(u=Qn(o)),_t(o))){const c=vn(o);d=an(o),p.x=c.x+o.clientLeft,p.y=c.y+o.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-u.scrollLeft*d.x+p.x,y:e.y*d.y-u.scrollTop*d.y+p.y}}function vl(t){return Array.from(t.getClientRects())}function ao(t){return vn(qt(t)).left+Qn(t).scrollLeft}function _l(t){const n=qt(t),e=Qn(t),o=t.ownerDocument.body,a=yn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=yn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-e.scrollLeft+ao(t);const l=-e.scrollTop;return mt(o).direction==="rtl"&&(s+=yn(n.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}function $l(t,n){const e=dt(t),o=qt(t),a=e.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,u=0;if(a){i=a.width,s=a.height;const d=Br();(!d||d&&n==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:l,y:u}}function wl(t,n){const e=vn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,i=_t(t)?an(t):jt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,d=o*i.y;return{width:s,height:l,x:u,y:d}}function lo(t,n,e){let o;if(n==="viewport")o=$l(t,e);else if(n==="document")o=_l(qt(t));else if(Tt(n))o=wl(n,e);else{const a=io(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Jn(o)}function so(t,n){const e=on(t);return e===n||!Tt(e)||Xn(e)?!1:mt(e).position==="fixed"||so(e,n)}function kl(t,n){const e=n.get(t);if(e)return e;let o=Mr(t,[],!1).filter(l=>Tt(l)&&Vt(l)!=="body"),a=null;const i=mt(t).position==="fixed";let s=i?on(t):t;for(;Tt(s)&&!Xn(s);){const l=mt(s),u=Ir(s);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||bn(s)&&!u&&so(t,s))?o=o.filter(p=>p!==s):a=l,s=on(s)}return n.set(t,o),o}function Cl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const s=[...e==="clippingAncestors"?kl(n,this._c):[].concat(e),o],l=s[0],u=s.reduce((d,p)=>{const f=lo(n,p,a);return d.top=yn(f.top,d.top),d.right=Ki(f.right,d.right),d.bottom=Ki(f.bottom,d.bottom),d.left=yn(f.left,d.left),d},lo(n,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ol(t){const{width:n,height:e}=no(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),i=e==="fixed",s=vn(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const u=jt(0);if(o||!o&&!i)if((Vt(n)!=="body"||bn(a))&&(l=Qn(n)),o){const f=vn(n,!0,i,n);u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}else a&&(u.x=ao(a));const d=s.left+l.scrollLeft-u.x,p=s.top+l.scrollTop-u.y;return{x:d,y:p,width:s.width,height:s.height}}function co(t,n){return!_t(t)||mt(t).position==="fixed"?null:n?n(t):t.offsetParent}function uo(t,n){const e=dt(t);if(!_t(t)||oo(t))return e;let o=co(t,n);for(;o&&hl(o)&&mt(o).position==="static";)o=co(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&mt(o).position==="static"&&!Ir(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||uo,e=this.getDimensions;return{reference:El(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function xl(t){return mt(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:bl,getDocumentElement:qt,getClippingRect:Cl,getOffsetParent:uo,getElementRects:Sl,getClientRects:vl,getDimensions:Ol,getScale:an,isElement:Tt,isRTL:xl},Nl=fl,Al=(t,n,e)=>{const o=new Map,a={platform:Tl,...e},i={...a.platform,_c:o};return cl(t,n,{...a,platform:i})},W0="",Dl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1},attachToBody:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{var t,n,e,o;this.parentNode=this.$el.parentNode,this.alwaysVisible||((t=this.parentNode)==null||t.addEventListener("focus",this.showPopover,!0),(n=this.parentNode)==null||n.addEventListener("blur",this.hidePopover,!0),(e=this.parentNode)==null||e.addEventListener("mouseover",this.showPopover),(o=this.parentNode)==null||o.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Al(this.parentNode,this.$refs.popover,{middleware:[Nl({allowedPlacements:this.position})]}).then(({x:t,y:n,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${n}px`})}))},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.activePosition}`),this.isVisible&&t.push("active"),t}},beforeUnmount(){!this.alwaysVisible&&this.parentNode&&(this.parentNode.removeEventListener("focus",this.showPopover,!0),this.parentNode.removeEventListener("blur",this.hidePopover,!0),this.parentNode.removeEventListener("mouseover",this.showPopover,!0),this.parentNode.removeEventListener("mouseleave",this.hidePopover,!0))}};function Pl(t,n,e,o,a,i){return e.attachToBody?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"popover",class:r.normalizeClass(i.classes)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[r.vShow,a.isVisible]])]),_:3})])):(r.openBlock(),r.createBlock(r.Transition,{key:1},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"popover",class:r.normalizeClass(i.classes)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[r.vShow,a.isVisible]])]),_:3}))}const fo=_e(Dl,[["render",Pl],["__scopeId","data-v-9e816e9b"]]),Y0="",Il={name:"IbTooltip",props:{position:{type:String},title:{type:String},text:{type:String},alwaysVisible:{type:Boolean,default:!1}},computed:{classList(){const t=["ib-tooltip"];return this.title&&t.push("ib-tooltip-large"),t}},components:{IbPopover:fo}},Bl={key:0};function Ml(t,n,e,o,a,i){const s=r.resolveComponent("ib-popover");return r.openBlock(),r.createBlock(s,{position:e.position,"always-visible":e.alwaysVisible,class:r.normalizeClass(i.classList)},{default:r.withCtx(()=>[e.title?(r.openBlock(),r.createElementBlock("b",Bl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),r.createElementVNode("p",null,r.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const ln=_e(Il,[["render",Ml],["__scopeId","data-v-6fb94ac5"]]),ho={[Kt.primary]:Kt.primary,[Kt.tertiary]:Kt.tertiary,[Kt.ghost]:Kt.ghost,white:"white"},po={xs:"xs",s:"s",m:"m"},Z0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:ho.primary,validator:t=>Object.keys(ho).includes(t)},size:{type:String,default:po.s,validator:t=>Object.keys(po).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},computed:{classes(){const t=["ib-icon-button"];return t.push(`ib-icon-btn-${this.kind}`),t.push(`ib-icon-btn-${this.size}`),this.rounded&&t.push("ib-icon-btn-rounded"),this.disabled&&t.push("ib-icon-btn-disabled"),t},attrs(){const t={...this.$attrs};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:Hi,IbTooltip:ln},inheritAttrs:!1};function Rl(t,n,e,o,a,i){const s=r.resolveComponent("ib-tooltip"),l=r.resolveComponent("ib-button");return r.openBlock(),r.createBlock(l,r.mergeProps(i.attrs,{href:e.href,to:e.to,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default"),e.helpText.length?(r.openBlock(),r.createBlock(s,{key:0,text:e.helpText},null,8,["text"])):r.createCommentVNode("",!0)]),_:3},16,["href","to","kind","disabled","prevent-default"])}const ut=_e(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},J0="",jl={name:"IbAlert",props:{type:{type:String,default:er.alert,validator:t=>Object.keys(er).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""},additionalTitleText:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===er.info?"information-circle-outline":this.type===er.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ut}},Vl={ref:"content",class:"content"},ql={class:"content-head"},Fl={key:1,class:"ib-alert-title"},Hl={class:"text-content"},zl={class:"link"};function Ul(t,n,e,o,a,i){var u;const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",{role:"alert",class:r.normalizeClass(i.classes)},[r.createElementVNode("div",Vl,[r.createElementVNode("span",ql,[e.showIcon?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-alert-icon",name:i.iconName},null,8,["name"])):r.createCommentVNode("",!0),(u=e.title)!=null&&u.length?(r.openBlock(),r.createElementBlock("b",Fl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"title",{},void 0,!0)]),r.createElementVNode("span",Hl,[r.renderSlot(t.$slots,"default",{},void 0,!0)]),r.createElementVNode("div",zl,[r.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(r.openBlock(),r.createBlock(l,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:i.close},{default:r.withCtx(()=>[r.createVNode(s,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):r.createCommentVNode("",!0)],2)}const Ft=_e(jl,[["render",Ul],["__scopeId","data-v-8437bad2"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},X0="",Wl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Kl.M},type:{type:String,default:Gl.CIRCLE}},computed:{classList(){return["avatar",`avatar-size-${this.size}`,`avatar-type-${this.type}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},Yl=["src","alt"];function Zl(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(r.openBlock(),r.createElementBlock("img",{key:0,class:r.normalizeClass(i.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["user-avatar",i.classList]),style:r.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):i.validateName?(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([i.classList,"default-avatar"])},r.toDisplayString(i.initials),3)):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["empty-avatar",i.classList])},[r.createVNode(s,{name:"camera-outline"})],2))}const Jl=_e(Wl,[["render",Zl],["__scopeId","data-v-63abd28e"]]),Q0="",Xl={name:"IbBadge",props:{content:{type:[String,Number],default:""}},computed:{classes(){const t=["ib-badge"];return this.content.toString().length&&t.push("ib-badge-large"),t},normalizeContent(){return this.content>99?"99+":this.content}}};function Ql(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass(i.classes)},r.toDisplayString(i.normalizeContent),3)}const es=_e(Xl,[["render",Ql],["__scopeId","data-v-328df75a"]]),ep="",ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",ns,[r.renderSlot(t.$slots,"default")])}const is=_e(ts,[["render",rs]]),sn={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},tp="",os={props:{status:{type:String,default:sn.neutral,validator:t=>Object.keys(sn).includes(t)},icon:{type:String,default:""},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){if(this.icon)return this.icon;switch(this.status){case sn.success:return"checkmark-outline";case sn.neutral:return"time-outline";case sn.info:return"information-circle-outline";case sn.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function as(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.classes)},[e.showIcon&&i.iconName.length?(r.openBlock(),r.createBlock(s,{key:0,name:i.iconName},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",null,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const ls=_e(os,[["render",as],["__scopeId","data-v-92406065"]]),ss={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},np="",rp="",cs={name:"IbTooltip",props:{position:{type:String,default:ss.topCenter},title:{type:String},isOpen:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative")})},data(){return{isOpenedState:this.isOpen}},methods:{open(){this.isOpenedState=!0,this.$emit("open")},close(){this.isOpenedState=!1,this.$emit("close")}},computed:{classes(){const t=["ib-toggle-tip"];return t.push(`ib-${this.position}`),t}},watch:{isOpen(t){t?this.open():this.close()}},components:{IbIconButton:ut,IbIcon:Le}},ds={class:"ib-toggle-tip-head"},us={class:"ib-toggle-tip-content"},fs={class:"ib-toggle-tip-button-set"};function hs(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createBlock(r.Transition,null,{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(i.classes)},[r.createElementVNode("div",ds,[r.createElementVNode("p",null,r.toDisplayString(e.title),1),r.createVNode(l,{class:"close-button",kind:"ghost",onClick:r.withModifiers(i.close,["prevent"])},{default:r.withCtx(()=>[r.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])]),r.createElementVNode("div",us,[r.renderSlot(t.$slots,"default",{},void 0,!0)]),r.createElementVNode("div",fs,[r.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[r.vShow,a.isOpenedState]])]),_:3})}const mo=_e(cs,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,go=32,ps=13,yo=9,ms=38,gs=37,ys=39,bo=40,bs=8,vs="click",{performance:tr}=window,_s=typeof(tr==null?void 0:tr.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>tr.now():()=>Date.now(),_n=new Map;let $n=!1;const vo=t=>{_n.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},$s=()=>{$n||(document.addEventListener("click",vo,{capture:!0}),$n=!0)},ws=()=>{$n&&(document.removeEventListener("click",vo),$n=!1)},nr={created:(t,{value:n,arg:e="click"})=>{if(typeof n!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof n}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);_n.has(t)||($n||$s(),_n.set(t,{bindTimeStamp:_s(),callback:n}))},beforeUnmount:t=>{_n.delete(t),_n.size===0&&ws()}},wn={left:"left",right:"right",center:"center"},rr={top:"top",bottom:"bottom"},ap="",lp="",ks={name:"IbDropdown",directives:{Outside:nr},props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.left},triggerClass:{default:""},isOpened:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerType:{type:String,default:vs},destroyOnHide:{type:Boolean,default:!1}},watch:{isOpened(t){t?this.open():this.close()}},mounted(){this.$globalEvents.$on("dropdown:open",t=>{this.$el.contains(t.$el)||this.close()}),document.addEventListener("focus",this.closeOnEventOutside,!0),document.addEventListener("keyup",this.onKeyupDocument)},data(){return{isOpenedState:this.isOpened,timeout:null}},methods:{onKeydown(t){(t.keyCode===ps||t.keyCode===go)&&(t.preventDefault(),this.toggle()),t.keyCode===bo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Lr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===rr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===wn.left?" dropdown-left":this.horizontal===wn.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+n+e},triggerClasses(){let t=this.isOpenedState?"active":"";return this.disabled&&(t+=" dropdown-trigger-disabled"),this.triggerClass+t},hasTrigger(){return!!this.$slots.trigger}},beforeUnmount(){document.removeEventListener("focus",this.closeOnEventOutside,!0),document.removeEventListener("keypress",this.onKeydownDocument)}},Cs={class:"ib-dropdown"},Os={class:"footer-slot"};function Es(t,n,e,o,a,i){const s=r.resolveDirective("outside");return r.withDirectives((r.openBlock(),r.createElementBlock("div",Cs,[i.hasTrigger&&e.triggerType==="click"?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["dropdown-trigger",i.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...l)=>i.onKeydown&&i.onKeydown(...l)),onClick:n[1]||(n[1]=r.withModifiers((...l)=>i.toggle&&i.toggle(...l),["prevent","stop"]))},[r.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):r.createCommentVNode("",!0),i.hasTrigger&&e.triggerType==="hover"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["dropdown-trigger",i.triggerClasses]),onMouseenter:n[2]||(n[2]=(...l)=>i.debouncedOpen&&i.debouncedOpen(...l)),onMouseleave:n[3]||(n[3]=(...l)=>i.debouncedClose&&i.debouncedClose(...l))},[r.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):r.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:2,ref:"body",class:r.normalizeClass("ib-dropdown-menu "+i.classes)},[r.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...l)=>i.closeOnClickIfRequired&&i.closeOnClickIfRequired(...l))},[r.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(r.openBlock(),r.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...l)=>i.close&&i.close(...l))},[r.renderSlot(t.$slots,"close",{},void 0,!0)])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Os,[r.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[r.vShow,a.isOpenedState]]):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...l)=>i.close&&i.close(...l))},[r.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[s,i.close]])}const ir=_e(ks,[["render",Es],["__scopeId","data-v-dfb4a39a"]]),sp="",Ss={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,i;if(t.keyCode===bo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.querySelector(`.${this.rootClass}`);let u=s.nextElementSibling?s.nextElementSibling:(n=s.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(l&&window.getComputedStyle(l).display!=="none"){l.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const d=(o=(e=s.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];d&&d.nodeName!=="#text"&&d.focus()}if(t.keyCode===ms){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.previousElementSibling?s.previousElementSibling:(a=s.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!l){s.closest(`.${this.rootClass}`).parentNode.focus();return}if(l&&l.nodeName!=="#text"){const u=l==null?void 0:l.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const d=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(i=d[d.length-1])==null||i.childNodes[0].focus();return}l.focus()}}}}};function xs(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...s)=>i.onKeydown&&i.onKeydown(...s))},[r.renderSlot(t.$slots,"default")],34)}const Rr=_e(Ss,[["render",xs]]),cp="",Ts={props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.left},isOpened:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{proxyEvents(t){this.$emit(t.event,...t.args)}},data(){return{list:this.$refs.list}},computed:{hasTrigger(){return!!this.$slots.trigger}},components:{IbDropdown:ir,IbList:Rr}},Ns={class:"dropdown-list-wrapper"};function As(t,n,e,o,a,i){const s=r.resolveComponent("ib-list"),l=r.resolveComponent("ib-dropdown");return r.openBlock(),r.createElementBlock("div",Ns,[r.createVNode(l,r.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:i.proxyEvents}),r.createSlots({body:r.withCtx(({isOpened:u})=>[r.createVNode(s,{ref:"list",class:"list"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"body",{isOpenedState:u})]),_:2},1536)]),_:2},[i.hasTrigger?{name:"trigger",fn:r.withCtx(({isOpened:u})=>[r.renderSlot(t.$slots,"trigger",{isOpened:u})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const or=_e(Ts,[["render",As]]),dp="",Ds={props:{checked:{type:Boolean,default:!1},href:{type:String},to:{type:[String,Object]}},computed:{component(){return this.href?"a":this.to?"router-link":"div"},attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),this.to&&(t.to=this.to),t}}},Ps={class:"dropdown-item-wrapper"},Is={class:"dropdown-item-icon"};function Bs(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("li",Ps,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps({class:e.checked?"active":""},i.attrs,{tabindex:"0"}),{default:r.withCtx(()=>[r.createElementVNode("p",null,[r.withDirectives(r.createElementVNode("div",Is,[r.renderSlot(t.$slots,"icon",{},void 0,!0)],512),[[r.vShow,t.$slots.icon]]),r.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const jr=_e(Ds,[["render",Bs],["__scopeId","data-v-6ec2fbd4"]]),Ms={common:"common",danger:"danger"},up="",Ls={name:"IbSplitButton",props:{id:{type:String,default:()=>pt()},kind:{type:String,default:Ms.common},verticalPosition:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.$nextTick(()=>{this.setActiveItem()}),this.listObserver=new MutationObserver(n=>{for(const e of n)if(e.type==="attributes"&&e.attributeName==="disabled"){this.mainButtonAttrs.disabled=e.target.disabled;break}}),this.listObserver.observe(this.$refs.list,{attributes:!0,subtree:!0})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[],listObserver:null}},components:{IbIcon:Le,IbDropdownList:or},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;this.mainButtonAttrs=t,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.mainButtonAttrs&&"to"in this.mainButtonAttrs?this.isRouterLink=!0:this.isRouterLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}},beforeUnmount(){this.listObserver.disconnect(),this.listObserver=null}},Rs=["disabled"],js=["disabled"],Vs=["disabled"],qs={ref:"list"};function Fs(t,n,e,o,a,i){const s=r.resolveComponent("router-link"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.classes)},[a.isRouterLink?(r.openBlock(),r.createBlock(s,r.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:i.onClickLink}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...d)=>i.onClickLink&&i.onClickLink(...d))}),r.toDisplayString(a.content),17,Rs)):(r.openBlock(),r.createElementBlock("button",r.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),r.toDisplayString(a.content),17,js)),r.createVNode(u,{disabled:e.disabled,closeOnClick:!0,vertical:e.verticalPosition,horizontal:e.verticalPosition==="top"?"right":"left"},{trigger:r.withCtx(()=>[r.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[r.createVNode(l,{name:"chevron-down-outline"})],8,Vs)]),body:r.withCtx(()=>[r.createElementVNode("div",qs,[r.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled","vertical","horizontal"])],2)}const Hs=_e(Ls,[["render",Fs]]),fp="",zs={props:{href:{type:String,default:""},to:{type:[String,Object]}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},component(){return this.href.length?"a":this.to?"router-link":"button"}}};function Us(t,n,e,o,a,i){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.attrs,{class:"ib-dropdown-item"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Ks=_e(zs,[["render",Us],["__scopeId","data-v-9a68b340"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},hp="",Gs={name:"IbModal",directives:{Outside:nr},emits:{open:null,close:null},props:{active:{type:Boolean,default:!1},classList:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{type:String,default:Nt.S}},watch:{active(t){this.isActive=t}},mounted(){var n,e,o,a;const t=(e=(n=this.$refs)==null?void 0:n.modal)==null?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea");(o=t[0])==null||o.addEventListener("keydown",i=>{i.keyCode===yo&&i.shiftKey&&(i.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",i=>{i.keyCode===yo&&!i.shiftKey&&(i.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(t){var n,e,o;!((n=this.$refs.modal)!=null&&n.contains(t.relatedTarget))&&this.isActive&&((o=(e=this.$refs.modal)==null?void 0:e.querySelector("a, button, [tabindex]"))==null||o.focus())},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){if(!this.isActive)return;const e=Array.from(document.querySelectorAll(".modal.is-active")).sort((o,a)=>+(getComputedStyle(o).zIndex||0)-+(getComputedStyle(a).zIndex||0)).at(-1);if(e===this.$refs.modal&&!e.contains(t.target)&&!e.contains(t.relatedTarget)){const o=e.querySelector(`a[href], button:not([disabled]),
1
+ (function(pe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(pe=typeof globalThis<"u"?globalThis:pe||self,r(pe.MyLib={},pe.Vue))})(this,function(pe,r){"use strict";const z0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Va={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var n,e;(e=(n=this.$refs.icon)==null?void 0:n.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},qa=["name"];function Fa(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("ion-icon",{style:r.normalizeStyle(e.styles),name:e.name,class:r.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,qa)}const Le=_e(Va,[["render",Fa]]);function pt(){return"_"+Math.random().toString(36).substr(2,9)}const Fi={methods:{enter(t){const n=getComputedStyle(t).width;t.style.width=n,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const e=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=e})},afterEnter(t){t.style.height="auto"},leave(t){const n=getComputedStyle(t).height;t.style.height=n,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},U0="",Ha={name:"IbAccordion",mixins:[Fi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:pt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},za=["id","aria-controls","aria-expanded"],Ua=["id","aria-labelledby"],Ka={class:"accordion-content-wrapper"};function Ga(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-accordion",{active:a.isActive}])},[r.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=r.withModifiers((...l)=>i.onClick&&i.onClick(...l),["prevent"]))},[r.renderSlot(t.$slots,"title",{},void 0,!0),r.createVNode(s,{class:"chevron-icon",name:"chevron-down-outline"})],8,za),r.createVNode(r.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[r.createElementVNode("div",Ka,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ua),[[r.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Wa=_e(Ha,[["render",Ga],["__scopeId","data-v-8ece19c1"]]),Kt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Pr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const K0="",Ya={name:"IbButton",props:{kind:{type:String,default:Kt.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},to:{type:[String,Object]},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{component(){return this.href.length?"a":this.to?"router-link":"button"},classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),(this.href.length||this.to)&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Pr({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},Za=["method","action"],Ja=["value"],Xa=["value"],Qa=["name","value"];function el(t,n,e,o,a,i){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.attrs,{onClick:n[0]||(n[0]=s=>i.onClick(s)),onMouseenter:i.onMouseenter,onMouseleave:i.onMouseleave}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"icon"),r.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?r.withDirectives((r.openBlock(),r.createElementBlock("form",{key:0,ref:"form",method:i.formMethod,action:e.href},[r.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,Ja),r.createElementVNode("input",{type:"hidden",name:"_token",value:i.token},null,8,Xa),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Object.keys(e.postOptions),(s,l)=>(r.openBlock(),r.createElementBlock("input",{key:l,type:"hidden",name:s,value:e.postOptions[s]},null,8,Qa))),128))],8,Za)),[[r.vShow,!1]]):r.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Hi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],zi=["start","end"],Ui=tl.reduce((t,n)=>t.concat(n,n+"-"+zi[0],n+"-"+zi[1]),[]),Ki=Math.min,yn=Math.max,Yn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Gi(t,n){return typeof t=="function"?t(n):t}function Zn(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Wi(t){return t==="y"?"height":"width"}function Yi(t){return["top","bottom"].includes(Zn(t))?"y":"x"}function Zi(t){return il(Yi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Gt(t),a=Zi(t),i=Wi(a);let s=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(s=Ji(s)),[s,Ji(s)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Ji(t){return t.replace(/left|right|bottom|top/g,n=>nl[n])}function ll(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?ll(t):{top:t,right:t,bottom:t,left:t}}function Jn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Xi(t,n,e){let{reference:o,floating:a}=t;const i=Yi(n),s=Zi(n),l=Wi(s),u=Zn(n),d=i==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,c=o[l]/2-a[l]/2;let h;switch(u){case"top":h={x:p,y:o.y-a.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-a.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Gt(n)){case"start":h[s]-=c*(e&&d?-1:1);break;case"end":h[s]+=c*(e&&d?-1:1);break}return h}const cl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=e,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Xi(d,o,u),c=o,h={},v=0;for(let m=0;m<l.length;m++){const{name:_,fn:y}=l[m],{x:g,y:w,data:b,reset:k}=await y({x:p,y:f,initialPlacement:o,placement:c,strategy:a,middlewareData:h,rects:d,platform:s,elements:{reference:t,floating:n}});p=g??p,f=w??f,h={...h,[_]:{...h[_],...b}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(c=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Xi(d,c,u)),m=-1)}return{x:p,y:f,placement:c,strategy:a,middlewareData:h}};async function dl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:c=!1,padding:h=0}=Gi(n,t),v=sl(h),_=l[c?f==="floating"?"reference":"floating":f],y=Jn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(_)))==null||e?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:u})),g=f==="floating"?{...s.floating,x:o,y:a}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,strategy:u}):g);return{top:(y.top-k.top+v.top)/b.y,bottom:(k.bottom-y.bottom+v.bottom)/b.y,left:(y.left-k.left+v.left)/b.x,right:(k.right-y.right+v.right)/b.x}}function ul(t,n,e){return(t?[...e.filter(a=>Gt(a)===t),...e.filter(a=>Gt(a)!==t)]:e.filter(a=>Zn(a)===a)).filter(a=>t?Gt(a)===t||(n?al(a)!==a:!1):!0)}const fl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,a;const{rects:i,middlewareData:s,placement:l,platform:u,elements:d}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:c=Ui,autoAlignment:h=!0,...v}=Gi(t,n),m=f!==void 0||c===Ui?ul(f||null,h,c):c,_=await dl(n,v),y=((e=s.autoPlacement)==null?void 0:e.index)||0,g=m[y];if(g==null)return{};const w=ol(g,i,await(u.isRTL==null?void 0:u.isRTL(d.floating)));if(l!==g)return{reset:{placement:m[0]}};const b=[_[Zn(g)],_[w[0]],_[w[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:g,overflows:b}],T=m[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Gt(E.placement);return[E.placement,C&&p?E.overflows.slice(0,2).reduce((O,N)=>O+N,0):E.overflows[0],E.overflows]}).sort((E,C)=>E[1]-C[1]),M=((a=S.filter(E=>E[2].slice(0,Gt(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return M!==l?{data:{index:y+1,overflows:k},reset:{placement:M}}:{}}}};function Vt(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Qi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Qi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function eo(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function bn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function hl(t){return["table","td","th"].includes(Vt(t))}function Ir(t){const n=Br(),e=mt(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function pl(t){let n=on(t);for(;_t(n)&&!Xn(n);){if(Ir(n))return n;n=on(n)}return null}function Br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Vt(t))}function mt(t){return dt(t).getComputedStyle(t)}function Qn(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function on(t){if(Vt(t)==="html")return t;const n=t.assignedSlot||t.parentNode||eo(t)&&t.host||qt(t);return eo(n)?n.host:n}function to(t){const n=on(t);return Xn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&bn(n)?n:to(n)}function Mr(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=to(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=dt(a);return i?n.concat(s,s.visualViewport||[],bn(a)?a:[],s.frameElement&&e?Mr(s.frameElement):[]):n.concat(a,Mr(a,[],e))}function no(t){const n=mt(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=_t(t),i=a?t.offsetWidth:e,s=a?t.offsetHeight:o,l=Yn(e)!==i||Yn(o)!==s;return l&&(e=i,o=s),{width:e,height:o,$:l}}function ro(t){return Tt(t)?t:t.contextElement}function an(t){const n=ro(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:i}=no(n);let s=(i?Yn(e.width):e.width)/o,l=(i?Yn(e.height):e.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ml=jt(0);function io(t){const n=dt(t);return!Br()||!n.visualViewport?ml:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function gl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),i=ro(t);let s=jt(1);n&&(o?Tt(o)&&(s=an(o)):s=an(t));const l=gl(i,e,o)?io(i):jt(0);let u=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,p=a.width/s.x,f=a.height/s.y;if(i){const c=dt(i),h=o&&Tt(o)?dt(o):o;let v=c,m=v.frameElement;for(;m&&o&&h!==v;){const _=an(m),y=m.getBoundingClientRect(),g=mt(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,b=y.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;u*=_.x,d*=_.y,p*=_.x,f*=_.y,u+=w,d+=b,v=dt(m),m=v.frameElement}}return Jn({width:p,height:f,x:u,y:d})}const yl=[":popover-open",":modal"];function oo(t){return yl.some(n=>{try{return t.matches(n)}catch{return!1}})}function bl(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const i=a==="fixed",s=qt(o),l=n?oo(n.floating):!1;if(o===s||l&&i)return e;let u={scrollLeft:0,scrollTop:0},d=jt(1);const p=jt(0),f=_t(o);if((f||!f&&!i)&&((Vt(o)!=="body"||bn(s))&&(u=Qn(o)),_t(o))){const c=vn(o);d=an(o),p.x=c.x+o.clientLeft,p.y=c.y+o.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-u.scrollLeft*d.x+p.x,y:e.y*d.y-u.scrollTop*d.y+p.y}}function vl(t){return Array.from(t.getClientRects())}function ao(t){return vn(qt(t)).left+Qn(t).scrollLeft}function _l(t){const n=qt(t),e=Qn(t),o=t.ownerDocument.body,a=yn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=yn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let s=-e.scrollLeft+ao(t);const l=-e.scrollTop;return mt(o).direction==="rtl"&&(s+=yn(n.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}function $l(t,n){const e=dt(t),o=qt(t),a=e.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,u=0;if(a){i=a.width,s=a.height;const d=Br();(!d||d&&n==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:l,y:u}}function wl(t,n){const e=vn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,i=_t(t)?an(t):jt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,d=o*i.y;return{width:s,height:l,x:u,y:d}}function lo(t,n,e){let o;if(n==="viewport")o=$l(t,e);else if(n==="document")o=_l(qt(t));else if(Tt(n))o=wl(n,e);else{const a=io(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Jn(o)}function so(t,n){const e=on(t);return e===n||!Tt(e)||Xn(e)?!1:mt(e).position==="fixed"||so(e,n)}function kl(t,n){const e=n.get(t);if(e)return e;let o=Mr(t,[],!1).filter(l=>Tt(l)&&Vt(l)!=="body"),a=null;const i=mt(t).position==="fixed";let s=i?on(t):t;for(;Tt(s)&&!Xn(s);){const l=mt(s),u=Ir(s);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||bn(s)&&!u&&so(t,s))?o=o.filter(p=>p!==s):a=l,s=on(s)}return n.set(t,o),o}function Cl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const s=[...e==="clippingAncestors"?kl(n,this._c):[].concat(e),o],l=s[0],u=s.reduce((d,p)=>{const f=lo(n,p,a);return d.top=yn(f.top,d.top),d.right=Ki(f.right,d.right),d.bottom=Ki(f.bottom,d.bottom),d.left=yn(f.left,d.left),d},lo(n,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ol(t){const{width:n,height:e}=no(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),i=e==="fixed",s=vn(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const u=jt(0);if(o||!o&&!i)if((Vt(n)!=="body"||bn(a))&&(l=Qn(n)),o){const f=vn(n,!0,i,n);u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}else a&&(u.x=ao(a));const d=s.left+l.scrollLeft-u.x,p=s.top+l.scrollTop-u.y;return{x:d,y:p,width:s.width,height:s.height}}function co(t,n){return!_t(t)||mt(t).position==="fixed"?null:n?n(t):t.offsetParent}function uo(t,n){const e=dt(t);if(!_t(t)||oo(t))return e;let o=co(t,n);for(;o&&hl(o)&&mt(o).position==="static";)o=co(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&mt(o).position==="static"&&!Ir(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||uo,e=this.getDimensions;return{reference:El(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function xl(t){return mt(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:bl,getDocumentElement:qt,getClippingRect:Cl,getOffsetParent:uo,getElementRects:Sl,getClientRects:vl,getDimensions:Ol,getScale:an,isElement:Tt,isRTL:xl},Nl=fl,Al=(t,n,e)=>{const o=new Map,a={platform:Tl,...e},i={...a.platform,_c:o};return cl(t,n,{...a,platform:i})},G0="",Dl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1},attachToBody:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{var t,n,e,o;this.parentNode=this.$el.parentNode,this.alwaysVisible||((t=this.parentNode)==null||t.addEventListener("focus",this.showPopover,!0),(n=this.parentNode)==null||n.addEventListener("blur",this.hidePopover,!0),(e=this.parentNode)==null||e.addEventListener("mouseover",this.showPopover),(o=this.parentNode)==null||o.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Al(this.parentNode,this.$refs.popover,{middleware:[Nl({allowedPlacements:this.position})]}).then(({x:t,y:n,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${n}px`})}))},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.activePosition}`),this.isVisible&&t.push("active"),t}},beforeUnmount(){!this.alwaysVisible&&this.parentNode&&(this.parentNode.removeEventListener("focus",this.showPopover,!0),this.parentNode.removeEventListener("blur",this.hidePopover,!0),this.parentNode.removeEventListener("mouseover",this.showPopover,!0),this.parentNode.removeEventListener("mouseleave",this.hidePopover,!0))}};function Pl(t,n,e,o,a,i){return e.attachToBody?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"popover",class:r.normalizeClass(i.classes)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[r.vShow,a.isVisible]])]),_:3})])):(r.openBlock(),r.createBlock(r.Transition,{key:1},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"popover",class:r.normalizeClass(i.classes)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[r.vShow,a.isVisible]])]),_:3}))}const fo=_e(Dl,[["render",Pl],["__scopeId","data-v-9e816e9b"]]),W0="",Il={name:"IbTooltip",props:{position:{type:String},title:{type:String},text:{type:String},alwaysVisible:{type:Boolean,default:!1}},computed:{classList(){const t=["ib-tooltip"];return this.title&&t.push("ib-tooltip-large"),t}},components:{IbPopover:fo}},Bl={key:0};function Ml(t,n,e,o,a,i){const s=r.resolveComponent("ib-popover");return r.openBlock(),r.createBlock(s,{position:e.position,"always-visible":e.alwaysVisible,class:r.normalizeClass(i.classList)},{default:r.withCtx(()=>[e.title?(r.openBlock(),r.createElementBlock("b",Bl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),r.createElementVNode("p",null,r.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const ln=_e(Il,[["render",Ml],["__scopeId","data-v-6fb94ac5"]]),ho={[Kt.primary]:Kt.primary,[Kt.tertiary]:Kt.tertiary,[Kt.ghost]:Kt.ghost,white:"white"},po={xs:"xs",s:"s",m:"m"},Y0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:ho.primary,validator:t=>Object.keys(ho).includes(t)},size:{type:String,default:po.s,validator:t=>Object.keys(po).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},computed:{classes(){const t=["ib-icon-button"];return t.push(`ib-icon-btn-${this.kind}`),t.push(`ib-icon-btn-${this.size}`),this.rounded&&t.push("ib-icon-btn-rounded"),this.disabled&&t.push("ib-icon-btn-disabled"),t},attrs(){const t={...this.$attrs};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:Hi,IbTooltip:ln},inheritAttrs:!1};function Rl(t,n,e,o,a,i){const s=r.resolveComponent("ib-tooltip"),l=r.resolveComponent("ib-button");return r.openBlock(),r.createBlock(l,r.mergeProps(i.attrs,{href:e.href,to:e.to,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default"),e.helpText.length?(r.openBlock(),r.createBlock(s,{key:0,text:e.helpText},null,8,["text"])):r.createCommentVNode("",!0)]),_:3},16,["href","to","kind","disabled","prevent-default"])}const ut=_e(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},Z0="",jl={name:"IbAlert",props:{type:{type:String,default:er.alert,validator:t=>Object.keys(er).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""},additionalTitleText:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===er.info?"information-circle-outline":this.type===er.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ut}},Vl={ref:"content",class:"content"},ql={class:"content-head"},Fl={key:1,class:"ib-alert-title"},Hl={class:"text-content"},zl={class:"link"};function Ul(t,n,e,o,a,i){var u;const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",{role:"alert",class:r.normalizeClass(i.classes)},[r.createElementVNode("div",Vl,[r.createElementVNode("span",ql,[e.showIcon?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-alert-icon",name:i.iconName},null,8,["name"])):r.createCommentVNode("",!0),(u=e.title)!=null&&u.length?(r.openBlock(),r.createElementBlock("b",Fl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"title",{},void 0,!0)]),r.createElementVNode("span",Hl,[r.renderSlot(t.$slots,"default",{},void 0,!0)]),r.createElementVNode("div",zl,[r.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(r.openBlock(),r.createBlock(l,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:i.close},{default:r.withCtx(()=>[r.createVNode(s,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):r.createCommentVNode("",!0)],2)}const Ft=_e(jl,[["render",Ul],["__scopeId","data-v-8437bad2"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},J0="",Wl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Kl.M},type:{type:String,default:Gl.CIRCLE}},computed:{classList(){return["avatar",`avatar-size-${this.size}`,`avatar-type-${this.type}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},Yl=["src","alt"];function Zl(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(r.openBlock(),r.createElementBlock("img",{key:0,class:r.normalizeClass(i.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["user-avatar",i.classList]),style:r.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):i.validateName?(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([i.classList,"default-avatar"])},r.toDisplayString(i.initials),3)):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["empty-avatar",i.classList])},[r.createVNode(s,{name:"camera-outline"})],2))}const Jl=_e(Wl,[["render",Zl],["__scopeId","data-v-63abd28e"]]),X0="",Xl={name:"IbBadge",props:{content:{type:[String,Number],default:""}},computed:{classes(){const t=["ib-badge"];return this.content.toString().length&&t.push("ib-badge-large"),t},normalizeContent(){return this.content>99?"99+":this.content}}};function Ql(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass(i.classes)},r.toDisplayString(i.normalizeContent),3)}const es=_e(Xl,[["render",Ql],["__scopeId","data-v-328df75a"]]),Q0="",ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",ns,[r.renderSlot(t.$slots,"default")])}const is=_e(ts,[["render",rs]]),sn={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},ep="",os={props:{status:{type:String,default:sn.neutral,validator:t=>Object.keys(sn).includes(t)},icon:{type:String,default:""},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){if(this.icon)return this.icon;switch(this.status){case sn.success:return"checkmark-outline";case sn.neutral:return"time-outline";case sn.info:return"information-circle-outline";case sn.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function as(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.classes)},[e.showIcon&&i.iconName.length?(r.openBlock(),r.createBlock(s,{key:0,name:i.iconName},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",null,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const ls=_e(os,[["render",as],["__scopeId","data-v-92406065"]]),ss={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},tp="",np="",cs={name:"IbTooltip",props:{position:{type:String,default:ss.topCenter},title:{type:String},isOpen:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative")})},data(){return{isOpenedState:this.isOpen}},methods:{open(){this.isOpenedState=!0,this.$emit("open")},close(){this.isOpenedState=!1,this.$emit("close")}},computed:{classes(){const t=["ib-toggle-tip"];return t.push(`ib-${this.position}`),t}},watch:{isOpen(t){t?this.open():this.close()}},components:{IbIconButton:ut,IbIcon:Le}},ds={class:"ib-toggle-tip-head"},us={class:"ib-toggle-tip-content"},fs={class:"ib-toggle-tip-button-set"};function hs(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createBlock(r.Transition,null,{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(i.classes)},[r.createElementVNode("div",ds,[r.createElementVNode("p",null,r.toDisplayString(e.title),1),r.createVNode(l,{class:"close-button",kind:"ghost",onClick:r.withModifiers(i.close,["prevent"])},{default:r.withCtx(()=>[r.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])]),r.createElementVNode("div",us,[r.renderSlot(t.$slots,"default",{},void 0,!0)]),r.createElementVNode("div",fs,[r.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[r.vShow,a.isOpenedState]])]),_:3})}const mo=_e(cs,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,go=32,ps=13,yo=9,ms=38,gs=37,ys=39,bo=40,bs=8,vs="click",{performance:tr}=window,_s=typeof(tr==null?void 0:tr.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>tr.now():()=>Date.now(),_n=new Map;let $n=!1;const vo=t=>{_n.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},$s=()=>{$n||(document.addEventListener("click",vo,{capture:!0}),$n=!0)},ws=()=>{$n&&(document.removeEventListener("click",vo),$n=!1)},nr={created:(t,{value:n,arg:e="click"})=>{if(typeof n!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof n}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);_n.has(t)||($n||$s(),_n.set(t,{bindTimeStamp:_s(),callback:n}))},beforeUnmount:t=>{_n.delete(t),_n.size===0&&ws()}},wn={left:"left",right:"right",center:"center"},rr={top:"top",bottom:"bottom"},op="",ap="",ks={name:"IbDropdown",directives:{Outside:nr},props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.left},triggerClass:{default:""},isOpened:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerType:{type:String,default:vs},destroyOnHide:{type:Boolean,default:!1}},watch:{isOpened(t){t?this.open():this.close()}},mounted(){this.$globalEvents.$on("dropdown:open",t=>{this.$el.contains(t.$el)||this.close()}),document.addEventListener("focus",this.closeOnEventOutside,!0),document.addEventListener("keyup",this.onKeyupDocument)},data(){return{isOpenedState:this.isOpened,timeout:null}},methods:{onKeydown(t){(t.keyCode===ps||t.keyCode===go)&&(t.preventDefault(),this.toggle()),t.keyCode===bo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Lr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===rr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===wn.left?" dropdown-left":this.horizontal===wn.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+n+e},triggerClasses(){let t=this.isOpenedState?"active":"";return this.disabled&&(t+=" dropdown-trigger-disabled"),this.triggerClass+t},hasTrigger(){return!!this.$slots.trigger}},beforeUnmount(){document.removeEventListener("focus",this.closeOnEventOutside,!0),document.removeEventListener("keypress",this.onKeydownDocument)}},Cs={class:"ib-dropdown"},Os={class:"footer-slot"};function Es(t,n,e,o,a,i){const s=r.resolveDirective("outside");return r.withDirectives((r.openBlock(),r.createElementBlock("div",Cs,[i.hasTrigger&&e.triggerType==="click"?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["dropdown-trigger",i.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...l)=>i.onKeydown&&i.onKeydown(...l)),onClick:n[1]||(n[1]=r.withModifiers((...l)=>i.toggle&&i.toggle(...l),["prevent","stop"]))},[r.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):r.createCommentVNode("",!0),i.hasTrigger&&e.triggerType==="hover"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["dropdown-trigger",i.triggerClasses]),onMouseenter:n[2]||(n[2]=(...l)=>i.debouncedOpen&&i.debouncedOpen(...l)),onMouseleave:n[3]||(n[3]=(...l)=>i.debouncedClose&&i.debouncedClose(...l))},[r.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):r.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:2,ref:"body",class:r.normalizeClass("ib-dropdown-menu "+i.classes)},[r.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...l)=>i.closeOnClickIfRequired&&i.closeOnClickIfRequired(...l))},[r.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(r.openBlock(),r.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...l)=>i.close&&i.close(...l))},[r.renderSlot(t.$slots,"close",{},void 0,!0)])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Os,[r.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[r.vShow,a.isOpenedState]]):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...l)=>i.close&&i.close(...l))},[r.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[s,i.close]])}const ir=_e(ks,[["render",Es],["__scopeId","data-v-dfb4a39a"]]),lp="",Ss={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,i;if(t.keyCode===bo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.querySelector(`.${this.rootClass}`);let u=s.nextElementSibling?s.nextElementSibling:(n=s.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(l&&window.getComputedStyle(l).display!=="none"){l.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const d=(o=(e=s.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];d&&d.nodeName!=="#text"&&d.focus()}if(t.keyCode===ms){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.previousElementSibling?s.previousElementSibling:(a=s.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!l){s.closest(`.${this.rootClass}`).parentNode.focus();return}if(l&&l.nodeName!=="#text"){const u=l==null?void 0:l.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const d=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(i=d[d.length-1])==null||i.childNodes[0].focus();return}l.focus()}}}}};function xs(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...s)=>i.onKeydown&&i.onKeydown(...s))},[r.renderSlot(t.$slots,"default")],34)}const Rr=_e(Ss,[["render",xs]]),sp="",Ts={props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.left},isOpened:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{type:String,default:""}},methods:{proxyEvents(t){this.$emit(t.event,...t.args)}},data(){return{list:this.$refs.list}},computed:{hasTrigger(){return!!this.$slots.trigger}},components:{IbDropdown:ir,IbList:Rr}};function Ns(t,n,e,o,a,i){const s=r.resolveComponent("ib-list"),l=r.resolveComponent("ib-dropdown");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dropdown-list-wrapper",e.class])},[r.createVNode(l,r.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:i.proxyEvents}),r.createSlots({body:r.withCtx(({isOpened:u})=>[r.createVNode(s,{ref:"list",class:"list"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"body",{isOpenedState:u})]),_:2},1536)]),_:2},[i.hasTrigger?{name:"trigger",fn:r.withCtx(({isOpened:u})=>[r.renderSlot(t.$slots,"trigger",{isOpened:u})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])],2)}const or=_e(Ts,[["render",Ns]]),cp="",As={props:{checked:{type:Boolean,default:!1},href:{type:String},to:{type:[String,Object]}},computed:{component(){return this.href?"a":this.to?"router-link":"div"},attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),this.to&&(t.to=this.to),t}}},Ds={class:"dropdown-item-wrapper"},Ps={class:"dropdown-item-icon"};function Is(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("li",Ds,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps({class:e.checked?"active":""},i.attrs,{tabindex:"0"}),{default:r.withCtx(()=>[r.createElementVNode("p",null,[r.withDirectives(r.createElementVNode("div",Ps,[r.renderSlot(t.$slots,"icon",{},void 0,!0)],512),[[r.vShow,t.$slots.icon]]),r.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const jr=_e(As,[["render",Is],["__scopeId","data-v-6ec2fbd4"]]),Bs={common:"common",danger:"danger"},dp="",Ms={name:"IbSplitButton",props:{id:{type:String,default:()=>pt()},kind:{type:String,default:Bs.common},verticalPosition:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.$nextTick(()=>{this.setActiveItem()}),this.listObserver=new MutationObserver(n=>{for(const e of n)if(e.type==="attributes"&&e.attributeName==="disabled"){this.mainButtonAttrs.disabled=e.target.disabled;break}}),this.listObserver.observe(this.$refs.list,{attributes:!0,subtree:!0})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[],listObserver:null}},components:{IbIcon:Le,IbDropdownList:or},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;this.mainButtonAttrs=t,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.mainButtonAttrs&&"to"in this.mainButtonAttrs?this.isRouterLink=!0:this.isRouterLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}},beforeUnmount(){this.listObserver.disconnect(),this.listObserver=null}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,i){const s=r.resolveComponent("router-link"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.classes)},[a.isRouterLink?(r.openBlock(),r.createBlock(s,r.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:i.onClickLink}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...d)=>i.onClickLink&&i.onClickLink(...d))}),r.toDisplayString(a.content),17,Ls)):(r.openBlock(),r.createElementBlock("button",r.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),r.toDisplayString(a.content),17,Rs)),r.createVNode(u,{disabled:e.disabled,closeOnClick:!0,vertical:e.verticalPosition,horizontal:e.verticalPosition==="top"?"right":"left"},{trigger:r.withCtx(()=>[r.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[r.createVNode(l,{name:"chevron-down-outline"})],8,js)]),body:r.withCtx(()=>[r.createElementVNode("div",Vs,[r.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled","vertical","horizontal"])],2)}const Fs=_e(Ms,[["render",qs]]),up="",Hs={props:{href:{type:String,default:""},to:{type:[String,Object]}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},component(){return this.href.length?"a":this.to?"router-link":"button"}}};function zs(t,n,e,o,a,i){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.attrs,{class:"ib-dropdown-item"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Us=_e(Hs,[["render",zs],["__scopeId","data-v-9a68b340"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},fp="",Ks={name:"IbModal",directives:{Outside:nr},emits:{open:null,close:null},props:{active:{type:Boolean,default:!1},classList:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{type:String,default:Nt.S}},watch:{active(t){this.isActive=t}},mounted(){var n,e,o,a;const t=(e=(n=this.$refs)==null?void 0:n.modal)==null?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea");(o=t[0])==null||o.addEventListener("keydown",i=>{i.keyCode===yo&&i.shiftKey&&(i.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",i=>{i.keyCode===yo&&!i.shiftKey&&(i.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(t){var n,e,o;!((n=this.$refs.modal)!=null&&n.contains(t.relatedTarget))&&this.isActive&&((o=(e=this.$refs.modal)==null?void 0:e.querySelector("a, button, [tabindex]"))==null||o.focus())},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){if(!this.isActive)return;const e=Array.from(document.querySelectorAll(".modal.is-active")).sort((o,a)=>+(getComputedStyle(o).zIndex||0)-+(getComputedStyle(a).zIndex||0)).at(-1);if(e===this.$refs.modal&&!e.contains(t.target)&&!e.contains(t.relatedTarget)){const o=e.querySelector(`a[href], button:not([disabled]),
2
2
  textarea, input:not([type="hidden"]),
3
- select, [tabindex]:not([tabindex="-1"])`);o==null||o.focus()}},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Lr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{classes(){const t=["modal"];return this.classList.length&&t.push(this.classList),this.isActive&&t.push("is-active"),t},bodyStyles(){const t={};return this.size===Nt.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Nt.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Nt.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Nt.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Nt.S&&t.push("modal-body-s"),this.size===Nt.M&&t.push("modal-body-m"),this.size===Nt.L&&t.push("modal-body-l"),this.size===Nt.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ut,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Ws={key:1,class:"modal-header"},Ys={key:2,class:"modal-footer"};function Zs(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveDirective("outside");return r.openBlock(),r.createElementBlock(r.Fragment,null,[i.hasTrigger?(r.openBlock(),r.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...d)=>i.onTriggerBlur&&i.onTriggerBlur(...d)),onClick:n[1]||(n[1]=(...d)=>i.open&&i.open(...d))},[r.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(i.classes),ref:"modal"},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.bodyClassList),style:r.normalizeStyle(i.bodyStyles)},[e.showCloseButton?(r.openBlock(),r.createBlock(l,{key:0,class:"modal-close-icon",kind:"ghost",onClick:i.close},{default:r.withCtx(()=>[r.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])):r.createCommentVNode("",!0),i.hasHeader?(r.openBlock(),r.createElementBlock("p",Ws,[r.renderSlot(t.$slots,"header",{showModal:i.showModal},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["modal-content",{"without-title":!i.hasHeader}])},[r.renderSlot(t.$slots,"body",{showModal:i.showModal},void 0,!0)],2),i.hasFooter?(r.openBlock(),r.createElementBlock("div",Ys,[r.renderSlot(t.$slots,"footer",{showModal:i.showModal},void 0,!0)])):r.createCommentVNode("",!0)],6)),[[u,i.clickOutside]])],2),[[r.vShow,a.isActive]])]))],64)}const Js=_e(Gs,[["render",Zs],["__scopeId","data-v-12ec5923"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const pp="",Xs={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return _o(t)},selectTab(t){this.selectedTabByDropdown=t,this.$emit("select-tab",t)},setDisabledTab(){return this.tabs.tabs.every(t=>t.disabled)}},computed:{isActive(){for(let t of this.tabs.tabs)if(t.id===this.selectedTab)return!0;return!1}},components:{IbDropdownList:or,IbDropdownItem:jr,IbIcon:Le}},Qs={class:"wrapper-tab-link dropdown-tab"},ec=["tabindex"];function tc(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-dropdown-item"),u=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("div",Qs,[r.createVNode(u,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||i.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[r.createTextVNode(r.toDisplayString(e.tabs.name)+" ",1),r.createVNode(s,{name:"chevron-down"})],10,ec)]),body:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs.tabs,(d,p)=>(r.openBlock(),r.createBlock(l,{key:p,checked:d.id===e.selectedTab,href:i.createHref(d.id),tabindex:d.disabled?-1:0,class:r.normalizeClass([{disabled:d.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>i.selectTab(d.id)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(d.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const $o=_e(Xs,[["render",tc]]),mp="",nc={name:"IbTabs",props:{showTitle:{type:Boolean,default:!0},selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return _o(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:$o,IbIcon:Le},emits:["changeTab"]},rc={class:"tabs"},ic={class:"tabs-list"},oc={key:0,class:"wrapper-tab-link"},ac=["href","tabindex","onClick"],lc={class:"tabs-content",ref:"tabHandler"};function sc(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-tab-dropdown");return r.openBlock(),r.createElementBlock("div",rc,[r.createElementVNode("ul",ic,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.tabs,(u,d)=>(r.openBlock(),r.createElementBlock("li",{class:"tab-item",key:d},[u.name?(r.openBlock(),r.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:u,onSelectTab:i.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("a",{class:r.normalizeClass(["tab-link",{active:a.selectedTab===u.id,disabled:u.disabled}]),href:i.createHref(u.id),tabindex:u.disabled?-1:0,onClick:p=>i.selectTab(u.id),target:"_self"},[u.icon?(r.openBlock(),r.createBlock(s,{key:0,class:"tab-icon",name:u.icon},null,8,["name"])):r.createCommentVNode("",!0),e.showTitle?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.title),1)],64)):r.createCommentVNode("",!0)],10,ac)]))]))),128))]),r.createElementVNode("div",lc,[r.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const cc=_e(nc,[["render",sc],["__scopeId","data-v-04b9451c"]]),dc={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},icon:{type:String,required:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function uc(t,n,e,o,a,i){return r.withDirectives((r.openBlock(),r.createElementBlock("div",null,[r.renderSlot(t.$slots,"default")],512)),[[r.vShow,i.isTabActive]])}const fc=_e(dc,[["render",uc]]),hc={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},pc={TYPE_ASC:"asc",TYPE_DESC:"desc"},wo={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"};class ko{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+pt()}createTooltip(n,e,o){var i;if(!((i=e.text)!=null&&i.length))return;this.generateUID();const a=`
3
+ select, [tabindex]:not([tabindex="-1"])`);o==null||o.focus()}},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Lr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{classes(){const t=["modal"];return this.classList.length&&t.push(this.classList),this.isActive&&t.push("is-active"),t},bodyStyles(){const t={};return this.size===Nt.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Nt.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Nt.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Nt.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Nt.S&&t.push("modal-body-s"),this.size===Nt.M&&t.push("modal-body-m"),this.size===Nt.L&&t.push("modal-body-l"),this.size===Nt.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ut,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Gs={key:1,class:"modal-header"},Ws={key:2,class:"modal-footer"};function Ys(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveDirective("outside");return r.openBlock(),r.createElementBlock(r.Fragment,null,[i.hasTrigger?(r.openBlock(),r.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...d)=>i.onTriggerBlur&&i.onTriggerBlur(...d)),onClick:n[1]||(n[1]=(...d)=>i.open&&i.open(...d))},[r.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(i.classes),ref:"modal"},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(i.bodyClassList),style:r.normalizeStyle(i.bodyStyles)},[e.showCloseButton?(r.openBlock(),r.createBlock(l,{key:0,class:"modal-close-icon",kind:"ghost",onClick:i.close},{default:r.withCtx(()=>[r.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])):r.createCommentVNode("",!0),i.hasHeader?(r.openBlock(),r.createElementBlock("p",Gs,[r.renderSlot(t.$slots,"header",{showModal:i.showModal},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["modal-content",{"without-title":!i.hasHeader}])},[r.renderSlot(t.$slots,"body",{showModal:i.showModal},void 0,!0)],2),i.hasFooter?(r.openBlock(),r.createElementBlock("div",Ws,[r.renderSlot(t.$slots,"footer",{showModal:i.showModal},void 0,!0)])):r.createCommentVNode("",!0)],6)),[[u,i.clickOutside]])],2),[[r.vShow,a.isActive]])]))],64)}const Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-12ec5923"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const hp="",Js={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return _o(t)},selectTab(t){this.selectedTabByDropdown=t,this.$emit("select-tab",t)},setDisabledTab(){return this.tabs.tabs.every(t=>t.disabled)}},computed:{isActive(){for(let t of this.tabs.tabs)if(t.id===this.selectedTab)return!0;return!1}},components:{IbDropdownList:or,IbDropdownItem:jr,IbIcon:Le}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ec(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-dropdown-item"),u=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("div",Xs,[r.createVNode(u,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||i.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[r.createTextVNode(r.toDisplayString(e.tabs.name)+" ",1),r.createVNode(s,{name:"chevron-down"})],10,Qs)]),body:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs.tabs,(d,p)=>(r.openBlock(),r.createBlock(l,{key:p,checked:d.id===e.selectedTab,href:i.createHref(d.id),tabindex:d.disabled?-1:0,class:r.normalizeClass([{disabled:d.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>i.selectTab(d.id)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(d.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const $o=_e(Js,[["render",ec]]),pp="",tc={name:"IbTabs",props:{showTitle:{type:Boolean,default:!0},selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return _o(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:$o,IbIcon:Le},emits:["changeTab"]},nc={class:"tabs"},rc={class:"tabs-list"},ic={key:0,class:"wrapper-tab-link"},oc=["href","tabindex","onClick"],ac={class:"tabs-content",ref:"tabHandler"};function lc(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-tab-dropdown");return r.openBlock(),r.createElementBlock("div",nc,[r.createElementVNode("ul",rc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.tabs,(u,d)=>(r.openBlock(),r.createElementBlock("li",{class:"tab-item",key:d},[u.name?(r.openBlock(),r.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:u,onSelectTab:i.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(r.openBlock(),r.createElementBlock("div",ic,[r.createElementVNode("a",{class:r.normalizeClass(["tab-link",{active:a.selectedTab===u.id,disabled:u.disabled}]),href:i.createHref(u.id),tabindex:u.disabled?-1:0,onClick:p=>i.selectTab(u.id),target:"_self"},[u.icon?(r.openBlock(),r.createBlock(s,{key:0,class:"tab-icon",name:u.icon},null,8,["name"])):r.createCommentVNode("",!0),e.showTitle?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.title),1)],64)):r.createCommentVNode("",!0)],10,oc)]))]))),128))]),r.createElementVNode("div",ac,[r.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sc=_e(tc,[["render",lc],["__scopeId","data-v-04b9451c"]]),cc={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},icon:{type:String,required:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function dc(t,n,e,o,a,i){return r.withDirectives((r.openBlock(),r.createElementBlock("div",null,[r.renderSlot(t.$slots,"default")],512)),[[r.vShow,i.isTabActive]])}const uc=_e(cc,[["render",dc]]),fc={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hc={TYPE_ASC:"asc",TYPE_DESC:"desc"},wo={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"};class ko{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+pt()}createTooltip(n,e,o){var i;if(!((i=e.text)!=null&&i.length))return;this.generateUID();const a=`
4
4
  position: absolute;
5
5
  top: 0px;
6
6
  left: 0px;
@@ -21,12 +21,12 @@
21
21
  top: ${a-p-u/2+f+12}px!important`;break;case"rightCenter":c=c+`left: ${s+5}px!important;
22
22
  top: ${a+f-p/2-u/2}px!important;`;break;case"rightBottom":c=c+`left: ${s+5}px!important;
23
23
  top: ${a+f-u/2-12}px!important`;break;default:c=c+`left: ${i+l/2-d/2}px!important;
24
- top: ${o-p+f-5}px!important`;break}return c}getClassList(n){return n?wo[n]:wo.topCenter}}const Ht=new ko,mc=(t,n)=>{var a;Ht.getTooltipContainer()&&Ht.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Ht.createTooltip(t,o,e)},gc=(t,n)=>{const e=Ht.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Ht.getTooltipContainer();if(t.type==="blur"){n.contains(t.relatedTarget)||Ht.destroyTooltip(n);return}const a=n!==t.target&&!n.contains(t.target),i=o!==t.target&&!(o!=null&&o.contains(t.target));a&&i&&Ht.destroyTooltip(n)},Co=(t,n)=>{t.__tooltip_create=()=>mc(t,n),t.__tooltip_destroy=e=>gc(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy),t.addEventListener("focus",t.__tooltip_create),t.addEventListener("blur",t.__tooltip_destroy,!0)},Oo=t=>{Ht.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy),t.removeEventListener("focus",t.__tooltip_create),t.removeEventListener("blur",t.__tooltip_destroy,!0)},Wt={mounted(t,n){Co(t,n)},updated(t,n){Oo(t),Co(t,n)},beforeUnmount(t){Oo(t)}},gp="",yc={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:pc,sortingTypesView:hc,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:Wt},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:mo}},bc={class:"sorting-wrapper"},vc=["name"],_c=["aria-label"];function $c(t,n,e,o,a,i){var p;const s=r.resolveComponent("ib-toggle-tip"),l=r.resolveComponent("ib-icon-button"),u=r.resolveComponent("ib-icon"),d=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",bc,[e.view===a.sortingTypesView.TABLE_VIEW?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&i.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||i.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[r.createTextVNode(r.toDisplayString(e.title),1)],2)),[[d,i.sortingTooltipContent,i.sortingTooltipPosition]]),i.hasToggleTip?(r.openBlock(),r.createBlock(s,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>a.isOpenToggleTip=!1)},{buttons:r.withCtx(()=>[r.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:r.withCtx(()=>[r.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):r.createCommentVNode("",!0),e.hideSortingButton?r.createCommentVNode("",!0):r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,kind:"white",size:"s",onClick:i.clickHandler},{default:r.withCtx(()=>[r.createElementVNode("ion-icon",{name:i.iconType},null,8,vc)]),_:1},8,["onClick"])),[[d,i.tooltipIconText,e.tooltipIconPosition]])],2)):r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...f)=>i.clickHandler&&i.clickHandler(...f)),"aria-label":e.sort},[r.createTextVNode(r.toDisplayString(e.title)+" ",1),i.iconType?(r.openBlock(),r.createBlock(u,{key:0,name:i.iconType},null,8,["name"])):r.createCommentVNode("",!0)],10,_c)),[[d,e.tooltipText,e.tooltipPosition]])])}const wc=_e(yc,[["render",$c],["__scopeId","data-v-0c1b5f2e"]]),yp="",kc={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:jr,IbDropdownList:or,IbTooltip:ln}},Cc={"aria-label":"breadcrumb"},Oc={class:"breadcrumb"},Ec=["href"],Sc={key:1},xc=["href"];function Tc(t,n,e,o,a,i){const s=r.resolveComponent("router-link"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-tooltip"),d=r.resolveComponent("ib-icon-button"),p=r.resolveComponent("ib-dropdown-item"),f=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("nav",Cc,[r.createElementVNode("ul",Oc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(c,h)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(["breadcrumb-item",h===i.last?"active":""]),"aria-current":"page",key:h},[h!==i.last&&h>e.items.length-4||h===0?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[c.url?(r.openBlock(),r.createElementBlock("a",{key:0,class:"ib-link",href:c.url},r.toDisplayString(c.title),9,Ec)):(r.openBlock(),r.createBlock(s,{key:1,class:"ib-link",to:c.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.title),1)]),_:2},1032,["to"]))],64)):r.createCommentVNode("",!0),h===i.last?(r.openBlock(),r.createElementBlock("p",Sc,r.toDisplayString(c.title),1)):r.createCommentVNode("",!0),i.initContextMenu&&h===e.items.length-4?(r.openBlock(),r.createBlock(f,{key:2,horizontal:"center"},{trigger:r.withCtx(()=>[r.createVNode(d,{kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(l,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(r.openBlock(),r.createBlock(u,{key:0,text:e.tooltipTextContext},null,8,["text"])):r.createCommentVNode("",!0)]),_:1})]),body:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.setItemsContextMenu,(v,m)=>(r.openBlock(),r.createBlock(p,{key:m},{default:r.withCtx(()=>[r.createElementVNode("a",{class:"context-breadcrums",href:v.url},r.toDisplayString(v.title),9,xc)]),_:2},1024))),128))]),_:2},1024)):r.createCommentVNode("",!0),h!==i.last&&h>e.items.length-5||h===0?(r.openBlock(),r.createBlock(l,{key:3,name:"chevron-forward-outline"})):r.createCommentVNode("",!0)],2))),128))])])}const Nc=_e(kc,[["render",Tc],["__scopeId","data-v-3563a1d2"]]),bp="",Ac={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:[String,Object],default:""},tooltipPosition:{type:String},disabled:{type:Boolean,default:!1}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.idDisabled=t})},data(){return{idDisabled:this.disabled}},watch:{disabled(t){this.idDisabled=t}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.idDisabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le},directives:{Tooltip:Wt}},Dc=["for"],Pc={key:0,class:"required"};function Ic(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(i.classes),for:e.for},[e.required?(r.openBlock(),r.createElementBlock("span",Pc,"* ")):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length||Object.keys(e.infoText).length?r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:r.withCtx(()=>[r.createVNode(s,{name:"information-circle-outline"})]),_:1})),[[u,e.infoText,e.tooltipPosition]]):r.createCommentVNode("",!0)],10,Dc)}const kn=_e(Ac,[["render",Ic],["__scopeId","data-v-20191b6d"]]),Vr={text:"text",password:"password",email:"email",number:"number"},vp="",Bc={name:"IbInput",props:{type:{type:String,default:Vr.text,validator:t=>Object.keys(Vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return pt()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:rr.bottom},settingsHorizontalPosition:{type:String,default:wn.right},readonly:{type:Boolean,default:!1},autocomplete:{type:String},isSuccess:{type:Boolean,default:!1},hideNumberActions:{type:Boolean,default:!1},decrementButtonMessage:{type:String,default:"Decrement"},incrementButtonMessage:{type:String,default:"Increment"},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:1/0}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},decrement(){this.actualValue>this.min&&(this.actualValue=+this.actualValue-this.step),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},increment(){this.actualValue<this.max&&(this.actualValue=+this.actualValue+this.step),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},hasValue(){var t;return(t=this.actualValue)==null?void 0:t.toString().length},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Pr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:Ft,IbIconButton:ut,IbIcon:Le,IbDropdown:ir},directives:{Tooltip:Wt},inheritAttrs:!1},Mc=["aria-invalid","readonly","disabled","id","autocomplete","min","max","step"],Lc={key:3,class:"number-button-group"},Rc={class:"divider"},jc={class:"settings-wrapper"};function Vc(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-icon-button"),d=r.resolveComponent("ib-dropdown"),p=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",null,[e.errorMessage?(r.openBlock(),r.createBlock(s,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ib-input-wrapper",{"has-settings":i.hasSettings,success:e.isSuccess,"numbers-type":e.type==="number"&&!e.hideNumberActions}])},[e.showIcon?(r.openBlock(),r.createBlock(l,{key:0,class:"icon-search",name:"search-outline"})):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("input",r.mergeProps(i.attrs,{"onUpdate:modelValue":n[0]||(n[0]=f=>a.actualValue=f),ref:"field","aria-invalid":!!i.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,autocomplete:e.autocomplete,class:i.classes,min:e.min,max:e.max,step:e.step,onInput:n[1]||(n[1]=f=>i.onInput(f)),onBlur:n[2]||(n[2]=f=>i.onBlur(f)),onFocus:n[3]||(n[3]=f=>i.onFocus(f))}),null,16,Mc),[[r.vModelDynamic,a.actualValue,void 0,{trim:!0}]]),e.type!=="password"&&e.showClearButton?r.withDirectives((r.openBlock(),r.createBlock(u,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:i.clearInput,onKeypress:r.withKeys(i.clearInput,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[r.vShow,i.hasValue]]):r.createCommentVNode("",!0),e.isSuccess?(r.openBlock(),r.createBlock(l,{key:2,class:"succes-checkmark",name:"checkmark-circle"})):r.createCommentVNode("",!0),e.type==="number"&&!e.hideNumberActions?(r.openBlock(),r.createElementBlock("div",Lc,[r.withDirectives(r.createElementVNode("div",Rc,null,512),[[r.vShow,i.hasValue]]),r.withDirectives((r.openBlock(),r.createBlock(u,{kind:"ghost",class:"button-decrement",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Decrement value",onBlur:i.onBlur,onClick:i.decrement,onKeypress:r.withKeys(i.decrement,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"remove-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[p,e.decrementButtonMessage]]),r.withDirectives((r.openBlock(),r.createBlock(u,{kind:"ghost",class:"button-increment",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Increment value",onBlur:i.onBlur,onClick:i.increment,onKeypress:r.withKeys(i.increment,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"add-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[p,e.incrementButtonMessage]])])):r.createCommentVNode("",!0),e.type==="password"?r.withDirectives((r.openBlock(),r.createBlock(u,{key:4,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:r.withModifiers(i.toggleShowPassword,["prevent"])},{default:r.withCtx(()=>[r.createVNode(l,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[r.vShow,i.hasValue]]):r.createCommentVNode("",!0),i.hasSettings?(r.openBlock(),r.createBlock(d,{key:5,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:r.withCtx(()=>[r.createVNode(u,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(l,{name:"options"})]),_:1},8,["help-text"])]),body:r.withCtx(()=>[r.createElementVNode("div",jc,[r.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):r.createCommentVNode("",!0)],2)])}const qr=_e(Bc,[["render",Vc],["__scopeId","data-v-3b442fb6"]]),_p="",qc={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return pt()}},value:{type:[String,Number]},modelValue:{type:[Boolean,String]},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t==="0"?!1:!!t}},data(){return{checked:this.modelValue?this.modelValue==="0"?!1:!!this.modelValue:this.isChecked}},methods:{onChange(t){this.disabled||this.readonly||(this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Pr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},Fc=["for","tabindex","aria-checked"],Hc=["name","id","value","disabled","required"],zc=["name","disabled","required"],Uc={class:"ib-checkbox-body"},Kc={key:0,class:"required"},Gc={class:"ib-checkbox-input"},Wc={key:1,class:"ib-checkbox-label"},Yc={key:0,class:"required"};function Zc(t,n,e,o,a,i){var l;const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class])},[r.createElementVNode("label",r.mergeProps(i.attrs,{role:"checkbox",for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,"aria-checked":!!a.checked,onClick:n[2]||(n[2]=r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent","stop"])),onKeypress:n[3]||(n[3]=r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]))}),[r.withDirectives(r.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value??1,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=u=>a.checked=u),onClick:n[1]||(n[1]=(...u)=>i.onChange&&i.onChange(...u))},null,8,Hc),[[r.vModelCheckbox,a.checked]]),!e.value&&!a.checked?(r.openBlock(),r.createElementBlock("input",{key:0,value:"0",type:"hidden",name:e.name,disabled:e.disabled,required:e.required},null,8,zc)):r.createCommentVNode("",!0),r.createElementVNode("div",Uc,[e.labelPosition==="left"&&e.label.length?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(r.openBlock(),r.createElementBlock("span",Kc,"*")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.label),1)],2)):r.createCommentVNode("",!0),r.createElementVNode("span",Gc,[r.withDirectives(r.createVNode(s,{name:"checkmark-sharp"},null,512),[[r.vShow,a.checked&&!i.indeterminate]]),r.withDirectives(r.createVNode(s,{class:r.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[r.vShow,i.indeterminate]])]),e.labelPosition==="right"&&((l=e.label)!=null&&l.length)?(r.openBlock(),r.createElementBlock("span",Wc,[e.required?(r.openBlock(),r.createElementBlock("span",Yc,"*")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.label),1)])):r.createCommentVNode("",!0)])],16,Fc)],2)}const Fr=_e(qc,[["render",Zc],["__scopeId","data-v-83ac97df"]]),$p="",Jc={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>pt()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:ln}},Xc=["aria-checked","tabindex"],Qc={class:"toggle-wrapper",ref:"wrapper"},ed={class:"toggle",ref:"toggle"},td=["name","checked","id","disabled"],nd=r.createElementVNode("span",{class:"toggle-slider round"},null,-1),rd={key:0,class:"toggle-label"};function id(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-tooltip");return r.openBlock(),r.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:r.normalizeClass(i.classes),onKeypress:[n[2]||(n[2]=r.withKeys(r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]),["space"])),n[3]||(n[3]=r.withKeys(r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]),["enter"]))]},[r.createElementVNode("div",Qc,[r.createElementVNode("div",ed,[r.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...u)=>i.onChange&&i.onChange(...u)),onInput:n[1]||(n[1]=r.withModifiers(()=>{},["stop"]))},null,40,td),nd,r.createVNode(s,{class:"checked-icon",name:"checkmark"}),r.createVNode(s,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(r.openBlock(),r.createElementBlock("span",rd,r.toDisplayString(e.label),1)):r.createCommentVNode("",!0),e.helpMessage.length?(r.openBlock(),r.createBlock(l,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):r.createCommentVNode("",!0)],42,Xc)}const Eo=_e(Jc,[["render",id]]);function So(t){return t.scrollHeight>t.clientHeight}const wp="",od={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabeticStyle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent(),this.option.showTooltipByDefault&&(this.showTooltip=!0)},updated(){this.$nextTick(()=>{this.option.showTooltipByDefault?this.showTooltip=!0:So(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1,generateUID:pt}},methods:{onKeydown(t){t.keyCode===go&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ys&&(this.option.isChildrenVisible=!0),t.keyCode===gs&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){if(!this.isMultiple&&this.hasVisibleChildren){this.toggleChildrenVisibility();return}this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren){if(this.childrenSelectedCount===this.countOfAllChildren)return!0;if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Eo:Fr},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:Rr,IbIconButton:ut},directives:{Tooltip:Wt}},ad=["aria-selected","aria-label","id"],ld={key:0,class:"bookmarkable-option-content"},sd={class:"option-label"},cd={key:1,class:"option-label"},dd=["innerHTML"],ud=["innerHTML"],fd={key:2,class:"option-label"};function hd(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveComponent("select-option"),d=r.resolveComponent("list"),p=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("li",null,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tree-select-option",{"tree-select-option-checked":i.isChecked(e.option),"tree-select-option-margin":i.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"has-icon":e.option.icon,"tree-select-option-toggle":this.isToggle&&this.isMultiple,"alphabetic-option":e.alphabeticStyle}]),tabindex:"0",role:"option","aria-selected":i.isChecked(e.option),"aria-label":e.option.title,id:"option-"+i.id,onKeydown:n[3]||(n[3]=r.withModifiers((...f)=>i.onKeydown&&i.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${i.id}`))},[r.withDirectives(r.createVNode(l,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:i.toggleChildrenVisibility},{default:r.withCtx(()=>[r.createVNode(s,{name:i.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[r.vShow,i.hasVisibleChildren]]),r.createElementVNode("div",{onClick:n[1]||(n[1]=r.withModifiers((...f)=>i.onChange&&i.onChange(...f),["prevent"])),class:r.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":i.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:i.actualName,value:e.option.id,id:"input"+i.id+a.generateUID(),"is-checked":i.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:i.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[r.vShow,e.showInput]]),e.isBookmarkable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[i.hasChildren?(r.openBlock(),r.createElementBlock("span",cd,r.toDisplayString(e.option.title),1)):(r.openBlock(),r.createElementBlock("div",ld,[r.createElementVNode("span",sd,r.toDisplayString(e.option.title),1),r.withDirectives((r.openBlock(),r.createBlock(l,{onClick:n[0]||(n[0]=r.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"])),kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(s,{name:e.isBookmarked?"star":"star-outline"},null,8,["name"])]),_:1})),[[p,t.lang(e.isBookmarked?"unpin":"pin_to_top","select")]])]))],2)):e.htmlTitle?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[i.hasChildren?(r.openBlock(),r.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,ud)):(r.openBlock(),r.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,dd))],64)):(r.openBlock(),r.createElementBlock("span",fd,[e.option.icon?(r.openBlock(),r.createBlock(s,{key:0,name:e.option.icon},null,8,["name"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.option.title),1)]))],2),i.hasChildren?r.withDirectives((r.openBlock(),r.createBlock(d,{key:0},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.option.children,f=>r.withDirectives((r.openBlock(),r.createBlock(u,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:i.checkChildren,onToggleBookmark:n[2]||(n[2]=c=>t.$emit("toggle-bookmark",c)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[r.vShow,f.visible]])),128))]),_:1},512)),[[r.vShow,i.hasVisibleChildren&&e.option.isChildrenVisible]]):r.createCommentVNode("",!0)],42,ad)),[[p,a.showTooltip?e.option.isDisabled?e.option.disableTooltip:e.option.title:""]])])}const pd=_e(od,[["render",hd]]);var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xo={exports:{}};/*!***************************************************
24
+ top: ${o-p+f-5}px!important`;break}return c}getClassList(n){return n?wo[n]:wo.topCenter}}const Ht=new ko,pc=(t,n)=>{var a;Ht.getTooltipContainer()&&Ht.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Ht.createTooltip(t,o,e)},mc=(t,n)=>{const e=Ht.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Ht.getTooltipContainer();if(t.type==="blur"){n.contains(t.relatedTarget)||Ht.destroyTooltip(n);return}const a=n!==t.target&&!n.contains(t.target),i=o!==t.target&&!(o!=null&&o.contains(t.target));a&&i&&Ht.destroyTooltip(n)},Co=(t,n)=>{t.__tooltip_create=()=>pc(t,n),t.__tooltip_destroy=e=>mc(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy),t.addEventListener("focus",t.__tooltip_create),t.addEventListener("blur",t.__tooltip_destroy,!0)},Oo=t=>{Ht.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy),t.removeEventListener("focus",t.__tooltip_create),t.removeEventListener("blur",t.__tooltip_destroy,!0)},Wt={mounted(t,n){Co(t,n)},updated(t,n){Oo(t),Co(t,n)},beforeUnmount(t){Oo(t)}},mp="",gc={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:hc,sortingTypesView:fc,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:Wt},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:mo}},yc={class:"sorting-wrapper"},bc=["name"],vc=["aria-label"];function _c(t,n,e,o,a,i){var p;const s=r.resolveComponent("ib-toggle-tip"),l=r.resolveComponent("ib-icon-button"),u=r.resolveComponent("ib-icon"),d=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",yc,[e.view===a.sortingTypesView.TABLE_VIEW?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&i.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||i.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[r.createTextVNode(r.toDisplayString(e.title),1)],2)),[[d,i.sortingTooltipContent,i.sortingTooltipPosition]]),i.hasToggleTip?(r.openBlock(),r.createBlock(s,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>a.isOpenToggleTip=!1)},{buttons:r.withCtx(()=>[r.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:r.withCtx(()=>[r.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):r.createCommentVNode("",!0),e.hideSortingButton?r.createCommentVNode("",!0):r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,kind:"white",size:"s",onClick:i.clickHandler},{default:r.withCtx(()=>[r.createElementVNode("ion-icon",{name:i.iconType},null,8,bc)]),_:1},8,["onClick"])),[[d,i.tooltipIconText,e.tooltipIconPosition]])],2)):r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...f)=>i.clickHandler&&i.clickHandler(...f)),"aria-label":e.sort},[r.createTextVNode(r.toDisplayString(e.title)+" ",1),i.iconType?(r.openBlock(),r.createBlock(u,{key:0,name:i.iconType},null,8,["name"])):r.createCommentVNode("",!0)],10,vc)),[[d,e.tooltipText,e.tooltipPosition]])])}const $c=_e(gc,[["render",_c],["__scopeId","data-v-0c1b5f2e"]]),gp="",wc={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:jr,IbDropdownList:or,IbTooltip:ln}},kc={"aria-label":"breadcrumb"},Cc={class:"breadcrumb"},Oc=["href"],Ec={key:1},Sc=["href"];function xc(t,n,e,o,a,i){const s=r.resolveComponent("router-link"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-tooltip"),d=r.resolveComponent("ib-icon-button"),p=r.resolveComponent("ib-dropdown-item"),f=r.resolveComponent("ib-dropdown-list");return r.openBlock(),r.createElementBlock("nav",kc,[r.createElementVNode("ul",Cc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(c,h)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(["breadcrumb-item",h===i.last?"active":""]),"aria-current":"page",key:h},[h!==i.last&&h>e.items.length-4||h===0?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[c.url?(r.openBlock(),r.createElementBlock("a",{key:0,class:"ib-link",href:c.url},r.toDisplayString(c.title),9,Oc)):(r.openBlock(),r.createBlock(s,{key:1,class:"ib-link",to:c.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.title),1)]),_:2},1032,["to"]))],64)):r.createCommentVNode("",!0),h===i.last?(r.openBlock(),r.createElementBlock("p",Ec,r.toDisplayString(c.title),1)):r.createCommentVNode("",!0),i.initContextMenu&&h===e.items.length-4?(r.openBlock(),r.createBlock(f,{key:2,horizontal:"center"},{trigger:r.withCtx(()=>[r.createVNode(d,{kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(l,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(r.openBlock(),r.createBlock(u,{key:0,text:e.tooltipTextContext},null,8,["text"])):r.createCommentVNode("",!0)]),_:1})]),body:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.setItemsContextMenu,(v,m)=>(r.openBlock(),r.createBlock(p,{key:m},{default:r.withCtx(()=>[r.createElementVNode("a",{class:"context-breadcrums",href:v.url},r.toDisplayString(v.title),9,Sc)]),_:2},1024))),128))]),_:2},1024)):r.createCommentVNode("",!0),h!==i.last&&h>e.items.length-5||h===0?(r.openBlock(),r.createBlock(l,{key:3,name:"chevron-forward-outline"})):r.createCommentVNode("",!0)],2))),128))])])}const Tc=_e(wc,[["render",xc],["__scopeId","data-v-3563a1d2"]]),yp="",Nc={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:[String,Object],default:""},tooltipPosition:{type:String},disabled:{type:Boolean,default:!1}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.idDisabled=t})},data(){return{idDisabled:this.disabled}},watch:{disabled(t){this.idDisabled=t}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.idDisabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le},directives:{Tooltip:Wt}},Ac=["for"],Dc={key:0,class:"required"};function Pc(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(i.classes),for:e.for},[e.required?(r.openBlock(),r.createElementBlock("span",Dc,"* ")):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length||Object.keys(e.infoText).length?r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:r.withCtx(()=>[r.createVNode(s,{name:"information-circle-outline"})]),_:1})),[[u,e.infoText,e.tooltipPosition]]):r.createCommentVNode("",!0)],10,Ac)}const kn=_e(Nc,[["render",Pc],["__scopeId","data-v-20191b6d"]]),Vr={text:"text",password:"password",email:"email",number:"number"},bp="",Ic={name:"IbInput",props:{type:{type:String,default:Vr.text,validator:t=>Object.keys(Vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return pt()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:rr.bottom},settingsHorizontalPosition:{type:String,default:wn.right},readonly:{type:Boolean,default:!1},autocomplete:{type:String},isSuccess:{type:Boolean,default:!1},hideNumberActions:{type:Boolean,default:!1},decrementButtonMessage:{type:String,default:"Decrement"},incrementButtonMessage:{type:String,default:"Increment"},step:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:1/0}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},decrement(){this.actualValue>this.min&&(this.actualValue=+this.actualValue-this.step),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},increment(){this.actualValue<this.max&&(this.actualValue=+this.actualValue+this.step),this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("blur",this.actualValue)},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},hasValue(){var t;return(t=this.actualValue)==null?void 0:t.toString().length},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Pr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:Ft,IbIconButton:ut,IbIcon:Le,IbDropdown:ir},directives:{Tooltip:Wt},inheritAttrs:!1},Bc=["aria-invalid","readonly","disabled","id","autocomplete","min","max","step"],Mc={key:3,class:"number-button-group"},Lc={class:"divider"},Rc={class:"settings-wrapper"};function jc(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-icon-button"),d=r.resolveComponent("ib-dropdown"),p=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",null,[e.errorMessage?(r.openBlock(),r.createBlock(s,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ib-input-wrapper",{"has-settings":i.hasSettings,success:e.isSuccess,"numbers-type":e.type==="number"&&!e.hideNumberActions}])},[e.showIcon?(r.openBlock(),r.createBlock(l,{key:0,class:"icon-search",name:"search-outline"})):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("input",r.mergeProps(i.attrs,{"onUpdate:modelValue":n[0]||(n[0]=f=>a.actualValue=f),ref:"field","aria-invalid":!!i.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,autocomplete:e.autocomplete,class:i.classes,min:e.min,max:e.max,step:e.step,onInput:n[1]||(n[1]=f=>i.onInput(f)),onBlur:n[2]||(n[2]=f=>i.onBlur(f)),onFocus:n[3]||(n[3]=f=>i.onFocus(f))}),null,16,Bc),[[r.vModelDynamic,a.actualValue,void 0,{trim:!0}]]),e.type!=="password"&&e.showClearButton?r.withDirectives((r.openBlock(),r.createBlock(u,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:i.clearInput,onKeypress:r.withKeys(i.clearInput,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[r.vShow,i.hasValue]]):r.createCommentVNode("",!0),e.isSuccess?(r.openBlock(),r.createBlock(l,{key:2,class:"succes-checkmark",name:"checkmark-circle"})):r.createCommentVNode("",!0),e.type==="number"&&!e.hideNumberActions?(r.openBlock(),r.createElementBlock("div",Mc,[r.withDirectives(r.createElementVNode("div",Lc,null,512),[[r.vShow,i.hasValue]]),r.withDirectives((r.openBlock(),r.createBlock(u,{kind:"ghost",class:"button-decrement",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Decrement value",onBlur:i.onBlur,onClick:i.decrement,onKeypress:r.withKeys(i.decrement,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"remove-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[p,e.decrementButtonMessage]]),r.withDirectives((r.openBlock(),r.createBlock(u,{kind:"ghost",class:"button-increment",disabled:e.readonly||e.disabled,"prevent-default":"",type:"button","aria-label":"Increment value",onBlur:i.onBlur,onClick:i.increment,onKeypress:r.withKeys(i.increment,["enter"])},{default:r.withCtx(()=>[r.createVNode(l,{name:"add-outline"})]),_:1},8,["disabled","onBlur","onClick","onKeypress"])),[[p,e.incrementButtonMessage]])])):r.createCommentVNode("",!0),e.type==="password"?r.withDirectives((r.openBlock(),r.createBlock(u,{key:4,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:r.withModifiers(i.toggleShowPassword,["prevent"])},{default:r.withCtx(()=>[r.createVNode(l,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[r.vShow,i.hasValue]]):r.createCommentVNode("",!0),i.hasSettings?(r.openBlock(),r.createBlock(d,{key:5,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:r.withCtx(()=>[r.createVNode(u,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(l,{name:"options"})]),_:1},8,["help-text"])]),body:r.withCtx(()=>[r.createElementVNode("div",Rc,[r.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):r.createCommentVNode("",!0)],2)])}const qr=_e(Ic,[["render",jc],["__scopeId","data-v-3b442fb6"]]),vp="",Vc={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return pt()}},value:{type:[String,Number]},modelValue:{type:[Boolean,String]},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t==="0"?!1:!!t}},data(){return{checked:this.modelValue?this.modelValue==="0"?!1:!!this.modelValue:this.isChecked}},methods:{onChange(t){this.disabled||this.readonly||(this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Pr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},qc=["for","tabindex","aria-checked"],Fc=["name","id","value","disabled","required"],Hc=["name","disabled","required"],zc={class:"ib-checkbox-body"},Uc={key:0,class:"required"},Kc={class:"ib-checkbox-input"},Gc={key:1,class:"ib-checkbox-label"},Wc={key:0,class:"required"};function Yc(t,n,e,o,a,i){var l;const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class])},[r.createElementVNode("label",r.mergeProps(i.attrs,{role:"checkbox",for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,"aria-checked":!!a.checked,onClick:n[2]||(n[2]=r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent","stop"])),onKeypress:n[3]||(n[3]=r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]))}),[r.withDirectives(r.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value??1,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=u=>a.checked=u),onClick:n[1]||(n[1]=(...u)=>i.onChange&&i.onChange(...u))},null,8,Fc),[[r.vModelCheckbox,a.checked]]),!e.value&&!a.checked?(r.openBlock(),r.createElementBlock("input",{key:0,value:"0",type:"hidden",name:e.name,disabled:e.disabled,required:e.required},null,8,Hc)):r.createCommentVNode("",!0),r.createElementVNode("div",zc,[e.labelPosition==="left"&&e.label.length?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(r.openBlock(),r.createElementBlock("span",Uc,"*")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.label),1)],2)):r.createCommentVNode("",!0),r.createElementVNode("span",Kc,[r.withDirectives(r.createVNode(s,{name:"checkmark-sharp"},null,512),[[r.vShow,a.checked&&!i.indeterminate]]),r.withDirectives(r.createVNode(s,{class:r.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[r.vShow,i.indeterminate]])]),e.labelPosition==="right"&&((l=e.label)!=null&&l.length)?(r.openBlock(),r.createElementBlock("span",Gc,[e.required?(r.openBlock(),r.createElementBlock("span",Wc,"*")):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.label),1)])):r.createCommentVNode("",!0)])],16,qc)],2)}const Fr=_e(Vc,[["render",Yc],["__scopeId","data-v-83ac97df"]]),_p="",Zc={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>pt()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:ln}},Jc=["aria-checked","tabindex"],Xc={class:"toggle-wrapper",ref:"wrapper"},Qc={class:"toggle",ref:"toggle"},ed=["name","checked","id","disabled"],td=r.createElementVNode("span",{class:"toggle-slider round"},null,-1),nd={key:0,class:"toggle-label"};function rd(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-tooltip");return r.openBlock(),r.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:r.normalizeClass(i.classes),onKeypress:[n[2]||(n[2]=r.withKeys(r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]),["space"])),n[3]||(n[3]=r.withKeys(r.withModifiers((...u)=>i.onChange&&i.onChange(...u),["prevent"]),["enter"]))]},[r.createElementVNode("div",Xc,[r.createElementVNode("div",Qc,[r.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...u)=>i.onChange&&i.onChange(...u)),onInput:n[1]||(n[1]=r.withModifiers(()=>{},["stop"]))},null,40,ed),td,r.createVNode(s,{class:"checked-icon",name:"checkmark"}),r.createVNode(s,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(r.openBlock(),r.createElementBlock("span",nd,r.toDisplayString(e.label),1)):r.createCommentVNode("",!0),e.helpMessage.length?(r.openBlock(),r.createBlock(l,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):r.createCommentVNode("",!0)],42,Jc)}const Eo=_e(Zc,[["render",rd]]);function So(t){return t.scrollHeight>t.clientHeight}const $p="",id={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabeticStyle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent(),this.option.showTooltipByDefault&&(this.showTooltip=!0)},updated(){this.$nextTick(()=>{this.option.showTooltipByDefault?this.showTooltip=!0:So(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1,generateUID:pt}},methods:{onKeydown(t){t.keyCode===go&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ys&&(this.option.isChildrenVisible=!0),t.keyCode===gs&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){if(!this.isMultiple&&this.hasVisibleChildren){this.toggleChildrenVisibility();return}this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren){if(this.childrenSelectedCount===this.countOfAllChildren)return!0;if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Eo:Fr},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:Rr,IbIconButton:ut},directives:{Tooltip:Wt}},od=["aria-selected","aria-label","id"],ad={key:0,class:"bookmarkable-option-content"},ld={class:"option-label"},sd={key:1,class:"option-label"},cd=["innerHTML"],dd=["innerHTML"],ud={key:2,class:"option-label"};function fd(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon"),l=r.resolveComponent("ib-icon-button"),u=r.resolveComponent("select-option"),d=r.resolveComponent("list"),p=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("li",null,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tree-select-option",{"tree-select-option-checked":i.isChecked(e.option),"tree-select-option-margin":i.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"has-icon":e.option.icon,"tree-select-option-toggle":this.isToggle&&this.isMultiple,"alphabetic-option":e.alphabeticStyle}]),tabindex:"0",role:"option","aria-selected":i.isChecked(e.option),"aria-label":e.option.title,id:"option-"+i.id,onKeydown:n[3]||(n[3]=r.withModifiers((...f)=>i.onKeydown&&i.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${i.id}`))},[r.withDirectives(r.createVNode(l,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:i.toggleChildrenVisibility},{default:r.withCtx(()=>[r.createVNode(s,{name:i.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[r.vShow,i.hasVisibleChildren]]),r.createElementVNode("div",{onClick:n[1]||(n[1]=r.withModifiers((...f)=>i.onChange&&i.onChange(...f),["prevent"])),class:r.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":i.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:i.actualName,value:e.option.id,id:"input"+i.id+a.generateUID(),"is-checked":i.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:i.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[r.vShow,e.showInput]]),e.isBookmarkable?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[i.hasChildren?(r.openBlock(),r.createElementBlock("span",sd,r.toDisplayString(e.option.title),1)):(r.openBlock(),r.createElementBlock("div",ad,[r.createElementVNode("span",ld,r.toDisplayString(e.option.title),1),r.withDirectives((r.openBlock(),r.createBlock(l,{onClick:n[0]||(n[0]=r.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"])),kind:"ghost"},{default:r.withCtx(()=>[r.createVNode(s,{name:e.isBookmarked?"star":"star-outline"},null,8,["name"])]),_:1})),[[p,t.lang(e.isBookmarked?"unpin":"pin_to_top","select")]])]))],2)):e.htmlTitle?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[i.hasChildren?(r.openBlock(),r.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,dd)):(r.openBlock(),r.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,cd))],64)):(r.openBlock(),r.createElementBlock("span",ud,[e.option.icon?(r.openBlock(),r.createBlock(s,{key:0,name:e.option.icon},null,8,["name"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(e.option.title),1)]))],2),i.hasChildren?r.withDirectives((r.openBlock(),r.createBlock(d,{key:0},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.option.children,f=>r.withDirectives((r.openBlock(),r.createBlock(u,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:i.checkChildren,onToggleBookmark:n[2]||(n[2]=c=>t.$emit("toggle-bookmark",c)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[r.vShow,f.visible]])),128))]),_:1},512)),[[r.vShow,i.hasVisibleChildren&&e.option.isChildrenVisible]]):r.createCommentVNode("",!0)],42,od)),[[p,a.showTooltip?e.option.isDisabled?e.option.disableTooltip:e.option.title:""]])])}const hd=_e(id,[["render",fd]]);var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xo={exports:{}};/*!***************************************************
25
25
  * mark.js v8.11.1
26
26
  * https://markjs.io/
27
27
  * Copyright (c) 2014–2018, Julian Kühnel
28
28
  * Released under the MIT license https://git.io/vwTVl
29
- *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(je,function(){class e{constructor(i,s=!0,l=[],u=5e3){this.ctx=i,this.iframes=s,this.exclude=l,this.iframesTimeout=u}static matches(i,s){const l=typeof s=="string"?[s]:s,u=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector;if(u){let d=!1;return l.every(p=>!u.call(i,p)||(d=!0,!1)),d}return!1}getContexts(){let i=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(s=>{const l=i.filter(u=>u.contains(s)).length>0;i.indexOf(s)!==-1||l||i.push(s)}),i}getIframeContents(i,s,l=()=>{}){let u;try{const d=i.contentWindow;if(u=d.document,!d||!u)throw new Error("iframe inaccessible")}catch{l()}u&&s(u)}isIframeBlank(i){const s="about:blank",l=i.getAttribute("src").trim();return i.contentWindow.location.href===s&&l!==s&&l}observeIframeLoad(i,s,l){let u=!1,d=null;const p=()=>{if(!u){u=!0,clearTimeout(d);try{this.isIframeBlank(i)||(i.removeEventListener("load",p),this.getIframeContents(i,s,l))}catch{l()}}};i.addEventListener("load",p),d=setTimeout(p,this.iframesTimeout)}onIframeReady(i,s,l){try{i.contentWindow.document.readyState==="complete"?this.isIframeBlank(i)?this.observeIframeLoad(i,s,l):this.getIframeContents(i,s,l):this.observeIframeLoad(i,s,l)}catch{l()}}waitForIframes(i,s){let l=0;this.forEachIframe(i,()=>!0,u=>{l++,this.waitForIframes(u.querySelector("html"),()=>{--l||s()})},u=>{u||s()})}forEachIframe(i,s,l,u=()=>{}){let d=i.querySelectorAll("iframe"),p=d.length,f=0;d=Array.prototype.slice.call(d);const c=()=>{--p<=0&&u(f)};p||c(),d.forEach(h=>{e.matches(h,this.exclude)?c():this.onIframeReady(h,v=>{s(h)&&(f++,l(v)),c()},c)})}createIterator(i,s,l){return document.createNodeIterator(i,s,l,!1)}createInstanceOnIframe(i){return new e(i.querySelector("html"),this.iframes)}compareNodeIframe(i,s,l){const u=i.compareDocumentPosition(l),d=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&d&&(s===null||s.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(i){const s=i.previousNode();return{prevNode:s,node:(s===null||i.nextNode())&&i.nextNode()}}checkIframeFilter(i,s,l,u){let d=!1,p=!1;return u.forEach((f,c)=>{f.val===l&&(d=c,p=f.handled)}),this.compareNodeIframe(i,s,l)?(d!==!1||p?d===!1||p||(u[d].handled=!0):u.push({val:l,handled:!0}),!0):(d===!1&&u.push({val:l,handled:!1}),!1)}handleOpenIframes(i,s,l,u){i.forEach(d=>{d.handled||this.getIframeContents(d.val,p=>{this.createInstanceOnIframe(p).forEachNode(s,l,u)})})}iterateThroughNodes(i,s,l,u,d){const p=this.createIterator(s,i,u);let f,c,h=[],v=[],m=()=>({prevNode:c,node:f}=this.getIteratorNode(p),f);for(;m();)this.iframes&&this.forEachIframe(s,_=>this.checkIframeFilter(f,c,_,h),_=>{this.createInstanceOnIframe(_).forEachNode(i,y=>v.push(y),u)}),v.push(f);v.forEach(_=>{l(_)}),this.iframes&&this.handleOpenIframes(h,i,l,u),d()}forEachNode(i,s,l,u=()=>{}){const d=this.getContexts();let p=d.length;p||u(),d.forEach(f=>{const c=()=>{this.iterateThroughNodes(i,f,s,l,()=>{--p<=0&&u()})};this.iframes?this.waitForIframes(f,c):c()})}}class o{constructor(i){this.ctx=i,this.ie=!1;const s=window.navigator.userAgent;(s.indexOf("MSIE")>-1||s.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(i){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},i)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(i,s="debug"){const l=this.opt.log;this.opt.debug&&typeof l=="object"&&typeof l[s]=="function"&&l[s](`mark.js: ${i}`)}escapeStr(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(i){return this.opt.wildcards!=="disabled"&&(i=this.setupWildcardsRegExp(i)),i=this.escapeStr(i),Object.keys(this.opt.synonyms).length&&(i=this.createSynonymsRegExp(i)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),this.opt.diacritics&&(i=this.createDiacriticsRegExp(i)),i=this.createMergedBlanksRegExp(i),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.createJoinersRegExp(i)),this.opt.wildcards!=="disabled"&&(i=this.createWildcardsRegExp(i)),i=this.createAccuracyRegExp(i)}createSynonymsRegExp(i){const s=this.opt.synonyms,l=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let d in s)if(s.hasOwnProperty(d)){const p=s[d],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(d):this.escapeStr(d),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);f!==""&&c!==""&&(i=i.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(c)})`,`gm${l}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(c)})`+u))}return i}processSynomyms(i){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),i}setupWildcardsRegExp(i){return(i=i.replace(/(?:\\)*\?/g,s=>s.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,s=>s.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(i){let s=this.opt.wildcards==="withSpaces";return i.replace(/\u0001/g,s?"[\\S\\s]?":"\\S?").replace(/\u0002/g,s?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(i){return i.replace(/[^(|)\\]/g,(s,l,u)=>{let d=u.charAt(l+1);return/[(|)\\]/.test(d)||d===""?s:s+"\0"})}createJoinersRegExp(i){let s=[];const l=this.opt.ignorePunctuation;return Array.isArray(l)&&l.length&&s.push(this.escapeStr(l.join(""))),this.opt.ignoreJoiners&&s.push("\\u00ad\\u200b\\u200c\\u200d"),s.length?i.split(/\u0000+/).join(`[${s.join("")}]*`):i}createDiacriticsRegExp(i){const s=this.opt.caseSensitive?"":"i",l=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let u=[];return i.split("").forEach(d=>{l.every(p=>{if(p.indexOf(d)!==-1){if(u.indexOf(p)>-1)return!1;i=i.replace(new RegExp(`[${p}]`,`gm${s}`),`[${p}]`),u.push(p)}return!0})}),i}createMergedBlanksRegExp(i){return i.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(i){const s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let l=this.opt.accuracy,u=typeof l=="string"?l:l.value,d=typeof l=="string"?[]:l.limiters,p="";switch(d.forEach(f=>{p+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${i})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(s))}]*${i}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${i})(?=$|\\s${p})`}}getSeparatedKeywords(i){let s=[];return i.forEach(l=>{this.opt.separateWordSearch?l.split(" ").forEach(u=>{u.trim()&&s.indexOf(u)===-1&&s.push(u)}):l.trim()&&s.indexOf(l)===-1&&s.push(l)}),{keywords:s.sort((l,u)=>u.length-l.length),length:s.length}}isNumeric(i){return Number(parseFloat(i))==i}checkRanges(i){if(!Array.isArray(i)||Object.prototype.toString.call(i[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(i),[];const s=[];let l=0;return i.sort((u,d)=>u.start-d.start).forEach(u=>{let{start:d,end:p,valid:f}=this.callNoMatchOnInvalidRanges(u,l);f&&(u.start=d,u.length=p-d,s.push(u),l=p)}),s}callNoMatchOnInvalidRanges(i,s){let l,u,d=!1;return i&&i.start!==void 0?(u=(l=parseInt(i.start,10))+parseInt(i.length,10),this.isNumeric(i.start)&&this.isNumeric(i.length)&&u-s>0&&u-l>0?d=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(i)}`),this.opt.noMatch(i))):(this.log(`Ignoring invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)),{start:l,end:u,valid:d}}checkWhitespaceRanges(i,s,l){let u,d=!0,p=l.length,f=s-p,c=parseInt(i.start,10)-f;return(u=(c=c>p?p:c)+parseInt(i.length,10))>p&&(u=p,this.log(`End range automatically set to the max value of ${p}`)),c<0||u-c<0||c>p||u>p?(d=!1,this.log(`Invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)):l.substring(c,u).replace(/\s+/g,"")===""&&(d=!1,this.log("Skipping whitespace only range: "+JSON.stringify(i)),this.opt.noMatch(i)),{start:c,end:u,valid:d}}getTextNodes(i){let s="",l=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{l.push({start:s.length,end:(s+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{i({value:s,nodes:l})})}matchesExclude(i){return e.matches(i,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(i,s,l){const u=this.opt.element?this.opt.element:"mark",d=i.splitText(s),p=d.splitText(l-s);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=d.textContent,d.parentNode.replaceChild(f,d),p}wrapRangeInMappedTextNode(i,s,l,u,d){i.nodes.every((p,f)=>{const c=i.nodes[f+1];if(c===void 0||c.start>s){if(!u(p.node))return!1;const h=s-p.start,v=(l>p.end?p.end:l)-p.start,m=i.value.substr(0,p.start),_=i.value.substr(v+p.start);if(p.node=this.wrapRangeInTextNode(p.node,h,v),i.value=m+_,i.nodes.forEach((y,g)=>{g>=f&&(i.nodes[g].start>0&&g!==f&&(i.nodes[g].start-=v),i.nodes[g].end-=v)}),l-=v,d(p.node.previousSibling,p.start),!(l>p.end))return!1;s=p.end}return!0})}wrapMatches(i,s,l,u,d){const p=s===0?0:s+1;this.getTextNodes(f=>{f.nodes.forEach(c=>{let h;for(c=c.node;(h=i.exec(c.textContent))!==null&&h[p]!=="";){if(!l(h[p],c))continue;let v=h.index;if(p!==0)for(let m=1;m<p;m++)v+=h[m].length;c=this.wrapRangeInTextNode(c,v,v+h[p].length),u(c.previousSibling),i.lastIndex=0}}),d()})}wrapMatchesAcrossElements(i,s,l,u,d){const p=s===0?0:s+1;this.getTextNodes(f=>{let c;for(;(c=i.exec(f.value))!==null&&c[p]!=="";){let h=c.index;if(p!==0)for(let m=1;m<p;m++)h+=c[m].length;const v=h+c[p].length;this.wrapRangeInMappedTextNode(f,h,v,m=>l(c[p],m),(m,_)=>{i.lastIndex=_,u(m)})}d()})}wrapRangeFromIndex(i,s,l,u){this.getTextNodes(d=>{const p=d.value.length;i.forEach((f,c)=>{let{start:h,end:v,valid:m}=this.checkWhitespaceRanges(f,p,d.value);m&&this.wrapRangeInMappedTextNode(d,h,v,_=>s(_,f,d.value.substring(h,v),c),_=>{l(_,f)})}),u()})}unwrapMatches(i){const s=i.parentNode;let l=document.createDocumentFragment();for(;i.firstChild;)l.appendChild(i.removeChild(i.firstChild));s.replaceChild(l,i),this.ie?this.normalizeTextNode(s):s.normalize()}normalizeTextNode(i){if(i){if(i.nodeType===3)for(;i.nextSibling&&i.nextSibling.nodeType===3;)i.nodeValue+=i.nextSibling.nodeValue,i.parentNode.removeChild(i.nextSibling);else this.normalizeTextNode(i.firstChild);this.normalizeTextNode(i.nextSibling)}}markRegExp(i,s){this.opt=s,this.log(`Searching with expression "${i}"`);let l=0,u="wrapMatches";const d=p=>{l++,this.opt.each(p)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](i,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,l),d,()=>{l===0&&this.opt.noMatch(i),this.opt.done(l)})}mark(i,s){this.opt=s;let l=0,u="wrapMatches";const{keywords:d,length:p}=this.getSeparatedKeywords(typeof i=="string"?[i]:i),f=this.opt.caseSensitive?"":"i",c=h=>{let v=new RegExp(this.createRegExp(h),`gm${f}`),m=0;this.log(`Searching with expression "${v}"`),this[u](v,1,(_,y)=>this.opt.filter(y,h,l,m),_=>{m++,l++,this.opt.each(_)},()=>{m===0&&this.opt.noMatch(h),d[p-1]===h?this.opt.done(l):c(d[d.indexOf(h)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),p===0?this.opt.done(l):c(d[0])}markRanges(i,s){this.opt=s;let l=0,u=this.checkRanges(i);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(d,p,f,c)=>this.opt.filter(d,p,f,c),(d,p)=>{l++,this.opt.each(d,p)},()=>{this.opt.done(l)})):this.opt.done(l)}unmark(i){this.opt=i;let s=this.opt.element?this.opt.element:"*";s+="[data-markjs]",this.opt.className&&(s+=`.${this.opt.className}`),this.log(`Removal selector "${s}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,l=>{this.unwrapMatches(l)},l=>{const u=e.matches(l,s),d=this.matchesExclude(l);return!u||d?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const i=new o(a);return this.mark=(s,l)=>(i.mark(s,l),this),this.markRegExp=(s,l)=>(i.markRegExp(s,l),this),this.markRanges=(s,l)=>(i.markRanges(s,l),this),this.unmark=s=>(i.unmark(s),this),this}})})(xo);var md=xo.exports;const gd=Cn(md),yd={props:{infiniteLoader:{type:Boolean,default:!0}},watch:{infiniteLoader(t){t||infiniteLoaderObserver.disconnect()}},data(){return{infiniteLoaderObserver:null}},mounted(){this.infiniteLoader&&(this.infiniteLoaderObserver=new IntersectionObserver(t=>{t.forEach(n=>{n.isIntersecting&&this.$emit("loadMoreOptions")})}),this.infiniteLoaderObserver.observe(this.$refs.infinityLoader))},beforeDestroy(){this.infiniteLoader&&(infiniteLoaderObserver==null||infiniteLoaderObserver.disconnect())},emits:["loadMoreOptions"]};function bd(t,n){let e=null;function o(...a){e&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,a),e=null},n)}return o.cancel=function(){e&&(clearTimeout(e),e=null)},o}const kp="";function To(t){return JSON.parse(JSON.stringify(t))}const vd={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],mixins:[yd],props:{classList:[String,Array],keywordHighlighter:{type:Boolean,default:!0},placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return pt()}},options:{type:[Array,Function],default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return pt()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},searchDebounce:{type:Number,default:500},alphabeticStyle:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","clearValue","toggle-bookmarked-option","update:modelValue"],watch:{value(t){this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1)},modelValue:{handler(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},deep:!0},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=typeof t=="function"?t:To(t)},deep:!0},initialOptions(t){let n=!0;if(typeof t=="function")n=!1;else{const e=[],o=t;Array.prototype.forEach.call(o,a=>{a.id!==void 0&&e.push(a.id)}),n=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!n||this.isWatching)&&this.setPreparedValues().then(()=>{const e=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:e,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new gd(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,i,s,l;return this.defaultFilter=bd(u=>{this.marker.unmark();const d=this.filterString.toLowerCase().trim();this.countVisibleChildren=this.filterFunc.call(this,u,d),d&&this.keywordHighlighter&&this.marker.mark(d)},1e3),{initialOptions:typeof this.options=="function"?this.options:To(this.options),val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],isOpen:!1,verticalVal:this.vertical??"bottom",allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(i=this.LANG_COMPONENTS)==null?void 0:i.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(l=this.LANG_COMPONENTS)==null?void 0:l.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",this.filterString),this.defaultFilter(n)},setPreparedValues(t){let n=t||this.initialOptions;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.setPreparedValues(),this.allOptionsIsChecked=!1,this.selected=[],this.isMultiple?(this.$emit("update:modelValue",null),this.$emit("input",null),this.$emit("clear-value",null)):(this.$emit("update:modelValue",[]),this.$emit("input",[]),this.$emit("clear-value",[])),this.setPreparedValues()},clearValue(){this.clear(),this.setPreparedValues()},prepare(t,n=!0){return new Promise(e=>{const o={},a=[];let i=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),i=i.then(t)):i=i.then(()=>t),i.then(s=>(this.isLoading=!1,s.forEach(l=>{l.initiallyVisible=typeof l.visible>"u"?!0:l.visible,l.visible=l.initiallyVisible,l.readonly=!!l.readonly,l.checked=this.isMultiple?this.val!==null&&this.val.findIndex(u=>l.id==u)>-1:this.val!==null&&this.val==l.id,l.checked&&(!this.onlyEndNodes||!l.children)&&(o[l.id]=l),l.children&&(this.hasTreeChildren=!0,l.isChildrenVisible=!1),a.push(new Promise(u=>{l.children?this.prepare(l.children).then(([d,p])=>{l.children=d,this.parentAutoCheck&&(l.checked=this.checkIfOptionsChecked(l.children)),Object.assign(o,p),u(l)}):u(l)}))}),Promise.all(a).then(l=>{e([l,o])}))).catch(s=>{throw this.isLoading=!1,s})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let i=this.filterFunc(o.children,n);e+=i,i&&(o.isChildrenVisible=n.length>0||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=i<o.children.length&&!this.isBookmarkable),a?i||(a=!1):a=!!i}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked||n.readonly)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)},onClose(){this.isOpen=!1,this.filter("",this.actualOptions),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur"),this.verticalVal=this.vertical??"bottom"},onOpen(){const t=document.documentElement.scrollHeight;this.isOpen=!0,this.vertical!=="bottom"&&this.$nextTick(()=>{document.documentElement.scrollHeight>t&&(this.verticalVal="top")})}},computed:{hasTrigger(){return!!this.$slots.trigger},hasTriggerContent(){return!!this.$slots.triggerContent},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10&&!this.alphabeticStyle},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:Ft,IbIconButton:ut,IbIcon:Le,IbDropdown:ir,IbInput:qr,List:Rr,"select-option":pd},directives:{Tooltip:Wt},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)},inheritAttrs:!1},_d={key:0,class:"tree-select-empty"},$d={key:1,class:"tree-select-default-empty tree-select-empty"},wd={key:5,ref:"infinityLoader"};function kd(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-icon-button"),d=r.resolveComponent("ib-input"),p=r.resolveComponent("select-option"),f=r.resolveComponent("list"),c=r.resolveComponent("ib-dropdown"),h=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.errorMessage?(r.openBlock(),r.createBlock(s,{key:0,class:"tree-select-error"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["tree-select",{...e.classList,"tree-select-custom-trigger-content":i.hasTriggerContent}])},[r.createVNode(c,{disabled:a.isLoading||e.disable,"is-resizable":e.isResizable,vertical:a.verticalVal,class:r.normalizeClass({disable:e.disable}),ref:"dropdown",onClose:i.onClose,onOpen:i.onOpen},r.createSlots({body:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:r.normalizeStyle(i.treeDropPos),role:"listbox"},[e.isResizable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=v=>i.startResizing("left"))},null,32)):r.createCommentVNode("",!0),e.isResizable?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=v=>i.startResizing("right"))},null,544)),[[h,t.lang("resize_list","select"),void 0,{rightCenter:!0}]]):r.createCommentVNode("",!0),i.showSearch?(r.openBlock(),r.createBlock(d,{key:2,class:"tree-search",ref:"search",autocomplete:"off","show-icon":!0,value:a.filterString,debounce:e.searchDebounce,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=v=>i.filter(v,a.actualOptions)),onKeyup:r.withKeys(i.inputKeyupDown,["down"])},null,8,["value","debounce","aria-label","placeholder","onKeyup"])):r.createCommentVNode("",!0),r.createVNode(f,{ref:"list",role:"listbox",class:r.normalizeClass({"tree-select-list":!0,"has-hierarchy":i.hasHierarchy,"alphabetic-list":e.alphabeticStyle})},{default:r.withCtx(()=>[!i.requiredDependencyNotFilled&&!i.visibleOptionsCount&&i.hasEmptyMessage?(r.openBlock(),r.createElementBlock("div",_d,[r.renderSlot(t.$slots,"emptyMessage")])):!i.requiredDependencyNotFilled&&!i.visibleOptionsCount?(r.openBlock(),r.createElementBlock("div",$d,r.toDisplayString(a.actualStrings.emptyTitle),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",{class:"tree-select-empty"},r.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[r.vShow,i.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(r.openBlock(),r.createBlock(p,{key:2,option:{title:t.lang("none","select"),id:null,checked:i.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):r.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:3},r.renderList(a.actualBookmarkedOptions,v=>(r.openBlock(),r.createBlock(p,{key:"bookmark"+v.id,class:"bookmarked-option",option:v,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128)):r.createCommentVNode("",!0),i.requiredDependencyNotFilled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[e.allOptions&&!e.alphabeticStyle&&e.isMultiple&&i.visibleOptionsCount&&!i.requiredDependencyNotFilled?(r.openBlock(),r.createBlock(p,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:i.visibleOptionsCount<i.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,role:"option",onCheck:i.manageAll,onOnFocus:n[9]||(n[9]=v=>a.focusedOptionId=v)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","alphabetic-style","onCheck"])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.actualOptions,v=>r.renderSlot(t.$slots,a.actualName,{key:e.name+v.value,option:v,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[r.withDirectives(r.createVNode(p,{option:v,"is-toggle":e.isToggle,name:a.actualName,role:"option","parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,onOnFocus:n[10]||(n[10]=m=>a.focusedOptionId=m)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","alphabetic-style","onCheck","onToggleBookmark"]),[[r.vShow,v.visible]])])),128))],64)),t.infiniteLoader?(r.openBlock(),r.createElementBlock("div",wd,null,512)):r.createCommentVNode("",!0)]),_:3},8,["class"])],6)]),_:2},[i.hasTrigger?{name:"trigger",fn:r.withCtx(()=>[r.renderSlot(t.$slots,"trigger",{selectedCount:i.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:r.withCtx(({isOpened:v})=>[r.createElementVNode("div",{role:"combobox",tabindex:"0",class:r.normalizeClass(["tree-choice",{"tree-choice-opened":v,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox","aria-expanded":v,onClick:n[2]||(n[2]=r.withModifiers(()=>{},["prevent"])),onBlur:n[3]||(n[3]=(...m)=>i.onBlur&&i.onBlur(...m)),onKeyup:[n[4]||(n[4]=r.withKeys((...m)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...m),["down"])),n[5]||(n[5]=r.withKeys((...m)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...m),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[i.hasTriggerContent?r.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:i.selectedKeys.length,isOpen:v}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[e.htmlOptionTitle?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass({placeholder:!i.selectStatus}),innerHTML:i.selectStatus||e.placeholder},null,10,["innerHTML"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass({placeholder:!i.selectStatus})},r.toDisplayString(i.selectStatus||e.placeholder),3))],64)),e.showClearButton?r.withDirectives((r.openBlock(),r.createBlock(u,{key:2,kind:"ghost",class:"button-clear","aria-label":"Clear selection",onClick:r.withModifiers(i.clearValue,["prevent"]),onKeypress:n[0]||(n[0]=r.withKeys(r.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[1]||(n[1]=r.withKeys(r.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:r.withKeys(r.withModifiers(i.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:r.withCtx(()=>[r.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[r.vShow,Object.keys(a.selected).length]]):r.createCommentVNode("",!0),r.createVNode(l,{name:v?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-expanded","aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","class","onClose","onOpen"])],2)],64)}const No=_e(vd,[["render",kd]]),Cp="",Cd={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},vertical:{type:String},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:kn,IbSelect:No}},Od={class:"report-limit-selector"};function Ed(t,n,e,o,a,i){const s=r.resolveComponent("ib-label"),l=r.resolveComponent("ib-select");return r.openBlock(),r.createElementBlock("div",Od,[r.createVNode(s,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelSelect),1)]),_:1}),r.createVNode(l,{classList:"report-limit-selector-select",value:e.value,vertical:e.vertical,options:i.prepareOptions,"is-multiple":!1,"show-clear-button":!1,"aria-label":"Pagination",onInput:i.selectItem},null,8,["value","vertical","options","onInput"])])}const Ao=_e(Cd,[["render",Ed]]),Op="",Sd={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0},vertical:{type:String}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitSelector(t){this.limitValue=t},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:qr,IbLabel:kn,IbLimitSelector:Ao,IbTooltip:ln}},xd={class:"report-controls"},Td={class:"repot-pagination"},Nd={class:"pagination-input"},Ad={class:"row-count"},Dd={class:"pagination-wrapper"},Pd=["onClick"];function Id(t,n,e,o,a,i){const s=r.resolveComponent("ib-limit-selector"),l=r.resolveComponent("ib-label"),u=r.resolveComponent("ib-input"),d=r.resolveComponent("ib-icon"),p=r.resolveComponent("ib-tooltip"),f=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",xd,[r.createVNode(s,{onSelect:i.changeLimit,value:a.limitValue,vertical:e.vertical,"label-select":e.labelSelect},null,8,["onSelect","value","vertical","label-select"]),r.createElementVNode("div",Td,[e.showPaginationInput?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(l,{for:"goToPage"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelInput),1)]),_:1}),r.createElementVNode("div",Nd,[r.createVNode(u,{id:"goToPage",type:"number","hide-number-actions":"",debounce:500,onInput:i.onInput},null,8,["onInput"])])],64)):r.createCommentVNode("",!0),r.createElementVNode("div",Ad,r.toDisplayString(i.setCountOfRows+" of "+e.countRows),1),r.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=c=>i.onSelect(a.currentPage-1))},{default:r.withCtx(()=>[r.createVNode(d,{name:"chevron-back-outline"}),e.tooltipTextPrev?(r.openBlock(),r.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):r.createCommentVNode("",!0)]),_:1},8,["disabled"]),r.createElementVNode("ul",Dd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.countPagePagination,(c,h)=>r.withDirectives((r.openBlock(),r.createElementBlock("li",{key:h,class:r.normalizeClass(["pagination-item",{active:h+1===a.currentPage,"dots-left":a.indexSpaceLeft===h+1,"dots-right":a.indexSpaceRight===h+1}]),onClick:v=>i.onSelect(h+1)},[r.createElementVNode("button",null,r.toDisplayString(h+1),1)],10,Pd)),[[r.vShow,i.showItem(h+1)]])),128))]),r.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===i.countPagePagination,onClick:n[1]||(n[1]=c=>i.onSelect(a.currentPage+1))},{default:r.withCtx(()=>[r.createVNode(d,{name:"chevron-forward-outline"}),e.tooltipTextNext?(r.openBlock(),r.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):r.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Bd=_e(Sd,[["render",Id]]),On={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},Ep="",Md={props:{states:{type:String,default:On.PROGRESS},progress:{type:[String,Number],default:0},ariaLabel:{type:String,required:!0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===On.SUCCESS?"checkmark-circle":this.states===On.FAILED||this.states===On.CANCELING||this.states===On.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Do=t=>(r.pushScopeId("data-v-a0217859"),t=t(),r.popScopeId(),t),Ld={class:"ib-progress-bar-wrapper"},Rd=["aria-label","aria-valuenow"],jd=[Do(()=>r.createElementVNode("div",{class:"gradient"},null,-1))],Vd=Do(()=>r.createElementVNode("div",null,null,-1));function qd(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",Ld,[r.createElementVNode("div",{class:r.normalizeClass(i.classes)},[r.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:r.normalizeStyle({width:e.progress+"%"})},jd,12,Rd),Vd],2),r.withDirectives(r.createVNode(s,{class:"status-icon",name:i.iconName},null,8,["name"]),[[r.vShow,i.iconName.length]])])}const Fd=_e(Md,[["render",qd],["__scopeId","data-v-a0217859"]]),Hd={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
29
+ *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(je,function(){class e{constructor(i,s=!0,l=[],u=5e3){this.ctx=i,this.iframes=s,this.exclude=l,this.iframesTimeout=u}static matches(i,s){const l=typeof s=="string"?[s]:s,u=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector;if(u){let d=!1;return l.every(p=>!u.call(i,p)||(d=!0,!1)),d}return!1}getContexts(){let i=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(s=>{const l=i.filter(u=>u.contains(s)).length>0;i.indexOf(s)!==-1||l||i.push(s)}),i}getIframeContents(i,s,l=()=>{}){let u;try{const d=i.contentWindow;if(u=d.document,!d||!u)throw new Error("iframe inaccessible")}catch{l()}u&&s(u)}isIframeBlank(i){const s="about:blank",l=i.getAttribute("src").trim();return i.contentWindow.location.href===s&&l!==s&&l}observeIframeLoad(i,s,l){let u=!1,d=null;const p=()=>{if(!u){u=!0,clearTimeout(d);try{this.isIframeBlank(i)||(i.removeEventListener("load",p),this.getIframeContents(i,s,l))}catch{l()}}};i.addEventListener("load",p),d=setTimeout(p,this.iframesTimeout)}onIframeReady(i,s,l){try{i.contentWindow.document.readyState==="complete"?this.isIframeBlank(i)?this.observeIframeLoad(i,s,l):this.getIframeContents(i,s,l):this.observeIframeLoad(i,s,l)}catch{l()}}waitForIframes(i,s){let l=0;this.forEachIframe(i,()=>!0,u=>{l++,this.waitForIframes(u.querySelector("html"),()=>{--l||s()})},u=>{u||s()})}forEachIframe(i,s,l,u=()=>{}){let d=i.querySelectorAll("iframe"),p=d.length,f=0;d=Array.prototype.slice.call(d);const c=()=>{--p<=0&&u(f)};p||c(),d.forEach(h=>{e.matches(h,this.exclude)?c():this.onIframeReady(h,v=>{s(h)&&(f++,l(v)),c()},c)})}createIterator(i,s,l){return document.createNodeIterator(i,s,l,!1)}createInstanceOnIframe(i){return new e(i.querySelector("html"),this.iframes)}compareNodeIframe(i,s,l){const u=i.compareDocumentPosition(l),d=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&d&&(s===null||s.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(i){const s=i.previousNode();return{prevNode:s,node:(s===null||i.nextNode())&&i.nextNode()}}checkIframeFilter(i,s,l,u){let d=!1,p=!1;return u.forEach((f,c)=>{f.val===l&&(d=c,p=f.handled)}),this.compareNodeIframe(i,s,l)?(d!==!1||p?d===!1||p||(u[d].handled=!0):u.push({val:l,handled:!0}),!0):(d===!1&&u.push({val:l,handled:!1}),!1)}handleOpenIframes(i,s,l,u){i.forEach(d=>{d.handled||this.getIframeContents(d.val,p=>{this.createInstanceOnIframe(p).forEachNode(s,l,u)})})}iterateThroughNodes(i,s,l,u,d){const p=this.createIterator(s,i,u);let f,c,h=[],v=[],m=()=>({prevNode:c,node:f}=this.getIteratorNode(p),f);for(;m();)this.iframes&&this.forEachIframe(s,_=>this.checkIframeFilter(f,c,_,h),_=>{this.createInstanceOnIframe(_).forEachNode(i,y=>v.push(y),u)}),v.push(f);v.forEach(_=>{l(_)}),this.iframes&&this.handleOpenIframes(h,i,l,u),d()}forEachNode(i,s,l,u=()=>{}){const d=this.getContexts();let p=d.length;p||u(),d.forEach(f=>{const c=()=>{this.iterateThroughNodes(i,f,s,l,()=>{--p<=0&&u()})};this.iframes?this.waitForIframes(f,c):c()})}}class o{constructor(i){this.ctx=i,this.ie=!1;const s=window.navigator.userAgent;(s.indexOf("MSIE")>-1||s.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(i){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},i)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(i,s="debug"){const l=this.opt.log;this.opt.debug&&typeof l=="object"&&typeof l[s]=="function"&&l[s](`mark.js: ${i}`)}escapeStr(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(i){return this.opt.wildcards!=="disabled"&&(i=this.setupWildcardsRegExp(i)),i=this.escapeStr(i),Object.keys(this.opt.synonyms).length&&(i=this.createSynonymsRegExp(i)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),this.opt.diacritics&&(i=this.createDiacriticsRegExp(i)),i=this.createMergedBlanksRegExp(i),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.createJoinersRegExp(i)),this.opt.wildcards!=="disabled"&&(i=this.createWildcardsRegExp(i)),i=this.createAccuracyRegExp(i)}createSynonymsRegExp(i){const s=this.opt.synonyms,l=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let d in s)if(s.hasOwnProperty(d)){const p=s[d],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(d):this.escapeStr(d),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);f!==""&&c!==""&&(i=i.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(c)})`,`gm${l}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(c)})`+u))}return i}processSynomyms(i){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),i}setupWildcardsRegExp(i){return(i=i.replace(/(?:\\)*\?/g,s=>s.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,s=>s.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(i){let s=this.opt.wildcards==="withSpaces";return i.replace(/\u0001/g,s?"[\\S\\s]?":"\\S?").replace(/\u0002/g,s?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(i){return i.replace(/[^(|)\\]/g,(s,l,u)=>{let d=u.charAt(l+1);return/[(|)\\]/.test(d)||d===""?s:s+"\0"})}createJoinersRegExp(i){let s=[];const l=this.opt.ignorePunctuation;return Array.isArray(l)&&l.length&&s.push(this.escapeStr(l.join(""))),this.opt.ignoreJoiners&&s.push("\\u00ad\\u200b\\u200c\\u200d"),s.length?i.split(/\u0000+/).join(`[${s.join("")}]*`):i}createDiacriticsRegExp(i){const s=this.opt.caseSensitive?"":"i",l=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let u=[];return i.split("").forEach(d=>{l.every(p=>{if(p.indexOf(d)!==-1){if(u.indexOf(p)>-1)return!1;i=i.replace(new RegExp(`[${p}]`,`gm${s}`),`[${p}]`),u.push(p)}return!0})}),i}createMergedBlanksRegExp(i){return i.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(i){const s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let l=this.opt.accuracy,u=typeof l=="string"?l:l.value,d=typeof l=="string"?[]:l.limiters,p="";switch(d.forEach(f=>{p+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${i})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(s))}]*${i}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${i})(?=$|\\s${p})`}}getSeparatedKeywords(i){let s=[];return i.forEach(l=>{this.opt.separateWordSearch?l.split(" ").forEach(u=>{u.trim()&&s.indexOf(u)===-1&&s.push(u)}):l.trim()&&s.indexOf(l)===-1&&s.push(l)}),{keywords:s.sort((l,u)=>u.length-l.length),length:s.length}}isNumeric(i){return Number(parseFloat(i))==i}checkRanges(i){if(!Array.isArray(i)||Object.prototype.toString.call(i[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(i),[];const s=[];let l=0;return i.sort((u,d)=>u.start-d.start).forEach(u=>{let{start:d,end:p,valid:f}=this.callNoMatchOnInvalidRanges(u,l);f&&(u.start=d,u.length=p-d,s.push(u),l=p)}),s}callNoMatchOnInvalidRanges(i,s){let l,u,d=!1;return i&&i.start!==void 0?(u=(l=parseInt(i.start,10))+parseInt(i.length,10),this.isNumeric(i.start)&&this.isNumeric(i.length)&&u-s>0&&u-l>0?d=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(i)}`),this.opt.noMatch(i))):(this.log(`Ignoring invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)),{start:l,end:u,valid:d}}checkWhitespaceRanges(i,s,l){let u,d=!0,p=l.length,f=s-p,c=parseInt(i.start,10)-f;return(u=(c=c>p?p:c)+parseInt(i.length,10))>p&&(u=p,this.log(`End range automatically set to the max value of ${p}`)),c<0||u-c<0||c>p||u>p?(d=!1,this.log(`Invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)):l.substring(c,u).replace(/\s+/g,"")===""&&(d=!1,this.log("Skipping whitespace only range: "+JSON.stringify(i)),this.opt.noMatch(i)),{start:c,end:u,valid:d}}getTextNodes(i){let s="",l=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{l.push({start:s.length,end:(s+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{i({value:s,nodes:l})})}matchesExclude(i){return e.matches(i,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(i,s,l){const u=this.opt.element?this.opt.element:"mark",d=i.splitText(s),p=d.splitText(l-s);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=d.textContent,d.parentNode.replaceChild(f,d),p}wrapRangeInMappedTextNode(i,s,l,u,d){i.nodes.every((p,f)=>{const c=i.nodes[f+1];if(c===void 0||c.start>s){if(!u(p.node))return!1;const h=s-p.start,v=(l>p.end?p.end:l)-p.start,m=i.value.substr(0,p.start),_=i.value.substr(v+p.start);if(p.node=this.wrapRangeInTextNode(p.node,h,v),i.value=m+_,i.nodes.forEach((y,g)=>{g>=f&&(i.nodes[g].start>0&&g!==f&&(i.nodes[g].start-=v),i.nodes[g].end-=v)}),l-=v,d(p.node.previousSibling,p.start),!(l>p.end))return!1;s=p.end}return!0})}wrapMatches(i,s,l,u,d){const p=s===0?0:s+1;this.getTextNodes(f=>{f.nodes.forEach(c=>{let h;for(c=c.node;(h=i.exec(c.textContent))!==null&&h[p]!=="";){if(!l(h[p],c))continue;let v=h.index;if(p!==0)for(let m=1;m<p;m++)v+=h[m].length;c=this.wrapRangeInTextNode(c,v,v+h[p].length),u(c.previousSibling),i.lastIndex=0}}),d()})}wrapMatchesAcrossElements(i,s,l,u,d){const p=s===0?0:s+1;this.getTextNodes(f=>{let c;for(;(c=i.exec(f.value))!==null&&c[p]!=="";){let h=c.index;if(p!==0)for(let m=1;m<p;m++)h+=c[m].length;const v=h+c[p].length;this.wrapRangeInMappedTextNode(f,h,v,m=>l(c[p],m),(m,_)=>{i.lastIndex=_,u(m)})}d()})}wrapRangeFromIndex(i,s,l,u){this.getTextNodes(d=>{const p=d.value.length;i.forEach((f,c)=>{let{start:h,end:v,valid:m}=this.checkWhitespaceRanges(f,p,d.value);m&&this.wrapRangeInMappedTextNode(d,h,v,_=>s(_,f,d.value.substring(h,v),c),_=>{l(_,f)})}),u()})}unwrapMatches(i){const s=i.parentNode;let l=document.createDocumentFragment();for(;i.firstChild;)l.appendChild(i.removeChild(i.firstChild));s.replaceChild(l,i),this.ie?this.normalizeTextNode(s):s.normalize()}normalizeTextNode(i){if(i){if(i.nodeType===3)for(;i.nextSibling&&i.nextSibling.nodeType===3;)i.nodeValue+=i.nextSibling.nodeValue,i.parentNode.removeChild(i.nextSibling);else this.normalizeTextNode(i.firstChild);this.normalizeTextNode(i.nextSibling)}}markRegExp(i,s){this.opt=s,this.log(`Searching with expression "${i}"`);let l=0,u="wrapMatches";const d=p=>{l++,this.opt.each(p)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](i,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,l),d,()=>{l===0&&this.opt.noMatch(i),this.opt.done(l)})}mark(i,s){this.opt=s;let l=0,u="wrapMatches";const{keywords:d,length:p}=this.getSeparatedKeywords(typeof i=="string"?[i]:i),f=this.opt.caseSensitive?"":"i",c=h=>{let v=new RegExp(this.createRegExp(h),`gm${f}`),m=0;this.log(`Searching with expression "${v}"`),this[u](v,1,(_,y)=>this.opt.filter(y,h,l,m),_=>{m++,l++,this.opt.each(_)},()=>{m===0&&this.opt.noMatch(h),d[p-1]===h?this.opt.done(l):c(d[d.indexOf(h)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),p===0?this.opt.done(l):c(d[0])}markRanges(i,s){this.opt=s;let l=0,u=this.checkRanges(i);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(d,p,f,c)=>this.opt.filter(d,p,f,c),(d,p)=>{l++,this.opt.each(d,p)},()=>{this.opt.done(l)})):this.opt.done(l)}unmark(i){this.opt=i;let s=this.opt.element?this.opt.element:"*";s+="[data-markjs]",this.opt.className&&(s+=`.${this.opt.className}`),this.log(`Removal selector "${s}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,l=>{this.unwrapMatches(l)},l=>{const u=e.matches(l,s),d=this.matchesExclude(l);return!u||d?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const i=new o(a);return this.mark=(s,l)=>(i.mark(s,l),this),this.markRegExp=(s,l)=>(i.markRegExp(s,l),this),this.markRanges=(s,l)=>(i.markRanges(s,l),this),this.unmark=s=>(i.unmark(s),this),this}})})(xo);var pd=xo.exports;const md=Cn(pd),gd={props:{infiniteLoader:{type:Boolean,default:!0}},watch:{infiniteLoader(t){t||infiniteLoaderObserver.disconnect()}},data(){return{infiniteLoaderObserver:null}},mounted(){this.infiniteLoader&&(this.infiniteLoaderObserver=new IntersectionObserver(t=>{t.forEach(n=>{n.isIntersecting&&this.$emit("loadMoreOptions")})}),this.infiniteLoaderObserver.observe(this.$refs.infinityLoader))},beforeDestroy(){this.infiniteLoader&&(infiniteLoaderObserver==null||infiniteLoaderObserver.disconnect())},emits:["loadMoreOptions"]};function yd(t,n){let e=null;function o(...a){e&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,a),e=null},n)}return o.cancel=function(){e&&(clearTimeout(e),e=null)},o}const wp="";function To(t){return JSON.parse(JSON.stringify(t))}const bd={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],mixins:[gd],props:{classList:[String,Array],keywordHighlighter:{type:Boolean,default:!0},placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return pt()}},options:{type:[Array,Function],default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return pt()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},searchDebounce:{type:Number,default:500},alphabeticStyle:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","clearValue","toggle-bookmarked-option","update:modelValue"],watch:{value(t){this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1)},modelValue:{handler(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},deep:!0},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=typeof t=="function"?t:To(t)},deep:!0},initialOptions(t){let n=!0;if(typeof t=="function")n=!1;else{const e=[],o=t;Array.prototype.forEach.call(o,a=>{a.id!==void 0&&e.push(a.id)}),n=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!n||this.isWatching)&&this.setPreparedValues().then(()=>{const e=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:e,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new md(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,i,s,l;return this.defaultFilter=yd(u=>{this.marker.unmark();const d=this.filterString.toLowerCase().trim();this.countVisibleChildren=this.filterFunc.call(this,u,d),d&&this.keywordHighlighter&&this.marker.mark(d)},1e3),{initialOptions:typeof this.options=="function"?this.options:To(this.options),val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],isOpen:!1,verticalVal:this.vertical??"bottom",allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(i=this.LANG_COMPONENTS)==null?void 0:i.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(l=this.LANG_COMPONENTS)==null?void 0:l.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",this.filterString),this.defaultFilter(n)},setPreparedValues(t){let n=t||this.initialOptions;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.setPreparedValues(),this.allOptionsIsChecked=!1,this.selected=[],this.isMultiple?(this.$emit("update:modelValue",null),this.$emit("input",null),this.$emit("clear-value",null)):(this.$emit("update:modelValue",[]),this.$emit("input",[]),this.$emit("clear-value",[])),this.setPreparedValues()},clearValue(){this.clear(),this.setPreparedValues()},prepare(t,n=!0){return new Promise(e=>{const o={},a=[];let i=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),i=i.then(t)):i=i.then(()=>t),i.then(s=>(this.isLoading=!1,s.forEach(l=>{l.initiallyVisible=typeof l.visible>"u"?!0:l.visible,l.visible=l.initiallyVisible,l.readonly=!!l.readonly,l.checked=this.isMultiple?this.val!==null&&this.val.findIndex(u=>l.id==u)>-1:this.val!==null&&this.val==l.id,l.checked&&(!this.onlyEndNodes||!l.children)&&(o[l.id]=l),l.children&&(this.hasTreeChildren=!0,l.isChildrenVisible=!1),a.push(new Promise(u=>{l.children?this.prepare(l.children).then(([d,p])=>{l.children=d,this.parentAutoCheck&&(l.checked=this.checkIfOptionsChecked(l.children)),Object.assign(o,p),u(l)}):u(l)}))}),Promise.all(a).then(l=>{e([l,o])}))).catch(s=>{throw this.isLoading=!1,s})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let i=this.filterFunc(o.children,n);e+=i,i&&(o.isChildrenVisible=n.length>0||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=i<o.children.length&&!this.isBookmarkable),a?i||(a=!1):a=!!i}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked||n.readonly)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)},onClose(){this.isOpen=!1,this.filterString="",this.filterFunc(this.actualOptions,this.filterString),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur"),this.verticalVal=this.vertical??"bottom"},onOpen(){const t=document.documentElement.scrollHeight;this.isOpen=!0,this.vertical!=="bottom"&&this.$nextTick(()=>{document.documentElement.scrollHeight>t&&(this.verticalVal="top")})}},computed:{hasTrigger(){return!!this.$slots.trigger},hasTriggerContent(){return!!this.$slots.triggerContent},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10&&!this.alphabeticStyle},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:Ft,IbIconButton:ut,IbIcon:Le,IbDropdown:ir,IbInput:qr,List:Rr,"select-option":hd},directives:{Tooltip:Wt},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)},inheritAttrs:!1},vd={key:0,class:"tree-select-empty"},_d={key:1,class:"tree-select-default-empty tree-select-empty"},$d={key:5,ref:"infinityLoader"};function wd(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("ib-icon-button"),d=r.resolveComponent("ib-input"),p=r.resolveComponent("select-option"),f=r.resolveComponent("list"),c=r.resolveComponent("ib-dropdown"),h=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.errorMessage?(r.openBlock(),r.createBlock(s,{key:0,class:"tree-select-error"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps(Object.fromEntries(Object.entries(t.$attrs).filter(([v])=>v.startsWith("data-"))),{class:["tree-select",{...e.classList,"tree-select-custom-trigger-content":i.hasTriggerContent}]}),[r.createVNode(c,{disabled:a.isLoading||e.disable,"is-resizable":e.isResizable,vertical:a.verticalVal,class:r.normalizeClass({disable:e.disable}),ref:"dropdown",onClose:i.onClose,onOpen:i.onOpen},r.createSlots({body:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:r.normalizeStyle(i.treeDropPos),role:"listbox"},[e.isResizable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=v=>i.startResizing("left"))},null,32)):r.createCommentVNode("",!0),e.isResizable?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=v=>i.startResizing("right"))},null,544)),[[h,t.lang("resize_list","select"),void 0,{rightCenter:!0}]]):r.createCommentVNode("",!0),i.showSearch?(r.openBlock(),r.createBlock(d,{key:2,class:"tree-search",ref:"search",autocomplete:"off","show-icon":!0,value:a.filterString,debounce:e.searchDebounce,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=v=>i.filter(v,a.actualOptions)),onKeyup:r.withKeys(i.inputKeyupDown,["down"])},null,8,["value","debounce","aria-label","placeholder","onKeyup"])):r.createCommentVNode("",!0),r.createVNode(f,{ref:"list",role:"listbox",class:r.normalizeClass({"tree-select-list":!0,"has-hierarchy":i.hasHierarchy,"alphabetic-list":e.alphabeticStyle})},{default:r.withCtx(()=>[!i.requiredDependencyNotFilled&&!i.visibleOptionsCount&&i.hasEmptyMessage?(r.openBlock(),r.createElementBlock("div",vd,[r.renderSlot(t.$slots,"emptyMessage")])):!i.requiredDependencyNotFilled&&!i.visibleOptionsCount?(r.openBlock(),r.createElementBlock("div",_d,r.toDisplayString(a.actualStrings.emptyTitle),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",{class:"tree-select-empty"},r.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[r.vShow,i.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(r.openBlock(),r.createBlock(p,{key:2,option:{title:t.lang("none","select"),id:null,checked:i.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):r.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:3},r.renderList(a.actualBookmarkedOptions,v=>(r.openBlock(),r.createBlock(p,{key:"bookmark"+v.id,class:"bookmarked-option",option:v,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,role:"option",onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128)):r.createCommentVNode("",!0),i.requiredDependencyNotFilled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:4},[e.allOptions&&!e.alphabeticStyle&&e.isMultiple&&i.visibleOptionsCount&&!i.requiredDependencyNotFilled?(r.openBlock(),r.createBlock(p,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:i.visibleOptionsCount<i.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,role:"option",onCheck:i.manageAll,onOnFocus:n[9]||(n[9]=v=>a.focusedOptionId=v)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","alphabetic-style","onCheck"])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.actualOptions,v=>r.renderSlot(t.$slots,a.actualName,{key:e.name+v.value,option:v,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[r.withDirectives(r.createVNode(p,{option:v,"is-toggle":e.isToggle,name:a.actualName,role:"option","parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,"alphabetic-style":e.alphabeticStyle,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,onOnFocus:n[10]||(n[10]=m=>a.focusedOptionId=m)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","alphabetic-style","onCheck","onToggleBookmark"]),[[r.vShow,v.visible]])])),128))],64)),t.infiniteLoader?(r.openBlock(),r.createElementBlock("div",$d,null,512)):r.createCommentVNode("",!0)]),_:3},8,["class"])],6)]),_:2},[i.hasTrigger?{name:"trigger",fn:r.withCtx(()=>[r.renderSlot(t.$slots,"trigger",{selectedCount:i.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:r.withCtx(({isOpened:v})=>[r.createElementVNode("div",{role:"combobox",tabindex:"0",class:r.normalizeClass(["tree-choice",{"tree-choice-opened":v,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox","aria-expanded":v,onClick:n[2]||(n[2]=r.withModifiers(()=>{},["prevent"])),onBlur:n[3]||(n[3]=(...m)=>i.onBlur&&i.onBlur(...m)),onKeyup:[n[4]||(n[4]=r.withKeys((...m)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...m),["down"])),n[5]||(n[5]=r.withKeys((...m)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...m),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[i.hasTriggerContent?r.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:i.selectedKeys.length,isOpen:v}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[e.htmlOptionTitle?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass({placeholder:!i.selectStatus}),innerHTML:i.selectStatus||e.placeholder},null,10,["innerHTML"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass({placeholder:!i.selectStatus})},r.toDisplayString(i.selectStatus||e.placeholder),3))],64)),e.showClearButton?r.withDirectives((r.openBlock(),r.createBlock(u,{key:2,kind:"ghost",class:"button-clear","aria-label":"Clear selection",onClick:r.withModifiers(i.clearValue,["prevent"]),onKeypress:n[0]||(n[0]=r.withKeys(r.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[1]||(n[1]=r.withKeys(r.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:r.withKeys(r.withModifiers(i.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:r.withCtx(()=>[r.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[r.vShow,Object.keys(a.selected).length]]):r.createCommentVNode("",!0),r.createVNode(l,{name:v?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-expanded","aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","class","onClose","onOpen"])],16)],64)}const No=_e(bd,[["render",wd]]),kp="",kd={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},vertical:{type:String},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:kn,IbSelect:No}},Cd={class:"report-limit-selector"};function Od(t,n,e,o,a,i){const s=r.resolveComponent("ib-label"),l=r.resolveComponent("ib-select");return r.openBlock(),r.createElementBlock("div",Cd,[r.createVNode(s,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelSelect),1)]),_:1}),r.createVNode(l,{classList:"report-limit-selector-select",value:e.value,vertical:e.vertical,options:i.prepareOptions,"is-multiple":!1,"show-clear-button":!1,"aria-label":"Pagination",onInput:i.selectItem},null,8,["value","vertical","options","onInput"])])}const Ao=_e(kd,[["render",Od]]),Cp="",Ed={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0},vertical:{type:String}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitSelector(t){this.limitValue=t},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:qr,IbLabel:kn,IbLimitSelector:Ao,IbTooltip:ln}},Sd={class:"report-controls"},xd={class:"repot-pagination"},Td={class:"pagination-input"},Nd={class:"row-count"},Ad={class:"pagination-wrapper"},Dd=["onClick"];function Pd(t,n,e,o,a,i){const s=r.resolveComponent("ib-limit-selector"),l=r.resolveComponent("ib-label"),u=r.resolveComponent("ib-input"),d=r.resolveComponent("ib-icon"),p=r.resolveComponent("ib-tooltip"),f=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",Sd,[r.createVNode(s,{onSelect:i.changeLimit,value:a.limitValue,vertical:e.vertical,"label-select":e.labelSelect},null,8,["onSelect","value","vertical","label-select"]),r.createElementVNode("div",xd,[e.showPaginationInput?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(l,{for:"goToPage"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelInput),1)]),_:1}),r.createElementVNode("div",Td,[r.createVNode(u,{id:"goToPage",type:"number","hide-number-actions":"",debounce:500,onInput:i.onInput},null,8,["onInput"])])],64)):r.createCommentVNode("",!0),r.createElementVNode("div",Nd,r.toDisplayString(i.setCountOfRows+" of "+e.countRows),1),r.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=c=>i.onSelect(a.currentPage-1))},{default:r.withCtx(()=>[r.createVNode(d,{name:"chevron-back-outline"}),e.tooltipTextPrev?(r.openBlock(),r.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):r.createCommentVNode("",!0)]),_:1},8,["disabled"]),r.createElementVNode("ul",Ad,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.countPagePagination,(c,h)=>r.withDirectives((r.openBlock(),r.createElementBlock("li",{key:h,class:r.normalizeClass(["pagination-item",{active:h+1===a.currentPage,"dots-left":a.indexSpaceLeft===h+1,"dots-right":a.indexSpaceRight===h+1}]),onClick:v=>i.onSelect(h+1)},[r.createElementVNode("button",null,r.toDisplayString(h+1),1)],10,Dd)),[[r.vShow,i.showItem(h+1)]])),128))]),r.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===i.countPagePagination,onClick:n[1]||(n[1]=c=>i.onSelect(a.currentPage+1))},{default:r.withCtx(()=>[r.createVNode(d,{name:"chevron-forward-outline"}),e.tooltipTextNext?(r.openBlock(),r.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):r.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Id=_e(Ed,[["render",Pd]]),On={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},Op="",Bd={props:{states:{type:String,default:On.PROGRESS},progress:{type:[String,Number],default:0},ariaLabel:{type:String,required:!0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===On.SUCCESS?"checkmark-circle":this.states===On.FAILED||this.states===On.CANCELING||this.states===On.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Do=t=>(r.pushScopeId("data-v-a0217859"),t=t(),r.popScopeId(),t),Md={class:"ib-progress-bar-wrapper"},Ld=["aria-label","aria-valuenow"],Rd=[Do(()=>r.createElementVNode("div",{class:"gradient"},null,-1))],jd=Do(()=>r.createElementVNode("div",null,null,-1));function Vd(t,n,e,o,a,i){const s=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",Md,[r.createElementVNode("div",{class:r.normalizeClass(i.classes)},[r.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:r.normalizeStyle({width:e.progress+"%"})},Rd,12,Ld),jd],2),r.withDirectives(r.createVNode(s,{class:"status-icon",name:i.iconName},null,8,["name"]),[[r.vShow,i.iconName.length]])])}const qd=_e(Bd,[["render",Vd],["__scopeId","data-v-a0217859"]]),Fd={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
30
30
  <circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
31
31
  </svg>
32
32
  `,success:`
@@ -57,11 +57,11 @@
57
57
  <svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
58
58
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.20658 2.79237C4.59822 2.60495 5.03685 2.5 5.5 2.5C7.15685 2.5 8.5 3.84315 8.5 5.5C8.5 5.96315 8.39505 6.40178 8.20763 6.79342L9.6716 8.25739C10.1951 7.46696 10.5 6.51908 10.5 5.5C10.5 2.73858 8.26142 0.5 5.5 0.5C4.48092 0.5 3.53304 0.804877 2.74261 1.3284L4.20658 2.79237ZM2.79237 4.20658L1.3284 2.74261C0.804877 3.53304 0.5 4.48092 0.5 5.5C0.5 8.26142 2.73858 10.5 5.5 10.5C6.51908 10.5 7.46696 10.1951 8.25739 9.6716L6.79342 8.20763C6.40178 8.39505 5.96315 8.5 5.5 8.5C3.84315 8.5 2.5 7.15685 2.5 5.5C2.5 5.03685 2.60495 4.59822 2.79237 4.20658Z" fill="#677788"/>
59
59
  </svg>
60
- `},xp="",zd={props:{type:{type:String,default:"success"}},data(){return{icons:Hd}}},Ud={class:"status-indicator"},Kd=["innerHTML"];function Gd(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",Ud,[r.createElementVNode("div",{class:r.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,Kd),r.renderSlot(t.$slots,"default",{},void 0,!0)])}const Wd=_e(zd,[["render",Gd],["__scopeId","data-v-e696394e"]]),Tp="",Np="",Yd={name:"IbPanel",mixins:[Fi],props:{showExpandButton:{type:Boolean,default:!1},expandButtonTooltip:{type:String,default:""},isOpen:{type:Boolean,default:!0},error:{type:Boolean,default:!1},hideHeaderDivider:{type:Boolean,default:!1}},watch:{isOpen(){this.isOpenVal=this.isOpen},isOpenVal(){this.$emit("update:isOpen",this.isOpenVal)}},data(){return{isOpenVal:this.isOpen}},components:{IconButton:ut,Icon:Le},directives:{Tooltip:Wt},emits:["update:isOpen"]},Zd={class:"panel-head"},Jd={class:"head-title"},Xd={class:"divider"},Qd={class:"head-content"},eu={class:"panel-body"};function tu(t,n,e,o,a,i){const s=r.resolveComponent("icon"),l=r.resolveComponent("icon-button"),u=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-panel",{"panel-error":e.error}])},[r.createElementVNode("div",Zd,[r.createElementVNode("div",Jd,[r.renderSlot(t.$slots,"title",{},void 0,!0)]),r.withDirectives(r.createElementVNode("div",Xd,null,512),[[r.vShow,!e.hideHeaderDivider]]),r.createElementVNode("div",Qd,[r.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showExpandButton?r.withDirectives((r.openBlock(),r.createBlock(l,{key:0,class:r.normalizeClass({"toggle-visible-button":!0,active:a.isOpenVal}),kind:"ghost",type:"button",onClick:n[0]||(n[0]=d=>a.isOpenVal=!a.isOpenVal)},{default:r.withCtx(()=>[r.createVNode(s,{name:"chevron-down-outline"})]),_:1},8,["class"])),[[u,e.expandButtonTooltip]]):r.createCommentVNode("",!0)]),r.createVNode(r.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",eu,[r.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[r.vShow,a.isOpenVal]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const nu=_e(Yd,[["render",tu],["__scopeId","data-v-1f178fc0"]]),Ap="",ru={props:{showCloseIcon:{type:Boolean,default:!1},active:{type:Boolean,default:!1},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{hasIcon(){var t;return(t=this.$slots)==null?void 0:t.icon}},components:{Icon:Le}},iu=["disabled"],ou={key:0,class:"ib-chips-icon-wrapper"},au={key:1,class:"ib-chips-close-wrapper"};function lu(t,n,e,o,a,i){const s=r.resolveComponent("icon");return r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass({"ib-chips":!0,"ib-chips-active":e.active,"ib-chips-error":e.error,"ib-chips-disabled":e.disabled}),disabled:e.disabled},[i.hasIcon?(r.openBlock(),r.createElementBlock("span",ou,[r.renderSlot(t.$slots,"icon",{class:"ib-chips-icon"},void 0,!0)])):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0),e.showCloseIcon?(r.openBlock(),r.createElementBlock("span",au,[r.createVNode(s,{class:"ib-chips-icon",name:"close-outline"})])):r.createCommentVNode("",!0)],10,iu)}const su=_e(ru,[["render",lu],["__scopeId","data-v-7f6d49d7"]]),Dp="",cu={name:"IbInputGroup",props:{supportText:{type:String,default:""},disabled:{type:Boolean,default:!1}}},du={key:0,class:"support-text"};function uu(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-form-group",{disabled:e.disabled}])},[r.renderSlot(t.$slots,"default"),e.supportText.length?(r.openBlock(),r.createElementBlock("p",du,r.toDisplayString(e.supportText),1)):r.createCommentVNode("",!0)],2)}const fu=_e(cu,[["render",uu]]),Pp="",Hr={name:"IbInputGroup",props:{labelText:{type:String,default:""},required:{type:Boolean,required:!1},horizontal:{type:Boolean,default:!1},errorMessage:{type:String,default:""},infoText:{type:String,default:""},height:{type:String,default:"290px"},tooltipPosition:{type:String}},components:{IbLabel:kn,IbAlert:Ft}},Po=()=>{r.useCssVars(t=>({f99cce84:t.height}))},Io=Hr.setup;Hr.setup=Io?(t,n)=>(Po(),Io(t,n)):Po;const hu={class:"ib-checkbox-group-content"};function pu(t,n,e,o,a,i){const s=r.resolveComponent("ib-label"),l=r.resolveComponent("ib-alert");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-checkbox-group",{"ib-checkbox-group-horizontal":e.horizontal}])},[e.labelText.length?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-checkbox-group-label",required:e.required,"info-text":e.infoText,"tooltip-position":e.tooltipPosition},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelText),1)]),_:1},8,["required","info-text","tooltip-position"])):r.createCommentVNode("",!0),e.errorMessage.length?(r.openBlock(),r.createBlock(l,{key:1,class:"ib-error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",hu,[r.renderSlot(t.$slots,"default")])],2)}const mu=_e(Hr,[["render",pu]]),Ip="",gu={name:"IbRadio",props:{modelValue:"",label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return pt()}},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{uid:pt()}},mounted(){this.checked=this.isChecked},methods:{checkHandler(){this.$emit("update:modelValue",this.value)}},computed:{classes(){return{"ib-radio":!0,"has-error":this.error,"radio-filled":this.isChecked,"radio-disabled":this.disabled}},isChecked(){return this.modelValue===this.value}}},yu=t=>(r.pushScopeId("data-v-903afa0e"),t=t(),r.popScopeId(),t),bu=["for","aria-checked"],vu=["name","id","value","checked","disabled"],_u=yu(()=>r.createElementVNode("span",{class:"ib-radio-input"},null,-1)),$u={key:0,class:"ib-radio-label"};function wu(t,n,e,o,a,i){var s,l;return r.openBlock(),r.createElementBlock("label",{role:"radio",class:r.normalizeClass(i.classes),for:e.id,"aria-checked":i.isChecked},[r.createElementVNode("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:i.isChecked,disabled:e.disabled,ref:"radio",onChange:n[0]||(n[0]=(...u)=>i.checkHandler&&i.checkHandler(...u))},null,40,vu),r.createElementVNode("span",{class:r.normalizeClass(["ib-radio-body",{"without-text":!((s=e.label)!=null&&s.length)}])},[_u,(l=e.label)!=null&&l.length?(r.openBlock(),r.createElementBlock("span",$u,r.toDisplayString(e.label),1)):r.createCommentVNode("",!0)],2)],10,bu)}const ku=_e(gu,[["render",wu],["__scopeId","data-v-903afa0e"]]),Bp="",Cu={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},Ou={class:"character-count"},Eu={key:0,class:"val-limit"},Su={class:"val-length"},xu={class:"val-limit"},Tu={key:2,class:"val-length error"};function Nu(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",Ou,[e.characterLength?e.characterLimit>=e.characterLength?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("p",Su,r.toDisplayString(e.characterLength),1),r.createTextVNode(" / "),r.createElementVNode("p",xu,r.toDisplayString(e.characterLimit),1)],64)):(r.openBlock(),r.createElementBlock("p",Tu,r.toDisplayString(e.characterLimit-e.characterLength),1)):(r.openBlock(),r.createElementBlock("p",Eu,"Max "+r.toDisplayString(e.characterLimit),1))])}const zr=_e(Cu,[["render",Nu],["__scopeId","data-v-be1f2629"]]),Mp="",Au={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return pt()}},error:{type:Boolean,default:!1},characterLimit:{type:Number,default:null},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""},value:{type:String,default:""}},watch:{value(){this.val=this.value},val(){this.$emit("update:value",this.val)}},data(){return{val:this.value}},methods:{onInput(){this.$emit("input",this.val)},onBlur(){this.$emit("blur",this.val)}},computed:{characterOverLimit(){return!!this.characterLimit&&this.val.length>this.characterLimit},classes(){const t=["ib-textarea"];return(this.error||this.errorMessage.length||this.characterOverLimit)&&t.push("error"),t}},components:{IbAlert:Ft,IbCharacterCount:zr},emits:["input","blur","update:value"],inheritAttrs:!1},Du=["disabled"],Pu={class:"textarea-actions"};function Iu(t,n,e,o,a,i){const s=r.resolveComponent("ib-character-count"),l=r.resolveComponent("ib-alert");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["textarea-wrapper",{disabled:e.disabled,hasActins:t.$slots.actions}])},[e.characterLimit?(r.openBlock(),r.createBlock(s,{key:0,"character-limit":e.characterLimit,"character-length":a.val.length},null,8,["character-limit","character-length"])):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(l,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1},512),[[r.vShow,e.errorMessage.length]]),r.withDirectives(r.createVNode(l,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[r.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),r.withDirectives(r.createElementVNode("textarea",r.mergeProps(t.$attrs,{"onUpdate:modelValue":n[0]||(n[0]=u=>a.val=u),onInput:n[1]||(n[1]=(...u)=>i.onInput&&i.onInput(...u)),onBlur:n[2]||(n[2]=(...u)=>i.onBlur&&i.onBlur(...u)),class:["ib-textarea",i.classes],disabled:e.disabled}),null,16,Du),[[r.vModelText,a.val]]),r.createElementVNode("div",Pu,[r.renderSlot(t.$slots,"actions",{},void 0,!0)])],2)}const Bu=_e(Au,[["render",Iu],["__scopeId","data-v-8cf7f825"]]);var Ur=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],cn={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return typeof console<"u"&&console.warn(t)},getWeek:function(t){var n=new Date(t.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var e=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},En={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var n=t%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},at=function(t,n){return n===void 0&&(n=2),("000"+t).slice(n*-1)},gt=function(t){return t===!0?1:0};function Bo(t,n){var e;return function(){var o=this,a=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(o,a)},n)}}var Kr=function(t){return t instanceof Array?t:[t]};function et(t,n,e){if(e===!0)return t.classList.add(n);t.classList.remove(n)}function De(t,n,e){var o=window.document.createElement(t);return n=n||"",e=e||"",o.className=n,e!==void 0&&(o.textContent=e),o}function ar(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Mo(t,n){if(n(t))return t;if(t.parentNode)return Mo(t.parentNode,n)}function lr(t,n){var e=De("div","numInputWrapper"),o=De("input","numInput "+t),a=De("span","arrowUp"),i=De("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),n!==void 0)for(var s in n)o.setAttribute(s,n[s]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ft(t){try{if(typeof t.composedPath=="function"){var n=t.composedPath();return n[0]}return t.target}catch{return t.target}}var Gr=function(){},sr=function(t,n,e){return e.months[n?"shorthand":"longhand"][t]},Mu={D:Gr,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*gt(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(parseFloat(n)*1e3)},W:function(t,n,e){var o=parseInt(n),a=new Date(t.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:Gr,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:Gr,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},Yt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Sn={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[Sn.w(t,n,e)]},F:function(t,n,e){return sr(Sn.n(t,n,e)-1,!1,n)},G:function(t,n,e){return at(Sn.h(t,n,e))},H:function(t){return at(t.getHours())},J:function(t,n){return n.ordinal!==void 0?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[gt(t.getHours()>11)]},M:function(t,n){return sr(t.getMonth(),!0,n)},S:function(t){return at(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return at(t.getFullYear(),4)},d:function(t){return at(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return at(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return at(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},Lo=function(t){var n=t.config,e=n===void 0?cn:n,o=t.l10n,a=o===void 0?En:o,i=t.isMobile,s=i===void 0?!1:i;return function(l,u,d){var p=d||a;return e.formatDate!==void 0&&!s?e.formatDate(l,u,p):u.split("").map(function(f,c,h){return Sn[f]&&h[c-1]!=="\\"?Sn[f](l,p,e):f!=="\\"?f:""}).join("")}},Wr=function(t){var n=t.config,e=n===void 0?cn:n,o=t.l10n,a=o===void 0?En:o;return function(i,s,l,u){if(!(i!==0&&!i)){var d=u||a,p,f=i;if(i instanceof Date)p=new Date(i.getTime());else if(typeof i!="string"&&i.toFixed!==void 0)p=new Date(i);else if(typeof i=="string"){var c=s||(e||cn).dateFormat,h=String(i).trim();if(h==="today")p=new Date,l=!0;else if(e&&e.parseDate)p=e.parseDate(i,c);else if(/Z$/.test(h)||/GMT$/.test(h))p=new Date(i);else{for(var v=void 0,m=[],_=0,y=0,g="";_<c.length;_++){var w=c[_],b=w==="\\",k=c[_-1]==="\\"||b;if(Yt[w]&&!k){g+=Yt[w];var T=new RegExp(g).exec(i);T&&(v=!0)&&m[w!=="Y"?"push":"unshift"]({fn:Mu[w],val:T[++y]})}else b||(g+=".")}p=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(S){var x=S.fn,M=S.val;return p=x(p,M,d)||p}),p=v?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&p.setHours(0,0,0,0),p}}};function ht(t,n,e){return e===void 0&&(e=!0),e!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):t.getTime()-n.getTime()}var Lu=function(t,n,e){return t>Math.min(n,e)&&t<Math.max(n,e)},Yr=function(t,n,e){return t*3600+n*60+e},Ru=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},ju={DAY:864e5};function Zr(t){var n=t.defaultHour,e=t.defaultMinute,o=t.defaultSeconds;if(t.minDate!==void 0){var a=t.minDate.getHours(),i=t.minDate.getMinutes(),s=t.minDate.getSeconds();n<a&&(n=a),n===a&&e<i&&(e=i),n===a&&e===i&&o<s&&(o=t.minDate.getSeconds())}if(t.maxDate!==void 0){var l=t.maxDate.getHours(),u=t.maxDate.getMinutes();n=Math.min(n,l),n===l&&(e=Math.min(u,e)),n===l&&e===u&&(o=t.maxDate.getSeconds())}return{hours:n,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var o=function(l){l&&Object.keys(l).forEach(function(u){return t[u]=l[u]})},a=0,i=n;a<i.length;a++){var s=i[a];o(s)}return t});var Ye=globalThis&&globalThis.__assign||function(){return Ye=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ye.apply(this,arguments)},Ro=globalThis&&globalThis.__spreadArrays||function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;for(var o=Array(t),a=0,n=0;n<e;n++)for(var i=arguments[n],s=0,l=i.length;s<l;s++,a++)o[a]=i[s];return o},Vu=300;function qu(t,n){var e={config:Ye(Ye({},cn),Ve.defaultConfig),l10n:En};e.parseDate=Wr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=m,e._setHoursFromDate=c,e._positionCalendar=te,e.changeMonth=D,e.changeYear=z,e.clear=A,e.close=I,e.onMouseOver=he,e._createElement=De,e.createDay=T,e.destroy=U,e.isEnabled=Z,e.jumpToDate=g,e.updateValue=it,e.open=ke,e.redraw=ie,e.set=ze,e.setDate=Ae,e.toggle=Xt;function o(){e.utils={getDaysInMonth:function(B,j){return B===void 0&&(B=e.currentMonth),j===void 0&&(j=e.currentYear),B===1&&(j%4===0&&j%100!==0||j%400===0)?29:e.l10n.daysInMonth[B]}}}function a(){e.element=e.input=t,e.isOpen=!1,Re(),Q(),rt(),Ee(),o(),e.isMobile||k(),y(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&c(e.config.noCalendar?e.latestSelectedDateObj:void 0),it(!1)),l();var B=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&B&&te(),Pe("onReady")}function i(){var B;return((B=e.calendarContainer)===null||B===void 0?void 0:B.getRootNode()).activeElement||document.activeElement}function s(B){return B.bind(e)}function l(){var B=e.config;B.weekNumbers===!1&&B.showMonths===1||B.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var j=(e.days.offsetWidth+1)*B.showMonths;e.daysContainer.style.width=j+"px",e.calendarContainer.style.width=j+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function u(B){if(e.selectedDates.length===0){var j=e.config.minDate===void 0||ht(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),G=Zr(e.config);j.setHours(G.hours,G.minutes,G.seconds,j.getMilliseconds()),e.selectedDates=[j],e.latestSelectedDateObj=j}B!==void 0&&B.type!=="blur"&&Qt(B);var X=e._input.value;f(),it(),e._input.value!==X&&e._debouncedChange()}function d(B,j){return B%12+12*gt(j===e.l10n.amPM[1])}function p(B){switch(B%24){case 0:case 12:return 12;default:return B%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var B=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,j=(parseInt(e.minuteElement.value,10)||0)%60,G=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(B=d(B,e.amPM.textContent));var X=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ht(e.latestSelectedDateObj,e.config.minDate,!0)===0,oe=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ht(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var se=Yr(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),ye=Yr(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Yr(B,j,G);if(ue>ye&&ue<se){var Ce=Ru(se);B=Ce[0],j=Ce[1],G=Ce[2]}}else{if(oe){var de=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;B=Math.min(B,de.getHours()),B===de.getHours()&&(j=Math.min(j,de.getMinutes())),j===de.getMinutes()&&(G=Math.min(G,de.getSeconds()))}if(X){var ge=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;B=Math.max(B,ge.getHours()),B===ge.getHours()&&j<ge.getMinutes()&&(j=ge.getMinutes()),j===ge.getMinutes()&&(G=Math.max(G,ge.getSeconds()))}}h(B,j,G)}}function c(B){var j=B||e.latestSelectedDateObj;j&&j instanceof Date&&h(j.getHours(),j.getMinutes(),j.getSeconds())}function h(B,j,G){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(B%24,j,G||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=at(e.config.time_24hr?B:(12+B)%12+12*gt(B%12===0)),e.minuteElement.value=at(j),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[gt(B>=12)]),e.secondElement!==void 0&&(e.secondElement.value=at(G)))}function v(B){var j=ft(B),G=parseInt(j.value)+(B.delta||0);(G/1e3>1||B.key==="Enter"&&!/[^\d]/.test(G.toString()))&&z(G)}function m(B,j,G,X){if(j instanceof Array)return j.forEach(function(oe){return m(B,oe,G,X)});if(B instanceof Array)return B.forEach(function(oe){return m(oe,j,G,X)});B.addEventListener(j,G,X),e._handlers.push({remove:function(){return B.removeEventListener(j,G,X)}})}function _(){Pe("onChange")}function y(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(G){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+G+"]"),function(X){return m(X,"click",e[G])})}),e.isMobile){Bn();return}var B=Bo(be,50);if(e._debouncedChange=Bo(_,Vu),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(e.daysContainer,"mouseover",function(G){e.config.mode==="range"&&he(ft(G))}),m(e._input,"keydown",ce),e.calendarContainer!==void 0&&m(e.calendarContainer,"keydown",ce),!e.config.inline&&!e.config.static&&m(window,"resize",B),window.ontouchstart!==void 0?m(window.document,"touchstart",L):m(window.document,"mousedown",L),m(window.document,"focus",L,{capture:!0}),e.config.clickOpens===!0&&(m(e._input,"focus",e.open),m(e._input,"click",e.open)),e.daysContainer!==void 0&&(m(e.monthNav,"click",It),m(e.monthNav,["keyup","increment"],v),m(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var j=function(G){return ft(G).select()};m(e.timeContainer,["increment"],u),m(e.timeContainer,"blur",u,{capture:!0}),m(e.timeContainer,"click",w),m([e.hourElement,e.minuteElement],["focus","click"],j),e.secondElement!==void 0&&m(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&m(e.amPM,"click",function(G){u(G)})}e.config.allowInput&&m(e._input,"blur",ne)}function g(B,j){var G=B!==void 0?e.parseDate(B):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),X=e.currentYear,oe=e.currentMonth;try{G!==void 0&&(e.currentYear=G.getFullYear(),e.currentMonth=G.getMonth())}catch(se){se.message="Invalid date supplied: "+G,e.config.errorHandler(se)}j&&e.currentYear!==X&&(Pe("onYearChange"),N()),j&&(e.currentYear!==X||e.currentMonth!==oe)&&Pe("onMonthChange"),e.redraw()}function w(B){var j=ft(B);~j.className.indexOf("arrow")&&b(B,j.classList.contains("arrowUp")?1:-1)}function b(B,j,G){var X=B&&ft(B),oe=G||X&&X.parentNode&&X.parentNode.firstChild,se=zt("increment");se.delta=j,oe&&oe.dispatchEvent(se)}function k(){var B=window.document.createDocumentFragment();if(e.calendarContainer=De("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(B.appendChild(W()),e.innerContainer=De("div","flatpickr-innerContainer"),e.config.weekNumbers){var j=V(),G=j.weekWrapper,X=j.weekNumbers;e.innerContainer.appendChild(G),e.weekNumbers=X,e.weekWrapper=G}e.rContainer=De("div","flatpickr-rContainer"),e.rContainer.appendChild(re()),e.daysContainer||(e.daysContainer=De("div","flatpickr-days"),e.daysContainer.tabIndex=-1),O(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),B.appendChild(e.innerContainer)}e.config.enableTime&&B.appendChild(Y()),et(e.calendarContainer,"rangeMode",e.config.mode==="range"),et(e.calendarContainer,"animate",e.config.animate===!0),et(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(B);var oe=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!oe&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var se=De("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(se,e.element),se.appendChild(e.element),e.altInput&&se.appendChild(e.altInput),se.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function T(B,j,G,X){var oe=Z(j,!0),se=De("span",B,j.getDate().toString());return se.dateObj=j,se.$i=X,se.setAttribute("aria-label",e.formatDate(j,e.config.ariaDateFormat)),B.indexOf("hidden")===-1&&ht(j,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),oe?(se.tabIndex=-1,kt(j)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(et(se,"startRange",e.selectedDates[0]&&ht(j,e.selectedDates[0],!0)===0),et(se,"endRange",e.selectedDates[1]&&ht(j,e.selectedDates[1],!0)===0),B==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Pt(j)&&!kt(j)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&B!=="prevMonthDay"&&X%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(j)+"</span>"),Pe("onDayCreate",se),se}function S(B){B.focus(),e.config.mode==="range"&&he(B)}function x(B){for(var j=B>0?0:e.config.showMonths-1,G=B>0?e.config.showMonths:-1,X=j;X!=G;X+=B)for(var oe=e.daysContainer.children[X],se=B>0?0:oe.children.length-1,ye=B>0?oe.children.length:-1,ue=se;ue!=ye;ue+=B){var Ce=oe.children[ue];if(Ce.className.indexOf("hidden")===-1&&Z(Ce.dateObj))return Ce}}function M(B,j){for(var G=B.className.indexOf("Month")===-1?B.dateObj.getMonth():e.currentMonth,X=j>0?e.config.showMonths:-1,oe=j>0?1:-1,se=G-e.currentMonth;se!=X;se+=oe)for(var ye=e.daysContainer.children[se],ue=G-e.currentMonth===se?B.$i+j:j<0?ye.children.length-1:0,Ce=ye.children.length,de=ue;de>=0&&de<Ce&&de!=(j>0?Ce:-1);de+=oe){var ge=ye.children[de];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj)&&Math.abs(B.$i-de)>=Math.abs(j))return S(ge)}e.changeMonth(oe),E(x(oe),0)}function E(B,j){var G=i(),X=J(G||document.body),oe=B!==void 0?B:X?G:e.selectedDateElem!==void 0&&J(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&J(e.todayDateElem)?e.todayDateElem:x(j>0?1:-1);oe===void 0?e._input.focus():X?M(oe,j):S(oe)}function C(B,j){for(var G=(new Date(B,j,1).getDay()-e.l10n.firstDayOfWeek+7)%7,X=e.utils.getDaysInMonth((j-1+12)%12,B),oe=e.utils.getDaysInMonth(j,B),se=window.document.createDocumentFragment(),ye=e.config.showMonths>1,ue=ye?"prevMonthDay hidden":"prevMonthDay",Ce=ye?"nextMonthDay hidden":"nextMonthDay",de=X+1-G,ge=0;de<=X;de++,ge++)se.appendChild(T("flatpickr-day "+ue,new Date(B,j-1,de),de,ge));for(de=1;de<=oe;de++,ge++)se.appendChild(T("flatpickr-day",new Date(B,j,de),de,ge));for(var Te=oe+1;Te<=42-G&&(e.config.showMonths===1||ge%7!==0);Te++,ge++)se.appendChild(T("flatpickr-day "+Ce,new Date(B,j+1,Te%oe),Te,ge));var Be=De("div","dayContainer");return Be.appendChild(se),Be}function O(){if(e.daysContainer!==void 0){ar(e.daysContainer),e.weekNumbers&&ar(e.weekNumbers);for(var B=document.createDocumentFragment(),j=0;j<e.config.showMonths;j++){var G=new Date(e.currentYear,e.currentMonth,1);G.setMonth(e.currentMonth+j),B.appendChild(C(G.getFullYear(),G.getMonth()))}e.daysContainer.appendChild(B),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&he()}}function N(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var B=function(X){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&X<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&X>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var j=0;j<12;j++)if(B(j)){var G=De("option","flatpickr-monthDropdown-month");G.value=new Date(e.currentYear,j).getMonth().toString(),G.textContent=sr(j,e.config.shorthandCurrentMonth,e.l10n),G.tabIndex=-1,e.currentMonth===j&&(G.selected=!0),e.monthsDropdownContainer.appendChild(G)}}}function R(){var B=De("div","flatpickr-month"),j=window.document.createDocumentFragment(),G;e.config.showMonths>1||e.config.monthSelectorType==="static"?G=De("span","cur-month"):(e.monthsDropdownContainer=De("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),m(e.monthsDropdownContainer,"change",function(ye){var ue=ft(ye),Ce=parseInt(ue.value,10);e.changeMonth(Ce-e.currentMonth),Pe("onMonthChange")}),N(),G=e.monthsDropdownContainer);var X=lr("cur-year",{tabindex:"-1"}),oe=X.getElementsByTagName("input")[0];oe.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&oe.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(oe.setAttribute("max",e.config.maxDate.getFullYear().toString()),oe.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var se=De("div","flatpickr-current-month");return se.appendChild(G),se.appendChild(X),j.appendChild(se),B.appendChild(j),{container:B,yearElement:oe,monthElement:G}}function q(){ar(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var B=e.config.showMonths;B--;){var j=R();e.yearElements.push(j.yearElement),e.monthElements.push(j.monthElement),e.monthNav.appendChild(j.container)}e.monthNav.appendChild(e.nextMonthNav)}function W(){return e.monthNav=De("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=De("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=De("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,q(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(B){e.__hidePrevMonthArrow!==B&&(et(e.prevMonthNav,"flatpickr-disabled",B),e.__hidePrevMonthArrow=B)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(B){e.__hideNextMonthArrow!==B&&(et(e.nextMonthNav,"flatpickr-disabled",B),e.__hideNextMonthArrow=B)}}),e.currentYearElement=e.yearElements[0],Ze(),e.monthNav}function Y(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var B=Zr(e.config);e.timeContainer=De("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var j=De("span","flatpickr-time-separator",":"),G=lr("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=G.getElementsByTagName("input")[0];var X=lr("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=X.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?B.hours:p(B.hours)),e.minuteElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():B.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(G),e.timeContainer.appendChild(j),e.timeContainer.appendChild(X),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var oe=lr("flatpickr-second");e.secondElement=oe.getElementsByTagName("input")[0],e.secondElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():B.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(De("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(oe)}return e.config.time_24hr||(e.amPM=De("span","flatpickr-am-pm",e.l10n.amPM[gt((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function re(){e.weekdayContainer?ar(e.weekdayContainer):e.weekdayContainer=De("div","flatpickr-weekdays");for(var B=e.config.showMonths;B--;){var j=De("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(j)}return K(),e.weekdayContainer}function K(){if(e.weekdayContainer){var B=e.l10n.firstDayOfWeek,j=Ro(e.l10n.weekdays.shorthand);B>0&&B<j.length&&(j=Ro(j.splice(B,j.length),j.splice(0,B)));for(var G=e.config.showMonths;G--;)e.weekdayContainer.children[G].innerHTML=`
60
+ `},Sp="",Hd={props:{type:{type:String,default:"success"}},data(){return{icons:Fd}}},zd={class:"status-indicator"},Ud=["innerHTML"];function Kd(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",zd,[r.createElementVNode("div",{class:r.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,Ud),r.renderSlot(t.$slots,"default",{},void 0,!0)])}const Gd=_e(Hd,[["render",Kd],["__scopeId","data-v-e696394e"]]),xp="",Tp="",Wd={name:"IbPanel",mixins:[Fi],props:{showExpandButton:{type:Boolean,default:!1},expandButtonTooltip:{type:String,default:""},isOpen:{type:Boolean,default:!0},error:{type:Boolean,default:!1},hideHeaderDivider:{type:Boolean,default:!1}},watch:{isOpen(){this.isOpenVal=this.isOpen},isOpenVal(){this.$emit("update:isOpen",this.isOpenVal)}},data(){return{isOpenVal:this.isOpen}},components:{IconButton:ut,Icon:Le},directives:{Tooltip:Wt},emits:["update:isOpen"]},Yd={class:"panel-head"},Zd={class:"head-title"},Jd={class:"divider"},Xd={class:"head-content"},Qd={class:"panel-body"};function eu(t,n,e,o,a,i){const s=r.resolveComponent("icon"),l=r.resolveComponent("icon-button"),u=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-panel",{"panel-error":e.error}])},[r.createElementVNode("div",Yd,[r.createElementVNode("div",Zd,[r.renderSlot(t.$slots,"title",{},void 0,!0)]),r.withDirectives(r.createElementVNode("div",Jd,null,512),[[r.vShow,!e.hideHeaderDivider]]),r.createElementVNode("div",Xd,[r.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showExpandButton?r.withDirectives((r.openBlock(),r.createBlock(l,{key:0,class:r.normalizeClass({"toggle-visible-button":!0,active:a.isOpenVal}),kind:"ghost",type:"button",onClick:n[0]||(n[0]=d=>a.isOpenVal=!a.isOpenVal)},{default:r.withCtx(()=>[r.createVNode(s,{name:"chevron-down-outline"})]),_:1},8,["class"])),[[u,e.expandButtonTooltip]]):r.createCommentVNode("",!0)]),r.createVNode(r.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",Qd,[r.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[r.vShow,a.isOpenVal]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const tu=_e(Wd,[["render",eu],["__scopeId","data-v-1f178fc0"]]),Np="",nu={props:{showCloseIcon:{type:Boolean,default:!1},active:{type:Boolean,default:!1},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{hasIcon(){var t;return(t=this.$slots)==null?void 0:t.icon}},components:{Icon:Le}},ru=["disabled"],iu={key:0,class:"ib-chips-icon-wrapper"},ou={key:1,class:"ib-chips-close-wrapper"};function au(t,n,e,o,a,i){const s=r.resolveComponent("icon");return r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass({"ib-chips":!0,"ib-chips-active":e.active,"ib-chips-error":e.error,"ib-chips-disabled":e.disabled}),disabled:e.disabled},[i.hasIcon?(r.openBlock(),r.createElementBlock("span",iu,[r.renderSlot(t.$slots,"icon",{class:"ib-chips-icon"},void 0,!0)])):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0),e.showCloseIcon?(r.openBlock(),r.createElementBlock("span",ou,[r.createVNode(s,{class:"ib-chips-icon",name:"close-outline"})])):r.createCommentVNode("",!0)],10,ru)}const lu=_e(nu,[["render",au],["__scopeId","data-v-7f6d49d7"]]),Ap="",su={name:"IbInputGroup",props:{supportText:{type:String,default:""},disabled:{type:Boolean,default:!1}}},cu={key:0,class:"support-text"};function du(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-form-group",{disabled:e.disabled}])},[r.renderSlot(t.$slots,"default"),e.supportText.length?(r.openBlock(),r.createElementBlock("p",cu,r.toDisplayString(e.supportText),1)):r.createCommentVNode("",!0)],2)}const uu=_e(su,[["render",du]]),Dp="",Hr={name:"IbInputGroup",props:{labelText:{type:String,default:""},required:{type:Boolean,required:!1},horizontal:{type:Boolean,default:!1},errorMessage:{type:String,default:""},infoText:{type:String,default:""},height:{type:String,default:"290px"},tooltipPosition:{type:String}},components:{IbLabel:kn,IbAlert:Ft}},Po=()=>{r.useCssVars(t=>({f99cce84:t.height}))},Io=Hr.setup;Hr.setup=Io?(t,n)=>(Po(),Io(t,n)):Po;const fu={class:"ib-checkbox-group-content"};function hu(t,n,e,o,a,i){const s=r.resolveComponent("ib-label"),l=r.resolveComponent("ib-alert");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-checkbox-group",{"ib-checkbox-group-horizontal":e.horizontal}])},[e.labelText.length?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-checkbox-group-label",required:e.required,"info-text":e.infoText,"tooltip-position":e.tooltipPosition},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.labelText),1)]),_:1},8,["required","info-text","tooltip-position"])):r.createCommentVNode("",!0),e.errorMessage.length?(r.openBlock(),r.createBlock(l,{key:1,class:"ib-error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",fu,[r.renderSlot(t.$slots,"default")])],2)}const pu=_e(Hr,[["render",hu]]),Pp="",mu={name:"IbRadio",props:{modelValue:"",label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return pt()}},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{uid:pt()}},mounted(){this.checked=this.isChecked},methods:{checkHandler(){this.$emit("update:modelValue",this.value)}},computed:{classes(){return{"ib-radio":!0,"has-error":this.error,"radio-filled":this.isChecked,"radio-disabled":this.disabled}},isChecked(){return this.modelValue===this.value}}},gu=t=>(r.pushScopeId("data-v-903afa0e"),t=t(),r.popScopeId(),t),yu=["for","aria-checked"],bu=["name","id","value","checked","disabled"],vu=gu(()=>r.createElementVNode("span",{class:"ib-radio-input"},null,-1)),_u={key:0,class:"ib-radio-label"};function $u(t,n,e,o,a,i){var s,l;return r.openBlock(),r.createElementBlock("label",{role:"radio",class:r.normalizeClass(i.classes),for:e.id,"aria-checked":i.isChecked},[r.createElementVNode("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:i.isChecked,disabled:e.disabled,ref:"radio",onChange:n[0]||(n[0]=(...u)=>i.checkHandler&&i.checkHandler(...u))},null,40,bu),r.createElementVNode("span",{class:r.normalizeClass(["ib-radio-body",{"without-text":!((s=e.label)!=null&&s.length)}])},[vu,(l=e.label)!=null&&l.length?(r.openBlock(),r.createElementBlock("span",_u,r.toDisplayString(e.label),1)):r.createCommentVNode("",!0)],2)],10,yu)}const wu=_e(mu,[["render",$u],["__scopeId","data-v-903afa0e"]]),Ip="",ku={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},Cu={class:"character-count"},Ou={key:0,class:"val-limit"},Eu={class:"val-length"},Su={class:"val-limit"},xu={key:2,class:"val-length error"};function Tu(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",Cu,[e.characterLength?e.characterLimit>=e.characterLength?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("p",Eu,r.toDisplayString(e.characterLength),1),r.createTextVNode(" / "),r.createElementVNode("p",Su,r.toDisplayString(e.characterLimit),1)],64)):(r.openBlock(),r.createElementBlock("p",xu,r.toDisplayString(e.characterLimit-e.characterLength),1)):(r.openBlock(),r.createElementBlock("p",Ou,"Max "+r.toDisplayString(e.characterLimit),1))])}const zr=_e(ku,[["render",Tu],["__scopeId","data-v-be1f2629"]]),Bp="",Nu={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return pt()}},error:{type:Boolean,default:!1},characterLimit:{type:Number,default:null},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""},value:{type:String,default:""}},watch:{value(){this.val=this.value},val(){this.$emit("update:value",this.val)}},data(){return{val:this.value}},methods:{onInput(){this.$emit("input",this.val)},onBlur(){this.$emit("blur",this.val)}},computed:{characterOverLimit(){return!!this.characterLimit&&this.val.length>this.characterLimit},classes(){const t=["ib-textarea"];return(this.error||this.errorMessage.length||this.characterOverLimit)&&t.push("error"),t}},components:{IbAlert:Ft,IbCharacterCount:zr},emits:["input","blur","update:value"],inheritAttrs:!1},Au=["disabled"],Du={class:"textarea-actions"};function Pu(t,n,e,o,a,i){const s=r.resolveComponent("ib-character-count"),l=r.resolveComponent("ib-alert");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["textarea-wrapper",{disabled:e.disabled,hasActins:t.$slots.actions}])},[e.characterLimit?(r.openBlock(),r.createBlock(s,{key:0,"character-limit":e.characterLimit,"character-length":a.val.length},null,8,["character-limit","character-length"])):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(l,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1},512),[[r.vShow,e.errorMessage.length]]),r.withDirectives(r.createVNode(l,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[r.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),r.withDirectives(r.createElementVNode("textarea",r.mergeProps(t.$attrs,{"onUpdate:modelValue":n[0]||(n[0]=u=>a.val=u),onInput:n[1]||(n[1]=(...u)=>i.onInput&&i.onInput(...u)),onBlur:n[2]||(n[2]=(...u)=>i.onBlur&&i.onBlur(...u)),class:["ib-textarea",i.classes],disabled:e.disabled}),null,16,Au),[[r.vModelText,a.val]]),r.createElementVNode("div",Du,[r.renderSlot(t.$slots,"actions",{},void 0,!0)])],2)}const Iu=_e(Nu,[["render",Pu],["__scopeId","data-v-8cf7f825"]]);var Ur=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],cn={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return typeof console<"u"&&console.warn(t)},getWeek:function(t){var n=new Date(t.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var e=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},En={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var n=t%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},at=function(t,n){return n===void 0&&(n=2),("000"+t).slice(n*-1)},gt=function(t){return t===!0?1:0};function Bo(t,n){var e;return function(){var o=this,a=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(o,a)},n)}}var Kr=function(t){return t instanceof Array?t:[t]};function et(t,n,e){if(e===!0)return t.classList.add(n);t.classList.remove(n)}function De(t,n,e){var o=window.document.createElement(t);return n=n||"",e=e||"",o.className=n,e!==void 0&&(o.textContent=e),o}function ar(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Mo(t,n){if(n(t))return t;if(t.parentNode)return Mo(t.parentNode,n)}function lr(t,n){var e=De("div","numInputWrapper"),o=De("input","numInput "+t),a=De("span","arrowUp"),i=De("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),n!==void 0)for(var s in n)o.setAttribute(s,n[s]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ft(t){try{if(typeof t.composedPath=="function"){var n=t.composedPath();return n[0]}return t.target}catch{return t.target}}var Gr=function(){},sr=function(t,n,e){return e.months[n?"shorthand":"longhand"][t]},Bu={D:Gr,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*gt(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(parseFloat(n)*1e3)},W:function(t,n,e){var o=parseInt(n),a=new Date(t.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:Gr,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:Gr,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},Yt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Sn={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[Sn.w(t,n,e)]},F:function(t,n,e){return sr(Sn.n(t,n,e)-1,!1,n)},G:function(t,n,e){return at(Sn.h(t,n,e))},H:function(t){return at(t.getHours())},J:function(t,n){return n.ordinal!==void 0?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[gt(t.getHours()>11)]},M:function(t,n){return sr(t.getMonth(),!0,n)},S:function(t){return at(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return at(t.getFullYear(),4)},d:function(t){return at(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return at(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return at(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},Lo=function(t){var n=t.config,e=n===void 0?cn:n,o=t.l10n,a=o===void 0?En:o,i=t.isMobile,s=i===void 0?!1:i;return function(l,u,d){var p=d||a;return e.formatDate!==void 0&&!s?e.formatDate(l,u,p):u.split("").map(function(f,c,h){return Sn[f]&&h[c-1]!=="\\"?Sn[f](l,p,e):f!=="\\"?f:""}).join("")}},Wr=function(t){var n=t.config,e=n===void 0?cn:n,o=t.l10n,a=o===void 0?En:o;return function(i,s,l,u){if(!(i!==0&&!i)){var d=u||a,p,f=i;if(i instanceof Date)p=new Date(i.getTime());else if(typeof i!="string"&&i.toFixed!==void 0)p=new Date(i);else if(typeof i=="string"){var c=s||(e||cn).dateFormat,h=String(i).trim();if(h==="today")p=new Date,l=!0;else if(e&&e.parseDate)p=e.parseDate(i,c);else if(/Z$/.test(h)||/GMT$/.test(h))p=new Date(i);else{for(var v=void 0,m=[],_=0,y=0,g="";_<c.length;_++){var w=c[_],b=w==="\\",k=c[_-1]==="\\"||b;if(Yt[w]&&!k){g+=Yt[w];var T=new RegExp(g).exec(i);T&&(v=!0)&&m[w!=="Y"?"push":"unshift"]({fn:Bu[w],val:T[++y]})}else b||(g+=".")}p=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(S){var x=S.fn,M=S.val;return p=x(p,M,d)||p}),p=v?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&p.setHours(0,0,0,0),p}}};function ht(t,n,e){return e===void 0&&(e=!0),e!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):t.getTime()-n.getTime()}var Mu=function(t,n,e){return t>Math.min(n,e)&&t<Math.max(n,e)},Yr=function(t,n,e){return t*3600+n*60+e},Lu=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},Ru={DAY:864e5};function Zr(t){var n=t.defaultHour,e=t.defaultMinute,o=t.defaultSeconds;if(t.minDate!==void 0){var a=t.minDate.getHours(),i=t.minDate.getMinutes(),s=t.minDate.getSeconds();n<a&&(n=a),n===a&&e<i&&(e=i),n===a&&e===i&&o<s&&(o=t.minDate.getSeconds())}if(t.maxDate!==void 0){var l=t.maxDate.getHours(),u=t.maxDate.getMinutes();n=Math.min(n,l),n===l&&(e=Math.min(u,e)),n===l&&e===u&&(o=t.maxDate.getSeconds())}return{hours:n,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var o=function(l){l&&Object.keys(l).forEach(function(u){return t[u]=l[u]})},a=0,i=n;a<i.length;a++){var s=i[a];o(s)}return t});var Ye=globalThis&&globalThis.__assign||function(){return Ye=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ye.apply(this,arguments)},Ro=globalThis&&globalThis.__spreadArrays||function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;for(var o=Array(t),a=0,n=0;n<e;n++)for(var i=arguments[n],s=0,l=i.length;s<l;s++,a++)o[a]=i[s];return o},ju=300;function Vu(t,n){var e={config:Ye(Ye({},cn),Ve.defaultConfig),l10n:En};e.parseDate=Wr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=m,e._setHoursFromDate=c,e._positionCalendar=te,e.changeMonth=D,e.changeYear=z,e.clear=A,e.close=I,e.onMouseOver=he,e._createElement=De,e.createDay=T,e.destroy=U,e.isEnabled=Z,e.jumpToDate=g,e.updateValue=it,e.open=ke,e.redraw=ie,e.set=ze,e.setDate=Ae,e.toggle=Xt;function o(){e.utils={getDaysInMonth:function(B,j){return B===void 0&&(B=e.currentMonth),j===void 0&&(j=e.currentYear),B===1&&(j%4===0&&j%100!==0||j%400===0)?29:e.l10n.daysInMonth[B]}}}function a(){e.element=e.input=t,e.isOpen=!1,Re(),Q(),rt(),Ee(),o(),e.isMobile||k(),y(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&c(e.config.noCalendar?e.latestSelectedDateObj:void 0),it(!1)),l();var B=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&B&&te(),Pe("onReady")}function i(){var B;return((B=e.calendarContainer)===null||B===void 0?void 0:B.getRootNode()).activeElement||document.activeElement}function s(B){return B.bind(e)}function l(){var B=e.config;B.weekNumbers===!1&&B.showMonths===1||B.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var j=(e.days.offsetWidth+1)*B.showMonths;e.daysContainer.style.width=j+"px",e.calendarContainer.style.width=j+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function u(B){if(e.selectedDates.length===0){var j=e.config.minDate===void 0||ht(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),G=Zr(e.config);j.setHours(G.hours,G.minutes,G.seconds,j.getMilliseconds()),e.selectedDates=[j],e.latestSelectedDateObj=j}B!==void 0&&B.type!=="blur"&&Qt(B);var X=e._input.value;f(),it(),e._input.value!==X&&e._debouncedChange()}function d(B,j){return B%12+12*gt(j===e.l10n.amPM[1])}function p(B){switch(B%24){case 0:case 12:return 12;default:return B%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var B=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,j=(parseInt(e.minuteElement.value,10)||0)%60,G=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(B=d(B,e.amPM.textContent));var X=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ht(e.latestSelectedDateObj,e.config.minDate,!0)===0,oe=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ht(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var se=Yr(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),ye=Yr(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Yr(B,j,G);if(ue>ye&&ue<se){var Ce=Lu(se);B=Ce[0],j=Ce[1],G=Ce[2]}}else{if(oe){var de=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;B=Math.min(B,de.getHours()),B===de.getHours()&&(j=Math.min(j,de.getMinutes())),j===de.getMinutes()&&(G=Math.min(G,de.getSeconds()))}if(X){var ge=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;B=Math.max(B,ge.getHours()),B===ge.getHours()&&j<ge.getMinutes()&&(j=ge.getMinutes()),j===ge.getMinutes()&&(G=Math.max(G,ge.getSeconds()))}}h(B,j,G)}}function c(B){var j=B||e.latestSelectedDateObj;j&&j instanceof Date&&h(j.getHours(),j.getMinutes(),j.getSeconds())}function h(B,j,G){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(B%24,j,G||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=at(e.config.time_24hr?B:(12+B)%12+12*gt(B%12===0)),e.minuteElement.value=at(j),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[gt(B>=12)]),e.secondElement!==void 0&&(e.secondElement.value=at(G)))}function v(B){var j=ft(B),G=parseInt(j.value)+(B.delta||0);(G/1e3>1||B.key==="Enter"&&!/[^\d]/.test(G.toString()))&&z(G)}function m(B,j,G,X){if(j instanceof Array)return j.forEach(function(oe){return m(B,oe,G,X)});if(B instanceof Array)return B.forEach(function(oe){return m(oe,j,G,X)});B.addEventListener(j,G,X),e._handlers.push({remove:function(){return B.removeEventListener(j,G,X)}})}function _(){Pe("onChange")}function y(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(G){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+G+"]"),function(X){return m(X,"click",e[G])})}),e.isMobile){Bn();return}var B=Bo(be,50);if(e._debouncedChange=Bo(_,ju),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(e.daysContainer,"mouseover",function(G){e.config.mode==="range"&&he(ft(G))}),m(e._input,"keydown",ce),e.calendarContainer!==void 0&&m(e.calendarContainer,"keydown",ce),!e.config.inline&&!e.config.static&&m(window,"resize",B),window.ontouchstart!==void 0?m(window.document,"touchstart",L):m(window.document,"mousedown",L),m(window.document,"focus",L,{capture:!0}),e.config.clickOpens===!0&&(m(e._input,"focus",e.open),m(e._input,"click",e.open)),e.daysContainer!==void 0&&(m(e.monthNav,"click",It),m(e.monthNav,["keyup","increment"],v),m(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var j=function(G){return ft(G).select()};m(e.timeContainer,["increment"],u),m(e.timeContainer,"blur",u,{capture:!0}),m(e.timeContainer,"click",w),m([e.hourElement,e.minuteElement],["focus","click"],j),e.secondElement!==void 0&&m(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&m(e.amPM,"click",function(G){u(G)})}e.config.allowInput&&m(e._input,"blur",ne)}function g(B,j){var G=B!==void 0?e.parseDate(B):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),X=e.currentYear,oe=e.currentMonth;try{G!==void 0&&(e.currentYear=G.getFullYear(),e.currentMonth=G.getMonth())}catch(se){se.message="Invalid date supplied: "+G,e.config.errorHandler(se)}j&&e.currentYear!==X&&(Pe("onYearChange"),N()),j&&(e.currentYear!==X||e.currentMonth!==oe)&&Pe("onMonthChange"),e.redraw()}function w(B){var j=ft(B);~j.className.indexOf("arrow")&&b(B,j.classList.contains("arrowUp")?1:-1)}function b(B,j,G){var X=B&&ft(B),oe=G||X&&X.parentNode&&X.parentNode.firstChild,se=zt("increment");se.delta=j,oe&&oe.dispatchEvent(se)}function k(){var B=window.document.createDocumentFragment();if(e.calendarContainer=De("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(B.appendChild(W()),e.innerContainer=De("div","flatpickr-innerContainer"),e.config.weekNumbers){var j=V(),G=j.weekWrapper,X=j.weekNumbers;e.innerContainer.appendChild(G),e.weekNumbers=X,e.weekWrapper=G}e.rContainer=De("div","flatpickr-rContainer"),e.rContainer.appendChild(re()),e.daysContainer||(e.daysContainer=De("div","flatpickr-days"),e.daysContainer.tabIndex=-1),O(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),B.appendChild(e.innerContainer)}e.config.enableTime&&B.appendChild(Y()),et(e.calendarContainer,"rangeMode",e.config.mode==="range"),et(e.calendarContainer,"animate",e.config.animate===!0),et(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(B);var oe=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!oe&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var se=De("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(se,e.element),se.appendChild(e.element),e.altInput&&se.appendChild(e.altInput),se.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function T(B,j,G,X){var oe=Z(j,!0),se=De("span",B,j.getDate().toString());return se.dateObj=j,se.$i=X,se.setAttribute("aria-label",e.formatDate(j,e.config.ariaDateFormat)),B.indexOf("hidden")===-1&&ht(j,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),oe?(se.tabIndex=-1,kt(j)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(et(se,"startRange",e.selectedDates[0]&&ht(j,e.selectedDates[0],!0)===0),et(se,"endRange",e.selectedDates[1]&&ht(j,e.selectedDates[1],!0)===0),B==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Pt(j)&&!kt(j)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&B!=="prevMonthDay"&&X%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(j)+"</span>"),Pe("onDayCreate",se),se}function S(B){B.focus(),e.config.mode==="range"&&he(B)}function x(B){for(var j=B>0?0:e.config.showMonths-1,G=B>0?e.config.showMonths:-1,X=j;X!=G;X+=B)for(var oe=e.daysContainer.children[X],se=B>0?0:oe.children.length-1,ye=B>0?oe.children.length:-1,ue=se;ue!=ye;ue+=B){var Ce=oe.children[ue];if(Ce.className.indexOf("hidden")===-1&&Z(Ce.dateObj))return Ce}}function M(B,j){for(var G=B.className.indexOf("Month")===-1?B.dateObj.getMonth():e.currentMonth,X=j>0?e.config.showMonths:-1,oe=j>0?1:-1,se=G-e.currentMonth;se!=X;se+=oe)for(var ye=e.daysContainer.children[se],ue=G-e.currentMonth===se?B.$i+j:j<0?ye.children.length-1:0,Ce=ye.children.length,de=ue;de>=0&&de<Ce&&de!=(j>0?Ce:-1);de+=oe){var ge=ye.children[de];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj)&&Math.abs(B.$i-de)>=Math.abs(j))return S(ge)}e.changeMonth(oe),E(x(oe),0)}function E(B,j){var G=i(),X=J(G||document.body),oe=B!==void 0?B:X?G:e.selectedDateElem!==void 0&&J(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&J(e.todayDateElem)?e.todayDateElem:x(j>0?1:-1);oe===void 0?e._input.focus():X?M(oe,j):S(oe)}function C(B,j){for(var G=(new Date(B,j,1).getDay()-e.l10n.firstDayOfWeek+7)%7,X=e.utils.getDaysInMonth((j-1+12)%12,B),oe=e.utils.getDaysInMonth(j,B),se=window.document.createDocumentFragment(),ye=e.config.showMonths>1,ue=ye?"prevMonthDay hidden":"prevMonthDay",Ce=ye?"nextMonthDay hidden":"nextMonthDay",de=X+1-G,ge=0;de<=X;de++,ge++)se.appendChild(T("flatpickr-day "+ue,new Date(B,j-1,de),de,ge));for(de=1;de<=oe;de++,ge++)se.appendChild(T("flatpickr-day",new Date(B,j,de),de,ge));for(var Te=oe+1;Te<=42-G&&(e.config.showMonths===1||ge%7!==0);Te++,ge++)se.appendChild(T("flatpickr-day "+Ce,new Date(B,j+1,Te%oe),Te,ge));var Be=De("div","dayContainer");return Be.appendChild(se),Be}function O(){if(e.daysContainer!==void 0){ar(e.daysContainer),e.weekNumbers&&ar(e.weekNumbers);for(var B=document.createDocumentFragment(),j=0;j<e.config.showMonths;j++){var G=new Date(e.currentYear,e.currentMonth,1);G.setMonth(e.currentMonth+j),B.appendChild(C(G.getFullYear(),G.getMonth()))}e.daysContainer.appendChild(B),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&he()}}function N(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var B=function(X){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&X<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&X>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var j=0;j<12;j++)if(B(j)){var G=De("option","flatpickr-monthDropdown-month");G.value=new Date(e.currentYear,j).getMonth().toString(),G.textContent=sr(j,e.config.shorthandCurrentMonth,e.l10n),G.tabIndex=-1,e.currentMonth===j&&(G.selected=!0),e.monthsDropdownContainer.appendChild(G)}}}function R(){var B=De("div","flatpickr-month"),j=window.document.createDocumentFragment(),G;e.config.showMonths>1||e.config.monthSelectorType==="static"?G=De("span","cur-month"):(e.monthsDropdownContainer=De("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),m(e.monthsDropdownContainer,"change",function(ye){var ue=ft(ye),Ce=parseInt(ue.value,10);e.changeMonth(Ce-e.currentMonth),Pe("onMonthChange")}),N(),G=e.monthsDropdownContainer);var X=lr("cur-year",{tabindex:"-1"}),oe=X.getElementsByTagName("input")[0];oe.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&oe.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(oe.setAttribute("max",e.config.maxDate.getFullYear().toString()),oe.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var se=De("div","flatpickr-current-month");return se.appendChild(G),se.appendChild(X),j.appendChild(se),B.appendChild(j),{container:B,yearElement:oe,monthElement:G}}function q(){ar(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var B=e.config.showMonths;B--;){var j=R();e.yearElements.push(j.yearElement),e.monthElements.push(j.monthElement),e.monthNav.appendChild(j.container)}e.monthNav.appendChild(e.nextMonthNav)}function W(){return e.monthNav=De("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=De("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=De("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,q(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(B){e.__hidePrevMonthArrow!==B&&(et(e.prevMonthNav,"flatpickr-disabled",B),e.__hidePrevMonthArrow=B)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(B){e.__hideNextMonthArrow!==B&&(et(e.nextMonthNav,"flatpickr-disabled",B),e.__hideNextMonthArrow=B)}}),e.currentYearElement=e.yearElements[0],Ze(),e.monthNav}function Y(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var B=Zr(e.config);e.timeContainer=De("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var j=De("span","flatpickr-time-separator",":"),G=lr("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=G.getElementsByTagName("input")[0];var X=lr("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=X.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?B.hours:p(B.hours)),e.minuteElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():B.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(G),e.timeContainer.appendChild(j),e.timeContainer.appendChild(X),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var oe=lr("flatpickr-second");e.secondElement=oe.getElementsByTagName("input")[0],e.secondElement.value=at(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():B.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(De("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(oe)}return e.config.time_24hr||(e.amPM=De("span","flatpickr-am-pm",e.l10n.amPM[gt((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function re(){e.weekdayContainer?ar(e.weekdayContainer):e.weekdayContainer=De("div","flatpickr-weekdays");for(var B=e.config.showMonths;B--;){var j=De("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(j)}return K(),e.weekdayContainer}function K(){if(e.weekdayContainer){var B=e.l10n.firstDayOfWeek,j=Ro(e.l10n.weekdays.shorthand);B>0&&B<j.length&&(j=Ro(j.splice(B,j.length),j.splice(0,B)));for(var G=e.config.showMonths;G--;)e.weekdayContainer.children[G].innerHTML=`
61
61
  <span class='flatpickr-weekday'>
62
62
  `+j.join("</span><span class='flatpickr-weekday'>")+`
63
63
  </span>
64
- `}}function V(){e.calendarContainer.classList.add("hasWeeks");var B=De("div","flatpickr-weekwrapper");B.appendChild(De("span","flatpickr-weekday",e.l10n.weekAbbreviation));var j=De("div","flatpickr-weeks");return B.appendChild(j),{weekWrapper:B,weekNumbers:j}}function D(B,j){j===void 0&&(j=!0);var G=j?B:B-e.currentMonth;G<0&&e._hidePrevMonthArrow===!0||G>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=G,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Pe("onYearChange"),N()),O(),Pe("onMonthChange"),Ze())}function A(B,j){if(B===void 0&&(B=!0),j===void 0&&(j=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,j===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var G=Zr(e.config),X=G.hours,oe=G.minutes,se=G.seconds;h(X,oe,se)}e.redraw(),B&&Pe("onChange")}function I(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Pe("onClose")}function U(){e.config!==void 0&&Pe("onDestroy");for(var B=e._handlers.length;B--;)e._handlers[B].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var j=e.calendarContainer.parentNode;if(j.lastChild&&j.removeChild(j.lastChild),j.parentNode){for(;j.firstChild;)j.parentNode.insertBefore(j.firstChild,j);j.parentNode.removeChild(j)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(G){try{delete e[G]}catch{}})}function F(B){return e.calendarContainer.contains(B)}function L(B){if(e.isOpen&&!e.config.inline){var j=ft(B),G=F(j),X=j===e.input||j===e.altInput||e.element.contains(j)||B.path&&B.path.indexOf&&(~B.path.indexOf(e.input)||~B.path.indexOf(e.altInput)),oe=!X&&!G&&!F(B.relatedTarget),se=!e.config.ignoredFocusElements.some(function(ye){return ye.contains(j)});oe&&se&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&u(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function z(B){if(!(!B||e.config.minDate&&B<e.config.minDate.getFullYear()||e.config.maxDate&&B>e.config.maxDate.getFullYear())){var j=B,G=e.currentYear!==j;e.currentYear=j||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),G&&(e.redraw(),Pe("onYearChange"),N())}}function Z(B,j){var G;j===void 0&&(j=!0);var X=e.parseDate(B,void 0,j);if(e.config.minDate&&X&&ht(X,e.config.minDate,j!==void 0?j:!e.minDateHasTime)<0||e.config.maxDate&&X&&ht(X,e.config.maxDate,j!==void 0?j:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(X===void 0)return!1;for(var oe=!!e.config.enable,se=(G=e.config.enable)!==null&&G!==void 0?G:e.config.disable,ye=0,ue=void 0;ye<se.length;ye++){if(ue=se[ye],typeof ue=="function"&&ue(X))return oe;if(ue instanceof Date&&X!==void 0&&ue.getTime()===X.getTime())return oe;if(typeof ue=="string"){var Ce=e.parseDate(ue,void 0,!0);return Ce&&Ce.getTime()===X.getTime()?oe:!oe}else if(typeof ue=="object"&&X!==void 0&&ue.from&&ue.to&&X.getTime()>=ue.from.getTime()&&X.getTime()<=ue.to.getTime())return oe}return!oe}function J(B){return e.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(B):!1}function ne(B){var j=B.target===e._input,G=e._input.value.trimEnd()!==Ct();j&&G&&!(B.relatedTarget&&F(B.relatedTarget))&&e.setDate(e._input.value,!0,B.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function ce(B){var j=ft(B),G=e.config.wrap?t.contains(j):j===e._input,X=e.config.allowInput,oe=e.isOpen&&(!X||!G),se=e.config.inline&&G&&!X;if(B.keyCode===13&&G){if(X)return e.setDate(e._input.value,!0,j===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),j.blur();e.open()}else if(F(j)||oe||se){var ye=!!e.timeContainer&&e.timeContainer.contains(j);switch(B.keyCode){case 13:ye?(B.preventDefault(),u(),$e()):me(B);break;case 27:B.preventDefault(),$e();break;case 8:case 46:G&&!e.config.allowInput&&(B.preventDefault(),e.clear());break;case 37:case 39:if(!ye&&!G){B.preventDefault();var ue=i();if(e.daysContainer!==void 0&&(X===!1||ue&&J(ue))){var Ce=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),D(Ce),E(x(1),0)):E(void 0,Ce)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:B.preventDefault();var de=B.keyCode===40?1:-1;e.daysContainer&&j.$i!==void 0||j===e.input||j===e.altInput?B.ctrlKey?(B.stopPropagation(),z(e.currentYear-de),E(x(1),0)):ye||E(void 0,de*7):j===e.currentYearElement?z(e.currentYear-de):e.config.enableTime&&(!ye&&e.hourElement&&e.hourElement.focus(),u(B),e._debouncedChange());break;case 9:if(ye){var ge=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(Ge){return Ge}),Te=ge.indexOf(j);if(Te!==-1){var Be=ge[Te+(B.shiftKey?-1:1)];B.preventDefault(),(Be||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(j)&&B.shiftKey&&(B.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&j===e.amPM)switch(B.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],f(),it();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],f(),it();break}(G||F(j))&&Pe("onKeyDown",B)}function he(B,j){if(j===void 0&&(j="flatpickr-day"),!(e.selectedDates.length!==1||B&&(!B.classList.contains(j)||B.classList.contains("flatpickr-disabled")))){for(var G=B?B.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),X=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),oe=Math.min(G,e.selectedDates[0].getTime()),se=Math.max(G,e.selectedDates[0].getTime()),ye=!1,ue=0,Ce=0,de=oe;de<se;de+=ju.DAY)Z(new Date(de),!0)||(ye=ye||de>oe&&de<se,de<X&&(!ue||de>ue)?ue=de:de>X&&(!Ce||de<Ce)&&(Ce=de));var ge=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+j));ge.forEach(function(Te){var Be=Te.dateObj,Ge=Be.getTime(),Bt=ue>0&&Ge<ue||Ce>0&&Ge>Ce;if(Bt){Te.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ot){Te.classList.remove(Ot)});return}else if(ye&&!Bt)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ot){Te.classList.remove(Ot)}),B!==void 0&&(B.classList.add(G<=e.selectedDates[0].getTime()?"startRange":"endRange"),X<G&&Ge===X?Te.classList.add("startRange"):X>G&&Ge===X&&Te.classList.add("endRange"),Ge>=ue&&(Ce===0||Ge<=Ce)&&Lu(Ge,X,G)&&Te.classList.add("inRange"))})}}function be(){e.isOpen&&!e.config.static&&!e.config.inline&&te()}function ke(B,j){if(j===void 0&&(j=e._positionElement),e.isMobile===!0){if(B){B.preventDefault();var G=ft(B);G&&G.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Pe("onOpen");return}else if(e._input.disabled||e.config.inline)return;var X=e.isOpen;e.isOpen=!0,X||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Pe("onOpen"),te(j)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(B===void 0||!e.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Oe(B){return function(j){var G=e.config["_"+B+"Date"]=e.parseDate(j,e.config.dateFormat),X=e.config["_"+(B==="min"?"max":"min")+"Date"];G!==void 0&&(e[B==="min"?"minDateHasTime":"maxDateHasTime"]=G.getHours()>0||G.getMinutes()>0||G.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(oe){return Z(oe)}),!e.selectedDates.length&&B==="min"&&c(G),it()),e.daysContainer&&(ie(),G!==void 0?e.currentYearElement[B]=G.getFullYear().toString():e.currentYearElement.removeAttribute(B),e.currentYearElement.disabled=!!X&&G!==void 0&&X.getFullYear()===G.getFullYear())}}function Re(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],j=Ye(Ye({},JSON.parse(JSON.stringify(t.dataset||{}))),n),G={};e.config.parseDate=j.parseDate,e.config.formatDate=j.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(ge){e.config._enable=wt(ge)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(ge){e.config._disable=wt(ge)}});var X=j.mode==="time";if(!j.dateFormat&&(j.enableTime||X)){var oe=Ve.defaultConfig.dateFormat||cn.dateFormat;G.dateFormat=j.noCalendar||X?"H:i"+(j.enableSeconds?":S":""):oe+" H:i"+(j.enableSeconds?":S":"")}if(j.altInput&&(j.enableTime||X)&&!j.altFormat){var se=Ve.defaultConfig.altFormat||cn.altFormat;G.altFormat=j.noCalendar||X?"h:i"+(j.enableSeconds?":S K":" K"):se+(" h:i"+(j.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Oe("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Oe("max")});var ye=function(ge){return function(Te){e.config[ge==="min"?"_minTime":"_maxTime"]=e.parseDate(Te,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:ye("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:ye("max")}),j.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,G,j);for(var ue=0;ue<B.length;ue++)e.config[B[ue]]=e.config[B[ue]]===!0||e.config[B[ue]]==="true";Ur.filter(function(ge){return e.config[ge]!==void 0}).forEach(function(ge){e.config[ge]=Kr(e.config[ge]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ue=0;ue<e.config.plugins.length;ue++){var Ce=e.config.plugins[ue](e)||{};for(var de in Ce)Ur.indexOf(de)>-1?e.config[de]=Kr(Ce[de]).map(s).concat(e.config[de]):typeof j[de]>"u"&&(e.config[de]=Ce[de])}j.altInputClass||(e.config.altInputClass=Me().className+" "+e.config.altInputClass),Pe("onParseConfig")}function Me(){return e.config.wrap?t.querySelector("[data-input]"):t}function Q(){typeof e.config.locale!="object"&&typeof Ve.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Ye(Ye({},Ve.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Ve.l10ns[e.config.locale]:void 0),Yt.D="("+e.l10n.weekdays.shorthand.join("|")+")",Yt.l="("+e.l10n.weekdays.longhand.join("|")+")",Yt.M="("+e.l10n.months.shorthand.join("|")+")",Yt.F="("+e.l10n.months.longhand.join("|")+")",Yt.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var B=Ye(Ye({},n),JSON.parse(JSON.stringify(t.dataset||{})));B.time_24hr===void 0&&Ve.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Lo(e),e.parseDate=Wr({config:e.config,l10n:e.l10n})}function te(B){if(typeof e.config.position=="function")return void e.config.position(e,B);if(e.calendarContainer!==void 0){Pe("onPreCalendarPosition");var j=B||e._positionElement,G=Array.prototype.reduce.call(e.calendarContainer.children,function(Je,Fn){return Je+Fn.offsetHeight},0),X=e.calendarContainer.offsetWidth,oe=e.config.position.split(" "),se=oe[0],ye=oe.length>1?oe[1]:null,ue=j.getBoundingClientRect(),Ce=window.innerHeight-ue.bottom,de=se==="above"||se!=="below"&&Ce<G&&ue.top>G,ge=window.pageYOffset+ue.top+(de?-G-2:j.offsetHeight+2);if(et(e.calendarContainer,"arrowTop",!de),et(e.calendarContainer,"arrowBottom",de),!e.config.inline){var Te=window.pageXOffset+ue.left,Be=!1,Ge=!1;ye==="center"?(Te-=(X-ue.width)/2,Be=!0):ye==="right"&&(Te-=X-ue.width,Ge=!0),et(e.calendarContainer,"arrowLeft",!Be&&!Ge),et(e.calendarContainer,"arrowCenter",Be),et(e.calendarContainer,"arrowRight",Ge);var Bt=window.document.body.offsetWidth-(window.pageXOffset+ue.right),Ot=Te+X>window.document.body.offsetWidth,Mn=Bt+X>window.document.body.offsetWidth;if(et(e.calendarContainer,"rightMost",Ot),!e.config.static)if(e.calendarContainer.style.top=ge+"px",!Ot)e.calendarContainer.style.left=Te+"px",e.calendarContainer.style.right="auto";else if(!Mn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Bt+"px";else{var en=ae();if(en===void 0)return;var Ue=window.document.body.offsetWidth,Ln=Math.max(0,Ue/2-X/2),Rn=".flatpickr-calendar.centerMost:before",jn=".flatpickr-calendar.centerMost:after",Vn=en.cssRules.length,qn="{left:"+ue.left+"px;right:auto;}";et(e.calendarContainer,"rightMost",!1),et(e.calendarContainer,"centerMost",!0),en.insertRule(Rn+","+jn+qn,Vn),e.calendarContainer.style.left=Ln+"px",e.calendarContainer.style.right="auto"}}}}function ae(){for(var B=null,j=0;j<document.styleSheets.length;j++){var G=document.styleSheets[j];if(G.cssRules){try{G.cssRules}catch{continue}B=G;break}}return B??le()}function le(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function ie(){e.config.noCalendar||e.isMobile||(N(),Ze(),O())}function $e(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function me(B){B.preventDefault(),B.stopPropagation();var j=function(ge){return ge.classList&&ge.classList.contains("flatpickr-day")&&!ge.classList.contains("flatpickr-disabled")&&!ge.classList.contains("notAllowed")},G=Mo(ft(B),j);if(G!==void 0){var X=G,oe=e.latestSelectedDateObj=new Date(X.dateObj.getTime()),se=(oe.getMonth()<e.currentMonth||oe.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=X,e.config.mode==="single")e.selectedDates=[oe];else if(e.config.mode==="multiple"){var ye=kt(oe);ye?e.selectedDates.splice(parseInt(ye),1):e.selectedDates.push(oe)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=oe,e.selectedDates.push(oe),ht(oe,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ge,Te){return ge.getTime()-Te.getTime()}));if(f(),se){var ue=e.currentYear!==oe.getFullYear();e.currentYear=oe.getFullYear(),e.currentMonth=oe.getMonth(),ue&&(Pe("onYearChange"),N()),Pe("onMonthChange")}if(Ze(),O(),it(),!se&&e.config.mode!=="range"&&e.config.showMonths===1?S(X):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var Ce=e.config.mode==="single"&&!e.config.enableTime,de=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(Ce||de)&&$e()}_()}}var ve={locale:[Q,K],showMonths:[q,l,re],minDate:[g],maxDate:[g],positionElement:[Jt],clickOpens:[function(){e.config.clickOpens===!0?(m(e._input,"focus",e.open),m(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function ze(B,j){if(B!==null&&typeof B=="object"){Object.assign(e.config,B);for(var G in B)ve[G]!==void 0&&ve[G].forEach(function(X){return X()})}else e.config[B]=j,ve[B]!==void 0?ve[B].forEach(function(X){return X()}):Ur.indexOf(B)>-1&&(e.config[B]=Kr(j));e.redraw(),it(!0)}function qe(B,j){var G=[];if(B instanceof Array)G=B.map(function(X){return e.parseDate(X,j)});else if(B instanceof Date||typeof B=="number")G=[e.parseDate(B,j)];else if(typeof B=="string")switch(e.config.mode){case"single":case"time":G=[e.parseDate(B,j)];break;case"multiple":G=B.split(e.config.conjunction).map(function(X){return e.parseDate(X,j)});break;case"range":G=B.split(e.l10n.rangeSeparator).map(function(X){return e.parseDate(X,j)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));e.selectedDates=e.config.allowInvalidPreload?G:G.filter(function(X){return X instanceof Date&&Z(X,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(X,oe){return X.getTime()-oe.getTime()})}function Ae(B,j,G){if(j===void 0&&(j=!1),G===void 0&&(G=e.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return e.clear(j);qe(B,G),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),g(void 0,j),c(),e.selectedDates.length===0&&e.clear(!1),it(j),j&&Pe("onChange")}function wt(B){return B.slice().map(function(j){return typeof j=="string"||typeof j=="number"||j instanceof Date?e.parseDate(j,void 0,!0):j&&typeof j=="object"&&j.from&&j.to?{from:e.parseDate(j.from,void 0),to:e.parseDate(j.to,void 0)}:j}).filter(function(j){return j})}function Ee(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var B=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);B&&qe(B,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function rt(){if(e.input=Me(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=De(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),Jt()}function Jt(){e._positionElement=e.config.positionElement||e._input}function Bn(){var B=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=De("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=B,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}m(e.mobileInput,"change",function(j){e.setDate(ft(j).value,!1,e.mobileFormatStr),Pe("onChange"),Pe("onClose")})}function Xt(B){if(e.isOpen===!0)return e.close();e.open(B)}function Pe(B,j){if(e.config!==void 0){var G=e.config[B];if(G!==void 0&&G.length>0)for(var X=0;G[X]&&X<G.length;X++)G[X](e.selectedDates,e.input.value,e,j);B==="onChange"&&(e.input.dispatchEvent(zt("change")),e.input.dispatchEvent(zt("input")))}}function zt(B){var j=document.createEvent("Event");return j.initEvent(B,!0,!0),j}function kt(B){for(var j=0;j<e.selectedDates.length;j++){var G=e.selectedDates[j];if(G instanceof Date&&ht(G,B)===0)return""+j}return!1}function Pt(B){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ht(B,e.selectedDates[0])>=0&&ht(B,e.selectedDates[1])<=0}function Ze(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(B,j){var G=new Date(e.currentYear,e.currentMonth,1);G.setMonth(e.currentMonth+j),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[j].textContent=sr(G.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=G.getMonth().toString(),B.value=G.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ct(B){var j=B||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(G){return e.formatDate(G,j)}).filter(function(G,X,oe){return e.config.mode!=="range"||e.config.enableTime||oe.indexOf(G)===X}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function it(B){B===void 0&&(B=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ct(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Ct(e.config.altFormat)),B!==!1&&Pe("onValueUpdate")}function It(B){var j=ft(B),G=e.prevMonthNav.contains(j),X=e.nextMonthNav.contains(j);G||X?D(G?-1:1):e.yearElements.indexOf(j)>=0?j.select():j.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):j.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Qt(B){B.preventDefault();var j=B.type==="keydown",G=ft(B),X=G;e.amPM!==void 0&&G===e.amPM&&(e.amPM.textContent=e.l10n.amPM[gt(e.amPM.textContent===e.l10n.amPM[0])]);var oe=parseFloat(X.getAttribute("min")),se=parseFloat(X.getAttribute("max")),ye=parseFloat(X.getAttribute("step")),ue=parseInt(X.value,10),Ce=B.delta||(j?B.which===38?1:-1:0),de=ue+ye*Ce;if(typeof X.value<"u"&&X.value.length===2){var ge=X===e.hourElement,Te=X===e.minuteElement;de<oe?(de=se+de+gt(!ge)+(gt(ge)&&gt(!e.amPM)),Te&&b(void 0,-1,e.hourElement)):de>se&&(de=X===e.hourElement?de-se-gt(!e.amPM):oe,Te&&b(void 0,1,e.hourElement)),e.amPM&&ge&&(ye===1?de+ue===23:Math.abs(de-ue)>ye)&&(e.amPM.textContent=e.l10n.amPM[gt(e.amPM.textContent===e.l10n.amPM[0])]),X.value=at(de)}}return a(),e}function dn(t,n){for(var e=Array.prototype.slice.call(t).filter(function(s){return s instanceof HTMLElement}),o=[],a=0;a<e.length;a++){var i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=qu(i,n||{}),o.push(i._flatpickr)}catch(s){console.error(s)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return dn(this,t)},HTMLElement.prototype.flatpickr=function(t){return dn([this],t)});var Ve=function(t,n){return typeof t=="string"?dn(window.document.querySelectorAll(t),n):t instanceof Node?dn([t],n):dn(t,n)};Ve.defaultConfig={},Ve.l10ns={en:Ye({},En),default:Ye({},En)},Ve.localize=function(t){Ve.l10ns.default=Ye(Ye({},Ve.l10ns.default),t)},Ve.setDefaults=function(t){Ve.defaultConfig=Ye(Ye({},Ve.defaultConfig),t)},Ve.parseDate=Wr({}),Ve.formatDate=Lo({}),Ve.compareDates=ht,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return dn(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=Ve);const Lp="";var jo={exports:{}};(function(t,n){(function(e,o){t.exports=o()})(je,function(){/*! *****************************************************************************
64
+ `}}function V(){e.calendarContainer.classList.add("hasWeeks");var B=De("div","flatpickr-weekwrapper");B.appendChild(De("span","flatpickr-weekday",e.l10n.weekAbbreviation));var j=De("div","flatpickr-weeks");return B.appendChild(j),{weekWrapper:B,weekNumbers:j}}function D(B,j){j===void 0&&(j=!0);var G=j?B:B-e.currentMonth;G<0&&e._hidePrevMonthArrow===!0||G>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=G,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Pe("onYearChange"),N()),O(),Pe("onMonthChange"),Ze())}function A(B,j){if(B===void 0&&(B=!0),j===void 0&&(j=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,j===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var G=Zr(e.config),X=G.hours,oe=G.minutes,se=G.seconds;h(X,oe,se)}e.redraw(),B&&Pe("onChange")}function I(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Pe("onClose")}function U(){e.config!==void 0&&Pe("onDestroy");for(var B=e._handlers.length;B--;)e._handlers[B].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var j=e.calendarContainer.parentNode;if(j.lastChild&&j.removeChild(j.lastChild),j.parentNode){for(;j.firstChild;)j.parentNode.insertBefore(j.firstChild,j);j.parentNode.removeChild(j)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(G){try{delete e[G]}catch{}})}function F(B){return e.calendarContainer.contains(B)}function L(B){if(e.isOpen&&!e.config.inline){var j=ft(B),G=F(j),X=j===e.input||j===e.altInput||e.element.contains(j)||B.path&&B.path.indexOf&&(~B.path.indexOf(e.input)||~B.path.indexOf(e.altInput)),oe=!X&&!G&&!F(B.relatedTarget),se=!e.config.ignoredFocusElements.some(function(ye){return ye.contains(j)});oe&&se&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&u(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function z(B){if(!(!B||e.config.minDate&&B<e.config.minDate.getFullYear()||e.config.maxDate&&B>e.config.maxDate.getFullYear())){var j=B,G=e.currentYear!==j;e.currentYear=j||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),G&&(e.redraw(),Pe("onYearChange"),N())}}function Z(B,j){var G;j===void 0&&(j=!0);var X=e.parseDate(B,void 0,j);if(e.config.minDate&&X&&ht(X,e.config.minDate,j!==void 0?j:!e.minDateHasTime)<0||e.config.maxDate&&X&&ht(X,e.config.maxDate,j!==void 0?j:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(X===void 0)return!1;for(var oe=!!e.config.enable,se=(G=e.config.enable)!==null&&G!==void 0?G:e.config.disable,ye=0,ue=void 0;ye<se.length;ye++){if(ue=se[ye],typeof ue=="function"&&ue(X))return oe;if(ue instanceof Date&&X!==void 0&&ue.getTime()===X.getTime())return oe;if(typeof ue=="string"){var Ce=e.parseDate(ue,void 0,!0);return Ce&&Ce.getTime()===X.getTime()?oe:!oe}else if(typeof ue=="object"&&X!==void 0&&ue.from&&ue.to&&X.getTime()>=ue.from.getTime()&&X.getTime()<=ue.to.getTime())return oe}return!oe}function J(B){return e.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(B):!1}function ne(B){var j=B.target===e._input,G=e._input.value.trimEnd()!==Ct();j&&G&&!(B.relatedTarget&&F(B.relatedTarget))&&e.setDate(e._input.value,!0,B.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function ce(B){var j=ft(B),G=e.config.wrap?t.contains(j):j===e._input,X=e.config.allowInput,oe=e.isOpen&&(!X||!G),se=e.config.inline&&G&&!X;if(B.keyCode===13&&G){if(X)return e.setDate(e._input.value,!0,j===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),j.blur();e.open()}else if(F(j)||oe||se){var ye=!!e.timeContainer&&e.timeContainer.contains(j);switch(B.keyCode){case 13:ye?(B.preventDefault(),u(),$e()):me(B);break;case 27:B.preventDefault(),$e();break;case 8:case 46:G&&!e.config.allowInput&&(B.preventDefault(),e.clear());break;case 37:case 39:if(!ye&&!G){B.preventDefault();var ue=i();if(e.daysContainer!==void 0&&(X===!1||ue&&J(ue))){var Ce=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),D(Ce),E(x(1),0)):E(void 0,Ce)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:B.preventDefault();var de=B.keyCode===40?1:-1;e.daysContainer&&j.$i!==void 0||j===e.input||j===e.altInput?B.ctrlKey?(B.stopPropagation(),z(e.currentYear-de),E(x(1),0)):ye||E(void 0,de*7):j===e.currentYearElement?z(e.currentYear-de):e.config.enableTime&&(!ye&&e.hourElement&&e.hourElement.focus(),u(B),e._debouncedChange());break;case 9:if(ye){var ge=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(Ge){return Ge}),Te=ge.indexOf(j);if(Te!==-1){var Be=ge[Te+(B.shiftKey?-1:1)];B.preventDefault(),(Be||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(j)&&B.shiftKey&&(B.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&j===e.amPM)switch(B.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],f(),it();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],f(),it();break}(G||F(j))&&Pe("onKeyDown",B)}function he(B,j){if(j===void 0&&(j="flatpickr-day"),!(e.selectedDates.length!==1||B&&(!B.classList.contains(j)||B.classList.contains("flatpickr-disabled")))){for(var G=B?B.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),X=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),oe=Math.min(G,e.selectedDates[0].getTime()),se=Math.max(G,e.selectedDates[0].getTime()),ye=!1,ue=0,Ce=0,de=oe;de<se;de+=Ru.DAY)Z(new Date(de),!0)||(ye=ye||de>oe&&de<se,de<X&&(!ue||de>ue)?ue=de:de>X&&(!Ce||de<Ce)&&(Ce=de));var ge=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+j));ge.forEach(function(Te){var Be=Te.dateObj,Ge=Be.getTime(),Bt=ue>0&&Ge<ue||Ce>0&&Ge>Ce;if(Bt){Te.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ot){Te.classList.remove(Ot)});return}else if(ye&&!Bt)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ot){Te.classList.remove(Ot)}),B!==void 0&&(B.classList.add(G<=e.selectedDates[0].getTime()?"startRange":"endRange"),X<G&&Ge===X?Te.classList.add("startRange"):X>G&&Ge===X&&Te.classList.add("endRange"),Ge>=ue&&(Ce===0||Ge<=Ce)&&Mu(Ge,X,G)&&Te.classList.add("inRange"))})}}function be(){e.isOpen&&!e.config.static&&!e.config.inline&&te()}function ke(B,j){if(j===void 0&&(j=e._positionElement),e.isMobile===!0){if(B){B.preventDefault();var G=ft(B);G&&G.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Pe("onOpen");return}else if(e._input.disabled||e.config.inline)return;var X=e.isOpen;e.isOpen=!0,X||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Pe("onOpen"),te(j)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(B===void 0||!e.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Oe(B){return function(j){var G=e.config["_"+B+"Date"]=e.parseDate(j,e.config.dateFormat),X=e.config["_"+(B==="min"?"max":"min")+"Date"];G!==void 0&&(e[B==="min"?"minDateHasTime":"maxDateHasTime"]=G.getHours()>0||G.getMinutes()>0||G.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(oe){return Z(oe)}),!e.selectedDates.length&&B==="min"&&c(G),it()),e.daysContainer&&(ie(),G!==void 0?e.currentYearElement[B]=G.getFullYear().toString():e.currentYearElement.removeAttribute(B),e.currentYearElement.disabled=!!X&&G!==void 0&&X.getFullYear()===G.getFullYear())}}function Re(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],j=Ye(Ye({},JSON.parse(JSON.stringify(t.dataset||{}))),n),G={};e.config.parseDate=j.parseDate,e.config.formatDate=j.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(ge){e.config._enable=wt(ge)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(ge){e.config._disable=wt(ge)}});var X=j.mode==="time";if(!j.dateFormat&&(j.enableTime||X)){var oe=Ve.defaultConfig.dateFormat||cn.dateFormat;G.dateFormat=j.noCalendar||X?"H:i"+(j.enableSeconds?":S":""):oe+" H:i"+(j.enableSeconds?":S":"")}if(j.altInput&&(j.enableTime||X)&&!j.altFormat){var se=Ve.defaultConfig.altFormat||cn.altFormat;G.altFormat=j.noCalendar||X?"h:i"+(j.enableSeconds?":S K":" K"):se+(" h:i"+(j.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Oe("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Oe("max")});var ye=function(ge){return function(Te){e.config[ge==="min"?"_minTime":"_maxTime"]=e.parseDate(Te,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:ye("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:ye("max")}),j.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,G,j);for(var ue=0;ue<B.length;ue++)e.config[B[ue]]=e.config[B[ue]]===!0||e.config[B[ue]]==="true";Ur.filter(function(ge){return e.config[ge]!==void 0}).forEach(function(ge){e.config[ge]=Kr(e.config[ge]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ue=0;ue<e.config.plugins.length;ue++){var Ce=e.config.plugins[ue](e)||{};for(var de in Ce)Ur.indexOf(de)>-1?e.config[de]=Kr(Ce[de]).map(s).concat(e.config[de]):typeof j[de]>"u"&&(e.config[de]=Ce[de])}j.altInputClass||(e.config.altInputClass=Me().className+" "+e.config.altInputClass),Pe("onParseConfig")}function Me(){return e.config.wrap?t.querySelector("[data-input]"):t}function Q(){typeof e.config.locale!="object"&&typeof Ve.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Ye(Ye({},Ve.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Ve.l10ns[e.config.locale]:void 0),Yt.D="("+e.l10n.weekdays.shorthand.join("|")+")",Yt.l="("+e.l10n.weekdays.longhand.join("|")+")",Yt.M="("+e.l10n.months.shorthand.join("|")+")",Yt.F="("+e.l10n.months.longhand.join("|")+")",Yt.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var B=Ye(Ye({},n),JSON.parse(JSON.stringify(t.dataset||{})));B.time_24hr===void 0&&Ve.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Lo(e),e.parseDate=Wr({config:e.config,l10n:e.l10n})}function te(B){if(typeof e.config.position=="function")return void e.config.position(e,B);if(e.calendarContainer!==void 0){Pe("onPreCalendarPosition");var j=B||e._positionElement,G=Array.prototype.reduce.call(e.calendarContainer.children,function(Je,Fn){return Je+Fn.offsetHeight},0),X=e.calendarContainer.offsetWidth,oe=e.config.position.split(" "),se=oe[0],ye=oe.length>1?oe[1]:null,ue=j.getBoundingClientRect(),Ce=window.innerHeight-ue.bottom,de=se==="above"||se!=="below"&&Ce<G&&ue.top>G,ge=window.pageYOffset+ue.top+(de?-G-2:j.offsetHeight+2);if(et(e.calendarContainer,"arrowTop",!de),et(e.calendarContainer,"arrowBottom",de),!e.config.inline){var Te=window.pageXOffset+ue.left,Be=!1,Ge=!1;ye==="center"?(Te-=(X-ue.width)/2,Be=!0):ye==="right"&&(Te-=X-ue.width,Ge=!0),et(e.calendarContainer,"arrowLeft",!Be&&!Ge),et(e.calendarContainer,"arrowCenter",Be),et(e.calendarContainer,"arrowRight",Ge);var Bt=window.document.body.offsetWidth-(window.pageXOffset+ue.right),Ot=Te+X>window.document.body.offsetWidth,Mn=Bt+X>window.document.body.offsetWidth;if(et(e.calendarContainer,"rightMost",Ot),!e.config.static)if(e.calendarContainer.style.top=ge+"px",!Ot)e.calendarContainer.style.left=Te+"px",e.calendarContainer.style.right="auto";else if(!Mn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Bt+"px";else{var en=ae();if(en===void 0)return;var Ue=window.document.body.offsetWidth,Ln=Math.max(0,Ue/2-X/2),Rn=".flatpickr-calendar.centerMost:before",jn=".flatpickr-calendar.centerMost:after",Vn=en.cssRules.length,qn="{left:"+ue.left+"px;right:auto;}";et(e.calendarContainer,"rightMost",!1),et(e.calendarContainer,"centerMost",!0),en.insertRule(Rn+","+jn+qn,Vn),e.calendarContainer.style.left=Ln+"px",e.calendarContainer.style.right="auto"}}}}function ae(){for(var B=null,j=0;j<document.styleSheets.length;j++){var G=document.styleSheets[j];if(G.cssRules){try{G.cssRules}catch{continue}B=G;break}}return B??le()}function le(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function ie(){e.config.noCalendar||e.isMobile||(N(),Ze(),O())}function $e(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function me(B){B.preventDefault(),B.stopPropagation();var j=function(ge){return ge.classList&&ge.classList.contains("flatpickr-day")&&!ge.classList.contains("flatpickr-disabled")&&!ge.classList.contains("notAllowed")},G=Mo(ft(B),j);if(G!==void 0){var X=G,oe=e.latestSelectedDateObj=new Date(X.dateObj.getTime()),se=(oe.getMonth()<e.currentMonth||oe.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=X,e.config.mode==="single")e.selectedDates=[oe];else if(e.config.mode==="multiple"){var ye=kt(oe);ye?e.selectedDates.splice(parseInt(ye),1):e.selectedDates.push(oe)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=oe,e.selectedDates.push(oe),ht(oe,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ge,Te){return ge.getTime()-Te.getTime()}));if(f(),se){var ue=e.currentYear!==oe.getFullYear();e.currentYear=oe.getFullYear(),e.currentMonth=oe.getMonth(),ue&&(Pe("onYearChange"),N()),Pe("onMonthChange")}if(Ze(),O(),it(),!se&&e.config.mode!=="range"&&e.config.showMonths===1?S(X):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var Ce=e.config.mode==="single"&&!e.config.enableTime,de=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(Ce||de)&&$e()}_()}}var ve={locale:[Q,K],showMonths:[q,l,re],minDate:[g],maxDate:[g],positionElement:[Jt],clickOpens:[function(){e.config.clickOpens===!0?(m(e._input,"focus",e.open),m(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function ze(B,j){if(B!==null&&typeof B=="object"){Object.assign(e.config,B);for(var G in B)ve[G]!==void 0&&ve[G].forEach(function(X){return X()})}else e.config[B]=j,ve[B]!==void 0?ve[B].forEach(function(X){return X()}):Ur.indexOf(B)>-1&&(e.config[B]=Kr(j));e.redraw(),it(!0)}function qe(B,j){var G=[];if(B instanceof Array)G=B.map(function(X){return e.parseDate(X,j)});else if(B instanceof Date||typeof B=="number")G=[e.parseDate(B,j)];else if(typeof B=="string")switch(e.config.mode){case"single":case"time":G=[e.parseDate(B,j)];break;case"multiple":G=B.split(e.config.conjunction).map(function(X){return e.parseDate(X,j)});break;case"range":G=B.split(e.l10n.rangeSeparator).map(function(X){return e.parseDate(X,j)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));e.selectedDates=e.config.allowInvalidPreload?G:G.filter(function(X){return X instanceof Date&&Z(X,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(X,oe){return X.getTime()-oe.getTime()})}function Ae(B,j,G){if(j===void 0&&(j=!1),G===void 0&&(G=e.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return e.clear(j);qe(B,G),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),g(void 0,j),c(),e.selectedDates.length===0&&e.clear(!1),it(j),j&&Pe("onChange")}function wt(B){return B.slice().map(function(j){return typeof j=="string"||typeof j=="number"||j instanceof Date?e.parseDate(j,void 0,!0):j&&typeof j=="object"&&j.from&&j.to?{from:e.parseDate(j.from,void 0),to:e.parseDate(j.to,void 0)}:j}).filter(function(j){return j})}function Ee(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var B=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);B&&qe(B,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function rt(){if(e.input=Me(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=De(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),Jt()}function Jt(){e._positionElement=e.config.positionElement||e._input}function Bn(){var B=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=De("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=B,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}m(e.mobileInput,"change",function(j){e.setDate(ft(j).value,!1,e.mobileFormatStr),Pe("onChange"),Pe("onClose")})}function Xt(B){if(e.isOpen===!0)return e.close();e.open(B)}function Pe(B,j){if(e.config!==void 0){var G=e.config[B];if(G!==void 0&&G.length>0)for(var X=0;G[X]&&X<G.length;X++)G[X](e.selectedDates,e.input.value,e,j);B==="onChange"&&(e.input.dispatchEvent(zt("change")),e.input.dispatchEvent(zt("input")))}}function zt(B){var j=document.createEvent("Event");return j.initEvent(B,!0,!0),j}function kt(B){for(var j=0;j<e.selectedDates.length;j++){var G=e.selectedDates[j];if(G instanceof Date&&ht(G,B)===0)return""+j}return!1}function Pt(B){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ht(B,e.selectedDates[0])>=0&&ht(B,e.selectedDates[1])<=0}function Ze(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(B,j){var G=new Date(e.currentYear,e.currentMonth,1);G.setMonth(e.currentMonth+j),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[j].textContent=sr(G.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=G.getMonth().toString(),B.value=G.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ct(B){var j=B||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(G){return e.formatDate(G,j)}).filter(function(G,X,oe){return e.config.mode!=="range"||e.config.enableTime||oe.indexOf(G)===X}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function it(B){B===void 0&&(B=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ct(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Ct(e.config.altFormat)),B!==!1&&Pe("onValueUpdate")}function It(B){var j=ft(B),G=e.prevMonthNav.contains(j),X=e.nextMonthNav.contains(j);G||X?D(G?-1:1):e.yearElements.indexOf(j)>=0?j.select():j.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):j.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Qt(B){B.preventDefault();var j=B.type==="keydown",G=ft(B),X=G;e.amPM!==void 0&&G===e.amPM&&(e.amPM.textContent=e.l10n.amPM[gt(e.amPM.textContent===e.l10n.amPM[0])]);var oe=parseFloat(X.getAttribute("min")),se=parseFloat(X.getAttribute("max")),ye=parseFloat(X.getAttribute("step")),ue=parseInt(X.value,10),Ce=B.delta||(j?B.which===38?1:-1:0),de=ue+ye*Ce;if(typeof X.value<"u"&&X.value.length===2){var ge=X===e.hourElement,Te=X===e.minuteElement;de<oe?(de=se+de+gt(!ge)+(gt(ge)&&gt(!e.amPM)),Te&&b(void 0,-1,e.hourElement)):de>se&&(de=X===e.hourElement?de-se-gt(!e.amPM):oe,Te&&b(void 0,1,e.hourElement)),e.amPM&&ge&&(ye===1?de+ue===23:Math.abs(de-ue)>ye)&&(e.amPM.textContent=e.l10n.amPM[gt(e.amPM.textContent===e.l10n.amPM[0])]),X.value=at(de)}}return a(),e}function dn(t,n){for(var e=Array.prototype.slice.call(t).filter(function(s){return s instanceof HTMLElement}),o=[],a=0;a<e.length;a++){var i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=Vu(i,n||{}),o.push(i._flatpickr)}catch(s){console.error(s)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return dn(this,t)},HTMLElement.prototype.flatpickr=function(t){return dn([this],t)});var Ve=function(t,n){return typeof t=="string"?dn(window.document.querySelectorAll(t),n):t instanceof Node?dn([t],n):dn(t,n)};Ve.defaultConfig={},Ve.l10ns={en:Ye({},En),default:Ye({},En)},Ve.localize=function(t){Ve.l10ns.default=Ye(Ye({},Ve.l10ns.default),t)},Ve.setDefaults=function(t){Ve.defaultConfig=Ye(Ye({},Ve.defaultConfig),t)},Ve.parseDate=Wr({}),Ve.formatDate=Lo({}),Ve.compareDates=ht,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return dn(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=Ve);const Mp="";var jo={exports:{}};(function(t,n){(function(e,o){t.exports=o()})(je,function(){/*! *****************************************************************************
65
65
  Copyright (c) Microsoft Corporation.
66
66
 
67
67
  Permission to use, copy, modify, and/or distribute this software for any
@@ -74,21 +74,21 @@
74
74
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
75
75
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
76
76
  PERFORMANCE OF THIS SOFTWARE.
77
- ***************************************************************************** */function e(){for(var a=0,i=0,s=arguments.length;i<s;i++)a+=arguments[i].length;for(var l=Array(a),u=0,i=0;i<s;i++)for(var d=arguments[i],p=0,f=d.length;p<f;p++,u++)l[u]=d[p];return l}function o(a){return a===void 0&&(a={}),function(i){var s="",l,u,d,p=function(){if(a.input){if(l=a.input instanceof Element?a.input:window.document.querySelector(a.input),!l){i.config.errorHandler(new Error("Invalid input element specified"));return}i.config.wrap&&(l=l.querySelector("[data-input]"))}else l=i._input.cloneNode(),l.removeAttribute("id"),l._flatpickr=void 0;if(l.value){var c=i.parseDate(l.value);c&&i.selectedDates.push(c)}l.setAttribute("data-fp-omit",""),i.config.clickOpens&&(i._bind(l,["focus","click"],function(){i.selectedDates[1]&&(i.latestSelectedDateObj=i.selectedDates[1],i._setHoursFromDate(i.selectedDates[1]),i.jumpToDate(i.selectedDates[1])),u=!0,i.isOpen=!1,i.open(void 0,a.position==="left"?i._input:l)}),i._bind(i._input,["focus","click"],function(h){h.preventDefault(),i.isOpen=!1,i.open()})),i.config.allowInput&&i._bind(l,"keydown",function(h){h.key==="Enter"&&(i.setDate([i.selectedDates[0],l.value],!0,s),l.click())}),a.input||i._input.parentNode&&i._input.parentNode.insertBefore(l,i._input.nextSibling)},f={onParseConfig:function(){i.config.mode="range",s=i.config.altInput?i.config.altFormat:i.config.dateFormat},onReady:function(){p(),i.config.ignoredFocusElements.push(l),i.config.allowInput?(i._input.removeAttribute("readonly"),l.removeAttribute("readonly")):l.setAttribute("readonly","readonly"),i._bind(i._input,"focus",function(){i.latestSelectedDateObj=i.selectedDates[0],i._setHoursFromDate(i.selectedDates[0]),u=!1,i.jumpToDate(i.selectedDates[0])}),i.config.allowInput&&i._bind(i._input,"keydown",function(c){c.key==="Enter"&&i.setDate([i._input.value,i.selectedDates[1]],!0,s)}),i.setDate(i.selectedDates,!1),f.onValueUpdate(i.selectedDates),i.loadedPlugins.push("range")},onPreCalendarPosition:function(){u&&(i._positionElement=l,setTimeout(function(){i._positionElement=i._input},0))},onChange:function(){i.selectedDates.length||setTimeout(function(){i.selectedDates.length||(l.value="",d=[])},10),u&&setTimeout(function(){l.focus()},0)},onDestroy:function(){a.input||l.parentNode&&l.parentNode.removeChild(l)},onValueUpdate:function(c){var h,v,m;if(l){if(d=!d||c.length>=d.length?e(c):d,d.length>c.length){var _=c[0],y=u?[d[0],_]:[_,d[1]];y[0].getTime()>y[1].getTime()&&(u?y[0]=y[1]:y[1]=y[0]),i.setDate(y,!1),d=e(y)}h=i.selectedDates.map(function(g){return i.formatDate(g,s)}),v=h[0],i._input.value=v===void 0?"":v,m=h[1],l.value=m===void 0?"":m}}};return f}}return o})})(jo);var Fu=jo.exports;const Hu=Cn(Fu),zu=`
77
+ ***************************************************************************** */function e(){for(var a=0,i=0,s=arguments.length;i<s;i++)a+=arguments[i].length;for(var l=Array(a),u=0,i=0;i<s;i++)for(var d=arguments[i],p=0,f=d.length;p<f;p++,u++)l[u]=d[p];return l}function o(a){return a===void 0&&(a={}),function(i){var s="",l,u,d,p=function(){if(a.input){if(l=a.input instanceof Element?a.input:window.document.querySelector(a.input),!l){i.config.errorHandler(new Error("Invalid input element specified"));return}i.config.wrap&&(l=l.querySelector("[data-input]"))}else l=i._input.cloneNode(),l.removeAttribute("id"),l._flatpickr=void 0;if(l.value){var c=i.parseDate(l.value);c&&i.selectedDates.push(c)}l.setAttribute("data-fp-omit",""),i.config.clickOpens&&(i._bind(l,["focus","click"],function(){i.selectedDates[1]&&(i.latestSelectedDateObj=i.selectedDates[1],i._setHoursFromDate(i.selectedDates[1]),i.jumpToDate(i.selectedDates[1])),u=!0,i.isOpen=!1,i.open(void 0,a.position==="left"?i._input:l)}),i._bind(i._input,["focus","click"],function(h){h.preventDefault(),i.isOpen=!1,i.open()})),i.config.allowInput&&i._bind(l,"keydown",function(h){h.key==="Enter"&&(i.setDate([i.selectedDates[0],l.value],!0,s),l.click())}),a.input||i._input.parentNode&&i._input.parentNode.insertBefore(l,i._input.nextSibling)},f={onParseConfig:function(){i.config.mode="range",s=i.config.altInput?i.config.altFormat:i.config.dateFormat},onReady:function(){p(),i.config.ignoredFocusElements.push(l),i.config.allowInput?(i._input.removeAttribute("readonly"),l.removeAttribute("readonly")):l.setAttribute("readonly","readonly"),i._bind(i._input,"focus",function(){i.latestSelectedDateObj=i.selectedDates[0],i._setHoursFromDate(i.selectedDates[0]),u=!1,i.jumpToDate(i.selectedDates[0])}),i.config.allowInput&&i._bind(i._input,"keydown",function(c){c.key==="Enter"&&i.setDate([i._input.value,i.selectedDates[1]],!0,s)}),i.setDate(i.selectedDates,!1),f.onValueUpdate(i.selectedDates),i.loadedPlugins.push("range")},onPreCalendarPosition:function(){u&&(i._positionElement=l,setTimeout(function(){i._positionElement=i._input},0))},onChange:function(){i.selectedDates.length||setTimeout(function(){i.selectedDates.length||(l.value="",d=[])},10),u&&setTimeout(function(){l.focus()},0)},onDestroy:function(){a.input||l.parentNode&&l.parentNode.removeChild(l)},onValueUpdate:function(c){var h,v,m;if(l){if(d=!d||c.length>=d.length?e(c):d,d.length>c.length){var _=c[0],y=u?[d[0],_]:[_,d[1]];y[0].getTime()>y[1].getTime()&&(u?y[0]=y[1]:y[1]=y[0]),i.setDate(y,!1),d=e(y)}h=i.selectedDates.map(function(g){return i.formatDate(g,s)}),v=h[0],i._input.value=v===void 0?"":v,m=h[1],l.value=m===void 0?"":m}}};return f}}return o})})(jo);var qu=jo.exports;const Fu=Cn(qu),Hu=`
78
78
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
79
79
  <path d="M10.25 3.5L5.75 8L10.25 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
80
80
  </svg>
81
- `,Uu=`
81
+ `,zu=`
82
82
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
83
83
  <path d="M5.75 3.5L10.25 8L5.75 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
84
84
  </svg>
85
- `,Rp="",Ku="single",Jr="range",Gu={props:{name:{type:String,default:"Date"},modelValue:[String,Array],value:[String,Array],placeholder:{type:String,default:""},endDatePlaceholder:{type:String,default:""},required:{type:Boolean,default:!1},config:{type:Object,default:()=>{}},mode:{type:String,default:Ku},ariaLabel:{type:String,default:""},endDateAriaLabel:{type:String,default:""},label:{type:String,default:""},endDateLabel:{type:String,default:""},supportText:{type:String,default:""},endDateSupportText:{type:String,default:""},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},mounted(){document.addEventListener("keyup",this.onDocumentKeyDown,!0),this.$refs.inputsWrapper.addEventListener("keyup",this.backspaceHandler),this.$nextTick(()=>{this.initFlatpickr()})},watch:{config(){this.initFlatpickr()},value(){this.initFlatpickr()},disabled(){this.$nextTick(()=>{this.initFlatpickr()})},modelValue(){var n;if(JSON.stringify(this.modelValue)===JSON.stringify(this.data))return;let t;Array.isArray(this.modelValue)?t=this.modelValue[0]&&this.modelValue[1]?this.modelValue:[]:t=this.modelValue,(n=this.flat)==null||n.setDate(t,!0)}},data(){return{pickerOptions:{},data:this.modelValue,flat:null,isOpen:!1,isOpenEndDate:!1}},methods:{initFlatpickr(){this.flat=new Ve(this.$refs.date,this.pickerConfigs())},pickerConfigs(){var o,a;const t=document.querySelectorAll(".calendar-icon");let n={dateFormat:"Y-m-d",altInput:!0,altFormat:"Y-m-d",position:"left",mode:this.mode,appendTo:this.$refs.dropdown,prevArrow:zu,nextArrow:Uu,ignoredFocusElements:Array.from(t),locale:{weekdays:{shorthand:["S","M","T","W","T","F","S"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},onReady(i,s,l){l.setDate(s,!0)},onChange:(i,s)=>this.onChange(s),onClose:()=>this.onClose()};this.mode===Jr&&(n.plugins=[new Hu({input:this.$refs.toDate})]),(this.value||this.modelValue)&&(this.mode===Jr?n.defaultDate=this.modelValue.length?[this.modelValue[0],this.modelValue[1]]:[(o=this.value)==null?void 0:o[0],(a=this.value)==null?void 0:a[1]]:n.defaultDate=this.modelValue?this.modelValue:this.value);const e=Object.assign({},n,this.config);return this.pickerOptions=e,e},onClose(){this.triggerChange(),this.$nextTick(()=>{this.isOpen=!1,this.isOpenEndDate=!1,this.$emit("blur")})},onChange(t){this.mode===Jr?this.data=t.split(" to "):this.data=t},onDocumentKeyDown(t){t.keyCode===Lr&&this.onClose()},onKeydownEndField(t){t.key==="ArrowDown"&&this.flat.selectedDateElem.focus()},backspaceHandler(t){t.keyCode===bs&&(this.$emit("input",""),this.$emit("update:modelValue",""))},triggerChange(){setTimeout(()=>{if(this.pickerOptions.mode==="range"){let t=this.data;t.length<2?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",[t[0],t[1]]),this.$emit("update:modelValue",this.data))}else this.data===""?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",this.data),this.$emit("update:modelValue",this.data)),this.$emit("blur")})},open(){this.isOpen||(this.isOpen=!0,this.isOpenEndDate=!1,this.flat.open())},openEndDate(){this.isOpen=!1,this.isOpenEndDate=!0,this.$refs.toDate.click()}},computed:{values(){var t;return this.data?(t=this.data)==null?void 0:t.split(" to "):[]}},beforeUnmount(){document.removeEventListener("keyup",this.onDocumentKeyDown),this.$refs.inputsWrapper.removeEventListener("keyup",this.backspaceHandler)},components:{IbIcon:Le,IbLabel:kn,IbAlert:Ft},emits:["input","update:modelValue"]},Wu={ref:"inputsWrapper",class:"inputs-wrapper"},Yu={class:"input-group-wrapper"},Zu=["aria-label"],Ju=["placeholder","name","disabled"],Xu={ref:"dropdown",class:"dropdown"},Qu={key:1,class:"support-text"},ef={key:0,class:"input-group-wrapper"},tf=["aria-label"],nf=["placeholder"],rf={key:1,class:"support-text"};function of(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-label"),u=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-flatpickr-wrapper",{"has-labels":e.label.length||e.endDateLabel.length,"has-label":e.label.length,"has-error":e.errorMessage.length,"is-disabled":e.disabled,"is-range":e.mode==="range"}])},[e.errorMessage.length?(r.openBlock(),r.createBlock(s,{key:0,class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",Wu,[r.createElementVNode("div",Yu,[e.label.length?(r.openBlock(),r.createBlock(l,{key:0,class:"label",required:e.required},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.label),1)]),_:1},8,["required"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["input-wrapper",{active:a.isOpen}]),onClick:n[0]||(n[0]=(...d)=>i.open&&i.open(...d))},[r.createElementVNode("label",{"aria-label":e.ariaLabel},[r.createElementVNode("input",{placeholder:e.placeholder,name:e.name,ref:"date",id:"date",disabled:e.disabled,class:"date-picker-input"},null,8,Ju)],8,Zu),r.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),r.createElementVNode("div",Xu,null,512),e.supportText.length?(r.openBlock(),r.createElementBlock("p",Qu,r.toDisplayString(e.supportText),1)):r.createCommentVNode("",!0)]),e.mode==="range"?(r.openBlock(),r.createElementBlock("div",ef,[e.endDateLabel.length?(r.openBlock(),r.createBlock(l,{key:0,class:"end-date-label label",required:e.required},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.endDateLabel),1)]),_:1},8,["required"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["input-wrapper",{active:a.isOpenEndDate}]),onClick:n[2]||(n[2]=(...d)=>i.openEndDate&&i.openEndDate(...d))},[r.createElementVNode("label",{"aria-label":e.endDateAriaLabel},[r.createElementVNode("input",{class:"date-picker-input",placeholder:e.endDatePlaceholder,ref:"toDate",onKeydown:n[1]||(n[1]=(...d)=>i.onKeydownEndField&&i.onKeydownEndField(...d))},null,40,nf)],8,tf),r.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(r.openBlock(),r.createElementBlock("p",rf,r.toDisplayString(e.endDateSupportText),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],512)],2)}const af=_e(Gu,[["render",of]]),lf=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (République démocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],sf=lf.map(([t,n,e,o=0,a=null])=>({name:t,iso2:n.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function cf(){return fetch("https://ip2c.org/s").then(t=>t.text()).then(t=>{const n=(t||"").toString();if(!n||n[0]!=="1")throw new Error("unable to fetch the country");return n.substr(2,2)})}function df(t,n){if(t.setSelectionRange)t.focus(),t.setSelectionRange(n,n);else if("createTextRange"in t&&typeof t.createTextRange=="function"){const e=t.createTextRange();e.collapse(!0),e.moveEnd("character",n),e.moveStart("character",n),e.select()}}const uf=[{name:"allCountries",type:Array,default:sf,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],ff=[...uf].reduce((t,n)=>{if(n.name.includes(".")){const[e,o]=n.name.split(".");t[e]?Object.assign(t[e],{[o]:n.default}):Object.assign(t,{[e]:{[o]:n.default}})}else Object.assign(t,{[n.name]:n.default});return t},{}),Vo={options:{...ff}};function tt(t){const n=Vo.options[t];return typeof n>"u"?Vo.options[t]:n}function xn(t){return t==null?void 0:t.toLowerCase()}function Tn(t){return t==null?void 0:t.toUpperCase()}const hf={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function pf(t,n){var e=Array.prototype.slice.call(n);return e.push(hf),t.apply(this,e)}function Xr(t){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xr(t)}function qo(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function mf(t,n,e){return n&&qo(t.prototype,n),e&&qo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function gf(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function yf(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Nn(t,n)}function bf(t){var n=Ho();return function(){var e=An(t),o;if(n){var a=An(this).constructor;o=Reflect.construct(e,arguments,a)}else o=e.apply(this,arguments);return vf(this,o)}}function vf(t,n){if(n&&(Xr(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fo(t)}function Fo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qr(t){var n=typeof Map=="function"?new Map:void 0;return Qr=function(e){if(e===null||!_f(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(e))return n.get(e);n.set(e,o)}function o(){return cr(e,arguments,An(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Nn(o,e)},Qr(t)}function cr(t,n,e){return Ho()?cr=Reflect.construct:cr=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),u=new l;return i&&Nn(u,i.prototype),u},cr.apply(null,arguments)}function Ho(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Nn(t,n){return Nn=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},Nn(t,n)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},An(t)}var At=function(t){yf(e,t);var n=bf(e);function e(o){var a;return gf(this,e),a=n.call(this,o),Object.setPrototypeOf(Fo(a),e.prototype),a.name=a.constructor.name,a}return mf(e)}(Qr(Error)),ei=2,$f=17,wf=3,yt="0-90-9٠-٩۰-۹",kf="-‐-―−ー-",Cf="//",Of="..",Ef="  ­​⁠ ",Sf="()()[]\\[\\]",xf="~⁓∼~",dr="".concat(kf).concat(Cf).concat(Of).concat(Ef).concat(Sf).concat(xf),ti="++";function zo(t,n){t=t.split("-"),n=n.split("-");for(var e=t[0].split("."),o=n[0].split("."),a=0;a<3;a++){var i=Number(e[a]),s=Number(o[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return t[1]&&n[1]?t[1]>n[1]?1:t[1]<n[1]?-1:0:!t[1]&&n[1]?1:t[1]&&!n[1]?-1:0}var Tf={}.constructor;function ur(t){return t!=null&&t.constructor===Tf}function ni(t){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ni(t)}function fr(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Uo(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function hr(t,n,e){return n&&Uo(t.prototype,n),e&&Uo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Nf="1.2.0",Af="1.7.35",Ko=" ext. ",Df=/^\d+$/,nt=function(){function t(n){fr(this,t),Mf(n),this.metadata=n,Yo.call(this,n)}return hr(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var e=this.countryCallingCodes()[n];if(e&&e.length===1&&e[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,e){if(n&&Df.test(n)&&(e=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Go(this.getCountryMetadata(n),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new Go(this.getNumberingPlanMetadata(e),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var e=this.countryCallingCodes()[n];if(e)return e.length===1&&e[0].length===3?void 0:e}},{key:"getCountryCodeForCallingCode",value:function(n){var e=this.getCountryCodesForCallingCode(n);if(e)return e[0]}},{key:"getNumberingPlanMetadata",value:function(n){var e=this.getCountryCodeForCallingCode(n);if(e)return this.getCountryMetadata(e);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t}(),Go=function(){function t(n,e){fr(this,t),this.globalMetadataObject=e,this.metadata=n,Yo.call(this,e.metadata)}return hr(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,e=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return e.map(function(o){return new Pf(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Wo(this.types(),n))return new Bf(Wo(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ko:this.metadata[13]||Ko}}]),t}(),Pf=function(){function t(n,e){fr(this,t),this._format=n,this.metadata=e}return hr(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!If.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),If=/^\(?\$1\)?$/,Bf=function(){function t(n,e){fr(this,t),this.type=n,this.metadata=e}return hr(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function Wo(t,n){switch(n){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function Mf(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!ur(t)||!ur(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ur(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+Lf(t)+": "+t,"."))}var Lf=function(t){return ni(t)};function ri(t,n){if(n=new nt(n),n.hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function Rf(t,n){return n.countries.hasOwnProperty(t)}function Yo(t){var n=t.version;typeof n=="number"?(this.v1=n===1,this.v2=n===2,this.v3=n===3,this.v4=n===4):n?zo(n,Nf)===-1?this.v2=!0:zo(n,Af)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var jf=";ext=",un=function(t){return"([".concat(yt,"]{1,").concat(t,"})")};function Zo(t){var n="20",e="15",o="9",a="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",p="[- ]+",f="[  \\t]*",c="(?:,{2}|;)",h=jf+un(n),v=i+u+s+un(n)+l,m=i+d+s+un(o)+l,_=p+un(a)+"#",y=f+c+s+un(e)+l,g=f+"(?:,)+"+s+un(o)+l;return h+"|"+v+"|"+m+"|"+_+"|"+y+"|"+g}var Vf="["+yt+"]{"+ei+"}",qf="["+ti+"]{0,1}(?:["+dr+"]*["+yt+"]){3,}["+dr+yt+"]*",Ff=new RegExp("^["+ti+"]{0,1}(?:["+dr+"]*["+yt+"]){1,2}$","i"),Hf=qf+"(?:"+Zo()+")?",zf=new RegExp("^"+Vf+"$|^"+Hf+"$","i");function Uf(t){return t.length>=ei&&zf.test(t)}function Kf(t){return Ff.test(t)}var Jo=new RegExp("(?:"+Zo()+")$","i");function Gf(t){var n=t.search(Jo);if(n<0)return{};for(var e=t.slice(0,n),o=t.match(Jo),a=1;a<o.length;){if(o[a])return{number:e,ext:o[a]};a++}}var Wf={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Yf(t){return Wf[t]}function Zf(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Jf(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jf(t,n){if(t){if(typeof t=="string")return Xo(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Xo(t,n)}}function Xo(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function Qo(t){for(var n="",e=Zf(t.split("")),o;!(o=e()).done;){var a=o.value;n+=Xf(a,n)||""}return n}function Xf(t,n){return t==="+"?n?void 0:"+":Yf(t)}function Qf(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=eh(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eh(t,n){if(t){if(typeof t=="string")return ea(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ea(t,n)}}function ea(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function th(t,n){for(var e=t.slice(),o=Qf(n),a;!(a=o()).done;){var i=a.value;t.indexOf(i)<0&&e.push(i)}return e.sort(function(s,l){return s-l})}function ii(t,n){return ta(t,void 0,n)}function ta(t,n,e){var o=e.type(n),a=o&&o.possibleLengths()||e.possibleLengths();if(!a)return"IS_POSSIBLE";if(n==="FIXED_LINE_OR_MOBILE"){if(!e.type("FIXED_LINE"))return ta(t,"MOBILE",e);var i=e.type("MOBILE");i&&(a=th(a,i.possibleLengths()))}else if(n&&!o)return"INVALID_LENGTH";var s=t.length,l=a[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function nh(t,n,e){if(n===void 0&&(n={}),e=new nt(e),n.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!e.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));e.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}}if(e.possibleLengths())return na(t.phone||t.nationalNumber,e);if(t.countryCallingCode&&e.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function na(t,n){switch(ii(t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Dt(t,n){return t=t||"",new RegExp("^(?:"+n+")$").test(t)}function rh(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=ih(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
88
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ih(t,n){if(t){if(typeof t=="string")return ra(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ra(t,n)}}function ra(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}var oh=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function oi(t,n,e){if(n=n||{},!(!t.country&&!t.countryCallingCode)){e=new nt(e),e.selectNumberingPlan(t.country,t.countryCallingCode);var o=n.v2?t.nationalNumber:t.phone;if(Dt(o,e.nationalNumberPattern())){if(ai(o,"FIXED_LINE",e))return e.type("MOBILE")&&e.type("MOBILE").pattern()===""||!e.type("MOBILE")||ai(o,"MOBILE",e)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=rh(oh),i;!(i=a()).done;){var s=i.value;if(ai(o,s,e))return s}}}}function ai(t,n,e){return n=e.type(n),!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(t.length)<0?!1:Dt(t,n.pattern())}function ah(t,n,e){if(n=n||{},e=new nt(e),e.selectNumberingPlan(t.country,t.countryCallingCode),e.hasTypes())return oi(t,n,e.metadata)!==void 0;var o=n.v2?t.nationalNumber:t.phone;return Dt(o,e.nationalNumberPattern())}function lh(t,n,e){var o=new nt(e),a=o.getCountryCodesForCallingCode(t);return a?a.filter(function(i){return sh(n,i,e)}):[]}function sh(t,n,e){var o=new nt(e);return o.selectNumberingPlan(n),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function ch(t){return t.replace(new RegExp("[".concat(dr,"]+"),"g")," ").trim()}var dh=/(\$\d)/;function uh(t,n,e){var o=e.useInternationalFormat,a=e.withNationalPrefix;e.carrierCode,e.metadata;var i=t.replace(new RegExp(n.pattern()),o?n.internationalFormat():a&&n.nationalPrefixFormattingRule()?n.format().replace(dh,n.nationalPrefixFormattingRule()):n.format());return o?ch(i):i}var fh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function hh(t,n,e){var o=new nt(e);if(o.selectNumberingPlan(t,n),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(fh.test(o.IDDPrefix()))return o.IDDPrefix()}function ph(t){var n=t.number,e=t.ext;if(!n)return"";if(n[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(n).concat(e?";ext="+e:"")}function mh(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=gh(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
89
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gh(t,n){if(t){if(typeof t=="string")return ia(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ia(t,n)}}function ia(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function oa(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function aa(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?oa(Object(e),!0).forEach(function(o){yh(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):oa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function yh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var la={formatExtension:function(t,n,e){return"".concat(t).concat(e.ext()).concat(n)}};function bh(t,n,e,o){if(e?e=aa(aa({},la),e):e=la,o=new nt(o),t.country&&t.country!=="001"){if(!o.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));o.country(t.country)}else if(t.countryCallingCode)o.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var a=o.countryCallingCode(),i=e.v2?t.nationalNumber:t.phone,s;switch(n){case"NATIONAL":return i?(s=pr(i,t.carrierCode,"NATIONAL",o,e),li(s,t.ext,o,e.formatExtension)):"";case"INTERNATIONAL":return i?(s=pr(i,null,"INTERNATIONAL",o,e),s="+".concat(a," ").concat(s),li(s,t.ext,o,e.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return ph({number:"+".concat(a).concat(i),ext:t.ext});case"IDD":if(!e.fromCountry)return;var l=_h(i,t.carrierCode,a,e.fromCountry,o);return li(l,t.ext,o,e.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n,'"'))}}function pr(t,n,e,o,a){var i=vh(o.formats(),t);return i?uh(t,i,{useInternationalFormat:e==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:n,metadata:o}):t}function vh(t,n){for(var e=mh(t),o;!(o=e()).done;){var a=o.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(n.search(i)!==0)continue}if(Dt(n,a.pattern()))return a}}function li(t,n,e,o){return n?o(t,n,e):t}function _h(t,n,e,o,a){var i=ri(o,a.metadata);if(i===e){var s=pr(t,n,"NATIONAL",a);return e==="1"?e+" "+s:s}var l=hh(o,void 0,a.metadata);if(l)return"".concat(l," ").concat(e," ").concat(pr(t,null,"INTERNATIONAL",a))}function sa(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ca(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?sa(Object(e),!0).forEach(function(o){$h(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function $h(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function wh(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function da(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function kh(t,n,e){return n&&da(t.prototype,n),e&&da(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ch=function(){function t(n,e,o){if(wh(this,t),!n)throw new TypeError("`country` or `countryCallingCode` not passed");if(!e)throw new TypeError("`nationalNumber` not passed");if(!o)throw new TypeError("`metadata` not passed");var a=Eh(n,o),i=a.country,s=a.countryCallingCode;this.country=i,this.countryCallingCode=s,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return kh(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:lh(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return nh(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return ah(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new nt(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return oi(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,e){return bh(this,n,e?ca(ca({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),t}(),Oh=function(t){return/^[A-Z]{2}$/.test(t)};function Eh(t,n){var e,o,a=new nt(n);return Oh(t)?(e=t,a.selectNumberingPlan(e),o=a.countryCallingCode()):o=t,{country:e,countryCallingCode:o}}var Sh=new RegExp("(["+yt+"])");function xh(t,n,e,o){if(n){var a=new nt(o);a.selectNumberingPlan(n,e);var i=new RegExp(a.IDDPrefix());if(t.search(i)===0){t=t.slice(t.match(i)[0].length);var s=t.match(Sh);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function Th(t,n){if(t&&n.numberingPlan.nationalPrefixForParsing()){var e=new RegExp("^(?:"+n.numberingPlan.nationalPrefixForParsing()+")"),o=e.exec(t);if(o){var a,i,s=o.length-1,l=s>0&&o[s];if(n.nationalPrefixTransformRule()&&l)a=t.replace(e,n.nationalPrefixTransformRule()),s>1&&(i=o[1]);else{var u=o[0];a=t.slice(u.length),l&&(i=o[1])}var d;if(l){var p=t.indexOf(o[1]),f=t.slice(0,p);f===n.numberingPlan.nationalPrefix()&&(d=n.numberingPlan.nationalPrefix())}else d=o[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:t}}function si(t,n){var e=Th(t,n),o=e.carrierCode,a=e.nationalNumber;if(a!==t){if(!Nh(t,a,n))return{nationalNumber:t};if(n.possibleLengths()&&!Ah(a,n))return{nationalNumber:t}}return{nationalNumber:a,carrierCode:o}}function Nh(t,n,e){return!(Dt(t,e.nationalNumberPattern())&&!Dt(n,e.nationalNumberPattern()))}function Ah(t,n){switch(ii(t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Dh(t,n,e,o){var a=n?ri(n,o):e;if(t.indexOf(a)===0){o=new nt(o),o.selectNumberingPlan(n,e);var i=t.slice(a.length),s=si(i,o),l=s.nationalNumber,u=si(t,o),d=u.nationalNumber;if(!Dt(d,o.nationalNumberPattern())&&Dt(l,o.nationalNumberPattern())||ii(d,o)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:t}}function Ph(t,n,e,o){if(!t)return{};var a;if(t[0]!=="+"){var i=xh(t,n,e,o);if(i&&i!==t)a=!0,t="+"+i;else{if(n||e){var s=Dh(t,n,e,o),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:t}}}if(t[1]==="0")return{};o=new nt(o);for(var d=2;d-1<=wf&&d<=t.length;){var p=t.slice(1,d);if(o.hasCallingCode(p))return o.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(d)};d++}return{}}function Ih(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Bh(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bh(t,n){if(t){if(typeof t=="string")return ua(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ua(t,n)}}function ua(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function Mh(t,n){var e=n.countries,o=n.defaultCountry,a=n.metadata;a=new nt(a);for(var i=[],s=Ih(e),l;!(l=s()).done;){var u=l.value;if(a.country(u),a.leadingDigits()){if(t&&t.search(a.leadingDigits())===0)return u}else if(oi({phone:t,country:u},void 0,a.metadata))if(o){if(u===o)return u;i.push(u)}else return u}if(i.length>0)return i[0]}function Lh(t,n){var e=n.nationalNumber,o=n.defaultCountry,a=n.metadata,i=a.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Mh(e,{countries:i,defaultCountry:o,metadata:a.metadata})}var fa="+",Rh="[\\-\\.\\(\\)]?",ha="(["+yt+"]|"+Rh+")",jh="^\\"+fa+ha+"*["+yt+"]"+ha+"*$",Vh=new RegExp(jh,"g"),ci=yt,qh="["+ci+"]+((\\-)*["+ci+"])*",Fh="a-zA-Z",Hh="["+Fh+"]+((\\-)*["+ci+"])*",zh="^("+qh+"\\.)*"+Hh+"\\.?$",Uh=new RegExp(zh,"g"),pa="tel:",di=";phone-context=",Kh=";isub=";function Gh(t){var n=t.indexOf(di);if(n<0)return null;var e=n+di.length;if(e>=t.length)return"";var o=t.indexOf(";",e);return o>=0?t.substring(e,o):t.substring(e)}function Wh(t){return t===null?!0:t.length===0?!1:Vh.test(t)||Uh.test(t)}function Yh(t,n){var e=n.extractFormattedPhoneNumber,o=Gh(t);if(!Wh(o))throw new At("NOT_A_NUMBER");var a;if(o===null)a=e(t)||"";else{a="",o.charAt(0)===fa&&(a+=o);var i=t.indexOf(pa),s;i>=0?s=i+pa.length:s=0;var l=t.indexOf(di);a+=t.substring(s,l)}var u=a.indexOf(Kh);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var Zh=250,Jh=new RegExp("["+ti+yt+"]"),Xh=new RegExp("[^"+yt+"#]+$");function Qh(t,n,e){if(n=n||{},e=new nt(e),n.defaultCountry&&!e.hasCountry(n.defaultCountry))throw n.v2?new At("INVALID_COUNTRY"):new Error("Unknown country: ".concat(n.defaultCountry));var o=t1(t,n.v2,n.extract),a=o.number,i=o.ext,s=o.error;if(!a){if(n.v2)throw s==="TOO_SHORT"?new At("TOO_SHORT"):new At("NOT_A_NUMBER");return{}}var l=r1(a,n.defaultCountry,n.defaultCallingCode,e),u=l.country,d=l.nationalNumber,p=l.countryCallingCode,f=l.countryCallingCodeSource,c=l.carrierCode;if(!e.hasSelectedNumberingPlan()){if(n.v2)throw new At("INVALID_COUNTRY");return{}}if(!d||d.length<ei){if(n.v2)throw new At("TOO_SHORT");return{}}if(d.length>$f){if(n.v2)throw new At("TOO_LONG");return{}}if(n.v2){var h=new Ch(p,d,e.metadata);return u&&(h.country=u),c&&(h.carrierCode=c),i&&(h.ext=i),h.__countryCallingCodeSource=f,h}var v=(n.extended?e.hasSelectedNumberingPlan():u)?Dt(d,e.nationalNumberPattern()):!1;return n.extended?{country:u,countryCallingCode:p,carrierCode:c,valid:v,possible:v?!0:!!(n.extended===!0&&e.possibleLengths()&&na(d,e)),phone:d,ext:i}:v?n1(u,d,i):{}}function e1(t,n,e){if(t){if(t.length>Zh){if(e)throw new At("TOO_LONG");return}if(n===!1)return t;var o=t.search(Jh);if(!(o<0))return t.slice(o).replace(Xh,"")}}function t1(t,n,e){var o=Yh(t,{extractFormattedPhoneNumber:function(i){return e1(i,e,n)}});if(!o)return{};if(!Uf(o))return Kf(o)?{error:"TOO_SHORT"}:{};var a=Gf(o);return a.ext?a:{number:o}}function n1(t,n,e){var o={country:t,phone:n};return e&&(o.ext=e),o}function r1(t,n,e,o){var a=Ph(Qo(t),n,e,o.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number,u;if(s)o.selectNumberingPlan(s);else if(l&&(n||e))o.selectNumberingPlan(n,e),n&&(u=n),s=e||ri(n,o.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:s};var d=si(Qo(l),o),p=d.nationalNumber,f=d.carrierCode,c=Lh(s,{nationalNumber:p,defaultCountry:n,metadata:o});return c&&(u=c,c==="001"||o.country(u)),{country:u,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:p,carrierCode:f}}function ma(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ga(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ma(Object(e),!0).forEach(function(o){i1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ma(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function i1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function o1(t,n,e){return Qh(t,ga(ga({},n),{},{v2:!0}),e)}function ya(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function a1(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ya(Object(e),!0).forEach(function(o){l1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ya(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function l1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function s1(t,n){return f1(t)||u1(t,n)||d1(t,n)||c1()}function c1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d1(t,n){if(t){if(typeof t=="string")return ba(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ba(t,n)}}function ba(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function u1(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var o=[],a=!0,i=!1,s,l;try{for(e=e.call(t);!(a=(s=e.next()).done)&&(o.push(s.value),!(n&&o.length===n));a=!0);}catch(u){i=!0,l=u}finally{try{!a&&e.return!=null&&e.return()}finally{if(i)throw l}}return o}}function f1(t){if(Array.isArray(t))return t}function h1(t){var n=Array.prototype.slice.call(t),e=s1(n,4),o=e[0],a=e[1],i=e[2],s=e[3],l,u,d;if(typeof o=="string")l=o;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(u=i,d=s):(u=void 0,d=i),a&&(u=a1({defaultCountry:a},u));else if(ur(a))i?(u=a,d=i):d=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:u,metadata:d}}function va(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function _a(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?va(Object(e),!0).forEach(function(o){p1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):va(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function p1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function m1(t,n,e){n&&n.defaultCountry&&!Rf(n.defaultCountry,e)&&(n=_a(_a({},n),{},{defaultCountry:void 0}));try{return o1(t,n,e)}catch(o){if(!(o instanceof At))throw o}}function g1(){var t=h1(arguments),n=t.text,e=t.options,o=t.metadata;return m1(n,e,o)}function ui(){return pf(g1,arguments)}const y1={beforeMount(t,n,e){if(typeof n.value!="function"){const o=e.context.name;let a=`[Vue-click-outside:] provided expression ${n.expression} is not a function, but has to be`;o&&(a+=`Found in component ${o}`),console.warn(a)}t.clickOutsideEvent=function(o){const a=o.composedPath?o.composedPath():o.path;t===o.target||t.contains(o.target)||a.includes(t)||n.value(o,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}},b1=["aria-expanded","tabindex"],v1={class:"vti__selection"},_1={key:1,class:"vti__country-code"},$1={class:"vti__dropdown-arrow"},w1={key:0,class:"vti__search_box_container"},k1=["placeholder"],C1=["onClick","onMousemove","aria-selected"],O1={key:1},E1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],S1=r.defineComponent({name:"VueTelInput",directives:{clickOutside:y1},__name:"vue-tel-input",props:r.mergeModels({allCountries:{type:Array,default:()=>tt("allCountries")},autoFormat:{type:Boolean,default:()=>tt("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>tt("customValidate")},defaultCountry:{type:[String,Number],default:()=>tt("defaultCountry")},disabled:{type:Boolean,default:()=>tt("disabled")},autoDefaultCountry:{type:Boolean,default:()=>tt("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>tt("dropdownOptions")},ignoredCountries:{type:Array,default:()=>tt("ignoredCountries")},inputOptions:{type:Object,default:()=>tt("inputOptions")},invalidMsg:{type:String,default:()=>tt("invalidMsg")},mode:{type:String,default:()=>tt("mode")},onlyCountries:{type:Array,default:()=>tt("onlyCountries")},preferredCountries:{type:Array,default:()=>tt("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>tt("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>tt("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),s=e,l=t,u=r.useModel(t,"modelValue");r.watch(u,(A,I)=>{S()?d.phone=A??"":r.nextTick(()=>{d.phone=I??"",M()})});const d=r.reactive({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:l.inputOptions.placeholder,searchQuery:""});r.watch(()=>d.open,A=>{A?(D(),s("open")):s("close")});const p=r.computed(()=>l.onlyCountries.length?l.allCountries.filter(({iso2:A})=>l.onlyCountries.some(I=>Tn(I)===A)):l.ignoredCountries.length?l.allCountries.filter(({iso2:A})=>!l.ignoredCountries.includes(Tn(A))&&!l.ignoredCountries.includes(xn(A))):l.allCountries),f=r.computed(()=>g(d.activeCountryCode));r.watch(f,(A,I)=>{if(!A&&I!=null&&I.iso2){d.activeCountryCode=I.iso2;return}A!=null&&A.iso2&&s("country-changed",A)});const c=r.computed(()=>{var A;const I=xn(l.mode);return I==="auto"?(A=d.phone)!=null&&A.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(I)?I:(console.error('Invalid value of prop "mode"'),"international")}),h=r.computed(()=>{const A=[...y(l.preferredCountries).map(U=>({...U,preferred:!0})),...p.value];if(!l.dropdownOptions.showSearchBox)return A;const I=d.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return A.filter(U=>new RegExp(I,"i").test(U.name)||new RegExp(I,"i").test(U.iso2)||new RegExp(I,"i").test(U.dialCode))}),v=r.computed(()=>{var A;const I=d.phone.startsWith("+")?ui(d.phone):ui(d.phone,d.activeCountryCode),U={country:I==null?void 0:I.country,countryCode:I==null?void 0:I.country,formatted:d.phone,valid:I==null?void 0:I.isValid(),possible:(A=I==null?void 0:I.isPossible)==null?void 0:A.call(I),nationalNumber:I==null?void 0:I.nationalNumber};return U.valid&&(U.formatted=I==null?void 0:I.format(Tn(c.value))),I!=null&&I.country&&(l.ignoredCountries.length||l.onlyCountries.length)&&!g(I.country)&&(U.valid=!1,U.possible=!1,I.country=null),I?{...U,...I}:U});r.watch(()=>v.value.countryCode,A=>{A&&(d.activeCountryCode=A)}),r.watch(()=>v.value.valid,()=>{s("validate",v.value)}),r.watch(()=>v.value.formatted,A=>{!l.autoFormat||l.customValidate||(E(A),r.nextTick(()=>{A&&!u.value&&(d.phone=A)}))}),r.watch(()=>l.inputOptions.placeholder,m),r.onMounted(()=>{u.value&&(d.phone=u.value.trim()),T(),_().then(()=>{var A;!d.phone&&(A=l.inputOptions)!=null&&A.showDialCode&&d.activeCountryCode&&(d.phone=`+${d.activeCountryCode}`),s("validate",v.value)}).catch(console.error).then(()=>{d.finishMounted=!0})});function m(){d.parsedPlaceholder=l.inputOptions.placeholder}function _(){return new Promise(A=>{var I;if(((I=d.phone)==null?void 0:I[0])==="+"){A();return}if(l.defaultCountry){if(typeof l.defaultCountry=="string"){k(l.defaultCountry),A();return}if(typeof l.defaultCountry=="number"){const F=w(l.defaultCountry);if(F){k(F.iso2),A();return}}}const U=l.preferredCountries[0]||p.value[0];l.autoDefaultCountry?cf().then(F=>{k(F||d.activeCountryCode)}).catch(F=>{console.warn(F),k(U)}).then(()=>{A()}):(k(U),A())})}function y(A=[]){return A.map(g).filter(Boolean)}function g(A=""){return p.value.find(I=>I.iso2===Tn(A))}function w(A){return p.value.find(I=>Number(I.dialCode)===A)}function b(A,I){const U=d.selectedIndex===A,F=A===l.preferredCountries.length-1,L=l.preferredCountries.some(z=>Tn(z)===I);return{highlighted:U,"last-preferred":F,preferred:L}}function k(A){var I,U,F;let L=A;if(typeof L=="string"&&(L=g(L)),!!L){if(((I=d.phone)==null?void 0:I[0])==="+"&&L.iso2&&v.value.nationalNumber){d.activeCountryCode=L.iso2,d.phone=((U=ui(v.value.nationalNumber,L.iso2))==null?void 0:U.formatInternational())??"";return}if((F=l.inputOptions)!=null&&F.showDialCode&&L){d.phone=`+${L.dialCode}`,d.activeCountryCode=L.iso2;return}d.activeCountryCode=L.iso2,E(d.phone)}}function T(){const A=d.phone;if(l.validCharactersOnly){const I=d.phone.match(/[()\-+0-9\s]*/g);d.phone=I.join("")}if(l.customValidate&&l.customValidate instanceof RegExp){const I=d.phone.match(l.customValidate);d.phone=I.join("")}A!==d.phone&&E(d.phone)}function S(){return l.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(d.phone)?!1:l.customValidate?x():!0}function x(){return l.customValidate instanceof RegExp?l.customValidate.test(d.phone):!1}function M(){var A;(A=i.value)==null||A.setCustomValidity(v.value.valid?"":l.invalidMsg),E(d.phone)}function E(A){u.value=A,s("on-input",A,v.value,i.value)}function C(A){s("blur",A)}function O(A){df(i.value,d.phone.length),s("focus",A)}function N(A){s("enter",A)}function R(A){s("space",A)}function q(){var A;(A=i.value)==null||A.focus()}function W(){var A;(A=i.value)==null||A.blur()}function Y(){l.disabled||l.dropdownOptions.disabled||(d.searchQuery="",d.open=!d.open)}function re(){d.open=!1}function K(A){if(A.keyCode===40){A.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=0:d.selectedIndex=Math.min(h.value.length-1,d.selectedIndex+1);const I=a.value.children[d.selectedIndex];I.focus(),I.offsetTop+I.clientHeight>a.value.scrollTop+a.value.clientHeight&&(a.value.scrollTop=I.offsetTop-a.value.clientHeight+I.clientHeight)}else if(A.keyCode===38){A.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=h.value.length-1:d.selectedIndex=Math.max(0,d.selectedIndex-1);const I=a.value.children[d.selectedIndex];I.focus(),I.offsetTop<a.value.scrollTop&&(a.value.scrollTop=I.offsetTop)}else if(A.keyCode===13)d.selectedIndex!==null&&k(h.value[d.selectedIndex]),d.open=!d.open;else if(d.open){d.typeToFindInput+=A.key,clearTimeout(d.typeToFindTimer),d.typeToFindTimer=setTimeout(()=>{d.typeToFindInput=""},700);const I=h.value.slice(l.preferredCountries.length).findIndex(U=>xn(U.name).startsWith(d.typeToFindInput));if(I>=0){d.selectedIndex=l.preferredCountries.length+I;const U=a.value.children[d.selectedIndex],F=U.offsetTop<a.value.scrollTop,L=U.offsetTop+U.clientHeight>a.value.scrollTop+a.value.clientHeight;(F||L)&&(a.value.scrollTop=U.offsetTop-a.value.clientHeight/2)}}}function V(){d.selectedIndex=h.value.map(A=>A.iso2).indexOf(d.activeCountryCode),d.open=!1}function D(){window.innerHeight-o.value.getBoundingClientRect().bottom>200?d.dropdownOpenDirection="below":d.dropdownOpenDirection="above"}return n({focus:q,blur:W}),(A,I)=>{const U=r.resolveDirective("click-outside");return r.openBlock(),r.createElementBlock("div",{ref_key:"refRoot",ref:o,class:r.normalizeClass(["vue-tel-input",t.styleClasses,{disabled:t.disabled}])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":d.open,role:"button",class:r.normalizeClass(["vti__dropdown",{open:d.open,disabled:t.dropdownOptions.disabled}]),tabindex:t.dropdownOptions.tabindex,onKeydown:[K,r.withKeys(Y,["space"]),r.withKeys(V,["esc"]),r.withKeys(V,["tab"])],onClick:Y},[r.createElementVNode("span",v1,[t.dropdownOptions.showFlags?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["vti__flag",r.unref(xn)(d.activeCountryCode)])},null,2)):r.createCommentVNode("",!0),t.dropdownOptions.showDialCodeInSelection?(r.openBlock(),r.createElementBlock("span",_1," +"+r.toDisplayString(f.value&&f.value.dialCode),1)):r.createCommentVNode("",!0),r.renderSlot(A.$slots,"arrow-icon",{open:d.open},()=>[r.createElementVNode("span",$1,r.toDisplayString(d.open?"▲":"▼"),1)])]),d.open?(r.openBlock(),r.createElementBlock("ul",{key:0,ref_key:"refList",ref:a,class:r.normalizeClass(["vti__dropdown-list",d.dropdownOpenDirection]),role:"listbox"},[t.dropdownOptions.showSearchBox?(r.openBlock(),r.createElementBlock("div",w1,[r.renderSlot(A.$slots,"search-icon"),r.withDirectives(r.createElementVNode("input",{class:r.normalizeClass(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:t.dropdownOptions.searchBoxPlaceholder||(h.value.length?h.value[0].name:""),type:"text","onUpdate:modelValue":I[0]||(I[0]=F=>d.searchQuery=F),onClick:I[1]||(I[1]=r.withModifiers(()=>{},["stop"]))},null,8,k1),[[r.vModelText,d.searchQuery]])])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,(F,L)=>(r.openBlock(),r.createElementBlock("li",{role:"option",class:r.normalizeClass(["vti__dropdown-item",b(L,F.iso2)]),key:F.iso2+(F.preferred?"-preferred":""),tabindex:"-1",onClick:z=>k(F),onMousemove:z=>d.selectedIndex=L,"aria-selected":d.activeCountryCode===F.iso2&&!F.preferred},[t.dropdownOptions.showFlags?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["vti__flag",r.unref(xn)(F.iso2)])},null,2)):r.createCommentVNode("",!0),r.createElementVNode("strong",null,r.toDisplayString(F.name),1),t.dropdownOptions.showDialCodeInList?(r.openBlock(),r.createElementBlock("span",O1," +"+r.toDisplayString(F.dialCode),1)):r.createCommentVNode("",!0)],42,C1))),128))],2)):r.createCommentVNode("",!0)],42,b1)),[[U,re]]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":I[2]||(I[2]=F=>d.phone=F),ref_key:"refInput",ref:i,type:t.inputOptions.type,autocomplete:t.inputOptions.autocomplete,autofocus:t.inputOptions.autofocus,class:r.normalizeClass(["vti__input","vti__phone",t.inputOptions.styleClasses]),disabled:t.disabled,id:t.inputOptions.id,maxlength:t.inputOptions.maxlength,name:t.inputOptions.name,placeholder:d.parsedPlaceholder,readonly:t.inputOptions.readonly,required:t.inputOptions.required,tabindex:t.inputOptions.tabindex,value:u.value,"aria-describedby":t.inputOptions["aria-describedby"],onBlur:C,onFocus:O,onInput:M,onKeyup:[r.withKeys(N,["enter"]),r.withKeys(R,["space"])]},null,42,E1),[[r.vModelDynamic,d.phone]]),r.renderSlot(A.$slots,"icon-right")],2)}}}),jp="",Vp="",x1={directives:{Outside:nr},props:{modelValue:{type:String},value:String,inputName:{type:String,default:"phone"},autoDefaultCountry:{type:Boolean,default:!0},ignoredCountries:{type:Array,default:()=>[]},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","onReady"],components:{VueTelInput:S1,IbAlert:Ft,IbIcon:Le},data(){return{vueTel:null,dialCode:"",defaultCountry:"US",allowChange:!1}},mounted(){this.vueTel=this.$refs.vueTel,this.$emit("onReady")},computed:{phone:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{countryChanged(t){this.$globalEvents.$on("countrySelectValue",n=>{this.vueTel.choose(n)}),!this.phone||this.phone.length-1<this.dialCode.length?this.phone="+"+t.dialCode:this.dialCode&&(this.phone=this.phone.replace(this.dialCode,t.dialCode)),this.dialCode=t.dialCode},clickOutside(){this.vueTel.open&&this.vueTel.clickedOutside()}}};function T1(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("vue-tel-input"),d=r.resolveDirective("outside");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.errorMessage.length?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-phone-error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.withDirectives((r.openBlock(),r.createBlock(u,r.mergeProps({modelValue:i.phone,"onUpdate:modelValue":n[0]||(n[0]=p=>i.phone=p)},t.$attrs,{onCountryChanged:i.countryChanged,"input-options":{name:e.inputName,id:e.inputName,autocomplete:"off"},"auto-default-country":e.autoDefaultCountry,"dropdown-options":{showSearchBox:!0,showFlags:!0,tabindex:0},defaultCountry:a.defaultCountry,ignoredCountries:e.ignoredCountries,class:{error:e.error||e.errorMessage.length,disabled:e.disabled},disabled:e.disabled,"style-classes":"ib-phone-input",ref:"vueTel"}),{"arrow-icon":r.withCtx(()=>[r.createVNode(l,{name:"chevron-down-outline"})]),_:1},16,["modelValue","onCountryChanged","input-options","auto-default-country","defaultCountry","ignoredCountries","class","disabled"])),[[d,i.clickOutside]])],64)}const N1=_e(x1,[["render",T1]]);var $a={exports:{}};/*!
85
+ `,Lp="",Uu="single",Jr="range",Ku={props:{name:{type:String,default:"Date"},modelValue:[String,Array],value:[String,Array],placeholder:{type:String,default:""},endDatePlaceholder:{type:String,default:""},required:{type:Boolean,default:!1},config:{type:Object,default:()=>{}},mode:{type:String,default:Uu},ariaLabel:{type:String,default:""},endDateAriaLabel:{type:String,default:""},label:{type:String,default:""},endDateLabel:{type:String,default:""},supportText:{type:String,default:""},endDateSupportText:{type:String,default:""},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},mounted(){document.addEventListener("keyup",this.onDocumentKeyDown,!0),this.$refs.inputsWrapper.addEventListener("keyup",this.backspaceHandler),this.$nextTick(()=>{this.initFlatpickr()})},watch:{config(){this.initFlatpickr()},value(){this.initFlatpickr()},disabled(){this.$nextTick(()=>{this.initFlatpickr()})},modelValue(){var n;if(JSON.stringify(this.modelValue)===JSON.stringify(this.data))return;let t;Array.isArray(this.modelValue)?t=this.modelValue[0]&&this.modelValue[1]?this.modelValue:[]:t=this.modelValue,(n=this.flat)==null||n.setDate(t,!0)}},data(){return{pickerOptions:{},data:this.modelValue,flat:null,isOpen:!1,isOpenEndDate:!1}},methods:{initFlatpickr(){this.flat=new Ve(this.$refs.date,this.pickerConfigs())},pickerConfigs(){var o,a;const t=document.querySelectorAll(".calendar-icon");let n={dateFormat:"Y-m-d",altInput:!0,altFormat:"Y-m-d",position:"left",mode:this.mode,appendTo:this.$refs.dropdown,prevArrow:Hu,nextArrow:zu,ignoredFocusElements:Array.from(t),locale:{weekdays:{shorthand:["S","M","T","W","T","F","S"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},onReady(i,s,l){l.setDate(s,!0)},onChange:(i,s)=>this.onChange(s),onClose:()=>this.onClose()};this.mode===Jr&&(n.plugins=[new Fu({input:this.$refs.toDate})]),(this.value||this.modelValue)&&(this.mode===Jr?n.defaultDate=this.modelValue.length?[this.modelValue[0],this.modelValue[1]]:[(o=this.value)==null?void 0:o[0],(a=this.value)==null?void 0:a[1]]:n.defaultDate=this.modelValue?this.modelValue:this.value);const e=Object.assign({},n,this.config);return this.pickerOptions=e,e},onClose(){this.triggerChange(),this.$nextTick(()=>{this.isOpen=!1,this.isOpenEndDate=!1,this.$emit("blur")})},onChange(t){this.mode===Jr?this.data=t.split(" to "):this.data=t},onDocumentKeyDown(t){t.keyCode===Lr&&this.onClose()},onKeydownEndField(t){t.key==="ArrowDown"&&this.flat.selectedDateElem.focus()},backspaceHandler(t){t.keyCode===bs&&(this.$emit("input",""),this.$emit("update:modelValue",""))},triggerChange(){setTimeout(()=>{if(this.pickerOptions.mode==="range"){let t=this.data;t.length<2?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",[t[0],t[1]]),this.$emit("update:modelValue",this.data))}else this.data===""?(this.$emit("input",""),this.$emit("update:modelValue",this.data)):(this.$emit("input",this.data),this.$emit("update:modelValue",this.data)),this.$emit("blur")})},open(){this.isOpen||(this.isOpen=!0,this.isOpenEndDate=!1,this.flat.open())},openEndDate(){this.isOpen=!1,this.isOpenEndDate=!0,this.$refs.toDate.click()}},computed:{values(){var t;return this.data?(t=this.data)==null?void 0:t.split(" to "):[]}},beforeUnmount(){document.removeEventListener("keyup",this.onDocumentKeyDown),this.$refs.inputsWrapper.removeEventListener("keyup",this.backspaceHandler)},components:{IbIcon:Le,IbLabel:kn,IbAlert:Ft},emits:["input","update:modelValue"]},Gu={ref:"inputsWrapper",class:"inputs-wrapper"},Wu={class:"input-group-wrapper"},Yu=["aria-label"],Zu=["placeholder","name","disabled"],Ju={ref:"dropdown",class:"dropdown"},Xu={key:1,class:"support-text"},Qu={key:0,class:"input-group-wrapper"},ef=["aria-label"],tf=["placeholder"],nf={key:1,class:"support-text"};function rf(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-label"),u=r.resolveComponent("ib-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ib-flatpickr-wrapper",{"has-labels":e.label.length||e.endDateLabel.length,"has-label":e.label.length,"has-error":e.errorMessage.length,"is-disabled":e.disabled,"is-range":e.mode==="range"}])},[e.errorMessage.length?(r.openBlock(),r.createBlock(s,{key:0,class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",Gu,[r.createElementVNode("div",Wu,[e.label.length?(r.openBlock(),r.createBlock(l,{key:0,class:"label",required:e.required},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.label),1)]),_:1},8,["required"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["input-wrapper",{active:a.isOpen}]),onClick:n[0]||(n[0]=(...d)=>i.open&&i.open(...d))},[r.createElementVNode("label",{"aria-label":e.ariaLabel},[r.createElementVNode("input",{placeholder:e.placeholder,name:e.name,ref:"date",id:"date",disabled:e.disabled,class:"date-picker-input"},null,8,Zu)],8,Yu),r.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),r.createElementVNode("div",Ju,null,512),e.supportText.length?(r.openBlock(),r.createElementBlock("p",Xu,r.toDisplayString(e.supportText),1)):r.createCommentVNode("",!0)]),e.mode==="range"?(r.openBlock(),r.createElementBlock("div",Qu,[e.endDateLabel.length?(r.openBlock(),r.createBlock(l,{key:0,class:"end-date-label label",required:e.required},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.endDateLabel),1)]),_:1},8,["required"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["input-wrapper",{active:a.isOpenEndDate}]),onClick:n[2]||(n[2]=(...d)=>i.openEndDate&&i.openEndDate(...d))},[r.createElementVNode("label",{"aria-label":e.endDateAriaLabel},[r.createElementVNode("input",{class:"date-picker-input",placeholder:e.endDatePlaceholder,ref:"toDate",onKeydown:n[1]||(n[1]=(...d)=>i.onKeydownEndField&&i.onKeydownEndField(...d))},null,40,tf)],8,ef),r.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(r.openBlock(),r.createElementBlock("p",nf,r.toDisplayString(e.endDateSupportText),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],512)],2)}const of=_e(Ku,[["render",rf]]),af=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (République démocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],lf=af.map(([t,n,e,o=0,a=null])=>({name:t,iso2:n.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function sf(){return fetch("https://ip2c.org/s").then(t=>t.text()).then(t=>{const n=(t||"").toString();if(!n||n[0]!=="1")throw new Error("unable to fetch the country");return n.substr(2,2)})}function cf(t,n){if(t.setSelectionRange)t.focus(),t.setSelectionRange(n,n);else if("createTextRange"in t&&typeof t.createTextRange=="function"){const e=t.createTextRange();e.collapse(!0),e.moveEnd("character",n),e.moveStart("character",n),e.select()}}const df=[{name:"allCountries",type:Array,default:lf,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],uf=[...df].reduce((t,n)=>{if(n.name.includes(".")){const[e,o]=n.name.split(".");t[e]?Object.assign(t[e],{[o]:n.default}):Object.assign(t,{[e]:{[o]:n.default}})}else Object.assign(t,{[n.name]:n.default});return t},{}),Vo={options:{...uf}};function tt(t){const n=Vo.options[t];return typeof n>"u"?Vo.options[t]:n}function xn(t){return t==null?void 0:t.toLowerCase()}function Tn(t){return t==null?void 0:t.toUpperCase()}const ff={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function hf(t,n){var e=Array.prototype.slice.call(n);return e.push(ff),t.apply(this,e)}function Xr(t){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xr(t)}function qo(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function pf(t,n,e){return n&&qo(t.prototype,n),e&&qo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mf(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function gf(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Nn(t,n)}function yf(t){var n=Ho();return function(){var e=An(t),o;if(n){var a=An(this).constructor;o=Reflect.construct(e,arguments,a)}else o=e.apply(this,arguments);return bf(this,o)}}function bf(t,n){if(n&&(Xr(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fo(t)}function Fo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qr(t){var n=typeof Map=="function"?new Map:void 0;return Qr=function(e){if(e===null||!vf(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(e))return n.get(e);n.set(e,o)}function o(){return cr(e,arguments,An(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Nn(o,e)},Qr(t)}function cr(t,n,e){return Ho()?cr=Reflect.construct:cr=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),u=new l;return i&&Nn(u,i.prototype),u},cr.apply(null,arguments)}function Ho(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Nn(t,n){return Nn=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},Nn(t,n)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},An(t)}var At=function(t){gf(e,t);var n=yf(e);function e(o){var a;return mf(this,e),a=n.call(this,o),Object.setPrototypeOf(Fo(a),e.prototype),a.name=a.constructor.name,a}return pf(e)}(Qr(Error)),ei=2,_f=17,$f=3,yt="0-90-9٠-٩۰-۹",wf="-‐-―−ー-",kf="//",Cf="..",Of="  ­​⁠ ",Ef="()()[]\\[\\]",Sf="~⁓∼~",dr="".concat(wf).concat(kf).concat(Cf).concat(Of).concat(Ef).concat(Sf),ti="++";function zo(t,n){t=t.split("-"),n=n.split("-");for(var e=t[0].split("."),o=n[0].split("."),a=0;a<3;a++){var i=Number(e[a]),s=Number(o[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return t[1]&&n[1]?t[1]>n[1]?1:t[1]<n[1]?-1:0:!t[1]&&n[1]?1:t[1]&&!n[1]?-1:0}var xf={}.constructor;function ur(t){return t!=null&&t.constructor===xf}function ni(t){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ni(t)}function fr(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Uo(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function hr(t,n,e){return n&&Uo(t.prototype,n),e&&Uo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Tf="1.2.0",Nf="1.7.35",Ko=" ext. ",Af=/^\d+$/,nt=function(){function t(n){fr(this,t),Bf(n),this.metadata=n,Yo.call(this,n)}return hr(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var e=this.countryCallingCodes()[n];if(e&&e.length===1&&e[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,e){if(n&&Af.test(n)&&(e=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Go(this.getCountryMetadata(n),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new Go(this.getNumberingPlanMetadata(e),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var e=this.countryCallingCodes()[n];if(e)return e.length===1&&e[0].length===3?void 0:e}},{key:"getCountryCodeForCallingCode",value:function(n){var e=this.getCountryCodesForCallingCode(n);if(e)return e[0]}},{key:"getNumberingPlanMetadata",value:function(n){var e=this.getCountryCodeForCallingCode(n);if(e)return this.getCountryMetadata(e);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t}(),Go=function(){function t(n,e){fr(this,t),this.globalMetadataObject=e,this.metadata=n,Yo.call(this,e.metadata)}return hr(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,e=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return e.map(function(o){return new Df(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Wo(this.types(),n))return new If(Wo(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ko:this.metadata[13]||Ko}}]),t}(),Df=function(){function t(n,e){fr(this,t),this._format=n,this.metadata=e}return hr(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Pf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),Pf=/^\(?\$1\)?$/,If=function(){function t(n,e){fr(this,t),this.type=n,this.metadata=e}return hr(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function Wo(t,n){switch(n){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function Bf(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!ur(t)||!ur(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ur(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+Mf(t)+": "+t,"."))}var Mf=function(t){return ni(t)};function ri(t,n){if(n=new nt(n),n.hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function Lf(t,n){return n.countries.hasOwnProperty(t)}function Yo(t){var n=t.version;typeof n=="number"?(this.v1=n===1,this.v2=n===2,this.v3=n===3,this.v4=n===4):n?zo(n,Tf)===-1?this.v2=!0:zo(n,Nf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Rf=";ext=",un=function(t){return"([".concat(yt,"]{1,").concat(t,"})")};function Zo(t){var n="20",e="15",o="9",a="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",p="[- ]+",f="[  \\t]*",c="(?:,{2}|;)",h=Rf+un(n),v=i+u+s+un(n)+l,m=i+d+s+un(o)+l,_=p+un(a)+"#",y=f+c+s+un(e)+l,g=f+"(?:,)+"+s+un(o)+l;return h+"|"+v+"|"+m+"|"+_+"|"+y+"|"+g}var jf="["+yt+"]{"+ei+"}",Vf="["+ti+"]{0,1}(?:["+dr+"]*["+yt+"]){3,}["+dr+yt+"]*",qf=new RegExp("^["+ti+"]{0,1}(?:["+dr+"]*["+yt+"]){1,2}$","i"),Ff=Vf+"(?:"+Zo()+")?",Hf=new RegExp("^"+jf+"$|^"+Ff+"$","i");function zf(t){return t.length>=ei&&Hf.test(t)}function Uf(t){return qf.test(t)}var Jo=new RegExp("(?:"+Zo()+")$","i");function Kf(t){var n=t.search(Jo);if(n<0)return{};for(var e=t.slice(0,n),o=t.match(Jo),a=1;a<o.length;){if(o[a])return{number:e,ext:o[a]};a++}}var Gf={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Wf(t){return Gf[t]}function Yf(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Zf(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zf(t,n){if(t){if(typeof t=="string")return Xo(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Xo(t,n)}}function Xo(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function Qo(t){for(var n="",e=Yf(t.split("")),o;!(o=e()).done;){var a=o.value;n+=Jf(a,n)||""}return n}function Jf(t,n){return t==="+"?n?void 0:"+":Wf(t)}function Xf(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Qf(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qf(t,n){if(t){if(typeof t=="string")return ea(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ea(t,n)}}function ea(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function eh(t,n){for(var e=t.slice(),o=Xf(n),a;!(a=o()).done;){var i=a.value;t.indexOf(i)<0&&e.push(i)}return e.sort(function(s,l){return s-l})}function ii(t,n){return ta(t,void 0,n)}function ta(t,n,e){var o=e.type(n),a=o&&o.possibleLengths()||e.possibleLengths();if(!a)return"IS_POSSIBLE";if(n==="FIXED_LINE_OR_MOBILE"){if(!e.type("FIXED_LINE"))return ta(t,"MOBILE",e);var i=e.type("MOBILE");i&&(a=eh(a,i.possibleLengths()))}else if(n&&!o)return"INVALID_LENGTH";var s=t.length,l=a[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function th(t,n,e){if(n===void 0&&(n={}),e=new nt(e),n.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!e.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));e.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");e.selectNumberingPlan(t.countryCallingCode)}}if(e.possibleLengths())return na(t.phone||t.nationalNumber,e);if(t.countryCallingCode&&e.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function na(t,n){switch(ii(t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Dt(t,n){return t=t||"",new RegExp("^(?:"+n+")$").test(t)}function nh(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=rh(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
88
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rh(t,n){if(t){if(typeof t=="string")return ra(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ra(t,n)}}function ra(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}var ih=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function oi(t,n,e){if(n=n||{},!(!t.country&&!t.countryCallingCode)){e=new nt(e),e.selectNumberingPlan(t.country,t.countryCallingCode);var o=n.v2?t.nationalNumber:t.phone;if(Dt(o,e.nationalNumberPattern())){if(ai(o,"FIXED_LINE",e))return e.type("MOBILE")&&e.type("MOBILE").pattern()===""||!e.type("MOBILE")||ai(o,"MOBILE",e)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=nh(ih),i;!(i=a()).done;){var s=i.value;if(ai(o,s,e))return s}}}}function ai(t,n,e){return n=e.type(n),!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(t.length)<0?!1:Dt(t,n.pattern())}function oh(t,n,e){if(n=n||{},e=new nt(e),e.selectNumberingPlan(t.country,t.countryCallingCode),e.hasTypes())return oi(t,n,e.metadata)!==void 0;var o=n.v2?t.nationalNumber:t.phone;return Dt(o,e.nationalNumberPattern())}function ah(t,n,e){var o=new nt(e),a=o.getCountryCodesForCallingCode(t);return a?a.filter(function(i){return lh(n,i,e)}):[]}function lh(t,n,e){var o=new nt(e);return o.selectNumberingPlan(n),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function sh(t){return t.replace(new RegExp("[".concat(dr,"]+"),"g")," ").trim()}var ch=/(\$\d)/;function dh(t,n,e){var o=e.useInternationalFormat,a=e.withNationalPrefix;e.carrierCode,e.metadata;var i=t.replace(new RegExp(n.pattern()),o?n.internationalFormat():a&&n.nationalPrefixFormattingRule()?n.format().replace(ch,n.nationalPrefixFormattingRule()):n.format());return o?sh(i):i}var uh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function fh(t,n,e){var o=new nt(e);if(o.selectNumberingPlan(t,n),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(uh.test(o.IDDPrefix()))return o.IDDPrefix()}function hh(t){var n=t.number,e=t.ext;if(!n)return"";if(n[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(n).concat(e?";ext="+e:"")}function ph(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=mh(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
89
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mh(t,n){if(t){if(typeof t=="string")return ia(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ia(t,n)}}function ia(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function oa(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function aa(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?oa(Object(e),!0).forEach(function(o){gh(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):oa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function gh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var la={formatExtension:function(t,n,e){return"".concat(t).concat(e.ext()).concat(n)}};function yh(t,n,e,o){if(e?e=aa(aa({},la),e):e=la,o=new nt(o),t.country&&t.country!=="001"){if(!o.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));o.country(t.country)}else if(t.countryCallingCode)o.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var a=o.countryCallingCode(),i=e.v2?t.nationalNumber:t.phone,s;switch(n){case"NATIONAL":return i?(s=pr(i,t.carrierCode,"NATIONAL",o,e),li(s,t.ext,o,e.formatExtension)):"";case"INTERNATIONAL":return i?(s=pr(i,null,"INTERNATIONAL",o,e),s="+".concat(a," ").concat(s),li(s,t.ext,o,e.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return hh({number:"+".concat(a).concat(i),ext:t.ext});case"IDD":if(!e.fromCountry)return;var l=vh(i,t.carrierCode,a,e.fromCountry,o);return li(l,t.ext,o,e.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n,'"'))}}function pr(t,n,e,o,a){var i=bh(o.formats(),t);return i?dh(t,i,{useInternationalFormat:e==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:n,metadata:o}):t}function bh(t,n){for(var e=ph(t),o;!(o=e()).done;){var a=o.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(n.search(i)!==0)continue}if(Dt(n,a.pattern()))return a}}function li(t,n,e,o){return n?o(t,n,e):t}function vh(t,n,e,o,a){var i=ri(o,a.metadata);if(i===e){var s=pr(t,n,"NATIONAL",a);return e==="1"?e+" "+s:s}var l=fh(o,void 0,a.metadata);if(l)return"".concat(l," ").concat(e," ").concat(pr(t,null,"INTERNATIONAL",a))}function sa(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ca(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?sa(Object(e),!0).forEach(function(o){_h(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sa(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function _h(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function $h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function da(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function wh(t,n,e){return n&&da(t.prototype,n),e&&da(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var kh=function(){function t(n,e,o){if($h(this,t),!n)throw new TypeError("`country` or `countryCallingCode` not passed");if(!e)throw new TypeError("`nationalNumber` not passed");if(!o)throw new TypeError("`metadata` not passed");var a=Oh(n,o),i=a.country,s=a.countryCallingCode;this.country=i,this.countryCallingCode=s,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return wh(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:ah(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return th(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return oh(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new nt(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return oi(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,e){return yh(this,n,e?ca(ca({},e),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),t}(),Ch=function(t){return/^[A-Z]{2}$/.test(t)};function Oh(t,n){var e,o,a=new nt(n);return Ch(t)?(e=t,a.selectNumberingPlan(e),o=a.countryCallingCode()):o=t,{country:e,countryCallingCode:o}}var Eh=new RegExp("(["+yt+"])");function Sh(t,n,e,o){if(n){var a=new nt(o);a.selectNumberingPlan(n,e);var i=new RegExp(a.IDDPrefix());if(t.search(i)===0){t=t.slice(t.match(i)[0].length);var s=t.match(Eh);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function xh(t,n){if(t&&n.numberingPlan.nationalPrefixForParsing()){var e=new RegExp("^(?:"+n.numberingPlan.nationalPrefixForParsing()+")"),o=e.exec(t);if(o){var a,i,s=o.length-1,l=s>0&&o[s];if(n.nationalPrefixTransformRule()&&l)a=t.replace(e,n.nationalPrefixTransformRule()),s>1&&(i=o[1]);else{var u=o[0];a=t.slice(u.length),l&&(i=o[1])}var d;if(l){var p=t.indexOf(o[1]),f=t.slice(0,p);f===n.numberingPlan.nationalPrefix()&&(d=n.numberingPlan.nationalPrefix())}else d=o[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:t}}function si(t,n){var e=xh(t,n),o=e.carrierCode,a=e.nationalNumber;if(a!==t){if(!Th(t,a,n))return{nationalNumber:t};if(n.possibleLengths()&&!Nh(a,n))return{nationalNumber:t}}return{nationalNumber:a,carrierCode:o}}function Th(t,n,e){return!(Dt(t,e.nationalNumberPattern())&&!Dt(n,e.nationalNumberPattern()))}function Nh(t,n){switch(ii(t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Ah(t,n,e,o){var a=n?ri(n,o):e;if(t.indexOf(a)===0){o=new nt(o),o.selectNumberingPlan(n,e);var i=t.slice(a.length),s=si(i,o),l=s.nationalNumber,u=si(t,o),d=u.nationalNumber;if(!Dt(d,o.nationalNumberPattern())&&Dt(l,o.nationalNumberPattern())||ii(d,o)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:t}}function Dh(t,n,e,o){if(!t)return{};var a;if(t[0]!=="+"){var i=Sh(t,n,e,o);if(i&&i!==t)a=!0,t="+"+i;else{if(n||e){var s=Ah(t,n,e,o),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:t}}}if(t[1]==="0")return{};o=new nt(o);for(var d=2;d-1<=$f&&d<=t.length;){var p=t.slice(1,d);if(o.hasCallingCode(p))return o.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(d)};d++}return{}}function Ph(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Ih(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
90
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ih(t,n){if(t){if(typeof t=="string")return ua(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ua(t,n)}}function ua(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function Bh(t,n){var e=n.countries,o=n.defaultCountry,a=n.metadata;a=new nt(a);for(var i=[],s=Ph(e),l;!(l=s()).done;){var u=l.value;if(a.country(u),a.leadingDigits()){if(t&&t.search(a.leadingDigits())===0)return u}else if(oi({phone:t,country:u},void 0,a.metadata))if(o){if(u===o)return u;i.push(u)}else return u}if(i.length>0)return i[0]}function Mh(t,n){var e=n.nationalNumber,o=n.defaultCountry,a=n.metadata,i=a.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Bh(e,{countries:i,defaultCountry:o,metadata:a.metadata})}var fa="+",Lh="[\\-\\.\\(\\)]?",ha="(["+yt+"]|"+Lh+")",Rh="^\\"+fa+ha+"*["+yt+"]"+ha+"*$",jh=new RegExp(Rh,"g"),ci=yt,Vh="["+ci+"]+((\\-)*["+ci+"])*",qh="a-zA-Z",Fh="["+qh+"]+((\\-)*["+ci+"])*",Hh="^("+Vh+"\\.)*"+Fh+"\\.?$",zh=new RegExp(Hh,"g"),pa="tel:",di=";phone-context=",Uh=";isub=";function Kh(t){var n=t.indexOf(di);if(n<0)return null;var e=n+di.length;if(e>=t.length)return"";var o=t.indexOf(";",e);return o>=0?t.substring(e,o):t.substring(e)}function Gh(t){return t===null?!0:t.length===0?!1:jh.test(t)||zh.test(t)}function Wh(t,n){var e=n.extractFormattedPhoneNumber,o=Kh(t);if(!Gh(o))throw new At("NOT_A_NUMBER");var a;if(o===null)a=e(t)||"";else{a="",o.charAt(0)===fa&&(a+=o);var i=t.indexOf(pa),s;i>=0?s=i+pa.length:s=0;var l=t.indexOf(di);a+=t.substring(s,l)}var u=a.indexOf(Uh);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var Yh=250,Zh=new RegExp("["+ti+yt+"]"),Jh=new RegExp("[^"+yt+"#]+$");function Xh(t,n,e){if(n=n||{},e=new nt(e),n.defaultCountry&&!e.hasCountry(n.defaultCountry))throw n.v2?new At("INVALID_COUNTRY"):new Error("Unknown country: ".concat(n.defaultCountry));var o=e1(t,n.v2,n.extract),a=o.number,i=o.ext,s=o.error;if(!a){if(n.v2)throw s==="TOO_SHORT"?new At("TOO_SHORT"):new At("NOT_A_NUMBER");return{}}var l=n1(a,n.defaultCountry,n.defaultCallingCode,e),u=l.country,d=l.nationalNumber,p=l.countryCallingCode,f=l.countryCallingCodeSource,c=l.carrierCode;if(!e.hasSelectedNumberingPlan()){if(n.v2)throw new At("INVALID_COUNTRY");return{}}if(!d||d.length<ei){if(n.v2)throw new At("TOO_SHORT");return{}}if(d.length>_f){if(n.v2)throw new At("TOO_LONG");return{}}if(n.v2){var h=new kh(p,d,e.metadata);return u&&(h.country=u),c&&(h.carrierCode=c),i&&(h.ext=i),h.__countryCallingCodeSource=f,h}var v=(n.extended?e.hasSelectedNumberingPlan():u)?Dt(d,e.nationalNumberPattern()):!1;return n.extended?{country:u,countryCallingCode:p,carrierCode:c,valid:v,possible:v?!0:!!(n.extended===!0&&e.possibleLengths()&&na(d,e)),phone:d,ext:i}:v?t1(u,d,i):{}}function Qh(t,n,e){if(t){if(t.length>Yh){if(e)throw new At("TOO_LONG");return}if(n===!1)return t;var o=t.search(Zh);if(!(o<0))return t.slice(o).replace(Jh,"")}}function e1(t,n,e){var o=Wh(t,{extractFormattedPhoneNumber:function(i){return Qh(i,e,n)}});if(!o)return{};if(!zf(o))return Uf(o)?{error:"TOO_SHORT"}:{};var a=Kf(o);return a.ext?a:{number:o}}function t1(t,n,e){var o={country:t,phone:n};return e&&(o.ext=e),o}function n1(t,n,e,o){var a=Dh(Qo(t),n,e,o.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number,u;if(s)o.selectNumberingPlan(s);else if(l&&(n||e))o.selectNumberingPlan(n,e),n&&(u=n),s=e||ri(n,o.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:s};var d=si(Qo(l),o),p=d.nationalNumber,f=d.carrierCode,c=Mh(s,{nationalNumber:p,defaultCountry:n,metadata:o});return c&&(u=c,c==="001"||o.country(u)),{country:u,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:p,carrierCode:f}}function ma(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function ga(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ma(Object(e),!0).forEach(function(o){r1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ma(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function r1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function i1(t,n,e){return Xh(t,ga(ga({},n),{},{v2:!0}),e)}function ya(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function o1(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ya(Object(e),!0).forEach(function(o){a1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ya(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function a1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function l1(t,n){return u1(t)||d1(t,n)||c1(t,n)||s1()}function s1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c1(t,n){if(t){if(typeof t=="string")return ba(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ba(t,n)}}function ba(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}function d1(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var o=[],a=!0,i=!1,s,l;try{for(e=e.call(t);!(a=(s=e.next()).done)&&(o.push(s.value),!(n&&o.length===n));a=!0);}catch(u){i=!0,l=u}finally{try{!a&&e.return!=null&&e.return()}finally{if(i)throw l}}return o}}function u1(t){if(Array.isArray(t))return t}function f1(t){var n=Array.prototype.slice.call(t),e=l1(n,4),o=e[0],a=e[1],i=e[2],s=e[3],l,u,d;if(typeof o=="string")l=o;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(u=i,d=s):(u=void 0,d=i),a&&(u=o1({defaultCountry:a},u));else if(ur(a))i?(u=a,d=i):d=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:u,metadata:d}}function va(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,o)}return e}function _a(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?va(Object(e),!0).forEach(function(o){h1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):va(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function h1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function p1(t,n,e){n&&n.defaultCountry&&!Lf(n.defaultCountry,e)&&(n=_a(_a({},n),{},{defaultCountry:void 0}));try{return i1(t,n,e)}catch(o){if(!(o instanceof At))throw o}}function m1(){var t=f1(arguments),n=t.text,e=t.options,o=t.metadata;return p1(n,e,o)}function ui(){return hf(m1,arguments)}const g1={beforeMount(t,n,e){if(typeof n.value!="function"){const o=e.context.name;let a=`[Vue-click-outside:] provided expression ${n.expression} is not a function, but has to be`;o&&(a+=`Found in component ${o}`),console.warn(a)}t.clickOutsideEvent=function(o){const a=o.composedPath?o.composedPath():o.path;t===o.target||t.contains(o.target)||a.includes(t)||n.value(o,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}},y1=["aria-expanded","tabindex"],b1={class:"vti__selection"},v1={key:1,class:"vti__country-code"},_1={class:"vti__dropdown-arrow"},$1={key:0,class:"vti__search_box_container"},w1=["placeholder"],k1=["onClick","onMousemove","aria-selected"],C1={key:1},O1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],E1=r.defineComponent({name:"VueTelInput",directives:{clickOutside:g1},__name:"vue-tel-input",props:r.mergeModels({allCountries:{type:Array,default:()=>tt("allCountries")},autoFormat:{type:Boolean,default:()=>tt("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>tt("customValidate")},defaultCountry:{type:[String,Number],default:()=>tt("defaultCountry")},disabled:{type:Boolean,default:()=>tt("disabled")},autoDefaultCountry:{type:Boolean,default:()=>tt("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>tt("dropdownOptions")},ignoredCountries:{type:Array,default:()=>tt("ignoredCountries")},inputOptions:{type:Object,default:()=>tt("inputOptions")},invalidMsg:{type:String,default:()=>tt("invalidMsg")},mode:{type:String,default:()=>tt("mode")},onlyCountries:{type:Array,default:()=>tt("onlyCountries")},preferredCountries:{type:Array,default:()=>tt("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>tt("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>tt("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),s=e,l=t,u=r.useModel(t,"modelValue");r.watch(u,(A,I)=>{S()?d.phone=A??"":r.nextTick(()=>{d.phone=I??"",M()})});const d=r.reactive({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:l.inputOptions.placeholder,searchQuery:""});r.watch(()=>d.open,A=>{A?(D(),s("open")):s("close")});const p=r.computed(()=>l.onlyCountries.length?l.allCountries.filter(({iso2:A})=>l.onlyCountries.some(I=>Tn(I)===A)):l.ignoredCountries.length?l.allCountries.filter(({iso2:A})=>!l.ignoredCountries.includes(Tn(A))&&!l.ignoredCountries.includes(xn(A))):l.allCountries),f=r.computed(()=>g(d.activeCountryCode));r.watch(f,(A,I)=>{if(!A&&I!=null&&I.iso2){d.activeCountryCode=I.iso2;return}A!=null&&A.iso2&&s("country-changed",A)});const c=r.computed(()=>{var A;const I=xn(l.mode);return I==="auto"?(A=d.phone)!=null&&A.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(I)?I:(console.error('Invalid value of prop "mode"'),"international")}),h=r.computed(()=>{const A=[...y(l.preferredCountries).map(U=>({...U,preferred:!0})),...p.value];if(!l.dropdownOptions.showSearchBox)return A;const I=d.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return A.filter(U=>new RegExp(I,"i").test(U.name)||new RegExp(I,"i").test(U.iso2)||new RegExp(I,"i").test(U.dialCode))}),v=r.computed(()=>{var A;const I=d.phone.startsWith("+")?ui(d.phone):ui(d.phone,d.activeCountryCode),U={country:I==null?void 0:I.country,countryCode:I==null?void 0:I.country,formatted:d.phone,valid:I==null?void 0:I.isValid(),possible:(A=I==null?void 0:I.isPossible)==null?void 0:A.call(I),nationalNumber:I==null?void 0:I.nationalNumber};return U.valid&&(U.formatted=I==null?void 0:I.format(Tn(c.value))),I!=null&&I.country&&(l.ignoredCountries.length||l.onlyCountries.length)&&!g(I.country)&&(U.valid=!1,U.possible=!1,I.country=null),I?{...U,...I}:U});r.watch(()=>v.value.countryCode,A=>{A&&(d.activeCountryCode=A)}),r.watch(()=>v.value.valid,()=>{s("validate",v.value)}),r.watch(()=>v.value.formatted,A=>{!l.autoFormat||l.customValidate||(E(A),r.nextTick(()=>{A&&!u.value&&(d.phone=A)}))}),r.watch(()=>l.inputOptions.placeholder,m),r.onMounted(()=>{u.value&&(d.phone=u.value.trim()),T(),_().then(()=>{var A;!d.phone&&(A=l.inputOptions)!=null&&A.showDialCode&&d.activeCountryCode&&(d.phone=`+${d.activeCountryCode}`),s("validate",v.value)}).catch(console.error).then(()=>{d.finishMounted=!0})});function m(){d.parsedPlaceholder=l.inputOptions.placeholder}function _(){return new Promise(A=>{var I;if(((I=d.phone)==null?void 0:I[0])==="+"){A();return}if(l.defaultCountry){if(typeof l.defaultCountry=="string"){k(l.defaultCountry),A();return}if(typeof l.defaultCountry=="number"){const F=w(l.defaultCountry);if(F){k(F.iso2),A();return}}}const U=l.preferredCountries[0]||p.value[0];l.autoDefaultCountry?sf().then(F=>{k(F||d.activeCountryCode)}).catch(F=>{console.warn(F),k(U)}).then(()=>{A()}):(k(U),A())})}function y(A=[]){return A.map(g).filter(Boolean)}function g(A=""){return p.value.find(I=>I.iso2===Tn(A))}function w(A){return p.value.find(I=>Number(I.dialCode)===A)}function b(A,I){const U=d.selectedIndex===A,F=A===l.preferredCountries.length-1,L=l.preferredCountries.some(z=>Tn(z)===I);return{highlighted:U,"last-preferred":F,preferred:L}}function k(A){var I,U,F;let L=A;if(typeof L=="string"&&(L=g(L)),!!L){if(((I=d.phone)==null?void 0:I[0])==="+"&&L.iso2&&v.value.nationalNumber){d.activeCountryCode=L.iso2,d.phone=((U=ui(v.value.nationalNumber,L.iso2))==null?void 0:U.formatInternational())??"";return}if((F=l.inputOptions)!=null&&F.showDialCode&&L){d.phone=`+${L.dialCode}`,d.activeCountryCode=L.iso2;return}d.activeCountryCode=L.iso2,E(d.phone)}}function T(){const A=d.phone;if(l.validCharactersOnly){const I=d.phone.match(/[()\-+0-9\s]*/g);d.phone=I.join("")}if(l.customValidate&&l.customValidate instanceof RegExp){const I=d.phone.match(l.customValidate);d.phone=I.join("")}A!==d.phone&&E(d.phone)}function S(){return l.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(d.phone)?!1:l.customValidate?x():!0}function x(){return l.customValidate instanceof RegExp?l.customValidate.test(d.phone):!1}function M(){var A;(A=i.value)==null||A.setCustomValidity(v.value.valid?"":l.invalidMsg),E(d.phone)}function E(A){u.value=A,s("on-input",A,v.value,i.value)}function C(A){s("blur",A)}function O(A){cf(i.value,d.phone.length),s("focus",A)}function N(A){s("enter",A)}function R(A){s("space",A)}function q(){var A;(A=i.value)==null||A.focus()}function W(){var A;(A=i.value)==null||A.blur()}function Y(){l.disabled||l.dropdownOptions.disabled||(d.searchQuery="",d.open=!d.open)}function re(){d.open=!1}function K(A){if(A.keyCode===40){A.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=0:d.selectedIndex=Math.min(h.value.length-1,d.selectedIndex+1);const I=a.value.children[d.selectedIndex];I.focus(),I.offsetTop+I.clientHeight>a.value.scrollTop+a.value.clientHeight&&(a.value.scrollTop=I.offsetTop-a.value.clientHeight+I.clientHeight)}else if(A.keyCode===38){A.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=h.value.length-1:d.selectedIndex=Math.max(0,d.selectedIndex-1);const I=a.value.children[d.selectedIndex];I.focus(),I.offsetTop<a.value.scrollTop&&(a.value.scrollTop=I.offsetTop)}else if(A.keyCode===13)d.selectedIndex!==null&&k(h.value[d.selectedIndex]),d.open=!d.open;else if(d.open){d.typeToFindInput+=A.key,clearTimeout(d.typeToFindTimer),d.typeToFindTimer=setTimeout(()=>{d.typeToFindInput=""},700);const I=h.value.slice(l.preferredCountries.length).findIndex(U=>xn(U.name).startsWith(d.typeToFindInput));if(I>=0){d.selectedIndex=l.preferredCountries.length+I;const U=a.value.children[d.selectedIndex],F=U.offsetTop<a.value.scrollTop,L=U.offsetTop+U.clientHeight>a.value.scrollTop+a.value.clientHeight;(F||L)&&(a.value.scrollTop=U.offsetTop-a.value.clientHeight/2)}}}function V(){d.selectedIndex=h.value.map(A=>A.iso2).indexOf(d.activeCountryCode),d.open=!1}function D(){window.innerHeight-o.value.getBoundingClientRect().bottom>200?d.dropdownOpenDirection="below":d.dropdownOpenDirection="above"}return n({focus:q,blur:W}),(A,I)=>{const U=r.resolveDirective("click-outside");return r.openBlock(),r.createElementBlock("div",{ref_key:"refRoot",ref:o,class:r.normalizeClass(["vue-tel-input",t.styleClasses,{disabled:t.disabled}])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":d.open,role:"button",class:r.normalizeClass(["vti__dropdown",{open:d.open,disabled:t.dropdownOptions.disabled}]),tabindex:t.dropdownOptions.tabindex,onKeydown:[K,r.withKeys(Y,["space"]),r.withKeys(V,["esc"]),r.withKeys(V,["tab"])],onClick:Y},[r.createElementVNode("span",b1,[t.dropdownOptions.showFlags?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["vti__flag",r.unref(xn)(d.activeCountryCode)])},null,2)):r.createCommentVNode("",!0),t.dropdownOptions.showDialCodeInSelection?(r.openBlock(),r.createElementBlock("span",v1," +"+r.toDisplayString(f.value&&f.value.dialCode),1)):r.createCommentVNode("",!0),r.renderSlot(A.$slots,"arrow-icon",{open:d.open},()=>[r.createElementVNode("span",_1,r.toDisplayString(d.open?"▲":"▼"),1)])]),d.open?(r.openBlock(),r.createElementBlock("ul",{key:0,ref_key:"refList",ref:a,class:r.normalizeClass(["vti__dropdown-list",d.dropdownOpenDirection]),role:"listbox"},[t.dropdownOptions.showSearchBox?(r.openBlock(),r.createElementBlock("div",$1,[r.renderSlot(A.$slots,"search-icon"),r.withDirectives(r.createElementVNode("input",{class:r.normalizeClass(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:t.dropdownOptions.searchBoxPlaceholder||(h.value.length?h.value[0].name:""),type:"text","onUpdate:modelValue":I[0]||(I[0]=F=>d.searchQuery=F),onClick:I[1]||(I[1]=r.withModifiers(()=>{},["stop"]))},null,8,w1),[[r.vModelText,d.searchQuery]])])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,(F,L)=>(r.openBlock(),r.createElementBlock("li",{role:"option",class:r.normalizeClass(["vti__dropdown-item",b(L,F.iso2)]),key:F.iso2+(F.preferred?"-preferred":""),tabindex:"-1",onClick:z=>k(F),onMousemove:z=>d.selectedIndex=L,"aria-selected":d.activeCountryCode===F.iso2&&!F.preferred},[t.dropdownOptions.showFlags?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["vti__flag",r.unref(xn)(F.iso2)])},null,2)):r.createCommentVNode("",!0),r.createElementVNode("strong",null,r.toDisplayString(F.name),1),t.dropdownOptions.showDialCodeInList?(r.openBlock(),r.createElementBlock("span",C1," +"+r.toDisplayString(F.dialCode),1)):r.createCommentVNode("",!0)],42,k1))),128))],2)):r.createCommentVNode("",!0)],42,y1)),[[U,re]]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":I[2]||(I[2]=F=>d.phone=F),ref_key:"refInput",ref:i,type:t.inputOptions.type,autocomplete:t.inputOptions.autocomplete,autofocus:t.inputOptions.autofocus,class:r.normalizeClass(["vti__input","vti__phone",t.inputOptions.styleClasses]),disabled:t.disabled,id:t.inputOptions.id,maxlength:t.inputOptions.maxlength,name:t.inputOptions.name,placeholder:d.parsedPlaceholder,readonly:t.inputOptions.readonly,required:t.inputOptions.required,tabindex:t.inputOptions.tabindex,value:u.value,"aria-describedby":t.inputOptions["aria-describedby"],onBlur:C,onFocus:O,onInput:M,onKeyup:[r.withKeys(N,["enter"]),r.withKeys(R,["space"])]},null,42,O1),[[r.vModelDynamic,d.phone]]),r.renderSlot(A.$slots,"icon-right")],2)}}}),Rp="",jp="",S1={directives:{Outside:nr},props:{modelValue:{type:String},value:String,inputName:{type:String,default:"phone"},autoDefaultCountry:{type:Boolean,default:!0},ignoredCountries:{type:Array,default:()=>[]},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","onReady"],components:{VueTelInput:E1,IbAlert:Ft,IbIcon:Le},data(){return{vueTel:null,dialCode:"",defaultCountry:"US",allowChange:!1}},mounted(){this.vueTel=this.$refs.vueTel,this.$emit("onReady")},computed:{phone:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},methods:{countryChanged(t){this.$globalEvents.$on("countrySelectValue",n=>{this.vueTel.choose(n)}),!this.phone||this.phone.length-1<this.dialCode.length?this.phone="+"+t.dialCode:this.dialCode&&(this.phone=this.phone.replace(this.dialCode,t.dialCode)),this.dialCode=t.dialCode},clickOutside(){this.vueTel.open&&this.vueTel.clickedOutside()}}};function x1(t,n,e,o,a,i){const s=r.resolveComponent("ib-alert"),l=r.resolveComponent("ib-icon"),u=r.resolveComponent("vue-tel-input"),d=r.resolveDirective("outside");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.errorMessage.length?(r.openBlock(),r.createBlock(s,{key:0,class:"ib-phone-error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.withDirectives((r.openBlock(),r.createBlock(u,r.mergeProps({modelValue:i.phone,"onUpdate:modelValue":n[0]||(n[0]=p=>i.phone=p)},t.$attrs,{onCountryChanged:i.countryChanged,"input-options":{name:e.inputName,id:e.inputName,autocomplete:"off"},"auto-default-country":e.autoDefaultCountry,"dropdown-options":{showSearchBox:!0,showFlags:!0,tabindex:0},defaultCountry:a.defaultCountry,ignoredCountries:e.ignoredCountries,class:{error:e.error||e.errorMessage.length,disabled:e.disabled},disabled:e.disabled,"style-classes":"ib-phone-input",ref:"vueTel"}),{"arrow-icon":r.withCtx(()=>[r.createVNode(l,{name:"chevron-down-outline"})]),_:1},16,["modelValue","onCountryChanged","input-options","auto-default-country","defaultCountry","ignoredCountries","class","disabled"])),[[d,i.clickOutside]])],64)}const T1=_e(S1,[["render",x1]]);var $a={exports:{}};/*!
92
92
  * Quill Editor v1.3.7
93
93
  * https://quilljs.com/
94
94
  * Copyright (c) 2014, Jason Chen
@@ -128,8 +128,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
128
128
  `),te}function Oe(Q,te){if(L(Q)&&Q.nextElementSibling!=null&&!F(te,`
129
129
 
130
130
  `)){var ae=Q.offsetHeight+parseFloat(U(Q).marginTop)+parseFloat(U(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ae*1.5&&te.insert(`
131
- `)}return te}function Re(Q,te){var ae={},le=Q.style||{};return le.fontStyle&&U(Q).fontStyle==="italic"&&(ae.italic=!0),le.fontWeight&&(U(Q).fontWeight.startsWith("bold")||parseInt(U(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(te=I(te,ae)),parseFloat(le.textIndent||0)>0&&(te=new f.default().insert(" ").concat(te)),te}function Me(Q,te){var ae=Q.data;if(Q.parentNode.tagName==="O:P")return te.insert(ae.trim());if(ae.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return te;if(!U(Q.parentNode).whiteSpace.startsWith("pre")){var le=function($e,me){return me=me.replace(/[^\u00a0]/g,""),me.length<1&&$e?" ":me};ae=ae.replace(/\r\n/g," ").replace(/\n/g," "),ae=ae.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&L(Q.parentNode)||Q.previousSibling!=null&&L(Q.previousSibling))&&(ae=ae.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&L(Q.parentNode)||Q.nextSibling!=null&&L(Q.nextSibling))&&(ae=ae.replace(/\s+$/,le.bind(le,!1)))}return te.insert(ae)}o.default=A,o.matchAttributor=J,o.matchBlot=ne,o.matchNewline=ke,o.matchSpacing=Oe,o.matchText=Me},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(6),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"optimize",value:function(y){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(u.default);h.blotName="bold",h.tagName=["STRONG","B"],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var i=function(){function C(O,N){var R=[],q=!0,W=!1,Y=void 0;try{for(var re=O[Symbol.iterator](),K;!(q=(K=re.next()).done)&&(R.push(K.value),!(N&&R.length===N));q=!0);}catch(V){W=!0,Y=V}finally{try{!q&&re.return&&re.return()}finally{if(W)throw Y}}return R}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function C(O,N){for(var R=0;R<N.length;R++){var q=N[R];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(O,q.key,q)}}return function(O,N,R){return N&&C(O.prototype,N),R&&C(O,R),O}}(),l=a(2),u=y(l),d=a(0),p=y(d),f=a(5),c=y(f),h=a(10),v=y(h),m=a(9),_=y(m);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,O,N){return O in C?Object.defineProperty(C,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):C[O]=N,C}function w(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function b(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function k(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var T=(0,v.default)("quill:toolbar"),S=function(C){k(O,C);function O(N,R){w(this,O);var q=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,R));if(Array.isArray(q.options.container)){var W=document.createElement("div");M(W,q.options.container),N.container.parentNode.insertBefore(W,N.container),q.container=W}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var Y;return Y=T.error("Container required for toolbar",q.options),b(q,Y)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(re){q.addHandler(re,q.options.handlers[re])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(re){q.attach(re)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(re,K){re===c.default.events.SELECTION_CHANGE&&q.update(K)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var re=q.quill.selection.getRange(),K=i(re,1),V=K[0];q.update(V)}),q}return s(O,[{key:"addHandler",value:function(R,q){this.handlers[R]=q}},{key:"attach",value:function(R){var q=this,W=[].find.call(R.classList,function(re){return re.indexOf("ql-")===0});if(W){if(W=W.slice(3),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){T.warn("ignoring attaching to disabled format",W,R);return}if(p.default.query(W)==null){T.warn("ignoring attaching to nonexistent format",W,R);return}}var Y=R.tagName==="SELECT"?"change":"click";R.addEventListener(Y,function(re){var K=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var V=R.options[R.selectedIndex];V.hasAttribute("selected")?K=!1:K=V.value||!1}else R.classList.contains("ql-active")?K=!1:K=R.value||!R.hasAttribute("value"),re.preventDefault();q.quill.focus();var D=q.quill.selection.getRange(),A=i(D,1),I=A[0];if(q.handlers[W]!=null)q.handlers[W].call(q,K);else if(p.default.query(W).prototype instanceof p.default.Embed){if(K=prompt("Enter "+W),!K)return;q.quill.updateContents(new u.default().retain(I.index).delete(I.length).insert(g({},W,K)),c.default.sources.USER)}else q.quill.format(W,K,c.default.sources.USER);q.update(I)}),this.controls.push([W,R])}}},{key:"update",value:function(R){var q=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(W){var Y=i(W,2),re=Y[0],K=Y[1];if(K.tagName==="SELECT"){var V=void 0;if(R==null)V=null;else if(q[re]==null)V=K.querySelector("option[selected]");else if(!Array.isArray(q[re])){var D=q[re];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),V=K.querySelector('option[value="'+D+'"]')}V==null?(K.value="",K.selectedIndex=-1):V.selected=!0}else if(R==null)K.classList.remove("ql-active");else if(K.hasAttribute("value")){var A=q[re]===K.getAttribute("value")||q[re]!=null&&q[re].toString()===K.getAttribute("value")||q[re]==null&&!K.getAttribute("value");K.classList.toggle("ql-active",A)}else K.classList.toggle("ql-active",q[re]!=null)})}}]),O}(_.default);S.DEFAULTS={};function x(C,O,N){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+O),N!=null&&(R.value=N),C.appendChild(R)}function M(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var R=document.createElement("span");R.classList.add("ql-formats"),N.forEach(function(q){if(typeof q=="string")x(R,q);else{var W=Object.keys(q)[0],Y=q[W];Array.isArray(Y)?E(R,W,Y):x(R,W,Y)}}),C.appendChild(R)})}function E(C,O,N){var R=document.createElement("select");R.classList.add("ql-"+O),N.forEach(function(q){var W=document.createElement("option");q!==!1?W.setAttribute("value",q):W.setAttribute("selected","selected"),R.appendChild(W)}),C.appendChild(R)}S.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(q){p.default.query(q,p.default.Scope.INLINE)!=null&&O.quill.format(q,!1)})}else this.quill.removeFormat(N,c.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",c.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",O,c.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),R=this.quill.getFormat(N),q=parseInt(R.indent||0);if(O==="+1"||O==="-1"){var W=O==="+1"?1:-1;R.direction==="rtl"&&(W*=-1),this.quill.format("indent",q+W,c.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,c.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),R=this.quill.getFormat(N);O==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",O,c.default.sources.USER)}}},o.default=S,o.addControls=M},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(28),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(_,y){p(this,m);var g=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,_));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),g}return i(m,[{key:"buildItem",value:function(y){var g=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g);var w=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=b:w.style.fill=b)}}]),m}(u.default);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(28),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(_,y){p(this,m);var g=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,_));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=y[w.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(m,[{key:"selectItem",value:function(y,g){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),m}(u.default);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function u(d,p){for(var f=0;f<p.length;f++){var c=p[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}return function(d,p,f){return p&&u(d.prototype,p),f&&u(d,f),d}}();function s(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function(){function u(d,p){var f=this;s(this,u),this.quill=d,this.boundsContainer=p||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return i(u,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,c=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>h.right&&(m=h.right-v.right,this.root.style.left=f+m+"px"),v.left<h.left&&(m=h.left-v.left,this.root.style.left=f+m+"px"),v.bottom>h.bottom){var _=v.bottom-v.top,y=p.bottom-p.top+_;this.root.style.top=c-y+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),u}();o.default=l},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function E(C,O){var N=[],R=!0,q=!1,W=void 0;try{for(var Y=C[Symbol.iterator](),re;!(R=(re=Y.next()).done)&&(N.push(re.value),!(O&&N.length===O));R=!0);}catch(K){q=!0,W=K}finally{try{!R&&Y.return&&Y.return()}finally{if(q)throw W}}return N}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return E(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function E(C,O,N){C===null&&(C=Function.prototype);var R=Object.getOwnPropertyDescriptor(C,O);if(R===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:E(q,O,N)}else{if("value"in R)return R.value;var W=R.get;return W===void 0?void 0:W.call(N)}},l=function(){function E(C,O){for(var N=0;N<O.length;N++){var R=O[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(C,R.key,R)}}return function(C,O,N){return O&&E(C.prototype,O),N&&E(C,N),C}}(),u=a(3),d=w(u),p=a(8),f=w(p),c=a(43),h=w(c),v=a(27),m=w(v),_=a(15),y=a(41),g=w(y);function w(E){return E&&E.__esModule?E:{default:E}}function b(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function k(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function T(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(E){T(C,E);function C(O,N){b(this,C),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=S);var R=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return R.quill.container.classList.add("ql-snow"),R}return l(C,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),g.default),this.tooltip=new M(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,q){N.handlers.link.call(N,!q.format.link)})}}]),C}(h.default);x.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var R=this.quill.theme.tooltip;R.edit("link",N)}else this.quill.format("link",!1)}}}}});var M=function(E){T(C,E);function C(O,N){b(this,C);var R=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return R.preview=R.root.querySelector("a.ql-preview"),R}return l(C,[{key:"listen",value:function(){var N=this;s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(N.linkRange!=null){var q=N.linkRange;N.restoreFocus(),N.quill.formatText(q,"link",!1,f.default.sources.USER),delete N.linkRange}R.preventDefault(),N.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(R,q,W){if(R!=null){if(R.length===0&&W===f.default.sources.USER){var Y=N.quill.scroll.descendant(m.default,R.index),re=i(Y,2),K=re[0],V=re[1];if(K!=null){N.linkRange=new _.Range(R.index-V,K.length());var D=m.default.formats(K.domNode);N.preview.textContent=D,N.preview.setAttribute("href",D),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),o.default=x},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(29),s=ie(i),l=a(36),u=a(38),d=a(64),p=a(65),f=ie(p),c=a(66),h=ie(c),v=a(67),m=ie(v),_=a(37),y=a(26),g=a(39),w=a(40),b=a(56),k=ie(b),T=a(68),S=ie(T),x=a(27),M=ie(x),E=a(69),C=ie(E),O=a(70),N=ie(O),R=a(71),q=ie(R),W=a(72),Y=ie(W),re=a(73),K=ie(re),V=a(13),D=ie(V),A=a(74),I=ie(A),U=a(75),F=ie(U),L=a(57),z=ie(L),Z=a(41),J=ie(Z),ne=a(28),ce=ie(ne),he=a(59),be=ie(he),ke=a(60),Oe=ie(ke),Re=a(61),Me=ie(Re),Q=a(108),te=ie(Q),ae=a(62),le=ie(ae);function ie($e){return $e&&$e.__esModule?$e:{default:$e}}s.default.register({"attributors/attribute/direction":u.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":_.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":u.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":_.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":u.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":w.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":u.DirectionClass,"formats/indent":d.IndentClass,"formats/background":_.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":m.default,"formats/bold":k.default,"formats/code":V.Code,"formats/italic":S.default,"formats/link":M.default,"formats/script":C.default,"formats/strike":N.default,"formats/underline":q.default,"formats/image":Y.default,"formats/video":K.default,"formats/list/item":v.ListItem,"modules/formula":I.default,"modules/syntax":F.default,"modules/toolbar":z.default,"themes/bubble":te.default,"themes/snow":le.default,"ui/icons":J.default,"ui/picker":ce.default,"ui/icon-picker":Oe.default,"ui/color-picker":be.default,"ui/tooltip":Me.default},!0),o.default=s.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var i=function(){function m(_,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,y,g){return y&&m(_.prototype,y),g&&m(_,g),_}}(),s=function m(_,y,g){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,y);if(w===void 0){var b=Object.getPrototypeOf(_);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(g)}},l=a(0),u=d(l);function d(m){return m&&m.__esModule?m:{default:m}}function p(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function f(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var h=function(m){c(_,m);function _(){return p(this,_),f(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return i(_,[{key:"add",value:function(g,w){if(w==="+1"||w==="-1"){var b=this.value(g)||0;w=w==="+1"?b+1:b-1}return w===0?(this.remove(g),!0):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"add",this).call(this,g,w)}},{key:"canAdd",value:function(g,w){return s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,w)||s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,parseInt(w))}},{key:"value",value:function(g){return parseInt(s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,g))||void 0}}]),_}(u.default.Attributor.Class),v=new h("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(4),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="blockquote",f.tagName="blockquote",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function h(v,m){for(var _=0;_<m.length;_++){var y=m[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,m,_){return m&&h(v.prototype,m),_&&h(v,_),v}}(),s=a(4),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function p(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function f(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var c=function(h){f(v,h);function v(){return d(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(_){return this.tagName.indexOf(_.tagName)+1}}]),v}(l.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],o.default=c},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var i=function(){function b(k,T){for(var S=0;S<T.length;S++){var x=T[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(k,x.key,x)}}return function(k,T,S){return T&&b(k.prototype,T),S&&b(k,S),k}}(),s=function b(k,T,S){k===null&&(k=Function.prototype);var x=Object.getOwnPropertyDescriptor(k,T);if(x===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:b(M,T,S)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(S)}},l=a(0),u=h(l),d=a(4),p=h(d),f=a(25),c=h(f);function h(b){return b&&b.__esModule?b:{default:b}}function v(b,k,T){return k in b?Object.defineProperty(b,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):b[k]=T,b}function m(b,k){if(!(b instanceof k))throw new TypeError("Cannot call a class as a function")}function _(b,k){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:b}function y(b,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);b.prototype=Object.create(k&&k.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(b,k):b.__proto__=k)}var g=function(b){y(k,b);function k(){return m(this,k),_(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return i(k,[{key:"format",value:function(S,x){S===w.blotName&&!x?this.replaceWith(u.default.create(this.statics.scope)):s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,S,x)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,x){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,x),this):(this.parent.unwrap(),s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replaceWith",this).call(this,S,x))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:s(k.__proto__||Object.getPrototypeOf(k),"formats",this).call(this,S)}}]),k}(p.default);g.blotName="list-item",g.tagName="LI";var w=function(b){y(k,b),i(k,null,[{key:"create",value:function(S){var x=S==="ordered"?"OL":"UL",M=s(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,x);return(S==="checked"||S==="unchecked")&&M.setAttribute("data-checked",S==="checked"),M}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function k(T){m(this,k);var S=_(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T)),x=function(E){if(E.target.parentNode===T){var C=S.statics.formats(T),O=u.default.find(E.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return T.addEventListener("touchstart",x),T.addEventListener("mousedown",x),S}return i(k,[{key:"format",value:function(S,x){this.children.length>0&&this.children.tail.format(S,x)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,x){if(S instanceof g)s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,S,x);else{var M=x==null?this.length():x.offset(this),E=this.split(M);E.parent.insertBefore(S,E)}}},{key:"optimize",value:function(S){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,S);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&x.domNode.tagName===this.domNode.tagName&&x.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(x.moveChildren(this),x.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var x=u.default.create(this.statics.defaultChild);S.moveChildren(x),this.appendChild(x)}s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,S)}}]),k}(c.default);w.blotName="list",w.scope=u.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[g],o.ListItem=g,o.default=w},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(56),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="italic",f.tagName=["EM","I"],o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(6),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),m}(u.default);h.blotName="script",h.tagName=["SUB","SUP"],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="strike",f.tagName="S",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="underline",f.tagName="U",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function _(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),s=function _(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(w)}},l=a(0),u=p(l),d=a(27);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function c(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function h(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var v=["alt","height","width"],m=function(_){h(y,_);function y(){return f(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(w,b){v.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return typeof w=="string"&&b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return v.reduce(function(b,k){return w.hasAttribute(k)&&(b[k]=w.getAttribute(k)),b},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,d.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(u.default.Embed);m.blotName="image",m.tagName="IMG",o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function _(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),s=function _(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(w)}},l=a(4),u=a(27),d=p(u);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function c(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function h(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var v=["height","width"],m=function(_){h(y,_);function y(){return f(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(w,b){v.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return v.reduce(function(b,k){return w.hasAttribute(k)&&(b[k]=w.getAttribute(k)),b},{})}},{key:"sanitize",value:function(w){return d.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(l.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var i=function(){function w(b,k){for(var T=0;T<k.length;T++){var S=k[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,k,T){return k&&w(b.prototype,k),T&&w(b,T),b}}(),s=function w(b,k,T){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,k);if(S===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:w(x,k,T)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(T)}},l=a(35),u=h(l),d=a(5),p=h(d),f=a(9),c=h(f);function h(w){return w&&w.__esModule?w:{default:w}}function v(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function m(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function _(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var y=function(w){_(b,w);function b(){return v(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,null,[{key:"create",value:function(T){var S=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",T)),S}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),b}(u.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=function(w){_(b,w),i(b,null,[{key:"register",value:function(){p.default.register(y,!0)}}]);function b(){v(this,b);var k=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return k}return b}(c.default);o.FormulaBlot=y,o.default=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.CodeToken=o.CodeBlock=void 0;var i=function(){function T(S,x){for(var M=0;M<x.length;M++){var E=x[M];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,x,M){return x&&T(S.prototype,x),M&&T(S,M),S}}(),s=function T(S,x,M){S===null&&(S=Function.prototype);var E=Object.getOwnPropertyDescriptor(S,x);if(E===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:T(C,x,M)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(M)}},l=a(0),u=m(l),d=a(5),p=m(d),f=a(9),c=m(f),h=a(13),v=m(h);function m(T){return T&&T.__esModule?T:{default:T}}function _(T,S){if(!(T instanceof S))throw new TypeError("Cannot call a class as a function")}function y(T,S){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:T}function g(T,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);T.prototype=Object.create(S&&S.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(T,S):T.__proto__=S)}var w=function(T){g(S,T);function S(){return _(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return i(S,[{key:"replaceWith",value:function(M){this.domNode.textContent=this.domNode.textContent,this.attach(),s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,M)}},{key:"highlight",value:function(M){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=M(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),S}(v.default);w.className="ql-syntax";var b=new u.default.Attributor.Class("token","hljs",{scope:u.default.Scope.INLINE}),k=function(T){g(S,T),i(S,null,[{key:"register",value:function(){p.default.register(b,!0),p.default.register(w,!0)}}]);function S(x,M){_(this,S);var E=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,M));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return E.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){E.highlight(),C=null},E.options.interval)}),E.highlight(),E}return i(S,[{key:"highlight",value:function(){var M=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(C){C.highlight(M.options.highlight)}),this.quill.update(p.default.sources.SILENT),E!=null&&this.quill.setSelection(E,p.default.sources.SILENT)}}}]),S}(c.default);k.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var S=window.hljs.highlightAuto(T);return S.value}}(),interval:1e3},o.CodeBlock=w,o.CodeToken=b,o.default=k},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BubbleTooltip=void 0;var i=function S(x,M,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,M);if(C===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:S(O,M,E)}else{if("value"in C)return C.value;var N=C.get;return N===void 0?void 0:N.call(E)}},s=function(){function S(x,M){for(var E=0;E<M.length;E++){var C=M[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,M,E){return M&&S(x.prototype,M),E&&S(x,E),x}}(),l=a(3),u=_(l),d=a(8),p=_(d),f=a(43),c=_(f),h=a(15),v=a(41),m=_(v);function _(S){return S&&S.__esModule?S:{default:S}}function y(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function g(S,x){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:S}function w(S,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);S.prototype=Object.create(x&&x.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(S,x):S.__proto__=x)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],k=function(S){w(x,S);function x(M,E){y(this,x),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=b);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,M,E));return C.quill.container.classList.add("ql-bubble"),C}return s(x,[{key:"extendToolbar",value:function(E){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(E.container),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),m.default)}}]),x}(c.default);k.DEFAULTS=(0,u.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){x?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(S){w(x,S);function x(M,E){y(this,x);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,M,E));return C.quill.on(p.default.events.EDITOR_CHANGE,function(O,N,R,q){if(O===p.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&q===p.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var W=C.quill.getLines(N.index,N.length);if(W.length===1)C.position(C.quill.getBounds(N));else{var Y=W[W.length-1],re=C.quill.getIndex(Y),K=Math.min(Y.length()-1,N.index+N.length-re),V=C.quill.getBounds(new h.Range(re,K));C.position(V)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return s(x,[{key:"listen",value:function(){var E=this;i(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var C=E.quill.getSelection();C!=null&&E.position(E.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var C=i(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"position",this).call(this,E),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),x}(f.BaseTooltip);T.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),o.BubbleTooltip=T,o.default=k},function(e,o,a){e.exports=a(63)}]).default})})($a);var A1=$a.exports;const xe=Cn(A1);var $t=-1,bt=1,lt=0;function Dn(t,n,e,o){if(t===n)return t?[[lt,t]]:[];if(e!=null){var a=M1(t,n,e);if(a)return a}var i=fi(t,n),s=t.substring(0,i);t=t.substring(i),n=n.substring(i),i=hi(t,n);var l=t.substring(t.length-i);t=t.substring(0,t.length-i),n=n.substring(0,n.length-i);var u=D1(t,n);return s&&u.unshift([lt,s]),l&&u.push([lt,l]),ka(u,o),u}function D1(t,n){var e;if(!t)return[[bt,n]];if(!n)return[[$t,t]];var o=t.length>n.length?t:n,a=t.length>n.length?n:t,i=o.indexOf(a);if(i!==-1)return e=[[bt,o.substring(0,i)],[lt,a],[bt,o.substring(i+a.length)]],t.length>n.length&&(e[0][0]=e[2][0]=$t),e;if(a.length===1)return[[$t,t],[bt,n]];var s=I1(t,n);if(s){var l=s[0],u=s[1],d=s[2],p=s[3],f=s[4],c=Dn(l,d),h=Dn(u,p);return c.concat([[lt,f]],h)}return P1(t,n)}function P1(t,n){for(var e=t.length,o=n.length,a=Math.ceil((e+o)/2),i=a,s=2*a,l=new Array(s),u=new Array(s),d=0;d<s;d++)l[d]=-1,u[d]=-1;l[i+1]=0,u[i+1]=0;for(var p=e-o,f=p%2!==0,c=0,h=0,v=0,m=0,_=0;_<a;_++){for(var y=-_+c;y<=_-h;y+=2){var g=i+y,w;y===-_||y!==_&&l[g-1]<l[g+1]?w=l[g+1]:w=l[g-1]+1;for(var b=w-y;w<e&&b<o&&t.charAt(w)===n.charAt(b);)w++,b++;if(l[g]=w,w>e)h+=2;else if(b>o)c+=2;else if(f){var k=i+p-y;if(k>=0&&k<s&&u[k]!==-1){var T=e-u[k];if(w>=T)return wa(t,n,w,b)}}}for(var S=-_+v;S<=_-m;S+=2){var k=i+S,T;S===-_||S!==_&&u[k-1]<u[k+1]?T=u[k+1]:T=u[k-1]+1;for(var x=T-S;T<e&&x<o&&t.charAt(e-T-1)===n.charAt(o-x-1);)T++,x++;if(u[k]=T,T>e)m+=2;else if(x>o)v+=2;else if(!f){var g=i+p-S;if(g>=0&&g<s&&l[g]!==-1){var w=l[g],b=i+w-g;if(T=e-T,w>=T)return wa(t,n,w,b)}}}}return[[$t,t],[bt,n]]}function wa(t,n,e,o){var a=t.substring(0,e),i=n.substring(0,o),s=t.substring(e),l=n.substring(o),u=Dn(a,i),d=Dn(s,l);return u.concat(d)}function fi(t,n){if(!t||!n||t.charAt(0)!==n.charAt(0))return 0;for(var e=0,o=Math.min(t.length,n.length),a=o,i=0;e<a;)t.substring(i,a)==n.substring(i,a)?(e=a,i=e):o=a,a=Math.floor((o-e)/2+e);return Ca(t.charCodeAt(a-1))&&a--,a}function hi(t,n){if(!t||!n||t.slice(-1)!==n.slice(-1))return 0;for(var e=0,o=Math.min(t.length,n.length),a=o,i=0;e<a;)t.substring(t.length-a,t.length-i)==n.substring(n.length-a,n.length-i)?(e=a,i=e):o=a,a=Math.floor((o-e)/2+e);return Oa(t.charCodeAt(t.length-a))&&a--,a}function I1(t,n){var e=t.length>n.length?t:n,o=t.length>n.length?n:t;if(e.length<4||o.length*2<e.length)return null;function a(h,v,m){for(var _=h.substring(m,m+Math.floor(h.length/4)),y=-1,g="",w,b,k,T;(y=v.indexOf(_,y+1))!==-1;){var S=fi(h.substring(m),v.substring(y)),x=hi(h.substring(0,m),v.substring(0,y));g.length<x+S&&(g=v.substring(y-x,y)+v.substring(y,y+S),w=h.substring(0,m-x),b=h.substring(m+S),k=v.substring(0,y-x),T=v.substring(y+S))}return g.length*2>=h.length?[w,b,k,T,g]:null}var i=a(e,o,Math.ceil(e.length/4)),s=a(e,o,Math.ceil(e.length/2)),l;if(!i&&!s)return null;s?i?l=i[4].length>s[4].length?i:s:l=s:l=i;var u,d,p,f;t.length>n.length?(u=l[0],d=l[1],p=l[2],f=l[3]):(p=l[0],f=l[1],u=l[2],d=l[3]);var c=l[4];return[u,d,p,f,c]}function ka(t,n){t.push([lt,""]);for(var e=0,o=0,a=0,i="",s="",l;e<t.length;){if(e<t.length-1&&!t[e][1]){t.splice(e,1);continue}switch(t[e][0]){case bt:a++,s+=t[e][1],e++;break;case $t:o++,i+=t[e][1],e++;break;case lt:var u=e-a-o-1;if(n){if(u>=0&&Sa(t[u][1])){var d=t[u][1].slice(-1);if(t[u][1]=t[u][1].slice(0,-1),i=d+i,s=d+s,!t[u][1]){t.splice(u,1),e--;var p=u-1;t[p]&&t[p][0]===bt&&(a++,s=t[p][1]+s,p--),t[p]&&t[p][0]===$t&&(o++,i=t[p][1]+i,p--),u=p}}if(Ea(t[e][1])){var d=t[e][1].charAt(0);t[e][1]=t[e][1].slice(1),i+=d,s+=d}}if(e<t.length-1&&!t[e][1]){t.splice(e,1);break}if(i.length>0||s.length>0){i.length>0&&s.length>0&&(l=fi(s,i),l!==0&&(u>=0?t[u][1]+=s.substring(0,l):(t.splice(0,0,[lt,s.substring(0,l)]),e++),s=s.substring(l),i=i.substring(l)),l=hi(s,i),l!==0&&(t[e][1]=s.substring(s.length-l)+t[e][1],s=s.substring(0,s.length-l),i=i.substring(0,i.length-l)));var f=a+o;i.length===0&&s.length===0?(t.splice(e-f,f),e=e-f):i.length===0?(t.splice(e-f,f,[bt,s]),e=e-f+1):s.length===0?(t.splice(e-f,f,[$t,i]),e=e-f+1):(t.splice(e-f,f,[$t,i],[bt,s]),e=e-f+2)}e!==0&&t[e-1][0]===lt?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,a=0,o=0,i="",s="";break}}t[t.length-1][1]===""&&t.pop();var c=!1;for(e=1;e<t.length-1;)t[e-1][0]===lt&&t[e+1][0]===lt&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)===t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),c=!0):t[e][1].substring(0,t[e+1][1].length)==t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),c=!0)),e++;c&&ka(t,n)}function Ca(t){return t>=55296&&t<=56319}function Oa(t){return t>=56320&&t<=57343}function Ea(t){return Oa(t.charCodeAt(0))}function Sa(t){return Ca(t.charCodeAt(t.length-1))}function B1(t){for(var n=[],e=0;e<t.length;e++)t[e][1].length>0&&n.push(t[e]);return n}function pi(t,n,e,o){return Sa(t)||Ea(o)?null:B1([[lt,t],[$t,n],[bt,e],[lt,o]])}function M1(t,n,e){var o=typeof e=="number"?{index:e,length:0}:e.oldRange,a=typeof e=="number"?null:e.newRange,i=t.length,s=n.length;if(o.length===0&&(a===null||a.length===0)){var l=o.index,u=t.slice(0,l),d=t.slice(l),p=a?a.index:null;e:{var f=l+s-i;if(p!==null&&p!==f||f<0||f>s)break e;var c=n.slice(0,f),h=n.slice(f);if(h!==d)break e;var v=Math.min(l,f),m=u.slice(0,v),_=c.slice(0,v);if(m!==_)break e;var y=u.slice(v),g=c.slice(v);return pi(m,y,g,d)}e:{if(p!==null&&p!==l)break e;var w=l,c=n.slice(0,w),h=n.slice(w);if(c!==u)break e;var b=Math.min(i-w,s-w),k=d.slice(d.length-b),T=h.slice(h.length-b);if(k!==T)break e;var y=d.slice(0,d.length-b),g=h.slice(0,h.length-b);return pi(u,y,g,k)}}if(o.length>0&&a&&a.length===0)e:{var m=t.slice(0,o.index),k=t.slice(o.index+o.length),v=m.length,b=k.length;if(s<v+b)break e;var _=n.slice(0,v),T=n.slice(s-b);if(m!==_||k!==T)break e;var y=t.slice(v,i-b),g=n.slice(v,s-b);return pi(m,y,g,k)}return null}function mr(t,n,e){return Dn(t,n,e,!0)}mr.INSERT=bt,mr.DELETE=$t,mr.EQUAL=lt;var L1=mr,gr={exports:{}};gr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",d="[object Error]",p="[object Function]",f="[object GeneratorFunction]",c="[object Map]",h="[object Number]",v="[object Object]",m="[object Promise]",_="[object RegExp]",y="[object Set]",g="[object String]",w="[object Symbol]",b="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",x="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",q="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,Y=/\w*$/,re=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,V={};V[i]=V[s]=V[k]=V[T]=V[l]=V[u]=V[S]=V[x]=V[M]=V[E]=V[C]=V[c]=V[h]=V[v]=V[_]=V[y]=V[g]=V[w]=V[O]=V[N]=V[R]=V[q]=!0,V[d]=V[p]=V[b]=!1;var D=typeof je=="object"&&je&&je.Object===Object&&je,A=typeof self=="object"&&self&&self.Object===Object&&self,I=D||A||Function("return this")(),U=n&&!n.nodeType&&n,F=U&&!0&&t&&!t.nodeType&&t,L=F&&F.exports===U;function z($,P){return $.set(P[0],P[1]),$}function Z($,P){return $.add(P),$}function J($,P){for(var H=-1,ee=$?$.length:0;++H<ee&&P($[H],H,$)!==!1;);return $}function ne($,P){for(var H=-1,ee=P.length,we=$.length;++H<ee;)$[we+H]=P[H];return $}function ce($,P,H,ee){var we=-1,fe=$?$.length:0;for(ee&&fe&&(H=$[++we]);++we<fe;)H=P(H,$[we],we,$);return H}function he($,P){for(var H=-1,ee=Array($);++H<$;)ee[H]=P(H);return ee}function be($,P){return $==null?void 0:$[P]}function ke($){var P=!1;if($!=null&&typeof $.toString!="function")try{P=!!($+"")}catch{}return P}function Oe($){var P=-1,H=Array($.size);return $.forEach(function(ee,we){H[++P]=[we,ee]}),H}function Re($,P){return function(H){return $(P(H))}}function Me($){var P=-1,H=Array($.size);return $.forEach(function(ee){H[++P]=ee}),H}var Q=Array.prototype,te=Function.prototype,ae=Object.prototype,le=I["__core-js_shared__"],ie=function(){var $=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),$e=te.toString,me=ae.hasOwnProperty,ve=ae.toString,ze=RegExp("^"+$e.call(me).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=L?I.Buffer:void 0,Ae=I.Symbol,wt=I.Uint8Array,Ee=Re(Object.getPrototypeOf,Object),rt=Object.create,Jt=ae.propertyIsEnumerable,Bn=Q.splice,Xt=Object.getOwnPropertySymbols,Pe=qe?qe.isBuffer:void 0,zt=Re(Object.keys,Object),kt=vt(I,"DataView"),Pt=vt(I,"Map"),Ze=vt(I,"Promise"),Ct=vt(I,"Set"),it=vt(I,"WeakMap"),It=vt(Object,"create"),Qt=ot(kt),B=ot(Pt),j=ot(Ze),G=ot(Ct),X=ot(it),oe=Ae?Ae.prototype:void 0,se=oe?oe.valueOf:void 0;function ye($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function ue(){this.__data__=It?It(null):{}}function Ce($){return this.has($)&&delete this.__data__[$]}function de($){var P=this.__data__;if(It){var H=P[$];return H===o?void 0:H}return me.call(P,$)?P[$]:void 0}function ge($){var P=this.__data__;return It?P[$]!==void 0:me.call(P,$)}function Te($,P){var H=this.__data__;return H[$]=It&&P===void 0?o:P,this}ye.prototype.clear=ue,ye.prototype.delete=Ce,ye.prototype.get=de,ye.prototype.has=ge,ye.prototype.set=Te;function Be($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ge(){this.__data__=[]}function Bt($){var P=this.__data__,H=hn(P,$);if(H<0)return!1;var ee=P.length-1;return H==ee?P.pop():Bn.call(P,H,1),!0}function Ot($){var P=this.__data__,H=hn(P,$);return H<0?void 0:P[H][1]}function Mn($){return hn(this.__data__,$)>-1}function en($,P){var H=this.__data__,ee=hn(H,$);return ee<0?H.push([$,P]):H[ee][1]=P,this}Be.prototype.clear=Ge,Be.prototype.delete=Bt,Be.prototype.get=Ot,Be.prototype.has=Mn,Be.prototype.set=en;function Ue($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ln(){this.__data__={hash:new ye,map:new(Pt||Be),string:new ye}}function Rn($){return nn(this,$).delete($)}function jn($){return nn(this,$).get($)}function Vn($){return nn(this,$).has($)}function qn($,P){return nn(this,$).set($,P),this}Ue.prototype.clear=Ln,Ue.prototype.delete=Rn,Ue.prototype.get=jn,Ue.prototype.has=Vn,Ue.prototype.set=qn;function Je($){this.__data__=new Be($)}function Fn(){this.__data__=new Be}function vi($){return this.__data__.delete($)}function _i($){return this.__data__.get($)}function $i($){return this.__data__.has($)}function wi($,P){var H=this.__data__;if(H instanceof Be){var ee=H.__data__;if(!Pt||ee.length<e-1)return ee.push([$,P]),this;H=this.__data__=new Ue(ee)}return H.set($,P),this}Je.prototype.clear=Fn,Je.prototype.delete=vi,Je.prototype.get=_i,Je.prototype.has=$i,Je.prototype.set=wi;function fn($,P){var H=Kn($)||mn($)?he($.length,String):[],ee=H.length,we=!!ee;for(var fe in $)(P||me.call($,fe))&&!(we&&(fe=="length"||Mi(fe,ee)))&&H.push(fe);return H}function wr($,P,H){var ee=$[P];(!(me.call($,P)&&Sr(ee,H))||H===void 0&&!(P in $))&&($[P]=H)}function hn($,P){for(var H=$.length;H--;)if(Sr($[H][0],P))return H;return-1}function Et($,P){return $&&Un(P,Wn(P),$)}function Hn($,P,H,ee,we,fe,Se){var Ne;if(ee&&(Ne=fe?ee($,we,fe,Se):ee($)),Ne!==void 0)return Ne;if(!xt($))return $;var Fe=Kn($);if(Fe){if(Ne=Ii($),!P)return Ai($,Ne)}else{var Ie=Lt($),Xe=Ie==p||Ie==f;if(xr($))return pn($,P);if(Ie==v||Ie==i||Xe&&!fe){if(ke($))return fe?$:{};if(Ne=St(Xe?{}:$),!P)return Di($,Et(Ne,$))}else{if(!V[Ie])return fe?$:{};Ne=Bi($,Ie,Hn,P)}}Se||(Se=new Je);var ct=Se.get($);if(ct)return ct;if(Se.set($,Ne),!Fe)var He=H?Pi($):Wn($);return J(He||$,function(Qe,We){He&&(We=Qe,Qe=$[We]),wr(Ne,We,Hn(Qe,P,H,ee,We,$,Se))}),Ne}function ki($){return xt($)?rt($):{}}function Ci($,P,H){var ee=P($);return Kn($)?ee:ne(ee,H($))}function Oi($){return ve.call($)}function Ei($){if(!xt($)||Ri($))return!1;var P=Gn($)||ke($)?ze:re;return P.test(ot($))}function Si($){if(!Or($))return zt($);var P=[];for(var H in Object($))me.call($,H)&&H!="constructor"&&P.push(H);return P}function pn($,P){if(P)return $.slice();var H=new $.constructor($.length);return $.copy(H),H}function zn($){var P=new $.constructor($.byteLength);return new wt(P).set(new wt($)),P}function tn($,P){var H=P?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.byteLength)}function kr($,P,H){var ee=P?H(Oe($),!0):Oe($);return ce(ee,z,new $.constructor)}function Cr($){var P=new $.constructor($.source,Y.exec($));return P.lastIndex=$.lastIndex,P}function xi($,P,H){var ee=P?H(Me($),!0):Me($);return ce(ee,Z,new $.constructor)}function Ti($){return se?Object(se.call($)):{}}function Ni($,P){var H=P?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.length)}function Ai($,P){var H=-1,ee=$.length;for(P||(P=Array(ee));++H<ee;)P[H]=$[H];return P}function Un($,P,H,ee){H||(H={});for(var we=-1,fe=P.length;++we<fe;){var Se=P[we],Ne=ee?ee(H[Se],$[Se],Se,H,$):void 0;wr(H,Se,Ne===void 0?$[Se]:Ne)}return H}function Di($,P){return Un($,Mt($),P)}function Pi($){return Ci($,Wn,Mt)}function nn($,P){var H=$.__data__;return Li(P)?H[typeof P=="string"?"string":"hash"]:H.map}function vt($,P){var H=be($,P);return Ei(H)?H:void 0}var Mt=Xt?Re(Xt,Object):Vi,Lt=Oi;(kt&&Lt(new kt(new ArrayBuffer(1)))!=T||Pt&&Lt(new Pt)!=c||Ze&&Lt(Ze.resolve())!=m||Ct&&Lt(new Ct)!=y||it&&Lt(new it)!=b)&&(Lt=function($){var P=ve.call($),H=P==v?$.constructor:void 0,ee=H?ot(H):void 0;if(ee)switch(ee){case Qt:return T;case B:return c;case j:return m;case G:return y;case X:return b}return P});function Ii($){var P=$.length,H=$.constructor(P);return P&&typeof $[0]=="string"&&me.call($,"index")&&(H.index=$.index,H.input=$.input),H}function St($){return typeof $.constructor=="function"&&!Or($)?ki(Ee($)):{}}function Bi($,P,H,ee){var we=$.constructor;switch(P){case k:return zn($);case l:case u:return new we(+$);case T:return tn($,ee);case S:case x:case M:case E:case C:case O:case N:case R:case q:return Ni($,ee);case c:return kr($,ee,H);case h:case g:return new we($);case _:return Cr($);case y:return xi($,ee,H);case w:return Ti($)}}function Mi($,P){return P=P??a,!!P&&(typeof $=="number"||K.test($))&&$>-1&&$%1==0&&$<P}function Li($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function Ri($){return!!ie&&ie in $}function Or($){var P=$&&$.constructor,H=typeof P=="function"&&P.prototype||ae;return $===H}function ot($){if($!=null){try{return $e.call($)}catch{}try{return $+""}catch{}}return""}function Er($){return Hn($,!0,!0)}function Sr($,P){return $===P||$!==$&&P!==P}function mn($){return ji($)&&me.call($,"callee")&&(!Jt.call($,"callee")||ve.call($)==i)}var Kn=Array.isArray;function gn($){return $!=null&&Tr($.length)&&!Gn($)}function ji($){return Nr($)&&gn($)}var xr=Pe||qi;function Gn($){var P=xt($)?ve.call($):"";return P==p||P==f}function Tr($){return typeof $=="number"&&$>-1&&$%1==0&&$<=a}function xt($){var P=typeof $;return!!$&&(P=="object"||P=="function")}function Nr($){return!!$&&typeof $=="object"}function Wn($){return gn($)?fn($):Si($)}function Vi(){return[]}function qi(){return!1}t.exports=Er}(gr,gr.exports);var xa=gr.exports,yr={exports:{}};yr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=1,i=2,s=9007199254740991,l="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",c="[object Error]",h="[object Function]",v="[object GeneratorFunction]",m="[object Map]",_="[object Number]",y="[object Null]",g="[object Object]",w="[object Promise]",b="[object Proxy]",k="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",M="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",q="[object Int8Array]",W="[object Int16Array]",Y="[object Int32Array]",re="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",D="[object Uint32Array]",A=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,F={};F[N]=F[R]=F[q]=F[W]=F[Y]=F[re]=F[K]=F[V]=F[D]=!0,F[l]=F[u]=F[C]=F[p]=F[O]=F[f]=F[c]=F[h]=F[m]=F[_]=F[g]=F[k]=F[T]=F[S]=F[E]=!1;var L=typeof je=="object"&&je&&je.Object===Object&&je,z=typeof self=="object"&&self&&self.Object===Object&&self,Z=L||z||Function("return this")(),J=n&&!n.nodeType&&n,ne=J&&!0&&t&&!t.nodeType&&t,ce=ne&&ne.exports===J,he=ce&&L.process,be=function(){try{return he&&he.binding&&he.binding("util")}catch{}}(),ke=be&&be.isTypedArray;function Oe($,P){for(var H=-1,ee=$==null?0:$.length,we=0,fe=[];++H<ee;){var Se=$[H];P(Se,H,$)&&(fe[we++]=Se)}return fe}function Re($,P){for(var H=-1,ee=P.length,we=$.length;++H<ee;)$[we+H]=P[H];return $}function Me($,P){for(var H=-1,ee=$==null?0:$.length;++H<ee;)if(P($[H],H,$))return!0;return!1}function Q($,P){for(var H=-1,ee=Array($);++H<$;)ee[H]=P(H);return ee}function te($){return function(P){return $(P)}}function ae($,P){return $.has(P)}function le($,P){return $==null?void 0:$[P]}function ie($){var P=-1,H=Array($.size);return $.forEach(function(ee,we){H[++P]=[we,ee]}),H}function $e($,P){return function(H){return $(P(H))}}function me($){var P=-1,H=Array($.size);return $.forEach(function(ee){H[++P]=ee}),H}var ve=Array.prototype,ze=Function.prototype,qe=Object.prototype,Ae=Z["__core-js_shared__"],wt=ze.toString,Ee=qe.hasOwnProperty,rt=function(){var $=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Jt=qe.toString,Bn=RegExp("^"+wt.call(Ee).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xt=ce?Z.Buffer:void 0,Pe=Z.Symbol,zt=Z.Uint8Array,kt=qe.propertyIsEnumerable,Pt=ve.splice,Ze=Pe?Pe.toStringTag:void 0,Ct=Object.getOwnPropertySymbols,it=Xt?Xt.isBuffer:void 0,It=$e(Object.keys,Object),Qt=Mt(Z,"DataView"),B=Mt(Z,"Map"),j=Mt(Z,"Promise"),G=Mt(Z,"Set"),X=Mt(Z,"WeakMap"),oe=Mt(Object,"create"),se=ot(Qt),ye=ot(B),ue=ot(j),Ce=ot(G),de=ot(X),ge=Pe?Pe.prototype:void 0,Te=ge?ge.valueOf:void 0;function Be($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ge(){this.__data__=oe?oe(null):{},this.size=0}function Bt($){var P=this.has($)&&delete this.__data__[$];return this.size-=P?1:0,P}function Ot($){var P=this.__data__;if(oe){var H=P[$];return H===o?void 0:H}return Ee.call(P,$)?P[$]:void 0}function Mn($){var P=this.__data__;return oe?P[$]!==void 0:Ee.call(P,$)}function en($,P){var H=this.__data__;return this.size+=this.has($)?0:1,H[$]=oe&&P===void 0?o:P,this}Be.prototype.clear=Ge,Be.prototype.delete=Bt,Be.prototype.get=Ot,Be.prototype.has=Mn,Be.prototype.set=en;function Ue($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ln(){this.__data__=[],this.size=0}function Rn($){var P=this.__data__,H=pn(P,$);if(H<0)return!1;var ee=P.length-1;return H==ee?P.pop():Pt.call(P,H,1),--this.size,!0}function jn($){var P=this.__data__,H=pn(P,$);return H<0?void 0:P[H][1]}function Vn($){return pn(this.__data__,$)>-1}function qn($,P){var H=this.__data__,ee=pn(H,$);return ee<0?(++this.size,H.push([$,P])):H[ee][1]=P,this}Ue.prototype.clear=Ln,Ue.prototype.delete=Rn,Ue.prototype.get=jn,Ue.prototype.has=Vn,Ue.prototype.set=qn;function Je($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Fn(){this.size=0,this.__data__={hash:new Be,map:new(B||Ue),string:new Be}}function vi($){var P=vt(this,$).delete($);return this.size-=P?1:0,P}function _i($){return vt(this,$).get($)}function $i($){return vt(this,$).has($)}function wi($,P){var H=vt(this,$),ee=H.size;return H.set($,P),this.size+=H.size==ee?0:1,this}Je.prototype.clear=Fn,Je.prototype.delete=vi,Je.prototype.get=_i,Je.prototype.has=$i,Je.prototype.set=wi;function fn($){var P=-1,H=$==null?0:$.length;for(this.__data__=new Je;++P<H;)this.add($[P])}function wr($){return this.__data__.set($,o),this}function hn($){return this.__data__.has($)}fn.prototype.add=fn.prototype.push=wr,fn.prototype.has=hn;function Et($){var P=this.__data__=new Ue($);this.size=P.size}function Hn(){this.__data__=new Ue,this.size=0}function ki($){var P=this.__data__,H=P.delete($);return this.size=P.size,H}function Ci($){return this.__data__.get($)}function Oi($){return this.__data__.has($)}function Ei($,P){var H=this.__data__;if(H instanceof Ue){var ee=H.__data__;if(!B||ee.length<e-1)return ee.push([$,P]),this.size=++H.size,this;H=this.__data__=new Je(ee)}return H.set($,P),this.size=H.size,this}Et.prototype.clear=Hn,Et.prototype.delete=ki,Et.prototype.get=Ci,Et.prototype.has=Oi,Et.prototype.set=Ei;function Si($,P){var H=mn($),ee=!H&&Sr($),we=!H&&!ee&&gn($),fe=!H&&!ee&&!we&&Nr($),Se=H||ee||we||fe,Ne=Se?Q($.length,String):[],Fe=Ne.length;for(var Ie in $)(P||Ee.call($,Ie))&&!(Se&&(Ie=="length"||we&&(Ie=="offset"||Ie=="parent")||fe&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Bi(Ie,Fe)))&&Ne.push(Ie);return Ne}function pn($,P){for(var H=$.length;H--;)if(Er($[H][0],P))return H;return-1}function zn($,P,H){var ee=P($);return mn($)?ee:Re(ee,H($))}function tn($){return $==null?$===void 0?M:y:Ze&&Ze in Object($)?Lt($):Or($)}function kr($){return xt($)&&tn($)==l}function Cr($,P,H,ee,we){return $===P?!0:$==null||P==null||!xt($)&&!xt(P)?$!==$&&P!==P:xi($,P,H,ee,Cr,we)}function xi($,P,H,ee,we,fe){var Se=mn($),Ne=mn(P),Fe=Se?u:St($),Ie=Ne?u:St(P);Fe=Fe==l?g:Fe,Ie=Ie==l?g:Ie;var Xe=Fe==g,ct=Ie==g,He=Fe==Ie;if(He&&gn($)){if(!gn(P))return!1;Se=!0,Xe=!1}if(He&&!Xe)return fe||(fe=new Et),Se||Nr($)?Un($,P,H,ee,we,fe):Di($,P,Fe,H,ee,we,fe);if(!(H&a)){var Qe=Xe&&Ee.call($,"__wrapped__"),We=ct&&Ee.call(P,"__wrapped__");if(Qe||We){var Ut=Qe?$.value():$,Rt=We?P.value():P;return fe||(fe=new Et),we(Ut,Rt,H,ee,fe)}}return He?(fe||(fe=new Et),Pi($,P,H,ee,we,fe)):!1}function Ti($){if(!Tr($)||Li($))return!1;var P=xr($)?Bn:I;return P.test(ot($))}function Ni($){return xt($)&&Gn($.length)&&!!F[tn($)]}function Ai($){if(!Ri($))return It($);var P=[];for(var H in Object($))Ee.call($,H)&&H!="constructor"&&P.push(H);return P}function Un($,P,H,ee,we,fe){var Se=H&a,Ne=$.length,Fe=P.length;if(Ne!=Fe&&!(Se&&Fe>Ne))return!1;var Ie=fe.get($);if(Ie&&fe.get(P))return Ie==P;var Xe=-1,ct=!0,He=H&i?new fn:void 0;for(fe.set($,P),fe.set(P,$);++Xe<Ne;){var Qe=$[Xe],We=P[Xe];if(ee)var Ut=Se?ee(We,Qe,Xe,P,$,fe):ee(Qe,We,Xe,$,P,fe);if(Ut!==void 0){if(Ut)continue;ct=!1;break}if(He){if(!Me(P,function(Rt,rn){if(!ae(He,rn)&&(Qe===Rt||we(Qe,Rt,H,ee,fe)))return He.push(rn)})){ct=!1;break}}else if(!(Qe===We||we(Qe,We,H,ee,fe))){ct=!1;break}}return fe.delete($),fe.delete(P),ct}function Di($,P,H,ee,we,fe,Se){switch(H){case O:if($.byteLength!=P.byteLength||$.byteOffset!=P.byteOffset)return!1;$=$.buffer,P=P.buffer;case C:return!($.byteLength!=P.byteLength||!fe(new zt($),new zt(P)));case p:case f:case _:return Er(+$,+P);case c:return $.name==P.name&&$.message==P.message;case k:case S:return $==P+"";case m:var Ne=ie;case T:var Fe=ee&a;if(Ne||(Ne=me),$.size!=P.size&&!Fe)return!1;var Ie=Se.get($);if(Ie)return Ie==P;ee|=i,Se.set($,P);var Xe=Un(Ne($),Ne(P),ee,we,fe,Se);return Se.delete($),Xe;case x:if(Te)return Te.call($)==Te.call(P)}return!1}function Pi($,P,H,ee,we,fe){var Se=H&a,Ne=nn($),Fe=Ne.length,Ie=nn(P),Xe=Ie.length;if(Fe!=Xe&&!Se)return!1;for(var ct=Fe;ct--;){var He=Ne[ct];if(!(Se?He in P:Ee.call(P,He)))return!1}var Qe=fe.get($);if(Qe&&fe.get(P))return Qe==P;var We=!0;fe.set($,P),fe.set(P,$);for(var Ut=Se;++ct<Fe;){He=Ne[ct];var Rt=$[He],rn=P[He];if(ee)var ja=Se?ee(rn,Rt,He,P,$,fe):ee(Rt,rn,He,$,P,fe);if(!(ja===void 0?Rt===rn||we(Rt,rn,H,ee,fe):ja)){We=!1;break}Ut||(Ut=He=="constructor")}if(We&&!Ut){var Ar=$.constructor,Dr=P.constructor;Ar!=Dr&&"constructor"in $&&"constructor"in P&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof Dr=="function"&&Dr instanceof Dr)&&(We=!1)}return fe.delete($),fe.delete(P),We}function nn($){return zn($,Wn,Ii)}function vt($,P){var H=$.__data__;return Mi(P)?H[typeof P=="string"?"string":"hash"]:H.map}function Mt($,P){var H=le($,P);return Ti(H)?H:void 0}function Lt($){var P=Ee.call($,Ze),H=$[Ze];try{$[Ze]=void 0;var ee=!0}catch{}var we=Jt.call($);return ee&&(P?$[Ze]=H:delete $[Ze]),we}var Ii=Ct?function($){return $==null?[]:($=Object($),Oe(Ct($),function(P){return kt.call($,P)}))}:Vi,St=tn;(Qt&&St(new Qt(new ArrayBuffer(1)))!=O||B&&St(new B)!=m||j&&St(j.resolve())!=w||G&&St(new G)!=T||X&&St(new X)!=E)&&(St=function($){var P=tn($),H=P==g?$.constructor:void 0,ee=H?ot(H):"";if(ee)switch(ee){case se:return O;case ye:return m;case ue:return w;case Ce:return T;case de:return E}return P});function Bi($,P){return P=P??s,!!P&&(typeof $=="number"||U.test($))&&$>-1&&$%1==0&&$<P}function Mi($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function Li($){return!!rt&&rt in $}function Ri($){var P=$&&$.constructor,H=typeof P=="function"&&P.prototype||qe;return $===H}function Or($){return Jt.call($)}function ot($){if($!=null){try{return wt.call($)}catch{}try{return $+""}catch{}}return""}function Er($,P){return $===P||$!==$&&P!==P}var Sr=kr(function(){return arguments}())?kr:function($){return xt($)&&Ee.call($,"callee")&&!kt.call($,"callee")},mn=Array.isArray;function Kn($){return $!=null&&Gn($.length)&&!xr($)}var gn=it||qi;function ji($,P){return Cr($,P)}function xr($){if(!Tr($))return!1;var P=tn($);return P==h||P==v||P==d||P==b}function Gn($){return typeof $=="number"&&$>-1&&$%1==0&&$<=s}function Tr($){var P=typeof $;return $!=null&&(P=="object"||P=="function")}function xt($){return $!=null&&typeof $=="object"}var Nr=ke?te(ke):Ni;function Wn($){return Kn($)?Si($):Ai($)}function Vi(){return[]}function qi(){return!1}t.exports=ji}(yr,yr.exports);var Ta=yr.exports,mi={},Na=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mi,"__esModule",{value:!0});var R1=Na(xa),j1=Na(Ta),gi;(function(t){function n(i,s,l){i===void 0&&(i={}),s===void 0&&(s={}),typeof i!="object"&&(i={}),typeof s!="object"&&(s={});var u=R1.default(s);l||(u=Object.keys(u).reduce(function(p,f){return u[f]!=null&&(p[f]=u[f]),p},{}));for(var d in i)i[d]!==void 0&&s[d]===void 0&&(u[d]=i[d]);return Object.keys(u).length>0?u:void 0}t.compose=n;function e(i,s){i===void 0&&(i={}),s===void 0&&(s={}),typeof i!="object"&&(i={}),typeof s!="object"&&(s={});var l=Object.keys(i).concat(Object.keys(s)).reduce(function(u,d){return j1.default(i[d],s[d])||(u[d]=s[d]===void 0?null:s[d]),u},{});return Object.keys(l).length>0?l:void 0}t.diff=e;function o(i,s){i===void 0&&(i={}),s===void 0&&(s={}),i=i||{};var l=Object.keys(s).reduce(function(u,d){return s[d]!==i[d]&&i[d]!==void 0&&(u[d]=s[d]),u},{});return Object.keys(i).reduce(function(u,d){return i[d]!==s[d]&&s[d]===void 0&&(u[d]=null),u},l)}t.invert=o;function a(i,s,l){if(l===void 0&&(l=!1),typeof i!="object")return s;if(typeof s=="object"){if(!l)return s;var u=Object.keys(s).reduce(function(d,p){return i[p]===void 0&&(d[p]=s[p]),d},{});return Object.keys(u).length>0?u:void 0}}t.transform=a})(gi||(gi={})),mi.default=gi;var br={},vr={},Aa;function V1(){if(Aa)return vr;Aa=1;var t=je&&je.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(vr,"__esModule",{value:!0});var n=t(Pa()),e=function(){function o(a){this.ops=a,this.index=0,this.offset=0}return o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(a){a||(a=1/0);var i=this.ops[this.index];if(i){var s=this.offset,l=n.default.length(i);if(a>=l-s?(a=l-s,this.index+=1,this.offset=0):this.offset+=a,typeof i.delete=="number")return{delete:a};var u={};return i.attributes&&(u.attributes=i.attributes),typeof i.retain=="number"?u.retain=a:typeof i.insert=="string"?u.insert=i.insert.substr(s,a):u.insert=i.insert,u}else return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var a=this.offset,i=this.index,s=this.next(),l=this.ops.slice(this.index);return this.offset=a,this.index=i,[s].concat(l)}else return[]},o}();return vr.default=e,vr}var Da;function Pa(){if(Da)return br;Da=1;var t=je&&je.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(br,"__esModule",{value:!0});var n=t(V1()),e;return function(o){function a(s){return new n.default(s)}o.iterator=a;function i(s){return typeof s.delete=="number"?s.delete:typeof s.retain=="number"?s.retain:typeof s.insert=="string"?s.insert.length:1}o.length=i}(e||(e={})),br.default=e,br}var Pn=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_r=Pn(L1),q1=Pn(xa),yi=Pn(Ta),In=Pn(mi),Ke=Pn(Pa()),F1=String.fromCharCode(0),H1=function(){function t(n){Array.isArray(n)?this.ops=n:n!=null&&Array.isArray(n.ops)?this.ops=n.ops:this.ops=[]}return t.prototype.insert=function(n,e){var o={};return typeof n=="string"&&n.length===0?this:(o.insert=n,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(o.attributes=e),this.push(o))},t.prototype.delete=function(n){return n<=0?this:this.push({delete:n})},t.prototype.retain=function(n,e){if(n<=0)return this;var o={retain:n};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(o.attributes=e),this.push(o)},t.prototype.push=function(n){var e=this.ops.length,o=this.ops[e-1];if(n=q1.default(n),typeof o=="object"){if(typeof n.delete=="number"&&typeof o.delete=="number")return this.ops[e-1]={delete:o.delete+n.delete},this;if(typeof o.delete=="number"&&n.insert!=null&&(e-=1,o=this.ops[e-1],typeof o!="object"))return this.ops.unshift(n),this;if(yi.default(n.attributes,o.attributes)){if(typeof n.insert=="string"&&typeof o.insert=="string")return this.ops[e-1]={insert:o.insert+n.insert},typeof n.attributes=="object"&&(this.ops[e-1].attributes=n.attributes),this;if(typeof n.retain=="number"&&typeof o.retain=="number")return this.ops[e-1]={retain:o.retain+n.retain},typeof n.attributes=="object"&&(this.ops[e-1].attributes=n.attributes),this}}return e===this.ops.length?this.ops.push(n):this.ops.splice(e,0,n),this},t.prototype.chop=function(){var n=this.ops[this.ops.length-1];return n&&n.retain&&!n.attributes&&this.ops.pop(),this},t.prototype.filter=function(n){return this.ops.filter(n)},t.prototype.forEach=function(n){this.ops.forEach(n)},t.prototype.map=function(n){return this.ops.map(n)},t.prototype.partition=function(n){var e=[],o=[];return this.forEach(function(a){var i=n(a)?e:o;i.push(a)}),[e,o]},t.prototype.reduce=function(n,e){return this.ops.reduce(n,e)},t.prototype.changeLength=function(){return this.reduce(function(n,e){return e.insert?n+Ke.default.length(e):e.delete?n-e.delete:n},0)},t.prototype.length=function(){return this.reduce(function(n,e){return n+Ke.default.length(e)},0)},t.prototype.slice=function(n,e){n===void 0&&(n=0),e===void 0&&(e=1/0);for(var o=[],a=Ke.default.iterator(this.ops),i=0;i<e&&a.hasNext();){var s=void 0;i<n?s=a.next(n-i):(s=a.next(e-i),o.push(s)),i+=Ke.default.length(s)}return new t(o)},t.prototype.compose=function(n){var e=Ke.default.iterator(this.ops),o=Ke.default.iterator(n.ops),a=[],i=o.peek();if(i!=null&&typeof i.retain=="number"&&i.attributes==null){for(var s=i.retain;e.peekType()==="insert"&&e.peekLength()<=s;)s-=e.peekLength(),a.push(e.next());i.retain-s>0&&o.next(i.retain-s)}for(var l=new t(a);e.hasNext()||o.hasNext();)if(o.peekType()==="insert")l.push(o.next());else if(e.peekType()==="delete")l.push(e.next());else{var u=Math.min(e.peekLength(),o.peekLength()),d=e.next(u),p=o.next(u);if(typeof p.retain=="number"){var f={};typeof d.retain=="number"?f.retain=u:f.insert=d.insert;var c=In.default.compose(d.attributes,p.attributes,typeof d.retain=="number");if(c&&(f.attributes=c),l.push(f),!o.hasNext()&&yi.default(l.ops[l.ops.length-1],f)){var h=new t(e.rest());return l.concat(h).chop()}}else typeof p.delete=="number"&&typeof d.retain=="number"&&l.push(p)}return l.chop()},t.prototype.concat=function(n){var e=new t(this.ops.slice());return n.ops.length>0&&(e.push(n.ops[0]),e.ops=e.ops.concat(n.ops.slice(1))),e},t.prototype.diff=function(n,e){if(this.ops===n.ops)return new t;var o=[this,n].map(function(u){return u.map(function(d){if(d.insert!=null)return typeof d.insert=="string"?d.insert:F1;var p=u===n?"on":"with";throw new Error("diff() called "+p+" non-document")}).join("")}),a=new t,i=_r.default(o[0],o[1],e),s=Ke.default.iterator(this.ops),l=Ke.default.iterator(n.ops);return i.forEach(function(u){for(var d=u[1].length;d>0;){var p=0;switch(u[0]){case _r.default.INSERT:p=Math.min(l.peekLength(),d),a.push(l.next(p));break;case _r.default.DELETE:p=Math.min(d,s.peekLength()),s.next(p),a.delete(p);break;case _r.default.EQUAL:p=Math.min(s.peekLength(),l.peekLength(),d);var f=s.next(p),c=l.next(p);yi.default(f.insert,c.insert)?a.retain(p,In.default.diff(f.attributes,c.attributes)):a.push(c).delete(p);break}d-=p}}),a.chop()},t.prototype.eachLine=function(n,e){e===void 0&&(e=`
132
- `);for(var o=Ke.default.iterator(this.ops),a=new t,i=0;o.hasNext();){if(o.peekType()!=="insert")return;var s=o.peek(),l=Ke.default.length(s)-o.peekLength(),u=typeof s.insert=="string"?s.insert.indexOf(e,l)-l:-1;if(u<0)a.push(o.next());else if(u>0)a.push(o.next(u));else{if(n(a,o.next(1).attributes||{},i)===!1)return;i+=1,a=new t}}a.length()>0&&n(a,{},i)},t.prototype.invert=function(n){var e=new t;return this.reduce(function(o,a){if(a.insert)e.delete(Ke.default.length(a));else{if(a.retain&&a.attributes==null)return e.retain(a.retain),o+a.retain;if(a.delete||a.retain&&a.attributes){var i=a.delete||a.retain,s=n.slice(o,o+i);return s.forEach(function(l){a.delete?e.push(l):a.retain&&a.attributes&&e.retain(Ke.default.length(l),In.default.invert(a.attributes,l.attributes))}),o+i}}return o},0),e.chop()},t.prototype.transform=function(n,e){if(e===void 0&&(e=!1),e=!!e,typeof n=="number")return this.transformPosition(n,e);for(var o=n,a=Ke.default.iterator(this.ops),i=Ke.default.iterator(o.ops),s=new t;a.hasNext()||i.hasNext();)if(a.peekType()==="insert"&&(e||i.peekType()!=="insert"))s.retain(Ke.default.length(a.next()));else if(i.peekType()==="insert")s.push(i.next());else{var l=Math.min(a.peekLength(),i.peekLength()),u=a.next(l),d=i.next(l);if(u.delete)continue;d.delete?s.push(d):s.retain(l,In.default.transform(u.attributes,d.attributes,e))}return s.chop()},t.prototype.transformPosition=function(n,e){e===void 0&&(e=!1),e=!!e;for(var o=Ke.default.iterator(this.ops),a=0;o.hasNext()&&a<=n;){var i=o.peekLength(),s=o.peekType();if(o.next(),s==="delete"){n-=Math.min(i,n-a);continue}else s==="insert"&&(a<n||!e)&&(n+=i);a+=i}return n},t.Op=Ke.default,t.AttributeMap=In.default,t}(),z1=H1;const U1=Cn(z1);/*!
131
+ `)}return te}function Re(Q,te){var ae={},le=Q.style||{};return le.fontStyle&&U(Q).fontStyle==="italic"&&(ae.italic=!0),le.fontWeight&&(U(Q).fontWeight.startsWith("bold")||parseInt(U(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(te=I(te,ae)),parseFloat(le.textIndent||0)>0&&(te=new f.default().insert(" ").concat(te)),te}function Me(Q,te){var ae=Q.data;if(Q.parentNode.tagName==="O:P")return te.insert(ae.trim());if(ae.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return te;if(!U(Q.parentNode).whiteSpace.startsWith("pre")){var le=function($e,me){return me=me.replace(/[^\u00a0]/g,""),me.length<1&&$e?" ":me};ae=ae.replace(/\r\n/g," ").replace(/\n/g," "),ae=ae.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&L(Q.parentNode)||Q.previousSibling!=null&&L(Q.previousSibling))&&(ae=ae.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&L(Q.parentNode)||Q.nextSibling!=null&&L(Q.nextSibling))&&(ae=ae.replace(/\s+$/,le.bind(le,!1)))}return te.insert(ae)}o.default=A,o.matchAttributor=J,o.matchBlot=ne,o.matchNewline=ke,o.matchSpacing=Oe,o.matchText=Me},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(6),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"optimize",value:function(y){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(u.default);h.blotName="bold",h.tagName=["STRONG","B"],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var i=function(){function C(O,N){var R=[],q=!0,W=!1,Y=void 0;try{for(var re=O[Symbol.iterator](),K;!(q=(K=re.next()).done)&&(R.push(K.value),!(N&&R.length===N));q=!0);}catch(V){W=!0,Y=V}finally{try{!q&&re.return&&re.return()}finally{if(W)throw Y}}return R}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return C(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function C(O,N){for(var R=0;R<N.length;R++){var q=N[R];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(O,q.key,q)}}return function(O,N,R){return N&&C(O.prototype,N),R&&C(O,R),O}}(),l=a(2),u=y(l),d=a(0),p=y(d),f=a(5),c=y(f),h=a(10),v=y(h),m=a(9),_=y(m);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,O,N){return O in C?Object.defineProperty(C,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):C[O]=N,C}function w(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function b(C,O){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:C}function k(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}var T=(0,v.default)("quill:toolbar"),S=function(C){k(O,C);function O(N,R){w(this,O);var q=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,R));if(Array.isArray(q.options.container)){var W=document.createElement("div");M(W,q.options.container),N.container.parentNode.insertBefore(W,N.container),q.container=W}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var Y;return Y=T.error("Container required for toolbar",q.options),b(q,Y)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(re){q.addHandler(re,q.options.handlers[re])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(re){q.attach(re)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(re,K){re===c.default.events.SELECTION_CHANGE&&q.update(K)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var re=q.quill.selection.getRange(),K=i(re,1),V=K[0];q.update(V)}),q}return s(O,[{key:"addHandler",value:function(R,q){this.handlers[R]=q}},{key:"attach",value:function(R){var q=this,W=[].find.call(R.classList,function(re){return re.indexOf("ql-")===0});if(W){if(W=W.slice(3),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){T.warn("ignoring attaching to disabled format",W,R);return}if(p.default.query(W)==null){T.warn("ignoring attaching to nonexistent format",W,R);return}}var Y=R.tagName==="SELECT"?"change":"click";R.addEventListener(Y,function(re){var K=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var V=R.options[R.selectedIndex];V.hasAttribute("selected")?K=!1:K=V.value||!1}else R.classList.contains("ql-active")?K=!1:K=R.value||!R.hasAttribute("value"),re.preventDefault();q.quill.focus();var D=q.quill.selection.getRange(),A=i(D,1),I=A[0];if(q.handlers[W]!=null)q.handlers[W].call(q,K);else if(p.default.query(W).prototype instanceof p.default.Embed){if(K=prompt("Enter "+W),!K)return;q.quill.updateContents(new u.default().retain(I.index).delete(I.length).insert(g({},W,K)),c.default.sources.USER)}else q.quill.format(W,K,c.default.sources.USER);q.update(I)}),this.controls.push([W,R])}}},{key:"update",value:function(R){var q=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(W){var Y=i(W,2),re=Y[0],K=Y[1];if(K.tagName==="SELECT"){var V=void 0;if(R==null)V=null;else if(q[re]==null)V=K.querySelector("option[selected]");else if(!Array.isArray(q[re])){var D=q[re];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),V=K.querySelector('option[value="'+D+'"]')}V==null?(K.value="",K.selectedIndex=-1):V.selected=!0}else if(R==null)K.classList.remove("ql-active");else if(K.hasAttribute("value")){var A=q[re]===K.getAttribute("value")||q[re]!=null&&q[re].toString()===K.getAttribute("value")||q[re]==null&&!K.getAttribute("value");K.classList.toggle("ql-active",A)}else K.classList.toggle("ql-active",q[re]!=null)})}}]),O}(_.default);S.DEFAULTS={};function x(C,O,N){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+O),N!=null&&(R.value=N),C.appendChild(R)}function M(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var R=document.createElement("span");R.classList.add("ql-formats"),N.forEach(function(q){if(typeof q=="string")x(R,q);else{var W=Object.keys(q)[0],Y=q[W];Array.isArray(Y)?E(R,W,Y):x(R,W,Y)}}),C.appendChild(R)})}function E(C,O,N){var R=document.createElement("select");R.classList.add("ql-"+O),N.forEach(function(q){var W=document.createElement("option");q!==!1?W.setAttribute("value",q):W.setAttribute("selected","selected"),R.appendChild(W)}),C.appendChild(R)}S.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(q){p.default.query(q,p.default.Scope.INLINE)!=null&&O.quill.format(q,!1)})}else this.quill.removeFormat(N,c.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",c.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",O,c.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),R=this.quill.getFormat(N),q=parseInt(R.indent||0);if(O==="+1"||O==="-1"){var W=O==="+1"?1:-1;R.direction==="rtl"&&(W*=-1),this.quill.format("indent",q+W,c.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,c.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),R=this.quill.getFormat(N);O==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",O,c.default.sources.USER)}}},o.default=S,o.addControls=M},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(28),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(_,y){p(this,m);var g=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,_));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),g}return i(m,[{key:"buildItem",value:function(y){var g=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g);var w=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=b:w.style.fill=b)}}]),m}(u.default);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(28),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(_,y){p(this,m);var g=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,_));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=y[w.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(m,[{key:"selectItem",value:function(y,g){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),m}(u.default);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function u(d,p){for(var f=0;f<p.length;f++){var c=p[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}return function(d,p,f){return p&&u(d.prototype,p),f&&u(d,f),d}}();function s(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}var l=function(){function u(d,p){var f=this;s(this,u),this.quill=d,this.boundsContainer=p||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return i(u,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,c=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>h.right&&(m=h.right-v.right,this.root.style.left=f+m+"px"),v.left<h.left&&(m=h.left-v.left,this.root.style.left=f+m+"px"),v.bottom>h.bottom){var _=v.bottom-v.top,y=p.bottom-p.top+_;this.root.style.top=c-y+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),u}();o.default=l},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function E(C,O){var N=[],R=!0,q=!1,W=void 0;try{for(var Y=C[Symbol.iterator](),re;!(R=(re=Y.next()).done)&&(N.push(re.value),!(O&&N.length===O));R=!0);}catch(K){q=!0,W=K}finally{try{!R&&Y.return&&Y.return()}finally{if(q)throw W}}return N}return function(C,O){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return E(C,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function E(C,O,N){C===null&&(C=Function.prototype);var R=Object.getOwnPropertyDescriptor(C,O);if(R===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:E(q,O,N)}else{if("value"in R)return R.value;var W=R.get;return W===void 0?void 0:W.call(N)}},l=function(){function E(C,O){for(var N=0;N<O.length;N++){var R=O[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(C,R.key,R)}}return function(C,O,N){return O&&E(C.prototype,O),N&&E(C,N),C}}(),u=a(3),d=w(u),p=a(8),f=w(p),c=a(43),h=w(c),v=a(27),m=w(v),_=a(15),y=a(41),g=w(y);function w(E){return E&&E.__esModule?E:{default:E}}function b(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function k(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function T(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(E){T(C,E);function C(O,N){b(this,C),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=S);var R=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return R.quill.container.classList.add("ql-snow"),R}return l(C,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),g.default),this.tooltip=new M(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,q){N.handlers.link.call(N,!q.format.link)})}}]),C}(h.default);x.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var R=this.quill.theme.tooltip;R.edit("link",N)}else this.quill.format("link",!1)}}}}});var M=function(E){T(C,E);function C(O,N){b(this,C);var R=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return R.preview=R.root.querySelector("a.ql-preview"),R}return l(C,[{key:"listen",value:function(){var N=this;s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(N.linkRange!=null){var q=N.linkRange;N.restoreFocus(),N.quill.formatText(q,"link",!1,f.default.sources.USER),delete N.linkRange}R.preventDefault(),N.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(R,q,W){if(R!=null){if(R.length===0&&W===f.default.sources.USER){var Y=N.quill.scroll.descendant(m.default,R.index),re=i(Y,2),K=re[0],V=re[1];if(K!=null){N.linkRange=new _.Range(R.index-V,K.length());var D=m.default.formats(K.domNode);N.preview.textContent=D,N.preview.setAttribute("href",D),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),o.default=x},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(29),s=ie(i),l=a(36),u=a(38),d=a(64),p=a(65),f=ie(p),c=a(66),h=ie(c),v=a(67),m=ie(v),_=a(37),y=a(26),g=a(39),w=a(40),b=a(56),k=ie(b),T=a(68),S=ie(T),x=a(27),M=ie(x),E=a(69),C=ie(E),O=a(70),N=ie(O),R=a(71),q=ie(R),W=a(72),Y=ie(W),re=a(73),K=ie(re),V=a(13),D=ie(V),A=a(74),I=ie(A),U=a(75),F=ie(U),L=a(57),z=ie(L),Z=a(41),J=ie(Z),ne=a(28),ce=ie(ne),he=a(59),be=ie(he),ke=a(60),Oe=ie(ke),Re=a(61),Me=ie(Re),Q=a(108),te=ie(Q),ae=a(62),le=ie(ae);function ie($e){return $e&&$e.__esModule?$e:{default:$e}}s.default.register({"attributors/attribute/direction":u.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":_.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":u.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":_.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":u.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":w.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":u.DirectionClass,"formats/indent":d.IndentClass,"formats/background":_.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":m.default,"formats/bold":k.default,"formats/code":V.Code,"formats/italic":S.default,"formats/link":M.default,"formats/script":C.default,"formats/strike":N.default,"formats/underline":q.default,"formats/image":Y.default,"formats/video":K.default,"formats/list/item":v.ListItem,"modules/formula":I.default,"modules/syntax":F.default,"modules/toolbar":z.default,"themes/bubble":te.default,"themes/snow":le.default,"ui/icons":J.default,"ui/picker":ce.default,"ui/icon-picker":Oe.default,"ui/color-picker":be.default,"ui/tooltip":Me.default},!0),o.default=s.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var i=function(){function m(_,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,y,g){return y&&m(_.prototype,y),g&&m(_,g),_}}(),s=function m(_,y,g){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,y);if(w===void 0){var b=Object.getPrototypeOf(_);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(g)}},l=a(0),u=d(l);function d(m){return m&&m.__esModule?m:{default:m}}function p(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function f(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var h=function(m){c(_,m);function _(){return p(this,_),f(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return i(_,[{key:"add",value:function(g,w){if(w==="+1"||w==="-1"){var b=this.value(g)||0;w=w==="+1"?b+1:b-1}return w===0?(this.remove(g),!0):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"add",this).call(this,g,w)}},{key:"canAdd",value:function(g,w){return s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,w)||s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,parseInt(w))}},{key:"value",value:function(g){return parseInt(s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,g))||void 0}}]),_}(u.default.Attributor.Class),v=new h("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(4),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="blockquote",f.tagName="blockquote",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function h(v,m){for(var _=0;_<m.length;_++){var y=m[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,m,_){return m&&h(v.prototype,m),_&&h(v,_),v}}(),s=a(4),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function p(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function f(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var c=function(h){f(v,h);function v(){return d(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(_){return this.tagName.indexOf(_.tagName)+1}}]),v}(l.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],o.default=c},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var i=function(){function b(k,T){for(var S=0;S<T.length;S++){var x=T[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(k,x.key,x)}}return function(k,T,S){return T&&b(k.prototype,T),S&&b(k,S),k}}(),s=function b(k,T,S){k===null&&(k=Function.prototype);var x=Object.getOwnPropertyDescriptor(k,T);if(x===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:b(M,T,S)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(S)}},l=a(0),u=h(l),d=a(4),p=h(d),f=a(25),c=h(f);function h(b){return b&&b.__esModule?b:{default:b}}function v(b,k,T){return k in b?Object.defineProperty(b,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):b[k]=T,b}function m(b,k){if(!(b instanceof k))throw new TypeError("Cannot call a class as a function")}function _(b,k){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:b}function y(b,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);b.prototype=Object.create(k&&k.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(b,k):b.__proto__=k)}var g=function(b){y(k,b);function k(){return m(this,k),_(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return i(k,[{key:"format",value:function(S,x){S===w.blotName&&!x?this.replaceWith(u.default.create(this.statics.scope)):s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,S,x)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,x){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,x),this):(this.parent.unwrap(),s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replaceWith",this).call(this,S,x))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:s(k.__proto__||Object.getPrototypeOf(k),"formats",this).call(this,S)}}]),k}(p.default);g.blotName="list-item",g.tagName="LI";var w=function(b){y(k,b),i(k,null,[{key:"create",value:function(S){var x=S==="ordered"?"OL":"UL",M=s(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,x);return(S==="checked"||S==="unchecked")&&M.setAttribute("data-checked",S==="checked"),M}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function k(T){m(this,k);var S=_(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T)),x=function(E){if(E.target.parentNode===T){var C=S.statics.formats(T),O=u.default.find(E.target);C==="checked"?O.format("list","unchecked"):C==="unchecked"&&O.format("list","checked")}};return T.addEventListener("touchstart",x),T.addEventListener("mousedown",x),S}return i(k,[{key:"format",value:function(S,x){this.children.length>0&&this.children.tail.format(S,x)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,x){if(S instanceof g)s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,S,x);else{var M=x==null?this.length():x.offset(this),E=this.split(M);E.parent.insertBefore(S,E)}}},{key:"optimize",value:function(S){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,S);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&x.domNode.tagName===this.domNode.tagName&&x.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(x.moveChildren(this),x.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var x=u.default.create(this.statics.defaultChild);S.moveChildren(x),this.appendChild(x)}s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,S)}}]),k}(c.default);w.blotName="list",w.scope=u.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[g],o.ListItem=g,o.default=w},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(56),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="italic",f.tagName=["EM","I"],o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function v(m,_){for(var y=0;y<_.length;y++){var g=_[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,_,y){return _&&v(m.prototype,_),y&&v(m,y),m}}(),s=function v(m,_,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,_);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:v(w,_,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},l=a(6),u=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function f(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function c(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var h=function(v){c(m,v);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),m}(u.default);h.blotName="script",h.tagName=["SUB","SUP"],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="strike",f.tagName="S",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=a(6),s=l(i);function l(c){return c&&c.__esModule?c:{default:c}}function u(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function d(c,h){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:c}function p(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(c,h):c.__proto__=h)}var f=function(c){p(h,c);function h(){return u(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="underline",f.tagName="U",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function _(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),s=function _(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(w)}},l=a(0),u=p(l),d=a(27);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function c(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function h(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var v=["alt","height","width"],m=function(_){h(y,_);function y(){return f(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(w,b){v.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return typeof w=="string"&&b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return v.reduce(function(b,k){return w.hasAttribute(k)&&(b[k]=w.getAttribute(k)),b},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,d.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(u.default.Embed);m.blotName="image",m.tagName="IMG",o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var i=function(){function _(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),s=function _(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(w)}},l=a(4),u=a(27),d=p(u);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function c(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function h(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var v=["height","width"],m=function(_){h(y,_);function y(){return f(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(w,b){v.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return v.reduce(function(b,k){return w.hasAttribute(k)&&(b[k]=w.getAttribute(k)),b},{})}},{key:"sanitize",value:function(w){return d.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(l.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var i=function(){function w(b,k){for(var T=0;T<k.length;T++){var S=k[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,k,T){return k&&w(b.prototype,k),T&&w(b,T),b}}(),s=function w(b,k,T){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,k);if(S===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:w(x,k,T)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(T)}},l=a(35),u=h(l),d=a(5),p=h(d),f=a(9),c=h(f);function h(w){return w&&w.__esModule?w:{default:w}}function v(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function m(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function _(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var y=function(w){_(b,w);function b(){return v(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,null,[{key:"create",value:function(T){var S=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",T)),S}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),b}(u.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=function(w){_(b,w),i(b,null,[{key:"register",value:function(){p.default.register(y,!0)}}]);function b(){v(this,b);var k=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return k}return b}(c.default);o.FormulaBlot=y,o.default=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.CodeToken=o.CodeBlock=void 0;var i=function(){function T(S,x){for(var M=0;M<x.length;M++){var E=x[M];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,x,M){return x&&T(S.prototype,x),M&&T(S,M),S}}(),s=function T(S,x,M){S===null&&(S=Function.prototype);var E=Object.getOwnPropertyDescriptor(S,x);if(E===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:T(C,x,M)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(M)}},l=a(0),u=m(l),d=a(5),p=m(d),f=a(9),c=m(f),h=a(13),v=m(h);function m(T){return T&&T.__esModule?T:{default:T}}function _(T,S){if(!(T instanceof S))throw new TypeError("Cannot call a class as a function")}function y(T,S){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:T}function g(T,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);T.prototype=Object.create(S&&S.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(T,S):T.__proto__=S)}var w=function(T){g(S,T);function S(){return _(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return i(S,[{key:"replaceWith",value:function(M){this.domNode.textContent=this.domNode.textContent,this.attach(),s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,M)}},{key:"highlight",value:function(M){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=M(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),S}(v.default);w.className="ql-syntax";var b=new u.default.Attributor.Class("token","hljs",{scope:u.default.Scope.INLINE}),k=function(T){g(S,T),i(S,null,[{key:"register",value:function(){p.default.register(b,!0),p.default.register(w,!0)}}]);function S(x,M){_(this,S);var E=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,M));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return E.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){E.highlight(),C=null},E.options.interval)}),E.highlight(),E}return i(S,[{key:"highlight",value:function(){var M=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(C){C.highlight(M.options.highlight)}),this.quill.update(p.default.sources.SILENT),E!=null&&this.quill.setSelection(E,p.default.sources.SILENT)}}}]),S}(c.default);k.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var S=window.hljs.highlightAuto(T);return S.value}}(),interval:1e3},o.CodeBlock=w,o.CodeToken=b,o.default=k},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BubbleTooltip=void 0;var i=function S(x,M,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,M);if(C===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:S(O,M,E)}else{if("value"in C)return C.value;var N=C.get;return N===void 0?void 0:N.call(E)}},s=function(){function S(x,M){for(var E=0;E<M.length;E++){var C=M[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,M,E){return M&&S(x.prototype,M),E&&S(x,E),x}}(),l=a(3),u=_(l),d=a(8),p=_(d),f=a(43),c=_(f),h=a(15),v=a(41),m=_(v);function _(S){return S&&S.__esModule?S:{default:S}}function y(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function g(S,x){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:S}function w(S,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);S.prototype=Object.create(x&&x.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(S,x):S.__proto__=x)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],k=function(S){w(x,S);function x(M,E){y(this,x),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=b);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,M,E));return C.quill.container.classList.add("ql-bubble"),C}return s(x,[{key:"extendToolbar",value:function(E){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(E.container),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),m.default)}}]),x}(c.default);k.DEFAULTS=(0,u.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){x?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(S){w(x,S);function x(M,E){y(this,x);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,M,E));return C.quill.on(p.default.events.EDITOR_CHANGE,function(O,N,R,q){if(O===p.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&q===p.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var W=C.quill.getLines(N.index,N.length);if(W.length===1)C.position(C.quill.getBounds(N));else{var Y=W[W.length-1],re=C.quill.getIndex(Y),K=Math.min(Y.length()-1,N.index+N.length-re),V=C.quill.getBounds(new h.Range(re,K));C.position(V)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return s(x,[{key:"listen",value:function(){var E=this;i(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var C=E.quill.getSelection();C!=null&&E.position(E.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var C=i(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"position",this).call(this,E),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",C===0)return C;O.style.marginLeft=-1*C-O.offsetWidth/2+"px"}}]),x}(f.BaseTooltip);T.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),o.BubbleTooltip=T,o.default=k},function(e,o,a){e.exports=a(63)}]).default})})($a);var N1=$a.exports;const xe=Cn(N1);var $t=-1,bt=1,lt=0;function Dn(t,n,e,o){if(t===n)return t?[[lt,t]]:[];if(e!=null){var a=B1(t,n,e);if(a)return a}var i=fi(t,n),s=t.substring(0,i);t=t.substring(i),n=n.substring(i),i=hi(t,n);var l=t.substring(t.length-i);t=t.substring(0,t.length-i),n=n.substring(0,n.length-i);var u=A1(t,n);return s&&u.unshift([lt,s]),l&&u.push([lt,l]),ka(u,o),u}function A1(t,n){var e;if(!t)return[[bt,n]];if(!n)return[[$t,t]];var o=t.length>n.length?t:n,a=t.length>n.length?n:t,i=o.indexOf(a);if(i!==-1)return e=[[bt,o.substring(0,i)],[lt,a],[bt,o.substring(i+a.length)]],t.length>n.length&&(e[0][0]=e[2][0]=$t),e;if(a.length===1)return[[$t,t],[bt,n]];var s=P1(t,n);if(s){var l=s[0],u=s[1],d=s[2],p=s[3],f=s[4],c=Dn(l,d),h=Dn(u,p);return c.concat([[lt,f]],h)}return D1(t,n)}function D1(t,n){for(var e=t.length,o=n.length,a=Math.ceil((e+o)/2),i=a,s=2*a,l=new Array(s),u=new Array(s),d=0;d<s;d++)l[d]=-1,u[d]=-1;l[i+1]=0,u[i+1]=0;for(var p=e-o,f=p%2!==0,c=0,h=0,v=0,m=0,_=0;_<a;_++){for(var y=-_+c;y<=_-h;y+=2){var g=i+y,w;y===-_||y!==_&&l[g-1]<l[g+1]?w=l[g+1]:w=l[g-1]+1;for(var b=w-y;w<e&&b<o&&t.charAt(w)===n.charAt(b);)w++,b++;if(l[g]=w,w>e)h+=2;else if(b>o)c+=2;else if(f){var k=i+p-y;if(k>=0&&k<s&&u[k]!==-1){var T=e-u[k];if(w>=T)return wa(t,n,w,b)}}}for(var S=-_+v;S<=_-m;S+=2){var k=i+S,T;S===-_||S!==_&&u[k-1]<u[k+1]?T=u[k+1]:T=u[k-1]+1;for(var x=T-S;T<e&&x<o&&t.charAt(e-T-1)===n.charAt(o-x-1);)T++,x++;if(u[k]=T,T>e)m+=2;else if(x>o)v+=2;else if(!f){var g=i+p-S;if(g>=0&&g<s&&l[g]!==-1){var w=l[g],b=i+w-g;if(T=e-T,w>=T)return wa(t,n,w,b)}}}}return[[$t,t],[bt,n]]}function wa(t,n,e,o){var a=t.substring(0,e),i=n.substring(0,o),s=t.substring(e),l=n.substring(o),u=Dn(a,i),d=Dn(s,l);return u.concat(d)}function fi(t,n){if(!t||!n||t.charAt(0)!==n.charAt(0))return 0;for(var e=0,o=Math.min(t.length,n.length),a=o,i=0;e<a;)t.substring(i,a)==n.substring(i,a)?(e=a,i=e):o=a,a=Math.floor((o-e)/2+e);return Ca(t.charCodeAt(a-1))&&a--,a}function hi(t,n){if(!t||!n||t.slice(-1)!==n.slice(-1))return 0;for(var e=0,o=Math.min(t.length,n.length),a=o,i=0;e<a;)t.substring(t.length-a,t.length-i)==n.substring(n.length-a,n.length-i)?(e=a,i=e):o=a,a=Math.floor((o-e)/2+e);return Oa(t.charCodeAt(t.length-a))&&a--,a}function P1(t,n){var e=t.length>n.length?t:n,o=t.length>n.length?n:t;if(e.length<4||o.length*2<e.length)return null;function a(h,v,m){for(var _=h.substring(m,m+Math.floor(h.length/4)),y=-1,g="",w,b,k,T;(y=v.indexOf(_,y+1))!==-1;){var S=fi(h.substring(m),v.substring(y)),x=hi(h.substring(0,m),v.substring(0,y));g.length<x+S&&(g=v.substring(y-x,y)+v.substring(y,y+S),w=h.substring(0,m-x),b=h.substring(m+S),k=v.substring(0,y-x),T=v.substring(y+S))}return g.length*2>=h.length?[w,b,k,T,g]:null}var i=a(e,o,Math.ceil(e.length/4)),s=a(e,o,Math.ceil(e.length/2)),l;if(!i&&!s)return null;s?i?l=i[4].length>s[4].length?i:s:l=s:l=i;var u,d,p,f;t.length>n.length?(u=l[0],d=l[1],p=l[2],f=l[3]):(p=l[0],f=l[1],u=l[2],d=l[3]);var c=l[4];return[u,d,p,f,c]}function ka(t,n){t.push([lt,""]);for(var e=0,o=0,a=0,i="",s="",l;e<t.length;){if(e<t.length-1&&!t[e][1]){t.splice(e,1);continue}switch(t[e][0]){case bt:a++,s+=t[e][1],e++;break;case $t:o++,i+=t[e][1],e++;break;case lt:var u=e-a-o-1;if(n){if(u>=0&&Sa(t[u][1])){var d=t[u][1].slice(-1);if(t[u][1]=t[u][1].slice(0,-1),i=d+i,s=d+s,!t[u][1]){t.splice(u,1),e--;var p=u-1;t[p]&&t[p][0]===bt&&(a++,s=t[p][1]+s,p--),t[p]&&t[p][0]===$t&&(o++,i=t[p][1]+i,p--),u=p}}if(Ea(t[e][1])){var d=t[e][1].charAt(0);t[e][1]=t[e][1].slice(1),i+=d,s+=d}}if(e<t.length-1&&!t[e][1]){t.splice(e,1);break}if(i.length>0||s.length>0){i.length>0&&s.length>0&&(l=fi(s,i),l!==0&&(u>=0?t[u][1]+=s.substring(0,l):(t.splice(0,0,[lt,s.substring(0,l)]),e++),s=s.substring(l),i=i.substring(l)),l=hi(s,i),l!==0&&(t[e][1]=s.substring(s.length-l)+t[e][1],s=s.substring(0,s.length-l),i=i.substring(0,i.length-l)));var f=a+o;i.length===0&&s.length===0?(t.splice(e-f,f),e=e-f):i.length===0?(t.splice(e-f,f,[bt,s]),e=e-f+1):s.length===0?(t.splice(e-f,f,[$t,i]),e=e-f+1):(t.splice(e-f,f,[$t,i],[bt,s]),e=e-f+2)}e!==0&&t[e-1][0]===lt?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,a=0,o=0,i="",s="";break}}t[t.length-1][1]===""&&t.pop();var c=!1;for(e=1;e<t.length-1;)t[e-1][0]===lt&&t[e+1][0]===lt&&(t[e][1].substring(t[e][1].length-t[e-1][1].length)===t[e-1][1]?(t[e][1]=t[e-1][1]+t[e][1].substring(0,t[e][1].length-t[e-1][1].length),t[e+1][1]=t[e-1][1]+t[e+1][1],t.splice(e-1,1),c=!0):t[e][1].substring(0,t[e+1][1].length)==t[e+1][1]&&(t[e-1][1]+=t[e+1][1],t[e][1]=t[e][1].substring(t[e+1][1].length)+t[e+1][1],t.splice(e+1,1),c=!0)),e++;c&&ka(t,n)}function Ca(t){return t>=55296&&t<=56319}function Oa(t){return t>=56320&&t<=57343}function Ea(t){return Oa(t.charCodeAt(0))}function Sa(t){return Ca(t.charCodeAt(t.length-1))}function I1(t){for(var n=[],e=0;e<t.length;e++)t[e][1].length>0&&n.push(t[e]);return n}function pi(t,n,e,o){return Sa(t)||Ea(o)?null:I1([[lt,t],[$t,n],[bt,e],[lt,o]])}function B1(t,n,e){var o=typeof e=="number"?{index:e,length:0}:e.oldRange,a=typeof e=="number"?null:e.newRange,i=t.length,s=n.length;if(o.length===0&&(a===null||a.length===0)){var l=o.index,u=t.slice(0,l),d=t.slice(l),p=a?a.index:null;e:{var f=l+s-i;if(p!==null&&p!==f||f<0||f>s)break e;var c=n.slice(0,f),h=n.slice(f);if(h!==d)break e;var v=Math.min(l,f),m=u.slice(0,v),_=c.slice(0,v);if(m!==_)break e;var y=u.slice(v),g=c.slice(v);return pi(m,y,g,d)}e:{if(p!==null&&p!==l)break e;var w=l,c=n.slice(0,w),h=n.slice(w);if(c!==u)break e;var b=Math.min(i-w,s-w),k=d.slice(d.length-b),T=h.slice(h.length-b);if(k!==T)break e;var y=d.slice(0,d.length-b),g=h.slice(0,h.length-b);return pi(u,y,g,k)}}if(o.length>0&&a&&a.length===0)e:{var m=t.slice(0,o.index),k=t.slice(o.index+o.length),v=m.length,b=k.length;if(s<v+b)break e;var _=n.slice(0,v),T=n.slice(s-b);if(m!==_||k!==T)break e;var y=t.slice(v,i-b),g=n.slice(v,s-b);return pi(m,y,g,k)}return null}function mr(t,n,e){return Dn(t,n,e,!0)}mr.INSERT=bt,mr.DELETE=$t,mr.EQUAL=lt;var M1=mr,gr={exports:{}};gr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",d="[object Error]",p="[object Function]",f="[object GeneratorFunction]",c="[object Map]",h="[object Number]",v="[object Object]",m="[object Promise]",_="[object RegExp]",y="[object Set]",g="[object String]",w="[object Symbol]",b="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",x="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",q="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,Y=/\w*$/,re=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,V={};V[i]=V[s]=V[k]=V[T]=V[l]=V[u]=V[S]=V[x]=V[M]=V[E]=V[C]=V[c]=V[h]=V[v]=V[_]=V[y]=V[g]=V[w]=V[O]=V[N]=V[R]=V[q]=!0,V[d]=V[p]=V[b]=!1;var D=typeof je=="object"&&je&&je.Object===Object&&je,A=typeof self=="object"&&self&&self.Object===Object&&self,I=D||A||Function("return this")(),U=n&&!n.nodeType&&n,F=U&&!0&&t&&!t.nodeType&&t,L=F&&F.exports===U;function z($,P){return $.set(P[0],P[1]),$}function Z($,P){return $.add(P),$}function J($,P){for(var H=-1,ee=$?$.length:0;++H<ee&&P($[H],H,$)!==!1;);return $}function ne($,P){for(var H=-1,ee=P.length,we=$.length;++H<ee;)$[we+H]=P[H];return $}function ce($,P,H,ee){var we=-1,fe=$?$.length:0;for(ee&&fe&&(H=$[++we]);++we<fe;)H=P(H,$[we],we,$);return H}function he($,P){for(var H=-1,ee=Array($);++H<$;)ee[H]=P(H);return ee}function be($,P){return $==null?void 0:$[P]}function ke($){var P=!1;if($!=null&&typeof $.toString!="function")try{P=!!($+"")}catch{}return P}function Oe($){var P=-1,H=Array($.size);return $.forEach(function(ee,we){H[++P]=[we,ee]}),H}function Re($,P){return function(H){return $(P(H))}}function Me($){var P=-1,H=Array($.size);return $.forEach(function(ee){H[++P]=ee}),H}var Q=Array.prototype,te=Function.prototype,ae=Object.prototype,le=I["__core-js_shared__"],ie=function(){var $=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),$e=te.toString,me=ae.hasOwnProperty,ve=ae.toString,ze=RegExp("^"+$e.call(me).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=L?I.Buffer:void 0,Ae=I.Symbol,wt=I.Uint8Array,Ee=Re(Object.getPrototypeOf,Object),rt=Object.create,Jt=ae.propertyIsEnumerable,Bn=Q.splice,Xt=Object.getOwnPropertySymbols,Pe=qe?qe.isBuffer:void 0,zt=Re(Object.keys,Object),kt=vt(I,"DataView"),Pt=vt(I,"Map"),Ze=vt(I,"Promise"),Ct=vt(I,"Set"),it=vt(I,"WeakMap"),It=vt(Object,"create"),Qt=ot(kt),B=ot(Pt),j=ot(Ze),G=ot(Ct),X=ot(it),oe=Ae?Ae.prototype:void 0,se=oe?oe.valueOf:void 0;function ye($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function ue(){this.__data__=It?It(null):{}}function Ce($){return this.has($)&&delete this.__data__[$]}function de($){var P=this.__data__;if(It){var H=P[$];return H===o?void 0:H}return me.call(P,$)?P[$]:void 0}function ge($){var P=this.__data__;return It?P[$]!==void 0:me.call(P,$)}function Te($,P){var H=this.__data__;return H[$]=It&&P===void 0?o:P,this}ye.prototype.clear=ue,ye.prototype.delete=Ce,ye.prototype.get=de,ye.prototype.has=ge,ye.prototype.set=Te;function Be($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ge(){this.__data__=[]}function Bt($){var P=this.__data__,H=hn(P,$);if(H<0)return!1;var ee=P.length-1;return H==ee?P.pop():Bn.call(P,H,1),!0}function Ot($){var P=this.__data__,H=hn(P,$);return H<0?void 0:P[H][1]}function Mn($){return hn(this.__data__,$)>-1}function en($,P){var H=this.__data__,ee=hn(H,$);return ee<0?H.push([$,P]):H[ee][1]=P,this}Be.prototype.clear=Ge,Be.prototype.delete=Bt,Be.prototype.get=Ot,Be.prototype.has=Mn,Be.prototype.set=en;function Ue($){var P=-1,H=$?$.length:0;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ln(){this.__data__={hash:new ye,map:new(Pt||Be),string:new ye}}function Rn($){return nn(this,$).delete($)}function jn($){return nn(this,$).get($)}function Vn($){return nn(this,$).has($)}function qn($,P){return nn(this,$).set($,P),this}Ue.prototype.clear=Ln,Ue.prototype.delete=Rn,Ue.prototype.get=jn,Ue.prototype.has=Vn,Ue.prototype.set=qn;function Je($){this.__data__=new Be($)}function Fn(){this.__data__=new Be}function vi($){return this.__data__.delete($)}function _i($){return this.__data__.get($)}function $i($){return this.__data__.has($)}function wi($,P){var H=this.__data__;if(H instanceof Be){var ee=H.__data__;if(!Pt||ee.length<e-1)return ee.push([$,P]),this;H=this.__data__=new Ue(ee)}return H.set($,P),this}Je.prototype.clear=Fn,Je.prototype.delete=vi,Je.prototype.get=_i,Je.prototype.has=$i,Je.prototype.set=wi;function fn($,P){var H=Kn($)||mn($)?he($.length,String):[],ee=H.length,we=!!ee;for(var fe in $)(P||me.call($,fe))&&!(we&&(fe=="length"||Mi(fe,ee)))&&H.push(fe);return H}function wr($,P,H){var ee=$[P];(!(me.call($,P)&&Sr(ee,H))||H===void 0&&!(P in $))&&($[P]=H)}function hn($,P){for(var H=$.length;H--;)if(Sr($[H][0],P))return H;return-1}function Et($,P){return $&&Un(P,Wn(P),$)}function Hn($,P,H,ee,we,fe,Se){var Ne;if(ee&&(Ne=fe?ee($,we,fe,Se):ee($)),Ne!==void 0)return Ne;if(!xt($))return $;var Fe=Kn($);if(Fe){if(Ne=Ii($),!P)return Ai($,Ne)}else{var Ie=Lt($),Xe=Ie==p||Ie==f;if(xr($))return pn($,P);if(Ie==v||Ie==i||Xe&&!fe){if(ke($))return fe?$:{};if(Ne=St(Xe?{}:$),!P)return Di($,Et(Ne,$))}else{if(!V[Ie])return fe?$:{};Ne=Bi($,Ie,Hn,P)}}Se||(Se=new Je);var ct=Se.get($);if(ct)return ct;if(Se.set($,Ne),!Fe)var He=H?Pi($):Wn($);return J(He||$,function(Qe,We){He&&(We=Qe,Qe=$[We]),wr(Ne,We,Hn(Qe,P,H,ee,We,$,Se))}),Ne}function ki($){return xt($)?rt($):{}}function Ci($,P,H){var ee=P($);return Kn($)?ee:ne(ee,H($))}function Oi($){return ve.call($)}function Ei($){if(!xt($)||Ri($))return!1;var P=Gn($)||ke($)?ze:re;return P.test(ot($))}function Si($){if(!Or($))return zt($);var P=[];for(var H in Object($))me.call($,H)&&H!="constructor"&&P.push(H);return P}function pn($,P){if(P)return $.slice();var H=new $.constructor($.length);return $.copy(H),H}function zn($){var P=new $.constructor($.byteLength);return new wt(P).set(new wt($)),P}function tn($,P){var H=P?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.byteLength)}function kr($,P,H){var ee=P?H(Oe($),!0):Oe($);return ce(ee,z,new $.constructor)}function Cr($){var P=new $.constructor($.source,Y.exec($));return P.lastIndex=$.lastIndex,P}function xi($,P,H){var ee=P?H(Me($),!0):Me($);return ce(ee,Z,new $.constructor)}function Ti($){return se?Object(se.call($)):{}}function Ni($,P){var H=P?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.length)}function Ai($,P){var H=-1,ee=$.length;for(P||(P=Array(ee));++H<ee;)P[H]=$[H];return P}function Un($,P,H,ee){H||(H={});for(var we=-1,fe=P.length;++we<fe;){var Se=P[we],Ne=ee?ee(H[Se],$[Se],Se,H,$):void 0;wr(H,Se,Ne===void 0?$[Se]:Ne)}return H}function Di($,P){return Un($,Mt($),P)}function Pi($){return Ci($,Wn,Mt)}function nn($,P){var H=$.__data__;return Li(P)?H[typeof P=="string"?"string":"hash"]:H.map}function vt($,P){var H=be($,P);return Ei(H)?H:void 0}var Mt=Xt?Re(Xt,Object):Vi,Lt=Oi;(kt&&Lt(new kt(new ArrayBuffer(1)))!=T||Pt&&Lt(new Pt)!=c||Ze&&Lt(Ze.resolve())!=m||Ct&&Lt(new Ct)!=y||it&&Lt(new it)!=b)&&(Lt=function($){var P=ve.call($),H=P==v?$.constructor:void 0,ee=H?ot(H):void 0;if(ee)switch(ee){case Qt:return T;case B:return c;case j:return m;case G:return y;case X:return b}return P});function Ii($){var P=$.length,H=$.constructor(P);return P&&typeof $[0]=="string"&&me.call($,"index")&&(H.index=$.index,H.input=$.input),H}function St($){return typeof $.constructor=="function"&&!Or($)?ki(Ee($)):{}}function Bi($,P,H,ee){var we=$.constructor;switch(P){case k:return zn($);case l:case u:return new we(+$);case T:return tn($,ee);case S:case x:case M:case E:case C:case O:case N:case R:case q:return Ni($,ee);case c:return kr($,ee,H);case h:case g:return new we($);case _:return Cr($);case y:return xi($,ee,H);case w:return Ti($)}}function Mi($,P){return P=P??a,!!P&&(typeof $=="number"||K.test($))&&$>-1&&$%1==0&&$<P}function Li($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function Ri($){return!!ie&&ie in $}function Or($){var P=$&&$.constructor,H=typeof P=="function"&&P.prototype||ae;return $===H}function ot($){if($!=null){try{return $e.call($)}catch{}try{return $+""}catch{}}return""}function Er($){return Hn($,!0,!0)}function Sr($,P){return $===P||$!==$&&P!==P}function mn($){return ji($)&&me.call($,"callee")&&(!Jt.call($,"callee")||ve.call($)==i)}var Kn=Array.isArray;function gn($){return $!=null&&Tr($.length)&&!Gn($)}function ji($){return Nr($)&&gn($)}var xr=Pe||qi;function Gn($){var P=xt($)?ve.call($):"";return P==p||P==f}function Tr($){return typeof $=="number"&&$>-1&&$%1==0&&$<=a}function xt($){var P=typeof $;return!!$&&(P=="object"||P=="function")}function Nr($){return!!$&&typeof $=="object"}function Wn($){return gn($)?fn($):Si($)}function Vi(){return[]}function qi(){return!1}t.exports=Er}(gr,gr.exports);var xa=gr.exports,yr={exports:{}};yr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=1,i=2,s=9007199254740991,l="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",c="[object Error]",h="[object Function]",v="[object GeneratorFunction]",m="[object Map]",_="[object Number]",y="[object Null]",g="[object Object]",w="[object Promise]",b="[object Proxy]",k="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",M="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",q="[object Int8Array]",W="[object Int16Array]",Y="[object Int32Array]",re="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",D="[object Uint32Array]",A=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,F={};F[N]=F[R]=F[q]=F[W]=F[Y]=F[re]=F[K]=F[V]=F[D]=!0,F[l]=F[u]=F[C]=F[p]=F[O]=F[f]=F[c]=F[h]=F[m]=F[_]=F[g]=F[k]=F[T]=F[S]=F[E]=!1;var L=typeof je=="object"&&je&&je.Object===Object&&je,z=typeof self=="object"&&self&&self.Object===Object&&self,Z=L||z||Function("return this")(),J=n&&!n.nodeType&&n,ne=J&&!0&&t&&!t.nodeType&&t,ce=ne&&ne.exports===J,he=ce&&L.process,be=function(){try{return he&&he.binding&&he.binding("util")}catch{}}(),ke=be&&be.isTypedArray;function Oe($,P){for(var H=-1,ee=$==null?0:$.length,we=0,fe=[];++H<ee;){var Se=$[H];P(Se,H,$)&&(fe[we++]=Se)}return fe}function Re($,P){for(var H=-1,ee=P.length,we=$.length;++H<ee;)$[we+H]=P[H];return $}function Me($,P){for(var H=-1,ee=$==null?0:$.length;++H<ee;)if(P($[H],H,$))return!0;return!1}function Q($,P){for(var H=-1,ee=Array($);++H<$;)ee[H]=P(H);return ee}function te($){return function(P){return $(P)}}function ae($,P){return $.has(P)}function le($,P){return $==null?void 0:$[P]}function ie($){var P=-1,H=Array($.size);return $.forEach(function(ee,we){H[++P]=[we,ee]}),H}function $e($,P){return function(H){return $(P(H))}}function me($){var P=-1,H=Array($.size);return $.forEach(function(ee){H[++P]=ee}),H}var ve=Array.prototype,ze=Function.prototype,qe=Object.prototype,Ae=Z["__core-js_shared__"],wt=ze.toString,Ee=qe.hasOwnProperty,rt=function(){var $=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Jt=qe.toString,Bn=RegExp("^"+wt.call(Ee).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xt=ce?Z.Buffer:void 0,Pe=Z.Symbol,zt=Z.Uint8Array,kt=qe.propertyIsEnumerable,Pt=ve.splice,Ze=Pe?Pe.toStringTag:void 0,Ct=Object.getOwnPropertySymbols,it=Xt?Xt.isBuffer:void 0,It=$e(Object.keys,Object),Qt=Mt(Z,"DataView"),B=Mt(Z,"Map"),j=Mt(Z,"Promise"),G=Mt(Z,"Set"),X=Mt(Z,"WeakMap"),oe=Mt(Object,"create"),se=ot(Qt),ye=ot(B),ue=ot(j),Ce=ot(G),de=ot(X),ge=Pe?Pe.prototype:void 0,Te=ge?ge.valueOf:void 0;function Be($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ge(){this.__data__=oe?oe(null):{},this.size=0}function Bt($){var P=this.has($)&&delete this.__data__[$];return this.size-=P?1:0,P}function Ot($){var P=this.__data__;if(oe){var H=P[$];return H===o?void 0:H}return Ee.call(P,$)?P[$]:void 0}function Mn($){var P=this.__data__;return oe?P[$]!==void 0:Ee.call(P,$)}function en($,P){var H=this.__data__;return this.size+=this.has($)?0:1,H[$]=oe&&P===void 0?o:P,this}Be.prototype.clear=Ge,Be.prototype.delete=Bt,Be.prototype.get=Ot,Be.prototype.has=Mn,Be.prototype.set=en;function Ue($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Ln(){this.__data__=[],this.size=0}function Rn($){var P=this.__data__,H=pn(P,$);if(H<0)return!1;var ee=P.length-1;return H==ee?P.pop():Pt.call(P,H,1),--this.size,!0}function jn($){var P=this.__data__,H=pn(P,$);return H<0?void 0:P[H][1]}function Vn($){return pn(this.__data__,$)>-1}function qn($,P){var H=this.__data__,ee=pn(H,$);return ee<0?(++this.size,H.push([$,P])):H[ee][1]=P,this}Ue.prototype.clear=Ln,Ue.prototype.delete=Rn,Ue.prototype.get=jn,Ue.prototype.has=Vn,Ue.prototype.set=qn;function Je($){var P=-1,H=$==null?0:$.length;for(this.clear();++P<H;){var ee=$[P];this.set(ee[0],ee[1])}}function Fn(){this.size=0,this.__data__={hash:new Be,map:new(B||Ue),string:new Be}}function vi($){var P=vt(this,$).delete($);return this.size-=P?1:0,P}function _i($){return vt(this,$).get($)}function $i($){return vt(this,$).has($)}function wi($,P){var H=vt(this,$),ee=H.size;return H.set($,P),this.size+=H.size==ee?0:1,this}Je.prototype.clear=Fn,Je.prototype.delete=vi,Je.prototype.get=_i,Je.prototype.has=$i,Je.prototype.set=wi;function fn($){var P=-1,H=$==null?0:$.length;for(this.__data__=new Je;++P<H;)this.add($[P])}function wr($){return this.__data__.set($,o),this}function hn($){return this.__data__.has($)}fn.prototype.add=fn.prototype.push=wr,fn.prototype.has=hn;function Et($){var P=this.__data__=new Ue($);this.size=P.size}function Hn(){this.__data__=new Ue,this.size=0}function ki($){var P=this.__data__,H=P.delete($);return this.size=P.size,H}function Ci($){return this.__data__.get($)}function Oi($){return this.__data__.has($)}function Ei($,P){var H=this.__data__;if(H instanceof Ue){var ee=H.__data__;if(!B||ee.length<e-1)return ee.push([$,P]),this.size=++H.size,this;H=this.__data__=new Je(ee)}return H.set($,P),this.size=H.size,this}Et.prototype.clear=Hn,Et.prototype.delete=ki,Et.prototype.get=Ci,Et.prototype.has=Oi,Et.prototype.set=Ei;function Si($,P){var H=mn($),ee=!H&&Sr($),we=!H&&!ee&&gn($),fe=!H&&!ee&&!we&&Nr($),Se=H||ee||we||fe,Ne=Se?Q($.length,String):[],Fe=Ne.length;for(var Ie in $)(P||Ee.call($,Ie))&&!(Se&&(Ie=="length"||we&&(Ie=="offset"||Ie=="parent")||fe&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Bi(Ie,Fe)))&&Ne.push(Ie);return Ne}function pn($,P){for(var H=$.length;H--;)if(Er($[H][0],P))return H;return-1}function zn($,P,H){var ee=P($);return mn($)?ee:Re(ee,H($))}function tn($){return $==null?$===void 0?M:y:Ze&&Ze in Object($)?Lt($):Or($)}function kr($){return xt($)&&tn($)==l}function Cr($,P,H,ee,we){return $===P?!0:$==null||P==null||!xt($)&&!xt(P)?$!==$&&P!==P:xi($,P,H,ee,Cr,we)}function xi($,P,H,ee,we,fe){var Se=mn($),Ne=mn(P),Fe=Se?u:St($),Ie=Ne?u:St(P);Fe=Fe==l?g:Fe,Ie=Ie==l?g:Ie;var Xe=Fe==g,ct=Ie==g,He=Fe==Ie;if(He&&gn($)){if(!gn(P))return!1;Se=!0,Xe=!1}if(He&&!Xe)return fe||(fe=new Et),Se||Nr($)?Un($,P,H,ee,we,fe):Di($,P,Fe,H,ee,we,fe);if(!(H&a)){var Qe=Xe&&Ee.call($,"__wrapped__"),We=ct&&Ee.call(P,"__wrapped__");if(Qe||We){var Ut=Qe?$.value():$,Rt=We?P.value():P;return fe||(fe=new Et),we(Ut,Rt,H,ee,fe)}}return He?(fe||(fe=new Et),Pi($,P,H,ee,we,fe)):!1}function Ti($){if(!Tr($)||Li($))return!1;var P=xr($)?Bn:I;return P.test(ot($))}function Ni($){return xt($)&&Gn($.length)&&!!F[tn($)]}function Ai($){if(!Ri($))return It($);var P=[];for(var H in Object($))Ee.call($,H)&&H!="constructor"&&P.push(H);return P}function Un($,P,H,ee,we,fe){var Se=H&a,Ne=$.length,Fe=P.length;if(Ne!=Fe&&!(Se&&Fe>Ne))return!1;var Ie=fe.get($);if(Ie&&fe.get(P))return Ie==P;var Xe=-1,ct=!0,He=H&i?new fn:void 0;for(fe.set($,P),fe.set(P,$);++Xe<Ne;){var Qe=$[Xe],We=P[Xe];if(ee)var Ut=Se?ee(We,Qe,Xe,P,$,fe):ee(Qe,We,Xe,$,P,fe);if(Ut!==void 0){if(Ut)continue;ct=!1;break}if(He){if(!Me(P,function(Rt,rn){if(!ae(He,rn)&&(Qe===Rt||we(Qe,Rt,H,ee,fe)))return He.push(rn)})){ct=!1;break}}else if(!(Qe===We||we(Qe,We,H,ee,fe))){ct=!1;break}}return fe.delete($),fe.delete(P),ct}function Di($,P,H,ee,we,fe,Se){switch(H){case O:if($.byteLength!=P.byteLength||$.byteOffset!=P.byteOffset)return!1;$=$.buffer,P=P.buffer;case C:return!($.byteLength!=P.byteLength||!fe(new zt($),new zt(P)));case p:case f:case _:return Er(+$,+P);case c:return $.name==P.name&&$.message==P.message;case k:case S:return $==P+"";case m:var Ne=ie;case T:var Fe=ee&a;if(Ne||(Ne=me),$.size!=P.size&&!Fe)return!1;var Ie=Se.get($);if(Ie)return Ie==P;ee|=i,Se.set($,P);var Xe=Un(Ne($),Ne(P),ee,we,fe,Se);return Se.delete($),Xe;case x:if(Te)return Te.call($)==Te.call(P)}return!1}function Pi($,P,H,ee,we,fe){var Se=H&a,Ne=nn($),Fe=Ne.length,Ie=nn(P),Xe=Ie.length;if(Fe!=Xe&&!Se)return!1;for(var ct=Fe;ct--;){var He=Ne[ct];if(!(Se?He in P:Ee.call(P,He)))return!1}var Qe=fe.get($);if(Qe&&fe.get(P))return Qe==P;var We=!0;fe.set($,P),fe.set(P,$);for(var Ut=Se;++ct<Fe;){He=Ne[ct];var Rt=$[He],rn=P[He];if(ee)var ja=Se?ee(rn,Rt,He,P,$,fe):ee(Rt,rn,He,$,P,fe);if(!(ja===void 0?Rt===rn||we(Rt,rn,H,ee,fe):ja)){We=!1;break}Ut||(Ut=He=="constructor")}if(We&&!Ut){var Ar=$.constructor,Dr=P.constructor;Ar!=Dr&&"constructor"in $&&"constructor"in P&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof Dr=="function"&&Dr instanceof Dr)&&(We=!1)}return fe.delete($),fe.delete(P),We}function nn($){return zn($,Wn,Ii)}function vt($,P){var H=$.__data__;return Mi(P)?H[typeof P=="string"?"string":"hash"]:H.map}function Mt($,P){var H=le($,P);return Ti(H)?H:void 0}function Lt($){var P=Ee.call($,Ze),H=$[Ze];try{$[Ze]=void 0;var ee=!0}catch{}var we=Jt.call($);return ee&&(P?$[Ze]=H:delete $[Ze]),we}var Ii=Ct?function($){return $==null?[]:($=Object($),Oe(Ct($),function(P){return kt.call($,P)}))}:Vi,St=tn;(Qt&&St(new Qt(new ArrayBuffer(1)))!=O||B&&St(new B)!=m||j&&St(j.resolve())!=w||G&&St(new G)!=T||X&&St(new X)!=E)&&(St=function($){var P=tn($),H=P==g?$.constructor:void 0,ee=H?ot(H):"";if(ee)switch(ee){case se:return O;case ye:return m;case ue:return w;case Ce:return T;case de:return E}return P});function Bi($,P){return P=P??s,!!P&&(typeof $=="number"||U.test($))&&$>-1&&$%1==0&&$<P}function Mi($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function Li($){return!!rt&&rt in $}function Ri($){var P=$&&$.constructor,H=typeof P=="function"&&P.prototype||qe;return $===H}function Or($){return Jt.call($)}function ot($){if($!=null){try{return wt.call($)}catch{}try{return $+""}catch{}}return""}function Er($,P){return $===P||$!==$&&P!==P}var Sr=kr(function(){return arguments}())?kr:function($){return xt($)&&Ee.call($,"callee")&&!kt.call($,"callee")},mn=Array.isArray;function Kn($){return $!=null&&Gn($.length)&&!xr($)}var gn=it||qi;function ji($,P){return Cr($,P)}function xr($){if(!Tr($))return!1;var P=tn($);return P==h||P==v||P==d||P==b}function Gn($){return typeof $=="number"&&$>-1&&$%1==0&&$<=s}function Tr($){var P=typeof $;return $!=null&&(P=="object"||P=="function")}function xt($){return $!=null&&typeof $=="object"}var Nr=ke?te(ke):Ni;function Wn($){return Kn($)?Si($):Ai($)}function Vi(){return[]}function qi(){return!1}t.exports=ji}(yr,yr.exports);var Ta=yr.exports,mi={},Na=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mi,"__esModule",{value:!0});var L1=Na(xa),R1=Na(Ta),gi;(function(t){function n(i,s,l){i===void 0&&(i={}),s===void 0&&(s={}),typeof i!="object"&&(i={}),typeof s!="object"&&(s={});var u=L1.default(s);l||(u=Object.keys(u).reduce(function(p,f){return u[f]!=null&&(p[f]=u[f]),p},{}));for(var d in i)i[d]!==void 0&&s[d]===void 0&&(u[d]=i[d]);return Object.keys(u).length>0?u:void 0}t.compose=n;function e(i,s){i===void 0&&(i={}),s===void 0&&(s={}),typeof i!="object"&&(i={}),typeof s!="object"&&(s={});var l=Object.keys(i).concat(Object.keys(s)).reduce(function(u,d){return R1.default(i[d],s[d])||(u[d]=s[d]===void 0?null:s[d]),u},{});return Object.keys(l).length>0?l:void 0}t.diff=e;function o(i,s){i===void 0&&(i={}),s===void 0&&(s={}),i=i||{};var l=Object.keys(s).reduce(function(u,d){return s[d]!==i[d]&&i[d]!==void 0&&(u[d]=s[d]),u},{});return Object.keys(i).reduce(function(u,d){return i[d]!==s[d]&&s[d]===void 0&&(u[d]=null),u},l)}t.invert=o;function a(i,s,l){if(l===void 0&&(l=!1),typeof i!="object")return s;if(typeof s=="object"){if(!l)return s;var u=Object.keys(s).reduce(function(d,p){return i[p]===void 0&&(d[p]=s[p]),d},{});return Object.keys(u).length>0?u:void 0}}t.transform=a})(gi||(gi={})),mi.default=gi;var br={},vr={},Aa;function j1(){if(Aa)return vr;Aa=1;var t=je&&je.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(vr,"__esModule",{value:!0});var n=t(Pa()),e=function(){function o(a){this.ops=a,this.index=0,this.offset=0}return o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(a){a||(a=1/0);var i=this.ops[this.index];if(i){var s=this.offset,l=n.default.length(i);if(a>=l-s?(a=l-s,this.index+=1,this.offset=0):this.offset+=a,typeof i.delete=="number")return{delete:a};var u={};return i.attributes&&(u.attributes=i.attributes),typeof i.retain=="number"?u.retain=a:typeof i.insert=="string"?u.insert=i.insert.substr(s,a):u.insert=i.insert,u}else return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var a=this.offset,i=this.index,s=this.next(),l=this.ops.slice(this.index);return this.offset=a,this.index=i,[s].concat(l)}else return[]},o}();return vr.default=e,vr}var Da;function Pa(){if(Da)return br;Da=1;var t=je&&je.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(br,"__esModule",{value:!0});var n=t(j1()),e;return function(o){function a(s){return new n.default(s)}o.iterator=a;function i(s){return typeof s.delete=="number"?s.delete:typeof s.retain=="number"?s.retain:typeof s.insert=="string"?s.insert.length:1}o.length=i}(e||(e={})),br.default=e,br}var Pn=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_r=Pn(M1),V1=Pn(xa),yi=Pn(Ta),In=Pn(mi),Ke=Pn(Pa()),q1=String.fromCharCode(0),F1=function(){function t(n){Array.isArray(n)?this.ops=n:n!=null&&Array.isArray(n.ops)?this.ops=n.ops:this.ops=[]}return t.prototype.insert=function(n,e){var o={};return typeof n=="string"&&n.length===0?this:(o.insert=n,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(o.attributes=e),this.push(o))},t.prototype.delete=function(n){return n<=0?this:this.push({delete:n})},t.prototype.retain=function(n,e){if(n<=0)return this;var o={retain:n};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(o.attributes=e),this.push(o)},t.prototype.push=function(n){var e=this.ops.length,o=this.ops[e-1];if(n=V1.default(n),typeof o=="object"){if(typeof n.delete=="number"&&typeof o.delete=="number")return this.ops[e-1]={delete:o.delete+n.delete},this;if(typeof o.delete=="number"&&n.insert!=null&&(e-=1,o=this.ops[e-1],typeof o!="object"))return this.ops.unshift(n),this;if(yi.default(n.attributes,o.attributes)){if(typeof n.insert=="string"&&typeof o.insert=="string")return this.ops[e-1]={insert:o.insert+n.insert},typeof n.attributes=="object"&&(this.ops[e-1].attributes=n.attributes),this;if(typeof n.retain=="number"&&typeof o.retain=="number")return this.ops[e-1]={retain:o.retain+n.retain},typeof n.attributes=="object"&&(this.ops[e-1].attributes=n.attributes),this}}return e===this.ops.length?this.ops.push(n):this.ops.splice(e,0,n),this},t.prototype.chop=function(){var n=this.ops[this.ops.length-1];return n&&n.retain&&!n.attributes&&this.ops.pop(),this},t.prototype.filter=function(n){return this.ops.filter(n)},t.prototype.forEach=function(n){this.ops.forEach(n)},t.prototype.map=function(n){return this.ops.map(n)},t.prototype.partition=function(n){var e=[],o=[];return this.forEach(function(a){var i=n(a)?e:o;i.push(a)}),[e,o]},t.prototype.reduce=function(n,e){return this.ops.reduce(n,e)},t.prototype.changeLength=function(){return this.reduce(function(n,e){return e.insert?n+Ke.default.length(e):e.delete?n-e.delete:n},0)},t.prototype.length=function(){return this.reduce(function(n,e){return n+Ke.default.length(e)},0)},t.prototype.slice=function(n,e){n===void 0&&(n=0),e===void 0&&(e=1/0);for(var o=[],a=Ke.default.iterator(this.ops),i=0;i<e&&a.hasNext();){var s=void 0;i<n?s=a.next(n-i):(s=a.next(e-i),o.push(s)),i+=Ke.default.length(s)}return new t(o)},t.prototype.compose=function(n){var e=Ke.default.iterator(this.ops),o=Ke.default.iterator(n.ops),a=[],i=o.peek();if(i!=null&&typeof i.retain=="number"&&i.attributes==null){for(var s=i.retain;e.peekType()==="insert"&&e.peekLength()<=s;)s-=e.peekLength(),a.push(e.next());i.retain-s>0&&o.next(i.retain-s)}for(var l=new t(a);e.hasNext()||o.hasNext();)if(o.peekType()==="insert")l.push(o.next());else if(e.peekType()==="delete")l.push(e.next());else{var u=Math.min(e.peekLength(),o.peekLength()),d=e.next(u),p=o.next(u);if(typeof p.retain=="number"){var f={};typeof d.retain=="number"?f.retain=u:f.insert=d.insert;var c=In.default.compose(d.attributes,p.attributes,typeof d.retain=="number");if(c&&(f.attributes=c),l.push(f),!o.hasNext()&&yi.default(l.ops[l.ops.length-1],f)){var h=new t(e.rest());return l.concat(h).chop()}}else typeof p.delete=="number"&&typeof d.retain=="number"&&l.push(p)}return l.chop()},t.prototype.concat=function(n){var e=new t(this.ops.slice());return n.ops.length>0&&(e.push(n.ops[0]),e.ops=e.ops.concat(n.ops.slice(1))),e},t.prototype.diff=function(n,e){if(this.ops===n.ops)return new t;var o=[this,n].map(function(u){return u.map(function(d){if(d.insert!=null)return typeof d.insert=="string"?d.insert:q1;var p=u===n?"on":"with";throw new Error("diff() called "+p+" non-document")}).join("")}),a=new t,i=_r.default(o[0],o[1],e),s=Ke.default.iterator(this.ops),l=Ke.default.iterator(n.ops);return i.forEach(function(u){for(var d=u[1].length;d>0;){var p=0;switch(u[0]){case _r.default.INSERT:p=Math.min(l.peekLength(),d),a.push(l.next(p));break;case _r.default.DELETE:p=Math.min(d,s.peekLength()),s.next(p),a.delete(p);break;case _r.default.EQUAL:p=Math.min(s.peekLength(),l.peekLength(),d);var f=s.next(p),c=l.next(p);yi.default(f.insert,c.insert)?a.retain(p,In.default.diff(f.attributes,c.attributes)):a.push(c).delete(p);break}d-=p}}),a.chop()},t.prototype.eachLine=function(n,e){e===void 0&&(e=`
132
+ `);for(var o=Ke.default.iterator(this.ops),a=new t,i=0;o.hasNext();){if(o.peekType()!=="insert")return;var s=o.peek(),l=Ke.default.length(s)-o.peekLength(),u=typeof s.insert=="string"?s.insert.indexOf(e,l)-l:-1;if(u<0)a.push(o.next());else if(u>0)a.push(o.next(u));else{if(n(a,o.next(1).attributes||{},i)===!1)return;i+=1,a=new t}}a.length()>0&&n(a,{},i)},t.prototype.invert=function(n){var e=new t;return this.reduce(function(o,a){if(a.insert)e.delete(Ke.default.length(a));else{if(a.retain&&a.attributes==null)return e.retain(a.retain),o+a.retain;if(a.delete||a.retain&&a.attributes){var i=a.delete||a.retain,s=n.slice(o,o+i);return s.forEach(function(l){a.delete?e.push(l):a.retain&&a.attributes&&e.retain(Ke.default.length(l),In.default.invert(a.attributes,l.attributes))}),o+i}}return o},0),e.chop()},t.prototype.transform=function(n,e){if(e===void 0&&(e=!1),e=!!e,typeof n=="number")return this.transformPosition(n,e);for(var o=n,a=Ke.default.iterator(this.ops),i=Ke.default.iterator(o.ops),s=new t;a.hasNext()||i.hasNext();)if(a.peekType()==="insert"&&(e||i.peekType()!=="insert"))s.retain(Ke.default.length(a.next()));else if(i.peekType()==="insert")s.push(i.next());else{var l=Math.min(a.peekLength(),i.peekLength()),u=a.next(l),d=i.next(l);if(u.delete)continue;d.delete?s.push(d):s.retain(l,In.default.transform(u.attributes,d.attributes,e))}return s.chop()},t.prototype.transformPosition=function(n,e){e===void 0&&(e=!1),e=!!e;for(var o=Ke.default.iterator(this.ops),a=0;o.hasNext()&&a<=n;){var i=o.peekLength(),s=o.peekType();if(o.next(),s==="delete"){n-=Math.min(i,n-a);continue}else s==="insert"&&(a<n||!e)&&(n+=i);a+=i}return n},t.Op=Ke.default,t.AttributeMap=In.default,t}(),H1=F1;const z1=Cn(H1);/*!
133
133
  * VueQuill @vueup/vue-quill v1.2.0
134
134
  * https://vueup.github.io/vue-quill/
135
135
  *
@@ -139,38 +139,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
139
  * Copyright (c) 2023 Ahmad Luthfi Masruri
140
140
  * Released under the MIT license
141
141
  * Date: 2023-05-12T08:44:03.742Z
142
- */const Ia={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},K1=r.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:t=>["delta","html","text"].includes(t)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:t=>["snow","bubble",""].includes(t)},toolbar:{type:[String,Array,Object],required:!1,validator:t=>typeof t=="string"&&t!==""?t.charAt(0)==="#"?!0:Object.keys(Ia).indexOf(t)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(t,n)=>{r.onMounted(()=>{i()}),r.onBeforeUnmount(()=>{e=null});let e,o;const a=r.ref(),i=()=>{var C;if(a.value){if(o=s(),t.modules)if(Array.isArray(t.modules))for(const O of t.modules)xe.register(`modules/${O.name}`,O.module);else xe.register(`modules/${t.modules.name}`,t.modules.module);e=new xe(a.value,o),w(t.content),e.on("text-change",f),e.on("selection-change",h),e.on("editor-change",v),t.theme!=="bubble"&&a.value.classList.remove("ql-bubble"),t.theme!=="snow"&&a.value.classList.remove("ql-snow"),(C=e.getModule("toolbar"))===null||C===void 0||C.container.addEventListener("mousedown",O=>{O.preventDefault()}),n.emit("ready",e)}},s=()=>{const C={};if(t.theme!==""&&(C.theme=t.theme),t.readOnly&&(C.readOnly=t.readOnly),t.placeholder&&(C.placeholder=t.placeholder),t.toolbar&&t.toolbar!==""&&(C.modules={toolbar:(()=>{if(typeof t.toolbar=="object")return t.toolbar;if(typeof t.toolbar=="string")return t.toolbar.charAt(0)==="#"?t.toolbar:Ia[t.toolbar]})()}),t.modules){const O=(()=>{var N,R;const q={};if(Array.isArray(t.modules))for(const W of t.modules)q[W.name]=(N=W.options)!==null&&N!==void 0?N:{};else q[t.modules.name]=(R=t.modules.options)!==null&&R!==void 0?R:{};return q})();C.modules=Object.assign({},C.modules,O)}return Object.assign({},t.globalOptions,t.options,C)},l=C=>typeof C=="object"&&C?C.slice():C,u=C=>Object.values(C.ops).some(O=>!O.retain||Object.keys(O).length!==1);let d;const p=C=>{if(typeof d==typeof C){if(C===d)return!0;if(typeof C=="object"&&C&&typeof d=="object"&&d)return!u(d.diff(C))}return!1},f=(C,O,N)=>{d=l(g()),p(t.content)||n.emit("update:content",d),n.emit("textChange",{delta:C,oldContents:O,source:N})},c=r.ref(),h=(C,O,N)=>{c.value=!!(e!=null&&e.hasFocus()),n.emit("selectionChange",{range:C,oldRange:O,source:N})};r.watch(c,C=>{C?n.emit("focus",a):n.emit("blur",a)});const v=(...C)=>{C[0]==="text-change"&&n.emit("editorChange",{name:C[0],delta:C[1],oldContents:C[2],source:C[3]}),C[0]==="selection-change"&&n.emit("editorChange",{name:C[0],range:C[1],oldRange:C[2],source:C[3]})},m=()=>a.value,_=()=>{var C;return(C=e==null?void 0:e.getModule("toolbar"))===null||C===void 0?void 0:C.container},y=()=>{if(e)return e;throw`The quill editor hasn't been instantiated yet,
142
+ */const Ia={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},U1=r.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:t=>["delta","html","text"].includes(t)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:t=>["snow","bubble",""].includes(t)},toolbar:{type:[String,Array,Object],required:!1,validator:t=>typeof t=="string"&&t!==""?t.charAt(0)==="#"?!0:Object.keys(Ia).indexOf(t)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(t,n)=>{r.onMounted(()=>{i()}),r.onBeforeUnmount(()=>{e=null});let e,o;const a=r.ref(),i=()=>{var C;if(a.value){if(o=s(),t.modules)if(Array.isArray(t.modules))for(const O of t.modules)xe.register(`modules/${O.name}`,O.module);else xe.register(`modules/${t.modules.name}`,t.modules.module);e=new xe(a.value,o),w(t.content),e.on("text-change",f),e.on("selection-change",h),e.on("editor-change",v),t.theme!=="bubble"&&a.value.classList.remove("ql-bubble"),t.theme!=="snow"&&a.value.classList.remove("ql-snow"),(C=e.getModule("toolbar"))===null||C===void 0||C.container.addEventListener("mousedown",O=>{O.preventDefault()}),n.emit("ready",e)}},s=()=>{const C={};if(t.theme!==""&&(C.theme=t.theme),t.readOnly&&(C.readOnly=t.readOnly),t.placeholder&&(C.placeholder=t.placeholder),t.toolbar&&t.toolbar!==""&&(C.modules={toolbar:(()=>{if(typeof t.toolbar=="object")return t.toolbar;if(typeof t.toolbar=="string")return t.toolbar.charAt(0)==="#"?t.toolbar:Ia[t.toolbar]})()}),t.modules){const O=(()=>{var N,R;const q={};if(Array.isArray(t.modules))for(const W of t.modules)q[W.name]=(N=W.options)!==null&&N!==void 0?N:{};else q[t.modules.name]=(R=t.modules.options)!==null&&R!==void 0?R:{};return q})();C.modules=Object.assign({},C.modules,O)}return Object.assign({},t.globalOptions,t.options,C)},l=C=>typeof C=="object"&&C?C.slice():C,u=C=>Object.values(C.ops).some(O=>!O.retain||Object.keys(O).length!==1);let d;const p=C=>{if(typeof d==typeof C){if(C===d)return!0;if(typeof C=="object"&&C&&typeof d=="object"&&d)return!u(d.diff(C))}return!1},f=(C,O,N)=>{d=l(g()),p(t.content)||n.emit("update:content",d),n.emit("textChange",{delta:C,oldContents:O,source:N})},c=r.ref(),h=(C,O,N)=>{c.value=!!(e!=null&&e.hasFocus()),n.emit("selectionChange",{range:C,oldRange:O,source:N})};r.watch(c,C=>{C?n.emit("focus",a):n.emit("blur",a)});const v=(...C)=>{C[0]==="text-change"&&n.emit("editorChange",{name:C[0],delta:C[1],oldContents:C[2],source:C[3]}),C[0]==="selection-change"&&n.emit("editorChange",{name:C[0],range:C[1],oldRange:C[2],source:C[3]})},m=()=>a.value,_=()=>{var C;return(C=e==null?void 0:e.getModule("toolbar"))===null||C===void 0?void 0:C.container},y=()=>{if(e)return e;throw`The quill editor hasn't been instantiated yet,
143
143
  make sure to call this method when the editor ready
144
- or use v-on:ready="onReady(quill)" event instead.`},g=(C,O)=>t.contentType==="html"?T():t.contentType==="text"?b(C,O):e==null?void 0:e.getContents(C,O),w=(C,O="api")=>{const N=C||(t.contentType==="delta"?new U1:"");t.contentType==="html"?S(N):t.contentType==="text"?k(N,O):e==null||e.setContents(N,O),d=l(N)},b=(C,O)=>{var N;return(N=e==null?void 0:e.getText(C,O))!==null&&N!==void 0?N:""},k=(C,O="api")=>{e==null||e.setText(C,O)},T=()=>{var C;return(C=e==null?void 0:e.root.innerHTML)!==null&&C!==void 0?C:""},S=C=>{e&&(e.root.innerHTML=C)},x=(C,O="api")=>{const N=e==null?void 0:e.clipboard.convert(C);N&&(e==null||e.setContents(N,O))},M=()=>{e==null||e.focus()},E=()=>{r.nextTick(()=>{var C;!n.slots.toolbar&&e&&((C=e.getModule("toolbar"))===null||C===void 0||C.container.remove()),i()})};return r.watch(()=>t.content,C=>{if(!e||!C||p(C))return;const O=e.getSelection();O&&r.nextTick(()=>e==null?void 0:e.setSelection(O)),w(C)},{deep:!0}),r.watch(()=>t.enable,C=>{e&&e.enable(C)}),{editor:a,getEditor:m,getToolbar:_,getQuill:y,getContents:g,setContents:w,getHTML:T,setHTML:S,pasteHTML:x,focus:M,getText:b,setText:k,reinit:E}},render(){var t,n;return[(n=(t=this.$slots).toolbar)===null||n===void 0?void 0:n.call(t),r.h("div",{ref:"editor",...this.$attrs})]}}),G1=xe.import("formats/list"),W1=xe.import("formats/list/item"),Y1=xe.import("parchment");class $r extends W1{format(n,e){n===Zt.blotName&&!e?this.replaceWith(Y1.create(this.statics.scope)):super.format(n,e)}clone(){const n=super.clone();return n.domNode.classList.remove("checked"),n}}$r.blotName="alphabet-list-item",$r.tagName="LI";class Zt extends G1{static create(){const n=super.create("bullet");return n.setAttribute("type","a"),n}static formats(){return"bullet"}}Zt.blotName="alphabet-list",Zt.tagName="OL",Zt.className="alphabet-list",Zt.defaultChild="alphabet-list-item",Zt.allowedChildren=[$r];function Z1(t){return new DOMParser().parseFromString(t,"text/html").body.textContent||""}var Ba={exports:{}};(function(t,n){(function(o,a){t.exports=a()})(typeof self<"u"?self:je,function(){return function(e){var o={};function a(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=o,a.d=function(i,s,l){a.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:l})},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=0)}([function(e,o,a){function i(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0});var s=a(1);function l(u,d){var p=u.import("parchment"),f=s.default(u);f.className=d&&d.className||"ql-placeholder-content",u.register(f);var c=function h(v,m){var _=this;i(this,h),this.quill=v,this.onTextChange=function(y,g,w){if(w===u.sources.USER){var b=_.quill.getContents(),k=b.diff(g),T=k.ops.filter(function(S){return S.insert&&S.insert.placeholder&&S.insert.placeholder.required}).length;T&&_.quill.updateContents(k,u.sources.SILENT)}},this.onClick=function(y){var g=p.find(y.target.parentNode);if(g instanceof f){var w=_.quill.getIndex(g);_.quill.setSelection(w,g.length(),u.sources.USER)}},this.toolbarHandler=function(y){var g=_.quill.getSelection(),w=_.placeholders.filter(function(b){return b.id===y})[0];if(!w)throw new Error("Missing placeholder for "+y);_.quill.deleteText(g.index,g.length),_.quill.insertEmbed(g.index,"placeholder",w,u.sources.USER),_.quill.setSelection(g.index+1,0)},this.placeholders=m.placeholders,f.delimiters=m.delimiters||["{","}"],this.quill.getModule("toolbar").addHandler("placeholder",this.toolbarHandler),this.quill.root.addEventListener("click",this.onClick),this.quill.on("text-change",this.onTextChange)};return c}o.default=l},function(e,o,a){var i=function(){function f(c,h){for(var v=0;v<h.length;v++){var m=h[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}return function(c,h,v){return h&&f(c.prototype,h),v&&f(c,v),c}}(),s=function f(c,h,v){c===null&&(c=Function.prototype);var m=Object.getOwnPropertyDescriptor(c,h);if(m===void 0){var _=Object.getPrototypeOf(c);return _===null?void 0:f(_,h,v)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(v)}};function l(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function u(f,c){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:f}function d(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(f,c):f.__proto__=c)}Object.defineProperty(o,"__esModule",{value:!0});function p(f){var c=f.import("blots/embed"),h=function(v){d(m,v);function m(){return l(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"length",value:function(){return 1}},{key:"deleteAt",value:function(y,g){this.domNode.dataset.required||s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,y,g)}}],[{key:"create",value:function(y){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y);y.required&&g.setAttribute("data-required","true"),g.setAttribute("data-id",y.id),g.setAttribute("data-label",y.label),g.setAttribute("spellcheck","false");var w=m.delimiters,b=typeof w=="string"?""+w+y.label+w:""+w[0]+y.label+(w[1]||w[0]),k=document.createTextNode(b);if(f.version<"1.3"){var T=document.createElement("span");T.setAttribute("contenteditable","false"),T.appendChild(k),g.appendChild(T)}else g.appendChild(k);return g}},{key:"value",value:function(y){return y.dataset}}]),m}(c);return h.blotName="placeholder",h.tagName="span",h}o.default=p}])})})(Ba);var J1=Ba.exports;const X1=Cn(J1),qp="",Q1=`
144
+ or use v-on:ready="onReady(quill)" event instead.`},g=(C,O)=>t.contentType==="html"?T():t.contentType==="text"?b(C,O):e==null?void 0:e.getContents(C,O),w=(C,O="api")=>{const N=C||(t.contentType==="delta"?new z1:"");t.contentType==="html"?S(N):t.contentType==="text"?k(N,O):e==null||e.setContents(N,O),d=l(N)},b=(C,O)=>{var N;return(N=e==null?void 0:e.getText(C,O))!==null&&N!==void 0?N:""},k=(C,O="api")=>{e==null||e.setText(C,O)},T=()=>{var C;return(C=e==null?void 0:e.root.innerHTML)!==null&&C!==void 0?C:""},S=C=>{e&&(e.root.innerHTML=C)},x=(C,O="api")=>{const N=e==null?void 0:e.clipboard.convert(C);N&&(e==null||e.setContents(N,O))},M=()=>{e==null||e.focus()},E=()=>{r.nextTick(()=>{var C;!n.slots.toolbar&&e&&((C=e.getModule("toolbar"))===null||C===void 0||C.container.remove()),i()})};return r.watch(()=>t.content,C=>{if(!e||!C||p(C))return;const O=e.getSelection();O&&r.nextTick(()=>e==null?void 0:e.setSelection(O)),w(C)},{deep:!0}),r.watch(()=>t.enable,C=>{e&&e.enable(C)}),{editor:a,getEditor:m,getToolbar:_,getQuill:y,getContents:g,setContents:w,getHTML:T,setHTML:S,pasteHTML:x,focus:M,getText:b,setText:k,reinit:E}},render(){var t,n;return[(n=(t=this.$slots).toolbar)===null||n===void 0?void 0:n.call(t),r.h("div",{ref:"editor",...this.$attrs})]}}),K1=xe.import("formats/list"),G1=xe.import("formats/list/item"),W1=xe.import("parchment");class $r extends G1{format(n,e){n===Zt.blotName&&!e?this.replaceWith(W1.create(this.statics.scope)):super.format(n,e)}clone(){const n=super.clone();return n.domNode.classList.remove("checked"),n}}$r.blotName="alphabet-list-item",$r.tagName="LI";class Zt extends K1{static create(){const n=super.create("bullet");return n.setAttribute("type","a"),n}static formats(){return"bullet"}}Zt.blotName="alphabet-list",Zt.tagName="OL",Zt.className="alphabet-list",Zt.defaultChild="alphabet-list-item",Zt.allowedChildren=[$r];function Y1(t){return new DOMParser().parseFromString(t,"text/html").body.textContent||""}var Ba={exports:{}};(function(t,n){(function(o,a){t.exports=a()})(typeof self<"u"?self:je,function(){return function(e){var o={};function a(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=o,a.d=function(i,s,l){a.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:l})},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=0)}([function(e,o,a){function i(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0});var s=a(1);function l(u,d){var p=u.import("parchment"),f=s.default(u);f.className=d&&d.className||"ql-placeholder-content",u.register(f);var c=function h(v,m){var _=this;i(this,h),this.quill=v,this.onTextChange=function(y,g,w){if(w===u.sources.USER){var b=_.quill.getContents(),k=b.diff(g),T=k.ops.filter(function(S){return S.insert&&S.insert.placeholder&&S.insert.placeholder.required}).length;T&&_.quill.updateContents(k,u.sources.SILENT)}},this.onClick=function(y){var g=p.find(y.target.parentNode);if(g instanceof f){var w=_.quill.getIndex(g);_.quill.setSelection(w,g.length(),u.sources.USER)}},this.toolbarHandler=function(y){var g=_.quill.getSelection(),w=_.placeholders.filter(function(b){return b.id===y})[0];if(!w)throw new Error("Missing placeholder for "+y);_.quill.deleteText(g.index,g.length),_.quill.insertEmbed(g.index,"placeholder",w,u.sources.USER),_.quill.setSelection(g.index+1,0)},this.placeholders=m.placeholders,f.delimiters=m.delimiters||["{","}"],this.quill.getModule("toolbar").addHandler("placeholder",this.toolbarHandler),this.quill.root.addEventListener("click",this.onClick),this.quill.on("text-change",this.onTextChange)};return c}o.default=l},function(e,o,a){var i=function(){function f(c,h){for(var v=0;v<h.length;v++){var m=h[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}return function(c,h,v){return h&&f(c.prototype,h),v&&f(c,v),c}}(),s=function f(c,h,v){c===null&&(c=Function.prototype);var m=Object.getOwnPropertyDescriptor(c,h);if(m===void 0){var _=Object.getPrototypeOf(c);return _===null?void 0:f(_,h,v)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(v)}};function l(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function u(f,c){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:f}function d(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(f,c):f.__proto__=c)}Object.defineProperty(o,"__esModule",{value:!0});function p(f){var c=f.import("blots/embed"),h=function(v){d(m,v);function m(){return l(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"length",value:function(){return 1}},{key:"deleteAt",value:function(y,g){this.domNode.dataset.required||s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,y,g)}}],[{key:"create",value:function(y){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y);y.required&&g.setAttribute("data-required","true"),g.setAttribute("data-id",y.id),g.setAttribute("data-label",y.label),g.setAttribute("spellcheck","false");var w=m.delimiters,b=typeof w=="string"?""+w+y.label+w:""+w[0]+y.label+(w[1]||w[0]),k=document.createTextNode(b);if(f.version<"1.3"){var T=document.createElement("span");T.setAttribute("contenteditable","false"),T.appendChild(k),g.appendChild(T)}else g.appendChild(k);return g}},{key:"value",value:function(y){return y.dataset}}]),m}(c);return h.blotName="placeholder",h.tagName="span",h}o.default=p}])})})(Ba);var Z1=Ba.exports;const J1=Cn(Z1),Vp="",X1=`
145
145
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
146
146
  <path d="M6.31836 14.9023V5.09961H9.88672C10.9805 5.09961 11.8213 5.30013 12.4092 5.70117C12.9971 6.10221 13.291 6.66732 13.291 7.39648C13.291 7.92513 13.111 8.3877 12.751 8.78418C12.3955 9.18066 11.9398 9.45638 11.3838 9.61133V9.63867C12.0811 9.72526 12.637 9.98275 13.0518 10.4111C13.471 10.8395 13.6807 11.3613 13.6807 11.9766C13.6807 12.8743 13.3594 13.5876 12.7168 14.1162C12.0742 14.6403 11.1969 14.9023 10.085 14.9023H6.31836ZM8.52637 6.72656V9.05078H9.49707C9.9528 9.05078 10.3105 8.94141 10.5703 8.72266C10.8346 8.49935 10.9668 8.19401 10.9668 7.80664C10.9668 7.08659 10.429 6.72656 9.35352 6.72656H8.52637ZM8.52637 10.6914V13.2754H9.72266C10.2331 13.2754 10.6318 13.1569 10.9189 12.9199C11.2106 12.6829 11.3564 12.3594 11.3564 11.9492C11.3564 11.5573 11.2129 11.2497 10.9258 11.0264C10.6432 10.8031 10.2467 10.6914 9.73633 10.6914H8.52637Z" class="fill" fill="#1A1A1A"/>
147
147
  </svg>
148
- `,e0=`
148
+ `,Q1=`
149
149
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
150
150
  <path d="M9.54492 14.9023H8.36914L10.4404 5.09961H11.6299L9.54492 14.9023Z" class="fill" fill="#1A1A1A"/>
151
151
  </svg>
152
- `,t0=`
152
+ `,e0=`
153
153
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
154
154
  <path d="M13.6475 10.7197C13.6475 13.4723 12.4056 14.8486 9.92188 14.8486C7.54297 14.8486 6.35352 13.5247 6.35352 10.877V4.88184H7.50195V10.8018C7.50195 12.8115 8.34961 13.8164 10.0449 13.8164C11.681 13.8164 12.499 12.8457 12.499 10.9043V4.88184H13.6475V10.7197Z" class="fill" fill="#1A1A1A"/>
155
155
  <path d="M5.19141 16.3047H14.8096V17.1182H5.19141V16.3047Z" class="fill" fill="#1A1A1A"/>
156
156
  </svg>
157
- `,n0=`
157
+ `,t0=`
158
158
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
159
159
  <path d="M14.6668 9.99805L5.33594 9.99805" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
160
160
  <path d="M12.9158 5.33398H8.83776C8.25237 5.33398 6.03696 5.3923 6.50351 7.9583" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
161
161
  <path d="M6.43941 14.6624H10.5174C11.1028 14.6624 14.0882 14.953 12.3364 10.2886" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
162
162
  </svg>
163
- `,r0=`
163
+ `,n0=`
164
164
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
165
165
  <path d="M6.5 11H4.5C3.70435 11 2.94129 10.6839 2.37868 10.1213C1.81607 9.55871 1.5 8.79565 1.5 8C1.5 7.20435 1.81607 6.44129 2.37868 5.87868C2.94129 5.31607 3.70435 5 4.5 5H6.5M9.5 5H11.5C12.2956 5 13.0587 5.31607 13.6213 5.87868C14.1839 6.44129 14.5 7.20435 14.5 8C14.5 8.79565 14.1839 9.55871 13.6213 10.1213C13.0587 10.6839 12.2956 11 11.5 11H9.5M5.10281 8H10.9597" class="stroke" stroke="#1A1A1A" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
166
166
  </svg>
167
167
 
168
- `,i0=`
168
+ `,r0=`
169
169
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
170
170
  <path d="M5 11.5L1 8L5 4.5M11 11.5L15 8L11 4.5M9.5 3L6.5 13" class="stroke" stroke="#1A1A1A" stroke-linecap="round" stroke-linejoin="round"/>
171
171
  </svg>
172
172
 
173
- `,o0=`
173
+ `,i0=`
174
174
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
175
175
  <rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
176
176
  <rect x="3" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
@@ -178,14 +178,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
178
178
  <rect x="3" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
179
179
  </svg>
180
180
 
181
- `,a0=`
181
+ `,o0=`
182
182
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
183
183
  <rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
184
184
  <rect x="5" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
185
185
  <rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
186
186
  <rect x="5" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
187
187
  </svg>
188
- `,l0=`
188
+ `,a0=`
189
189
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
190
190
  <rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
191
191
  <rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
@@ -193,14 +193,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
193
193
  <rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
194
194
  </svg>
195
195
 
196
- `,s0=`
196
+ `,l0=`
197
197
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
198
198
  <rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
199
199
  <rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
200
200
  <rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
201
201
  <rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
202
202
  </svg>
203
- `,c0=`
203
+ `,s0=`
204
204
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
205
205
  <path d="M3.625 3.63672V6.5H3.00977V4.33203C2.97591 4.36198 2.93555 4.39062 2.88867 4.41797C2.8431 4.44401 2.79427 4.4681 2.74219 4.49023C2.6901 4.51107 2.63607 4.5293 2.58008 4.54492C2.52409 4.55924 2.46875 4.56966 2.41406 4.57617V4.05664C2.57422 4.00977 2.72526 3.94987 2.86719 3.87695C3.00911 3.80404 3.13737 3.72396 3.25195 3.63672H3.625Z" class="fill" fill="#1A1A1A"/>
206
206
  <path d="M2.83789 10.9883H4.02539V11.5H2.16211V11.2891C2.16211 11.1458 2.1862 11.0176 2.23438 10.9043C2.28255 10.7897 2.3431 10.6875 2.41602 10.5977C2.48893 10.5065 2.56836 10.4264 2.6543 10.3574C2.74154 10.2871 2.82422 10.224 2.90234 10.168C2.98438 10.1094 3.05599 10.0534 3.11719 10C3.17969 9.94661 3.23177 9.89388 3.27344 9.8418C3.31641 9.78841 3.34831 9.73503 3.36914 9.68164C3.38997 9.62695 3.40039 9.56901 3.40039 9.50781C3.40039 9.38802 3.36654 9.29753 3.29883 9.23633C3.23112 9.17513 3.1276 9.14453 2.98828 9.14453C2.7474 9.14453 2.51693 9.24023 2.29688 9.43164V8.88867C2.54036 8.73112 2.8151 8.65234 3.12109 8.65234C3.26302 8.65234 3.38997 8.67122 3.50195 8.70898C3.61523 8.74544 3.71094 8.79818 3.78906 8.86719C3.86719 8.9362 3.92643 9.02018 3.9668 9.11914C4.00846 9.2168 4.0293 9.32617 4.0293 9.44727C4.0293 9.57617 4.00911 9.69076 3.96875 9.79102C3.92969 9.89128 3.87695 9.98242 3.81055 10.0645C3.74544 10.1465 3.66992 10.222 3.58398 10.291C3.49805 10.3587 3.40885 10.4245 3.31641 10.4883C3.25391 10.5326 3.19336 10.5768 3.13477 10.6211C3.07747 10.6641 3.02669 10.707 2.98242 10.75C2.93815 10.7917 2.90299 10.8327 2.87695 10.873C2.85091 10.9134 2.83789 10.9518 2.83789 10.9883Z" class="fill" fill="#1A1A1A"/>
@@ -209,7 +209,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
209
209
  <rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
210
210
  <rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
211
211
  </svg>
212
- `,d0=`
212
+ `,c0=`
213
213
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
214
214
  <rect x="6.5" y="4" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
215
215
  <rect x="6.5" y="9" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
@@ -218,7 +218,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
218
218
  <circle cx="3.5" cy="10" r="1" class="fill" fill="#1A1A1A"/>
219
219
  <circle cx="3.5" cy="5" r="1" class="fill" fill="#1A1A1A"/>
220
220
  </svg>
221
- `,u0=`
221
+ `,d0=`
222
222
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
223
223
  <path d="M3.92383 6.5H3.33984V6.21289H3.33203C3.19792 6.43685 2.99935 6.54883 2.73633 6.54883C2.54232 6.54883 2.38932 6.49414 2.27734 6.38477C2.16667 6.27409 2.11133 6.12695 2.11133 5.94336C2.11133 5.55534 2.34115 5.33138 2.80078 5.27148L3.34375 5.19922C3.34375 4.98047 3.22526 4.87109 2.98828 4.87109C2.75 4.87109 2.52344 4.94206 2.30859 5.08398V4.61914C2.39453 4.57487 2.51172 4.53581 2.66016 4.50195C2.8099 4.4681 2.94596 4.45117 3.06836 4.45117C3.63867 4.45117 3.92383 4.73568 3.92383 5.30469V6.5ZM3.34375 5.6875V5.55273L2.98047 5.59961C2.77995 5.62565 2.67969 5.71615 2.67969 5.87109C2.67969 5.94141 2.70378 5.99935 2.75195 6.04492C2.80143 6.08919 2.86784 6.11133 2.95117 6.11133C3.06706 6.11133 3.16146 6.07161 3.23438 5.99219C3.30729 5.91146 3.34375 5.8099 3.34375 5.6875Z" class="fill" fill="#1A1A1A"/>
224
224
  <path d="M2.88477 11.2676H2.87695V11.5H2.25977V8.53906H2.87695V9.80078H2.88477C3.03711 9.56771 3.25391 9.45117 3.53516 9.45117C3.79297 9.45117 3.99154 9.53971 4.13086 9.7168C4.27018 9.89388 4.33984 10.1361 4.33984 10.4434C4.33984 10.7767 4.25846 11.0443 4.0957 11.2461C3.93294 11.4479 3.71549 11.5488 3.44336 11.5488C3.19727 11.5488 3.01107 11.4551 2.88477 11.2676ZM2.86719 10.4238V10.6289C2.86719 10.7578 2.9043 10.8646 2.97852 10.9492C3.05273 11.0339 3.14779 11.0762 3.26367 11.0762C3.4043 11.0762 3.51302 11.0221 3.58984 10.9141C3.66797 10.8047 3.70703 10.6504 3.70703 10.4512C3.70703 10.2858 3.67122 10.1569 3.59961 10.0645C3.5293 9.9707 3.42839 9.92383 3.29688 9.92383C3.17318 9.92383 3.07031 9.97005 2.98828 10.0625C2.90755 10.1549 2.86719 10.2754 2.86719 10.4238Z" class="fill" fill="#1A1A1A"/>
@@ -227,4 +227,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
227
227
  <rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
228
228
  <rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
229
229
  </svg>
230
- `,Fp="";xe.register(xe.import("attributors/attribute/direction"),!0),xe.register(xe.import("attributors/class/align"),!0),xe.register(xe.import("attributors/class/direction"),!0),xe.register(xe.import("attributors/class/font"),!0),xe.register(xe.import("attributors/class/size"),!0),xe.register(xe.import("attributors/style/align"),!0),xe.register(xe.import("attributors/style/background"),!0),xe.register(xe.import("attributors/style/color"),!0),xe.register(xe.import("attributors/style/direction"),!0),xe.register(xe.import("attributors/style/font"),!0),xe.register(xe.import("attributors/style/size"),!0);const st=xe.import("ui/icons");st.bold=Q1,st.italic=e0,st.underline=t0,st.strike=n0,st["code-block"]=i0,st.link=r0,st.align[""]=o0,st.align.center=a0,st.align.right=l0,st.align.justify=s0,st.list.ordered=c0,st.list.bullet=d0,st["alphabet-list"]=u0,xe.register({"formats/alphabet-list":Zt,"formats/alphabet-list/item":$r}),xe.register("modules/placeholder",X1(xe,{className:"ql-placeholder-content"})),xe.register(st),xe.debug("error");const f0={name:"IbTextEditor",props:{name:{type:String,required:!0},placeholder:{type:String,default:""},placeholders:{type:Array,default:()=>[]},modelValue:{type:String},content:{type:String,default:""},readOnly:{type:Boolean,default:!1},enable:{type:Boolean,default:!0},modules:{type:[Object,Array],default:()=>{}},options:{type:Object,default:()=>{}},characterLimit:{type:[String,Number],default:null},error:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""}},emits:["onOverLimitHandler","update:modelValue","change","blur"],mounted(){this.$refs.toolbar.classList.remove("ql-toolbar");const t=this.$refs.wrapper.querySelector("input[data-link]");t.dataset.link="Enter Link",this.updateCharacterLength()},data(){return{data:this.modelValue?this.modelValue:this.content,characterLength:0,isFocus:!1}},watch:{content(t){this.data=t},data(t){const n=this.cleanPlaceholderSpans(t);this.$emit("update:modelValue",n)},characterOverLimit(t){this.$emit("onOverLimitHandler",t)}},methods:{onChange(){let t=this.cleanPlaceholderSpans(this.data);this.data=this.patchListStylePosition(t),this.updateCharacterLength(),this.$emit("change",this.data)},onBlur(t){this.$emit("blur",this.cleanPlaceholderSpans(this.data),t),this.isFocus=!1},onFocus(){this.isFocus=!0},updateCharacterLength(){this.characterLength=Z1(this.data).length},cleanPlaceholderSpans(t){if(!t)return t;let n;do n=t,t=t.replace(/<span contenteditable="false">([\s\S]*?)<\/span>/g,(e,o)=>o.replace(/[\u200B-\u200F\uFEFF]/g,""));while(n!==t);return t},patchListStylePosition(t){const n=document.createElement("div");return n.innerHTML=t,n.querySelectorAll('ul[style*="text-align"], ol[style*="text-align"], li[style*="text-align"]').forEach(e=>{const o=e.getAttribute("style")??"";if(!/list-style-position\s*:\s*inside/i.test(o)){const a=(o.trim().endsWith(";")||o.trim()===""?o:o+";")+" list-style-position: inside;";e.setAttribute("style",a)}}),n.innerHTML}},computed:{config(){const t={placeholder:this.data.length?"":this.placeholder,readOnly:this.readOnly?this.readOnly:this.disable,enable:this.enable,modules:{toolbar:{container:"#toolbar"},placeholder:{delimiters:["{{","}}"],placeholders:this.placeholders}}};return Object.assign(t,this.options)},characterOverLimit(){return!!this.characterLimit&&this.characterLength>this.characterLimit}},components:{QuillEditor:K1,IbIconButton:ut,IbAlert:Ft,IbCharacterCount:zr}},h0=["name","disabled","value"],p0={class:"ib-text-editor",ref:"wrapper"},m0={id:"toolbar",class:"toolbar",ref:"toolbar"},g0={class:"toolbar-group header-toolbar-group"},y0=r.createElementVNode("label",{class:"toolbar-group__label",for:"placeholders"},"Placeholder Selector",-1),b0={id:"placeholders",class:"ql-placeholder"},v0=r.createElementVNode("option",{selected:"",value:"default",class:"disabled"},null,-1),_0=["value"],$0=r.createStaticVNode('<div class="toolbar-group header-toolbar-group"><label class="toolbar-group__label" for="header-selector">Header Selector</label><select id="header-selector" class="ql-header"><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option><option selected></option></select></div>',1),w0={class:"toolbar-group"},k0=r.createStaticVNode('<div class="toolbar-group"><label class="toolbar-group__label" for="background-selector">Background Selector</label><select id="background-selector" class="ql-background"></select><label class="toolbar-group__label" for="color-selector">Background Color Selector</label><select id="color-selector" class="ql-color"></select></div>',1),C0={class:"toolbar-group"},O0={class:"toolbar-group"},E0={class:"toolbar-group"};function S0(t,n,e,o,a,i){const s=r.resolveComponent("ib-character-count"),l=r.resolveComponent("ib-alert"),u=r.resolveComponent("QuillEditor"),d=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["textarea-wrapper",{error:i.characterOverLimit||e.error||e.errorMessage.length,focus:a.isFocus,disable:e.disable}])},[e.characterLimit?(r.openBlock(),r.createBlock(s,{key:0,"character-limit":e.characterLimit,"character-length":a.characterLength},null,8,["character-limit","character-length"])):r.createCommentVNode("",!0),e.errorMessage.length?(r.openBlock(),r.createBlock(l,{key:1,class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(l,{class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[r.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),r.createElementVNode("input",{name:e.name,type:"hidden",disabled:e.disable,value:a.data},null,8,h0),r.createElementVNode("div",{class:r.normalizeClass(["ib-text-editor-wrapper",{disable:e.disable}])},[r.createElementVNode("div",p0,[r.createVNode(u,{"aria-label":"text-editor",onTextChange:i.onChange,onBlur:i.onBlur,onFocus:i.onFocus,ref:"quill",content:a.data,"onUpdate:content":n[0]||(n[0]=p=>a.data=p),contentType:"html",options:i.config,modules:e.modules},null,8,["onTextChange","onBlur","onFocus","content","options","modules"])],512),r.createElementVNode("div",m0,[r.withDirectives(r.createElementVNode("div",g0,[y0,r.createElementVNode("select",b0,[v0,(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.placeholders,p=>(r.openBlock(),r.createElementBlock("option",{key:p.id,value:p.id},r.toDisplayString(p.label),9,_0))),128))])],512),[[r.vShow,e.placeholders.length]]),$0,r.createElementVNode("div",w0,[r.createVNode(d,{"aria-label":"button-bold",class:"toolbar-item ql-bold",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-italic",class:"toolbar-item ql-italic",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-underline",class:"toolbar-item ql-underline",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-strike",class:"toolbar-item ql-strike",kind:"ghost"})]),k0,r.createElementVNode("div",C0,[r.createVNode(d,{"aria-label":"button-code-block",class:"toolbar-item ql-code-block",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-link",class:"toolbar-item ql-link",kind:"ghost"})]),r.createElementVNode("div",O0,[r.createVNode(d,{"aria-label":"button-align",class:"toolbar-item ql-align",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-center",class:"ql-align toolbar-item",value:"center",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-right",class:"ql-align toolbar-item",value:"right",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-justify",class:"ql-align toolbar-item",value:"justify",kind:"ghost"})]),r.createElementVNode("div",E0,[r.createVNode(d,{"aria-label":"button-ordered-list",class:"ql-list toolbar-item",value:"ordered",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-bullet-list",class:"ql-list toolbar-item",value:"bullet",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-alphabet-list",class:"ql-alphabet-list alphabet-list toolbar-item",kind:"ghost"})])],512)],2)],2)}const x0=_e(f0,[["render",S0]]),Hp="",T0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},N0={class:"ib-table-wrapper"},A0={class:"ib-table"};function D0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",N0,[r.createElementVNode("table",A0,[i.hasThead?r.renderSlot(t.$slots,"thead",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("tbody",null,[r.renderSlot(t.$slots,"tbody",{},void 0,!0)])])])}const P0=_e(T0,[["render",D0],["__scopeId","data-v-5dceb760"]]),zp="",I0={name:"IbRow"},B0={class:"ib-tr"};function M0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("tr",B0,[r.renderSlot(t.$slots,"default",{ref:"row"})])}const L0=_e(I0,[["render",M0]]),Up="",R0={name:"IbCell",props:{fixed:{type:Boolean,default:!1}},data(){return{attr:{}}},mounted(){this.fixed&&this.freezeCol()},methods:{freezeCol(){const t=this.$el.getBoundingClientRect(),n=this.$el.closest("tr").getBoundingClientRect();this.attr.style||(this.attr.style={}),this.attr.style.minWidth=`${t.width}px`,this.attr.style.left=`${t.left-n.left}px`,this.attr.class+=" fixed"}}},j0={class:"cell"};function V0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("td",r.mergeProps({onResize:n[0]||(n[0]=(...s)=>i.freezeCol&&i.freezeCol(...s)),class:"ib-cell"},this.attr),[r.createElementVNode("div",j0,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ma=_e(R0,[["render",V0],["__scopeId","data-v-e74bb0f3"]]),Kp="",q0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ma,IbCheckbox:Fr}};function F0(t,n,e,o,a,i){const s=r.resolveComponent("ib-checkbox"),l=r.resolveComponent("ib-cell");return r.openBlock(),r.createBlock(l,{fixed:e.fixed,class:"ib-checkbox-cell"},{default:r.withCtx(()=>[r.createVNode(s,{"is-checked":e.isChecked},null,8,["is-checked"])]),_:1},8,["fixed"])}const H0=_e(q0,[["render",F0]]),bi=new ko,La=(t,n)=>{if(So(t)){const e=Object.keys(n.modifiers)[0]||n.arg,o={title:n.value.title||"",text:typeof n.value=="object"?n.value.text:n.value};bi.createTooltip(t,o,e)}},Ra=()=>{bi.destroyTooltip()},z0={mounted(t,n){t.addEventListener("mouseenter",()=>La(t,n)),t.addEventListener("mouseleave",Ra)},beforeUnmount(t,n){bi.destroyTooltip(),t.removeEventListener("mouseenter",()=>La(t,n)),t.removeEventListener("mouseleave",Ra)}};pe.IbAccordion=Wa,pe.IbAlert=Ft,pe.IbAvatar=Jl,pe.IbBadge=es,pe.IbBreadcrumbs=Nc,pe.IbButton=Hi,pe.IbButtonGroup=is,pe.IbCell=Ma,pe.IbCharactersCount=zr,pe.IbCheckbox=Fr,pe.IbCheckboxCell=H0,pe.IbCheckboxGroup=mu,pe.IbChips=su,pe.IbDatePicker=af,pe.IbDropdown=ir,pe.IbDropdownItem=jr,pe.IbDropdownList=or,pe.IbFormGroup=fu,pe.IbIcon=Le,pe.IbIconButton=ut,pe.IbInput=qr,pe.IbLabel=kn,pe.IbLimitSelector=Ao,pe.IbModal=Js,pe.IbPagination=Bd,pe.IbPanel=nu,pe.IbPhoneInput=N1,pe.IbPopover=fo,pe.IbProgressBar=Fd,pe.IbRadio=ku,pe.IbRow=L0,pe.IbSorting=wc,pe.IbSplitButton=Hs,pe.IbSplitButtonItem=Ks,pe.IbStatusIndicator=Wd,pe.IbTab=fc,pe.IbTabDropdown=$o,pe.IbTable=P0,pe.IbTabs=cc,pe.IbTagPill=ls,pe.IbTextEditor=x0,pe.IbTextarea=Bu,pe.IbToggle=Eo,pe.IbToggleTip=mo,pe.IbTooltip=ln,pe.IbTreeSelect=No,pe.OutsideDirective=nr,pe.TextOverflowTooltipDirective=z0,pe.TooltipDirective=Wt,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
230
+ `,qp="";xe.register(xe.import("attributors/attribute/direction"),!0),xe.register(xe.import("attributors/class/align"),!0),xe.register(xe.import("attributors/class/direction"),!0),xe.register(xe.import("attributors/class/font"),!0),xe.register(xe.import("attributors/class/size"),!0),xe.register(xe.import("attributors/style/align"),!0),xe.register(xe.import("attributors/style/background"),!0),xe.register(xe.import("attributors/style/color"),!0),xe.register(xe.import("attributors/style/direction"),!0),xe.register(xe.import("attributors/style/font"),!0),xe.register(xe.import("attributors/style/size"),!0);const st=xe.import("ui/icons");st.bold=X1,st.italic=Q1,st.underline=e0,st.strike=t0,st["code-block"]=r0,st.link=n0,st.align[""]=i0,st.align.center=o0,st.align.right=a0,st.align.justify=l0,st.list.ordered=s0,st.list.bullet=c0,st["alphabet-list"]=d0,xe.register({"formats/alphabet-list":Zt,"formats/alphabet-list/item":$r}),xe.register("modules/placeholder",J1(xe,{className:"ql-placeholder-content"})),xe.register(st),xe.debug("error");const u0={name:"IbTextEditor",props:{name:{type:String,required:!0},placeholder:{type:String,default:""},placeholders:{type:Array,default:()=>[]},modelValue:{type:String},content:{type:String,default:""},readOnly:{type:Boolean,default:!1},enable:{type:Boolean,default:!0},modules:{type:[Object,Array],default:()=>{}},options:{type:Object,default:()=>{}},characterLimit:{type:[String,Number],default:null},error:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""}},emits:["onOverLimitHandler","update:modelValue","change","blur"],mounted(){this.$refs.toolbar.classList.remove("ql-toolbar");const t=this.$refs.wrapper.querySelector("input[data-link]");t.dataset.link="Enter Link",this.updateCharacterLength()},data(){return{data:this.modelValue?this.modelValue:this.content,characterLength:0,isFocus:!1}},watch:{content(t){this.data=t},data(t){const n=this.cleanPlaceholderSpans(t);this.$emit("update:modelValue",n)},characterOverLimit(t){this.$emit("onOverLimitHandler",t)}},methods:{onChange(){let t=this.cleanPlaceholderSpans(this.data);this.data=this.patchListStylePosition(t),this.updateCharacterLength(),this.$emit("change",this.data)},onBlur(t){this.$emit("blur",this.cleanPlaceholderSpans(this.data),t),this.isFocus=!1},onFocus(){this.isFocus=!0},updateCharacterLength(){this.characterLength=Y1(this.data).length},cleanPlaceholderSpans(t){if(!t)return t;let n;do n=t,t=t.replace(/<span contenteditable="false">([\s\S]*?)<\/span>/g,(e,o)=>o.replace(/[\u200B-\u200F\uFEFF]/g,""));while(n!==t);return t},patchListStylePosition(t){const n=document.createElement("div");return n.innerHTML=t,n.querySelectorAll('ul[style*="text-align"], ol[style*="text-align"], li[style*="text-align"]').forEach(e=>{const o=e.getAttribute("style")??"";if(!/list-style-position\s*:\s*inside/i.test(o)){const a=(o.trim().endsWith(";")||o.trim()===""?o:o+";")+" list-style-position: inside;";e.setAttribute("style",a)}}),n.innerHTML}},computed:{config(){const t={placeholder:this.data.length?"":this.placeholder,readOnly:this.readOnly?this.readOnly:this.disable,enable:this.enable,modules:{toolbar:{container:"#toolbar"},placeholder:{delimiters:["{{","}}"],placeholders:this.placeholders}}};return Object.assign(t,this.options)},characterOverLimit(){return!!this.characterLimit&&this.characterLength>this.characterLimit}},components:{QuillEditor:U1,IbIconButton:ut,IbAlert:Ft,IbCharacterCount:zr}},f0=["name","disabled","value"],h0={class:"ib-text-editor",ref:"wrapper"},p0={id:"toolbar",class:"toolbar",ref:"toolbar"},m0={class:"toolbar-group header-toolbar-group"},g0=r.createElementVNode("label",{class:"toolbar-group__label",for:"placeholders"},"Placeholder Selector",-1),y0={id:"placeholders",class:"ql-placeholder"},b0=r.createElementVNode("option",{selected:"",value:"default",class:"disabled"},null,-1),v0=["value"],_0=r.createStaticVNode('<div class="toolbar-group header-toolbar-group"><label class="toolbar-group__label" for="header-selector">Header Selector</label><select id="header-selector" class="ql-header"><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option><option selected></option></select></div>',1),$0={class:"toolbar-group"},w0=r.createStaticVNode('<div class="toolbar-group"><label class="toolbar-group__label" for="background-selector">Background Selector</label><select id="background-selector" class="ql-background"></select><label class="toolbar-group__label" for="color-selector">Background Color Selector</label><select id="color-selector" class="ql-color"></select></div>',1),k0={class:"toolbar-group"},C0={class:"toolbar-group"},O0={class:"toolbar-group"};function E0(t,n,e,o,a,i){const s=r.resolveComponent("ib-character-count"),l=r.resolveComponent("ib-alert"),u=r.resolveComponent("QuillEditor"),d=r.resolveComponent("ib-icon-button");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["textarea-wrapper",{error:i.characterOverLimit||e.error||e.errorMessage.length,focus:a.isFocus,disable:e.disable}])},[e.characterLimit?(r.openBlock(),r.createBlock(s,{key:0,"character-limit":e.characterLimit,"character-length":a.characterLength},null,8,["character-limit","character-length"])):r.createCommentVNode("",!0),e.errorMessage.length?(r.openBlock(),r.createBlock(l,{key:1,class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.errorMessage),1)]),_:1})):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(l,{class:"error-message"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[r.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),r.createElementVNode("input",{name:e.name,type:"hidden",disabled:e.disable,value:a.data},null,8,f0),r.createElementVNode("div",{class:r.normalizeClass(["ib-text-editor-wrapper",{disable:e.disable}])},[r.createElementVNode("div",h0,[r.createVNode(u,{"aria-label":"text-editor",onTextChange:i.onChange,onBlur:i.onBlur,onFocus:i.onFocus,ref:"quill",content:a.data,"onUpdate:content":n[0]||(n[0]=p=>a.data=p),contentType:"html",options:i.config,modules:e.modules},null,8,["onTextChange","onBlur","onFocus","content","options","modules"])],512),r.createElementVNode("div",p0,[r.withDirectives(r.createElementVNode("div",m0,[g0,r.createElementVNode("select",y0,[b0,(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.placeholders,p=>(r.openBlock(),r.createElementBlock("option",{key:p.id,value:p.id},r.toDisplayString(p.label),9,v0))),128))])],512),[[r.vShow,e.placeholders.length]]),_0,r.createElementVNode("div",$0,[r.createVNode(d,{"aria-label":"button-bold",class:"toolbar-item ql-bold",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-italic",class:"toolbar-item ql-italic",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-underline",class:"toolbar-item ql-underline",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-strike",class:"toolbar-item ql-strike",kind:"ghost"})]),w0,r.createElementVNode("div",k0,[r.createVNode(d,{"aria-label":"button-code-block",class:"toolbar-item ql-code-block",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-link",class:"toolbar-item ql-link",kind:"ghost"})]),r.createElementVNode("div",C0,[r.createVNode(d,{"aria-label":"button-align",class:"toolbar-item ql-align",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-center",class:"ql-align toolbar-item",value:"center",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-right",class:"ql-align toolbar-item",value:"right",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-align-justify",class:"ql-align toolbar-item",value:"justify",kind:"ghost"})]),r.createElementVNode("div",O0,[r.createVNode(d,{"aria-label":"button-ordered-list",class:"ql-list toolbar-item",value:"ordered",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-bullet-list",class:"ql-list toolbar-item",value:"bullet",kind:"ghost"}),r.createVNode(d,{"aria-label":"button-alphabet-list",class:"ql-alphabet-list alphabet-list toolbar-item",kind:"ghost"})])],512)],2)],2)}const S0=_e(u0,[["render",E0]]),Fp="",x0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},T0={class:"ib-table-wrapper"},N0={class:"ib-table"};function A0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("div",T0,[r.createElementVNode("table",N0,[i.hasThead?r.renderSlot(t.$slots,"thead",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("tbody",null,[r.renderSlot(t.$slots,"tbody",{},void 0,!0)])])])}const D0=_e(x0,[["render",A0],["__scopeId","data-v-5dceb760"]]),Hp="",P0={name:"IbRow"},I0={class:"ib-tr"};function B0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("tr",I0,[r.renderSlot(t.$slots,"default",{ref:"row"})])}const M0=_e(P0,[["render",B0]]),zp="",L0={name:"IbCell",props:{fixed:{type:Boolean,default:!1}},data(){return{attr:{}}},mounted(){this.fixed&&this.freezeCol()},methods:{freezeCol(){const t=this.$el.getBoundingClientRect(),n=this.$el.closest("tr").getBoundingClientRect();this.attr.style||(this.attr.style={}),this.attr.style.minWidth=`${t.width}px`,this.attr.style.left=`${t.left-n.left}px`,this.attr.class+=" fixed"}}},R0={class:"cell"};function j0(t,n,e,o,a,i){return r.openBlock(),r.createElementBlock("td",r.mergeProps({onResize:n[0]||(n[0]=(...s)=>i.freezeCol&&i.freezeCol(...s)),class:"ib-cell"},this.attr),[r.createElementVNode("div",R0,[r.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ma=_e(L0,[["render",j0],["__scopeId","data-v-e74bb0f3"]]),Up="",V0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ma,IbCheckbox:Fr}};function q0(t,n,e,o,a,i){const s=r.resolveComponent("ib-checkbox"),l=r.resolveComponent("ib-cell");return r.openBlock(),r.createBlock(l,{fixed:e.fixed,class:"ib-checkbox-cell"},{default:r.withCtx(()=>[r.createVNode(s,{"is-checked":e.isChecked},null,8,["is-checked"])]),_:1},8,["fixed"])}const F0=_e(V0,[["render",q0]]),bi=new ko,La=(t,n)=>{if(So(t)){const e=Object.keys(n.modifiers)[0]||n.arg,o={title:n.value.title||"",text:typeof n.value=="object"?n.value.text:n.value};bi.createTooltip(t,o,e)}},Ra=()=>{bi.destroyTooltip()},H0={mounted(t,n){t.addEventListener("mouseenter",()=>La(t,n)),t.addEventListener("mouseleave",Ra)},beforeUnmount(t,n){bi.destroyTooltip(),t.removeEventListener("mouseenter",()=>La(t,n)),t.removeEventListener("mouseleave",Ra)}};pe.IbAccordion=Wa,pe.IbAlert=Ft,pe.IbAvatar=Jl,pe.IbBadge=es,pe.IbBreadcrumbs=Tc,pe.IbButton=Hi,pe.IbButtonGroup=is,pe.IbCell=Ma,pe.IbCharactersCount=zr,pe.IbCheckbox=Fr,pe.IbCheckboxCell=F0,pe.IbCheckboxGroup=pu,pe.IbChips=lu,pe.IbDatePicker=of,pe.IbDropdown=ir,pe.IbDropdownItem=jr,pe.IbDropdownList=or,pe.IbFormGroup=uu,pe.IbIcon=Le,pe.IbIconButton=ut,pe.IbInput=qr,pe.IbLabel=kn,pe.IbLimitSelector=Ao,pe.IbModal=Zs,pe.IbPagination=Id,pe.IbPanel=tu,pe.IbPhoneInput=T1,pe.IbPopover=fo,pe.IbProgressBar=qd,pe.IbRadio=wu,pe.IbRow=M0,pe.IbSorting=$c,pe.IbSplitButton=Fs,pe.IbSplitButtonItem=Us,pe.IbStatusIndicator=Gd,pe.IbTab=uc,pe.IbTabDropdown=$o,pe.IbTable=D0,pe.IbTabs=sc,pe.IbTagPill=ls,pe.IbTextEditor=S0,pe.IbTextarea=Iu,pe.IbToggle=Eo,pe.IbToggleTip=mo,pe.IbTooltip=ln,pe.IbTreeSelect=No,pe.OutsideDirective=nr,pe.TextOverflowTooltipDirective=H0,pe.TooltipDirective=Wt,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});