@avakhula/ui 0.0.352 → 0.0.353
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/.prettierrc.json +0 -0
- package/.storybook/intelliboardTheme.js +0 -0
- package/.storybook/manager.js +0 -0
- package/.storybook/scss-loader.scss +0 -0
- package/.storybook/withSource.js +0 -0
- package/README.md +0 -0
- package/dist/index.js +7098 -6710
- package/dist/index.umd.cjs +72 -72
- package/dist/style.css +1 -1
- package/index.html +0 -0
- package/package.json +4 -3
- package/src/App.vue +13 -69
- package/src/EventEmmiter.js +0 -0
- package/src/assets/scss/mixins.scss +0 -0
- package/src/assets/scss/reset.scss +0 -0
- package/src/assets/scss/style.scss +0 -0
- package/src/assets/scss/typography.scss +0 -0
- package/src/components/Alert/Alert.vue +5 -0
- package/src/components/Alert/alert.scss +6 -1
- package/src/components/Badge/Badge.stories.js +0 -0
- package/src/components/Button/Button.stories.js +0 -0
- package/src/components/Button/constants.js +0 -0
- package/src/components/ButtonGroup/ButtonGroup.vue +0 -0
- package/src/components/Chips/Chips.stories.js +30 -0
- package/src/components/Chips/Chips.vue +125 -0
- package/src/components/Dropdown/Dropdown.spec.js +0 -0
- package/src/components/Dropdown/DropdownDivider.vue +0 -0
- package/src/components/Dropdown/DropdownList.vue +0 -0
- package/src/components/Dropdown/constants.js +0 -0
- package/src/components/Form/CharactersCount.vue +10 -7
- package/src/components/Form/Checkbox/Checkbox.vue +2 -1
- package/src/components/Form/DatePicker/DatePicker.vue +32 -11
- package/src/components/Form/DatePicker/Icons/chevron-back.js +0 -0
- package/src/components/Form/DatePicker/Icons/chevron-forward.js +0 -0
- package/src/components/Form/FormGroup/FormGroup.stories.js +0 -0
- package/src/components/Form/FormGroup/FormGroupSet.stories.js +0 -0
- package/src/components/Form/FormGroup/FormGroupSet.vue +0 -0
- package/src/components/Form/Input/Input.vue +2 -2
- package/src/components/Form/PhoneInput/PhoneInput.vue +26 -21
- package/src/components/Form/PhoneInput/phoneInput.scss +4 -5
- package/src/components/Form/Radio/Radio.vue +3 -3
- package/src/components/Form/TextEditor/TextEditor.vue +46 -4
- package/src/components/Form/TextEditor/icons/svg/chevron-down.svg +0 -0
- package/src/components/Form/TextEditor/icons/toolbarIcons.js +0 -0
- package/src/components/Form/TextEditor/plugins/alphabetList.js +0 -0
- package/src/components/Form/TextEditor/textEditor.scss +50 -26
- package/src/components/Form/Textarea/Textarea.spec.js +0 -0
- package/src/components/Form/Textarea/textarea.scss +7 -1
- package/src/components/Icon.vue +0 -0
- package/src/components/IconButton/IconButton.stories.js +0 -0
- package/src/components/IconButton/constants.js +0 -0
- package/src/components/Modal/Modal.vue +6 -4
- package/src/components/Pagination/Pagination.stories.js +0 -0
- package/src/components/Pagination/Pagination.vue +2 -2
- package/src/components/Popover/Popover.stories.js +0 -0
- package/src/components/ProgressBar/ProgressBar.stories.js +0 -0
- package/src/components/Sorting/constants.js +0 -0
- package/src/components/SplitButton/SplitButtonItem.vue +0 -0
- package/src/components/SplitButton/constants.js +0 -0
- package/src/components/Table/Cells/Cell.vue +0 -0
- package/src/components/Table/Cells/CheckboxCell.vue +0 -0
- package/src/components/Table/Row.vue +0 -0
- package/src/components/Table/Table.stories.js +0 -0
- package/src/components/Table/Table.vue +0 -0
- package/src/components/Tabs/Tab.vue +0 -0
- package/src/components/TagPill/TagPill.vue +0 -0
- package/src/components/TagPill/constants.js +0 -0
- package/src/components/ToggleTip/ToggleTip.stories.js +0 -0
- package/src/components/ToggleTip/ToggleTip.vue +0 -0
- package/src/components/Tooltip/Tooltip.stories.js +0 -0
- package/src/components/TreeSelect/Select.vue +17 -4
- package/src/components/TreeSelect/mixins/InfinityLoaderMixin.js +40 -0
- package/src/constants/events.js +0 -0
- package/src/constants/keyCodes.js +0 -0
- package/src/directives/outside/outside.js +0 -0
- package/src/directives/tooltip/tooltip.js +15 -0
- package/src/helpers/generateUID.js +0 -0
- package/src/helpers/getHrefFromID.js +0 -0
- package/src/helpers/multiLineOverflows.js +0 -0
- package/src/index.js +2 -0
- package/src/stories/link.stories.js +0 -0
- package/static/Logo.svg +0 -0
- package/vite.config.js +0 -0
package/dist/index.umd.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 $0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},La={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)}},Ra=["name"];function ja(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,Ra)}const Be=_e(La,[["render",ja]]);function mt(){return"_"+Math.random().toString(36).substr(2,9)}const ji={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})}}},w0="",Va={name:"IbAccordion",mixins:[ji],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:mt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Be}},Fa=["id","aria-controls","aria-expanded"],qa=["id","aria-labelledby"],Ha={class:"accordion-content-wrapper"};function za(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,Fa),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",Ha,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,qa),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Ua=_e(Va,[["render",za],["__scopeId","data-v-8ece19c1"]]),Ut={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Ar(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const k0="",Ka={name:"IbButton",props:{kind:{type:String,default:Ut.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=Ar({...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},Ga=["method","action"],Wa=["value"],Ya=["value"],Za=["name","value"];function Ja(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{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,Wa),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Ya),(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,Za))),128))],8,Ga)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Vi=_e(Ka,[["render",Ja]]),Xa=["top","right","bottom","left"],Fi=["start","end"],qi=Xa.reduce((t,n)=>t.concat(n,n+"-"+Fi[0],n+"-"+Fi[1]),[]),Hi=Math.min,gn=Math.max,Un=Math.round,jt=t=>({x:t,y:t}),Qa={left:"right",right:"left",bottom:"top",top:"bottom"},el={start:"end",end:"start"};function zi(t,n){return typeof t=="function"?t(n):t}function Kn(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function tl(t){return t==="x"?"y":"x"}function Ui(t){return t==="y"?"height":"width"}function Ki(t){return["top","bottom"].includes(Kn(t))?"y":"x"}function Gi(t){return tl(Ki(t))}function nl(t,n,e){e===void 0&&(e=!1);const o=Kt(t),a=Gi(t),r=Ui(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Wi(l)),[l,Wi(l)]}function rl(t){return t.replace(/start|end/g,n=>el[n])}function Wi(t){return t.replace(/left|right|bottom|top/g,n=>Qa[n])}function il(t){return{top:0,right:0,bottom:0,left:0,...t}}function ol(t){return typeof t!="number"?il(t):{top:t,right:t,bottom:t,left:t}}function Gn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Yi(t,n,e){let{reference:o,floating:a}=t;const r=Ki(n),l=Gi(n),s=Ui(l),c=Kn(n),h=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 u;switch(c){case"top":u={x:p,y:o.y-a.height};break;case"bottom":u={x:p,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:f};break;case"left":u={x:o.x-a.width,y:f};break;default:u={x:o.x,y:o.y}}switch(Kt(n)){case"start":u[l]-=d*(e&&h?-1:1);break;case"end":u[l]+=d*(e&&h?-1:1);break}return u}const al=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(n));let h=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Yi(h,o,c),d=o,u={},_=0;for(let v=0;v<s.length;v++){const{name:b,fn:g}=s[v],{x:y,y:w,data:m,reset:k}=await g({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:u,rects:h,platform:l,elements:{reference:t,floating:n}});p=y??p,f=w??f,u={...u,[b]:{...u[b],...m}},k&&_<=50&&(_++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(h=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Yi(h,d,c)),v=-1)}return{x:p,y:f,placement:d,strategy:a,middlewareData:u}};async function ll(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:u=0}=zi(n,t),_=ol(u),b=s[d?f==="floating"?"reference":"floating":f],g=Gn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:h,rootBoundary:p,strategy:c})),y=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),m=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=Gn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:c}):y);return{top:(g.top-k.top+_.top)/m.y,bottom:(k.bottom-g.bottom+_.bottom)/m.y,left:(g.left-k.left+_.left)/m.x,right:(k.right-g.right+_.right)/m.x}}function sl(t,n,e){return(t?[...e.filter(a=>Kt(a)===t),...e.filter(a=>Kt(a)!==t)]:e.filter(a=>Kn(a)===a)).filter(a=>t?Kt(a)===t||(n?rl(a)!==a:!1):!0)}const dl=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:c,elements:h}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=qi,autoAlignment:u=!0,..._}=zi(t,n),v=f!==void 0||d===qi?sl(f||null,u,d):d,b=await ll(n,_),g=((e=l.autoPlacement)==null?void 0:e.index)||0,y=v[g];if(y==null)return{};const w=nl(y,r,await(c.isRTL==null?void 0:c.isRTL(h.floating)));if(s!==y)return{reset:{placement:v[0]}};const m=[b[Kn(y)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:y,overflows:m}],T=v[g+1];if(T)return{data:{index:g+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Kt(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]),P=((a=S.filter(E=>E[2].slice(0,Kt(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return P!==s?{data:{index:g+1,overflows:k},reset:{placement:P}}:{}}}};function Vt(t){return Zi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Ft(t){var n;return(n=(Zi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Zi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function Ji(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function yn(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 cl(t){return["table","td","th"].includes(Vt(t))}function Dr(t){const n=Ir(),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 ul(t){let n=rn(t);for(;bt(n)&&!Wn(n);){if(Dr(n))return n;n=rn(n)}return null}function Ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return dt(t).getComputedStyle(t)}function Yn(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||Ji(t)&&t.host||Ft(t);return Ji(n)?n.host:n}function Xi(t){const n=rn(t);return Wn(n)?t.ownerDocument?t.ownerDocument.body:t.body:bt(n)&&yn(n)?n:Xi(n)}function Pr(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=Xi(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],yn(a)?a:[],l.frameElement&&e?Pr(l.frameElement):[]):n.concat(a,Pr(a,[],e))}function Qi(t){const n=ht(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=bt(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Un(e)!==r||Un(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function eo(t){return Tt(t)?t:t.contextElement}function on(t){const n=eo(t);if(!bt(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=Qi(n);let l=(r?Un(e.width):e.width)/o,s=(r?Un(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const fl=jt(0);function to(t){const n=dt(t);return!Ir()||!n.visualViewport?fl:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function hl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=eo(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=hl(r,e,o)?to(r):jt(0);let c=(a.left+s.x)/l.x,h=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),u=o&&Tt(o)?dt(o):o;let _=d,v=_.frameElement;for(;v&&o&&u!==_;){const b=on(v),g=v.getBoundingClientRect(),y=ht(v),w=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*b.x,m=g.top+(v.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,h*=b.y,p*=b.x,f*=b.y,c+=w,h+=m,_=dt(v),v=_.frameElement}}return Gn({width:p,height:f,x:c,y:h})}const pl=[":popover-open",":modal"];function no(t){return pl.some(n=>{try{return t.matches(n)}catch{return!1}})}function ml(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const r=a==="fixed",l=Ft(o),s=n?no(n.floating):!1;if(o===l||s&&r)return e;let c={scrollLeft:0,scrollTop:0},h=jt(1);const p=jt(0),f=bt(o);if((f||!f&&!r)&&((Vt(o)!=="body"||yn(l))&&(c=Yn(o)),bt(o))){const d=vn(o);h=on(o),p.x=d.x+o.clientLeft,p.y=d.y+o.clientTop}return{width:e.width*h.x,height:e.height*h.y,x:e.x*h.x-c.scrollLeft*h.x+p.x,y:e.y*h.y-c.scrollTop*h.y+p.y}}function gl(t){return Array.from(t.getClientRects())}function ro(t){return vn(Ft(t)).left+Yn(t).scrollLeft}function yl(t){const n=Ft(t),e=Yn(t),o=t.ownerDocument.body,a=gn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=gn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ro(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=gn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function vl(t,n){const e=dt(t),o=Ft(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){r=a.width,l=a.height;const h=Ir();(!h||h&&n==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:r,height:l,x:s,y:c}}function bl(t,n){const e=vn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=bt(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,c=a*r.x,h=o*r.y;return{width:l,height:s,x:c,y:h}}function io(t,n,e){let o;if(n==="viewport")o=vl(t,e);else if(n==="document")o=yl(Ft(t));else if(Tt(n))o=bl(n,e);else{const a=to(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Gn(o)}function oo(t,n){const e=rn(t);return e===n||!Tt(e)||Wn(e)?!1:ht(e).position==="fixed"||oo(e,n)}function _l(t,n){const e=n.get(t);if(e)return e;let o=Pr(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)&&!Wn(l);){const s=ht(l),c=Dr(l);!c&&s.position==="fixed"&&(a=null),(r?!c&&!a:!c&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!c&&oo(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function $l(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?_l(n,this._c):[].concat(e),o],s=l[0],c=l.reduce((h,p)=>{const f=io(n,p,a);return h.top=gn(f.top,h.top),h.right=Hi(f.right,h.right),h.bottom=Hi(f.bottom,h.bottom),h.left=gn(f.left,h.left),h},io(n,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wl(t){const{width:n,height:e}=Qi(t);return{width:n,height:e}}function kl(t,n,e){const o=bt(n),a=Ft(n),r=e==="fixed",l=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const c=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Yn(n)),o){const f=vn(n,!0,r,n);c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}else a&&(c.x=ro(a));const h=l.left+s.scrollLeft-c.x,p=l.top+s.scrollTop-c.y;return{x:h,y:p,width:l.width,height:l.height}}function ao(t,n){return!bt(t)||ht(t).position==="fixed"?null:n?n(t):t.offsetParent}function lo(t,n){const e=dt(t);if(!bt(t)||no(t))return e;let o=ao(t,n);for(;o&&cl(o)&&ht(o).position==="static";)o=ao(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Dr(o))?e:o||ul(t)||e}const Cl=async function(t){const n=this.getOffsetParent||lo,e=this.getDimensions;return{reference:kl(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function Ol(t){return ht(t).direction==="rtl"}const El={convertOffsetParentRelativeRectToViewportRelativeRect:ml,getDocumentElement:Ft,getClippingRect:$l,getOffsetParent:lo,getElementRects:Cl,getClientRects:gl,getDimensions:wl,getScale:on,isElement:Tt,isRTL:Ol},Sl=dl,xl=(t,n,e)=>{const o=new Map,a={platform:El,...e},r={...a.platform,_c:o};return al(t,n,{...a,platform:r})},C0="",Tl={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,xl(this.parentNode,this.$refs.popover,{middleware:[Sl({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 Nl(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 so=_e(Tl,[["render",Nl],["__scopeId","data-v-9313d095"]]),O0="",Al={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:so}},Dl={key:0};function Il(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",Dl,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(Al,[["render",Il],["__scopeId","data-v-6fb94ac5"]]),co={[Ut.primary]:Ut.primary,[Ut.tertiary]:Ut.tertiary,[Ut.ghost]:Ut.ghost,white:"white"},uo={xs:"xs",s:"s",m:"m"},E0="",Pl={name:"IbIconButton",props:{kind:{type:String,default:co.primary,validator:t=>Object.keys(co).includes(t)},size:{type:String,default:uo.s,validator:t=>Object.keys(uo).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:Vi,IbTooltip:an},inheritAttrs:!1};function Ml(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,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","kind","disabled","prevent-default"])}const ct=_e(Pl,[["render",Ml]]),Zn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},S0="",Bl={name:"IbAlert",props:{type:{type:String,default:Zn.alert,validator:t=>Object.keys(Zn).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),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===Zn.info?"information-circle-outline":this.type===Zn.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}},Ll={ref:"content",class:"content"},Rl={class:"content-head"},jl={key:1,class:"ib-alert-title"},Vl={class:"text-content"},Fl={class:"link"};function ql(t,n,e,o,a,r){var c;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",Ll,[i.createElementVNode("span",Rl,[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(c=e.title)!=null&&c.length?(i.openBlock(),i.createElementBlock("b",jl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",Vl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",Fl,[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 qt=_e(Bl,[["render",ql],["__scopeId","data-v-dec06c47"]]),Hl={M:"m",L:"l",XL:"xl"},zl={SQUARE:"square",CIRCLE:"circle"},x0="",Ul={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Hl.M},type:{type:String,default:zl.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}},Kl=["src","alt"];function Gl(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,Kl)):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 Wl=_e(Ul,[["render",Gl],["__scopeId","data-v-63abd28e"]]),T0="",Yl={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 Zl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const Jl=_e(Yl,[["render",Zl],["__scopeId","data-v-328df75a"]]),N0="",Xl={name:"IbButtonGroup"},Ql={class:"ib-button-group"};function es(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Ql,[i.renderSlot(t.$slots,"default")])}const ts=_e(Xl,[["render",es]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},A0="",ns={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 rs(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 is=_e(ns,[["render",rs],["__scopeId","data-v-3604890c"]]),os={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"},D0="",I0="",as={name:"IbTooltip",props:{position:{type:String,default:os.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}},ls={class:"ib-toggle-tip-head"},ss={class:"ib-toggle-tip-content"},ds={class:"ib-toggle-tip-button-set"};function cs(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",ls,[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",ss,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",ds,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const fo=_e(as,[["render",cs],["__scopeId","data-v-9e7c679e"]]),Mr=27,ho=32,us=13,po=9,fs=38,hs=37,ps=39,mo=40,ms="click",{performance:Jn}=window,gs=typeof(Jn==null?void 0:Jn.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Jn.now():()=>Date.now(),bn=new Map;let _n=!1;const go=t=>{bn.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},ys=()=>{_n||(document.addEventListener("click",go,{capture:!0}),_n=!0)},vs=()=>{_n&&(document.removeEventListener("click",go),_n=!1)},Xn={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!`);bn.has(t)||(_n||ys(),bn.set(t,{bindTimeStamp:gs(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&vs()}},$n={left:"left",right:"right",center:"center"},Qn={top:"top",bottom:"bottom"},B0="",L0="",bs={name:"IbDropdown",directives:{Outside:Xn},props:{vertical:{type:String,default:Qn.bottom},horizontal:{type:String,default:$n.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:ms},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===us||t.keyCode===ho)&&(t.preventDefault(),this.toggle()),t.keyCode===mo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Mr&&(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===Qn.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===$n.left?" dropdown-left":this.horizontal===$n.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)}},_s={class:"ib-dropdown"},$s={class:"footer-slot"};function ws(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",_s,[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",$s,[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 er=_e(bs,[["render",ws],["__scopeId","data-v-dfb4a39a"]]),R0="",ks={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===mo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let c=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(c){c.focus();return}const h=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];h&&h.nodeName!=="#text"&&h.focus()}if(t.keyCode===fs){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 c=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(c&&window.getComputedStyle(c).display!=="none"){const h=Array.from(c.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function Cs(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 Br=_e(ks,[["render",Cs]]),j0="",Os={props:{vertical:{type:String,default:Qn.bottom},horizontal:{type:String,default:$n.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:er,IbList:Br}},Es={class:"dropdown-list-wrapper"};function Ss(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Es,[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:c})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:c})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:c})=>[i.renderSlot(t.$slots,"trigger",{isOpened:c})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const tr=_e(Os,[["render",Ss]]),V0="",xs={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}}},Ts={class:"dropdown-item-wrapper"},Ns={class:"dropdown-item-icon"};function As(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ts,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href?"a":"div"),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Ns,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const Lr=_e(xs,[["render",As],["__scopeId","data-v-11b4be9b"]]),Ds={common:"common",danger:"danger"},F0="",Is={name:"IbSplitButton",props:{id:{type:String,default:()=>mt()},kind:{type:String,default:Ds.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.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:tr},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()}}},Ps=["disabled"],Ms=["disabled"],Bs=["disabled"],Ls={ref:"list"};function Rs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[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,Ms)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ps)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(l,{name:"chevron-down-outline"})],8,Bs)]),body:i.withCtx(()=>[i.createElementVNode("div",Ls,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const js=_e(Is,[["render",Rs]]),q0="",Vs={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function Fs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const qs=_e(Vs,[["render",Fs],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},H0="",Hs={name:"IbModal",directives:{Outside:Xn},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===po&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===po&&!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(){var t,n;(n=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;this.isActive=!1,(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;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&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===Mr&&!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)}},zs={key:1,class:"modal-header"},Us={key:2,class:"modal-footer"};function Ks(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=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]=(...h)=>r.onTriggerBlur&&r.onTriggerBlur(...h)),onClick:n[1]||(n[1]=(...h)=>r.open&&r.open(...h))},[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",zs,[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",Us,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[c,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Gs=_e(Hs,[["render",Ks],["__scopeId","data-v-e1683e53"]]);function yo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const z0="",Ws={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return yo(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:tr,IbDropdownItem:Lr,IbIcon:Be}},Ys={class:"wrapper-tab-link dropdown-tab"},Zs=["tabindex"];function Js(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),c=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Ys,[i.createVNode(c,{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,Zs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:h.id===e.selectedTab,href:r.createHref(h.id),tabindex:h.disabled?-1:0,class:i.normalizeClass([{disabled:h.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(h.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const vo=_e(Ws,[["render",Js]]),U0="",Xs={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 yo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:vo},emits:["changeTab"]},Qs={class:"tabs"},ed={class:"tabs-list"},td={key:0,class:"wrapper-tab-link"},nd=["href","tabindex","onClick"],rd={class:"tabs-content",ref:"tabHandler"};function id(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Qs,[i.createElementVNode("ul",ed,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,c)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:c},[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",td,[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:h=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,nd)]))]))),128))]),i.createElementVNode("div",rd,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const od=_e(Xs,[["render",id],["__scopeId","data-v-47d103be"]]),ad={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 ld(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 sd=_e(ad,[["render",ld]]),dd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},cd={TYPE_ASC:"asc",TYPE_DESC:"desc"},bo={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 _o{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_"+mt()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
|
|
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 R0="",_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})}}},j0="",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 V0="",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:""},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=Ir({...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},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(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{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,gn=Math.max,Wn=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 Yn(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(Yn(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 Zn(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),f=Yn(n),c=r==="y",p=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/2;let u;switch(f){case"top":u={x:p,y:o.y-a.height};break;case"bottom":u={x:p,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-a.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Gt(n)){case"start":u[l]-=d*(e&&c?-1:1);break;case"end":u[l]+=d*(e&&c?-1:1);break}return u}const dl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(n));let c=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:h}=Xi(c,o,f),d=o,u={},_=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x:m,y:w,data:v,reset:k}=await y({x:p,y:h,initialPlacement:o,placement:d,strategy:a,middlewareData:u,rects:c,platform:l,elements:{reference:t,floating:n}});p=m??p,h=w??h,u={...u,[b]:{...u[b],...v}},k&&_<=50&&(_++,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:h}=Xi(c,d,f)),g=-1)}return{x:p,y:h,placement:d,strategy:a,middlewareData:u}};async function cl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:f}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=Gi(n,t),_=sl(u),b=s[d?h==="floating"?"reference":"floating":h],y=Zn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:f})),m=h==="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=Zn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:f}):m);return{top:(y.top-k.top+_.top)/v.y,bottom:(k.bottom-y.bottom+_.bottom)/v.y,left:(y.left-k.left+_.left)/v.x,right:(k.right-y.right+_.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=>Yn(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:f,elements:c}=n,{crossAxis:p=!1,alignment:h,allowedPlacements:d=Ui,autoAlignment:u=!0,..._}=Gi(t,n),g=h!==void 0||d===Ui?ul(h||null,u,d):d,b=await cl(n,_),y=((e=l.autoPlacement)==null?void 0:e.index)||0,m=g[y];if(m==null)return{};const w=ol(m,r,await(f.isRTL==null?void 0:f.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const v=[b[Yn(m)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:m,overflows:v}],T=g[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 yn(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)&&!Jn(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 Jn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return dt(t).getComputedStyle(t)}function Xn(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 Jn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&yn(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||[],yn(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=Wn(e)!==r||Wn(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?Wn(e.width):e.width)/o,s=(r?Wn(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 vn(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 f=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,p=a.width/l.x,h=a.height/l.y;if(r){const d=dt(r),u=o&&Tt(o)?dt(o):o;let _=d,g=_.frameElement;for(;g&&o&&u!==_;){const b=on(g),y=g.getBoundingClientRect(),m=ht(g),w=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,v=y.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;f*=b.x,c*=b.y,p*=b.x,h*=b.y,f+=w,c+=v,_=dt(g),g=_.frameElement}}return Zn({width:p,height:h,x:f,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 f={scrollLeft:0,scrollTop:0},c=jt(1);const p=jt(0),h=_t(o);if((h||!h&&!r)&&((Vt(o)!=="body"||yn(l))&&(f=Xn(o)),_t(o))){const d=vn(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-f.scrollLeft*c.x+p.x,y:e.y*c.y-f.scrollTop*c.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function ao(t){return vn(qt(t)).left+Xn(t).scrollLeft}function _l(t){const n=qt(t),e=Xn(t),o=t.ownerDocument.body,a=gn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=gn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ao(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=gn(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,f=0;if(a){r=a.width,l=a.height;const c=Mr();(!c||c&&n==="fixed")&&(s=a.offsetLeft,f=a.offsetTop)}return{width:r,height:l,x:s,y:f}}function wl(t,n){const e=vn(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,f=a*r.x,c=o*r.y;return{width:l,height:s,x:f,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 Zn(o)}function so(t,n){const e=rn(t);return e===n||!Tt(e)||Jn(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)&&!Jn(l);){const s=ht(l),f=Pr(l);!f&&s.position==="fixed"&&(a=null),(r?!f&&!a:!f&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!f&&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],f=l.reduce((c,p)=>{const h=lo(n,p,a);return c.top=gn(h.top,c.top),c.right=Ki(h.right,c.right),c.bottom=Ki(h.bottom,c.bottom),c.left=gn(h.left,c.left),c},lo(n,s,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.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=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const f=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Xn(n)),o){const h=vn(n,!0,r,n);f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}else a&&(f.x=ao(a));const c=l.left+s.scrollLeft-f.x,p=l.top+s.scrollTop-f.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})},q0="",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"]]),F0="",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"},H0="",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:""},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,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","kind","disabled","prevent-default"])}const ct=_e(Ll,[["render",Rl]]),Qn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},z0="",jl={name:"IbAlert",props:{type:{type:String,default:Qn.alert,validator:t=>Object.keys(Qn).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===Qn.info?"information-circle-outline":this.type===Qn.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 f;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),(f=e.title)!=null&&f.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"},U0="",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"]]),K0="",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"]]),G0="",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"},W0="",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"},Y0="",Z0="",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:er}=window,bs=typeof(er==null?void 0:er.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>er.now():()=>Date.now(),bn=new Map;let _n=!1;const bo=t=>{bn.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)},tr={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!`);bn.has(t)||(_n||_s(),bn.set(t,{bindTimeStamp:bs(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&$s()}},$n={left:"left",right:"right",center:"center"},nr={top:"top",bottom:"bottom"},Q0="",ep="",ws={name:"IbDropdown",directives:{Outside:tr},props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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===nr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===$n.left?" dropdown-left":this.horizontal===$n.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 rr=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),tp="",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 f=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(f){f.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 f=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(f&&window.getComputedStyle(f).display!=="none"){const c=Array.from(f.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]]),np="",xs={props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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:rr,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:f})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:f})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:f})=>[i.renderSlot(t.$slots,"trigger",{isOpened:f})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const ir=_e(xs,[["render",Ns]]),rp="",As={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}}},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(e.href?"a":"div"),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-11b4be9b"]]),Ms={common:"common",danger:"danger"},ip="",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.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:ir},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()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[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]=(...f)=>r.onClickLink&&r.onClickLink(...f))}),i.toDisplayString(a.content),17,Rs)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ls)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(l,{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]]),op="",Hs={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function zs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),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-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},ap="",Ks={name:"IbModal",directives:{Outside:tr},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;this.isActive=!1,(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"),f=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)),[[f,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-cfb807d6"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const lp="",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:ir,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"),f=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[i.createVNode(f,{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:h=>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]]),sp="",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,f)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:f},[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:
|
|
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:f}=n.getBoundingClientRect(),{width:c,height:p}=this.tooltipContainer.firstChild.getBoundingClientRect(),h=document.documentElement.scrollTop;let d=`
|
|
7
7
|
bottom: auto!important;
|
|
8
8
|
right: auto!important;
|
|
9
9
|
transform: none!important;
|
|
10
|
-
`;switch(e){case"bottomCenter":d=d+`left: ${r+s/2-
|
|
11
|
-
top: ${a+
|
|
12
|
-
top: ${a+
|
|
13
|
-
top: ${a+
|
|
14
|
-
top: ${o-p+
|
|
15
|
-
top: ${o-p+
|
|
16
|
-
top: ${a-p-
|
|
17
|
-
top: ${a+
|
|
18
|
-
top: ${a+f
|
|
19
|
-
top: ${a-p-
|
|
20
|
-
top: ${a+
|
|
21
|
-
top: ${a+f
|
|
22
|
-
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?bo[n]:bo.topCenter}}const Gt=new _o,ud=(t,n)=>{var a;Gt.getTooltipContainer()&&Gt.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};Gt.createTooltip(t,o,e)},fd=(t,n)=>{const e=Gt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Gt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Gt.destroyTooltip(n)},$o=(t,n)=>{t.__tooltip_create=()=>ud(t,n),t.__tooltip_destroy=e=>fd(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},wo=t=>{Gt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},nr={mounted(t,n){$o(t,n)},updated(t,n){wo(t),$o(t,n)},beforeUnmount(t){wo(t)}},K0="",hd={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:cd,sortingTypesView:dd,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:nr},components:{IbIcon:Be,IbIconButton:ct,IbToggleTip:fo}},pd={class:"sorting-wrapper"},md=["name"],gd=["aria-label"];function yd(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",pd,[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)),[[h,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,md)]),_:1},8,["onClick"])),[[h,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(c,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,gd)),[[h,e.tooltipText,e.tooltipPosition]])])}const vd=_e(hd,[["render",yd],["__scopeId","data-v-a4394881"]]),G0="",bd={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:Lr,IbDropdownList:tr,IbTooltip:an}},_d={"aria-label":"breadcrumb"},$d={class:"breadcrumb"},wd=["href"],kd={key:1},Cd=["href"];function Od(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",_d,[i.createElementVNode("ul",$d,[(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,wd)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",kd,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(c,{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,(u,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.title),9,Cd)]),_: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 Ed=_e(bd,[["render",Od],["__scopeId","data-v-5ef772a9"]]),W0="",Sd={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:ct,IbIcon:Be},directives:{Tooltip:nr}},xd=["for"],Td={key:0,class:"required"};function Nd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",Td,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),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})),[[c,e.infoText,e.tooltipPosition]]):i.createCommentVNode("",!0)],10,xd)}const wn=_e(Sd,[["render",Nd],["__scopeId","data-v-4e464a62"]]),Rr={text:"text",password:"password",email:"email",number:"number"},Y0="",Ad={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return mt()}},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:Qn.bottom},settingsHorizontalPosition:{type:String,default:$n.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=Ar({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.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:qt,IbIconButton:ct,IbIcon:Be,IbDropdown:er},inheritAttrs:!1},Dd=["aria-invalid","readonly","disabled","id","autocomplete"],Id={class:"settings-wrapper"};function Pd(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=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,Dd),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(c,{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(c,{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(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(c,{"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",Id,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const jr=_e(Ad,[["render",Pd],["__scopeId","data-v-610352e2"]]),Z0="",Md={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return mt()}},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={...Ar({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Be},inheritAttrs:!1},Bd=["aria-checked"],Ld=["for","tabindex"],Rd=["name","id","value","disabled","required"],jd=["name","disabled","required"],Vd={class:"ib-checkbox-body"},Fd={key:0,class:"required"},qd={class:"ib-checkbox-input"},Hd={key:1,class:"ib-checkbox-label"},zd={key:0,class:"required"};function Ud(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]),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onClick:n[2]||(n[2]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["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]=c=>a.checked=c),onClick:n[1]||(n[1]=(...c)=>r.onChange&&r.onChange(...c))},null,8,Rd),[[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,jd)):i.createCommentVNode("",!0),i.createElementVNode("div",Vd,[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",Fd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",qd,[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",Hd,[e.required?(i.openBlock(),i.createElementBlock("span",zd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,Ld)],10,Bd)}const Vr=_e(Md,[["render",Ud],["__scopeId","data-v-d1c4c9b6"]]),J0="",Kd={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>mt()},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}},Gd=["aria-checked","tabindex"],Wd={class:"toggle-wrapper",ref:"wrapper"},Yd={class:"toggle",ref:"toggle"},Zd=["name","checked","id","disabled"],Jd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Xd={key:0,class:"toggle-label"};function Qd(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((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["enter"]))]},[i.createElementVNode("div",Wd,[i.createElementVNode("div",Yd,[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]=(...c)=>r.onChange&&r.onChange(...c)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Zd),Jd,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",Xd,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,Gd)}const ko=_e(Kd,[["render",Qd]]);function Co(t){return t.scrollHeight>t.clientHeight}const X0="",ec={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(),this.option.showTooltipByDefault&&(this.showTooltip=!0)},updated(){this.$nextTick(()=>{this.option.showTooltipByDefault?this.showTooltip=!0:Co(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===ho&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ps&&(this.option.isChildrenVisible=!0),t.keyCode===hs&&(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){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?ko:Vr},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:Br,IbIconButton:ct},directives:{Tooltip:nr}},tc=["aria-selected","aria-label","id"],nc={key:0,class:"option-label"},rc={key:1,class:"option-label"},ic=["innerHTML"],oc=["innerHTML"],ac={key:2,class:"option-label"};function lc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("select-option"),h=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,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),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",rc,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",nc,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],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,oc)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,ic))],64)):(i.openBlock(),i.createElementBlock("span",ac,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{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(c,{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,tc)),[[p,a.showTooltip?e.option.isDisabled?e.option.disableTooltip:e.option.title:""]])])}const sc=_e(ec,[["render",lc]]);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oo={exports:{}};/*!***************************************************
|
|
10
|
+
`;switch(e){case"bottomCenter":d=d+`left: ${r+s/2-c/2}px!important;
|
|
11
|
+
top: ${a+h+5}px!important;`;break;case"bottomLeft":d=d+`left: ${l-c-s/2+14}px!important;
|
|
12
|
+
top: ${a+h+5}px!important;`;break;case"bottomRight":d=d+`left: ${r+s/2-14}px!important;
|
|
13
|
+
top: ${a+h+5}px!important;`;break;case"topLeft":d=d+`left: ${l-c-s/2+14}px!important;
|
|
14
|
+
top: ${o-p+h-5}px!important;`;break;case"topRight":d=d+`left: ${r+s/2-14}px!important;
|
|
15
|
+
top: ${o-p+h-5}px!important;`;break;case"leftTop":d=d+`left: ${r-c-5}px!important;
|
|
16
|
+
top: ${a-p-f/2+h+12}px!important`;break;case"leftCenter":d=d+`left: ${r-c-5}px!important;
|
|
17
|
+
top: ${a+h-p/2-f/2}px!important;`;break;case"leftBottom":d=d+`left: ${r-c-5}px!important;
|
|
18
|
+
top: ${a+h-f/2-12}px!important;`;break;case"rightTop":d=d+`left: ${l+5}px!important;
|
|
19
|
+
top: ${a-p-f/2+h+12}px!important`;break;case"rightCenter":d=d+`left: ${l+5}px!important;
|
|
20
|
+
top: ${a+h-p/2-f/2}px!important;`;break;case"rightBottom":d=d+`left: ${l+5}px!important;
|
|
21
|
+
top: ${a+h-f/2-12}px!important`;break;default:d=d+`left: ${r+s/2-c/2}px!important;
|
|
22
|
+
top: ${o-p+h-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)},or={mounted(t,n){Co(t,n)},updated(t,n){Oo(t),Co(t,n)},beforeUnmount(t){Oo(t)}},dp="",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:or},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"),f=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]=h=>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]=h=>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]=(...h)=>r.clickHandler&&r.clickHandler(...h)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(f,{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"]]),cp="",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:ir,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"),f=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,(h,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:h.url},i.toDisplayString(h.title),9,Od)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",Ed,i.toDisplayString(h.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(f,{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,(u,_)=>(i.openBlock(),i.createBlock(c,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.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"]]),up="",Nd={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:ct,IbIcon:Be},directives:{Tooltip:or}},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"),f=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?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})),[[f,e.infoText,e.tooltipPosition]]):i.createCommentVNode("",!0)],10,Ad)}const wn=_e(Nd,[["render",Id],["__scopeId","data-v-4e464a62"]]),Vr={text:"text",password:"password",email:"email",number:"number"},fp="",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:nr.bottom},settingsHorizontalPosition:{type:String,default:$n.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:rr},inheritAttrs:!1},Md=["aria-invalid","readonly","disabled","id","autocomplete"],Bd={class:"settings-wrapper"};function Ld(t,n,e,o,a,r){var p,h;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=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(f,{key:1,kind:"ghost",class:"button-clear",disabled: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(f,{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,(h=a.actualValue)==null?void 0:h.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(f,{"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-19017a8f"]]),hp="",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((...f)=>r.onChange&&r.onChange(...f),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["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]=f=>a.checked=f),onClick:n[1]||(n[1]=(...f)=>r.onChange&&r.onChange(...f))},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"]]),pp="",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((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["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]=(...f)=>r.onChange&&r.onChange(...f)),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 mp="",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}},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){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:or}},rc=["aria-selected","aria-label","id"],ic={key:0,class:"option-label"},oc={key:1,class:"option-label"},ac=["innerHTML"],lc=["innerHTML"],sc={key:2,class:"option-label"};function dc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=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,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),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((...h)=>r.onKeydown&&r.onKeydown(...h),["self"])),onFocus:n[4]||(n[4]=h=>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((...h)=>r.onChange&&r.onChange(...h),["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",oc,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",ic,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(h=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],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,lc)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,ac))],64)):(i.openBlock(),i.createElementBlock("span",sc,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,h=>i.withDirectives((i.openBlock(),i.createBlock(f,{key:h.value,option:h,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,h.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 cc=_e(nc,[["render",dc]]);var Re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xo={exports:{}};/*!***************************************************
|
|
23
23
|
* mark.js v8.11.1
|
|
24
24
|
* https://markjs.io/
|
|
25
25
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|
26
26
|
* Released under the MIT license https://git.io/vwTVl
|
|
27
|
-
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(Fe,function(){class e{constructor(r,l=!0,s=[],c=5e3){this.ctx=r,this.iframes=l,this.exclude=s,this.iframesTimeout=c}static matches(r,l){const s=typeof l=="string"?[l]:l,c=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(c){let h=!1;return s.every(p=>!c.call(r,p)||(h=!0,!1)),h}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(c=>c.contains(l)).length>0;r.indexOf(l)!==-1||s||r.push(l)}),r}getIframeContents(r,l,s=()=>{}){let c;try{const h=r.contentWindow;if(c=h.document,!h||!c)throw new Error("iframe inaccessible")}catch{s()}c&&l(c)}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 c=!1,h=null;const p=()=>{if(!c){c=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,l,s))}catch{s()}}};r.addEventListener("load",p),h=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,c=>{s++,this.waitForIframes(c.querySelector("html"),()=>{--s||l()})},c=>{c||l()})}forEachIframe(r,l,s,c=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,f=0;h=Array.prototype.slice.call(h);const d=()=>{--p<=0&&c(f)};p||d(),h.forEach(u=>{e.matches(u,this.exclude)?d():this.onIframeReady(u,_=>{l(u)&&(f++,s(_)),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 c=r.compareDocumentPosition(s),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(c&h&&(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,c){let h=!1,p=!1;return c.forEach((f,d)=>{f.val===s&&(h=d,p=f.handled)}),this.compareNodeIframe(r,l,s)?(h!==!1||p?h===!1||p||(c[h].handled=!0):c.push({val:s,handled:!0}),!0):(h===!1&&c.push({val:s,handled:!1}),!1)}handleOpenIframes(r,l,s,c){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(l,s,c)})})}iterateThroughNodes(r,l,s,c,h){const p=this.createIterator(l,r,c);let f,d,u=[],_=[],v=()=>({prevNode:d,node:f}=this.getIteratorNode(p),f);for(;v();)this.iframes&&this.forEachIframe(l,b=>this.checkIframeFilter(f,d,b,u),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),c)}),_.push(f);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(u,r,s,c),h()}forEachNode(r,l,s,c=()=>{}){const h=this.getContexts();let p=h.length;p||c(),h.forEach(f=>{const d=()=>{this.iterateThroughNodes(r,f,l,s,()=>{--p<=0&&c()})};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",c=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in l)if(l.hasOwnProperty(h)){const p=l[h],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),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}`),c+`(${this.processSynomyms(f)}|${this.processSynomyms(d)})`+c))}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,c)=>{let h=c.charAt(s+1);return/[(|)\\]/.test(h)||h===""?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 c=[];return r.split("").forEach(h=>{s.every(p=>{if(p.indexOf(h)!==-1){if(c.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${l}`),`[${p}]`),c.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const l="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,c=typeof s=="string"?s:s.value,h=typeof s=="string"?[]:s.limiters,p="";switch(h.forEach(f=>{p+=`|${this.escapeStr(f)}`}),c){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(c=>{c.trim()&&l.indexOf(c)===-1&&l.push(c)}):s.trim()&&l.indexOf(s)===-1&&l.push(s)}),{keywords:l.sort((s,c)=>c.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((c,h)=>c.start-h.start).forEach(c=>{let{start:h,end:p,valid:f}=this.callNoMatchOnInvalidRanges(c,s);f&&(c.start=h,c.length=p-h,l.push(c),s=p)}),l}callNoMatchOnInvalidRanges(r,l){let s,c,h=!1;return r&&r.start!==void 0?(c=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&c-l>0&&c-s>0?h=!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:c,valid:h}}checkWhitespaceRanges(r,l,s){let c,h=!0,p=s.length,f=l-p,d=parseInt(r.start,10)-f;return(c=(d=d>p?p:d)+parseInt(r.length,10))>p&&(c=p,this.log(`End range automatically set to the max value of ${p}`)),d<0||c-d<0||d>p||c>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(d,c).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:d,end:c,valid:h}}getTextNodes(r){let l="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,c=>{s.push({start:l.length,end:(l+=c.textContent).length,node:c})},c=>this.matchesExclude(c.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 c=this.opt.element?this.opt.element:"mark",h=r.splitText(l),p=h.splitText(s-l);let f=document.createElement(c);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=h.textContent,h.parentNode.replaceChild(f,h),p}wrapRangeInMappedTextNode(r,l,s,c,h){r.nodes.every((p,f)=>{const d=r.nodes[f+1];if(d===void 0||d.start>l){if(!c(p.node))return!1;const u=l-p.start,_=(s>p.end?p.end:s)-p.start,v=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,u,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=f&&(r.nodes[y].start>0&&y!==f&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,h(p.node.previousSibling,p.start),!(s>p.end))return!1;l=p.end}return!0})}wrapMatches(r,l,s,c,h){const p=l===0?0:l+1;this.getTextNodes(f=>{f.nodes.forEach(d=>{let u;for(d=d.node;(u=r.exec(d.textContent))!==null&&u[p]!=="";){if(!s(u[p],d))continue;let _=u.index;if(p!==0)for(let v=1;v<p;v++)_+=u[v].length;d=this.wrapRangeInTextNode(d,_,_+u[p].length),c(d.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,l,s,c,h){const p=l===0?0:l+1;this.getTextNodes(f=>{let d;for(;(d=r.exec(f.value))!==null&&d[p]!=="";){let u=d.index;if(p!==0)for(let v=1;v<p;v++)u+=d[v].length;const _=u+d[p].length;this.wrapRangeInMappedTextNode(f,u,_,v=>s(d[p],v),(v,b)=>{r.lastIndex=b,c(v)})}h()})}wrapRangeFromIndex(r,l,s,c){this.getTextNodes(h=>{const p=h.value.length;r.forEach((f,d)=>{let{start:u,end:_,valid:v}=this.checkWhitespaceRanges(f,p,h.value);v&&this.wrapRangeInMappedTextNode(h,u,_,b=>l(b,f,h.value.substring(u,_),d),b=>{s(b,f)})}),c()})}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,c="wrapMatches";const h=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(c="wrapMatchesAcrossElements"),this[c](r,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,s),h,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,l){this.opt=l;let s=0,c="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",d=u=>{let _=new RegExp(this.createRegExp(u),`gm${f}`),v=0;this.log(`Searching with expression "${_}"`),this[c](_,1,(b,g)=>this.opt.filter(g,u,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(u),h[p-1]===u?this.opt.done(s):d(h[h.indexOf(u)+1])})};this.opt.acrossElements&&(c="wrapMatchesAcrossElements"),p===0?this.opt.done(s):d(h[0])}markRanges(r,l){this.opt=l;let s=0,c=this.checkRanges(r);c&&c.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(c)),this.wrapRangeFromIndex(c,(h,p,f,d)=>this.opt.filter(h,p,f,d),(h,p)=>{s++,this.opt.each(h,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 c=e.matches(s,l),h=this.matchesExclude(s);return!c||h?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}})})(Oo);var dc=Oo.exports;const cc=rr(dc),Q0="";function Eo(t){return JSON.parse(JSON.stringify(t))}const uc={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 mt()}},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 mt()}},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}},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 n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=Eo(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 cc(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=c=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,c,h),h&&this.marker.mark(h)},{initialOptions:Eo(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",{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(([c,h])=>{l.children=c,Object.assign(e,h),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.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,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},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:qt,IbIconButton:ct,IbIcon:Be,IbDropdown:er,IbInput:jr,List:Br,"select-option":sc},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},fc={key:0,class:"tree-select-empty"},hc={key:1,class:"tree-select-default-empty tree-select-empty"};function pc(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),f=i.resolveComponent("ib-input"),d=i.resolveComponent("ib-dropdown");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]=u=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=u=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,u=>(i.openBlock(),i.createBlock(h,{key:"bookmark"+u.id,option:u,"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))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(f,{key:3,class:"tree-search",ref:"search","show-icon":!0,autocomplete:"off",value:a.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=u=>r.filter(u,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",fc,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",hc,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(h,{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),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(h,{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,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=u=>a.focusedOptionId=u)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,u=>i.renderSlot(t.$slots,a.actualName,{key:e.name+u.value,option:u,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(h,{option:u,"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,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,u.visible]])])),128))],64))]),_: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:u})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":u,"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]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[4]||(n[4]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[5]||(n[5]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[r.hasTriggerContent?i.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:r.selectedKeys.length}):(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(c,{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:u?"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 So=_e(uc,[["render",pc]]),ep="",mc={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:wn,IbSelect:So}},gc={class:"report-limit-selector"};function yc(t,n,e,o,a,r){const l=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",gc,[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 xo=_e(mc,[["render",yc]]),tp="",vc={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:jr,IbLabel:wn,IbLimitSelector:xo,IbTooltip:an}},bc={class:"report-controls"},_c={class:"repot-pagination"},$c={class:"pagination-input"},wc={class:"row-count"},kc={class:"pagination-wrapper"},Cc=["onClick"];function Oc(t,n,e,o,a,r){const l=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),c=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",bc,[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",_c,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",$c,[i.createVNode(c,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",wc,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(h,{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",kc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(d,u)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:u,class:i.normalizeClass(["pagination-item",{active:u+1===a.currentPage,"dots-left":a.indexSpaceLeft===u+1,"dots-right":a.indexSpaceRight===u+1}]),onClick:_=>r.onSelect(u+1)},[i.createElementVNode("button",null,i.toDisplayString(u+1),1)],10,Cc)),[[i.vShow,r.showItem(u+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(h,{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 Ec=_e(vc,[["render",Oc]]),kn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},np="",Sc={props:{states:{type:String,default:kn.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===kn.SUCCESS?"checkmark-circle":this.states===kn.FAILED||this.states===kn.CANCELING||this.states===kn.CANCELED?"close-circle":""}},components:{IbIcon:Be}},To=t=>(i.pushScopeId("data-v-a0217859"),t=t(),i.popScopeId(),t),xc={class:"ib-progress-bar-wrapper"},Tc=["aria-label","aria-valuenow"],Nc=[To(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],Ac=To(()=>i.createElementVNode("div",null,null,-1));function Dc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",xc,[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+"%"})},Nc,12,Tc),Ac],2),i.withDirectives(i.createVNode(l,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const Ic=_e(Sc,[["render",Dc],["__scopeId","data-v-a0217859"]]),Pc={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=[],f=5e3){this.ctx=r,this.iframes=l,this.exclude=s,this.iframesTimeout=f}static matches(r,l){const s=typeof l=="string"?[l]:l,f=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(f){let c=!1;return s.every(p=>!f.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(f=>f.contains(l)).length>0;r.indexOf(l)!==-1||s||r.push(l)}),r}getIframeContents(r,l,s=()=>{}){let f;try{const c=r.contentWindow;if(f=c.document,!c||!f)throw new Error("iframe inaccessible")}catch{s()}f&&l(f)}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 f=!1,c=null;const p=()=>{if(!f){f=!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,f=>{s++,this.waitForIframes(f.querySelector("html"),()=>{--s||l()})},f=>{f||l()})}forEachIframe(r,l,s,f=()=>{}){let c=r.querySelectorAll("iframe"),p=c.length,h=0;c=Array.prototype.slice.call(c);const d=()=>{--p<=0&&f(h)};p||d(),c.forEach(u=>{e.matches(u,this.exclude)?d():this.onIframeReady(u,_=>{l(u)&&(h++,s(_)),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 f=r.compareDocumentPosition(s),c=Node.DOCUMENT_POSITION_PRECEDING;return!!(f&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,f){let c=!1,p=!1;return f.forEach((h,d)=>{h.val===s&&(c=d,p=h.handled)}),this.compareNodeIframe(r,l,s)?(c!==!1||p?c===!1||p||(f[c].handled=!0):f.push({val:s,handled:!0}),!0):(c===!1&&f.push({val:s,handled:!1}),!1)}handleOpenIframes(r,l,s,f){r.forEach(c=>{c.handled||this.getIframeContents(c.val,p=>{this.createInstanceOnIframe(p).forEachNode(l,s,f)})})}iterateThroughNodes(r,l,s,f,c){const p=this.createIterator(l,r,f);let h,d,u=[],_=[],g=()=>({prevNode:d,node:h}=this.getIteratorNode(p),h);for(;g();)this.iframes&&this.forEachIframe(l,b=>this.checkIframeFilter(h,d,b,u),b=>{this.createInstanceOnIframe(b).forEachNode(r,y=>_.push(y),f)}),_.push(h);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(u,r,s,f),c()}forEachNode(r,l,s,f=()=>{}){const c=this.getContexts();let p=c.length;p||f(),c.forEach(h=>{const d=()=>{this.iterateThroughNodes(r,h,l,s,()=>{--p<=0&&f()})};this.iframes?this.waitForIframes(h,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",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let c in l)if(l.hasOwnProperty(c)){const p=l[c],h=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(c):this.escapeStr(c),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);h!==""&&d!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(h)}|${this.escapeStr(d)})`,`gm${s}`),f+`(${this.processSynomyms(h)}|${this.processSynomyms(d)})`+f))}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,f)=>{let c=f.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 f=[];return r.split("").forEach(c=>{s.every(p=>{if(p.indexOf(c)!==-1){if(f.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${l}`),`[${p}]`),f.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const l="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,f=typeof s=="string"?s:s.value,c=typeof s=="string"?[]:s.limiters,p="";switch(c.forEach(h=>{p+=`|${this.escapeStr(h)}`}),f){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(f=>{f.trim()&&l.indexOf(f)===-1&&l.push(f)}):s.trim()&&l.indexOf(s)===-1&&l.push(s)}),{keywords:l.sort((s,f)=>f.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((f,c)=>f.start-c.start).forEach(f=>{let{start:c,end:p,valid:h}=this.callNoMatchOnInvalidRanges(f,s);h&&(f.start=c,f.length=p-c,l.push(f),s=p)}),l}callNoMatchOnInvalidRanges(r,l){let s,f,c=!1;return r&&r.start!==void 0?(f=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&f-l>0&&f-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:f,valid:c}}checkWhitespaceRanges(r,l,s){let f,c=!0,p=s.length,h=l-p,d=parseInt(r.start,10)-h;return(f=(d=d>p?p:d)+parseInt(r.length,10))>p&&(f=p,this.log(`End range automatically set to the max value of ${p}`)),d<0||f-d<0||d>p||f>p?(c=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(d,f).replace(/\s+/g,"")===""&&(c=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:d,end:f,valid:c}}getTextNodes(r){let l="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,f=>{s.push({start:l.length,end:(l+=f.textContent).length,node:f})},f=>this.matchesExclude(f.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 f=this.opt.element?this.opt.element:"mark",c=r.splitText(l),p=c.splitText(s-l);let h=document.createElement(f);return h.setAttribute("data-markjs","true"),this.opt.className&&h.setAttribute("class",this.opt.className),h.textContent=c.textContent,c.parentNode.replaceChild(h,c),p}wrapRangeInMappedTextNode(r,l,s,f,c){r.nodes.every((p,h)=>{const d=r.nodes[h+1];if(d===void 0||d.start>l){if(!f(p.node))return!1;const u=l-p.start,_=(s>p.end?p.end:s)-p.start,g=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,u,_),r.value=g+b,r.nodes.forEach((y,m)=>{m>=h&&(r.nodes[m].start>0&&m!==h&&(r.nodes[m].start-=_),r.nodes[m].end-=_)}),s-=_,c(p.node.previousSibling,p.start),!(s>p.end))return!1;l=p.end}return!0})}wrapMatches(r,l,s,f,c){const p=l===0?0:l+1;this.getTextNodes(h=>{h.nodes.forEach(d=>{let u;for(d=d.node;(u=r.exec(d.textContent))!==null&&u[p]!=="";){if(!s(u[p],d))continue;let _=u.index;if(p!==0)for(let g=1;g<p;g++)_+=u[g].length;d=this.wrapRangeInTextNode(d,_,_+u[p].length),f(d.previousSibling),r.lastIndex=0}}),c()})}wrapMatchesAcrossElements(r,l,s,f,c){const p=l===0?0:l+1;this.getTextNodes(h=>{let d;for(;(d=r.exec(h.value))!==null&&d[p]!=="";){let u=d.index;if(p!==0)for(let g=1;g<p;g++)u+=d[g].length;const _=u+d[p].length;this.wrapRangeInMappedTextNode(h,u,_,g=>s(d[p],g),(g,b)=>{r.lastIndex=b,f(g)})}c()})}wrapRangeFromIndex(r,l,s,f){this.getTextNodes(c=>{const p=c.value.length;r.forEach((h,d)=>{let{start:u,end:_,valid:g}=this.checkWhitespaceRanges(h,p,c.value);g&&this.wrapRangeInMappedTextNode(c,u,_,b=>l(b,h,c.value.substring(u,_),d),b=>{s(b,h)})}),f()})}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,f="wrapMatches";const c=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),this[f](r,this.opt.ignoreGroups,(p,h)=>this.opt.filter(h,p,s),c,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,l){this.opt=l;let s=0,f="wrapMatches";const{keywords:c,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),h=this.opt.caseSensitive?"":"i",d=u=>{let _=new RegExp(this.createRegExp(u),`gm${h}`),g=0;this.log(`Searching with expression "${_}"`),this[f](_,1,(b,y)=>this.opt.filter(y,u,s,g),b=>{g++,s++,this.opt.each(b)},()=>{g===0&&this.opt.noMatch(u),c[p-1]===u?this.opt.done(s):d(c[c.indexOf(u)+1])})};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),p===0?this.opt.done(s):d(c[0])}markRanges(r,l){this.opt=l;let s=0,f=this.checkRanges(r);f&&f.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(f)),this.wrapRangeFromIndex(f,(c,p,h,d)=>this.opt.filter(c,p,h,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 f=e.matches(s,l),c=this.matchesExclude(s);return!f||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 uc=xo.exports;const fc=kn(uc),hc={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"]},gp="";function To(t){return JSON.parse(JSON.stringify(t))}const pc={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],mixins:[hc],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:{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}},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 n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=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 fc(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=f=>{this.marker.unmark();const c=this.filterString.toLowerCase().trim();this.filterFunc.call(this,f,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(([f,c])=>{l.children=f,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.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,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},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:rr,IbInput:qr,List:Rr,"select-option":cc},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},mc={key:0,class:"tree-select-empty"},gc={key:1,class:"tree-select-default-empty tree-select-empty"},yc={key:4,ref:"infinityLoader"};function vc(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("select-option"),p=i.resolveComponent("list"),h=i.resolveComponent("ib-input"),d=i.resolveComponent("ib-dropdown");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]=u=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=u=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,u=>(i.openBlock(),i.createBlock(c,{key:"bookmark"+u.id,option:u,"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))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(h,{key:3,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]=u=>r.filter(u,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","debounce","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",mc,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",gc,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(c,{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),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(c,{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,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=u=>a.focusedOptionId=u)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,u=>i.renderSlot(t.$slots,a.actualName,{key:e.name+u.value,option:u,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(c,{option:u,"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,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,u.visible]])])),128))],64)),t.infiniteLoader?(i.openBlock(),i.createElementBlock("div",yc,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:u})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":u,"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]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[4]||(n[4]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[5]||(n[5]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[r.hasTriggerContent?i.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:r.selectedKeys.length}):(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(f,{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:u?"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(pc,[["render",vc]]),yp="",bc={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:wn,IbSelect:No}},_c={class:"report-limit-selector"};function $c(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(bc,[["render",$c]]),vp="",wc={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:wn,IbLimitSelector:Ao,IbTooltip:an}},kc={class:"report-controls"},Cc={class:"repot-pagination"},Oc={class:"pagination-input"},Ec={class:"row-count"},Sc={class:"pagination-wrapper"},xc=["onClick"];function Tc(t,n,e,o,a,r){const l=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),f=i.resolveComponent("ib-input"),c=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),h=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",kc,[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",Cc,[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",Oc,[i.createVNode(f,{id:"goToPage",type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ec,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(h,{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",Sc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(d,u)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:u,class:i.normalizeClass(["pagination-item",{active:u+1===a.currentPage,"dots-left":a.indexSpaceLeft===u+1,"dots-right":a.indexSpaceRight===u+1}]),onClick:_=>r.onSelect(u+1)},[i.createElementVNode("button",null,i.toDisplayString(u+1),1)],10,xc)),[[i.vShow,r.showItem(u+1)]])),128))]),i.createVNode(h,{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 Nc=_e(wc,[["render",Tc]]),Cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},bp="",Ac={props:{states:{type:String,default:Cn.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===Cn.SUCCESS?"checkmark-circle":this.states===Cn.FAILED||this.states===Cn.CANCELING||this.states===Cn.CANCELED?"close-circle":""}},components:{IbIcon:Be}},Do=t=>(i.pushScopeId("data-v-a0217859"),t=t(),i.popScopeId(),t),Dc={class:"ib-progress-bar-wrapper"},Ic=["aria-label","aria-valuenow"],Pc=[Do(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],Mc=Do(()=>i.createElementVNode("div",null,null,-1));function Bc(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Dc,[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+"%"})},Pc,12,Ic),Mc],2),i.withDirectives(i.createVNode(l,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const Lc=_e(Ac,[["render",Bc],["__scopeId","data-v-a0217859"]]),Rc={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
28
|
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
29
29
|
</svg>
|
|
30
30
|
`,success:`
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
56
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"/>
|
|
57
57
|
</svg>
|
|
58
|
-
`},ip="",Mc={props:{type:{type:String,default:"success"}},data(){return{icons:Pc}}},Bc={class:"status-indicator"},Lc=["innerHTML"];function Rc(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Bc,[i.createElementVNode("div",{class:i.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,Lc),i.renderSlot(t.$slots,"default",{},void 0,!0)])}const jc=_e(Mc,[["render",Rc],["__scopeId","data-v-e696394e"]]),op="",ap="",Vc={name:"IbPanel",mixins:[ji],props:{showOpenButton:{type:Boolean,default:!1},isOpen:{type:Boolean,default:!0},error:{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},emits:["update:isOpen"]},Fc=t=>(i.pushScopeId("data-v-f28ec7e6"),t=t(),i.popScopeId(),t),qc={class:"panel-head"},Hc={class:"head-title"},zc=Fc(()=>i.createElementVNode("div",{class:"divider"},null,-1)),Uc={class:"head-content"},Kc={class:"panel-body"};function Gc(t,n,e,o,a,r){const l=i.resolveComponent("icon"),s=i.resolveComponent("icon-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-panel",{"panel-error":e.error}])},[i.createElementVNode("div",qc,[i.createElementVNode("div",Hc,[i.renderSlot(t.$slots,"title",{},void 0,!0)]),zc,i.createElementVNode("div",Uc,[i.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showOpenButton?(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"])):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",Kc,[i.renderSlot(t.$slots,"body",{},void 0,!0)],512),[[i.vShow,a.isOpenVal]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Wc=_e(Vc,[["render",Gc],["__scopeId","data-v-f28ec7e6"]]),lp="",Yc={name:"IbInputGroup",props:{supportText:{type:String,default:""},disable:{type:Boolean,default:!1}}},Zc={key:0,class:"support-text"};function Jc(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-form-group",{disable:e.disable}])},[i.renderSlot(t.$slots,"default"),e.supportText.length?(i.openBlock(),i.createElementBlock("p",Zc,i.toDisplayString(e.supportText),1)):i.createCommentVNode("",!0)],2)}const Xc=_e(Yc,[["render",Jc]]),sp="",Fr={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:wn,IbAlert:qt}},No=()=>{i.useCssVars(t=>({f99cce84:t.height}))},Ao=Fr.setup;Fr.setup=Ao?(t,n)=>(No(),Ao(t,n)):No;const Qc={class:"ib-checkbox-group-content"};function eu(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",Qc,[i.renderSlot(t.$slots,"default")])],2)}const tu=_e(Fr,[["render",eu]]),dp="",nu={name:"IbRadio",props:{modelValue:"",label:String,error:{type:Boolean,default:!1},name:{type:String},id:{type:String,default(){return mt()}},value:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{checked:!1,uid:mt()}},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(t){this.$emit("update:modelValue",t.target.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}}},ru=t=>(i.pushScopeId("data-v-1e435f06"),t=t(),i.popScopeId(),t),iu=["for","aria-checked"],ou=["name","id","value","checked","disabled"],au=ru(()=>i.createElementVNode("span",{class:"ib-radio-input"},null,-1)),lu={key:0,class:"ib-radio-label"};function su(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]=(...c)=>r.checkHandler&&r.checkHandler(...c))},null,40,ou),i.createElementVNode("span",{class:i.normalizeClass(["ib-radio-body",{"without-text":!((l=e.label)!=null&&l.length)}])},[au,(s=e.label)!=null&&s.length?(i.openBlock(),i.createElementBlock("span",lu,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0)],2)],10,iu)}const du=_e(nu,[["render",su],["__scopeId","data-v-1e435f06"]]),cp="",cu={props:{characterLimit:{type:[String,Number],required:!0},characterLength:{type:[String,Number],required:!0}}},uu={class:"character-count"},fu={key:0,class:"val-limit"},hu={class:"val-length"},pu={class:"val-limit"},mu={key:3,class:"val-length val-limited"};function gu(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",uu,[e.characterLength?e.characterLimit>e.characterLength?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("p",hu,i.toDisplayString(e.characterLimit-e.characterLength),1),i.createTextVNode(" / "),i.createElementVNode("p",pu,i.toDisplayString(e.characterLimit),1)],64)):e.characterLimit===e.characterLength?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("0")],64)):(i.openBlock(),i.createElementBlock("p",mu,i.toDisplayString(e.characterLimit-e.characterLength),1)):(i.openBlock(),i.createElementBlock("p",fu,"Max "+i.toDisplayString(e.characterLimit),1))])}const Do=_e(cu,[["render",gu],["__scopeId","data-v-725f21a3"]]),up="",yu={name:"IbTextarea",props:{disabled:{type:Boolean,default:!1},id:{type:String,default(){return mt()}},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:qt,IbCharacterCount:Do},emits:["input","blur","update:value"],inheritAttrs:!1},vu=["disabled"];function bu(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}])},[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]=c=>a.val=c),onInput:n[1]||(n[1]=(...c)=>r.onInput&&r.onInput(...c)),onBlur:n[2]||(n[2]=(...c)=>r.onBlur&&r.onBlur(...c)),class:["ib-textarea",r.classes],disabled:e.disabled}),null,16,vu),[[i.vModelText,a.val]])],2)}const _u=_e(yu,[["render",bu],["__scopeId","data-v-f5cb6ffd"]]);var qr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],sn={_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},Cn={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 Io(t,n){var e;return function(){var o=this,a=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(o,a)},n)}}var Hr=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 ir(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Po(t,n){if(n(t))return t;if(t.parentNode)return Po(t.parentNode,n)}function or(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 zr=function(){},ar=function(t,n,e){return e.months[n?"shorthand":"longhand"][t]},$u={D:zr,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:zr,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:zr,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})"},On={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[On.w(t,n,e)]},F:function(t,n,e){return ar(On.n(t,n,e)-1,!1,n)},G:function(t,n,e){return ot(On.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 ar(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)}},Mo=function(t){var n=t.config,e=n===void 0?sn:n,o=t.l10n,a=o===void 0?Cn:o,r=t.isMobile,l=r===void 0?!1:r;return function(s,c,h){var p=h||a;return e.formatDate!==void 0&&!l?e.formatDate(s,c,p):c.split("").map(function(f,d,u){return On[f]&&u[d-1]!=="\\"?On[f](s,p,e):f!=="\\"?f:""}).join("")}},Ur=function(t){var n=t.config,e=n===void 0?sn:n,o=t.l10n,a=o===void 0?Cn:o;return function(r,l,s,c){if(!(r!==0&&!r)){var h=c||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||sn).dateFormat,u=String(r).trim();if(u==="today")p=new Date,s=!0;else if(e&&e.parseDate)p=e.parseDate(r,d);else if(/Z$/.test(u)||/GMT$/.test(u))p=new Date(r);else{for(var _=void 0,v=[],b=0,g=0,y="";b<d.length;b++){var w=d[b],m=w==="\\",k=d[b-1]==="\\"||m;if(Wt[w]&&!k){y+=Wt[w];var T=new RegExp(y).exec(r);T&&(_=!0)&&v[w!=="Y"?"push":"unshift"]({fn:$u[w],val:T[++g]})}else m||(y+=".")}p=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),v.forEach(function(S){var x=S.fn,P=S.val;return p=x(p,P,h)||p}),p=_?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 wu=function(t,n,e){return t>Math.min(n,e)&&t<Math.max(n,e)},Kr=function(t,n,e){return t*3600+n*60+e},ku=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},Cu={DAY:864e5};function Gr(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(),c=t.maxDate.getMinutes();n=Math.min(n,s),n===s&&(e=Math.min(c,e)),n===s&&e===c&&(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(c){return t[c]=s[c]})},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)},Bo=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},Ou=300;function Eu(t,n){var e={config:We(We({},sn),Re.defaultConfig),l10n:Cn};e.parseDate=Ur({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=v,e._setHoursFromDate=d,e._positionCalendar=te,e.changeMonth=A,e.changeYear=z,e.clear=j,e.close=V,e.onMouseOver=he,e._createElement=Ae,e.createDay=T,e.destroy=W,e.isEnabled=Z,e.jumpToDate=y,e.updateValue=rt,e.open=ke,e.redraw=re,e.set=He,e.setDate=Ne,e.toggle=Jt;function o(){e.utils={getDaysInMonth:function(I,L){return I===void 0&&(I=e.currentMonth),L===void 0&&(L=e.currentYear),I===1&&(L%4===0&&L%100!==0||L%400===0)?29:e.l10n.daysInMonth[I]}}}function a(){e.element=e.input=t,e.isOpen=!1,Le(),Q(),nt(),Ee(),o(),e.isMobile||k(),g(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&d(e.config.noCalendar?e.latestSelectedDateObj:void 0),rt(!1)),s();var I=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&I&&te(),De("onReady")}function r(){var I;return((I=e.calendarContainer)===null||I===void 0?void 0:I.getRootNode()).activeElement||document.activeElement}function l(I){return I.bind(e)}function s(){var I=e.config;I.weekNumbers===!1&&I.showMonths===1||I.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 L=(e.days.offsetWidth+1)*I.showMonths;e.daysContainer.style.width=L+"px",e.calendarContainer.style.width=L+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function c(I){if(e.selectedDates.length===0){var L=e.config.minDate===void 0||ft(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),K=Gr(e.config);L.setHours(K.hours,K.minutes,K.seconds,L.getMilliseconds()),e.selectedDates=[L],e.latestSelectedDateObj=L}I!==void 0&&I.type!=="blur"&&Xt(I);var X=e._input.value;f(),rt(),e._input.value!==X&&e._debouncedChange()}function h(I,L){return I%12+12*pt(L===e.l10n.amPM[1])}function p(I){switch(I%24){case 0:case 12:return 12;default:return I%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var I=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,L=(parseInt(e.minuteElement.value,10)||0)%60,K=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(I=h(I,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=Kr(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),ye=Kr(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Kr(I,L,K);if(ue>ye&&ue<se){var Ce=ku(se);I=Ce[0],L=Ce[1],K=Ce[2]}}else{if(oe){var ce=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;I=Math.min(I,ce.getHours()),I===ce.getHours()&&(L=Math.min(L,ce.getMinutes())),L===ce.getMinutes()&&(K=Math.min(K,ce.getSeconds()))}if(X){var ge=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;I=Math.max(I,ge.getHours()),I===ge.getHours()&&L<ge.getMinutes()&&(L=ge.getMinutes()),L===ge.getMinutes()&&(K=Math.max(K,ge.getSeconds()))}}u(I,L,K)}}function d(I){var L=I||e.latestSelectedDateObj;L&&L instanceof Date&&u(L.getHours(),L.getMinutes(),L.getSeconds())}function u(I,L,K){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(I%24,L,K||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=ot(e.config.time_24hr?I:(12+I)%12+12*pt(I%12===0)),e.minuteElement.value=ot(L),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[pt(I>=12)]),e.secondElement!==void 0&&(e.secondElement.value=ot(K)))}function _(I){var L=ut(I),K=parseInt(L.value)+(I.delta||0);(K/1e3>1||I.key==="Enter"&&!/[^\d]/.test(K.toString()))&&z(K)}function v(I,L,K,X){if(L instanceof Array)return L.forEach(function(oe){return v(I,oe,K,X)});if(I instanceof Array)return I.forEach(function(oe){return v(oe,L,K,X)});I.addEventListener(L,K,X),e._handlers.push({remove:function(){return I.removeEventListener(L,K,X)}})}function b(){De("onChange")}function g(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(K){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+K+"]"),function(X){return v(X,"click",e[K])})}),e.isMobile){An();return}var I=Io(ve,50);if(e._debouncedChange=Io(b,Ou),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&v(e.daysContainer,"mouseover",function(K){e.config.mode==="range"&&he(ut(K))}),v(e._input,"keydown",de),e.calendarContainer!==void 0&&v(e.calendarContainer,"keydown",de),!e.config.inline&&!e.config.static&&v(window,"resize",I),window.ontouchstart!==void 0?v(window.document,"touchstart",B):v(window.document,"mousedown",B),v(window.document,"focus",B,{capture:!0}),e.config.clickOpens===!0&&(v(e._input,"focus",e.open),v(e._input,"click",e.open)),e.daysContainer!==void 0&&(v(e.monthNav,"click",Pt),v(e.monthNav,["keyup","increment"],_),v(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var L=function(K){return ut(K).select()};v(e.timeContainer,["increment"],c),v(e.timeContainer,"blur",c,{capture:!0}),v(e.timeContainer,"click",w),v([e.hourElement,e.minuteElement],["focus","click"],L),e.secondElement!==void 0&&v(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&v(e.amPM,"click",function(K){c(K)})}e.config.allowInput&&v(e._input,"blur",ne)}function y(I,L){var K=I!==void 0?e.parseDate(I):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{K!==void 0&&(e.currentYear=K.getFullYear(),e.currentMonth=K.getMonth())}catch(se){se.message="Invalid date supplied: "+K,e.config.errorHandler(se)}L&&e.currentYear!==X&&(De("onYearChange"),N()),L&&(e.currentYear!==X||e.currentMonth!==oe)&&De("onMonthChange"),e.redraw()}function w(I){var L=ut(I);~L.className.indexOf("arrow")&&m(I,L.classList.contains("arrowUp")?1:-1)}function m(I,L,K){var X=I&&ut(I),oe=K||X&&X.parentNode&&X.parentNode.firstChild,se=Ht("increment");se.delta=L,oe&&oe.dispatchEvent(se)}function k(){var I=window.document.createDocumentFragment();if(e.calendarContainer=Ae("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(I.appendChild(G()),e.innerContainer=Ae("div","flatpickr-innerContainer"),e.config.weekNumbers){var L=R(),K=L.weekWrapper,X=L.weekNumbers;e.innerContainer.appendChild(K),e.weekNumbers=X,e.weekWrapper=K}e.rContainer=Ae("div","flatpickr-rContainer"),e.rContainer.appendChild(ie()),e.daysContainer||(e.daysContainer=Ae("div","flatpickr-days"),e.daysContainer.tabIndex=-1),O(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),I.appendChild(e.innerContainer)}e.config.enableTime&&I.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(I);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(I,L,K,X){var oe=Z(L,!0),se=Ae("span",I,L.getDate().toString());return se.dateObj=L,se.$i=X,se.setAttribute("aria-label",e.formatDate(L,e.config.ariaDateFormat)),I.indexOf("hidden")===-1&&ft(L,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),oe?(se.tabIndex=-1,kt(L)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(Qe(se,"startRange",e.selectedDates[0]&&ft(L,e.selectedDates[0],!0)===0),Qe(se,"endRange",e.selectedDates[1]&&ft(L,e.selectedDates[1],!0)===0),I==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&It(L)&&!kt(L)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&I!=="prevMonthDay"&&X%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(L)+"</span>"),De("onDayCreate",se),se}function S(I){I.focus(),e.config.mode==="range"&&he(I)}function x(I){for(var L=I>0?0:e.config.showMonths-1,K=I>0?e.config.showMonths:-1,X=L;X!=K;X+=I)for(var oe=e.daysContainer.children[X],se=I>0?0:oe.children.length-1,ye=I>0?oe.children.length:-1,ue=se;ue!=ye;ue+=I){var Ce=oe.children[ue];if(Ce.className.indexOf("hidden")===-1&&Z(Ce.dateObj))return Ce}}function P(I,L){for(var K=I.className.indexOf("Month")===-1?I.dateObj.getMonth():e.currentMonth,X=L>0?e.config.showMonths:-1,oe=L>0?1:-1,se=K-e.currentMonth;se!=X;se+=oe)for(var ye=e.daysContainer.children[se],ue=K-e.currentMonth===se?I.$i+L:L<0?ye.children.length-1:0,Ce=ye.children.length,ce=ue;ce>=0&&ce<Ce&&ce!=(L>0?Ce:-1);ce+=oe){var ge=ye.children[ce];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj)&&Math.abs(I.$i-ce)>=Math.abs(L))return S(ge)}e.changeMonth(oe),E(x(oe),0)}function E(I,L){var K=r(),X=J(K||document.body),oe=I!==void 0?I:X?K:e.selectedDateElem!==void 0&&J(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&J(e.todayDateElem)?e.todayDateElem:x(L>0?1:-1);oe===void 0?e._input.focus():X?P(oe,L):S(oe)}function C(I,L){for(var K=(new Date(I,L,1).getDay()-e.l10n.firstDayOfWeek+7)%7,X=e.utils.getDaysInMonth((L-1+12)%12,I),oe=e.utils.getDaysInMonth(L,I),se=window.document.createDocumentFragment(),ye=e.config.showMonths>1,ue=ye?"prevMonthDay hidden":"prevMonthDay",Ce=ye?"nextMonthDay hidden":"nextMonthDay",ce=X+1-K,ge=0;ce<=X;ce++,ge++)se.appendChild(T("flatpickr-day "+ue,new Date(I,L-1,ce),ce,ge));for(ce=1;ce<=oe;ce++,ge++)se.appendChild(T("flatpickr-day",new Date(I,L,ce),ce,ge));for(var xe=oe+1;xe<=42-K&&(e.config.showMonths===1||ge%7!==0);xe++,ge++)se.appendChild(T("flatpickr-day "+Ce,new Date(I,L+1,xe%oe),xe,ge));var Pe=Ae("div","dayContainer");return Pe.appendChild(se),Pe}function O(){if(e.daysContainer!==void 0){ir(e.daysContainer),e.weekNumbers&&ir(e.weekNumbers);for(var I=document.createDocumentFragment(),L=0;L<e.config.showMonths;L++){var K=new Date(e.currentYear,e.currentMonth,1);K.setMonth(e.currentMonth+L),I.appendChild(C(K.getFullYear(),K.getMonth()))}e.daysContainer.appendChild(I),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 I=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 L=0;L<12;L++)if(I(L)){var K=Ae("option","flatpickr-monthDropdown-month");K.value=new Date(e.currentYear,L).getMonth().toString(),K.textContent=ar(L,e.config.shorthandCurrentMonth,e.l10n),K.tabIndex=-1,e.currentMonth===L&&(K.selected=!0),e.monthsDropdownContainer.appendChild(K)}}}function M(){var I=Ae("div","flatpickr-month"),L=window.document.createDocumentFragment(),K;e.config.showMonths>1||e.config.monthSelectorType==="static"?K=Ae("span","cur-month"):(e.monthsDropdownContainer=Ae("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),v(e.monthsDropdownContainer,"change",function(ye){var ue=ut(ye),Ce=parseInt(ue.value,10);e.changeMonth(Ce-e.currentMonth),De("onMonthChange")}),N(),K=e.monthsDropdownContainer);var X=or("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(K),se.appendChild(X),L.appendChild(se),I.appendChild(L),{container:I,yearElement:oe,monthElement:K}}function F(){ir(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var I=e.config.showMonths;I--;){var L=M();e.yearElements.push(L.yearElement),e.monthElements.push(L.monthElement),e.monthNav.appendChild(L.container)}e.monthNav.appendChild(e.nextMonthNav)}function G(){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,F(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(I){e.__hidePrevMonthArrow!==I&&(Qe(e.prevMonthNav,"flatpickr-disabled",I),e.__hidePrevMonthArrow=I)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(I){e.__hideNextMonthArrow!==I&&(Qe(e.nextMonthNav,"flatpickr-disabled",I),e.__hideNextMonthArrow=I)}}),e.currentYearElement=e.yearElements[0],Ye(),e.monthNav}function Y(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var I=Gr(e.config);e.timeContainer=Ae("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var L=Ae("span","flatpickr-time-separator",":"),K=or("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=K.getElementsByTagName("input")[0];var X=or("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?I.hours:p(I.hours)),e.minuteElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():I.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(K),e.timeContainer.appendChild(L),e.timeContainer.appendChild(X),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var oe=or("flatpickr-second");e.secondElement=oe.getElementsByTagName("input")[0],e.secondElement.value=ot(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():I.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 ie(){e.weekdayContainer?ir(e.weekdayContainer):e.weekdayContainer=Ae("div","flatpickr-weekdays");for(var I=e.config.showMonths;I--;){var L=Ae("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(L)}return U(),e.weekdayContainer}function U(){if(e.weekdayContainer){var I=e.l10n.firstDayOfWeek,L=Bo(e.l10n.weekdays.shorthand);I>0&&I<L.length&&(L=Bo(L.splice(I,L.length),L.splice(0,I)));for(var K=e.config.showMonths;K--;)e.weekdayContainer.children[K].innerHTML=`
|
|
58
|
+
`},$p="",jc={props:{type:{type:String,default:"success"}},data(){return{icons:Rc}}},Vc={class:"status-indicator"},qc=["innerHTML"];function Fc(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Vc,[i.createElementVNode("div",{class:i.normalizeClass(["status-indicator-icon",e.type]),innerHTML:a.icons[e.type]},null,10,qc),i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Hc=_e(jc,[["render",Fc],["__scopeId","data-v-e696394e"]]),wp="",kp="",zc={name:"IbPanel",mixins:[Fi],props:{showOpenButton:{type:Boolean,default:!1},isOpen:{type:Boolean,default:!0},error:{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},emits:["update:isOpen"]},Uc=t=>(i.pushScopeId("data-v-f28ec7e6"),t=t(),i.popScopeId(),t),Kc={class:"panel-head"},Gc={class:"head-title"},Wc=Uc(()=>i.createElementVNode("div",{class:"divider"},null,-1)),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");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)]),Wc,i.createElementVNode("div",Yc,[i.renderSlot(t.$slots,"head-content",{},void 0,!0)]),e.showOpenButton?(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]=f=>a.isOpenVal=!a.isOpenVal)},{default:i.withCtx(()=>[i.createVNode(l,{name:"chevron-down-outline"})]),_:1},8,["class"])):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(zc,[["render",Jc],["__scopeId","data-v-f28ec7e6"]]),Cp="",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"]]),Op="",ou={name:"IbInputGroup",props:{supportText:{type:String,default:""},disable:{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",{disable:e.disable}])},[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]]),Ep="",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:wn,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]]),Sp="",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]=(...f)=>r.checkHandler&&r.checkHandler(...f))},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"]]),xp="",_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"]]),Tp="",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"];function Tu(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}])},[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]=f=>a.val=f),onInput:n[1]||(n[1]=(...f)=>r.onInput&&r.onInput(...f)),onBlur:n[2]||(n[2]=(...f)=>r.onBlur&&r.onBlur(...f)),class:["ib-textarea",r.classes],disabled:e.disabled}),null,16,xu),[[i.vModelText,a.val]])],2)}const Nu=_e(Su,[["render",Tu],["__scopeId","data-v-f5cb6ffd"]]);var Ur=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],sn={_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},On={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]},Au={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})"},En={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[En.w(t,n,e)]},F:function(t,n,e){return sr(En.n(t,n,e)-1,!1,n)},G:function(t,n,e){return ot(En.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?sn:n,o=t.l10n,a=o===void 0?On:o,r=t.isMobile,l=r===void 0?!1:r;return function(s,f,c){var p=c||a;return e.formatDate!==void 0&&!l?e.formatDate(s,f,p):f.split("").map(function(h,d,u){return En[h]&&u[d-1]!=="\\"?En[h](s,p,e):h!=="\\"?h:""}).join("")}},Wr=function(t){var n=t.config,e=n===void 0?sn:n,o=t.l10n,a=o===void 0?On:o;return function(r,l,s,f){if(!(r!==0&&!r)){var c=f||a,p,h=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||sn).dateFormat,u=String(r).trim();if(u==="today")p=new Date,s=!0;else if(e&&e.parseDate)p=e.parseDate(r,d);else if(/Z$/.test(u)||/GMT$/.test(u))p=new Date(r);else{for(var _=void 0,g=[],b=0,y=0,m="";b<d.length;b++){var w=d[b],v=w==="\\",k=d[b-1]==="\\"||v;if(Wt[w]&&!k){m+=Wt[w];var T=new RegExp(m).exec(r);T&&(_=!0)&&g[w!=="Y"?"push":"unshift"]({fn:Au[w],val:T[++y]})}else v||(m+=".")}p=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),g.forEach(function(S){var x=S.fn,B=S.val;return p=x(p,B,c)||p}),p=_?p:void 0}}if(!(p instanceof Date&&!isNaN(p.getTime()))){e.errorHandler(new Error("Invalid date provided: "+h));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 Du=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},Iu=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},Pu={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(),f=t.maxDate.getMinutes();n=Math.min(n,s),n===s&&(e=Math.min(f,e)),n===s&&e===f&&(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(f){return t[f]=s[f]})},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},Mu=300;function Bu(t,n){var e={config:We(We({},sn),je.defaultConfig),l10n:On};e.parseDate=Wr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=g,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=m,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 f(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;h(),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 h(){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=Iu(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()))}}u(M,j,G)}}function d(M){var j=M||e.latestSelectedDateObj;j&&j instanceof Date&&u(j.getHours(),j.getMinutes(),j.getSeconds())}function u(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 _(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 g(M,j,G,X){if(j instanceof Array)return j.forEach(function(oe){return g(M,oe,G,X)});if(M instanceof Array)return M.forEach(function(oe){return g(oe,j,G,X)});M.addEventListener(j,G,X),e._handlers.push({remove:function(){return M.removeEventListener(j,G,X)}})}function b(){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 g(X,"click",e[G])})}),e.isMobile){Pn();return}var M=Mo(ve,50);if(e._debouncedChange=Mo(b,Mu),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&g(e.daysContainer,"mouseover",function(G){e.config.mode==="range"&&he(ut(G))}),g(e._input,"keydown",de),e.calendarContainer!==void 0&&g(e.calendarContainer,"keydown",de),!e.config.inline&&!e.config.static&&g(window,"resize",M),window.ontouchstart!==void 0?g(window.document,"touchstart",L):g(window.document,"mousedown",L),g(window.document,"focus",L,{capture:!0}),e.config.clickOpens===!0&&(g(e._input,"focus",e.open),g(e._input,"click",e.open)),e.daysContainer!==void 0&&(g(e.monthNav,"click",Pt),g(e.monthNav,["keyup","increment"],_),g(e.daysContainer,"click",me)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var j=function(G){return ut(G).select()};g(e.timeContainer,["increment"],f),g(e.timeContainer,"blur",f,{capture:!0}),g(e.timeContainer,"click",w),g([e.hourElement,e.minuteElement],["focus","click"],j),e.secondElement!==void 0&&g(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&g(e.amPM,"click",function(G){f(G)})}e.config.allowInput&&g(e._input,"blur",ne)}function m(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),g(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=`
|
|
59
59
|
<span class='flatpickr-weekday'>
|
|
60
|
-
`+
|
|
60
|
+
`+j.join("</span><span class='flatpickr-weekday'>")+`
|
|
61
61
|
</span>
|
|
62
|
-
`}}function R(){e.calendarContainer.classList.add("hasWeeks");var I=Ae("div","flatpickr-weekwrapper");I.appendChild(Ae("span","flatpickr-weekday",e.l10n.weekAbbreviation));var L=Ae("div","flatpickr-weeks");return I.appendChild(L),{weekWrapper:I,weekNumbers:L}}function A(I,L){L===void 0&&(L=!0);var K=L?I:I-e.currentMonth;K<0&&e._hidePrevMonthArrow===!0||K>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=K,(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 j(I,L){if(I===void 0&&(I=!0),L===void 0&&(L=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,L===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var K=Gr(e.config),X=K.hours,oe=K.minutes,se=K.seconds;u(X,oe,se)}e.redraw(),I&&De("onChange")}function V(){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 W(){e.config!==void 0&&De("onDestroy");for(var I=e._handlers.length;I--;)e._handlers[I].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 L=e.calendarContainer.parentNode;if(L.lastChild&&L.removeChild(L.lastChild),L.parentNode){for(;L.firstChild;)L.parentNode.insertBefore(L.firstChild,L);L.parentNode.removeChild(L)}}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(K){try{delete e[K]}catch{}})}function H(I){return e.calendarContainer.contains(I)}function B(I){if(e.isOpen&&!e.config.inline){var L=ut(I),K=H(L),X=L===e.input||L===e.altInput||e.element.contains(L)||I.path&&I.path.indexOf&&(~I.path.indexOf(e.input)||~I.path.indexOf(e.altInput)),oe=!X&&!K&&!H(I.relatedTarget),se=!e.config.ignoredFocusElements.some(function(ye){return ye.contains(L)});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&&c(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function z(I){if(!(!I||e.config.minDate&&I<e.config.minDate.getFullYear()||e.config.maxDate&&I>e.config.maxDate.getFullYear())){var L=I,K=e.currentYear!==L;e.currentYear=L||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)),K&&(e.redraw(),De("onYearChange"),N())}}function Z(I,L){var K;L===void 0&&(L=!0);var X=e.parseDate(I,void 0,L);if(e.config.minDate&&X&&ft(X,e.config.minDate,L!==void 0?L:!e.minDateHasTime)<0||e.config.maxDate&&X&&ft(X,e.config.maxDate,L!==void 0?L:!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=(K=e.config.enable)!==null&&K!==void 0?K: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(I){return e.daysContainer!==void 0?I.className.indexOf("hidden")===-1&&I.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(I):!1}function ne(I){var L=I.target===e._input,K=e._input.value.trimEnd()!==Ct();L&&K&&!(I.relatedTarget&&H(I.relatedTarget))&&e.setDate(e._input.value,!0,I.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function de(I){var L=ut(I),K=e.config.wrap?t.contains(L):L===e._input,X=e.config.allowInput,oe=e.isOpen&&(!X||!K),se=e.config.inline&&K&&!X;if(I.keyCode===13&&K){if(X)return e.setDate(e._input.value,!0,L===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),L.blur();e.open()}else if(H(L)||oe||se){var ye=!!e.timeContainer&&e.timeContainer.contains(L);switch(I.keyCode){case 13:ye?(I.preventDefault(),c(),$e()):me(I);break;case 27:I.preventDefault(),$e();break;case 8:case 46:K&&!e.config.allowInput&&(I.preventDefault(),e.clear());break;case 37:case 39:if(!ye&&!K){I.preventDefault();var ue=r();if(e.daysContainer!==void 0&&(X===!1||ue&&J(ue))){var Ce=I.keyCode===39?1:-1;I.ctrlKey?(I.stopPropagation(),A(Ce),E(x(1),0)):E(void 0,Ce)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:I.preventDefault();var ce=I.keyCode===40?1:-1;e.daysContainer&&L.$i!==void 0||L===e.input||L===e.altInput?I.ctrlKey?(I.stopPropagation(),z(e.currentYear-ce),E(x(1),0)):ye||E(void 0,ce*7):L===e.currentYearElement?z(e.currentYear-ce):e.config.enableTime&&(!ye&&e.hourElement&&e.hourElement.focus(),c(I),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(L);if(xe!==-1){var Pe=ge[xe+(I.shiftKey?-1:1)];I.preventDefault(),(Pe||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(L)&&I.shiftKey&&(I.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&L===e.amPM)switch(I.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}(K||H(L))&&De("onKeyDown",I)}function he(I,L){if(L===void 0&&(L="flatpickr-day"),!(e.selectedDates.length!==1||I&&(!I.classList.contains(L)||I.classList.contains("flatpickr-disabled")))){for(var K=I?I.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),X=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),oe=Math.min(K,e.selectedDates[0].getTime()),se=Math.max(K,e.selectedDates[0].getTime()),ye=!1,ue=0,Ce=0,ce=oe;ce<se;ce+=Cu.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+") > ."+L));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)}),I!==void 0&&(I.classList.add(K<=e.selectedDates[0].getTime()?"startRange":"endRange"),X<K&&Ke===X?xe.classList.add("startRange"):X>K&&Ke===X&&xe.classList.add("endRange"),Ke>=ue&&(Ce===0||Ke<=Ce)&&wu(Ke,X,K)&&xe.classList.add("inRange"))})}}function ve(){e.isOpen&&!e.config.static&&!e.config.inline&&te()}function ke(I,L){if(L===void 0&&(L=e._positionElement),e.isMobile===!0){if(I){I.preventDefault();var K=ut(I);K&&K.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(L)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(I===void 0||!e.timeContainer.contains(I.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Oe(I){return function(L){var K=e.config["_"+I+"Date"]=e.parseDate(L,e.config.dateFormat),X=e.config["_"+(I==="min"?"max":"min")+"Date"];K!==void 0&&(e[I==="min"?"minDateHasTime":"maxDateHasTime"]=K.getHours()>0||K.getMinutes()>0||K.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(oe){return Z(oe)}),!e.selectedDates.length&&I==="min"&&d(K),rt()),e.daysContainer&&(re(),K!==void 0?e.currentYearElement[I]=K.getFullYear().toString():e.currentYearElement.removeAttribute(I),e.currentYearElement.disabled=!!X&&K!==void 0&&X.getFullYear()===K.getFullYear())}}function Le(){var I=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],L=We(We({},JSON.parse(JSON.stringify(t.dataset||{}))),n),K={};e.config.parseDate=L.parseDate,e.config.formatDate=L.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=L.mode==="time";if(!L.dateFormat&&(L.enableTime||X)){var oe=Re.defaultConfig.dateFormat||sn.dateFormat;K.dateFormat=L.noCalendar||X?"H:i"+(L.enableSeconds?":S":""):oe+" H:i"+(L.enableSeconds?":S":"")}if(L.altInput&&(L.enableTime||X)&&!L.altFormat){var se=Re.defaultConfig.altFormat||sn.altFormat;K.altFormat=L.noCalendar||X?"h:i"+(L.enableSeconds?":S K":" K"):se+(" h:i"+(L.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")}),L.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,K,L);for(var ue=0;ue<I.length;ue++)e.config[I[ue]]=e.config[I[ue]]===!0||e.config[I[ue]]==="true";qr.filter(function(ge){return e.config[ge]!==void 0}).forEach(function(ge){e.config[ge]=Hr(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)qr.indexOf(ce)>-1?e.config[ce]=Hr(Ce[ce]).map(l).concat(e.config[ce]):typeof L[ce]>"u"&&(e.config[ce]=Ce[ce])}L.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 Re.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=We(We({},Re.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Re.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 I=We(We({},n),JSON.parse(JSON.stringify(t.dataset||{})));I.time_24hr===void 0&&Re.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Mo(e),e.parseDate=Ur({config:e.config,l10n:e.l10n})}function te(I){if(typeof e.config.position=="function")return void e.config.position(e,I);if(e.calendarContainer!==void 0){De("onPreCalendarPosition");var L=I||e._positionElement,K=Array.prototype.reduce.call(e.calendarContainer.children,function(Ze,Rn){return Ze+Rn.offsetHeight},0),X=e.calendarContainer.offsetWidth,oe=e.config.position.split(" "),se=oe[0],ye=oe.length>1?oe[1]:null,ue=L.getBoundingClientRect(),Ce=window.innerHeight-ue.bottom,ce=se==="above"||se!=="below"&&Ce<K&&ue.top>K,ge=window.pageYOffset+ue.top+(ce?-K-2:L.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,Dn=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(!Dn)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,In=Math.max(0,ze/2-X/2),Pn=".flatpickr-calendar.centerMost:before",Mn=".flatpickr-calendar.centerMost:after",Bn=Qt.cssRules.length,Ln="{left:"+ue.left+"px;right:auto;}";Qe(e.calendarContainer,"rightMost",!1),Qe(e.calendarContainer,"centerMost",!0),Qt.insertRule(Pn+","+Mn+Ln,Bn),e.calendarContainer.style.left=In+"px",e.calendarContainer.style.right="auto"}}}}function ae(){for(var I=null,L=0;L<document.styleSheets.length;L++){var K=document.styleSheets[L];if(K.cssRules){try{K.cssRules}catch{continue}I=K;break}}return I??le()}function le(){var I=document.createElement("style");return document.head.appendChild(I),I.sheet}function re(){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(I){I.preventDefault(),I.stopPropagation();var L=function(ge){return ge.classList&&ge.classList.contains("flatpickr-day")&&!ge.classList.contains("flatpickr-disabled")&&!ge.classList.contains("notAllowed")},K=Po(ut(I),L);if(K!==void 0){var X=K,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()}b()}}var be={locale:[Q,U],showMonths:[F,s,ie],minDate:[y],maxDate:[y],positionElement:[Zt],clickOpens:[function(){e.config.clickOpens===!0?(v(e._input,"focus",e.open),v(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function He(I,L){if(I!==null&&typeof I=="object"){Object.assign(e.config,I);for(var K in I)be[K]!==void 0&&be[K].forEach(function(X){return X()})}else e.config[I]=L,be[I]!==void 0?be[I].forEach(function(X){return X()}):qr.indexOf(I)>-1&&(e.config[I]=Hr(L));e.redraw(),rt(!0)}function je(I,L){var K=[];if(I instanceof Array)K=I.map(function(X){return e.parseDate(X,L)});else if(I instanceof Date||typeof I=="number")K=[e.parseDate(I,L)];else if(typeof I=="string")switch(e.config.mode){case"single":case"time":K=[e.parseDate(I,L)];break;case"multiple":K=I.split(e.config.conjunction).map(function(X){return e.parseDate(X,L)});break;case"range":K=I.split(e.l10n.rangeSeparator).map(function(X){return e.parseDate(X,L)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(I)));e.selectedDates=e.config.allowInvalidPreload?K:K.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(I,L,K){if(L===void 0&&(L=!1),K===void 0&&(K=e.config.dateFormat),I!==0&&!I||I instanceof Array&&I.length===0)return e.clear(L);je(I,K),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),y(void 0,L),d(),e.selectedDates.length===0&&e.clear(!1),rt(L),L&&De("onChange")}function wt(I){return I.slice().map(function(L){return typeof L=="string"||typeof L=="number"||L instanceof Date?e.parseDate(L,void 0,!0):L&&typeof L=="object"&&L.from&&L.to?{from:e.parseDate(L.from,void 0),to:e.parseDate(L.to,void 0)}:L}).filter(function(L){return L})}function Ee(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var I=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);I&&je(I,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 An(){var I=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=I,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=I==="datetime-local"?"Y-m-d\\TH:i:S":I==="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{}v(e.mobileInput,"change",function(L){e.setDate(ut(L).value,!1,e.mobileFormatStr),De("onChange"),De("onClose")})}function Jt(I){if(e.isOpen===!0)return e.close();e.open(I)}function De(I,L){if(e.config!==void 0){var K=e.config[I];if(K!==void 0&&K.length>0)for(var X=0;K[X]&&X<K.length;X++)K[X](e.selectedDates,e.input.value,e,L);I==="onChange"&&(e.input.dispatchEvent(Ht("change")),e.input.dispatchEvent(Ht("input")))}}function Ht(I){var L=document.createEvent("Event");return L.initEvent(I,!0,!0),L}function kt(I){for(var L=0;L<e.selectedDates.length;L++){var K=e.selectedDates[L];if(K instanceof Date&&ft(K,I)===0)return""+L}return!1}function It(I){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ft(I,e.selectedDates[0])>=0&&ft(I,e.selectedDates[1])<=0}function Ye(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(I,L){var K=new Date(e.currentYear,e.currentMonth,1);K.setMonth(e.currentMonth+L),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[L].textContent=ar(K.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=K.getMonth().toString(),I.value=K.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(I){var L=I||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(K){return e.formatDate(K,L)}).filter(function(K,X,oe){return e.config.mode!=="range"||e.config.enableTime||oe.indexOf(K)===X}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function rt(I){I===void 0&&(I=!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)),I!==!1&&De("onValueUpdate")}function Pt(I){var L=ut(I),K=e.prevMonthNav.contains(L),X=e.nextMonthNav.contains(L);K||X?A(K?-1:1):e.yearElements.indexOf(L)>=0?L.select():L.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):L.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Xt(I){I.preventDefault();var L=I.type==="keydown",K=ut(I),X=K;e.amPM!==void 0&&K===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=I.delta||(L?I.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&&m(void 0,-1,e.hourElement)):ce>se&&(ce=X===e.hourElement?ce-se-pt(!e.amPM):oe,xe&&m(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 dn(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=Eu(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 dn(this,t)},HTMLElement.prototype.flatpickr=function(t){return dn([this],t)});var Re=function(t,n){return typeof t=="string"?dn(window.document.querySelectorAll(t),n):t instanceof Node?dn([t],n):dn(t,n)};Re.defaultConfig={},Re.l10ns={en:We({},Cn),default:We({},Cn)},Re.localize=function(t){Re.l10ns.default=We(We({},Re.l10ns.default),t)},Re.setDefaults=function(t){Re.defaultConfig=We(We({},Re.defaultConfig),t)},Re.parseDate=Ur({}),Re.formatDate=Mo({}),Re.compareDates=ft,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return dn(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=Re);const fp="";var Lo={exports:{}};(function(t,n){(function(e,o){t.exports=o()})(Fe,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;u(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&&f(),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(),f(),$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(),f(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],h(),rt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],h(),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+=Pu.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)&&Du(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||sn.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||sn.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,qn){return Ze+qn.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,Mn=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(!Mn)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,Bn=Math.max(0,ze/2-X/2),Ln=".flatpickr-calendar.centerMost:before",Rn=".flatpickr-calendar.centerMost:after",jn=Qt.cssRules.length,Vn="{left:"+ue.left+"px;right:auto;}";Qe(e.calendarContainer,"rightMost",!1),Qe(e.calendarContainer,"centerMost",!0),Qt.insertRule(Ln+","+Rn+Vn,jn),e.calendarContainer.style.left=Bn+"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(h(),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()}b()}}var be={locale:[Q,K],showMonths:[q,s,re],minDate:[m],maxDate:[m],positionElement:[Zt],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(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(),m(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 Pn(){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{}g(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 dn(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=Bu(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 dn(this,t)},HTMLElement.prototype.flatpickr=function(t){return dn([this],t)});var je=function(t,n){return typeof t=="string"?dn(window.document.querySelectorAll(t),n):t instanceof Node?dn([t],n):dn(t,n)};je.defaultConfig={},je.l10ns={en:We({},On),default:We({},On)},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 dn(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=je);const Np="";var jo={exports:{}};(function(t,n){(function(e,o){t.exports=o()})(Re,function(){/*! *****************************************************************************
|
|
63
63
|
Copyright (c) Microsoft Corporation.
|
|
64
64
|
|
|
65
65
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -72,62 +72,62 @@
|
|
|
72
72
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
73
73
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
74
74
|
PERFORMANCE OF THIS SOFTWARE.
|
|
75
|
-
***************************************************************************** */function e(){for(var a=0,r=0,l=arguments.length;r<l;r++)a+=arguments[r].length;for(var s=Array(a),
|
|
75
|
+
***************************************************************************** */function e(){for(var a=0,r=0,l=arguments.length;r<l;r++)a+=arguments[r].length;for(var s=Array(a),f=0,r=0;r<l;r++)for(var c=arguments[r],p=0,h=c.length;p<h;p++,f++)s[f]=c[p];return s}function o(a){return a===void 0&&(a={}),function(r){var l="",s,f,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])),f=!0,r.isOpen=!1,r.open(void 0,a.position==="left"?r._input:s)}),r._bind(r._input,["focus","click"],function(u){u.preventDefault(),r.isOpen=!1,r.open()})),r.config.allowInput&&r._bind(s,"keydown",function(u){u.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)},h={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]),f=!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),h.onValueUpdate(r.selectedDates),r.loadedPlugins.push("range")},onPreCalendarPosition:function(){f&&(r._positionElement=s,setTimeout(function(){r._positionElement=r._input},0))},onChange:function(){r.selectedDates.length||setTimeout(function(){r.selectedDates.length||(s.value="",c=[])},10),f&&setTimeout(function(){s.focus()},0)},onDestroy:function(){a.input||s.parentNode&&s.parentNode.removeChild(s)},onValueUpdate:function(d){var u,_,g;if(s){if(c=!c||d.length>=c.length?e(d):c,c.length>d.length){var b=d[0],y=f?[c[0],b]:[b,c[1]];y[0].getTime()>y[1].getTime()&&(f?y[0]=y[1]:y[1]=y[0]),r.setDate(y,!1),c=e(y)}u=r.selectedDates.map(function(m){return r.formatDate(m,l)}),_=u[0],r._input.value=_===void 0?"":_,g=u[1],s.value=g===void 0?"":g}}};return h}}return o})})(jo);var Lu=jo.exports;const Ru=kn(Lu),ju=`
|
|
76
76
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
77
77
|
<path d="M10.25 3.5L5.75 8L10.25 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
78
78
|
</svg>
|
|
79
|
-
`,
|
|
79
|
+
`,Vu=`
|
|
80
80
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
81
81
|
<path d="M5.75 3.5L10.25 8L5.75 12.5" stroke="#1A1A1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
82
82
|
</svg>
|
|
83
|
-
`,hp="",Au="single",Wr="range",Du={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:Au},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(){var n;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 Re(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:Tu,nextArrow:Nu,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===Wr&&(n.plugins=[new xu({input:this.$refs.toDate})]),(this.value||this.modelValue)&&(this.mode===Wr?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})},onChange(t){this.mode===Wr?this.data=t.split(" to "):this.data=t},onDocumentKeyDown(t){t.keyCode===Mr&&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:Be,IbLabel:wn,IbAlert:qt},emits:["input","update:modelValue"]},Iu={class:"inputs-wrapper"},Pu={class:"input-group-wrapper"},Mu=["placeholder"],Bu={ref:"dropdown",class:"dropdown"},Lu={key:1,class:"support-text"},Ru={key:0,class:"input-group-wrapper"},ju=["placeholder"],Vu={key:1,class:"support-text"};function Fu(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-label"),c=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-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",Iu,[i.createElementVNode("div",Pu,[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]=(...h)=>r.open&&r.open(...h))},[i.createElementVNode("input",{placeholder:e.placeholder,ref:"date",class:"date-picker-input"},null,8,Mu),i.createVNode(c,{name:"today-outline",class:"calendar-icon"})],2),i.createElementVNode("div",Bu,null,512),e.supportText.length?(i.openBlock(),i.createElementBlock("p",Lu,i.toDisplayString(e.supportText),1)):i.createCommentVNode("",!0)]),e.mode==="range"?(i.openBlock(),i.createElementBlock("div",Ru,[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[1]||(n[1]=(...h)=>r.openEndDate&&r.openEndDate(...h))},[i.createElementVNode("input",{class:"date-picker-input",placeholder:e.endDatePlaceholder,ref:"toDate"},null,8,ju),i.createVNode(c,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(i.openBlock(),i.createElementBlock("p",Vu,i.toDisplayString(e.endDateSupportText),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])],2)}const qu=_e(Du,[["render",Fu]]),Hu=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1,["5288","5289"]],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],zu=Hu.map(([t,n,e,o=0,a=null])=>({name:t,iso2:n.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function Uu(){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 Ku(t,n){if(t.setSelectionRange)t.focus(),t.setSelectionRange(n,n);else if(t.createTextRange){const e=t.createTextRange();e.collapse(!0),e.moveEnd("character",n),e.moveStart("character",n),e.select()}}const Gu=[{name:"allCountries",type:Array,default:zu,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],Wu=[...Gu].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},{}),Ro={options:{...Wu}},Yu={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 Zu(t,n){var e=Array.prototype.slice.call(n);return e.push(Yu),t.apply(this,e)}function Yr(t){"@babel/helpers - typeof";return Yr=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},Yr(t)}function jo(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 Ju(t,n,e){return n&&jo(t.prototype,n),e&&jo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xu(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Qu(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&&En(t,n)}function ef(t){var n=Fo();return function(){var e=Sn(t),o;if(n){var a=Sn(this).constructor;o=Reflect.construct(e,arguments,a)}else o=e.apply(this,arguments);return tf(this,o)}}function tf(t,n){if(n&&(Yr(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vo(t)}function Vo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zr(t){var n=typeof Map=="function"?new Map:void 0;return Zr=function(e){if(e===null||!nf(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 lr(e,arguments,Sn(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),En(o,e)},Zr(t)}function lr(t,n,e){return Fo()?lr=Reflect.construct:lr=function(o,a,r){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),c=new s;return r&&En(c,r.prototype),c},lr.apply(null,arguments)}function Fo(){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 nf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function En(t,n){return En=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},En(t,n)}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sn(t)}var At=function(t){Qu(e,t);var n=ef(e);function e(o){var a;return Xu(this,e),a=n.call(this,o),Object.setPrototypeOf(Vo(a),e.prototype),a.name=a.constructor.name,a}return Ju(e)}(Zr(Error)),Jr=2,rf=17,of=3,gt="0-90-9٠-٩۰-۹",af="-‐-―−ー-",lf="//",sf="..",df=" ",cf="()()[]\\[\\]",uf="~⁓∼~",sr="".concat(af).concat(lf).concat(sf).concat(df).concat(cf).concat(uf),Xr="++";function qo(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 ff={}.constructor;function dr(t){return t!=null&&t.constructor===ff}function Qr(t){"@babel/helpers - typeof";return Qr=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},Qr(t)}function cr(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ho(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 ur(t,n,e){return n&&Ho(t.prototype,n),e&&Ho(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var hf="1.2.0",pf="1.7.35",zo=" ext. ",mf=/^\d+$/,et=function(){function t(n){cr(this,t),bf(n),this.metadata=n,Go.call(this,n)}return ur(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&&mf.test(n)&&(e=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Uo(this.getCountryMetadata(n),this)}else if(e){if(!this.hasCallingCode(e))throw new Error("Unknown calling code: ".concat(e));this.numberingPlan=new Uo(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}(),Uo=function(){function t(n,e){cr(this,t),this.globalMetadataObject=e,this.metadata=n,Go.call(this,e.metadata)}return ur(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 gf(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()&&Ko(this.types(),n))return new vf(Ko(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?zo:this.metadata[13]||zo}}]),t}(),gf=function(){function t(n,e){cr(this,t),this._format=n,this.metadata=e}return ur(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()&&!yf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),yf=/^\(?\$1\)?$/,vf=function(){function t(n,e){cr(this,t),this.type=n,this.metadata=e}return ur(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 Ko(t,n){switch(n){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function bf(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!dr(t)||!dr(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(dr(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+_f(t)+": "+t,"."))}var _f=function(t){return Qr(t)};function ei(t,n){if(n=new et(n),n.hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function $f(t,n){return n.countries.hasOwnProperty(t)}function Go(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?qo(n,hf)===-1?this.v2=!0:qo(n,pf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var wf=";ext=",cn=function(t){return"([".concat(gt,"]{1,").concat(t,"})")};function Wo(t){var n="20",e="15",o="9",a="6",r="[ \\t,]*",l="[:\\..]?[ \\t,-]*",s="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",p="[- ]+",f="[ \\t]*",d="(?:,{2}|;)",u=wf+cn(n),_=r+c+l+cn(n)+s,v=r+h+l+cn(o)+s,b=p+cn(a)+"#",g=f+d+l+cn(e)+s,y=f+"(?:,)+"+l+cn(o)+s;return u+"|"+_+"|"+v+"|"+b+"|"+g+"|"+y}var kf="["+gt+"]{"+Jr+"}",Cf="["+Xr+"]{0,1}(?:["+sr+"]*["+gt+"]){3,}["+sr+gt+"]*",Of=new RegExp("^["+Xr+"]{0,1}(?:["+sr+"]*["+gt+"]){1,2}$","i"),Ef=Cf+"(?:"+Wo()+")?",Sf=new RegExp("^"+kf+"$|^"+Ef+"$","i");function xf(t){return t.length>=Jr&&Sf.test(t)}function Tf(t){return Of.test(t)}var Yo=new RegExp("(?:"+Wo()+")$","i");function Nf(t){var n=t.search(Yo);if(n<0)return{};for(var e=t.slice(0,n),o=t.match(Yo),a=1;a<o.length;){if(o[a])return{number:e,ext:o[a]};a++}}var Af={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 Df(t){return Af[t]}function If(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=Pf(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
|
|
85
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
86
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
87
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
88
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
89
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gh(t,n){if(t){if(typeof t=="string")return ga(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 ga(t,n)}}function ga(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 Wh(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(c){r=!0,s=c}finally{try{!a&&e.return!=null&&e.return()}finally{if(r)throw s}}return o}}function Yh(t){if(Array.isArray(t))return t}function Zh(t){var n=Array.prototype.slice.call(t),e=Uh(n,4),o=e[0],a=e[1],r=e[2],l=e[3],s,c,h;if(typeof o=="string")s=o;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")l?(c=r,h=l):(c=void 0,h=r),a&&(c=Hh({defaultCountry:a},c));else if(dr(a))r?(c=a,h=r):h=a;else throw new Error("Invalid second argument: ".concat(a));return{text:s,options:c,metadata:h}}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 va(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){Jh(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 Jh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Xh(t,n,e){n&&n.defaultCountry&&!$f(n.defaultCountry,e)&&(n=va(va({},n),{},{defaultCountry:void 0}));try{return qh(t,n,e)}catch(o){if(!(o instanceof At))throw o}}function Qh(){var t=Zh(arguments),n=t.text,e=t.options,o=t.metadata;return Xh(n,e,o)}function si(){return Zu(Qh,arguments)}const e1={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)}},t1=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e};function tt(t){const n=Ro.options[t];return typeof n>"u"?Ro.options[t]:n}const n1={name:"VueTelInput",directives:{clickOutside:e1},props:{modelValue:{type:String,default:""},allCountries:{type:Array,default:()=>tt("allCountries")},autoFormat:{type:Boolean,default:()=>tt("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>tt("customValidate")},defaultCountry:{type:[String,Number],default:()=>tt("defaultCountry")},disabled:{type:Boolean,default:()=>tt("disabled")},autoDefaultCountry:{type:Boolean,default:()=>tt("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>tt("dropdownOptions")},ignoredCountries:{type:Array,default:()=>tt("ignoredCountries")},inputOptions:{type:Object,default:()=>tt("inputOptions")},invalidMsg:{type:String,default:()=>tt("invalidMsg")},mode:{type:String,default:()=>tt("mode")},onlyCountries:{type:Array,default:()=>tt("onlyCountries")},preferredCountries:{type:Array,default:()=>tt("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>tt("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>tt("styleClasses")}},data(){return{phone:"",activeCountryCode:"",open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:null,dropdownOpenDirection:"below",parsedPlaceholder:this.inputOptions.placeholder,searchQuery:""}},computed:{activeCountry(){return this.findCountry(this.activeCountryCode)},parsedMode(){return this.mode==="auto"?!this.phone||this.phone[0]!=="+"?"national":"international":["international","national"].includes(this.mode)?this.mode:(console.error('Invalid value of prop "mode"'),"international")},filteredCountries(){return this.onlyCountries.length?this.allCountries.filter(({iso2:t})=>this.onlyCountries.some(n=>n.toUpperCase()===t)):this.ignoredCountries.length?this.allCountries.filter(({iso2:t})=>!this.ignoredCountries.includes(t.toUpperCase())&&!this.ignoredCountries.includes(t.toLowerCase())):this.allCountries},sortedCountries(){const t=[...this.getCountries(this.preferredCountries).map(e=>({...e,preferred:!0})),...this.filteredCountries];if(!this.dropdownOptions.showSearchBox)return t;const n=this.searchQuery.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return t.filter(e=>new RegExp(n,"i").test(e.name)||new RegExp(n,"i").test(e.iso2)||new RegExp(n,"i").test(e.dialCode))},phoneObject(){var t,n,e;let o;((t=this.phone)==null?void 0:t[0])==="+"?o=si(this.phone)||{}:o=si(this.phone,this.activeCountryCode)||{};const{metadata:a,...r}=o;let l=(n=o.isValid)==null?void 0:n.call(o),s=this.phone;return l&&(s=(e=o.format)==null?void 0:e.call(o,this.parsedMode.toUpperCase())),o.country&&(this.ignoredCountries.length||this.onlyCountries.length)&&(this.findCountry(o.country)||(l=!1,Object.assign(o,{country:null}))),Object.assign(r,{countryCode:o.country,valid:l,country:this.activeCountry,formatted:s}),r}},watch:{activeCountry(t,n){if(!t&&n!=null&&n.iso2){this.activeCountryCode=n.iso2;return}t!=null&&t.iso2&&this.$emit("country-changed",t)},"phoneObject.countryCode":function(t){this.activeCountryCode=t||""},"phoneObject.valid":function(){this.$emit("validate",this.phoneObject)},"phoneObject.formatted":function(t){!this.autoFormat||this.customValidate||(this.emitInput(t),this.$nextTick(()=>{t&&!this.modelValue&&(this.phone=t)}))},"inputOptions.placeholder":function(){this.resetPlaceholder()},modelValue(t,n){this.testCharacters()?this.phone=t:this.$nextTick(()=>{this.phone=n,this.onInput()})},open(t){t?(this.setDropdownPosition(),this.$emit("open")):this.$emit("close")}},mounted(){this.modelValue&&(this.phone=this.modelValue.trim()),this.cleanInvalidCharacters(),this.initializeCountry().then(()=>{var t;!this.phone&&(t=this.inputOptions)!=null&&t.showDialCode&&this.activeCountryCode&&(this.phone=`+${this.activeCountryCode}`),this.$emit("validate",this.phoneObject)}).catch(console.error).then(()=>{this.finishMounted=!0})},methods:{resetPlaceholder(){this.parsedPlaceholder=this.inputOptions.placeholder},initializeCountry(){return new Promise(t=>{var n;if(((n=this.phone)==null?void 0:n[0])==="+"){t();return}if(this.defaultCountry){if(typeof this.defaultCountry=="string"){this.choose(this.defaultCountry),t();return}if(typeof this.defaultCountry=="number"){const o=this.findCountryByDialCode(this.defaultCountry);if(o){this.choose(o.iso2),t();return}}}const e=this.preferredCountries[0]||this.filteredCountries[0];this.autoDefaultCountry?Uu().then(o=>{this.choose(o||this.activeCountryCode)}).catch(o=>{console.warn(o),this.choose(e)}).then(()=>{t()}):(this.choose(e),t())})},getCountries(t=[]){return t.map(n=>this.findCountry(n)).filter(Boolean)},findCountry(t=""){return this.filteredCountries.find(n=>n.iso2===t.toUpperCase())},findCountryByDialCode(t){return this.filteredCountries.find(n=>Number(n.dialCode)===t)},getItemClass(t,n){const e=this.selectedIndex===t,o=t===this.preferredCountries.length-1,a=this.preferredCountries.some(r=>r.toUpperCase()===n);return{highlighted:e,"last-preferred":o,preferred:a}},choose(t){var n,e;let o=t;if(typeof o=="string"&&(o=this.findCountry(o)),!!o){if(((n=this.phone)==null?void 0:n[0])==="+"&&o.iso2&&this.phoneObject.nationalNumber){this.activeCountryCode=o.iso2,this.phone=si(this.phoneObject.nationalNumber,o.iso2).formatInternational();return}if((e=this.inputOptions)!=null&&e.showDialCode&&o){this.phone=`+${o.dialCode}`,this.activeCountryCode=o.iso2||"";return}this.activeCountryCode=o.iso2||"",this.emitInput(this.phone)}},cleanInvalidCharacters(){const t=this.phone;if(this.validCharactersOnly){const n=this.phone.match(/[()\-+0-9\s]*/g);this.phone=n.join("")}if(this.customValidate&&this.customValidate instanceof RegExp){const n=this.phone.match(this.customValidate);this.phone=n.join("")}t!==this.phone&&this.emitInput(this.phone)},testCharacters(){return this.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(this.phone)?!1:this.customValidate?this.testCustomValidate():!0},testCustomValidate(){return this.customValidate instanceof RegExp?this.customValidate.test(this.phone):!1},onInput(){this.$refs.input.setCustomValidity(this.phoneObject.valid?"":this.invalidMsg),this.emitInput(this.phone)},emitInput(t){this.$emit("update:modelValue",t),this.$emit("on-input",t,this.phoneObject,this.$refs.input)},onBlur(){this.$emit("blur")},onFocus(){Ku(this.$refs.input,this.phone.length),this.$emit("focus")},onEnter(){this.$emit("enter")},onSpace(){this.$emit("space")},focus(){this.$refs.input.focus()},toggleDropdown(){this.disabled||this.dropdownOptions.disabled||(this.searchQuery="",this.open=!this.open)},clickedOutside(){this.open=!1},keyboardNav(t){if(t.keyCode===40){t.preventDefault(),this.open=!0,this.selectedIndex===null?this.selectedIndex=0:this.selectedIndex=Math.min(this.sortedCountries.length-1,this.selectedIndex+1);const n=this.$refs.list.children[this.selectedIndex];n.focus(),n.offsetTop+n.clientHeight>this.$refs.list.scrollTop+this.$refs.list.clientHeight&&(this.$refs.list.scrollTop=n.offsetTop-this.$refs.list.clientHeight+n.clientHeight)}else if(t.keyCode===38){t.preventDefault(),this.open=!0,this.selectedIndex===null?this.selectedIndex=this.sortedCountries.length-1:this.selectedIndex=Math.max(0,this.selectedIndex-1);const n=this.$refs.list.children[this.selectedIndex];n.focus(),n.offsetTop<this.$refs.list.scrollTop&&(this.$refs.list.scrollTop=n.offsetTop)}else if(t.keyCode===13)this.selectedIndex!==null&&this.choose(this.sortedCountries[this.selectedIndex]),this.open=!this.open;else{this.typeToFindInput+=t.key,clearTimeout(this.typeToFindTimer),this.typeToFindTimer=setTimeout(()=>{this.typeToFindInput=""},700);const n=this.sortedCountries.slice(this.preferredCountries.length).findIndex(e=>e.name.toLowerCase().startsWith(this.typeToFindInput));if(n>=0){this.selectedIndex=this.preferredCountries.length+n;const e=this.$refs.list.children[this.selectedIndex],o=e.offsetTop<this.$refs.list.scrollTop,a=e.offsetTop+e.clientHeight>this.$refs.list.scrollTop+this.$refs.list.clientHeight;(o||a)&&(this.$refs.list.scrollTop=e.offsetTop-this.$refs.list.clientHeight/2)}}},reset(){this.selectedIndex=this.sortedCountries.map(t=>t.iso2).indexOf(this.activeCountryCode),this.open=!1},setDropdownPosition(){window.innerHeight-this.$el.getBoundingClientRect().bottom>200?this.dropdownOpenDirection="below":this.dropdownOpenDirection="above"}}},r1=["aria-expanded","tabindex"],i1={class:"vti__selection"},o1={key:1,class:"vti__country-code"},a1={class:"vti__dropdown-arrow"},l1=["placeholder"],s1=["onClick","onMousemove","aria-selected"],d1={key:1},c1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"];function u1(t,n,e,o,a,r){const l=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vue-tel-input",e.styleClasses,{disabled:e.disabled}])},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":a.open,role:"button",class:i.normalizeClass(["vti__dropdown",{open:a.open,disabled:e.dropdownOptions.disabled}]),tabindex:e.dropdownOptions.tabindex,onKeydown:[n[2]||(n[2]=(...s)=>r.keyboardNav&&r.keyboardNav(...s)),n[4]||(n[4]=i.withKeys((...s)=>r.toggleDropdown&&r.toggleDropdown(...s),["space"])),n[5]||(n[5]=i.withKeys((...s)=>r.reset&&r.reset(...s),["esc"])),n[6]||(n[6]=i.withKeys((...s)=>r.reset&&r.reset(...s),["tab"]))],onClick:n[3]||(n[3]=(...s)=>r.toggleDropdown&&r.toggleDropdown(...s))},[i.createElementVNode("span",i1,[e.dropdownOptions.showFlags?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["vti__flag",a.activeCountryCode.toLowerCase()])},null,2)):i.createCommentVNode("",!0),e.dropdownOptions.showDialCodeInSelection?(i.openBlock(),i.createElementBlock("span",o1," +"+i.toDisplayString(r.activeCountry&&r.activeCountry.dialCode),1)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"arrow-icon",{open:a.open},()=>[i.createElementVNode("span",a1,i.toDisplayString(a.open?"▲":"▼"),1)])]),a.open?(i.openBlock(),i.createElementBlock("ul",{key:0,ref:"list",class:i.normalizeClass(["vti__dropdown-list",a.dropdownOpenDirection]),role:"listbox"},[e.dropdownOptions.showSearchBox?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,class:"vti__input vti__search_box","aria-label":"Search by country name or country code",placeholder:r.sortedCountries.length?r.sortedCountries[0].name:"",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>a.searchQuery=s),onClick:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,8,l1)),[[i.vModelText,a.searchQuery]]):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.sortedCountries,(s,c)=>(i.openBlock(),i.createElementBlock("li",{role:"option",class:i.normalizeClass(["vti__dropdown-item",r.getItemClass(c,s.iso2)]),key:s.iso2+(s.preferred?"-preferred":""),tabindex:"-1",onClick:h=>r.choose(s),onMousemove:h=>a.selectedIndex=c,"aria-selected":a.activeCountryCode===s.iso2&&!s.preferred},[e.dropdownOptions.showFlags?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["vti__flag",s.iso2.toLowerCase()])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("strong",null,i.toDisplayString(s.name),1),e.dropdownOptions.showDialCodeInList?(i.openBlock(),i.createElementBlock("span",d1," +"+i.toDisplayString(s.dialCode),1)):i.createCommentVNode("",!0)],42,s1))),128))],2)):i.createCommentVNode("",!0)],42,r1)),[[l,r.clickedOutside]]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":n[7]||(n[7]=s=>a.phone=s),ref:"input",type:e.inputOptions.type,autocomplete:e.inputOptions.autocomplete,autofocus:e.inputOptions.autofocus,class:i.normalizeClass(["vti__input",e.inputOptions.styleClasses]),disabled:e.disabled,id:e.inputOptions.id,maxlength:e.inputOptions.maxlength,name:e.inputOptions.name,placeholder:a.parsedPlaceholder,readonly:e.inputOptions.readonly,required:e.inputOptions.required,tabindex:e.inputOptions.tabindex,value:e.modelValue,"aria-describedby":e.inputOptions["aria-describedby"],onBlur:n[8]||(n[8]=(...s)=>r.onBlur&&r.onBlur(...s)),onFocus:n[9]||(n[9]=(...s)=>r.onFocus&&r.onFocus(...s)),onInput:n[10]||(n[10]=(...s)=>r.onInput&&r.onInput(...s)),onKeyup:[n[11]||(n[11]=i.withKeys((...s)=>r.onEnter&&r.onEnter(...s),["enter"])),n[12]||(n[12]=i.withKeys((...s)=>r.onSpace&&r.onSpace(...s),["space"]))]},null,42,c1),[[i.vModelDynamic,a.phone]]),i.renderSlot(t.$slots,"icon-right")],2)}const f1=t1(n1,[["render",u1]]),pp="",mp="",h1={directives:{Outside:Xn},props:{inputName:{type:String,default:"phone"},autoDefaultCountry:{type:Boolean,default:!0},value:{type:String,default:""},ignoredCountries:{type:Array,default:()=>[]},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""}},components:{VueTelInput:f1,IbAlert:qt,IbIcon:Be},data(){return{vueTel:null,phone:"",dialCode:"",defaultCountry:"US"}},mounted(){this.vueTel=this.$refs.vueTel,this.value&&(this.phone=this.value[0]==="+"?this.value:"+"+this.value)},methods:{countryChanged(t){this.$globalEvents.$on("countrySelectValue",n=>{this.vueTel.choose(n)}),this.phone="+"+t.dialCode,this.dialCode=t.dialCode},clickOutside(){this.vueTel.open&&this.vueTel.clickedOutside()}}};function p1(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("vue-tel-input"),h=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(c,i.mergeProps({modelValue:a.phone,"onUpdate:modelValue":n[0]||(n[0]=p=>a.phone=p)},t.$attrs,{onCountryChanged:r.countryChanged,"input-options":{name:e.inputName,id:e.inputName},"auto-default-country":e.autoDefaultCountry,"dropdown-options":{showSearchBox:!0,showFlags:!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"])),[[h,r.clickOutside]])],64)}const m1=_e(h1,[["render",p1]]);var ba={exports:{}};/*!
|
|
83
|
+
`,Ap="",qu="single",Jr="range",Fu={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:qu},ariaLabel:{type:String,required:!0},endDateAriaLabel:{type:String,required:!0},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(){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:ju,nextArrow:Vu,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 Ru({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})},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))})},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:wn,IbAlert:Ft},emits:["input","update:modelValue"]},Hu={class:"inputs-wrapper"},zu={class:"input-group-wrapper"},Uu=["aria-label"],Ku=["placeholder","name"],Gu={ref:"dropdown",class:"dropdown"},Wu={key:1,class:"support-text"},Yu={key:0,class:"input-group-wrapper"},Zu=["aria-label"],Ju=["placeholder"],Xu={key:1,class:"support-text"};function Qu(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-label"),f=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-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",Hu,[i.createElementVNode("div",zu,[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",class:"date-picker-input"},null,8,Ku)],8,Uu),i.createVNode(f,{name:"today-outline",class:"calendar-icon"})],2),i.createElementVNode("div",Gu,null,512),e.supportText.length?(i.openBlock(),i.createElementBlock("p",Wu,i.toDisplayString(e.supportText),1)):i.createCommentVNode("",!0)]),e.mode==="range"?(i.openBlock(),i.createElementBlock("div",Yu,[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,onKeydown:n[1]||(n[1]=(...c)=>r.onKeydownEndField&&r.onKeydownEndField(...c)),ref:"toDate"},null,40,Ju)],8,Zu),i.createVNode(f,{name:"today-outline",class:"calendar-icon"})],2),e.endDateSupportText.length?(i.openBlock(),i.createElementBlock("p",Xu,i.toDisplayString(e.endDateSupportText),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])],2)}const ef=_e(Fu,[["render",Qu]]),tf=[["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"]]],nf=tf.map(([t,n,e,o=0,a=null])=>({name:t,iso2:n.toUpperCase(),dialCode:e,priority:o,areaCodes:a}));function rf(){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 of(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 af=[{name:"allCountries",type:Array,default:nf,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}],lf=[...af].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:{...lf}};function et(t){const n=Vo.options[t];return typeof n>"u"?Vo.options[t]:n}function Sn(t){return t==null?void 0:t.toLowerCase()}function xn(t){return t==null?void 0:t.toUpperCase()}const sf={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 df(t,n){var e=Array.prototype.slice.call(n);return e.push(sf),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 cf(t,n,e){return n&&qo(t.prototype,n),e&&qo(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uf(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ff(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&&Tn(t,n)}function hf(t){var n=Ho();return function(){var e=Nn(t),o;if(n){var a=Nn(this).constructor;o=Reflect.construct(e,arguments,a)}else o=e.apply(this,arguments);return pf(this,o)}}function pf(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||!mf(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,Nn(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Tn(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),f=new s;return r&&Tn(f,r.prototype),f},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 mf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Tn(t,n){return Tn=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},Tn(t,n)}function Nn(t){return Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nn(t)}var At=function(t){ff(e,t);var n=hf(e);function e(o){var a;return uf(this,e),a=n.call(this,o),Object.setPrototypeOf(Fo(a),e.prototype),a.name=a.constructor.name,a}return cf(e)}(Qr(Error)),ei=2,gf=17,yf=3,yt="0-90-9٠-٩۰-۹",vf="-‐-―−ー-",bf="//",_f="..",$f=" ",wf="()()[]\\[\\]",kf="~⁓∼~",cr="".concat(vf).concat(bf).concat(_f).concat($f).concat(wf).concat(kf),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 Cf={}.constructor;function ur(t){return t!=null&&t.constructor===Cf}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 Of="1.2.0",Ef="1.7.35",Ko=" ext. ",Sf=/^\d+$/,tt=function(){function t(n){fr(this,t),Af(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&&Sf.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 xf(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 Nf(Wo(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ko:this.metadata[13]||Ko}}]),t}(),xf=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()&&!Tf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),Tf=/^\(?\$1\)?$/,Nf=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 Af(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 "+Df(t)+": "+t,"."))}var Df=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 If(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,Of)===-1?this.v2=!0:zo(n,Ef)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Pf=";ext=",cn=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="#?",f="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",p="[- ]+",h="[ \\t]*",d="(?:,{2}|;)",u=Pf+cn(n),_=r+f+l+cn(n)+s,g=r+c+l+cn(o)+s,b=p+cn(a)+"#",y=h+d+l+cn(e)+s,m=h+"(?:,)+"+l+cn(o)+s;return u+"|"+_+"|"+g+"|"+b+"|"+y+"|"+m}var Mf="["+yt+"]{"+ei+"}",Bf="["+ti+"]{0,1}(?:["+cr+"]*["+yt+"]){3,}["+cr+yt+"]*",Lf=new RegExp("^["+ti+"]{0,1}(?:["+cr+"]*["+yt+"]){1,2}$","i"),Rf=Bf+"(?:"+Zo()+")?",jf=new RegExp("^"+Mf+"$|^"+Rf+"$","i");function Vf(t){return t.length>=ei&&jf.test(t)}function qf(t){return Lf.test(t)}var Jo=new RegExp("(?:"+Zo()+")$","i");function Ff(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 Hf={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 zf(t){return Hf[t]}function Uf(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=Kf(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 Kf(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=Uf(t.split("")),o;!(o=e()).done;){var a=o.value;n+=Gf(a,n)||""}return n}function Gf(t,n){return t==="+"?n?void 0:"+":zf(t)}function Wf(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=Yf(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 Yf(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 Zf(t,n){for(var e=t.slice(),o=Wf(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=Zf(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 Jf(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 Xf(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=Qf(t))||n&&t&&typeof t.length=="number"){e&&(t=e);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qf(t,n){if(t){if(typeof t=="string")return 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 eh=["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=Xf(eh),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 th(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 nh(t,n,e){var o=new tt(e),a=o.getCountryCodesForCallingCode(t);return a?a.filter(function(r){return rh(n,r,e)}):[]}function rh(t,n,e){var o=new tt(e);return o.selectNumberingPlan(n),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function ih(t){return t.replace(new RegExp("[".concat(cr,"]+"),"g")," ").trim()}var oh=/(\$\d)/;function ah(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(oh,n.nationalPrefixFormattingRule()):n.format());return o?ih(r):r}var lh=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function sh(t,n,e){var o=new tt(e);if(o.selectNumberingPlan(t,n),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(lh.test(o.IDDPrefix()))return o.IDDPrefix()}function dh(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 ch(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=uh(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 uh(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){fh(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 fh(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 hh(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 dh({number:"+".concat(a).concat(r),ext:t.ext});case"IDD":if(!e.fromCountry)return;var s=mh(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=ph(o.formats(),t);return r?ah(t,r,{useInternationalFormat:e==="INTERNATIONAL",withNationalPrefix:!(r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:n,metadata:o}):t}function ph(t,n){for(var e=ch(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 mh(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=sh(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){gh(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 gh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function yh(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 vh(t,n,e){return n&&ca(t.prototype,n),e&&ca(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var bh=function(){function t(n,e,o){if(yh(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=$h(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 vh(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:nh(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Jf(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return th(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 hh(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 $h(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 wh=new RegExp("(["+yt+"])");function kh(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(wh);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return t}}}function Ch(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 f=o[0];a=t.slice(f.length),s&&(r=o[1])}var c;if(s){var p=t.indexOf(o[1]),h=t.slice(0,p);h===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=Ch(t,n),o=e.carrierCode,a=e.nationalNumber;if(a!==t){if(!Oh(t,a,n))return{nationalNumber:t};if(n.possibleLengths()&&!Eh(a,n))return{nationalNumber:t}}return{nationalNumber:a,carrierCode:o}}function Oh(t,n,e){return!(Dt(t,e.nationalNumberPattern())&&!Dt(n,e.nationalNumberPattern()))}function Eh(t,n){switch(ii(t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Sh(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,f=si(t,o),c=f.nationalNumber;if(!Dt(c,o.nationalNumberPattern())&&Dt(s,o.nationalNumberPattern())||ii(c,o)==="TOO_LONG")return{countryCallingCode:a,number:r}}return{number:t}}function xh(t,n,e,o){if(!t)return{};var a;if(t[0]!=="+"){var r=kh(t,n,e,o);if(r&&r!==t)a=!0,t="+"+r;else{if(n||e){var l=Sh(t,n,e,o),s=l.countryCallingCode,f=l.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:f}}return{number:t}}}if(t[1]==="0")return{};o=new tt(o);for(var c=2;c-1<=yf&&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 Th(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=Nh(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 Nh(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 Ah(t,n){var e=n.countries,o=n.defaultCountry,a=n.metadata;a=new tt(a);for(var r=[],l=Th(e),s;!(s=l()).done;){var f=s.value;if(a.country(f),a.leadingDigits()){if(t&&t.search(a.leadingDigits())===0)return f}else if(oi({phone:t,country:f},void 0,a.metadata))if(o){if(f===o)return f;r.push(f)}else return f}if(r.length>0)return r[0]}function Dh(t,n){var e=n.nationalNumber,o=n.defaultCountry,a=n.metadata,r=a.getCountryCodesForCallingCode(t);if(r)return r.length===1?r[0]:Ah(e,{countries:r,defaultCountry:o,metadata:a.metadata})}var fa="+",Ih="[\\-\\.\\(\\)]?",ha="(["+yt+"]|"+Ih+")",Ph="^\\"+fa+ha+"*["+yt+"]"+ha+"*$",Mh=new RegExp(Ph,"g"),di=yt,Bh="["+di+"]+((\\-)*["+di+"])*",Lh="a-zA-Z",Rh="["+Lh+"]+((\\-)*["+di+"])*",jh="^("+Bh+"\\.)*"+Rh+"\\.?$",Vh=new RegExp(jh,"g"),pa="tel:",ci=";phone-context=",qh=";isub=";function Fh(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 Hh(t){return t===null?!0:t.length===0?!1:Mh.test(t)||Vh.test(t)}function zh(t,n){var e=n.extractFormattedPhoneNumber,o=Fh(t);if(!Hh(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 f=a.indexOf(qh);if(f>0&&(a=a.substring(0,f)),a!=="")return a}var Uh=250,Kh=new RegExp("["+ti+yt+"]"),Gh=new RegExp("[^"+yt+"#]+$");function Wh(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=Zh(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=Xh(a,n.defaultCountry,n.defaultCallingCode,e),f=s.country,c=s.nationalNumber,p=s.countryCallingCode,h=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>gf){if(n.v2)throw new At("TOO_LONG");return{}}if(n.v2){var u=new bh(p,c,e.metadata);return f&&(u.country=f),d&&(u.carrierCode=d),r&&(u.ext=r),u.__countryCallingCodeSource=h,u}var _=(n.extended?e.hasSelectedNumberingPlan():f)?Dt(c,e.nationalNumberPattern()):!1;return n.extended?{country:f,countryCallingCode:p,carrierCode:d,valid:_,possible:_?!0:!!(n.extended===!0&&e.possibleLengths()&&na(c,e)),phone:c,ext:r}:_?Jh(f,c,r):{}}function Yh(t,n,e){if(t){if(t.length>Uh){if(e)throw new At("TOO_LONG");return}if(n===!1)return t;var o=t.search(Kh);if(!(o<0))return t.slice(o).replace(Gh,"")}}function Zh(t,n,e){var o=zh(t,{extractFormattedPhoneNumber:function(r){return Yh(r,e,n)}});if(!o)return{};if(!Vf(o))return qf(o)?{error:"TOO_SHORT"}:{};var a=Ff(o);return a.ext?a:{number:o}}function Jh(t,n,e){var o={country:t,phone:n};return e&&(o.ext=e),o}function Xh(t,n,e,o){var a=xh(Qo(t),n,e,o.metadata),r=a.countryCallingCodeSource,l=a.countryCallingCode,s=a.number,f;if(l)o.selectNumberingPlan(l);else if(s&&(n||e))o.selectNumberingPlan(n,e),n&&(f=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,h=c.carrierCode,d=Dh(l,{nationalNumber:p,defaultCountry:n,metadata:o});return d&&(f=d,d==="001"||o.country(f)),{country:f,countryCallingCode:l,countryCallingCodeSource:r,nationalNumber:p,carrierCode:h}}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){Qh(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 Qh(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function e1(t,n,e){return Wh(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 t1(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){n1(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 n1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function r1(t,n){return l1(t)||a1(t,n)||o1(t,n)||i1()}function i1(){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 o1(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 a1(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(f){r=!0,s=f}finally{try{!a&&e.return!=null&&e.return()}finally{if(r)throw s}}return o}}function l1(t){if(Array.isArray(t))return t}function s1(t){var n=Array.prototype.slice.call(t),e=r1(n,4),o=e[0],a=e[1],r=e[2],l=e[3],s,f,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?(f=r,c=l):(f=void 0,c=r),a&&(f=t1({defaultCountry:a},f));else if(ur(a))r?(f=a,c=r):c=a;else throw new Error("Invalid second argument: ".concat(a));return{text:s,options:f,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){d1(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 d1(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c1(t,n,e){n&&n.defaultCountry&&!If(n.defaultCountry,e)&&(n=_a(_a({},n),{},{defaultCountry:void 0}));try{return e1(t,n,e)}catch(o){if(!(o instanceof At))throw o}}function u1(){var t=s1(arguments),n=t.text,e=t.options,o=t.metadata;return c1(n,e,o)}function ui(){return df(u1,arguments)}const f1={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)}},h1=["aria-expanded","tabindex"],p1={class:"vti__selection"},m1={key:1,class:"vti__country-code"},g1={class:"vti__dropdown-arrow"},y1={key:0,class:"vti__search_box_container"},v1=["placeholder"],b1=["onClick","onMousemove","aria-selected"],_1={key:1},$1=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],w1=i.defineComponent({name:"VueTelInput",directives:{clickOutside:f1},__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,f=i.useModel(t,"modelValue");i.watch(f,(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=>xn(P)===A)):s.ignoredCountries.length?s.allCountries.filter(({iso2:A})=>!s.ignoredCountries.includes(xn(A))&&!s.ignoredCountries.includes(Sn(A))):s.allCountries),h=i.computed(()=>m(c.activeCountryCode));i.watch(h,(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=Sn(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")}),u=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))}),_=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(xn(d.value))),P!=null&&P.country&&(s.ignoredCountries.length||s.onlyCountries.length)&&!m(P.country)&&(U.valid=!1,U.possible=!1,P.country=null),P?{...U,...P}:U});i.watch(()=>_.value.countryCode,A=>{A&&(c.activeCountryCode=A)}),i.watch(()=>_.value.valid,()=>{l("validate",_.value)}),i.watch(()=>_.value.formatted,A=>{!s.autoFormat||s.customValidate||(E(A),i.nextTick(()=>{A&&!f.value&&(c.phone=A)}))}),i.watch(()=>s.inputOptions.placeholder,g),i.onMounted(()=>{f.value&&(c.phone=f.value.trim()),T(),b().then(()=>{var A;!c.phone&&(A=s.inputOptions)!=null&&A.showDialCode&&c.activeCountryCode&&(c.phone=`+${c.activeCountryCode}`),l("validate",_.value)}).catch(console.error).then(()=>{c.finishMounted=!0})});function g(){c.parsedPlaceholder=s.inputOptions.placeholder}function b(){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?rf().then(F=>{k(F||c.activeCountryCode)}).catch(F=>{console.warn(F),k(U)}).then(()=>{A()}):(k(U),A())})}function y(A=[]){return A.map(m).filter(Boolean)}function m(A=""){return p.value.find(P=>P.iso2===xn(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=>xn(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=m(L)),!!L){if(((P=c.phone)==null?void 0:P[0])==="+"&&L.iso2&&_.value.nationalNumber){c.activeCountryCode=L.iso2,c.phone=((U=ui(_.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(_.value.valid?"":s.invalidMsg),E(c.phone)}function E(A){f.value=A,l("on-input",A,_.value,r.value)}function C(A){l("blur",A)}function O(A){of(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(u.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=u.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(u.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=u.value.slice(s.preferredCountries.length).findIndex(U=>Sn(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=u.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",p1,[t.dropdownOptions.showFlags?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["vti__flag",i.unref(Sn)(c.activeCountryCode)])},null,2)):i.createCommentVNode("",!0),t.dropdownOptions.showDialCodeInSelection?(i.openBlock(),i.createElementBlock("span",m1," +"+i.toDisplayString(h.value&&h.value.dialCode),1)):i.createCommentVNode("",!0),i.renderSlot(A.$slots,"arrow-icon",{open:c.open},()=>[i.createElementVNode("span",g1,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",y1,[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||(u.value.length?u.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,v1),[[i.vModelText,c.searchQuery]])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.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(Sn)(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,b1))),128))],2)):i.createCommentVNode("",!0)],42,h1)),[[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:f.value,"aria-describedby":t.inputOptions["aria-describedby"],onBlur:C,onFocus:O,onInput:B,onKeyup:[i.withKeys(N,["enter"]),i.withKeys(R,["space"])]},null,42,$1),[[i.vModelDynamic,c.phone]]),i.renderSlot(A.$slots,"icon-right")],2)}}}),Dp="",Ip="",k1={directives:{Outside:tr},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:w1,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 C1(t,n,e,o,a,r){const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=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(f,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 O1=_e(k1,[["render",C1]]);var $a={exports:{}};/*!
|
|
90
90
|
* Quill Editor v1.3.7
|
|
91
91
|
* https://quilljs.com/
|
|
92
92
|
* Copyright (c) 2014, Jason Chen
|
|
93
93
|
* Copyright (c) 2013, salesforce.com
|
|
94
|
-
*/(function(t,n){(function(o,a){t.exports=a()})(typeof self<"u"?self:
|
|
95
|
-
`;for(var u=
|
|
96
|
-
`)){var Y=d.default.create(
|
|
97
|
-
`,E(this))),this.cache.delta}},{key:"deleteAt",value:function(
|
|
98
|
-
`),ie=Y.shift();ie.length>0&&(M<this.length()-1||this.children.tail==null?l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),ie):this.children.tail.insertAt(this.children.tail.length(),ie),this.cache={});var U=this;Y.reduce(function(R,A){return U=U.split(R,!0),U.insertAt(0,A),A.length},M+ie.length)}}},{key:"insertBefore",value:function(M,F){var G=this.children.head;l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,M,F),G instanceof _.default&&G.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(M,F){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,M,F),this.cache={}}},{key:"optimize",value:function(M){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(F&&(M===0||M>=this.length()-S)){var G=this.clone();return M===0?(this.parent.insertBefore(G,this),this):(this.parent.insertBefore(G,this.next),G)}else{var Y=l(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,M,F);return this.cache={},Y}}}]),O}(d.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[b.default,d.default.Embed,y.default];function E(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,c.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=P},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(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},l=function(){function U(R,A){var j=[],V=!0,W=!1,H=void 0;try{for(var B=R[Symbol.iterator](),z;!(V=(z=B.next()).done)&&(j.push(z.value),!(A&&j.length===A));V=!0);}catch(Z){W=!0,H=Z}finally{try{!V&&B.return&&B.return()}finally{if(W)throw H}}return j}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return U(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function U(R,A){for(var j=0;j<A.length;j++){var V=A[j];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(R,V.key,V)}}return function(R,A,j){return A&&U(R.prototype,A),j&&U(R,j),R}}();a(50);var c=a(2),h=E(c),p=a(14),f=E(p),d=a(8),u=E(d),_=a(9),v=E(_),b=a(0),g=E(b),y=a(15),w=E(y),m=a(3),k=E(m),T=a(10),S=E(T),x=a(34),P=E(x);function E(U){return U&&U.__esModule?U:{default:U}}function C(U,R,A){return R in U?Object.defineProperty(U,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):U[R]=A,U}function O(U,R){if(!(U instanceof R))throw new TypeError("Cannot call a class as a function")}var N=(0,S.default)("quill"),M=function(){s(U,null,[{key:"debug",value:function(A){A===!0&&(A="log"),S.default.level(A)}},{key:"find",value:function(A){return A.__quill||g.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&N.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,j){var V=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var H=A.attrName||A.blotName;typeof H=="string"?this.register("formats/"+H,A,j):Object.keys(A).forEach(function(B){V.register(B,A[B],j)})}else this.imports[A]!=null&&!W&&N.warn("Overwriting "+A+" with",j),this.imports[A]=j,(A.startsWith("blots/")||A.startsWith("formats/"))&&j.blotName!=="abstract"?g.default.register(j):A.startsWith("modules")&&typeof j.register=="function"&&j.register()}}]);function U(R){var A=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,U),this.options=F(R,j),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",R);this.options.debug&&U.debug(this.options.debug);var V=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 u.default,this.scroll=g.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(u.default.events.EDITOR_CHANGE,function(H){H===u.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(H,B){var z=A.selection.lastRange,Z=z&&z.length===0?z.index:void 0;G.call(A,function(){return A.editor.update(null,B,Z)},H)});var W=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+V+"<p><br></p></div>");this.setContents(W),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(U,[{key:"addContainer",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var V=A;A=document.createElement("div"),A.classList.add(V)}return this.container.insertBefore(A,j),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,j,V){var W=this,H=Y(A,j,V),B=l(H,4);return A=B[0],j=B[1],V=B[3],G.call(this,function(){return W.editor.deleteText(A,j)},V,A,-1*j)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,j){var V=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;return G.call(this,function(){var H=V.getSelection(!0),B=new h.default;if(H==null)return B;if(g.default.query(A,g.default.Scope.BLOCK))B=V.editor.formatLine(H.index,H.length,C({},A,j));else{if(H.length===0)return V.selection.format(A,j),B;B=V.editor.formatText(H.index,H.length,C({},A,j))}return V.setSelection(H,u.default.sources.SILENT),B},W)}},{key:"formatLine",value:function(A,j,V,W,H){var B=this,z=void 0,Z=Y(A,j,V,W,H),J=l(Z,4);return A=J[0],j=J[1],z=J[2],H=J[3],G.call(this,function(){return B.editor.formatLine(A,j,z)},H,A,0)}},{key:"formatText",value:function(A,j,V,W,H){var B=this,z=void 0,Z=Y(A,j,V,W,H),J=l(Z,4);return A=J[0],j=J[1],z=J[2],H=J[3],G.call(this,function(){return B.editor.formatText(A,j,z)},H,A,0)}},{key:"getBounds",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V=void 0;typeof A=="number"?V=this.selection.getBounds(A,j):V=this.selection.getBounds(A.index,A.length);var W=this.container.getBoundingClientRect();return{bottom:V.bottom-W.top,height:V.height,left:V.left-W.left,right:V.right-W.left,top:V.top-W.top,width:V.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,V=Y(A,j),W=l(V,2);return A=W[0],j=W[1],this.editor.getContents(A,j)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,j):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,j)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,V=Y(A,j),W=l(V,2);return A=W[0],j=W[1],this.editor.getText(A,j)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,j,V){var W=this,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:U.sources.API;return G.call(this,function(){return W.editor.insertEmbed(A,j,V)},H,A)}},{key:"insertText",value:function(A,j,V,W,H){var B=this,z=void 0,Z=Y(A,0,V,W,H),J=l(Z,4);return A=J[0],z=J[2],H=J[3],G.call(this,function(){return B.editor.insertText(A,j,z)},H,A,j.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(A,j,V){this.clipboard.dangerouslyPasteHTML(A,j,V)}},{key:"removeFormat",value:function(A,j,V){var W=this,H=Y(A,j,V),B=l(H,4);return A=B[0],j=B[1],V=B[3],G.call(this,function(){return W.editor.removeFormat(A,j)},V,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var j=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return G.call(this,function(){A=new h.default(A);var W=j.getLength(),H=j.editor.deleteText(0,W),B=j.editor.applyDelta(A),z=B.ops[B.ops.length-1];z!=null&&typeof z.insert=="string"&&z.insert[z.insert.length-1]===`
|
|
99
|
-
`&&(j.editor.deleteText(j.getLength()-1,1),B.delete(1));var Z=H.compose(B);return Z},V)}},{key:"setSelection",value:function(A,j,V){if(A==null)this.selection.setRange(null,j||U.sources.API);else{var W=Y(A,j,V),H=l(W,4);A=H[0],j=H[1],V=H[3],this.selection.setRange(new y.Range(A,j),V),V!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API,V=new h.default().insert(A);return this.setContents(V,j)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,j=this.scroll.update(A);return this.selection.update(A),j}},{key:"updateContents",value:function(A){var j=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return G.call(this,function(){return A=new h.default(A),j.editor.applyDelta(A,V)},V,!0)}}]),U}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=u.default.events,M.sources=u.default.sources,M.version="1.3.7",M.imports={delta:h.default,parchment:g.default,"core/module":v.default,"core/theme":P.default};function F(U,R){if(R=(0,k.default)(!0,{container:U,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===M.DEFAULTS.theme)R.theme=P.default;else if(R.theme=M.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var A=(0,k.default)(!0,{},R.theme.DEFAULTS);[A,R].forEach(function(W){W.modules=W.modules||{},Object.keys(W.modules).forEach(function(H){W.modules[H]===!0&&(W.modules[H]={})})});var j=Object.keys(A.modules).concat(Object.keys(R.modules)),V=j.reduce(function(W,H){var B=M.import("modules/"+H);return B==null?N.error("Cannot load "+H+" module. Are you sure you registered it?"):W[H]=B.DEFAULTS||{},W},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,k.default)(!0,{},M.DEFAULTS,{modules:V},A,R),["bounds","container","scrollingContainer"].forEach(function(W){typeof R[W]=="string"&&(R[W]=document.querySelector(R[W]))}),R.modules=Object.keys(R.modules).reduce(function(W,H){return R.modules[H]&&(W[H]=R.modules[H]),W},{}),R}function G(U,R,A,j){if(this.options.strict&&!this.isEnabled()&&R===u.default.sources.USER)return new h.default;var V=A==null?null:this.getSelection(),W=this.editor.delta,H=U();if(V!=null&&(A===!0&&(A=V.index),j==null?V=ie(V,H,R):j!==0&&(V=ie(V,A,j,R)),this.setSelection(V,u.default.sources.SILENT)),H.length()>0){var B,z=[u.default.events.TEXT_CHANGE,H,W,R];if((B=this.emitter).emit.apply(B,[u.default.events.EDITOR_CHANGE].concat(z)),R!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,z)}}return H}function Y(U,R,A,j,V){var W={};return typeof U.index=="number"&&typeof U.length=="number"?typeof R!="number"?(V=j,j=A,A=R,R=U.length,U=U.index):(R=U.length,U=U.index):typeof R!="number"&&(V=j,j=A,A=R,R=0),(typeof A>"u"?"undefined":r(A))==="object"?(W=A,V=j):typeof A=="string"&&(j!=null?W[A]=j:V=A),V=V||u.default.sources.API,[U,R,W,V]}function ie(U,R,A,j){if(U==null)return null;var V=void 0,W=void 0;if(R instanceof h.default){var H=[U.index,U.index+U.length].map(function(J){return R.transformPosition(J,j!==u.default.sources.USER)}),B=l(H,2);V=B[0],W=B[1]}else{var z=[U.index,U.index+U.length].map(function(J){return J<R||J===R&&j===u.default.sources.USER?J:A>=0?J+A:Math.max(R,J+A)}),Z=l(z,2);V=Z[0],W=Z[1]}return new y.Range(V,W-V)}o.expandConfig=F,o.overload=Y,o.default=M},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(g,y){for(var w=0;w<y.length;w++){var m=y[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,y,w){return y&&b(g.prototype,y),w&&b(g,w),g}}(),l=function b(g,y,w){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,y);if(m===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:b(k,y,w)}else{if("value"in m)return m.value;var T=m.get;return T===void 0?void 0:T.call(w)}},s=a(7),c=f(s),h=a(0),p=f(h);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function u(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function _(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}var v=function(b){_(g,b);function g(){return d(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"formatAt",value:function(w,m,k,T){if(g.compare(this.statics.blotName,k)<0&&p.default.query(k,p.default.Scope.BLOT)){var S=this.isolate(w,m);T&&S.wrap(k,T)}else l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,w,m,k,T)}},{key:"optimize",value:function(w){if(l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,w),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var m=this.parent.isolate(this.offset(),this.length());this.moveChildren(m),m.wrap(this)}}}],[{key:"compare",value:function(w,m){var k=g.order.indexOf(w),T=g.order.indexOf(m);return k>=0||T>=0?k-T:w===m?0:w<m?-1:1}}]),g}(p.default.Inline);v.allowedChildren=[v,p.default.Embed,c.default],v.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=v},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 c(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function h(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var f=function(d){p(u,d);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default.Text);o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function y(w,m){for(var k=0;k<m.length;k++){var T=m[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(w,T.key,T)}}return function(w,m,k){return m&&y(w.prototype,m),k&&y(w,k),w}}(),l=function y(w,m,k){w===null&&(w=Function.prototype);var T=Object.getOwnPropertyDescriptor(w,m);if(T===void 0){var S=Object.getPrototypeOf(w);return S===null?void 0:y(S,m,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),c=f(s),h=a(10),p=f(h);function f(y){return y&&y.__esModule?y:{default:y}}function d(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function u(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function _(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var v=(0,p.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(y){document.addEventListener(y,function(){for(var w=arguments.length,m=Array(w),k=0;k<w;k++)m[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,m)}})})});var g=function(y){_(w,y);function w(){d(this,w);var m=u(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return m.listeners={},m.on("error",v.error),m}return r(w,[{key:"emit",value:function(){v.log.apply(v,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(P){var E=P.node,C=P.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}(c.default);g.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"},g.sources={API:"api",SILENT:"silent",USER:"user"},o.default=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});function r(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}var l=function s(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r(this,s),this.quill=c,this.options=h};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(h){if(r.indexOf(h)<=r.indexOf(l)){for(var p,f=arguments.length,d=Array(f>1?f-1:0),u=1;u<f;u++)d[u-1]=arguments[u];(p=console)[h].apply(p,d)}}function c(h){return r.reduce(function(p,f){return p[f]=s.bind(console,f,h),p},{})}s.level=c.level=function(h){l=h},o.default=c},function(e,o,a){var r=Array.prototype.slice,l=a(52),s=a(53),c=e.exports=function(d,u,_){return _||(_={}),d===u?!0:d instanceof Date&&u instanceof Date?d.getTime()===u.getTime():!d||!u||typeof d!="object"&&typeof u!="object"?_.strict?d===u:d==u:f(d,u,_)};function h(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,u,_){var v,b;if(h(d)||h(u)||d.prototype!==u.prototype)return!1;if(s(d))return s(u)?(d=r.call(d),u=r.call(u),c(d,u,_)):!1;if(p(d)){if(!p(u)||d.length!==u.length)return!1;for(v=0;v<d.length;v++)if(d[v]!==u[v])return!1;return!0}try{var g=l(d),y=l(u)}catch{return!1}if(g.length!=y.length)return!1;for(g.sort(),y.sort(),v=g.length-1;v>=0;v--)if(g[v]!=y[v])return!1;for(v=g.length-1;v>=0;v--)if(b=g[v],!c(d[b],u[b],_))return!1;return typeof d==typeof u}},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(c,h,p){p===void 0&&(p={}),this.attrName=c,this.keyName=h;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(c){return[].map.call(c.attributes,function(h){return h.name})},s.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},s.prototype.canAdd=function(c,h){var p=r.query(c,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},s.prototype.remove=function(c){c.removeAttribute(this.keyName)},s.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},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(P,E){var C=[],O=!0,N=!1,M=void 0;try{for(var F=P[Symbol.iterator](),G;!(O=(G=F.next()).done)&&(C.push(G.value),!(E&&C.length===E));O=!0);}catch(Y){N=!0,M=Y}finally{try{!O&&F.return&&F.return()}finally{if(N)throw M}}return C}return function(P,E){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return x(P,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function x(P,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(P,O.key,O)}}return function(P,E,C){return E&&x(P.prototype,E),C&&x(P,C),P}}(),s=function x(P,E,C){P===null&&(P=Function.prototype);var O=Object.getOwnPropertyDescriptor(P,E);if(O===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:x(N,E,C)}else{if("value"in O)return O.value;var M=O.get;return M===void 0?void 0:M.call(C)}},c=a(2),h=y(c),p=a(0),f=y(p),d=a(4),u=y(d),_=a(6),v=y(_),b=a(7),g=y(b);function y(x){return x&&x.__esModule?x:{default:x}}function w(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function m(x,P){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:x}function k(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(x,P):x.__proto__=P)}var T=function(x){k(P,x);function P(){return w(this,P),m(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(v.default);T.blotName="code",T.tagName="CODE";var S=function(x){k(P,x);function P(){return w(this,P),m(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return l(P,[{key:"delta",value:function(){var C=this,O=this.domNode.textContent;return O.endsWith(`
|
|
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),f=a(45),c=a(46),p=a(47),h=a(48),d=a(49),u=a(12),_=a(32),g=a(33),b=a(31),y=a(1),m={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:h.default,Scroll:f.default,Block:p.default,Inline:c.default,Text:d.default,Attributor:{Attribute:u.default,Class:_.default,Style:g.default,Store:b.default}};o.default=m},function(e,o,a){var r=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,m){y.__proto__=m}||function(y,m){for(var w in m)m.hasOwnProperty(w)&&(y[w]=m[w])};return function(y,m){b(y,m);function w(){this.constructor=y}y.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=function(b){r(y,b);function y(m){var w=this;return m="[Parchment] "+m,w=b.call(this,m)||this,w.message=m,w.name=w.constructor.name,w}return y}(Error);o.ParchmentError=l;var s={},f={},c={},p={};o.DATA_KEY="__blot";var h;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(h=o.Scope||(o.Scope={}));function d(b,y){var m=_(b);if(m==null)throw new l("Unable to create "+b+" blot");var w=m,v=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:w.create(y);return new w(v,y)}o.create=d;function u(b,y){return y===void 0&&(y=!1),b==null?null:b[o.DATA_KEY]!=null?b[o.DATA_KEY].blot:y?u(b.parentNode,y):null}o.find=u;function _(b,y){y===void 0&&(y=h.ANY);var m;if(typeof b=="string")m=p[b]||s[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)m=p.text;else if(typeof b=="number")b&h.LEVEL&h.BLOCK?m=p.block:b&h.LEVEL&h.INLINE&&(m=p.inline);else if(b instanceof HTMLElement){var w=(b.getAttribute("class")||"").split(/\s+/);for(var v in w)if(m=f[w[v]],m)break;m=m||c[b.tagName]}return m==null?null:y&h.LEVEL&m.scope&&y&h.TYPE&m.scope?m:null}o.query=_;function g(){for(var b=[],y=0;y<arguments.length;y++)b[y]=arguments[y];if(b.length>1)return b.map(function(v){return g(v)});var m=b[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new l("Invalid definition");if(m.blotName==="abstract")throw new l("Cannot register abstract class");if(p[m.blotName||m.attrName]=m,typeof m.keyName=="string")s[m.keyName]=m;else if(m.className!=null&&(f[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(v){return v.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var w=Array.isArray(m.tagName)?m.tagName:[m.tagName];w.forEach(function(v){(c[v]==null||m.className==null)&&(c[v]=m)})}return m}o.register=g},function(e,o,a){var r=a(51),l=a(11),s=a(3),f=a(20),c=String.fromCharCode(0),p=function(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]};p.prototype.insert=function(h,d){var u={};return h.length===0?this:(u.insert=h,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(u.attributes=d),this.push(u))},p.prototype.delete=function(h){return h<=0?this:this.push({delete:h})},p.prototype.retain=function(h,d){if(h<=0)return this;var u={retain:h};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(u.attributes=d),this.push(u)},p.prototype.push=function(h){var d=this.ops.length,u=this.ops[d-1];if(h=s(!0,{},h),typeof u=="object"){if(typeof h.delete=="number"&&typeof u.delete=="number")return this.ops[d-1]={delete:u.delete+h.delete},this;if(typeof u.delete=="number"&&h.insert!=null&&(d-=1,u=this.ops[d-1],typeof u!="object"))return this.ops.unshift(h),this;if(l(h.attributes,u.attributes)){if(typeof h.insert=="string"&&typeof u.insert=="string")return this.ops[d-1]={insert:u.insert+h.insert},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof u.retain=="number")return this.ops[d-1]={retain:u.retain+h.retain},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this}}return d===this.ops.length?this.ops.push(h):this.ops.splice(d,0,h),this},p.prototype.chop=function(){var h=this.ops[this.ops.length-1];return h&&h.retain&&!h.attributes&&this.ops.pop(),this},p.prototype.filter=function(h){return this.ops.filter(h)},p.prototype.forEach=function(h){this.ops.forEach(h)},p.prototype.map=function(h){return this.ops.map(h)},p.prototype.partition=function(h){var d=[],u=[];return this.forEach(function(_){var g=h(_)?d:u;g.push(_)}),[d,u]},p.prototype.reduce=function(h,d){return this.ops.reduce(h,d)},p.prototype.changeLength=function(){return this.reduce(function(h,d){return d.insert?h+f.length(d):d.delete?h-d.delete:h},0)},p.prototype.length=function(){return this.reduce(function(h,d){return h+f.length(d)},0)},p.prototype.slice=function(h,d){h=h||0,typeof d!="number"&&(d=1/0);for(var u=[],_=f.iterator(this.ops),g=0;g<d&&_.hasNext();){var b;g<h?b=_.next(h-g):(b=_.next(d-g),u.push(b)),g+=f.length(b)}return new p(u)},p.prototype.compose=function(h){var d=f.iterator(this.ops),u=f.iterator(h.ops),_=[],g=u.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){for(var b=g.retain;d.peekType()==="insert"&&d.peekLength()<=b;)b-=d.peekLength(),_.push(d.next());g.retain-b>0&&u.next(g.retain-b)}for(var y=new p(_);d.hasNext()||u.hasNext();)if(u.peekType()==="insert")y.push(u.next());else if(d.peekType()==="delete")y.push(d.next());else{var m=Math.min(d.peekLength(),u.peekLength()),w=d.next(m),v=u.next(m);if(typeof v.retain=="number"){var k={};typeof w.retain=="number"?k.retain=m:k.insert=w.insert;var T=f.attributes.compose(w.attributes,v.attributes,typeof w.retain=="number");if(T&&(k.attributes=T),y.push(k),!u.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(h){var d=new p(this.ops.slice());return h.ops.length>0&&(d.push(h.ops[0]),d.ops=d.ops.concat(h.ops.slice(1))),d},p.prototype.diff=function(h,d){if(this.ops===h.ops)return new p;var u=[this,h].map(function(m){return m.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:c;var v=m===h?"on":"with";throw new Error("diff() called "+v+" non-document")}).join("")}),_=new p,g=r(u[0],u[1],d),b=f.iterator(this.ops),y=f.iterator(h.ops);return g.forEach(function(m){for(var w=m[1].length;w>0;){var v=0;switch(m[0]){case r.INSERT:v=Math.min(y.peekLength(),w),_.push(y.next(v));break;case r.DELETE:v=Math.min(w,b.peekLength()),b.next(v),_.delete(v);break;case r.EQUAL:v=Math.min(b.peekLength(),y.peekLength(),w);var k=b.next(v),T=y.next(v);l(k.insert,T.insert)?_.retain(v,f.attributes.diff(k.attributes,T.attributes)):_.push(T).delete(v);break}w-=v}}),_.chop()},p.prototype.eachLine=function(h,d){d=d||`
|
|
95
|
+
`;for(var u=f.iterator(this.ops),_=new p,g=0;u.hasNext();){if(u.peekType()!=="insert")return;var b=u.peek(),y=f.length(b)-u.peekLength(),m=typeof b.insert=="string"?b.insert.indexOf(d,y)-y:-1;if(m<0)_.push(u.next());else if(m>0)_.push(u.next(m));else{if(h(_,u.next(1).attributes||{},g)===!1)return;g+=1,_=new p}}_.length()>0&&h(_,{},g)},p.prototype.transform=function(h,d){if(d=!!d,typeof h=="number")return this.transformPosition(h,d);for(var u=f.iterator(this.ops),_=f.iterator(h.ops),g=new p;u.hasNext()||_.hasNext();)if(u.peekType()==="insert"&&(d||_.peekType()!=="insert"))g.retain(f.length(u.next()));else if(_.peekType()==="insert")g.push(_.next());else{var b=Math.min(u.peekLength(),_.peekLength()),y=u.next(b),m=_.next(b);if(y.delete)continue;m.delete?g.push(m):g.retain(b,f.attributes.transform(y.attributes,m.attributes,d))}return g.chop()},p.prototype.transformPosition=function(h,d){d=!!d;for(var u=f.iterator(this.ops),_=0;u.hasNext()&&_<=h;){var g=u.peekLength(),b=u.peekType();if(u.next(),b==="delete"){h-=Math.min(g,h-_);continue}else b==="insert"&&(_<h||!d)&&(h+=g);_+=g}return h},e.exports=p},function(e,o){var a=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},c=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var _=a.call(u,"constructor"),g=u.constructor&&u.constructor.prototype&&a.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!_&&!g)return!1;var b;for(b in u);return typeof b>"u"||a.call(u,b)},p=function(u,_){l&&_.name==="__proto__"?l(u,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):u[_.name]=_.newValue},h=function(u,_){if(_==="__proto__")if(a.call(u,_)){if(s)return s(u,_).value}else return;return u[_]};e.exports=function d(){var u,_,g,b,y,m,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(u=arguments[v],u!=null)for(_ in u)g=h(w,_),b=h(u,_),w!==b&&(T&&b&&(c(b)||(y=f(b)))?(y?(y=!1,m=g&&f(g)?g:[]):m=g&&c(g)?g:{},p(w,{name:_,newValue:d(T,m,b)})):typeof b<"u"&&p(w,{name:_,newValue:b}));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),f=w(s),c=a(2),p=w(c),h=a(0),d=w(h),u=a(16),_=w(u),g=a(6),b=w(g),y=a(7),m=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,f.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 _.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=[b.default,d.default.Embed,m.default];function E(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(O=(0,f.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 f=a(2),c=E(f),p=a(14),h=E(p),d=a(8),u=E(d),_=a(9),g=E(_),b=a(0),y=E(b),m=a(15),w=E(m),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 u.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new h.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(u.default.events.EDITOR_CHANGE,function(F){F===u.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(u.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]:u.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,u.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]:u.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 m.Range(D,A),P),P!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.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]:u.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]:u.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=u.default.events,R.sources=u.default.sources,R.version="1.3.7",R.imports={delta:c.default,parchment:y.default,"core/module":g.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===u.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,u.default.sources.SILENT)),F.length()>0){var L,z=[u.default.events.TEXT_CHANGE,F,U,V];if((L=this.emitter).emit.apply(L,[u.default.events.EDITOR_CHANGE].concat(z)),V!==u.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||u.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!==u.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===u.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 m.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 b(y,m){for(var w=0;w<m.length;w++){var v=m[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}}(),l=function b(y,m,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,m);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:b(k,m,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),f=h(s),c=a(0),p=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function u(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function _(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=function(b){_(y,b);function y(){return d(this,y),u(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);g.allowedChildren=[g,p.default.Embed,f.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=g},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 f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function c(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var h=function(d){p(u,d);function u(){return f(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default.Text);o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function m(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&&m(w.prototype,v),k&&m(w,k),w}}(),l=function m(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:m(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),f=h(s),c=a(10),p=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")}function u(m,w){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:m}function _(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);m.prototype=Object.create(w&&w.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(m,w):m.__proto__=w)}var g=(0,p.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(m){document.addEventListener(m,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(m){_(w,m);function w(){d(this,w);var v=u(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return v.listeners={},v.on("error",g.error),v}return r(w,[{key:"emit",value:function(){g.log.apply(g,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}(f.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,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function s(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r(this,s),this.quill=f,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,h=arguments.length,d=Array(h>1?h-1:0),u=1;u<h;u++)d[u-1]=arguments[u];(p=console)[c].apply(p,d)}}function f(c){return r.reduce(function(p,h){return p[h]=s.bind(console,h,c),p},{})}s.level=f.level=function(c){l=c},o.default=f},function(e,o,a){var r=Array.prototype.slice,l=a(52),s=a(53),f=e.exports=function(d,u,_){return _||(_={}),d===u?!0:d instanceof Date&&u instanceof Date?d.getTime()===u.getTime():!d||!u||typeof d!="object"&&typeof u!="object"?_.strict?d===u:d==u:h(d,u,_)};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 h(d,u,_){var g,b;if(c(d)||c(u)||d.prototype!==u.prototype)return!1;if(s(d))return s(u)?(d=r.call(d),u=r.call(u),f(d,u,_)):!1;if(p(d)){if(!p(u)||d.length!==u.length)return!1;for(g=0;g<d.length;g++)if(d[g]!==u[g])return!1;return!0}try{var y=l(d),m=l(u)}catch{return!1}if(y.length!=m.length)return!1;for(y.sort(),m.sort(),g=y.length-1;g>=0;g--)if(y[g]!=m[g])return!1;for(g=y.length-1;g>=0;g--)if(b=y[g],!f(d[b],u[b],_))return!1;return typeof d==typeof u}},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(f,c,p){p===void 0&&(p={}),this.attrName=f,this.keyName=c;var h=r.Scope.TYPE&r.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&r.Scope.LEVEL|h:this.scope=r.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return s.keys=function(f){return[].map.call(f.attributes,function(c){return c.name})},s.prototype.add=function(f,c){return this.canAdd(f,c)?(f.setAttribute(this.keyName,c),!0):!1},s.prototype.canAdd=function(f,c){var p=r.query(f,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(f){f.removeAttribute(this.keyName)},s.prototype.value=function(f){var c=f.getAttribute(this.keyName);return this.canAdd(f,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)}},f=a(2),c=m(f),p=a(0),h=m(p),d=a(4),u=m(d),_=a(6),g=m(_),b=a(7),y=m(b);function m(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}(g.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
100
|
`)&&(O=O.slice(0,-1)),O.split(`
|
|
101
|
-
`).reduce(function(N,
|
|
102
|
-
`,C.formats())},new
|
|
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&&!(h.default.query(N,h.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
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
104
|
`);var N=this.domNode.textContent.slice(C).indexOf(`
|
|
105
105
|
`);return N>-1?C+N:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
|
|
106
|
-
`)||this.appendChild(
|
|
107
|
-
`)),s(
|
|
108
|
-
`)&&
|
|
109
|
-
`)&&(
|
|
106
|
+
`)||this.appendChild(h.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=h.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof h.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}(u.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}}(),f=a(2),c=O(f),p=a(20),h=O(p),d=a(0),u=O(d),_=a(13),g=O(_),b=a(24),y=O(b),m=a(4),w=O(m),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,m.bubbleFormats)(he));if(he instanceof w.default){var Oe=he.descendant(u.default.Leaf,ve),Le=l(Oe,1),Me=Le[0];ke=(0,C.default)(ke,(0,m.bubbleFormats)(Me))}Z=h.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 g.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 u.default.Leaf&&U.push(Z)}):(P=this.scroll.lines(D,A),U=this.scroll.descendants(u.default.Leaf,D,A));var F=[P,U].map(function(L){if(L.length===0)return{};for(var z=(0,m.bubbleFormats)(L.shift());Object.keys(z).length>0;){var Z=L.shift();if(Z==null)return z;z=Y((0,m.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
110
|
`).replace(/\r/g,`
|
|
111
|
-
`),this.scroll.insertAt(A
|
|
112
|
-
`));var ne=this.getContents(A
|
|
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 g.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)&&u.default.find(A[0].target)){var F=u.default.find(A[0].target),L=(0,m.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
113
|
`).replace(/\r/g,`
|
|
114
|
-
`);return R.insert(V,A.attributes)}return R.push(A)},new h.default)}o.default=G},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Range=void 0;var r=function(){function x(P,E){var C=[],O=!0,N=!1,M=void 0;try{for(var F=P[Symbol.iterator](),G;!(O=(G=F.next()).done)&&(C.push(G.value),!(E&&C.length===E));O=!0);}catch(Y){N=!0,M=Y}finally{try{!O&&F.return&&F.return()}finally{if(N)throw M}}return C}return function(P,E){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return x(P,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function x(P,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(P,O.key,O)}}return function(P,E,C){return E&&x(P.prototype,E),C&&x(P,C),P}}(),s=a(0),c=g(s),h=a(21),p=g(h),f=a(11),d=g(f),u=a(8),_=g(u),v=a(10),b=g(v);function g(x){return x&&x.__esModule?x:{default:x}}function y(x){if(Array.isArray(x)){for(var P=0,E=Array(x.length);P<x.length;P++)E[P]=x[P];return E}else return Array.from(x)}function w(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}var m=(0,b.default)("quill:selection"),k=function x(P){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,x),this.index=P,this.length=E},T=function(){function x(P,E){var C=this;w(this,x),this.emitter=E,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.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,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(O,N){O===_.default.events.TEXT_CHANGE&&N.length()>0&&C.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(_.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var M=N.range,F=M.startNode,G=M.startOffset,Y=M.endNode,ie=M.endOffset;C.setNativeRange(F,G,Y,ie)}}),this.update(_.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(_.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||c.default.query(E,c.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=c.default.find(O.start.node,!1);if(N==null)return;if(N instanceof c.default.Leaf){var M=N.split(O.start.offset);N.parent.insertBefore(this.cursor,M)}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,M=this.scroll.leaf(E),F=r(M,2),G=F[0],Y=F[1];if(G==null)return null;var ie=G.position(Y,!0),U=r(ie,2);N=U[0],Y=U[1];var R=document.createRange();if(C>0){R.setStart(N,Y);var A=this.scroll.leaf(E+C),j=r(A,2);if(G=j[0],Y=j[1],G==null)return null;var V=G.position(Y,!0),W=r(V,2);return N=W[0],Y=W[1],R.setEnd(N,Y),R.getBoundingClientRect()}else{var H="left",B=void 0;return N instanceof Text?(Y<N.data.length?(R.setStart(N,Y),R.setEnd(N,Y+1)):(R.setStart(N,Y-1),R.setEnd(N,Y),H="right"),B=R.getBoundingClientRect()):(B=G.domNode.getBoundingClientRect(),Y>0&&(H="right")),{bottom:B.top+B.height,height:B.height,left:B[H],right:B[H],top:B.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 m.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(G){var Y=r(G,2),ie=Y[0],U=Y[1],R=c.default.find(ie,!0),A=R.offset(C.scroll);return U===0?A:R instanceof c.default.Container?A+R.length():A+R.index(ie,U)}),M=Math.min(Math.max.apply(Math,y(N)),this.scroll.length()-1),F=Math.min.apply(Math,[M].concat(y(N)));return new k(F,M-F)}},{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,M=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>M)N=N.childNodes[M],M=0;else if(N.childNodes.length===M)N=N.lastChild,M=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=M}),C}},{key:"rangeToNative",value:function(E){var C=this,O=E.collapsed?[E.index]:[E.index,E.index+E.length],N=[],M=this.scroll.length();return O.forEach(function(F,G){F=Math.min(M-1,F);var Y=void 0,ie=C.scroll.leaf(F),U=r(ie,2),R=U[0],A=U[1],j=R.position(A,G!==0),V=r(j,2);Y=V[0],A=V[1],N.push(Y,A)}),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,M=this.scroll.line(Math.min(C.index,N)),F=r(M,1),G=F[0],Y=G;if(C.length>0){var ie=this.scroll.line(Math.min(C.index+C.length,N)),U=r(ie,1);Y=U[0]}if(!(G==null||Y==null)){var R=E.getBoundingClientRect();O.top<R.top?E.scrollTop-=R.top-O.top:O.bottom>R.bottom&&(E.scrollTop+=O.bottom-R.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,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(m.info("setNativeRange",E,C,O,N),!(E!=null&&(this.root.parentNode==null||E.parentNode==null||O.parentNode==null))){var F=document.getSelection();if(F!=null)if(E!=null){this.hasFocus()||this.root.focus();var G=(this.getNativeRange()||{}).native;if(G==null||M||E!==G.startContainer||C!==G.startOffset||O!==G.endContainer||N!==G.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),F.removeAllRanges(),F.addRange(Y)}}else F.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]:_.default.sources.API;if(typeof C=="string"&&(O=C,C=!1),m.info("setRange",E),E!=null){var N=this.rangeToNative(E);this.setNativeRange.apply(this,y(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]:_.default.sources.USER,C=this.lastRange,O=this.getRange(),N=r(O,2),M=N[0],F=N[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(C,this.lastRange)){var G;!this.composing&&F!=null&&F.native.collapsed&&F.start.node!==this.cursor.textNode&&this.cursor.restore();var Y=[_.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(C),E];if((G=this.emitter).emit.apply(G,[_.default.events.EDITOR_CHANGE].concat(Y)),E!==_.default.sources.SILENT){var ie;(ie=this.emitter).emit.apply(ie,Y)}}}}]),x}();function S(x,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),x.contains(P)}o.Range=k,o.default=T},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(v,b){for(var g=0;g<b.length;g++){var y=b[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,b,g){return b&&_(v.prototype,b),g&&_(v,g),v}}(),l=function _(v,b,g){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,b);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:_(w,b,g)}else{if("value"in y)return y.value;var m=y.get;return m===void 0?void 0:m.call(g)}},s=a(0),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,[{key:"insertInto",value:function(g,y){g.children.length===0?l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertInto",this).call(this,g,y):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),v}(c.default.Embed);u.blotName="break",u.tagName="BR",o.default=u},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){f(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(44),s=a(30),c=a(1),h=function(f){r(d,f);function d(u){var _=f.call(this,u)||this;return _.build(),_}return d.prototype.appendChild=function(u){this.insertBefore(u)},d.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},d.prototype.build=function(){var u=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(_){try{var v=p(_);u.insertBefore(v,u.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},d.prototype.deleteAt=function(u,_){if(u===0&&_===this.length())return this.remove();this.children.forEachAt(u,_,function(v,b,g){v.deleteAt(b,g)})},d.prototype.descendant=function(u,_){var v=this.children.find(_),b=v[0],g=v[1];return u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u?[b,g]:b instanceof d?b.descendant(u,g):[null,-1]},d.prototype.descendants=function(u,_,v){_===void 0&&(_=0),v===void 0&&(v=Number.MAX_VALUE);var b=[],g=v;return this.children.forEachAt(_,v,function(y,w,m){(u.blotName==null&&u(y)||u.blotName!=null&&y instanceof u)&&b.push(y),y instanceof d&&(b=b.concat(y.descendants(u,w,g))),g-=m}),b},d.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),f.prototype.detach.call(this)},d.prototype.formatAt=function(u,_,v,b){this.children.forEachAt(u,_,function(g,y,w){g.formatAt(y,w,v,b)})},d.prototype.insertAt=function(u,_,v){var b=this.children.find(u),g=b[0],y=b[1];if(g)g.insertAt(y,_,v);else{var w=v==null?c.create("text",_):c.create(_,v);this.appendChild(w)}},d.prototype.insertBefore=function(u,_){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(v){return u instanceof v}))throw new c.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,_)},d.prototype.length=function(){return this.children.reduce(function(u,_){return u+_.length()},0)},d.prototype.moveChildren=function(u,_){this.children.forEach(function(v){u.insertBefore(v,_)})},d.prototype.optimize=function(u){if(f.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var _=c.create(this.statics.defaultChild);this.appendChild(_),_.optimize(u)}else this.remove()},d.prototype.path=function(u,_){_===void 0&&(_=!1);var v=this.children.find(u,_),b=v[0],g=v[1],y=[[this,u]];return b instanceof d?y.concat(b.path(g,_)):(b!=null&&y.push([b,g]),y)},d.prototype.removeChild=function(u){this.children.remove(u)},d.prototype.replace=function(u){u instanceof d&&u.moveChildren(this),f.prototype.replace.call(this,u)},d.prototype.split=function(u,_){if(_===void 0&&(_=!1),!_){if(u===0)return this;if(u===this.length())return this.next}var v=this.clone();return this.parent.insertBefore(v,this.next),this.children.forEachAt(u,this.length(),function(b,g,y){b=b.split(g,_),v.appendChild(b)}),v},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(u,_){var v=this,b=[],g=[];u.forEach(function(y){y.target===v.domNode&&y.type==="childList"&&(b.push.apply(b,y.addedNodes),g.push.apply(g,y.removedNodes))}),g.forEach(function(y){if(!(y.parentNode!=null&&y.tagName!=="IFRAME"&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=c.find(y);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===v.domNode)&&w.detach()}}),b.filter(function(y){return y.parentNode==v.domNode}).sort(function(y,w){return y===w?0:y.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var w=null;y.nextSibling!=null&&(w=c.find(y.nextSibling));var m=p(y);(m.next!=w||m.next==null)&&(m.parent!=null&&m.parent.removeChild(v),v.insertBefore(m,w||void 0))})},d}(s.default);function p(f){var d=c.find(f);if(d==null)try{d=c.create(f)}catch{d=c.create(c.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(_){d.domNode.appendChild(_)}),f.parentNode&&f.parentNode.replaceChild(d.domNode,f),d.attach()}return d}o.default=h},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){f(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12),s=a(31),c=a(17),h=a(1),p=function(f){r(d,f);function d(u){var _=f.call(this,u)||this;return _.attributes=new s.default(_.domNode),_}return d.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},d.prototype.format=function(u,_){var v=h.query(u);v instanceof l.default?this.attributes.attribute(v,_):_&&v!=null&&(u!==this.statics.blotName||this.formats()[u]!==_)&&this.replaceWith(u,_)},d.prototype.formats=function(){var u=this.attributes.values(),_=this.statics.formats(this.domNode);return _!=null&&(u[this.statics.blotName]=_),u},d.prototype.replaceWith=function(u,_){var v=f.prototype.replaceWith.call(this,u,_);return this.attributes.copy(v),v},d.prototype.update=function(u,_){var v=this;f.prototype.update.call(this,u,_),u.some(function(b){return b.target===v.domNode&&b.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(u,_){var v=f.prototype.wrap.call(this,u,_);return v instanceof d&&v.statics.scope===this.statics.scope&&this.attributes.move(v),v},d}(c.default);o.default=p},function(e,o,a){var r=this&&this.__extends||function(){var h=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){h(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),c=function(h){r(p,h);function p(){return h!==null&&h.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 u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(u+=1),[this.parent.domNode,u]},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=c},function(e,o,a){var r=a(11),l=a(3),s={attributes:{compose:function(h,p,f){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var d=l(!0,{},p);f||(d=Object.keys(d).reduce(function(_,v){return d[v]!=null&&(_[v]=d[v]),_},{}));for(var u in h)h[u]!==void 0&&p[u]===void 0&&(d[u]=h[u]);return Object.keys(d).length>0?d:void 0},diff:function(h,p){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var f=Object.keys(h).concat(Object.keys(p)).reduce(function(d,u){return r(h[u],p[u])||(d[u]=p[u]===void 0?null:p[u]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(h,p,f){if(typeof h!="object")return p;if(typeof p=="object"){if(!f)return p;var d=Object.keys(p).reduce(function(u,_){return h[_]===void 0&&(u[_]=p[_]),u},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(h){return new c(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var p=this.ops[this.index];if(p){var f=this.offset,d=s.length(p);if(h>=d-f?(h=d-f,this.index+=1,this.offset=0):this.offset+=h,typeof p.delete=="number")return{delete:h};var u={};return p.attributes&&(u.attributes=p.attributes),typeof p.retain=="number"?u.retain=h:typeof p.insert=="string"?u.insert=p.insert.substr(f,h):u.insert=p.insert,u}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,p=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=h,this.index=p,[f].concat(d)}else return[]},e.exports=s},function(e,o){var a=function(){function r(v,b){return b!=null&&v instanceof b}var l;try{l=Map}catch{l=function(){}}var s;try{s=Set}catch{s=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(v,b,g,y,w){typeof b=="object"&&(g=b.depth,y=b.prototype,w=b.includeNonEnumerable,b=b.circular);var m=[],k=[],T=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof g>"u"&&(g=1/0);function S(x,P){if(x===null)return null;if(P===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,c))E=new c(function(R,A){x.then(function(j){R(S(j,P-1))},function(j){A(S(j,P-1))})});else if(h.__isArray(x))E=[];else if(h.__isRegExp(x))E=new RegExp(x.source,_(x)),x.lastIndex&&(E.lastIndex=x.lastIndex);else if(h.__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 y>"u"?(C=Object.getPrototypeOf(x),E=Object.create(C)):(E=Object.create(y),C=y)}if(b){var O=m.indexOf(x);if(O!=-1)return k[O];m.push(x),k.push(E)}r(x,l)&&x.forEach(function(R,A){var j=S(A,P-1),V=S(R,P-1);E.set(j,V)}),r(x,s)&&x.forEach(function(R){var A=S(R,P-1);E.add(A)});for(var N in x){var M;C&&(M=Object.getOwnPropertyDescriptor(C,N)),!(M&&M.set==null)&&(E[N]=S(x[N],P-1))}if(Object.getOwnPropertySymbols)for(var F=Object.getOwnPropertySymbols(x),N=0;N<F.length;N++){var G=F[N],Y=Object.getOwnPropertyDescriptor(x,G);Y&&!Y.enumerable&&!w||(E[G]=S(x[G],P-1),Y.enumerable||Object.defineProperty(E,G,{enumerable:!1}))}if(w)for(var ie=Object.getOwnPropertyNames(x),N=0;N<ie.length;N++){var U=ie[N],Y=Object.getOwnPropertyDescriptor(x,U);Y&&Y.enumerable||(E[U]=S(x[U],P-1),Object.defineProperty(E,U,{enumerable:!1}))}return E}return S(v,g)}h.clonePrototype=function(b){if(b===null)return null;var g=function(){};return g.prototype=b,new g};function p(v){return Object.prototype.toString.call(v)}h.__objToStr=p;function f(v){return typeof v=="object"&&p(v)==="[object Date]"}h.__isDate=f;function d(v){return typeof v=="object"&&p(v)==="[object Array]"}h.__isArray=d;function u(v){return typeof v=="object"&&p(v)==="[object RegExp]"}h.__isRegExp=u;function _(v){var b="";return v.global&&(b+="g"),v.ignoreCase&&(b+="i"),v.multiline&&(b+="m"),b}return h.__getRegExpFlags=_,h}();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=[],M=!0,F=!1,G=void 0;try{for(var Y=C[Symbol.iterator](),ie;!(M=(ie=Y.next()).done)&&(N.push(ie.value),!(O&&N.length===O));M=!0);}catch(U){F=!0,G=U}finally{try{!M&&Y.return&&Y.return()}finally{if(F)throw G}}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 M=O[N];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(C,M.key,M)}}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 M=Object.getOwnPropertyDescriptor(C,O);if(M===void 0){var F=Object.getPrototypeOf(C);return F===null?void 0:E(F,O,N)}else{if("value"in M)return M.value;var G=M.get;return G===void 0?void 0:G.call(N)}},c=a(0),h=m(c),p=a(8),f=m(p),d=a(4),u=m(d),_=a(16),v=m(_),b=a(13),g=m(b),y=a(25),w=m(y);function m(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 u.default||E instanceof d.BlockEmbed}var P=function(E){S(C,E);function C(O,N){k(this,C);var M=T(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O));return M.emitter=N.emitter,Array.isArray(N.whitelist)&&(M.whitelist=N.whitelist.reduce(function(F,G){return F[G]=!0,F},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,M){var F=this.line(N),G=r(F,2),Y=G[0],ie=G[1],U=this.line(N+M),R=r(U,1),A=R[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,N,M),A!=null&&Y!==A&&ie>0){if(Y instanceof d.BlockEmbed||A instanceof d.BlockEmbed){this.optimize();return}if(Y instanceof g.default){var j=Y.newlineIndex(Y.length(),!0);if(j>-1&&(Y=Y.split(j+1),Y===A)){this.optimize();return}}else if(A instanceof g.default){var V=A.newlineIndex(0);V>-1&&A.split(V+1)}var W=A.children.head instanceof v.default?null:A.children.head;Y.moveChildren(A,W),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,M,F,G){this.whitelist!=null&&!this.whitelist[F]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,N,M,F,G),this.optimize())}},{key:"insertAt",value:function(N,M,F){if(!(F!=null&&this.whitelist!=null&&!this.whitelist[M])){if(N>=this.length())if(F==null||h.default.query(M,h.default.Scope.BLOCK)==null){var G=h.default.create(this.statics.defaultChild);this.appendChild(G),F==null&&M.endsWith(`
|
|
115
|
-
`)&&(
|
|
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
|
|
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
|
|
118
|
-
`,J,k.default.sources.USER),this.quill.setSelection(
|
|
119
|
-
`);Oe=0,te.forEach(function(ae,le){B?(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 W(B){return{key:B[0].toUpperCase(),shortKey:!0,handler:function(Z,J){this.quill.format(B,!J.format[B],k.default.sources.USER)}}}function H(B){if(typeof B=="string"||typeof B=="number")return H({key:B});if((typeof B>"u"?"undefined":r(B))==="object"&&(B=(0,h.default)(B,!1)),typeof B.key=="string")if(Y.keys[B.key.toUpperCase()]!=null)B.key=Y.keys[B.key.toUpperCase()];else if(B.key.length===1)B.key=B.key.toUpperCase().charCodeAt(0);else return null;return B.shortKey&&(B[G]=B.shortKey,delete B.shortKey),B}o.default=Y,o.SHORTKEY=G},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function g(y,w){var m=[],k=!0,T=!1,S=void 0;try{for(var x=y[Symbol.iterator](),P;!(k=(P=x.next()).done)&&(m.push(P.value),!(w&&m.length===w));k=!0);}catch(E){T=!0,S=E}finally{try{!k&&x.return&&x.return()}finally{if(T)throw S}}return m}return function(y,w){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return g(y,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function g(y,w,m){y===null&&(y=Function.prototype);var k=Object.getOwnPropertyDescriptor(y,w);if(k===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:g(T,w,m)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(m)}},s=function(){function g(y,w){for(var m=0;m<w.length;m++){var k=w[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(y,k.key,k)}}return function(y,w,m){return w&&g(y.prototype,w),m&&g(y,m),y}}(),c=a(0),h=d(c),p=a(7),f=d(p);function d(g){return g&&g.__esModule?g:{default:g}}function u(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function _(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var b=function(g){v(y,g),s(y,null,[{key:"value",value:function(){}}]);function y(w,m){u(this,y);var k=_(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w));return k.selection=m,k.textNode=document.createTextNode(y.CONTENTS),k.domNode.appendChild(k.textNode),k._length=0,k}return s(y,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(m,k){if(this._length!==0)return l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,m,k);for(var T=this,S=0;T!=null&&T.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=y.CONTENTS.length,T.optimize(),T.formatAt(S,y.CONTENTS.length,m,k),this._length=0)}},{key:"index",value:function(m,k){return m===this.textNode?0:l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,m,k)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var m=this.textNode,k=this.selection.getNativeRange(),T=void 0,S=void 0,x=void 0;if(k!=null&&k.start.node===m&&k.end.node===m){var P=[m,k.start.offset,k.end.offset];T=P[0],S=P[1],x=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==y.CONTENTS){var E=this.textNode.data.split(y.CONTENTS).join("");this.next instanceof f.default?(T=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=y.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(y.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(m,k){var T=this;if(m.some(function(x){return x.type==="characterData"&&x.target===T.textNode})){var S=this.restore();S&&(k.range=S)}}},{key:"value",value:function(){return""}}]),y}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",o.default=b},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=h(r),s=a(4),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default.Container);u.allowedChildren=[c.default,s.BlockEmbed,u],o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var r=function(){function b(g,y){for(var w=0;w<y.length;w++){var m=y[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,y,w){return y&&b(g.prototype,y),w&&b(g,w),g}}(),l=function b(g,y,w){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,y);if(m===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:b(k,y,w)}else{if("value"in m)return m.value;var T=m.get;return T===void 0?void 0:T.call(w)}},s=a(0),c=h(s);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function f(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function d(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}var u=function(b){d(g,b);function g(){return p(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"value",value:function(w){var m=l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,w);return m.startsWith("rgb(")?(m=m.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+m.split(",").map(function(k){return("00"+parseInt(k).toString(16)).slice(-2)}).join("")):m}}]),g}(c.default.Attributor.Style),_=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),v=new u("color","color",{scope:c.default.Scope.INLINE});o.ColorAttributor=u,o.ColorClass=_,o.ColorStyle=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var r=function(){function v(b,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,g,y){return g&&v(b.prototype,g),y&&v(b,y),b}}(),l=function v(b,g,y){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,g);if(w===void 0){var m=Object.getPrototypeOf(b);return m===null?void 0:v(m,g,y)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(y)}},s=a(6),c=h(s);function h(v){return v&&v.__esModule?v:{default:v}}function p(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function d(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var u=function(v){d(b,v);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(y,w){if(y!==this.statics.blotName||!w)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,y,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(y){var w=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,y);return y=this.sanitize(y),w.setAttribute("href",y),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(y){return y.getAttribute("href")}},{key:"sanitize",value:function(y){return _(y,this.PROTOCOL_WHITELIST)?y:this.SANITIZED_URL}}]),b}(c.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function _(v,b){var g=document.createElement("a");g.href=v;var y=g.href.slice(0,g.href.indexOf(":"));return b.indexOf(y)>-1}o.default=u,o.sanitize=_},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(g,y){for(var w=0;w<y.length;w++){var m=y[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,y,w){return y&&b(g.prototype,y),w&&b(g,w),g}}(),s=a(23),c=f(s),h=a(107),p=f(h);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}var u=0;function _(b,g){b.setAttribute(g,b.getAttribute(g)!=="true")}var v=function(){function b(g){var y=this;d(this,b),this.select=g,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(){y.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case c.default.keys.ENTER:y.togglePicker();break;case c.default.keys.ESCAPE:y.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),_(this.label,"aria-expanded"),_(this.options,"aria-hidden")}},{key:"buildItem",value:function(y){var w=this,m=document.createElement("span");return m.tabIndex="0",m.setAttribute("role","button"),m.classList.add("ql-picker-item"),y.hasAttribute("value")&&m.setAttribute("data-value",y.getAttribute("value")),y.textContent&&m.setAttribute("data-label",y.textContent),m.addEventListener("click",function(){w.selectItem(m,!0)}),m.addEventListener("keydown",function(k){switch(k.keyCode){case c.default.keys.ENTER:w.selectItem(m,!0),k.preventDefault();break;case c.default.keys.ESCAPE:w.escape(),k.preventDefault();break}}),m}},{key:"buildLabel",value:function(){var y=document.createElement("span");return y.classList.add("ql-picker-label"),y.innerHTML=p.default,y.tabIndex="0",y.setAttribute("role","button"),y.setAttribute("aria-expanded","false"),this.container.appendChild(y),y}},{key:"buildOptions",value:function(){var y=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(m){var k=y.buildItem(m);w.appendChild(k),m.selected===!0&&y.selectItem(k)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var y=this;[].slice.call(this.select.attributes).forEach(function(w){y.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var y=this;this.close(),setTimeout(function(){return y.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(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=this.container.querySelector(".ql-selected");if(y!==m&&(m!=null&&m.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.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 y=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var m=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",m)}}]),b}();o.default=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=F(r),s=a(5),c=F(s),h=a(4),p=F(h),f=a(16),d=F(f),u=a(25),_=F(u),v=a(24),b=F(v),g=a(35),y=F(g),w=a(6),m=F(w),k=a(22),T=F(k),S=a(7),x=F(S),P=a(55),E=F(P),C=a(42),O=F(C),N=a(23),M=F(N);function F(G){return G&&G.__esModule?G:{default:G}}c.default.register({"blots/block":p.default,"blots/block/embed":h.BlockEmbed,"blots/break":d.default,"blots/container":_.default,"blots/cursor":b.default,"blots/embed":y.default,"blots/inline":m.default,"blots/scroll":T.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":O.default,"modules/keyboard":M.default}),l.default.register(p.default,d.default,b.default,m.default,T.default,x.default),o.default=c.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(c){this.domNode=c,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(c){if(this.tagName==null)throw new r.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return r.create(c)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},s.prototype.deleteAt=function(c,h){var p=this.isolate(c,h);p.remove()},s.prototype.formatAt=function(c,h,p,f){var d=this.isolate(c,h);if(r.query(p,r.Scope.BLOT)!=null&&f)d.wrap(p,f);else if(r.query(p,r.Scope.ATTRIBUTE)!=null){var u=r.create(this.statics.scope);d.wrap(u),u.format(p,f)}},s.prototype.insertAt=function(c,h,p){var f=p==null?r.create("text",h):r.create(h,p),d=this.split(c);this.parent.insertBefore(f,d)},s.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var p=null;c.children.insertBefore(this,h),h!=null&&(p=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=p)&&c.domNode.insertBefore(this.domNode,p),this.parent=c,this.attach()},s.prototype.isolate=function(c,h){var p=this.split(c);return p.split(h),p},s.prototype.length=function(){return 1},s.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},s.prototype.optimize=function(c){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(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},s.prototype.replaceWith=function(c,h){var p=typeof c=="string"?r.create(c,h):c;return p.replace(this),p},s.prototype.split=function(c,h){return c===0?this:this.next},s.prototype.update=function(c,h){},s.prototype.wrap=function(c,h){var p=typeof c=="string"?r.create(c,h):c;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),c=a(1),h=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),u=l.default.keys(this.domNode),_=s.default.keys(this.domNode);d.concat(u).concat(_).forEach(function(v){var b=c.query(v,c.Scope.ATTRIBUTE);b instanceof r.default&&(f.attributes[b.attrName]=b)})},p.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(u){var _=d.attributes[u].value(d.domNode);f.format(u,_)})},p.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(u){d.attributes[u].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,u){return d[u]=f.attributes[u].value(f.domNode),d},{})},p}();o.default=h},function(e,o,a){var r=this&&this.__extends||function(){var h=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){h(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(h,p){var f=h.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var c=function(h){r(p,h);function p(){return h!==null&&h.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(u){f.classList.remove(u)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var d=s(f,this.keyName)[0]||"",u=d.slice(this.keyName.length+1);return this.canAdd(f,u)?u:""},p}(l.default);o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var h=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){h(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(h){var p=h.split("-"),f=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+f}var c=function(h){r(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var u=d.split(":");return u[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=c},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function c(h,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(h,d.key,d)}}return function(h,p,f){return p&&c(h.prototype,p),f&&c(h,f),h}}();function l(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function(){function c(h,p){l(this,c),this.quill=h,this.options=p,this.modules={}}return r(c,[{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]}}]),c}();s.DEFAULTS={modules:{}},s.themes={default:s},o.default=s},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function g(y,w){for(var m=0;m<w.length;m++){var k=w[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(y,k.key,k)}}return function(y,w,m){return w&&g(y.prototype,w),m&&g(y,m),y}}(),l=function g(y,w,m){y===null&&(y=Function.prototype);var k=Object.getOwnPropertyDescriptor(y,w);if(k===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:g(T,w,m)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(m)}},s=a(0),c=f(s),h=a(7),p=f(h);function f(g){return g&&g.__esModule?g:{default:g}}function d(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function u(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function _(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v="\uFEFF",b=function(g){_(y,g);function y(w){d(this,y);var m=u(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w));return m.contentNode=document.createElement("span"),m.contentNode.setAttribute("contenteditable",!1),[].slice.call(m.domNode.childNodes).forEach(function(k){m.contentNode.appendChild(k)}),m.leftGuard=document.createTextNode(v),m.rightGuard=document.createTextNode(v),m.domNode.appendChild(m.leftGuard),m.domNode.appendChild(m.contentNode),m.domNode.appendChild(m.rightGuard),m}return r(y,[{key:"index",value:function(m,k){return m===this.leftGuard?0:m===this.rightGuard?1:l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,m,k)}},{key:"restore",value:function(m){var k=void 0,T=void 0,S=m.data.split(v).join("");if(m===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(c.default.create(T),this),k={startNode:T,startOffset:S.length};else m===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(c.default.create(T),this.next),k={startNode:T,startOffset:S.length}));return m.data=v,k}},{key:"update",value:function(m,k){var T=this;m.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)}})}}]),y}(c.default.Embed);o.default=b},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 c={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",c),p=new l.default.Attributor.Class("align","ql-align",c),f=new l.default.Attributor.Style("align","text-align",c);o.AlignAttribute=h,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=c(r),s=a(26);function c(f){return f&&f.__esModule?f:{default:f}}var h=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=h,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 c={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",c),p=new l.default.Attributor.Class("direction","ql-direction",c),f=new l.default.Attributor.Style("direction","direction",c);o.DirectionAttribute=h,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 g(y,w){for(var m=0;m<w.length;m++){var k=w[m];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(y,k.key,k)}}return function(y,w,m){return w&&g(y.prototype,w),m&&g(y,m),y}}(),l=function g(y,w,m){y===null&&(y=Function.prototype);var k=Object.getOwnPropertyDescriptor(y,w);if(k===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:g(T,w,m)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(m)}},s=a(0),c=h(s);function h(g){return g&&g.__esModule?g:{default:g}}function p(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function d(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var u={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},_=new c.default.Attributor.Class("font","ql-font",u),v=function(g){d(y,g);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"value",value:function(m){return l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,m).replace(/["']/g,"")}}]),y}(c.default.Attributor.Style),b=new v("font","font-family",u);o.FontStyle=b,o.FontClass=_},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 c=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});o.SizeClass=c,o.SizeStyle=h},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(m,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(m,S.key,S)}}return function(m,k,T){return k&&w(m.prototype,k),T&&w(m,T),m}}(),l=a(0),s=d(l),c=a(5),h=d(c),p=a(9),f=d(p);function d(w){return w&&w.__esModule?w:{default:w}}function u(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function _(w,m){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:w}function v(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(w,m):w.__proto__=m)}var b=function(w){v(m,w);function m(k,T){u(this,m);var S=_(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,k,T));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(x,P,E,C){x!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===h.default.sources.USER?S.record(P,E):S.transform(P))}),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(m,[{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],h.default.sources.USER),this.ignoreChange=!1;var P=y(x[T]);this.quill.setSelection(P)}}},{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),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var E=this.stack.undo.pop();x=x.compose(E.undo),T=E.redo.compose(T)}else this.lastRecorded=P;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")}}]),m}(f.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function g(w){var m=w.ops[w.ops.length-1];return m==null?!1:m.insert!=null?typeof m.insert=="string"&&m.insert.endsWith(`
|
|
120
|
-
`):m.attributes!=null?Object.keys(m.attributes).some(function(k){return s.default.query(k,s.default.Scope.BLOCK)!=null}):!1}function y(w){var m=w.reduce(function(T,S){return T+=S.delete||0,T},0),k=w.length()-m;return g(w)&&(k-=1),k}o.default=b,o.getLastChangeIndex=y},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BaseTooltip=void 0;var r=function(){function j(V,W){for(var H=0;H<W.length;H++){var B=W[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(V,B.key,B)}}return function(V,W,H){return W&&j(V.prototype,W),H&&j(V,H),V}}(),l=function j(V,W,H){V===null&&(V=Function.prototype);var B=Object.getOwnPropertyDescriptor(V,W);if(B===void 0){var z=Object.getPrototypeOf(V);return z===null?void 0:j(z,W,H)}else{if("value"in B)return B.value;var Z=B.get;return Z===void 0?void 0:Z.call(H)}},s=a(3),c=P(s),h=a(2),p=P(h),f=a(8),d=P(f),u=a(23),_=P(u),v=a(34),b=P(v),g=a(59),y=P(g),w=a(60),m=P(w),k=a(28),T=P(k),S=a(61),x=P(S);function P(j){return j&&j.__esModule?j:{default:j}}function E(j,V){if(!(j instanceof V))throw new TypeError("Cannot call a class as a function")}function C(j,V){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:j}function O(j,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);j.prototype=Object.create(V&&V.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(j,V):j.__proto__=V)}var N=[!1,"center","right","justify"],M=["#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"],F=[!1,"serif","monospace"],G=["1","2","3",!1],Y=["small",!1,"large","huge"],ie=function(j){O(V,j);function V(W,H){E(this,V);var B=C(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,W,H)),z=function Z(J){if(!document.body.contains(W.root))return document.body.removeEventListener("click",Z);B.tooltip!=null&&!B.tooltip.root.contains(J.target)&&document.activeElement!==B.tooltip.textbox&&!B.quill.hasFocus()&&B.tooltip.hide(),B.pickers!=null&&B.pickers.forEach(function(ne){ne.container.contains(J.target)||ne.close()})};return W.emitter.listenDOM("click",document.body,z),B}return r(V,[{key:"addModule",value:function(H){var B=l(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"addModule",this).call(this,H);return H==="toolbar"&&this.extendToolbar(B),B}},{key:"buildButtons",value:function(H,B){H.forEach(function(z){var Z=z.getAttribute("class")||"";Z.split(/\s+/).forEach(function(J){if(J.startsWith("ql-")&&(J=J.slice(3),B[J]!=null))if(J==="direction")z.innerHTML=B[J][""]+B[J].rtl;else if(typeof B[J]=="string")z.innerHTML=B[J];else{var ne=z.value||"";ne!=null&&B[J][ne]&&(z.innerHTML=B[J][ne])}})})}},{key:"buildPickers",value:function(H,B){var z=this;this.pickers=H.map(function(J){if(J.classList.contains("ql-align"))return J.querySelector("option")==null&&A(J,N),new m.default(J,B.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&&A(J,M,ne==="background"?"#ffffff":"#000000"),new y.default(J,B[ne])}else return J.querySelector("option")==null&&(J.classList.contains("ql-font")?A(J,F):J.classList.contains("ql-header")?A(J,G):J.classList.contains("ql-size")&&A(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)}}]),V}(b.default);ie.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var V=this,W=this.container.querySelector("input.ql-image[type=file]");W==null&&(W=document.createElement("input"),W.setAttribute("type","file"),W.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),W.classList.add("ql-image"),W.addEventListener("change",function(){if(W.files!=null&&W.files[0]!=null){var H=new FileReader;H.onload=function(B){var z=V.quill.getSelection(!0);V.quill.updateContents(new p.default().retain(z.index).delete(z.length).insert({image:B.target.result}),d.default.sources.USER),V.quill.setSelection(z.index+1,d.default.sources.SILENT),W.value=""},H.readAsDataURL(W.files[0])}}),this.container.appendChild(W)),W.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var U=function(j){O(V,j);function V(W,H){E(this,V);var B=C(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,W,H));return B.textbox=B.root.querySelector('input[type="text"]'),B.listen(),B}return r(V,[{key:"listen",value:function(){var H=this;this.textbox.addEventListener("keydown",function(B){_.default.match(B,"enter")?(H.save(),B.preventDefault()):_.default.match(B,"escape")&&(H.cancel(),B.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),B!=null?this.textbox.value=B:H!==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-"+H)||""),this.root.setAttribute("data-mode",H)}},{key:"restoreFocus",value:function(){var H=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=H}},{key:"save",value:function(){var H=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var B=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",H,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",H,d.default.sources.USER)),this.quill.root.scrollTop=B;break}case"video":H=R(H);case"formula":{if(!H)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"),H,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()}}]),V}(x.default);function R(j){var V=j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return V?(V[1]||"https")+"://www.youtube.com/embed/"+V[2]+"?showinfo=0":(V=j.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(V[1]||"https")+"://player.vimeo.com/video/"+V[2]+"/":j}function A(j,V){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;V.forEach(function(H){var B=document.createElement("option");H===W?B.setAttribute("selected","selected"):B.setAttribute("value",H),j.appendChild(B)})}o.BaseTooltip=U,o.default=ie},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=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},l.prototype.contains=function(s){for(var c,h=this.iterator();c=h();)if(c===s)return!0;return!1},l.prototype.insertBefore=function(s,c){s&&(s.next=c,c!=null?(s.prev=c.prev,c.prev!=null&&(c.prev.next=s),c.prev=s,c===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 c=0,h=this.head;h!=null;){if(h===s)return c;c+=h.length(),h=h.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 c=s;return s!=null&&(s=s.next),c}},l.prototype.find=function(s,c){c===void 0&&(c=!1);for(var h,p=this.iterator();h=p();){var f=h.length();if(s<f||c&&s===f&&(h.next==null||h.next.length()!==0))return[h,s];s-=f}return[null,0]},l.prototype.forEach=function(s){for(var c,h=this.iterator();c=h();)s(c)},l.prototype.forEachAt=function(s,c,h){if(!(c<=0))for(var p=this.find(s),f=p[0],d=p[1],u,_=s-d,v=this.iterator(f);(u=v())&&_<s+c;){var b=u.length();s>_?h(u,s-_,Math.min(c,_+b-s)):h(u,0,Math.min(b,s+c-_)),_+=b}},l.prototype.map=function(s){return this.reduce(function(c,h){return c.push(s(h)),c},[])},l.prototype.reduce=function(s,c){for(var h,p=this.iterator();h=p();)c=s(c,h);return c},l}();o.default=r},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){f(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(17),s=a(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,p=function(f){r(d,f);function d(u){var _=f.call(this,u)||this;return _.scroll=_,_.observer=new MutationObserver(function(v){_.update(v)}),_.observer.observe(_.domNode,c),_.attach(),_}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(u,_){this.update(),u===0&&_===this.length()?this.children.forEach(function(v){v.remove()}):f.prototype.deleteAt.call(this,u,_)},d.prototype.formatAt=function(u,_,v,b){this.update(),f.prototype.formatAt.call(this,u,_,v,b)},d.prototype.insertAt=function(u,_,v){this.update(),f.prototype.insertAt.call(this,u,_,v)},d.prototype.optimize=function(u,_){var v=this;u===void 0&&(u=[]),_===void 0&&(_={}),f.prototype.optimize.call(this,_);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var g=function(k,T){T===void 0&&(T=!0),!(k==null||k===v)&&k.domNode.parentNode!=null&&(k.domNode[s.DATA_KEY].mutations==null&&(k.domNode[s.DATA_KEY].mutations=[]),T&&g(k.parent))},y=function(k){k.domNode[s.DATA_KEY]==null||k.domNode[s.DATA_KEY].mutations==null||(k instanceof l.default&&k.children.forEach(y),k.optimize(_))},w=u,m=0;w.length>0;m+=1){if(m>=h)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"?(g(s.find(k.previousSibling,!1)),[].forEach.call(k.addedNodes,function(S){var x=s.find(S,!1);g(x,!1),x instanceof l.default&&x.children.forEach(function(P){g(P,!1)})})):k.type==="attributes"&&g(T.prev)),g(T))}),this.children.forEach(y),w=[].slice.call(this.observer.takeRecords()),b=w.slice();b.length>0;)u.push(b.pop())}},d.prototype.update=function(u,_){var v=this;_===void 0&&(_={}),u=u||this.observer.takeRecords(),u.map(function(b){var g=s.find(b.target,!0);return g==null?null:g.domNode[s.DATA_KEY].mutations==null?(g.domNode[s.DATA_KEY].mutations=[b],g):(g.domNode[s.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===v||b.domNode[s.DATA_KEY]==null||b.update(b.domNode[s.DATA_KEY].mutations||[],_)}),this.domNode[s.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,_),this.optimize(u,_)},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 u in d)d.hasOwnProperty(u)&&(f[u]=d[u])};return function(f,d){p(f,d);function u(){this.constructor=f}f.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(18),s=a(1);function c(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 h=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,u){var _=this;d===this.statics.blotName&&!u?(this.children.forEach(function(v){v instanceof l.default||(v=v.wrap(f.blotName,!0)),_.attributes.copy(v)}),this.unwrap()):p.prototype.format.call(this,d,u)},f.prototype.formatAt=function(d,u,_,v){if(this.formats()[_]!=null||s.query(_,s.Scope.ATTRIBUTE)){var b=this.isolate(d,u);b.format(_,v)}else p.prototype.formatAt.call(this,d,u,_,v)},f.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var _=this.next;_ instanceof f&&_.prev===this&&c(u,_.formats())&&(_.moveChildren(this),_.remove())},f.blotName="inline",f.scope=s.Scope.INLINE_BLOT,f.tagName="SPAN",f}(l.default);o.default=h},function(e,o,a){var r=this&&this.__extends||function(){var h=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){h(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),c=function(h){r(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.formats=function(f){var d=s.query(p.blotName).tagName;if(f.tagName!==d)return h.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):h.prototype.format.call(this,f,d))},p.prototype.formatAt=function(f,d,u,_){s.query(u,s.Scope.BLOCK)!=null?this.format(u,_):h.prototype.formatAt.call(this,f,d,u,_)},p.prototype.insertAt=function(f,d,u){if(u==null||s.query(d,s.Scope.INLINE)!=null)h.prototype.insertAt.call(this,f,d,u);else{var _=this.split(f),v=s.create(d,u);_.parent.insertBefore(v,_)}},p.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,f,d)},p.blotName="block",p.scope=s.Scope.BLOCK_BLOT,p.tagName="P",p}(l.default);o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var f in p)p.hasOwnProperty(f)&&(h[f]=p[f])};return function(h,p){c(h,p);function f(){this.constructor=h}h.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(19),s=function(c){r(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(p){},h.prototype.format=function(p,f){c.prototype.formatAt.call(this,0,this.length(),p,f)},h.prototype.formatAt=function(p,f,d,u){p===0&&f===this.length()?this.format(d,u):c.prototype.formatAt.call(this,p,f,d,u)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);o.default=s},function(e,o,a){var r=this&&this.__extends||function(){var h=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){h(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),c=function(h){r(p,h);function p(f){var d=h.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,u){u==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):h.prototype.insertAt.call(this,f,d,u)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){h.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 u=s.create(this.domNode.splitText(f));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},p.prototype.update=function(f,d){var u=this;f.some(function(_){return _.type==="characterData"&&_.target===u.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=c},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,c){return arguments.length>1&&!this.contains(s)==!c?c:l.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,c){return c=c||0,this.substr(c,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=s.length;var p=h.indexOf(s,c);return p!==-1&&p===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),p=h.length>>>0,f=arguments[1],d,u=0;u<p;u++)if(d=h[u],c.call(f,d,u,h))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(m,k,T){if(m==k)return m?[[l,m]]:[];(T<0||m.length<T)&&(T=null);var S=f(m,k),x=m.substring(0,S);m=m.substring(S),k=k.substring(S),S=d(m,k);var P=m.substring(m.length-S);m=m.substring(0,m.length-S),k=k.substring(0,k.length-S);var E=c(m,k);return x&&E.unshift([l,x]),P&&E.push([l,P]),_(E),T!=null&&(E=g(E,T)),E=y(E),E}function c(m,k){var T;if(!m)return[[r,k]];if(!k)return[[a,m]];var S=m.length>k.length?m:k,x=m.length>k.length?k:m,P=S.indexOf(x);if(P!=-1)return T=[[r,S.substring(0,P)],[l,x],[r,S.substring(P+x.length)]],m.length>k.length&&(T[0][0]=T[2][0]=a),T;if(x.length==1)return[[a,m],[r,k]];var E=u(m,k);if(E){var C=E[0],O=E[1],N=E[2],M=E[3],F=E[4],G=s(C,N),Y=s(O,M);return G.concat([[l,F]],Y)}return h(m,k)}function h(m,k){for(var T=m.length,S=k.length,x=Math.ceil((T+S)/2),P=x,E=2*x,C=new Array(E),O=new Array(E),N=0;N<E;N++)C[N]=-1,O[N]=-1;C[P+1]=0,O[P+1]=0;for(var M=T-S,F=M%2!=0,G=0,Y=0,ie=0,U=0,R=0;R<x;R++){for(var A=-R+G;A<=R-Y;A+=2){var j=P+A,V;A==-R||A!=R&&C[j-1]<C[j+1]?V=C[j+1]:V=C[j-1]+1;for(var W=V-A;V<T&&W<S&&m.charAt(V)==k.charAt(W);)V++,W++;if(C[j]=V,V>T)Y+=2;else if(W>S)G+=2;else if(F){var H=P+M-A;if(H>=0&&H<E&&O[H]!=-1){var B=T-O[H];if(V>=B)return p(m,k,V,W)}}}for(var z=-R+ie;z<=R-U;z+=2){var H=P+z,B;z==-R||z!=R&&O[H-1]<O[H+1]?B=O[H+1]:B=O[H-1]+1;for(var Z=B-z;B<T&&Z<S&&m.charAt(T-B-1)==k.charAt(S-Z-1);)B++,Z++;if(O[H]=B,B>T)U+=2;else if(Z>S)ie+=2;else if(!F){var j=P+M-z;if(j>=0&&j<E&&C[j]!=-1){var V=C[j],W=P+V-j;if(B=T-B,V>=B)return p(m,k,V,W)}}}}return[[a,m],[r,k]]}function p(m,k,T,S){var x=m.substring(0,T),P=k.substring(0,S),E=m.substring(T),C=k.substring(S),O=s(x,P),N=s(E,C);return O.concat(N)}function f(m,k){if(!m||!k||m.charAt(0)!=k.charAt(0))return 0;for(var T=0,S=Math.min(m.length,k.length),x=S,P=0;T<x;)m.substring(P,x)==k.substring(P,x)?(T=x,P=T):S=x,x=Math.floor((S-T)/2+T);return x}function d(m,k){if(!m||!k||m.charAt(m.length-1)!=k.charAt(k.length-1))return 0;for(var T=0,S=Math.min(m.length,k.length),x=S,P=0;T<x;)m.substring(m.length-x,m.length-P)==k.substring(k.length-x,k.length-P)?(T=x,P=T):S=x,x=Math.floor((S-T)/2+T);return x}function u(m,k){var T=m.length>k.length?m:k,S=m.length>k.length?k:m;if(T.length<4||S.length*2<T.length)return null;function x(Y,ie,U){for(var R=Y.substring(U,U+Math.floor(Y.length/4)),A=-1,j="",V,W,H,B;(A=ie.indexOf(R,A+1))!=-1;){var z=f(Y.substring(U),ie.substring(A)),Z=d(Y.substring(0,U),ie.substring(0,A));j.length<Z+z&&(j=ie.substring(A-Z,A)+ie.substring(A,A+z),V=Y.substring(0,U-Z),W=Y.substring(U+z),H=ie.substring(0,A-Z),B=ie.substring(A+z))}return j.length*2>=Y.length?[V,W,H,B,j]:null}var P=x(T,S,Math.ceil(T.length/4)),E=x(T,S,Math.ceil(T.length/2)),C;if(!P&&!E)return null;E?P?C=P[4].length>E[4].length?P:E:C=E:C=P;var O,N,M,F;m.length>k.length?(O=C[0],N=C[1],M=C[2],F=C[3]):(M=C[0],F=C[1],O=C[2],N=C[3]);var G=C[4];return[O,N,M,F,G]}function _(m){m.push([l,""]);for(var k=0,T=0,S=0,x="",P="",E;k<m.length;)switch(m[k][0]){case r:S++,P+=m[k][1],k++;break;case a:T++,x+=m[k][1],k++;break;case l:T+S>1?(T!==0&&S!==0&&(E=f(P,x),E!==0&&(k-T-S>0&&m[k-T-S-1][0]==l?m[k-T-S-1][1]+=P.substring(0,E):(m.splice(0,0,[l,P.substring(0,E)]),k++),P=P.substring(E),x=x.substring(E)),E=d(P,x),E!==0&&(m[k][1]=P.substring(P.length-E)+m[k][1],P=P.substring(0,P.length-E),x=x.substring(0,x.length-E))),T===0?m.splice(k-S,T+S,[r,P]):S===0?m.splice(k-T,T+S,[a,x]):m.splice(k-T-S,T+S,[a,x],[r,P]),k=k-T-S+(T?1:0)+(S?1:0)+1):k!==0&&m[k-1][0]==l?(m[k-1][1]+=m[k][1],m.splice(k,1)):k++,S=0,T=0,x="",P="";break}m[m.length-1][1]===""&&m.pop();var C=!1;for(k=1;k<m.length-1;)m[k-1][0]==l&&m[k+1][0]==l&&(m[k][1].substring(m[k][1].length-m[k-1][1].length)==m[k-1][1]?(m[k][1]=m[k-1][1]+m[k][1].substring(0,m[k][1].length-m[k-1][1].length),m[k+1][1]=m[k-1][1]+m[k+1][1],m.splice(k-1,1),C=!0):m[k][1].substring(0,m[k+1][1].length)==m[k+1][1]&&(m[k-1][1]+=m[k+1][1],m[k][1]=m[k][1].substring(m[k+1][1].length)+m[k+1][1],m.splice(k+1,1),C=!0)),k++;C&&_(m)}var v=s;v.INSERT=r,v.DELETE=a,v.EQUAL=l,e.exports=v;function b(m,k){if(k===0)return[l,m];for(var T=0,S=0;S<m.length;S++){var x=m[S];if(x[0]===a||x[0]===l){var P=T+x[1].length;if(k===P)return[S+1,m];if(k<P){m=m.slice();var E=k-T,C=[x[0],x[1].slice(0,E)],O=[x[0],x[1].slice(E)];return m.splice(S,1,C,O),[S+1,m]}else T=P}}throw new Error("cursor_pos is out of bounds!")}function g(m,k){var T=b(m,k),S=T[1],x=T[0],P=S[x],E=S[x+1];if(P==null)return m;if(P[0]!==l)return m;if(E!=null&&P[1]+E[1]===E[1]+P[1])return S.splice(x,2,E,P),w(S,x,2);if(E!=null&&E[1].indexOf(P[1])===0){S.splice(x,2,[E[0],P[1]],[0,P[1]]);var C=E[1].slice(P[1].length);return C.length>0&&S.splice(x+2,0,[E[0],C]),w(S,x,3)}else return m}function y(m){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<m.length;x+=1)m[x-2][0]===l&&S(m[x-2][1])&&m[x-1][0]===a&&T(m[x-1][1])&&m[x][0]===r&&T(m[x][1])&&(k=!0,m[x-1][1]=m[x-2][1].slice(-1)+m[x-1][1],m[x][1]=m[x-2][1].slice(-1)+m[x][1],m[x-2][1]=m[x-2][1].slice(0,-1));if(!k)return m;for(var P=[],x=0;x<m.length;x+=1)m[x][1].length>0&&P.push(m[x]);return P}function w(m,k,T){for(var S=k+T-1;S>=0&&S>=k-1;S--)if(S+1<m.length){var x=m[S],P=m[S+1];x[0]===P[1]&&m.splice(S,2,[x[0],x[1]+P[1]])}return m}},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(h,p,f){this.fn=h,this.context=p,this.once=f||!1}function c(){this._events=new l,this._eventsCount=0}c.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},c.prototype.listeners=function(p,f){var d=r?r+p:p,u=this._events[d];if(f)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var _=0,v=u.length,b=new Array(v);_<v;_++)b[_]=u[_].fn;return b},c.prototype.emit=function(p,f,d,u,_,v){var b=r?r+p:p;if(!this._events[b])return!1;var g=this._events[b],y=arguments.length,w,m;if(g.fn){switch(g.once&&this.removeListener(p,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,d),!0;case 4:return g.fn.call(g.context,f,d,u),!0;case 5:return g.fn.call(g.context,f,d,u,_),!0;case 6:return g.fn.call(g.context,f,d,u,_,v),!0}for(m=1,w=new Array(y-1);m<y;m++)w[m-1]=arguments[m];g.fn.apply(g.context,w)}else{var k=g.length,T;for(m=0;m<k;m++)switch(g[m].once&&this.removeListener(p,g[m].fn,void 0,!0),y){case 1:g[m].fn.call(g[m].context);break;case 2:g[m].fn.call(g[m].context,f);break;case 3:g[m].fn.call(g[m].context,f,d);break;case 4:g[m].fn.call(g[m].context,f,d,u);break;default:if(!w)for(T=1,w=new Array(y-1);T<y;T++)w[T-1]=arguments[T];g[m].fn.apply(g[m].context,w)}}return!0},c.prototype.on=function(p,f,d){var u=new s(f,d||this),_=r?r+p:p;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},c.prototype.once=function(p,f,d){var u=new s(f,d||this,!0),_=r?r+p:p;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},c.prototype.removeListener=function(p,f,d,u){var _=r?r+p:p;if(!this._events[_])return this;if(!f)return--this._eventsCount===0?this._events=new l:delete this._events[_],this;var v=this._events[_];if(v.fn)v.fn===f&&(!u||v.once)&&(!d||v.context===d)&&(--this._eventsCount===0?this._events=new l:delete this._events[_]);else{for(var b=0,g=[],y=v.length;b<y;b++)(v[b].fn!==f||u&&!v[b].once||d&&v[b].context!==d)&&g.push(v[b]);g.length?this._events[_]=g.length===1?g[0]:g:--this._eventsCount===0?this._events=new l:delete this._events[_]}return this},c.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},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=r,c.EventEmitter=c,typeof e<"u"&&(e.exports=c)},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=[],re=!0,$e=!1,me=void 0;try{for(var be=te[Symbol.iterator](),He;!(re=(He=be.next()).done)&&(le.push(He.value),!(ae&&le.length===ae));re=!0);}catch(je){$e=!0,me=je}finally{try{!re&&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 re=ae[le];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(te,re.key,re)}}return function(te,ae,le){return ae&&Q(te.prototype,ae),le&&Q(te,le),te}}(),c=a(3),h=O(c),p=a(2),f=O(p),d=a(0),u=O(d),_=a(5),v=O(_),b=a(10),g=O(b),y=a(9),w=O(y),m=a(36),k=a(37),T=a(13),S=O(T),x=a(26),P=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 M(Q,te){if(!(Q instanceof te))throw new TypeError("Cannot call a class as a function")}function F(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 G(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,g.default)("quill:clipboard"),ie="__ql-matcher",U=[[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]],R=[m.AlignAttribute,P.DirectionAttribute].reduce(function(Q,te){return Q[te.keyName]=te,Q},{}),A=[m.AlignStyle,k.BackgroundStyle,x.ColorStyle,P.DirectionStyle,E.FontStyle,C.SizeStyle].reduce(function(Q,te){return Q[te.keyName]=te,Q},{}),j=function(Q){G(te,Q);function te(ae,le){M(this,te);var re=F(this,(te.__proto__||Object.getPrototypeOf(te)).call(this,ae,le));return re.quill.root.addEventListener("paste",re.onPaste.bind(re)),re.container=re.quill.addContainer("ql-clipboard"),re.container.setAttribute("contenteditable",!0),re.container.setAttribute("tabindex",-1),re.matchers=[],U.concat(re.options.matchers).forEach(function($e){var me=l($e,2),be=me[0],He=me[1];!le.matchVisual&&He===Oe||re.addMatcher(be,He)}),re}return s(te,[{key:"addMatcher",value:function(le,re){this.matchers.push([le,re])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var re=this.quill.getFormat(this.quill.selection.savedRange.index);if(re[S.default.blotName]){var $e=this.container.innerText;return this.container.innerHTML="",new f.default().insert($e,N({},S.default.blotName,re[S.default.blotName]))}var me=this.prepareMatching(),be=l(me,2),He=be[0],je=be[1],Ne=z(this.container,He,je);return H(Ne,`
|
|
121
|
-
`)&&Ne.ops[Ne.ops.length-1].attributes==null&&(Ne=Ne.compose(new
|
|
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),f=y(s),c=a(21),p=y(c),h=a(11),d=y(h),u=a(8),_=y(u),g=a(10),b=y(g);function y(x){return x&&x.__esModule?x:{default:x}}function m(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,b.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=f.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,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(O,N){O===_.default.events.TEXT_CHANGE&&N.length()>0&&C.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var O=C.getNativeRange();O!=null&&O.start.node!==C.cursor.textNode&&C.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(_.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(_.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(_.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||f.default.query(E,f.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=f.default.find(O.start.node,!1);if(N==null)return;if(N instanceof f.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=f.default.find(re,!0),D=V.offset(C.scroll);return K===0?D:V instanceof f.default.Container?D+V.length():D+V.index(re,K)}),R=Math.min(Math.max.apply(Math,m(N)),this.scroll.length()-1),q=Math.min.apply(Math,[R].concat(m(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]:_.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,m(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]:_.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=[_.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(C),E];if((W=this.emitter).emit.apply(W,[_.default.events.EDITOR_CHANGE].concat(Y)),E!==_.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 _(g,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,b,y){return b&&_(g.prototype,b),y&&_(g,y),g}}(),l=function _(g,b,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,b);if(m===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:_(w,b,y)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(y)}},s=a(0),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(){return p(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"insertInto",value:function(y,m){y.children.length===0?l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,y,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g}(f.default.Embed);u.blotName="break",u.tagName="BR",o.default=u},function(e,o,a){var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){h(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(44),s=a(30),f=a(1),c=function(h){r(d,h);function d(u){var _=h.call(this,u)||this;return _.build(),_}return d.prototype.appendChild=function(u){this.insertBefore(u)},d.prototype.attach=function(){h.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},d.prototype.build=function(){var u=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(_){try{var g=p(_);u.insertBefore(g,u.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},d.prototype.deleteAt=function(u,_){if(u===0&&_===this.length())return this.remove();this.children.forEachAt(u,_,function(g,b,y){g.deleteAt(b,y)})},d.prototype.descendant=function(u,_){var g=this.children.find(_),b=g[0],y=g[1];return u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u?[b,y]:b instanceof d?b.descendant(u,y):[null,-1]},d.prototype.descendants=function(u,_,g){_===void 0&&(_=0),g===void 0&&(g=Number.MAX_VALUE);var b=[],y=g;return this.children.forEachAt(_,g,function(m,w,v){(u.blotName==null&&u(m)||u.blotName!=null&&m instanceof u)&&b.push(m),m instanceof d&&(b=b.concat(m.descendants(u,w,y))),y-=v}),b},d.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),h.prototype.detach.call(this)},d.prototype.formatAt=function(u,_,g,b){this.children.forEachAt(u,_,function(y,m,w){y.formatAt(m,w,g,b)})},d.prototype.insertAt=function(u,_,g){var b=this.children.find(u),y=b[0],m=b[1];if(y)y.insertAt(m,_,g);else{var w=g==null?f.create("text",_):f.create(_,g);this.appendChild(w)}},d.prototype.insertBefore=function(u,_){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return u instanceof g}))throw new f.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,_)},d.prototype.length=function(){return this.children.reduce(function(u,_){return u+_.length()},0)},d.prototype.moveChildren=function(u,_){this.children.forEach(function(g){u.insertBefore(g,_)})},d.prototype.optimize=function(u){if(h.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var _=f.create(this.statics.defaultChild);this.appendChild(_),_.optimize(u)}else this.remove()},d.prototype.path=function(u,_){_===void 0&&(_=!1);var g=this.children.find(u,_),b=g[0],y=g[1],m=[[this,u]];return b instanceof d?m.concat(b.path(y,_)):(b!=null&&m.push([b,y]),m)},d.prototype.removeChild=function(u){this.children.remove(u)},d.prototype.replace=function(u){u instanceof d&&u.moveChildren(this),h.prototype.replace.call(this,u)},d.prototype.split=function(u,_){if(_===void 0&&(_=!1),!_){if(u===0)return this;if(u===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(u,this.length(),function(b,y,m){b=b.split(y,_),g.appendChild(b)}),g},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(u,_){var g=this,b=[],y=[];u.forEach(function(m){m.target===g.domNode&&m.type==="childList"&&(b.push.apply(b,m.addedNodes),y.push.apply(y,m.removedNodes))}),y.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=f.find(m);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===g.domNode)&&w.detach()}}),b.filter(function(m){return m.parentNode==g.domNode}).sort(function(m,w){return m===w?0:m.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var w=null;m.nextSibling!=null&&(w=f.find(m.nextSibling));var v=p(m);(v.next!=w||v.next==null)&&(v.parent!=null&&v.parent.removeChild(g),g.insertBefore(v,w||void 0))})},d}(s.default);function p(h){var d=f.find(h);if(d==null)try{d=f.create(h)}catch{d=f.create(f.Scope.INLINE),[].slice.call(h.childNodes).forEach(function(_){d.domNode.appendChild(_)}),h.parentNode&&h.parentNode.replaceChild(d.domNode,h),d.attach()}return d}o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){h(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12),s=a(31),f=a(17),c=a(1),p=function(h){r(d,h);function d(u){var _=h.call(this,u)||this;return _.attributes=new s.default(_.domNode),_}return d.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},d.prototype.format=function(u,_){var g=c.query(u);g instanceof l.default?this.attributes.attribute(g,_):_&&g!=null&&(u!==this.statics.blotName||this.formats()[u]!==_)&&this.replaceWith(u,_)},d.prototype.formats=function(){var u=this.attributes.values(),_=this.statics.formats(this.domNode);return _!=null&&(u[this.statics.blotName]=_),u},d.prototype.replaceWith=function(u,_){var g=h.prototype.replaceWith.call(this,u,_);return this.attributes.copy(g),g},d.prototype.update=function(u,_){var g=this;h.prototype.update.call(this,u,_),u.some(function(b){return b.target===g.domNode&&b.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(u,_){var g=h.prototype.wrap.call(this,u,_);return g instanceof d&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},d}(f.default);o.default=p},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var d in h)h.hasOwnProperty(d)&&(p[d]=h[d])};return function(p,h){c(p,h);function d(){this.constructor=p}p.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(30),s=a(1),f=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.value=function(h){return!0},p.prototype.index=function(h,d){return this.domNode===h||this.domNode.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(d,1):-1},p.prototype.position=function(h,d){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return h>0&&(u+=1),[this.parent.domNode,u]},p.prototype.value=function(){var h;return h={},h[this.statics.blotName]=this.statics.value(this.domNode)||!0,h},p.scope=s.Scope.INLINE_BLOT,p}(l.default);o.default=f},function(e,o,a){var r=a(11),l=a(3),s={attributes:{compose:function(c,p,h){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var d=l(!0,{},p);h||(d=Object.keys(d).reduce(function(_,g){return d[g]!=null&&(_[g]=d[g]),_},{}));for(var u in c)c[u]!==void 0&&p[u]===void 0&&(d[u]=c[u]);return Object.keys(d).length>0?d:void 0},diff:function(c,p){typeof c!="object"&&(c={}),typeof p!="object"&&(p={});var h=Object.keys(c).concat(Object.keys(p)).reduce(function(d,u){return r(c[u],p[u])||(d[u]=p[u]===void 0?null:p[u]),d},{});return Object.keys(h).length>0?h:void 0},transform:function(c,p,h){if(typeof c!="object")return p;if(typeof p=="object"){if(!h)return p;var d=Object.keys(p).reduce(function(u,_){return c[_]===void 0&&(u[_]=p[_]),u},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(c){return new f(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 f(c){this.ops=c,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(c){c||(c=1/0);var p=this.ops[this.index];if(p){var h=this.offset,d=s.length(p);if(c>=d-h?(c=d-h,this.index+=1,this.offset=0):this.offset+=c,typeof p.delete=="number")return{delete:c};var u={};return p.attributes&&(u.attributes=p.attributes),typeof p.retain=="number"?u.retain=c:typeof p.insert=="string"?u.insert=p.insert.substr(h,c):u.insert=p.insert,u}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},f.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"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var c=this.offset,p=this.index,h=this.next(),d=this.ops.slice(this.index);return this.offset=c,this.index=p,[h].concat(d)}else return[]},e.exports=s},function(e,o){var a=function(){function r(g,b){return b!=null&&g instanceof b}var l;try{l=Map}catch{l=function(){}}var s;try{s=Set}catch{s=function(){}}var f;try{f=Promise}catch{f=function(){}}function c(g,b,y,m,w){typeof b=="object"&&(y=b.depth,m=b.prototype,w=b.includeNonEnumerable,b=b.circular);var v=[],k=[],T=typeof Buffer<"u";typeof b>"u"&&(b=!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,f))E=new f(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,_(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 m>"u"?(C=Object.getPrototypeOf(x),E=Object.create(C)):(E=Object.create(m),C=m)}if(b){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(g,y)}c.clonePrototype=function(b){if(b===null)return null;var y=function(){};return y.prototype=b,new y};function p(g){return Object.prototype.toString.call(g)}c.__objToStr=p;function h(g){return typeof g=="object"&&p(g)==="[object Date]"}c.__isDate=h;function d(g){return typeof g=="object"&&p(g)==="[object Array]"}c.__isArray=d;function u(g){return typeof g=="object"&&p(g)==="[object RegExp]"}c.__isRegExp=u;function _(g){var b="";return g.global&&(b+="g"),g.ignoreCase&&(b+="i"),g.multiline&&(b+="m"),b}return c.__getRegExpFlags=_,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)}},f=a(0),c=v(f),p=a(8),h=v(p),d=a(4),u=v(d),_=a(16),g=v(_),b=a(13),y=v(b),m=a(25),w=v(m);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 u.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 g.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(h.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=h.default.sources.USER;typeof N=="string"&&(R=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(h.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(h.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=[u.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}}(),f=a(21),c=E(f),p=a(11),h=E(p),d=a(3),u=E(d),_=a(2),g=E(_),b=a(20),y=E(b),m=a(0),w=E(m),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,u.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,h.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 g.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,u.default)({},ne.formats(),{list:"checked"}),ve=new g.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 g.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 g.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 g.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(m,w){var v=[],k=!0,T=!1,S=void 0;try{for(var x=m[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(m,w){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return y(m,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function y(m,w,v){m===null&&(m=Function.prototype);var k=Object.getOwnPropertyDescriptor(m,w);if(k===void 0){var T=Object.getPrototypeOf(m);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(m,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(m,k.key,k)}}return function(m,w,v){return w&&y(m.prototype,w),v&&y(m,v),m}}(),f=a(0),c=d(f),p=a(7),h=d(p);function d(y){return y&&y.__esModule?y:{default:y}}function u(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function _(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function g(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var b=function(y){g(m,y),s(m,null,[{key:"value",value:function(){}}]);function m(w,v){u(this,m);var k=_(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,w));return k.selection=v,k.textNode=document.createTextNode(m.CONTENTS),k.domNode.appendChild(k.textNode),k._length=0,k}return s(m,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(v,k){if(this._length!==0)return l(m.prototype.__proto__||Object.getPrototypeOf(m.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=m.CONTENTS.length,T.optimize(),T.formatAt(S,m.CONTENTS.length,v,k),this._length=0)}},{key:"index",value:function(v,k){return v===this.textNode?0:l(m.prototype.__proto__||Object.getPrototypeOf(m.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(m.prototype.__proto__||Object.getPrototypeOf(m.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!==m.CONTENTS){var E=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof h.default?(T=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=m.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(m.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""}}]),m}(c.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",o.default=b},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=c(r),s=a(4),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(){return p(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(l.default.Container);u.allowedChildren=[f.default,s.BlockEmbed,u],o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var r=function(){function b(y,m){for(var w=0;w<m.length;w++){var v=m[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}}(),l=function b(y,m,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,m);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:b(k,m,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),f=c(s);function c(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function h(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function d(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var u=function(b){d(y,b);function y(){return p(this,y),h(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}(f.default.Attributor.Style),_=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),g=new u("color","color",{scope:f.default.Scope.INLINE});o.ColorAttributor=u,o.ColorClass=_,o.ColorStyle=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var r=function(){function g(b,y){for(var m=0;m<y.length;m++){var w=y[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,y,m){return y&&g(b.prototype,y),m&&g(b,m),b}}(),l=function g(b,y,m){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,y);if(w===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:g(v,y,m)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(m)}},s=a(6),f=c(s);function c(g){return g&&g.__esModule?g:{default:g}}function p(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function h(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function d(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var u=function(g){d(b,g);function b(){return p(this,b),h(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(m,w){if(m!==this.statics.blotName||!w)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,m,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(m){var w=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,m);return m=this.sanitize(m),w.setAttribute("href",m),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return _(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),b}(f.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function _(g,b){var y=document.createElement("a");y.href=g;var m=y.href.slice(0,y.href.indexOf(":"));return b.indexOf(m)>-1}o.default=u,o.sanitize=_},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(y,m){for(var w=0;w<m.length;w++){var v=m[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}}(),s=a(23),f=h(s),c=a(107),p=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}var u=0;function _(b,y){b.setAttribute(y,b.getAttribute(y)!=="true")}var g=function(){function b(y){var m=this;d(this,b),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(){m.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case f.default.keys.ENTER:m.togglePicker();break;case f.default.keys.ESCAPE:m.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),_(this.label,"aria-expanded"),_(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var w=this,v=document.createElement("span");return v.tabIndex="0",v.setAttribute("role","button"),v.classList.add("ql-picker-item"),m.hasAttribute("value")&&v.setAttribute("data-value",m.getAttribute("value")),m.textContent&&v.setAttribute("data-label",m.textContent),v.addEventListener("click",function(){w.selectItem(v,!0)}),v.addEventListener("keydown",function(k){switch(k.keyCode){case f.default.keys.ENTER:w.selectItem(v,!0),k.preventDefault();break;case f.default.keys.ESCAPE:w.escape(),k.preventDefault();break}}),v}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=p.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(v){var k=m.buildItem(v);w.appendChild(k),v.selected===!0&&m.selectItem(k)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(w){m.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.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(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=this.container.querySelector(".ql-selected");if(m!==v&&(v!=null&&v.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.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 m=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var v=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",v)}}]),b}();o.default=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(0),l=q(r),s=a(5),f=q(s),c=a(4),p=q(c),h=a(16),d=q(h),u=a(25),_=q(u),g=a(24),b=q(g),y=a(35),m=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}}f.default.register({"blots/block":p.default,"blots/block/embed":c.BlockEmbed,"blots/break":d.default,"blots/container":_.default,"blots/cursor":b.default,"blots/embed":m.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,b.default,v.default,T.default,x.default),o.default=f.default},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=a(1),l=function(){function s(f){this.domNode=f,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(f){if(this.tagName==null)throw new r.ParchmentError("Blot definition missing tagName");var c;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?c=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?c=document.createElement(f):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 f=this.domNode.cloneNode(!1);return r.create(f)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},s.prototype.deleteAt=function(f,c){var p=this.isolate(f,c);p.remove()},s.prototype.formatAt=function(f,c,p,h){var d=this.isolate(f,c);if(r.query(p,r.Scope.BLOT)!=null&&h)d.wrap(p,h);else if(r.query(p,r.Scope.ATTRIBUTE)!=null){var u=r.create(this.statics.scope);d.wrap(u),u.format(p,h)}},s.prototype.insertAt=function(f,c,p){var h=p==null?r.create("text",c):r.create(c,p),d=this.split(f);this.parent.insertBefore(h,d)},s.prototype.insertInto=function(f,c){c===void 0&&(c=null),this.parent!=null&&this.parent.children.remove(this);var p=null;f.children.insertBefore(this,c),c!=null&&(p=c.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=p)&&f.domNode.insertBefore(this.domNode,p),this.parent=f,this.attach()},s.prototype.isolate=function(f,c){var p=this.split(f);return p.split(c),p},s.prototype.length=function(){return 1},s.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},s.prototype.optimize=function(f){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(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},s.prototype.replaceWith=function(f,c){var p=typeof f=="string"?r.create(f,c):f;return p.replace(this),p},s.prototype.split=function(f,c){return f===0?this:this.next},s.prototype.update=function(f,c){},s.prototype.wrap=function(f,c){var p=typeof f=="string"?r.create(f,c):f;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),f=a(1),c=function(){function p(h){this.attributes={},this.domNode=h,this.build()}return p.prototype.attribute=function(h,d){d?h.add(this.domNode,d)&&(h.value(this.domNode)!=null?this.attributes[h.attrName]=h:delete this.attributes[h.attrName]):(h.remove(this.domNode),delete this.attributes[h.attrName])},p.prototype.build=function(){var h=this;this.attributes={};var d=r.default.keys(this.domNode),u=l.default.keys(this.domNode),_=s.default.keys(this.domNode);d.concat(u).concat(_).forEach(function(g){var b=f.query(g,f.Scope.ATTRIBUTE);b instanceof r.default&&(h.attributes[b.attrName]=b)})},p.prototype.copy=function(h){var d=this;Object.keys(this.attributes).forEach(function(u){var _=d.attributes[u].value(d.domNode);h.format(u,_)})},p.prototype.move=function(h){var d=this;this.copy(h),Object.keys(this.attributes).forEach(function(u){d.attributes[u].remove(d.domNode)}),this.attributes={}},p.prototype.values=function(){var h=this;return Object.keys(this.attributes).reduce(function(d,u){return d[u]=h.attributes[u].value(h.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,h){p.__proto__=h}||function(p,h){for(var d in h)h.hasOwnProperty(d)&&(p[d]=h[d])};return function(p,h){c(p,h);function d(){this.constructor=p}p.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12);function s(c,p){var h=c.getAttribute("class")||"";return h.split(/\s+/).filter(function(d){return d.indexOf(p+"-")===0})}var f=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(h){return(h.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},p.prototype.add=function(h,d){return this.canAdd(h,d)?(this.remove(h),h.classList.add(this.keyName+"-"+d),!0):!1},p.prototype.remove=function(h){var d=s(h,this.keyName);d.forEach(function(u){h.classList.remove(u)}),h.classList.length===0&&h.removeAttribute("class")},p.prototype.value=function(h){var d=s(h,this.keyName)[0]||"",u=d.slice(this.keyName.length+1);return this.canAdd(h,u)?u:""},p}(l.default);o.default=f},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var d in h)h.hasOwnProperty(d)&&(p[d]=h[d])};return function(p,h){c(p,h);function d(){this.constructor=p}p.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(12);function s(c){var p=c.split("-"),h=p.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return p[0]+h}var f=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.keys=function(h){return(h.getAttribute("style")||"").split(";").map(function(d){var u=d.split(":");return u[0].trim()})},p.prototype.add=function(h,d){return this.canAdd(h,d)?(h.style[s(this.keyName)]=d,!0):!1},p.prototype.remove=function(h){h.style[s(this.keyName)]="",h.getAttribute("style")||h.removeAttribute("style")},p.prototype.value=function(h){var d=h.style[s(this.keyName)];return this.canAdd(h,d)?d:""},p}(l.default);o.default=f},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function f(c,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,h){return p&&f(c.prototype,p),h&&f(c,h),c}}();function l(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function f(c,p){l(this,f),this.quill=c,this.options=p,this.modules={}}return r(f,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(h){p.modules[h]==null&&p.addModule(h)})}},{key:"addModule",value:function(p){var h=this.quill.constructor.import("modules/"+p);return this.modules[p]=new h(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),f}();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(m,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(m,k.key,k)}}return function(m,w,v){return w&&y(m.prototype,w),v&&y(m,v),m}}(),l=function y(m,w,v){m===null&&(m=Function.prototype);var k=Object.getOwnPropertyDescriptor(m,w);if(k===void 0){var T=Object.getPrototypeOf(m);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),f=h(s),c=a(7),p=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function u(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function _(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var g="\uFEFF",b=function(y){_(m,y);function m(w){d(this,m);var v=u(this,(m.__proto__||Object.getPrototypeOf(m)).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(g),v.rightGuard=document.createTextNode(g),v.domNode.appendChild(v.leftGuard),v.domNode.appendChild(v.contentNode),v.domNode.appendChild(v.rightGuard),v}return r(m,[{key:"index",value:function(v,k){return v===this.leftGuard?0:v===this.rightGuard?1:l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,v,k)}},{key:"restore",value:function(v){var k=void 0,T=void 0,S=v.data.split(g).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(f.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(f.default.create(T),this.next),k={startNode:T,startOffset:S.length}));return v.data=g,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)}})}}]),m}(f.default.Embed);o.default=b},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 f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new l.default.Attributor.Attribute("align","align",f),p=new l.default.Attributor.Class("align","ql-align",f),h=new l.default.Attributor.Style("align","text-align",f);o.AlignAttribute=c,o.AlignClass=p,o.AlignStyle=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.BackgroundStyle=o.BackgroundClass=void 0;var r=a(0),l=f(r),s=a(26);function f(h){return h&&h.__esModule?h:{default:h}}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 f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},c=new l.default.Attributor.Attribute("direction","dir",f),p=new l.default.Attributor.Class("direction","ql-direction",f),h=new l.default.Attributor.Style("direction","direction",f);o.DirectionAttribute=c,o.DirectionClass=p,o.DirectionStyle=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.FontClass=o.FontStyle=void 0;var r=function(){function y(m,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(m,k.key,k)}}return function(m,w,v){return w&&y(m.prototype,w),v&&y(m,v),m}}(),l=function y(m,w,v){m===null&&(m=Function.prototype);var k=Object.getOwnPropertyDescriptor(m,w);if(k===void 0){var T=Object.getPrototypeOf(m);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),f=c(s);function c(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function h(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function d(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var u={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},_=new f.default.Attributor.Class("font","ql-font",u),g=function(y){d(m,y);function m(){return p(this,m),h(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"value",value:function(v){return l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,v).replace(/["']/g,"")}}]),m}(f.default.Attributor.Style),b=new g("font","font-family",u);o.FontStyle=b,o.FontClass=_},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 f=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=f,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),f=a(5),c=d(f),p=a(9),h=d(p);function d(w){return w&&w.__esModule?w:{default:w}}function u(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function _(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 g(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 b=function(w){g(v,w);function v(k,T){u(this,v);var S=_(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=m(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}(h.default);b.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 m(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=b,o.getLastChangeIndex=m},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),f=B(s),c=a(2),p=B(c),h=a(8),d=B(h),u=a(23),_=B(u),g=a(34),b=B(g),y=a(59),m=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 m.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}(b.default);re.DEFAULTS=(0,f.default)(!0,{},b.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){_.default.match(L,"enter")?(F.save(),L.preventDefault()):_.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=[],f=0;f<arguments.length;f++)s[f]=arguments[f];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},l.prototype.contains=function(s){for(var f,c=this.iterator();f=c();)if(f===s)return!0;return!1},l.prototype.insertBefore=function(s,f){s&&(s.next=f,f!=null?(s.prev=f.prev,f.prev!=null&&(f.prev.next=s),f.prev=s,f===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 f=0,c=this.head;c!=null;){if(c===s)return f;f+=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 f=s;return s!=null&&(s=s.next),f}},l.prototype.find=function(s,f){f===void 0&&(f=!1);for(var c,p=this.iterator();c=p();){var h=c.length();if(s<h||f&&s===h&&(c.next==null||c.next.length()!==0))return[c,s];s-=h}return[null,0]},l.prototype.forEach=function(s){for(var f,c=this.iterator();f=c();)s(f)},l.prototype.forEachAt=function(s,f,c){if(!(f<=0))for(var p=this.find(s),h=p[0],d=p[1],u,_=s-d,g=this.iterator(h);(u=g())&&_<s+f;){var b=u.length();s>_?c(u,s-_,Math.min(f,_+b-s)):c(u,0,Math.min(b,s+f-_)),_+=b}},l.prototype.map=function(s){return this.reduce(function(f,c){return f.push(s(c)),f},[])},l.prototype.reduce=function(s,f){for(var c,p=this.iterator();c=p();)f=s(f,c);return f},l}();o.default=r},function(e,o,a){var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var _ in u)u.hasOwnProperty(_)&&(d[_]=u[_])};return function(d,u){h(d,u);function _(){this.constructor=d}d.prototype=u===null?Object.create(u):(_.prototype=u.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(17),s=a(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,p=function(h){r(d,h);function d(u){var _=h.call(this,u)||this;return _.scroll=_,_.observer=new MutationObserver(function(g){_.update(g)}),_.observer.observe(_.domNode,f),_.attach(),_}return d.prototype.detach=function(){h.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(u,_){this.update(),u===0&&_===this.length()?this.children.forEach(function(g){g.remove()}):h.prototype.deleteAt.call(this,u,_)},d.prototype.formatAt=function(u,_,g,b){this.update(),h.prototype.formatAt.call(this,u,_,g,b)},d.prototype.insertAt=function(u,_,g){this.update(),h.prototype.insertAt.call(this,u,_,g)},d.prototype.optimize=function(u,_){var g=this;u===void 0&&(u=[]),_===void 0&&(_={}),h.prototype.optimize.call(this,_);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var y=function(k,T){T===void 0&&(T=!0),!(k==null||k===g)&&k.domNode.parentNode!=null&&(k.domNode[s.DATA_KEY].mutations==null&&(k.domNode[s.DATA_KEY].mutations=[]),T&&y(k.parent))},m=function(k){k.domNode[s.DATA_KEY]==null||k.domNode[s.DATA_KEY].mutations==null||(k instanceof l.default&&k.children.forEach(m),k.optimize(_))},w=u,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(m),w=[].slice.call(this.observer.takeRecords()),b=w.slice();b.length>0;)u.push(b.pop())}},d.prototype.update=function(u,_){var g=this;_===void 0&&(_={}),u=u||this.observer.takeRecords(),u.map(function(b){var y=s.find(b.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[b],y):(y.domNode[s.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===g||b.domNode[s.DATA_KEY]==null||b.update(b.domNode[s.DATA_KEY].mutations||[],_)}),this.domNode[s.DATA_KEY].mutations!=null&&h.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,_),this.optimize(u,_)},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(h,d){h.__proto__=d}||function(h,d){for(var u in d)d.hasOwnProperty(u)&&(h[u]=d[u])};return function(h,d){p(h,d);function u(){this.constructor=h}h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(18),s=a(1);function f(p,h){if(Object.keys(p).length!==Object.keys(h).length)return!1;for(var d in p)if(p[d]!==h[d])return!1;return!0}var c=function(p){r(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.formats=function(d){if(d.tagName!==h.tagName)return p.formats.call(this,d)},h.prototype.format=function(d,u){var _=this;d===this.statics.blotName&&!u?(this.children.forEach(function(g){g instanceof l.default||(g=g.wrap(h.blotName,!0)),_.attributes.copy(g)}),this.unwrap()):p.prototype.format.call(this,d,u)},h.prototype.formatAt=function(d,u,_,g){if(this.formats()[_]!=null||s.query(_,s.Scope.ATTRIBUTE)){var b=this.isolate(d,u);b.format(_,g)}else p.prototype.formatAt.call(this,d,u,_,g)},h.prototype.optimize=function(d){p.prototype.optimize.call(this,d);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var _=this.next;_ instanceof h&&_.prev===this&&f(u,_.formats())&&(_.moveChildren(this),_.remove())},h.blotName="inline",h.scope=s.Scope.INLINE_BLOT,h.tagName="SPAN",h}(l.default);o.default=c},function(e,o,a){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var d in h)h.hasOwnProperty(d)&&(p[d]=h[d])};return function(p,h){c(p,h);function d(){this.constructor=p}p.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(18),s=a(1),f=function(c){r(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.formats=function(h){var d=s.query(p.blotName).tagName;if(h.tagName!==d)return c.formats.call(this,h)},p.prototype.format=function(h,d){s.query(h,s.Scope.BLOCK)!=null&&(h===this.statics.blotName&&!d?this.replaceWith(p.blotName):c.prototype.format.call(this,h,d))},p.prototype.formatAt=function(h,d,u,_){s.query(u,s.Scope.BLOCK)!=null?this.format(u,_):c.prototype.formatAt.call(this,h,d,u,_)},p.prototype.insertAt=function(h,d,u){if(u==null||s.query(d,s.Scope.INLINE)!=null)c.prototype.insertAt.call(this,h,d,u);else{var _=this.split(h),g=s.create(d,u);_.parent.insertBefore(g,_)}},p.prototype.update=function(h,d){navigator.userAgent.match(/Trident/)?this.build():c.prototype.update.call(this,h,d)},p.blotName="block",p.scope=s.Scope.BLOCK_BLOT,p.tagName="P",p}(l.default);o.default=f},function(e,o,a){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])};return function(c,p){f(c,p);function h(){this.constructor=c}c.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(19),s=function(f){r(c,f);function c(){return f!==null&&f.apply(this,arguments)||this}return c.formats=function(p){},c.prototype.format=function(p,h){f.prototype.formatAt.call(this,0,this.length(),p,h)},c.prototype.formatAt=function(p,h,d,u){p===0&&h===this.length()?this.format(d,u):f.prototype.formatAt.call(this,p,h,d,u)},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,h){p.__proto__=h}||function(p,h){for(var d in h)h.hasOwnProperty(d)&&(p[d]=h[d])};return function(p,h){c(p,h);function d(){this.constructor=p}p.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(o,"__esModule",{value:!0});var l=a(19),s=a(1),f=function(c){r(p,c);function p(h){var d=c.call(this,h)||this;return d.text=d.statics.value(d.domNode),d}return p.create=function(h){return document.createTextNode(h)},p.value=function(h){var d=h.data;return d.normalize&&(d=d.normalize()),d},p.prototype.deleteAt=function(h,d){this.domNode.data=this.text=this.text.slice(0,h)+this.text.slice(h+d)},p.prototype.index=function(h,d){return this.domNode===h?d:-1},p.prototype.insertAt=function(h,d,u){u==null?(this.text=this.text.slice(0,h)+d+this.text.slice(h),this.domNode.data=this.text):c.prototype.insertAt.call(this,h,d,u)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(h){c.prototype.optimize.call(this,h),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(h,d){return[this.domNode,h]},p.prototype.split=function(h,d){if(d===void 0&&(d=!1),!d){if(h===0)return this;if(h===this.length())return this.next}var u=s.create(this.domNode.splitText(h));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},p.prototype.update=function(h,d){var u=this;h.some(function(_){return _.type==="characterData"&&_.target===u.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=f},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,f){return arguments.length>1&&!this.contains(s)==!f?f:l.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,f){return f=f||0,this.substr(f,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,f){var c=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>c.length)&&(f=c.length),f-=s.length;var p=c.indexOf(s,f);return p!==-1&&p===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var c=Object(this),p=c.length>>>0,h=arguments[1],d,u=0;u<p;u++)if(d=c[u],f.call(h,d,u,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=h(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=f(v,k);return x&&E.unshift([l,x]),B&&E.push([l,B]),_(E),T!=null&&(E=y(E,T)),E=m(E),E}function f(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=u(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 h(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 u(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=h(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 _(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=h(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&&_(v)}var g=s;g.INSERT=r,g.DELETE=a,g.EQUAL=l,e.exports=g;function b(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=b(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 m(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,h){this.fn=c,this.context=p,this.once=h||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var p=[],h,d;if(this._eventsCount===0)return p;for(d in h=this._events)a.call(h,d)&&p.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(h)):p},f.prototype.listeners=function(p,h){var d=r?r+p:p,u=this._events[d];if(h)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var _=0,g=u.length,b=new Array(g);_<g;_++)b[_]=u[_].fn;return b},f.prototype.emit=function(p,h,d,u,_,g){var b=r?r+p:p;if(!this._events[b])return!1;var y=this._events[b],m=arguments.length,w,v;if(y.fn){switch(y.once&&this.removeListener(p,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,h),!0;case 3:return y.fn.call(y.context,h,d),!0;case 4:return y.fn.call(y.context,h,d,u),!0;case 5:return y.fn.call(y.context,h,d,u,_),!0;case 6:return y.fn.call(y.context,h,d,u,_,g),!0}for(v=1,w=new Array(m-1);v<m;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),m){case 1:y[v].fn.call(y[v].context);break;case 2:y[v].fn.call(y[v].context,h);break;case 3:y[v].fn.call(y[v].context,h,d);break;case 4:y[v].fn.call(y[v].context,h,d,u);break;default:if(!w)for(T=1,w=new Array(m-1);T<m;T++)w[T-1]=arguments[T];y[v].fn.apply(y[v].context,w)}}return!0},f.prototype.on=function(p,h,d){var u=new s(h,d||this),_=r?r+p:p;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},f.prototype.once=function(p,h,d){var u=new s(h,d||this,!0),_=r?r+p:p;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],u]:this._events[_].push(u):(this._events[_]=u,this._eventsCount++),this},f.prototype.removeListener=function(p,h,d,u){var _=r?r+p:p;if(!this._events[_])return this;if(!h)return--this._eventsCount===0?this._events=new l:delete this._events[_],this;var g=this._events[_];if(g.fn)g.fn===h&&(!u||g.once)&&(!d||g.context===d)&&(--this._eventsCount===0?this._events=new l:delete this._events[_]);else{for(var b=0,y=[],m=g.length;b<m;b++)(g[b].fn!==h||u&&!g[b].once||d&&g[b].context!==d)&&y.push(g[b]);y.length?this._events[_]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new l:delete this._events[_]}return this},f.prototype.removeAllListeners=function(p){var h;return p?(h=r?r+p:p,this._events[h]&&(--this._eventsCount===0?this._events=new l:delete this._events[h])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=r,f.EventEmitter=f,typeof e<"u"&&(e.exports=f)},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}}(),f=a(3),c=O(f),p=a(2),h=O(p),d=a(0),u=O(d),_=a(5),g=O(_),b=a(10),y=O(b),m=a(9),w=O(m),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 h.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 h.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]:g.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),ie),this.quill.setSelection(0,g.default.sources.SILENT);else{var me=this.convert(ie);this.quill.updateContents(new h.default().retain(le).concat(me),$e),this.quill.setSelection(le+me.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var ie=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var $e=this.quill.getSelection(),me=new h.default().retain($e.index),be=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){me=me.concat(ie.convert()).delete($e.length),ie.quill.updateContents(me,g.default.sources.USER),ie.quill.setSelection(me.length()-$e.length,g.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 h.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 h.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 h.default):new h.default}function Z(Q,te,ae){return P(ae,Q,!0)}function J(Q,te){var ae=u.default.Attributor.Attribute.keys(Q),le=u.default.Attributor.Class.keys(Q),ie=u.default.Attributor.Style.keys(Q),$e={};return ae.concat(le).concat(ie).forEach(function(me){var be=u.default.query(me,u.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=u.default.query(Q);if(ae==null)return te;if(ae.prototype instanceof u.default.Embed){var le={},ie=ae.value(Q);ie!=null&&(le[ae.blotName]=ie,te=new h.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
122
|
`)||te.insert(`
|
|
123
|
-
`),te}function he(){return new
|
|
124
|
-
`))return te;for(var le=-1,
|
|
125
|
-
`)||(
|
|
126
|
-
`),te}function Oe(Q,te){if(
|
|
123
|
+
`),te}function he(){return new h.default}function ve(Q,te){var ae=u.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");)(u.default.query(ie)||{}).blotName==="list"&&(le+=1),ie=ie.parentNode;return le<=0?te:te.compose(new h.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
127
|
|
|
128
|
-
`)){var ae=Q.offsetHeight+parseFloat(
|
|
129
|
-
`)}return te}function Le(Q,te){var ae={},le=Q.style||{};return le.fontStyle&&W(Q).fontStyle==="italic"&&(ae.italic=!0),le.fontWeight&&(W(Q).fontWeight.startsWith("bold")||parseInt(W(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(te=V(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(!W(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&&B(Q.parentNode)||Q.previousSibling!=null&&B(Q.previousSibling))&&(ae=ae.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&B(Q.parentNode)||Q.nextSibling!=null&&B(Q.nextSibling))&&(ae=ae.replace(/\s+$/,le.bind(le,!1)))}return te.insert(ae)}o.default=j,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 _(v,b){for(var g=0;g<b.length;g++){var y=b[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,b,g){return b&&_(v.prototype,b),g&&_(v,g),v}}(),l=function _(v,b,g){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,b);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:_(w,b,g)}else{if("value"in y)return y.value;var m=y.get;return m===void 0?void 0:m.call(g)}},s=a(6),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,[{key:"optimize",value:function(g){l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),v}(c.default);u.blotName="bold",u.tagName=["STRONG","B"],o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var r=function(){function C(O,N){var M=[],F=!0,G=!1,Y=void 0;try{for(var ie=O[Symbol.iterator](),U;!(F=(U=ie.next()).done)&&(M.push(U.value),!(N&&M.length===N));F=!0);}catch(R){G=!0,Y=R}finally{try{!F&&ie.return&&ie.return()}finally{if(G)throw Y}}return M}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 M=0;M<N.length;M++){var F=N[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,F.key,F)}}return function(O,N,M){return N&&C(O.prototype,N),M&&C(O,M),O}}(),s=a(2),c=g(s),h=a(0),p=g(h),f=a(5),d=g(f),u=a(10),_=g(u),v=a(9),b=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function y(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 m(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,_.default)("quill:toolbar"),S=function(C){k(O,C);function O(N,M){w(this,O);var F=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,M));if(Array.isArray(F.options.container)){var G=document.createElement("div");P(G,F.options.container),N.container.parentNode.insertBefore(G,N.container),F.container=G}else typeof F.options.container=="string"?F.container=document.querySelector(F.options.container):F.container=F.options.container;if(!(F.container instanceof HTMLElement)){var Y;return Y=T.error("Container required for toolbar",F.options),m(F,Y)}return F.container.classList.add("ql-toolbar"),F.controls=[],F.handlers={},Object.keys(F.options.handlers).forEach(function(ie){F.addHandler(ie,F.options.handlers[ie])}),[].forEach.call(F.container.querySelectorAll("button, select"),function(ie){F.attach(ie)}),F.quill.on(d.default.events.EDITOR_CHANGE,function(ie,U){ie===d.default.events.SELECTION_CHANGE&&F.update(U)}),F.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var ie=F.quill.selection.getRange(),U=r(ie,1),R=U[0];F.update(R)}),F}return l(O,[{key:"addHandler",value:function(M,F){this.handlers[M]=F}},{key:"attach",value:function(M){var F=this,G=[].find.call(M.classList,function(ie){return ie.indexOf("ql-")===0});if(G){if(G=G.slice(3),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[G]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[G]==null){T.warn("ignoring attaching to disabled format",G,M);return}if(p.default.query(G)==null){T.warn("ignoring attaching to nonexistent format",G,M);return}}var Y=M.tagName==="SELECT"?"change":"click";M.addEventListener(Y,function(ie){var U=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var R=M.options[M.selectedIndex];R.hasAttribute("selected")?U=!1:U=R.value||!1}else M.classList.contains("ql-active")?U=!1:U=M.value||!M.hasAttribute("value"),ie.preventDefault();F.quill.focus();var A=F.quill.selection.getRange(),j=r(A,1),V=j[0];if(F.handlers[G]!=null)F.handlers[G].call(F,U);else if(p.default.query(G).prototype instanceof p.default.Embed){if(U=prompt("Enter "+G),!U)return;F.quill.updateContents(new c.default().retain(V.index).delete(V.length).insert(y({},G,U)),d.default.sources.USER)}else F.quill.format(G,U,d.default.sources.USER);F.update(V)}),this.controls.push([G,M])}}},{key:"update",value:function(M){var F=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(G){var Y=r(G,2),ie=Y[0],U=Y[1];if(U.tagName==="SELECT"){var R=void 0;if(M==null)R=null;else if(F[ie]==null)R=U.querySelector("option[selected]");else if(!Array.isArray(F[ie])){var A=F[ie];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),R=U.querySelector('option[value="'+A+'"]')}R==null?(U.value="",U.selectedIndex=-1):R.selected=!0}else if(M==null)U.classList.remove("ql-active");else if(U.hasAttribute("value")){var j=F[ie]===U.getAttribute("value")||F[ie]!=null&&F[ie].toString()===U.getAttribute("value")||F[ie]==null&&!U.getAttribute("value");U.classList.toggle("ql-active",j)}else U.classList.toggle("ql-active",F[ie]!=null)})}}]),O}(b.default);S.DEFAULTS={};function x(C,O,N){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+O),N!=null&&(M.value=N),C.appendChild(M)}function P(C,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var M=document.createElement("span");M.classList.add("ql-formats"),N.forEach(function(F){if(typeof F=="string")x(M,F);else{var G=Object.keys(F)[0],Y=F[G];Array.isArray(Y)?E(M,G,Y):x(M,G,Y)}}),C.appendChild(M)})}function E(C,O,N){var M=document.createElement("select");M.classList.add("ql-"+O),N.forEach(function(F){var G=document.createElement("option");F!==!1?G.setAttribute("value",F):G.setAttribute("selected","selected"),M.appendChild(G)}),C.appendChild(M)}S.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function(F){p.default.query(F,p.default.Scope.INLINE)!=null&&O.quill.format(F,!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(),M=this.quill.getFormat(N),F=parseInt(M.indent||0);if(O==="+1"||O==="-1"){var G=O==="+1"?1:-1;M.direction==="rtl"&&(G*=-1),this.quill.format("indent",F+G,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(),M=this.quill.getFormat(N);O==="check"?M.list==="checked"||M.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=P},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 _(v,b){for(var g=0;g<b.length;g++){var y=b[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,b,g){return b&&_(v.prototype,b),g&&_(v,g),v}}(),l=function _(v,b,g){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,b);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:_(w,b,g)}else{if("value"in y)return y.value;var m=y.get;return m===void 0?void 0:m.call(g)}},s=a(28),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(b,g){p(this,v);var y=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b));return y.label.innerHTML=g,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),y}return r(v,[{key:"buildItem",value:function(g){var y=l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"buildItem",this).call(this,g);return y.style.backgroundColor=g.getAttribute("value")||"",y}},{key:"selectItem",value:function(g,y){l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,g,y);var w=this.label.querySelector(".ql-color-label"),m=g&&g.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=m:w.style.fill=m)}}]),v}(c.default);o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(v,b){for(var g=0;g<b.length;g++){var y=b[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,b,g){return b&&_(v.prototype,b),g&&_(v,g),v}}(),l=function _(v,b,g){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,b);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:_(w,b,g)}else{if("value"in y)return y.value;var m=y.get;return m===void 0?void 0:m.call(g)}},s=a(28),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(b,g){p(this,v);var y=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=g[w.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return r(v,[{key:"selectItem",value:function(g,y){l(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,g,y),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),v}(c.default);o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function c(h,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(h,d.key,d)}}return function(h,p,f){return p&&c(h.prototype,p),f&&c(h,f),h}}();function l(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function(){function c(h,p){var f=this;l(this,c),this.quill=h,this.boundsContainer=p||document.body,this.root=h.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(c,[{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 u=this.boundsContainer.getBoundingClientRect(),_=this.root.getBoundingClientRect(),v=0;if(_.right>u.right&&(v=u.right-_.right,this.root.style.left=f+v+"px"),_.left<u.left&&(v=u.left-_.left,this.root.style.left=f+v+"px"),_.bottom>u.bottom){var b=_.bottom-_.top,g=p.bottom-p.top+b;this.root.style.top=d-g+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();o.default=s},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function E(C,O){var N=[],M=!0,F=!1,G=void 0;try{for(var Y=C[Symbol.iterator](),ie;!(M=(ie=Y.next()).done)&&(N.push(ie.value),!(O&&N.length===O));M=!0);}catch(U){F=!0,G=U}finally{try{!M&&Y.return&&Y.return()}finally{if(F)throw G}}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 M=Object.getOwnPropertyDescriptor(C,O);if(M===void 0){var F=Object.getPrototypeOf(C);return F===null?void 0:E(F,O,N)}else{if("value"in M)return M.value;var G=M.get;return G===void 0?void 0:G.call(N)}},s=function(){function E(C,O){for(var N=0;N<O.length;N++){var M=O[N];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(C,M.key,M)}}return function(C,O,N){return O&&E(C.prototype,O),N&&E(C,N),C}}(),c=a(3),h=w(c),p=a(8),f=w(p),d=a(43),u=w(d),_=a(27),v=w(_),b=a(15),g=a(41),y=w(g);function w(E){return E&&E.__esModule?E:{default:E}}function m(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){m(this,C),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=S);var M=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return M.quill.container.classList.add("ql-snow"),M}return s(C,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),y.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,F){N.handlers.link.call(N,!F.format.link)})}}]),C}(u.default);x.DEFAULTS=(0,h.default)(!0,{},u.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 M=this.quill.theme.tooltip;M.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(E){T(C,E);function C(O,N){m(this,C);var M=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,O,N));return M.preview=M.root.querySelector("a.ql-preview"),M}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(M){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if(N.linkRange!=null){var F=N.linkRange;N.restoreFocus(),N.quill.formatText(F,"link",!1,f.default.sources.USER),delete N.linkRange}M.preventDefault(),N.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(M,F,G){if(M!=null){if(M.length===0&&G===f.default.sources.USER){var Y=N.quill.scroll.descendant(v.default,M.index),ie=r(Y,2),U=ie[0],R=ie[1];if(U!=null){N.linkRange=new b.Range(M.index-R,U.length());var A=v.default.formats(U.domNode);N.preview.textContent=A,N.preview.setAttribute("href",A),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);P.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=re(r),s=a(36),c=a(38),h=a(64),p=a(65),f=re(p),d=a(66),u=re(d),_=a(67),v=re(_),b=a(37),g=a(26),y=a(39),w=a(40),m=a(56),k=re(m),T=a(68),S=re(T),x=a(27),P=re(x),E=a(69),C=re(E),O=a(70),N=re(O),M=a(71),F=re(M),G=a(72),Y=re(G),ie=a(73),U=re(ie),R=a(13),A=re(R),j=a(74),V=re(j),W=a(75),H=re(W),B=a(57),z=re(B),Z=a(41),J=re(Z),ne=a(28),de=re(ne),he=a(59),ve=re(he),ke=a(60),Oe=re(ke),Le=a(61),Me=re(Le),Q=a(108),te=re(Q),ae=a(62),le=re(ae);function re($e){return $e&&$e.__esModule?$e:{default:$e}}l.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":s.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":y.FontClass,"formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":A.default,"formats/header":u.default,"formats/list":v.default,"formats/bold":k.default,"formats/code":R.Code,"formats/italic":S.default,"formats/link":P.default,"formats/script":C.default,"formats/strike":N.default,"formats/underline":F.default,"formats/image":Y.default,"formats/video":U.default,"formats/list/item":_.ListItem,"modules/formula":V.default,"modules/syntax":H.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 v(b,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,g,y){return g&&v(b.prototype,g),y&&v(b,y),b}}(),l=function v(b,g,y){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,g);if(w===void 0){var m=Object.getPrototypeOf(b);return m===null?void 0:v(m,g,y)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(y)}},s=a(0),c=h(s);function h(v){return v&&v.__esModule?v:{default:v}}function p(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function d(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var u=function(v){d(b,v);function b(){return p(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"add",value:function(y,w){if(w==="+1"||w==="-1"){var m=this.value(y)||0;w=w==="+1"?m+1:m-1}return w===0?(this.remove(y),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,y,w)}},{key:"canAdd",value:function(y,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,parseInt(w))}},{key:"value",value:function(y){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,y))||void 0}}]),b}(c.default.Attributor.Class),_=new u("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=_},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 c(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function h(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var f=function(d){p(u,d);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(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 u(_,v){for(var b=0;b<v.length;b++){var g=v[b];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(_,g.key,g)}}return function(_,v,b){return v&&u(_.prototype,v),b&&u(_,b),_}}(),l=a(4),s=c(l);function c(u){return u&&u.__esModule?u:{default:u}}function h(u,_){if(!(u instanceof _))throw new TypeError("Cannot call a class as a function")}function p(u,_){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:u}function f(u,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);u.prototype=Object.create(_&&_.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(u,_):u.__proto__=_)}var d=function(u){f(_,u);function _(){return h(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return r(_,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),_}(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 m(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&&m(k.prototype,T),S&&m(k,S),k}}(),l=function m(k,T,S){k===null&&(k=Function.prototype);var x=Object.getOwnPropertyDescriptor(k,T);if(x===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:m(P,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),c=u(s),h=a(4),p=u(h),f=a(25),d=u(f);function u(m){return m&&m.__esModule?m:{default:m}}function _(m,k,T){return k in m?Object.defineProperty(m,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[k]=T,m}function v(m,k){if(!(m instanceof k))throw new TypeError("Cannot call a class as a function")}function b(m,k){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:m}function g(m,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);m.prototype=Object.create(k&&k.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(m,k):m.__proto__=k)}var y=function(m){g(k,m);function k(){return v(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"format",value:function(S,x){S===w.blotName&&!x?this.replaceWith(c.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);y.blotName="list-item",y.tagName="LI";var w=function(m){g(k,m),r(k,null,[{key:"create",value:function(S){var x=S==="ordered"?"OL":"UL",P=l(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,x);return(S==="checked"||S==="unchecked")&&P.setAttribute("data-checked",S==="checked"),P}},{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){v(this,k);var S=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T)),x=function(E){if(E.target.parentNode===T){var C=S.statics.formats(T),O=c.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 _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,x){if(S instanceof y)l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,S,x);else{var P=x==null?this.length():x.offset(this),E=this.split(P);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=c.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=c.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[y],o.ListItem=y,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 c(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function h(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var f=function(d){p(u,d);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(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 _(v,b){for(var g=0;g<b.length;g++){var y=b[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,b,g){return b&&_(v.prototype,b),g&&_(v,g),v}}(),l=function _(v,b,g){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,b);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:_(w,b,g)}else{if("value"in y)return y.value;var m=y.get;return m===void 0?void 0:m.call(g)}},s=a(6),c=h(s);function h(_){return _&&_.__esModule?_:{default:_}}function p(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function f(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function d(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var u=function(_){d(v,_);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):l(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),v}(c.default);u.blotName="script",u.tagName=["SUB","SUP"],o.default=u},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 c(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function h(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var f=function(d){p(u,d);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(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 c(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function h(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var f=function(d){p(u,d);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(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 b(g,y){for(var w=0;w<y.length;w++){var m=y[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,y,w){return y&&b(g.prototype,y),w&&b(g,w),g}}(),l=function b(g,y,w){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,y);if(m===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:b(k,y,w)}else{if("value"in m)return m.value;var T=m.get;return T===void 0?void 0:T.call(w)}},s=a(0),c=p(s),h=a(27);function p(b){return b&&b.__esModule?b:{default:b}}function f(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function d(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}var _=["alt","height","width"],v=function(b){u(g,b);function g(){return f(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(w,m){_.indexOf(w)>-1?m?this.domNode.setAttribute(w,m):this.domNode.removeAttribute(w):l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,w,m)}}],[{key:"create",value:function(w){var m=l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,w);return typeof w=="string"&&m.setAttribute("src",this.sanitize(w)),m}},{key:"formats",value:function(w){return _.reduce(function(m,k){return w.hasAttribute(k)&&(m[k]=w.getAttribute(k)),m},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),g}(c.default.Embed);v.blotName="image",v.tagName="IMG",o.default=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(g,y){for(var w=0;w<y.length;w++){var m=y[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,y,w){return y&&b(g.prototype,y),w&&b(g,w),g}}(),l=function b(g,y,w){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,y);if(m===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:b(k,y,w)}else{if("value"in m)return m.value;var T=m.get;return T===void 0?void 0:T.call(w)}},s=a(4),c=a(27),h=p(c);function p(b){return b&&b.__esModule?b:{default:b}}function f(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function d(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}var _=["height","width"],v=function(b){u(g,b);function g(){return f(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(w,m){_.indexOf(w)>-1?m?this.domNode.setAttribute(w,m):this.domNode.removeAttribute(w):l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,w,m)}}],[{key:"create",value:function(w){var m=l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,w);return m.setAttribute("frameborder","0"),m.setAttribute("allowfullscreen",!0),m.setAttribute("src",this.sanitize(w)),m}},{key:"formats",value:function(w){return _.reduce(function(m,k){return w.hasAttribute(k)&&(m[k]=w.getAttribute(k)),m},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),g}(s.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",o.default=v},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var r=function(){function w(m,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(m,S.key,S)}}return function(m,k,T){return k&&w(m.prototype,k),T&&w(m,T),m}}(),l=function w(m,k,T){m===null&&(m=Function.prototype);var S=Object.getOwnPropertyDescriptor(m,k);if(S===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:w(x,k,T)}else{if("value"in S)return S.value;var P=S.get;return P===void 0?void 0:P.call(T)}},s=a(35),c=u(s),h=a(5),p=u(h),f=a(9),d=u(f);function u(w){return w&&w.__esModule?w:{default:w}}function _(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function v(w,m){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:w}function b(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(w,m):w.__proto__=m)}var g=function(w){b(m,w);function m(){return _(this,m),v(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(T){var S=l(m.__proto__||Object.getPrototypeOf(m),"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")}}]),m}(c.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var y=function(w){b(m,w),r(m,null,[{key:"register",value:function(){p.default.register(g,!0)}}]);function m(){_(this,m);var k=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return k}return m}(d.default);o.FormulaBlot=g,o.default=y},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 P=0;P<x.length;P++){var E=x[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,x,P){return x&&T(S.prototype,x),P&&T(S,P),S}}(),l=function T(S,x,P){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,P)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(P)}},s=a(0),c=v(s),h=a(5),p=v(h),f=a(9),d=v(f),u=a(13),_=v(u);function v(T){return T&&T.__esModule?T:{default:T}}function b(T,S){if(!(T instanceof S))throw new TypeError("Cannot call a class as a function")}function g(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 y(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){y(S,T);function S(){return b(this,S),g(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return r(S,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),S}(_.default);w.className="ql-syntax";var m=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),k=function(T){y(S,T),r(S,null,[{key:"register",value:function(){p.default.register(m,!0),p.default.register(w,!0)}}]);function S(x,P){b(this,S);var E=g(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,P));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 P=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(P.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=m,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,P,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,P);if(C===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:S(O,P,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,P){for(var E=0;E<P.length;E++){var C=P[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,P,E){return P&&S(x.prototype,P),E&&S(x,E),x}}(),s=a(3),c=b(s),h=a(8),p=b(h),f=a(43),d=b(f),u=a(15),_=a(41),v=b(_);function b(S){return S&&S.__esModule?S:{default:S}}function g(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function y(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 m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],k=function(S){w(x,S);function x(P,E){g(this,x),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=m);var C=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,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")),v.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),v.default)}}]),x}(d.default);k.DEFAULTS=(0,c.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(P,E){g(this,x);var C=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,E));return C.quill.on(p.default.events.EDITOR_CHANGE,function(O,N,M,F){if(O===p.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&F===p.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var G=C.quill.getLines(N.index,N.length);if(G.length===1)C.position(C.quill.getBounds(N));else{var Y=G[G.length-1],ie=C.quill.getIndex(Y),U=Math.min(Y.length()-1,N.index+N.length-ie),R=C.quill.getBounds(new u.Range(ie,U));C.position(R)}}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})})(ba);var g1=ba.exports;const _t=rr(g1);var $t=-1,yt=1,at=0;function xn(t,n,e,o){if(t===n)return t?[[at,t]]:[];if(e!=null){var a=$1(t,n,e);if(a)return a}var r=di(t,n),l=t.substring(0,r);t=t.substring(r),n=n.substring(r),r=ci(t,n);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),n=n.substring(0,n.length-r);var c=y1(t,n);return l&&c.unshift([at,l]),s&&c.push([at,s]),$a(c,o),c}function y1(t,n){var e;if(!t)return[[yt,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=[[yt,o.substring(0,r)],[at,a],[yt,o.substring(r+a.length)]],t.length>n.length&&(e[0][0]=e[2][0]=$t),e;if(a.length===1)return[[$t,t],[yt,n]];var l=b1(t,n);if(l){var s=l[0],c=l[1],h=l[2],p=l[3],f=l[4],d=xn(s,h),u=xn(c,p);return d.concat([[at,f]],u)}return v1(t,n)}function v1(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),c=new Array(l),h=0;h<l;h++)s[h]=-1,c[h]=-1;s[r+1]=0,c[r+1]=0;for(var p=e-o,f=p%2!==0,d=0,u=0,_=0,v=0,b=0;b<a;b++){for(var g=-b+d;g<=b-u;g+=2){var y=r+g,w;g===-b||g!==b&&s[y-1]<s[y+1]?w=s[y+1]:w=s[y-1]+1;for(var m=w-g;w<e&&m<o&&t.charAt(w)===n.charAt(m);)w++,m++;if(s[y]=w,w>e)u+=2;else if(m>o)d+=2;else if(f){var k=r+p-g;if(k>=0&&k<l&&c[k]!==-1){var T=e-c[k];if(w>=T)return _a(t,n,w,m)}}}for(var S=-b+_;S<=b-v;S+=2){var k=r+S,T;S===-b||S!==b&&c[k-1]<c[k+1]?T=c[k+1]:T=c[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(c[k]=T,T>e)v+=2;else if(x>o)_+=2;else if(!f){var y=r+p-S;if(y>=0&&y<l&&s[y]!==-1){var w=s[y],m=r+w-y;if(T=e-T,w>=T)return _a(t,n,w,m)}}}}return[[$t,t],[yt,n]]}function _a(t,n,e,o){var a=t.substring(0,e),r=n.substring(0,o),l=t.substring(e),s=n.substring(o),c=xn(a,r),h=xn(l,s);return c.concat(h)}function di(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 wa(t.charCodeAt(a-1))&&a--,a}function ci(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 ka(t.charCodeAt(t.length-a))&&a--,a}function b1(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(u,_,v){for(var b=u.substring(v,v+Math.floor(u.length/4)),g=-1,y="",w,m,k,T;(g=_.indexOf(b,g+1))!==-1;){var S=di(u.substring(v),_.substring(g)),x=ci(u.substring(0,v),_.substring(0,g));y.length<x+S&&(y=_.substring(g-x,g)+_.substring(g,g+S),w=u.substring(0,v-x),m=u.substring(v+S),k=_.substring(0,g-x),T=_.substring(g+S))}return y.length*2>=u.length?[w,m,k,T,y]: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 c,h,p,f;t.length>n.length?(c=s[0],h=s[1],p=s[2],f=s[3]):(p=s[0],f=s[1],c=s[2],h=s[3]);var d=s[4];return[c,h,p,f,d]}function $a(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 yt:a++,l+=t[e][1],e++;break;case $t:o++,r+=t[e][1],e++;break;case at:var c=e-a-o-1;if(n){if(c>=0&&Oa(t[c][1])){var h=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),r=h+r,l=h+l,!t[c][1]){t.splice(c,1),e--;var p=c-1;t[p]&&t[p][0]===yt&&(a++,l=t[p][1]+l,p--),t[p]&&t[p][0]===$t&&(o++,r=t[p][1]+r,p--),c=p}}if(Ca(t[e][1])){var h=t[e][1].charAt(0);t[e][1]=t[e][1].slice(1),r+=h,l+=h}}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=di(l,r),s!==0&&(c>=0?t[c][1]+=l.substring(0,s):(t.splice(0,0,[at,l.substring(0,s)]),e++),l=l.substring(s),r=r.substring(s)),s=ci(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,[yt,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],[yt,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&&$a(t,n)}function wa(t){return t>=55296&&t<=56319}function ka(t){return t>=56320&&t<=57343}function Ca(t){return ka(t.charCodeAt(0))}function Oa(t){return wa(t.charCodeAt(t.length-1))}function _1(t){for(var n=[],e=0;e<t.length;e++)t[e][1].length>0&&n.push(t[e]);return n}function ui(t,n,e,o){return Oa(t)||Ca(o)?null:_1([[at,t],[$t,n],[yt,e],[at,o]])}function $1(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,c=t.slice(0,s),h=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),u=n.slice(f);if(u!==h)break e;var _=Math.min(s,f),v=c.slice(0,_),b=d.slice(0,_);if(v!==b)break e;var g=c.slice(_),y=d.slice(_);return ui(v,g,y,h)}e:{if(p!==null&&p!==s)break e;var w=s,d=n.slice(0,w),u=n.slice(w);if(d!==c)break e;var m=Math.min(r-w,l-w),k=h.slice(h.length-m),T=u.slice(u.length-m);if(k!==T)break e;var g=h.slice(0,h.length-m),y=u.slice(0,u.length-m);return ui(c,g,y,k)}}if(o.length>0&&a&&a.length===0)e:{var v=t.slice(0,o.index),k=t.slice(o.index+o.length),_=v.length,m=k.length;if(l<_+m)break e;var b=n.slice(0,_),T=n.slice(l-m);if(v!==b||k!==T)break e;var g=t.slice(_,r-m),y=n.slice(_,l-m);return ui(v,g,y,k)}return null}function hr(t,n,e){return xn(t,n,e,!0)}hr.INSERT=yt,hr.DELETE=$t,hr.EQUAL=at;var w1=hr,pr={exports:{}};pr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",d="[object Map]",u="[object Number]",_="[object Object]",v="[object Promise]",b="[object RegExp]",g="[object Set]",y="[object String]",w="[object Symbol]",m="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",x="[object Float64Array]",P="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,Y=/\w*$/,ie=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,R={};R[r]=R[l]=R[k]=R[T]=R[s]=R[c]=R[S]=R[x]=R[P]=R[E]=R[C]=R[d]=R[u]=R[_]=R[b]=R[g]=R[y]=R[w]=R[O]=R[N]=R[M]=R[F]=!0,R[h]=R[p]=R[m]=!1;var A=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,j=typeof self=="object"&&self&&self.Object===Object&&self,V=A||j||Function("return this")(),W=n&&!n.nodeType&&n,H=W&&!0&&t&&!t.nodeType&&t,B=H&&H.exports===W;function z($,D){return $.set(D[0],D[1]),$}function Z($,D){return $.add(D),$}function J($,D){for(var q=-1,ee=$?$.length:0;++q<ee&&D($[q],q,$)!==!1;);return $}function ne($,D){for(var q=-1,ee=D.length,we=$.length;++q<ee;)$[we+q]=D[q];return $}function de($,D,q,ee){var we=-1,fe=$?$.length:0;for(ee&&fe&&(q=$[++we]);++we<fe;)q=D(q,$[we],we,$);return q}function he($,D){for(var q=-1,ee=Array($);++q<$;)ee[q]=D(q);return ee}function ve($,D){return $==null?void 0:$[D]}function ke($){var D=!1;if($!=null&&typeof $.toString!="function")try{D=!!($+"")}catch{}return D}function Oe($){var D=-1,q=Array($.size);return $.forEach(function(ee,we){q[++D]=[we,ee]}),q}function Le($,D){return function(q){return $(D(q))}}function Me($){var D=-1,q=Array($.size);return $.forEach(function(ee){q[++D]=ee}),q}var Q=Array.prototype,te=Function.prototype,ae=Object.prototype,le=V["__core-js_shared__"],re=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(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=B?V.Buffer:void 0,Ne=V.Symbol,wt=V.Uint8Array,Ee=Le(Object.getPrototypeOf,Object),nt=Object.create,Zt=ae.propertyIsEnumerable,An=Q.splice,Jt=Object.getOwnPropertySymbols,De=je?je.isBuffer:void 0,Ht=Le(Object.keys,Object),kt=vt(V,"DataView"),It=vt(V,"Map"),Ye=vt(V,"Promise"),Ct=vt(V,"Set"),rt=vt(V,"WeakMap"),Pt=vt(Object,"create"),Xt=it(kt),I=it(It),L=it(Ye),K=it(Ct),X=it(rt),oe=Ne?Ne.prototype:void 0,se=oe?oe.valueOf:void 0;function ye($){var D=-1,q=$?$.length:0;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function ue(){this.__data__=Pt?Pt(null):{}}function Ce($){return this.has($)&&delete this.__data__[$]}function ce($){var D=this.__data__;if(Pt){var q=D[$];return q===o?void 0:q}return me.call(D,$)?D[$]:void 0}function ge($){var D=this.__data__;return Pt?D[$]!==void 0:me.call(D,$)}function xe($,D){var q=this.__data__;return q[$]=Pt&&D===void 0?o:D,this}ye.prototype.clear=ue,ye.prototype.delete=Ce,ye.prototype.get=ce,ye.prototype.has=ge,ye.prototype.set=xe;function Pe($){var D=-1,q=$?$.length:0;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function Ke(){this.__data__=[]}function Mt($){var D=this.__data__,q=fn(D,$);if(q<0)return!1;var ee=D.length-1;return q==ee?D.pop():An.call(D,q,1),!0}function Ot($){var D=this.__data__,q=fn(D,$);return q<0?void 0:D[q][1]}function Dn($){return fn(this.__data__,$)>-1}function Qt($,D){var q=this.__data__,ee=fn(q,$);return ee<0?q.push([$,D]):q[ee][1]=D,this}Pe.prototype.clear=Ke,Pe.prototype.delete=Mt,Pe.prototype.get=Ot,Pe.prototype.has=Dn,Pe.prototype.set=Qt;function ze($){var D=-1,q=$?$.length:0;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function In(){this.__data__={hash:new ye,map:new(It||Pe),string:new ye}}function Pn($){return tn(this,$).delete($)}function Mn($){return tn(this,$).get($)}function Bn($){return tn(this,$).has($)}function Ln($,D){return tn(this,$).set($,D),this}ze.prototype.clear=In,ze.prototype.delete=Pn,ze.prototype.get=Mn,ze.prototype.has=Bn,ze.prototype.set=Ln;function Ze($){this.__data__=new Pe($)}function Rn(){this.__data__=new Pe}function gi($){return this.__data__.delete($)}function yi($){return this.__data__.get($)}function vi($){return this.__data__.has($)}function bi($,D){var q=this.__data__;if(q instanceof Pe){var ee=q.__data__;if(!It||ee.length<e-1)return ee.push([$,D]),this;q=this.__data__=new ze(ee)}return q.set($,D),this}Ze.prototype.clear=Rn,Ze.prototype.delete=gi,Ze.prototype.get=yi,Ze.prototype.has=vi,Ze.prototype.set=bi;function un($,D){var q=qn($)||pn($)?he($.length,String):[],ee=q.length,we=!!ee;for(var fe in $)(D||me.call($,fe))&&!(we&&(fe=="length"||Ii(fe,ee)))&&q.push(fe);return q}function _r($,D,q){var ee=$[D];(!(me.call($,D)&&Or(ee,q))||q===void 0&&!(D in $))&&($[D]=q)}function fn($,D){for(var q=$.length;q--;)if(Or($[q][0],D))return q;return-1}function Et($,D){return $&&Fn(D,zn(D),$)}function jn($,D,q,ee,we,fe,Se){var Te;if(ee&&(Te=fe?ee($,we,fe,Se):ee($)),Te!==void 0)return Te;if(!xt($))return $;var Ve=qn($);if(Ve){if(Te=Ai($),!D)return xi($,Te)}else{var Ie=Lt($),Je=Ie==p||Ie==f;if(Er($))return hn($,D);if(Ie==_||Ie==r||Je&&!fe){if(ke($))return fe?$:{};if(Te=St(Je?{}:$),!D)return Ti($,Et(Te,$))}else{if(!R[Ie])return fe?$:{};Te=Di($,Ie,jn,D)}}Se||(Se=new Ze);var st=Se.get($);if(st)return st;if(Se.set($,Te),!Ve)var qe=q?Ni($):zn($);return J(qe||$,function(Xe,Ge){qe&&(Ge=Xe,Xe=$[Ge]),_r(Te,Ge,jn(Xe,D,q,ee,Ge,$,Se))}),Te}function _i($){return xt($)?nt($):{}}function $i($,D,q){var ee=D($);return qn($)?ee:ne(ee,q($))}function wi($){return be.call($)}function ki($){if(!xt($)||Mi($))return!1;var D=Hn($)||ke($)?He:ie;return D.test(it($))}function Ci($){if(!kr($))return Ht($);var D=[];for(var q in Object($))me.call($,q)&&q!="constructor"&&D.push(q);return D}function hn($,D){if(D)return $.slice();var q=new $.constructor($.length);return $.copy(q),q}function Vn($){var D=new $.constructor($.byteLength);return new wt(D).set(new wt($)),D}function en($,D){var q=D?Vn($.buffer):$.buffer;return new $.constructor(q,$.byteOffset,$.byteLength)}function $r($,D,q){var ee=D?q(Oe($),!0):Oe($);return de(ee,z,new $.constructor)}function wr($){var D=new $.constructor($.source,Y.exec($));return D.lastIndex=$.lastIndex,D}function Oi($,D,q){var ee=D?q(Me($),!0):Me($);return de(ee,Z,new $.constructor)}function Ei($){return se?Object(se.call($)):{}}function Si($,D){var q=D?Vn($.buffer):$.buffer;return new $.constructor(q,$.byteOffset,$.length)}function xi($,D){var q=-1,ee=$.length;for(D||(D=Array(ee));++q<ee;)D[q]=$[q];return D}function Fn($,D,q,ee){q||(q={});for(var we=-1,fe=D.length;++we<fe;){var Se=D[we],Te=ee?ee(q[Se],$[Se],Se,q,$):void 0;_r(q,Se,Te===void 0?$[Se]:Te)}return q}function Ti($,D){return Fn($,Bt($),D)}function Ni($){return $i($,zn,Bt)}function tn($,D){var q=$.__data__;return Pi(D)?q[typeof D=="string"?"string":"hash"]:q.map}function vt($,D){var q=ve($,D);return ki(q)?q:void 0}var Bt=Jt?Le(Jt,Object):Li,Lt=wi;(kt&&Lt(new kt(new ArrayBuffer(1)))!=T||It&&Lt(new It)!=d||Ye&&Lt(Ye.resolve())!=v||Ct&&Lt(new Ct)!=g||rt&&Lt(new rt)!=m)&&(Lt=function($){var D=be.call($),q=D==_?$.constructor:void 0,ee=q?it(q):void 0;if(ee)switch(ee){case Xt:return T;case I:return d;case L:return v;case K:return g;case X:return m}return D});function Ai($){var D=$.length,q=$.constructor(D);return D&&typeof $[0]=="string"&&me.call($,"index")&&(q.index=$.index,q.input=$.input),q}function St($){return typeof $.constructor=="function"&&!kr($)?_i(Ee($)):{}}function Di($,D,q,ee){var we=$.constructor;switch(D){case k:return Vn($);case s:case c:return new we(+$);case T:return en($,ee);case S:case x:case P:case E:case C:case O:case N:case M:case F:return Si($,ee);case d:return $r($,ee,q);case u:case y:return new we($);case b:return wr($);case g:return Oi($,ee,q);case w:return Ei($)}}function Ii($,D){return D=D??a,!!D&&(typeof $=="number"||U.test($))&&$>-1&&$%1==0&&$<D}function Pi($){var D=typeof $;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?$!=="__proto__":$===null}function Mi($){return!!re&&re in $}function kr($){var D=$&&$.constructor,q=typeof D=="function"&&D.prototype||ae;return $===q}function it($){if($!=null){try{return $e.call($)}catch{}try{return $+""}catch{}}return""}function Cr($){return jn($,!0,!0)}function Or($,D){return $===D||$!==$&&D!==D}function pn($){return Bi($)&&me.call($,"callee")&&(!Zt.call($,"callee")||be.call($)==r)}var qn=Array.isArray;function mn($){return $!=null&&Sr($.length)&&!Hn($)}function Bi($){return xr($)&&mn($)}var Er=De||Ri;function Hn($){var D=xt($)?be.call($):"";return D==p||D==f}function Sr($){return typeof $=="number"&&$>-1&&$%1==0&&$<=a}function xt($){var D=typeof $;return!!$&&(D=="object"||D=="function")}function xr($){return!!$&&typeof $=="object"}function zn($){return mn($)?un($):Ci($)}function Li(){return[]}function Ri(){return!1}t.exports=Cr}(pr,pr.exports);var Ea=pr.exports,mr={exports:{}};mr.exports,function(t,n){var e=200,o="__lodash_hash_undefined__",a=1,r=2,l=9007199254740991,s="[object Arguments]",c="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",f="[object Date]",d="[object Error]",u="[object Function]",_="[object GeneratorFunction]",v="[object Map]",b="[object Number]",g="[object Null]",y="[object Object]",w="[object Promise]",m="[object Proxy]",k="[object RegExp]",T="[object Set]",S="[object String]",x="[object Symbol]",P="[object Undefined]",E="[object WeakMap]",C="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",ie="[object Uint8Array]",U="[object Uint8ClampedArray]",R="[object Uint16Array]",A="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,H={};H[N]=H[M]=H[F]=H[G]=H[Y]=H[ie]=H[U]=H[R]=H[A]=!0,H[s]=H[c]=H[C]=H[p]=H[O]=H[f]=H[d]=H[u]=H[v]=H[b]=H[y]=H[k]=H[T]=H[S]=H[E]=!1;var B=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,z=typeof self=="object"&&self&&self.Object===Object&&self,Z=B||z||Function("return this")(),J=n&&!n.nodeType&&n,ne=J&&!0&&t&&!t.nodeType&&t,de=ne&&ne.exports===J,he=de&&B.process,ve=function(){try{return he&&he.binding&&he.binding("util")}catch{}}(),ke=ve&&ve.isTypedArray;function Oe($,D){for(var q=-1,ee=$==null?0:$.length,we=0,fe=[];++q<ee;){var Se=$[q];D(Se,q,$)&&(fe[we++]=Se)}return fe}function Le($,D){for(var q=-1,ee=D.length,we=$.length;++q<ee;)$[we+q]=D[q];return $}function Me($,D){for(var q=-1,ee=$==null?0:$.length;++q<ee;)if(D($[q],q,$))return!0;return!1}function Q($,D){for(var q=-1,ee=Array($);++q<$;)ee[q]=D(q);return ee}function te($){return function(D){return $(D)}}function ae($,D){return $.has(D)}function le($,D){return $==null?void 0:$[D]}function re($){var D=-1,q=Array($.size);return $.forEach(function(ee,we){q[++D]=[we,ee]}),q}function $e($,D){return function(q){return $(D(q))}}function me($){var D=-1,q=Array($.size);return $.forEach(function(ee){q[++D]=ee}),q}var be=Array.prototype,He=Function.prototype,je=Object.prototype,Ne=Z["__core-js_shared__"],wt=He.toString,Ee=je.hasOwnProperty,nt=function(){var $=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),Zt=je.toString,An=RegExp("^"+wt.call(Ee).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=de?Z.Buffer:void 0,De=Z.Symbol,Ht=Z.Uint8Array,kt=je.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"),I=Bt(Z,"Map"),L=Bt(Z,"Promise"),K=Bt(Z,"Set"),X=Bt(Z,"WeakMap"),oe=Bt(Object,"create"),se=it(Xt),ye=it(I),ue=it(L),Ce=it(K),ce=it(X),ge=De?De.prototype:void 0,xe=ge?ge.valueOf:void 0;function Pe($){var D=-1,q=$==null?0:$.length;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function Ke(){this.__data__=oe?oe(null):{},this.size=0}function Mt($){var D=this.has($)&&delete this.__data__[$];return this.size-=D?1:0,D}function Ot($){var D=this.__data__;if(oe){var q=D[$];return q===o?void 0:q}return Ee.call(D,$)?D[$]:void 0}function Dn($){var D=this.__data__;return oe?D[$]!==void 0:Ee.call(D,$)}function Qt($,D){var q=this.__data__;return this.size+=this.has($)?0:1,q[$]=oe&&D===void 0?o:D,this}Pe.prototype.clear=Ke,Pe.prototype.delete=Mt,Pe.prototype.get=Ot,Pe.prototype.has=Dn,Pe.prototype.set=Qt;function ze($){var D=-1,q=$==null?0:$.length;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function In(){this.__data__=[],this.size=0}function Pn($){var D=this.__data__,q=hn(D,$);if(q<0)return!1;var ee=D.length-1;return q==ee?D.pop():It.call(D,q,1),--this.size,!0}function Mn($){var D=this.__data__,q=hn(D,$);return q<0?void 0:D[q][1]}function Bn($){return hn(this.__data__,$)>-1}function Ln($,D){var q=this.__data__,ee=hn(q,$);return ee<0?(++this.size,q.push([$,D])):q[ee][1]=D,this}ze.prototype.clear=In,ze.prototype.delete=Pn,ze.prototype.get=Mn,ze.prototype.has=Bn,ze.prototype.set=Ln;function Ze($){var D=-1,q=$==null?0:$.length;for(this.clear();++D<q;){var ee=$[D];this.set(ee[0],ee[1])}}function Rn(){this.size=0,this.__data__={hash:new Pe,map:new(I||ze),string:new Pe}}function gi($){var D=vt(this,$).delete($);return this.size-=D?1:0,D}function yi($){return vt(this,$).get($)}function vi($){return vt(this,$).has($)}function bi($,D){var q=vt(this,$),ee=q.size;return q.set($,D),this.size+=q.size==ee?0:1,this}Ze.prototype.clear=Rn,Ze.prototype.delete=gi,Ze.prototype.get=yi,Ze.prototype.has=vi,Ze.prototype.set=bi;function un($){var D=-1,q=$==null?0:$.length;for(this.__data__=new Ze;++D<q;)this.add($[D])}function _r($){return this.__data__.set($,o),this}function fn($){return this.__data__.has($)}un.prototype.add=un.prototype.push=_r,un.prototype.has=fn;function Et($){var D=this.__data__=new ze($);this.size=D.size}function jn(){this.__data__=new ze,this.size=0}function _i($){var D=this.__data__,q=D.delete($);return this.size=D.size,q}function $i($){return this.__data__.get($)}function wi($){return this.__data__.has($)}function ki($,D){var q=this.__data__;if(q instanceof ze){var ee=q.__data__;if(!I||ee.length<e-1)return ee.push([$,D]),this.size=++q.size,this;q=this.__data__=new Ze(ee)}return q.set($,D),this.size=q.size,this}Et.prototype.clear=jn,Et.prototype.delete=_i,Et.prototype.get=$i,Et.prototype.has=wi,Et.prototype.set=ki;function Ci($,D){var q=pn($),ee=!q&&Or($),we=!q&&!ee&&mn($),fe=!q&&!ee&&!we&&xr($),Se=q||ee||we||fe,Te=Se?Q($.length,String):[],Ve=Te.length;for(var Ie in $)(D||Ee.call($,Ie))&&!(Se&&(Ie=="length"||we&&(Ie=="offset"||Ie=="parent")||fe&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Di(Ie,Ve)))&&Te.push(Ie);return Te}function hn($,D){for(var q=$.length;q--;)if(Cr($[q][0],D))return q;return-1}function Vn($,D,q){var ee=D($);return pn($)?ee:Le(ee,q($))}function en($){return $==null?$===void 0?P:g:Ye&&Ye in Object($)?Lt($):kr($)}function $r($){return xt($)&&en($)==s}function wr($,D,q,ee,we){return $===D?!0:$==null||D==null||!xt($)&&!xt(D)?$!==$&&D!==D:Oi($,D,q,ee,wr,we)}function Oi($,D,q,ee,we,fe){var Se=pn($),Te=pn(D),Ve=Se?c:St($),Ie=Te?c:St(D);Ve=Ve==s?y:Ve,Ie=Ie==s?y:Ie;var Je=Ve==y,st=Ie==y,qe=Ve==Ie;if(qe&&mn($)){if(!mn(D))return!1;Se=!0,Je=!1}if(qe&&!Je)return fe||(fe=new Et),Se||xr($)?Fn($,D,q,ee,we,fe):Ti($,D,Ve,q,ee,we,fe);if(!(q&a)){var Xe=Je&&Ee.call($,"__wrapped__"),Ge=st&&Ee.call(D,"__wrapped__");if(Xe||Ge){var zt=Xe?$.value():$,Rt=Ge?D.value():D;return fe||(fe=new Et),we(zt,Rt,q,ee,fe)}}return qe?(fe||(fe=new Et),Ni($,D,q,ee,we,fe)):!1}function Ei($){if(!Sr($)||Pi($))return!1;var D=Er($)?An:V;return D.test(it($))}function Si($){return xt($)&&Hn($.length)&&!!H[en($)]}function xi($){if(!Mi($))return Pt($);var D=[];for(var q in Object($))Ee.call($,q)&&q!="constructor"&&D.push(q);return D}function Fn($,D,q,ee,we,fe){var Se=q&a,Te=$.length,Ve=D.length;if(Te!=Ve&&!(Se&&Ve>Te))return!1;var Ie=fe.get($);if(Ie&&fe.get(D))return Ie==D;var Je=-1,st=!0,qe=q&r?new un:void 0;for(fe.set($,D),fe.set(D,$);++Je<Te;){var Xe=$[Je],Ge=D[Je];if(ee)var zt=Se?ee(Ge,Xe,Je,D,$,fe):ee(Xe,Ge,Je,$,D,fe);if(zt!==void 0){if(zt)continue;st=!1;break}if(qe){if(!Me(D,function(Rt,nn){if(!ae(qe,nn)&&(Xe===Rt||we(Xe,Rt,q,ee,fe)))return qe.push(nn)})){st=!1;break}}else if(!(Xe===Ge||we(Xe,Ge,q,ee,fe))){st=!1;break}}return fe.delete($),fe.delete(D),st}function Ti($,D,q,ee,we,fe,Se){switch(q){case O:if($.byteLength!=D.byteLength||$.byteOffset!=D.byteOffset)return!1;$=$.buffer,D=D.buffer;case C:return!($.byteLength!=D.byteLength||!fe(new Ht($),new Ht(D)));case p:case f:case b:return Cr(+$,+D);case d:return $.name==D.name&&$.message==D.message;case k:case S:return $==D+"";case v:var Te=re;case T:var Ve=ee&a;if(Te||(Te=me),$.size!=D.size&&!Ve)return!1;var Ie=Se.get($);if(Ie)return Ie==D;ee|=r,Se.set($,D);var Je=Fn(Te($),Te(D),ee,we,fe,Se);return Se.delete($),Je;case x:if(xe)return xe.call($)==xe.call(D)}return!1}function Ni($,D,q,ee,we,fe){var Se=q&a,Te=tn($),Ve=Te.length,Ie=tn(D),Je=Ie.length;if(Ve!=Je&&!Se)return!1;for(var st=Ve;st--;){var qe=Te[st];if(!(Se?qe in D:Ee.call(D,qe)))return!1}var Xe=fe.get($);if(Xe&&fe.get(D))return Xe==D;var Ge=!0;fe.set($,D),fe.set(D,$);for(var zt=Se;++st<Ve;){qe=Te[st];var Rt=$[qe],nn=D[qe];if(ee)var Ba=Se?ee(nn,Rt,qe,D,$,fe):ee(Rt,nn,qe,$,D,fe);if(!(Ba===void 0?Rt===nn||we(Rt,nn,q,ee,fe):Ba)){Ge=!1;break}zt||(zt=qe=="constructor")}if(Ge&&!zt){var Tr=$.constructor,Nr=D.constructor;Tr!=Nr&&"constructor"in $&&"constructor"in D&&!(typeof Tr=="function"&&Tr instanceof Tr&&typeof Nr=="function"&&Nr instanceof Nr)&&(Ge=!1)}return fe.delete($),fe.delete(D),Ge}function tn($){return Vn($,zn,Ai)}function vt($,D){var q=$.__data__;return Ii(D)?q[typeof D=="string"?"string":"hash"]:q.map}function Bt($,D){var q=le($,D);return Ei(q)?q:void 0}function Lt($){var D=Ee.call($,Ye),q=$[Ye];try{$[Ye]=void 0;var ee=!0}catch{}var we=Zt.call($);return ee&&(D?$[Ye]=q:delete $[Ye]),we}var Ai=Ct?function($){return $==null?[]:($=Object($),Oe(Ct($),function(D){return kt.call($,D)}))}:Li,St=en;(Xt&&St(new Xt(new ArrayBuffer(1)))!=O||I&&St(new I)!=v||L&&St(L.resolve())!=w||K&&St(new K)!=T||X&&St(new X)!=E)&&(St=function($){var D=en($),q=D==y?$.constructor:void 0,ee=q?it(q):"";if(ee)switch(ee){case se:return O;case ye:return v;case ue:return w;case Ce:return T;case ce:return E}return D});function Di($,D){return D=D??l,!!D&&(typeof $=="number"||W.test($))&&$>-1&&$%1==0&&$<D}function Ii($){var D=typeof $;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?$!=="__proto__":$===null}function Pi($){return!!nt&&nt in $}function Mi($){var D=$&&$.constructor,q=typeof D=="function"&&D.prototype||je;return $===q}function kr($){return Zt.call($)}function it($){if($!=null){try{return wt.call($)}catch{}try{return $+""}catch{}}return""}function Cr($,D){return $===D||$!==$&&D!==D}var Or=$r(function(){return arguments}())?$r:function($){return xt($)&&Ee.call($,"callee")&&!kt.call($,"callee")},pn=Array.isArray;function qn($){return $!=null&&Hn($.length)&&!Er($)}var mn=rt||Ri;function Bi($,D){return wr($,D)}function Er($){if(!Sr($))return!1;var D=en($);return D==u||D==_||D==h||D==m}function Hn($){return typeof $=="number"&&$>-1&&$%1==0&&$<=l}function Sr($){var D=typeof $;return $!=null&&(D=="object"||D=="function")}function xt($){return $!=null&&typeof $=="object"}var xr=ke?te(ke):Si;function zn($){return qn($)?Ci($):xi($)}function Li(){return[]}function Ri(){return!1}t.exports=Bi}(mr,mr.exports);var Sa=mr.exports,fi={},xa=Fe&&Fe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fi,"__esModule",{value:!0});var k1=xa(Ea),C1=xa(Sa),hi;(function(t){function n(r,l,s){r===void 0&&(r={}),l===void 0&&(l={}),typeof r!="object"&&(r={}),typeof l!="object"&&(l={});var c=k1.default(l);s||(c=Object.keys(c).reduce(function(p,f){return c[f]!=null&&(p[f]=c[f]),p},{}));for(var h in r)r[h]!==void 0&&l[h]===void 0&&(c[h]=r[h]);return Object.keys(c).length>0?c: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(c,h){return C1.default(r[h],l[h])||(c[h]=l[h]===void 0?null:l[h]),c},{});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(c,h){return l[h]!==r[h]&&r[h]!==void 0&&(c[h]=l[h]),c},{});return Object.keys(r).reduce(function(c,h){return r[h]!==l[h]&&l[h]===void 0&&(c[h]=null),c},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 c=Object.keys(l).reduce(function(h,p){return r[p]===void 0&&(h[p]=l[p]),h},{});return Object.keys(c).length>0?c:void 0}}t.transform=a})(hi||(hi={})),fi.default=hi;var gr={},yr={},Ta;function O1(){if(Ta)return yr;Ta=1;var t=Fe&&Fe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(yr,"__esModule",{value:!0});var n=t(Aa()),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 c={};return r.attributes&&(c.attributes=r.attributes),typeof r.retain=="number"?c.retain=a:typeof r.insert=="string"?c.insert=r.insert.substr(l,a):c.insert=r.insert,c}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 yr.default=e,yr}var Na;function Aa(){if(Na)return gr;Na=1;var t=Fe&&Fe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(gr,"__esModule",{value:!0});var n=t(O1()),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={})),gr.default=e,gr}var Tn=Fe&&Fe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},vr=Tn(w1),E1=Tn(Ea),pi=Tn(Sa),Nn=Tn(fi),Ue=Tn(Aa()),S1=String.fromCharCode(0),x1=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=E1.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(pi.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 c=Math.min(e.peekLength(),o.peekLength()),h=e.next(c),p=o.next(c);if(typeof p.retain=="number"){var f={};typeof h.retain=="number"?f.retain=c:f.insert=h.insert;var d=Nn.default.compose(h.attributes,p.attributes,typeof h.retain=="number");if(d&&(f.attributes=d),s.push(f),!o.hasNext()&&pi.default(s.ops[s.ops.length-1],f)){var u=new t(e.rest());return s.concat(u).chop()}}else typeof p.delete=="number"&&typeof h.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(c){return c.map(function(h){if(h.insert!=null)return typeof h.insert=="string"?h.insert:S1;var p=c===n?"on":"with";throw new Error("diff() called "+p+" non-document")}).join("")}),a=new t,r=vr.default(o[0],o[1],e),l=Ue.default.iterator(this.ops),s=Ue.default.iterator(n.ops);return r.forEach(function(c){for(var h=c[1].length;h>0;){var p=0;switch(c[0]){case vr.default.INSERT:p=Math.min(s.peekLength(),h),a.push(s.next(p));break;case vr.default.DELETE:p=Math.min(h,l.peekLength()),l.next(p),a.delete(p);break;case vr.default.EQUAL:p=Math.min(l.peekLength(),s.peekLength(),h);var f=l.next(p),d=s.next(p);pi.default(f.insert,d.insert)?a.retain(p,Nn.default.diff(f.attributes,d.attributes)):a.push(d).delete(p);break}h-=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(),
|
|
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 h.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 _(g,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,b,y){return b&&_(g.prototype,b),y&&_(g,y),g}}(),l=function _(g,b,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,b);if(m===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:_(w,b,y)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(y)}},s=a(6),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(){return p(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"optimize",value:function(y){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(f.default);u.blotName="bold",u.tagName=["STRONG","B"],o.default=u},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),f=y(s),c=a(0),p=y(c),h=a(5),d=y(h),u=a(10),_=y(u),g=a(9),b=y(g);function y(C){return C&&C.__esModule?C:{default:C}}function m(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,_.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 f.default().retain(P.index).delete(P.length).insert(m({},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}(b.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 _(g,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,b,y){return b&&_(g.prototype,b),y&&_(g,y),g}}(),l=function _(g,b,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,b);if(m===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:_(w,b,y)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(y)}},s=a(28),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(b,y){p(this,g);var m=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b));return m.label.innerHTML=y,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),m}return r(g,[{key:"buildItem",value:function(y){var m=l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,y);return m.style.backgroundColor=y.getAttribute("value")||"",m}},{key:"selectItem",value:function(y,m){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m);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)}}]),g}(f.default);o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(g,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,b,y){return b&&_(g.prototype,b),y&&_(g,y),g}}(),l=function _(g,b,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,b);if(m===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:_(w,b,y)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(y)}},s=a(28),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(b,y){p(this,g);var m=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=y[w.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return r(g,[{key:"selectItem",value:function(y,m){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,y,m),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),g}(f.default);o.default=u},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function f(c,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,p,h){return p&&f(c.prototype,p),h&&f(c,h),c}}();function l(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function(){function f(c,p){var h=this;l(this,f),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(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return r(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var h=p.left+p.width/2-this.root.offsetWidth/2,d=p.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),_=this.root.getBoundingClientRect(),g=0;if(_.right>u.right&&(g=u.right-_.right,this.root.style.left=h+g+"px"),_.left<u.left&&(g=u.left-_.left,this.root.style.left=h+g+"px"),_.bottom>u.bottom){var b=_.bottom-_.top,y=p.bottom-p.top+b;this.root.style.top=d-y+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();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}}(),f=a(3),c=w(f),p=a(8),h=w(p),d=a(43),u=w(d),_=a(27),g=w(_),b=a(15),y=a(41),m=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")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.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}(u.default);x.DEFAULTS=(0,c.default)(!0,{},u.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,h.default.sources.USER),delete N.linkRange}R.preventDefault(),N.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(R,q,W){if(R!=null){if(R.length===0&&W===h.default.sources.USER){var Y=N.quill.scroll.descendant(g.default,R.index),re=r(Y,2),K=re[0],V=re[1];if(K!=null){N.linkRange=new b.Range(R.index-V,K.length());var D=g.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),f=a(38),c=a(64),p=a(65),h=ie(p),d=a(66),u=ie(d),_=a(67),g=ie(_),b=a(37),y=a(26),m=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":f.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":s.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":c.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":w.SizeClass,"formats/blockquote":h.default,"formats/code-block":D.default,"formats/header":u.default,"formats/list":g.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":_.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 g(b,y){for(var m=0;m<y.length;m++){var w=y[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,y,m){return y&&g(b.prototype,y),m&&g(b,m),b}}(),l=function g(b,y,m){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,y);if(w===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:g(v,y,m)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(m)}},s=a(0),f=c(s);function c(g){return g&&g.__esModule?g:{default:g}}function p(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function h(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function d(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var u=function(g){d(b,g);function b(){return p(this,b),h(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"add",value:function(m,w){if(w==="+1"||w==="-1"){var v=this.value(m)||0;w=w==="+1"?v+1:v-1}return w===0?(this.remove(m),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,m,w)}},{key:"canAdd",value:function(m,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,m,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,m,parseInt(w))}},{key:"value",value:function(m){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,m))||void 0}}]),b}(f.default.Attributor.Class),_=new u("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=_},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 f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function c(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var h=function(d){p(u,d);function u(){return f(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default);h.blotName="blockquote",h.tagName="blockquote",o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function u(_,g){for(var b=0;b<g.length;b++){var y=g[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(_,y.key,y)}}return function(_,g,b){return g&&u(_.prototype,g),b&&u(_,b),_}}(),l=a(4),s=f(l);function f(u){return u&&u.__esModule?u:{default:u}}function c(u,_){if(!(u instanceof _))throw new TypeError("Cannot call a class as a function")}function p(u,_){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:u}function h(u,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);u.prototype=Object.create(_&&_.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(u,_):u.__proto__=_)}var d=function(u){h(_,u);function _(){return c(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return r(_,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),_}(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),f=u(s),c=a(4),p=u(c),h=a(25),d=u(h);function u(v){return v&&v.__esModule?v:{default:v}}function _(v,k,T){return k in v?Object.defineProperty(v,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[k]=T,v}function g(v,k){if(!(v instanceof k))throw new TypeError("Cannot call a class as a function")}function b(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 m=function(v){y(k,v);function k(){return g(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"format",value:function(S,x){S===w.blotName&&!x?this.replaceWith(f.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);m.blotName="list-item",m.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){g(this,k);var S=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,T)),x=function(E){if(E.target.parentNode===T){var C=S.statics.formats(T),O=f.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 _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,x){if(S instanceof m)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=f.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=f.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[m],o.ListItem=m,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 f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function c(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var h=function(d){p(u,d);function u(){return f(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default);h.blotName="italic",h.tagName=["EM","I"],o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(g,b){for(var y=0;y<b.length;y++){var m=b[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,b,y){return b&&_(g.prototype,b),y&&_(g,y),g}}(),l=function _(g,b,y){g===null&&(g=Function.prototype);var m=Object.getOwnPropertyDescriptor(g,b);if(m===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:_(w,b,y)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(y)}},s=a(6),f=c(s);function c(_){return _&&_.__esModule?_:{default:_}}function p(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function h(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function d(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var u=function(_){d(g,_);function g(){return p(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),g}(f.default);u.blotName="script",u.tagName=["SUB","SUP"],o.default=u},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 f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function c(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var h=function(d){p(u,d);function u(){return f(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default);h.blotName="strike",h.tagName="S",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 f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function c(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function p(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var h=function(d){p(u,d);function u(){return f(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(l.default);h.blotName="underline",h.tagName="U",o.default=h},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(y,m){for(var w=0;w<m.length;w++){var v=m[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}}(),l=function b(y,m,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,m);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:b(k,m,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),f=p(s),c=a(27);function p(b){return b&&b.__esModule?b:{default:b}}function h(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function d(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function u(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var _=["alt","height","width"],g=function(b){u(y,b);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(w,v){_.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 _.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}(f.default.Embed);g.blotName="image",g.tagName="IMG",o.default=g},function(e,o,a){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function b(y,m){for(var w=0;w<m.length;w++){var v=m[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,m,w){return m&&b(y.prototype,m),w&&b(y,w),y}}(),l=function b(y,m,w){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,m);if(v===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:b(k,m,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),f=a(27),c=p(f);function p(b){return b&&b.__esModule?b:{default:b}}function h(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function d(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function u(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var _=["height","width"],g=function(b){u(y,b);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"format",value:function(w,v){_.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 _.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);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",o.default=g},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),f=u(s),c=a(5),p=u(c),h=a(9),d=u(h);function u(w){return w&&w.__esModule?w:{default:w}}function _(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function g(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 b(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){b(v,w);function v(){return _(this,v),g(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}(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var m=function(w){b(v,w),r(v,null,[{key:"register",value:function(){p.default.register(y,!0)}}]);function v(){_(this,v);var k=g(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=m},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),f=g(s),c=a(5),p=g(c),h=a(9),d=g(h),u=a(13),_=g(u);function g(T){return T&&T.__esModule?T:{default:T}}function b(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 m(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){m(S,T);function S(){return b(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}(_.default);w.className="ql-syntax";var v=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),k=function(T){m(S,T),r(S,null,[{key:"register",value:function(){p.default.register(v,!0),p.default.register(w,!0)}}]);function S(x,B){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),f=b(s),c=a(8),p=b(c),h=a(43),d=b(h),u=a(15),_=a(41),g=b(_);function b(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 m(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=m(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")),g.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),g.default)}}]),x}(d.default);k.DEFAULTS=(0,f.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=m(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 u.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}(h.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 E1=$a.exports;const mt=kn(E1);var $t=-1,vt=1,at=0;function An(t,n,e,o){if(t===n)return t?[[at,t]]:[];if(e!=null){var a=A1(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 f=S1(t,n);return l&&f.unshift([at,l]),s&&f.push([at,s]),ka(f,o),f}function S1(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=T1(t,n);if(l){var s=l[0],f=l[1],c=l[2],p=l[3],h=l[4],d=An(s,c),u=An(f,p);return d.concat([[at,h]],u)}return x1(t,n)}function x1(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),f=new Array(l),c=0;c<l;c++)s[c]=-1,f[c]=-1;s[r+1]=0,f[r+1]=0;for(var p=e-o,h=p%2!==0,d=0,u=0,_=0,g=0,b=0;b<a;b++){for(var y=-b+d;y<=b-u;y+=2){var m=r+y,w;y===-b||y!==b&&s[m-1]<s[m+1]?w=s[m+1]:w=s[m-1]+1;for(var v=w-y;w<e&&v<o&&t.charAt(w)===n.charAt(v);)w++,v++;if(s[m]=w,w>e)u+=2;else if(v>o)d+=2;else if(h){var k=r+p-y;if(k>=0&&k<l&&f[k]!==-1){var T=e-f[k];if(w>=T)return wa(t,n,w,v)}}}for(var S=-b+_;S<=b-g;S+=2){var k=r+S,T;S===-b||S!==b&&f[k-1]<f[k+1]?T=f[k+1]:T=f[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(f[k]=T,T>e)g+=2;else if(x>o)_+=2;else if(!h){var m=r+p-S;if(m>=0&&m<l&&s[m]!==-1){var w=s[m],v=r+w-m;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),f=An(a,r),c=An(l,s);return f.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 T1(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(u,_,g){for(var b=u.substring(g,g+Math.floor(u.length/4)),y=-1,m="",w,v,k,T;(y=_.indexOf(b,y+1))!==-1;){var S=fi(u.substring(g),_.substring(y)),x=hi(u.substring(0,g),_.substring(0,y));m.length<x+S&&(m=_.substring(y-x,y)+_.substring(y,y+S),w=u.substring(0,g-x),v=u.substring(g+S),k=_.substring(0,y-x),T=_.substring(y+S))}return m.length*2>=u.length?[w,v,k,T,m]: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 f,c,p,h;t.length>n.length?(f=s[0],c=s[1],p=s[2],h=s[3]):(p=s[0],h=s[1],f=s[2],c=s[3]);var d=s[4];return[f,c,p,h,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 f=e-a-o-1;if(n){if(f>=0&&Sa(t[f][1])){var c=t[f][1].slice(-1);if(t[f][1]=t[f][1].slice(0,-1),r=c+r,l=c+l,!t[f][1]){t.splice(f,1),e--;var p=f-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--),f=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&&(f>=0?t[f][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 h=a+o;r.length===0&&l.length===0?(t.splice(e-h,h),e=e-h):r.length===0?(t.splice(e-h,h,[vt,l]),e=e-h+1):l.length===0?(t.splice(e-h,h,[$t,r]),e=e-h+1):(t.splice(e-h,h,[$t,r],[vt,l]),e=e-h+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 N1(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:N1([[at,t],[$t,n],[vt,e],[at,o]])}function A1(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,f=t.slice(0,s),c=t.slice(s),p=a?a.index:null;e:{var h=s+l-r;if(p!==null&&p!==h||h<0||h>l)break e;var d=n.slice(0,h),u=n.slice(h);if(u!==c)break e;var _=Math.min(s,h),g=f.slice(0,_),b=d.slice(0,_);if(g!==b)break e;var y=f.slice(_),m=d.slice(_);return pi(g,y,m,c)}e:{if(p!==null&&p!==s)break e;var w=s,d=n.slice(0,w),u=n.slice(w);if(d!==f)break e;var v=Math.min(r-w,l-w),k=c.slice(c.length-v),T=u.slice(u.length-v);if(k!==T)break e;var y=c.slice(0,c.length-v),m=u.slice(0,u.length-v);return pi(f,y,m,k)}}if(o.length>0&&a&&a.length===0)e:{var g=t.slice(0,o.index),k=t.slice(o.index+o.length),_=g.length,v=k.length;if(l<_+v)break e;var b=n.slice(0,_),T=n.slice(l-v);if(g!==b||k!==T)break e;var y=t.slice(_,r-v),m=n.slice(_,l-v);return pi(g,y,m,k)}return null}function mr(t,n,e){return An(t,n,e,!0)}mr.INSERT=vt,mr.DELETE=$t,mr.EQUAL=at;var D1=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]",f="[object Date]",c="[object Error]",p="[object Function]",h="[object GeneratorFunction]",d="[object Map]",u="[object Number]",_="[object Object]",g="[object Promise]",b="[object RegExp]",y="[object Set]",m="[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[f]=V[S]=V[x]=V[B]=V[E]=V[C]=V[d]=V[u]=V[_]=V[b]=V[y]=V[m]=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,Pn=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=fn(I,$);if(H<0)return!1;var ee=I.length-1;return H==ee?I.pop():Pn.call(I,H,1),!0}function Ot($){var I=this.__data__,H=fn(I,$);return H<0?void 0:I[H][1]}function Mn($){return fn(this.__data__,$)>-1}function Qt($,I){var H=this.__data__,ee=fn(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=Mn,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 Bn(){this.__data__={hash:new ye,map:new(It||Pe),string:new ye}}function Ln($){return tn(this,$).delete($)}function Rn($){return tn(this,$).get($)}function jn($){return tn(this,$).has($)}function Vn($,I){return tn(this,$).set($,I),this}ze.prototype.clear=Bn,ze.prototype.delete=Ln,ze.prototype.get=Rn,ze.prototype.has=jn,ze.prototype.set=Vn;function Ze($){this.__data__=new Pe($)}function qn(){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=qn,Ze.prototype.delete=bi,Ze.prototype.get=_i,Ze.prototype.has=$i,Ze.prototype.set=wi;function un($,I){var H=Un($)||pn($)?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 fn($,I){for(var H=$.length;H--;)if(Sr($[H][0],I))return H;return-1}function Et($,I){return $&&zn(I,Gn(I),$)}function Fn($,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=Un($);if(qe){if(Te=Pi($),!I)return Ai($,Te)}else{var Ie=Lt($),Je=Ie==p||Ie==h;if(xr($))return hn($,I);if(Ie==_||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,Fn,I)}}Se||(Se=new Ze);var st=Se.get($);if(st)return st;if(Se.set($,Te),!qe)var Fe=H?Ii($):Gn($);return J(Fe||$,function(Xe,Ge){Fe&&(Ge=Xe,Xe=$[Ge]),wr(Te,Ge,Fn(Xe,I,H,ee,Ge,$,Se))}),Te}function ki($){return xt($)?nt($):{}}function Ci($,I,H){var ee=I($);return Un($)?ee:ne(ee,H($))}function Oi($){return be.call($)}function Ei($){if(!xt($)||Ri($))return!1;var I=Kn($)||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 hn($,I){if(I)return $.slice();var H=new $.constructor($.length);return $.copy(H),H}function Hn($){var I=new $.constructor($.byteLength);return new wt(I).set(new wt($)),I}function en($,I){var H=I?Hn($.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?Hn($.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 zn($,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 zn($,Bt($),I)}function Ii($){return Ci($,Gn,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())!=g||Ct&&Lt(new Ct)!=y||rt&&Lt(new rt)!=v)&&(Lt=function($){var I=be.call($),H=I==_?$.constructor:void 0,ee=H?it(H):void 0;if(ee)switch(ee){case Xt:return T;case M:return d;case j:return g;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 Hn($);case s:case f: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 u:case m:return new we($);case b: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 Fn($,!0,!0)}function Sr($,I){return $===I||$!==$&&I!==I}function pn($){return ji($)&&me.call($,"callee")&&(!Zt.call($,"callee")||be.call($)==r)}var Un=Array.isArray;function mn($){return $!=null&&Tr($.length)&&!Kn($)}function ji($){return Nr($)&&mn($)}var xr=De||qi;function Kn($){var I=xt($)?be.call($):"";return I==p||I==h}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 Gn($){return mn($)?un($):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]",f="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",d="[object Error]",u="[object Function]",_="[object GeneratorFunction]",g="[object Map]",b="[object Number]",y="[object Null]",m="[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[f]=F[C]=F[p]=F[O]=F[h]=F[d]=F[u]=F[g]=F[b]=F[m]=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,Pn=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 Mn($){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=Mn,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 Bn(){this.__data__=[],this.size=0}function Ln($){var I=this.__data__,H=hn(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 Rn($){var I=this.__data__,H=hn(I,$);return H<0?void 0:I[H][1]}function jn($){return hn(this.__data__,$)>-1}function Vn($,I){var H=this.__data__,ee=hn(H,$);return ee<0?(++this.size,H.push([$,I])):H[ee][1]=I,this}ze.prototype.clear=Bn,ze.prototype.delete=Ln,ze.prototype.get=Rn,ze.prototype.has=jn,ze.prototype.set=Vn;function Ze($){var I=-1,H=$==null?0:$.length;for(this.clear();++I<H;){var ee=$[I];this.set(ee[0],ee[1])}}function qn(){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=qn,Ze.prototype.delete=bi,Ze.prototype.get=_i,Ze.prototype.has=$i,Ze.prototype.set=wi;function un($){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 fn($){return this.__data__.has($)}un.prototype.add=un.prototype.push=wr,un.prototype.has=fn;function Et($){var I=this.__data__=new ze($);this.size=I.size}function Fn(){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=Fn,Et.prototype.delete=ki,Et.prototype.get=Ci,Et.prototype.has=Oi,Et.prototype.set=Ei;function Si($,I){var H=pn($),ee=!H&&Sr($),we=!H&&!ee&&mn($),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 hn($,I){for(var H=$.length;H--;)if(Er($[H][0],I))return H;return-1}function Hn($,I,H){var ee=I($);return pn($)?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=pn($),Te=pn(I),qe=Se?f:St($),Ie=Te?f:St(I);qe=qe==s?m:qe,Ie=Ie==s?m:Ie;var Je=qe==m,st=Ie==m,Fe=qe==Ie;if(Fe&&mn($)){if(!mn(I))return!1;Se=!0,Je=!1}if(Fe&&!Je)return fe||(fe=new Et),Se||Nr($)?zn($,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($)?Pn:P;return I.test(it($))}function Ni($){return xt($)&&Kn($.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 zn($,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 un: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 h:case b:return Er(+$,+I);case d:return $.name==I.name&&$.message==I.message;case k:case S:return $==I+"";case g: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=zn(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 Hn($,Gn,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)!=g||j&&St(j.resolve())!=w||G&&St(new G)!=T||X&&St(new X)!=E)&&(St=function($){var I=en($),H=I==m?$.constructor:void 0,ee=H?it(H):"";if(ee)switch(ee){case se:return O;case ye:return g;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")},pn=Array.isArray;function Un($){return $!=null&&Kn($.length)&&!xr($)}var mn=rt||qi;function ji($,I){return Cr($,I)}function xr($){if(!Tr($))return!1;var I=en($);return I==u||I==_||I==c||I==v}function Kn($){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 Gn($){return Un($)?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 I1=Na(xa),P1=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 f=I1.default(l);s||(f=Object.keys(f).reduce(function(p,h){return f[h]!=null&&(p[h]=f[h]),p},{}));for(var c in r)r[c]!==void 0&&l[c]===void 0&&(f[c]=r[c]);return Object.keys(f).length>0?f: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(f,c){return P1.default(r[c],l[c])||(f[c]=l[c]===void 0?null:l[c]),f},{});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(f,c){return l[c]!==r[c]&&r[c]!==void 0&&(f[c]=l[c]),f},{});return Object.keys(r).reduce(function(f,c){return r[c]!==l[c]&&l[c]===void 0&&(f[c]=null),f},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 f=Object.keys(l).reduce(function(c,p){return r[p]===void 0&&(c[p]=l[p]),c},{});return Object.keys(f).length>0?f:void 0}}t.transform=a})(gi||(gi={})),mi.default=gi;var vr={},br={},Aa;function M1(){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 f={};return r.attributes&&(f.attributes=r.attributes),typeof r.retain=="number"?f.retain=a:typeof r.insert=="string"?f.insert=r.insert.substr(l,a):f.insert=r.insert,f}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(M1()),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 Dn=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_r=Dn(D1),B1=Dn(xa),yi=Dn(Ta),In=Dn(mi),Ue=Dn(Ia()),L1=String.fromCharCode(0),R1=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=B1.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 f=Math.min(e.peekLength(),o.peekLength()),c=e.next(f),p=o.next(f);if(typeof p.retain=="number"){var h={};typeof c.retain=="number"?h.retain=f:h.insert=c.insert;var d=In.default.compose(c.attributes,p.attributes,typeof c.retain=="number");if(d&&(h.attributes=d),s.push(h),!o.hasNext()&&yi.default(s.ops[s.ops.length-1],h)){var u=new t(e.rest());return s.concat(u).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(f){return f.map(function(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:L1;var p=f===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(f){for(var c=f[1].length;c>0;){var p=0;switch(f[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 h=l.next(p),d=s.next(p);yi.default(h.insert,d.insert)?a.retain(p,In.default.diff(h.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(),f=typeof l.insert=="string"?l.insert.indexOf(e,s)-s:-1;if(f<0)a.push(o.next());else if(f>0)a.push(o.next(f));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),In.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()),f=a.next(s),c=r.next(s);if(f.delete)continue;c.delete?l.push(c):l.retain(s,In.default.transform(f.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=In.default,t}(),j1=R1;const V1=kn(j1);/*!
|
|
131
131
|
* VueQuill @vueup/vue-quill v1.2.0
|
|
132
132
|
* https://vueup.github.io/vue-quill/
|
|
133
133
|
*
|
|
@@ -137,38 +137,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137
137
|
* Copyright (c) 2023 Ahmad Luthfi Masruri
|
|
138
138
|
* Released under the MIT license
|
|
139
139
|
* Date: 2023-05-12T08:44:03.742Z
|
|
140
|
-
*/const
|
|
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"]]},q1=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",h),e.on("selection-change",u),e.on("editor-change",_),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,f=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!f(c.diff(C))}return!1},h=(C,O,N)=>{c=s(m()),p(t.content)||n.emit("update:content",c),n.emit("textChange",{delta:C,oldContents:O,source:N})},d=i.ref(),u=(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 _=(...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]})},g=()=>a.value,b=()=>{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
141
|
make sure to call this method when the editor ready
|
|
142
|
-
or use v-on:ready="onReady(quill)" event instead.`},
|
|
142
|
+
or use v-on:ready="onReady(quill)" event instead.`},m=(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 V1:"");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:g,getToolbar:b,getQuill:y,getContents:m,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})]}}),F1=mt.import("formats/list"),H1=mt.import("formats/list/item"),z1=mt.import("parchment");class $r extends H1{format(n,e){n===Yt.blotName&&!e?this.replaceWith(z1.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 F1{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(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0});var l=a(1);function s(f,c){var p=f.import("parchment"),h=l.default(f);h.className=c&&c.className||"ql-placeholder-content",f.register(h);var d=function u(_,g){var b=this;r(this,u),this.quill=_,this.onTextChange=function(y,m,w){if(w===f.sources.USER){var v=b.quill.getContents(),k=v.diff(m),T=k.ops.filter(function(S){return S.insert&&S.insert.placeholder&&S.insert.placeholder.required}).length;T&&b.quill.updateContents(k,f.sources.SILENT)}},this.onClick=function(y){var m=p.find(y.target.parentNode);if(m instanceof h){var w=b.quill.getIndex(m);b.quill.setSelection(w,m.length(),f.sources.USER)}},this.toolbarHandler=function(y){var m=b.quill.getSelection(),w=b.placeholders.filter(function(v){return v.id===y})[0];if(!w)throw new Error("Missing placeholder for "+y);b.quill.deleteText(m.index,m.length),b.quill.insertEmbed(m.index,"placeholder",w,f.sources.USER),b.quill.setSelection(m.index+1,0)},this.placeholders=g.placeholders,h.delimiters=g.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 h(d,u){for(var _=0;_<u.length;_++){var g=u[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}return function(d,u,_){return u&&h(d.prototype,u),_&&h(d,_),d}}(),l=function h(d,u,_){d===null&&(d=Function.prototype);var g=Object.getOwnPropertyDescriptor(d,u);if(g===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:h(b,u,_)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(_)}};function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function f(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}Object.defineProperty(o,"__esModule",{value:!0});function p(h){var d=h.import("blots/embed"),u=function(_){c(g,_);function g(){return s(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"length",value:function(){return 1}},{key:"deleteAt",value:function(y,m){this.domNode.dataset.required||l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,y,m)}}],[{key:"create",value:function(y){var m=l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,y);y.required&&m.setAttribute("data-required","true"),m.setAttribute("data-id",y.id),m.setAttribute("data-label",y.label),m.setAttribute("spellcheck","false");var w=g.delimiters,v=typeof w=="string"?""+w+y.label+w:""+w[0]+y.label+(w[1]||w[0]),k=document.createTextNode(v);if(h.version<"1.3"){var T=document.createElement("span");T.setAttribute("contenteditable","false"),T.appendChild(k),m.appendChild(T)}else m.appendChild(k);return m}},{key:"value",value:function(y){return y.dataset}}]),g}(d);return u.blotName="placeholder",u.tagName="span",u}o.default=p}])})})(Ma);var U1=Ma.exports;const K1=kn(U1),Pp="",G1=`
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
144
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
145
|
</svg>
|
|
146
|
-
`,
|
|
146
|
+
`,W1=`
|
|
147
147
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
148
148
|
<path d="M9.54492 14.9023H8.36914L10.4404 5.09961H11.6299L9.54492 14.9023Z" class="fill" fill="#1A1A1A"/>
|
|
149
149
|
</svg>
|
|
150
|
-
`,
|
|
150
|
+
`,Y1=`
|
|
151
151
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
152
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
153
|
<path d="M5.19141 16.3047H14.8096V17.1182H5.19141V16.3047Z" class="fill" fill="#1A1A1A"/>
|
|
154
154
|
</svg>
|
|
155
|
-
`,
|
|
155
|
+
`,Z1=`
|
|
156
156
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
157
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
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
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
160
|
</svg>
|
|
161
|
-
`,
|
|
161
|
+
`,J1=`
|
|
162
162
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
163
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
164
|
</svg>
|
|
165
165
|
|
|
166
|
-
`,
|
|
166
|
+
`,X1=`
|
|
167
167
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
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
169
|
</svg>
|
|
170
170
|
|
|
171
|
-
`,
|
|
171
|
+
`,Q1=`
|
|
172
172
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
173
173
|
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
174
174
|
<rect x="3" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
@@ -176,14 +176,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
176
176
|
<rect x="3" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
177
177
|
</svg>
|
|
178
178
|
|
|
179
|
-
`,
|
|
179
|
+
`,e0=`
|
|
180
180
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
181
181
|
<rect x="3" y="3" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
182
182
|
<rect x="5" y="7" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
183
183
|
<rect x="3" y="11" width="14" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
184
184
|
<rect x="5" y="15" width="10" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
185
185
|
</svg>
|
|
186
|
-
`,
|
|
186
|
+
`,t0=`
|
|
187
187
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
188
188
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
189
189
|
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
@@ -191,14 +191,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
191
191
|
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
192
192
|
</svg>
|
|
193
193
|
|
|
194
|
-
`,
|
|
194
|
+
`,n0=`
|
|
195
195
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
196
196
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
197
197
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
198
198
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
199
199
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
200
200
|
</svg>
|
|
201
|
-
`,
|
|
201
|
+
`,r0=`
|
|
202
202
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
203
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
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"/>
|
|
@@ -207,7 +207,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
207
207
|
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
208
208
|
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
209
209
|
</svg>
|
|
210
|
-
`,
|
|
210
|
+
`,i0=`
|
|
211
211
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
212
212
|
<rect x="6.5" y="4" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
213
213
|
<rect x="6.5" y="9" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
@@ -216,7 +216,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
216
216
|
<circle cx="3.5" cy="10" r="1" class="fill" fill="#1A1A1A"/>
|
|
217
217
|
<circle cx="3.5" cy="5" r="1" class="fill" fill="#1A1A1A"/>
|
|
218
218
|
</svg>
|
|
219
|
-
`,
|
|
219
|
+
`,o0=`
|
|
220
220
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
221
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
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"/>
|
|
@@ -225,4 +225,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
225
225
|
<rect x="7" y="9.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
226
226
|
<rect x="7" y="14.5" width="11" height="2" rx="1" class="fill" fill="#1A1A1A"/>
|
|
227
227
|
</svg>
|
|
228
|
-
`,yp="",lt=_t.import("ui/icons");lt.bold=M1,lt.italic=B1,lt.underline=L1,lt.strike=R1,lt["code-block"]=V1,lt.link=j1,lt.align[""]=F1,lt.align.center=q1,lt.align.right=H1,lt.align.justify=z1,lt.list.ordered=U1,lt.list.bullet=K1,lt["alphabet-list"]=G1,_t.register({"formats/alphabet-list":Yt,"formats/alphabet-list/item":br}),_t.register(lt),_t.debug("error");const W1={name:"IbTextEditor",props:{name:{type:String,required:!0},placeholder:{type:String,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};return Object.assign(t,this.options)},characterOverLimit(){return!!this.characterLimit&&this.characterLength>this.characterLimit}},components:{QuillEditor:A1,IbIconButton:ct,IbAlert:qt,IbCharacterCount:Do}},Y1=["name","disabled","value"],Z1={id:"toolbar",class:"toolbar",ref:"toolbar"},J1=i.createStaticVNode('<div class="toolbar-group header-toolbar-group"><select 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),X1={class:"toolbar-group"},Q1=i.createElementVNode("div",{class:"toolbar-group"},[i.createElementVNode("select",{class:"ql-background"}),i.createElementVNode("select",{class:"ql-color"})],-1),e0={class:"toolbar-group"},t0={class:"toolbar-group"},n0={class:"toolbar-group"};function r0(t,n,e,o,a,r){const l=i.resolveComponent("ib-character-count"),s=i.resolveComponent("ib-alert"),c=i.resolveComponent("QuillEditor"),h=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,Y1),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(c,{onTextChange:r.onChange,onBlur:r.onBlur,onFocus:r.onFocus,ref:"quill",toolbar:"#toolbar",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",Z1,[J1,i.createElementVNode("div",X1,[i.createVNode(h,{class:"toolbar-item ql-bold",kind:"ghost"}),i.createVNode(h,{class:"toolbar-item ql-italic",kind:"ghost"}),i.createVNode(h,{class:"toolbar-item ql-underline",kind:"ghost"}),i.createVNode(h,{class:"toolbar-item ql-strike",kind:"ghost"})]),Q1,i.createElementVNode("div",e0,[i.createVNode(h,{class:"toolbar-item ql-code-block",kind:"ghost"}),i.createVNode(h,{class:"toolbar-item ql-link",kind:"ghost"})]),i.createElementVNode("div",t0,[i.createVNode(h,{class:"toolbar-item ql-align",kind:"ghost"}),i.createVNode(h,{class:"ql-align toolbar-item",value:"center",kind:"ghost"}),i.createVNode(h,{class:"ql-align toolbar-item",value:"right",kind:"ghost"}),i.createVNode(h,{class:"ql-align toolbar-item",value:"justify",kind:"ghost"})]),i.createElementVNode("div",n0,[i.createVNode(h,{class:"ql-list toolbar-item",value:"ordered",kind:"ghost"}),i.createVNode(h,{class:"ql-list toolbar-item",value:"bullet",kind:"ghost"}),i.createVNode(h,{class:"ql-alphabet-list alphabet-list toolbar-item",kind:"ghost"})])],512)],2)],2)}const i0=_e(W1,[["render",r0]]),vp="",o0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},a0={class:"ib-table-wrapper"},l0={class:"ib-table"};function s0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",a0,[i.createElementVNode("table",l0,[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 d0=_e(o0,[["render",s0],["__scopeId","data-v-5dceb760"]]),bp="",c0={name:"IbRow"},u0={class:"ib-tr"};function f0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("tr",u0,[i.renderSlot(t.$slots,"default",{ref:"row"})])}const h0=_e(c0,[["render",f0]]),_p="",p0={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"}}},m0={class:"cell"};function g0(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",m0,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ia=_e(p0,[["render",g0],["__scopeId","data-v-e74bb0f3"]]),$p="",y0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ia,IbCheckbox:Vr}};function v0(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 b0=_e(y0,[["render",v0]]),mi=new _o,Pa=(t,n)=>{if(Co(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};mi.createTooltip(t,o,e)}},Ma=()=>{mi.destroyTooltip()},_0={mounted(t,n){t.addEventListener("mouseenter",()=>Pa(t,n)),t.addEventListener("mouseleave",Ma)},beforeUnmount(t,n){mi.destroyTooltip(),t.removeEventListener("mouseenter",()=>Pa(t,n)),t.removeEventListener("mouseleave",Ma)}};pe.IbAccordion=Ua,pe.IbAlert=qt,pe.IbAvatar=Wl,pe.IbBadge=Jl,pe.IbBreadcrumbs=Ed,pe.IbButton=Vi,pe.IbButtonGroup=ts,pe.IbCell=Ia,pe.IbCheckbox=Vr,pe.IbCheckboxCell=b0,pe.IbCheckboxGroup=tu,pe.IbDatePicker=qu,pe.IbDropdown=er,pe.IbDropdownItem=Lr,pe.IbDropdownList=tr,pe.IbFormGroup=Xc,pe.IbIcon=Be,pe.IbIconButton=ct,pe.IbInput=jr,pe.IbLabel=wn,pe.IbLimitSelector=xo,pe.IbModal=Gs,pe.IbPagination=Ec,pe.IbPanel=Wc,pe.IbPhoneInput=m1,pe.IbPopover=so,pe.IbProgressBar=Ic,pe.IbRadio=du,pe.IbRow=h0,pe.IbSorting=vd,pe.IbSplitButton=js,pe.IbSplitButtonItem=qs,pe.IbStatusIndicator=jc,pe.IbTab=sd,pe.IbTabDropdown=vo,pe.IbTable=d0,pe.IbTabs=od,pe.IbTagPill=is,pe.IbTextEditor=i0,pe.IbTextarea=_u,pe.IbToggle=ko,pe.IbToggleTip=fo,pe.IbTooltip=an,pe.IbTreeSelect=So,pe.OutsideDirective=Xn,pe.TextOverflowTooltipDirective=_0,pe.TooltipDirective=nr,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|
|
228
|
+
`,Mp="",lt=mt.import("ui/icons");lt.bold=G1,lt.italic=W1,lt.underline=Y1,lt.strike=Z1,lt["code-block"]=X1,lt.link=J1,lt.align[""]=Q1,lt.align.center=e0,lt.align.right=t0,lt.align.justify=n0,lt.list.ordered=r0,lt.list.bullet=i0,lt["alphabet-list"]=o0,mt.register({"formats/alphabet-list":Yt,"formats/alphabet-list/item":$r}),mt.register("modules/placeholder",K1(mt,{className:"ql-placeholder-content"})),mt.register(lt),mt.debug("error");const a0={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:q1,IbIconButton:ct,IbAlert:Ft,IbCharacterCount:zr}},l0=["name","disabled","value"],s0={id:"toolbar",class:"toolbar",ref:"toolbar"},d0={key:0,class:"toolbar-group header-toolbar-group"},c0=i.createElementVNode("label",{class:"toolbar-group__label",for:"placeholders"},"Placeholder Selector",-1),u0={id:"placeholders",class:"ql-placeholder"},f0=i.createElementVNode("option",{selected:"",value:"default",class:"disabled"},null,-1),h0=["value"],p0=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),m0={class:"toolbar-group"},g0=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),y0={class:"toolbar-group"},v0={class:"toolbar-group"},b0={class:"toolbar-group"};function _0(t,n,e,o,a,r){const l=i.resolveComponent("ib-character-count"),s=i.resolveComponent("ib-alert"),f=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,l0),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(f,{"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",s0,[e.placeholders.length?(i.openBlock(),i.createElementBlock("div",d0,[c0,i.createElementVNode("select",u0,[f0,(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,h0))),128))])])):i.createCommentVNode("",!0),p0,i.createElementVNode("div",m0,[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"})]),g0,i.createElementVNode("div",y0,[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",v0,[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",b0,[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 $0=_e(a0,[["render",_0]]),Bp="",w0={name:"IbTable",computed:{hasThead(){return!!this.$slots.thead}}},k0={class:"ib-table-wrapper"},C0={class:"ib-table"};function O0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",k0,[i.createElementVNode("table",C0,[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 E0=_e(w0,[["render",O0],["__scopeId","data-v-5dceb760"]]),Lp="",S0={name:"IbRow"},x0={class:"ib-tr"};function T0(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("tr",x0,[i.renderSlot(t.$slots,"default",{ref:"row"})])}const N0=_e(S0,[["render",T0]]),Rp="",A0={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"}}},D0={class:"cell"};function I0(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",D0,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],16)}const Ba=_e(A0,[["render",I0],["__scopeId","data-v-e74bb0f3"]]),jp="",P0={name:"IbCheckboxCell",props:{isChecked:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},components:{IbCell:Ba,IbCheckbox:Fr}};function M0(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 B0=_e(P0,[["render",M0]]),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()},L0={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=B0,pe.IbCheckboxGroup=uu,pe.IbChips=iu,pe.IbDatePicker=ef,pe.IbDropdown=rr,pe.IbDropdownItem=jr,pe.IbDropdownList=ir,pe.IbFormGroup=su,pe.IbIcon=Be,pe.IbIconButton=ct,pe.IbInput=qr,pe.IbLabel=wn,pe.IbLimitSelector=Ao,pe.IbModal=Zs,pe.IbPagination=Nc,pe.IbPanel=Xc,pe.IbPhoneInput=O1,pe.IbPopover=fo,pe.IbProgressBar=Lc,pe.IbRadio=bu,pe.IbRow=N0,pe.IbSorting=$d,pe.IbSplitButton=Fs,pe.IbSplitButtonItem=Us,pe.IbStatusIndicator=Hc,pe.IbTab=ud,pe.IbTabDropdown=$o,pe.IbTable=E0,pe.IbTabs=sd,pe.IbTagPill=ls,pe.IbTextEditor=$0,pe.IbTextarea=Nu,pe.IbToggle=Eo,pe.IbToggleTip=mo,pe.IbTooltip=an,pe.IbTreeSelect=No,pe.OutsideDirective=tr,pe.TextOverflowTooltipDirective=L0,pe.TooltipDirective=or,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|