@avakhula/ui 0.0.503 → 0.0.505-alpha-spa.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.json +0 -0
- package/.eslintrc.cjs +0 -0
- package/.nvmrc +0 -0
- package/.storybook/main.js +0 -0
- package/.storybook/preview-head.html +0 -0
- package/.storybook/preview.js +0 -0
- package/dist/index.js +16912 -2987
- package/dist/index.umd.cjs +168 -22
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/App.vue +13 -128
- package/src/assets/scss/mixins/dropdown-list-item.scss +5 -0
- package/src/assets/scss/mixins/tooltip-position.scss +0 -0
- package/src/assets/scss/variables/colors.json +0 -0
- package/src/assets/scss/variables/colors.scss +0 -0
- package/src/assets/scss/variables/shadows.json +0 -0
- package/src/assets/scss/variables/shadows.scss +0 -0
- package/src/components/Accordion/Accordion.scss +0 -0
- package/src/components/Accordion/Accordion.stories.js +0 -0
- package/src/components/Accordion/Accordion.vue +0 -0
- package/src/components/Accordion/Acordion.spec.js +0 -0
- package/src/components/Accordion/readme.mdx +0 -0
- package/src/components/Alert/Alert.spec.js +0 -0
- package/src/components/Alert/Alert.stories.js +0 -0
- package/src/components/Alert/Alert.vue +5 -0
- package/src/components/Alert/alert.scss +6 -1
- package/src/components/Alert/constants.js +0 -0
- package/src/components/Alert/readme.mdx +0 -0
- package/src/components/Avatar/Avatar.stories.js +5 -1
- package/src/components/Avatar/Avatar.vue +25 -2
- package/src/components/Avatar/constants.js +6 -0
- package/src/components/Badge/Badge.spec.js +0 -0
- package/src/components/Badge/Badge.vue +0 -0
- package/src/components/Badge/readme.mdx +0 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -0
- package/src/components/Breadcrumbs/breadcrumbs.scss +0 -0
- package/src/components/Breadcrumbs/breadcrumbs.stories.js +0 -0
- package/src/components/Button/Button.spec.js +0 -0
- package/src/components/Button/Button.vue +19 -3
- package/src/components/Button/button.scss +4 -0
- package/src/components/Button/readme.mdx +0 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.js +0 -0
- package/src/components/ButtonGroup/readme.mdx +0 -0
- package/src/components/Chips/Chips.stories.js +30 -0
- package/src/components/Chips/Chips.vue +125 -0
- package/src/components/Dropdown/Dropdown.stories.js +0 -0
- package/src/components/Dropdown/Dropdown.vue +0 -0
- package/src/components/Dropdown/DropdownItem.vue +26 -4
- package/src/components/Dropdown/DropdownList.stories.js +0 -0
- package/src/components/Dropdown/readme.mdx +0 -0
- package/src/components/Form/CharactersCount.vue +10 -7
- package/src/components/Form/Checkbox/Checkbox.scss +0 -0
- package/src/components/Form/Checkbox/Checkbox.stories.js +0 -0
- package/src/components/Form/Checkbox/Checkbox.vue +23 -11
- package/src/components/Form/Checkbox/readme.mdx +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +15 -0
- package/src/components/Form/CheckboxGroup/readme.mdx +2 -0
- package/src/components/Form/DatePicker/DatePicker.scss +345 -260
- package/src/components/Form/DatePicker/DatePicker.stories.js +0 -0
- package/src/components/Form/DatePicker/DatePicker.vue +55 -14
- package/src/components/Form/DatePicker/readme.mdx +0 -0
- package/src/components/Form/FormGroup/FormGroup.vue +3 -3
- package/src/components/Form/Input/Input.stories.js +0 -0
- package/src/components/Form/Input/Input.vue +6 -2
- package/src/components/Form/Input/constants.js +0 -0
- package/src/components/Form/Input/input.scss +0 -0
- package/src/components/Form/Input/readme.mdx +0 -0
- package/src/components/Form/Label/Label.stories.js +0 -0
- package/src/components/Form/Label/Label.vue +22 -10
- package/src/components/Form/Label/readme.mdx +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.stories.js +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.vue +21 -12
- package/src/components/Form/PhoneInput/phoneInput.scss +4 -5
- package/src/components/Form/PhoneInput/readme.mdx +0 -0
- package/src/components/Form/Radio/Radio.stories.js +0 -0
- package/src/components/Form/Radio/Radio.vue +22 -35
- package/src/components/Form/Radio/radio.scss +5 -2
- package/src/components/Form/Radio/readme.mdx +0 -0
- package/src/components/Form/TextEditor/TextEditor.stories.js +0 -0
- package/src/components/Form/TextEditor/TextEditor.vue +67 -15
- package/src/components/Form/TextEditor/readme.mdx +0 -0
- package/src/components/Form/TextEditor/textEditor.scss +22 -0
- package/src/components/Form/Textarea/Textarea.stories.js +0 -0
- package/src/components/Form/Textarea/Textarea.vue +19 -2
- package/src/components/Form/Textarea/readme.mdx +0 -0
- package/src/components/Form/Textarea/textarea.scss +20 -1
- package/src/components/Form/Toggle/Toggle.stories.js +0 -0
- package/src/components/Form/Toggle/Toggle.vue +0 -0
- package/src/components/Form/Toggle/readme.mdx +0 -0
- package/src/components/Form/Toggle/toggle.scss +0 -0
- package/src/components/IconButton/IconButton.scss +11 -0
- package/src/components/IconButton/IconButton.vue +5 -0
- package/src/components/IconButton/readme.mdx +0 -0
- package/src/components/List.vue +0 -0
- package/src/components/Modal/Modal.stories.js +0 -0
- package/src/components/Modal/Modal.vue +6 -5
- package/src/components/Modal/constants.js +0 -0
- package/src/components/Modal/readme.mdx +0 -0
- package/src/components/Pagination/LimitSelector.vue +4 -0
- package/src/components/Pagination/Pagination.vue +9 -2
- package/src/components/Pagination/pagination.scss +0 -0
- package/src/components/Panel/Panel.stories.js +0 -0
- package/src/components/Panel/Panel.vue +68 -2
- package/src/components/Popover/Popover.vue +4 -4
- package/src/components/Popover/constants.js +0 -0
- package/src/components/Popover/popover.scss +1 -1
- package/src/components/Popover/readme.mdx +0 -0
- package/src/components/ProgressBar/ProgressBar.vue +0 -0
- package/src/components/ProgressBar/constants.js +0 -0
- package/src/components/ProgressBar/progressBar.scss +0 -0
- package/src/components/ProgressBar/readme.mdx +0 -0
- package/src/components/Sorting/Sorting.stories.js +0 -0
- package/src/components/Sorting/Sorting.vue +0 -0
- package/src/components/Sorting/sorting.scss +0 -0
- package/src/components/SplitButton/SplitButton.stories.js +0 -0
- package/src/components/SplitButton/SplitButton.vue +31 -7
- package/src/components/SplitButton/SplitButtonItem.vue +13 -1
- package/src/components/SplitButton/readme.mdx +0 -0
- package/src/components/SplitButton/splitButton.scss +0 -0
- package/src/components/StatusIndicator/StatusIndicator.stories.js +0 -0
- package/src/components/StatusIndicator/StatusIndicator.vue +0 -0
- package/src/components/StatusIndicator/constants.js +0 -0
- package/src/components/StatusIndicator/icons.js +0 -0
- package/src/components/StatusIndicator/readme.mdx +0 -0
- package/src/components/Tabs/TabDropdown.vue +0 -0
- package/src/components/Tabs/Tabs.stories.js +0 -0
- package/src/components/Tabs/Tabs.vue +0 -0
- package/src/components/Tabs/tabs.scss +0 -0
- package/src/components/TagPill/TagPill.stories.js +0 -0
- package/src/components/TagPill/readme.mdx +0 -0
- package/src/components/ToggleTip/constants.js +0 -0
- package/src/components/ToggleTip/readme.mdx +0 -0
- package/src/components/ToggleTip/toggleTip.scss +0 -0
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Tooltip/readme.mdx +0 -0
- package/src/components/TreeSelect/Option.vue +40 -9
- package/src/components/TreeSelect/Select.stories.js +0 -0
- package/src/components/TreeSelect/Select.vue +77 -29
- package/src/components/TreeSelect/TreeSelect.stories.js +0 -0
- package/src/components/TreeSelect/mixins/InfinityLoaderMixin.js +40 -0
- package/src/components/TreeSelect/scss/option.scss +31 -0
- package/src/components/TreeSelect/scss/select.scss +47 -1
- package/src/directives/outside/outside.stories.js +0 -0
- package/src/directives/outside/readme.mdx +0 -0
- package/src/directives/tooltip/TooltipController.js +2 -0
- package/src/directives/tooltip/readme.mdx +0 -0
- package/src/directives/tooltip/textOverflowTooltip.js +3 -1
- package/src/directives/tooltip/tooltip.js +15 -0
- package/src/directives/tooltip/tooltip.stories.js +0 -0
- package/src/helpers/removeEvents.js +0 -0
- package/src/index.js +4 -0
- package/src/main.js +0 -0
- package/src/mixins/expandAnimation.js +0 -0
- package/src/scripts/parseScssVariables.js +0 -0
- package/src/stories/link.readme.mdx +0 -0
- package/src/stories/variables/colors.stories.js +0 -0
- package/src/stories/variables/shadows.stories.js +0 -0
- package/static/docks/button.pdf +0 -0
- package/static/favicon.ico +0 -0
package/dist/index.umd.cjs
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
(function(x,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(x=typeof globalThis<"u"?globalThis:x||self,n(x.MyLib={},x.Vue))})(this,function(x,n){"use strict";const $l="",T=(t,o)=>{const e=t.__vccOpts||t;for(const[c,s]of o)e[c]=s;return e},Yn={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var o,e;(e=(o=this.$refs.icon)==null?void 0:o.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},Kn=["name"];function Wn(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("ion-icon",{style:n.normalizeStyle(e.styles),name:e.name,class:n.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,Kn)}const P=T(Yn,[["render",Wn]]);function Z(){return"_"+Math.random().toString(36).substr(2,9)}const Mt={methods:{enter(t){const o=getComputedStyle(t).width;t.style.width=o,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 o=getComputedStyle(t).height;t.style.height=o,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},Yl="",qn={name:"IbAccordion",mixins:[Mt],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:Z()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:P}},Gn=["id","aria-controls","aria-expanded"],Un=["id","aria-labelledby"],Jn={class:"accordion-content-wrapper"};function Zn(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-accordion",{active:s.isActive}])},[n.createElementVNode("button",{class:"accordion-title",id:"accordion"+s.uuid,"aria-controls":"accordion-section-"+s.uuid,"aria-expanded":s.isActive,type:"button",onClick:o[0]||(o[0]=n.withModifiers((...a)=>i.onClick&&i.onClick(...a),["prevent"]))},[n.renderSlot(t.$slots,"title",{},void 0,!0),n.createVNode(r,{class:"chevron-icon",name:"chevron-down-outline"})],8,Gn),n.createVNode(n.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+s.uuid,"aria-labelledby":"accordion"+s.uuid},[n.createElementVNode("div",Jn,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Un),[[n.vShow,s.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Xn=T(qn,[["render",Zn],["__scopeId","data-v-8ece19c1"]]),de={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function ot(t,o=[]){for(let e in t)e.startsWith("on")&&(o.length===0||o.includes(e))&&delete t[e];return t}const Kl="",Qn={name:"IbButton",props:{kind:{type:String,default:de.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:""},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:{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&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=ot({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),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},ei=["method","action"],ti=["value"],ni=["value"],ii=["name","value"];function oi(t,o,e,c,s,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.href.length?"a":"button"),n.mergeProps({onClick:o[0]||(o[0]=r=>i.onClick(r)),onMouseenter:i.onMouseenter,onMouseleave:i.onMouseleave},i.attrs),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"icon"),n.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?n.withDirectives((n.openBlock(),n.createElementBlock("form",{key:0,ref:"form",method:i.formMethod,action:e.href},[n.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,ti),n.createElementVNode("input",{type:"hidden",name:"_token",value:i.token},null,8,ni),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(e.postOptions),(r,a)=>(n.openBlock(),n.createElementBlock("input",{key:a,type:"hidden",name:r,value:e.postOptions[r]},null,8,ii))),128))],8,ei)),[[n.vShow,!1]]):n.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const It=T(Qn,[["render",oi]]),ri=["top","right","bottom","left"],Ot=["start","end"],Vt=ri.reduce((t,o)=>t.concat(o,o+"-"+Ot[0],o+"-"+Ot[1]),[]),Lt=Math.min,Te=Math.max,Re=Math.round,ae=t=>({x:t,y:t}),ai={left:"right",right:"left",bottom:"top",top:"bottom"},si={start:"end",end:"start"};function Pt(t,o){return typeof t=="function"?t(o):t}function ze(t){return t.split("-")[0]}function he(t){return t.split("-")[1]}function li(t){return t==="x"?"y":"x"}function At(t){return t==="y"?"height":"width"}function Ft(t){return["top","bottom"].includes(ze(t))?"y":"x"}function Rt(t){return li(Ft(t))}function ci(t,o,e){e===void 0&&(e=!1);const c=he(t),s=Rt(t),i=At(s);let r=s==="x"?c===(e?"end":"start")?"right":"left":c==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(r=zt(r)),[r,zt(r)]}function di(t){return t.replace(/start|end/g,o=>si[o])}function zt(t){return t.replace(/left|right|bottom|top/g,o=>ai[o])}function hi(t){return{top:0,right:0,bottom:0,left:0,...t}}function ui(t){return typeof t!="number"?hi(t):{top:t,right:t,bottom:t,left:t}}function He(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ht(t,o,e){let{reference:c,floating:s}=t;const i=Ft(o),r=Rt(o),a=At(r),h=ze(o),u=i==="y",p=c.x+c.width/2-s.width/2,g=c.y+c.height/2-s.height/2,m=c[a]/2-s[a]/2;let y;switch(h){case"top":y={x:p,y:c.y-s.height};break;case"bottom":y={x:p,y:c.y+c.height};break;case"right":y={x:c.x+c.width,y:g};break;case"left":y={x:c.x-s.width,y:g};break;default:y={x:c.x,y:c.y}}switch(he(o)){case"start":y[r]-=m*(e&&u?-1:1);break;case"end":y[r]+=m*(e&&u?-1:1);break}return y}const fi=async(t,o,e)=>{const{placement:c="bottom",strategy:s="absolute",middleware:i=[],platform:r}=e,a=i.filter(Boolean),h=await(r.isRTL==null?void 0:r.isRTL(o));let u=await r.getElementRects({reference:t,floating:o,strategy:s}),{x:p,y:g}=Ht(u,c,h),m=c,y={},E=0;for(let k=0;k<a.length;k++){const{name:B,fn:M}=a[k],{x:O,y:R,data:z,reset:F}=await M({x:p,y:g,initialPlacement:c,placement:m,strategy:s,middlewareData:y,rects:u,platform:r,elements:{reference:t,floating:o}});p=O??p,g=R??g,y={...y,[B]:{...y[B],...z}},F&&E<=50&&(E++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(u=F.rects===!0?await r.getElementRects({reference:t,floating:o,strategy:s}):F.rects),{x:p,y:g}=Ht(u,m,h)),k=-1)}return{x:p,y:g,placement:m,strategy:s,middlewareData:y}};async function pi(t,o){var e;o===void 0&&(o={});const{x:c,y:s,platform:i,rects:r,elements:a,strategy:h}=t,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:m=!1,padding:y=0}=Pt(o,t),E=ui(y),B=a[m?g==="floating"?"reference":"floating":g],M=He(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(B)))==null||e?B:B.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:p,strategy:h})),O=g==="floating"?{...r.floating,x:c,y:s}:r.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),z=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},F=He(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:R,strategy:h}):O);return{top:(M.top-F.top+E.top)/z.y,bottom:(F.bottom-M.bottom+E.bottom)/z.y,left:(M.left-F.left+E.left)/z.x,right:(F.right-M.right+E.right)/z.x}}function mi(t,o,e){return(t?[...e.filter(s=>he(s)===t),...e.filter(s=>he(s)!==t)]:e.filter(s=>ze(s)===s)).filter(s=>t?he(s)===t||(o?di(s)!==s:!1):!0)}const gi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,c,s;const{rects:i,middlewareData:r,placement:a,platform:h,elements:u}=o,{crossAxis:p=!1,alignment:g,allowedPlacements:m=Vt,autoAlignment:y=!0,...E}=Pt(t,o),k=g!==void 0||m===Vt?mi(g||null,y,m):m,B=await pi(o,E),M=((e=r.autoPlacement)==null?void 0:e.index)||0,O=k[M];if(O==null)return{};const R=ci(O,i,await(h.isRTL==null?void 0:h.isRTL(u.floating)));if(a!==O)return{reset:{placement:k[0]}};const z=[B[ze(O)],B[R[0]],B[R[1]]],F=[...((c=r.autoPlacement)==null?void 0:c.overflows)||[],{placement:O,overflows:z}],ee=k[M+1];if(ee)return{data:{index:M+1,overflows:F},reset:{placement:ee}};const oe=F.map(j=>{const ge=he(j.placement);return[j.placement,ge&&p?j.overflows.slice(0,2).reduce((xe,ce)=>xe+ce,0):j.overflows[0],j.overflows]}).sort((j,ge)=>j[1]-ge[1]),Ee=((s=oe.filter(j=>j[2].slice(0,he(j[0])?2:3).every(ge=>ge<=0))[0])==null?void 0:s[0])||oe[0][0];return Ee!==a?{data:{index:M+1,overflows:F},reset:{placement:Ee}}:{}}}};function se(t){return jt(t)?(t.nodeName||"").toLowerCase():"#document"}function K(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function le(t){var o;return(o=(jt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function jt(t){return t instanceof Node||t instanceof K(t).Node}function ne(t){return t instanceof Element||t instanceof K(t).Element}function Q(t){return t instanceof HTMLElement||t instanceof K(t).HTMLElement}function $t(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof K(t).ShadowRoot}function Be(t){const{overflow:o,overflowX:e,overflowY:c,display:s}=U(t);return/auto|scroll|overlay|hidden|clip/.test(o+c+e)&&!["inline","contents"].includes(s)}function bi(t){return["table","td","th"].includes(se(t))}function rt(t){const o=at(),e=U(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(c=>(e.willChange||"").includes(c))||["paint","layout","strict","content"].some(c=>(e.contain||"").includes(c))}function yi(t){let o=ye(t);for(;Q(o)&&!je(o);){if(rt(o))return o;o=ye(o)}return null}function at(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function je(t){return["html","body","#document"].includes(se(t))}function U(t){return K(t).getComputedStyle(t)}function $e(t){return ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ye(t){if(se(t)==="html")return t;const o=t.assignedSlot||t.parentNode||$t(t)&&t.host||le(t);return $t(o)?o.host:o}function Yt(t){const o=ye(t);return je(o)?t.ownerDocument?t.ownerDocument.body:t.body:Q(o)&&Be(o)?o:Yt(o)}function st(t,o,e){var c;o===void 0&&(o=[]),e===void 0&&(e=!0);const s=Yt(t),i=s===((c=t.ownerDocument)==null?void 0:c.body),r=K(s);return i?o.concat(r,r.visualViewport||[],Be(s)?s:[],r.frameElement&&e?st(r.frameElement):[]):o.concat(s,st(s,[],e))}function Kt(t){const o=U(t);let e=parseFloat(o.width)||0,c=parseFloat(o.height)||0;const s=Q(t),i=s?t.offsetWidth:e,r=s?t.offsetHeight:c,a=Re(e)!==i||Re(c)!==r;return a&&(e=i,c=r),{width:e,height:c,$:a}}function Wt(t){return ne(t)?t:t.contextElement}function _e(t){const o=Wt(t);if(!Q(o))return ae(1);const e=o.getBoundingClientRect(),{width:c,height:s,$:i}=Kt(o);let r=(i?Re(e.width):e.width)/c,a=(i?Re(e.height):e.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const _i=ae(0);function qt(t){const o=K(t);return!at()||!o.visualViewport?_i:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ki(t,o,e){return o===void 0&&(o=!1),!e||o&&e!==K(t)?!1:o}function Ne(t,o,e,c){o===void 0&&(o=!1),e===void 0&&(e=!1);const s=t.getBoundingClientRect(),i=Wt(t);let r=ae(1);o&&(c?ne(c)&&(r=_e(c)):r=_e(t));const a=ki(i,e,c)?qt(i):ae(0);let h=(s.left+a.x)/r.x,u=(s.top+a.y)/r.y,p=s.width/r.x,g=s.height/r.y;if(i){const m=K(i),y=c&&ne(c)?K(c):c;let E=m,k=E.frameElement;for(;k&&c&&y!==E;){const B=_e(k),M=k.getBoundingClientRect(),O=U(k),R=M.left+(k.clientLeft+parseFloat(O.paddingLeft))*B.x,z=M.top+(k.clientTop+parseFloat(O.paddingTop))*B.y;h*=B.x,u*=B.y,p*=B.x,g*=B.y,h+=R,u+=z,E=K(k),k=E.frameElement}}return He({width:p,height:g,x:h,y:u})}const Ci=[":popover-open",":modal"];function Gt(t){return Ci.some(o=>{try{return t.matches(o)}catch{return!1}})}function wi(t){let{elements:o,rect:e,offsetParent:c,strategy:s}=t;const i=s==="fixed",r=le(c),a=o?Gt(o.floating):!1;if(c===r||a&&i)return e;let h={scrollLeft:0,scrollTop:0},u=ae(1);const p=ae(0),g=Q(c);if((g||!g&&!i)&&((se(c)!=="body"||Be(r))&&(h=$e(c)),Q(c))){const m=Ne(c);u=_e(c),p.x=m.x+c.clientLeft,p.y=m.y+c.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-h.scrollLeft*u.x+p.x,y:e.y*u.y-h.scrollTop*u.y+p.y}}function Si(t){return Array.from(t.getClientRects())}function Ut(t){return Ne(le(t)).left+$e(t).scrollLeft}function Ei(t){const o=le(t),e=$e(t),c=t.ownerDocument.body,s=Te(o.scrollWidth,o.clientWidth,c.scrollWidth,c.clientWidth),i=Te(o.scrollHeight,o.clientHeight,c.scrollHeight,c.clientHeight);let r=-e.scrollLeft+Ut(t);const a=-e.scrollTop;return U(c).direction==="rtl"&&(r+=Te(o.clientWidth,c.clientWidth)-s),{width:s,height:i,x:r,y:a}}function xi(t,o){const e=K(t),c=le(t),s=e.visualViewport;let i=c.clientWidth,r=c.clientHeight,a=0,h=0;if(s){i=s.width,r=s.height;const u=at();(!u||u&&o==="fixed")&&(a=s.offsetLeft,h=s.offsetTop)}return{width:i,height:r,x:a,y:h}}function Di(t,o){const e=Ne(t,!0,o==="fixed"),c=e.top+t.clientTop,s=e.left+t.clientLeft,i=Q(t)?_e(t):ae(1),r=t.clientWidth*i.x,a=t.clientHeight*i.y,h=s*i.x,u=c*i.y;return{width:r,height:a,x:h,y:u}}function Jt(t,o,e){let c;if(o==="viewport")c=xi(t,e);else if(o==="document")c=Ei(le(t));else if(ne(o))c=Di(o,e);else{const s=qt(t);c={...o,x:o.x-s.x,y:o.y-s.y}}return He(c)}function Zt(t,o){const e=ye(t);return e===o||!ne(e)||je(e)?!1:U(e).position==="fixed"||Zt(e,o)}function Ti(t,o){const e=o.get(t);if(e)return e;let c=st(t,[],!1).filter(a=>ne(a)&&se(a)!=="body"),s=null;const i=U(t).position==="fixed";let r=i?ye(t):t;for(;ne(r)&&!je(r);){const a=U(r),h=rt(r);!h&&a.position==="fixed"&&(s=null),(i?!h&&!s:!h&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Be(r)&&!h&&Zt(t,r))?c=c.filter(p=>p!==r):s=a,r=ye(r)}return o.set(t,c),c}function Bi(t){let{element:o,boundary:e,rootBoundary:c,strategy:s}=t;const r=[...e==="clippingAncestors"?Ti(o,this._c):[].concat(e),c],a=r[0],h=r.reduce((u,p)=>{const g=Jt(o,p,s);return u.top=Te(g.top,u.top),u.right=Lt(g.right,u.right),u.bottom=Lt(g.bottom,u.bottom),u.left=Te(g.left,u.left),u},Jt(o,a,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Ni(t){const{width:o,height:e}=Kt(t);return{width:o,height:e}}function vi(t,o,e){const c=Q(o),s=le(o),i=e==="fixed",r=Ne(t,!0,i,o);let a={scrollLeft:0,scrollTop:0};const h=ae(0);if(c||!c&&!i)if((se(o)!=="body"||Be(s))&&(a=$e(o)),c){const g=Ne(o,!0,i,o);h.x=g.x+o.clientLeft,h.y=g.y+o.clientTop}else s&&(h.x=Ut(s));const u=r.left+a.scrollLeft-h.x,p=r.top+a.scrollTop-h.y;return{x:u,y:p,width:r.width,height:r.height}}function Xt(t,o){return!Q(t)||U(t).position==="fixed"?null:o?o(t):t.offsetParent}function Qt(t,o){const e=K(t);if(!Q(t)||Gt(t))return e;let c=Xt(t,o);for(;c&&bi(c)&&U(c).position==="static";)c=Xt(c,o);return c&&(se(c)==="html"||se(c)==="body"&&U(c).position==="static"&&!rt(c))?e:c||yi(t)||e}const Mi=async function(t){const o=this.getOffsetParent||Qt,e=this.getDimensions;return{reference:vi(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function Ii(t){return U(t).direction==="rtl"}const Oi={convertOffsetParentRelativeRectToViewportRelativeRect:wi,getDocumentElement:le,getClippingRect:Bi,getOffsetParent:Qt,getElementRects:Mi,getClientRects:Si,getDimensions:Ni,getScale:_e,isElement:ne,isRTL:Ii},Vi=gi,Li=(t,o,e)=>{const c=new Map,s={platform:Oi,...e},i={...s.platform,_c:c};return fi(t,o,{...s,platform:i})},Wl="",Pi={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,this.alwaysVisible||(this.parentNode.addEventListener("focus",this.showPopover,!0),this.parentNode.addEventListener("blur",this.hidePopover,!0),this.parentNode.addEventListener("mouseover",this.showPopover),this.parentNode.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Li(this.parentNode,this.$refs.popover,{middleware:[Vi({allowedPlacements:this.position})]}).then(({x:t,y:o,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${o}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 Ai(t,o,e,c,s,i){return n.openBlock(),n.createBlock(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"popover",class:n.normalizeClass(i.classes)},[n.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[n.vShow,s.isVisible]])]),_:3})}const en=T(Pi,[["render",Ai],["__scopeId","data-v-abbb57fc"]]),ql="",Fi={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:en}},Ri={key:0};function zi(t,o,e,c,s,i){const r=n.resolveComponent("ib-popover");return n.openBlock(),n.createBlock(r,{position:e.position,"always-visible":e.alwaysVisible,class:n.normalizeClass(i.classList)},{default:n.withCtx(()=>[e.title?(n.openBlock(),n.createElementBlock("b",Ri,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("p",null,n.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const ue=T(Fi,[["render",zi],["__scopeId","data-v-796ac7bb"]]),tn={[de.primary]:de.primary,[de.tertiary]:de.tertiary,[de.ghost]:de.ghost,white:"white"},nn={xs:"xs",s:"s",m:"m"},Gl="",Hi={name:"IbIconButton",props:{kind:{type:String,default:tn.primary,validator:t=>Object.keys(tn).includes(t)},size:{type:String,default:nn.s,validator:t=>Object.keys(nn).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,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:It,IbTooltip:ue},inheritAttrs:!1};function ji(t,o,e,c,s,i){const r=n.resolveComponent("ib-tooltip"),a=n.resolveComponent("ib-button");return n.openBlock(),n.createBlock(a,n.mergeProps(i.attrs,{href:e.href,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"default"),e.helpText.length?(n.openBlock(),n.createBlock(r,{key:0,text:e.helpText},null,8,["text"])):n.createCommentVNode("",!0)]),_:3},16,["href","kind","disabled","prevent-default"])}const X=T(Hi,[["render",ji]]),Ye={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},Ul="",$i={name:"IbAlert",props:{type:{type:String,default:Ye.alert,validator:t=>Object.keys(Ye).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{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),o=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!o||!t||(parseInt(t.width)<=o&&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===Ye.info?"information-circle-outline":this.type===Ye.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:P,IbIconButton:X}},Yi={ref:"content",class:"content"},Ki={class:"content-head"},Wi={key:1,class:"ib-alert-title"},qi={class:"text-content"},Gi={class:"link"};function Ui(t,o,e,c,s,i){var h;const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createElementBlock("div",{role:"alert",class:n.normalizeClass(i.classes)},[n.createElementVNode("div",Yi,[n.createElementVNode("span",Ki,[e.showIcon?(n.openBlock(),n.createBlock(r,{key:0,class:"ib-alert-icon",name:i.iconName},null,8,["name"])):n.createCommentVNode("",!0),(h=e.title)!=null&&h.length?(n.openBlock(),n.createElementBlock("b",Wi,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0)]),n.createElementVNode("span",qi,[n.renderSlot(t.$slots,"default",{},void 0,!0)]),n.createElementVNode("div",Gi,[n.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(n.openBlock(),n.createBlock(a,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:i.close},{default:n.withCtx(()=>[n.createVNode(r,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):n.createCommentVNode("",!0)],2)}const ke=T($i,[["render",Ui],["__scopeId","data-v-dec06c47"]]),Ji={M:"m",L:"l"},Jl="",Zi={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Ji.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t,o;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((o=this.lastName)==null?void 0:o.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:P}},Xi=["src","alt"];function Qi(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(i.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Xi)):e.src&&e.userAvatar?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["user-avatar",i.classList]),style:n.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):i.validateName?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass([i.classList,"default-avatar"])},n.toDisplayString(i.initials),3)):(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["empty-avatar",i.classList])},[n.createVNode(r,{name:"camera-outline"})],2))}const eo=T(Zi,[["render",Qi],["__scopeId","data-v-8ba12d0f"]]),Zl="",to={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 no(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(i.classes)},n.toDisplayString(i.normalizeContent),3)}const io=T(to,[["render",no],["__scopeId","data-v-328df75a"]]),Xl="",oo={name:"IbButtonGroup"},ro={class:"ib-button-group"};function ao(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",ro,[n.renderSlot(t.$slots,"default")])}const so=T(oo,[["render",ao]]),Ce={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Ql="",lo={props:{status:{type:String,default:Ce.neutral,validator:t=>Object.keys(Ce).includes(t)},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){switch(this.status){case Ce.success:return"checkmark-outline";case Ce.neutral:return"time-outline";case Ce.info:return"information-circle-outline";case Ce.error:return"close-outline";default:return""}}},components:{IbIcon:P}};function co(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.classes)},[e.showIcon&&i.iconName.length?(n.openBlock(),n.createBlock(r,{key:0,name:i.iconName},null,8,["name"])):n.createCommentVNode("",!0),n.createElementVNode("span",null,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const ho=T(lo,[["render",co],["__scopeId","data-v-3604890c"]]),uo={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"},ec="",tc="",fo={name:"IbTooltip",props:{position:{type:String,default:uo.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:X,IbIcon:P}},po={class:"ib-toggle-tip-head"},mo={class:"ib-toggle-tip-content"},go={class:"ib-toggle-tip-button-set"};function bo(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createBlock(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(i.classes)},[n.createElementVNode("div",po,[n.createElementVNode("p",null,n.toDisplayString(e.title),1),n.createVNode(a,{class:"close-button",kind:"ghost",onClick:n.withModifiers(i.close,["prevent"])},{default:n.withCtx(()=>[n.createVNode(r,{name:"close-outline"})]),_:1},8,["onClick"])]),n.createElementVNode("div",mo,[n.renderSlot(t.$slots,"default",{},void 0,!0)]),n.createElementVNode("div",go,[n.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[n.vShow,s.isOpenedState]])]),_:3})}const on=T(fo,[["render",bo],["__scopeId","data-v-9e7c679e"]]),lt=27,rn=32,yo=13,an=9,_o=38,ko=37,Co=39,sn=40,wo="click",{performance:Ke}=window,So=typeof(Ke==null?void 0:Ke.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Ke.now():()=>Date.now(),ve=new Map;let Me=!1;const ln=t=>{ve.forEach(({bindTimeStamp:o,callback:e},c)=>{if(!(c.contains(t.target)||t.timeStamp<=o))try{e(t)}catch(s){console.error(s)}})},Eo=()=>{Me||(document.addEventListener("click",ln,{capture:!0}),Me=!0)},xo=()=>{Me&&(document.removeEventListener("click",ln),Me=!1)},ct={created:(t,{value:o,arg:e="click"})=>{if(typeof o!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof o}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);ve.has(t)||(Me||Eo(),ve.set(t,{bindTimeStamp:So(),callback:o}))},beforeUnmount:t=>{ve.delete(t),ve.size===0&&xo()}},Ie={left:"left",right:"right",center:"center"},We={top:"top",bottom:"bottom"},oc="",rc="",Do={name:"IbDropdown",directives:{Outside:ct},props:{vertical:{type:String,default:We.bottom},horizontal:{type:String,default:Ie.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:wo},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===yo||t.keyCode===rn)&&(t.preventDefault(),this.toggle()),t.keyCode===sn&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===lt&&(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===We.bottom?" dropdown-bottom":" dropdown-top",o=this.horizontal===Ie.left?" dropdown-left":this.horizontal===Ie.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+o+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)}},To={class:"ib-dropdown"},Bo={class:"footer-slot"};function No(t,o,e,c,s,i){const r=n.resolveDirective("outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",To,[i.hasTrigger&&e.triggerType==="click"?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["dropdown-trigger",i.triggerClasses]),ref:"dropdown",onKeydown:o[0]||(o[0]=(...a)=>i.onKeydown&&i.onKeydown(...a)),onClick:o[1]||(o[1]=n.withModifiers((...a)=>i.toggle&&i.toggle(...a),["prevent","stop"]))},[n.renderSlot(t.$slots,"trigger",{isOpened:s.isOpenedState},void 0,!0)],34)):n.createCommentVNode("",!0),i.hasTrigger&&e.triggerType==="hover"?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(["dropdown-trigger",i.triggerClasses]),onMouseenter:o[2]||(o[2]=(...a)=>i.debouncedOpen&&i.debouncedOpen(...a)),onMouseleave:o[3]||(o[3]=(...a)=>i.debouncedClose&&i.debouncedClose(...a))},[n.renderSlot(t.$slots,"trigger",{isOpened:s.isOpenedState},void 0,!0)],34)):n.createCommentVNode("",!0),!e.destroyOnHide||s.isOpenedState?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:2,ref:"body",class:n.normalizeClass("ib-dropdown-menu "+i.classes)},[n.createElementVNode("div",{class:"dropdown-body",onClick:o[5]||(o[5]=(...a)=>i.closeOnClickIfRequired&&i.closeOnClickIfRequired(...a))},[n.renderSlot(t.$slots,"body",{isOpenedState:s.isOpenedState},void 0,!0),e.showCloseIcon?(n.openBlock(),n.createElementBlock("span",{key:0,class:"close",onClick:o[4]||(o[4]=(...a)=>i.close&&i.close(...a))},[n.renderSlot(t.$slots,"close",{},void 0,!0)])):n.createCommentVNode("",!0)]),n.createElementVNode("div",Bo,[n.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[n.vShow,s.isOpenedState]]):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"before",onClick:o[6]||(o[6]=(...a)=>i.close&&i.close(...a))},[n.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[r,i.close]])}const qe=T(Do,[["render",No],["__scopeId","data-v-dfb4a39a"]]),ac="",vo={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var o,e,c,s,i;if(t.keyCode===sn){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const r=document.activeElement,a=r.querySelector(`.${this.rootClass}`);let h=r.nextElementSibling?r.nextElementSibling:(o=r.parentNode.nextElementSibling)==null?void 0:o.childNodes[0];if(a&&window.getComputedStyle(a).display!=="none"){a.querySelector('a, button, input, [tabindex="0"]').focus();return}if(h){h.focus();return}const u=(c=(e=r.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:c.nextElementSibling.childNodes[0];u&&u.nodeName!=="#text"&&u.focus()}if(t.keyCode===_o){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const r=document.activeElement,a=r.previousElementSibling?r.previousElementSibling:(s=r.parentNode.previousElementSibling)==null?void 0:s.childNodes[0];if(!a){r.closest(`.${this.rootClass}`).parentNode.focus();return}if(a&&a.nodeName!=="#text"){const h=a==null?void 0:a.querySelector(`.${this.rootClass}`);if(h&&window.getComputedStyle(h).display!=="none"){const u=Array.from(h.childNodes).filter(p=>p.nodeName!=="#text");(i=u[u.length-1])==null||i.childNodes[0].focus();return}a.focus()}}}}};function Mo(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("ul",{class:n.normalizeClass(s.rootClass),onKeydown:o[0]||(o[0]=(...r)=>i.onKeydown&&i.onKeydown(...r))},[n.renderSlot(t.$slots,"default")],34)}const dt=T(vo,[["render",Mo]]),sc="",Io={props:{vertical:{type:String,default:We.bottom},horizontal:{type:String,default:Ie.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:qe,IbList:dt}},Oo={class:"dropdown-list-wrapper"};function Vo(t,o,e,c,s,i){const r=n.resolveComponent("ib-list"),a=n.resolveComponent("ib-dropdown");return n.openBlock(),n.createElementBlock("div",Oo,[n.createVNode(a,n.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:i.proxyEvents}),n.createSlots({body:n.withCtx(({isOpened:h})=>[n.createVNode(r,{ref:"list",class:"list"},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"body",{isOpenedState:h})]),_:2},1536)]),_:2},[i.hasTrigger?{name:"trigger",fn:n.withCtx(({isOpened:h})=>[n.renderSlot(t.$slots,"trigger",{isOpened:h})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const Ge=T(Io,[["render",Vo]]),lc="",Lo={props:{checked:{type:Boolean,default:!1},href:{type:String}},computed:{attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),t}}},Po={class:"dropdown-item-wrapper"};function Ao(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("li",Po,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.href?"a":"div"),n.mergeProps({class:e.checked?"active":""},i.attrs,{tabindex:"0"}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{ref:"slot"})]),_:3},16,["class"]))])}const ht=T(Lo,[["render",Ao]]),Fo={common:"common",danger:"danger"},cc="",Ro={name:"IbSplitButton",props:{id:{type:String,default:()=>Z()},kind:{type:String,default:Fo.common},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((o,e)=>{o.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const o=localStorage.getItem(`split-button-${this.id}`);o&&(this.activeElemIdx=o)}this.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:P,IbDropdownList:Ge},methods:{setActiveItem(){this.mainButtonAttrs=this.$slots.default()[this.activeElemIdx].props,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!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()}}},zo=["disabled"],Ho=["disabled"],jo=["disabled"],$o={ref:"list"};function Yo(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-dropdown-list");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.classes)},[s.isLink?(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},s.mainButtonAttrs,{onClick:o[0]||(o[0]=(...h)=>i.onClickLink&&i.onClickLink(...h))}),n.toDisplayString(s.content),17,Ho)):(n.openBlock(),n.createElementBlock("button",n.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},s.mainButtonAttrs),n.toDisplayString(s.content),17,zo)),n.createVNode(a,{disabled:e.disabled,closeOnClick:!0},{trigger:n.withCtx(()=>[n.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[n.createVNode(r,{name:"chevron-down-outline"})],8,jo)]),body:n.withCtx(()=>[n.createElementVNode("div",$o,[n.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Ko=T(Ro,[["render",Yo]]),dc="",Wo={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function qo(t,o,e,c,s,i){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.href.length?"a":"button"),n.mergeProps(i.attrs,{class:"ib-dropdown-item"}),{default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Go=T(Wo,[["render",qo],["__scopeId","data-v-4cf00feb"]]),ie={S:"s",M:"m",L:"l",XL:"xl"},hc="",Uo={name:"IbModal",directives:{Outside:ct},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:ie.S}},watch:{active(t){this.isActive=t}},mounted(){var o,e,c,s;const t=(e=(o=this.$refs)==null?void 0:o.modal)==null?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea");(c=t[0])==null||c.addEventListener("keydown",i=>{i.keyCode===an&&i.shiftKey&&(i.preventDefault(),t[t.length-1].focus())}),(s=t[t.length-1])==null||s.addEventListener("keydown",i=>{i.keyCode===an&&!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(){var t,o;(o=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||o.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,o;this.isActive=!1,(o=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||o.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var o;!((o=this.$refs.modal)!=null&&o.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var o;this.stopPropagation||!((o=this.$refs.trigger)!=null&&o.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===lt&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===ie.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===ie.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===ie.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===ie.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===ie.S&&t.push("modal-body-s"),this.size===ie.M&&t.push("modal-body-m"),this.size===ie.L&&t.push("modal-body-l"),this.size===ie.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:X,IbIcon:P},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Jo={key:1,class:"modal-header"},Zo={key:2,class:"modal-footer"};function Xo(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-icon-button"),h=n.resolveDirective("outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[i.hasTrigger?(n.openBlock(),n.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:o[0]||(o[0]=(...u)=>i.onTriggerBlur&&i.onTriggerBlur(...u)),onClick:o[1]||(o[1]=(...u)=>i.open&&i.open(...u))},[n.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["modal",e.classList]),ref:"modal"},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(i.bodyClassList),style:n.normalizeStyle(i.bodyStyles)},[e.showCloseButton?(n.openBlock(),n.createBlock(a,{key:0,class:"modal-close-icon",kind:"ghost",onClick:i.close},{default:n.withCtx(()=>[n.createVNode(r,{name:"close-outline"})]),_:1},8,["onClick"])):n.createCommentVNode("",!0),i.hasHeader?(n.openBlock(),n.createElementBlock("p",Jo,[n.renderSlot(t.$slots,"header",{showModal:i.showModal},void 0,!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["modal-content",{"without-title":!i.hasHeader}])},[n.renderSlot(t.$slots,"body",{showModal:i.showModal},void 0,!0)],2),i.hasFooter?(n.openBlock(),n.createElementBlock("div",Zo,[n.renderSlot(t.$slots,"footer",{showModal:i.showModal},void 0,!0)])):n.createCommentVNode("",!0)],6)),[[h,i.clickOutside]])],2),[[n.vShow,s.isActive]])]))],64)}const Qo=T(Uo,[["render",Xo],["__scopeId","data-v-e1683e53"]]);function cn(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const uc="",er={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return cn(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:Ge,IbDropdownItem:ht,IbIcon:P}},tr={class:"wrapper-tab-link dropdown-tab"},nr=["tabindex"];function ir(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-dropdown-item"),h=n.resolveComponent("ib-dropdown-list");return n.openBlock(),n.createElementBlock("div",tr,[n.createVNode(h,{disabled:s.isDisabledDropdown,"close-on-click":!0},{trigger:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(["tab-link",{active:s.selectedTabByDropdown===e.selectedTab||i.isActive,disabled:s.isDisabledDropdown}]),tabindex:s.isDisabledDropdown?-1:0},[n.createTextVNode(n.toDisplayString(e.tabs.name)+" ",1),n.createVNode(r,{name:"chevron-down"})],10,nr)]),body:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs.tabs,(u,p)=>(n.openBlock(),n.createBlock(a,{key:p,checked:u.id===e.selectedTab,href:i.createHref(u.id),tabindex:u.disabled?-1:0,class:n.normalizeClass([{disabled:u.disabled},"dropdown-tab-item"]),target:"_self",onClick:g=>i.selectTab(u.id)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const dn=T(er,[["render",ir]]),fc="",or={name:"IbTabs",props:{selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(o=>o.type===Symbol.for("v-fgt")?t.push(...o.children):t.push(o)),t.forEach(o=>{if(!o.props.name)this.tabs.push(o.props);else{const e=this.tabs.findIndex(c=>c.name===o.props.name);if(e!==-1)this.tabs[e].tabs.push(o.props);else{const c={name:o.props.name,tabs:[o.props]};this.tabs.push(c)}}});for(let o of this.tabs)if(!o.disabled)if(o.tabs){for(let e of o.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(o.id);return}},methods:{createHref(t){return cn(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:dn},emits:["changeTab"]},rr={class:"tabs"},ar={class:"tabs-list"},sr={key:0,class:"wrapper-tab-link"},lr=["href","tabindex","onClick"],cr={class:"tabs-content",ref:"tabHandler"};function dr(t,o,e,c,s,i){const r=n.resolveComponent("ib-tab-dropdown");return n.openBlock(),n.createElementBlock("div",rr,[n.createElementVNode("ul",ar,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.tabs,(a,h)=>(n.openBlock(),n.createElementBlock("li",{class:"tab-item",key:h},[a.name?(n.openBlock(),n.createBlock(r,{key:1,"selected-tab":s.selectedTab,tabs:a,onSelectTab:i.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(n.openBlock(),n.createElementBlock("div",sr,[n.createElementVNode("a",{class:n.normalizeClass(["tab-link",{active:s.selectedTab===a.id,disabled:a.disabled}]),href:i.createHref(a.id),tabindex:a.disabled?-1:0,onClick:u=>i.selectTab(a.id),target:"_self"},n.toDisplayString(a.title),11,lr)]))]))),128))]),n.createElementVNode("div",cr,[n.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const hr=T(or,[["render",dr],["__scopeId","data-v-47d103be"]]),ur={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function fr(t,o,e,c,s,i){return n.withDirectives((n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(t.$slots,"default")],512)),[[n.vShow,i.isTabActive]])}const pr=T(ur,[["render",fr]]),mr={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},gr={TYPE_ASC:"asc",TYPE_DESC:"desc"},hn={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 un{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_"+Z()}createTooltip(o,e,c){var i;if(!((i=e.text)!=null&&i.length))return;this.generateUID();const s=`
|
|
1
|
+
(function(pe,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(pe=typeof globalThis<"u"?globalThis:pe||self,i(pe.MyLib={},pe.Vue))})(this,function(pe,i){"use strict";const j0="",_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,r){return i.openBlock(),i.createElementBlock("ion-icon",{style:i.normalizeStyle(e.styles),name:e.name,class:i.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,qa)}const Be=_e(Va,[["render",Fa]]);function gt(){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})}}},V0="",Ha={name:"IbAccordion",mixins:[Fi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:gt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Be}},za=["id","aria-controls","aria-expanded"],Ua=["id","aria-labelledby"],Ka={class:"accordion-content-wrapper"};function Ga(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-accordion",{active:a.isActive}])},[i.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]=i.withModifiers((...s)=>r.onClick&&r.onClick(...s),["prevent"]))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(l,{class:"chevron-icon",name:"chevron-down-outline"})],8,za),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[i.createElementVNode("div",Ka,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ua),[[i.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 Ir(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const q0="",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=Ir({...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,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"icon"),i.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?i.withDirectives((i.openBlock(),i.createElementBlock("form",{key:0,ref:"form",method:r.formMethod,action:e.href},[i.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,Ja),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Xa),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(l,s)=>(i.openBlock(),i.createElementBlock("input",{key:s,type:"hidden",name:l,value:e.postOptions[l]},null,8,Qa))),128))],8,Za)),[[i.vShow,!1]]):i.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),r=Wi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Ji(l)),[l,Ji(l)]}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 r=Yi(n),l=Zi(n),s=Wi(l),u=Zn(n),c=r==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/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[l]-=d*(e&&c?-1:1);break;case"end":h[l]+=d*(e&&c?-1:1);break}return h}const dl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(n));let c=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Xi(c,o,u),d=o,h={},b=0;for(let m=0;m<s.length;m++){const{name:_,fn:y}=s[m],{x:g,y:w,data:v,reset:k}=await y({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:h,rects:c,platform:l,elements:{reference:t,floating:n}});p=g??p,f=w??f,h={...h,[_]:{...h[_],...v}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(c=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Xi(c,d,u)),m=-1)}return{x:p,y:f,placement:d,strategy:a,middlewareData:h}};async function cl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Gi(n,t),b=sl(h),_=s[d?f==="floating"?"reference":"floating":f],y=Jn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(_)))==null||e?_:_.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:u})),g=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),v=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:u}):g);return{top:(y.top-k.top+b.top)/v.y,bottom:(k.bottom-y.bottom+b.bottom)/v.y,left:(y.left-k.left+b.left)/v.x,right:(k.right-y.right+b.right)/v.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:r,middlewareData:l,placement:s,platform:u,elements:c}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=Ui,autoAlignment:h=!0,...b}=Gi(t,n),m=f!==void 0||d===Ui?ul(f||null,h,d):d,_=await cl(n,b),y=((e=l.autoPlacement)==null?void 0:e.index)||0,g=m[y];if(g==null)return{};const w=ol(g,r,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==g)return{reset:{placement:m[0]}};const v=[_[Zn(g)],_[w[0]],_[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:g,overflows:v}],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]),B=((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 B!==s?{data:{index:y+1,overflows:k},reset:{placement:B}}:{}}}};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 vn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=ht(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 Pr(t){const n=Mr(),e=ht(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=rn(t);for(;_t(n)&&!Xn(n);){if(Pr(n))return n;n=rn(n)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Vt(t))}function ht(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 rn(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=rn(t);return Xn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&vn(n)?n:to(n)}function Br(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=to(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],vn(a)?a:[],l.frameElement&&e?Br(l.frameElement):[]):n.concat(a,Br(a,[],e))}function no(t){const n=ht(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=_t(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Yn(e)!==r||Yn(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function ro(t){return Tt(t)?t:t.contextElement}function on(t){const n=ro(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=no(n);let l=(r?Yn(e.width):e.width)/o,s=(r?Yn(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const ml=jt(0);function io(t){const n=dt(t);return!Mr()||!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 bn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=ro(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=gl(r,e,o)?io(r):jt(0);let u=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),h=o&&Tt(o)?dt(o):o;let b=d,m=b.frameElement;for(;m&&o&&h!==b;){const _=on(m),y=m.getBoundingClientRect(),g=ht(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,v=y.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;u*=_.x,c*=_.y,p*=_.x,f*=_.y,u+=w,c+=v,b=dt(m),m=b.frameElement}}return Jn({width:p,height:f,x:u,y:c})}const yl=[":popover-open",":modal"];function oo(t){return yl.some(n=>{try{return t.matches(n)}catch{return!1}})}function vl(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const r=a==="fixed",l=qt(o),s=n?oo(n.floating):!1;if(o===l||s&&r)return e;let u={scrollLeft:0,scrollTop:0},c=jt(1);const p=jt(0),f=_t(o);if((f||!f&&!r)&&((Vt(o)!=="body"||vn(l))&&(u=Qn(o)),_t(o))){const d=bn(o);c=on(o),p.x=d.x+o.clientLeft,p.y=d.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-u.scrollLeft*c.x+p.x,y:e.y*c.y-u.scrollTop*c.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function ao(t){return bn(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),r=yn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ao(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=yn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function $l(t,n){const e=dt(t),o=qt(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,u=0;if(a){r=a.width,l=a.height;const c=Mr();(!c||c&&n==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:r,height:l,x:s,y:u}}function wl(t,n){const e=bn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=_t(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,u=a*r.x,c=o*r.y;return{width:l,height:s,x:u,y:c}}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=rn(t);return e===n||!Tt(e)||Xn(e)?!1:ht(e).position==="fixed"||so(e,n)}function kl(t,n){const e=n.get(t);if(e)return e;let o=Br(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ht(t).position==="fixed";let l=r?rn(t):t;for(;Tt(l)&&!Xn(l);){const s=ht(l),u=Pr(l);!u&&s.position==="fixed"&&(a=null),(r?!u&&!a:!u&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||vn(l)&&!u&&so(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function Cl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?kl(n,this._c):[].concat(e),o],s=l[0],u=l.reduce((c,p)=>{const f=lo(n,p,a);return c.top=yn(f.top,c.top),c.right=Ki(f.right,c.right),c.bottom=Ki(f.bottom,c.bottom),c.left=yn(f.left,c.left),c},lo(n,s,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),r=e==="fixed",l=bn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const u=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||vn(a))&&(s=Qn(n)),o){const f=bn(n,!0,r,n);u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}else a&&(u.x=ao(a));const c=l.left+s.scrollLeft-u.x,p=l.top+s.scrollTop-u.y;return{x:c,y:p,width:l.width,height:l.height}}function co(t,n){return!_t(t)||ht(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)&&ht(o).position==="static";)o=co(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Pr(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 ht(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:vl,getDocumentElement:qt,getClippingRect:Cl,getOffsetParent:uo,getElementRects:Sl,getClientRects:bl,getDimensions:Ol,getScale:on,isElement:Tt,isRTL:xl},Nl=fl,Al=(t,n,e)=>{const o=new Map,a={platform:Tl,...e},r={...a.platform,_c:o};return dl(t,n,{...a,platform:r})},F0="",Dl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{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 Il(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"popover",class:i.normalizeClass(r.classes)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[i.vShow,a.isVisible]])]),_:3})}const fo=_e(Dl,[["render",Il],["__scopeId","data-v-9313d095"]]),H0="",Pl={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}},Ml={key:0};function Bl(t,n,e,o,a,r){const l=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(l,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",Ml,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const an=_e(Pl,[["render",Bl],["__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:an},inheritAttrs:!1};function Rl(t,n,e,o,a,r){const l=i.resolveComponent("ib-tooltip"),s=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(s,i.mergeProps(r.attrs,{href:e.href,to:e.to,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default"),e.helpText.length?(i.openBlock(),i.createBlock(l,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["href","to","kind","disabled","prevent-default"])}const ct=_e(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},U0="",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:Be,IbIconButton:ct}},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,r){var u;const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",Vl,[i.createElementVNode("span",ql,[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(u=e.title)!=null&&u.length?(i.openBlock(),i.createElementBlock("b",Fl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"title",{},void 0,!0)]),i.createElementVNode("span",Hl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",zl,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.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"},K0="",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:Be}},Yl=["src","alt"];function Zl(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(r.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["user-avatar",r.classList]),style:i.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):r.validateName?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(l,{name:"camera-outline"})],2))}const Jl=_e(Wl,[["render",Zl],["__scopeId","data-v-63abd28e"]]),G0="",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,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const es=_e(Xl,[["render",Ql],["__scopeId","data-v-328df75a"]]),W0="",ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",ns,[i.renderSlot(t.$slots,"default")])}const is=_e(ts,[["render",rs]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Y0="",os={props:{status:{type:String,default:ln.neutral,validator:t=>Object.keys(ln).includes(t)},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){switch(this.status){case ln.success:return"checkmark-outline";case ln.neutral:return"time-outline";case ln.info:return"information-circle-outline";case ln.error:return"close-outline";default:return""}}},components:{IbIcon:Be}};function as(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(l,{key:0,name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("span",null,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const ls=_e(os,[["render",as],["__scopeId","data-v-3604890c"]]),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"},Z0="",J0="",ds={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:ct,IbIcon:Be}},cs={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,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",cs,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(s,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",us,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",fs,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const mo=_e(ds,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,go=32,ps=13,yo=9,ms=38,gs=37,ys=39,vo=40,vs="click",{performance:tr}=window,bs=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 bo=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",bo,{capture:!0}),$n=!0)},$s=()=>{$n&&(document.removeEventListener("click",bo),$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:bs(),callback:n}))},beforeUnmount:t=>{_n.delete(t),_n.size===0&&$s()}},wn={left:"left",right:"right",center:"center"},rr={top:"top",bottom:"bottom"},ep="",tp="",ws={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===vo&&(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)}},ks={class:"ib-dropdown"},Cs={class:"footer-slot"};function Os(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",ks,[r.hasTrigger&&e.triggerType==="click"?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s)),onClick:n[1]||(n[1]=i.withModifiers((...s)=>r.toggle&&r.toggle(...s),["prevent","stop"]))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),r.hasTrigger&&e.triggerType==="hover"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),onMouseenter:n[2]||(n[2]=(...s)=>r.debouncedOpen&&r.debouncedOpen(...s)),onMouseleave:n[3]||(n[3]=(...s)=>r.debouncedClose&&r.debouncedClose(...s))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref:"body",class:i.normalizeClass("ib-dropdown-menu "+r.classes)},[i.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...s)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...s))},[i.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Cs,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[i.vShow,a.isOpenedState]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[l,r.close]])}const ir=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),np="",Es={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===vo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let u=l.nextElementSibling?l.nextElementSibling:(n=l.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(s&&window.getComputedStyle(s).display!=="none"){s.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const c=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];c&&c.nodeName!=="#text"&&c.focus()}if(t.keyCode===ms){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.previousElementSibling?l.previousElementSibling:(a=l.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!s){l.closest(`.${this.rootClass}`).parentNode.focus();return}if(s&&s.nodeName!=="#text"){const u=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const c=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(r=c[c.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function Ss(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...l)=>r.onKeydown&&r.onKeydown(...l))},[i.renderSlot(t.$slots,"default")],34)}const Rr=_e(Es,[["render",Ss]]),rp="",xs={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}},Ts={class:"dropdown-list-wrapper"};function Ns(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Ts,[i.createVNode(s,i.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:r.proxyEvents}),i.createSlots({body:i.withCtx(({isOpened:u})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:u})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:u})=>[i.renderSlot(t.$slots,"trigger",{isOpened:u})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const or=_e(xs,[["render",Ns]]),ip="",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"},Is={class:"dropdown-item-icon"};function Ps(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ds,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Is,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const jr=_e(As,[["render",Ps],["__scopeId","data-v-65b53eff"]]),Ms={common:"common",danger:"danger"},op="",Bs={name:"IbSplitButton",props:{id:{type:String,default:()=>gt()},kind:{type:String,default:Ms.common},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()})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:or},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;delete t.disabled,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()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("router-link"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isRouterLink?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:r.onClickLink}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...c)=>r.onClickLink&&r.onClickLink(...c))}),i.toDisplayString(a.content),17,Ls)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Rs)),i.createVNode(u,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(s,{name:"chevron-down-outline"})],8,js)]),body:i.withCtx(()=>[i.createElementVNode("div",Vs,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Fs=_e(Bs,[["render",qs]]),ap="",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,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.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"},lp="",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",r=>{r.keyCode===yo&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===yo&&!r.shiftKey&&(r.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){var n,e;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&!((e=this.$refs.modal)!=null&&e.contains(t.relatedTarget))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").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:{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:ct,IbIcon:Be},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,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),u=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...c)=>r.onTriggerBlur&&r.onTriggerBlur(...c)),onClick:n[1]||(n[1]=(...c)=>r.open&&r.open(...c))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",Gs,[i.renderSlot(t.$slots,"header",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["modal-content",{"without-title":!r.hasHeader}])},[i.renderSlot(t.$slots,"body",{showModal:r.showModal},void 0,!0)],2),r.hasFooter?(i.openBlock(),i.createElementBlock("div",Ws,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[u,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-ad9343ef"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const sp="",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:Be}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ed(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[i.createVNode(u,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||r.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[i.createTextVNode(i.toDisplayString(e.tabs.name)+" ",1),i.createVNode(l,{name:"chevron-down"})],10,Qs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(c,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:c.id===e.selectedTab,href:r.createHref(c.id),tabindex:c.disabled?-1:0,class:i.normalizeClass([{disabled:c.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(c.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const $o=_e(Js,[["render",ed]]),dp="",td={name:"IbTabs",props:{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},emits:["changeTab"]},nd={class:"tabs"},rd={class:"tabs-list"},id={key:0,class:"wrapper-tab-link"},od=["href","tabindex","onClick"],ad={class:"tabs-content",ref:"tabHandler"};function ld(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",nd,[i.createElementVNode("ul",rd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,u)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:u},[s.name?(i.openBlock(),i.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",id,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:c=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,od)]))]))),128))]),i.createElementVNode("div",ad,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sd=_e(td,[["render",ld],["__scopeId","data-v-47d103be"]]),dd={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function cd(t,n,e,o,a,r){return i.withDirectives((i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default")],512)),[[i.vShow,r.isTabActive]])}const ud=_e(dd,[["render",cd]]),fd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hd={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_"+gt()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0px;
|
|
4
4
|
left: 0px;
|
|
5
|
-
|
|
5
|
+
opacity: 0;
|
|
6
|
+
`;this.tooltipContainer=document.createElement("div"),this.tooltipContainer.setAttribute("style",a),document.body.appendChild(this.tooltipContainer),this.tooltipInstance=i.createApp(an,{title:e.title,text:e.text,alwaysVisible:!0,for:this.uuid,class:this.getClassList(o)}),this.tooltipInstance.mount(this.tooltipContainer),setTimeout(()=>{var l;if((l=this.tooltipContainer)!=null&&l.firstChild){n.setAttribute("aria-describedby",this.uuid);const s=this.getPositionStyle(n,o);this.tooltipContainer.firstChild.setAttribute("style",s),this.tooltipContainer.setAttribute("style",{opacity:1})}},100)}destroyTooltip(n){var e,o;n==null||n.removeAttribute("aria-describedby"),this.uuid=null,(e=this.tooltipInstance)==null||e.unmount(),this.tooltipInstance=null,(o=this.tooltipContainer)==null||o.remove(),this.tooltipContainer=null}getPositionStyle(n,e){const{top:o,bottom:a,left:r,right:l,width:s,height:u}=n.getBoundingClientRect(),{width:c,height:p}=this.tooltipContainer.firstChild.getBoundingClientRect(),f=document.documentElement.scrollTop;let d=`
|
|
6
7
|
bottom: auto!important;
|
|
7
8
|
right: auto!important;
|
|
8
9
|
transform: none!important;
|
|
9
|
-
`;switch(e){case"bottomCenter":
|
|
10
|
-
top: ${
|
|
11
|
-
top: ${
|
|
12
|
-
top: ${
|
|
13
|
-
top: ${
|
|
14
|
-
top: ${
|
|
15
|
-
top: ${
|
|
16
|
-
top: ${
|
|
17
|
-
top: ${
|
|
18
|
-
top: ${
|
|
19
|
-
top: ${
|
|
20
|
-
top: ${
|
|
21
|
-
top: ${c-p+g-5}px!important`;break}return m}getClassList(o){return o?hn[o]:hn.topCenter}}const fe=new un,br=(t,o)=>{var s;fe.getTooltipContainer()&&fe.destroyTooltip();const e=Object.keys(o.modifiers)[0]||o.arg,c={title:((s=o.value)==null?void 0:s.title)||"",text:typeof o.value=="object"?o.value.text:o.value};fe.createTooltip(t,c,e)},yr=(t,o)=>{const e=fe.getId();if(o.getAttribute("aria-describedby")!==e)return;const c=fe.getTooltipContainer(),s=o!==t.target&&!o.contains(t.target),i=c!==t.target&&!(c!=null&&c.contains(t.target));s&&i&&fe.destroyTooltip(o)},fn=(t,o)=>{t.__tooltip_create=()=>br(t,o),t.__tooltip_destroy=e=>yr(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},pn=t=>{fe.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},ut={mounted(t,o){fn(t,o)},updated(t,o){pn(t),fn(t,o)},beforeUnmount(t){pn(t)}},pc="",_r={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:gr,sortingTypesView:mr,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,o,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",(o=this.langComponents)==null?void 0:o.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:ut},components:{IbIcon:P,IbIconButton:X,IbToggleTip:on}},kr={class:"sorting-wrapper"},Cr=["name"],wr=["aria-label"];function Sr(t,o,e,c,s,i){var p;const r=n.resolveComponent("ib-toggle-tip"),a=n.resolveComponent("ib-icon-button"),h=n.resolveComponent("ib-icon"),u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("div",kr,[e.view===s.sortingTypesView.TABLE_VIEW?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["table-sorting-wrapper",{active:s.currentTypeSort,disabled:e.disable}])},[n.createElementVNode("div",null,[n.withDirectives((n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["sorting-label",{"sorting-label-active":s.isOpenToggleTip&&i.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||i.hasToggleTip}]),type:"button",onClick:o[0]||(o[0]=g=>s.isOpenToggleTip=!s.isOpenToggleTip)},[n.createTextVNode(n.toDisplayString(e.title),1)],2)),[[u,i.sortingTooltipContent,i.sortingTooltipPosition]]),i.hasToggleTip?(n.openBlock(),n.createBlock(r,{key:0,position:"bottom-center","is-open":s.isOpenToggleTip,title:e.toggleTipTitle,onClose:o[1]||(o[1]=g=>s.isOpenToggleTip=!1)},{buttons:n.withCtx(()=>[n.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):n.createCommentVNode("",!0)]),e.hideSortingButton?n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createBlock(a,{key:0,kind:"white",size:"s",onClick:i.clickHandler},{default:n.withCtx(()=>[n.createElementVNode("ion-icon",{name:i.iconType},null,8,Cr)]),_:1},8,["onClick"])),[[u,i.tooltipIconText,e.tooltipIconPosition]])],2)):n.withDirectives((n.openBlock(),n.createElementBlock("button",{key:1,class:n.normalizeClass(["sorting-button",{active:s.currentTypeSort,disabled:e.disable}]),type:"button",onClick:o[2]||(o[2]=(...g)=>i.clickHandler&&i.clickHandler(...g)),"aria-label":e.sort},[n.createTextVNode(n.toDisplayString(e.title)+" ",1),i.iconType?(n.openBlock(),n.createBlock(h,{key:0,name:i.iconType},null,8,["name"])):n.createCommentVNode("",!0)],10,wr)),[[u,e.tooltipText,e.tooltipPosition]])])}const Er=T(_r,[["render",Sr],["__scopeId","data-v-a4394881"]]),mc="",xr={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:P,IbIconButton:X,IbDropdownItem:ht,IbDropdownList:Ge,IbTooltip:ue}},Dr={"aria-label":"breadcrumb"},Tr={class:"breadcrumb"},Br=["href"],Nr={key:1},vr=["href"];function Mr(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-tooltip"),h=n.resolveComponent("ib-icon-button"),u=n.resolveComponent("ib-dropdown-item"),p=n.resolveComponent("ib-dropdown-list");return n.openBlock(),n.createElementBlock("nav",Dr,[n.createElementVNode("ul",Tr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.items,(g,m)=>(n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass(["breadcrumb-item",m===i.last?"active":""]),"aria-current":"page",key:m},[m!==i.last&&m>e.items.length-4||m===0?(n.openBlock(),n.createElementBlock("a",{key:0,class:"ib-link",href:g.url},n.toDisplayString(g.title),9,Br)):n.createCommentVNode("",!0),m===i.last?(n.openBlock(),n.createElementBlock("p",Nr,n.toDisplayString(g.title),1)):n.createCommentVNode("",!0),i.initContextMenu&&m===e.items.length-4?(n.openBlock(),n.createBlock(p,{key:2,horizontal:"center"},{trigger:n.withCtx(()=>[n.createVNode(h,{kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(r,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(n.openBlock(),n.createBlock(a,{key:0,text:e.tooltipTextContext},null,8,["text"])):n.createCommentVNode("",!0)]),_:1})]),body:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.setItemsContextMenu,(y,E)=>(n.openBlock(),n.createBlock(u,{key:E},{default:n.withCtx(()=>[n.createElementVNode("a",{class:"context-breadcrums",href:y.url},n.toDisplayString(y.title),9,vr)]),_:2},1024))),128))]),_:2},1024)):n.createCommentVNode("",!0),m!==i.last&&m>e.items.length-5||m===0?(n.openBlock(),n.createBlock(r,{key:3,name:"chevron-forward-outline"})):n.createCommentVNode("",!0)],2))),128))])])}const Ir=T(xr,[["render",Mr],["__scopeId","data-v-5ef772a9"]]),gc="",Or={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:X,IbIcon:P,IbTooltip:ue}},Vr=["for"],Lr={key:0,class:"required"};function Pr(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-tooltip"),h=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(i.classes),for:e.for},[e.required?(n.openBlock(),n.createElementBlock("span",Lr,"* ")):n.createCommentVNode("",!0),n.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(n.openBlock(),n.createBlock(h,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:n.withCtx(()=>[n.createVNode(r,{name:"information-circle-outline"}),n.createVNode(a,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):n.createCommentVNode("",!0)],10,Vr)}const Oe=T(Or,[["render",Pr],["__scopeId","data-v-3e867259"]]),ft={text:"text",password:"password",email:"email",number:"number"},bc="",Ar={name:"IbInput",props:{type:{type:String,default:ft.text,validator:t=>Object.keys(ft).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return Z()}},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:We.bottom},settingsHorizontalPosition:{type:String,default:Ie.right},readonly:{type:Boolean,default:!1}},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))},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},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=ot({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===ft.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:ke,IbIconButton:X,IbIcon:P,IbDropdown:qe},inheritAttrs:!1},Fr=["aria-invalid","readonly","disabled","id"],Rr={class:"settings-wrapper"};function zr(t,o,e,c,s,i){var p,g;const r=n.resolveComponent("ib-alert"),a=n.resolveComponent("ib-icon"),h=n.resolveComponent("ib-icon-button"),u=n.resolveComponent("ib-dropdown");return n.openBlock(),n.createElementBlock("div",null,[e.errorMessage?(n.openBlock(),n.createBlock(r,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["ib-input-wrapper",{"has-settings":i.hasSettings}])},[e.showIcon?(n.openBlock(),n.createBlock(a,{key:0,class:"icon-search",name:"search-outline"})):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("input",n.mergeProps(i.attrs,{"onUpdate:modelValue":o[0]||(o[0]=m=>s.actualValue=m),ref:"field","aria-invalid":!!i.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:i.classes,onInput:o[1]||(o[1]=m=>i.onInput(m)),onBlur:o[2]||(o[2]=m=>i.onBlur(m)),onFocus:o[3]||(o[3]=m=>i.onFocus(m))}),null,16,Fr),[[n.vModelDynamic,s.actualValue]]),e.type!=="password"&&e.showClearButton?n.withDirectives((n.openBlock(),n.createBlock(h,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:i.clearInput,onKeypress:n.withKeys(i.clearInput,["enter"])},{default:n.withCtx(()=>[n.createVNode(a,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[n.vShow,(p=s.actualValue)==null?void 0:p.length]]):n.createCommentVNode("",!0),e.type==="password"?n.withDirectives((n.openBlock(),n.createBlock(h,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":s.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:n.withModifiers(i.toggleShowPassword,["prevent"])},{default:n.withCtx(()=>[n.createVNode(a,{name:s.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[n.vShow,(g=s.actualValue)==null?void 0:g.length]]):n.createCommentVNode("",!0),i.hasSettings?(n.openBlock(),n.createBlock(u,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:n.withCtx(()=>[n.createVNode(h,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:n.withCtx(()=>[n.createVNode(a,{name:"options"})]),_:1},8,["help-text"])]),body:n.withCtx(()=>[n.createElementVNode("div",Rr,[n.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):n.createCommentVNode("",!0)],2)])}const pt=T(Ar,[["render",zr],["__scopeId","data-v-ea1e952e"]]),yc="",Hr={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return Z()}},value:{default:1},modelValue:{type:Boolean},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}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(t){if(this.readonly){t.preventDefault();return}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={...ot({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:P},inheritAttrs:!1},jr=["aria-checked"],$r=["for","tabindex"],Yr=["name","id","value","disabled","required"],Kr={class:"ib-checkbox-body"},Wr={key:0,class:"required"},qr={class:"ib-checkbox-input"},Gr={key:1,class:"ib-checkbox-label"},Ur={key:0,class:"required"};function Jr(t,o,e,c,s,i){var a;const r=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{role:"checkbox",class:n.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class]),"aria-checked":!!s.checked},[n.createElementVNode("label",n.mergeProps(i.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onClick:o[2]||(o[2]=n.withModifiers((...h)=>i.onChange&&i.onChange(...h),["prevent","stop"])),onKeypress:o[3]||(o[3]=n.withModifiers((...h)=>i.onChange&&i.onChange(...h),["prevent"]))}),[n.withDirectives(n.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,disabled:e.disabled,required:e.required,"onUpdate:modelValue":o[0]||(o[0]=h=>s.checked=h),onClick:o[1]||(o[1]=(...h)=>i.onChange&&i.onChange(...h))},null,8,Yr),[[n.vModelCheckbox,s.checked]]),n.createElementVNode("div",Kr,[e.labelPosition==="left"&&e.label.length?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(n.openBlock(),n.createElementBlock("span",Wr,"*")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.label),1)],2)):n.createCommentVNode("",!0),n.createElementVNode("span",qr,[n.withDirectives(n.createVNode(r,{name:"checkmark-sharp"},null,512),[[n.vShow,s.checked&&!i.indeterminate]]),n.withDirectives(n.createVNode(r,{class:n.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[n.vShow,i.indeterminate]])]),e.labelPosition==="right"&&((a=e.label)!=null&&a.length)?(n.openBlock(),n.createElementBlock("span",Gr,[e.required?(n.openBlock(),n.createElementBlock("span",Ur,"*")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.label),1)])):n.createCommentVNode("",!0)])],16,$r)],10,jr)}const mt=T(Hr,[["render",Jr]]),_c="",Zr={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>Z()},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:P,IbTooltip:ue}},Xr=["aria-checked","tabindex"],Qr={class:"toggle-wrapper",ref:"wrapper"},ea={class:"toggle",ref:"toggle"},ta=["name","checked","id","disabled"],na=n.createElementVNode("span",{class:"toggle-slider round"},null,-1),ia={key:0,class:"toggle-label"};function oa(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-tooltip");return n.openBlock(),n.createElementBlock("label",{role:"switch","aria-checked":s.checked,tabindex:e.disabled?-1:0,class:n.normalizeClass(i.classes),onKeypress:[o[2]||(o[2]=n.withKeys(n.withModifiers((...h)=>i.onChange&&i.onChange(...h),["prevent"]),["space"])),o[3]||(o[3]=n.withKeys(n.withModifiers((...h)=>i.onChange&&i.onChange(...h),["prevent"]),["enter"]))]},[n.createElementVNode("div",Qr,[n.createElementVNode("div",ea,[n.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:s.checked,id:e.id,disabled:e.disabled,onClick:o[0]||(o[0]=(...h)=>i.onChange&&i.onChange(...h)),onInput:o[1]||(o[1]=n.withModifiers(()=>{},["stop"]))},null,40,ta),na,n.createVNode(r,{class:"checked-icon",name:"checkmark"}),n.createVNode(r,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(n.openBlock(),n.createElementBlock("span",ia,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0),e.helpMessage.length?(n.openBlock(),n.createBlock(a,{key:1,text:s.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):n.createCommentVNode("",!0)],42,Xr)}const mn=T(Zr,[["render",oa]]);function gn(t){return t.scrollHeight>t.clientHeight}const kc="",ra={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}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{gn(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===rn&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===Co&&(this.option.isChildrenVisible=!0),t.keyCode===ko&&(this.option.isChildrenVisible=!1))},onChange(){var t,o;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((o=this.$refs.component)==null||o.onChange())},toggle(t,o=!0){this.check(this.option,t,!0,o)},check(t,o,e,c){this.$emit("check",t,o,e),c&&t.children&&t.children.forEach(s=>{this.check(s,o,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,o,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,o,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,o=t>=this.option.children.length;(!this.option.checked&&o&&this.parentAutoCheck||this.option.checked&&!o)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,o,e=!1){let c=0;return t.children&&t.children.forEach(s=>{(!o||o(s))&&c++,e&&(c+=this.calculateChildren(s,o,e))}),c},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?mn:mt},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:P,List:dt,IbIconButton:X},directives:{Tooltip:ut}},aa=["aria-selected","aria-label","id"],sa={key:0,class:"option-label"},la={key:1,class:"option-label"},ca=["innerHTML"],da=["innerHTML"],ha={key:2,class:"option-label"};function ua(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon"),a=n.resolveComponent("ib-icon-button"),h=n.resolveComponent("select-option"),u=n.resolveComponent("list"),p=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("li",null,[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.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,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":i.isChecked(e.option),"aria-label":e.option.title,id:"option-"+i.id,onKeydown:o[3]||(o[3]=n.withModifiers((...g)=>i.onKeydown&&i.onKeydown(...g),["self"])),onFocus:o[4]||(o[4]=g=>t.$emit("onFocus",`option-${i.id}`))},[n.withDirectives(n.createVNode(a,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:i.toggleChildrenVisibility},{default:n.withCtx(()=>[n.createVNode(r,{name:i.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[n.vShow,i.hasVisibleChildren]]),n.createElementVNode("div",{onClick:o[1]||(o[1]=n.withModifiers((...g)=>i.onChange&&i.onChange(...g),["prevent"])),class:n.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":i.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[n.withDirectives((n.openBlock(),n.createBlock(n.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,"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"])),[[n.vShow,e.showInput]]),e.isBookmarkable?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[i.hasChildren?(n.openBlock(),n.createElementBlock("span",la,n.toDisplayString(e.option.title),1)):(n.openBlock(),n.createElementBlock("span",sa,[n.createTextVNode(n.toDisplayString(e.option.title)+" ",1),n.createVNode(r,{name:"star",onClick:o[0]||(o[0]=n.withModifiers(g=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[i.hasChildren?(n.openBlock(),n.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,da)):(n.openBlock(),n.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,ca))],64)):(n.openBlock(),n.createElementBlock("span",ha,n.toDisplayString(e.option.title),1))],2),i.hasChildren?n.withDirectives((n.openBlock(),n.createBlock(u,{key:0},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.option.children,g=>n.withDirectives((n.openBlock(),n.createBlock(h,{key:g.value,option:g,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:i.checkChildren,onToggleBookmark:o[2]||(o[2]=m=>t.$emit("toggle-bookmark",m)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[n.vShow,g.visible]])),128))]),_:1},512)),[[n.vShow,i.hasVisibleChildren&&e.option.isChildrenVisible]]):n.createCommentVNode("",!0)],42,aa)),[[p,s.showTooltip?e.option.title:""]])])}const fa=T(ra,[["render",ua]]);var bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _n={exports:{}};/*!***************************************************
|
|
10
|
+
`;switch(e){case"bottomCenter":d=d+`left: ${r+s/2-c/2}px!important;
|
|
11
|
+
top: ${a+f+5}px!important;`;break;case"bottomLeft":d=d+`left: ${l-c-s/2+14}px!important;
|
|
12
|
+
top: ${a+f+5}px!important;`;break;case"bottomRight":d=d+`left: ${r+s/2-14}px!important;
|
|
13
|
+
top: ${a+f+5}px!important;`;break;case"topLeft":d=d+`left: ${l-c-s/2+14}px!important;
|
|
14
|
+
top: ${o-p+f-5}px!important;`;break;case"topRight":d=d+`left: ${r+s/2-14}px!important;
|
|
15
|
+
top: ${o-p+f-5}px!important;`;break;case"leftTop":d=d+`left: ${r-c-5}px!important;
|
|
16
|
+
top: ${a-p-u/2+f+12}px!important`;break;case"leftCenter":d=d+`left: ${r-c-5}px!important;
|
|
17
|
+
top: ${a+f-p/2-u/2}px!important;`;break;case"leftBottom":d=d+`left: ${r-c-5}px!important;
|
|
18
|
+
top: ${a+f-u/2-12}px!important;`;break;case"rightTop":d=d+`left: ${l+5}px!important;
|
|
19
|
+
top: ${a-p-u/2+f+12}px!important`;break;case"rightCenter":d=d+`left: ${l+5}px!important;
|
|
20
|
+
top: ${a+f-p/2-u/2}px!important;`;break;case"rightBottom":d=d+`left: ${l+5}px!important;
|
|
21
|
+
top: ${a+f-u/2-12}px!important`;break;default:d=d+`left: ${r+s/2-c/2}px!important;
|
|
22
|
+
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?wo[n]:wo.topCenter}}const Ht=new ko,pd=(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)},md=(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),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Ht.destroyTooltip(n)},Co=(t,n)=>{t.__tooltip_create=()=>pd(t,n),t.__tooltip_destroy=e=>md(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)},sn={mounted(t,n){Co(t,n)},updated(t,n){Oo(t),Co(t,n)},beforeUnmount(t){Oo(t)}},cp="",gd={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:hd,sortingTypesView:fd,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:sn},components:{IbIcon:Be,IbIconButton:ct,IbToggleTip:mo}},yd={class:"sorting-wrapper"},vd=["name"],bd=["aria-label"];function _d(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("ib-icon"),c=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",yd,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&r.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[c,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(l,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,vd)]),_:1},8,["onClick"])),[[c,r.tooltipIconText,e.tooltipIconPosition]])],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...f)=>r.clickHandler&&r.clickHandler(...f)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(u,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,bd)),[[c,e.tooltipText,e.tooltipPosition]])])}const $d=_e(gd,[["render",_d],["__scopeId","data-v-a4394881"]]),up="",wd={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:Be,IbIconButton:ct,IbDropdownItem:jr,IbDropdownList:or,IbTooltip:an}},kd={"aria-label":"breadcrumb"},Cd={class:"breadcrumb"},Od=["href"],Ed={key:1},Sd=["href"];function xd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",kd,[i.createElementVNode("ul",Cd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,Od)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",Ed,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(u,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(h,b)=>(i.openBlock(),i.createBlock(c,{key:b},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:h.url},i.toDisplayString(h.title),9,Sd)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(l,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const Td=_e(wd,[["render",xd],["__scopeId","data-v-5ef772a9"]]),fp="",Nd={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:ct,IbIcon:Be},directives:{Tooltip:sn}},Ad=["for"],Dd={key:0,class:"required"};function Id(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),u=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",Dd,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length||Object.keys(e.infoText).length?i.withDirectives((i.openBlock(),i.createBlock(s,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(l,{name:"information-circle-outline"})]),_:1})),[[u,e.infoText,e.tooltipPosition]]):i.createCommentVNode("",!0)],10,Ad)}const kn=_e(Nd,[["render",Id],["__scopeId","data-v-20191b6d"]]),Vr={text:"text",password:"password",email:"email",number:"number"},hp="",Pd={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 gt()}},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}},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))},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},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Ir({...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:ct,IbIcon:Be,IbDropdown:ir},inheritAttrs:!1},Md=["aria-invalid","readonly","disabled","id","autocomplete"],Bd={class:"settings-wrapper"};function Ld(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,autocomplete:e.autocomplete,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,Md),[[i.vModelDynamic,a.actualValue,void 0,{trim:!0}]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.toString().length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(u,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(f=a.actualValue)==null?void 0:f.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(c,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(u,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",Bd,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const qr=_e(Pd,[["render",Ld],["__scopeId","data-v-5ca797fb"]]),pp="",Rd={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return gt()}},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={...Ir({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Be},inheritAttrs:!1},jd=["for","tabindex","aria-checked"],Vd=["name","id","value","disabled","required"],qd=["name","disabled","required"],Fd={class:"ib-checkbox-body"},Hd={key:0,class:"required"},zd={class:"ib-checkbox-input"},Ud={key:1,class:"ib-checkbox-label"},Kd={key:0,class:"required"};function Gd(t,n,e,o,a,r){var s;const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class])},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,"aria-checked":!!a.checked,onClick:n[2]||(n[2]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]))}),[i.withDirectives(i.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)=>r.onChange&&r.onChange(...u))},null,8,Vd),[[i.vModelCheckbox,a.checked]]),!e.value&&!a.checked?(i.openBlock(),i.createElementBlock("input",{key:0,value:"0",type:"hidden",name:e.name,disabled:e.disabled,required:e.required},null,8,qd)):i.createCommentVNode("",!0),i.createElementVNode("div",Fd,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",Hd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",zd,[i.withDirectives(i.createVNode(l,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(l,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",Ud,[e.required?(i.openBlock(),i.createElementBlock("span",Kd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,jd)],2)}const Fr=_e(Rd,[["render",Gd],["__scopeId","data-v-cb198d37"]]),mp="",Wd={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>gt()},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:Be,IbTooltip:an}},Yd=["aria-checked","tabindex"],Zd={class:"toggle-wrapper",ref:"wrapper"},Jd={class:"toggle",ref:"toggle"},Xd=["name","checked","id","disabled"],Qd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),ec={key:0,class:"toggle-label"};function tc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["enter"]))]},[i.createElementVNode("div",Zd,[i.createElementVNode("div",Jd,[i.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)=>r.onChange&&r.onChange(...u)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Xd),Qd,i.createVNode(l,{class:"checked-icon",name:"checkmark"}),i.createVNode(l,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",ec,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,Yd)}const Eo=_e(Wd,[["render",tc]]);function So(t){return t.scrollHeight>t.clientHeight}const gp="",nc={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}},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){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;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:Be,List:Rr,IbIconButton:ct},directives:{Tooltip:sn}},rc=["aria-selected","aria-label","id"],ic={key:0,class:"bookmarkable-option-content"},oc={class:"option-label"},ac={key:1,class:"option-label"},lc=["innerHTML"],sc=["innerHTML"],dc={key:2,class:"option-label"};function cc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("select-option"),c=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.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":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",ac,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("div",ic,[i.createElementVNode("span",oc,i.toDisplayString(e.option.title),1),i.withDirectives((i.openBlock(),i.createBlock(s,{onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"])),kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:e.isBookmarked?"star":"star-outline"},null,8,["name"])]),_:1})),[[p,t.lang(e.isBookmarked?"unpin":"pin_to_top","select")]])]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,sc)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,lc))],64)):(i.openBlock(),i.createElementBlock("span",dc,[e.option.icon?(i.openBlock(),i.createBlock(l,{key:0,name:e.option.icon},null,8,["name"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.option.title),1)]))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(c,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,f=>i.withDirectives((i.openBlock(),i.createBlock(u,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,rc)),[[p,a.showTooltip?e.option.isDisabled?e.option.disableTooltip:e.option.title:""]])])}const uc=_e(nc,[["render",cc]]);var Re=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:{}};/*!***************************************************
|
|
22
23
|
* mark.js v8.11.1
|
|
23
24
|
* https://markjs.io/
|
|
24
25
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|
25
26
|
* Released under the MIT license https://git.io/vwTVl
|
|
26
|
-
*****************************************************/(function(t,o){(function(e,c){t.exports=c()})(bn,function(){class e{constructor(i,r=!0,a=[],h=5e3){this.ctx=i,this.iframes=r,this.exclude=a,this.iframesTimeout=h}static matches(i,r){const a=typeof r=="string"?[r]:r,h=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector;if(h){let u=!1;return a.every(p=>!h.call(i,p)||(u=!0,!1)),u}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(r=>{const a=i.filter(h=>h.contains(r)).length>0;i.indexOf(r)!==-1||a||i.push(r)}),i}getIframeContents(i,r,a=()=>{}){let h;try{const u=i.contentWindow;if(h=u.document,!u||!h)throw new Error("iframe inaccessible")}catch{a()}h&&r(h)}isIframeBlank(i){const r="about:blank",a=i.getAttribute("src").trim();return i.contentWindow.location.href===r&&a!==r&&a}observeIframeLoad(i,r,a){let h=!1,u=null;const p=()=>{if(!h){h=!0,clearTimeout(u);try{this.isIframeBlank(i)||(i.removeEventListener("load",p),this.getIframeContents(i,r,a))}catch{a()}}};i.addEventListener("load",p),u=setTimeout(p,this.iframesTimeout)}onIframeReady(i,r,a){try{i.contentWindow.document.readyState==="complete"?this.isIframeBlank(i)?this.observeIframeLoad(i,r,a):this.getIframeContents(i,r,a):this.observeIframeLoad(i,r,a)}catch{a()}}waitForIframes(i,r){let a=0;this.forEachIframe(i,()=>!0,h=>{a++,this.waitForIframes(h.querySelector("html"),()=>{--a||r()})},h=>{h||r()})}forEachIframe(i,r,a,h=()=>{}){let u=i.querySelectorAll("iframe"),p=u.length,g=0;u=Array.prototype.slice.call(u);const m=()=>{--p<=0&&h(g)};p||m(),u.forEach(y=>{e.matches(y,this.exclude)?m():this.onIframeReady(y,E=>{r(y)&&(g++,a(E)),m()},m)})}createIterator(i,r,a){return document.createNodeIterator(i,r,a,!1)}createInstanceOnIframe(i){return new e(i.querySelector("html"),this.iframes)}compareNodeIframe(i,r,a){const h=i.compareDocumentPosition(a),u=Node.DOCUMENT_POSITION_PRECEDING;return!!(h&u&&(r===null||r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(i){const r=i.previousNode();return{prevNode:r,node:(r===null||i.nextNode())&&i.nextNode()}}checkIframeFilter(i,r,a,h){let u=!1,p=!1;return h.forEach((g,m)=>{g.val===a&&(u=m,p=g.handled)}),this.compareNodeIframe(i,r,a)?(u!==!1||p?u===!1||p||(h[u].handled=!0):h.push({val:a,handled:!0}),!0):(u===!1&&h.push({val:a,handled:!1}),!1)}handleOpenIframes(i,r,a,h){i.forEach(u=>{u.handled||this.getIframeContents(u.val,p=>{this.createInstanceOnIframe(p).forEachNode(r,a,h)})})}iterateThroughNodes(i,r,a,h,u){const p=this.createIterator(r,i,h);let g,m,y=[],E=[],k=()=>({prevNode:m,node:g}=this.getIteratorNode(p),g);for(;k();)this.iframes&&this.forEachIframe(r,B=>this.checkIframeFilter(g,m,B,y),B=>{this.createInstanceOnIframe(B).forEachNode(i,M=>E.push(M),h)}),E.push(g);E.forEach(B=>{a(B)}),this.iframes&&this.handleOpenIframes(y,i,a,h),u()}forEachNode(i,r,a,h=()=>{}){const u=this.getContexts();let p=u.length;p||h(),u.forEach(g=>{const m=()=>{this.iterateThroughNodes(i,g,r,a,()=>{--p<=0&&h()})};this.iframes?this.waitForIframes(g,m):m()})}}class c{constructor(i){this.ctx=i,this.ie=!1;const r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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,r="debug"){const a=this.opt.log;this.opt.debug&&typeof a=="object"&&typeof a[r]=="function"&&a[r](`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 r=this.opt.synonyms,a=this.opt.caseSensitive?"":"i",h=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let u in r)if(r.hasOwnProperty(u)){const p=r[u],g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(u):this.escapeStr(u),m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);g!==""&&m!==""&&(i=i.replace(new RegExp(`(${this.escapeStr(g)}|${this.escapeStr(m)})`,`gm${a}`),h+`(${this.processSynomyms(g)}|${this.processSynomyms(m)})`+h))}return i}processSynomyms(i){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(i=this.setupIgnoreJoinersRegExp(i)),i}setupWildcardsRegExp(i){return(i=i.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(i){let r=this.opt.wildcards==="withSpaces";return i.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(i){return i.replace(/[^(|)\\]/g,(r,a,h)=>{let u=h.charAt(a+1);return/[(|)\\]/.test(u)||u===""?r:r+"\0"})}createJoinersRegExp(i){let r=[];const a=this.opt.ignorePunctuation;return Array.isArray(a)&&a.length&&r.push(this.escapeStr(a.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?i.split(/\u0000+/).join(`[${r.join("")}]*`):i}createDiacriticsRegExp(i){const r=this.opt.caseSensitive?"":"i",a=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 h=[];return i.split("").forEach(u=>{a.every(p=>{if(p.indexOf(u)!==-1){if(h.indexOf(p)>-1)return!1;i=i.replace(new RegExp(`[${p}]`,`gm${r}`),`[${p}]`),h.push(p)}return!0})}),i}createMergedBlanksRegExp(i){return i.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(i){const r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let a=this.opt.accuracy,h=typeof a=="string"?a:a.value,u=typeof a=="string"?[]:a.limiters,p="";switch(u.forEach(g=>{p+=`|${this.escapeStr(g)}`}),h){case"partially":default:return`()(${i})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(r))}]*${i}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${i})(?=$|\\s${p})`}}getSeparatedKeywords(i){let r=[];return i.forEach(a=>{this.opt.separateWordSearch?a.split(" ").forEach(h=>{h.trim()&&r.indexOf(h)===-1&&r.push(h)}):a.trim()&&r.indexOf(a)===-1&&r.push(a)}),{keywords:r.sort((a,h)=>h.length-a.length),length:r.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 r=[];let a=0;return i.sort((h,u)=>h.start-u.start).forEach(h=>{let{start:u,end:p,valid:g}=this.callNoMatchOnInvalidRanges(h,a);g&&(h.start=u,h.length=p-u,r.push(h),a=p)}),r}callNoMatchOnInvalidRanges(i,r){let a,h,u=!1;return i&&i.start!==void 0?(h=(a=parseInt(i.start,10))+parseInt(i.length,10),this.isNumeric(i.start)&&this.isNumeric(i.length)&&h-r>0&&h-a>0?u=!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:a,end:h,valid:u}}checkWhitespaceRanges(i,r,a){let h,u=!0,p=a.length,g=r-p,m=parseInt(i.start,10)-g;return(h=(m=m>p?p:m)+parseInt(i.length,10))>p&&(h=p,this.log(`End range automatically set to the max value of ${p}`)),m<0||h-m<0||m>p||h>p?(u=!1,this.log(`Invalid range: ${JSON.stringify(i)}`),this.opt.noMatch(i)):a.substring(m,h).replace(/\s+/g,"")===""&&(u=!1,this.log("Skipping whitespace only range: "+JSON.stringify(i)),this.opt.noMatch(i)),{start:m,end:h,valid:u}}getTextNodes(i){let r="",a=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,h=>{a.push({start:r.length,end:(r+=h.textContent).length,node:h})},h=>this.matchesExclude(h.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{i({value:r,nodes:a})})}matchesExclude(i){return e.matches(i,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(i,r,a){const h=this.opt.element?this.opt.element:"mark",u=i.splitText(r),p=u.splitText(a-r);let g=document.createElement(h);return g.setAttribute("data-markjs","true"),this.opt.className&&g.setAttribute("class",this.opt.className),g.textContent=u.textContent,u.parentNode.replaceChild(g,u),p}wrapRangeInMappedTextNode(i,r,a,h,u){i.nodes.every((p,g)=>{const m=i.nodes[g+1];if(m===void 0||m.start>r){if(!h(p.node))return!1;const y=r-p.start,E=(a>p.end?p.end:a)-p.start,k=i.value.substr(0,p.start),B=i.value.substr(E+p.start);if(p.node=this.wrapRangeInTextNode(p.node,y,E),i.value=k+B,i.nodes.forEach((M,O)=>{O>=g&&(i.nodes[O].start>0&&O!==g&&(i.nodes[O].start-=E),i.nodes[O].end-=E)}),a-=E,u(p.node.previousSibling,p.start),!(a>p.end))return!1;r=p.end}return!0})}wrapMatches(i,r,a,h,u){const p=r===0?0:r+1;this.getTextNodes(g=>{g.nodes.forEach(m=>{let y;for(m=m.node;(y=i.exec(m.textContent))!==null&&y[p]!=="";){if(!a(y[p],m))continue;let E=y.index;if(p!==0)for(let k=1;k<p;k++)E+=y[k].length;m=this.wrapRangeInTextNode(m,E,E+y[p].length),h(m.previousSibling),i.lastIndex=0}}),u()})}wrapMatchesAcrossElements(i,r,a,h,u){const p=r===0?0:r+1;this.getTextNodes(g=>{let m;for(;(m=i.exec(g.value))!==null&&m[p]!=="";){let y=m.index;if(p!==0)for(let k=1;k<p;k++)y+=m[k].length;const E=y+m[p].length;this.wrapRangeInMappedTextNode(g,y,E,k=>a(m[p],k),(k,B)=>{i.lastIndex=B,h(k)})}u()})}wrapRangeFromIndex(i,r,a,h){this.getTextNodes(u=>{const p=u.value.length;i.forEach((g,m)=>{let{start:y,end:E,valid:k}=this.checkWhitespaceRanges(g,p,u.value);k&&this.wrapRangeInMappedTextNode(u,y,E,B=>r(B,g,u.value.substring(y,E),m),B=>{a(B,g)})}),h()})}unwrapMatches(i){const r=i.parentNode;let a=document.createDocumentFragment();for(;i.firstChild;)a.appendChild(i.removeChild(i.firstChild));r.replaceChild(a,i),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${i}"`);let a=0,h="wrapMatches";const u=p=>{a++,this.opt.each(p)};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),this[h](i,this.opt.ignoreGroups,(p,g)=>this.opt.filter(g,p,a),u,()=>{a===0&&this.opt.noMatch(i),this.opt.done(a)})}mark(i,r){this.opt=r;let a=0,h="wrapMatches";const{keywords:u,length:p}=this.getSeparatedKeywords(typeof i=="string"?[i]:i),g=this.opt.caseSensitive?"":"i",m=y=>{let E=new RegExp(this.createRegExp(y),`gm${g}`),k=0;this.log(`Searching with expression "${E}"`),this[h](E,1,(B,M)=>this.opt.filter(M,y,a,k),B=>{k++,a++,this.opt.each(B)},()=>{k===0&&this.opt.noMatch(y),u[p-1]===y?this.opt.done(a):m(u[u.indexOf(y)+1])})};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),p===0?this.opt.done(a):m(u[0])}markRanges(i,r){this.opt=r;let a=0,h=this.checkRanges(i);h&&h.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(h)),this.wrapRangeFromIndex(h,(u,p,g,m)=>this.opt.filter(u,p,g,m),(u,p)=>{a++,this.opt.each(u,p)},()=>{this.opt.done(a)})):this.opt.done(a)}unmark(i){this.opt=i;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,a=>{this.unwrapMatches(a)},a=>{const h=e.matches(a,r),u=this.matchesExclude(a);return!h||u?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(s){const i=new c(s);return this.mark=(r,a)=>(i.mark(r,a),this),this.markRegExp=(r,a)=>(i.markRegExp(r,a),this),this.markRanges=(r,a)=>(i.markRanges(r,a),this),this.unmark=r=>(i.unmark(r),this),this}})})(_n);var pa=_n.exports;const ma=yn(pa),Cc="";function kn(t){return JSON.parse(JSON.stringify(t))}const ga={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],props:{classList:[String,Array],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 Z()}},options:{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 Z()}},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}},emits:["close","input","blur","search","resize","submit","clearValue","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 o=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:o,filter:this.filterId})})},options:{handler(t){this.initialOptions=kn(t)},deep:!0},initialOptions(t){let o=!0;if(typeof t=="function")o=!1;else{const e=[],c=t;Array.prototype.forEach.call(c,s=>{s.id!==void 0&&e.push(s.id)}),o=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!o||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,o){this.$nextTick(()=>{this.registerDependency(o)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new ma(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,o,e,c,s,i,r,a;return this.defaultFilter=h=>{this.marker.unmark();const u=this.filterString.toLowerCase().trim();this.filterFunc.call(this,h,u),u&&this.marker.mark(u)},{initialOptions:kn(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",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(c=this.LANG_COMPONENTS)==null?void 0:c.COMPONENT_SELECT),loading:lang("loading",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(i=this.LANG_COMPONENTS)==null?void 0:i.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(a=this.LANG_COMPONENTS)==null?void 0:a.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",o=>{this.clear(),this.dependencyValue=o,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 o=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:o,filter:this.filterId})}))},filter(t,o){this.filterString=t,this.$emit("search",{search:this.filterString}),this.defaultFilter(o)},setPreparedValues(t){let o=t||this.initialOptions;return this.alphabetSort&&(o=o.sort((e,c)=>e.title.toLowerCase().localeCompare(c.title.toLowerCase()))),this.prepare(o).then(([e,c])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=c,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){return new Promise(o=>{const e={},c=[];let s=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),s=s.then(t)):s=s.then(()=>t),s.then(i=>(this.isLoading=!1,i.forEach(r=>{r.initiallyVisible=typeof r.visible>"u"?!0:r.visible,r.visible=r.initiallyVisible,r.readonly=!!r.readonly,r.isDisabled=!1,r.checked=this.isMultiple?this.val!==null&&this.val.findIndex(a=>r.id==a)>-1:this.val!==null&&this.val==r.id,r.checked&&(!this.onlyEndNodes||!r.children)&&(e[r.id]=r),r.children&&(this.hasTreeChildren=!0,r.isChildrenVisible=!1),c.push(new Promise(a=>{r.children?this.prepare(r.children).then(([h,u])=>{r.children=h,Object.assign(e,u),a(r)}):a(r)}))}),Promise.all(c).then(r=>{o([r,e])}))).catch(i=>{throw this.isLoading=!1,i})})},filterFunc(t,o){let e=0;return t.forEach(c=>{let s=c.initiallyVisible&&c.title&&c.title.toString().toLowerCase().includes(o)&&!this.actualBookmarkedOptions[c.id];if(c.children&&c.children.length){let i=this.filterFunc(c.children,o);e+=i,i&&(c.isChildrenVisible=!!o||!!Object.keys(this.actualBookmarkedOptions).length,c.isDisabled=i<c.children.length&&!this.isBookmarkable),s?i||(s=!1):s=!!i}c.visible=s,s&&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(o=>o.checked||o.readonly)},registerCheck(t,o,e){if(o)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 c=Object.keys(this.selected)[0];c&&(this.selected[c].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,o),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,o,e){for(let c of t)c.id===o&&(c.checked=e),c.children&&this.toggleDuplicateOptions(c.children,o,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,o){t.forEach(e=>{o(e),e.children&&e.children.length&&this.traverseTree(e.children,o)})},getArrayOptions(t){let o=[];for(let e of t)o.push(e),e.children&&(o=o.concat(this.getArrayOptions(e.children)));return o},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(o=>{o.children&&o.children.length?this.setBookmarkedOptions(o.children):this.initBookmarks.includes(o.id)&&(this.actualBookmarkedOptions[o.id]=o)}),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},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let o of this.arrayOfOptions)(!this.onlyEndNodes||!o.children)&&!t.includes(o.id)&&t.push(o.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,o=>{(!this.onlyEndNodes||!o.children)&&!t.includes(o.id)&&o.visible&&t.push(o.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:ke,IbIconButton:X,IbIcon:P,IbDropdown:qe,IbInput:pt,List:dt,"select-option":fa},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},ba={key:0,class:"tree-select-empty"},ya={key:1,class:"tree-select-default-empty tree-select-empty"};function _a(t,o,e,c,s,i){const r=n.resolveComponent("ib-alert"),a=n.resolveComponent("ib-icon"),h=n.resolveComponent("ib-icon-button"),u=n.resolveComponent("select-option"),p=n.resolveComponent("list"),g=n.resolveComponent("ib-input"),m=n.resolveComponent("ib-dropdown");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.errorMessage?(n.openBlock(),n.createBlock(r,{key:0,class:"tree-select-error"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["tree-select",{...e.classList,"tree-select-custom-trigger-content":i.hasTriggerContent}])},[n.createVNode(m,{disabled:s.isLoading,"is-resizable":e.isResizable,vertical:s.verticalVal,ref:"dropdown",onClose:i.onClose,onOpen:i.onOpen},n.createSlots({body:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["tree-drop",{"not-tree-child":!s.hasTreeChildren}]),style:n.normalizeStyle(i.treeDropPos)},[e.isResizable?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:o[6]||(o[6]=y=>i.startResizing("left"))},null,32)):n.createCommentVNode("",!0),e.isResizable?(n.openBlock(),n.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:o[7]||(o[7]=y=>i.startResizing("right"))},null,32)):n.createCommentVNode("",!0),Object.keys(s.actualBookmarkedOptions).length>0?(n.openBlock(),n.createBlock(p,{key:2,class:n.normalizeClass({"has-hierarchy":i.hasHierarchy})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.actualBookmarkedOptions,y=>(n.openBlock(),n.createBlock(u,{key:"bookmark"+y.id,option:y,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:s.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))]),_:1},8,["class"])):n.createCommentVNode("",!0),i.showSearch?(n.openBlock(),n.createBlock(g,{key:3,class:"tree-search",ref:"search","show-icon":!0,value:s.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:s.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:s.actualStrings.searchPlaceholder,onInput:o[8]||(o[8]=y=>i.filter(y,s.actualOptions)),onKeyup:n.withKeys(i.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):n.createCommentVNode("",!0),n.createVNode(p,{ref:"list",role:"listbox",class:n.normalizeClass({"tree-select-list":!0,"has-hierarchy":i.hasHierarchy})},{default:n.withCtx(()=>[!i.requiredDependencyNotFilled&&!i.visibleOptionsCount&&i.hasEmptyMessage?(n.openBlock(),n.createElementBlock("div",ba,[n.renderSlot(t.$slots,"emptyMessage")])):!i.requiredDependencyNotFilled&&!i.visibleOptionsCount?(n.openBlock(),n.createElementBlock("div",ya,n.toDisplayString(s.actualStrings.emptyTitle),1)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",{class:"tree-select-empty"},n.toDisplayString(s.actualStrings.requiredDependencyNotFilled),513),[[n.vShow,i.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&s.actualOptions.length>0?(n.openBlock(),n.createBlock(u,{key:2,option:{title:t.lang("none","select"),id:null,checked:i.isEmpty},name:s.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,uid:s.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"])):n.createCommentVNode("",!0),i.requiredDependencyNotFilled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[e.allOptions&&e.isMultiple&&i.visibleOptionsCount&&!i.requiredDependencyNotFilled?(n.openBlock(),n.createBlock(u,{key:0,option:{title:s.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:i.visibleOptionsCount<i.optionsCount,checked:s.allOptionsIsChecked,isIndeterminate:!!Object.keys(s.selected).length},"is-toggle":e.isToggle,name:s.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:s.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,onCheck:i.manageAll,onOnFocus:o[9]||(o[9]=y=>s.focusedOptionId=y)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.actualOptions,y=>n.renderSlot(t.$slots,s.actualName,{key:e.name+y.value,option:y,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:s.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[n.withDirectives(n.createVNode(u,{option:y,"is-toggle":e.isToggle,name:s.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:s.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,onCheck:i.registerCheck,onToggleBookmark:i.toggleBookmark,onOnFocus:o[10]||(o[10]=E=>s.focusedOptionId=E)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[n.vShow,y.visible]])])),128))],64))]),_:3},8,["class"])],6)]),_:2},[i.hasTrigger?{name:"trigger",fn:n.withCtx(()=>[n.renderSlot(t.$slots,"trigger",{selectedCount:i.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:n.withCtx(({isOpened:y})=>[n.createElementVNode("div",{role:"combobox",tabindex:"0",class:n.normalizeClass(["tree-choice",{"tree-choice-opened":y,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:o[2]||(o[2]=n.withModifiers(()=>{},["prevent"])),onBlur:o[3]||(o[3]=(...E)=>i.onBlur&&i.onBlur(...E)),onKeyup:[o[4]||(o[4]=n.withKeys((...E)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...E),["down"])),o[5]||(o[5]=n.withKeys((...E)=>i.comboboxKeyupDown&&i.comboboxKeyupDown(...E),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":s.focusedOptionId},[i.hasTriggerContent?n.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:i.selectedKeys.length}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.htmlOptionTitle?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({placeholder:!i.selectStatus}),innerHTML:i.selectStatus||e.placeholder},null,10,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({placeholder:!i.selectStatus})},n.toDisplayString(i.selectStatus||e.placeholder),3))],64)),e.showClearButton?n.withDirectives((n.openBlock(),n.createBlock(h,{key:2,kind:"ghost",class:"button-clear",onClick:n.withModifiers(i.clearValue,["prevent"]),onKeypress:o[0]||(o[0]=n.withKeys(n.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:o[1]||(o[1]=n.withKeys(n.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:n.withKeys(n.withModifiers(i.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:n.withCtx(()=>[n.createVNode(a,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[n.vShow,Object.keys(s.selected).length]]):n.createCommentVNode("",!0),n.createVNode(a,{name:y?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose","onOpen"])],2)],64)}const Cn=T(ga,[["render",_a]]),wc="",ka={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},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:Oe,IbSelect:Cn}},Ca={class:"report-limit-selector"};function wa(t,o,e,c,s,i){const r=n.resolveComponent("ib-label"),a=n.resolveComponent("ib-select");return n.openBlock(),n.createElementBlock("div",Ca,[n.createVNode(r,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelSelect),1)]),_:1}),n.createVNode(a,{classList:"report-limit-selector-select",value:e.value,options:i.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:i.selectItem},null,8,["value","options","onInput"])])}const wn=T(ka,[["render",wa]]),Sc="",Sa={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}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(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:X,IbIcon:P,IbInput:pt,IbLabel:Oe,IbLimitSelector:wn,IbTooltip:ue}},Ea={class:"report-controls"},xa={class:"repot-pagination"},Da={class:"pagination-input"},Ta={class:"row-count"},Ba={class:"pagination-wrapper"},Na=["onClick"];function va(t,o,e,c,s,i){const r=n.resolveComponent("ib-limit-selector"),a=n.resolveComponent("ib-label"),h=n.resolveComponent("ib-input"),u=n.resolveComponent("ib-icon"),p=n.resolveComponent("ib-tooltip"),g=n.resolveComponent("ib-icon-button");return n.openBlock(),n.createElementBlock("div",Ea,[n.createVNode(r,{onSelect:i.changeLimit,value:s.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),n.createElementVNode("div",xa,[e.showPaginationInput?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(a,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelInput),1)]),_:1}),n.createElementVNode("div",Da,[n.createVNode(h,{type:"number",debounce:500,onInput:i.onInput},null,8,["onInput"])])],64)):n.createCommentVNode("",!0),n.createElementVNode("div",Ta,n.toDisplayString(i.setCountOfRows+" of "+e.countRows),1),n.createVNode(g,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:s.currentPage===1,onClick:o[0]||(o[0]=m=>i.onSelect(s.currentPage-1))},{default:n.withCtx(()=>[n.createVNode(u,{name:"chevron-back-outline"}),e.tooltipTextPrev?(n.openBlock(),n.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):n.createCommentVNode("",!0)]),_:1},8,["disabled"]),n.createElementVNode("ul",Ba,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.countPagePagination,(m,y)=>n.withDirectives((n.openBlock(),n.createElementBlock("li",{key:y,class:n.normalizeClass(["pagination-item",{active:y+1===s.currentPage,"dots-left":s.indexSpaceLeft===y+1,"dots-right":s.indexSpaceRight===y+1}]),onClick:E=>i.onSelect(y+1)},[n.createElementVNode("button",null,n.toDisplayString(y+1),1)],10,Na)),[[n.vShow,i.showItem(y+1)]])),128))]),n.createVNode(g,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:s.currentPage===i.countPagePagination,onClick:o[1]||(o[1]=m=>i.onSelect(s.currentPage+1))},{default:n.withCtx(()=>[n.createVNode(u,{name:"chevron-forward-outline"}),e.tooltipTextNext?(n.openBlock(),n.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):n.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Ma=T(Sa,[["render",va]]),Ve={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},Ec="",Ia={props:{states:{type:String,default:Ve.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===Ve.SUCCESS?"checkmark-circle":this.states===Ve.FAILED||this.states===Ve.CANCELING||this.states===Ve.CANCELED?"close-circle":""}},components:{IbIcon:P}},Sn=t=>(n.pushScopeId("data-v-a0217859"),t=t(),n.popScopeId(),t),Oa={class:"ib-progress-bar-wrapper"},Va=["aria-label","aria-valuenow"],La=[Sn(()=>n.createElementVNode("div",{class:"gradient"},null,-1))],Pa=Sn(()=>n.createElementVNode("div",null,null,-1));function Aa(t,o,e,c,s,i){const r=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",Oa,[n.createElementVNode("div",{class:n.normalizeClass(i.classes)},[n.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:n.normalizeStyle({width:e.progress+"%"})},La,12,Va),Pa],2),n.withDirectives(n.createVNode(r,{class:"status-icon",name:i.iconName},null,8,["name"]),[[n.vShow,i.iconName.length]])])}const Fa=T(Ia,[["render",Aa],["__scopeId","data-v-a0217859"]]),Ra={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
|
+
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(Re,function(){class e{constructor(r,l=!0,s=[],u=5e3){this.ctx=r,this.iframes=l,this.exclude=s,this.iframesTimeout=u}static matches(r,l){const s=typeof l=="string"?[l]:l,u=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(u){let c=!1;return s.every(p=>!u.call(r,p)||(c=!0,!1)),c}return!1}getContexts(){let r=[];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(l=>{const s=r.filter(u=>u.contains(l)).length>0;r.indexOf(l)!==-1||s||r.push(l)}),r}getIframeContents(r,l,s=()=>{}){let u;try{const c=r.contentWindow;if(u=c.document,!c||!u)throw new Error("iframe inaccessible")}catch{s()}u&&l(u)}isIframeBlank(r){const l="about:blank",s=r.getAttribute("src").trim();return r.contentWindow.location.href===l&&s!==l&&s}observeIframeLoad(r,l,s){let u=!1,c=null;const p=()=>{if(!u){u=!0,clearTimeout(c);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,l,s))}catch{s()}}};r.addEventListener("load",p),c=setTimeout(p,this.iframesTimeout)}onIframeReady(r,l,s){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,l,s):this.getIframeContents(r,l,s):this.observeIframeLoad(r,l,s)}catch{s()}}waitForIframes(r,l){let s=0;this.forEachIframe(r,()=>!0,u=>{s++,this.waitForIframes(u.querySelector("html"),()=>{--s||l()})},u=>{u||l()})}forEachIframe(r,l,s,u=()=>{}){let c=r.querySelectorAll("iframe"),p=c.length,f=0;c=Array.prototype.slice.call(c);const d=()=>{--p<=0&&u(f)};p||d(),c.forEach(h=>{e.matches(h,this.exclude)?d():this.onIframeReady(h,b=>{l(h)&&(f++,s(b)),d()},d)})}createIterator(r,l,s){return document.createNodeIterator(r,l,s,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,l,s){const u=r.compareDocumentPosition(s),c=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&c&&(l===null||l.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const l=r.previousNode();return{prevNode:l,node:(l===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,l,s,u){let c=!1,p=!1;return u.forEach((f,d)=>{f.val===s&&(c=d,p=f.handled)}),this.compareNodeIframe(r,l,s)?(c!==!1||p?c===!1||p||(u[c].handled=!0):u.push({val:s,handled:!0}),!0):(c===!1&&u.push({val:s,handled:!1}),!1)}handleOpenIframes(r,l,s,u){r.forEach(c=>{c.handled||this.getIframeContents(c.val,p=>{this.createInstanceOnIframe(p).forEachNode(l,s,u)})})}iterateThroughNodes(r,l,s,u,c){const p=this.createIterator(l,r,u);let f,d,h=[],b=[],m=()=>({prevNode:d,node:f}=this.getIteratorNode(p),f);for(;m();)this.iframes&&this.forEachIframe(l,_=>this.checkIframeFilter(f,d,_,h),_=>{this.createInstanceOnIframe(_).forEachNode(r,y=>b.push(y),u)}),b.push(f);b.forEach(_=>{s(_)}),this.iframes&&this.handleOpenIframes(h,r,s,u),c()}forEachNode(r,l,s,u=()=>{}){const c=this.getContexts();let p=c.length;p||u(),c.forEach(f=>{const d=()=>{this.iterateThroughNodes(r,f,l,s,()=>{--p<=0&&u()})};this.iframes?this.waitForIframes(f,d):d()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(r){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},r)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(r,l="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[l]=="function"&&s[l](`mark.js: ${r}`)}escapeStr(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(r){return this.opt.wildcards!=="disabled"&&(r=this.setupWildcardsRegExp(r)),r=this.escapeStr(r),Object.keys(this.opt.synonyms).length&&(r=this.createSynonymsRegExp(r)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),this.opt.diacritics&&(r=this.createDiacriticsRegExp(r)),r=this.createMergedBlanksRegExp(r),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.createJoinersRegExp(r)),this.opt.wildcards!=="disabled"&&(r=this.createWildcardsRegExp(r)),r=this.createAccuracyRegExp(r)}createSynonymsRegExp(r){const l=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let c in l)if(l.hasOwnProperty(c)){const p=l[c],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(c):this.escapeStr(c),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);f!==""&&d!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(d)})`,`gm${s}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(d)})`+u))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,l=>l.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,l=>l.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let l=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,l?"[\\S\\s]?":"\\S?").replace(/\u0002/g,l?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(l,s,u)=>{let c=u.charAt(s+1);return/[(|)\\]/.test(c)||c===""?l:l+"\0"})}createJoinersRegExp(r){let l=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&l.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&l.push("\\u00ad\\u200b\\u200c\\u200d"),l.length?r.split(/\u0000+/).join(`[${l.join("")}]*`):r}createDiacriticsRegExp(r){const l=this.opt.caseSensitive?"":"i",s=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 r.split("").forEach(c=>{s.every(p=>{if(p.indexOf(c)!==-1){if(u.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${l}`),`[${p}]`),u.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const l="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,u=typeof s=="string"?s:s.value,c=typeof s=="string"?[]:s.limiters,p="";switch(c.forEach(f=>{p+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(l))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let l=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(u=>{u.trim()&&l.indexOf(u)===-1&&l.push(u)}):s.trim()&&l.indexOf(s)===-1&&l.push(s)}),{keywords:l.sort((s,u)=>u.length-s.length),length:l.length}}isNumeric(r){return Number(parseFloat(r))==r}checkRanges(r){if(!Array.isArray(r)||Object.prototype.toString.call(r[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(r),[];const l=[];let s=0;return r.sort((u,c)=>u.start-c.start).forEach(u=>{let{start:c,end:p,valid:f}=this.callNoMatchOnInvalidRanges(u,s);f&&(u.start=c,u.length=p-c,l.push(u),s=p)}),l}callNoMatchOnInvalidRanges(r,l){let s,u,c=!1;return r&&r.start!==void 0?(u=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&u-l>0&&u-s>0?c=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(r)}`),this.opt.noMatch(r))):(this.log(`Ignoring invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)),{start:s,end:u,valid:c}}checkWhitespaceRanges(r,l,s){let u,c=!0,p=s.length,f=l-p,d=parseInt(r.start,10)-f;return(u=(d=d>p?p:d)+parseInt(r.length,10))>p&&(u=p,this.log(`End range automatically set to the max value of ${p}`)),d<0||u-d<0||d>p||u>p?(c=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(d,u).replace(/\s+/g,"")===""&&(c=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:d,end:u,valid:c}}getTextNodes(r){let l="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{s.push({start:l.length,end:(l+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:l,nodes:s})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,l,s){const u=this.opt.element?this.opt.element:"mark",c=r.splitText(l),p=c.splitText(s-l);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=c.textContent,c.parentNode.replaceChild(f,c),p}wrapRangeInMappedTextNode(r,l,s,u,c){r.nodes.every((p,f)=>{const d=r.nodes[f+1];if(d===void 0||d.start>l){if(!u(p.node))return!1;const h=l-p.start,b=(s>p.end?p.end:s)-p.start,m=r.value.substr(0,p.start),_=r.value.substr(b+p.start);if(p.node=this.wrapRangeInTextNode(p.node,h,b),r.value=m+_,r.nodes.forEach((y,g)=>{g>=f&&(r.nodes[g].start>0&&g!==f&&(r.nodes[g].start-=b),r.nodes[g].end-=b)}),s-=b,c(p.node.previousSibling,p.start),!(s>p.end))return!1;l=p.end}return!0})}wrapMatches(r,l,s,u,c){const p=l===0?0:l+1;this.getTextNodes(f=>{f.nodes.forEach(d=>{let h;for(d=d.node;(h=r.exec(d.textContent))!==null&&h[p]!=="";){if(!s(h[p],d))continue;let b=h.index;if(p!==0)for(let m=1;m<p;m++)b+=h[m].length;d=this.wrapRangeInTextNode(d,b,b+h[p].length),u(d.previousSibling),r.lastIndex=0}}),c()})}wrapMatchesAcrossElements(r,l,s,u,c){const p=l===0?0:l+1;this.getTextNodes(f=>{let d;for(;(d=r.exec(f.value))!==null&&d[p]!=="";){let h=d.index;if(p!==0)for(let m=1;m<p;m++)h+=d[m].length;const b=h+d[p].length;this.wrapRangeInMappedTextNode(f,h,b,m=>s(d[p],m),(m,_)=>{r.lastIndex=_,u(m)})}c()})}wrapRangeFromIndex(r,l,s,u){this.getTextNodes(c=>{const p=c.value.length;r.forEach((f,d)=>{let{start:h,end:b,valid:m}=this.checkWhitespaceRanges(f,p,c.value);m&&this.wrapRangeInMappedTextNode(c,h,b,_=>l(_,f,c.value.substring(h,b),d),_=>{s(_,f)})}),u()})}unwrapMatches(r){const l=r.parentNode;let s=document.createDocumentFragment();for(;r.firstChild;)s.appendChild(r.removeChild(r.firstChild));l.replaceChild(s,r),this.ie?this.normalizeTextNode(l):l.normalize()}normalizeTextNode(r){if(r){if(r.nodeType===3)for(;r.nextSibling&&r.nextSibling.nodeType===3;)r.nodeValue+=r.nextSibling.nodeValue,r.parentNode.removeChild(r.nextSibling);else this.normalizeTextNode(r.firstChild);this.normalizeTextNode(r.nextSibling)}}markRegExp(r,l){this.opt=l,this.log(`Searching with expression "${r}"`);let s=0,u="wrapMatches";const c=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](r,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,s),c,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,l){this.opt=l;let s=0,u="wrapMatches";const{keywords:c,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",d=h=>{let b=new RegExp(this.createRegExp(h),`gm${f}`),m=0;this.log(`Searching with expression "${b}"`),this[u](b,1,(_,y)=>this.opt.filter(y,h,s,m),_=>{m++,s++,this.opt.each(_)},()=>{m===0&&this.opt.noMatch(h),c[p-1]===h?this.opt.done(s):d(c[c.indexOf(h)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),p===0?this.opt.done(s):d(c[0])}markRanges(r,l){this.opt=l;let s=0,u=this.checkRanges(r);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(c,p,f,d)=>this.opt.filter(c,p,f,d),(c,p)=>{s++,this.opt.each(c,p)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(r){this.opt=r;let l=this.opt.element?this.opt.element:"*";l+="[data-markjs]",this.opt.className&&(l+=`.${this.opt.className}`),this.log(`Removal selector "${l}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const u=e.matches(s,l),c=this.matchesExclude(s);return!u||c?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(l,s)=>(r.mark(l,s),this),this.markRegExp=(l,s)=>(r.markRegExp(l,s),this),this.markRanges=(l,s)=>(r.markRanges(l,s),this),this.unmark=l=>(r.unmark(l),this),this}})})(xo);var fc=xo.exports;const hc=Cn(fc),pc={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"]},yp="";function To(t){return JSON.parse(JSON.stringify(t))}const mc={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],mixins:[pc],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 gt()}},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 gt()}},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:0},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 hc(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,r,l,s;return this.defaultFilter=u=>{this.marker.unmark();const c=this.filterString.toLowerCase().trim();this.filterFunc.call(this,u,c),c&&this.keywordHighlighter&&this.marker.mark(c)},{initialOptions: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",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(l=this.LANG_COMPONENTS)==null?void 0:l.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(s=this.LANG_COMPONENTS)==null?void 0:s.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){return new Promise(n=>{const e={},o=[];let a=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),a=a.then(t)):a=a.then(()=>t),a.then(r=>(this.isLoading=!1,r.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(s=>l.id==s)>-1:this.val!==null&&this.val==l.id,l.checked&&(!this.onlyEndNodes||!l.children)&&(e[l.id]=l),l.children&&(this.hasTreeChildren=!0,l.isChildrenVisible=!1),o.push(new Promise(s=>{l.children?this.prepare(l.children).then(([u,c])=>{l.children=u,Object.assign(e,c),s(l)}):s(l)}))}),Promise.all(o).then(l=>{n([l,e])}))).catch(r=>{throw this.isLoading=!1,r})})},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 r=this.filterFunc(o.children,n);e+=r,r&&(o.isDisabled=r<o.children.length&&!this.isBookmarkable),a?r||(a=!1):a=!!r}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:ct,IbIcon:Be,IbDropdown:ir,IbInput:qr,List:Rr,"select-option":uc},directives:{Tooltip:sn},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},gc={key:0,class:"tree-select-empty"},yc={key:1,class:"tree-select-default-empty tree-select-empty"},vc={key:5,ref:"infinityLoader"};function bc(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-input"),p=i.resolveComponent("select-option"),f=i.resolveComponent("list"),d=i.resolveComponent("ib-dropdown"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{key:0,class:"tree-select-error"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["tree-select",{...e.classList,"tree-select-custom-trigger-content":r.hasTriggerContent}])},[i.createVNode(d,{disabled:a.isLoading||e.disable,"is-resizable":e.isResizable,vertical:a.verticalVal,class:i.normalizeClass({disable:e.disable}),ref:"dropdown",onClose:r.onClose,onOpen:r.onOpen},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle(r.treeDropPos)},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=b=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=b=>r.startResizing("right"))},null,544)),[[h,t.lang("resize_list","select"),void 0,{rightCenter:!0}]]):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(c,{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]=b=>r.filter(b,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","debounce","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(f,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy,"alphabetic-list":e.alphabeticStyle})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",gc,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",yc,i.toDisplayString(a.actualStrings.emptyTitle),1)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:"tree-select-empty"},i.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[i.vShow,r.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(i.openBlock(),i.createBlock(p,{key:2,option:{title:t.lang("none","select"),id:null,checked:r.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:r.registerCheck,onToggleBookmark:r.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"])):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:3},i.renderList(a.actualBookmarkedOptions,b=>(i.openBlock(),i.createBlock(p,{key:"bookmark"+b.id,class:"bookmarked-option",option:b,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:r.registerCheck,onToggleBookmark:r.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)):i.createCommentVNode("",!0),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[e.allOptions&&!e.alphabeticStyle&&e.isMultiple&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(p,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:r.visibleOptionsCount<r.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,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=b=>a.focusedOptionId=b)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","alphabetic-style","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,b=>i.renderSlot(t.$slots,a.actualName,{key:e.name+b.value,option:b,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(p,{option:b,"is-toggle":e.isToggle,name:a.actualName,"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:r.registerCheck,onToggleBookmark:r.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"]),[[i.vShow,b.visible]])])),128))],64)),t.infiniteLoader?(i.openBlock(),i.createElementBlock("div",vc,null,512)):i.createCommentVNode("",!0)]),_:3},8,["class"])],6)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(()=>[i.renderSlot(t.$slots,"trigger",{selectedCount:r.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:i.withCtx(({isOpened:b})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":b,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:n[2]||(n[2]=i.withModifiers(()=>{},["prevent"])),onBlur:n[3]||(n[3]=(...m)=>r.onBlur&&r.onBlur(...m)),onKeyup:[n[4]||(n[4]=i.withKeys((...m)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(...m),["down"])),n[5]||(n[5]=i.withKeys((...m)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(...m),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[r.hasTriggerContent?i.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:r.selectedKeys.length,isOpen:b}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.htmlOptionTitle?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass({placeholder:!r.selectStatus}),innerHTML:r.selectStatus||e.placeholder},null,10,["innerHTML"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass({placeholder:!r.selectStatus})},i.toDisplayString(r.selectStatus||e.placeholder),3))],64)),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:2,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),onKeypress:n[0]||(n[0]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[1]||(n[1]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:i.withKeys(i.withModifiers(r.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(s,{name:b?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","class","onClose","onOpen"])],2)],64)}const No=_e(mc,[["render",bc]]),vp="",_c={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}},$c={class:"report-limit-selector"};function wc(t,n,e,o,a,r){const l=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",$c,[i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{classList:"report-limit-selector-select",value:e.value,vertical:e.vertical,options:r.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:r.selectItem},null,8,["value","vertical","options","onInput"])])}const Ao=_e(_c,[["render",wc]]),bp="",kc={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:ct,IbIcon:Be,IbInput:qr,IbLabel:kn,IbLimitSelector:Ao,IbTooltip:an}},Cc={class:"report-controls"},Oc={class:"repot-pagination"},Ec={class:"pagination-input"},Sc={class:"row-count"},xc={class:"pagination-wrapper"},Tc=["onClick"];function Nc(t,n,e,o,a,r){const l=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-input"),c=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Cc,[i.createVNode(l,{onSelect:r.changeLimit,value:a.limitValue,vertical:e.vertical,"label-select":e.labelSelect},null,8,["onSelect","value","vertical","label-select"]),i.createElementVNode("div",Oc,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,{for:"goToPage"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Ec,[i.createVNode(u,{id:"goToPage",type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Sc,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=d=>r.onSelect(a.currentPage-1))},{default:i.withCtx(()=>[i.createVNode(c,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",xc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(d,h)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:h,class:i.normalizeClass(["pagination-item",{active:h+1===a.currentPage,"dots-left":a.indexSpaceLeft===h+1,"dots-right":a.indexSpaceRight===h+1}]),onClick:b=>r.onSelect(h+1)},[i.createElementVNode("button",null,i.toDisplayString(h+1),1)],10,Tc)),[[i.vShow,r.showItem(h+1)]])),128))]),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=d=>r.onSelect(a.currentPage+1))},{default:i.withCtx(()=>[i.createVNode(c,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Ac=_e(kc,[["render",Nc]]),On={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},_p="",Dc={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:Be}},Do=t=>(i.pushScopeId("data-v-a0217859"),t=t(),i.popScopeId(),t),Ic={class:"ib-progress-bar-wrapper"},Pc=["aria-label","aria-valuenow"],Mc=[Do(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],Bc=Do(()=>i.createElementVNode("div",null,null,-1));function Lc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Ic,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},Mc,12,Pc),Bc],2),i.withDirectives(i.createVNode(l,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const Rc=_e(Dc,[["render",Lc],["__scopeId","data-v-a0217859"]]),jc={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
28
|
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
28
29
|
</svg>
|
|
29
30
|
`,success:`
|
|
@@ -54,11 +55,11 @@
|
|
|
54
55
|
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
55
56
|
<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"/>
|
|
56
57
|
</svg>
|
|
57
|
-
`},Dc="",za={props:{type:{type:String,default:"success"}},data(){return{icons:Ra}}},Ha={class:"status-indicator"},ja=["innerHTML"];function $a(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",Ha,[n.createElementVNode("div",{class:n.normalizeClass(["status-indicator-icon",e.type]),innerHTML:s.icons[e.type]},null,10,ja),n.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ya=T(za,[["render",$a],["__scopeId","data-v-e696394e"]]),Tc="",Bc="",Ka={name:"IbPanel",mixins:[Mt],props:{isOpen:{type:Boolean,default:!0},error:{type:Boolean,default:!1}}},Wa=t=>(n.pushScopeId("data-v-58f9a0e6"),t=t(),n.popScopeId(),t),qa={class:"panel-head"},Ga={class:"head-title"},Ua=Wa(()=>n.createElementVNode("div",{class:"divider"},null,-1)),Ja={class:"head-content"},Za={class:"panel-body"};function Xa(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-panel",{"panel-error":e.error}])},[n.createElementVNode("div",qa,[n.createElementVNode("div",Ga,[n.renderSlot(t.$slots,"title",{},void 0,!0)]),Ua,n.createElementVNode("div",Ja,[n.renderSlot(t.$slots,"head-content",{},void 0,!0)])]),n.createVNode(n.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",Za,[n.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[n.vShow,e.isOpen]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Qa=T(Ka,[["render",Xa],["__scopeId","data-v-58f9a0e6"]]),Nc="",es={name:"IbInputGroup",props:{supportText:{type:String,default:""},disable:{type:Boolean,default:!1}}},ts={key:0,class:"support-text"};function ns(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-form-group",{disable:e.disable}])},[n.renderSlot(t.$slots,"default"),e.supportText.length?(n.openBlock(),n.createElementBlock("p",ts,n.toDisplayString(e.supportText),1)):n.createCommentVNode("",!0)],2)}const is=T(es,[["render",ns]]),vc="",os={name:"IbInputGroup",props:{labelText:{type:String,default:""},required:{type:Boolean,required:!1},horizontal:{type:Boolean,default:!1},errorMessage:{type:String,default:""}},components:{IbLabel:Oe,IbAlert:ke}},rs={class:"ib-checkbox-group-content"};function as(t,o,e,c,s,i){const r=n.resolveComponent("ib-label"),a=n.resolveComponent("ib-alert");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ib-checkbox-group",{"ib-checkbox-group-horizontal":e.horizontal}])},[e.labelText.length?(n.openBlock(),n.createBlock(r,{key:0,class:"ib-checkbox-group-label",required:e.required},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.labelText),1)]),_:1},8,["required"])):n.createCommentVNode("",!0),e.errorMessage.length?(n.openBlock(),n.createBlock(a,{key:1,class:"ib-error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",rs,[n.renderSlot(t.$slots,"default")])],2)}const ss=T(os,[["render",as]]),Mc="",ls={name:"IbRadio",model:{prop:"isChecked",event:"input"},props:{label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return Z()}},value:{type:String,required:!0},isChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},watch:{isChecked(t){this.checked=t}},mounted(){this.$globalEvents.$on(`radio:update:${this.name}`,t=>{this.uid!==t&&(this.checked=!1)})},data(){return{checked:this.isChecked,uid:Z()}},methods:{onClick(){this.disabled||(this.checked=!this.checked,this.$globalEvents.$emit(`radio:update:${this.name}`,this.uid),this.$emit("input",this.checked),this.$emit("change",this.checked))},onChange(){this.disabled||(this.checked=!this.checked,this.$globalEvents.$emit(`radio:update:${this.name}`,this.uid),this.$emit("change",this.checked),this.$emit("input",this.checked))}},computed:{classes(){return{"ib-radio":!0,"has-error":this.error,"radio-filled":this.checked,"radio-disabled":this.disabled}}}},cs=t=>(n.pushScopeId("data-v-02701670"),t=t(),n.popScopeId(),t),ds=["for","aria-checked"],hs=["name","id","value","checked","disabled"],us=cs(()=>n.createElementVNode("span",{class:"ib-radio-input"},null,-1)),fs={key:0,class:"ib-radio-label"};function ps(t,o,e,c,s,i){var r,a;return n.openBlock(),n.createElementBlock("label",{role:"radio",class:n.normalizeClass(i.classes),for:e.id,"aria-checked":s.checked,onClick:o[2]||(o[2]=n.withModifiers((...h)=>i.onClick&&i.onClick(...h),["prevent"]))},[n.createElementVNode("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:s.checked,disabled:e.disabled,ref:"radio",onInput:o[0]||(o[0]=n.withModifiers(()=>{},["stop"])),onChange:o[1]||(o[1]=(...h)=>i.onChange&&i.onChange(...h))},null,40,hs),n.createElementVNode("span",{class:n.normalizeClass(["ib-radio-body",{"without-text":!((r=e.label)!=null&&r.length)}])},[us,(a=e.label)!=null&&a.length?(n.openBlock(),n.createElementBlock("span",fs,n.toDisplayString(e.label),1)):n.createCommentVNode("",!0)],2)],10,ds)}const ms=T(ls,[["render",ps],["__scopeId","data-v-02701670"]]),Ic="",gs={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},bs={class:"character-count"},ys={key:0,class:"val-limit"},_s={class:"val-length"},ks={class:"val-limit"},Cs={key:3,class:"val-length val-limited"};function ws(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",bs,[e.characterLength?e.characterLimit>e.characterLength?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("p",_s,n.toDisplayString(e.characterLimit-e.characterLength),1),n.createTextVNode(" / "),n.createElementVNode("p",ks,n.toDisplayString(e.characterLimit),1)],64)):e.characterLimit===e.characterLength?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode("0")],64)):(n.openBlock(),n.createElementBlock("p",Cs,n.toDisplayString(e.characterLimit-e.characterLength),1)):(n.openBlock(),n.createElementBlock("p",ys,"Max "+n.toDisplayString(e.characterLimit),1))])}const Ss=T(gs,[["render",ws],["__scopeId","data-v-725f21a3"]]),Oc="",Es={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return Z()}},error:{type:Boolean,default:!1},characterLimit:{type:Number,default:null},errorMessage:{type:String,default:""},characterLimitErrorMessage:{type:String,default:""}},data(){return{val:""}},methods:{onInput(){this.characterOverLimit||this.$emit("input",this.val)},onBlur(){this.characterOverLimit||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:ke,IbCharacterCount:Ss},inheritAttrs:!1},xs=["disabled"];function Ds(t,o,e,c,s,i){const r=n.resolveComponent("ib-character-count"),a=n.resolveComponent("ib-alert");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["textarea-wrapper",{disabled:e.disabled}])},[e.characterLimit?(n.openBlock(),n.createBlock(r,{key:0,"character-limit":e.characterLimit,"character-length":s.val.length},null,8,["character-limit","character-length"])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(a,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1},512),[[n.vShow,e.errorMessage.length]]),n.withDirectives(n.createVNode(a,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[n.vShow,e.characterLimitErrorMessage.length&&i.characterOverLimit]]),n.withDirectives(n.createElementVNode("textarea",n.mergeProps(t.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=h=>s.val=h),onInput:o[1]||(o[1]=(...h)=>i.onInput&&i.onInput(...h)),onBlur:o[2]||(o[2]=(...h)=>i.onBlur&&i.onBlur(...h)),class:["ib-textarea",i.classes],disabled:e.disabled}),null,16,xs),[[n.vModelText,s.val]])],2)}const Ts=T(Es,[["render",Ds],["__scopeId","data-v-a0700fb0"]]);var gt=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],we={_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 o=new Date(t.getTime());o.setHours(0,0,0,0),o.setDate(o.getDate()+3-(o.getDay()+6)%7);var e=new Date(o.getFullYear(),0,4);return 1+Math.round(((o.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},Le={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 o=t%100;if(o>3&&o<21)return"th";switch(o%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},Y=function(t,o){return o===void 0&&(o=2),("000"+t).slice(o*-1)},J=function(t){return t===!0?1:0};function En(t,o){var e;return function(){var c=this,s=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(c,s)},o)}}var bt=function(t){return t instanceof Array?t:[t]};function $(t,o,e){if(e===!0)return t.classList.add(o);t.classList.remove(o)}function I(t,o,e){var c=window.document.createElement(t);return o=o||"",e=e||"",c.className=o,e!==void 0&&(c.textContent=e),c}function Ue(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function xn(t,o){if(o(t))return t;if(t.parentNode)return xn(t.parentNode,o)}function Je(t,o){var e=I("div","numInputWrapper"),c=I("input","numInput "+t),s=I("span","arrowUp"),i=I("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?c.type="number":(c.type="text",c.pattern="\\d*"),o!==void 0)for(var r in o)c.setAttribute(r,o[r]);return e.appendChild(c),e.appendChild(s),e.appendChild(i),e}function W(t){try{if(typeof t.composedPath=="function"){var o=t.composedPath();return o[0]}return t.target}catch{return t.target}}var yt=function(){},Ze=function(t,o,e){return e.months[o?"shorthand":"longhand"][t]},Bs={D:yt,F:function(t,o,e){t.setMonth(e.months.longhand.indexOf(o))},G:function(t,o){t.setHours((t.getHours()>=12?12:0)+parseFloat(o))},H:function(t,o){t.setHours(parseFloat(o))},J:function(t,o){t.setDate(parseFloat(o))},K:function(t,o,e){t.setHours(t.getHours()%12+12*J(new RegExp(e.amPM[1],"i").test(o)))},M:function(t,o,e){t.setMonth(e.months.shorthand.indexOf(o))},S:function(t,o){t.setSeconds(parseFloat(o))},U:function(t,o){return new Date(parseFloat(o)*1e3)},W:function(t,o,e){var c=parseInt(o),s=new Date(t.getFullYear(),0,2+(c-1)*7,0,0,0,0);return s.setDate(s.getDate()-s.getDay()+e.firstDayOfWeek),s},Y:function(t,o){t.setFullYear(parseFloat(o))},Z:function(t,o){return new Date(o)},d:function(t,o){t.setDate(parseFloat(o))},h:function(t,o){t.setHours((t.getHours()>=12?12:0)+parseFloat(o))},i:function(t,o){t.setMinutes(parseFloat(o))},j:function(t,o){t.setDate(parseFloat(o))},l:yt,m:function(t,o){t.setMonth(parseFloat(o)-1)},n:function(t,o){t.setMonth(parseFloat(o)-1)},s:function(t,o){t.setSeconds(parseFloat(o))},u:function(t,o){return new Date(parseFloat(o))},w:yt,y:function(t,o){t.setFullYear(2e3+parseFloat(o))}},pe={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})"},Pe={Z:function(t){return t.toISOString()},D:function(t,o,e){return o.weekdays.shorthand[Pe.w(t,o,e)]},F:function(t,o,e){return Ze(Pe.n(t,o,e)-1,!1,o)},G:function(t,o,e){return Y(Pe.h(t,o,e))},H:function(t){return Y(t.getHours())},J:function(t,o){return o.ordinal!==void 0?t.getDate()+o.ordinal(t.getDate()):t.getDate()},K:function(t,o){return o.amPM[J(t.getHours()>11)]},M:function(t,o){return Ze(t.getMonth(),!0,o)},S:function(t){return Y(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,o,e){return e.getWeek(t)},Y:function(t){return Y(t.getFullYear(),4)},d:function(t){return Y(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Y(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,o){return o.weekdays.longhand[t.getDay()]},m:function(t){return Y(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)}},Dn=function(t){var o=t.config,e=o===void 0?we:o,c=t.l10n,s=c===void 0?Le:c,i=t.isMobile,r=i===void 0?!1:i;return function(a,h,u){var p=u||s;return e.formatDate!==void 0&&!r?e.formatDate(a,h,p):h.split("").map(function(g,m,y){return Pe[g]&&y[m-1]!=="\\"?Pe[g](a,p,e):g!=="\\"?g:""}).join("")}},_t=function(t){var o=t.config,e=o===void 0?we:o,c=t.l10n,s=c===void 0?Le:c;return function(i,r,a,h){if(!(i!==0&&!i)){var u=h||s,p,g=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 m=r||(e||we).dateFormat,y=String(i).trim();if(y==="today")p=new Date,a=!0;else if(e&&e.parseDate)p=e.parseDate(i,m);else if(/Z$/.test(y)||/GMT$/.test(y))p=new Date(i);else{for(var E=void 0,k=[],B=0,M=0,O="";B<m.length;B++){var R=m[B],z=R==="\\",F=m[B-1]==="\\"||z;if(pe[R]&&!F){O+=pe[R];var ee=new RegExp(O).exec(i);ee&&(E=!0)&&k[R!=="Y"?"push":"unshift"]({fn:Bs[R],val:ee[++M]})}else z||(O+=".")}p=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),k.forEach(function(oe){var me=oe.fn,Ee=oe.val;return p=me(p,Ee,u)||p}),p=E?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){e.errorHandler(new Error("Invalid date provided: "+g));return}return a===!0&&p.setHours(0,0,0,0),p}}};function q(t,o,e){return e===void 0&&(e=!0),e!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(o.getTime()).setHours(0,0,0,0):t.getTime()-o.getTime()}var Ns=function(t,o,e){return t>Math.min(o,e)&&t<Math.max(o,e)},kt=function(t,o,e){return t*3600+o*60+e},vs=function(t){var o=Math.floor(t/3600),e=(t-o*3600)/60;return[o,e,t-o*3600-e*60]},Ms={DAY:864e5};function Ct(t){var o=t.defaultHour,e=t.defaultMinute,c=t.defaultSeconds;if(t.minDate!==void 0){var s=t.minDate.getHours(),i=t.minDate.getMinutes(),r=t.minDate.getSeconds();o<s&&(o=s),o===s&&e<i&&(e=i),o===s&&e===i&&c<r&&(c=t.minDate.getSeconds())}if(t.maxDate!==void 0){var a=t.maxDate.getHours(),h=t.maxDate.getMinutes();o=Math.min(o,a),o===a&&(e=Math.min(h,e)),o===a&&e===h&&(c=t.maxDate.getSeconds())}return{hours:o,minutes:e,seconds:c}}typeof Object.assign!="function"&&(Object.assign=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var c=function(a){a&&Object.keys(a).forEach(function(h){return t[h]=a[h]})},s=0,i=o;s<i.length;s++){var r=i[s];c(r)}return t});var H=globalThis&&globalThis.__assign||function(){return H=Object.assign||function(t){for(var o,e=1,c=arguments.length;e<c;e++){o=arguments[e];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},H.apply(this,arguments)},Tn=globalThis&&globalThis.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;for(var c=Array(t),s=0,o=0;o<e;o++)for(var i=arguments[o],r=0,a=i.length;r<a;r++,s++)c[s]=i[r];return c},Is=300;function Os(t,o){var e={config:H(H({},we),A.defaultConfig),l10n:Le};e.parseDate=_t({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=k,e._setHoursFromDate=m,e._positionCalendar=tt,e.changeMonth=Et,e.changeYear=Xe,e.clear=gl,e.close=bl,e.onMouseOver=et,e._createElement=I,e.createDay=ee,e.destroy=yl,e.isEnabled=be,e.jumpToDate=O,e.updateValue=re,e.open=Cl,e.redraw=Rn,e.set=xl,e.setDate=Dl,e.toggle=vl;function c(){e.utils={getDaysInMonth:function(l,d){return l===void 0&&(l=e.currentMonth),d===void 0&&(d=e.currentYear),l===1&&(d%4===0&&d%100!==0||d%400===0)?29:e.l10n.daysInMonth[l]}}}function s(){e.element=e.input=t,e.isOpen=!1,wl(),Fn(),Bl(),Tl(),c(),e.isMobile||F(),M(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&m(e.config.noCalendar?e.latestSelectedDateObj:void 0),re(!1)),a();var l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&l&&tt(),L("onReady")}function i(){var l;return((l=e.calendarContainer)===null||l===void 0?void 0:l.getRootNode()).activeElement||document.activeElement}function r(l){return l.bind(e)}function a(){var l=e.config;l.weekNumbers===!1&&l.showMonths===1||l.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 d=(e.days.offsetWidth+1)*l.showMonths;e.daysContainer.style.width=d+"px",e.calendarContainer.style.width=d+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function h(l){if(e.selectedDates.length===0){var d=e.config.minDate===void 0||q(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),f=Ct(e.config);d.setHours(f.hours,f.minutes,f.seconds,d.getMilliseconds()),e.selectedDates=[d],e.latestSelectedDateObj=d}l!==void 0&&l.type!=="blur"&&Ol(l);var b=e._input.value;g(),re(),e._input.value!==b&&e._debouncedChange()}function u(l,d){return l%12+12*J(d===e.l10n.amPM[1])}function p(l){switch(l%24){case 0:case 12:return 12;default:return l%12}}function g(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var l=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,d=(parseInt(e.minuteElement.value,10)||0)%60,f=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(l=u(l,e.amPM.textContent));var b=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&q(e.latestSelectedDateObj,e.config.minDate,!0)===0,_=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&q(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 C=kt(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),N=kt(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),S=kt(l,d,f);if(S>N&&S<C){var v=vs(C);l=v[0],d=v[1],f=v[2]}}else{if(_){var w=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;l=Math.min(l,w.getHours()),l===w.getHours()&&(d=Math.min(d,w.getMinutes())),d===w.getMinutes()&&(f=Math.min(f,w.getSeconds()))}if(b){var D=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;l=Math.max(l,D.getHours()),l===D.getHours()&&d<D.getMinutes()&&(d=D.getMinutes()),d===D.getMinutes()&&(f=Math.max(f,D.getSeconds()))}}y(l,d,f)}}function m(l){var d=l||e.latestSelectedDateObj;d&&d instanceof Date&&y(d.getHours(),d.getMinutes(),d.getSeconds())}function y(l,d,f){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(l%24,d,f||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=Y(e.config.time_24hr?l:(12+l)%12+12*J(l%12===0)),e.minuteElement.value=Y(d),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[J(l>=12)]),e.secondElement!==void 0&&(e.secondElement.value=Y(f)))}function E(l){var d=W(l),f=parseInt(d.value)+(l.delta||0);(f/1e3>1||l.key==="Enter"&&!/[^\d]/.test(f.toString()))&&Xe(f)}function k(l,d,f,b){if(d instanceof Array)return d.forEach(function(_){return k(l,_,f,b)});if(l instanceof Array)return l.forEach(function(_){return k(_,d,f,b)});l.addEventListener(d,f,b),e._handlers.push({remove:function(){return l.removeEventListener(d,f,b)}})}function B(){L("onChange")}function M(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(f){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+f+"]"),function(b){return k(b,"click",e[f])})}),e.isMobile){Nl();return}var l=En(kl,50);if(e._debouncedChange=En(B,Is),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(e.daysContainer,"mouseover",function(f){e.config.mode==="range"&&et(W(f))}),k(e._input,"keydown",Ln),e.calendarContainer!==void 0&&k(e.calendarContainer,"keydown",Ln),!e.config.inline&&!e.config.static&&k(window,"resize",l),window.ontouchstart!==void 0?k(window.document,"touchstart",xt):k(window.document,"mousedown",xt),k(window.document,"focus",xt,{capture:!0}),e.config.clickOpens===!0&&(k(e._input,"focus",e.open),k(e._input,"click",e.open)),e.daysContainer!==void 0&&(k(e.monthNav,"click",Il),k(e.monthNav,["keyup","increment"],E),k(e.daysContainer,"click",zn)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var d=function(f){return W(f).select()};k(e.timeContainer,["increment"],h),k(e.timeContainer,"blur",h,{capture:!0}),k(e.timeContainer,"click",R),k([e.hourElement,e.minuteElement],["focus","click"],d),e.secondElement!==void 0&&k(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&k(e.amPM,"click",function(f){h(f)})}e.config.allowInput&&k(e._input,"blur",_l)}function O(l,d){var f=l!==void 0?e.parseDate(l):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),b=e.currentYear,_=e.currentMonth;try{f!==void 0&&(e.currentYear=f.getFullYear(),e.currentMonth=f.getMonth())}catch(C){C.message="Invalid date supplied: "+f,e.config.errorHandler(C)}d&&e.currentYear!==b&&(L("onYearChange"),ce()),d&&(e.currentYear!==b||e.currentMonth!==_)&&L("onMonthChange"),e.redraw()}function R(l){var d=W(l);~d.className.indexOf("arrow")&&z(l,d.classList.contains("arrowUp")?1:-1)}function z(l,d,f){var b=l&&W(l),_=f||b&&b.parentNode&&b.parentNode.firstChild,C=Tt("increment");C.delta=d,_&&_.dispatchEvent(C)}function F(){var l=window.document.createDocumentFragment();if(e.calendarContainer=I("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(l.appendChild(fl()),e.innerContainer=I("div","flatpickr-innerContainer"),e.config.weekNumbers){var d=ml(),f=d.weekWrapper,b=d.weekNumbers;e.innerContainer.appendChild(f),e.weekNumbers=b,e.weekWrapper=f}e.rContainer=I("div","flatpickr-rContainer"),e.rContainer.appendChild(On()),e.daysContainer||(e.daysContainer=I("div","flatpickr-days"),e.daysContainer.tabIndex=-1),xe(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),l.appendChild(e.innerContainer)}e.config.enableTime&&l.appendChild(pl()),$(e.calendarContainer,"rangeMode",e.config.mode==="range"),$(e.calendarContainer,"animate",e.config.animate===!0),$(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(l);var _=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&&(!_&&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 C=I("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(C,e.element),C.appendChild(e.element),e.altInput&&C.appendChild(e.altInput),C.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function ee(l,d,f,b){var _=be(d,!0),C=I("span",l,d.getDate().toString());return C.dateObj=d,C.$i=b,C.setAttribute("aria-label",e.formatDate(d,e.config.ariaDateFormat)),l.indexOf("hidden")===-1&&q(d,e.now)===0&&(e.todayDateElem=C,C.classList.add("today"),C.setAttribute("aria-current","date")),_?(C.tabIndex=-1,Bt(d)&&(C.classList.add("selected"),e.selectedDateElem=C,e.config.mode==="range"&&($(C,"startRange",e.selectedDates[0]&&q(d,e.selectedDates[0],!0)===0),$(C,"endRange",e.selectedDates[1]&&q(d,e.selectedDates[1],!0)===0),l==="nextMonthDay"&&C.classList.add("inRange")))):C.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Ml(d)&&!Bt(d)&&C.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&l!=="prevMonthDay"&&b%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(d)+"</span>"),L("onDayCreate",C),C}function oe(l){l.focus(),e.config.mode==="range"&&et(l)}function me(l){for(var d=l>0?0:e.config.showMonths-1,f=l>0?e.config.showMonths:-1,b=d;b!=f;b+=l)for(var _=e.daysContainer.children[b],C=l>0?0:_.children.length-1,N=l>0?_.children.length:-1,S=C;S!=N;S+=l){var v=_.children[S];if(v.className.indexOf("hidden")===-1&&be(v.dateObj))return v}}function Ee(l,d){for(var f=l.className.indexOf("Month")===-1?l.dateObj.getMonth():e.currentMonth,b=d>0?e.config.showMonths:-1,_=d>0?1:-1,C=f-e.currentMonth;C!=b;C+=_)for(var N=e.daysContainer.children[C],S=f-e.currentMonth===C?l.$i+d:d<0?N.children.length-1:0,v=N.children.length,w=S;w>=0&&w<v&&w!=(d>0?v:-1);w+=_){var D=N.children[w];if(D.className.indexOf("hidden")===-1&&be(D.dateObj)&&Math.abs(l.$i-w)>=Math.abs(d))return oe(D)}e.changeMonth(_),j(me(_),0)}function j(l,d){var f=i(),b=Qe(f||document.body),_=l!==void 0?l:b?f:e.selectedDateElem!==void 0&&Qe(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&Qe(e.todayDateElem)?e.todayDateElem:me(d>0?1:-1);_===void 0?e._input.focus():b?Ee(_,d):oe(_)}function ge(l,d){for(var f=(new Date(l,d,1).getDay()-e.l10n.firstDayOfWeek+7)%7,b=e.utils.getDaysInMonth((d-1+12)%12,l),_=e.utils.getDaysInMonth(d,l),C=window.document.createDocumentFragment(),N=e.config.showMonths>1,S=N?"prevMonthDay hidden":"prevMonthDay",v=N?"nextMonthDay hidden":"nextMonthDay",w=b+1-f,D=0;w<=b;w++,D++)C.appendChild(ee("flatpickr-day "+S,new Date(l,d-1,w),w,D));for(w=1;w<=_;w++,D++)C.appendChild(ee("flatpickr-day",new Date(l,d,w),w,D));for(var V=_+1;V<=42-f&&(e.config.showMonths===1||D%7!==0);V++,D++)C.appendChild(ee("flatpickr-day "+v,new Date(l,d+1,V%_),V,D));var te=I("div","dayContainer");return te.appendChild(C),te}function xe(){if(e.daysContainer!==void 0){Ue(e.daysContainer),e.weekNumbers&&Ue(e.weekNumbers);for(var l=document.createDocumentFragment(),d=0;d<e.config.showMonths;d++){var f=new Date(e.currentYear,e.currentMonth,1);f.setMonth(e.currentMonth+d),l.appendChild(ge(f.getFullYear(),f.getMonth()))}e.daysContainer.appendChild(l),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&et()}}function ce(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var l=function(b){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&b<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&b>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var d=0;d<12;d++)if(l(d)){var f=I("option","flatpickr-monthDropdown-month");f.value=new Date(e.currentYear,d).getMonth().toString(),f.textContent=Ze(d,e.config.shorthandCurrentMonth,e.l10n),f.tabIndex=-1,e.currentMonth===d&&(f.selected=!0),e.monthsDropdownContainer.appendChild(f)}}}function ul(){var l=I("div","flatpickr-month"),d=window.document.createDocumentFragment(),f;e.config.showMonths>1||e.config.monthSelectorType==="static"?f=I("span","cur-month"):(e.monthsDropdownContainer=I("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),k(e.monthsDropdownContainer,"change",function(N){var S=W(N),v=parseInt(S.value,10);e.changeMonth(v-e.currentMonth),L("onMonthChange")}),ce(),f=e.monthsDropdownContainer);var b=Je("cur-year",{tabindex:"-1"}),_=b.getElementsByTagName("input")[0];_.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&_.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(_.setAttribute("max",e.config.maxDate.getFullYear().toString()),_.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var C=I("div","flatpickr-current-month");return C.appendChild(f),C.appendChild(b),d.appendChild(C),l.appendChild(d),{container:l,yearElement:_,monthElement:f}}function In(){Ue(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var l=e.config.showMonths;l--;){var d=ul();e.yearElements.push(d.yearElement),e.monthElements.push(d.monthElement),e.monthNav.appendChild(d.container)}e.monthNav.appendChild(e.nextMonthNav)}function fl(){return e.monthNav=I("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=I("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=I("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,In(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(l){e.__hidePrevMonthArrow!==l&&($(e.prevMonthNav,"flatpickr-disabled",l),e.__hidePrevMonthArrow=l)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(l){e.__hideNextMonthArrow!==l&&($(e.nextMonthNav,"flatpickr-disabled",l),e.__hideNextMonthArrow=l)}}),e.currentYearElement=e.yearElements[0],it(),e.monthNav}function pl(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var l=Ct(e.config);e.timeContainer=I("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var d=I("span","flatpickr-time-separator",":"),f=Je("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=f.getElementsByTagName("input")[0];var b=Je("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=b.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Y(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?l.hours:p(l.hours)),e.minuteElement.value=Y(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():l.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(f),e.timeContainer.appendChild(d),e.timeContainer.appendChild(b),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var _=Je("flatpickr-second");e.secondElement=_.getElementsByTagName("input")[0],e.secondElement.value=Y(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():l.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(I("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(_)}return e.config.time_24hr||(e.amPM=I("span","flatpickr-am-pm",e.l10n.amPM[J((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 On(){e.weekdayContainer?Ue(e.weekdayContainer):e.weekdayContainer=I("div","flatpickr-weekdays");for(var l=e.config.showMonths;l--;){var d=I("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(d)}return Vn(),e.weekdayContainer}function Vn(){if(e.weekdayContainer){var l=e.l10n.firstDayOfWeek,d=Tn(e.l10n.weekdays.shorthand);l>0&&l<d.length&&(d=Tn(d.splice(l,d.length),d.splice(0,l)));for(var f=e.config.showMonths;f--;)e.weekdayContainer.children[f].innerHTML=`
|
|
58
|
+
`},wp="",Vc={props:{type:{type:String,default:"success"}},data(){return{icons:jc}}},qc={class:"status-indicator"},Fc=["innerHTML"];function Hc(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",qc,[i.createElementVNode("div",{class:i.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,Fc),i.renderSlot(t.$slots,"default",{},void 0,!0)])}const zc=_e(Vc,[["render",Hc],["__scopeId","data-v-e696394e"]]),kp="",Cp="",Uc={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:ct,Icon:Be},directives:{Tooltip:sn},emits:["update:isOpen"]},Kc={class:"panel-head"},Gc={class:"head-title"},Wc={class:"divider"},Yc={class:"head-content"},Zc={class:"panel-body"};function Jc(t,n,e,o,a,r){const l=i.resolveComponent("icon"),s=i.resolveComponent("icon-button"),u=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-panel",{"panel-error":e.error}])},[i.createElementVNode("div",Kc,[i.createElementVNode("div",Gc,[i.renderSlot(t.$slots,"title",{},void 0,!0)]),i.withDirectives(i.createElementVNode("div",Wc,null,512),[[i.vShow,!e.hideHeaderDivider]]),i.createElementVNode("div",Yc,[i.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showExpandButton?i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,class:i.normalizeClass({"toggle-visible-button":!0,active:a.isOpenVal}),kind:"ghost",type:"button",onClick:n[0]||(n[0]=c=>a.isOpenVal=!a.isOpenVal)},{default:i.withCtx(()=>[i.createVNode(l,{name:"chevron-down-outline"})]),_:1},8,["class"])),[[u,e.expandButtonTooltip]]):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",Zc,[i.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[i.vShow,a.isOpenVal]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Xc=_e(Uc,[["render",Jc],["__scopeId","data-v-1f178fc0"]]),Op="",Qc={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:Be}},eu=["disabled"],tu={key:0,class:"ib-chips-icon-wrapper"},nu={key:1,class:"ib-chips-close-wrapper"};function ru(t,n,e,o,a,r){const l=i.resolveComponent("icon");return i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass({"ib-chips":!0,"ib-chips-active":e.active,"ib-chips-error":e.error,"ib-chips-disabled":e.disabled}),disabled:e.disabled},[r.hasIcon?(i.openBlock(),i.createElementBlock("span",tu,[i.renderSlot(t.$slots,"icon",{class:"ib-chips-icon"},void 0,!0)])):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",nu,[i.createVNode(l,{class:"ib-chips-icon",name:"close-outline"})])):i.createCommentVNode("",!0)],10,eu)}const iu=_e(Qc,[["render",ru],["__scopeId","data-v-7f6d49d7"]]),Ep="",ou={name:"IbInputGroup",props:{supportText:{type:String,default:""},disabled:{type:Boolean,default:!1}}},au={key:0,class:"support-text"};function lu(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-form-group",{disabled:e.disabled}])},[i.renderSlot(t.$slots,"default"),e.supportText.length?(i.openBlock(),i.createElementBlock("p",au,i.toDisplayString(e.supportText),1)):i.createCommentVNode("",!0)],2)}const su=_e(ou,[["render",lu]]),Sp="",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}},Io=()=>{i.useCssVars(t=>({f99cce84:t.height}))},Po=Hr.setup;Hr.setup=Po?(t,n)=>(Io(),Po(t,n)):Io;const du={class:"ib-checkbox-group-content"};function cu(t,n,e,o,a,r){const l=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-alert");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-checkbox-group",{"ib-checkbox-group-horizontal":e.horizontal}])},[e.labelText.length?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-checkbox-group-label",required:e.required,"info-text":e.infoText,"tooltip-position":e.tooltipPosition},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelText),1)]),_:1},8,["required","info-text","tooltip-position"])):i.createCommentVNode("",!0),e.errorMessage.length?(i.openBlock(),i.createBlock(s,{key:1,class:"ib-error-message"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",du,[i.renderSlot(t.$slots,"default")])],2)}const uu=_e(Hr,[["render",cu]]),xp="",fu={name:"IbRadio",props:{modelValue:"",label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return gt()}},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{checked:!1,uid:gt()}},mounted(){this.checked=this.isChecked,this.$globalEvents.$on(`radio:update:${this.name}`,t=>{this.uid!==t&&(this.checked=!1)})},watch:{isChecked(t){this.checked=t}},methods:{checkHandler(){this.$emit("update:modelValue",this.value),this.disabled||(this.checked=!this.checked,this.$globalEvents.$emit(`radio:update:${this.name}`,this.uid))}},computed:{classes(){return{"ib-radio":!0,"has-error":this.error,"radio-filled":this.checked,"radio-disabled":this.disabled}},isChecked(){return this.modelValue===this.value}}},hu=t=>(i.pushScopeId("data-v-cc4a452b"),t=t(),i.popScopeId(),t),pu=["for","aria-checked"],mu=["name","id","value","checked","disabled"],gu=hu(()=>i.createElementVNode("span",{class:"ib-radio-input"},null,-1)),yu={key:0,class:"ib-radio-label"};function vu(t,n,e,o,a,r){var l,s;return i.openBlock(),i.createElementBlock("label",{role:"radio",class:i.normalizeClass(r.classes),for:e.id,"aria-checked":r.isChecked},[i.createElementVNode("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:r.isChecked,disabled:e.disabled,ref:"radio",onChange:n[0]||(n[0]=(...u)=>r.checkHandler&&r.checkHandler(...u))},null,40,mu),i.createElementVNode("span",{class:i.normalizeClass(["ib-radio-body",{"without-text":!((l=e.label)!=null&&l.length)}])},[gu,(s=e.label)!=null&&s.length?(i.openBlock(),i.createElementBlock("span",yu,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0)],2)],10,pu)}const bu=_e(fu,[["render",vu],["__scopeId","data-v-cc4a452b"]]),Tp="",_u={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},$u={class:"character-count"},wu={key:0,class:"val-limit"},ku={class:"val-length"},Cu={class:"val-limit"},Ou={key:2,class:"val-length error"};function Eu(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",$u,[e.characterLength?e.characterLimit>=e.characterLength?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("p",ku,i.toDisplayString(e.characterLength),1),i.createTextVNode(" / "),i.createElementVNode("p",Cu,i.toDisplayString(e.characterLimit),1)],64)):(i.openBlock(),i.createElementBlock("p",Ou,i.toDisplayString(e.characterLimit-e.characterLength),1)):(i.openBlock(),i.createElementBlock("p",wu,"Max "+i.toDisplayString(e.characterLimit),1))])}const zr=_e(_u,[["render",Eu],["__scopeId","data-v-be1f2629"]]),Np="",Su={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return gt()}},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.characterOverLimit||this.$emit("input",this.val)},onBlur(){this.characterOverLimit||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},xu=["disabled"],Tu={class:"textarea-actions"};function Nu(t,n,e,o,a,r){const l=i.resolveComponent("ib-character-count"),s=i.resolveComponent("ib-alert");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["textarea-wrapper",{disabled:e.disabled,hasActins:t.$slots.actions}])},[e.characterLimit?(i.openBlock(),i.createBlock(l,{key:0,"character-limit":e.characterLimit,"character-length":a.val.length},null,8,["character-limit","character-length"])):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1},512),[[i.vShow,e.errorMessage.length]]),i.withDirectives(i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[i.vShow,e.characterLimitErrorMessage.length&&r.characterOverLimit]]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(t.$attrs,{"onUpdate:modelValue":n[0]||(n[0]=u=>a.val=u),onInput:n[1]||(n[1]=(...u)=>r.onInput&&r.onInput(...u)),onBlur:n[2]||(n[2]=(...u)=>r.onBlur&&r.onBlur(...u)),class:["ib-textarea",r.classes],disabled:e.disabled}),null,16,xu),[[i.vModelText,a.val]]),i.createElementVNode("div",Tu,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])],2)}const Au=_e(Su,[["render",Nu],["__scopeId","data-v-718ebfc4"]]);var Ur=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],dn={_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},ot=function(t,n){return n===void 0&&(n=2),("000"+t).slice(n*-1)},pt=function(t){return t===!0?1:0};function Mo(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 Qe(t,n,e){if(e===!0)return t.classList.add(n);t.classList.remove(n)}function Ae(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 Bo(t,n){if(n(t))return t;if(t.parentNode)return Bo(t.parentNode,n)}function lr(t,n){var e=Ae("div","numInputWrapper"),o=Ae("input","numInput "+t),a=Ae("span","arrowUp"),r=Ae("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),n!==void 0)for(var l in n)o.setAttribute(l,n[l]);return e.appendChild(o),e.appendChild(a),e.appendChild(r),e}function ut(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]},Du={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*pt(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))}},Wt={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 ot(Sn.h(t,n,e))},H:function(t){return ot(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[pt(t.getHours()>11)]},M:function(t,n){return sr(t.getMonth(),!0,n)},S:function(t){return ot(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return ot(t.getFullYear(),4)},d:function(t){return ot(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return ot(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return ot(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?dn:n,o=t.l10n,a=o===void 0?En:o,r=t.isMobile,l=r===void 0?!1:r;return function(s,u,c){var p=c||a;return e.formatDate!==void 0&&!l?e.formatDate(s,u,p):u.split("").map(function(f,d,h){return Sn[f]&&h[d-1]!=="\\"?Sn[f](s,p,e):f!=="\\"?f:""}).join("")}},Wr=function(t){var n=t.config,e=n===void 0?dn:n,o=t.l10n,a=o===void 0?En:o;return function(r,l,s,u){if(!(r!==0&&!r)){var c=u||a,p,f=r;if(r instanceof Date)p=new Date(r.getTime());else if(typeof r!="string"&&r.toFixed!==void 0)p=new Date(r);else if(typeof r=="string"){var d=l||(e||dn).dateFormat,h=String(r).trim();if(h==="today")p=new Date,s=!0;else if(e&&e.parseDate)p=e.parseDate(r,d);else if(/Z$/.test(h)||/GMT$/.test(h))p=new Date(r);else{for(var b=void 0,m=[],_=0,y=0,g="";_<d.length;_++){var w=d[_],v=w==="\\",k=d[_-1]==="\\"||v;if(Wt[w]&&!k){g+=Wt[w];var T=new RegExp(g).exec(r);T&&(b=!0)&&m[w!=="Y"?"push":"unshift"]({fn:Du[w],val:T[++y]})}else v||(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,B=S.val;return p=x(p,B,c)||p}),p=b?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return s===!0&&p.setHours(0,0,0,0),p}}};function ft(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 Iu=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},Pu=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},Mu={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(),r=t.minDate.getMinutes(),l=t.minDate.getSeconds();n<a&&(n=a),n===a&&e<r&&(e=r),n===a&&e===r&&o<l&&(o=t.minDate.getSeconds())}if(t.maxDate!==void 0){var s=t.maxDate.getHours(),u=t.maxDate.getMinutes();n=Math.min(n,s),n===s&&(e=Math.min(u,e)),n===s&&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(s){s&&Object.keys(s).forEach(function(u){return t[u]=s[u]})},a=0,r=n;a<r.length;a++){var l=r[a];o(l)}return t});var We=globalThis&&globalThis.__assign||function(){return We=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},We.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 r=arguments[n],l=0,s=r.length;l<s;l++,a++)o[a]=r[l];return o},Bu=300;function Lu(t,n){var e={config:We(We({},dn),je.defaultConfig),l10n:En};e.parseDate=Wr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=m,e._setHoursFromDate=d,e._positionCalendar=te,e.changeMonth=D,e.changeYear=z,e.clear=A,e.close=P,e.onMouseOver=he,e._createElement=Ae,e.createDay=T,e.destroy=U,e.isEnabled=Z,e.jumpToDate=g,e.updateValue=rt,e.open=ke,e.redraw=ie,e.set=He,e.setDate=Ne,e.toggle=Jt;function o(){e.utils={getDaysInMonth:function(M,j){return M===void 0&&(M=e.currentMonth),j===void 0&&(j=e.currentYear),M===1&&(j%4===0&&j%100!==0||j%400===0)?29:e.l10n.daysInMonth[M]}}}function a(){e.element=e.input=t,e.isOpen=!1,Le(),Q(),nt(),Ee(),o(),e.isMobile||k(),y(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&d(e.config.noCalendar?e.latestSelectedDateObj:void 0),rt(!1)),s();var M=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&M&&te(),De("onReady")}function r(){var M;return((M=e.calendarContainer)===null||M===void 0?void 0:M.getRootNode()).activeElement||document.activeElement}function l(M){return M.bind(e)}function s(){var M=e.config;M.weekNumbers===!1&&M.showMonths===1||M.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)*M.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(M){if(e.selectedDates.length===0){var j=e.config.minDate===void 0||ft(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}M!==void 0&&M.type!=="blur"&&Xt(M);var X=e._input.value;f(),rt(),e._input.value!==X&&e._debouncedChange()}function c(M,j){return M%12+12*pt(j===e.l10n.amPM[1])}function p(M){switch(M%24){case 0:case 12:return 12;default:return M%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var M=(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&&(M=c(M,e.amPM.textContent));var X=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ft(e.latestSelectedDateObj,e.config.minDate,!0)===0,oe=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ft(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(M,j,G);if(ue>ye&&ue<se){var Ce=Pu(se);M=Ce[0],j=Ce[1],G=Ce[2]}}else{if(oe){var ce=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;M=Math.min(M,ce.getHours()),M===ce.getHours()&&(j=Math.min(j,ce.getMinutes())),j===ce.getMinutes()&&(G=Math.min(G,ce.getSeconds()))}if(X){var ge=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;M=Math.max(M,ge.getHours()),M===ge.getHours()&&j<ge.getMinutes()&&(j=ge.getMinutes()),j===ge.getMinutes()&&(G=Math.max(G,ge.getSeconds()))}}h(M,j,G)}}function d(M){var j=M||e.latestSelectedDateObj;j&&j instanceof Date&&h(j.getHours(),j.getMinutes(),j.getSeconds())}function h(M,j,G){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(M%24,j,G||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=ot(e.config.time_24hr?M:(12+M)%12+12*pt(M%12===0)),e.minuteElement.value=ot(j),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[pt(M>=12)]),e.secondElement!==void 0&&(e.secondElement.value=ot(G)))}function b(M){var j=ut(M),G=parseInt(j.value)+(M.delta||0);(G/1e3>1||M.key==="Enter"&&!/[^\d]/.test(G.toString()))&&z(G)}function m(M,j,G,X){if(j instanceof Array)return j.forEach(function(oe){return m(M,oe,G,X)});if(M instanceof Array)return M.forEach(function(oe){return m(oe,j,G,X)});M.addEventListener(j,G,X),e._handlers.push({remove:function(){return M.removeEventListener(j,G,X)}})}function _(){De("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){Mn();return}var M=Mo(ve,50);if(e._debouncedChange=Mo(_,Bu),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(e.daysContainer,"mouseover",function(G){e.config.mode==="range"&&he(ut(G))}),m(e._input,"keydown",de),e.calendarContainer!==void 0&&m(e.calendarContainer,"keydown",de),!e.config.inline&&!e.config.static&&m(window,"resize",M),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",Pt),m(e.monthNav,["keyup","increment"],b),m(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var j=function(G){return ut(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(M,j){var G=M!==void 0?e.parseDate(M):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&&(De("onYearChange"),N()),j&&(e.currentYear!==X||e.currentMonth!==oe)&&De("onMonthChange"),e.redraw()}function w(M){var j=ut(M);~j.className.indexOf("arrow")&&v(M,j.classList.contains("arrowUp")?1:-1)}function v(M,j,G){var X=M&&ut(M),oe=G||X&&X.parentNode&&X.parentNode.firstChild,se=zt("increment");se.delta=j,oe&&oe.dispatchEvent(se)}function k(){var M=window.document.createDocumentFragment();if(e.calendarContainer=Ae("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(M.appendChild(W()),e.innerContainer=Ae("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=Ae("div","flatpickr-rContainer"),e.rContainer.appendChild(re()),e.daysContainer||(e.daysContainer=Ae("div","flatpickr-days"),e.daysContainer.tabIndex=-1),O(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),M.appendChild(e.innerContainer)}e.config.enableTime&&M.appendChild(Y()),Qe(e.calendarContainer,"rangeMode",e.config.mode==="range"),Qe(e.calendarContainer,"animate",e.config.animate===!0),Qe(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(M);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=Ae("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(M,j,G,X){var oe=Z(j,!0),se=Ae("span",M,j.getDate().toString());return se.dateObj=j,se.$i=X,se.setAttribute("aria-label",e.formatDate(j,e.config.ariaDateFormat)),M.indexOf("hidden")===-1&&ft(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"&&(Qe(se,"startRange",e.selectedDates[0]&&ft(j,e.selectedDates[0],!0)===0),Qe(se,"endRange",e.selectedDates[1]&&ft(j,e.selectedDates[1],!0)===0),M==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&It(j)&&!kt(j)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&M!=="prevMonthDay"&&X%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(j)+"</span>"),De("onDayCreate",se),se}function S(M){M.focus(),e.config.mode==="range"&&he(M)}function x(M){for(var j=M>0?0:e.config.showMonths-1,G=M>0?e.config.showMonths:-1,X=j;X!=G;X+=M)for(var oe=e.daysContainer.children[X],se=M>0?0:oe.children.length-1,ye=M>0?oe.children.length:-1,ue=se;ue!=ye;ue+=M){var Ce=oe.children[ue];if(Ce.className.indexOf("hidden")===-1&&Z(Ce.dateObj))return Ce}}function B(M,j){for(var G=M.className.indexOf("Month")===-1?M.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?M.$i+j:j<0?ye.children.length-1:0,Ce=ye.children.length,ce=ue;ce>=0&&ce<Ce&&ce!=(j>0?Ce:-1);ce+=oe){var ge=ye.children[ce];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj)&&Math.abs(M.$i-ce)>=Math.abs(j))return S(ge)}e.changeMonth(oe),E(x(oe),0)}function E(M,j){var G=r(),X=J(G||document.body),oe=M!==void 0?M: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?B(oe,j):S(oe)}function C(M,j){for(var G=(new Date(M,j,1).getDay()-e.l10n.firstDayOfWeek+7)%7,X=e.utils.getDaysInMonth((j-1+12)%12,M),oe=e.utils.getDaysInMonth(j,M),se=window.document.createDocumentFragment(),ye=e.config.showMonths>1,ue=ye?"prevMonthDay hidden":"prevMonthDay",Ce=ye?"nextMonthDay hidden":"nextMonthDay",ce=X+1-G,ge=0;ce<=X;ce++,ge++)se.appendChild(T("flatpickr-day "+ue,new Date(M,j-1,ce),ce,ge));for(ce=1;ce<=oe;ce++,ge++)se.appendChild(T("flatpickr-day",new Date(M,j,ce),ce,ge));for(var xe=oe+1;xe<=42-G&&(e.config.showMonths===1||ge%7!==0);xe++,ge++)se.appendChild(T("flatpickr-day "+Ce,new Date(M,j+1,xe%oe),xe,ge));var Pe=Ae("div","dayContainer");return Pe.appendChild(se),Pe}function O(){if(e.daysContainer!==void 0){ar(e.daysContainer),e.weekNumbers&&ar(e.weekNumbers);for(var M=document.createDocumentFragment(),j=0;j<e.config.showMonths;j++){var G=new Date(e.currentYear,e.currentMonth,1);G.setMonth(e.currentMonth+j),M.appendChild(C(G.getFullYear(),G.getMonth()))}e.daysContainer.appendChild(M),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 M=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(M(j)){var G=Ae("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 M=Ae("div","flatpickr-month"),j=window.document.createDocumentFragment(),G;e.config.showMonths>1||e.config.monthSelectorType==="static"?G=Ae("span","cur-month"):(e.monthsDropdownContainer=Ae("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),m(e.monthsDropdownContainer,"change",function(ye){var ue=ut(ye),Ce=parseInt(ue.value,10);e.changeMonth(Ce-e.currentMonth),De("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=Ae("div","flatpickr-current-month");return se.appendChild(G),se.appendChild(X),j.appendChild(se),M.appendChild(j),{container:M,yearElement:oe,monthElement:G}}function q(){ar(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var M=e.config.showMonths;M--;){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=Ae("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=Ae("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=Ae("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,q(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(M){e.__hidePrevMonthArrow!==M&&(Qe(e.prevMonthNav,"flatpickr-disabled",M),e.__hidePrevMonthArrow=M)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(M){e.__hideNextMonthArrow!==M&&(Qe(e.nextMonthNav,"flatpickr-disabled",M),e.__hideNextMonthArrow=M)}}),e.currentYearElement=e.yearElements[0],Ye(),e.monthNav}function Y(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var M=Zr(e.config);e.timeContainer=Ae("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var j=Ae("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=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?M.hours:p(M.hours)),e.minuteElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():M.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=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():M.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(Ae("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(oe)}return e.config.time_24hr||(e.amPM=Ae("span","flatpickr-am-pm",e.l10n.amPM[pt((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=Ae("div","flatpickr-weekdays");for(var M=e.config.showMonths;M--;){var j=Ae("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(j)}return K(),e.weekdayContainer}function K(){if(e.weekdayContainer){var M=e.l10n.firstDayOfWeek,j=Ro(e.l10n.weekdays.shorthand);M>0&&M<j.length&&(j=Ro(j.splice(M,j.length),j.splice(0,M)));for(var G=e.config.showMonths;G--;)e.weekdayContainer.children[G].innerHTML=`
|
|
58
59
|
<span class='flatpickr-weekday'>
|
|
59
|
-
`+
|
|
60
|
+
`+j.join("</span><span class='flatpickr-weekday'>")+`
|
|
60
61
|
</span>
|
|
61
|
-
`}}function ml(){e.calendarContainer.classList.add("hasWeeks");var l=I("div","flatpickr-weekwrapper");l.appendChild(I("span","flatpickr-weekday",e.l10n.weekAbbreviation));var d=I("div","flatpickr-weeks");return l.appendChild(d),{weekWrapper:l,weekNumbers:d}}function Et(l,d){d===void 0&&(d=!0);var f=d?l:l-e.currentMonth;f<0&&e._hidePrevMonthArrow===!0||f>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=f,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,L("onYearChange"),ce()),xe(),L("onMonthChange"),it())}function gl(l,d){if(l===void 0&&(l=!0),d===void 0&&(d=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,d===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var f=Ct(e.config),b=f.hours,_=f.minutes,C=f.seconds;y(b,_,C)}e.redraw(),l&&L("onChange")}function bl(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),L("onClose")}function yl(){e.config!==void 0&&L("onDestroy");for(var l=e._handlers.length;l--;)e._handlers[l].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 d=e.calendarContainer.parentNode;if(d.lastChild&&d.removeChild(d.lastChild),d.parentNode){for(;d.firstChild;)d.parentNode.insertBefore(d.firstChild,d);d.parentNode.removeChild(d)}}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(f){try{delete e[f]}catch{}})}function Ae(l){return e.calendarContainer.contains(l)}function xt(l){if(e.isOpen&&!e.config.inline){var d=W(l),f=Ae(d),b=d===e.input||d===e.altInput||e.element.contains(d)||l.path&&l.path.indexOf&&(~l.path.indexOf(e.input)||~l.path.indexOf(e.altInput)),_=!b&&!f&&!Ae(l.relatedTarget),C=!e.config.ignoredFocusElements.some(function(N){return N.contains(d)});_&&C&&(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&&h(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function Xe(l){if(!(!l||e.config.minDate&&l<e.config.minDate.getFullYear()||e.config.maxDate&&l>e.config.maxDate.getFullYear())){var d=l,f=e.currentYear!==d;e.currentYear=d||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)),f&&(e.redraw(),L("onYearChange"),ce())}}function be(l,d){var f;d===void 0&&(d=!0);var b=e.parseDate(l,void 0,d);if(e.config.minDate&&b&&q(b,e.config.minDate,d!==void 0?d:!e.minDateHasTime)<0||e.config.maxDate&&b&&q(b,e.config.maxDate,d!==void 0?d:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(b===void 0)return!1;for(var _=!!e.config.enable,C=(f=e.config.enable)!==null&&f!==void 0?f:e.config.disable,N=0,S=void 0;N<C.length;N++){if(S=C[N],typeof S=="function"&&S(b))return _;if(S instanceof Date&&b!==void 0&&S.getTime()===b.getTime())return _;if(typeof S=="string"){var v=e.parseDate(S,void 0,!0);return v&&v.getTime()===b.getTime()?_:!_}else if(typeof S=="object"&&b!==void 0&&S.from&&S.to&&b.getTime()>=S.from.getTime()&&b.getTime()<=S.to.getTime())return _}return!_}function Qe(l){return e.daysContainer!==void 0?l.className.indexOf("hidden")===-1&&l.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(l):!1}function _l(l){var d=l.target===e._input,f=e._input.value.trimEnd()!==Nt();d&&f&&!(l.relatedTarget&&Ae(l.relatedTarget))&&e.setDate(e._input.value,!0,l.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ln(l){var d=W(l),f=e.config.wrap?t.contains(d):d===e._input,b=e.config.allowInput,_=e.isOpen&&(!b||!f),C=e.config.inline&&f&&!b;if(l.keyCode===13&&f){if(b)return e.setDate(e._input.value,!0,d===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),d.blur();e.open()}else if(Ae(d)||_||C){var N=!!e.timeContainer&&e.timeContainer.contains(d);switch(l.keyCode){case 13:N?(l.preventDefault(),h(),Dt()):zn(l);break;case 27:l.preventDefault(),Dt();break;case 8:case 46:f&&!e.config.allowInput&&(l.preventDefault(),e.clear());break;case 37:case 39:if(!N&&!f){l.preventDefault();var S=i();if(e.daysContainer!==void 0&&(b===!1||S&&Qe(S))){var v=l.keyCode===39?1:-1;l.ctrlKey?(l.stopPropagation(),Et(v),j(me(1),0)):j(void 0,v)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:l.preventDefault();var w=l.keyCode===40?1:-1;e.daysContainer&&d.$i!==void 0||d===e.input||d===e.altInput?l.ctrlKey?(l.stopPropagation(),Xe(e.currentYear-w),j(me(1),0)):N||j(void 0,w*7):d===e.currentYearElement?Xe(e.currentYear-w):e.config.enableTime&&(!N&&e.hourElement&&e.hourElement.focus(),h(l),e._debouncedChange());break;case 9:if(N){var D=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(G){return G}),V=D.indexOf(d);if(V!==-1){var te=D[V+(l.shiftKey?-1:1)];l.preventDefault(),(te||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(d)&&l.shiftKey&&(l.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&d===e.amPM)switch(l.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],g(),re();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],g(),re();break}(f||Ae(d))&&L("onKeyDown",l)}function et(l,d){if(d===void 0&&(d="flatpickr-day"),!(e.selectedDates.length!==1||l&&(!l.classList.contains(d)||l.classList.contains("flatpickr-disabled")))){for(var f=l?l.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),b=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),_=Math.min(f,e.selectedDates[0].getTime()),C=Math.max(f,e.selectedDates[0].getTime()),N=!1,S=0,v=0,w=_;w<C;w+=Ms.DAY)be(new Date(w),!0)||(N=N||w>_&&w<C,w<b&&(!S||w>S)?S=w:w>b&&(!v||w<v)&&(v=w));var D=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+d));D.forEach(function(V){var te=V.dateObj,G=te.getTime(),Fe=S>0&&G<S||v>0&&G>v;if(Fe){V.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(De){V.classList.remove(De)});return}else if(N&&!Fe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(De){V.classList.remove(De)}),l!==void 0&&(l.classList.add(f<=e.selectedDates[0].getTime()?"startRange":"endRange"),b<f&&G===b?V.classList.add("startRange"):b>f&&G===b&&V.classList.add("endRange"),G>=S&&(v===0||G<=v)&&Ns(G,b,f)&&V.classList.add("inRange"))})}}function kl(){e.isOpen&&!e.config.static&&!e.config.inline&&tt()}function Cl(l,d){if(d===void 0&&(d=e._positionElement),e.isMobile===!0){if(l){l.preventDefault();var f=W(l);f&&f.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),L("onOpen");return}else if(e._input.disabled||e.config.inline)return;var b=e.isOpen;e.isOpen=!0,b||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),L("onOpen"),tt(d)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(l===void 0||!e.timeContainer.contains(l.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Pn(l){return function(d){var f=e.config["_"+l+"Date"]=e.parseDate(d,e.config.dateFormat),b=e.config["_"+(l==="min"?"max":"min")+"Date"];f!==void 0&&(e[l==="min"?"minDateHasTime":"maxDateHasTime"]=f.getHours()>0||f.getMinutes()>0||f.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(_){return be(_)}),!e.selectedDates.length&&l==="min"&&m(f),re()),e.daysContainer&&(Rn(),f!==void 0?e.currentYearElement[l]=f.getFullYear().toString():e.currentYearElement.removeAttribute(l),e.currentYearElement.disabled=!!b&&f!==void 0&&b.getFullYear()===f.getFullYear())}}function wl(){var l=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],d=H(H({},JSON.parse(JSON.stringify(t.dataset||{}))),o),f={};e.config.parseDate=d.parseDate,e.config.formatDate=d.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(D){e.config._enable=jn(D)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(D){e.config._disable=jn(D)}});var b=d.mode==="time";if(!d.dateFormat&&(d.enableTime||b)){var _=A.defaultConfig.dateFormat||we.dateFormat;f.dateFormat=d.noCalendar||b?"H:i"+(d.enableSeconds?":S":""):_+" H:i"+(d.enableSeconds?":S":"")}if(d.altInput&&(d.enableTime||b)&&!d.altFormat){var C=A.defaultConfig.altFormat||we.altFormat;f.altFormat=d.noCalendar||b?"h:i"+(d.enableSeconds?":S K":" K"):C+(" h:i"+(d.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Pn("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Pn("max")});var N=function(D){return function(V){e.config[D==="min"?"_minTime":"_maxTime"]=e.parseDate(V,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:N("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:N("max")}),d.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,f,d);for(var S=0;S<l.length;S++)e.config[l[S]]=e.config[l[S]]===!0||e.config[l[S]]==="true";gt.filter(function(D){return e.config[D]!==void 0}).forEach(function(D){e.config[D]=bt(e.config[D]||[]).map(r)}),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 S=0;S<e.config.plugins.length;S++){var v=e.config.plugins[S](e)||{};for(var w in v)gt.indexOf(w)>-1?e.config[w]=bt(v[w]).map(r).concat(e.config[w]):typeof d[w]>"u"&&(e.config[w]=v[w])}d.altInputClass||(e.config.altInputClass=An().className+" "+e.config.altInputClass),L("onParseConfig")}function An(){return e.config.wrap?t.querySelector("[data-input]"):t}function Fn(){typeof e.config.locale!="object"&&typeof A.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=H(H({},A.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?A.l10ns[e.config.locale]:void 0),pe.D="("+e.l10n.weekdays.shorthand.join("|")+")",pe.l="("+e.l10n.weekdays.longhand.join("|")+")",pe.M="("+e.l10n.months.shorthand.join("|")+")",pe.F="("+e.l10n.months.longhand.join("|")+")",pe.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var l=H(H({},o),JSON.parse(JSON.stringify(t.dataset||{})));l.time_24hr===void 0&&A.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Dn(e),e.parseDate=_t({config:e.config,l10n:e.l10n})}function tt(l){if(typeof e.config.position=="function")return void e.config.position(e,l);if(e.calendarContainer!==void 0){L("onPreCalendarPosition");var d=l||e._positionElement,f=Array.prototype.reduce.call(e.calendarContainer.children,function(Hl,jl){return Hl+jl.offsetHeight},0),b=e.calendarContainer.offsetWidth,_=e.config.position.split(" "),C=_[0],N=_.length>1?_[1]:null,S=d.getBoundingClientRect(),v=window.innerHeight-S.bottom,w=C==="above"||C!=="below"&&v<f&&S.top>f,D=window.pageYOffset+S.top+(w?-f-2:d.offsetHeight+2);if($(e.calendarContainer,"arrowTop",!w),$(e.calendarContainer,"arrowBottom",w),!e.config.inline){var V=window.pageXOffset+S.left,te=!1,G=!1;N==="center"?(V-=(b-S.width)/2,te=!0):N==="right"&&(V-=b-S.width,G=!0),$(e.calendarContainer,"arrowLeft",!te&&!G),$(e.calendarContainer,"arrowCenter",te),$(e.calendarContainer,"arrowRight",G);var Fe=window.document.body.offsetWidth-(window.pageXOffset+S.right),De=V+b>window.document.body.offsetWidth,Vl=Fe+b>window.document.body.offsetWidth;if($(e.calendarContainer,"rightMost",De),!e.config.static)if(e.calendarContainer.style.top=D+"px",!De)e.calendarContainer.style.left=V+"px",e.calendarContainer.style.right="auto";else if(!Vl)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Fe+"px";else{var vt=Sl();if(vt===void 0)return;var Ll=window.document.body.offsetWidth,Pl=Math.max(0,Ll/2-b/2),Al=".flatpickr-calendar.centerMost:before",Fl=".flatpickr-calendar.centerMost:after",Rl=vt.cssRules.length,zl="{left:"+S.left+"px;right:auto;}";$(e.calendarContainer,"rightMost",!1),$(e.calendarContainer,"centerMost",!0),vt.insertRule(Al+","+Fl+zl,Rl),e.calendarContainer.style.left=Pl+"px",e.calendarContainer.style.right="auto"}}}}function Sl(){for(var l=null,d=0;d<document.styleSheets.length;d++){var f=document.styleSheets[d];if(f.cssRules){try{f.cssRules}catch{continue}l=f;break}}return l??El()}function El(){var l=document.createElement("style");return document.head.appendChild(l),l.sheet}function Rn(){e.config.noCalendar||e.isMobile||(ce(),it(),xe())}function Dt(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function zn(l){l.preventDefault(),l.stopPropagation();var d=function(D){return D.classList&&D.classList.contains("flatpickr-day")&&!D.classList.contains("flatpickr-disabled")&&!D.classList.contains("notAllowed")},f=xn(W(l),d);if(f!==void 0){var b=f,_=e.latestSelectedDateObj=new Date(b.dateObj.getTime()),C=(_.getMonth()<e.currentMonth||_.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=b,e.config.mode==="single")e.selectedDates=[_];else if(e.config.mode==="multiple"){var N=Bt(_);N?e.selectedDates.splice(parseInt(N),1):e.selectedDates.push(_)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=_,e.selectedDates.push(_),q(_,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(D,V){return D.getTime()-V.getTime()}));if(g(),C){var S=e.currentYear!==_.getFullYear();e.currentYear=_.getFullYear(),e.currentMonth=_.getMonth(),S&&(L("onYearChange"),ce()),L("onMonthChange")}if(it(),xe(),re(),!C&&e.config.mode!=="range"&&e.config.showMonths===1?oe(b):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 v=e.config.mode==="single"&&!e.config.enableTime,w=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(v||w)&&Dt()}B()}}var nt={locale:[Fn,Vn],showMonths:[In,a,On],minDate:[O],maxDate:[O],positionElement:[$n],clickOpens:[function(){e.config.clickOpens===!0?(k(e._input,"focus",e.open),k(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function xl(l,d){if(l!==null&&typeof l=="object"){Object.assign(e.config,l);for(var f in l)nt[f]!==void 0&&nt[f].forEach(function(b){return b()})}else e.config[l]=d,nt[l]!==void 0?nt[l].forEach(function(b){return b()}):gt.indexOf(l)>-1&&(e.config[l]=bt(d));e.redraw(),re(!0)}function Hn(l,d){var f=[];if(l instanceof Array)f=l.map(function(b){return e.parseDate(b,d)});else if(l instanceof Date||typeof l=="number")f=[e.parseDate(l,d)];else if(typeof l=="string")switch(e.config.mode){case"single":case"time":f=[e.parseDate(l,d)];break;case"multiple":f=l.split(e.config.conjunction).map(function(b){return e.parseDate(b,d)});break;case"range":f=l.split(e.l10n.rangeSeparator).map(function(b){return e.parseDate(b,d)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(l)));e.selectedDates=e.config.allowInvalidPreload?f:f.filter(function(b){return b instanceof Date&&be(b,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(b,_){return b.getTime()-_.getTime()})}function Dl(l,d,f){if(d===void 0&&(d=!1),f===void 0&&(f=e.config.dateFormat),l!==0&&!l||l instanceof Array&&l.length===0)return e.clear(d);Hn(l,f),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),O(void 0,d),m(),e.selectedDates.length===0&&e.clear(!1),re(d),d&&L("onChange")}function jn(l){return l.slice().map(function(d){return typeof d=="string"||typeof d=="number"||d instanceof Date?e.parseDate(d,void 0,!0):d&&typeof d=="object"&&d.from&&d.to?{from:e.parseDate(d.from,void 0),to:e.parseDate(d.to,void 0)}:d}).filter(function(d){return d})}function Tl(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var l=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);l&&Hn(l,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 Bl(){if(e.input=An(),!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=I(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"),$n()}function $n(){e._positionElement=e.config.positionElement||e._input}function Nl(){var l=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=I("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=l,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=l==="datetime-local"?"Y-m-d\\TH:i:S":l==="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{}k(e.mobileInput,"change",function(d){e.setDate(W(d).value,!1,e.mobileFormatStr),L("onChange"),L("onClose")})}function vl(l){if(e.isOpen===!0)return e.close();e.open(l)}function L(l,d){if(e.config!==void 0){var f=e.config[l];if(f!==void 0&&f.length>0)for(var b=0;f[b]&&b<f.length;b++)f[b](e.selectedDates,e.input.value,e,d);l==="onChange"&&(e.input.dispatchEvent(Tt("change")),e.input.dispatchEvent(Tt("input")))}}function Tt(l){var d=document.createEvent("Event");return d.initEvent(l,!0,!0),d}function Bt(l){for(var d=0;d<e.selectedDates.length;d++){var f=e.selectedDates[d];if(f instanceof Date&&q(f,l)===0)return""+d}return!1}function Ml(l){return e.config.mode!=="range"||e.selectedDates.length<2?!1:q(l,e.selectedDates[0])>=0&&q(l,e.selectedDates[1])<=0}function it(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(l,d){var f=new Date(e.currentYear,e.currentMonth,1);f.setMonth(e.currentMonth+d),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[d].textContent=Ze(f.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=f.getMonth().toString(),l.value=f.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 Nt(l){var d=l||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(f){return e.formatDate(f,d)}).filter(function(f,b,_){return e.config.mode!=="range"||e.config.enableTime||_.indexOf(f)===b}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function re(l){l===void 0&&(l=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Nt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Nt(e.config.altFormat)),l!==!1&&L("onValueUpdate")}function Il(l){var d=W(l),f=e.prevMonthNav.contains(d),b=e.nextMonthNav.contains(d);f||b?Et(f?-1:1):e.yearElements.indexOf(d)>=0?d.select():d.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):d.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Ol(l){l.preventDefault();var d=l.type==="keydown",f=W(l),b=f;e.amPM!==void 0&&f===e.amPM&&(e.amPM.textContent=e.l10n.amPM[J(e.amPM.textContent===e.l10n.amPM[0])]);var _=parseFloat(b.getAttribute("min")),C=parseFloat(b.getAttribute("max")),N=parseFloat(b.getAttribute("step")),S=parseInt(b.value,10),v=l.delta||(d?l.which===38?1:-1:0),w=S+N*v;if(typeof b.value<"u"&&b.value.length===2){var D=b===e.hourElement,V=b===e.minuteElement;w<_?(w=C+w+J(!D)+(J(D)&&J(!e.amPM)),V&&z(void 0,-1,e.hourElement)):w>C&&(w=b===e.hourElement?w-C-J(!e.amPM):_,V&&z(void 0,1,e.hourElement)),e.amPM&&D&&(N===1?w+S===23:Math.abs(w-S)>N)&&(e.amPM.textContent=e.l10n.amPM[J(e.amPM.textContent===e.l10n.amPM[0])]),b.value=Y(w)}}return s(),e}function Se(t,o){for(var e=Array.prototype.slice.call(t).filter(function(r){return r instanceof HTMLElement}),c=[],s=0;s<e.length;s++){var i=e[s];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=Os(i,o||{}),c.push(i._flatpickr)}catch(r){console.error(r)}}return c.length===1?c[0]:c}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return Se(this,t)},HTMLElement.prototype.flatpickr=function(t){return Se([this],t)});var A=function(t,o){return typeof t=="string"?Se(window.document.querySelectorAll(t),o):t instanceof Node?Se([t],o):Se(t,o)};A.defaultConfig={},A.l10ns={en:H({},Le),default:H({},Le)},A.localize=function(t){A.l10ns.default=H(H({},A.l10ns.default),t)},A.setDefaults=function(t){A.defaultConfig=H(H({},A.defaultConfig),t)},A.parseDate=_t({}),A.formatDate=Dn({}),A.compareDates=q,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return Se(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=A);const Vc="";var Bn={exports:{}};(function(t,o){(function(e,c){t.exports=c()})(bn,function(){/*! *****************************************************************************
|
|
62
|
+
`}}function V(){e.calendarContainer.classList.add("hasWeeks");var M=Ae("div","flatpickr-weekwrapper");M.appendChild(Ae("span","flatpickr-weekday",e.l10n.weekAbbreviation));var j=Ae("div","flatpickr-weeks");return M.appendChild(j),{weekWrapper:M,weekNumbers:j}}function D(M,j){j===void 0&&(j=!0);var G=j?M:M-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,De("onYearChange"),N()),O(),De("onMonthChange"),Ye())}function A(M,j){if(M===void 0&&(M=!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(),M&&De("onChange")}function P(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),De("onClose")}function U(){e.config!==void 0&&De("onDestroy");for(var M=e._handlers.length;M--;)e._handlers[M].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(M){return e.calendarContainer.contains(M)}function L(M){if(e.isOpen&&!e.config.inline){var j=ut(M),G=F(j),X=j===e.input||j===e.altInput||e.element.contains(j)||M.path&&M.path.indexOf&&(~M.path.indexOf(e.input)||~M.path.indexOf(e.altInput)),oe=!X&&!G&&!F(M.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(M){if(!(!M||e.config.minDate&&M<e.config.minDate.getFullYear()||e.config.maxDate&&M>e.config.maxDate.getFullYear())){var j=M,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(),De("onYearChange"),N())}}function Z(M,j){var G;j===void 0&&(j=!0);var X=e.parseDate(M,void 0,j);if(e.config.minDate&&X&&ft(X,e.config.minDate,j!==void 0?j:!e.minDateHasTime)<0||e.config.maxDate&&X&&ft(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(M){return e.daysContainer!==void 0?M.className.indexOf("hidden")===-1&&M.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(M):!1}function ne(M){var j=M.target===e._input,G=e._input.value.trimEnd()!==Ct();j&&G&&!(M.relatedTarget&&F(M.relatedTarget))&&e.setDate(e._input.value,!0,M.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function de(M){var j=ut(M),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(M.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(M.keyCode){case 13:ye?(M.preventDefault(),u(),$e()):me(M);break;case 27:M.preventDefault(),$e();break;case 8:case 46:G&&!e.config.allowInput&&(M.preventDefault(),e.clear());break;case 37:case 39:if(!ye&&!G){M.preventDefault();var ue=r();if(e.daysContainer!==void 0&&(X===!1||ue&&J(ue))){var Ce=M.keyCode===39?1:-1;M.ctrlKey?(M.stopPropagation(),D(Ce),E(x(1),0)):E(void 0,Ce)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:M.preventDefault();var ce=M.keyCode===40?1:-1;e.daysContainer&&j.$i!==void 0||j===e.input||j===e.altInput?M.ctrlKey?(M.stopPropagation(),z(e.currentYear-ce),E(x(1),0)):ye||E(void 0,ce*7):j===e.currentYearElement?z(e.currentYear-ce):e.config.enableTime&&(!ye&&e.hourElement&&e.hourElement.focus(),u(M),e._debouncedChange());break;case 9:if(ye){var ge=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(Ke){return Ke}),xe=ge.indexOf(j);if(xe!==-1){var Pe=ge[xe+(M.shiftKey?-1:1)];M.preventDefault(),(Pe||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(j)&&M.shiftKey&&(M.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&j===e.amPM)switch(M.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],f(),rt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],f(),rt();break}(G||F(j))&&De("onKeyDown",M)}function he(M,j){if(j===void 0&&(j="flatpickr-day"),!(e.selectedDates.length!==1||M&&(!M.classList.contains(j)||M.classList.contains("flatpickr-disabled")))){for(var G=M?M.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,ce=oe;ce<se;ce+=Mu.DAY)Z(new Date(ce),!0)||(ye=ye||ce>oe&&ce<se,ce<X&&(!ue||ce>ue)?ue=ce:ce>X&&(!Ce||ce<Ce)&&(Ce=ce));var ge=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+j));ge.forEach(function(xe){var Pe=xe.dateObj,Ke=Pe.getTime(),Mt=ue>0&&Ke<ue||Ce>0&&Ke>Ce;if(Mt){xe.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ot){xe.classList.remove(Ot)});return}else if(ye&&!Mt)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ot){xe.classList.remove(Ot)}),M!==void 0&&(M.classList.add(G<=e.selectedDates[0].getTime()?"startRange":"endRange"),X<G&&Ke===X?xe.classList.add("startRange"):X>G&&Ke===X&&xe.classList.add("endRange"),Ke>=ue&&(Ce===0||Ke<=Ce)&&Iu(Ke,X,G)&&xe.classList.add("inRange"))})}}function ve(){e.isOpen&&!e.config.static&&!e.config.inline&&te()}function ke(M,j){if(j===void 0&&(j=e._positionElement),e.isMobile===!0){if(M){M.preventDefault();var G=ut(M);G&&G.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),De("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"),De("onOpen"),te(j)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(M===void 0||!e.timeContainer.contains(M.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Oe(M){return function(j){var G=e.config["_"+M+"Date"]=e.parseDate(j,e.config.dateFormat),X=e.config["_"+(M==="min"?"max":"min")+"Date"];G!==void 0&&(e[M==="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&&M==="min"&&d(G),rt()),e.daysContainer&&(ie(),G!==void 0?e.currentYearElement[M]=G.getFullYear().toString():e.currentYearElement.removeAttribute(M),e.currentYearElement.disabled=!!X&&G!==void 0&&X.getFullYear()===G.getFullYear())}}function Le(){var M=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],j=We(We({},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=je.defaultConfig.dateFormat||dn.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=je.defaultConfig.altFormat||dn.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(xe){e.config[ge==="min"?"_minTime":"_maxTime"]=e.parseDate(xe,"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<M.length;ue++)e.config[M[ue]]=e.config[M[ue]]===!0||e.config[M[ue]]==="true";Ur.filter(function(ge){return e.config[ge]!==void 0}).forEach(function(ge){e.config[ge]=Kr(e.config[ge]||[]).map(l)}),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 ce in Ce)Ur.indexOf(ce)>-1?e.config[ce]=Kr(Ce[ce]).map(l).concat(e.config[ce]):typeof j[ce]>"u"&&(e.config[ce]=Ce[ce])}j.altInputClass||(e.config.altInputClass=Me().className+" "+e.config.altInputClass),De("onParseConfig")}function Me(){return e.config.wrap?t.querySelector("[data-input]"):t}function Q(){typeof e.config.locale!="object"&&typeof je.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=We(We({},je.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?je.l10ns[e.config.locale]:void 0),Wt.D="("+e.l10n.weekdays.shorthand.join("|")+")",Wt.l="("+e.l10n.weekdays.longhand.join("|")+")",Wt.M="("+e.l10n.months.shorthand.join("|")+")",Wt.F="("+e.l10n.months.longhand.join("|")+")",Wt.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var M=We(We({},n),JSON.parse(JSON.stringify(t.dataset||{})));M.time_24hr===void 0&&je.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(M){if(typeof e.config.position=="function")return void e.config.position(e,M);if(e.calendarContainer!==void 0){De("onPreCalendarPosition");var j=M||e._positionElement,G=Array.prototype.reduce.call(e.calendarContainer.children,function(Ze,Fn){return Ze+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,ce=se==="above"||se!=="below"&&Ce<G&&ue.top>G,ge=window.pageYOffset+ue.top+(ce?-G-2:j.offsetHeight+2);if(Qe(e.calendarContainer,"arrowTop",!ce),Qe(e.calendarContainer,"arrowBottom",ce),!e.config.inline){var xe=window.pageXOffset+ue.left,Pe=!1,Ke=!1;ye==="center"?(xe-=(X-ue.width)/2,Pe=!0):ye==="right"&&(xe-=X-ue.width,Ke=!0),Qe(e.calendarContainer,"arrowLeft",!Pe&&!Ke),Qe(e.calendarContainer,"arrowCenter",Pe),Qe(e.calendarContainer,"arrowRight",Ke);var Mt=window.document.body.offsetWidth-(window.pageXOffset+ue.right),Ot=xe+X>window.document.body.offsetWidth,Bn=Mt+X>window.document.body.offsetWidth;if(Qe(e.calendarContainer,"rightMost",Ot),!e.config.static)if(e.calendarContainer.style.top=ge+"px",!Ot)e.calendarContainer.style.left=xe+"px",e.calendarContainer.style.right="auto";else if(!Bn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Mt+"px";else{var Qt=ae();if(Qt===void 0)return;var ze=window.document.body.offsetWidth,Ln=Math.max(0,ze/2-X/2),Rn=".flatpickr-calendar.centerMost:before",jn=".flatpickr-calendar.centerMost:after",Vn=Qt.cssRules.length,qn="{left:"+ue.left+"px;right:auto;}";Qe(e.calendarContainer,"rightMost",!1),Qe(e.calendarContainer,"centerMost",!0),Qt.insertRule(Rn+","+jn+qn,Vn),e.calendarContainer.style.left=Ln+"px",e.calendarContainer.style.right="auto"}}}}function ae(){for(var M=null,j=0;j<document.styleSheets.length;j++){var G=document.styleSheets[j];if(G.cssRules){try{G.cssRules}catch{continue}M=G;break}}return M??le()}function le(){var M=document.createElement("style");return document.head.appendChild(M),M.sheet}function ie(){e.config.noCalendar||e.isMobile||(N(),Ye(),O())}function $e(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function me(M){M.preventDefault(),M.stopPropagation();var j=function(ge){return ge.classList&&ge.classList.contains("flatpickr-day")&&!ge.classList.contains("flatpickr-disabled")&&!ge.classList.contains("notAllowed")},G=Bo(ut(M),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),ft(oe,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ge,xe){return ge.getTime()-xe.getTime()}));if(f(),se){var ue=e.currentYear!==oe.getFullYear();e.currentYear=oe.getFullYear(),e.currentMonth=oe.getMonth(),ue&&(De("onYearChange"),N()),De("onMonthChange")}if(Ye(),O(),rt(),!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,ce=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(Ce||ce)&&$e()}_()}}var be={locale:[Q,K],showMonths:[q,s,re],minDate:[g],maxDate:[g],positionElement:[Zt],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 He(M,j){if(M!==null&&typeof M=="object"){Object.assign(e.config,M);for(var G in M)be[G]!==void 0&&be[G].forEach(function(X){return X()})}else e.config[M]=j,be[M]!==void 0?be[M].forEach(function(X){return X()}):Ur.indexOf(M)>-1&&(e.config[M]=Kr(j));e.redraw(),rt(!0)}function Ve(M,j){var G=[];if(M instanceof Array)G=M.map(function(X){return e.parseDate(X,j)});else if(M instanceof Date||typeof M=="number")G=[e.parseDate(M,j)];else if(typeof M=="string")switch(e.config.mode){case"single":case"time":G=[e.parseDate(M,j)];break;case"multiple":G=M.split(e.config.conjunction).map(function(X){return e.parseDate(X,j)});break;case"range":G=M.split(e.l10n.rangeSeparator).map(function(X){return e.parseDate(X,j)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(M)));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 Ne(M,j,G){if(j===void 0&&(j=!1),G===void 0&&(G=e.config.dateFormat),M!==0&&!M||M instanceof Array&&M.length===0)return e.clear(j);Ve(M,G),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),g(void 0,j),d(),e.selectedDates.length===0&&e.clear(!1),rt(j),j&&De("onChange")}function wt(M){return M.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 M=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);M&&Ve(M,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 nt(){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=Ae(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"),Zt()}function Zt(){e._positionElement=e.config.positionElement||e._input}function Mn(){var M=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=Ae("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=M,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=M==="datetime-local"?"Y-m-d\\TH:i:S":M==="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(ut(j).value,!1,e.mobileFormatStr),De("onChange"),De("onClose")})}function Jt(M){if(e.isOpen===!0)return e.close();e.open(M)}function De(M,j){if(e.config!==void 0){var G=e.config[M];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);M==="onChange"&&(e.input.dispatchEvent(zt("change")),e.input.dispatchEvent(zt("input")))}}function zt(M){var j=document.createEvent("Event");return j.initEvent(M,!0,!0),j}function kt(M){for(var j=0;j<e.selectedDates.length;j++){var G=e.selectedDates[j];if(G instanceof Date&&ft(G,M)===0)return""+j}return!1}function It(M){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ft(M,e.selectedDates[0])>=0&&ft(M,e.selectedDates[1])<=0}function Ye(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(M,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(),M.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(M){var j=M||(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 rt(M){M===void 0&&(M=!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)),M!==!1&&De("onValueUpdate")}function Pt(M){var j=ut(M),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 Xt(M){M.preventDefault();var j=M.type==="keydown",G=ut(M),X=G;e.amPM!==void 0&&G===e.amPM&&(e.amPM.textContent=e.l10n.amPM[pt(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=M.delta||(j?M.which===38?1:-1:0),ce=ue+ye*Ce;if(typeof X.value<"u"&&X.value.length===2){var ge=X===e.hourElement,xe=X===e.minuteElement;ce<oe?(ce=se+ce+pt(!ge)+(pt(ge)&&pt(!e.amPM)),xe&&v(void 0,-1,e.hourElement)):ce>se&&(ce=X===e.hourElement?ce-se-pt(!e.amPM):oe,xe&&v(void 0,1,e.hourElement)),e.amPM&&ge&&(ye===1?ce+ue===23:Math.abs(ce-ue)>ye)&&(e.amPM.textContent=e.l10n.amPM[pt(e.amPM.textContent===e.l10n.amPM[0])]),X.value=ot(ce)}}return a(),e}function cn(t,n){for(var e=Array.prototype.slice.call(t).filter(function(l){return l instanceof HTMLElement}),o=[],a=0;a<e.length;a++){var r=e[a];try{if(r.getAttribute("data-fp-omit")!==null)continue;r._flatpickr!==void 0&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=Lu(r,n||{}),o.push(r._flatpickr)}catch(l){console.error(l)}}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 cn(this,t)},HTMLElement.prototype.flatpickr=function(t){return cn([this],t)});var je=function(t,n){return typeof t=="string"?cn(window.document.querySelectorAll(t),n):t instanceof Node?cn([t],n):cn(t,n)};je.defaultConfig={},je.l10ns={en:We({},En),default:We({},En)},je.localize=function(t){je.l10ns.default=We(We({},je.l10ns.default),t)},je.setDefaults=function(t){je.defaultConfig=We(We({},je.defaultConfig),t)},je.parseDate=Wr({}),je.formatDate=Lo({}),je.compareDates=ft,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return cn(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=je);const Ap="";var jo={exports:{}};(function(t,n){(function(e,o){t.exports=o()})(Re,function(){/*! *****************************************************************************
|
|
62
63
|
Copyright (c) Microsoft Corporation.
|
|
63
64
|
|
|
64
65
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -71,12 +72,157 @@
|
|
|
71
72
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
72
73
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
73
74
|
PERFORMANCE OF THIS SOFTWARE.
|
|
74
|
-
***************************************************************************** */function e(){for(var
|
|
75
|
+
***************************************************************************** */function e(){for(var a=0,r=0,l=arguments.length;r<l;r++)a+=arguments[r].length;for(var s=Array(a),u=0,r=0;r<l;r++)for(var c=arguments[r],p=0,f=c.length;p<f;p++,u++)s[u]=c[p];return s}function o(a){return a===void 0&&(a={}),function(r){var l="",s,u,c,p=function(){if(a.input){if(s=a.input instanceof Element?a.input:window.document.querySelector(a.input),!s){r.config.errorHandler(new Error("Invalid input element specified"));return}r.config.wrap&&(s=s.querySelector("[data-input]"))}else s=r._input.cloneNode(),s.removeAttribute("id"),s._flatpickr=void 0;if(s.value){var d=r.parseDate(s.value);d&&r.selectedDates.push(d)}s.setAttribute("data-fp-omit",""),r.config.clickOpens&&(r._bind(s,["focus","click"],function(){r.selectedDates[1]&&(r.latestSelectedDateObj=r.selectedDates[1],r._setHoursFromDate(r.selectedDates[1]),r.jumpToDate(r.selectedDates[1])),u=!0,r.isOpen=!1,r.open(void 0,a.position==="left"?r._input:s)}),r._bind(r._input,["focus","click"],function(h){h.preventDefault(),r.isOpen=!1,r.open()})),r.config.allowInput&&r._bind(s,"keydown",function(h){h.key==="Enter"&&(r.setDate([r.selectedDates[0],s.value],!0,l),s.click())}),a.input||r._input.parentNode&&r._input.parentNode.insertBefore(s,r._input.nextSibling)},f={onParseConfig:function(){r.config.mode="range",l=r.config.altInput?r.config.altFormat:r.config.dateFormat},onReady:function(){p(),r.config.ignoredFocusElements.push(s),r.config.allowInput?(r._input.removeAttribute("readonly"),s.removeAttribute("readonly")):s.setAttribute("readonly","readonly"),r._bind(r._input,"focus",function(){r.latestSelectedDateObj=r.selectedDates[0],r._setHoursFromDate(r.selectedDates[0]),u=!1,r.jumpToDate(r.selectedDates[0])}),r.config.allowInput&&r._bind(r._input,"keydown",function(d){d.key==="Enter"&&r.setDate([r._input.value,r.selectedDates[1]],!0,l)}),r.setDate(r.selectedDates,!1),f.onValueUpdate(r.selectedDates),r.loadedPlugins.push("range")},onPreCalendarPosition:function(){u&&(r._positionElement=s,setTimeout(function(){r._positionElement=r._input},0))},onChange:function(){r.selectedDates.length||setTimeout(function(){r.selectedDates.length||(s.value="",c=[])},10),u&&setTimeout(function(){s.focus()},0)},onDestroy:function(){a.input||s.parentNode&&s.parentNode.removeChild(s)},onValueUpdate:function(d){var h,b,m;if(s){if(c=!c||d.length>=c.length?e(d):c,c.length>d.length){var _=d[0],y=u?[c[0],_]:[_,c[1]];y[0].getTime()>y[1].getTime()&&(u?y[0]=y[1]:y[1]=y[0]),r.setDate(y,!1),c=e(y)}h=r.selectedDates.map(function(g){return r.formatDate(g,l)}),b=h[0],r._input.value=b===void 0?"":b,m=h[1],s.value=m===void 0?"":m}}};return f}}return o})})(jo);var Ru=jo.exports;const ju=Cn(Ru),Vu=`
|
|
75
76
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
76
77
|
<path d="M10.25 3.5L5.75 8L10.25 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
77
78
|
</svg>
|
|
78
|
-
`,
|
|
79
|
+
`,qu=`
|
|
79
80
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
80
81
|
<path d="M5.75 3.5L10.25 8L5.75 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
81
82
|
</svg>
|
|
82
|
-
`,Lc="",Fs="single",wt="range",Rs={props:{name:{type:String,default:"Date"},modelValue:[String,Array],value:[String,Array],placeholder:{type:String,default:""},required:{type:Boolean,default:!1},config:{type:Object,default:()=>{}},mode:{type:String,default:Fs},label:{type:String,default:""},endDateLabel:{type:String,default:""},supportText:{type:String,default:""},endDateSupportText:{type:String,default:""},errorMessage:{type:String,default:""}},mounted(){document.addEventListener("keyup",this.onDocumentKeyDown,!0),this.$nextTick(()=>{this.initFlatpickr()})},watch:{config(){this.initFlatpickr()},value(){this.initFlatpickr()},modelValue(){this.initFlatpickr()}},data(){return{pickerOptions:{},data:this.modelValue,flat:null,isOpen:!1,isOpenEndDate:!1}},methods:{initFlatpickr(){this.flat=new A(this.$refs.date,this.pickerConfigs())},pickerConfigs(){const t=document.querySelectorAll(".calendar-icon");let o={dateFormat:"Y-m-d",altInput:!0,altFormat:"Y-m-d",position:"left",mode:this.mode,appendTo:this.$refs.dropdown,prevArrow:Ps,nextArrow:As,ignoredFocusElements:Array.from(t),locale:{weekdays:{shorthand:["S","M","T","W","T","F","S"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},onReady(c,s,i){i.setDate(s,!0)},onChange:(c,s)=>this.onChange(s),onClose:()=>this.onClose()};this.mode===wt&&(o.plugins=[new Ls({input:this.$refs.toDate})]),(this.value||this.modelValue)&&(this.mode===wt?o.defaultDate=this.modelValue.length?[this.modelValue[0],this.modelValue[1]]:[this.value[0],this.value[1]]:o.defaultDate=this.modelValue?this.modelValue:this.value);const e=Object.assign({},o,this.config);return this.pickerOptions=e,e},onClose(){this.triggerChange(),this.$nextTick(()=>{this.isOpen=!1,this.isOpenEndDate=!1})},onChange(t){this.mode===wt?this.data=t.split(" to "):this.data=t},onDocumentKeyDown(t){t.keyCode===lt&&this.close()},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))})},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)},components:{IbIcon:P,IbLabel:Oe,IbAlert:ke}},zs={class:"inputs-wrapper"},Hs={class:"input-group-wrapper"},js=["placeholder"],$s={ref:"dropdown",class:"dropdown"},Ys={key:1,class:"support-text"},Ks={key:0,class:"input-group-wrapper"},Ws=["placeholder"],qs={key:1,class:"support-text"};function Gs(t,o,e,c,s,i){const r=n.resolveComponent("ib-alert"),a=n.resolveComponent("ib-label"),h=n.resolveComponent("ib-icon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flatpickr-wrapper",{"has-labels":e.label.length||e.endDateLabel.length,"has-label":e.label.length,"has-error":e.errorMessage.length,"is-range":e.mode==="range"}])},[e.errorMessage.length?(n.openBlock(),n.createBlock(r,{key:0,class:"error-message"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.errorMessage),1)]),_:1})):n.createCommentVNode("",!0),n.createElementVNode("div",zs,[n.createElementVNode("div",Hs,[e.label.length?(n.openBlock(),n.createBlock(a,{key:0,class:"label",required:e.required},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.label),1)]),_:1},8,["required"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["input-wrapper",{active:s.isOpen}]),onClick:o[0]||(o[0]=(...u)=>i.open&&i.open(...u))},[n.createElementVNode("input",{placeholder:e.placeholder,ref:"date",class:"date-picker-input"},null,8,js),n.createVNode(h,{name:"today-outline",class:"calendar-icon"})],2),n.createElementVNode("div",$s,null,512),e.supportText.length?(n.openBlock(),n.createElementBlock("p",Ys,n.toDisplayString(e.supportText),1)):n.createCommentVNode("",!0)]),e.mode==="range"?(n.openBlock(),n.createElementBlock("div",Ks,[e.endDateLabel.length?(n.openBlock(),n.createBlock(a,{key:0,class:"end-date-label label",required:e.required},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.endDateLabel),1)]),_:1},8,["required"])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["input-wrapper",{active:s.isOpenEndDate}]),onClick:o[1]||(o[1]=(...u)=>i.openEndDate&&i.openEndDate(...u))},[n.createElementVNode("input",{class:"date-picker-input",placeholder:e.placeholder,ref:"toDate"},null,8,Ws),n.createVNode(h,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(n.openBlock(),n.createElementBlock("p",qs,n.toDisplayString(e.endDateSupportText),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])],2)}const Us=T(Rs,[["render",Gs]]),Pc="",Js={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},Zs={class:"ib-table-wrapper"},Xs={class:"ib-table"};function Qs(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("div",Zs,[n.createElementVNode("table",Xs,[i.hasThead?n.renderSlot(t.$slots,"thead",{key:0},void 0,!0):n.createCommentVNode("",!0),n.createElementVNode("tbody",null,[n.renderSlot(t.$slots,"tbody",{},void 0,!0)])])])}const el=T(Js,[["render",Qs],["__scopeId","data-v-5dceb760"]]),Ac="",tl={name:"IbRow"},nl={class:"ib-tr"};function il(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("tr",nl,[n.renderSlot(t.$slots,"default",{ref:"row"})])}const ol=T(tl,[["render",il]]),Fc="",rl={name:"IbCell",props:{fixed:{type:Boolean,default:!1}},data(){return{attr:{}}},mounted(){this.fixed&&this.freezeCol()},methods:{freezeCol(){const t=this.$el.getBoundingClientRect(),o=this.$el.closest("tr").getBoundingClientRect();this.attr.style||(this.attr.style={}),this.attr.style.minWidth=`${t.width}px`,this.attr.style.left=`${t.left-o.left}px`,this.attr.class+=" fixed"}}},al={class:"cell"};function sl(t,o,e,c,s,i){return n.openBlock(),n.createElementBlock("td",n.mergeProps({onResize:o[0]||(o[0]=(...r)=>i.freezeCol&&i.freezeCol(...r)),class:"ib-cell"},this.attr),[n.createElementVNode("div",al,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Nn=T(rl,[["render",sl],["__scopeId","data-v-e74bb0f3"]]),Rc="",ll={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Nn,IbCheckbox:mt}};function cl(t,o,e,c,s,i){const r=n.resolveComponent("ib-checkbox"),a=n.resolveComponent("ib-cell");return n.openBlock(),n.createBlock(a,{fixed:e.fixed,class:"ib-checkbox-cell"},{default:n.withCtx(()=>[n.createVNode(r,{"is-checked":e.isChecked},null,8,["is-checked"])]),_:1},8,["fixed"])}const dl=T(ll,[["render",cl]]),St=new un,vn=(t,o)=>{if(gn(t)){const e={title:o.value.title||"",text:typeof o.value=="object"?o.value.text:o.value};St.createTooltip(t,e)}},Mn=()=>{St.destroyTooltip()},hl={mounted(t,o){t.addEventListener("mouseenter",()=>vn(t,o)),t.addEventListener("mouseleave",Mn)},beforeUnmount(t,o){St.destroyTooltip(),t.removeEventListener("mouseenter",()=>vn(t,o)),t.removeEventListener("mouseleave",Mn)}};x.IbAccordion=Xn,x.IbAlert=ke,x.IbAvatar=eo,x.IbBadge=io,x.IbBreadcrumbs=Ir,x.IbButton=It,x.IbButtonGroup=so,x.IbCell=Nn,x.IbCheckbox=mt,x.IbCheckboxCell=dl,x.IbCheckboxGroup=ss,x.IbDatePicker=Us,x.IbDropdown=qe,x.IbDropdownItem=ht,x.IbDropdownList=Ge,x.IbFormGroup=is,x.IbIcon=P,x.IbIconButton=X,x.IbInput=pt,x.IbLabel=Oe,x.IbLimitSelector=wn,x.IbModal=Qo,x.IbPagination=Ma,x.IbPanel=Qa,x.IbPopover=en,x.IbProgressBar=Fa,x.IbRadio=ms,x.IbRow=ol,x.IbSorting=Er,x.IbSplitButton=Ko,x.IbSplitButtonItem=Go,x.IbStatusIndicator=Ya,x.IbTab=pr,x.IbTabDropdown=dn,x.IbTable=el,x.IbTabs=hr,x.IbTagPill=ho,x.IbTextarea=Ts,x.IbToggle=mn,x.IbToggleTip=on,x.IbTooltip=ue,x.IbTreeSelect=Cn,x.OutsideDirective=ct,x.TextOverflowTooltipDirective=hl,x.TooltipDirective=ut,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
83
|
+
`,Dp="",Fu="single",Jr="range",Hu={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:Fu},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.$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;const t=this.modelValue[0]&&this.modelValue[1]?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 je(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:Vu,nextArrow:qu,ignoredFocusElements:Array.from(t),locale:{weekdays:{shorthand:["S","M","T","W","T","F","S"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},onReady(r,l,s){s.setDate(l,!0)},onChange:(r,l)=>this.onChange(l),onClose:()=>this.onClose()};this.mode===Jr&&(n.plugins=[new ju({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.close()},onKeydownEndField(t){t.key==="ArrowDown"&&this.flat.selectedDateElem.focus()},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)},components:{IbIcon:Be,IbLabel:kn,IbAlert:Ft},emits:["input","update:modelValue"]},zu={class:"inputs-wrapper"},Uu={class:"input-group-wrapper"},Ku=["aria-label"],Gu=["placeholder","name","disabled"],Wu={ref:"dropdown",class:"dropdown"},Yu={key:1,class:"support-text"},Zu={key:0,class:"input-group-wrapper"},Ju=["aria-label"],Xu=["placeholder"],Qu={key:1,class:"support-text"};function ef(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.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?(i.openBlock(),i.createBlock(l,{key:0,class:"error-message"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",zu,[i.createElementVNode("div",Uu,[e.label.length?(i.openBlock(),i.createBlock(s,{key:0,class:"label",required:e.required},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.label),1)]),_:1},8,["required"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["input-wrapper",{active:a.isOpen}]),onClick:n[0]||(n[0]=(...c)=>r.open&&r.open(...c))},[i.createElementVNode("label",{"aria-label":e.ariaLabel},[i.createElementVNode("input",{placeholder:e.placeholder,name:e.name,ref:"date",id:"date",disabled:e.disabled,class:"date-picker-input"},null,8,Gu)],8,Ku),i.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),i.createElementVNode("div",Wu,null,512),e.supportText.length?(i.openBlock(),i.createElementBlock("p",Yu,i.toDisplayString(e.supportText),1)):i.createCommentVNode("",!0)]),e.mode==="range"?(i.openBlock(),i.createElementBlock("div",Zu,[e.endDateLabel.length?(i.openBlock(),i.createBlock(s,{key:0,class:"end-date-label label",required:e.required},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.endDateLabel),1)]),_:1},8,["required"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["input-wrapper",{active:a.isOpenEndDate}]),onClick:n[2]||(n[2]=(...c)=>r.openEndDate&&r.openEndDate(...c))},[i.createElementVNode("label",{"aria-label":e.endDateAriaLabel},[i.createElementVNode("input",{class:"date-picker-input",placeholder:e.endDatePlaceholder,ref:"toDate",onKeydown:n[1]||(n[1]=(...c)=>r.onKeydownEndField&&r.onKeydownEndField(...c))},null,40,Xu)],8,Ju),i.createVNode(u,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(i.openBlock(),i.createElementBlock("p",Qu,i.toDisplayString(e.endDateSupportText),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])],2)}const tf=_e(Hu,[["render",ef]]),nf=[["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"]]],rf=nf.map(([t,n,e,o=0,a=null])=>({name:t,iso2:n.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function of(){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 af(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 lf=[{name:"allCountries",type:Array,default:rf,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}],sf=[...lf].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:{...sf}};function et(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 df={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 cf(t,n){var e=Array.prototype.slice.call(n);return e.push(df),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 uf(t,n,e){return n&&qo(t.prototype,n),e&&qo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ff(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function hf(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 pf(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 mf(this,o)}}function mf(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||!gf(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 dr(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 dr(t,n,e){return Ho()?dr=Reflect.construct:dr=function(o,a,r){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),u=new s;return r&&Nn(u,r.prototype),u},dr.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 gf(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){hf(e,t);var n=pf(e);function e(o){var a;return ff(this,e),a=n.call(this,o),Object.setPrototypeOf(Fo(a),e.prototype),a.name=a.constructor.name,a}return uf(e)}(Qr(Error)),ei=2,yf=17,vf=3,yt="0-90-9٠-٩۰-۹",bf="-‐-―−ー-",_f="//",$f="..",wf=" ",kf="()()[]\\[\\]",Cf="~⁓∼~",cr="".concat(bf).concat(_f).concat($f).concat(wf).concat(kf).concat(Cf),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 r=Number(e[a]),l=Number(o[a]);if(r>l)return 1;if(l>r)return-1;if(!isNaN(r)&&isNaN(l))return 1;if(isNaN(r)&&!isNaN(l))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 Of={}.constructor;function ur(t){return t!=null&&t.constructor===Of}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 Ef="1.2.0",Sf="1.7.35",Ko=" ext. ",xf=/^\d+$/,tt=function(){function t(n){fr(this,t),Df(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&&xf.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 Tf(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 Af(Wo(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ko:this.metadata[13]||Ko}}]),t}(),Tf=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()&&!Nf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),Nf=/^\(?\$1\)?$/,Af=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 Df(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 "+If(t)+": "+t,"."))}var If=function(t){return ni(t)};function ri(t,n){if(n=new tt(n),n.hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function Pf(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,Ef)===-1?this.v2=!0:zo(n,Sf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Mf=";ext=",un=function(t){return"([".concat(yt,"]{1,").concat(t,"})")};function Zo(t){var n="20",e="15",o="9",a="6",r="[ \\t,]*",l="[:\\..]?[ \\t,-]*",s="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",p="[- ]+",f="[ \\t]*",d="(?:,{2}|;)",h=Mf+un(n),b=r+u+l+un(n)+s,m=r+c+l+un(o)+s,_=p+un(a)+"#",y=f+d+l+un(e)+s,g=f+"(?:,)+"+l+un(o)+s;return h+"|"+b+"|"+m+"|"+_+"|"+y+"|"+g}var Bf="["+yt+"]{"+ei+"}",Lf="["+ti+"]{0,1}(?:["+cr+"]*["+yt+"]){3,}["+cr+yt+"]*",Rf=new RegExp("^["+ti+"]{0,1}(?:["+cr+"]*["+yt+"]){1,2}$","i"),jf=Lf+"(?:"+Zo()+")?",Vf=new RegExp("^"+Bf+"$|^"+jf+"$","i");function qf(t){return t.length>=ei&&Vf.test(t)}function Ff(t){return Rf.test(t)}var Jo=new RegExp("(?:"+Zo()+")$","i");function Hf(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 zf={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 Uf(t){return zf[t]}function Kf(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=Gf(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.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gf(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=Kf(t.split("")),o;!(o=e()).done;){var a=o.value;n+=Wf(a,n)||""}return n}function Wf(t,n){return t==="+"?n?void 0:"+":Uf(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.
|
|
85
|
+
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 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 Jf(t,n){for(var e=t.slice(),o=Yf(n),a;!(a=o()).done;){var r=a.value;t.indexOf(r)<0&&e.push(r)}return e.sort(function(l,s){return l-s})}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 r=e.type("MOBILE");r&&(a=Jf(a,r.possibleLengths()))}else if(n&&!o)return"INVALID_LENGTH";var l=t.length,s=a[0];return s===l?"IS_POSSIBLE":s>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Xf(t,n,e){if(n===void 0&&(n={}),e=new tt(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 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.
|
|
86
|
+
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 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 th=["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 tt(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=Qf(th),r;!(r=a()).done;){var l=r.value;if(ai(o,l,e))return l}}}}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 nh(t,n,e){if(n=n||{},e=new tt(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 rh(t,n,e){var o=new tt(e),a=o.getCountryCodesForCallingCode(t);return a?a.filter(function(r){return ih(n,r,e)}):[]}function ih(t,n,e){var o=new tt(e);return o.selectNumberingPlan(n),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function oh(t){return t.replace(new RegExp("[".concat(cr,"]+"),"g")," ").trim()}var ah=/(\$\d)/;function lh(t,n,e){var o=e.useInternationalFormat,a=e.withNationalPrefix;e.carrierCode,e.metadata;var r=t.replace(new RegExp(n.pattern()),o?n.internationalFormat():a&&n.nationalPrefixFormattingRule()?n.format().replace(ah,n.nationalPrefixFormattingRule()):n.format());return o?oh(r):r}var sh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function dh(t,n,e){var o=new tt(e);if(o.selectNumberingPlan(t,n),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(sh.test(o.IDDPrefix()))return o.IDDPrefix()}function ch(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 uh(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=fh(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 fh(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){hh(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 hh(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 ph(t,n,e,o){if(e?e=aa(aa({},la),e):e=la,o=new tt(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(),r=e.v2?t.nationalNumber:t.phone,l;switch(n){case"NATIONAL":return r?(l=pr(r,t.carrierCode,"NATIONAL",o,e),li(l,t.ext,o,e.formatExtension)):"";case"INTERNATIONAL":return r?(l=pr(r,null,"INTERNATIONAL",o,e),l="+".concat(a," ").concat(l),li(l,t.ext,o,e.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(r);case"RFC3966":return ch({number:"+".concat(a).concat(r),ext:t.ext});case"IDD":if(!e.fromCountry)return;var s=gh(r,t.carrierCode,a,e.fromCountry,o);return li(s,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 r=mh(o.formats(),t);return r?lh(t,r,{useInternationalFormat:e==="INTERNATIONAL",withNationalPrefix:!(r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:n,metadata:o}):t}function mh(t,n){for(var e=uh(t),o;!(o=e()).done;){var a=o.value;if(a.leadingDigitsPatterns().length>0){var r=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(n.search(r)!==0)continue}if(Dt(n,a.pattern()))return a}}function li(t,n,e,o){return n?o(t,n,e):t}function gh(t,n,e,o,a){var r=ri(o,a.metadata);if(r===e){var l=pr(t,n,"NATIONAL",a);return e==="1"?e+" "+l:l}var s=dh(o,void 0,a.metadata);if(s)return"".concat(s," ").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 da(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){yh(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 yh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function vh(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ca(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 bh(t,n,e){return n&&ca(t.prototype,n),e&&ca(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var _h=function(){function t(n,e,o){if(vh(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=wh(n,o),r=a.country,l=a.countryCallingCode;this.country=r,this.countryCallingCode=l,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return bh(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:rh(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Xf(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return nh(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new tt(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 ph(this,n,e?da(da({},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}(),$h=function(t){return/^[A-Z]{2}$/.test(t)};function wh(t,n){var e,o,a=new tt(n);return $h(t)?(e=t,a.selectNumberingPlan(e),o=a.countryCallingCode()):o=t,{country:e,countryCallingCode:o}}var kh=new RegExp("(["+yt+"])");function Ch(t,n,e,o){if(n){var a=new tt(o);a.selectNumberingPlan(n,e);var r=new RegExp(a.IDDPrefix());if(t.search(r)===0){t=t.slice(t.match(r)[0].length);var l=t.match(kh);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return t}}}function Oh(t,n){if(t&&n.numberingPlan.nationalPrefixForParsing()){var e=new RegExp("^(?:"+n.numberingPlan.nationalPrefixForParsing()+")"),o=e.exec(t);if(o){var a,r,l=o.length-1,s=l>0&&o[l];if(n.nationalPrefixTransformRule()&&s)a=t.replace(e,n.nationalPrefixTransformRule()),l>1&&(r=o[1]);else{var u=o[0];a=t.slice(u.length),s&&(r=o[1])}var c;if(s){var p=t.indexOf(o[1]),f=t.slice(0,p);f===n.numberingPlan.nationalPrefix()&&(c=n.numberingPlan.nationalPrefix())}else c=o[0];return{nationalNumber:a,nationalPrefix:c,carrierCode:r}}}return{nationalNumber:t}}function si(t,n){var e=Oh(t,n),o=e.carrierCode,a=e.nationalNumber;if(a!==t){if(!Eh(t,a,n))return{nationalNumber:t};if(n.possibleLengths()&&!Sh(a,n))return{nationalNumber:t}}return{nationalNumber:a,carrierCode:o}}function Eh(t,n,e){return!(Dt(t,e.nationalNumberPattern())&&!Dt(n,e.nationalNumberPattern()))}function Sh(t,n){switch(ii(t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function xh(t,n,e,o){var a=n?ri(n,o):e;if(t.indexOf(a)===0){o=new tt(o),o.selectNumberingPlan(n,e);var r=t.slice(a.length),l=si(r,o),s=l.nationalNumber,u=si(t,o),c=u.nationalNumber;if(!Dt(c,o.nationalNumberPattern())&&Dt(s,o.nationalNumberPattern())||ii(c,o)==="TOO_LONG")return{countryCallingCode:a,number:r}}return{number:t}}function Th(t,n,e,o){if(!t)return{};var a;if(t[0]!=="+"){var r=Ch(t,n,e,o);if(r&&r!==t)a=!0,t="+"+r;else{if(n||e){var l=xh(t,n,e,o),s=l.countryCallingCode,u=l.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:u}}return{number:t}}}if(t[1]==="0")return{};o=new tt(o);for(var c=2;c-1<=vf&&c<=t.length;){var p=t.slice(1,c);if(o.hasCallingCode(p))return o.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(c)};c++}return{}}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=Ah(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 Ah(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 Dh(t,n){var e=n.countries,o=n.defaultCountry,a=n.metadata;a=new tt(a);for(var r=[],l=Nh(e),s;!(s=l()).done;){var u=s.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;r.push(u)}else return u}if(r.length>0)return r[0]}function Ih(t,n){var e=n.nationalNumber,o=n.defaultCountry,a=n.metadata,r=a.getCountryCodesForCallingCode(t);if(r)return r.length===1?r[0]:Dh(e,{countries:r,defaultCountry:o,metadata:a.metadata})}var fa="+",Ph="[\\-\\.\\(\\)]?",ha="(["+yt+"]|"+Ph+")",Mh="^\\"+fa+ha+"*["+yt+"]"+ha+"*$",Bh=new RegExp(Mh,"g"),di=yt,Lh="["+di+"]+((\\-)*["+di+"])*",Rh="a-zA-Z",jh="["+Rh+"]+((\\-)*["+di+"])*",Vh="^("+Lh+"\\.)*"+jh+"\\.?$",qh=new RegExp(Vh,"g"),pa="tel:",ci=";phone-context=",Fh=";isub=";function Hh(t){var n=t.indexOf(ci);if(n<0)return null;var e=n+ci.length;if(e>=t.length)return"";var o=t.indexOf(";",e);return o>=0?t.substring(e,o):t.substring(e)}function zh(t){return t===null?!0:t.length===0?!1:Bh.test(t)||qh.test(t)}function Uh(t,n){var e=n.extractFormattedPhoneNumber,o=Hh(t);if(!zh(o))throw new At("NOT_A_NUMBER");var a;if(o===null)a=e(t)||"";else{a="",o.charAt(0)===fa&&(a+=o);var r=t.indexOf(pa),l;r>=0?l=r+pa.length:l=0;var s=t.indexOf(ci);a+=t.substring(l,s)}var u=a.indexOf(Fh);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var Kh=250,Gh=new RegExp("["+ti+yt+"]"),Wh=new RegExp("[^"+yt+"#]+$");function Yh(t,n,e){if(n=n||{},e=new tt(e),n.defaultCountry&&!e.hasCountry(n.defaultCountry))throw n.v2?new At("INVALID_COUNTRY"):new Error("Unknown country: ".concat(n.defaultCountry));var o=Jh(t,n.v2,n.extract),a=o.number,r=o.ext,l=o.error;if(!a){if(n.v2)throw l==="TOO_SHORT"?new At("TOO_SHORT"):new At("NOT_A_NUMBER");return{}}var s=Qh(a,n.defaultCountry,n.defaultCallingCode,e),u=s.country,c=s.nationalNumber,p=s.countryCallingCode,f=s.countryCallingCodeSource,d=s.carrierCode;if(!e.hasSelectedNumberingPlan()){if(n.v2)throw new At("INVALID_COUNTRY");return{}}if(!c||c.length<ei){if(n.v2)throw new At("TOO_SHORT");return{}}if(c.length>yf){if(n.v2)throw new At("TOO_LONG");return{}}if(n.v2){var h=new _h(p,c,e.metadata);return u&&(h.country=u),d&&(h.carrierCode=d),r&&(h.ext=r),h.__countryCallingCodeSource=f,h}var b=(n.extended?e.hasSelectedNumberingPlan():u)?Dt(c,e.nationalNumberPattern()):!1;return n.extended?{country:u,countryCallingCode:p,carrierCode:d,valid:b,possible:b?!0:!!(n.extended===!0&&e.possibleLengths()&&na(c,e)),phone:c,ext:r}:b?Xh(u,c,r):{}}function Zh(t,n,e){if(t){if(t.length>Kh){if(e)throw new At("TOO_LONG");return}if(n===!1)return t;var o=t.search(Gh);if(!(o<0))return t.slice(o).replace(Wh,"")}}function Jh(t,n,e){var o=Uh(t,{extractFormattedPhoneNumber:function(r){return Zh(r,e,n)}});if(!o)return{};if(!qf(o))return Ff(o)?{error:"TOO_SHORT"}:{};var a=Hf(o);return a.ext?a:{number:o}}function Xh(t,n,e){var o={country:t,phone:n};return e&&(o.ext=e),o}function Qh(t,n,e,o){var a=Th(Qo(t),n,e,o.metadata),r=a.countryCallingCodeSource,l=a.countryCallingCode,s=a.number,u;if(l)o.selectNumberingPlan(l);else if(s&&(n||e))o.selectNumberingPlan(n,e),n&&(u=n),l=e||ri(n,o.metadata);else return{};if(!s)return{countryCallingCodeSource:r,countryCallingCode:l};var c=si(Qo(s),o),p=c.nationalNumber,f=c.carrierCode,d=Ih(l,{nationalNumber:p,defaultCountry:n,metadata:o});return d&&(u=d,d==="001"||o.country(u)),{country:u,countryCallingCode:l,countryCallingCodeSource:r,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){e1(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 e1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function t1(t,n,e){return Yh(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 n1(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){r1(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 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){return s1(t)||l1(t,n)||a1(t,n)||o1()}function o1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a1(t,n){if(t){if(typeof t=="string")return va(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 va(t,n)}}function va(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 l1(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var o=[],a=!0,r=!1,l,s;try{for(e=e.call(t);!(a=(l=e.next()).done)&&(o.push(l.value),!(n&&o.length===n));a=!0);}catch(u){r=!0,s=u}finally{try{!a&&e.return!=null&&e.return()}finally{if(r)throw s}}return o}}function s1(t){if(Array.isArray(t))return t}function d1(t){var n=Array.prototype.slice.call(t),e=i1(n,4),o=e[0],a=e[1],r=e[2],l=e[3],s,u,c;if(typeof o=="string")s=o;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")l?(u=r,c=l):(u=void 0,c=r),a&&(u=n1({defaultCountry:a},u));else if(ur(a))r?(u=a,c=r):c=a;else throw new Error("Invalid second argument: ".concat(a));return{text:s,options:u,metadata:c}}function ba(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?ba(Object(e),!0).forEach(function(o){c1(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ba(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function c1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u1(t,n,e){n&&n.defaultCountry&&!Pf(n.defaultCountry,e)&&(n=_a(_a({},n),{},{defaultCountry:void 0}));try{return t1(t,n,e)}catch(o){if(!(o instanceof At))throw o}}function f1(){var t=d1(arguments),n=t.text,e=t.options,o=t.metadata;return u1(n,e,o)}function ui(){return cf(f1,arguments)}const h1={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)}},p1=["aria-expanded","tabindex"],m1={class:"vti__selection"},g1={key:1,class:"vti__country-code"},y1={class:"vti__dropdown-arrow"},v1={key:0,class:"vti__search_box_container"},b1=["placeholder"],_1=["onClick","onMousemove","aria-selected"],$1={key:1},w1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],k1=i.defineComponent({name:"VueTelInput",directives:{clickOutside:h1},__name:"vue-tel-input",props:i.mergeModels({allCountries:{type:Array,default:()=>et("allCountries")},autoFormat:{type:Boolean,default:()=>et("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>et("customValidate")},defaultCountry:{type:[String,Number],default:()=>et("defaultCountry")},disabled:{type:Boolean,default:()=>et("disabled")},autoDefaultCountry:{type:Boolean,default:()=>et("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>et("dropdownOptions")},ignoredCountries:{type:Array,default:()=>et("ignoredCountries")},inputOptions:{type:Object,default:()=>et("inputOptions")},invalidMsg:{type:String,default:()=>et("invalidMsg")},mode:{type:String,default:()=>et("mode")},onlyCountries:{type:Array,default:()=>et("onlyCountries")},preferredCountries:{type:Array,default:()=>et("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>et("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>et("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:i.mergeModels(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const o=i.shallowRef(),a=i.shallowRef(),r=i.shallowRef(),l=e,s=t,u=i.useModel(t,"modelValue");i.watch(u,(A,P)=>{S()?c.phone=A??"":i.nextTick(()=>{c.phone=P??"",B()})});const c=i.reactive({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:s.inputOptions.placeholder,searchQuery:""});i.watch(()=>c.open,A=>{A?(D(),l("open")):l("close")});const p=i.computed(()=>s.onlyCountries.length?s.allCountries.filter(({iso2:A})=>s.onlyCountries.some(P=>Tn(P)===A)):s.ignoredCountries.length?s.allCountries.filter(({iso2:A})=>!s.ignoredCountries.includes(Tn(A))&&!s.ignoredCountries.includes(xn(A))):s.allCountries),f=i.computed(()=>g(c.activeCountryCode));i.watch(f,(A,P)=>{if(!A&&P!=null&&P.iso2){c.activeCountryCode=P.iso2;return}A!=null&&A.iso2&&l("country-changed",A)});const d=i.computed(()=>{var A;const P=xn(s.mode);return P==="auto"?(A=c.phone)!=null&&A.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(P)?P:(console.error('Invalid value of prop "mode"'),"international")}),h=i.computed(()=>{const A=[...y(s.preferredCountries).map(U=>({...U,preferred:!0})),...p.value];if(!s.dropdownOptions.showSearchBox)return A;const P=c.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return A.filter(U=>new RegExp(P,"i").test(U.name)||new RegExp(P,"i").test(U.iso2)||new RegExp(P,"i").test(U.dialCode))}),b=i.computed(()=>{var A;const P=c.phone.startsWith("+")?ui(c.phone):ui(c.phone,c.activeCountryCode),U={country:P==null?void 0:P.country,countryCode:P==null?void 0:P.country,formatted:c.phone,valid:P==null?void 0:P.isValid(),possible:(A=P==null?void 0:P.isPossible)==null?void 0:A.call(P),nationalNumber:P==null?void 0:P.nationalNumber};return U.valid&&(U.formatted=P==null?void 0:P.format(Tn(d.value))),P!=null&&P.country&&(s.ignoredCountries.length||s.onlyCountries.length)&&!g(P.country)&&(U.valid=!1,U.possible=!1,P.country=null),P?{...U,...P}:U});i.watch(()=>b.value.countryCode,A=>{A&&(c.activeCountryCode=A)}),i.watch(()=>b.value.valid,()=>{l("validate",b.value)}),i.watch(()=>b.value.formatted,A=>{!s.autoFormat||s.customValidate||(E(A),i.nextTick(()=>{A&&!u.value&&(c.phone=A)}))}),i.watch(()=>s.inputOptions.placeholder,m),i.onMounted(()=>{u.value&&(c.phone=u.value.trim()),T(),_().then(()=>{var A;!c.phone&&(A=s.inputOptions)!=null&&A.showDialCode&&c.activeCountryCode&&(c.phone=`+${c.activeCountryCode}`),l("validate",b.value)}).catch(console.error).then(()=>{c.finishMounted=!0})});function m(){c.parsedPlaceholder=s.inputOptions.placeholder}function _(){return new Promise(A=>{var P;if(((P=c.phone)==null?void 0:P[0])==="+"){A();return}if(s.defaultCountry){if(typeof s.defaultCountry=="string"){k(s.defaultCountry),A();return}if(typeof s.defaultCountry=="number"){const F=w(s.defaultCountry);if(F){k(F.iso2),A();return}}}const U=s.preferredCountries[0]||p.value[0];s.autoDefaultCountry?of().then(F=>{k(F||c.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(P=>P.iso2===Tn(A))}function w(A){return p.value.find(P=>Number(P.dialCode)===A)}function v(A,P){const U=c.selectedIndex===A,F=A===s.preferredCountries.length-1,L=s.preferredCountries.some(z=>Tn(z)===P);return{highlighted:U,"last-preferred":F,preferred:L}}function k(A){var P,U,F;let L=A;if(typeof L=="string"&&(L=g(L)),!!L){if(((P=c.phone)==null?void 0:P[0])==="+"&&L.iso2&&b.value.nationalNumber){c.activeCountryCode=L.iso2,c.phone=((U=ui(b.value.nationalNumber,L.iso2))==null?void 0:U.formatInternational())??"";return}if((F=s.inputOptions)!=null&&F.showDialCode&&L){c.phone=`+${L.dialCode}`,c.activeCountryCode=L.iso2;return}c.activeCountryCode=L.iso2,E(c.phone)}}function T(){const A=c.phone;if(s.validCharactersOnly){const P=c.phone.match(/[()\-+0-9\s]*/g);c.phone=P.join("")}if(s.customValidate&&s.customValidate instanceof RegExp){const P=c.phone.match(s.customValidate);c.phone=P.join("")}A!==c.phone&&E(c.phone)}function S(){return s.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(c.phone)?!1:s.customValidate?x():!0}function x(){return s.customValidate instanceof RegExp?s.customValidate.test(c.phone):!1}function B(){var A;(A=r.value)==null||A.setCustomValidity(b.value.valid?"":s.invalidMsg),E(c.phone)}function E(A){u.value=A,l("on-input",A,b.value,r.value)}function C(A){l("blur",A)}function O(A){af(r.value,c.phone.length),l("focus",A)}function N(A){l("enter",A)}function R(A){l("space",A)}function q(){var A;(A=r.value)==null||A.focus()}function W(){var A;(A=r.value)==null||A.blur()}function Y(){s.disabled||s.dropdownOptions.disabled||(c.searchQuery="",c.open=!c.open)}function re(){c.open=!1}function K(A){if(A.keyCode===40){A.preventDefault(),c.open=!0,c.selectedIndex===null?c.selectedIndex=0:c.selectedIndex=Math.min(h.value.length-1,c.selectedIndex+1);const P=a.value.children[c.selectedIndex];P.focus(),P.offsetTop+P.clientHeight>a.value.scrollTop+a.value.clientHeight&&(a.value.scrollTop=P.offsetTop-a.value.clientHeight+P.clientHeight)}else if(A.keyCode===38){A.preventDefault(),c.open=!0,c.selectedIndex===null?c.selectedIndex=h.value.length-1:c.selectedIndex=Math.max(0,c.selectedIndex-1);const P=a.value.children[c.selectedIndex];P.focus(),P.offsetTop<a.value.scrollTop&&(a.value.scrollTop=P.offsetTop)}else if(A.keyCode===13)c.selectedIndex!==null&&k(h.value[c.selectedIndex]),c.open=!c.open;else if(c.open){c.typeToFindInput+=A.key,clearTimeout(c.typeToFindTimer),c.typeToFindTimer=setTimeout(()=>{c.typeToFindInput=""},700);const P=h.value.slice(s.preferredCountries.length).findIndex(U=>xn(U.name).startsWith(c.typeToFindInput));if(P>=0){c.selectedIndex=s.preferredCountries.length+P;const U=a.value.children[c.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(){c.selectedIndex=h.value.map(A=>A.iso2).indexOf(c.activeCountryCode),c.open=!1}function D(){window.innerHeight-o.value.getBoundingClientRect().bottom>200?c.dropdownOpenDirection="below":c.dropdownOpenDirection="above"}return n({focus:q,blur:W}),(A,P)=>{const U=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock("div",{ref_key:"refRoot",ref:o,class:i.normalizeClass(["vue-tel-input",t.styleClasses,{disabled:t.disabled}])},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":c.open,role:"button",class:i.normalizeClass(["vti__dropdown",{open:c.open,disabled:t.dropdownOptions.disabled}]),tabindex:t.dropdownOptions.tabindex,onKeydown:[K,i.withKeys(Y,["space"]),i.withKeys(V,["esc"]),i.withKeys(V,["tab"])],onClick:Y},[i.createElementVNode("span",m1,[t.dropdownOptions.showFlags?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["vti__flag",i.unref(xn)(c.activeCountryCode)])},null,2)):i.createCommentVNode("",!0),t.dropdownOptions.showDialCodeInSelection?(i.openBlock(),i.createElementBlock("span",g1," +"+i.toDisplayString(f.value&&f.value.dialCode),1)):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"arrow-icon",{open:c.open},()=>[i.createElementVNode("span",y1,i.toDisplayString(c.open?"▲":"▼"),1)])]),c.open?(i.openBlock(),i.createElementBlock("ul",{key:0,ref_key:"refList",ref:a,class:i.normalizeClass(["vti__dropdown-list",c.dropdownOpenDirection]),role:"listbox"},[t.dropdownOptions.showSearchBox?(i.openBlock(),i.createElementBlock("div",v1,[i.renderSlot(A.$slots,"search-icon"),i.withDirectives(i.createElementVNode("input",{class:i.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":P[0]||(P[0]=F=>c.searchQuery=F),onClick:P[1]||(P[1]=i.withModifiers(()=>{},["stop"]))},null,8,b1),[[i.vModelText,c.searchQuery]])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,(F,L)=>(i.openBlock(),i.createElementBlock("li",{role:"option",class:i.normalizeClass(["vti__dropdown-item",v(L,F.iso2)]),key:F.iso2+(F.preferred?"-preferred":""),tabindex:"-1",onClick:z=>k(F),onMousemove:z=>c.selectedIndex=L,"aria-selected":c.activeCountryCode===F.iso2&&!F.preferred},[t.dropdownOptions.showFlags?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["vti__flag",i.unref(xn)(F.iso2)])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("strong",null,i.toDisplayString(F.name),1),t.dropdownOptions.showDialCodeInList?(i.openBlock(),i.createElementBlock("span",$1," +"+i.toDisplayString(F.dialCode),1)):i.createCommentVNode("",!0)],42,_1))),128))],2)):i.createCommentVNode("",!0)],42,p1)),[[U,re]]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":P[2]||(P[2]=F=>c.phone=F),ref_key:"refInput",ref:r,type:t.inputOptions.type,autocomplete:t.inputOptions.autocomplete,autofocus:t.inputOptions.autofocus,class:i.normalizeClass(["vti__input","vti__phone",t.inputOptions.styleClasses]),disabled:t.disabled,id:t.inputOptions.id,maxlength:t.inputOptions.maxlength,name:t.inputOptions.name,placeholder:c.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:B,onKeyup:[i.withKeys(N,["enter"]),i.withKeys(R,["space"])]},null,42,w1),[[i.vModelDynamic,c.phone]]),i.renderSlot(A.$slots,"icon-right")],2)}}}),Ip="",Pp="",C1={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:""}},emits:["update:modelValue","onReady"],components:{VueTelInput:k1,IbAlert:Ft,IbIcon:Be},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 O1(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("vue-tel-input"),c=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage.length?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-phone-error-message"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.withDirectives((i.openBlock(),i.createBlock(u,i.mergeProps({modelValue:r.phone,"onUpdate:modelValue":n[0]||(n[0]=p=>r.phone=p)},t.$attrs,{onCountryChanged:r.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},"style-classes":"ib-phone-input",ref:"vueTel"}),{"arrow-icon":i.withCtx(()=>[i.createVNode(s,{name:"chevron-down-outline"})]),_:1},16,["modelValue","onCountryChanged","input-options","auto-default-country","defaultCountry","ignoredCountries","class"])),[[c,r.clickOutside]])],64)}const E1=_e(C1,[["render",O1]]);var $a={exports:{}};/*!
|
|
90
|
+
* Quill Editor v1.3.7
|
|
91
|
+
* https://quilljs.com/
|
|
92
|
+
* Copyright (c) 2014, Jason Chen
|
|
93
|
+
* Copyright (c) 2013, salesforce.com
|
|
94
|
+
*/(function(t,n){(function(o,a){t.exports=a()})(typeof self<"u"?self:Re,function(){return function(e){var o={};function a(r){if(o[r])return o[r].exports;var l=o[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=e,a.c=o,a.d=function(r,l,s){a.o(r,l)||Object.defineProperty(r,l,{configurable:!1,enumerable:!0,get:s})},a.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(l,"a",l),l},a.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},a.p="",a(a.s=109)}([function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(17),l=a(18),s=a(19),u=a(45),c=a(46),p=a(47),f=a(48),d=a(49),h=a(12),b=a(32),m=a(33),_=a(31),y=a(1),g={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:l.default,Leaf:s.default,Embed:f.default,Scroll:u.default,Block:p.default,Inline:c.default,Text:d.default,Attributor:{Attribute:h.default,Class:b.default,Style:m.default,Store:_.default}};o.default=g},function(e,o,a){var r=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var w in g)g.hasOwnProperty(w)&&(y[w]=g[w])};return function(y,g){_(y,g);function w(){this.constructor=y}y.prototype=g===null?Object.create(g):(w.prototype=g.prototype,new w)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=function(_){r(y,_);function y(g){var w=this;return g="[Parchment] "+g,w=_.call(this,g)||this,w.message=g,w.name=w.constructor.name,w}return y}(Error);o.ParchmentError=l;var s={},u={},c={},p={};o.DATA_KEY="__blot";var f;(function(_){_[_.TYPE=3]="TYPE",_[_.LEVEL=12]="LEVEL",_[_.ATTRIBUTE=13]="ATTRIBUTE",_[_.BLOT=14]="BLOT",_[_.INLINE=7]="INLINE",_[_.BLOCK=11]="BLOCK",_[_.BLOCK_BLOT=10]="BLOCK_BLOT",_[_.INLINE_BLOT=6]="INLINE_BLOT",_[_.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",_[_.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",_[_.ANY=15]="ANY"})(f=o.Scope||(o.Scope={}));function d(_,y){var g=b(_);if(g==null)throw new l("Unable to create "+_+" blot");var w=g,v=_ instanceof Node||_.nodeType===Node.TEXT_NODE?_:w.create(y);return new w(v,y)}o.create=d;function h(_,y){return y===void 0&&(y=!1),_==null?null:_[o.DATA_KEY]!=null?_[o.DATA_KEY].blot:y?h(_.parentNode,y):null}o.find=h;function b(_,y){y===void 0&&(y=f.ANY);var g;if(typeof _=="string")g=p[_]||s[_];else if(_ instanceof Text||_.nodeType===Node.TEXT_NODE)g=p.text;else if(typeof _=="number")_&f.LEVEL&f.BLOCK?g=p.block:_&f.LEVEL&f.INLINE&&(g=p.inline);else if(_ instanceof HTMLElement){var w=(_.getAttribute("class")||"").split(/\s+/);for(var v in w)if(g=u[w[v]],g)break;g=g||c[_.tagName]}return g==null?null:y&f.LEVEL&g.scope&&y&f.TYPE&g.scope?g:null}o.query=b;function m(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];if(_.length>1)return _.map(function(v){return m(v)});var g=_[0];if(typeof g.blotName!="string"&&typeof g.attrName!="string")throw new l("Invalid definition");if(g.blotName==="abstract")throw new l("Cannot register abstract class");if(p[g.blotName||g.attrName]=g,typeof g.keyName=="string")s[g.keyName]=g;else if(g.className!=null&&(u[g.className]=g),g.tagName!=null){Array.isArray(g.tagName)?g.tagName=g.tagName.map(function(v){return v.toUpperCase()}):g.tagName=g.tagName.toUpperCase();var w=Array.isArray(g.tagName)?g.tagName:[g.tagName];w.forEach(function(v){(c[v]==null||g.className==null)&&(c[v]=g)})}return g}o.register=m},function(e,o,a){var r=a(51),l=a(11),s=a(3),u=a(20),c=String.fromCharCode(0),p=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};p.prototype.insert=function(f,d){var h={};return f.length===0?this:(h.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},p.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},p.prototype.retain=function(f,d){if(f<=0)return this;var h={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},p.prototype.push=function(f){var d=this.ops.length,h=this.ops[d-1];if(f=s(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(f),this;if(l(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},p.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},p.prototype.filter=function(f){return this.ops.filter(f)},p.prototype.forEach=function(f){this.ops.forEach(f)},p.prototype.map=function(f){return this.ops.map(f)},p.prototype.partition=function(f){var d=[],h=[];return this.forEach(function(b){var m=f(b)?d:h;m.push(b)}),[d,h]},p.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},p.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+u.length(d):d.delete?f-d.delete:f},0)},p.prototype.length=function(){return this.reduce(function(f,d){return f+u.length(d)},0)},p.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var h=[],b=u.iterator(this.ops),m=0;m<d&&b.hasNext();){var _;m<f?_=b.next(f-m):(_=b.next(d-m),h.push(_)),m+=u.length(_)}return new p(h)},p.prototype.compose=function(f){var d=u.iterator(this.ops),h=u.iterator(f.ops),b=[],m=h.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var _=m.retain;d.peekType()==="insert"&&d.peekLength()<=_;)_-=d.peekLength(),b.push(d.next());m.retain-_>0&&h.next(m.retain-_)}for(var y=new p(b);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")y.push(h.next());else if(d.peekType()==="delete")y.push(d.next());else{var g=Math.min(d.peekLength(),h.peekLength()),w=d.next(g),v=h.next(g);if(typeof v.retain=="number"){var k={};typeof w.retain=="number"?k.retain=g:k.insert=w.insert;var T=u.attributes.compose(w.attributes,v.attributes,typeof w.retain=="number");if(T&&(k.attributes=T),y.push(k),!h.hasNext()&&l(y.ops[y.ops.length-1],k)){var S=new p(d.rest());return y.concat(S).chop()}}else typeof v.delete=="number"&&typeof w.retain=="number"&&y.push(v)}return y.chop()},p.prototype.concat=function(f){var d=new p(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},p.prototype.diff=function(f,d){if(this.ops===f.ops)return new p;var h=[this,f].map(function(g){return g.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:c;var v=g===f?"on":"with";throw new Error("diff() called "+v+" non-document")}).join("")}),b=new p,m=r(h[0],h[1],d),_=u.iterator(this.ops),y=u.iterator(f.ops);return m.forEach(function(g){for(var w=g[1].length;w>0;){var v=0;switch(g[0]){case r.INSERT:v=Math.min(y.peekLength(),w),b.push(y.next(v));break;case r.DELETE:v=Math.min(w,_.peekLength()),_.next(v),b.delete(v);break;case r.EQUAL:v=Math.min(_.peekLength(),y.peekLength(),w);var k=_.next(v),T=y.next(v);l(k.insert,T.insert)?b.retain(v,u.attributes.diff(k.attributes,T.attributes)):b.push(T).delete(v);break}w-=v}}),b.chop()},p.prototype.eachLine=function(f,d){d=d||`
|
|
95
|
+
`;for(var h=u.iterator(this.ops),b=new p,m=0;h.hasNext();){if(h.peekType()!=="insert")return;var _=h.peek(),y=u.length(_)-h.peekLength(),g=typeof _.insert=="string"?_.insert.indexOf(d,y)-y:-1;if(g<0)b.push(h.next());else if(g>0)b.push(h.next(g));else{if(f(b,h.next(1).attributes||{},m)===!1)return;m+=1,b=new p}}b.length()>0&&f(b,{},m)},p.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var h=u.iterator(this.ops),b=u.iterator(f.ops),m=new p;h.hasNext()||b.hasNext();)if(h.peekType()==="insert"&&(d||b.peekType()!=="insert"))m.retain(u.length(h.next()));else if(b.peekType()==="insert")m.push(b.next());else{var _=Math.min(h.peekLength(),b.peekLength()),y=h.next(_),g=b.next(_);if(y.delete)continue;g.delete?m.push(g):m.retain(_,u.attributes.transform(y.attributes,g.attributes,d))}return m.chop()},p.prototype.transformPosition=function(f,d){d=!!d;for(var h=u.iterator(this.ops),b=0;h.hasNext()&&b<=f;){var m=h.peekLength(),_=h.peekType();if(h.next(),_==="delete"){f-=Math.min(m,f-b);continue}else _==="insert"&&(b<f||!d)&&(f+=m);b+=m}return f},e.exports=p},function(e,o){var a=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},c=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var b=a.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&a.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!m)return!1;var _;for(_ in h);return typeof _>"u"||a.call(h,_)},p=function(h,b){l&&b.name==="__proto__"?l(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},f=function(h,b){if(b==="__proto__")if(a.call(h,b)){if(s)return s(h,b).value}else return;return h[b]};e.exports=function d(){var h,b,m,_,y,g,w=arguments[0],v=1,k=arguments.length,T=!1;for(typeof w=="boolean"&&(T=w,w=arguments[1]||{},v=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});v<k;++v)if(h=arguments[v],h!=null)for(b in h)m=f(w,b),_=f(h,b),w!==_&&(T&&_&&(c(_)||(y=u(_)))?(y?(y=!1,g=m&&u(m)?m:[]):g=m&&c(m)?m:{},p(w,{name:b,newValue:d(T,g,_)})):typeof _<"u"&&p(w,{name:b,newValue:_}));return w}},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BlockEmbed=o.bubbleFormats=void 0;var r=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=function C(O,N,R){O===null&&(O=Function.prototype);var q=Object.getOwnPropertyDescriptor(O,N);if(q===void 0){var W=Object.getPrototypeOf(O);return W===null?void 0:C(W,N,R)}else{if("value"in q)return q.value;var Y=q.get;return Y===void 0?void 0:Y.call(R)}},s=a(3),u=w(s),c=a(2),p=w(c),f=a(0),d=w(f),h=a(16),b=w(h),m=a(6),_=w(m),y=a(7),g=w(y);function w(C){return C&&C.__esModule?C:{default:C}}function v(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function k(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 T(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 S=1,x=function(C){T(O,C);function O(){return v(this,O),k(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return r(O,[{key:"attach",value:function(){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,u.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(R,q){var W=d.default.query(R,d.default.Scope.BLOCK_ATTRIBUTE);W!=null&&this.attributes.attribute(W,q)}},{key:"formatAt",value:function(R,q,W,Y){this.format(W,Y)}},{key:"insertAt",value:function(R,q,W){if(typeof q=="string"&&q.endsWith(`
|
|
96
|
+
`)){var Y=d.default.create(B.blotName);this.parent.insertBefore(Y,R===0?this:this.next),Y.insertAt(0,q.slice(0,-1))}else l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,R,q,W)}}]),O}(d.default.Embed);x.scope=d.default.Scope.BLOCK_BLOT;var B=function(C){T(O,C);function O(N){v(this,O);var R=k(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return R.cache={},R}return r(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(d.default.Leaf).reduce(function(R,q){return q.length()===0?R:R.insert(q.value(),E(q))},new p.default).insert(`
|
|
97
|
+
`,E(this))),this.cache.delta}},{key:"deleteAt",value:function(R,q){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,R,q),this.cache={}}},{key:"formatAt",value:function(R,q,W,Y){q<=0||(d.default.query(W,d.default.Scope.BLOCK)?R+q===this.length()&&this.format(W,Y):l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,R,Math.min(q,this.length()-R-1),W,Y),this.cache={})}},{key:"insertAt",value:function(R,q,W){if(W!=null)return l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,R,q,W);if(q.length!==0){var Y=q.split(`
|
|
98
|
+
`),re=Y.shift();re.length>0&&(R<this.length()-1||this.children.tail==null?l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(R,this.length()-1),re):this.children.tail.insertAt(this.children.tail.length(),re),this.cache={});var K=this;Y.reduce(function(V,D){return K=K.split(V,!0),K.insertAt(0,D),D.length},R+re.length)}}},{key:"insertBefore",value:function(R,q){var W=this.children.head;l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,R,q),W instanceof b.default&&W.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(R,q){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,R,q),this.cache={}}},{key:"optimize",value:function(R){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,R),this.cache={}}},{key:"path",value:function(R){return l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,R,!0)}},{key:"removeChild",value:function(R){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,R),this.cache={}}},{key:"split",value:function(R){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(R===0||R>=this.length()-S)){var W=this.clone();return R===0?(this.parent.insertBefore(W,this),this):(this.parent.insertBefore(W,this.next),W)}else{var Y=l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,R,q);return this.cache={},Y}}}]),O}(d.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[_.default,d.default.Embed,g.default];function E(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,u.default)(O,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?O:E(C.parent,O)}o.bubbleFormats=E,o.BlockEmbed=x,o.default=B},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.overload=o.expandConfig=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},l=function(){function K(V,D){var A=[],P=!0,U=!1,F=void 0;try{for(var L=V[Symbol.iterator](),z;!(P=(z=L.next()).done)&&(A.push(z.value),!(D&&A.length===D));P=!0);}catch(Z){U=!0,F=Z}finally{try{!P&&L.return&&L.return()}finally{if(U)throw F}}return A}return function(V,D){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return K(V,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function K(V,D){for(var A=0;A<D.length;A++){var P=D[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(V,P.key,P)}}return function(V,D,A){return D&&K(V.prototype,D),A&&K(V,A),V}}();a(50);var u=a(2),c=E(u),p=a(14),f=E(p),d=a(8),h=E(d),b=a(9),m=E(b),_=a(0),y=E(_),g=a(15),w=E(g),v=a(3),k=E(v),T=a(10),S=E(T),x=a(34),B=E(x);function E(K){return K&&K.__esModule?K:{default:K}}function C(K,V,D){return V in K?Object.defineProperty(K,V,{value:D,enumerable:!0,configurable:!0,writable:!0}):K[V]=D,K}function O(K,V){if(!(K instanceof V))throw new TypeError("Cannot call a class as a function")}var N=(0,S.default)("quill"),R=function(){s(K,null,[{key:"debug",value:function(D){D===!0&&(D="log"),S.default.level(D)}},{key:"find",value:function(D){return D.__quill||y.default.find(D)}},{key:"import",value:function(D){return this.imports[D]==null&&N.error("Cannot import "+D+". Are you sure it was registered?"),this.imports[D]}},{key:"register",value:function(D,A){var P=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var F=D.attrName||D.blotName;typeof F=="string"?this.register("formats/"+F,D,A):Object.keys(D).forEach(function(L){P.register(L,D[L],A)})}else this.imports[D]!=null&&!U&&N.warn("Overwriting "+D+" with",A),this.imports[D]=A,(D.startsWith("blots/")||D.startsWith("formats/"))&&A.blotName!=="abstract"?y.default.register(A):D.startsWith("modules")&&typeof A.register=="function"&&A.register()}}]);function K(V){var D=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,K),this.options=q(V,A),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",V);this.options.debug&&K.debug(this.options.debug);var P=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(F){F===h.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(F,L){var z=D.selection.lastRange,Z=z&&z.length===0?z.index:void 0;W.call(D,function(){return D.editor.update(null,L,Z)},F)});var U=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+P+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(K,[{key:"addContainer",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var P=D;D=document.createElement("div"),D.classList.add(P)}return this.container.insertBefore(D,A),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,A,P){var U=this,F=Y(D,A,P),L=l(F,4);return D=L[0],A=L[1],P=L[3],W.call(this,function(){return U.editor.deleteText(D,A)},P,D,-1*A)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,A){var P=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return W.call(this,function(){var F=P.getSelection(!0),L=new c.default;if(F==null)return L;if(y.default.query(D,y.default.Scope.BLOCK))L=P.editor.formatLine(F.index,F.length,C({},D,A));else{if(F.length===0)return P.selection.format(D,A),L;L=P.editor.formatText(F.index,F.length,C({},D,A))}return P.setSelection(F,h.default.sources.SILENT),L},U)}},{key:"formatLine",value:function(D,A,P,U,F){var L=this,z=void 0,Z=Y(D,A,P,U,F),J=l(Z,4);return D=J[0],A=J[1],z=J[2],F=J[3],W.call(this,function(){return L.editor.formatLine(D,A,z)},F,D,0)}},{key:"formatText",value:function(D,A,P,U,F){var L=this,z=void 0,Z=Y(D,A,P,U,F),J=l(Z,4);return D=J[0],A=J[1],z=J[2],F=J[3],W.call(this,function(){return L.editor.formatText(D,A,z)},F,D,0)}},{key:"getBounds",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=void 0;typeof D=="number"?P=this.selection.getBounds(D,A):P=this.selection.getBounds(D.index,D.length);var U=this.container.getBoundingClientRect();return{bottom:P.bottom-U.top,height:P.height,left:P.left-U.left,right:P.right-U.left,top:P.top-U.top,width:P.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,P=Y(D,A),U=l(P,2);return D=U[0],A=U[1],this.editor.getContents(D,A)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,A):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,A)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,P=Y(D,A),U=l(P,2);return D=U[0],A=U[1],this.editor.getText(D,A)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,A,P){var U=this,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:K.sources.API;return W.call(this,function(){return U.editor.insertEmbed(D,A,P)},F,D)}},{key:"insertText",value:function(D,A,P,U,F){var L=this,z=void 0,Z=Y(D,0,P,U,F),J=l(Z,4);return D=J[0],z=J[2],F=J[3],W.call(this,function(){return L.editor.insertText(D,A,z)},F,D,A.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,A,P){this.clipboard.dangerouslyPasteHTML(D,A,P)}},{key:"removeFormat",value:function(D,A,P){var U=this,F=Y(D,A,P),L=l(F,4);return D=L[0],A=L[1],P=L[3],W.call(this,function(){return U.editor.removeFormat(D,A)},P,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var A=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return W.call(this,function(){D=new c.default(D);var U=A.getLength(),F=A.editor.deleteText(0,U),L=A.editor.applyDelta(D),z=L.ops[L.ops.length-1];z!=null&&typeof z.insert=="string"&&z.insert[z.insert.length-1]===`
|
|
99
|
+
`&&(A.editor.deleteText(A.getLength()-1,1),L.delete(1));var Z=F.compose(L);return Z},P)}},{key:"setSelection",value:function(D,A,P){if(D==null)this.selection.setRange(null,A||K.sources.API);else{var U=Y(D,A,P),F=l(U,4);D=F[0],A=F[1],P=F[3],this.selection.setRange(new g.Range(D,A),P),P!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,P=new c.default().insert(D);return this.setContents(P,A)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,A=this.scroll.update(D);return this.selection.update(D),A}},{key:"updateContents",value:function(D){var A=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return W.call(this,function(){return D=new c.default(D),A.editor.applyDelta(D,P)},P,!0)}}]),K}();R.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},R.events=h.default.events,R.sources=h.default.sources,R.version="1.3.7",R.imports={delta:c.default,parchment:y.default,"core/module":m.default,"core/theme":B.default};function q(K,V){if(V=(0,k.default)(!0,{container:K,modules:{clipboard:!0,keyboard:!0,history:!0}},V),!V.theme||V.theme===R.DEFAULTS.theme)V.theme=B.default;else if(V.theme=R.import("themes/"+V.theme),V.theme==null)throw new Error("Invalid theme "+V.theme+". Did you register it?");var D=(0,k.default)(!0,{},V.theme.DEFAULTS);[D,V].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(F){U.modules[F]===!0&&(U.modules[F]={})})});var A=Object.keys(D.modules).concat(Object.keys(V.modules)),P=A.reduce(function(U,F){var L=R.import("modules/"+F);return L==null?N.error("Cannot load "+F+" module. Are you sure you registered it?"):U[F]=L.DEFAULTS||{},U},{});return V.modules!=null&&V.modules.toolbar&&V.modules.toolbar.constructor!==Object&&(V.modules.toolbar={container:V.modules.toolbar}),V=(0,k.default)(!0,{},R.DEFAULTS,{modules:P},D,V),["bounds","container","scrollingContainer"].forEach(function(U){typeof V[U]=="string"&&(V[U]=document.querySelector(V[U]))}),V.modules=Object.keys(V.modules).reduce(function(U,F){return V.modules[F]&&(U[F]=V.modules[F]),U},{}),V}function W(K,V,D,A){if(this.options.strict&&!this.isEnabled()&&V===h.default.sources.USER)return new c.default;var P=D==null?null:this.getSelection(),U=this.editor.delta,F=K();if(P!=null&&(D===!0&&(D=P.index),A==null?P=re(P,F,V):A!==0&&(P=re(P,D,A,V)),this.setSelection(P,h.default.sources.SILENT)),F.length()>0){var L,z=[h.default.events.TEXT_CHANGE,F,U,V];if((L=this.emitter).emit.apply(L,[h.default.events.EDITOR_CHANGE].concat(z)),V!==h.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,z)}}return F}function Y(K,V,D,A,P){var U={};return typeof K.index=="number"&&typeof K.length=="number"?typeof V!="number"?(P=A,A=D,D=V,V=K.length,K=K.index):(V=K.length,K=K.index):typeof V!="number"&&(P=A,A=D,D=V,V=0),(typeof D>"u"?"undefined":r(D))==="object"?(U=D,P=A):typeof D=="string"&&(A!=null?U[D]=A:P=D),P=P||h.default.sources.API,[K,V,U,P]}function re(K,V,D,A){if(K==null)return null;var P=void 0,U=void 0;if(V instanceof c.default){var F=[K.index,K.index+K.length].map(function(J){return V.transformPosition(J,A!==h.default.sources.USER)}),L=l(F,2);P=L[0],U=L[1]}else{var z=[K.index,K.index+K.length].map(function(J){return J<V||J===V&&A===h.default.sources.USER?J:D>=0?J+D:Math.max(V,J+D)}),Z=l(z,2);P=Z[0],U=Z[1]}return new g.Range(P,U-P)}o.expandConfig=q,o.overload=Y,o.default=R},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(y,g){for(var w=0;w<g.length;w++){var v=g[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),l=function _(y,g,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(w)}},s=a(7),u=f(s),c=a(0),p=f(c);function f(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function h(_,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 b(_,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 m=function(_){b(y,_);function y(){return d(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"formatAt",value:function(w,v,k,T){if(y.compare(this.statics.blotName,k)<0&&p.default.query(k,p.default.Scope.BLOT)){var S=this.isolate(w,v);T&&S.wrap(k,T)}else l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,w,v,k,T)}},{key:"optimize",value:function(w){if(l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,w),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var v=this.parent.isolate(this.offset(),this.length());this.moveChildren(v),v.wrap(this)}}}],[{key:"compare",value:function(w,v){var k=y.order.indexOf(w),T=y.order.indexOf(v);return k>=0||T>=0?k-T:w===v?0:w<v?-1:1}}]),y}(p.default.Inline);m.allowedChildren=[m,p.default.Embed,u.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){p(h,d);function h(){return u(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(l.default.Text);o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function g(w,v){for(var k=0;k<v.length;k++){var T=v[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,v,k){return v&&g(w.prototype,v),k&&g(w,k),w}}(),l=function g(w,v,k){w===null&&(w=Function.prototype);var T=Object.getOwnPropertyDescriptor(w,v);if(T===void 0){var S=Object.getPrototypeOf(w);return S===null?void 0:g(S,v,k)}else{if("value"in T)return T.value;var x=T.get;return x===void 0?void 0:x.call(k)}},s=a(54),u=f(s),c=a(10),p=f(c);function f(g){return g&&g.__esModule?g:{default:g}}function d(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function h(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:g}function b(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}var m=(0,p.default)("quill:events"),_=["selectionchange","mousedown","mouseup","click"];_.forEach(function(g){document.addEventListener(g,function(){for(var w=arguments.length,v=Array(w),k=0;k<w;k++)v[k]=arguments[k];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(T){if(T.__quill&&T.__quill.emitter){var S;(S=T.__quill.emitter).handleDOM.apply(S,v)}})})});var y=function(g){b(w,g);function w(){d(this,w);var v=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return v.listeners={},v.on("error",m.error),v}return r(w,[{key:"emit",value:function(){m.log.apply(m,arguments),l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(k){for(var T=arguments.length,S=Array(T>1?T-1:0),x=1;x<T;x++)S[x-1]=arguments[x];(this.listeners[k.type]||[]).forEach(function(B){var E=B.node,C=B.handler;(k.target===E||E.contains(k.target))&&C.apply(void 0,[k].concat(S))})}},{key:"listenDOM",value:function(k,T,S){this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push({node:T,handler:S})}}]),w}(u.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},o.default=y},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});function r(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function s(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r(this,s),this.quill=u,this.options=c};l.DEFAULTS={},o.default=l},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=["error","warn","log","info"],l="warn";function s(c){if(r.indexOf(c)<=r.indexOf(l)){for(var p,f=arguments.length,d=Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];(p=console)[c].apply(p,d)}}function u(c){return r.reduce(function(p,f){return p[f]=s.bind(console,f,c),p},{})}s.level=u.level=function(c){l=c},o.default=u},function(e,o,a){var r=Array.prototype.slice,l=a(52),s=a(53),u=e.exports=function(d,h,b){return b||(b={}),d===h?!0:d instanceof Date&&h instanceof Date?d.getTime()===h.getTime():!d||!h||typeof d!="object"&&typeof h!="object"?b.strict?d===h:d==h:f(d,h,b)};function c(d){return d==null}function p(d){return!(!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number")}function f(d,h,b){var m,_;if(c(d)||c(h)||d.prototype!==h.prototype)return!1;if(s(d))return s(h)?(d=r.call(d),h=r.call(h),u(d,h,b)):!1;if(p(d)){if(!p(h)||d.length!==h.length)return!1;for(m=0;m<d.length;m++)if(d[m]!==h[m])return!1;return!0}try{var y=l(d),g=l(h)}catch{return!1}if(y.length!=g.length)return!1;for(y.sort(),g.sort(),m=y.length-1;m>=0;m--)if(y[m]!=g[m])return!1;for(m=y.length-1;m>=0;m--)if(_=y[m],!u(d[_],h[_],b))return!1;return typeof d==typeof h}},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(u,c,p){p===void 0&&(p={}),this.attrName=u,this.keyName=c;var f=r.Scope.TYPE&r.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&r.Scope.LEVEL|f:this.scope=r.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return s.keys=function(u){return[].map.call(u.attributes,function(c){return c.name})},s.prototype.add=function(u,c){return this.canAdd(u,c)?(u.setAttribute(this.keyName,c),!0):!1},s.prototype.canAdd=function(u,c){var p=r.query(u,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof c=="string"?this.whitelist.indexOf(c.replace(/["']/g,""))>-1:this.whitelist.indexOf(c)>-1},s.prototype.remove=function(u){u.removeAttribute(this.keyName)},s.prototype.value=function(u){var c=u.getAttribute(this.keyName);return this.canAdd(u,c)&&c?c:""},s}();o.default=l},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Code=void 0;var r=function(){function x(B,E){var C=[],O=!0,N=!1,R=void 0;try{for(var q=B[Symbol.iterator](),W;!(O=(W=q.next()).done)&&(C.push(W.value),!(E&&C.length===E));O=!0);}catch(Y){N=!0,R=Y}finally{try{!O&&q.return&&q.return()}finally{if(N)throw R}}return C}return function(B,E){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return x(B,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function x(B,E){for(var C=0;C<E.length;C++){var O=E[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(B,O.key,O)}}return function(B,E,C){return E&&x(B.prototype,E),C&&x(B,C),B}}(),s=function x(B,E,C){B===null&&(B=Function.prototype);var O=Object.getOwnPropertyDescriptor(B,E);if(O===void 0){var N=Object.getPrototypeOf(B);return N===null?void 0:x(N,E,C)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(C)}},u=a(2),c=g(u),p=a(0),f=g(p),d=a(4),h=g(d),b=a(6),m=g(b),_=a(7),y=g(_);function g(x){return x&&x.__esModule?x:{default:x}}function w(x,B){if(!(x instanceof B))throw new TypeError("Cannot call a class as a function")}function v(x,B){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:x}function k(x,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);x.prototype=Object.create(B&&B.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(x,B):x.__proto__=B)}var T=function(x){k(B,x);function B(){return w(this,B),v(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B}(m.default);T.blotName="code",T.tagName="CODE";var S=function(x){k(B,x);function B(){return w(this,B),v(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return l(B,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
100
|
+
`)&&(O=O.slice(0,-1)),O.split(`
|
|
101
|
+
`).reduce(function(N,R){return N.insert(R).insert(`
|
|
102
|
+
`,C.formats())},new c.default)}},{key:"format",value:function(C,O){if(!(C===this.statics.blotName&&O)){var N=this.descendant(y.default,this.length()-1),R=r(N,1),q=R[0];q!=null&&q.deleteAt(q.length()-1,1),s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,C,O)}}},{key:"formatAt",value:function(C,O,N,R){if(O!==0&&!(f.default.query(N,f.default.Scope.BLOCK)==null||N===this.statics.blotName&&R===this.statics.formats(this.domNode))){var q=this.newlineIndex(C);if(!(q<0||q>=C+O)){var W=this.newlineIndex(C,!0)+1,Y=q-W+1,re=this.isolate(W,Y),K=re.next;re.format(N,R),K instanceof B&&K.formatAt(0,C-W+O-Y,N,R)}}}},{key:"insertAt",value:function(C,O,N){if(N==null){var R=this.descendant(y.default,C),q=r(R,2),W=q[0],Y=q[1];W.insertAt(Y,O)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
103
|
+
`)?C:C+1}},{key:"newlineIndex",value:function(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,C).lastIndexOf(`
|
|
104
|
+
`);var N=this.domNode.textContent.slice(C).indexOf(`
|
|
105
|
+
`);return N>-1?C+N:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
|
|
106
|
+
`)||this.appendChild(f.default.create("text",`
|
|
107
|
+
`)),s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,C);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(C),O.moveChildren(this),O.remove())}},{key:"replace",value:function(C){s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=f.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof f.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(C){var O=s(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,C);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),B}(h.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",o.Code=T,o.default=S},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},l=function(){function K(V,D){var A=[],P=!0,U=!1,F=void 0;try{for(var L=V[Symbol.iterator](),z;!(P=(z=L.next()).done)&&(A.push(z.value),!(D&&A.length===D));P=!0);}catch(Z){U=!0,F=Z}finally{try{!P&&L.return&&L.return()}finally{if(U)throw F}}return A}return function(V,D){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return K(V,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function K(V,D){for(var A=0;A<D.length;A++){var P=D[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(V,P.key,P)}}return function(V,D,A){return D&&K(V.prototype,D),A&&K(V,A),V}}(),u=a(2),c=O(u),p=a(20),f=O(p),d=a(0),h=O(d),b=a(13),m=O(b),_=a(24),y=O(_),g=a(4),w=O(g),v=a(16),k=O(v),T=a(21),S=O(T),x=a(11),B=O(x),E=a(3),C=O(E);function O(K){return K&&K.__esModule?K:{default:K}}function N(K,V,D){return V in K?Object.defineProperty(K,V,{value:D,enumerable:!0,configurable:!0,writable:!0}):K[V]=D,K}function R(K,V){if(!(K instanceof V))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,W=function(){function K(V){R(this,K),this.scroll=V,this.delta=this.getDelta()}return s(K,[{key:"applyDelta",value:function(D){var A=this,P=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),D=re(D),D.reduce(function(F,L){var z=L.retain||L.delete||L.insert.length||1,Z=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var J=L.insert;J.endsWith(`
|
|
108
|
+
`)&&P&&(P=!1,J=J.slice(0,-1)),F>=U&&!J.endsWith(`
|
|
109
|
+
`)&&(P=!0),A.scroll.insertAt(F,J);var ne=A.scroll.line(F),de=l(ne,2),he=de[0],ve=de[1],ke=(0,C.default)({},(0,g.bubbleFormats)(he));if(he instanceof w.default){var Oe=he.descendant(h.default.Leaf,ve),Le=l(Oe,1),Me=Le[0];ke=(0,C.default)(ke,(0,g.bubbleFormats)(Me))}Z=f.default.attributes.diff(ke,Z)||{}}else if(r(L.insert)==="object"){var Q=Object.keys(L.insert)[0];if(Q==null)return F;A.scroll.insertAt(F,Q,L.insert[Q])}U+=z}return Object.keys(Z).forEach(function(te){A.scroll.formatAt(F,z,te,Z[te])}),F+z},0),D.reduce(function(F,L){return typeof L.delete=="number"?(A.scroll.deleteAt(F,L.delete),F):F+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,A){return this.scroll.deleteAt(D,A),this.update(new c.default().retain(D).delete(A))}},{key:"formatLine",value:function(D,A){var P=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(F){if(!(P.scroll.whitelist!=null&&!P.scroll.whitelist[F])){var L=P.scroll.lines(D,Math.max(A,1)),z=A;L.forEach(function(Z){var J=Z.length();if(!(Z instanceof m.default))Z.format(F,U[F]);else{var ne=D-Z.offset(P.scroll),de=Z.newlineIndex(ne+z)-ne+1;Z.formatAt(ne,de,F,U[F])}z-=J})}}),this.scroll.optimize(),this.update(new c.default().retain(D).retain(A,(0,S.default)(U)))}},{key:"formatText",value:function(D,A){var P=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(U).forEach(function(F){P.scroll.formatAt(D,A,F,U[F])}),this.update(new c.default().retain(D).retain(A,(0,S.default)(U)))}},{key:"getContents",value:function(D,A){return this.delta.slice(D,D+A)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,A){return D.concat(A.delta())},new c.default)}},{key:"getFormat",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],U=[];A===0?this.scroll.path(D).forEach(function(L){var z=l(L,1),Z=z[0];Z instanceof w.default?P.push(Z):Z instanceof h.default.Leaf&&U.push(Z)}):(P=this.scroll.lines(D,A),U=this.scroll.descendants(h.default.Leaf,D,A));var F=[P,U].map(function(L){if(L.length===0)return{};for(var z=(0,g.bubbleFormats)(L.shift());Object.keys(z).length>0;){var Z=L.shift();if(Z==null)return z;z=Y((0,g.bubbleFormats)(Z),z)}return z});return C.default.apply(C.default,F)}},{key:"getText",value:function(D,A){return this.getContents(D,A).filter(function(P){return typeof P.insert=="string"}).map(function(P){return P.insert}).join("")}},{key:"insertEmbed",value:function(D,A,P){return this.scroll.insertAt(D,A,P),this.update(new c.default().retain(D).insert(N({},A,P)))}},{key:"insertText",value:function(D,A){var P=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return A=A.replace(/\r\n/g,`
|
|
110
|
+
`).replace(/\r/g,`
|
|
111
|
+
`),this.scroll.insertAt(D,A),Object.keys(U).forEach(function(F){P.scroll.formatAt(D,A.length,F,U[F])}),this.update(new c.default().retain(D).insert(A,(0,S.default)(U)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==w.default.blotName||D.children.length>1?!1:D.children.head instanceof k.default}},{key:"removeFormat",value:function(D,A){var P=this.getText(D,A),U=this.scroll.line(D+A),F=l(U,2),L=F[0],z=F[1],Z=0,J=new c.default;L!=null&&(L instanceof m.default?Z=L.newlineIndex(z)-z+1:Z=L.length()-z,J=L.delta().slice(z,z+Z-1).insert(`
|
|
112
|
+
`));var ne=this.getContents(D,A+Z),de=ne.diff(new c.default().insert(P).concat(J)),he=new c.default().retain(D).concat(de);return this.applyDelta(he)}},{key:"update",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,U=this.delta;if(A.length===1&&A[0].type==="characterData"&&A[0].target.data.match(q)&&h.default.find(A[0].target)){var F=h.default.find(A[0].target),L=(0,g.bubbleFormats)(F),z=F.offset(this.scroll),Z=A[0].oldValue.replace(y.default.CONTENTS,""),J=new c.default().insert(Z),ne=new c.default().insert(F.value()),de=new c.default().retain(z).concat(J.diff(ne,P));D=de.reduce(function(he,ve){return ve.insert?he.insert(ve.insert,L):he.push(ve)},new c.default),this.delta=U.compose(D)}else this.delta=this.getDelta(),(!D||!(0,B.default)(U.compose(D),this.delta))&&(D=U.diff(this.delta,P));return D}}]),K}();function Y(K,V){return Object.keys(V).reduce(function(D,A){return K[A]==null||(V[A]===K[A]?D[A]=V[A]:Array.isArray(V[A])?V[A].indexOf(K[A])<0&&(D[A]=V[A].concat([K[A]])):D[A]=[V[A],K[A]]),D},{})}function re(K){return K.reduce(function(V,D){if(D.insert===1){var A=(0,S.default)(D.attributes);return delete A.image,V.insert({image:D.attributes.image},A)}if(D.attributes!=null&&(D.attributes.list===!0||D.attributes.bullet===!0)&&(D=(0,S.default)(D),D.attributes.list?D.attributes.list="ordered":(D.attributes.list="bullet",delete D.attributes.bullet)),typeof D.insert=="string"){var P=D.insert.replace(/\r\n/g,`
|
|
113
|
+
`).replace(/\r/g,`
|
|
114
|
+
`);return V.insert(P,D.attributes)}return V.push(D)},new c.default)}o.default=W},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Range=void 0;var r=function(){function x(B,E){var C=[],O=!0,N=!1,R=void 0;try{for(var q=B[Symbol.iterator](),W;!(O=(W=q.next()).done)&&(C.push(W.value),!(E&&C.length===E));O=!0);}catch(Y){N=!0,R=Y}finally{try{!O&&q.return&&q.return()}finally{if(N)throw R}}return C}return function(B,E){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return x(B,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function x(B,E){for(var C=0;C<E.length;C++){var O=E[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(B,O.key,O)}}return function(B,E,C){return E&&x(B.prototype,E),C&&x(B,C),B}}(),s=a(0),u=y(s),c=a(21),p=y(c),f=a(11),d=y(f),h=a(8),b=y(h),m=a(10),_=y(m);function y(x){return x&&x.__esModule?x:{default:x}}function g(x){if(Array.isArray(x)){for(var B=0,E=Array(x.length);B<x.length;B++)E[B]=x[B];return E}else return Array.from(x)}function w(x,B){if(!(x instanceof B))throw new TypeError("Cannot call a class as a function")}var v=(0,_.default)("quill:selection"),k=function x(B){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,x),this.index=B,this.length=E},T=function(){function x(B,E){var C=this;w(this,x),this.emitter=E,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=u.default.create("cursor",this),this.lastRange=this.savedRange=new k(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(O,N){O===b.default.events.TEXT_CHANGE&&N.length()>0&&C.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var R=N.range,q=R.startNode,W=R.startOffset,Y=R.endNode,re=R.endOffset;C.setNativeRange(q,W,Y,re)}}),this.update(b.default.sources.SILENT)}return l(x,[{key:"handleComposition",value:function(){var E=this;this.root.addEventListener("compositionstart",function(){E.composing=!0}),this.root.addEventListener("compositionend",function(){if(E.composing=!1,E.cursor.parent){var C=E.cursor.restore();if(!C)return;setTimeout(function(){E.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var E=this;this.emitter.listenDOM("mousedown",document.body,function(){E.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){E.mouseDown=!1,E.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(E,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[E])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||u.default.query(E,u.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=u.default.find(O.start.node,!1);if(N==null)return;if(N instanceof u.default.Leaf){var R=N.split(O.start.offset);N.parent.insertBefore(this.cursor,R)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(E,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();E=Math.min(E,O-1),C=Math.min(E+C,O-1)-E;var N=void 0,R=this.scroll.leaf(E),q=r(R,2),W=q[0],Y=q[1];if(W==null)return null;var re=W.position(Y,!0),K=r(re,2);N=K[0],Y=K[1];var V=document.createRange();if(C>0){V.setStart(N,Y);var D=this.scroll.leaf(E+C),A=r(D,2);if(W=A[0],Y=A[1],W==null)return null;var P=W.position(Y,!0),U=r(P,2);return N=U[0],Y=U[1],V.setEnd(N,Y),V.getBoundingClientRect()}else{var F="left",L=void 0;return N instanceof Text?(Y<N.data.length?(V.setStart(N,Y),V.setEnd(N,Y+1)):(V.setStart(N,Y-1),V.setEnd(N,Y),F="right"),L=V.getBoundingClientRect()):(L=W.domNode.getBoundingClientRect(),Y>0&&(F="right")),{bottom:L.top+L.height,height:L.height,left:L[F],right:L[F],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var E=document.getSelection();if(E==null||E.rangeCount<=0)return null;var C=E.getRangeAt(0);if(C==null)return null;var O=this.normalizeNative(C);return v.info("getNativeRange",O),O}},{key:"getRange",value:function(){var E=this.getNativeRange();if(E==null)return[null,null];var C=this.normalizedToRange(E);return[C,E]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(E){var C=this,O=[[E.start.node,E.start.offset]];E.native.collapsed||O.push([E.end.node,E.end.offset]);var N=O.map(function(W){var Y=r(W,2),re=Y[0],K=Y[1],V=u.default.find(re,!0),D=V.offset(C.scroll);return K===0?D:V instanceof u.default.Container?D+V.length():D+V.index(re,K)}),R=Math.min(Math.max.apply(Math,g(N)),this.scroll.length()-1),q=Math.min.apply(Math,[R].concat(g(N)));return new k(q,R-q)}},{key:"normalizeNative",value:function(E){if(!S(this.root,E.startContainer)||!E.collapsed&&!S(this.root,E.endContainer))return null;var C={start:{node:E.startContainer,offset:E.startOffset},end:{node:E.endContainer,offset:E.endOffset},native:E};return[C.start,C.end].forEach(function(O){for(var N=O.node,R=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>R)N=N.childNodes[R],R=0;else if(N.childNodes.length===R)N=N.lastChild,R=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=R}),C}},{key:"rangeToNative",value:function(E){var C=this,O=E.collapsed?[E.index]:[E.index,E.index+E.length],N=[],R=this.scroll.length();return O.forEach(function(q,W){q=Math.min(R-1,q);var Y=void 0,re=C.scroll.leaf(q),K=r(re,2),V=K[0],D=K[1],A=V.position(D,W!==0),P=r(A,2);Y=P[0],D=P[1],N.push(Y,D)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(E){var C=this.lastRange;if(C!=null){var O=this.getBounds(C.index,C.length);if(O!=null){var N=this.scroll.length()-1,R=this.scroll.line(Math.min(C.index,N)),q=r(R,1),W=q[0],Y=W;if(C.length>0){var re=this.scroll.line(Math.min(C.index+C.length,N)),K=r(re,1);Y=K[0]}if(!(W==null||Y==null)){var V=E.getBoundingClientRect();O.top<V.top?E.scrollTop-=V.top-O.top:O.bottom>V.bottom&&(E.scrollTop+=O.bottom-V.bottom)}}}}},{key:"setNativeRange",value:function(E,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(v.info("setNativeRange",E,C,O,N),!(E!=null&&(this.root.parentNode==null||E.parentNode==null||O.parentNode==null))){var q=document.getSelection();if(q!=null)if(E!=null){this.hasFocus()||this.root.focus();var W=(this.getNativeRange()||{}).native;if(W==null||R||E!==W.startContainer||C!==W.startOffset||O!==W.endContainer||N!==W.endOffset){E.tagName=="BR"&&(C=[].indexOf.call(E.parentNode.childNodes,E),E=E.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var Y=document.createRange();Y.setStart(E,C),Y.setEnd(O,N),q.removeAllRanges(),q.addRange(Y)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof C=="string"&&(O=C,C=!1),v.info("setRange",E),E!=null){var N=this.rangeToNative(E);this.setNativeRange.apply(this,g(N).concat([C]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,C=this.lastRange,O=this.getRange(),N=r(O,2),R=N[0],q=N[1];if(this.lastRange=R,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(C,this.lastRange)){var W;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var Y=[b.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(C),E];if((W=this.emitter).emit.apply(W,[b.default.events.EDITOR_CHANGE].concat(Y)),E!==b.default.sources.SILENT){var re;(re=this.emitter).emit.apply(re,Y)}}}}]),x}();function S(x,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),x.contains(B)}o.Range=k,o.default=T},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(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 _&&b(m.prototype,_),y&&b(m,y),m}}(),l=function b(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:b(w,_,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},s=a(0),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"insertInto",value:function(y,g){y.children.length===0?l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,y,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(u.default.Embed);h.blotName="break",h.tagName="BR",o.default=h},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var b in h)h.hasOwnProperty(b)&&(d[b]=h[b])};return function(d,h){f(d,h);function b(){this.constructor=d}d.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(44),s=a(30),u=a(1),c=function(f){r(d,f);function d(h){var b=f.call(this,h)||this;return b.build(),b}return d.prototype.appendChild=function(h){this.insertBefore(h)},d.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},d.prototype.build=function(){var h=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var m=p(b);h.insertBefore(m,h.children.head||void 0)}catch(_){if(_ instanceof u.ParchmentError)return;throw _}})},d.prototype.deleteAt=function(h,b){if(h===0&&b===this.length())return this.remove();this.children.forEachAt(h,b,function(m,_,y){m.deleteAt(_,y)})},d.prototype.descendant=function(h,b){var m=this.children.find(b),_=m[0],y=m[1];return h.blotName==null&&h(_)||h.blotName!=null&&_ instanceof h?[_,y]:_ instanceof d?_.descendant(h,y):[null,-1]},d.prototype.descendants=function(h,b,m){b===void 0&&(b=0),m===void 0&&(m=Number.MAX_VALUE);var _=[],y=m;return this.children.forEachAt(b,m,function(g,w,v){(h.blotName==null&&h(g)||h.blotName!=null&&g instanceof h)&&_.push(g),g instanceof d&&(_=_.concat(g.descendants(h,w,y))),y-=v}),_},d.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),f.prototype.detach.call(this)},d.prototype.formatAt=function(h,b,m,_){this.children.forEachAt(h,b,function(y,g,w){y.formatAt(g,w,m,_)})},d.prototype.insertAt=function(h,b,m){var _=this.children.find(h),y=_[0],g=_[1];if(y)y.insertAt(g,b,m);else{var w=m==null?u.create("text",b):u.create(b,m);this.appendChild(w)}},d.prototype.insertBefore=function(h,b){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return h instanceof m}))throw new u.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,b)},d.prototype.length=function(){return this.children.reduce(function(h,b){return h+b.length()},0)},d.prototype.moveChildren=function(h,b){this.children.forEach(function(m){h.insertBefore(m,b)})},d.prototype.optimize=function(h){if(f.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var b=u.create(this.statics.defaultChild);this.appendChild(b),b.optimize(h)}else this.remove()},d.prototype.path=function(h,b){b===void 0&&(b=!1);var m=this.children.find(h,b),_=m[0],y=m[1],g=[[this,h]];return _ instanceof d?g.concat(_.path(y,b)):(_!=null&&g.push([_,y]),g)},d.prototype.removeChild=function(h){this.children.remove(h)},d.prototype.replace=function(h){h instanceof d&&h.moveChildren(this),f.prototype.replace.call(this,h)},d.prototype.split=function(h,b){if(b===void 0&&(b=!1),!b){if(h===0)return this;if(h===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(h,this.length(),function(_,y,g){_=_.split(y,b),m.appendChild(_)}),m},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(h,b){var m=this,_=[],y=[];h.forEach(function(g){g.target===m.domNode&&g.type==="childList"&&(_.push.apply(_,g.addedNodes),y.push.apply(y,g.removedNodes))}),y.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=u.find(g);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===m.domNode)&&w.detach()}}),_.filter(function(g){return g.parentNode==m.domNode}).sort(function(g,w){return g===w?0:g.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var w=null;g.nextSibling!=null&&(w=u.find(g.nextSibling));var v=p(g);(v.next!=w||v.next==null)&&(v.parent!=null&&v.parent.removeChild(m),m.insertBefore(v,w||void 0))})},d}(s.default);function p(f){var d=u.find(f);if(d==null)try{d=u.create(f)}catch{d=u.create(u.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){d.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(d.domNode,f),d.attach()}return d}o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var b in h)h.hasOwnProperty(b)&&(d[b]=h[b])};return function(d,h){f(d,h);function b(){this.constructor=d}d.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12),s=a(31),u=a(17),c=a(1),p=function(f){r(d,f);function d(h){var b=f.call(this,h)||this;return b.attributes=new s.default(b.domNode),b}return d.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},d.prototype.format=function(h,b){var m=c.query(h);m instanceof l.default?this.attributes.attribute(m,b):b&&m!=null&&(h!==this.statics.blotName||this.formats()[h]!==b)&&this.replaceWith(h,b)},d.prototype.formats=function(){var h=this.attributes.values(),b=this.statics.formats(this.domNode);return b!=null&&(h[this.statics.blotName]=b),h},d.prototype.replaceWith=function(h,b){var m=f.prototype.replaceWith.call(this,h,b);return this.attributes.copy(m),m},d.prototype.update=function(h,b){var m=this;f.prototype.update.call(this,h,b),h.some(function(_){return _.target===m.domNode&&_.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(h,b){var m=f.prototype.wrap.call(this,h,b);return m instanceof d&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},d}(u.default);o.default=p},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(30),s=a(1),u=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.value=function(f){return!0},p.prototype.index=function(f,d){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(d,1):-1},p.prototype.position=function(f,d){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(h+=1),[this.parent.domNode,h]},p.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},p.scope=s.Scope.INLINE_BLOT,p}(l.default);o.default=u},function(e,o,a){var r=a(11),l=a(3),s={attributes:{compose:function(c,p,f){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var d=l(!0,{},p);f||(d=Object.keys(d).reduce(function(b,m){return d[m]!=null&&(b[m]=d[m]),b},{}));for(var h in c)c[h]!==void 0&&p[h]===void 0&&(d[h]=c[h]);return Object.keys(d).length>0?d:void 0},diff:function(c,p){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var f=Object.keys(c).concat(Object.keys(p)).reduce(function(d,h){return r(c[h],p[h])||(d[h]=p[h]===void 0?null:p[h]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(c,p,f){if(typeof c!="object")return p;if(typeof p=="object"){if(!f)return p;var d=Object.keys(p).reduce(function(h,b){return c[b]===void 0&&(h[b]=p[b]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(c){return new u(c)},length:function(c){return typeof c.delete=="number"?c.delete:typeof c.retain=="number"?c.retain:typeof c.insert=="string"?c.insert.length:1}};function u(c){this.ops=c,this.index=0,this.offset=0}u.prototype.hasNext=function(){return this.peekLength()<1/0},u.prototype.next=function(c){c||(c=1/0);var p=this.ops[this.index];if(p){var f=this.offset,d=s.length(p);if(c>=d-f?(c=d-f,this.index+=1,this.offset=0):this.offset+=c,typeof p.delete=="number")return{delete:c};var h={};return p.attributes&&(h.attributes=p.attributes),typeof p.retain=="number"?h.retain=c:typeof p.insert=="string"?h.insert=p.insert.substr(f,c):h.insert=p.insert,h}else return{retain:1/0}},u.prototype.peek=function(){return this.ops[this.index]},u.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},u.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"},u.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,p=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=c,this.index=p,[f].concat(d)}else return[]},e.exports=s},function(e,o){var a=function(){function r(m,_){return _!=null&&m instanceof _}var l;try{l=Map}catch{l=function(){}}var s;try{s=Set}catch{s=function(){}}var u;try{u=Promise}catch{u=function(){}}function c(m,_,y,g,w){typeof _=="object"&&(y=_.depth,g=_.prototype,w=_.includeNonEnumerable,_=_.circular);var v=[],k=[],T=typeof Buffer<"u";typeof _>"u"&&(_=!0),typeof y>"u"&&(y=1/0);function S(x,B){if(x===null)return null;if(B===0)return x;var E,C;if(typeof x!="object")return x;if(r(x,l))E=new l;else if(r(x,s))E=new s;else if(r(x,u))E=new u(function(V,D){x.then(function(A){V(S(A,B-1))},function(A){D(S(A,B-1))})});else if(c.__isArray(x))E=[];else if(c.__isRegExp(x))E=new RegExp(x.source,b(x)),x.lastIndex&&(E.lastIndex=x.lastIndex);else if(c.__isDate(x))E=new Date(x.getTime());else{if(T&&Buffer.isBuffer(x))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(x.length):E=new Buffer(x.length),x.copy(E),E;r(x,Error)?E=Object.create(x):typeof g>"u"?(C=Object.getPrototypeOf(x),E=Object.create(C)):(E=Object.create(g),C=g)}if(_){var O=v.indexOf(x);if(O!=-1)return k[O];v.push(x),k.push(E)}r(x,l)&&x.forEach(function(V,D){var A=S(D,B-1),P=S(V,B-1);E.set(A,P)}),r(x,s)&&x.forEach(function(V){var D=S(V,B-1);E.add(D)});for(var N in x){var R;C&&(R=Object.getOwnPropertyDescriptor(C,N)),!(R&&R.set==null)&&(E[N]=S(x[N],B-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(x),N=0;N<q.length;N++){var W=q[N],Y=Object.getOwnPropertyDescriptor(x,W);Y&&!Y.enumerable&&!w||(E[W]=S(x[W],B-1),Y.enumerable||Object.defineProperty(E,W,{enumerable:!1}))}if(w)for(var re=Object.getOwnPropertyNames(x),N=0;N<re.length;N++){var K=re[N],Y=Object.getOwnPropertyDescriptor(x,K);Y&&Y.enumerable||(E[K]=S(x[K],B-1),Object.defineProperty(E,K,{enumerable:!1}))}return E}return S(m,y)}c.clonePrototype=function(_){if(_===null)return null;var y=function(){};return y.prototype=_,new y};function p(m){return Object.prototype.toString.call(m)}c.__objToStr=p;function f(m){return typeof m=="object"&&p(m)==="[object Date]"}c.__isDate=f;function d(m){return typeof m=="object"&&p(m)==="[object Array]"}c.__isArray=d;function h(m){return typeof m=="object"&&p(m)==="[object RegExp]"}c.__isRegExp=h;function b(m){var _="";return m.global&&(_+="g"),m.ignoreCase&&(_+="i"),m.multiline&&(_+="m"),_}return c.__getRegExpFlags=b,c}();typeof e=="object"&&e.exports&&(e.exports=a)},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=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")}}(),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}}(),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)}},u=a(0),c=v(u),p=a(8),f=v(p),d=a(4),h=v(d),b=a(16),m=v(b),_=a(13),y=v(_),g=a(25),w=v(g);function v(E){return E&&E.__esModule?E:{default:E}}function k(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function T(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 S(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)}function x(E){return E instanceof h.default||E instanceof d.BlockEmbed}var B=function(E){S(C,E);function C(O,N){k(this,C);var R=T(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return R.emitter=N.emitter,Array.isArray(N.whitelist)&&(R.whitelist=N.whitelist.reduce(function(q,W){return q[W]=!0,q},{})),R.domNode.addEventListener("DOMNodeInserted",function(){}),R.optimize(),R.enable(),R}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,R){var q=this.line(N),W=r(q,2),Y=W[0],re=W[1],K=this.line(N+R),V=r(K,1),D=V[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,N,R),D!=null&&Y!==D&&re>0){if(Y instanceof d.BlockEmbed||D instanceof d.BlockEmbed){this.optimize();return}if(Y instanceof y.default){var A=Y.newlineIndex(Y.length(),!0);if(A>-1&&(Y=Y.split(A+1),Y===D)){this.optimize();return}}else if(D instanceof y.default){var P=D.newlineIndex(0);P>-1&&D.split(P+1)}var U=D.children.head instanceof m.default?null:D.children.head;Y.moveChildren(D,U),Y.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,R,q,W){this.whitelist!=null&&!this.whitelist[q]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,N,R,q,W),this.optimize())}},{key:"insertAt",value:function(N,R,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[R])){if(N>=this.length())if(q==null||c.default.query(R,c.default.Scope.BLOCK)==null){var W=c.default.create(this.statics.defaultChild);this.appendChild(W),q==null&&R.endsWith(`
|
|
115
|
+
`)&&(R=R.slice(0,-1)),W.insertAt(0,R,q)}else{var Y=c.default.create(R,q);this.appendChild(Y)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,N,R,q);this.optimize()}}},{key:"insertBefore",value:function(N,R){if(N.statics.scope===c.default.Scope.INLINE_BLOT){var q=c.default.create(this.statics.defaultChild);q.appendChild(N),N=q}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,N,R)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(x,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function W(Y,re,K){var V=[],D=K;return Y.children.forEachAt(re,K,function(A,P,U){x(A)?V.push(A):A instanceof c.default.Container&&(V=V.concat(W(A,P,D))),D-=U}),V};return q(this,N,R)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,N,R),N.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,N,R))}},{key:"path",value:function(N){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var R=f.default.sources.USER;typeof N=="string"&&(R=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,R,N),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,R,N)}}}]),C}(c.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[h.default,d.BlockEmbed,w.default],o.default=B},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.SHORTKEY=o.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},l=function(){function L(z,Z){var J=[],ne=!0,de=!1,he=void 0;try{for(var ve=z[Symbol.iterator](),ke;!(ne=(ke=ve.next()).done)&&(J.push(ke.value),!(Z&&J.length===Z));ne=!0);}catch(Oe){de=!0,he=Oe}finally{try{!ne&&ve.return&&ve.return()}finally{if(de)throw he}}return J}return function(z,Z){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return L(z,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function L(z,Z){for(var J=0;J<Z.length;J++){var ne=Z[J];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(z,ne.key,ne)}}return function(z,Z,J){return Z&&L(z.prototype,Z),J&&L(z,J),z}}(),u=a(21),c=E(u),p=a(11),f=E(p),d=a(3),h=E(d),b=a(2),m=E(b),_=a(20),y=E(_),g=a(0),w=E(g),v=a(5),k=E(v),T=a(10),S=E(T),x=a(9),B=E(x);function E(L){return L&&L.__esModule?L:{default:L}}function C(L,z,Z){return z in L?Object.defineProperty(L,z,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[z]=Z,L}function O(L,z){if(!(L instanceof z))throw new TypeError("Cannot call a class as a function")}function N(L,z){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:L}function R(L,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);L.prototype=Object.create(z&&z.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(L,z):L.__proto__=z)}var q=(0,S.default)("quill:keyboard"),W=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Y=function(L){R(z,L),s(z,null,[{key:"match",value:function(J,ne){return ne=F(ne),["altKey","ctrlKey","metaKey","shiftKey"].some(function(de){return!!ne[de]!==J[de]&&ne[de]!==null})?!1:ne.key===(J.which||J.keyCode)}}]);function z(Z,J){O(this,z);var ne=N(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,Z,J));return ne.bindings={},Object.keys(ne.options.bindings).forEach(function(de){de==="list autofill"&&Z.scroll.whitelist!=null&&!Z.scroll.whitelist.list||ne.options.bindings[de]&&ne.addBinding(ne.options.bindings[de])}),ne.addBinding({key:z.keys.ENTER,shiftKey:null},A),ne.addBinding({key:z.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(ne.addBinding({key:z.keys.BACKSPACE},{collapsed:!0},K),ne.addBinding({key:z.keys.DELETE},{collapsed:!0},V)):(ne.addBinding({key:z.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},K),ne.addBinding({key:z.keys.DELETE},{collapsed:!0,suffix:/^.?$/},V)),ne.addBinding({key:z.keys.BACKSPACE},{collapsed:!1},D),ne.addBinding({key:z.keys.DELETE},{collapsed:!1},D),ne.addBinding({key:z.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},K),ne.listen(),ne}return s(z,[{key:"addBinding",value:function(J){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=F(J);if(he==null||he.key==null)return q.warn("Attempted to add invalid keyboard binding",he);typeof ne=="function"&&(ne={handler:ne}),typeof de=="function"&&(de={handler:de}),he=(0,h.default)(he,ne,de),this.bindings[he.key]=this.bindings[he.key]||[],this.bindings[he.key].push(he)}},{key:"listen",value:function(){var J=this;this.quill.root.addEventListener("keydown",function(ne){if(!ne.defaultPrevented){var de=ne.which||ne.keyCode,he=(J.bindings[de]||[]).filter(function(Ee){return z.match(ne,Ee)});if(he.length!==0){var ve=J.quill.getSelection();if(!(ve==null||!J.quill.hasFocus())){var ke=J.quill.getLine(ve.index),Oe=l(ke,2),Le=Oe[0],Me=Oe[1],Q=J.quill.getLeaf(ve.index),te=l(Q,2),ae=te[0],le=te[1],ie=ve.length===0?[ae,le]:J.quill.getLeaf(ve.index+ve.length),$e=l(ie,2),me=$e[0],be=$e[1],He=ae instanceof w.default.Text?ae.value().slice(0,le):"",Ve=me instanceof w.default.Text?me.value().slice(be):"",Ne={collapsed:ve.length===0,empty:ve.length===0&&Le.length()<=1,format:J.quill.getFormat(ve),offset:Me,prefix:He,suffix:Ve},wt=he.some(function(Ee){if(Ee.collapsed!=null&&Ee.collapsed!==Ne.collapsed||Ee.empty!=null&&Ee.empty!==Ne.empty||Ee.offset!=null&&Ee.offset!==Ne.offset)return!1;if(Array.isArray(Ee.format)){if(Ee.format.every(function(nt){return Ne.format[nt]==null}))return!1}else if(r(Ee.format)==="object"&&!Object.keys(Ee.format).every(function(nt){return Ee.format[nt]===!0?Ne.format[nt]!=null:Ee.format[nt]===!1?Ne.format[nt]==null:(0,f.default)(Ee.format[nt],Ne.format[nt])}))return!1;return Ee.prefix!=null&&!Ee.prefix.test(Ne.prefix)||Ee.suffix!=null&&!Ee.suffix.test(Ne.suffix)?!1:Ee.handler.call(J,ve,Ne)!==!0});wt&&ne.preventDefault()}}}})}}]),z}(B.default);Y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Y.DEFAULTS={bindings:{bold:U("bold"),italic:U("italic"),underline:U("underline"),indent:{key:Y.keys.TAB,format:["blockquote","indent","list"],handler:function(z,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","+1",k.default.sources.USER)}},outdent:{key:Y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(z,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","-1",k.default.sources.USER)}},"outdent backspace":{key:Y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(z,Z){Z.format.indent!=null?this.quill.format("indent","-1",k.default.sources.USER):Z.format.list!=null&&this.quill.format("list",!1,k.default.sources.USER)}},"indent code-block":P(!0),"outdent code-block":P(!1),"remove tab":{key:Y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(z){this.quill.deleteText(z.index-1,1,k.default.sources.USER)}},tab:{key:Y.keys.TAB,handler:function(z){this.quill.history.cutoff();var Z=new m.default().retain(z.index).delete(z.length).insert(" ");this.quill.updateContents(Z,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(z.index+1,k.default.sources.SILENT)}},"list empty enter":{key:Y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(z,Z){this.quill.format("list",!1,k.default.sources.USER),Z.format.indent&&this.quill.format("indent",!1,k.default.sources.USER)}},"checklist enter":{key:Y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(z){var Z=this.quill.getLine(z.index),J=l(Z,2),ne=J[0],de=J[1],he=(0,h.default)({},ne.formats(),{list:"checked"}),ve=new m.default().retain(z.index).insert(`
|
|
116
|
+
`,he).retain(ne.length()-de-1).retain(1,{list:"unchecked"});this.quill.updateContents(ve,k.default.sources.USER),this.quill.setSelection(z.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(z,Z){var J=this.quill.getLine(z.index),ne=l(J,2),de=ne[0],he=ne[1],ve=new m.default().retain(z.index).insert(`
|
|
117
|
+
`,Z.format).retain(de.length()-he-1).retain(1,{header:null});this.quill.updateContents(ve,k.default.sources.USER),this.quill.setSelection(z.index+1,k.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(z,Z){var J=Z.prefix.length,ne=this.quill.getLine(z.index),de=l(ne,2),he=de[0],ve=de[1];if(ve>J)return!0;var ke=void 0;switch(Z.prefix.trim()){case"[]":case"[ ]":ke="unchecked";break;case"[x]":ke="checked";break;case"-":case"*":ke="bullet";break;default:ke="ordered"}this.quill.insertText(z.index," ",k.default.sources.USER),this.quill.history.cutoff();var Oe=new m.default().retain(z.index-ve).delete(J+1).retain(he.length()-2-ve).retain(1,{list:ke});this.quill.updateContents(Oe,k.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(z.index-J,k.default.sources.SILENT)}},"code exit":{key:Y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(z){var Z=this.quill.getLine(z.index),J=l(Z,2),ne=J[0],de=J[1],he=new m.default().retain(z.index+ne.length()-de-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(he,k.default.sources.USER)}},"embed left":re(Y.keys.LEFT,!1),"embed left shift":re(Y.keys.LEFT,!0),"embed right":re(Y.keys.RIGHT,!1),"embed right shift":re(Y.keys.RIGHT,!0)}};function re(L,z){var Z,J=L===Y.keys.LEFT?"prefix":"suffix";return Z={key:L,shiftKey:z,altKey:null},C(Z,J,/^$/),C(Z,"handler",function(de){var he=de.index;L===Y.keys.RIGHT&&(he+=de.length+1);var ve=this.quill.getLeaf(he),ke=l(ve,1),Oe=ke[0];return Oe instanceof w.default.Embed?(L===Y.keys.LEFT?z?this.quill.setSelection(de.index-1,de.length+1,k.default.sources.USER):this.quill.setSelection(de.index-1,k.default.sources.USER):z?this.quill.setSelection(de.index,de.length+1,k.default.sources.USER):this.quill.setSelection(de.index+de.length+1,k.default.sources.USER),!1):!0}),Z}function K(L,z){if(!(L.index===0||this.quill.getLength()<=1)){var Z=this.quill.getLine(L.index),J=l(Z,1),ne=J[0],de={};if(z.offset===0){var he=this.quill.getLine(L.index-1),ve=l(he,1),ke=ve[0];if(ke!=null&&ke.length()>1){var Oe=ne.formats(),Le=this.quill.getFormat(L.index-1,1);de=y.default.attributes.diff(Oe,Le)||{}}}var Me=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(z.prefix)?2:1;this.quill.deleteText(L.index-Me,Me,k.default.sources.USER),Object.keys(de).length>0&&this.quill.formatLine(L.index-Me,Me,de,k.default.sources.USER),this.quill.focus()}}function V(L,z){var Z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(z.suffix)?2:1;if(!(L.index>=this.quill.getLength()-Z)){var J={},ne=0,de=this.quill.getLine(L.index),he=l(de,1),ve=he[0];if(z.offset>=ve.length()-1){var ke=this.quill.getLine(L.index+1),Oe=l(ke,1),Le=Oe[0];if(Le){var Me=ve.formats(),Q=this.quill.getFormat(L.index,1);J=y.default.attributes.diff(Me,Q)||{},ne=Le.length()}}this.quill.deleteText(L.index,Z,k.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(L.index+ne-1,Z,J,k.default.sources.USER)}}function D(L){var z=this.quill.getLines(L),Z={};if(z.length>1){var J=z[0].formats(),ne=z[z.length-1].formats();Z=y.default.attributes.diff(ne,J)||{}}this.quill.deleteText(L,k.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(L.index,1,Z,k.default.sources.USER),this.quill.setSelection(L.index,k.default.sources.SILENT),this.quill.focus()}function A(L,z){var Z=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var J=Object.keys(z.format).reduce(function(ne,de){return w.default.query(de,w.default.Scope.BLOCK)&&!Array.isArray(z.format[de])&&(ne[de]=z.format[de]),ne},{});this.quill.insertText(L.index,`
|
|
118
|
+
`,J,k.default.sources.USER),this.quill.setSelection(L.index+1,k.default.sources.SILENT),this.quill.focus(),Object.keys(z.format).forEach(function(ne){J[ne]==null&&(Array.isArray(z.format[ne])||ne!=="link"&&Z.quill.format(ne,z.format[ne],k.default.sources.USER))})}function P(L){return{key:Y.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(Z){var J=w.default.query("code-block"),ne=Z.index,de=Z.length,he=this.quill.scroll.descendant(J,ne),ve=l(he,2),ke=ve[0],Oe=ve[1];if(ke!=null){var Le=this.quill.getIndex(ke),Me=ke.newlineIndex(Oe,!0)+1,Q=ke.newlineIndex(Le+Oe+de),te=ke.domNode.textContent.slice(Me,Q).split(`
|
|
119
|
+
`);Oe=0,te.forEach(function(ae,le){L?(ke.insertAt(Me+Oe,J.TAB),Oe+=J.TAB.length,le===0?ne+=J.TAB.length:de+=J.TAB.length):ae.startsWith(J.TAB)&&(ke.deleteAt(Me+Oe,J.TAB.length),Oe-=J.TAB.length,le===0?ne-=J.TAB.length:de-=J.TAB.length),Oe+=ae.length+1}),this.quill.update(k.default.sources.USER),this.quill.setSelection(ne,de,k.default.sources.SILENT)}}}}function U(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(Z,J){this.quill.format(L,!J.format[L],k.default.sources.USER)}}}function F(L){if(typeof L=="string"||typeof L=="number")return F({key:L});if((typeof L>"u"?"undefined":r(L))==="object"&&(L=(0,c.default)(L,!1)),typeof L.key=="string")if(Y.keys[L.key.toUpperCase()]!=null)L.key=Y.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[W]=L.shortKey,delete L.shortKey),L}o.default=Y,o.SHORTKEY=W},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function y(g,w){var v=[],k=!0,T=!1,S=void 0;try{for(var x=g[Symbol.iterator](),B;!(k=(B=x.next()).done)&&(v.push(B.value),!(w&&v.length===w));k=!0);}catch(E){T=!0,S=E}finally{try{!k&&x.return&&x.return()}finally{if(T)throw S}}return v}return function(g,w){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return y(g,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function y(g,w,v){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,w);if(k===void 0){var T=Object.getPrototypeOf(g);return T===null?void 0:y(T,w,v)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(v)}},s=function(){function y(g,w){for(var v=0;v<w.length;v++){var k=w[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,v){return w&&y(g.prototype,w),v&&y(g,v),g}}(),u=a(0),c=d(u),p=a(7),f=d(p);function d(y){return y&&y.__esModule?y:{default:y}}function h(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function b(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function m(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var _=function(y){m(g,y),s(g,null,[{key:"value",value:function(){}}]);function g(w,v){h(this,g);var k=b(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return k.selection=v,k.textNode=document.createTextNode(g.CONTENTS),k.domNode.appendChild(k.textNode),k._length=0,k}return s(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(v,k){if(this._length!==0)return l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,v,k);for(var T=this,S=0;T!=null&&T.statics.scope!==c.default.Scope.BLOCK_BLOT;)S+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=g.CONTENTS.length,T.optimize(),T.formatAt(S,g.CONTENTS.length,v,k),this._length=0)}},{key:"index",value:function(v,k){return v===this.textNode?0:l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,v,k)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var v=this.textNode,k=this.selection.getNativeRange(),T=void 0,S=void 0,x=void 0;if(k!=null&&k.start.node===v&&k.end.node===v){var B=[v,k.start.offset,k.end.offset];T=B[0],S=B[1],x=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var E=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof f.default?(T=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=g.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,x].map(function(N){return Math.max(0,Math.min(T.data.length,N-1))}),O=r(C,2);return S=O[0],x=O[1],{startNode:T,startOffset:S,endNode:T,endOffset:x}}}}},{key:"update",value:function(v,k){var T=this;if(v.some(function(x){return x.type==="characterData"&&x.target===T.textNode})){var S=this.restore();S&&(k.range=S)}}},{key:"value",value:function(){return""}}]),g}(c.default.Embed);_.blotName="cursor",_.className="ql-cursor",_.tagName="span",_.CONTENTS="\uFEFF",o.default=_},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=c(r),s=a(4),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(l.default.Container);h.allowedChildren=[u.default,s.BlockEmbed,h],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var r=function(){function _(y,g){for(var w=0;w<g.length;w++){var v=g[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),l=function _(y,g,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(w)}},s=a(0),u=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function f(_,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 d(_,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 h=function(_){d(y,_);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"value",value:function(w){var v=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,w);return v.startsWith("rgb(")?(v=v.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+v.split(",").map(function(k){return("00"+parseInt(k).toString(16)).slice(-2)}).join("")):v}}]),y}(u.default.Attributor.Style),b=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),m=new h("color","color",{scope:u.default.Scope.INLINE});o.ColorAttributor=h,o.ColorClass=b,o.ColorStyle=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var r=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),_}}(),l=function m(_,y,g){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,y);if(w===void 0){var v=Object.getPrototypeOf(_);return v===null?void 0:m(v,y,g)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(g)}},s=a(6),u=c(s);function c(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 d(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){d(_,m);function _(){return p(this,_),f(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return r(_,[{key:"format",value:function(g,w){if(g!==this.statics.blotName||!w)return l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,g,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(g){var w=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,g);return g=this.sanitize(g),w.setAttribute("href",g),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return b(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),_}(u.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(m,_){var y=document.createElement("a");y.href=m;var g=y.href.slice(0,y.href.indexOf(":"));return _.indexOf(g)>-1}o.default=h,o.sanitize=b},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l=function(){function _(y,g){for(var w=0;w<g.length;w++){var v=g[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),s=a(23),u=f(s),c=a(107),p=f(c);function f(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function b(_,y){_.setAttribute(y,_.getAttribute(y)!=="true")}var m=function(){function _(y){var g=this;d(this,_),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){g.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case u.default.keys.ENTER:g.togglePicker();break;case u.default.keys.ESCAPE:g.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(_,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var w=this,v=document.createElement("span");return v.tabIndex="0",v.setAttribute("role","button"),v.classList.add("ql-picker-item"),g.hasAttribute("value")&&v.setAttribute("data-value",g.getAttribute("value")),g.textContent&&v.setAttribute("data-label",g.textContent),v.addEventListener("click",function(){w.selectItem(v,!0)}),v.addEventListener("keydown",function(k){switch(k.keyCode){case u.default.keys.ENTER:w.selectItem(v,!0),k.preventDefault();break;case u.default.keys.ESCAPE:w.escape(),k.preventDefault();break}}),v}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=p.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(v){var k=g.buildItem(v);w.appendChild(k),v.selected===!0&&g.selectItem(k)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(w){g.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=this.container.querySelector(".ql-selected");if(g!==v&&(v!=null&&v.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":r(Event))==="object"){var k=document.createEvent("Event");k.initEvent("change",!0,!0),this.select.dispatchEvent(k)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var v=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",v)}}]),_}();o.default=m},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=q(r),s=a(5),u=q(s),c=a(4),p=q(c),f=a(16),d=q(f),h=a(25),b=q(h),m=a(24),_=q(m),y=a(35),g=q(y),w=a(6),v=q(w),k=a(22),T=q(k),S=a(7),x=q(S),B=a(55),E=q(B),C=a(42),O=q(C),N=a(23),R=q(N);function q(W){return W&&W.__esModule?W:{default:W}}u.default.register({"blots/block":p.default,"blots/block/embed":c.BlockEmbed,"blots/break":d.default,"blots/container":b.default,"blots/cursor":_.default,"blots/embed":g.default,"blots/inline":v.default,"blots/scroll":T.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":O.default,"modules/keyboard":R.default}),l.default.register(p.default,d.default,_.default,v.default,T.default,x.default),o.default=u.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(u){this.domNode=u,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(u){if(this.tagName==null)throw new r.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof u=="string"&&(u=u.toUpperCase(),parseInt(u).toString()===u&&(u=parseInt(u))),typeof u=="number"?c=document.createElement(this.tagName[u-1]):this.tagName.indexOf(u)>-1?c=document.createElement(u):c=document.createElement(this.tagName[0])):c=document.createElement(this.tagName),this.className&&c.classList.add(this.className),c},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var u=this.domNode.cloneNode(!1);return r.create(u)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},s.prototype.deleteAt=function(u,c){var p=this.isolate(u,c);p.remove()},s.prototype.formatAt=function(u,c,p,f){var d=this.isolate(u,c);if(r.query(p,r.Scope.BLOT)!=null&&f)d.wrap(p,f);else if(r.query(p,r.Scope.ATTRIBUTE)!=null){var h=r.create(this.statics.scope);d.wrap(h),h.format(p,f)}},s.prototype.insertAt=function(u,c,p){var f=p==null?r.create("text",c):r.create(c,p),d=this.split(u);this.parent.insertBefore(f,d)},s.prototype.insertInto=function(u,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var p=null;u.children.insertBefore(this,c),c!=null&&(p=c.domNode),(this.domNode.parentNode!=u.domNode||this.domNode.nextSibling!=p)&&u.domNode.insertBefore(this.domNode,p),this.parent=u,this.attach()},s.prototype.isolate=function(u,c){var p=this.split(u);return p.split(c),p},s.prototype.length=function(){return 1},s.prototype.offset=function(u){return u===void 0&&(u=this.parent),this.parent==null||this==u?0:this.parent.children.offset(this)+this.parent.offset(u)},s.prototype.optimize=function(u){this.domNode[r.DATA_KEY]!=null&&delete this.domNode[r.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(u){u.parent!=null&&(u.parent.insertBefore(this,u.next),u.remove())},s.prototype.replaceWith=function(u,c){var p=typeof u=="string"?r.create(u,c):u;return p.replace(this),p},s.prototype.split=function(u,c){return u===0?this:this.next},s.prototype.update=function(u,c){},s.prototype.wrap=function(u,c){var p=typeof u=="string"?r.create(u,c):u;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},s.blotName="abstract",s}();o.default=l},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(12),l=a(32),s=a(33),u=a(1),c=function(){function p(f){this.attributes={},this.domNode=f,this.build()}return p.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},p.prototype.build=function(){var f=this;this.attributes={};var d=r.default.keys(this.domNode),h=l.default.keys(this.domNode),b=s.default.keys(this.domNode);d.concat(h).concat(b).forEach(function(m){var _=u.query(m,u.Scope.ATTRIBUTE);_ instanceof r.default&&(f.attributes[_.attrName]=_)})},p.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(h){var b=d.attributes[h].value(d.domNode);f.format(h,b)})},p.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=f.attributes[h].value(f.domNode),d},{})},p}();o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12);function s(c,p){var f=c.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var u=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},p.prototype.remove=function(f){var d=s(f,this.keyName);d.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var d=s(f,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},p}(l.default);o.default=u},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12);function s(c){var p=c.split("-"),f=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+f}var u=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},p.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[s(this.keyName)]=d,!0):!1},p.prototype.remove=function(f){f.style[s(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},p.prototype.value=function(f){var d=f.style[s(this.keyName)];return this.canAdd(f,d)?d:""},p}(l.default);o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function u(c,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,f){return p&&u(c.prototype,p),f&&u(c,f),c}}();function l(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function u(c,p){l(this,u),this.quill=c,this.options=p,this.modules={}}return r(u,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(f){p.modules[f]==null&&p.addModule(f)})}},{key:"addModule",value:function(p){var f=this.quill.constructor.import("modules/"+p);return this.modules[p]=new f(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),u}();s.DEFAULTS={modules:{}},s.themes={default:s},o.default=s},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function y(g,w){for(var v=0;v<w.length;v++){var k=w[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,v){return w&&y(g.prototype,w),v&&y(g,v),g}}(),l=function y(g,w,v){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,w);if(k===void 0){var T=Object.getPrototypeOf(g);return T===null?void 0:y(T,w,v)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(v)}},s=a(0),u=f(s),c=a(7),p=f(c);function f(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function b(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m="\uFEFF",_=function(y){b(g,y);function g(w){d(this,g);var v=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return v.contentNode=document.createElement("span"),v.contentNode.setAttribute("contenteditable",!1),[].slice.call(v.domNode.childNodes).forEach(function(k){v.contentNode.appendChild(k)}),v.leftGuard=document.createTextNode(m),v.rightGuard=document.createTextNode(m),v.domNode.appendChild(v.leftGuard),v.domNode.appendChild(v.contentNode),v.domNode.appendChild(v.rightGuard),v}return r(g,[{key:"index",value:function(v,k){return v===this.leftGuard?0:v===this.rightGuard?1:l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,v,k)}},{key:"restore",value:function(v){var k=void 0,T=void 0,S=v.data.split(m).join("");if(v===this.leftGuard)if(this.prev instanceof p.default){var x=this.prev.length();this.prev.insertAt(x,S),k={startNode:this.prev.domNode,startOffset:x+S.length}}else T=document.createTextNode(S),this.parent.insertBefore(u.default.create(T),this),k={startNode:T,startOffset:S.length};else v===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,S),k={startNode:this.next.domNode,startOffset:S.length}):(T=document.createTextNode(S),this.parent.insertBefore(u.default.create(T),this.next),k={startNode:T,startOffset:S.length}));return v.data=m,k}},{key:"update",value:function(v,k){var T=this;v.forEach(function(S){if(S.type==="characterData"&&(S.target===T.leftGuard||S.target===T.rightGuard)){var x=T.restore(S.target);x&&(k.range=x)}})}}]),g}(u.default.Embed);o.default=_},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.AlignStyle=o.AlignClass=o.AlignAttribute=void 0;var r=a(0),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}var u={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new l.default.Attributor.Attribute("align","align",u),p=new l.default.Attributor.Class("align","ql-align",u),f=new l.default.Attributor.Style("align","text-align",u);o.AlignAttribute=c,o.AlignClass=p,o.AlignStyle=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.BackgroundStyle=o.BackgroundClass=void 0;var r=a(0),l=u(r),s=a(26);function u(f){return f&&f.__esModule?f:{default:f}}var c=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),p=new s.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});o.BackgroundClass=c,o.BackgroundStyle=p},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.DirectionStyle=o.DirectionClass=o.DirectionAttribute=void 0;var r=a(0),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}var u={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},c=new l.default.Attributor.Attribute("direction","dir",u),p=new l.default.Attributor.Class("direction","ql-direction",u),f=new l.default.Attributor.Style("direction","direction",u);o.DirectionAttribute=c,o.DirectionClass=p,o.DirectionStyle=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.FontClass=o.FontStyle=void 0;var r=function(){function y(g,w){for(var v=0;v<w.length;v++){var k=w[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,w,v){return w&&y(g.prototype,w),v&&y(g,v),g}}(),l=function y(g,w,v){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,w);if(k===void 0){var T=Object.getPrototypeOf(g);return T===null?void 0:y(T,w,v)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(v)}},s=a(0),u=c(s);function c(y){return y&&y.__esModule?y:{default:y}}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function f(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function d(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var h={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new u.default.Attributor.Class("font","ql-font",h),m=function(y){d(g,y);function g(){return p(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"value",value:function(v){return l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,v).replace(/["']/g,"")}}]),g}(u.default.Attributor.Style),_=new m("font","font-family",h);o.FontStyle=_,o.FontClass=b},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.SizeStyle=o.SizeClass=void 0;var r=a(0),l=s(r);function s(p){return p&&p.__esModule?p:{default:p}}var u=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),c=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});o.SizeClass=u,o.SizeStyle=c},function(e,o,a){e.exports={align:{"":a(76),center:a(77),right:a(78),justify:a(79)},background:a(80),blockquote:a(81),bold:a(82),clean:a(83),code:a(58),"code-block":a(58),color:a(84),direction:{"":a(85),rtl:a(86)},float:{center:a(87),full:a(88),left:a(89),right:a(90)},formula:a(91),header:{1:a(92),2:a(93)},italic:a(94),image:a(95),indent:{"+1":a(96),"-1":a(97)},link:a(98),list:{ordered:a(99),bullet:a(100),check:a(101)},script:{sub:a(102),super:a(103)},strike:a(104),underline:a(105),video:a(106)}},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.getLastChangeIndex=o.default=void 0;var r=function(){function w(v,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(v,S.key,S)}}return function(v,k,T){return k&&w(v.prototype,k),T&&w(v,T),v}}(),l=a(0),s=d(l),u=a(5),c=d(u),p=a(9),f=d(p);function d(w){return w&&w.__esModule?w:{default:w}}function h(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function b(w,v){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:w}function m(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(w,v):w.__proto__=v)}var _=function(w){m(v,w);function v(k,T){h(this,v);var S=b(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,k,T));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(c.default.events.EDITOR_CHANGE,function(x,B,E,C){x!==c.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===c.default.sources.USER?S.record(B,E):S.transform(B))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return r(v,[{key:"change",value:function(T,S){if(this.stack[T].length!==0){var x=this.stack[T].pop();this.stack[S].push(x),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(x[T],c.default.sources.USER),this.ignoreChange=!1;var B=g(x[T]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(T,S){if(T.ops.length!==0){this.stack.redo=[];var x=this.quill.getContents().diff(S),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var E=this.stack.undo.pop();x=x.compose(E.undo),T=E.redo.compose(T)}else this.lastRecorded=B;this.stack.undo.push({redo:T,undo:x}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(T){this.stack.undo.forEach(function(S){S.undo=T.transform(S.undo,!0),S.redo=T.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=T.transform(S.undo,!0),S.redo=T.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),v}(f.default);_.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(w){var v=w.ops[w.ops.length-1];return v==null?!1:v.insert!=null?typeof v.insert=="string"&&v.insert.endsWith(`
|
|
120
|
+
`):v.attributes!=null?Object.keys(v.attributes).some(function(k){return s.default.query(k,s.default.Scope.BLOCK)!=null}):!1}function g(w){var v=w.reduce(function(T,S){return T+=S.delete||0,T},0),k=w.length()-v;return y(w)&&(k-=1),k}o.default=_,o.getLastChangeIndex=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BaseTooltip=void 0;var r=function(){function A(P,U){for(var F=0;F<U.length;F++){var L=U[F];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,U,F){return U&&A(P.prototype,U),F&&A(P,F),P}}(),l=function A(P,U,F){P===null&&(P=Function.prototype);var L=Object.getOwnPropertyDescriptor(P,U);if(L===void 0){var z=Object.getPrototypeOf(P);return z===null?void 0:A(z,U,F)}else{if("value"in L)return L.value;var Z=L.get;return Z===void 0?void 0:Z.call(F)}},s=a(3),u=B(s),c=a(2),p=B(c),f=a(8),d=B(f),h=a(23),b=B(h),m=a(34),_=B(m),y=a(59),g=B(y),w=a(60),v=B(w),k=a(28),T=B(k),S=a(61),x=B(S);function B(A){return A&&A.__esModule?A:{default:A}}function E(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function C(A,P){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:A}function O(A,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);A.prototype=Object.create(P&&P.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(A,P):A.__proto__=P)}var N=[!1,"center","right","justify"],R=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],W=["1","2","3",!1],Y=["small",!1,"large","huge"],re=function(A){O(P,A);function P(U,F){E(this,P);var L=C(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,U,F)),z=function Z(J){if(!document.body.contains(U.root))return document.body.removeEventListener("click",Z);L.tooltip!=null&&!L.tooltip.root.contains(J.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(ne){ne.container.contains(J.target)||ne.close()})};return U.emitter.listenDOM("click",document.body,z),L}return r(P,[{key:"addModule",value:function(F){var L=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"addModule",this).call(this,F);return F==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(F,L){F.forEach(function(z){var Z=z.getAttribute("class")||"";Z.split(/\s+/).forEach(function(J){if(J.startsWith("ql-")&&(J=J.slice(3),L[J]!=null))if(J==="direction")z.innerHTML=L[J][""]+L[J].rtl;else if(typeof L[J]=="string")z.innerHTML=L[J];else{var ne=z.value||"";ne!=null&&L[J][ne]&&(z.innerHTML=L[J][ne])}})})}},{key:"buildPickers",value:function(F,L){var z=this;this.pickers=F.map(function(J){if(J.classList.contains("ql-align"))return J.querySelector("option")==null&&D(J,N),new v.default(J,L.align);if(J.classList.contains("ql-background")||J.classList.contains("ql-color")){var ne=J.classList.contains("ql-background")?"background":"color";return J.querySelector("option")==null&&D(J,R,ne==="background"?"#ffffff":"#000000"),new g.default(J,L[ne])}else return J.querySelector("option")==null&&(J.classList.contains("ql-font")?D(J,q):J.classList.contains("ql-header")?D(J,W):J.classList.contains("ql-size")&&D(J,Y)),new T.default(J)});var Z=function(){z.pickers.forEach(function(ne){ne.update()})};this.quill.on(d.default.events.EDITOR_CHANGE,Z)}}]),P}(_.default);re.DEFAULTS=(0,u.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var P=this,U=this.container.querySelector("input.ql-image[type=file]");U==null&&(U=document.createElement("input"),U.setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(U.files!=null&&U.files[0]!=null){var F=new FileReader;F.onload=function(L){var z=P.quill.getSelection(!0);P.quill.updateContents(new p.default().retain(z.index).delete(z.length).insert({image:L.target.result}),d.default.sources.USER),P.quill.setSelection(z.index+1,d.default.sources.SILENT),U.value=""},F.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var K=function(A){O(P,A);function P(U,F){E(this,P);var L=C(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,U,F));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return r(P,[{key:"listen",value:function(){var F=this;this.textbox.addEventListener("keydown",function(L){b.default.match(L,"enter")?(F.save(),L.preventDefault()):b.default.match(L,"escape")&&(F.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:F!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+F)||""),this.root.setAttribute("data-mode",F)}},{key:"restoreFocus",value:function(){var F=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=F}},{key:"save",value:function(){var F=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",F,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",F,d.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":F=V(F);case"formula":{if(!F)break;var z=this.quill.getSelection(!0);if(z!=null){var Z=z.index+z.length;this.quill.insertEmbed(Z,this.root.getAttribute("data-mode"),F,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Z+1," ",d.default.sources.USER),this.quill.setSelection(Z+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),P}(x.default);function V(A){var P=A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return P?(P[1]||"https")+"://www.youtube.com/embed/"+P[2]+"?showinfo=0":(P=A.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(P[1]||"https")+"://player.vimeo.com/video/"+P[2]+"/":A}function D(A,P){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;P.forEach(function(F){var L=document.createElement("option");F===U?L.setAttribute("selected","selected"):L.setAttribute("value",F),A.appendChild(L)})}o.BaseTooltip=K,o.default=re},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},l.prototype.contains=function(s){for(var u,c=this.iterator();u=c();)if(u===s)return!0;return!1},l.prototype.insertBefore=function(s,u){s&&(s.next=u,u!=null?(s.prev=u.prev,u.prev!=null&&(u.prev.next=s),u.prev=s,u===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},l.prototype.offset=function(s){for(var u=0,c=this.head;c!=null;){if(c===s)return u;u+=c.length(),c=c.next}return-1},l.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},l.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var u=s;return s!=null&&(s=s.next),u}},l.prototype.find=function(s,u){u===void 0&&(u=!1);for(var c,p=this.iterator();c=p();){var f=c.length();if(s<f||u&&s===f&&(c.next==null||c.next.length()!==0))return[c,s];s-=f}return[null,0]},l.prototype.forEach=function(s){for(var u,c=this.iterator();u=c();)s(u)},l.prototype.forEachAt=function(s,u,c){if(!(u<=0))for(var p=this.find(s),f=p[0],d=p[1],h,b=s-d,m=this.iterator(f);(h=m())&&b<s+u;){var _=h.length();s>b?c(h,s-b,Math.min(u,b+_-s)):c(h,0,Math.min(_,s+u-b)),b+=_}},l.prototype.map=function(s){return this.reduce(function(u,c){return u.push(s(c)),u},[])},l.prototype.reduce=function(s,u){for(var c,p=this.iterator();c=p();)u=s(u,c);return u},l}();o.default=r},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var b in h)h.hasOwnProperty(b)&&(d[b]=h[b])};return function(d,h){f(d,h);function b(){this.constructor=d}d.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(17),s=a(1),u={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,p=function(f){r(d,f);function d(h){var b=f.call(this,h)||this;return b.scroll=b,b.observer=new MutationObserver(function(m){b.update(m)}),b.observer.observe(b.domNode,u),b.attach(),b}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,b){this.update(),h===0&&b===this.length()?this.children.forEach(function(m){m.remove()}):f.prototype.deleteAt.call(this,h,b)},d.prototype.formatAt=function(h,b,m,_){this.update(),f.prototype.formatAt.call(this,h,b,m,_)},d.prototype.insertAt=function(h,b,m){this.update(),f.prototype.insertAt.call(this,h,b,m)},d.prototype.optimize=function(h,b){var m=this;h===void 0&&(h=[]),b===void 0&&(b={}),f.prototype.optimize.call(this,b);for(var _=[].slice.call(this.observer.takeRecords());_.length>0;)h.push(_.pop());for(var y=function(k,T){T===void 0&&(T=!0),!(k==null||k===m)&&k.domNode.parentNode!=null&&(k.domNode[s.DATA_KEY].mutations==null&&(k.domNode[s.DATA_KEY].mutations=[]),T&&y(k.parent))},g=function(k){k.domNode[s.DATA_KEY]==null||k.domNode[s.DATA_KEY].mutations==null||(k instanceof l.default&&k.children.forEach(g),k.optimize(b))},w=h,v=0;w.length>0;v+=1){if(v>=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(k){var T=s.find(k.target,!0);T!=null&&(T.domNode===k.target&&(k.type==="childList"?(y(s.find(k.previousSibling,!1)),[].forEach.call(k.addedNodes,function(S){var x=s.find(S,!1);y(x,!1),x instanceof l.default&&x.children.forEach(function(B){y(B,!1)})})):k.type==="attributes"&&y(T.prev)),y(T))}),this.children.forEach(g),w=[].slice.call(this.observer.takeRecords()),_=w.slice();_.length>0;)h.push(_.pop())}},d.prototype.update=function(h,b){var m=this;b===void 0&&(b={}),h=h||this.observer.takeRecords(),h.map(function(_){var y=s.find(_.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[_],y):(y.domNode[s.DATA_KEY].mutations.push(_),null)}).forEach(function(_){_==null||_===m||_.domNode[s.DATA_KEY]==null||_.update(_.domNode[s.DATA_KEY].mutations||[],b)}),this.domNode[s.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,b),this.optimize(h,b)},d.blotName="scroll",d.defaultChild="block",d.scope=s.Scope.BLOCK_BLOT,d.tagName="DIV",d}(l.default);o.default=p},function(e,o,a){var r=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)d.hasOwnProperty(h)&&(f[h]=d[h])};return function(f,d){p(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(18),s=a(1);function u(p,f){if(Object.keys(p).length!==Object.keys(f).length)return!1;for(var d in p)if(p[d]!==f[d])return!1;return!0}var c=function(p){r(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return p.formats.call(this,d)},f.prototype.format=function(d,h){var b=this;d===this.statics.blotName&&!h?(this.children.forEach(function(m){m instanceof l.default||(m=m.wrap(f.blotName,!0)),b.attributes.copy(m)}),this.unwrap()):p.prototype.format.call(this,d,h)},f.prototype.formatAt=function(d,h,b,m){if(this.formats()[b]!=null||s.query(b,s.Scope.ATTRIBUTE)){var _=this.isolate(d,h);_.format(b,m)}else p.prototype.formatAt.call(this,d,h,b,m)},f.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var b=this.next;b instanceof f&&b.prev===this&&u(h,b.formats())&&(b.moveChildren(this),b.remove())},f.blotName="inline",f.scope=s.Scope.INLINE_BLOT,f.tagName="SPAN",f}(l.default);o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(18),s=a(1),u=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.formats=function(f){var d=s.query(p.blotName).tagName;if(f.tagName!==d)return c.formats.call(this,f)},p.prototype.format=function(f,d){s.query(f,s.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(p.blotName):c.prototype.format.call(this,f,d))},p.prototype.formatAt=function(f,d,h,b){s.query(h,s.Scope.BLOCK)!=null?this.format(h,b):c.prototype.formatAt.call(this,f,d,h,b)},p.prototype.insertAt=function(f,d,h){if(h==null||s.query(d,s.Scope.INLINE)!=null)c.prototype.insertAt.call(this,f,d,h);else{var b=this.split(f),m=s.create(d,h);b.parent.insertBefore(m,b)}},p.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,f,d)},p.blotName="block",p.scope=s.Scope.BLOCK_BLOT,p.tagName="P",p}(l.default);o.default=u},function(e,o,a){var r=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var f in p)p.hasOwnProperty(f)&&(c[f]=p[f])};return function(c,p){u(c,p);function f(){this.constructor=c}c.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(19),s=function(u){r(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(p){},c.prototype.format=function(p,f){u.prototype.formatAt.call(this,0,this.length(),p,f)},c.prototype.formatAt=function(p,f,d,h){p===0&&f===this.length()?this.format(d,h):u.prototype.formatAt.call(this,p,f,d,h)},c.prototype.formats=function(){return this.statics.formats(this.domNode)},c}(l.default);o.default=s},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var d in f)f.hasOwnProperty(d)&&(p[d]=f[d])};return function(p,f){c(p,f);function d(){this.constructor=p}p.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(19),s=a(1),u=function(c){r(p,c);function p(f){var d=c.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return p.create=function(f){return document.createTextNode(f)},p.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},p.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},p.prototype.index=function(f,d){return this.domNode===f?d:-1},p.prototype.insertAt=function(f,d,h){h==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):c.prototype.insertAt.call(this,f,d,h)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){c.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(f,d){return[this.domNode,f]},p.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var h=s.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},p.prototype.update=function(f,d){var h=this;f.some(function(b){return b.type==="characterData"&&b.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=s.Scope.INLINE_BLOT,p}(l.default);o.default=u},function(e,o,a){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,u){return arguments.length>1&&!this.contains(s)==!u?u:l.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,u){return u=u||0,this.substr(u,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,u){var c=this.toString();(typeof u!="number"||!isFinite(u)||Math.floor(u)!==u||u>c.length)&&(u=c.length),u-=s.length;var p=c.indexOf(s,u);return p!==-1&&p===u}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(u){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof u!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),p=c.length>>>0,f=arguments[1],d,h=0;h<p;h++)if(d=c[h],u.call(f,d,h,c))return d}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,o){var a=-1,r=1,l=0;function s(v,k,T){if(v==k)return v?[[l,v]]:[];(T<0||v.length<T)&&(T=null);var S=f(v,k),x=v.substring(0,S);v=v.substring(S),k=k.substring(S),S=d(v,k);var B=v.substring(v.length-S);v=v.substring(0,v.length-S),k=k.substring(0,k.length-S);var E=u(v,k);return x&&E.unshift([l,x]),B&&E.push([l,B]),b(E),T!=null&&(E=y(E,T)),E=g(E),E}function u(v,k){var T;if(!v)return[[r,k]];if(!k)return[[a,v]];var S=v.length>k.length?v:k,x=v.length>k.length?k:v,B=S.indexOf(x);if(B!=-1)return T=[[r,S.substring(0,B)],[l,x],[r,S.substring(B+x.length)]],v.length>k.length&&(T[0][0]=T[2][0]=a),T;if(x.length==1)return[[a,v],[r,k]];var E=h(v,k);if(E){var C=E[0],O=E[1],N=E[2],R=E[3],q=E[4],W=s(C,N),Y=s(O,R);return W.concat([[l,q]],Y)}return c(v,k)}function c(v,k){for(var T=v.length,S=k.length,x=Math.ceil((T+S)/2),B=x,E=2*x,C=new Array(E),O=new Array(E),N=0;N<E;N++)C[N]=-1,O[N]=-1;C[B+1]=0,O[B+1]=0;for(var R=T-S,q=R%2!=0,W=0,Y=0,re=0,K=0,V=0;V<x;V++){for(var D=-V+W;D<=V-Y;D+=2){var A=B+D,P;D==-V||D!=V&&C[A-1]<C[A+1]?P=C[A+1]:P=C[A-1]+1;for(var U=P-D;P<T&&U<S&&v.charAt(P)==k.charAt(U);)P++,U++;if(C[A]=P,P>T)Y+=2;else if(U>S)W+=2;else if(q){var F=B+R-D;if(F>=0&&F<E&&O[F]!=-1){var L=T-O[F];if(P>=L)return p(v,k,P,U)}}}for(var z=-V+re;z<=V-K;z+=2){var F=B+z,L;z==-V||z!=V&&O[F-1]<O[F+1]?L=O[F+1]:L=O[F-1]+1;for(var Z=L-z;L<T&&Z<S&&v.charAt(T-L-1)==k.charAt(S-Z-1);)L++,Z++;if(O[F]=L,L>T)K+=2;else if(Z>S)re+=2;else if(!q){var A=B+R-z;if(A>=0&&A<E&&C[A]!=-1){var P=C[A],U=B+P-A;if(L=T-L,P>=L)return p(v,k,P,U)}}}}return[[a,v],[r,k]]}function p(v,k,T,S){var x=v.substring(0,T),B=k.substring(0,S),E=v.substring(T),C=k.substring(S),O=s(x,B),N=s(E,C);return O.concat(N)}function f(v,k){if(!v||!k||v.charAt(0)!=k.charAt(0))return 0;for(var T=0,S=Math.min(v.length,k.length),x=S,B=0;T<x;)v.substring(B,x)==k.substring(B,x)?(T=x,B=T):S=x,x=Math.floor((S-T)/2+T);return x}function d(v,k){if(!v||!k||v.charAt(v.length-1)!=k.charAt(k.length-1))return 0;for(var T=0,S=Math.min(v.length,k.length),x=S,B=0;T<x;)v.substring(v.length-x,v.length-B)==k.substring(k.length-x,k.length-B)?(T=x,B=T):S=x,x=Math.floor((S-T)/2+T);return x}function h(v,k){var T=v.length>k.length?v:k,S=v.length>k.length?k:v;if(T.length<4||S.length*2<T.length)return null;function x(Y,re,K){for(var V=Y.substring(K,K+Math.floor(Y.length/4)),D=-1,A="",P,U,F,L;(D=re.indexOf(V,D+1))!=-1;){var z=f(Y.substring(K),re.substring(D)),Z=d(Y.substring(0,K),re.substring(0,D));A.length<Z+z&&(A=re.substring(D-Z,D)+re.substring(D,D+z),P=Y.substring(0,K-Z),U=Y.substring(K+z),F=re.substring(0,D-Z),L=re.substring(D+z))}return A.length*2>=Y.length?[P,U,F,L,A]:null}var B=x(T,S,Math.ceil(T.length/4)),E=x(T,S,Math.ceil(T.length/2)),C;if(!B&&!E)return null;E?B?C=B[4].length>E[4].length?B:E:C=E:C=B;var O,N,R,q;v.length>k.length?(O=C[0],N=C[1],R=C[2],q=C[3]):(R=C[0],q=C[1],O=C[2],N=C[3]);var W=C[4];return[O,N,R,q,W]}function b(v){v.push([l,""]);for(var k=0,T=0,S=0,x="",B="",E;k<v.length;)switch(v[k][0]){case r:S++,B+=v[k][1],k++;break;case a:T++,x+=v[k][1],k++;break;case l:T+S>1?(T!==0&&S!==0&&(E=f(B,x),E!==0&&(k-T-S>0&&v[k-T-S-1][0]==l?v[k-T-S-1][1]+=B.substring(0,E):(v.splice(0,0,[l,B.substring(0,E)]),k++),B=B.substring(E),x=x.substring(E)),E=d(B,x),E!==0&&(v[k][1]=B.substring(B.length-E)+v[k][1],B=B.substring(0,B.length-E),x=x.substring(0,x.length-E))),T===0?v.splice(k-S,T+S,[r,B]):S===0?v.splice(k-T,T+S,[a,x]):v.splice(k-T-S,T+S,[a,x],[r,B]),k=k-T-S+(T?1:0)+(S?1:0)+1):k!==0&&v[k-1][0]==l?(v[k-1][1]+=v[k][1],v.splice(k,1)):k++,S=0,T=0,x="",B="";break}v[v.length-1][1]===""&&v.pop();var C=!1;for(k=1;k<v.length-1;)v[k-1][0]==l&&v[k+1][0]==l&&(v[k][1].substring(v[k][1].length-v[k-1][1].length)==v[k-1][1]?(v[k][1]=v[k-1][1]+v[k][1].substring(0,v[k][1].length-v[k-1][1].length),v[k+1][1]=v[k-1][1]+v[k+1][1],v.splice(k-1,1),C=!0):v[k][1].substring(0,v[k+1][1].length)==v[k+1][1]&&(v[k-1][1]+=v[k+1][1],v[k][1]=v[k][1].substring(v[k+1][1].length)+v[k+1][1],v.splice(k+1,1),C=!0)),k++;C&&b(v)}var m=s;m.INSERT=r,m.DELETE=a,m.EQUAL=l,e.exports=m;function _(v,k){if(k===0)return[l,v];for(var T=0,S=0;S<v.length;S++){var x=v[S];if(x[0]===a||x[0]===l){var B=T+x[1].length;if(k===B)return[S+1,v];if(k<B){v=v.slice();var E=k-T,C=[x[0],x[1].slice(0,E)],O=[x[0],x[1].slice(E)];return v.splice(S,1,C,O),[S+1,v]}else T=B}}throw new Error("cursor_pos is out of bounds!")}function y(v,k){var T=_(v,k),S=T[1],x=T[0],B=S[x],E=S[x+1];if(B==null)return v;if(B[0]!==l)return v;if(E!=null&&B[1]+E[1]===E[1]+B[1])return S.splice(x,2,E,B),w(S,x,2);if(E!=null&&E[1].indexOf(B[1])===0){S.splice(x,2,[E[0],B[1]],[0,B[1]]);var C=E[1].slice(B[1].length);return C.length>0&&S.splice(x+2,0,[E[0],C]),w(S,x,3)}else return v}function g(v){for(var k=!1,T=function(E){return E.charCodeAt(0)>=56320&&E.charCodeAt(0)<=57343},S=function(E){return E.charCodeAt(E.length-1)>=55296&&E.charCodeAt(E.length-1)<=56319},x=2;x<v.length;x+=1)v[x-2][0]===l&&S(v[x-2][1])&&v[x-1][0]===a&&T(v[x-1][1])&&v[x][0]===r&&T(v[x][1])&&(k=!0,v[x-1][1]=v[x-2][1].slice(-1)+v[x-1][1],v[x][1]=v[x-2][1].slice(-1)+v[x][1],v[x-2][1]=v[x-2][1].slice(0,-1));if(!k)return v;for(var B=[],x=0;x<v.length;x+=1)v[x][1].length>0&&B.push(v[x]);return B}function w(v,k,T){for(var S=k+T-1;S>=0&&S>=k-1;S--)if(S+1<v.length){var x=v[S],B=v[S+1];x[0]===B[1]&&v.splice(S,2,[x[0],x[1]+B[1]])}return v}},function(e,o){o=e.exports=typeof Object.keys=="function"?Object.keys:a,o.shim=a;function a(r){var l=[];for(var s in r)l.push(s);return l}},function(e,o){var a=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";o=e.exports=a?r:l,o.supported=r;function r(s){return Object.prototype.toString.call(s)=="[object Arguments]"}o.unsupported=l;function l(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}},function(e,o){var a=Object.prototype.hasOwnProperty,r="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(r=!1));function s(c,p,f){this.fn=c,this.context=p,this.once=f||!1}function u(){this._events=new l,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],f,d;if(this._eventsCount===0)return p;for(d in f=this._events)a.call(f,d)&&p.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},u.prototype.listeners=function(p,f){var d=r?r+p:p,h=this._events[d];if(f)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var b=0,m=h.length,_=new Array(m);b<m;b++)_[b]=h[b].fn;return _},u.prototype.emit=function(p,f,d,h,b,m){var _=r?r+p:p;if(!this._events[_])return!1;var y=this._events[_],g=arguments.length,w,v;if(y.fn){switch(y.once&&this.removeListener(p,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,d),!0;case 4:return y.fn.call(y.context,f,d,h),!0;case 5:return y.fn.call(y.context,f,d,h,b),!0;case 6:return y.fn.call(y.context,f,d,h,b,m),!0}for(v=1,w=new Array(g-1);v<g;v++)w[v-1]=arguments[v];y.fn.apply(y.context,w)}else{var k=y.length,T;for(v=0;v<k;v++)switch(y[v].once&&this.removeListener(p,y[v].fn,void 0,!0),g){case 1:y[v].fn.call(y[v].context);break;case 2:y[v].fn.call(y[v].context,f);break;case 3:y[v].fn.call(y[v].context,f,d);break;case 4:y[v].fn.call(y[v].context,f,d,h);break;default:if(!w)for(T=1,w=new Array(g-1);T<g;T++)w[T-1]=arguments[T];y[v].fn.apply(y[v].context,w)}}return!0},u.prototype.on=function(p,f,d){var h=new s(f,d||this),b=r?r+p:p;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],h]:this._events[b].push(h):(this._events[b]=h,this._eventsCount++),this},u.prototype.once=function(p,f,d){var h=new s(f,d||this,!0),b=r?r+p:p;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],h]:this._events[b].push(h):(this._events[b]=h,this._eventsCount++),this},u.prototype.removeListener=function(p,f,d,h){var b=r?r+p:p;if(!this._events[b])return this;if(!f)return--this._eventsCount===0?this._events=new l:delete this._events[b],this;var m=this._events[b];if(m.fn)m.fn===f&&(!h||m.once)&&(!d||m.context===d)&&(--this._eventsCount===0?this._events=new l:delete this._events[b]);else{for(var _=0,y=[],g=m.length;_<g;_++)(m[_].fn!==f||h&&!m[_].once||d&&m[_].context!==d)&&y.push(m[_]);y.length?this._events[b]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new l:delete this._events[b]}return this},u.prototype.removeAllListeners=function(p){var f;return p?(f=r?r+p:p,this._events[f]&&(--this._eventsCount===0?this._events=new l:delete this._events[f])):(this._events=new l,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prototype.setMaxListeners=function(){return this},u.prefixed=r,u.EventEmitter=u,typeof e<"u"&&(e.exports=u)},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.matchText=o.matchSpacing=o.matchNewline=o.matchBlot=o.matchAttributor=o.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},l=function(){function Q(te,ae){var le=[],ie=!0,$e=!1,me=void 0;try{for(var be=te[Symbol.iterator](),He;!(ie=(He=be.next()).done)&&(le.push(He.value),!(ae&&le.length===ae));ie=!0);}catch(Ve){$e=!0,me=Ve}finally{try{!ie&&be.return&&be.return()}finally{if($e)throw me}}return le}return function(te,ae){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return Q(te,ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function Q(te,ae){for(var le=0;le<ae.length;le++){var ie=ae[le];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(te,ie.key,ie)}}return function(te,ae,le){return ae&&Q(te.prototype,ae),le&&Q(te,le),te}}(),u=a(3),c=O(u),p=a(2),f=O(p),d=a(0),h=O(d),b=a(5),m=O(b),_=a(10),y=O(_),g=a(9),w=O(g),v=a(36),k=a(37),T=a(13),S=O(T),x=a(26),B=a(38),E=a(39),C=a(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function N(Q,te,ae){return te in Q?Object.defineProperty(Q,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):Q[te]=ae,Q}function R(Q,te){if(!(Q instanceof te))throw new TypeError("Cannot call a class as a function")}function q(Q,te){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:Q}function W(Q,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);Q.prototype=Object.create(te&&te.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,te):Q.__proto__=te)}var Y=(0,y.default)("quill:clipboard"),re="__ql-matcher",K=[[Node.TEXT_NODE,Me],[Node.TEXT_NODE,ke],["br",de],[Node.ELEMENT_NODE,ke],[Node.ELEMENT_NODE,ne],[Node.ELEMENT_NODE,Oe],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,Le],["li",ve],["b",Z.bind(Z,"bold")],["i",Z.bind(Z,"italic")],["style",he]],V=[v.AlignAttribute,B.DirectionAttribute].reduce(function(Q,te){return Q[te.keyName]=te,Q},{}),D=[v.AlignStyle,k.BackgroundStyle,x.ColorStyle,B.DirectionStyle,E.FontStyle,C.SizeStyle].reduce(function(Q,te){return Q[te.keyName]=te,Q},{}),A=function(Q){W(te,Q);function te(ae,le){R(this,te);var ie=q(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,ae,le));return ie.quill.root.addEventListener("paste",ie.onPaste.bind(ie)),ie.container=ie.quill.addContainer("ql-clipboard"),ie.container.setAttribute("contenteditable",!0),ie.container.setAttribute("tabindex",-1),ie.matchers=[],K.concat(ie.options.matchers).forEach(function($e){var me=l($e,2),be=me[0],He=me[1];!le.matchVisual&&He===Oe||ie.addMatcher(be,He)}),ie}return s(te,[{key:"addMatcher",value:function(le,ie){this.matchers.push([le,ie])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var ie=this.quill.getFormat(this.quill.selection.savedRange.index);if(ie[S.default.blotName]){var $e=this.container.innerText;return this.container.innerHTML="",new f.default().insert($e,N({},S.default.blotName,ie[S.default.blotName]))}var me=this.prepareMatching(),be=l(me,2),He=be[0],Ve=be[1],Ne=z(this.container,He,Ve);return F(Ne,`
|
|
121
|
+
`)&&Ne.ops[Ne.ops.length-1].attributes==null&&(Ne=Ne.compose(new f.default().retain(Ne.length()-1).delete(1))),Y.log("convert",this.container.innerHTML,Ne),this.container.innerHTML="",Ne}},{key:"dangerouslyPasteHTML",value:function(le,ie){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),ie),this.quill.setSelection(0,m.default.sources.SILENT);else{var me=this.convert(ie);this.quill.updateContents(new f.default().retain(le).concat(me),$e),this.quill.setSelection(le+me.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var ie=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var $e=this.quill.getSelection(),me=new f.default().retain($e.index),be=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){me=me.concat(ie.convert()).delete($e.length),ie.quill.updateContents(me,m.default.sources.USER),ie.quill.setSelection(me.length()-$e.length,m.default.sources.SILENT),ie.quill.scrollingContainer.scrollTop=be,ie.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,ie=[],$e=[];return this.matchers.forEach(function(me){var be=l(me,2),He=be[0],Ve=be[1];switch(He){case Node.TEXT_NODE:$e.push(Ve);break;case Node.ELEMENT_NODE:ie.push(Ve);break;default:[].forEach.call(le.container.querySelectorAll(He),function(Ne){Ne[re]=Ne[re]||[],Ne[re].push(Ve)});break}}),[ie,$e]}}]),te}(w.default);A.DEFAULTS={matchers:[],matchVisual:!0};function P(Q,te,ae){return(typeof te>"u"?"undefined":r(te))==="object"?Object.keys(te).reduce(function(le,ie){return P(le,ie,te[ie])},Q):Q.reduce(function(le,ie){return ie.attributes&&ie.attributes[te]?le.push(ie):le.insert(ie.insert,(0,c.default)({},N({},te,ae),ie.attributes))},new f.default)}function U(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var te="__ql-computed-style";return Q[te]||(Q[te]=window.getComputedStyle(Q))}function F(Q,te){for(var ae="",le=Q.ops.length-1;le>=0&&ae.length<te.length;--le){var ie=Q.ops[le];if(typeof ie.insert!="string")break;ae=ie.insert+ae}return ae.slice(-1*te.length)===te}function L(Q){if(Q.childNodes.length===0)return!1;var te=U(Q);return["block","list-item"].indexOf(te.display)>-1}function z(Q,te,ae){return Q.nodeType===Q.TEXT_NODE?ae.reduce(function(le,ie){return ie(Q,le)},new f.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(le,ie){var $e=z(ie,te,ae);return ie.nodeType===Q.ELEMENT_NODE&&($e=te.reduce(function(me,be){return be(ie,me)},$e),$e=(ie[re]||[]).reduce(function(me,be){return be(ie,me)},$e)),le.concat($e)},new f.default):new f.default}function Z(Q,te,ae){return P(ae,Q,!0)}function J(Q,te){var ae=h.default.Attributor.Attribute.keys(Q),le=h.default.Attributor.Class.keys(Q),ie=h.default.Attributor.Style.keys(Q),$e={};return ae.concat(le).concat(ie).forEach(function(me){var be=h.default.query(me,h.default.Scope.ATTRIBUTE);be!=null&&($e[be.attrName]=be.value(Q),$e[be.attrName])||(be=V[me],be!=null&&(be.attrName===me||be.keyName===me)&&($e[be.attrName]=be.value(Q)||void 0),be=D[me],be!=null&&(be.attrName===me||be.keyName===me)&&(be=D[me],$e[be.attrName]=be.value(Q)||void 0))}),Object.keys($e).length>0&&(te=P(te,$e)),te}function ne(Q,te){var ae=h.default.query(Q);if(ae==null)return te;if(ae.prototype instanceof h.default.Embed){var le={},ie=ae.value(Q);ie!=null&&(le[ae.blotName]=ie,te=new f.default().insert(le,ae.formats(Q)))}else typeof ae.formats=="function"&&(te=P(te,ae.blotName,ae.formats(Q)));return te}function de(Q,te){return F(te,`
|
|
122
|
+
`)||te.insert(`
|
|
123
|
+
`),te}function he(){return new f.default}function ve(Q,te){var ae=h.default.query(Q);if(ae==null||ae.blotName!=="list-item"||!F(te,`
|
|
124
|
+
`))return te;for(var le=-1,ie=Q.parentNode;!ie.classList.contains("ql-clipboard");)(h.default.query(ie)||{}).blotName==="list"&&(le+=1),ie=ie.parentNode;return le<=0?te:te.compose(new f.default().retain(te.length()-1).retain(1,{indent:le}))}function ke(Q,te){return F(te,`
|
|
125
|
+
`)||(L(Q)||te.length()>0&&Q.nextSibling&&L(Q.nextSibling))&&te.insert(`
|
|
126
|
+
`),te}function Oe(Q,te){if(L(Q)&&Q.nextElementSibling!=null&&!F(te,`
|
|
127
|
+
|
|
128
|
+
`)){var ae=Q.offsetHeight+parseFloat(U(Q).marginTop)+parseFloat(U(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ae*1.5&&te.insert(`
|
|
129
|
+
`)}return te}function Le(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=P(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 r=function(){function b(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 _&&b(m.prototype,_),y&&b(m,y),m}}(),l=function b(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:b(w,_,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},s=a(6),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(y){l(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 l(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 r=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")}}(),l=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}}(),s=a(2),u=y(s),c=a(0),p=y(c),f=a(5),d=y(f),h=a(10),b=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 v(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,b.default)("quill:toolbar"),S=function(C){k(O,C);function O(N,R){w(this,O);var q=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,R));if(Array.isArray(q.options.container)){var W=document.createElement("div");B(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),v(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(d.default.events.EDITOR_CHANGE,function(re,K){re===d.default.events.SELECTION_CHANGE&&q.update(K)}),q.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var re=q.quill.selection.getRange(),K=r(re,1),V=K[0];q.update(V)}),q}return l(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=r(D,1),P=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(P.index).delete(P.length).insert(g({},W,K)),d.default.sources.USER)}else q.quill.format(W,K,d.default.sources.USER);q.update(P)}),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=r(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 B(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,d.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",d.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",O,d.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,d.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,d.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,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",O,d.default.sources.USER)}}},o.default=S,o.addControls=B},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 r=function(){function b(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 _&&b(m.prototype,_),y&&b(m,y),m}}(),l=function b(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:b(w,_,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},s=a(28),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);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 r(m,[{key:"buildItem",value:function(y){var g=l(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){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g);var w=this.label.querySelector(".ql-color-label"),v=y&&y.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=v:w.style.fill=v)}}]),m}(u.default);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(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 _&&b(m.prototype,_),y&&b(m,y),m}}(),l=function b(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:b(w,_,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},s=a(28),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);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 r(m,[{key:"selectItem",value:function(y,g){l(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 r=function(){function u(c,p){for(var f=0;f<p.length;f++){var d=p[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,f){return p&&u(c.prototype,p),f&&u(c,f),c}}();function l(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function u(c,p){var f=this;l(this,u),this.quill=c,this.boundsContainer=p||document.body,this.root=c.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 r(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,d=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),m=0;if(b.right>h.right&&(m=h.right-b.right,this.root.style.left=f+m+"px"),b.left<h.left&&(m=h.left-b.left,this.root.style.left=f+m+"px"),b.bottom>h.bottom){var _=b.bottom-b.top,y=p.bottom-p.top+_;this.root.style.top=d-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=s},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=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")}}(),l=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)}},s=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),c=w(u),p=a(8),f=w(p),d=a(43),h=w(d),b=a(27),m=w(b),_=a(15),y=a(41),g=w(y);function w(E){return E&&E.__esModule?E:{default:E}}function v(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){v(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 s(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 B(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,c.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 B=function(E){T(C,E);function C(O,N){v(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 s(C,[{key:"listen",value:function(){var N=this;l(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=r(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(){l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(d.BaseTooltip);B.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 r=a(29),l=ie(r),s=a(36),u=a(38),c=a(64),p=a(65),f=ie(p),d=a(66),h=ie(d),b=a(67),m=ie(b),_=a(37),y=a(26),g=a(39),w=a(40),v=a(56),k=ie(v),T=a(68),S=ie(T),x=a(27),B=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),P=ie(A),U=a(75),F=ie(U),L=a(57),z=ie(L),Z=a(41),J=ie(Z),ne=a(28),de=ie(ne),he=a(59),ve=ie(he),ke=a(60),Oe=ie(ke),Le=a(61),Me=ie(Le),Q=a(108),te=ie(Q),ae=a(62),le=ie(ae);function ie($e){return $e&&$e.__esModule?$e:{default:$e}}l.default.register({"attributors/attribute/direction":u.DirectionAttribute,"attributors/class/align":s.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":s.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),l.default.register({"formats/align":s.AlignClass,"formats/direction":u.DirectionClass,"formats/indent":c.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":B.default,"formats/script":C.default,"formats/strike":N.default,"formats/underline":q.default,"formats/image":Y.default,"formats/video":K.default,"formats/list/item":b.ListItem,"modules/formula":P.default,"modules/syntax":F.default,"modules/toolbar":z.default,"themes/bubble":te.default,"themes/snow":le.default,"ui/icons":J.default,"ui/picker":de.default,"ui/icon-picker":Oe.default,"ui/color-picker":ve.default,"ui/tooltip":Me.default},!0),o.default=l.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var r=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),_}}(),l=function m(_,y,g){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,y);if(w===void 0){var v=Object.getPrototypeOf(_);return v===null?void 0:m(v,y,g)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(g)}},s=a(0),u=c(s);function c(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 d(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){d(_,m);function _(){return p(this,_),f(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return r(_,[{key:"add",value:function(g,w){if(w==="+1"||w==="-1"){var v=this.value(g)||0;w=w==="+1"?v+1:v-1}return w===0?(this.remove(g),!0):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"add",this).call(this,g,w)}},{key:"canAdd",value:function(g,w){return l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,w)||l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,g,parseInt(w))}},{key:"value",value:function(g){return parseInt(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,g))||void 0}}]),_}(u.default.Attributor.Class),b=new h("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=b},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(4),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){p(h,d);function h(){return u(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(l.default);f.blotName="blockquote",f.tagName="blockquote",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function h(b,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(b,y.key,y)}}return function(b,m,_){return m&&h(b.prototype,m),_&&h(b,_),b}}(),l=a(4),s=u(l);function u(h){return h&&h.__esModule?h:{default:h}}function c(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function p(h,b){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:h}function f(h,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);h.prototype=Object.create(b&&b.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(h,b):h.__proto__=b)}var d=function(h){f(b,h);function b(){return c(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,null,[{key:"formats",value:function(_){return this.tagName.indexOf(_.tagName)+1}}]),b}(s.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],o.default=d},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var r=function(){function v(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&&v(k.prototype,T),S&&v(k,S),k}}(),l=function v(k,T,S){k===null&&(k=Function.prototype);var x=Object.getOwnPropertyDescriptor(k,T);if(x===void 0){var B=Object.getPrototypeOf(k);return B===null?void 0:v(B,T,S)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(S)}},s=a(0),u=h(s),c=a(4),p=h(c),f=a(25),d=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function b(v,k,T){return k in v?Object.defineProperty(v,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[k]=T,v}function m(v,k){if(!(v instanceof k))throw new TypeError("Cannot call a class as a function")}function _(v,k){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:v}function y(v,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);v.prototype=Object.create(k&&k.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(v,k):v.__proto__=k)}var g=function(v){y(k,v);function k(){return m(this,k),_(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"format",value:function(S,x){S===w.blotName&&!x?this.replaceWith(u.default.create(this.statics.scope)):l(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():l(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(),l(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:l(k.__proto__||Object.getPrototypeOf(k),"formats",this).call(this,S)}}]),k}(p.default);g.blotName="list-item",g.tagName="LI";var w=function(v){y(k,v),r(k,null,[{key:"create",value:function(S){var x=S==="ordered"?"OL":"UL",B=l(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,x);return(S==="checked"||S==="unchecked")&&B.setAttribute("data-checked",S==="checked"),B}},{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 r(k,[{key:"format",value:function(S,x){this.children.length>0&&this.children.tail.format(S,x)}},{key:"formats",value:function(){return b({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,x){if(S instanceof g)l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,S,x);else{var B=x==null?this.length():x.offset(this),E=this.split(B);E.parent.insertBefore(S,E)}}},{key:"optimize",value:function(S){l(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)}l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,S)}}]),k}(d.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 r=a(56),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){p(h,d);function h(){return u(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(l.default);f.blotName="italic",f.tagName=["EM","I"],o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(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 _&&b(m.prototype,_),y&&b(m,y),m}}(),l=function b(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:b(w,_,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},s=a(6),u=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);function m(){return p(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):l(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 r=a(6),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){p(h,d);function h(){return u(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(l.default);f.blotName="strike",f.tagName="S",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(6),l=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function c(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){p(h,d);function h(){return u(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(l.default);f.blotName="underline",f.tagName="U",o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(y,g){for(var w=0;w<g.length;w++){var v=g[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),l=function _(y,g,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(w)}},s=a(0),u=p(s),c=a(27);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function d(_,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 b=["alt","height","width"],m=function(_){h(y,_);function y(){return f(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(w,v){b.indexOf(w)>-1?v?this.domNode.setAttribute(w,v):this.domNode.removeAttribute(w):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,v)}}],[{key:"create",value:function(w){var v=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return typeof w=="string"&&v.setAttribute("src",this.sanitize(w)),v}},{key:"formats",value:function(w){return b.reduce(function(v,k){return w.hasAttribute(k)&&(v[k]=w.getAttribute(k)),v},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,c.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 r=function(){function _(y,g){for(var w=0;w<g.length;w++){var v=g[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,w){return g&&_(y.prototype,g),w&&_(y,w),y}}(),l=function _(y,g,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:_(k,g,w)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(w)}},s=a(4),u=a(27),c=p(u);function p(_){return _&&_.__esModule?_:{default:_}}function f(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function d(_,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 b=["height","width"],m=function(_){h(y,_);function y(){return f(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(w,v){b.indexOf(w)>-1?v?this.domNode.setAttribute(w,v):this.domNode.removeAttribute(w):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,v)}}],[{key:"create",value:function(w){var v=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return v.setAttribute("frameborder","0"),v.setAttribute("allowfullscreen",!0),v.setAttribute("src",this.sanitize(w)),v}},{key:"formats",value:function(w){return b.reduce(function(v,k){return w.hasAttribute(k)&&(v[k]=w.getAttribute(k)),v},{})}},{key:"sanitize",value:function(w){return c.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(s.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 r=function(){function w(v,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(v,S.key,S)}}return function(v,k,T){return k&&w(v.prototype,k),T&&w(v,T),v}}(),l=function w(v,k,T){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,k);if(S===void 0){var x=Object.getPrototypeOf(v);return x===null?void 0:w(x,k,T)}else{if("value"in S)return S.value;var B=S.get;return B===void 0?void 0:B.call(T)}},s=a(35),u=h(s),c=a(5),p=h(c),f=a(9),d=h(f);function h(w){return w&&w.__esModule?w:{default:w}}function b(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function m(w,v){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:w}function _(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(w,v):w.__proto__=v)}var y=function(w){_(v,w);function v(){return b(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"create",value:function(T){var S=l(v.__proto__||Object.getPrototypeOf(v),"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")}}]),v}(u.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=function(w){_(v,w),r(v,null,[{key:"register",value:function(){p.default.register(y,!0)}}]);function v(){b(this,v);var k=m(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return k}return v}(d.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 r=function(){function T(S,x){for(var B=0;B<x.length;B++){var E=x[B];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,x,B){return x&&T(S.prototype,x),B&&T(S,B),S}}(),l=function T(S,x,B){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,B)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(B)}},s=a(0),u=m(s),c=a(5),p=m(c),f=a(9),d=m(f),h=a(13),b=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 r(S,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),S}(b.default);w.className="ql-syntax";var v=new u.default.Attributor.Class("token","hljs",{scope:u.default.Scope.INLINE}),k=function(T){g(S,T),r(S,null,[{key:"register",value:function(){p.default.register(v,!0),p.default.register(w,!0)}}]);function S(x,B){_(this,S);var E=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,B));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 r(S,[{key:"highlight",value:function(){var B=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(B.options.highlight)}),this.quill.update(p.default.sources.SILENT),E!=null&&this.quill.setSelection(E,p.default.sources.SILENT)}}}]),S}(d.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=v,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 r=function S(x,B,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,B);if(C===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:S(O,B,E)}else{if("value"in C)return C.value;var N=C.get;return N===void 0?void 0:N.call(E)}},l=function(){function S(x,B){for(var E=0;E<B.length;E++){var C=B[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,B,E){return B&&S(x.prototype,B),E&&S(x,E),x}}(),s=a(3),u=_(s),c=a(8),p=_(c),f=a(43),d=_(f),h=a(15),b=a(41),m=_(b);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 v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],k=function(S){w(x,S);function x(B,E){y(this,x),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=v);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,B,E));return C.quill.container.classList.add("ql-bubble"),C}return l(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}(d.default);k.DEFAULTS=(0,u.default)(!0,{},d.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(B,E){y(this,x);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,B,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 l(x,[{key:"listen",value:function(){var E=this;r(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=r(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 S1=$a.exports;const mt=Cn(S1);var $t=-1,vt=1,at=0;function Dn(t,n,e,o){if(t===n)return t?[[at,t]]:[];if(e!=null){var a=D1(t,n,e);if(a)return a}var r=fi(t,n),l=t.substring(0,r);t=t.substring(r),n=n.substring(r),r=hi(t,n);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),n=n.substring(0,n.length-r);var u=x1(t,n);return l&&u.unshift([at,l]),s&&u.push([at,s]),ka(u,o),u}function x1(t,n){var e;if(!t)return[[vt,n]];if(!n)return[[$t,t]];var o=t.length>n.length?t:n,a=t.length>n.length?n:t,r=o.indexOf(a);if(r!==-1)return e=[[vt,o.substring(0,r)],[at,a],[vt,o.substring(r+a.length)]],t.length>n.length&&(e[0][0]=e[2][0]=$t),e;if(a.length===1)return[[$t,t],[vt,n]];var l=N1(t,n);if(l){var s=l[0],u=l[1],c=l[2],p=l[3],f=l[4],d=Dn(s,c),h=Dn(u,p);return d.concat([[at,f]],h)}return T1(t,n)}function T1(t,n){for(var e=t.length,o=n.length,a=Math.ceil((e+o)/2),r=a,l=2*a,s=new Array(l),u=new Array(l),c=0;c<l;c++)s[c]=-1,u[c]=-1;s[r+1]=0,u[r+1]=0;for(var p=e-o,f=p%2!==0,d=0,h=0,b=0,m=0,_=0;_<a;_++){for(var y=-_+d;y<=_-h;y+=2){var g=r+y,w;y===-_||y!==_&&s[g-1]<s[g+1]?w=s[g+1]:w=s[g-1]+1;for(var v=w-y;w<e&&v<o&&t.charAt(w)===n.charAt(v);)w++,v++;if(s[g]=w,w>e)h+=2;else if(v>o)d+=2;else if(f){var k=r+p-y;if(k>=0&&k<l&&u[k]!==-1){var T=e-u[k];if(w>=T)return wa(t,n,w,v)}}}for(var S=-_+b;S<=_-m;S+=2){var k=r+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)b+=2;else if(!f){var g=r+p-S;if(g>=0&&g<l&&s[g]!==-1){var w=s[g],v=r+w-g;if(T=e-T,w>=T)return wa(t,n,w,v)}}}}return[[$t,t],[vt,n]]}function wa(t,n,e,o){var a=t.substring(0,e),r=n.substring(0,o),l=t.substring(e),s=n.substring(o),u=Dn(a,r),c=Dn(l,s);return u.concat(c)}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,r=0;e<a;)t.substring(r,a)==n.substring(r,a)?(e=a,r=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,r=0;e<a;)t.substring(t.length-a,t.length-r)==n.substring(n.length-a,n.length-r)?(e=a,r=e):o=a,a=Math.floor((o-e)/2+e);return Oa(t.charCodeAt(t.length-a))&&a--,a}function N1(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,b,m){for(var _=h.substring(m,m+Math.floor(h.length/4)),y=-1,g="",w,v,k,T;(y=b.indexOf(_,y+1))!==-1;){var S=fi(h.substring(m),b.substring(y)),x=hi(h.substring(0,m),b.substring(0,y));g.length<x+S&&(g=b.substring(y-x,y)+b.substring(y,y+S),w=h.substring(0,m-x),v=h.substring(m+S),k=b.substring(0,y-x),T=b.substring(y+S))}return g.length*2>=h.length?[w,v,k,T,g]:null}var r=a(e,o,Math.ceil(e.length/4)),l=a(e,o,Math.ceil(e.length/2)),s;if(!r&&!l)return null;l?r?s=r[4].length>l[4].length?r:l:s=l:s=r;var u,c,p,f;t.length>n.length?(u=s[0],c=s[1],p=s[2],f=s[3]):(p=s[0],f=s[1],u=s[2],c=s[3]);var d=s[4];return[u,c,p,f,d]}function ka(t,n){t.push([at,""]);for(var e=0,o=0,a=0,r="",l="",s;e<t.length;){if(e<t.length-1&&!t[e][1]){t.splice(e,1);continue}switch(t[e][0]){case vt:a++,l+=t[e][1],e++;break;case $t:o++,r+=t[e][1],e++;break;case at:var u=e-a-o-1;if(n){if(u>=0&&Sa(t[u][1])){var c=t[u][1].slice(-1);if(t[u][1]=t[u][1].slice(0,-1),r=c+r,l=c+l,!t[u][1]){t.splice(u,1),e--;var p=u-1;t[p]&&t[p][0]===vt&&(a++,l=t[p][1]+l,p--),t[p]&&t[p][0]===$t&&(o++,r=t[p][1]+r,p--),u=p}}if(Ea(t[e][1])){var c=t[e][1].charAt(0);t[e][1]=t[e][1].slice(1),r+=c,l+=c}}if(e<t.length-1&&!t[e][1]){t.splice(e,1);break}if(r.length>0||l.length>0){r.length>0&&l.length>0&&(s=fi(l,r),s!==0&&(u>=0?t[u][1]+=l.substring(0,s):(t.splice(0,0,[at,l.substring(0,s)]),e++),l=l.substring(s),r=r.substring(s)),s=hi(l,r),s!==0&&(t[e][1]=l.substring(l.length-s)+t[e][1],l=l.substring(0,l.length-s),r=r.substring(0,r.length-s)));var f=a+o;r.length===0&&l.length===0?(t.splice(e-f,f),e=e-f):r.length===0?(t.splice(e-f,f,[vt,l]),e=e-f+1):l.length===0?(t.splice(e-f,f,[$t,r]),e=e-f+1):(t.splice(e-f,f,[$t,r],[vt,l]),e=e-f+2)}e!==0&&t[e-1][0]===at?(t[e-1][1]+=t[e][1],t.splice(e,1)):e++,a=0,o=0,r="",l="";break}}t[t.length-1][1]===""&&t.pop();var d=!1;for(e=1;e<t.length-1;)t[e-1][0]===at&&t[e+1][0]===at&&(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),d=!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),d=!0)),e++;d&&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 A1(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:A1([[at,t],[$t,n],[vt,e],[at,o]])}function D1(t,n,e){var o=typeof e=="number"?{index:e,length:0}:e.oldRange,a=typeof e=="number"?null:e.newRange,r=t.length,l=n.length;if(o.length===0&&(a===null||a.length===0)){var s=o.index,u=t.slice(0,s),c=t.slice(s),p=a?a.index:null;e:{var f=s+l-r;if(p!==null&&p!==f||f<0||f>l)break e;var d=n.slice(0,f),h=n.slice(f);if(h!==c)break e;var b=Math.min(s,f),m=u.slice(0,b),_=d.slice(0,b);if(m!==_)break e;var y=u.slice(b),g=d.slice(b);return pi(m,y,g,c)}e:{if(p!==null&&p!==s)break e;var w=s,d=n.slice(0,w),h=n.slice(w);if(d!==u)break e;var v=Math.min(r-w,l-w),k=c.slice(c.length-v),T=h.slice(h.length-v);if(k!==T)break e;var y=c.slice(0,c.length-v),g=h.slice(0,h.length-v);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),b=m.length,v=k.length;if(l<b+v)break e;var _=n.slice(0,b),T=n.slice(l-v);if(m!==_||k!==T)break e;var y=t.slice(b,r-v),g=n.slice(b,l-v);return pi(m,y,g,k)}return null}function mr(t,n,e){return Dn(t,n,e,!0)}mr.INSERT=vt,mr.DELETE=$t,mr.EQUAL=at;var I1=mr,gr={exports:{}};gr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",l="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",p="[object Function]",f="[object GeneratorFunction]",d="[object Map]",h="[object Number]",b="[object Object]",m="[object Promise]",_="[object RegExp]",y="[object Set]",g="[object String]",w="[object Symbol]",v="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",x="[object Float64Array]",B="[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[r]=V[l]=V[k]=V[T]=V[s]=V[u]=V[S]=V[x]=V[B]=V[E]=V[C]=V[d]=V[h]=V[b]=V[_]=V[y]=V[g]=V[w]=V[O]=V[N]=V[R]=V[q]=!0,V[c]=V[p]=V[v]=!1;var D=typeof Re=="object"&&Re&&Re.Object===Object&&Re,A=typeof self=="object"&&self&&self.Object===Object&&self,P=D||A||Function("return this")(),U=n&&!n.nodeType&&n,F=U&&!0&&t&&!t.nodeType&&t,L=F&&F.exports===U;function z($,I){return $.set(I[0],I[1]),$}function Z($,I){return $.add(I),$}function J($,I){for(var H=-1,ee=$?$.length:0;++H<ee&&I($[H],H,$)!==!1;);return $}function ne($,I){for(var H=-1,ee=I.length,we=$.length;++H<ee;)$[we+H]=I[H];return $}function de($,I,H,ee){var we=-1,fe=$?$.length:0;for(ee&&fe&&(H=$[++we]);++we<fe;)H=I(H,$[we],we,$);return H}function he($,I){for(var H=-1,ee=Array($);++H<$;)ee[H]=I(H);return ee}function ve($,I){return $==null?void 0:$[I]}function ke($){var I=!1;if($!=null&&typeof $.toString!="function")try{I=!!($+"")}catch{}return I}function Oe($){var I=-1,H=Array($.size);return $.forEach(function(ee,we){H[++I]=[we,ee]}),H}function Le($,I){return function(H){return $(I(H))}}function Me($){var I=-1,H=Array($.size);return $.forEach(function(ee){H[++I]=ee}),H}var Q=Array.prototype,te=Function.prototype,ae=Object.prototype,le=P["__core-js_shared__"],ie=function(){var $=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),$e=te.toString,me=ae.hasOwnProperty,be=ae.toString,He=RegExp("^"+$e.call(me).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=L?P.Buffer:void 0,Ne=P.Symbol,wt=P.Uint8Array,Ee=Le(Object.getPrototypeOf,Object),nt=Object.create,Zt=ae.propertyIsEnumerable,Mn=Q.splice,Jt=Object.getOwnPropertySymbols,De=Ve?Ve.isBuffer:void 0,zt=Le(Object.keys,Object),kt=bt(P,"DataView"),It=bt(P,"Map"),Ye=bt(P,"Promise"),Ct=bt(P,"Set"),rt=bt(P,"WeakMap"),Pt=bt(Object,"create"),Xt=it(kt),M=it(It),j=it(Ye),G=it(Ct),X=it(rt),oe=Ne?Ne.prototype:void 0,se=oe?oe.valueOf:void 0;function ye($){var I=-1,H=$?$.length:0;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function ue(){this.__data__=Pt?Pt(null):{}}function Ce($){return this.has($)&&delete this.__data__[$]}function ce($){var I=this.__data__;if(Pt){var H=I[$];return H===o?void 0:H}return me.call(I,$)?I[$]:void 0}function ge($){var I=this.__data__;return Pt?I[$]!==void 0:me.call(I,$)}function xe($,I){var H=this.__data__;return H[$]=Pt&&I===void 0?o:I,this}ye.prototype.clear=ue,ye.prototype.delete=Ce,ye.prototype.get=ce,ye.prototype.has=ge,ye.prototype.set=xe;function Pe($){var I=-1,H=$?$.length:0;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function Ke(){this.__data__=[]}function Mt($){var I=this.__data__,H=hn(I,$);if(H<0)return!1;var ee=I.length-1;return H==ee?I.pop():Mn.call(I,H,1),!0}function Ot($){var I=this.__data__,H=hn(I,$);return H<0?void 0:I[H][1]}function Bn($){return hn(this.__data__,$)>-1}function Qt($,I){var H=this.__data__,ee=hn(H,$);return ee<0?H.push([$,I]):H[ee][1]=I,this}Pe.prototype.clear=Ke,Pe.prototype.delete=Mt,Pe.prototype.get=Ot,Pe.prototype.has=Bn,Pe.prototype.set=Qt;function ze($){var I=-1,H=$?$.length:0;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function Ln(){this.__data__={hash:new ye,map:new(It||Pe),string:new ye}}function Rn($){return tn(this,$).delete($)}function jn($){return tn(this,$).get($)}function Vn($){return tn(this,$).has($)}function qn($,I){return tn(this,$).set($,I),this}ze.prototype.clear=Ln,ze.prototype.delete=Rn,ze.prototype.get=jn,ze.prototype.has=Vn,ze.prototype.set=qn;function Ze($){this.__data__=new Pe($)}function Fn(){this.__data__=new Pe}function bi($){return this.__data__.delete($)}function _i($){return this.__data__.get($)}function $i($){return this.__data__.has($)}function wi($,I){var H=this.__data__;if(H instanceof Pe){var ee=H.__data__;if(!It||ee.length<e-1)return ee.push([$,I]),this;H=this.__data__=new ze(ee)}return H.set($,I),this}Ze.prototype.clear=Fn,Ze.prototype.delete=bi,Ze.prototype.get=_i,Ze.prototype.has=$i,Ze.prototype.set=wi;function fn($,I){var H=Kn($)||mn($)?he($.length,String):[],ee=H.length,we=!!ee;for(var fe in $)(I||me.call($,fe))&&!(we&&(fe=="length"||Bi(fe,ee)))&&H.push(fe);return H}function wr($,I,H){var ee=$[I];(!(me.call($,I)&&Sr(ee,H))||H===void 0&&!(I in $))&&($[I]=H)}function hn($,I){for(var H=$.length;H--;)if(Sr($[H][0],I))return H;return-1}function Et($,I){return $&&Un(I,Wn(I),$)}function Hn($,I,H,ee,we,fe,Se){var Te;if(ee&&(Te=fe?ee($,we,fe,Se):ee($)),Te!==void 0)return Te;if(!xt($))return $;var qe=Kn($);if(qe){if(Te=Pi($),!I)return Ai($,Te)}else{var Ie=Lt($),Je=Ie==p||Ie==f;if(xr($))return pn($,I);if(Ie==b||Ie==r||Je&&!fe){if(ke($))return fe?$:{};if(Te=St(Je?{}:$),!I)return Di($,Et(Te,$))}else{if(!V[Ie])return fe?$:{};Te=Mi($,Ie,Hn,I)}}Se||(Se=new Ze);var st=Se.get($);if(st)return st;if(Se.set($,Te),!qe)var Fe=H?Ii($):Wn($);return J(Fe||$,function(Xe,Ge){Fe&&(Ge=Xe,Xe=$[Ge]),wr(Te,Ge,Hn(Xe,I,H,ee,Ge,$,Se))}),Te}function ki($){return xt($)?nt($):{}}function Ci($,I,H){var ee=I($);return Kn($)?ee:ne(ee,H($))}function Oi($){return be.call($)}function Ei($){if(!xt($)||Ri($))return!1;var I=Gn($)||ke($)?He:re;return I.test(it($))}function Si($){if(!Or($))return zt($);var I=[];for(var H in Object($))me.call($,H)&&H!="constructor"&&I.push(H);return I}function pn($,I){if(I)return $.slice();var H=new $.constructor($.length);return $.copy(H),H}function zn($){var I=new $.constructor($.byteLength);return new wt(I).set(new wt($)),I}function en($,I){var H=I?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.byteLength)}function kr($,I,H){var ee=I?H(Oe($),!0):Oe($);return de(ee,z,new $.constructor)}function Cr($){var I=new $.constructor($.source,Y.exec($));return I.lastIndex=$.lastIndex,I}function xi($,I,H){var ee=I?H(Me($),!0):Me($);return de(ee,Z,new $.constructor)}function Ti($){return se?Object(se.call($)):{}}function Ni($,I){var H=I?zn($.buffer):$.buffer;return new $.constructor(H,$.byteOffset,$.length)}function Ai($,I){var H=-1,ee=$.length;for(I||(I=Array(ee));++H<ee;)I[H]=$[H];return I}function Un($,I,H,ee){H||(H={});for(var we=-1,fe=I.length;++we<fe;){var Se=I[we],Te=ee?ee(H[Se],$[Se],Se,H,$):void 0;wr(H,Se,Te===void 0?$[Se]:Te)}return H}function Di($,I){return Un($,Bt($),I)}function Ii($){return Ci($,Wn,Bt)}function tn($,I){var H=$.__data__;return Li(I)?H[typeof I=="string"?"string":"hash"]:H.map}function bt($,I){var H=ve($,I);return Ei(H)?H:void 0}var Bt=Jt?Le(Jt,Object):Vi,Lt=Oi;(kt&&Lt(new kt(new ArrayBuffer(1)))!=T||It&&Lt(new It)!=d||Ye&&Lt(Ye.resolve())!=m||Ct&&Lt(new Ct)!=y||rt&&Lt(new rt)!=v)&&(Lt=function($){var I=be.call($),H=I==b?$.constructor:void 0,ee=H?it(H):void 0;if(ee)switch(ee){case Xt:return T;case M:return d;case j:return m;case G:return y;case X:return v}return I});function Pi($){var I=$.length,H=$.constructor(I);return I&&typeof $[0]=="string"&&me.call($,"index")&&(H.index=$.index,H.input=$.input),H}function St($){return typeof $.constructor=="function"&&!Or($)?ki(Ee($)):{}}function Mi($,I,H,ee){var we=$.constructor;switch(I){case k:return zn($);case s:case u:return new we(+$);case T:return en($,ee);case S:case x:case B:case E:case C:case O:case N:case R:case q:return Ni($,ee);case d: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 Bi($,I){return I=I??a,!!I&&(typeof $=="number"||K.test($))&&$>-1&&$%1==0&&$<I}function Li($){var I=typeof $;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?$!=="__proto__":$===null}function Ri($){return!!ie&&ie in $}function Or($){var I=$&&$.constructor,H=typeof I=="function"&&I.prototype||ae;return $===H}function it($){if($!=null){try{return $e.call($)}catch{}try{return $+""}catch{}}return""}function Er($){return Hn($,!0,!0)}function Sr($,I){return $===I||$!==$&&I!==I}function mn($){return ji($)&&me.call($,"callee")&&(!Zt.call($,"callee")||be.call($)==r)}var Kn=Array.isArray;function gn($){return $!=null&&Tr($.length)&&!Gn($)}function ji($){return Nr($)&&gn($)}var xr=De||qi;function Gn($){var I=xt($)?be.call($):"";return I==p||I==f}function Tr($){return typeof $=="number"&&$>-1&&$%1==0&&$<=a}function xt($){var I=typeof $;return!!$&&(I=="object"||I=="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,r=2,l=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",b="[object GeneratorFunction]",m="[object Map]",_="[object Number]",y="[object Null]",g="[object Object]",w="[object Promise]",v="[object Proxy]",k="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",B="[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,P=/^\[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[s]=F[u]=F[C]=F[p]=F[O]=F[f]=F[d]=F[h]=F[m]=F[_]=F[g]=F[k]=F[T]=F[S]=F[E]=!1;var L=typeof Re=="object"&&Re&&Re.Object===Object&&Re,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,de=ne&&ne.exports===J,he=de&&L.process,ve=function(){try{return he&&he.binding&&he.binding("util")}catch{}}(),ke=ve&&ve.isTypedArray;function Oe($,I){for(var H=-1,ee=$==null?0:$.length,we=0,fe=[];++H<ee;){var Se=$[H];I(Se,H,$)&&(fe[we++]=Se)}return fe}function Le($,I){for(var H=-1,ee=I.length,we=$.length;++H<ee;)$[we+H]=I[H];return $}function Me($,I){for(var H=-1,ee=$==null?0:$.length;++H<ee;)if(I($[H],H,$))return!0;return!1}function Q($,I){for(var H=-1,ee=Array($);++H<$;)ee[H]=I(H);return ee}function te($){return function(I){return $(I)}}function ae($,I){return $.has(I)}function le($,I){return $==null?void 0:$[I]}function ie($){var I=-1,H=Array($.size);return $.forEach(function(ee,we){H[++I]=[we,ee]}),H}function $e($,I){return function(H){return $(I(H))}}function me($){var I=-1,H=Array($.size);return $.forEach(function(ee){H[++I]=ee}),H}var be=Array.prototype,He=Function.prototype,Ve=Object.prototype,Ne=Z["__core-js_shared__"],wt=He.toString,Ee=Ve.hasOwnProperty,nt=function(){var $=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Zt=Ve.toString,Mn=RegExp("^"+wt.call(Ee).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=de?Z.Buffer:void 0,De=Z.Symbol,zt=Z.Uint8Array,kt=Ve.propertyIsEnumerable,It=be.splice,Ye=De?De.toStringTag:void 0,Ct=Object.getOwnPropertySymbols,rt=Jt?Jt.isBuffer:void 0,Pt=$e(Object.keys,Object),Xt=Bt(Z,"DataView"),M=Bt(Z,"Map"),j=Bt(Z,"Promise"),G=Bt(Z,"Set"),X=Bt(Z,"WeakMap"),oe=Bt(Object,"create"),se=it(Xt),ye=it(M),ue=it(j),Ce=it(G),ce=it(X),ge=De?De.prototype:void 0,xe=ge?ge.valueOf:void 0;function Pe($){var I=-1,H=$==null?0:$.length;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function Ke(){this.__data__=oe?oe(null):{},this.size=0}function Mt($){var I=this.has($)&&delete this.__data__[$];return this.size-=I?1:0,I}function Ot($){var I=this.__data__;if(oe){var H=I[$];return H===o?void 0:H}return Ee.call(I,$)?I[$]:void 0}function Bn($){var I=this.__data__;return oe?I[$]!==void 0:Ee.call(I,$)}function Qt($,I){var H=this.__data__;return this.size+=this.has($)?0:1,H[$]=oe&&I===void 0?o:I,this}Pe.prototype.clear=Ke,Pe.prototype.delete=Mt,Pe.prototype.get=Ot,Pe.prototype.has=Bn,Pe.prototype.set=Qt;function ze($){var I=-1,H=$==null?0:$.length;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function Ln(){this.__data__=[],this.size=0}function Rn($){var I=this.__data__,H=pn(I,$);if(H<0)return!1;var ee=I.length-1;return H==ee?I.pop():It.call(I,H,1),--this.size,!0}function jn($){var I=this.__data__,H=pn(I,$);return H<0?void 0:I[H][1]}function Vn($){return pn(this.__data__,$)>-1}function qn($,I){var H=this.__data__,ee=pn(H,$);return ee<0?(++this.size,H.push([$,I])):H[ee][1]=I,this}ze.prototype.clear=Ln,ze.prototype.delete=Rn,ze.prototype.get=jn,ze.prototype.has=Vn,ze.prototype.set=qn;function Ze($){var I=-1,H=$==null?0:$.length;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function Fn(){this.size=0,this.__data__={hash:new Pe,map:new(M||ze),string:new Pe}}function bi($){var I=bt(this,$).delete($);return this.size-=I?1:0,I}function _i($){return bt(this,$).get($)}function $i($){return bt(this,$).has($)}function wi($,I){var H=bt(this,$),ee=H.size;return H.set($,I),this.size+=H.size==ee?0:1,this}Ze.prototype.clear=Fn,Ze.prototype.delete=bi,Ze.prototype.get=_i,Ze.prototype.has=$i,Ze.prototype.set=wi;function fn($){var I=-1,H=$==null?0:$.length;for(this.__data__=new Ze;++I<H;)this.add($[I])}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 I=this.__data__=new ze($);this.size=I.size}function Hn(){this.__data__=new ze,this.size=0}function ki($){var I=this.__data__,H=I.delete($);return this.size=I.size,H}function Ci($){return this.__data__.get($)}function Oi($){return this.__data__.has($)}function Ei($,I){var H=this.__data__;if(H instanceof ze){var ee=H.__data__;if(!M||ee.length<e-1)return ee.push([$,I]),this.size=++H.size,this;H=this.__data__=new Ze(ee)}return H.set($,I),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($,I){var H=mn($),ee=!H&&Sr($),we=!H&&!ee&&gn($),fe=!H&&!ee&&!we&&Nr($),Se=H||ee||we||fe,Te=Se?Q($.length,String):[],qe=Te.length;for(var Ie in $)(I||Ee.call($,Ie))&&!(Se&&(Ie=="length"||we&&(Ie=="offset"||Ie=="parent")||fe&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Mi(Ie,qe)))&&Te.push(Ie);return Te}function pn($,I){for(var H=$.length;H--;)if(Er($[H][0],I))return H;return-1}function zn($,I,H){var ee=I($);return mn($)?ee:Le(ee,H($))}function en($){return $==null?$===void 0?B:y:Ye&&Ye in Object($)?Lt($):Or($)}function kr($){return xt($)&&en($)==s}function Cr($,I,H,ee,we){return $===I?!0:$==null||I==null||!xt($)&&!xt(I)?$!==$&&I!==I:xi($,I,H,ee,Cr,we)}function xi($,I,H,ee,we,fe){var Se=mn($),Te=mn(I),qe=Se?u:St($),Ie=Te?u:St(I);qe=qe==s?g:qe,Ie=Ie==s?g:Ie;var Je=qe==g,st=Ie==g,Fe=qe==Ie;if(Fe&&gn($)){if(!gn(I))return!1;Se=!0,Je=!1}if(Fe&&!Je)return fe||(fe=new Et),Se||Nr($)?Un($,I,H,ee,we,fe):Di($,I,qe,H,ee,we,fe);if(!(H&a)){var Xe=Je&&Ee.call($,"__wrapped__"),Ge=st&&Ee.call(I,"__wrapped__");if(Xe||Ge){var Ut=Xe?$.value():$,Rt=Ge?I.value():I;return fe||(fe=new Et),we(Ut,Rt,H,ee,fe)}}return Fe?(fe||(fe=new Et),Ii($,I,H,ee,we,fe)):!1}function Ti($){if(!Tr($)||Li($))return!1;var I=xr($)?Mn:P;return I.test(it($))}function Ni($){return xt($)&&Gn($.length)&&!!F[en($)]}function Ai($){if(!Ri($))return Pt($);var I=[];for(var H in Object($))Ee.call($,H)&&H!="constructor"&&I.push(H);return I}function Un($,I,H,ee,we,fe){var Se=H&a,Te=$.length,qe=I.length;if(Te!=qe&&!(Se&&qe>Te))return!1;var Ie=fe.get($);if(Ie&&fe.get(I))return Ie==I;var Je=-1,st=!0,Fe=H&r?new fn:void 0;for(fe.set($,I),fe.set(I,$);++Je<Te;){var Xe=$[Je],Ge=I[Je];if(ee)var Ut=Se?ee(Ge,Xe,Je,I,$,fe):ee(Xe,Ge,Je,$,I,fe);if(Ut!==void 0){if(Ut)continue;st=!1;break}if(Fe){if(!Me(I,function(Rt,nn){if(!ae(Fe,nn)&&(Xe===Rt||we(Xe,Rt,H,ee,fe)))return Fe.push(nn)})){st=!1;break}}else if(!(Xe===Ge||we(Xe,Ge,H,ee,fe))){st=!1;break}}return fe.delete($),fe.delete(I),st}function Di($,I,H,ee,we,fe,Se){switch(H){case O:if($.byteLength!=I.byteLength||$.byteOffset!=I.byteOffset)return!1;$=$.buffer,I=I.buffer;case C:return!($.byteLength!=I.byteLength||!fe(new zt($),new zt(I)));case p:case f:case _:return Er(+$,+I);case d:return $.name==I.name&&$.message==I.message;case k:case S:return $==I+"";case m:var Te=ie;case T:var qe=ee&a;if(Te||(Te=me),$.size!=I.size&&!qe)return!1;var Ie=Se.get($);if(Ie)return Ie==I;ee|=r,Se.set($,I);var Je=Un(Te($),Te(I),ee,we,fe,Se);return Se.delete($),Je;case x:if(xe)return xe.call($)==xe.call(I)}return!1}function Ii($,I,H,ee,we,fe){var Se=H&a,Te=tn($),qe=Te.length,Ie=tn(I),Je=Ie.length;if(qe!=Je&&!Se)return!1;for(var st=qe;st--;){var Fe=Te[st];if(!(Se?Fe in I:Ee.call(I,Fe)))return!1}var Xe=fe.get($);if(Xe&&fe.get(I))return Xe==I;var Ge=!0;fe.set($,I),fe.set(I,$);for(var Ut=Se;++st<qe;){Fe=Te[st];var Rt=$[Fe],nn=I[Fe];if(ee)var ja=Se?ee(nn,Rt,Fe,I,$,fe):ee(Rt,nn,Fe,$,I,fe);if(!(ja===void 0?Rt===nn||we(Rt,nn,H,ee,fe):ja)){Ge=!1;break}Ut||(Ut=Fe=="constructor")}if(Ge&&!Ut){var Ar=$.constructor,Dr=I.constructor;Ar!=Dr&&"constructor"in $&&"constructor"in I&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof Dr=="function"&&Dr instanceof Dr)&&(Ge=!1)}return fe.delete($),fe.delete(I),Ge}function tn($){return zn($,Wn,Pi)}function bt($,I){var H=$.__data__;return Bi(I)?H[typeof I=="string"?"string":"hash"]:H.map}function Bt($,I){var H=le($,I);return Ti(H)?H:void 0}function Lt($){var I=Ee.call($,Ye),H=$[Ye];try{$[Ye]=void 0;var ee=!0}catch{}var we=Zt.call($);return ee&&(I?$[Ye]=H:delete $[Ye]),we}var Pi=Ct?function($){return $==null?[]:($=Object($),Oe(Ct($),function(I){return kt.call($,I)}))}:Vi,St=en;(Xt&&St(new Xt(new ArrayBuffer(1)))!=O||M&&St(new M)!=m||j&&St(j.resolve())!=w||G&&St(new G)!=T||X&&St(new X)!=E)&&(St=function($){var I=en($),H=I==g?$.constructor:void 0,ee=H?it(H):"";if(ee)switch(ee){case se:return O;case ye:return m;case ue:return w;case Ce:return T;case ce:return E}return I});function Mi($,I){return I=I??l,!!I&&(typeof $=="number"||U.test($))&&$>-1&&$%1==0&&$<I}function Bi($){var I=typeof $;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?$!=="__proto__":$===null}function Li($){return!!nt&&nt in $}function Ri($){var I=$&&$.constructor,H=typeof I=="function"&&I.prototype||Ve;return $===H}function Or($){return Zt.call($)}function it($){if($!=null){try{return wt.call($)}catch{}try{return $+""}catch{}}return""}function Er($,I){return $===I||$!==$&&I!==I}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=rt||qi;function ji($,I){return Cr($,I)}function xr($){if(!Tr($))return!1;var I=en($);return I==h||I==b||I==c||I==v}function Gn($){return typeof $=="number"&&$>-1&&$%1==0&&$<=l}function Tr($){var I=typeof $;return $!=null&&(I=="object"||I=="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=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mi,"__esModule",{value:!0});var P1=Na(xa),M1=Na(Ta),gi;(function(t){function n(r,l,s){r===void 0&&(r={}),l===void 0&&(l={}),typeof r!="object"&&(r={}),typeof l!="object"&&(l={});var u=P1.default(l);s||(u=Object.keys(u).reduce(function(p,f){return u[f]!=null&&(p[f]=u[f]),p},{}));for(var c in r)r[c]!==void 0&&l[c]===void 0&&(u[c]=r[c]);return Object.keys(u).length>0?u:void 0}t.compose=n;function e(r,l){r===void 0&&(r={}),l===void 0&&(l={}),typeof r!="object"&&(r={}),typeof l!="object"&&(l={});var s=Object.keys(r).concat(Object.keys(l)).reduce(function(u,c){return M1.default(r[c],l[c])||(u[c]=l[c]===void 0?null:l[c]),u},{});return Object.keys(s).length>0?s:void 0}t.diff=e;function o(r,l){r===void 0&&(r={}),l===void 0&&(l={}),r=r||{};var s=Object.keys(l).reduce(function(u,c){return l[c]!==r[c]&&r[c]!==void 0&&(u[c]=l[c]),u},{});return Object.keys(r).reduce(function(u,c){return r[c]!==l[c]&&l[c]===void 0&&(u[c]=null),u},s)}t.invert=o;function a(r,l,s){if(s===void 0&&(s=!1),typeof r!="object")return l;if(typeof l=="object"){if(!s)return l;var u=Object.keys(l).reduce(function(c,p){return r[p]===void 0&&(c[p]=l[p]),c},{});return Object.keys(u).length>0?u:void 0}}t.transform=a})(gi||(gi={})),mi.default=gi;var vr={},br={},Aa;function B1(){if(Aa)return br;Aa=1;var t=Re&&Re.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(br,"__esModule",{value:!0});var n=t(Ia()),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 r=this.ops[this.index];if(r){var l=this.offset,s=n.default.length(r);if(a>=s-l?(a=s-l,this.index+=1,this.offset=0):this.offset+=a,typeof r.delete=="number")return{delete:a};var u={};return r.attributes&&(u.attributes=r.attributes),typeof r.retain=="number"?u.retain=a:typeof r.insert=="string"?u.insert=r.insert.substr(l,a):u.insert=r.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,r=this.index,l=this.next(),s=this.ops.slice(this.index);return this.offset=a,this.index=r,[l].concat(s)}else return[]},o}();return br.default=e,br}var Da;function Ia(){if(Da)return vr;Da=1;var t=Re&&Re.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(vr,"__esModule",{value:!0});var n=t(B1()),e;return function(o){function a(l){return new n.default(l)}o.iterator=a;function r(l){return typeof l.delete=="number"?l.delete:typeof l.retain=="number"?l.retain:typeof l.insert=="string"?l.insert.length:1}o.length=r}(e||(e={})),vr.default=e,vr}var In=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_r=In(I1),L1=In(xa),yi=In(Ta),Pn=In(mi),Ue=In(Ia()),R1=String.fromCharCode(0),j1=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=L1.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 r=n(a)?e:o;r.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+Ue.default.length(e):e.delete?n-e.delete:n},0)},t.prototype.length=function(){return this.reduce(function(n,e){return n+Ue.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=Ue.default.iterator(this.ops),r=0;r<e&&a.hasNext();){var l=void 0;r<n?l=a.next(n-r):(l=a.next(e-r),o.push(l)),r+=Ue.default.length(l)}return new t(o)},t.prototype.compose=function(n){var e=Ue.default.iterator(this.ops),o=Ue.default.iterator(n.ops),a=[],r=o.peek();if(r!=null&&typeof r.retain=="number"&&r.attributes==null){for(var l=r.retain;e.peekType()==="insert"&&e.peekLength()<=l;)l-=e.peekLength(),a.push(e.next());r.retain-l>0&&o.next(r.retain-l)}for(var s=new t(a);e.hasNext()||o.hasNext();)if(o.peekType()==="insert")s.push(o.next());else if(e.peekType()==="delete")s.push(e.next());else{var u=Math.min(e.peekLength(),o.peekLength()),c=e.next(u),p=o.next(u);if(typeof p.retain=="number"){var f={};typeof c.retain=="number"?f.retain=u:f.insert=c.insert;var d=Pn.default.compose(c.attributes,p.attributes,typeof c.retain=="number");if(d&&(f.attributes=d),s.push(f),!o.hasNext()&&yi.default(s.ops[s.ops.length-1],f)){var h=new t(e.rest());return s.concat(h).chop()}}else typeof p.delete=="number"&&typeof c.retain=="number"&&s.push(p)}return s.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(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:R1;var p=u===n?"on":"with";throw new Error("diff() called "+p+" non-document")}).join("")}),a=new t,r=_r.default(o[0],o[1],e),l=Ue.default.iterator(this.ops),s=Ue.default.iterator(n.ops);return r.forEach(function(u){for(var c=u[1].length;c>0;){var p=0;switch(u[0]){case _r.default.INSERT:p=Math.min(s.peekLength(),c),a.push(s.next(p));break;case _r.default.DELETE:p=Math.min(c,l.peekLength()),l.next(p),a.delete(p);break;case _r.default.EQUAL:p=Math.min(l.peekLength(),s.peekLength(),c);var f=l.next(p),d=s.next(p);yi.default(f.insert,d.insert)?a.retain(p,Pn.default.diff(f.attributes,d.attributes)):a.push(d).delete(p);break}c-=p}}),a.chop()},t.prototype.eachLine=function(n,e){e===void 0&&(e=`
|
|
130
|
+
`);for(var o=Ue.default.iterator(this.ops),a=new t,r=0;o.hasNext();){if(o.peekType()!=="insert")return;var l=o.peek(),s=Ue.default.length(l)-o.peekLength(),u=typeof l.insert=="string"?l.insert.indexOf(e,s)-s:-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||{},r)===!1)return;r+=1,a=new t}}a.length()>0&&n(a,{},r)},t.prototype.invert=function(n){var e=new t;return this.reduce(function(o,a){if(a.insert)e.delete(Ue.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 r=a.delete||a.retain,l=n.slice(o,o+r);return l.forEach(function(s){a.delete?e.push(s):a.retain&&a.attributes&&e.retain(Ue.default.length(s),Pn.default.invert(a.attributes,s.attributes))}),o+r}}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=Ue.default.iterator(this.ops),r=Ue.default.iterator(o.ops),l=new t;a.hasNext()||r.hasNext();)if(a.peekType()==="insert"&&(e||r.peekType()!=="insert"))l.retain(Ue.default.length(a.next()));else if(r.peekType()==="insert")l.push(r.next());else{var s=Math.min(a.peekLength(),r.peekLength()),u=a.next(s),c=r.next(s);if(u.delete)continue;c.delete?l.push(c):l.retain(s,Pn.default.transform(u.attributes,c.attributes,e))}return l.chop()},t.prototype.transformPosition=function(n,e){e===void 0&&(e=!1),e=!!e;for(var o=Ue.default.iterator(this.ops),a=0;o.hasNext()&&a<=n;){var r=o.peekLength(),l=o.peekType();if(o.next(),l==="delete"){n-=Math.min(r,n-a);continue}else l==="insert"&&(a<n||!e)&&(n+=r);a+=r}return n},t.Op=Ue.default,t.AttributeMap=Pn.default,t}(),V1=j1;const q1=Cn(V1);/*!
|
|
131
|
+
* VueQuill @vueup/vue-quill v1.2.0
|
|
132
|
+
* https://vueup.github.io/vue-quill/
|
|
133
|
+
*
|
|
134
|
+
* Includes quill v1.3.7
|
|
135
|
+
* https://quilljs.com/
|
|
136
|
+
*
|
|
137
|
+
* Copyright (c) 2023 Ahmad Luthfi Masruri
|
|
138
|
+
* Released under the MIT license
|
|
139
|
+
* Date: 2023-05-12T08:44:03.742Z
|
|
140
|
+
*/const Pa={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"]]},F1=i.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(Pa).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)=>{i.onMounted(()=>{r()}),i.onBeforeUnmount(()=>{e=null});let e,o;const a=i.ref(),r=()=>{var C;if(a.value){if(o=l(),t.modules)if(Array.isArray(t.modules))for(const O of t.modules)mt.register(`modules/${O.name}`,O.module);else mt.register(`modules/${t.modules.name}`,t.modules.module);e=new mt(a.value,o),w(t.content),e.on("text-change",f),e.on("selection-change",h),e.on("editor-change",b),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)}},l=()=>{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:Pa[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)},s=C=>typeof C=="object"&&C?C.slice():C,u=C=>Object.values(C.ops).some(O=>!O.retain||Object.keys(O).length!==1);let c;const p=C=>{if(typeof c==typeof C){if(C===c)return!0;if(typeof C=="object"&&C&&typeof c=="object"&&c)return!u(c.diff(C))}return!1},f=(C,O,N)=>{c=s(g()),p(t.content)||n.emit("update:content",c),n.emit("textChange",{delta:C,oldContents:O,source:N})},d=i.ref(),h=(C,O,N)=>{d.value=!!(e!=null&&e.hasFocus()),n.emit("selectionChange",{range:C,oldRange:O,source:N})};i.watch(d,C=>{C?n.emit("focus",a):n.emit("blur",a)});const b=(...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,
|
|
141
|
+
make sure to call this method when the editor ready
|
|
142
|
+
or use v-on:ready="onReady(quill)" event instead.`},g=(C,O)=>t.contentType==="html"?T():t.contentType==="text"?v(C,O):e==null?void 0:e.getContents(C,O),w=(C,O="api")=>{const N=C||(t.contentType==="delta"?new q1:"");t.contentType==="html"?S(N):t.contentType==="text"?k(N,O):e==null||e.setContents(N,O),c=s(N)},v=(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))},B=()=>{e==null||e.focus()},E=()=>{i.nextTick(()=>{var C;!n.slots.toolbar&&e&&((C=e.getModule("toolbar"))===null||C===void 0||C.container.remove()),r()})};return i.watch(()=>t.content,C=>{if(!e||!C||p(C))return;const O=e.getSelection();O&&i.nextTick(()=>e==null?void 0:e.setSelection(O)),w(C)},{deep:!0}),i.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:B,getText:v,setText:k,reinit:E}},render(){var t,n;return[(n=(t=this.$slots).toolbar)===null||n===void 0?void 0:n.call(t),i.h("div",{ref:"editor",...this.$attrs})]}}),H1=mt.import("formats/list"),z1=mt.import("formats/list/item"),U1=mt.import("parchment");class $r extends z1{format(n,e){n===Yt.blotName&&!e?this.replaceWith(U1.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 Yt extends H1{static create(){const n=super.create("bullet");return n.setAttribute("type","a"),n}static formats(){return"bullet"}}Yt.blotName="alphabet-list",Yt.tagName="OL",Yt.className="alphabet-list",Yt.defaultChild="alphabet-list-item",Yt.allowedChildren=[$r];var Ma={exports:{}};(function(t,n){(function(o,a){t.exports=a()})(typeof self<"u"?self:Re,function(){return function(e){var o={};function a(r){if(o[r])return o[r].exports;var l=o[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=e,a.c=o,a.d=function(r,l,s){a.o(r,l)||Object.defineProperty(r,l,{configurable:!1,enumerable:!0,get:s})},a.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(l,"a",l),l},a.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},a.p="",a(a.s=0)}([function(e,o,a){function r(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0});var l=a(1);function s(u,c){var p=u.import("parchment"),f=l.default(u);f.className=c&&c.className||"ql-placeholder-content",u.register(f);var d=function h(b,m){var _=this;r(this,h),this.quill=b,this.onTextChange=function(y,g,w){if(w===u.sources.USER){var v=_.quill.getContents(),k=v.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(v){return v.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 d}o.default=s},function(e,o,a){var r=function(){function f(d,h){for(var b=0;b<h.length;b++){var m=h[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,h,b){return h&&f(d.prototype,h),b&&f(d,b),d}}(),l=function f(d,h,b){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,h);if(m===void 0){var _=Object.getPrototypeOf(d);return _===null?void 0:f(_,h,b)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(b)}};function s(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function u(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function c(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}Object.defineProperty(o,"__esModule",{value:!0});function p(f){var d=f.import("blots/embed"),h=function(b){c(m,b);function m(){return s(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"length",value:function(){return 1}},{key:"deleteAt",value:function(y,g){this.domNode.dataset.required||l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,y,g)}}],[{key:"create",value:function(y){var g=l(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,v=typeof w=="string"?""+w+y.label+w:""+w[0]+y.label+(w[1]||w[0]),k=document.createTextNode(v);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}(d);return h.blotName="placeholder",h.tagName="span",h}o.default=p}])})})(Ma);var K1=Ma.exports;const G1=Cn(K1),Mp="",W1=`
|
|
143
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
144
|
+
<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"/>
|
|
145
|
+
</svg>
|
|
146
|
+
`,Y1=`
|
|
147
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
148
|
+
<path d="M9.54492 14.9023H8.36914L10.4404 5.09961H11.6299L9.54492 14.9023Z" class="fill" fill="#1A1A1A"/>
|
|
149
|
+
</svg>
|
|
150
|
+
`,Z1=`
|
|
151
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
152
|
+
<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"/>
|
|
153
|
+
<path d="M5.19141 16.3047H14.8096V17.1182H5.19141V16.3047Z" class="fill" fill="#1A1A1A"/>
|
|
154
|
+
</svg>
|
|
155
|
+
`,J1=`
|
|
156
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
157
|
+
<path d="M14.6668 9.99805L5.33594 9.99805" class="stroke" stroke="#1A1A1A" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
158
|
+
<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"/>
|
|
159
|
+
<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"/>
|
|
160
|
+
</svg>
|
|
161
|
+
`,X1=`
|
|
162
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
163
|
+
<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"/>
|
|
164
|
+
</svg>
|
|
165
|
+
|
|
166
|
+
`,Q1=`
|
|
167
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
|
+
<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"/>
|
|
169
|
+
</svg>
|
|
170
|
+
|
|
171
|
+
`,e0=`
|
|
172
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
173
|
+
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
174
|
+
<rect x="3" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
175
|
+
<rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
176
|
+
<rect x="3" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
177
|
+
</svg>
|
|
178
|
+
|
|
179
|
+
`,t0=`
|
|
180
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
181
|
+
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
182
|
+
<rect x="5" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
183
|
+
<rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
184
|
+
<rect x="5" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
185
|
+
</svg>
|
|
186
|
+
`,n0=`
|
|
187
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
188
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
189
|
+
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
190
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
191
|
+
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
192
|
+
</svg>
|
|
193
|
+
|
|
194
|
+
`,r0=`
|
|
195
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
196
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
197
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
198
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
199
|
+
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
200
|
+
</svg>
|
|
201
|
+
`,i0=`
|
|
202
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
203
|
+
<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"/>
|
|
204
|
+
<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"/>
|
|
205
|
+
<path d="M2.22852 16.4082V15.8711C2.41602 16.0078 2.63477 16.0762 2.88477 16.0762C3.04232 16.0762 3.16471 16.0423 3.25195 15.9746C3.34049 15.9069 3.38477 15.8125 3.38477 15.6914C3.38477 15.5664 3.33008 15.4701 3.2207 15.4023C3.11263 15.3346 2.96354 15.3008 2.77344 15.3008H2.51367V14.8281H2.75391C3.11849 14.8281 3.30078 14.707 3.30078 14.4648C3.30078 14.237 3.16081 14.123 2.88086 14.123C2.69336 14.123 2.51107 14.1836 2.33398 14.3047V13.8008C2.5306 13.7018 2.75977 13.6523 3.02148 13.6523C3.30794 13.6523 3.5306 13.7168 3.68945 13.8457C3.84961 13.9746 3.92969 14.1419 3.92969 14.3477C3.92969 14.7135 3.74414 14.9427 3.37305 15.0352V15.0449C3.57096 15.0697 3.72721 15.1419 3.8418 15.2617C3.95638 15.3802 4.01367 15.526 4.01367 15.6992C4.01367 15.9609 3.91797 16.168 3.72656 16.3203C3.53516 16.4727 3.27083 16.5488 2.93359 16.5488C2.64453 16.5488 2.40951 16.502 2.22852 16.4082Z" class="fill" fill="#1A1A1A"/>
|
|
206
|
+
<rect x="7" y="4.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
207
|
+
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
208
|
+
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
209
|
+
</svg>
|
|
210
|
+
`,o0=`
|
|
211
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
212
|
+
<rect x="6.5" y="4" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
213
|
+
<rect x="6.5" y="9" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
214
|
+
<rect x="6.5" y="14" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
215
|
+
<circle cx="3.5" cy="15" r="1" class="fill" fill="#1A1A1A"/>
|
|
216
|
+
<circle cx="3.5" cy="10" r="1" class="fill" fill="#1A1A1A"/>
|
|
217
|
+
<circle cx="3.5" cy="5" r="1" class="fill" fill="#1A1A1A"/>
|
|
218
|
+
</svg>
|
|
219
|
+
`,a0=`
|
|
220
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
221
|
+
<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"/>
|
|
222
|
+
<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"/>
|
|
223
|
+
<path d="M3.77539 16.4277C3.63607 16.5085 3.4349 16.5488 3.17188 16.5488C2.86458 16.5488 2.61589 16.4557 2.42578 16.2695C2.23568 16.0833 2.14062 15.8431 2.14062 15.5488C2.14062 15.209 2.24219 14.9414 2.44531 14.7461C2.64974 14.5495 2.92253 14.4512 3.26367 14.4512C3.49935 14.4512 3.66992 14.4824 3.77539 14.5449V15.0684C3.64648 14.972 3.5026 14.9238 3.34375 14.9238C3.16667 14.9238 3.02604 14.9759 2.92188 15.0801C2.81901 15.1829 2.76758 15.3255 2.76758 15.5078C2.76758 15.6849 2.81706 15.8242 2.91602 15.9258C3.01497 16.026 3.15104 16.0762 3.32422 16.0762C3.47786 16.0762 3.62826 16.028 3.77539 15.9316V16.4277Z" class="fill" fill="#1A1A1A"/>
|
|
224
|
+
<rect x="7" y="4.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
225
|
+
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
226
|
+
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
227
|
+
</svg>
|
|
228
|
+
`,Bp="",lt=mt.import("ui/icons");lt.bold=W1,lt.italic=Y1,lt.underline=Z1,lt.strike=J1,lt["code-block"]=Q1,lt.link=X1,lt.align[""]=e0,lt.align.center=t0,lt.align.right=n0,lt.align.justify=r0,lt.list.ordered=i0,lt.list.bullet=o0,lt["alphabet-list"]=a0,mt.register({"formats/alphabet-list":Yt,"formats/alphabet-list/item":$r}),mt.register("modules/placeholder",G1(mt,{className:"ql-placeholder-content"})),mt.register(lt),mt.debug("error");const l0={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:""},height:{type:String}},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){this.$emit("update:modelValue",t)},characterOverLimit(t){this.$emit("onOverLimitHandler",t)}},methods:{onChange(){this.updateCharacterLength(),this.$emit("change",this.data)},onBlur(t){this.$emit("blur",this.data,t),this.isFocus=!1},onFocus(){this.isFocus=!0},updateCharacterLength(){this.characterLength=this.$refs.quill.getText().length-1}},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:F1,IbIconButton:ct,IbAlert:Ft,IbCharacterCount:zr}},s0=["name","disabled","value"],d0={id:"toolbar",class:"toolbar",ref:"toolbar"},c0={key:0,class:"toolbar-group header-toolbar-group"},u0=i.createElementVNode("label",{class:"toolbar-group__label",for:"placeholders"},"Placeholder Selector",-1),f0={id:"placeholders",class:"ql-placeholder"},h0=i.createElementVNode("option",{selected:"",value:"default"},"івф",-1),p0=["value"],m0=i.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),g0={class:"toolbar-group"},y0=i.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),v0={class:"toolbar-group"},b0={class:"toolbar-group"},_0={class:"toolbar-group"};function $0(t,n,e,o,a,r){const l=i.resolveComponent("ib-character-count"),s=i.resolveComponent("ib-alert"),u=i.resolveComponent("QuillEditor"),c=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["textarea-wrapper",{error:r.characterOverLimit||e.error||e.errorMessage.length,focus:a.isFocus,disable:e.disable}])},[e.characterLimit?(i.openBlock(),i.createBlock(l,{key:0,"character-limit":e.characterLimit,"character-length":a.characterLength},null,8,["character-limit","character-length"])):i.createCommentVNode("",!0),e.errorMessage.length?(i.openBlock(),i.createBlock(s,{key:1,class:"error-message"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(s,{class:"error-message"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.characterLimitErrorMessage),1)]),_:1},512),[[i.vShow,e.characterLimitErrorMessage.length&&r.characterOverLimit]]),i.createElementVNode("input",{name:e.name,type:"hidden",disabled:e.disable,value:a.data},null,8,s0),i.createElementVNode("div",{class:i.normalizeClass(["ib-text-editor-wrapper",{disable:e.disable}])},[i.createElementVNode("div",{class:"ib-text-editor",style:i.normalizeStyle({height:e.height?e.height+"px":""}),ref:"wrapper"},[i.createVNode(u,{"aria-label":"text-editor",onTextChange:r.onChange,onBlur:r.onBlur,onFocus:r.onFocus,ref:"quill",content:a.data,"onUpdate:content":n[0]||(n[0]=p=>a.data=p),contentType:"html",options:r.config,modules:e.modules},null,8,["onTextChange","onBlur","onFocus","content","options","modules"])],4),i.createElementVNode("div",d0,[e.placeholders.length?(i.openBlock(),i.createElementBlock("div",c0,[u0,i.createElementVNode("select",f0,[h0,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.placeholders,p=>(i.openBlock(),i.createElementBlock("option",{key:p.id,value:p.id},i.toDisplayString(p.label),9,p0))),128))])])):i.createCommentVNode("",!0),m0,i.createElementVNode("div",g0,[i.createVNode(c,{"aria-label":"button-bold",class:"toolbar-item ql-bold",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-italic",class:"toolbar-item ql-italic",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-underline",class:"toolbar-item ql-underline",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-strike",class:"toolbar-item ql-strike",kind:"ghost"})]),y0,i.createElementVNode("div",v0,[i.createVNode(c,{"aria-label":"button-code-block",class:"toolbar-item ql-code-block",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-link",class:"toolbar-item ql-link",kind:"ghost"})]),i.createElementVNode("div",b0,[i.createVNode(c,{"aria-label":"button-align",class:"toolbar-item ql-align",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-align-center",class:"ql-align toolbar-item",value:"center",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-align-right",class:"ql-align toolbar-item",value:"right",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-align-justify",class:"ql-align toolbar-item",value:"justify",kind:"ghost"})]),i.createElementVNode("div",_0,[i.createVNode(c,{"aria-label":"button-ordered-list",class:"ql-list toolbar-item",value:"ordered",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-bullet-list",class:"ql-list toolbar-item",value:"bullet",kind:"ghost"}),i.createVNode(c,{"aria-label":"button-alphabet-list",class:"ql-alphabet-list alphabet-list toolbar-item",kind:"ghost"})])],512)],2)],2)}const w0=_e(l0,[["render",$0]]),Lp="",k0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},C0={class:"ib-table-wrapper"},O0={class:"ib-table"};function E0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",C0,[i.createElementVNode("table",O0,[r.hasThead?i.renderSlot(t.$slots,"thead",{key:0},void 0,!0):i.createCommentVNode("",!0),i.createElementVNode("tbody",null,[i.renderSlot(t.$slots,"tbody",{},void 0,!0)])])])}const S0=_e(k0,[["render",E0],["__scopeId","data-v-5dceb760"]]),Rp="",x0={name:"IbRow"},T0={class:"ib-tr"};function N0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("tr",T0,[i.renderSlot(t.$slots,"default",{ref:"row"})])}const A0=_e(x0,[["render",N0]]),jp="",D0={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"}}},I0={class:"cell"};function P0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("td",i.mergeProps({onResize:n[0]||(n[0]=(...l)=>r.freezeCol&&r.freezeCol(...l)),class:"ib-cell"},this.attr),[i.createElementVNode("div",I0,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ba=_e(D0,[["render",P0],["__scopeId","data-v-e74bb0f3"]]),Vp="",M0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ba,IbCheckbox:Fr}};function B0(t,n,e,o,a,r){const l=i.resolveComponent("ib-checkbox"),s=i.resolveComponent("ib-cell");return i.openBlock(),i.createBlock(s,{fixed:e.fixed,class:"ib-checkbox-cell"},{default:i.withCtx(()=>[i.createVNode(l,{"is-checked":e.isChecked},null,8,["is-checked"])]),_:1},8,["fixed"])}const L0=_e(M0,[["render",B0]]),vi=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};vi.createTooltip(t,o,e)}},Ra=()=>{vi.destroyTooltip()},R0={mounted(t,n){t.addEventListener("mouseenter",()=>La(t,n)),t.addEventListener("mouseleave",Ra)},beforeUnmount(t,n){vi.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=Td,pe.IbButton=Hi,pe.IbButtonGroup=is,pe.IbCell=Ba,pe.IbCharactersCount=zr,pe.IbCheckbox=Fr,pe.IbCheckboxCell=L0,pe.IbCheckboxGroup=uu,pe.IbChips=iu,pe.IbDatePicker=tf,pe.IbDropdown=ir,pe.IbDropdownItem=jr,pe.IbDropdownList=or,pe.IbFormGroup=su,pe.IbIcon=Be,pe.IbIconButton=ct,pe.IbInput=qr,pe.IbLabel=kn,pe.IbLimitSelector=Ao,pe.IbModal=Zs,pe.IbPagination=Ac,pe.IbPanel=Xc,pe.IbPhoneInput=E1,pe.IbPopover=fo,pe.IbProgressBar=Rc,pe.IbRadio=bu,pe.IbRow=A0,pe.IbSorting=$d,pe.IbSplitButton=Fs,pe.IbSplitButtonItem=Us,pe.IbStatusIndicator=zc,pe.IbTab=ud,pe.IbTabDropdown=$o,pe.IbTable=S0,pe.IbTabs=sd,pe.IbTagPill=ls,pe.IbTextEditor=w0,pe.IbTextarea=Au,pe.IbToggle=Eo,pe.IbToggleTip=mo,pe.IbTooltip=an,pe.IbTreeSelect=No,pe.OutsideDirective=nr,pe.TextOverflowTooltipDirective=R0,pe.TooltipDirective=sn,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|