@wisemen/vue-core-components 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd CHANGED
@@ -1,14 +1,14 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue"),require("reka-ui"),require("motion-v"),require("vue-i18n"),require("vue-router"),require("temporal-polyfill")):typeof define==`function`&&define.amd?define([`exports`,`vue`,`reka-ui`,`motion-v`,`vue-i18n`,`vue-router`,`temporal-polyfill`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`vue-core`]={},e.Vue,e.RekaUI,e.MotionV,e.VueI18n,e.VueRouter,e.Temporal))})(this,function(e,t,n,r,i,a,o){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var s=Object.defineProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>{let n={};for(var r in e)s(n,r,{get:e[r],enumerable:!0});return t||s(n,Symbol.toStringTag,{value:`Module`}),n};function u(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var f=d(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),p=`__googleMapsScriptId`,m;(function(e){e[e.INITIALIZED=0]=`INITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.SUCCESS=2]=`SUCCESS`,e[e.FAILURE=3]=`FAILURE`})(m||={});var h=class e{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:a=p,language:o,libraries:s=[],mapIds:c,nonce:l,region:u,retries:d=3,url:m=`https://maps.googleapis.com/maps/api/js`,version:h}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=a||`__googleMapsScriptId`,this.language=o,this.libraries=s,this.mapIds=c,this.nonce=l,this.region=u,this.retries=d,this.url=m,this.version=h,e.instance){if(!f(this.options,e.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?m.FAILURE:this.done?m.SUCCESS:this.loading?m.LOADING:m.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=__googleMapsCallback&loading=async`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(`,`)}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(`,`)}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let e={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(e).forEach(t=>!e[t]&&delete e[t]),(window==null?void 0:window.google)?.maps?.importLibrary||(e=>{let t,n,r,i=`google`,a=`importLibrary`,o=document,s=window;s=s[i]||(s[i]={});let c=s.maps||={},l=new Set,d=new URLSearchParams,f=()=>t||=new Promise((i,a)=>u(this,void 0,void 0,function*(){for(r in yield n=o.createElement(`script`),n.id=this.id,d.set(`libraries`,[...l]+``),e)d.set(r.replace(/[A-Z]/g,e=>`_`+e[0].toLowerCase()),e[r]);d.set(`callback`,`google.maps.__ib__`),n.src=this.url+`?`+d,c.__ib__=i,n.onerror=()=>t=a(Error(`The Google Maps JavaScript API could not load.`)),n.nonce=this.nonce||o.querySelector(`script[nonce]`)?.nonce||``,o.head.append(n)}));c[a]?console.warn(`The Google Maps JavaScript API only loads once. Ignoring:`,e):c[a]=(e,...t)=>l.add(e)&&f().then(()=>c[a](e,...t))})(e);let t=this.libraries.map(e=>this.importLibrary(e));t.length||t.push(this.importLibrary(`core`)),Promise.all(t).then(()=>this.callback(),e=>{let t=new ErrorEvent(`error`,{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*2**this.errors.length;console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn(`Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match.`),this.callback();return}this.loading=!0,this.setScript()}}};function g(e,t){return e.find(e=>e.types[0]===t)??null}async function _(e){let t=new google.maps.places.Place({id:e});await t.fetchFields({fields:[`addressComponents`,`location`]});let n=t.location?.lat()??null,r=t.location?.lng()??null;return{placeId:t.id??null,bus:g(t.addressComponents??[],`subpremise`)?.longText??``,city:g(t.addressComponents??[],`locality`)?.longText??``,coordinates:{lat:n,lng:r},country:g(t.addressComponents??[],`country`)?.shortText??``,postalCode:g(t.addressComponents??[],`postal_code`)?.longText??``,street:g(t.addressComponents??[],`route`)?.longText??``,streetNumber:g(t.addressComponents??[],`street_number`)?.longText??``}}function v(e){let t=[],n=[];return e.street!==``&&t.push(e.street),e.streetNumber!==``&&t.push(e.streetNumber),e.bus!==``&&t.push(e.bus),e.postalCode!==``&&n.push(e.postalCode),e.city!==``&&n.push(e.city),{placeId:``,mainText:t.join(` `),secondaryText:n.join(` `)}}function y(e){let t=[];return e.mainText!==``&&t.push(e.mainText),e.secondaryText!==``&&t.push(e.secondaryText),t.join(`, `)}function b(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}function ee(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return b(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}var x=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var te=Object.prototype.toString,S=e=>te.call(e)===`[object Object]`,C=()=>{},ne=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function re(...e){if(e.length!==1)return(0,t.toRef)(...e);let n=e[0];return typeof n==`function`?(0,t.readonly)((0,t.customRef)(()=>({get:n,set:C}))):(0,t.ref)(n)}function ie(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var ae=e=>e();function oe(e,n={}){let r,i,a=C,o=e=>{clearTimeout(e),a(),a=C},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function se(e=ae,n={}){let{initialState:r=`active`}=n,i=re(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,t.readonly)(i),pause:a,resume:o,eventFilter:(...t)=>{i.value&&e(...t)}}}function w(e){return Array.isArray(e)?e:[e]}function ce(e){return e||(0,t.getCurrentInstance)()}function T(e,t=200,n={}){return ie(oe(t,n),e)}function le(e,n,r={}){let{eventFilter:i=ae,...a}=r;return(0,t.watch)(e,ie(i,n),a)}function ue(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=se(r,{initialState:i});return{stop:le(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}var de=ue;function fe(e,n=!0,r){ce(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function E(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}var D=x?window:void 0,pe=x?window.document:void 0;x&&window.navigator,x&&window.location;function me(e){let n=(0,t.toValue)(e);return n?.$el??n}function O(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=w((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return E(()=>[r.value?.map(e=>me(e))??[D].filter(e=>e!=null),w((0,t.toValue)(r.value?e[1]:e[0])),w((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=S(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function he(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function ge(e){let n=he();return(0,t.computed)(()=>(n.value,!!e()))}var _e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},ve=`__vueuse_ssr_handlers__`,ye=be();function be(){return ve in _e||(_e[ve]=_e[ve]||{}),_e[ve]}function xe(e,t){return ye[e]||t}function Se(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Ce={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},we=`vueuse-storage`;function Te(e,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=D,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:m}=i,h=(u?t.shallowRef:t.ref)(typeof n==`function`?n():n),g=(0,t.computed)(()=>(0,t.toValue)(e));if(!r)try{r=xe(`getDefaultStorage`,()=>D?.localStorage)()}catch(e){p(e)}if(!r)return h;let _=(0,t.toValue)(n),v=Se(_),y=i.serializer??Ce[v],{pause:b,resume:ee}=de(h,e=>S(e),{flush:a,deep:o,eventFilter:f});(0,t.watch)(g,()=>ne(),{flush:a});let x=!1;d&&s&&(r instanceof Storage?O(d,`storage`,e=>{m&&!x||ne(e)},{passive:!0}):O(d,we,e=>{m&&!x||re(e)})),m?fe(()=>{x=!0,ne()}):ne();function te(e,t){if(d){let n={key:g.value,oldValue:e,newValue:t,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(we,{detail:n}))}}function S(e){try{let t=r.getItem(g.value);if(e==null)te(t,null),r.removeItem(g.value);else{let n=y.write(e);t!==n&&(r.setItem(g.value,n),te(t,n))}}catch(e){p(e)}}function C(e){let t=e?e.newValue:r.getItem(g.value);if(t==null)return c&&_!=null&&r.setItem(g.value,y.write(_)),_;if(!e&&l){let e=y.read(t);return typeof l==`function`?l(e,_):v===`object`&&!Array.isArray(e)?{..._,...e}:e}else if(typeof t!=`string`)return t;else return y.read(t)}function ne(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){h.value=_;return}if(!(e&&e.key!==g.value)){b();try{let t=y.write(h.value);(e===void 0||e?.newValue!==t)&&(h.value=C(e))}catch(e){p(e)}finally{e?(0,t.nextTick)(ee):ee()}}}}function re(e){ne(e.detail)}return h}function Ee(e,n={}){let r=(0,t.shallowRef)(!1),i=(0,t.shallowRef)(null),a=0,o=!0;if(x){let s=typeof n==`function`?{onDrop:n}:n,c=s.multiple??!0,l=s.preventDefaultForUnhandled??!1,u=e=>{let t=Array.from(e.dataTransfer?.files??[]);return t.length===0?null:c?t:[t[0]]},d=e=>{let n=(0,t.unref)(s.dataTypes);return typeof n==`function`?n(e):n?.length?e.length===0?!1:e.every(e=>n.some(t=>e.includes(t))):!0},f=e=>{if(s.checkValidity)return s.checkValidity(e);let t=d(Array.from(e??[]).map(e=>e.type)),n=c||e.length<=1;return t&&n},p=()=>/^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent)&&!(`chrome`in window),m=(e,t)=>{let n=e.dataTransfer?.items;if(o=(n&&f(n))??!1,l&&e.preventDefault(),!p()&&!o){e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`);let c=u(e);switch(t){case`enter`:var d;a+=1,r.value=!0,(d=s.onEnter)==null||d.call(s,null,e);break;case`over`:var m;(m=s.onOver)==null||m.call(s,null,e);break;case`leave`:var h;--a,a===0&&(r.value=!1),(h=s.onLeave)==null||h.call(s,null,e);break;case`drop`:if(a=0,r.value=!1,o){var g;i.value=c,(g=s.onDrop)==null||g.call(s,c,e)}break}};O(e,`dragenter`,e=>m(e,`enter`)),O(e,`dragover`,e=>m(e,`over`)),O(e,`dragleave`,e=>m(e,`leave`)),O(e,`drop`,e=>m(e,`drop`))}return{files:i,isOverDropZone:r}}function De(e,n,r={}){let{window:i=D,...a}=r,o,s=ge(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>me(e)):[me(n)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return b(u),{isSupported:s,stop:u}}function Oe(e,n={width:0,height:0},r={}){let{window:i=D,box:a=`content-box`}=r,o=(0,t.computed)(()=>{var t;return(t=me(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=(0,t.shallowRef)(n.width),c=(0,t.shallowRef)(n.height),{stop:l}=De(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=me(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=w(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);fe(()=>{let t=me(e);t&&(s.value=`offsetWidth`in t?t.offsetWidth:n.width,c.value=`offsetHeight`in t?t.offsetHeight:n.height)});let u=(0,t.watch)(()=>me(e),e=>{s.value=e?n.width:0,c.value=e?n.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var ke={multiple:!0,accept:`*`,reset:!1,directory:!1};function Ae(e){if(!e)return null;if(e instanceof FileList)return e;let t=new DataTransfer;for(let n of e)t.items.add(n);return t.files}function je(e={}){let{document:n=pe}=e,r=(0,t.ref)(Ae(e.initialFiles)),{on:i,trigger:a}=ee(),{on:o,trigger:s}=ee(),c=(0,t.computed)(()=>{let t=me(e.input)??(n?n.createElement(`input`):void 0);return t&&(t.type=`file`,t.onchange=e=>{r.value=e.target.files,a(r.value)},t.oncancel=()=>{s()}),t}),l=()=>{r.value=null,c.value&&c.value.value&&(c.value.value=``,a(null))},u=e=>{let n=c.value;n&&(n.multiple=(0,t.toValue)(e.multiple),n.accept=(0,t.toValue)(e.accept),n.webkitdirectory=(0,t.toValue)(e.directory),ne(e,`capture`)&&(n.capture=(0,t.toValue)(e.capture)))};return(0,t.watchEffect)(()=>{u(e)}),{files:(0,t.readonly)(r),open:n=>{let r=c.value;if(!r)return;let i={...ke,...e,...n};u(i),(0,t.toValue)(i.reset)&&l(),r.click()},reset:l,onCancel:o,onChange:i}}function Me(e=D,t){e&&typeof e.requestAnimationFrame==`function`?e.requestAnimationFrame(t):t()}function Ne(e={}){let{window:n=D}=e,r=re(e?.element),i=re(e?.input??``),a=e?.styleProp??`height`,o=(0,t.shallowRef)(1),s=(0,t.shallowRef)(0);function c(){if(!r.value)return;let n=``;r.value.style[a]=`1px`,o.value=r.value?.scrollHeight;let i=(0,t.toValue)(e?.styleTarget);i?i.style[a]=`${o.value}px`:n=`${o.value}px`,r.value.style[a]=n}return(0,t.watch)([i,r],()=>(0,t.nextTick)(c),{immediate:!0}),(0,t.watch)(o,()=>{var t;return e==null||(t=e.onResize)==null?void 0:t.call(e)}),De(r,([{contentRect:e}])=>{s.value!==e.width&&Me(n,()=>{s.value=e.width,c()})}),e?.watch&&(0,t.watch)(e.watch,c,{immediate:!0,deep:!0}),{textarea:r,input:i,triggerResize:c}}var Pe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Fe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Le=`-`,Re=[],ze=`arbitrary..`,Be=e=>{let t=Ue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return He(e);let n=e.split(Le);return Ve(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Pe(i,t):t:i||Re}return n[e]||Re}}},Ve=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ve(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Le):e.slice(t).join(Le),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},He=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ze+r:void 0})(),Ue=e=>{let{theme:t,classGroups:n}=e;return We(n,t)},We=(e,t)=>{let n=Ie();for(let r in e){let i=e[r];Ge(i,n,r,t)}return n},Ge=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ke(i,t,n,r)}},Ke=(e,t,n,r)=>{if(typeof e==`string`){qe(e,t,n);return}if(typeof e==`function`){Je(e,t,n,r);return}Ye(e,t,n,r)},qe=(e,t,n)=>{let r=e===``?t:Xe(t,e);r.classGroupId=n},Je=(e,t,n,r)=>{if(Ze(e)){Ge(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fe(n,e))},Ye=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ge(o,Xe(t,a),n,r)}},Xe=(e,t)=>{let n=e,r=t.split(Le),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ie(),n.nextPart.set(t,i)),n=i}return n},Ze=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Qe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},$e=`!`,et=`:`,tt=[],nt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),rt=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===et){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith($e)?(c=s.slice(0,-1),l=!0):s.startsWith($e)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return nt(t,l,c,u)};if(t){let e=t+et,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):nt(tt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},it=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},at=e=>({cache:Qe(e.cacheSize),parseClassName:rt(e),sortModifiers:it(e),...Be(e)}),ot=/\s+/,st=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ot),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+$e:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},ct=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=lt(n))&&(i&&(i+=` `),i+=r);return i},lt=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=lt(e[r]))&&(n&&(n+=` `),n+=t);return n},ut=(e,...t)=>{let n,r,i,a,o=o=>(n=at(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=st(e,n);return i(e,a),a};return a=o,(...e)=>a(ct(...e))},dt=[],k=e=>{let t=t=>t[e]||dt;return t.isThemeGetter=!0,t},ft=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mt=/^\d+\/\d+$/,ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bt=e=>mt.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),xt=e=>!!e&&Number.isInteger(Number(e)),St=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Ct=e=>ht.test(e),wt=()=>!0,Tt=e=>gt.test(e)&&!_t.test(e),Et=()=>!1,Dt=e=>vt.test(e),Ot=e=>yt.test(e),kt=e=>!j(e)&&!M(e),At=e=>Ht(e,Kt,Et),j=e=>ft.test(e),jt=e=>Ht(e,qt,Tt),Mt=e=>Ht(e,Jt,A),Nt=e=>Ht(e,Wt,Et),Pt=e=>Ht(e,Gt,Ot),Ft=e=>Ht(e,Xt,Dt),M=e=>pt.test(e),It=e=>Ut(e,qt),Lt=e=>Ut(e,Yt),Rt=e=>Ut(e,Wt),zt=e=>Ut(e,Kt),Bt=e=>Ut(e,Gt),Vt=e=>Ut(e,Xt,!0),Ht=(e,t,n)=>{let r=ft.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ut=(e,t,n=!1)=>{let r=pt.exec(e);return r?r[1]?t(r[1]):n:!1},Wt=e=>e===`position`||e===`percentage`,Gt=e=>e===`image`||e===`url`,Kt=e=>e===`length`||e===`size`||e===`bg-size`,qt=e=>e===`length`,Jt=e=>e===`number`,Yt=e=>e===`family-name`,Xt=e=>e===`shadow`,Zt=()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[M,j,c],C=()=>[bt,`full`,`auto`,...S()],ne=()=>[xt,`none`,`subgrid`,M,j],re=()=>[`auto`,{span:[`full`,xt,M,j]},xt,M,j],ie=()=>[xt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],se=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],w=()=>[`auto`,...S()],ce=()=>[bt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],T=()=>[e,M,j],le=()=>[...b(),Rt,Nt,{position:[M,j]}],ue=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],de=()=>[`auto`,`cover`,`contain`,zt,At,{size:[M,j]}],fe=()=>[St,It,jt],E=()=>[``,`none`,`full`,l,M,j],D=()=>[``,A,It,jt],pe=()=>[`solid`,`dashed`,`dotted`,`double`],me=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],O=()=>[A,St,Rt,Nt],he=()=>[``,`none`,m,M,j],ge=()=>[`none`,A,M,j],_e=()=>[`none`,A,M,j],ve=()=>[A,M,j],ye=()=>[bt,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ct],breakpoint:[Ct],color:[wt],container:[Ct],"drop-shadow":[Ct],ease:[`in`,`out`,`in-out`],font:[kt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ct],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ct],shadow:[Ct],spacing:[`px`,A],text:[Ct],"text-shadow":[Ct],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,bt,j,M,g]}],container:[`container`],columns:[{columns:[A,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[xt,`auto`,M,j]}],basis:[{basis:[bt,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,bt,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[xt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...se(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...se()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...se(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...se(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...se(),`baseline`]}],"place-self":[{"place-self":[`auto`,...se()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,It,jt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,M,Mt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,St,j]}],"font-family":[{font:[Lt,j,t]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,Mt]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...pe(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,jt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:de()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},xt,M,j],radial:[``,M,j],conic:[xt,M,j]},Bt,Pt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":D()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...pe(),`hidden`,`none`]}],"divide-style":[{divide:[...pe(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...pe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,It,jt]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,Vt,Ft]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Vt,Ft]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,jt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Vt,Ft]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...me(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:he()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Vt,Ft]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":[`scale-3d`],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":[`translate-none`],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,It,jt,Mt]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Qt=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>($t(e,`cacheSize`,t),$t(e,`prefix`,n),$t(e,`experimentalParseClassName`,r),en(e.theme,a.theme),en(e.classGroups,a.classGroups),en(e.conflictingClassGroups,a.conflictingClassGroups),en(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),$t(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),tn(e.theme,i.theme),tn(e.classGroups,i.classGroups),tn(e.conflictingClassGroups,i.conflictingClassGroups),tn(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),nn(e,i,`orderSensitiveModifiers`),e),$t=(e,t,n)=>{n!==void 0&&(e[t]=n)},en=(e,t)=>{if(t)for(let n in t)$t(e,n,t[n])},tn=(e,t)=>{if(t)for(let n in t)nn(e,t,n)},nn=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},rn=(e,...t)=>typeof e==`function`?ut(Zt,e,...t):ut(()=>Qt(Zt(),e),...t),an=ut(Zt),on=[];function sn(e){let t=on.filter(t=>t.component===e.component&&(t.theme===e.theme||t.theme===void 0)).find(t=>t.target?.prop===e.target?.prop&&t.target?.value===e.target?.value)??null;return t===null?on.push(e):on.splice(on.indexOf(t),1,e),e}function N(e,t,n){return on.filter(e=>e.theme===t||e.theme===void 0).filter(t=>t.component===e).filter(e=>e.target===void 0||n[e.target.prop]===e.target.value).map(e=>e.config).reduce((e,t)=>{for(let n in t)n in e?e[n]+=` ${t[n]}`:e[n]=t[n];return e},{})}var cn=rn({extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}});function P(...e){return cn(e.filter(Boolean).join(` `))}function ln(...e){let t=e.filter(Boolean);if(t.length===0)return{};if(t.length===1)return t[0];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);let r={};for(let e of n){let n=t.map(t=>t[e]).filter(e=>e!=null);if(n.length!==0)if(n.every(e=>typeof e==`string`))r[e]=P(...n);else{let t=n.filter(e=>typeof e==`object`);t.length>0?r[e]=ln(...t):r[e]=n.at(-1)}}return r}var F,I=c((()=>{F=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n}})),un=l({default:()=>mn});function dn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M11 7V11M11 15H11.01M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fn,pn,mn,hn=c((()=>{I(),fn={},pn={width:`100%`,height:`100%`,viewBox:`0 0 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mn=F(fn,[[`render`,dn]])})),gn=l({default:()=>bn});function _n(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M11.9998 8.99999V13M11.9998 17H12.0098M10.6151 3.89171L2.39019 18.0983C1.93398 18.8863 1.70588 19.2803 1.73959 19.6037C1.769 19.8857 1.91677 20.142 2.14613 20.3088C2.40908 20.5 2.86435 20.5 3.77487 20.5H20.2246C21.1352 20.5 21.5904 20.5 21.8534 20.3088C22.0827 20.142 22.2305 19.8857 22.2599 19.6037C22.2936 19.2803 22.0655 18.8863 21.6093 18.0983L13.3844 3.89171C12.9299 3.10654 12.7026 2.71396 12.4061 2.58211C12.1474 2.4671 11.8521 2.4671 11.5935 2.58211C11.2969 2.71396 11.0696 3.10655 10.6151 3.89171Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vn,yn,bn,xn=c((()=>{I(),vn={},yn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},bn=F(vn,[[`render`,_n]])})),Sn=l({default:()=>En});function Cn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Tn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 5V19M12 19L19 12M12 19L5 12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wn,Tn,En,Dn=c((()=>{I(),wn={},Tn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},En=F(wn,[[`render`,Cn]])})),On=l({default:()=>Mn});function kn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,jn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M19 12H5M5 12L12 19M5 12L12 5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var An,jn,Mn,Nn=c((()=>{I(),An={},jn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mn=F(An,[[`render`,kn]])})),Pn=l({default:()=>Rn});function Fn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ln,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5 12H19M19 12L12 5M19 12L12 19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var In,Ln,Rn,zn=c((()=>{I(),In={},Ln={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Rn=F(In,[[`render`,Fn]])})),Bn=l({default:()=>Wn});function Vn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Un,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 19V5M12 5L5 12M12 5L19 12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hn,Un,Wn,Gn=c((()=>{I(),Hn={},Un={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wn=F(Hn,[[`render`,Vn]])})),Kn=l({default:()=>Xn});function qn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Yn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M21 10H3M16 2V6M8 2V6M7.8 22H16.2C17.8802 22 18.7202 22 19.362 21.673C19.9265 21.3854 20.3854 20.9265 20.673 20.362C21 19.7202 21 18.8802 21 17.2V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Jn,Yn,Xn,Zn=c((()=>{I(),Jn={},Yn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Xn=F(Jn,[[`render`,qn]])})),Qn=l({default:()=>nr});function $n(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,tr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M20 6L9 17L4 12`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var er,tr,nr,rr=c((()=>{I(),er={},tr={xmlns:`http://www.w3.org/2000/svg`,width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`},nr=F(er,[[`render`,$n]])})),ir=l({default:()=>cr});function ar(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,sr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var or,sr,cr,lr=c((()=>{I(),or={},sr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},cr=F(or,[[`render`,ar]])})),ur=l({default:()=>mr});function dr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M15 18L9 12L15 6`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fr,pr,mr,hr=c((()=>{I(),fr={},pr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mr=F(fr,[[`render`,dr]])})),gr=l({default:()=>br});function _r(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M18 17L13 12L18 7M11 17L6 12L11 7`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vr,yr,br,xr=c((()=>{I(),vr={},yr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},br=F(vr,[[`render`,_r]])})),Sr=l({default:()=>Er});function Cr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Tr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M9 18L15 12L9 6`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wr,Tr,Er,Dr=c((()=>{I(),wr={},Tr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Er=F(wr,[[`render`,Cr]])})),Or=l({default:()=>Mr});function kr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,jr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M6 17L11 12L6 7M13 17L18 12L13 7`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ar,jr,Mr,Nr=c((()=>{I(),Ar={},jr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mr=F(Ar,[[`render`,kr]])})),Pr=l({default:()=>Rr});function Fr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Lr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M18 6L6 18M6 6L18 18`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ir,Lr,Rr,zr=c((()=>{I(),Ir={},Lr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Rr=F(Ir,[[`render`,Fr]])})),Br=l({default:()=>Wr});function Vr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ur,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M2.42012 12.7132C2.28394 12.4975 2.21584 12.3897 2.17772 12.2234C2.14909 12.0985 2.14909 11.9015 2.17772 11.7766C2.21584 11.6103 2.28394 11.5025 2.42012 11.2868C3.54553 9.50484 6.8954 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7766C21.8517 11.9015 21.8517 12.0985 21.8231 12.2234C21.785 12.3897 21.7169 12.4975 21.5807 12.7132C20.4553 14.4952 17.1054 19 12.0004 19C6.8954 19 3.54553 14.4952 2.42012 12.7132Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),(0,t.createElementVNode)(`path`,{d:`M12.0004 15C13.6573 15 15.0004 13.6569 15.0004 12C15.0004 10.3431 13.6573 9 12.0004 9C10.3435 9 9.0004 10.3431 9.0004 12C9.0004 13.6569 10.3435 15 12.0004 15Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hr,Ur,Wr,Gr=c((()=>{I(),Hr={},Ur={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wr=F(Hr,[[`render`,Vr]])})),Kr=l({default:()=>Xr});function qr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Yr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M10.7429 5.09232C11.1494 5.03223 11.5686 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7767C21.8518 11.9016 21.8517 12.0987 21.8231 12.2236C21.7849 12.3899 21.7164 12.4985 21.5792 12.7156C21.2793 13.1901 20.8222 13.8571 20.2165 14.5805M6.72432 6.71504C4.56225 8.1817 3.09445 10.2194 2.42111 11.2853C2.28428 11.5019 2.21587 11.6102 2.17774 11.7765C2.1491 11.9014 2.14909 12.0984 2.17771 12.2234C2.21583 12.3897 2.28393 12.4975 2.42013 12.7132C3.54554 14.4952 6.89541 19 12.0004 19C14.0588 19 15.8319 18.2676 17.2888 17.2766M3.00042 3L21.0004 21M9.8791 9.87868C9.3362 10.4216 9.00042 11.1716 9.00042 12C9.00042 13.6569 10.3436 15 12.0004 15C12.8288 15 13.5788 14.6642 14.1217 14.1213`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Jr,Yr,Xr,Zr=c((()=>{I(),Jr={},Yr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Xr=F(Jr,[[`render`,qr]])})),Qr=l({default:()=>ni});function $r(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ti,[...n[0]||=[(0,t.createElementVNode)(`g`,{"clip-path":`url(#clip0_5570_1431)`},[(0,t.createElementVNode)(`path`,{d:`M7.99967 10.6667V8.00004M7.99967 5.33337H8.00634M14.6663 8.00004C14.6663 11.6819 11.6816 14.6667 7.99967 14.6667C4.31778 14.6667 1.33301 11.6819 1.33301 8.00004C1.33301 4.31814 4.31778 1.33337 7.99967 1.33337C11.6816 1.33337 14.6663 4.31814 14.6663 8.00004Z`,stroke:`currentColor`,"stroke-width":`1.3`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]])}var ei,ti,ni,ri=c((()=>{I(),ei={},ti={width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ni=F(ei,[[`render`,$r]])})),ii=l({default:()=>ci});function ai(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,si,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5 12H19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var oi,si,ci,li=c((()=>{I(),oi={},si={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ci=F(oi,[[`render`,ai]])})),ui=l({default:()=>mi});function di(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pi,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 5V19M5 12H19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fi,pi,mi,hi=c((()=>{I(),fi={},pi={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mi=F(fi,[[`render`,di]])})),gi=l({default:()=>bi});function _i(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yi,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M21 21L17.5001 17.5M20 11.5C20 16.1944 16.1944 20 11.5 20C6.80558 20 3 16.1944 3 11.5C3 6.80558 6.80558 3 11.5 3C16.1944 3 20 6.80558 20 11.5Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vi,yi,bi,xi=c((()=>{I(),vi={},yi={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},bi=F(vi,[[`render`,_i]])})),Si=l({default:()=>Ei});function Ci(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ti,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M7 15L12 20L17 15M7 9L12 4L17 9`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wi,Ti,Ei,Di=c((()=>{I(),wi={},Ti={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Ei=F(wi,[[`render`,Ci]])})),Oi=l({default:()=>Mi});function ki(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ji,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M4.5 22V17M4.5 7V2M2 4.5H7M2 19.5H7M13 3L11.2658 7.50886C10.9838 8.24209 10.8428 8.60871 10.6235 8.91709C10.4292 9.1904 10.1904 9.42919 9.91709 9.62353C9.60871 9.84281 9.24209 9.98381 8.50886 10.2658L4 12L8.50886 13.7342C9.24209 14.0162 9.60871 14.1572 9.91709 14.3765C10.1904 14.5708 10.4292 14.8096 10.6235 15.0829C10.8428 15.3913 10.9838 15.7579 11.2658 16.4911L13 21L14.7342 16.4911C15.0162 15.7579 15.1572 15.3913 15.3765 15.0829C15.5708 14.8096 15.8096 14.5708 16.0829 14.3765C16.3913 14.1572 16.7579 14.0162 17.4911 13.7342L22 12L17.4911 10.2658C16.7579 9.98381 16.3913 9.8428 16.0829 9.62353C15.8096 9.42919 15.5708 9.1904 15.3765 8.91709C15.1572 8.60871 15.0162 8.24209 14.7342 7.50886L13 3Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ai,ji,Mi,Ni=c((()=>{I(),Ai={},ji={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mi=F(Ai,[[`render`,ki]])})),Pi=l({default:()=>Ri});function Fi(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Li,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M17 4V20M17 20L13 16M17 20L21 16M7 20V4M7 4L3 8M7 4L11 8`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ii,Li,Ri,zi=c((()=>{I(),Ii={},Li={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Ri=F(Ii,[[`render`,Fi]])})),Bi=l({default:()=>Wi});function Vi(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ui,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M8.60886 11.3333H13.3915M8.60886 11.3333L7.3335 14M8.60886 11.3333L10.519 7.33935C10.6729 7.01751 10.7499 6.8566 10.8552 6.80575C10.9468 6.76152 11.0535 6.76152 11.1451 6.80575C11.2504 6.8566 11.3274 7.01751 11.4813 7.33935L13.3915 11.3333M13.3915 11.3333L14.6668 14M1.3335 3.33333H5.3335M5.3335 3.33333H7.66683M5.3335 3.33333V2M7.66683 3.33333H9.3335M7.66683 3.33333C7.33607 5.30486 6.56855 7.09079 5.44386 8.58962M6.66683 9.33333C6.25848 9.14987 5.84193 8.89472 5.44386 8.58962M5.44386 8.58962C4.54218 7.89851 3.73534 6.95109 3.3335 6M5.44386 8.58962C4.37407 10.0153 2.98112 11.1812 1.3335 12`,stroke:`currentColor`,"stroke-width":`0.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hi,Ui,Wi,Gi=c((()=>{I(),Hi={},Ui={width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wi=F(Hi,[[`render`,Vi]])})),Ki={alertCircle:Promise.resolve().then(()=>(hn(),un)),alertTriangle:Promise.resolve().then(()=>(xn(),gn)),arrowDown:Promise.resolve().then(()=>(Dn(),Sn)),arrowLeft:Promise.resolve().then(()=>(Nn(),On)),arrowRight:Promise.resolve().then(()=>(zn(),Pn)),arrowUp:Promise.resolve().then(()=>(Gn(),Bn)),calendarIcon:Promise.resolve().then(()=>(Zn(),Kn)),check:Promise.resolve().then(()=>(rr(),Qn)),checkCircle:Promise.resolve().then(()=>(lr(),ir)),chevronLeft:Promise.resolve().then(()=>(hr(),ur)),chevronLeftDouble:Promise.resolve().then(()=>(xr(),gr)),chevronRight:Promise.resolve().then(()=>(Dr(),Sr)),chevronRightDouble:Promise.resolve().then(()=>(Nr(),Or)),close:Promise.resolve().then(()=>(zr(),Pr)),eye:Promise.resolve().then(()=>(Gr(),Br)),eyeOff:Promise.resolve().then(()=>(Zr(),Kr)),infoCircle:Promise.resolve().then(()=>(ri(),Qr)),minus:Promise.resolve().then(()=>(li(),ii)),plus:Promise.resolve().then(()=>(hi(),ui)),search:Promise.resolve().then(()=>(xi(),gi)),selectIconRight:Promise.resolve().then(()=>(Di(),Si)),stars:Promise.resolve().then(()=>(Ni(),Oi)),switchVertical:Promise.resolve().then(()=>(zi(),Pi)),translate:Promise.resolve().then(()=>(Gi(),Bi))};function qi(e){Object.assign(Ki,e)}var Ji=(0,t.defineComponent)({__name:`AsyncIcon`,props:{icon:{}},setup(e){let n=e,r=(0,t.computed)(()=>(0,t.defineAsyncComponent)(()=>Ki[n.icon]));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.value)))}}),Yi={"aria-hidden":`true`},L=(0,t.defineComponent)({__name:`Icon`,props:{icon:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yi,[((0,t.openBlock)(),(0,t.createBlock)(t.Suspense,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ji,{icon:n.icon},null,8,[`icon`])]),_:1}))]))}});function R(e){let n=Symbol(e);function r(e){return(0,t.provide)(n,e),e}function i(r){let i=(0,t.inject)(n,r??void 0);if(i===void 0&&r===void 0)throw Error(`${e} context is not provided.`);return i??null}return[r,i]}var[Xi,z]=R(`selectContext`),Zi=(0,t.defineComponent)({__name:`SelectItemIndicator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=z();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxItemIndicator),null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(a).itemIndicator({class:(0,t.unref)(P)((0,t.unref)(i).itemIndicator,(0,t.unref)(r)?.itemIndicator)})),icon:`check`},null,8,[`class`])])]),_:3}))}}),[Qi,$i]=R(`selectGroupContext`),B=(0,t.defineComponent)({__name:`TestIdProvider`,props:{testId:{},as:{default:null}},setup(e){let r=e;return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.as===null,as:r.as??void 0,"data-test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-test-id`]))}}),ea=(0,t.defineComponent)({__name:`SelectItem`,props:{isDisabled:{type:Boolean,default:!1},value:{},testId:{default:null}},setup(e){let r=e,{allGroups:i,allItems:a,classConfig:o,customClassConfig:s,filteredItems:c,remainOpenOnSelect:l,setIsDropdownVisible:u,style:d,virtualList:f,onSelectItem:p}=z(),m=$i(null),h=(0,t.useId)();function g(e){let t=e.target.attributes.getNamedItem(`aria-selected`);return t===null?!1:t.value===`true`}function _(e){g(e)&&!l.value&&u(!1),p()}return(0,t.onMounted)(()=>{if(a.value.set(h,r.value),m===null)return;let{id:e}=m,t=i.value.get(e)??null;if(t===null){i.value.set(e,new Set([h]));return}t.add(h)}),(0,t.onBeforeUnmount)(()=>{a.value.delete(h)}),(e,i)=>(0,t.unref)(c).has((0,t.unref)(h))||(0,t.unref)(f)?.isEnabled?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ListboxItem),{value:r.value,disabled:r.isDisabled,class:(0,t.normalizeClass)((0,t.unref)(d).item({class:(0,t.unref)(P)((0,t.unref)(s).item,(0,t.unref)(o)?.item)})),onSelect:_},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`indicator`,{},()=>[(0,t.createVNode)(Zi)])]),_:3},8,[`value`,`disabled`,`class`])]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)}}),[ta,na]=R(`formFieldContext`),ra=[`id`],ia=(0,t.defineComponent)({__name:`FormFieldError`,setup(e){let{isTouched:n,classConfig:i,customClassConfig:a,errorMessage:o,for:s,style:c}=na();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)!==null&&(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{height:0,opacity:0,filter:`blur(4px)`},animate:{height:`auto`,opacity:1,filter:`blur(0)`},exit:{height:0,opacity:0,filter:`blur(4px)`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(c).error({class:(0,t.unref)(P)((0,t.unref)(a).error,(0,t.unref)(i)?.error)}))},[(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(c).errorIcon({class:(0,t.unref)(P)((0,t.unref)(a).errorIcon,(0,t.unref)(i)?.errorIcon)})),icon:`alertTriangle`},null,8,[`class`]),(0,t.createElementVNode)(`span`,{id:`${(0,t.unref)(s)}-error`,"aria-live":`assertive`,role:`alert`},(0,t.toDisplayString)((0,t.unref)(o)),9,ra)],2)])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),aa=[`id`],oa=(0,t.defineComponent)({__name:`FormFieldHint`,setup(e){let{isTouched:n,classConfig:r,customClassConfig:i,errorMessage:a,for:o,hint:s,style:c}=na(),l=(0,t.computed)(()=>n.value&&a.value!==null);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.unref)(s)!==null&&!l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,id:`${(0,t.unref)(o)}-hint`,class:(0,t.normalizeClass)((0,t.unref)(c).hint({class:(0,t.unref)(P)((0,t.unref)(i).hint,(0,t.unref)(r)?.hint)})),role:`alert`},(0,t.toDisplayString)((0,t.unref)(s)),11,aa)):(0,t.createCommentVNode)(``,!0)]))}}),sa={class:`flex items-center`},ca=[`for`],la=(0,t.defineComponent)({__name:`FormFieldLabel`,setup(e){let{isRequired:n,classConfig:r,customClassConfig:i,for:a,label:o,style:s}=na();return(e,c)=>(0,t.unref)(o)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(s).labelContainer({class:(0,t.unref)(P)((0,t.unref)(i).labelContainer,(0,t.unref)(r)?.labelContainer)}))},[(0,t.createElementVNode)(`div`,sa,[(0,t.renderSlot)(e.$slots,`leading`),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)((0,t.unref)(s).label({class:(0,t.unref)(P)((0,t.unref)(i).label,(0,t.unref)(r)?.label)})),for:(0,t.unref)(a)},[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(o))+` `,1),(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(s).asterisk({class:(0,t.unref)(P)((0,t.unref)(i).asterisk,(0,t.unref)(r)?.asterisk)}))},`*`,2)):(0,t.createCommentVNode)(``,!0)],10,ca),(0,t.renderSlot)(e.$slots,`trailing`)]),(0,t.renderSlot)(e.$slots,`right`)],2))}}),ua=/\s+/g,da=e=>typeof e!=`string`||!e?e:e.replace(ua,` `).trim(),fa=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?da(t.join(` `)):void 0},pa=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,V=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},ma=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},ha=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=fa(e[n],r):e[n]=r}return e},ga=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ga(r,t):r&&t.push(r)}},_a=(...e)=>{let t=[];ga(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},va=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=_a(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=va(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},ya={twMerge:!0,twMergeConfig:{}};function ba(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var xa=ba(),Sa=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...ya,...n},u=r?.base?fa(r.base,t?.base):t?.base,d=r?.variants&&!V(r.variants)?va(a,r.variants):a,f=r?.defaultVariants&&!V(r.defaultVariants)?{...r.defaultVariants,...c}:c;!V(l.twMergeConfig)&&!ma(l.twMergeConfig,xa.cachedTwMergeConfig)&&(xa.didTwMergeConfigChange=!0,xa.cachedTwMergeConfig=l.twMergeConfig);let p=V(r?.slots),m=V(i)?{}:{base:fa(t?.base,p&&r?.base),...i},h=p?m:ha({...r?.slots},V(m)?{base:t?.base}:m),g=V(r?.compoundVariants)?o:_a(r?.compoundVariants,o),_=t=>{if(V(d)&&V(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||V(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=pa(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??pa(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!V(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!V(i)||!p){let t={};if(typeof h==`object`&&!V(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?va(e,r):e)}},Ca=e=>V(e)?an:rn({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),wa=(e,t)=>{let n=fa(e);return!n||!(t?.twMerge??!0)?n:((!xa.cachedTwMerge||xa.didTwMergeConfigChange)&&(xa.didTwMergeConfigChange=!1,xa.cachedTwMerge=Ca(xa.cachedTwMergeConfig)),xa.cachedTwMerge(n)||void 0)},{createTV:Ta,tv:Ea}=Sa((...e)=>t=>wa(e,t)),H=Ta({twMerge:!0,twMergeConfig:{extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}}}),U=class{classes=[];with(e){return this.classes.push(e),this}build(){return this.classes.join(` `)}withBackgroundColor(e){return this.with(e),this}withBase(e){return this.classes.push(e),this}withBorder(e){return this.with(e),this}withBorderRadius(e){return this.with(e),this}withClasses(e){return this.with(e),this}withColor(e){return this.with(e),this}withCursor(e){return this.with(e),this}withFlex(e){return this.with(e),this}withFontColor(e){return this.with(e),this}withFontSize(e){return this.with(e),this}withFontWeight(e){return this.with(e),this}withGap(e){return this.with(e),this}withGrid(e){return this.with(e),this}withHeight(e){return this.with(e),this}withLeading(e){return this.with(e),this}withMargin(e){return this.with(e),this}withOutline(e){return this.with(e),this}withPadding(e){return this.with(e),this}withPlaceholderColor(e){return this.with(e),this}withRing(e){return this.with(e),this}withShadow(e){return this.with(e),this}withSize(e){return this.with(e),this}withSpacing(e){return this.with(e),this}withTransition(e){return this.with(e),this}withTranslate(e){return this.with(e),this}withZIndex(e){return this.with(e),this}},Da=H({slots:{asterisk:new U().withColor(`text-error-primary`).build(),error:new U().withFlex(`flex items-center gap-x-md`).withColor(`text-error-primary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).withSpacing(`group-data-[layout=vertical]/form-field:pt-sm group-data-[layout=horizontal]/form-field:!pt-0`).build(),errorIcon:new U().withSize(`size-4`).build(),hint:new U().withBase(`inline-block`).withColor(`text-tertiary`).withFontSize(`text-sm`).withSpacing(`group-data-[layout=vertical]/form-field:pt-sm group-data-[layout=horizontal]/form-field:!pt-0`).build(),label:new U().withBase(`inline-block`).withFontSize(`text-sm`).withColor(`text-secondary`).withFontWeight(`font-medium`).build(),labelContainer:new U().withBase(`flex items-center justify-between`).withSpacing(`group-data-[layout=vertical]/form-field:pb-sm group-data-[layout=horizontal]/form-field:!pb-0`).build(),root:new U().withBase(`group/form-field`).withGrid(`data-[layout=horizontal]:grid data-[layout=horizontal]:grid-cols-[auto_auto] gap-x-md items-center justify-start`).build()},variants:{variant:{}}}),Oa=Symbol(`themeProviderContextKey`);function ka(e){(0,t.provide)(Oa,e)}function W(){let e=(0,t.inject)(Oa,null);return e===null?{appearance:(0,t.computed)(()=>`light`),theme:(0,t.computed)(()=>`default`)}:e}function G(e){let n={};for(let r in e){if(typeof e[r]==`function`){n[r]=e[r];continue}n[r]=(0,t.computed)(()=>e[r])}return n}var Aa=[`data-layout`],ja=(0,t.defineComponent)({__name:`FormFieldRoot`,props:{for:{},layout:{default:`vertical`},variant:{default:null},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),i=(0,t.computed)(()=>Da({variant:n.variant??void 0})),a=(0,t.computed)(()=>N(`formField`,r.value,{variant:n.variant}));return ta({...G(n),customClassConfig:a,style:i}),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-layout":n.layout,class:(0,t.normalizeClass)(i.value.root({class:(0,t.unref)(P)(a.value.root,n.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`)],10,Aa))}}),Ma=(0,t.defineComponent)({__name:`FormField`,props:{for:{},layout:{default:`vertical`},variant:{},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(ja,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[n.layout===`vertical`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,`label`,{},()=>[(0,t.createVNode)(la)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`error`,{},()=>[(0,t.createVNode)(ia)]),(0,t.renderSlot)(e.$slots,`hint`,{},()=>[(0,t.createVNode)(oa)])],64)):(0,t.createCommentVNode)(``,!0),n.layout===`horizontal`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`label`,{},()=>[(0,t.createVNode)(la)]),r[0]||=(0,t.createElementVNode)(`span`,null,null,-1),(0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(e.$slots,`error`,{},()=>[(0,t.createVNode)(ia)]),(0,t.renderSlot)(e.$slots,`hint`,{},()=>[(0,t.createVNode)(oa)])])],64)):(0,t.createCommentVNode)(``,!0)]),_:3},16))}}),Na=(0,t.defineComponent)({__name:`SelectBaseInlineSearch`,setup(e){let{id:r,hasInteractedWithInlineSearchInput:i,isDisabled:a,classConfig:o,customClassConfig:s,inlinesearchInputElementRef:c,placeholder:l,searchInputPlaceholder:u,searchTerm:d,setIsDropdownVisible:f,style:p}=z(),m=(0,t.ref)();function h(){i.value=!0,g()}function g(){f(!0)}return(0,t.onMounted)(()=>{c.value=m.value?.$el??null}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxFilter),{id:(0,t.unref)(r),ref_key:`listboxFilterRef`,ref:m,modelValue:(0,t.unref)(d),"onUpdate:modelValue":i[0]||=e=>(0,t.isRef)(d)?d.value=e:null,disabled:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(p).inlineSearchInput({class:(0,t.unref)(P)((0,t.unref)(s).inlineSearchInput,(0,t.unref)(o)?.inlineSearchInput)})),placeholder:(0,t.unref)(l)??(0,t.unref)(u),"aria-autocomplete":`list`,role:`combobox`,autocomplete:`false`,onInput:h,onKeydown:(0,t.withKeys)((0,t.withModifiers)(g,[`prevent`]),[`up`,`down`])},null,8,[`id`,`modelValue`,`disabled`,`class`,`placeholder`,`onKeydown`]))}}),[Pa,Fa]=R(`badgeContext`),Ia=(0,t.defineComponent)({__name:`BadgeIcon`,setup(e){let{classConfig:n,customClassConfig:r,icon:i,style:a}=Fa();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).icon({class:(0,t.unref)(P)((0,t.unref)(r).icon,(0,t.unref)(n)?.icon)}))},null,8,[`icon`,`class`]))}}),[La,Ra]=R(`iconButtonContext`),za=(0,t.defineComponent)({__name:`IconButtonIcon`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,icon:a,style:o}=Ra();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300`,"leave-active-class":`duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).icon({class:(0,t.unref)(P)((0,t.unref)(i).icon,(0,t.unref)(r)?.icon)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)]),_:1}))}});I();var Ba={},Va={viewBox:`25 25 50 50`,"aria-hidden":`true`,class:`animate-spinner`};function Ha(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Va,[...n[0]||=[(0,t.createElementVNode)(`circle`,{class:`size-full animate-spinner-path`,cx:`100%`,cy:`100%`,fill:`none`,r:`20`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`4`,"stroke-dasharray":`1, 200`,"stroke-dashoffset":`0`,"stroke-linecap":`round`},null,-1)]])}var Ua=F(Ba,[[`render`,Ha]]),Wa={class:`sr-only`},Ga=(0,t.defineComponent)({__name:`IconButtonLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Ra(),{t:s}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`absolute duration-300`,"leave-active-class":`absolute duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Wa,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua)])],2)):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Ka=H({slots:{root:new U().withBase(`group/button whitespace-nowrap overflow-hidden relative`).withOutline(`focus-visible:outline-2 outline-offset-2 outline-brand-600`).withBorder(`border border-solid`).withBorderRadius(`rounded-md`).withCursor(`cursor-pointer disabled:cursor-not-allowed data-[loading=true]:cursor-not-allowed`).withTransition(`duration-100 data-[loading=false]:not-disabled:active:scale-99`).build()},variants:{variant:{"destructive-primary":{root:new U().withColor(`text-white disabled:text-fg-disabled`).withBackgroundColor(`bg-error-solid disabled:bg-disabled`).withBorder(`border-error-600 disabled:border-disabled-subtle`).withOutline(`outline-error-600`).withTransition(`data-[loading=false]:not-disabled:hover:brightness-95 data-[loading=false]:not-disabled:active:brightness-90`).build()},"destructive-secondary":{root:new U().withColor(`text-error-primary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-error-primary data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-error-primary`).withBorder(`border-error-subtle disabled:border-disabled-subtle`).withOutline(`outline-error-600`).build()},"destructive-tertiary":{root:new U().withColor(`text-error-primary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-error-primary data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-error-primary`).withBorder(`border-transparent`).withOutline(`outline-error-600`).build()},primary:{root:new U().withColor(`text-white disabled:text-fg-disabled`).withBackgroundColor(`bg-brand-solid disabled:bg-disabled`).withBorder(`border-brand-600 disabled:border-disabled-subtle`).withTransition(`data-[loading=false]:not-disabled:hover:brightness-95 data-[loading=false]:not-disabled:active:brightness-90`).build()},secondary:{root:new U().withColor(`text-secondary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-primary-hover data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-primary-hover`).withBorder(`border-primary disabled:border-disabled-subtle`).build()},tertiary:{root:new U().withColor(`text-tertiary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-primary-hover data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-primary-hover`).withBorder(`border-transparent`).build()}},size:{"2xl":{root:new U().withHeight(`h-15`).withBorderRadius(`rounded-lg`).build()},lg:{root:new U().withHeight(`h-11`).build()},md:{root:new U().withHeight(`h-10`).build()},sm:{root:new U().withHeight(`h-9`).build()},xl:{root:new U().withHeight(`h-12`).build()}}}}),qa=H({extend:Ka,slots:{contentContainer:``,icon:``,loader:``,root:new U().withFlex(`flex items-center justify-center`).build()},variants:{size:{"2xl":{icon:new U().withSize(`size-6`).build(),loader:new U().withSize(`size-6`).build(),root:new U().withSize(`w-15`).build()},lg:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-11`).build()},md:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-10`).build()},sm:{icon:new U().withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withSize(`w-9`).build()},xl:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-12`).build()}}}}),K=(0,t.defineComponent)({__name:`InteractableElement`,props:{isDisabled:{type:Boolean},as:{default:null}},setup(e){let r=e;return(i,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.as===null,as:r.as??void 0,disabled:e.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,`default`)]),_:3},8,[`as-child`,`as`,`disabled`]))}}),Ja={class:`sr-only`},Ya=(0,t.defineComponent)({__name:`IconButtonRoot`,props:{icon:{},label:{},size:{default:`md`},variant:{default:`primary`},isLoading:{type:Boolean,default:!1},type:{default:`button`},testId:{default:null},isDisabled:{type:Boolean,default:!1},classConfig:{default:null}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>qa({size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`iconButton`,a.value,{size:r.size,variant:r.variant}));function c(e){r.isLoading||i(`click`,e)}return La({...G(r),customClassConfig:s,style:o}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled,"aria-disabled":r.isLoading,"aria-busy":r.isLoading,type:r.type,"data-loading":r.isLoading,class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),as:`button`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Ja,(0,t.toDisplayString)(r.label),1),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`,`aria-disabled`,`aria-busy`,`type`,`data-loading`,`class`])]),_:3},8,[`test-id`]))}}),q=(0,t.defineComponent)({__name:`IconButton`,props:{icon:{},label:{},size:{},variant:{},isLoading:{type:Boolean},type:{},testId:{},isDisabled:{type:Boolean},classConfig:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ya,(0,t.mergeProps)(r,{onClick:n[0]||=e=>i(`click`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon`,{},()=>[(0,t.createVNode)(za)]),(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(Ga)])]),_:3},16))}}),Xa=(0,t.defineComponent)({__name:`BadgeRemoveButton`,setup(e){let{isRemovable:n,classConfig:r,customClassConfig:a,onRemove:o}=Fa(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(q,{key:0,label:(0,t.unref)(s)(`shared.remove`),"class-config":(0,t.unref)(ln)({root:`size-4 text-inherit !bg-inherit hover:brightness-97 outline-inherit`,icon:`size-3.5`},(0,t.unref)(a).removeButton,(0,t.unref)(r)?.removeButton),variant:`tertiary`,icon:`close`,onClick:(0,t.unref)(o)},null,8,[`label`,`class-config`,`onClick`])):(0,t.createCommentVNode)(``,!0)}}),Za=H({slots:{icon:new U().withSize(`size-4`).build(),root:new U().withBase(`group/badge`).withFlex(`inline-flex items-center`).withBorder(`border border-solid`).withBorderRadius(`rounded-full`).withFontWeight(`font-medium`).build()},variants:{variant:{outline:{},solid:{},translucent:{}},color:{brand:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-brand-700`).withColor(`data-[variant=solid]:text-primary-on-brand`).withBorder(`data-[variant=solid]:border-brand-700`).withBackgroundColor(`data-[variant=translucent]:bg-brand-25 data-[variant=translucent]:dark:bg-brand-950`).withColor(`data-[variant=translucent]:text-brand-700 data-[variant=translucent]:dark:text-brand-200`).withBorder(`data-[variant=translucent]:border-brand-200 data-[variant=translucent]:dark:border-brand-800`).withColor(`data-[variant=outline]:text-brand-700 data-[variant=outline]:dark:text-brand-300`).withBorder(`data-[variant=outline]:border-brand-400 data-[variant=outline]:dark:border-brand-600`).build()},error:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-error-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-error-700`).withBackgroundColor(`data-[variant=translucent]:bg-error-25 data-[variant=translucent]:dark:bg-error-950`).withColor(`data-[variant=translucent]:text-error-700 data-[variant=translucent]:dark:text-error-200`).withBorder(`data-[variant=translucent]:border-error-200 data-[variant=translucent]:dark:border-error-800`).withColor(`data-[variant=outline]:text-error-700 data-[variant=outline]:dark:text-error-300`).withBorder(`data-[variant=outline]:border-error-400 data-[variant=outline]:dark:border-error-600`).build()},gray:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-gray-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-gray-700`).withBackgroundColor(`data-[variant=translucent]:bg-gray-25 data-[variant=translucent]:dark:bg-gray-950`).withColor(`data-[variant=translucent]:text-gray-700 data-[variant=translucent]:dark:text-gray-200`).withBorder(`data-[variant=translucent]:border-gray-200 data-[variant=translucent]:dark:border-gray-800`).withColor(`data-[variant=outline]:text-gray-700 data-[variant=outline]:dark:text-gray-300`).withBorder(`data-[variant=outline]:border-gray-400 data-[variant=outline]:dark:border-gray-600`).build()},success:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-success-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-success-700`).withBackgroundColor(`data-[variant=translucent]:bg-success-25 data-[variant=translucent]:dark:bg-success-950`).withColor(`data-[variant=translucent]:text-success-700 data-[variant=translucent]:dark:text-success-200`).withBorder(`data-[variant=translucent]:border-success-200 data-[variant=translucent]:dark:border-success-800`).withColor(`data-[variant=outline]:text-success-700 data-[variant=outline]:dark:text-success-300`).withBorder(`data-[variant=outline]:border-success-400 data-[variant=outline]:dark:border-success-600`).build()},warning:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-warning-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-warning-700`).withBackgroundColor(`data-[variant=translucent]:bg-warning-25 data-[variant=translucent]:dark:bg-warning-950`).withColor(`data-[variant=translucent]:text-warning-700 data-[variant=translucent]:dark:text-warning-200`).withBorder(`data-[variant=translucent]:border-warning-200 data-[variant=translucent]:dark:border-warning-800`).withColor(`data-[variant=outline]:text-warning-700 data-[variant=outline]:dark:text-warning-300`).withBorder(`data-[variant=outline]:border-warning-400 data-[variant=outline]:dark:border-warning-600`).build()}},size:{lg:{root:new U().withFlex(`gap-x-sm`).withPadding(`px-lg py-xs data-icon:pl-md data-removable:pr-sm`).withFontSize(`text-sm`).build()},md:{root:new U().withFlex(`gap-x-sm`).withPadding(`px-2.5 py-xxs data-icon:pl-sm data-removable:pr-sm`).withFontSize(`text-sm`).build()},sm:{root:new U().withFlex(`gap-x-xs`).withPadding(`px-md py-xxs data-icon:pl-xs data-removable:pr-xs`).withFontSize(`text-xs`).build()}}}}),Qa=[`data-icon`,`data-removable`,`data-variant`],$a=(0,t.defineComponent)({__name:`BadgeRoot`,props:{isRemovable:{type:Boolean,default:!1},color:{},icon:{default:null},size:{default:`md`},variant:{},testId:{default:null},classConfig:{default:null}},emits:[`remove`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>Za({color:r.color,size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`badge`,a.value,{color:r.color,size:r.size,variant:r.variant}));function c(){i(`remove`)}return Pa({...G(r),customClassConfig:s,style:o,onRemove:c}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),"data-icon":r.icon!==null||void 0,"data-removable":r.isRemovable||void 0,"data-variant":r.variant},[(0,t.renderSlot)(e.$slots,`default`)],10,Qa)]),_:3},8,[`test-id`]))}}),eo=(0,t.defineComponent)({__name:`Badge`,props:{isRemovable:{type:Boolean},color:{},icon:{},size:{},variant:{},testId:{},classConfig:{}},emits:[`remove`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)($a,(0,t.mergeProps)(r,{onRemove:n[0]||=e=>i(`remove`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ia),(0,t.renderSlot)(e.$slots,`left`),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`right`),(0,t.createVNode)(Xa)]),_:3},16))}}),to=(0,t.defineComponent)({__name:`SelectPlaceholder`,setup(e){let{classConfig:n,customClassConfig:r,modelValue:i,placeholder:a,style:o}=z(),s=(0,t.computed)(()=>Array.isArray(i.value)?i.value.length===0:i.value===null);return(e,i)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).placeholder({class:(0,t.unref)(P)((0,t.unref)(r).placeholder,(0,t.unref)(n)?.placeholder)}))},(0,t.toDisplayString)((0,t.unref)(a)),3)):(0,t.createCommentVNode)(``,!0)}}),no={class:`whitespace-nowrap`},ro={class:`whitespace-nowrap`},io={class:`pl-xs text-sm font-medium text-secondary`},ao=(0,t.defineComponent)({__name:`SelectBaseMultiple`,setup(e){let{classConfig:n,customClassConfig:r,displayFn:i,modelValue:a,style:o}=z(),s=(0,t.ref)(null),c=(0,t.ref)(0),l=(0,t.ref)([]),u=(0,t.ref)(null),d=null,f=(0,t.computed)(()=>a.value),p=(0,t.computed)(()=>c.value===0?[]:f.value.filter((e,t)=>{if(l.value[t]===void 0)return!1;let n=l.value[t].getBoundingClientRect().width,r=u.value?.getBoundingClientRect().width??0;return n+l.value.slice(0,t).reduce((e,t)=>e+t.getBoundingClientRect().width,0)+r+10<=c.value})),m=(0,t.computed)(()=>f.value.length-p.value.length);return(0,t.onMounted)(()=>{s.value!==null&&(d=new ResizeObserver(()=>{c.value=s.value.getBoundingClientRect().width??0}),d.observe(s.value))}),(0,t.onBeforeUnmount)(()=>{d===null||s.value===null||(d.unobserve(s.value),d.disconnect())}),(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`tagContainerRef`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(o).baseMultiple({class:(0,t.unref)(P)((0,t.unref)(r).baseMultiple,(0,t.unref)(n)?.baseMultiple)}))},[(0,t.createVNode)(to,{class:`pl-sm`}),f.value.length>0?(0,t.renderSlot)(e.$slots,`default`,{key:0},()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(o).baseMultiple({class:(0,t.unref)(P)((0,t.unref)(r).baseMultiple,(0,t.unref)(n)?.baseMultiple)}),`invisible absolute`]),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:r,ref_for:!0,ref_key:`badgeWrapperRef`,ref:l},[(0,t.renderSlot)(e.$slots,`badge`,{value:n},()=>[(0,t.createVNode)(eo,{"class-config":{root:`rounded-md`},color:`gray`,variant:`translucent`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,no,(0,t.toDisplayString)((0,t.unref)(i)(n)),1)]),_:2},1024)])],512))),128))],2),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(p.value,(n,r)=>(0,t.renderSlot)(e.$slots,`badge`,{key:r,value:n},()=>[(0,t.createVNode)(eo,{"class-config":{root:`rounded-md`},color:`gray`,variant:`translucent`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ro,(0,t.toDisplayString)((0,t.unref)(i)(n)),1)]),_:2},1024)])),128)),m.value>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`moreTagsCountRef`,ref:u},[(0,t.createElementVNode)(`span`,io,` +`+(0,t.toDisplayString)(m.value),1)],512)):(0,t.createCommentVNode)(``,!0)]):(0,t.createCommentVNode)(``,!0)],2))}}),oo={class:`truncate`},so=(0,t.defineComponent)({__name:`SelectBaseSingle`,setup(e){let{classConfig:n,customClassConfig:r,displayFn:i,modelValue:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).baseSingle({class:(0,t.unref)(P)((0,t.unref)(r).baseSingle,(0,t.unref)(n)?.baseSingle)}))},[(0,t.createVNode)(to),(0,t.unref)(a)===null?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`default`,{key:0},()=>[(0,t.createElementVNode)(`span`,oo,(0,t.toDisplayString)((0,t.unref)(i)((0,t.unref)(a))),1),(0,t.renderSlot)(e.$slots,`right`)])],2))}}),co=(0,t.defineComponent)({__name:`SelectBase`,setup(e){let{hasInlineSearchInput:n,isMultiple:r,classConfig:i,customClassConfig:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).base({class:(0,t.unref)(P)((0,t.unref)(a).base,(0,t.unref)(i)?.base)}))},[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(Na,{key:0})):(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createBlock)(ao,{key:1},{badge:(0,t.withCtx)(({value:n})=>[(0,t.renderSlot)(e.$slots,`badge`,{value:n})]),_:3})):((0,t.openBlock)(),(0,t.createBlock)(so,{key:2}))])],2))}}),lo=(0,t.defineComponent)({__name:`SelectContent`,setup(e){let{id:i,hasScrolledInDropdownContent:a,classConfig:o,customClassConfig:s,style:c}=z(),l=(0,n.injectListboxRootContext)(),u=(0,t.ref)(null),d=(0,t.ref)(null),f=Oe(d);function p(){let e=u.value?.$el??null;return e===null?[]:Array.from(e.querySelectorAll(`[role=option]`))}function m(e){if(e.length===0)return;let t=e.findIndex(e=>e.getAttribute(`aria-selected`)===`true`),n=t===-1?e[0]:e[t];setTimeout(()=>{l.changeHighlight(n)})}function h(e){a.value=e.target.scrollTop!==0}return(0,t.onMounted)(()=>{setTimeout(()=>{m(p())})}),(0,t.onBeforeUnmount)(()=>{l.highlightedElement.value=null}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{animate:{height:(0,t.unref)(f).height.value},transition:{type:`spring`,bounce:0,duration:.3},tabindex:`-1`,class:`overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{ref_key:`listboxContentWrapperRef`,ref:d},[(0,t.createVNode)((0,t.unref)(n.ListboxContent),{id:`${(0,t.unref)(i)}-content`,ref_key:`listboxContentRef`,ref:u,class:(0,t.normalizeClass)((0,t.unref)(c).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)})),onScroll:h},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`id`,`class`])],512)]),_:3},8,[`animate`]))}}),[uo,fo]=R(`textFieldContext`),po=(0,t.defineComponent)({__name:`TextFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=fo();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),mo=(0,t.defineComponent)({__name:`FormControl`,props:{id:{},isDisabled:{type:Boolean},isInvalid:{type:Boolean},isLoading:{type:Boolean},isRequired:{type:Boolean},as:{default:null},describedBy:{}},setup(e){let r=e;return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{id:r.id,as:r.as??void 0,"as-child":r.as===null,"aria-invalid":r.isInvalid,"aria-describedby":r.describedBy,"aria-required":r.isRequired,"aria-busy":r.isLoading},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`])]),_:3},8,[`id`,`as`,`as-child`,`aria-invalid`,`aria-describedby`,`aria-required`,`aria-busy`]))}}),ho=(0,t.defineComponent)({__name:`TextFieldInput`,setup(e){let{id:n,testId:r,isDisabled:i,isLoading:a,isRequired:o,isSpellCheckEnabled:s,autocomplete:c,classConfig:l,customClassConfig:u,errorMessage:d,modelValue:f,placeholder:p,style:m,type:h,onBlur:g,onFocus:_}=fo();function v(e){f.value=e.target.value}return(e,y)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(n),value:(0,t.unref)(f),"is-loading":(0,t.unref)(a),"is-disabled":(0,t.unref)(i),"is-invalid":(0,t.unref)(d)!==null,"is-required":(0,t.unref)(o),"described-by":`${(0,t.unref)(n)}-error ${(0,t.unref)(n)}-hint`,class:(0,t.normalizeClass)((0,t.unref)(m).input({class:(0,t.unref)(P)((0,t.unref)(u).input,(0,t.unref)(l)?.input)})),type:(0,t.unref)(h),autocomplete:(0,t.unref)(c),placeholder:(0,t.unref)(p),spellcheck:(0,t.unref)(s),onFocus:(0,t.unref)(_),onBlur:(0,t.unref)(g),onInput:v},{default:(0,t.withCtx)(()=>[...y[0]||=[(0,t.createElementVNode)(`input`,null,null,-1)]]),_:1},8,[`id`,`value`,`is-loading`,`is-disabled`,`is-invalid`,`is-required`,`described-by`,`class`,`type`,`autocomplete`,`placeholder`,`spellcheck`,`onFocus`,`onBlur`])]),_:1},8,[`test-id`]))}}),go=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/text-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/text-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`px-3 group-data-icon-left/text-field:pl-2 group-data-icon-right/text-field:pr-2`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/text-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),_o=[`data-icon-left`,`data-icon-right`,`data-invalid`,`data-disabled`],vo=(0,t.defineComponent)({__name:`TextFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},isSpellCheckEnabled:{type:Boolean,default:!1},autocomplete:{default:`off`},iconLeft:{default:null},iconRight:{default:null},placeholder:{default:null},type:{default:`text`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),{theme:o}=W(),s=(0,t.computed)(()=>go({variant:r.variant??void 0})),c=(0,t.computed)(()=>N(`textField`,o.value,{variant:r.variant}));function l(e){i(`blur`,e)}function u(e){i(`focus`,e)}return uo({...G(r),customClassConfig:c,modelValue:a,style:s,onBlur:l,onFocus:u}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,r.classConfig?.root)})),"data-icon-left":r.iconLeft!==null||void 0,"data-icon-right":r.iconRight!==null||void 0,"data-invalid":r.errorMessage!==null&&r.isTouched||void 0,"data-disabled":r.isDisabled||void 0},[(0,t.renderSlot)(e.$slots,`default`)],10,_o))}}),yo={key:0,class:`relative p-xs pb-0`},bo={key:0,class:`pointer-events-none absolute bottom-0 z-10 h-4 w-full translate-y-full bg-linear-to-b from-primary to-transparent`},xo=(0,t.defineComponent)({__name:`SelectDropdownSearchInput`,setup(e){let{hasScrolledInDropdownContent:r,classConfig:i,customClassConfig:a,filter:o,searchInputPlaceholder:s,searchTerm:c}=z();return(e,l)=>(0,t.unref)(o)!==null&&(0,t.unref)(o).isEnabled&&!(0,t.unref)(o).isInline?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yo,[(0,t.createVNode)(vo,{modelValue:(0,t.unref)(c),"onUpdate:modelValue":l[0]||=e=>(0,t.isRef)(c)?c.value=e:null,placeholder:(0,t.unref)(s),"class-config":(0,t.unref)(ln)({root:`border-none shadow-none outline-none bg-secondary h-8 rounded-sm`,iconLeft:`ml-md`},(0,t.unref)(a)?.dropdownSearchInput,(0,t.unref)(i)?.dropdownSearchInput)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(po),(0,t.createVNode)((0,t.unref)(n.ListboxFilter),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ho)]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`class-config`]),(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bo)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)}}),So=(0,t.defineComponent)({__name:`SelectEmpty`,setup(e){let{t:n}=(0,i.useI18n)(),{classConfig:r,customClassConfig:a,filteredItems:o,searchTerm:s,style:c,virtualList:l,virtualListFilteredItems:u}=z(),d=(0,t.computed)(()=>l.value===null||!l.value.isEnabled?o.value.size===0:u.value.length===0);return(e,i)=>d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(c).empty({class:(0,t.unref)(P)((0,t.unref)(a).empty,(0,t.unref)(r)?.empty)}))},(0,t.toDisplayString)((0,t.unref)(n)(`component.select.empty_text`,{searchTerm:(0,t.unref)(s)})),3)):(0,t.createCommentVNode)(``,!0)}}),Co=(0,t.defineComponent)({__name:`SelectIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=z();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),wo=(0,t.defineComponent)({__name:`SelectIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300`,"leave-active-class":`duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),To={class:`sr-only`},Eo=(0,t.defineComponent)({__name:`SelectLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=z(),{t:s}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300 absolute right-0`,"leave-active-class":`duration-300 absolute right-0`},{default:(0,t.withCtx)(()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,To,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),[Do,Oo]=R(`popoverContext`),ko=(0,t.defineComponent)({__name:`PopoverAnchor`,setup(e){let{popoverAnchorReferenceElement:r}=Oo();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverAnchor),{"as-child":!0,reference:(0,t.unref)(r)??void 0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`reference`]))}}),Ao=(0,t.defineComponent)({__name:`PopoverArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=Oo();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-10 overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),jo=(0,t.defineComponent)({__name:`ThemeProvider`,props:{appearance:{default:null},asChild:{type:Boolean,default:!1},theme:{default:null}},setup(e){let r=e,i=W(),a=(0,t.computed)(()=>r.appearance??i.appearance.value??`light`),o=(0,t.computed)(()=>r.theme??i.theme.value);return ka({appearance:a,theme:o}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.asChild,class:(0,t.normalizeClass)([o.value,a.value])},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`as-child`,`class`]))}}),Mo=(0,t.defineComponent)({__name:`PopoverContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h,onAutoFocusOnClose:g,onContentEscapeKeyDown:_,onContentFocusOutside:v,onContentInteractOutside:y}=Oo();return(e,b)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.PopoverContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(c),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),"align-offset":(0,t.unref)(l),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)})),"position-strategy":`absolute`,sticky:`always`,onEscapeKeyDown:(0,t.unref)(_),onFocusOutside:(0,t.unref)(v),onInteractOutside:(0,t.unref)(y),onCloseAutoFocus:(0,t.unref)(g)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`collision-padding`,`collision-boundary`,`align-offset`,`side`,`side-offset`,`class`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onCloseAutoFocus`])]),_:3})]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),[No,J]=R(`configContext`),Po=(0,t.defineComponent)({__name:`PopoverPortal`,setup(e){let r=J();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverPortal),{to:(0,t.unref)(r).teleportTargetSelector},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`]))}}),Fo=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`relative overflow-hidden data-[content-width=anchor-width]:w-(--reka-popover-trigger-width) data-[content-width=available-width]:w-(--reka-popover-content-available-width)`).withHeight(`max-h-(--reka-popper-available-height)`).withFlex(`flex flex-col`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withSize(`size-full`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).withZIndex(`z-40`).build()},variants:{variant:{}}}),Io=(0,t.defineComponent)({__name:`PopoverRoot`,props:(0,t.mergeModels)({variant:{default:null},testId:{default:null},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:10},popoverWidth:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>Fo({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`popover`,s.value,{variant:i.variant}));function u(e){a(`escapeKeyDown`,e)}function d(e){a(`focusOutside`,e)}function f(e){a(`interactOutside`,e)}function p(e){a(`autoFocusOnClose`,e)}return Do({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c,onAutoFocusOnClose:p,onContentEscapeKeyDown:u,onContentFocusOutside:d,onContentInteractOutside:f}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverRoot),{open:o.value,"onUpdate:open":r[0]||=e=>o.value=e},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`]))}}),Lo=4,Ro=(0,t.defineComponent)({__name:`SelectPopoverContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]),a=(0,t.ref)(null);function o(e){switch(e){case`top`:return{x:0,y:Lo};case`bottom`:return{x:0,y:-4};case`left`:return{x:Lo,y:0};case`right`:return{x:-4,y:0}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`motionRef`,ref:a,initial:{opacity:0,scale:.9,...o(i.value)},animate:{opacity:1,scale:1,x:0,y:0},exit:{opacity:0,scale:.9,...o(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-popover-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),zo=(0,t.defineComponent)({__name:`PopoverTrigger`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverTrigger),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Bo=[`id`,`tabindex`,`aria-expanded`,`aria-controls`,`onKeydown`],Vo={key:0,class:`sr-only`},Ho={key:1,class:`sr-only`},Uo=(0,t.defineComponent)({__name:`SelectPopoverTrigger`,setup(e){let{id:n,hasInlineSearchInput:r,isDisabled:i,isDropdownVisible:a,displayFn:o,filter:s,modelValue:c,setIsDropdownVisible:l}=z(),u=(0,t.computed)(()=>s.value===null?!0:!s.value.isEnabled||!s.value.isInline);function d(){l(!0)}return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zo,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`button`,{id:(0,t.unref)(r)?void 0:(0,t.unref)(n)??void 0,tabindex:u.value?0:-1,"aria-expanded":(0,t.unref)(a),"aria-controls":`${(0,t.unref)(n)}-content`,class:(0,t.normalizeClass)([{"cursor-not-allowed":(0,t.unref)(i)},`absolute inset-0 outline-none`]),role:`combobox`,onKeydown:[(0,t.withKeys)((0,t.withModifiers)(d,[`prevent`]),[`arrow-down`]),(0,t.withKeys)((0,t.withModifiers)(d,[`prevent`]),[`arrow-up`])]},[Array.isArray((0,t.unref)(c))?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Vo,(0,t.toDisplayString)((0,t.unref)(c).map((0,t.unref)(o)).join(`, `)),1)):(0,t.unref)(c)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ho,(0,t.toDisplayString)((0,t.unref)(o)((0,t.unref)(c))),1))],42,Bo)]),_:1})]),_:1},8,[`is-disabled`]))}}),Wo=(0,t.defineComponent)({__name:`SelectPopover`,setup(e){let{hasInlineSearchInput:n,isDropdownHidden:r,isDropdownVisible:i,isPopoverArrowVisible:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverAnchorReferenceElement:u,popoverCollisionPadding:d,popoverContainerElement:f,popoverSide:p,popoverSideOffset:m,popoverWidth:h,setIsDropdownVisible:g,onDropdownEscapeKeyDown:_,onDropdownInteractOutside:v}=z();function y(e){n.value&&e.preventDefault()}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Io,{"is-open":(0,t.unref)(i)&&!(0,t.unref)(r),"is-popover-arrow-hidden":!(0,t.unref)(a),"popover-align":(0,t.unref)(c),"popover-align-offset":(0,t.unref)(l),"popover-collision-padding":(0,t.unref)(d),"popover-container-element":(0,t.unref)(f),"popover-side-offset":(0,t.unref)(m),"popover-side":(0,t.unref)(p),"popover-width":(0,t.unref)(h),"popover-anchor-reference-element":(0,t.unref)(u),"class-config":(0,t.unref)(ln)((0,t.unref)(s).popover,(0,t.unref)(o)?.popover),"onUpdate:isOpen":(0,t.unref)(g),onEscapeKeyDown:(0,t.unref)(_),onInteractOutside:(0,t.unref)(v),onAutoFocusOnClose:y},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`anchor`,{},()=>[(0,t.createVNode)(ko,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Uo)]),_:1})]),(0,t.renderSlot)(e.$slots,`inline-content`),(0,t.createVNode)(Po,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ro,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Ao)]),_:3})]),_:3})]),_:3})]),_:3},8,[`is-open`,`is-popover-arrow-hidden`,`popover-align`,`popover-align-offset`,`popover-collision-padding`,`popover-container-element`,`popover-side-offset`,`popover-side`,`popover-width`,`popover-anchor-reference-element`,`class-config`,`onUpdate:isOpen`,`onEscapeKeyDown`,`onInteractOutside`]))}}),Go=H({slots:{base:new U().withBase(`overflow-hidden`).withFlex(`flex items-center`).withSize(`size-full`).build(),baseMultiple:new U().withPadding(`px-sm group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withFlex(`flex items-center gap-xs`).withSize(`size-full`).build(),baseSingle:new U().withFontSize(`text-sm`).withColor(`text-primary group-data-disabled/select:text-disabled`).withPadding(`px-3 group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withSize(`w-full`).withFlex(`flex items-center`).build(),content:new U().withBase(`outline-none min-w-(--reka-popover-trigger-width)`).withBase(`overflow-auto`).withPadding(`p-xs`).withHeight(`max-h-80`).build(),empty:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withPadding(`p-sm`).build(),group:new U().build(),groupLabel:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).withSpacing(`py-xs`).build(),iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/select:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/select:text-fg-disabled`).build(),inlineSearchInput:new U().withOutline(`outline-none`).withBase(`z-10`).withSize(`size-full`).withFontSize(`text-sm`).withColor(`text-primary`).withBackgroundColor(`bg-transparent`).withPadding(`px-3 group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withCursor(`disabled:cursor-not-allowed`).build(),item:new U().withBase(`outline-none`).withSize(`w-full`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withBorderRadius(`rounded-sm`).withPadding(`p-md`).withSpacing(`not-last:mb-xxs`).withFlex(`flex items-center justify-between gap-x-md`).withFontSize(`text-sm`).withFontWeight(`data-[state=checked]:font-medium`).withColor(`text-secondary data-disabled:text-disabled`).withBackgroundColor(`data-[state=checked]:bg-secondary not-data-disabled:data-highlighted:bg-secondary-hover not-data-disabled:hover:bg-secondary-hover`).withTransition(`not-data-disabled:data-highlighted:data-[state=checked]:brightness-98`).build(),itemIndicator:new U().withSize(`size-4`).withColor(`text-secondary`).build(),loader:new U().withBase(`pointer-events-none`).withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),placeholder:new U().withColor(`text-placeholder`).withFontSize(`text-sm`).build(),root:new U().withBase(`relative group/select overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build(),searchInput:``,separator:new U().withHeight(`h-px`).withBackgroundColor(`bg-quaternary`).withSpacing(`my-xs`).build()},variants:{variant:{}}}),Ko=(0,t.defineComponent)({__name:`SelectRoot`,props:(0,t.mergeModels)({isDropdownHidden:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isSearchTermControlled:{type:Boolean,default:!1},clearSearchTermOnSelect:{type:Boolean,default:!1},displayFn:{},filter:{default:null},iconLeft:{default:null},iconRight:{default:`selectIconRight`},placeholder:{default:null},remainOpenOnSelect:{type:[Boolean,null],default:null},searchInputPlaceholder:{default:null},variant:{default:null},virtualList:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},isPopoverArrowVisible:{type:Boolean,default:!1},popoverAlign:{default:`end`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:0},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:6},popoverWidth:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},searchTerm:{default:``,required:!1},searchTermModifiers:{},isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:searchTerm`,`update:isOpen`]),setup(e,{emit:r}){let a=e,o=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`searchTerm`),l=(0,t.useModel)(e,`isOpen`),{theme:u}=W(),{t:d}=(0,i.useI18n)(),f=a.id??(0,t.useId)(),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(new Map),g=(0,t.ref)(new Map),_=(0,t.ref)(null),v=(0,t.ref)(!1),{contains:y}=(0,n.useFilter)(),b=(0,t.computed)(()=>Go({variant:a.variant??void 0})),ee=(0,t.computed)(()=>N(`select`,u.value,{variant:a.variant})),x=(0,t.computed)(()=>Array.isArray(s.value)),te=(0,t.ref)(!1),S=(0,t.computed)(()=>a.remainOpenOnSelect??x.value),C=(0,t.computed)(()=>a.filter===null?!1:(a.filter.isEnabled&&a.filter.isInline)??!1);function ne(e,t){return y(a.displayFn(e).toLowerCase(),t.toLowerCase())}let re=(0,t.computed)(()=>a.filter?.fn??ne),ie=(0,t.computed)(()=>a.filter===null||!a.filter.isEnabled||C.value&&!v.value?h.value:new Map(Array.from(h.value.entries()).filter(([e,t])=>re.value(t,c.value)))),ae=(0,t.computed)(()=>a.virtualList===null||!a.virtualList.isEnabled?[]:a.virtualList.items.filter(e=>re.value(e,c.value))),oe=(0,t.computed)(()=>new Map(Array.from(g.value.entries()).filter(([e,t])=>Array.from(t).some(e=>ie.value.has(e))))),se=(0,t.computed)(()=>a.searchInputPlaceholder??d(`component.select.search_input_placeholder`));function w(e){l.value=e}function ce(){if(!a.isSearchTermControlled){if(x.value||!C.value||s.value===null||a.clearSearchTermOnSelect){c.value=``;return}c.value=a.displayFn(s.value)}}function T(){C.value&&setTimeout(()=>{_.value?.focus()})}function le(){T()}function ue(){a.isSearchTermControlled||ce(),v.value=!1}function de(){te.value||D(),te.value=!0}function fe(){setTimeout(()=>{!p.value?.$el.contains(document.activeElement)&&(!l.value||a.isDropdownHidden)&&(te.value=!1,pe())})}function E(){T()}function D(){o(`focus`)}function pe(){o(`blur`)}function me(e){e.target===_.value?e.preventDefault():pe()}function O(){T(),S.value||w(!1)}return(0,t.watch)(l,e=>{e?le():ue()}),(0,t.watch)(s,ce,{immediate:!0}),Xi({...G(a),id:(0,t.computed)(()=>f),hasInlineSearchInput:C,hasInteractedWithInlineSearchInput:v,hasScrolledInDropdownContent:m,isDropdownVisible:(0,t.computed)(()=>l.value),isMultiple:x,allGroups:g,allItems:h,customClassConfig:ee,filteredGroups:oe,filteredItems:ie,inlinesearchInputElementRef:_,modelValue:s,remainOpenOnSelect:S,searchInputPlaceholder:se,searchTerm:c,setIsDropdownVisible:w,style:b,virtualListFilteredItems:ae,onDropdownEscapeKeyDown:E,onDropdownInteractOutside:me,onSelectItem:O}),(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":a.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:null,ref_key:`rootRef`,ref:p,"is-disabled":a.isDisabled,"is-invalid":a.errorMessage!==null,"is-loading":a.isLoading,"is-required":a.isRequired,"described-by":`${(0,t.unref)(f)}-error ${(0,t.unref)(f)}-hint`,"data-invalid":a.errorMessage!==null&&a.isTouched||void 0,"data-icon-left":e.iconLeft!==null||void 0,"data-icon-right":e.iconRight!==null||void 0,"data-disabled":a.isDisabled||void 0,onFocusin:de,onFocusout:fe,onEntryFocus:i[1]||=(0,t.withModifiers)(()=>{},[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ListboxRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,"selection-behavior":x.value?`toggle`:`replace`,multiple:x.value,class:(0,t.normalizeClass)(b.value.root({class:(0,t.unref)(P)(ee.value.root,a.classConfig?.root)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`selection-behavior`,`multiple`,`class`])]),_:3},8,[`is-disabled`,`is-invalid`,`is-loading`,`is-required`,`described-by`,`data-invalid`,`data-icon-left`,`data-icon-right`,`data-disabled`])]),_:3},8,[`test-id`]))}}),qo={class:`w-full`},Jo=(0,t.defineComponent)({__name:`SelectVirtualList`,setup(e){let{displayFn:r,virtualList:i,virtualListFilteredItems:a}=z();return(e,o)=>(0,t.unref)(i)!==null&&(0,t.unref)(i).isEnabled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxVirtualizer),{key:0,options:(0,t.unref)(a),overscan:10,"estimate-size":(0,t.unref)(i).optionHeight??39,"text-content":(0,t.unref)(r)},{default:(0,t.withCtx)(({option:n})=>[(0,t.createElementVNode)(`div`,qo,[(0,t.renderSlot)(e.$slots,`item`,{item:n},()=>[(0,t.createVNode)(ea,{value:n},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(n)),1)]),_:2},1032,[`value`])])])]),_:3},8,[`options`,`estimate-size`,`text-content`])):(0,t.createCommentVNode)(``,!0)}}),Yo=(0,t.defineComponent)({__name:`Select`,props:(0,t.mergeModels)({isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},displayFn:{},filter:{},iconLeft:{},iconRight:{},placeholder:{},remainOpenOnSelect:{type:[Boolean,null],default:null},searchInputPlaceholder:{},variant:{},virtualList:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},searchTerm:{required:!1},searchTermModifiers:{},isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:searchTerm`,`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`searchTerm`),s=(0,t.useModel)(e,`isOpen`),c=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(c)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ko,(0,t.mergeProps)(r,{id:(0,t.unref)(c),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"search-term":o.value,"onUpdate:searchTerm":n[1]||=e=>o.value=e,"is-open":s.value,"onUpdate:isOpen":n[2]||=e=>s.value=e,onBlur:n[3]||=e=>i(`blur`),onFocus:n[4]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Wo,null,{anchor:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`anchor`)]),"inline-content":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(Co)]),(0,t.renderSlot)(e.$slots,`base`,{},()=>[(0,t.createVNode)(co,null,{badge:(0,t.withCtx)(({value:n})=>[(0,t.renderSlot)(e.$slots,`badge`,{value:n})]),_:3})]),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(wo)]),(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(Eo)]),(0,t.renderSlot)(e.$slots,`right`)]),content:(0,t.withCtx)(()=>[(0,t.createVNode)(xo),(0,t.createVNode)(lo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Jo,null,{item:(0,t.withCtx)(({item:n})=>[(0,t.renderSlot)(e.$slots,`virtual-list-item`,{item:n})]),_:3}),(0,t.renderSlot)(e.$slots,`default`),(0,t.createVNode)(So)]),_:3})]),_:3})]),_:3},16,[`id`,`modelValue`,`search-term`,`is-open`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Xo=(0,t.defineComponent)({__name:`Autocomplete`,props:(0,t.mergeModels)({isSearchTermOptional:{type:Boolean,default:!1},debounceTimeoutInMs:{default:300},items:{},isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},displayFn:{},iconLeft:{},iconRight:{default:null},placeholder:{},remainOpenOnSelect:{type:[Boolean,null]},searchInputPlaceholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`search`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value?r.displayFn(a.value):``),s=(0,t.ref)(!1),c=(0,t.ref)(r.items),l=(0,t.computed)(()=>o.value.trim().length===0),u=(0,t.computed)(()=>a.value===null?!1:o.value===r.displayFn(a.value)),d=(0,t.computed)(()=>{if(c.value.length===0&&l.value||u.value&&c.value.length===0||(r.isLoading||s.value)&&c.value.length===0)return!1;if(c.value.length===1){let e=JSON.stringify(c.value[0])===JSON.stringify(a.value),t=c.value[0]!==null&&o.value===r.displayFn(c.value[0]);if(e&&!t)return!1}return!0}),f=(0,t.computed)(()=>r.iconRight===null?r.isSearchTermOptional?`selectIconRight`:null:r.iconRight),p=T(e=>{s.value=!1,e!==null&&i(`search`,e)},r.debounceTimeoutInMs);function m(e){!e&&!r.isSearchTermOptional&&(c.value=[])}(0,t.watch)(o,e=>{l.value&&(c.value=[]),!u.value&&(l.value?(s.value=!1,p(null)):(s.value=!0,p(e)))}),(0,t.watch)(()=>r.items,e=>{c.value=e});function h(e){e!==null&&(o.value=r.displayFn(e))}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Yo,(0,t.mergeProps)(r,{"search-term":o.value,"onUpdate:searchTerm":n[0]||=e=>o.value=e,modelValue:a.value,"onUpdate:modelValue":[n[1]||=e=>a.value=e,h],filter:{isEnabled:!0,isInline:!0,fn:()=>!0},"icon-right":f.value,"is-dropdown-hidden":!d.value,"is-loading":r.isLoading||s.value,"is-search-term-controlled":!0,"onUpdate:isOpen":m}),{base:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`base`)]),left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),right:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`right`)]),loader:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`,{items:c.value},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,i)=>(0,t.renderSlot)(e.$slots,`item`,{key:i,value:n},()=>[(0,t.createVNode)(ea,{value:n},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.displayFn(n)),1)]),_:2},1032,[`value`])])),128))])]),_:3},16,[`search-term`,`modelValue`,`icon-right`,`is-dropdown-hidden`,`is-loading`]))}}),Zo={class:`overflow-hidden`},Qo={class:`truncate font-medium`},$o={class:`line-clamp-2`},es=(0,t.defineComponent)({__name:`AddressAutocomplete`,props:(0,t.mergeModels)({isSearchTermOptional:{type:Boolean},debounceTimeoutInMs:{},isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{},remainOpenOnSelect:{type:[Boolean,null]},searchInputPlaceholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`,`error`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=/\/\s*(\d+)/,{googleMapsApiKey:s}=J(),c=(0,t.ref)(!1),l=(0,t.ref)([]),u=null,d=(0,t.ref)(null),f=(0,t.computed)(()=>a.value===null?null:v(a.value)),p=(0,t.computed)(()=>l.value.map(e=>({placeId:e.placeId,mainText:e.mainText,secondaryText:e.secondaryText})));async function m(e){if(u===null)throw Error(`Autocomplete service is not defined`);c.value=!0;try{let t=e,n=e.match(o);if(n!==null&&n[1]!==void 0){let e=n[1];t=t.replace(o,`/bus ${e}`)}l.value=(await u.fetchAutocompleteSuggestions({input:t})).suggestions.filter(e=>e.placePrediction!==null).map(e=>{let t=e.placePrediction;return{placeId:t.placeId,mainText:t.mainText?.text??``,secondaryText:t.secondaryText?.text??``}})}catch(e){i(`error`,e)}c.value=!1}async function g(e){if(e===null){a.value=null;return}d.value=e,a.value=await _(e.placeId),d.value=null}async function b(e){let{AutocompleteSuggestion:t}=await new h({apiKey:e,libraries:[`places`]}).importLibrary(`places`);return t}return(0,t.onMounted)(async()=>{if(s===null)throw Error("Google Maps API key is not defined. Provide it in the config using the `<ConfigProvider />` component.");u=await b(s)}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Xo,(0,t.mergeProps)(r,{"model-value":d.value||f.value,items:p.value,"is-loading":c.value,"display-fn":e=>(0,t.unref)(y)(e),onSearch:m,onFocus:n[0]||=e=>i(`focus`),onBlur:n[1]||=e=>i(`blur`),"onUpdate:modelValue":g}),{base:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`base`)]),left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),right:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`right`)]),loader:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`)]),item:(0,t.withCtx)(({value:e})=>[(0,t.createVNode)(ea,{value:e},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Zo,[(0,t.createElementVNode)(`p`,Qo,(0,t.toDisplayString)(e.mainText),1),(0,t.createElementVNode)(`p`,$o,(0,t.toDisplayString)(e.secondaryText),1)])]),_:2},1032,[`value`])]),_:3},16,[`model-value`,`items`,`is-loading`,`display-fn`]))}}),ts=H({slots:{fallback:new U().withBase(`uppercase`).withFontSize(`text-sm`).withColor(`text-secondary`).withFontWeight(`font-medium`).build(),image:new U().withSize(`size-full`).build(),root:new U().withBase(`overflow-hidden`).withFlex(`flex items-center justify-center`).withSize(`size-10`).withBackgroundColor(`bg-tertiary`).withBorderRadius(`rounded-full`).build()},variants:{variant:{}}}),[ns,rs]=R(`avatarContext`),is=(0,t.defineComponent)({__name:`AvatarFallback`,setup(e){let{name:r,classConfig:i,customClassConfig:a,style:o}=rs(),s=(0,t.computed)(()=>r.value.split(` `).map(e=>e.charAt(0).toUpperCase()).join(``));return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarFallback),{class:(0,t.normalizeClass)((0,t.unref)(o).fallback({class:(0,t.unref)(P)((0,t.unref)(a).fallback,(0,t.unref)(i)?.fallback)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1},8,[`class`]))}}),as=(0,t.defineComponent)({__name:`AvatarImage`,setup(e){let{name:r,classConfig:i,customClassConfig:a,src:o,style:s}=rs();return(e,c)=>(0,t.unref)(o)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarImage),{key:0,src:(0,t.unref)(o),alt:(0,t.unref)(r),class:(0,t.normalizeClass)((0,t.unref)(s).image({class:(0,t.unref)(P)((0,t.unref)(a).image,(0,t.unref)(i)?.image)}))},null,8,[`src`,`alt`,`class`]))}}),os=(0,t.defineComponent)({__name:`AvatarRoot`,props:{name:{},src:{default:null},variant:{default:null},testId:{default:null},classConfig:{default:null}},setup(e){let r=e,{theme:i}=W(),a=(0,t.computed)(()=>ts({variant:r.variant??void 0})),o=(0,t.computed)(()=>N(`avatar`,i.value,{variant:r.variant}));return ns({...G(r),customClassConfig:o,style:a}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarRoot),{class:(0,t.normalizeClass)(a.value.root({class:(0,t.unref)(P)(o.value.root,r.classConfig?.root)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),ss=(0,t.defineComponent)({__name:`Avatar`,props:{name:{},src:{},variant:{},testId:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(os,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(as),(0,t.createVNode)(is)]),_:1},16))}}),cs=H({extend:Ka,slots:{content:new U().withClasses(`[grid-area:stack] group-data-[loading=true]/button:invisible group-data-[loading=true]/button:opacity-0`).withFlex(`flex items-center justify-center`).withTransition(`duration-300 group-data-[loading=true]/button:scale-95 group-data-[loading=true]/button:blur-xxs`).build(),iconLeft:new U().withBase(`shrink-0`).build(),iconRight:new U().withBase(`shrink-0`).build(),loader:new U().withClasses(`[grid-area:stack] mx-auto group-data-[loading=false]/button:invisible group-data-[loading=false]/button:opacity-0`).withBase(`shrink-0`).withTransition(`duration-300 group-data-[loading=false]/button:scale-95`).build(),root:new U().withGrid(`grid items-center justify-center [grid-template-areas:"stack"]`).withFontWeight(`font-medium`).build()},variants:{size:{"2xl":{iconLeft:new U().withMargin(`mr-md`).withSize(`size-5`).build(),iconRight:new U().withMargin(`ml-md`).withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withPadding(`px-5.5`).withFontSize(`text-lg`).withSize(`min-w-15`).build()},lg:{iconLeft:new U().withMargin(`mr-sm`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-sm`).withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withPadding(`px-xl`).withFontSize(`text-md`).withSize(`min-w-11`).build()},md:{iconLeft:new U().withMargin(`mr-xs`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-xs`).withSize(`size-4`).build(),loader:new U().withSize(`size-4.5`).build(),root:new U().withPadding(`px-3.5`).withFontSize(`text-sm`).withSize(`min-w-10`).build()},sm:{iconLeft:new U().withMargin(`mr-xs`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-xs`).withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withPadding(`px-lg`).withFontSize(`text-sm`).withSize(`min-w-9`).build()},xl:{iconLeft:new U().withMargin(`mr-sm`).withSize(`size-5`).build(),iconRight:new U().withMargin(`ml-sm`).withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withPadding(`px-4.5`).withFontSize(`text-md`).withSize(`min-w-12`).build()}}}}),ls=cs,[us,ds]=R(`buttonContext`),fs=(0,t.defineComponent)({__name:`ButtonContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=ds();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).content({class:(0,t.unref)(P)((0,t.unref)(r).content,(0,t.unref)(n)?.content)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),ps=(0,t.defineComponent)({__name:`ButtonIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=ds();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),ms=(0,t.defineComponent)({__name:`ButtonIconRight`,setup(e){let{classConfig:n,customClassConfig:r,iconRight:i,style:a}=ds();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconRight({class:(0,t.unref)(P)((0,t.unref)(r).iconRight,(0,t.unref)(n)?.iconRight)}))},null,8,[`icon`,`class`]))}}),hs={class:`sr-only`},gs=(0,t.defineComponent)({__name:`ButtonLoader`,setup(e){let{t:n}=(0,i.useI18n)(),{classConfig:r,customClassConfig:a,style:o}=ds();return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,hs,(0,t.toDisplayString)((0,t.unref)(n)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua)])],2))}}),_s=(0,t.defineComponent)({__name:`ButtonRoot`,props:{size:{default:`md`},variant:{default:`primary`},iconLeft:{default:null},iconRight:{default:null},isLoading:{type:Boolean,default:!1},type:{default:`button`},testId:{default:null},isDisabled:{type:Boolean,default:!1},classConfig:{default:null}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>ls({size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`button`,a.value,{size:r.size,variant:r.variant}));function c(e){r.isLoading||i(`click`,e)}return us({...G(r),customClassConfig:s,style:o}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled,"aria-disabled":r.isLoading,"aria-busy":r.isLoading,type:r.type,"data-loading":r.isLoading,class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),as:`button`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`,`aria-disabled`,`aria-busy`,`type`,`data-loading`,`class`])]),_:3},8,[`test-id`]))}}),vs=(0,t.defineComponent)({__name:`Button`,props:{size:{},variant:{},iconLeft:{},iconRight:{},isLoading:{type:Boolean},type:{},testId:{},isDisabled:{type:Boolean},classConfig:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(_s,(0,t.mergeProps)(r,{onClick:n[0]||=e=>i(`click`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(gs)]),(0,t.createVNode)(fs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(ps)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(ms)])]),_:3})]),_:3},16))}}),[ys,bs]=R(`iconButtonContext`),xs=(0,t.defineComponent)({__name:`RouterLinkButtonContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=bs();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).content({class:(0,t.unref)(P)((0,t.unref)(r).content,(0,t.unref)(n)?.content)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),Ss=(0,t.defineComponent)({__name:`RouterLinkButtonIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=bs();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Cs=(0,t.defineComponent)({__name:`RouterLinkButtonIconRight`,setup(e){let{classConfig:n,customClassConfig:r,iconRight:i,style:a}=bs();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconRight({class:(0,t.unref)(P)((0,t.unref)(r).iconRight,(0,t.unref)(n)?.iconRight)}))},null,8,[`icon`,`class`]))}}),ws=cs,Ts=(0,t.defineComponent)({__name:`RouterLinkButtonRoot`,props:{size:{default:`md`},to:{},variant:{default:`primary`},iconLeft:{default:null},iconRight:{default:null},testId:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),i=(0,t.computed)(()=>ws({size:n.size,variant:n.variant})),o=(0,t.computed)(()=>N(`routerLinkButton`,r.value,{size:n.size,variant:n.variant}));return ys({...G(n),customClassConfig:o,style:i}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":n.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a.RouterLink),{class:(0,t.normalizeClass)(i.value.root({class:(0,t.unref)(P)(o.value.root,n.classConfig?.root)})),"data-loading":!1,to:n.to},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`,`to`])]),_:3},8,[`test-id`]))}}),Es=(0,t.defineComponent)({__name:`RouterLinkButton`,props:{size:{},to:{},variant:{},iconLeft:{},iconRight:{},testId:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(Ts,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(Ss)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(Cs)])]),_:3})]),_:3},16))}}),[Ds,Os]=R(`checkboxContext`),ks={key:0,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},As={key:1,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},js=(0,t.defineComponent)({__name:`CheckboxIndicator`,setup(e){let i={hidden:{opacity:0,pathLength:0},visible:{opacity:1,pathLength:1,transition:{opacity:{duration:.01},pathLength:{bounce:0,duration:.5,type:`spring`}}}},{isIndeterminate:a,classConfig:o,customClassConfig:s,style:c}=Os();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxIndicator),{class:(0,t.normalizeClass)((0,t.unref)(c).indicator({class:(0,t.unref)(P)((0,t.unref)(s).indicator,(0,t.unref)(o)?.indicator)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ks,[(0,t.createVNode)((0,t.unref)(r.motion).path,{variants:i,tabindex:`-1`,initial:`hidden`,d:`M2.5 6H9.5`,stroke:`currentColor`,"stroke-width":`1.66666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,As,[(0,t.createVNode)((0,t.unref)(r.motion).path,{variants:i,tabindex:`-1`,initial:`hidden`,d:`M2 6L4.5 8.5L10 3`,stroke:`currentColor`,"stroke-width":`1.6666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})]))])]),_:3},8,[`class`])]),_:3}))}}),Ms=(0,t.defineComponent)({__name:`CheckboxControl`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Os();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).control({class:(0,t.unref)(P)((0,t.unref)(n)?.control,(0,t.unref)(r)?.control)}))},[(0,t.createVNode)(js)],2))}}),Ns=H({slots:{control:new U().withBase(`relative overflow-hidden isolate`).withSize(`size-4`).withFlex(`flex items-center justify-center`).withBorder(`border border-solid border-primary group-data-[state=checked]/checkbox:border-brand-600 group-data-[state=checked]/checkbox:group-disabled/checkbox:border-disabled disabled:border-disabled`).withBorder(`group-data-invalid/checkbox:group-data-[state=checked]/checkbox:border-error group-data-invalid/checkbox:group-data-[state=unchecked]/checkbox:border-error`).withBorderRadius(`rounded-xs`).withBackgroundColor(`group-data-[state=checked]/checkbox:bg-brand-solid group-disabled/checkbox:group-data-[state=checked]/checkbox:bg-disabled-subtle group-disabled/checkbox:bg-disabled-subtle`).withBackgroundColor(`group-data-invalid/checkbox:group-data-[state=checked]/checkbox:bg-error-solid`).withOutline(`outline-2 outline-transparent group-focus-visible/checkbox:outline-brand-600 outline-offset-1 group-focus-visible/checkbox:group-data-invalid/checkbox:outline-error-600`).withTransition(`duration-300`).build(),indicator:new U().withBase(`block`).withColor(`text-primary-on-brand group-data-disabled/checkbox:text-fg-disabled-subtle`).withSize(`size-3`).build(),root:new U().withBase(`group/checkbox outline-none`).withFlex(`flex items-center justify-start`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),Ps=(0,t.defineComponent)({__name:`CheckboxRoot`,props:(0,t.mergeModels)({isIndeterminate:{type:Boolean,default:!1},value:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.computed)({get(){return o.value===null?null:o.value?!0:i.isIndeterminate?`indeterminate`:!1},set(e){e!==null&&(o.value=e===`indeterminate`?!1:e)}}),{theme:c}=W(),l=(0,t.computed)(()=>Ns({variant:i.variant??void 0})),u=(0,t.computed)(()=>N(`checkbox`,c.value,{variant:i.variant}));return Ds({...G(i),customClassConfig:u,style:l}),(r,o)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxRoot),{modelValue:s.value,"onUpdate:modelValue":o[0]||=e=>s.value=e,value:i.value,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(l.value.root({class:(0,t.unref)(P)(u.value.root,i.classConfig?.root)})),onFocus:o[1]||=e=>a(`focus`),onBlur:o[2]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`value`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),Fs=(0,t.defineComponent)({__name:`Checkbox`,props:(0,t.mergeModels)({isIndeterminate:{type:Boolean},value:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ps,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`),onFocus:n[2]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ms)])]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}});function Is(e,n){function r(t){setTimeout(()=>{e.value.contains(document.activeElement)||n(t)})}(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Element is null`);e.value.addEventListener(`focusout`,r)}),(0,t.onBeforeUnmount)(()=>{e.value?.removeEventListener(`focusout`,r)})}var Ls=(0,t.defineComponent)({__name:`CheckboxGroupRoot`,props:(0,t.mergeModels)({testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.ref)(null);return Is((0,t.computed)(()=>s.value?.$el??null),()=>{a(`blur`)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxGroupRoot),(0,t.mergeProps)({ref_key:`checkboxGroupRootRef`,ref:s},i,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`modelValue`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Rs=(0,t.defineComponent)({__name:`CheckboxGroup`,props:(0,t.mergeModels)({testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ls,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),zs=(0,t.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipProvider),null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Bs=(0,t.defineComponent)({__name:`ConfigProvider`,props:{areKeyboardShortcutHintsHidden:{type:Boolean},autoCloseToast:{},googleMapsApiKey:{},hourCycle:{},locale:{},pagination:{},teleportTargetSelector:{},toastPosition:{}},setup(e){let n=e;return No({areKeyboardShortcutHintsHidden:(0,t.computed)(()=>n.areKeyboardShortcutHintsHidden??!1),autoCloseToast:(0,t.computed)(()=>n.autoCloseToast??null),googleMapsApiKey:n.googleMapsApiKey??null,hourCycle:(0,t.computed)(()=>n.hourCycle??null),locale:(0,t.computed)(()=>n.locale),pagination:{limit:n.pagination?.limit},teleportTargetSelector:n.teleportTargetSelector??`body`,toastPosition:n.toastPosition}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(zs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Vs=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/date-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/date-field:pl-2`).withBackgroundColor(`group-data-disabled/date-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/date-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),[Hs,Us]=R(`dateFieldContext`),Ws=(0,t.defineComponent)({__name:`DateFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=Us();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Gs=(0,t.defineComponent)({__name:`DateFieldInput`,props:{segments:{}},setup(e){let r=e,{testId:i,classConfig:a,customClassConfig:o,style:s,onBlur:c,onFocus:l}=Us();return(e,u)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(s).inputs({class:(0,t.unref)(P)((0,t.unref)(o).inputs,(0,t.unref)(a)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2)]),_:1},8,[`test-id`]))}}),Ks={class:`sr-only`},qs=(0,t.defineComponent)({__name:`DateFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Us(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Ks,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),[Js,Ys]=R(`useDatePickerDateContext`),[Xs,Zs]=R(`datePickerContext`),Qs=(0,t.defineComponent)({__name:`DatePickerDate`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Zs(),{date:o,month:s}=Ys();return(e,c)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarCellTrigger),{day:(0,t.unref)(o),month:(0,t.unref)(s),class:(0,t.normalizeClass)((0,t.unref)(a).date({class:(0,t.unref)(P)((0,t.unref)(i).date,(0,t.unref)(r)?.date)}))},{default:(0,t.withCtx)(({today:n})=>[(0,t.renderSlot)(e.$slots,`default`,{day:(0,t.unref)(o).day},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(o).day),1)]),n?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(a).todayIndicator({class:(0,t.unref)(P)((0,t.unref)(i).todayIndicator,(0,t.unref)(r)?.todayIndicator)}))},null,2)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`day`,`month`,`class`]))}});function $s(e,t){return e-t*Math.floor(e/t)}var ec=1721426;function tc(e,t,n,r){t=rc(e,t);let i=t-1,a=-2;return n<=2?a=0:nc(t)&&(a=-1),ec-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function nc(e){return e%4==0&&(e%100!=0||e%400==0)}function rc(e,t){return e===`BC`?1-t:t}function ic(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var ac={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},oc=class{fromJulianDay(e){let t=e,n=t-ec,r=Math.floor(n/146097),i=$s(n,146097),a=Math.floor(i/36524),o=$s(i,36524),s=Math.floor(o/1461),c=$s(o,1461),l=Math.floor(c/365),[u,d]=ic(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-tc(u,d,1,1),p=2;t<tc(u,d,3,1)?p=0:nc(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new Zc(u,d,m,t-tc(u,d,m,1)+1)}toJulianDay(e){return tc(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return ac[nc(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return nc(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function sc(e,t){return e.isEqual?.call(e,t)??t.isEqual?.call(t,e)??e.identifier===t.identifier}function cc(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function lc(e,t){return uc(e)-uc(t)}function uc(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var dc=null;function fc(){return dc??=new Intl.DateTimeFormat().resolvedOptions().timeZone,dc}function pc(e){return e=wc(e,new oc),mc(rc(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function mc(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function hc(e,t){if(t===`UTC`)return 0;if(e>0&&t===fc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=_c(e,t);return mc(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var gc=new Map;function _c(e,t){let n=gc.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),gc.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var vc=864e5;function yc(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>bc(e,t,n))}function bc(e,t,n){let r=_c(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function xc(e,t,n=`compatible`){let r=Cc(e);if(t===`UTC`)return pc(r);if(t===fc()&&n===`compatible`){r=wc(r,new oc);let e=new Date,t=rc(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=pc(r),a=hc(i-vc,t),o=hc(i+vc,t),s=yc(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function Sc(e,t,n=`compatible`){return new Date(xc(e,t,n))}function Cc(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new tl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function wc(e,t){if(sc(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ac(r),r}function Tc(e,t){let n=e.copy(),r=`hour`in n?Rc(n,t):0;Ec(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Dc(n),kc(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Oc(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a;let e=(a=n.calendar).isInverseEra?.call(a,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ec(e,t){var n;(n=e.calendar).isInverseEra?.call(n,e)&&(t=-t),e.year+=t}function Dc(e){for(;e.month<1;)Ec(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ec(e,1)}function Oc(e){for(;e.day<1;)e.month--,Dc(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Dc(e)}function kc(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ac(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),kc(e)}function jc(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function Mc(e,t){return Tc(e,jc(t))}function Nc(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ac(n),n}function Pc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Ic(n),n}function Fc(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Lc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Lc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Lc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Lc(e.hour,24),t}function Ic(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Lc(e,t){let n=e%t;return n<0&&(n+=t),n}function Rc(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Fc(e)}function zc(e,t){let n=e.copy();return Rc(n,t),n}function Bc(e,t){return zc(e,jc(t))}function Vc(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Uc(a,n,0,t.length-1,r?.round),i.era=t[a],Ac(i);break}case`year`:var a;(a=i.calendar).isInverseEra?.call(a,i)&&(n=-n),i.year=Uc(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Uc(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Uc(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ac(i),i}function Hc(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Uc(t,n,a,o,r?.round);break}case`minute`:i.minute=Uc(e.minute,n,0,59,r?.round);break;case`second`:i.second=Uc(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Uc(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Uc(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Wc(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function Gc(e){let t=wc(e,new oc),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function Kc(e){return`${Gc(e)}T${Wc(e)}`}function qc(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Jc(e,t,n){qc(e,t),t.set(e,n)}function Yc(e){let t=typeof e[0]==`object`?e.shift():new oc,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Xc=new WeakMap,Zc=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return Tc(this,e)}subtract(e){return Mc(this,e)}set(e){return Nc(this,e)}cycle(e,t,n){return Vc(this,e,t,n)}toDate(e){return Sc(this,e)}toString(){return Gc(this)}compare(e){return cc(this,e)}constructor(...e){Jc(this,Xc,{writable:!0,value:void 0});let[t,n,r,i,a]=Yc(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,Ac(this)}},Qc=new WeakMap,$c=class e{copy(){return new e(this.hour,this.minute,this.second,this.millisecond)}add(e){return zc(this,e)}subtract(e){return Bc(this,e)}set(e){return Pc(this,e)}cycle(e,t,n){return Hc(this,e,t,n)}toString(){return Wc(this)}compare(e){return lc(this,e)}constructor(e=0,t=0,n=0,r=0){Jc(this,Qc,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,Ic(this)}},el=new WeakMap,tl=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Tc(this,e)}subtract(e){return Mc(this,e)}set(e){return Nc(Pc(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return Vc(this,e,t,n);default:return Hc(this,e,t,n)}}toDate(e,t){return Sc(this,e,t)}toString(){return Kc(this)}compare(e){let t=cc(this,e);return t===0?lc(this,Cc(e)):t}constructor(...e){Jc(this,el,{writable:!0,value:void 0});let[t,n,r,i,a]=Yc(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ac(this)}};function nl(e){return new Date(e.toString())}function rl(e){return new Zc(e.getFullYear(),e.getMonth()+1,e.getDate())}function Y(e){let t=e.toDate(fc());return new o.Temporal.PlainDate(t.getFullYear(),t.getMonth()+1,t.getDate())}function X(e){return rl(nl(e))}function il(e){return e.toDate(fc())}function al(e,t,n){return new Intl.DateTimeFormat(t,{month:n}).format(new Date(1,e))}function ol(e,t){return new Date(t,e,0).getDate()}function sl(e){return+![`en-US`,`en-CA`,`en-PH`,`en-MY`,`en-AU`,`en-NZ`,`en-IN`,`ja-JP`,`zh-CN`].some(t=>t.toLowerCase()===e.toLowerCase())}function cl(e,t,n=`short`){let r=sl(e),i=new Date(Date.UTC(2023,0,1)),a=[],o=new Intl.DateTimeFormat(t,{weekday:n});for(let e=0;e<7;e++){let t=(r+e)%7,n=new Date(i);n.setUTCDate(i.getUTCDate()+t),a.push(o.format(n))}return a}var ll=(0,t.defineComponent)({__name:`DatePickerDateProvider`,props:{date:{},month:{}},setup(e){let n=e;return Js({date:n.date,month:n.month}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`)}}),ul=(0,t.defineComponent)({__name:`DatePickerGrid`,props:{grid:{},weekDays:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=Zs(),{locale:s}=J(),{locale:c}=(0,n.injectCalendarRootContext)();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).gridContainer({class:(0,t.unref)(P)((0,t.unref)(a).gridContainer,(0,t.unref)(i)?.gridContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:l.value.toString()},[u===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).monthSeparator({class:(0,t.unref)(P)((0,t.unref)(a).monthSeparator,(0,t.unref)(i)?.monthSeparator)}))},null,2)),(0,t.createVNode)((0,t.unref)(n.CalendarGrid),{class:(0,t.normalizeClass)((0,t.unref)(o).grid({class:(0,t.unref)(P)((0,t.unref)(a).grid,(0,t.unref)(i)?.grid)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarGridHead),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarGridRow),{class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.weekDays,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarHeadCell),{key:e,class:(0,t.normalizeClass)((0,t.unref)(o).weekDayLabel({class:(0,t.unref)(P)((0,t.unref)(a).weekDayLabel,(0,t.unref)(i)?.weekDayLabel)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(cl)((0,t.unref)(c),(0,t.unref)(s))[r]),1)]),_:2},1032,[`class`]))),128))]),_:1},8,[`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(n.CalendarGridBody),{class:(0,t.normalizeClass)((0,t.unref)(o).gridBody({class:(0,t.unref)(P)((0,t.unref)(a).gridBody,(0,t.unref)(i)?.gridBody)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.rows,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarGridRow),{key:r.toString(),class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarCell),{key:r.toString(),date:r},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ll,{date:r,month:l.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`date`,{date:(0,t.unref)(il)(r)},()=>[(0,t.createVNode)(Qs)])]),_:2},1032,[`date`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])],64))),128))],2))}}),[dl,fl]=R(`numberFieldContext`),pl=(0,t.defineComponent)({__name:`NumberFieldDecrement`,setup(e){let{isDisabled:r,classConfig:a,customClassConfig:o,hideControls:s}=fl(),{t:c}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(s)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NumberFieldDecrement),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(r),label:(0,t.unref)(c)(`component.number_field.decrement`),"class-config":(0,t.unref)(ln)({icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem] ml-[0.3rem]`},(0,t.unref)(o)?.decrement,(0,t.unref)(a)?.decrement),icon:`minus`,variant:`tertiary`,size:`sm`},null,8,[`is-disabled`,`label`,`class-config`])]),_:1}))}}),ml=(0,t.defineComponent)({__name:`NumberFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=fl();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),hl=(0,t.defineComponent)({__name:`NumberFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=fl();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),gl=(0,t.defineComponent)({__name:`NumberFieldIncrement`,setup(e){let{isDisabled:r,classConfig:a,customClassConfig:o,hideControls:s}=fl(),{t:c}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(s)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NumberFieldIncrement),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(r),label:(0,t.unref)(c)(`component.number_field.increment`),"class-config":(0,t.unref)(ln)({icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem] mr-[0.3rem]`},(0,t.unref)(o)?.increment,(0,t.unref)(a)?.increment),icon:`plus`,variant:`tertiary`,size:`sm`},null,8,[`is-disabled`,`label`,`class-config`])]),_:1}))}}),_l=(0,t.defineComponent)({__name:`NumberFieldInput`,setup(e){let{id:r,testId:i,isDisabled:a,isLoading:o,isRequired:s,autocomplete:c,classConfig:l,customClassConfig:u,errorMessage:d,placeholder:f,style:p,onBlur:m,onFocus:h}=fl();return(e,g)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(r),"is-disabled":(0,t.unref)(a),"is-loading":(0,t.unref)(o),"is-invalid":(0,t.unref)(d)!==null,"described-by":`${(0,t.unref)(r)}-error ${(0,t.unref)(r)}-hint`,"is-required":(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NumberFieldInput),{class:(0,t.normalizeClass)((0,t.unref)(p).input({class:(0,t.unref)(P)((0,t.unref)(u).input,(0,t.unref)(l)?.input)})),autocomplete:(0,t.unref)(c),placeholder:(0,t.unref)(f),onFocus:(0,t.unref)(h),onBlur:(0,t.unref)(m)},null,8,[`class`,`autocomplete`,`placeholder`,`onFocus`,`onBlur`])]),_:1},8,[`id`,`is-disabled`,`is-loading`,`is-invalid`,`described-by`,`is-required`])]),_:1},8,[`test-id`]))}}),vl={class:`sr-only`},yl=(0,t.defineComponent)({__name:`NumberFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=fl(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,vl,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),bl=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/number-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/number-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none group-data-controls/number-field:text-center`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`px-3 group-data-icon-left/number-field:pl-2 group-data-icon-right/number-field:pr-2`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/number-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),xl=(0,t.defineComponent)({__name:`NumberFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},formatOptions:{default:null},hideControls:{type:Boolean,default:!1},iconLeft:{default:null},iconRight:{default:null},max:{default:null},min:{default:null},placeholder:{default:null},step:{default:1},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=navigator.language,c=(0,t.computed)({get:()=>o.value??void 0,set:e=>{if(Number.isNaN(e)){o.value=null;return}o.value=e??null}}),{theme:l}=W(),u=(0,t.computed)(()=>bl({variant:i.variant??void 0})),d=(0,t.computed)(()=>N(`numberField`,l.value,{variant:i.variant}));function f(e){a(`blur`,e)}function p(e){a(`focus`,e)}return dl({...G(i),customClassConfig:d,style:u,onBlur:f,onFocus:p}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NumberFieldRoot),{modelValue:c.value,"onUpdate:modelValue":r[0]||=e=>c.value=e,class:(0,t.normalizeClass)(u.value.root({class:(0,t.unref)(P)(d.value.root,i.classConfig?.root)})),"data-icon-left":i.iconLeft!==null||void 0,"data-icon-right":i.iconRight!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-controls":!i.hideControls||void 0,required:i.isRequired,min:i.min??void 0,max:i.max??void 0,step:i.step,"format-options":i.formatOptions??void 0,locale:(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`class`,`data-icon-left`,`data-icon-right`,`data-invalid`,`data-controls`,`required`,`min`,`max`,`step`,`format-options`,`locale`])]),_:3},8,[`is-disabled`]))}}),Sl=(0,t.defineComponent)({__name:`NumberField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},formatOptions:{},hideControls:{type:Boolean},iconLeft:{},iconRight:{},max:{},min:{},placeholder:{},step:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(xl,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(pl),(0,t.createVNode)(ml),(0,t.createVNode)(_l),(0,t.createVNode)(gl),(0,t.createVNode)(hl),(0,t.createVNode)(yl),(0,t.renderSlot)(e.$slots,`right`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Cl={key:1},wl={key:0,class:`text-center`},Tl={class:`text-sm font-semibold whitespace-nowrap text-primary`},El={key:1,class:`flex items-center justify-center gap-xxs`},Dl={key:3},Ol=(0,t.defineComponent)({__name:`DatePickerHeader`,props:{grid:{}},setup(e){let r=e,{locale:i}=J(),{classConfig:a,customClassConfig:s,placeholderValue:c,showTwoMonths:l,style:u}=Zs(),d=(0,t.computed)({get:()=>c.value.month,set:async e=>{await(0,t.nextTick)(),c.value=new o.Temporal.PlainDate(c.value.year,e,c.value.day)}}),f=(0,t.computed)({get:()=>c.value.year,set:e=>{c.value=new o.Temporal.PlainDate(e,c.value.month,c.value.day)}});return(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(u).headerContainer({class:(0,t.unref)(P)((0,t.unref)(s).headerContainer,(0,t.unref)(a)?.headerContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(r,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarHeader),{key:o,class:(0,t.normalizeClass)((0,t.unref)(u).header({class:(0,t.unref)(P)((0,t.unref)(s).header,(0,t.unref)(a)?.header)}))},{default:(0,t.withCtx)(()=>[o===0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarPrev),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:-translate-x-px group-enabled/button:group-active/button:-translate-x-0.5 duration-200`},icon:`chevronLeft`,label:`Previous month`,variant:`tertiary`,size:`sm`,class:`justify-self-start`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Cl)),(0,t.createVNode)((0,t.unref)(n.CalendarHeading),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wl,[(0,t.createElementVNode)(`span`,Tl,(0,t.toDisplayString)((0,t.unref)(al)(r.value.month-1,(0,t.unref)(i),`long`))+` `+(0,t.toDisplayString)(r.value.year),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,El,[(0,t.createVNode)(Yo,{modelValue:d.value,"onUpdate:modelValue":c[0]||=e=>d.value=e,"icon-right":null,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,baseSingle:`font-semibold px-sm`,content:`gap-xs grid [grid-template-columns:auto] sm:[grid-template-columns:repeat(auto-fit,minmax(6rem,1fr))]`,popover:{content:`min-w-60`}},filter:{isEnabled:!0},"display-fn":e=>(0,t.unref)(al)(e-1,(0,t.unref)(i),`long`),"popover-align":`start`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(12,e=>(0,t.createVNode)(ea,{key:e,value:e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(al)(e-1,(0,t.unref)(i),`long`)),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`modelValue`,`display-fn`]),(0,t.createVNode)(Sl,{modelValue:f.value,"onUpdate:modelValue":c[1]||=e=>f.value=e,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,input:`font-semibold px-sm`},"format-options":{useGrouping:!1},"hide-controls":!0,class:`w-12 shrink-0`},null,8,[`modelValue`])]))]),_:2},1024),o===e.grid.length-1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarNext),{key:2,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:translate-x-px group-enabled/button:group-active/button:translate-x-0.5 duration-200`},icon:`chevronRight`,label:`Next month`,variant:`tertiary`,size:`sm`,class:`justify-self-end`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Dl))]),_:2},1032,[`class`]))),128))],2))}}),kl=H({slots:{date:new U().withBase(`group/date relative select-none isolate`).withFlex(`flex items-center justify-center`).withFontSize(`text-sm`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withSize(`size-10`).withOutline(`outline-brand-500 data-selected:outline-offset-2`).build(),grid:new U().withSize(`w-70`).build(),gridBody:new U().withFlex(`flex flex-col gap-y-xs`).build(),gridContainer:new U().withBase(`flex gap-xl`).build(),gridRow:new U().withBase(`grid grid-cols-7 items-center`).build(),header:new U().withGrid(`grid grid-cols-[1fr_auto_1fr] items-center`).withSize(`size-full`).build(),headerContainer:new U().withFlex(`flex justify-between gap-xl`).withMargin(`mb-lg`).build(),monthSeparator:new U().withSize(`w-px`).withBackgroundColor(`bg-tertiary`).build(),todayIndicator:new U().withBase(`absolute bottom-1 left-1/2 -translate-x-1/2`).withSize(`size-1`).withBorderRadius(`rounded-full`).build(),weekDayLabel:new U().withFontWeight(`font-medium`).withColor(`text-secondary`).withFontSize(`text-sm`).withSize(`size-10`).withFlex(`flex items-center justify-center`).build()},variants:{variant:{}}}),Al=H({extend:kl,slots:{date:new U().withColor(`text-secondary data-selected:text-primary-on-brand data-outside-view:text-disabled data-disabled:text-disabled data-unavailable:text-disabled`).withBackgroundColor(`not-data-disabled:hover:bg-tertiary data-selected:bg-brand-solid data-selected:hover:bg-brand-solid-hover`).withBorderRadius(`rounded-full`).build(),header:``,headerContainer:``,todayIndicator:new U().withBackgroundColor(`bg-brand-solid group-data-selected/date:bg-white`).build(),weekDayLabel:``},variants:{variant:{}}}),jl=(0,t.defineComponent)({__name:`DatePickerRoot`,props:(0,t.mergeModels)({variant:{default:null},weekStartsOn:{default:0},focusOnMount:{type:Boolean,default:!1},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1},maxDate:{default:null},minDate:{default:null},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useModel)(e,`placeholderValue`),s=(0,t.computed)(()=>r.locale??navigator.language),c=(0,t.computed)({get:()=>{if(i.value!==null)return X(i.value)},set:e=>{if(e==null){i.value=null;return}i.value=Y(e)}}),l=(0,t.computed)({get:()=>X(a.value??i.value??o.Temporal.Now.plainDateISO()),set:e=>{a.value=Y(e)}}),{theme:u}=W(),d=(0,t.computed)(()=>Al({variant:r.variant??void 0})),f=(0,t.computed)(()=>N(`datePicker`,u.value,{variant:r.variant}));return Xs({...G(r),customClassConfig:f,modelValue:i,placeholderValue:(0,t.computed)({get:()=>Y(l.value),set:e=>{l.value=X(e)}}),style:d}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarRoot),{modelValue:c.value,"onUpdate:modelValue":i[0]||=e=>c.value=e,placeholder:l.value,"onUpdate:placeholder":i[1]||=e=>l.value=e,"week-starts-on":r.weekStartsOn,"prevent-deselect":!r.allowDeselect,"fixed-weeks":!0,"number-of-months":r.showTwoMonths?2:1,"is-date-unavailable":e=>r.isDateUnavailable((0,t.unref)(Y)(e)),"is-date-disabled":e=>r.isDateDisabled((0,t.unref)(Y)(e)),"calendar-label":r.label,"initial-focus":r.focusOnMount,locale:s.value,"min-value":r.minDate===null?void 0:(0,t.unref)(X)(r.minDate),"max-value":r.maxDate===null?void 0:(0,t.unref)(X)(r.maxDate),"weekday-format":`short`},{default:(0,t.withCtx)(({weekDays:n,grid:r})=>[(0,t.renderSlot)(e.$slots,`default`,{weekDays:n,grid:r})]),_:3},8,[`modelValue`,`placeholder`,`week-starts-on`,`prevent-deselect`,`number-of-months`,`is-date-unavailable`,`is-date-disabled`,`calendar-label`,`initial-focus`,`locale`,`min-value`,`max-value`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Ml=(0,t.defineComponent)({__name:`DatePicker`,props:(0,t.mergeModels)({variant:{},weekStartsOn:{},focusOnMount:{type:Boolean},label:{},testId:{},isDisabled:{type:Boolean},maxDate:{},minDate:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useModel)(e,`placeholderValue`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(jl,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,"placeholder-value":i.value,"onUpdate:placeholderValue":a[1]||=e=>i.value=e}),{default:(0,t.withCtx)(({grid:n,weekDays:r})=>[(0,t.createVNode)(Ol,{grid:n},null,8,[`grid`]),(0,t.createVNode)(ul,{"week-days":r,grid:n},{date:(0,t.withCtx)(({date:n})=>[(0,t.renderSlot)(e.$slots,`date`,{date:n},()=>[(0,t.createVNode)(Qs)])]),_:3},8,[`week-days`,`grid`])]),_:3},16,[`modelValue`,`placeholder-value`]))}}),Nl=4,Pl=(0,t.defineComponent)({__name:`PopoverContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]);function a(e){switch(e){case`top`:return{transform:`translateY(${Nl}px) scale(0.9)`};case`bottom`:return{transform:`translateY(-${Nl}px) scale(0.9)`};case`left`:return{transform:`translateX(${Nl}px) scale(0.9)`};case`right`:return{transform:`translateX(-${Nl}px) scale(0.9)`}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...a(i.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`},exit:{opacity:0,...a(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-popover-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Fl=(0,t.defineComponent)({__name:`Popover`,props:(0,t.mergeModels)({variant:{},testId:{},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Io,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onEscapeKeyDown:n[1]||=e=>i(`escapeKeyDown`,e),onFocusOutside:n[2]||=e=>i(`focusOutside`,e),onInteractOutside:n[3]||=e=>i(`interactOutside`,e),onAutoFocusOnClose:n[4]||=e=>i(`autoFocusOnClose`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(ko,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zo,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3})]),_:3})]),(0,t.createVNode)(Po,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Pl,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Ao)]),_:3})]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Il={class:`p-lg`},Ll=(0,t.defineComponent)({__name:`DateFieldPopover`,setup(e){let{maxDate:n,minDate:r,weekStartsOn:i,isDateDisabled:a,isDateUnavailable:o,isDisabled:s,allowDeselect:c,classConfig:l,customClassConfig:u,dontCloseOnSelect:d,hideDatePicker:f,label:p,locale:m,modelValue:h,placeholderValue:g,showTwoMonths:_}=Us(),v=(0,t.ref)(!1);return(0,t.watch)(h,()=>{d.value||!v.value||(v.value=!1)}),(e,d)=>(0,t.unref)(f)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(Fl,{key:0,"is-open":v.value,"onUpdate:isOpen":d[1]||=e=>v.value=e,"is-popover-arrow-hidden":!0,"popover-align":`end`},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(s),"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},icon:`calendarIcon`,label:`Open`,variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`},null,8,[`is-disabled`])]),content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Il,[(0,t.createVNode)(Ml,{modelValue:(0,t.unref)(h),"onUpdate:modelValue":d[0]||=e=>(0,t.isRef)(h)?h.value=e:null,"focus-on-mount":!0,"allow-deselect":(0,t.unref)(c),"is-date-disabled":(0,t.unref)(a),"is-date-unavailable":(0,t.unref)(o),"placeholder-value":(0,t.unref)(g),"max-date":(0,t.unref)(n),locale:(0,t.unref)(m),"week-starts-on":(0,t.unref)(i),"min-date":(0,t.unref)(r),"show-two-months":(0,t.unref)(_),label:(0,t.unref)(p)??``,"class-config":{...(0,t.unref)(u).datePicker,...(0,t.unref)(l)?.datePicker}},null,8,[`modelValue`,`allow-deselect`,`is-date-disabled`,`is-date-unavailable`,`placeholder-value`,`max-date`,`locale`,`week-starts-on`,`min-date`,`show-two-months`,`label`,`class-config`])])]),_:1},8,[`is-open`]))}}),Rl=[`data-icon-left`,`data-invalid`,`data-disabled`],zl=(0,t.defineComponent)({__name:`DateFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},dontCloseOnSelect:{type:Boolean,default:!1},hideDatePicker:{type:Boolean,default:!1},iconLeft:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},maxDate:{default:null},minDate:{default:null},weekStartsOn:{default:0},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`placeholderValue`),l=(0,t.computed)(()=>i.locale??navigator.language);function u(){let e=s.value;if(e!==null){if(i.minDate!==null&&o.Temporal.PlainDate.compare(e,i.minDate)<0){s.value=i.minDate;return}i.maxDate!==null&&o.Temporal.PlainDate.compare(e,i.maxDate)>0&&(s.value=i.maxDate)}}let d=(0,t.computed)({get:()=>s.value===null?null:X(s.value),set:e=>{if(e==null){s.value=null;return}s.value=Y(e)}}),f=(0,t.computed)({get:()=>c.value??s.value??o.Temporal.Now.plainDateISO(),set:e=>{c.value=e}}),{theme:p}=W(),m=(0,t.ref)(!1),h=(0,t.computed)(()=>Vs({variant:i.variant??void 0})),g=(0,t.computed)(()=>N(`dateField`,p.value,{variant:i.variant}));function _(e){m.value=!0,a(`focus`,e)}function v(e){m.value=!1,setTimeout(()=>{m.value||(u(),a(`blur`,e))})}return Hs({...G(i),customClassConfig:g,modelValue:s,placeholderValue:f,style:h,onBlur:v,onFocus:_}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DateFieldRoot),{id:i.id??void 0,modelValue:d.value,"onUpdate:modelValue":r[0]||=e=>d.value=e,locale:l.value,"min-value":i.minDate===null?void 0:(0,t.unref)(X)(i.minDate),"max-value":i.maxDate===null?void 0:(0,t.unref)(X)(i.maxDate),"is-date-unavailable":e=>i.isDateUnavailable((0,t.unref)(Y)(e)),"is-invalid":i.errorMessage!==null,required:i.isRequired},{default:(0,t.withCtx)(({segments:n})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(h.value.root({class:(0,t.unref)(P)(g.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`,{segments:n})],10,Rl)]),_:3},8,[`id`,`modelValue`,`locale`,`min-value`,`max-value`,`is-date-unavailable`,`is-invalid`,`required`])]),_:3},8,[`is-disabled`]))}}),Bl=(0,t.defineComponent)({__name:`DateField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},dontCloseOnSelect:{type:Boolean},hideDatePicker:{type:Boolean},iconLeft:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},maxDate:{},minDate:{},weekStartsOn:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`placeholderValue`),s=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(s)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(zl,(0,t.mergeProps)(r,{id:(0,t.unref)(s),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"placeholder-value":o.value,"onUpdate:placeholderValue":n[1]||=e=>o.value=e,onBlur:n[2]||=e=>i(`blur`,e),onFocus:n[3]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(Ws),(0,t.createVNode)(Gs,{segments:n},null,8,[`segments`]),(0,t.createVNode)(qs),(0,t.createVNode)(Ll)]),_:3},16,[`id`,`modelValue`,`placeholder-value`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Vl=H({extend:kl,slots:{innerDate:new U().withSize(`size-full`).withFlex(`flex items-center justify-center`).withBorderRadius(`rounded-full`).withBackgroundColor(`group-data-highlighted-start/date:bg-brand-solid group-data-highlighted-end/date:bg-brand-solid group-data-selection-start/date:bg-brand-solid group-data-selection-end/date:bg-brand-solid`).withBackgroundColor(`not-group-data-selected/date:group-hover/date:bg-brand-primary`).build(),date:new U().withBase(`group/date relative select-none isolate data-outside-view:invisible`).withFlex(`flex items-center justify-center`).withFontSize(`text-sm`).withColor(`text-secondary not-data-highlighted:not-data-highlighted-start:not-data-selected:not-data-selection-start:not-data-selection-end:data-outside-view:text-disabled`).withColor(`data-disabled:text-disabled`).withColor(`data-unavailable:text-disabled`).withBackgroundColor(`data-highlighted:bg-brand-secondary data-selected:bg-brand-secondary data-highlighted-start:bg-brand-secondary data-highlighted-end:bg-brand-secondary data-selection-start:bg-brand-secondary data-selection-end:bg-brand-secondary`).withBackgroundColor(`dark:data-highlighted:bg-brand-950 dark:data-selected:bg-brand-950 dark:data-highlighted-start:bg-brand-950 dark:data-highlighted-end:bg-brand-950 dark:data-selection-start:bg-brand-950 dark:data-selection-end:bg-brand-950`).withColor(`data-highlighted:text-brand-primary data-selected:text-brand-primary data-highlighted-start:text-brand-primary data-highlighted-end:text-brand-primary data-selection-start:text-brand-primary data-selection-end:text-brand-primary`).withColor(`data-highlighted-start:text-primary-on-brand data-highlighted-end:text-primary-on-brand data-selection-start:text-primary-on-brand data-selection-end:text-primary-on-brand`).withBorderRadius(`data-first-day-of-week:rounded-l-full data-first-day-of-month:rounded-l-full data-last-day-of-week:rounded-r-full data-last-day-of-month:rounded-r-full data-selection-start:rounded-l-full data-selection-end:rounded-r-full data-highlighted-start:rounded-l-full data-highlighted-end:rounded-r-full data-highlighted-end:not-data-highlighted-start:not-data-first-day-of-week:not-data-first-day-of-month:rounded-l-none`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withSize(`size-10`).withOutline(`outline-brand-500 data-selected:outline-offset-2`).build(),todayIndicator:new U().withBase(`absolute bottom-1 left-1/2 -translate-x-1/2`).withSize(`size-1`).withBorderRadius(`rounded-full`).withBackgroundColor(`bg-brand-solid group-data-selection-start/date:bg-white group-data-selection-end/date:bg-white group-data-highlighted-start/date:bg-white group-data-highlighted-end/date:bg-white`).build()},variants:{variant:{}}}),[Hl,Ul]=R(`dateRangePickerContext`),Wl=(0,t.defineComponent)({__name:`DateRangePickerDate`,setup(e){let{locale:r}=J(),{classConfig:i,customClassConfig:a,style:o}=Ul(),{date:s,month:c}=Ys(),l=(0,t.computed)(()=>{let e=new Intl.Locale(r.value);return`weekInfo`in e?e.weekInfo.firstDay:1});return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarCellTrigger),{day:(0,t.unref)(s),month:(0,t.unref)(c),class:(0,t.normalizeClass)((0,t.unref)(o).date({class:(0,t.unref)(P)((0,t.unref)(a).date,(0,t.unref)(i)?.date)})),"data-first-day-of-week":(0,t.unref)(s).toDate((0,t.unref)(fc)()).getDay()===l.value%7||void 0,"data-last-day-of-week":(0,t.unref)(s).toDate((0,t.unref)(fc)()).getDay()===(l.value+6)%7||void 0,"data-first-day-of-month":(0,t.unref)(s).day===1||void 0,"data-last-day-of-month":(0,t.unref)(s).day===(0,t.unref)(ol)((0,t.unref)(s).month,(0,t.unref)(s).year)||void 0},{default:(0,t.withCtx)(({today:n})=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).innerDate({class:(0,t.unref)(P)((0,t.unref)(a).innerDate,(0,t.unref)(i)?.innerDate)}))},[(0,t.renderSlot)(e.$slots,`default`,{day:(0,t.unref)(s).day},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(s).day),1)])],2),n?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).todayIndicator({class:(0,t.unref)(P)((0,t.unref)(a).todayIndicator,(0,t.unref)(i)?.todayIndicator)}))},null,2)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`day`,`month`,`class`,`data-first-day-of-week`,`data-last-day-of-week`,`data-first-day-of-month`,`data-last-day-of-month`]))}}),Gl=(0,t.defineComponent)({__name:`DateRangePickerGrid`,props:{grid:{},weekDays:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=Ul(),{locale:s}=J(),{locale:c}=(0,n.injectRangeCalendarRootContext)();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).gridContainer({class:(0,t.unref)(P)((0,t.unref)(a).gridContainer,(0,t.unref)(i)?.gridContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:l.value.toString()},[u===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).monthSeparator({class:(0,t.unref)(P)((0,t.unref)(a).monthSeparator,(0,t.unref)(i)?.monthSeparator)}))},null,2)),(0,t.createVNode)((0,t.unref)(n.RangeCalendarGrid),{class:(0,t.normalizeClass)((0,t.unref)(o).grid({class:(0,t.unref)(P)((0,t.unref)(a).grid,(0,t.unref)(i)?.grid)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridHead),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridRow),{class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.weekDays,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarHeadCell),{key:e,class:(0,t.normalizeClass)((0,t.unref)(o).weekDayLabel({class:(0,t.unref)(P)((0,t.unref)(a).weekDayLabel,(0,t.unref)(i)?.weekDayLabel)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(cl)((0,t.unref)(c),(0,t.unref)(s))[r]),1)]),_:2},1032,[`class`]))),128))]),_:1},8,[`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridBody),{class:(0,t.normalizeClass)((0,t.unref)(o).gridBody({class:(0,t.unref)(P)((0,t.unref)(a).gridBody,(0,t.unref)(i)?.gridBody)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.rows,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarGridRow),{key:r.toString(),class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarCell),{key:r.toString(),date:r},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ll,{date:r,month:l.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`date`,{date:(0,t.unref)(il)(r)},()=>[(0,t.createVNode)(Qs)])]),_:2},1032,[`date`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])],64))),128))],2))}}),Kl={key:1},ql={key:0,class:`text-center`},Jl={class:`text-sm font-semibold whitespace-nowrap text-primary`},Yl={key:1,class:`flex items-center justify-center gap-xxs`},Xl={key:3},Zl=(0,t.defineComponent)({__name:`DateRangePickerHeader`,props:{grid:{}},setup(e){let r=e,{locale:i}=J(),{classConfig:a,customClassConfig:o,placeholderValue:s,showTwoMonths:c,style:l}=Ul(),u=(0,t.computed)({get:()=>s.value.month,set:async e=>{await(0,t.nextTick)(),s.value=s.value.with({month:e})}}),d=(0,t.computed)({get:()=>s.value.year,set:e=>{s.value=s.value.with({year:e})}});return(s,f)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(l).headerContainer({class:(0,t.unref)(P)((0,t.unref)(o).headerContainer,(0,t.unref)(a)?.headerContainer)}),`flex`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(r,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarHeader),{key:s,class:(0,t.normalizeClass)((0,t.unref)(l).header({class:(0,t.unref)(P)((0,t.unref)(o).header,(0,t.unref)(a)?.header)}))},{default:(0,t.withCtx)(()=>[s===0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarPrev),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:-translate-x-px group-enabled/button:group-active/button:-translate-x-0.5 duration-200`},icon:`chevronLeft`,label:`Previous month`,variant:`tertiary`,size:`sm`,class:`justify-self-start`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Kl)),(0,t.createVNode)((0,t.unref)(n.RangeCalendarHeading),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(c)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ql,[(0,t.createElementVNode)(`span`,Jl,(0,t.toDisplayString)((0,t.unref)(al)(r.value.month-1,(0,t.unref)(i),`long`))+` `+(0,t.toDisplayString)(r.value.year),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yl,[(0,t.createVNode)(Yo,{modelValue:u.value,"onUpdate:modelValue":f[0]||=e=>u.value=e,"icon-right":null,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,baseSingle:`font-semibold px-sm`,content:`gap-xs grid [grid-template-columns:auto] sm:[grid-template-columns:repeat(auto-fit,minmax(6rem,1fr))]`,popover:{content:`min-w-60`}},filter:{isEnabled:!0},"display-fn":e=>(0,t.unref)(al)(e-1,(0,t.unref)(i),`long`),"popover-align":`start`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(12,e=>(0,t.createVNode)(ea,{key:e,value:e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(al)(e-1,(0,t.unref)(i),`long`)),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`modelValue`,`display-fn`]),(0,t.createVNode)(Sl,{modelValue:d.value,"onUpdate:modelValue":f[1]||=e=>d.value=e,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,input:`font-semibold px-sm`},"format-options":{useGrouping:!1},"hide-controls":!0,class:`w-12 shrink-0`},null,8,[`modelValue`])]))]),_:2},1024),s===e.grid.length-1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarNext),{key:2,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:translate-x-px group-enabled/button:group-active/button:translate-x-0.5 duration-200`},icon:`chevronRight`,label:`Next month`,variant:`tertiary`,size:`sm`,class:`justify-self-end`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Xl))]),_:2},1032,[`class`]))),128))],2))}}),Ql=(0,t.defineComponent)({__name:`DateRangePickerRoot`,props:(0,t.mergeModels)({allowNonContinuousSelection:{type:Boolean,default:!1},variant:{default:null},weekStartsOn:{default:0},focusOnMount:{type:Boolean,default:!1},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1},maxDate:{default:null},minDate:{default:null},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useModel)(e,`placeholderValue`),s=(0,t.computed)({get:()=>({end:i.value.until===null?void 0:X(i.value.until),start:i.value.from===null?void 0:X(i.value.from)}),set:e=>{e.start===void 0||e.end===null?i.value.from=null:i.value.from=Y(e.start),e.end===void 0||e.end===null?i.value.until=null:i.value.until=Y(e.end)}}),c=(0,t.computed)({get:()=>X(a.value??i.value.from??o.Temporal.Now.plainDateISO()),set:e=>{a.value=Y(e)}}),{theme:l}=W(),u=(0,t.computed)(()=>r.locale??navigator.language),d=(0,t.computed)(()=>Vl({variant:r.variant??void 0})),f=(0,t.computed)(()=>N(`dateRangePicker`,l.value,{variant:r.variant}));return Hl({...G(r),customClassConfig:f,modelValue:i,placeholderValue:(0,t.computed)({get:()=>Y(c.value),set:e=>{c.value=X(e)}}),style:d}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,placeholder:c.value,"onUpdate:placeholder":i[1]||=e=>c.value=e,"week-starts-on":r.weekStartsOn,"prevent-deselect":!r.allowDeselect,"fixed-weeks":!0,"number-of-months":r.showTwoMonths?2:1,"allow-non-contiguous-ranges":r.allowNonContinuousSelection,"is-date-unavailable":e=>r.isDateUnavailable((0,t.unref)(Y)(e)),"is-date-disabled":e=>r.isDateDisabled((0,t.unref)(Y)(e)),"calendar-label":r.label,locale:u.value,"initial-focus":r.focusOnMount,"min-value":r.minDate===null?void 0:(0,t.unref)(X)(r.minDate),"max-value":r.maxDate===null?void 0:(0,t.unref)(X)(r.maxDate),"weekday-format":`short`},{default:(0,t.withCtx)(({weekDays:n,grid:r})=>[(0,t.renderSlot)(e.$slots,`default`,{weekDays:n,grid:r})]),_:3},8,[`modelValue`,`placeholder`,`week-starts-on`,`prevent-deselect`,`number-of-months`,`allow-non-contiguous-ranges`,`is-date-unavailable`,`is-date-disabled`,`calendar-label`,`locale`,`initial-focus`,`min-value`,`max-value`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),$l=(0,t.defineComponent)({__name:`DateRangePicker`,props:(0,t.mergeModels)({allowNonContinuousSelection:{type:Boolean},variant:{},weekStartsOn:{},focusOnMount:{type:Boolean},label:{},testId:{},isDisabled:{type:Boolean},maxDate:{},minDate:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useModel)(e,`placeholderValue`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(Ql,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,"placeholder-value":i.value,"onUpdate:placeholderValue":a[1]||=e=>i.value=e}),{default:(0,t.withCtx)(({grid:n,weekDays:r})=>[(0,t.createVNode)(Zl,{grid:n},null,8,[`grid`]),(0,t.createVNode)(Gl,{"week-days":r,grid:n},{date:(0,t.withCtx)(({date:n})=>[(0,t.renderSlot)(e.$slots,`date`,{date:n},()=>[(0,t.createVNode)(Wl)])]),_:3},8,[`week-days`,`grid`])]),_:3},16,[`modelValue`,`placeholder-value`]))}}),eu=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/date-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/date-field:pl-2`).withBackgroundColor(`group-data-disabled/date-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/date-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build(),separator:new U().withColor(`text-primary group-data-disabled/date-field:text-disabled`).withSpacing(`px-sm`).build()},variants:{variant:{}}}),[tu,nu]=R(`dateRangeFieldContext`),ru=(0,t.defineComponent)({__name:`DateRangeFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=nu();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),iu=(0,t.defineComponent)({__name:`DateRangeFieldInput`,props:{segments:{}},setup(e){let r=e,{testId:i,classConfig:a,customClassConfig:o,style:s,onBlur:c,onFocus:l}=nu();return(e,u)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(s).inputs({class:(0,t.unref)(P)((0,t.unref)(o).inputs,(0,t.unref)(a)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments.start,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`start`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`start`,onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128)),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(s).separator({class:(0,t.unref)(P)((0,t.unref)(o).separator,(0,t.unref)(a)?.separator)}))},` - `,2),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments.end,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`end`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`end`,onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2)]),_:1},8,[`test-id`]))}}),au={class:`sr-only`},ou=(0,t.defineComponent)({__name:`DateRangeFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=nu(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,au,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),su={class:`p-lg`},cu=(0,t.defineComponent)({__name:`DateRangefieldPopover`,setup(e){let{maxDate:n,minDate:r,weekStartsOn:i,isDateDisabled:a,isDateUnavailable:o,isDisabled:s,allowDeselect:c,allowNonContinuousSelection:l,classConfig:u,customClassConfig:d,dontCloseOnSelect:f,hideDatePicker:p,label:m,locale:h,modelValue:g,placeholderValue:_,showTwoMonths:v}=nu(),y=(0,t.ref)(!1);return(0,t.watch)(()=>[g.value.from?.toString(),g.value.until?.toString()],([e,t])=>{f.value||!y.value||t!==void 0&&(y.value=!1)}),(e,f)=>(0,t.unref)(p)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(Fl,{key:0,"is-open":y.value,"onUpdate:isOpen":f[1]||=e=>y.value=e,"is-popover-arrow-hidden":!0,"popover-align":`end`},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(s),"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},icon:`calendarIcon`,label:`Open`,variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`},null,8,[`is-disabled`])]),content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,su,[(0,t.createVNode)($l,{modelValue:(0,t.unref)(g),"onUpdate:modelValue":f[0]||=e=>(0,t.isRef)(g)?g.value=e:null,"focus-on-mount":!0,"allow-deselect":(0,t.unref)(c),"placeholder-value":(0,t.unref)(_),"is-date-disabled":(0,t.unref)(a),"week-starts-on":(0,t.unref)(i),locale:(0,t.unref)(h),"allow-non-continuous-selection":(0,t.unref)(l),"is-date-unavailable":(0,t.unref)(o),"max-date":(0,t.unref)(n),"min-date":(0,t.unref)(r),"show-two-months":(0,t.unref)(v),label:(0,t.unref)(m)??``,"class-config":{...(0,t.unref)(d).datePicker,...(0,t.unref)(u)?.datePicker}},null,8,[`modelValue`,`allow-deselect`,`placeholder-value`,`is-date-disabled`,`week-starts-on`,`locale`,`allow-non-continuous-selection`,`is-date-unavailable`,`max-date`,`min-date`,`show-two-months`,`label`,`class-config`])])]),_:1},8,[`is-open`]))}}),lu=[`data-icon-left`,`data-invalid`,`data-disabled`],uu=(0,t.defineComponent)({__name:`DateRangeFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},allowNonContinuousSelection:{type:Boolean},autocomplete:{default:`off`},dontCloseOnSelect:{type:Boolean,default:!1},hideDatePicker:{type:Boolean,default:!1},iconLeft:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},maxDate:{default:null},minDate:{default:null},weekStartsOn:{default:0},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`placeholderValue`),l=(0,t.computed)({get:()=>({end:s.value.until===null?void 0:X(s.value.until),start:s.value.from===null?void 0:X(s.value.from)}),set:e=>{e.start===void 0||e.end===null?s.value.from=null:s.value.from=Y(e.start),e.end===void 0||e.end===null?s.value.until=null:s.value.until=Y(e.end)}}),u=(0,t.computed)({get:()=>c.value??s.value.from??o.Temporal.Now.plainDateISO(),set:e=>{c.value=e}}),d=(0,t.computed)(()=>i.locale??navigator.language),{theme:f}=W(),p=(0,t.ref)(!1),m=(0,t.computed)(()=>eu({variant:i.variant??void 0})),h=(0,t.computed)(()=>N(`dateRangeField`,f.value,{variant:i.variant}));function g(e){p.value=!0,a(`focus`,e)}function _(e){p.value=!1,setTimeout(()=>{p.value||a(`blur`,e)})}return tu({...G(i),customClassConfig:h,modelValue:s,placeholderValue:u,style:m,onBlur:_,onFocus:g}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DateRangeFieldRoot),{id:i.id??void 0,modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,"min-value":i.minDate===null?void 0:(0,t.unref)(X)(i.minDate),"max-value":i.maxDate===null?void 0:(0,t.unref)(X)(i.maxDate),"is-date-unavailable":e=>i.isDateUnavailable((0,t.unref)(Y)(e)),locale:d.value,"week-starts-on":i.weekStartsOn,"is-invalid":i.errorMessage!==null,required:i.isRequired},{default:(0,t.withCtx)(({segments:n})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(m.value.root({class:(0,t.unref)(P)(h.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`,{segments:n})],10,lu)]),_:3},8,[`id`,`modelValue`,`min-value`,`max-value`,`is-date-unavailable`,`locale`,`week-starts-on`,`is-invalid`,`required`])]),_:3},8,[`is-disabled`]))}}),du=(0,t.defineComponent)({__name:`DateRangeField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},allowNonContinuousSelection:{type:Boolean},autocomplete:{},dontCloseOnSelect:{type:Boolean},hideDatePicker:{type:Boolean},iconLeft:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},maxDate:{},minDate:{},weekStartsOn:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`placeholderValue`),s=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(s)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(uu,(0,t.mergeProps)(r,{id:(0,t.unref)(s),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"placeholder-value":o.value,"onUpdate:placeholderValue":n[1]||=e=>o.value=e,onBlur:n[2]||=e=>i(`blur`,e),onFocus:n[3]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(ru),(0,t.createVNode)(iu,{segments:n},null,8,[`segments`]),(0,t.createVNode)(ou),(0,t.createVNode)(cu)]),_:3},16,[`id`,`modelValue`,`placeholder-value`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),fu=(0,t.ref)([]);function pu(){return{dialogs:fu}}function mu(e){fu.value=fu.value.filter(t=>t.id!==e)}function hu(e){let n=(0,t.useId)(),r=new Map;async function i(e){let i=r.get(n);i&&(clearTimeout(i),r.delete(n));let a=await s(e);a!==null&&(fu.value.push(a.value),await(0,t.nextTick)(),a.value.isOpen=!0)}function a(){let e=fu.value.find(e=>e.id===n)??null;if(e===null)return;e.isOpen=!1;let t=setTimeout(()=>{r.delete(n)},300);r.set(n,t)}let o=(0,t.computed)(()=>{let e=fu.value.find(e=>e.id===n)??null;return e===null?!1:e.isOpen});async function s(r){let i=fu.value.find(e=>e.id===n)??null;return i!==null&&o.value?(console.warn(`Dialog with ID "${n}" is already open`),null):(i!==null&&mu(i.id),await(0,t.nextTick)(),(0,t.ref)({id:n,isOpen:!1,component:(0,t.markRaw)((0,t.computed)(()=>(0,t.h)(e,{...r,onClose:a,onClose_:a})))}))}let c=(0,t.computed)(()=>{let e=fu.value.some(e=>e.id===n&&e.isOpen);return{id:n,"aria-expanded":e,"aria-haspopup":`dialog`,"data-state":e}});return(0,t.onBeforeUnmount)(()=>{a()}),{isOpen:o,close:a,open:i,triggerProps:c}}var gu=H({slots:{content:new U().withClasses(`fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-40 outline-none overflow-hidden`).withZIndex(`z-40`).withBorderRadius(`rounded-2xl`).withBorder(`dark:border border-solid border-tertiary`).withBackgroundColor(`bg-primary`).withShadow(`shadow-lg`).build(),overlay:new U().withClasses(`fixed inset-0 bg-black/30 backdrop-blur-sm`).withZIndex(`z-39`).build()},variants:{variant:{}}}),[_u,vu]=R(`dialogContext`),yu=(0,t.defineComponent)({inheritAttrs:!1,__name:`DialogContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,hideOverlay:c,preventClickOutside:l,preventEsc:u,style:d}=vu(),f=(0,t.useAttrs)();function p(e){u.value&&e.preventDefault()}function m(e){l.value&&e.preventDefault(),e.target.attributes.getNamedItem(`data-dialog-overlay`)===null&&e.preventDefault()}return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DialogContent),(0,t.mergeProps)({"as-child":!0,"force-mount":!0,class:(0,t.unref)(d).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)}),"trap-focus":!(0,t.unref)(c)},(0,t.unref)(f),{onEscapeKeyDown:p,onInteractOutside:m}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`class`,`trap-focus`])]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),bu=(0,t.defineComponent)({__name:`DialogContentTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,transform:`translateY(5rem)`},animate:{opacity:1,transform:`translateY(0rem)`,transition:{duration:.6,bounce:0,type:`spring`}},exit:{opacity:0,transform:`translateY(5rem)`,transition:{duration:.3,bounce:0,type:`spring`}}},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),xu=(0,t.defineComponent)({__name:`DialogOverlay`,setup(e){let{isOpen:i,classConfig:a,customClassConfig:o,hideOverlay:s,style:c}=vu();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(i)&&!(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogOverlay),{key:0,"as-child":!0,"force-mount":!0,class:(0,t.normalizeClass)((0,t.unref)(c).overlay({class:(0,t.unref)(P)((0,t.unref)(o).overlay,(0,t.unref)(a)?.overlay)})),"data-dialog-overlay":``},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Su=(0,t.defineComponent)({__name:`DialogOverlayTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}))}}),Cu=(0,t.defineComponent)({__name:`DialogPortal`,setup(e){let{teleportTargetId:r}=vu(),i=(0,t.computed)(()=>r.value===null?null:`#${r.value}`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogPortal),{disabled:(0,t.unref)(r)===null,"force-mount":!0,to:i.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`disabled`,`to`]))}}),wu=(0,t.defineComponent)({__name:`DialogRoot`,props:(0,t.mergeModels)({teleportTargetId:{default:null},hideOverlay:{type:Boolean,default:!1},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},variant:{default:null},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`close`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>gu({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`dialog`,s.value,{variant:i.variant}));return(0,t.watch)(o,e=>{e||a(`close`)}),_u({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DialogRoot),{open:o.value,"onUpdate:open":r[0]||=e=>o.value=e,modal:!i.hideOverlay},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`,`modal`])]),_:3},8,[`test-id`]))}}),Tu=(0,t.defineComponent)({__name:`Dialog`,props:(0,t.mergeModels)({teleportTargetId:{default:null},hideOverlay:{type:Boolean,default:!1},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},variant:{},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`close`,`close_`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`),o=(0,t.useAttrs)();function s(){i(`close_`),i(`close`)}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(wu,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onClose:s}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Cu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Su)]),_:1}),(0,t.createVNode)(yu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bu,(0,t.normalizeProps)((0,t.guardReactiveProps)((0,t.unref)(o))),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16)]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Eu=(0,t.defineComponent)({__name:`DialogContainer`,setup(e){let{dialogs:n}=pu();return(e,r)=>((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.component),{key:e.id,"is-open":e.isOpen},null,8,[`is-open`]))),128))}}),Du=(0,t.defineComponent)({__name:`DialogCloseButton`,setup(e){let{classConfig:r,customClassConfig:a}=vu(),{t:o}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogClose),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(q,{"class-config":{...(0,t.unref)(a)?.closeButton,...(0,t.unref)(r)?.closeButton},label:(0,t.unref)(o)(`shared.close`),icon:`close`,variant:`tertiary`,size:`sm`},null,8,[`class-config`,`label`])])]),_:3}))}}),Ou=(0,t.defineComponent)({__name:`DialogDescription`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogDescription),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),ku=(0,t.defineComponent)({__name:`DialogTitle`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogTitle),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Au=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`data-[content-width=anchor-width]:w-(--reka-dropdown-menu-trigger-width) data-[content-width=available-width]:w-(--reka-dropdown-menu-content-available-width)`).withZIndex(`z-40`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withBase(`relative`).withSize(`size-full min-w-52`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).build(),group:new U().withPadding(`p-xs`).build(),item:new U().withBase(`group/dropdown-menu-item outline-none`).withSize(`w-full`).withGrid(`grid grid-cols-[auto_1fr_auto] items-center`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withBorderRadius(`rounded-sm`).withPadding(`p-md`).withBackgroundColor(`not-data-disabled:data-highlighted:bg-secondary-hover not-data-disabled:data-destructive:data-highlighted:bg-error-primary`).withTransition(`duration-200`).build(),itemIcon:new U().withSize(`size-4`).withColor(`text-secondary group-data-disabled/dropdown-menu-item:text-disabled group-data-destructive/dropdown-menu-item:text-error-primary`).withSpacing(`mr-md`).withTransition(`duration-200`).build(),itemLabel:new U().withColor(`text-secondary font-medium group-data-disabled/dropdown-menu-item:text-disabled group-data-destructive/dropdown-menu-item:text-error-primary`).withFontSize(`text-sm`).withTransition(`duration-200`).build(),label:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).build(),separator:new U().withHeight(`h-px`).withBackgroundColor(`bg-quaternary`).build(),subMenuArrowIcon:new U().withSize(`size-4`).withColor(`text-quaternary`).build()},variants:{variant:{}}}),[ju,Mu]=R(`dropdownMenuContext`),Nu=(0,t.defineComponent)({__name:`DropdownMenuArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=Mu();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-8 overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),Pu=(0,t.defineComponent)({__name:`DropdownMenuContent`,setup(e){let{isOpen:i,classConfig:a,customClassConfig:o,popoverAlign:s,popoverAlignOffset:c,popoverAnchorReferenceElement:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h,onCloseAutoFocus:g,onEscapeKeyDown:_}=Mu();return(e,v)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(i)?((0,t.openBlock)(),(0,t.createBlock)(jo,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(s),reference:(0,t.unref)(l)??void 0,"align-offset":(0,t.unref)(c),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(o).content,(0,t.unref)(a)?.content)})),"position-strategy":`absolute`,sticky:`always`,onCloseAutoFocus:(0,t.unref)(g),onEscapeKeyDown:(0,t.unref)(_)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`reference`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`,`onCloseAutoFocus`,`onEscapeKeyDown`])]),_:3})):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Fu=4,Iu=.9,Lu=(0,t.defineComponent)({__name:`DropdownMenuContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]),a=(0,t.ref)(null);function o(e){switch(e){case`top`:return{transform:`translateY(${Fu}px) scale(${Iu})`};case`bottom`:return{transform:`translateY(-${Fu}px) scale(${Iu})`};case`left`:return{transform:`translateX(${Fu}px) scale(${Iu})`};case`right`:return{transform:`translateX(-${Fu}px) scale(${Iu})`}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`motionRef`,ref:a,initial:{opacity:0,...o(i.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`},exit:{opacity:0,...o(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-dropdown-menu-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Ru=(0,t.defineComponent)({__name:`DropdownMenuPortal`,setup(e){let r=J();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuPortal),{to:(0,t.unref)(r).teleportTargetSelector},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`]))}}),zu=(0,t.defineComponent)({__name:`DropdownMenuRoot`,props:(0,t.mergeModels)({variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:10},popoverWidth:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`closeAutoFocus`,`escapeKeyDown`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>Au({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`dropdownMenu`,s.value,{variant:i.variant}));function u(e){a(`closeAutoFocus`,e)}function d(e){a(`escapeKeyDown`,e)}return ju({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c,onCloseAutoFocus:u,onEscapeKeyDown:d}),(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":e.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuRoot),{open:o.value,"onUpdate:open":i[0]||=e=>o.value=e},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`open`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Bu=(0,t.defineComponent)({__name:`DropdownMenuTrigger`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuTrigger),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Vu=(0,t.defineComponent)({__name:`DropdownMenu`,props:(0,t.mergeModels)({variant:{},testId:{},isDisabled:{type:Boolean},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`closeAutoFocus`,`escapeKeyDown`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(zu,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onCloseAutoFocus:n[1]||=e=>i(`closeAutoFocus`,e),onEscapeKeyDown:n[2]||=e=>i(`escapeKeyDown`,e)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Bu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3}),(0,t.createVNode)(Ru,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Pu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Nu)]),_:3})]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Hu=(0,t.defineComponent)({__name:`DropdownMenuGroup`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Mu(),o=(0,t.useAttrs)();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuGroup),{class:(0,t.normalizeClass)((0,t.unref)(a).group({class:(0,t.unref)(P)((0,t.unref)(i).group,(0,t.unref)(r)?.group,(0,t.unref)(o).class)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),[Uu,Wu]=R(`dropdownMenuItemContext`),Gu={key:1},Ku=(0,t.defineComponent)({__name:`DropdownMenuItemIcon`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Mu(),{icon:a}=Wu(),o=(0,t.useAttrs)();return(e,s)=>(0,t.unref)(a)===null?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Gu)):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,class:(0,t.normalizeClass)((0,t.unref)(i).itemIcon({class:(0,t.unref)(P)((0,t.unref)(r).itemIcon,(0,t.unref)(n)?.itemIcon,(0,t.unref)(o).class)})),icon:(0,t.unref)(a)},null,8,[`class`,`icon`]))}}),qu=(0,t.defineComponent)({__name:`DropdownMenuItemLabel`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Mu(),{label:a}=Wu(),o=(0,t.useAttrs)();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(i).itemLabel({class:(0,t.unref)(P)((0,t.unref)(r).itemLabel,(0,t.unref)(n)?.itemLabel,(0,t.unref)(o).class)}))},(0,t.toDisplayString)((0,t.unref)(a)),3))}}),Ju=(0,t.defineComponent)({__name:`DropdownMenuItem`,props:{isDestructive:{type:Boolean,default:!1},icon:{default:null},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:r}){let i=e,a=r,o=(0,t.useAttrs)(),{classConfig:s,customClassConfig:c,style:l}=Mu();return Uu(G(i)),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuItem),{"data-destructive":i.isDestructive||void 0,class:(0,t.normalizeClass)((0,t.unref)(l).item({class:(0,t.unref)(P)((0,t.unref)(c).item,(0,t.unref)(s)?.item,(0,t.unref)(o).class)})),onSelect:r[0]||=e=>a(`select`,e)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ku),(0,t.createVNode)(qu),(0,t.renderSlot)(e.$slots,`right`)])]),_:3},8,[`data-destructive`,`class`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Yu=(0,t.defineComponent)({__name:`DropdownMenuSeparator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Mu();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuSeparator),{class:(0,t.normalizeClass)((0,t.unref)(a).separator({class:(0,t.unref)(P)((0,t.unref)(i).separator,(0,t.unref)(r)?.separator)}))},null,8,[`class`]))}}),Xu=4,Zu=(0,t.defineComponent)({__name:`DropdownMenuSubMenuTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]);function a(e){switch(e){case`top`:return{x:0,y:Xu};case`bottom`:return{x:0,y:-4};case`left`:return{x:Xu,y:0};case`right`:return{x:-4,y:0}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...a(i.value)},animate:{opacity:1,x:0,y:0},exit:{opacity:0,...a(i.value)},transition:{duration:.1,type:`spring`,bounce:0},class:`data-[side=bottom]:origin-top data-[side=left]:origin-right data-[side=right]:origin-left data-[side=top]:origin-bottom`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Qu=(0,t.defineComponent)({__name:`DropdownMenuSubMenu`,props:{isDestructive:{type:Boolean,default:!1},icon:{default:null},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},setup(e){let i=e,{classConfig:a,customClassConfig:o,style:s}=Mu();return Uu(G(i)),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuSub),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuSubTrigger),{class:(0,t.normalizeClass)((0,t.unref)(s).item({class:(0,t.unref)(P)((0,t.unref)(o).item,(0,t.unref)(a)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`item`,{},()=>[(0,t.createVNode)(Ku),(0,t.createVNode)(qu),(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(s).subMenuArrowIcon({class:(0,t.unref)(P)((0,t.unref)(o).itemIcon,(0,t.unref)(a)?.itemIcon)})),icon:`chevronRight`},null,8,[`class`])])]),_:3},8,[`class`]),(0,t.createVNode)(Ru,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuSubContent),{"side-offset":6,"align-offset":-5,class:(0,t.normalizeClass)((0,t.unref)(s).content({class:(0,t.unref)(P)((0,t.unref)(o).content,(0,t.unref)(a)?.content)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Zu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3})]),_:3}))}}),$u=function(e){return e.INVALID_MIME_TYPE=`INVALID_MIME_TYPE`,e.PREPROCESSING_FAILED=`PREPROCESSING_FAILED`,e.UPLOAD_FAILED=`UPLOAD_FAILED`,e}({}),ed=function(e){return e.ERROR=`ERROR`,e.PENDING=`PENDING`,e.SUCCESS=`SUCCESS`,e.UPLOADING=`UPLOADING`,e}({}),[td,nd]=R(`fileUploadContext`),rd=(0,t.defineComponent)({__name:`FileUploadDropzone`,setup(e){let r=(0,t.ref)(!1),{isMultiple:i,onFilesSelected:a}=nd(),o=(0,t.ref)(null),{isOverDropZone:s}=Ee((0,t.computed)(()=>o.value?.$el??null),{multiple:i.value,onDrop:e=>{e!==null&&e.length>0&&a(e)}}),c=0;function l(e,t){switch(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),t){case`enter`:c+=1,r.value=!0;break;case`leave`:--c,c===0&&(r.value=!1);break;case`drop`:c=0,r.value=!1;break}}return O(document.body,`dragenter`,e=>l(e,`enter`)),O(document.body,`dragover`,e=>l(e,`over`)),O(document.body,`dragleave`,e=>l(e,`leave`)),O(document.body,`drop`,e=>l(e,`drop`)),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{ref_key:`dropzoneRef`,ref:o,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{isHoveringOverDropzone:(0,t.unref)(s),isHoveringOverPage:r.value})]),_:3},512))}}),id=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),ad=(e,t)=>{var n=``;for(let r=1;r<=t;r++){let i=Math.floor(e)/83**(t-r)%83;n+=id[Math.floor(i)]}return n},od=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},sd=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},cd=e=>e<0?-1:1,ld=(e,t)=>cd(e)*Math.abs(e)**+t,ud=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},dd=4,fd=(e,t,n,r)=>{let i=0,a=0,o=0,s=t*dd;for(let c=0;c<t;c++){let t=dd*c;for(let l=0;l<n;l++){let n=t+l*s,u=r(c,l);i+=u*od(e[n]),a+=u*od(e[n+1]),o+=u*od(e[n+2])}}let c=1/(t*n);return[i*c,a*c,o*c]},pd=e=>{let t=sd(e[0]),n=sd(e[1]),r=sd(e[2]);return(t<<16)+(n<<8)+r},md=(e,t)=>{let n=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[0]/t,.5)*9+9.5)))),r=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[1]/t,.5)*9+9.5)))),i=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[2]/t,.5)*9+9.5))));return n*19*19+r*19+i},hd=(e,t,n,r,i)=>{if(r<1||r>9||i<1||i>9)throw new ud(`BlurHash must have between 1 and 9 components`);if(t*n*4!==e.length)throw new ud(`Width and height must match the pixels array`);let a=[];for(let o=0;o<i;o++)for(let i=0;i<r;i++){let r=i==0&&o==0?1:2,s=fd(e,t,n,(e,a)=>r*Math.cos(Math.PI*i*e/t)*Math.cos(Math.PI*o*a/n));a.push(s)}let o=a[0],s=a.slice(1),c=``,l=r-1+(i-1)*9;c+=ad(l,1);let u;if(s.length>0){let e=Math.max(...s.map(e=>Math.max(...e))),t=Math.floor(Math.max(0,Math.min(82,Math.floor(e*166-.5))));u=(t+1)/166,c+=ad(t,1)}else u=1,c+=ad(0,1);return c+=ad(pd(o),4),s.forEach(e=>{c+=ad(md(e,u),2)}),c},gd=class{static async encode(e){if(!e.type.startsWith(`image/`))return null;let t=await this.loadImage(URL.createObjectURL(e)),n=this.getClampedSize(t.width,t.height,32),r=this.getImageData(t,n.width,n.height);try{return hd(r.data,r.width,r.height,4,4)}catch{return null}}static getClampedSize(e,t,n){return e>=t&&e>n?{height:Math.round(t/e*n),width:n}:t>e&&t>n?{height:n,width:Math.round(e/t*n)}:{height:t,width:e}}static getImageData(e,t,n){let r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);return i.drawImage(e,0,0,t,n),i.getImageData(0,0,t,n)}static loadImage(e){return new Promise((t,n)=>{let r=new Image;r.addEventListener(`load`,()=>t(r)),r.addEventListener(`error`,(...e)=>n(e)),r.src=e})}},[_d,vd]=R(`fileUploadItemContext`),yd=(0,t.defineComponent)({__name:`FileUploadItem`,props:{item:{}},setup(e){let n=e,{isPublic:r,confirmUpload:i,getFileInfo:a,preprocess:o,onError:s,onRemoveFileUploadItem:c,onReplaceFileUploadItem:l,onStartUpload:u,onSuccess:d,onUpdateProgress:f}=nd();async function p(){let{name:e,mimeType:t}=n.item;try{return await a(e,t)}catch{s(n.item,$u.UPLOAD_FAILED)}return null}function m(e,t,i){u(n.item,e);let a=new XMLHttpRequest,o=new Blob([i]);a.upload.addEventListener(`progress`,e=>{if(e.lengthComputable){let t=Math.round(e.loaded/e.total*100);f(n.item,t)}}),a.onload=()=>{a.status>=200&&a.status<300?d(n.item):s(n.item,$u.UPLOAD_FAILED)},a.onerror=()=>{s(n.item,$u.UPLOAD_FAILED)},a.open(`PUT`,t,!0),a.setRequestHeader(`Content-Type`,i.type),r.value?a.setRequestHeader(`x-amz-acl`,`public-read`):a.setRequestHeader(`x-amz-acl`,`private`),a.setRequestHeader(`x-ms-blob-type`,`BlockBlob`),a.send(o)}async function h(){let e=await p();if(e===null)return;let{uuid:t,uploadUrl:r}=e,{file:a}=n.item,c=a;if(o!==null)try{c=await o(a)}catch{s(n.item,$u.PREPROCESSING_FAILED);return}m(t,r,c),i(t,await gd.encode(c))}function g(){}return n.item.status===ed.PENDING&&h(),_d({item:(0,t.computed)(()=>n.item),onCancel:g,onRemove:()=>c(n.item),onReplace:e=>l(n.item,e)}),(e,r)=>(0,t.renderSlot)(e.$slots,`default`,{onRemove:()=>(0,t.unref)(c)(n.item),onReplace:e=>(0,t.unref)(l)(n.item,e)})}}),bd=(0,t.defineComponent)({__name:`FileUploadItemRemove`,setup(e){let{onRemove:r}=vd();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),xd=(0,t.defineComponent)({__name:`FileUploadItemReplace`,setup(e){let{isDisabled:r,isMultiple:i,accept:a}=nd(),{onReplace:o}=vd(),s=je();s.onChange(e=>{if(e===null)return;let[t]=Array.from(e);t!==void 0&&o(t)});function c(){s.open({accept:a.value.join(`, `),multiple:i.value})}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`is-disabled`]))}});function Sd(e,t,n=ed.PENDING){return{uuid:``,isSyncedWithModelValue:!1,name:e.name,file:e,key:`${Math.random()}`,mimeType:e.type,order:t,status:n,url:URL.createObjectURL(e)}}function Cd(e,t){return{...e,isSyncedWithModelValue:!0,status:t}}var wd=(0,t.defineComponent)({__name:`FileUploadRoot`,props:(0,t.mergeModels)({isPublic:{type:Boolean,default:!1},isValidFile:{type:[Function,null],default:null},accept:{},confirmUpload:{},getFileInfo:{},preprocess:{type:[Function,null],default:null},isDisabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`filesRejected`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.computed)(()=>Array.isArray(a.value)),s=(0,t.computed)({get:()=>Array.isArray(a.value)?a.value.map(e=>Cd(e,ed.SUCCESS)):a.value===null?[]:[Cd(a.value,ed.SUCCESS)],set:e=>{if(o.value)a.value=e.map(e=>({uuid:e.uuid,name:e.name,blurHash:e.blurHash,mimeType:e.mimeType,order:e.order,url:e.url}));else{let t=e[0]??null;if(t===null){a.value=null;return}a.value={uuid:t.uuid,name:t.name,blurHash:t.blurHash,mimeType:t.mimeType,order:t.order,url:t.url}}}}),c=(0,t.ref)([]),l=(0,t.computed)(()=>[...s.value.filter(e=>c.value.some(t=>t.uuid===e.uuid)?!e.isSyncedWithModelValue:!0),...c.value].toSorted((e,t)=>e.order-t.order).slice(o.value?void 0:-1));function u(e,t){return t.some(t=>{if(t===`*/*`)return!0;if(t.endsWith(`/*`)){let[n]=t.split(`/`);return e.type.startsWith(`${n}/`)}return e.type===t})}function d(e){let t=e;t=t.filter(e=>u(e,r.accept)),t=r.isValidFile===null?t:e.filter(e=>r.isValidFile(e)),t=t.slice(0,o.value?void 0:1);let n=e.filter(e=>!t.includes(e));if(n.length>0&&i(`filesRejected`,n),o.value)c.value.push(...t.map((e,t)=>Sd(e,t+s.value.length)));else{let[e]=t;if(e===void 0)return;c.value=[Sd(e,0)]}}function f(e,t){c.value=c.value.map(n=>n.key===e?{...n,...t}:n)}function p(e,t){f(e.key,{uuid:t,progress:0,status:ed.UPLOADING})}function m(e,t){f(e.key,{progress:t,status:ed.UPLOADING})}function h(e){let t={...e,isSyncedWithModelValue:!0,blurHash:null,status:ed.SUCCESS};f(e.key,t),o.value?s.value=[...s.value.filter(t=>t.uuid!==e.uuid),t]:s.value=[t]}function g(e,t){f(e.key,{errorMessage:t,status:ed.ERROR})}function _(e){c.value=c.value.filter(t=>t.key!==e.key),s.value=s.value.filter(t=>t.uuid!==e.uuid)}function v(e,t){s.value=s.value.filter(t=>t.uuid!==e.uuid),c.value.some(t=>t.key===e.key)?f(e.key,Sd(t,e.order)):c.value=[...c.value,Sd(t,e.order)]}return td({...G(r),isMultiple:o,preprocess:r.preprocess,onError:g,onFilesSelected:d,onRemoveFileUploadItem:_,onReplaceFileUploadItem:v,onStartUpload:p,onSuccess:h,onUpdateProgress:m}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`,{items:l.value})}}),Td=(0,t.defineComponent)({__name:`FileUploadTrigger`,setup(e){let{isDisabled:r,isMultiple:i,accept:a,onFilesSelected:o}=nd(),s=je();s.onChange(e=>{e!==null&&o(Array.from(e))});function c(){s.open({accept:a.value.join(`, `),multiple:i.value})}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`is-disabled`]))}}),Ed=H({slots:{key:new U().withBase(`text-center font-sans capitalize`).withBackgroundColor(`dark:bg-secondary`).withFontSize(`text-[0.6875rem]`).withColor(`text-tertiary`).withSize(`h-5 min-w-5`).withPadding(`px-xs`).withFlex(`flex items-center justify-center`).withBorderRadius(`rounded-xs`).withShadow(`shadow-keyboard-key`).build()},variants:{variant:{}}}),Dd=(0,t.defineComponent)({__name:`KeyboardKey`,props:{keyboardKey:{},variant:{default:null},classConfig:{default:null}},setup(e){let n=e,r=/windows/i,{theme:i}=W(),a=(0,t.computed)(()=>r.test(navigator.userAgent)),o=new Map([[`alt`,`⌥`],[`arrowdown`,`↓`],[`arrowleft`,`←`],[`arrowright`,`→`],[`arrowup`,`↑`],[`backspace`,`⌫`],[`ctrl`,`⌃`],[`enter`,`↵`],[`escape`,`ESC`],[`meta`,`⌘`],[`shift`,`⇧`]]),s=new Map([[`alt`,`Alt`],[`arrowdown`,`↓`],[`arrowleft`,`←`],[`arrowright`,`→`],[`arrowup`,`↑`],[`backspace`,`Backspace`],[`ctrl`,`Ctrl`],[`enter`,`Enter`],[`escape`,`Esc`],[`meta`,`Win`],[`shift`,`Shift`]]),c=(0,t.computed)(()=>Ed({variant:n.variant??void 0})),l=(0,t.computed)(()=>N(`keyboardKey`,i.value,{variant:n.variant})),u=(0,t.computed)(()=>(a.value?s:o).get(n.keyboardKey)??n.keyboardKey);return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`kbd`,{class:(0,t.normalizeClass)(c.value.key({class:(0,t.unref)(P)(l.value.key,n.classConfig?.key)}))},(0,t.toDisplayString)(u.value),3))}}),Od=H({slots:{root:new U().withFlex(`flex items-center gap-x-1`).build(),thenLabel:new U().withBase(`font-regular`).withFontSize(`text-xs`).withColor(`text-tertiary`).build()},variants:{variant:{}}}),kd=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;function Ad(){return kd.test(navigator.userAgent)}var jd=(0,t.defineComponent)({__name:`KeyboardShortcut`,props:{keyboardKeys:{},variant:{},classConfig:{default:null}},setup(e){let n=e,{areKeyboardShortcutHintsHidden:r}=J(),{theme:a}=W(),{t:o}=(0,i.useI18n)();function s(e){return e===`ctrl`||e===`shift`||e===`alt`||e===`meta`}let c=(0,t.computed)(()=>!n.keyboardKeys.some(e=>s(e))),l=(0,t.computed)(()=>Od()),u=(0,t.computed)(()=>N(`keyboardShortcut`,a.value,{variant:n.variant}));return(i,a)=>!(0,t.unref)(r)&&!(0,t.unref)(Ad)()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)(l.value.root({class:(0,t.unref)(P)(u.value.root,n.classConfig?.root)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keyboardKeys,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:r},[(0,t.createVNode)(Dd,{"keyboard-key":e,"class-config":(0,t.unref)(ln)(u.value.keyboardKey,n.classConfig?.keyboardKey)},null,8,[`keyboard-key`,`class-config`]),r<n.keyboardKeys.length-1&&c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)(l.value.thenLabel({class:(0,t.unref)(P)(u.value.thenLabel,n.classConfig?.thenLabel)}))},(0,t.toDisplayString)((0,t.unref)(o)(`component.keyboard_shortcut.then`)),3)):(0,t.createCommentVNode)(``,!0)],64))),128))],2)):(0,t.createCommentVNode)(``,!0)}}),Md=1e3,Nd=new Map([[`Control`,`ctrl`]]);function Pd(e){let n=(0,t.getCurrentInstance)(),r=[],{isDisabled:i,element:a=typeof window<`u`?document:null,keys:o,onTrigger:s}=e,c=o.some(l)?`combination`:`sequence`;function l(e){return e===`ctrl`||e===`shift`||e===`alt`||e===`meta`||e===`escape`}function u(e){let t=[];e.shiftKey&&e.key!==`Shift`&&t.push(`shift`),e.ctrlKey&&e.key!==`Control`&&t.push(`ctrl`),e.altKey&&e.key!==`Alt`&&t.push(`alt`),e.metaKey&&e.key!==`Meta`&&t.push(`meta`);let n=Nd.get(e.key)??e.key.toLowerCase();return t.push(n),t}function d(){return typeof document>`u`?!1:document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||document.activeElement?.attributes.getNamedItem(`contenteditable`)?.value!==void 0}function f(e){if(c===`combination`)return e.every(e=>o.includes(e))&&e.length===o.length;if(c===`sequence`){let t=[...r,...e];if(e.some(e=>l(e)))return!1;let n=t.slice(-o.length);return n.every((e,t)=>e===o[t])&&n.length===o.length}return!1}function p(e){if(i?.value===!0||c===`sequence`&&d())return;let t=e,n=u(t);f(n)&&s(t),r.push(...n),setTimeout(()=>{r.splice(0,n.length)},Md)}function m(){a!==null&&a.removeEventListener(`keydown`,p)}return(0,t.onMounted)(()=>{a!==null&&a.addEventListener(`keydown`,p)}),n!==null&&(0,t.onBeforeUnmount)(()=>{m()}),{unbind:m}}var Fd=(0,t.defineComponent)({__name:`KeyboardShortcutProvider`,props:{isDisabled:{type:Boolean,default:!1},keyboardKeys:{},preventDefault:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1}},setup(e){let n=e,r=(0,t.ref)(null);function i(e){if([`A`,`BUTTON`,`INPUT`,`TEXTAREA`,`SELECT`,`DETAILS`].includes(e.tagName)){let t=e;return!t.hasAttribute(`disabled`)&&t.tabIndex>=0&&!t.hidden}let t=e;return t.tabIndex>=0&&!t.hidden}function a(e){let t=Array.from(e.querySelectorAll(`a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [contenteditable]`));for(let e of t)if(i(e))return e;return null}function o(e){let t=e.parentElement;for(;t;){if(t.hasAttribute(`aria-hidden`))return t.getAttribute(`aria-hidden`)===`true`;t=t.parentElement}return!1}return Pd({isDisabled:(0,t.computed)(()=>n.isDisabled),keys:n.keyboardKeys,onTrigger:e=>{if(r.value===null)return;let t=a(r.value);t!==null&&((n.preventDefault??!1)&&e.preventDefault(),(n.stopPropagation??!1)&&e.stopPropagation(),!o(t)&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`?t.focus():t.click()))}}),(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`wrapperRef`,ref:r},[(0,t.renderSlot)(e.$slots,`default`,{keys:n.keyboardKeys})],512))}}),[Id,Ld]=R(`layoutStackContext`),Rd=(0,t.defineComponent)({__name:`LayoutStackItem`,props:{maxDepth:{default:2}},setup(e){let n=e,i=(0,t.ref)(null),{height:a,width:o}=Oe(i),{addToStack:s,getDepth:c,removeFromStack:l}=Ld(),u=(0,t.useId)(),d=(0,t.ref)(!1);s(u);let f=(0,t.computed)(()=>c(u)),p=(0,t.computed)(()=>o.value===0||a.value===0?1:1-f.value*.05*(o.value/a.value)),m=(0,t.computed)(()=>o.value===0||a.value===0?0:-f.value*50);return(0,t.onMounted)(()=>{setTimeout(()=>{d.value=!0},0)}),(0,t.onBeforeUnmount)(()=>{l(u)}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`layoutStackItemRef`,ref:i,initial:{y:`20%`,opacity:0},exit:{opacity:0,y:`20%`},animate:{y:m.value,scale:p.value,filter:`brightness(${1-f.value*.1}) blur(${f.value}px)`,opacity:f.value>n.maxDepth?0:1},transition:{duration:.6,type:`spring`,bounce:.2}},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`animate`]))}}),zd=(0,t.defineComponent)({__name:`LayoutStackRoot`,setup(e){let n=(0,t.ref)([]);function r(e){return n.value.push(e),n.value.length-1}function i(e){n.value=n.value.filter(t=>t!==e)}function a(e){return n.value.toReversed().indexOf(e)}return Id({addToStack:r,getDepth:a,removeFromStack:i,stack:(0,t.computed)(()=>n.value)}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`)}}),Bd=(0,t.defineComponent)({__name:`TextFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=fo();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),Vd={class:`sr-only`},Hd=(0,t.defineComponent)({__name:`TextFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=fo(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Vd,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),Ud=(0,t.defineComponent)({__name:`TextField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},type:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(vo,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(po),(0,t.createVNode)(ho),(0,t.createVNode)(Hd),(0,t.createVNode)(Bd),(0,t.renderSlot)(e.$slots,`right`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Wd=(0,t.defineComponent)({__name:`PasswordField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),{t:a}=(0,i.useI18n)(),o=(0,t.ref)(!1),s=(0,t.computed)(()=>o.value?`text`:`password`),c=(0,t.computed)(()=>o.value?`eyeOff`:`eye`),l=(0,t.computed)(()=>o.value?a(`component.password_field.hide_password`):a(`component.password_field.show_password`));function u(){o.value=!o.value}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(Ud,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,type:s.value}),{left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),right:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{icon:c.value,label:l.value,"is-disabled":n.isDisabled,"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`,onClick:u},null,8,[`icon`,`label`,`is-disabled`])]),_:3},16,[`modelValue`,`type`]))}}),Gd={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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|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,[[`(?:(?:241|349)0\\d\\d|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])|[34]\\d\\d)|91(?:(?:[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}|(?: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])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|2[23]`],`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|44)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-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`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`(?:590\\d|7090)\\d{5}|(?: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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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)?`,`8001\\d{5}|(?:[2-467]\\d|50)\\d{6}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[235]|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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\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`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],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-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|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|7[39])|9(?:0[25]|42))[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(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[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[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\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{2})(\\d{4})`,`$1 $2 $3`,[`2`],`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`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`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,12],[[`(\\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{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\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(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`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])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\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`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[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[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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,10,11,12],[[`(\\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{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`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{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`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|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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-3]))|(?: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|7093)\\d{5}|(?:80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|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|180020`,`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|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]`],`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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{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`,[`6|7[245]`],`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-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[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]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\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|180020`,`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|8(?:28[235-7]|3))|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])\\d|8(?:[14-6]\\d|2[0-79]))|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`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[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,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\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]|43`]],[`(\\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`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[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]],[`3[2-8]\\d{9,10}`,[11,12]],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|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\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|427|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`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-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`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`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`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,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`,[`[36]0|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,`33622|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`,[`3`],`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-6]|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`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`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]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,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|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|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{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,0,[[`5(?:(?:18|4[0679]|5[03])\\d|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]))\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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]|[67]\\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`,[`[67]`],`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|7090)\\d{5}|(?: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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`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|7091)\\d{5}|(?:69|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`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]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,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[0467]`]]]],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`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`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`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],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|8\\d\\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-7])`],`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[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`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[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|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,0,[[`336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`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`,`(?:[15]\\d|800|92)\\d{7}`,[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{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\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,12],[[`(\\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-9]|[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]|7[67]|9[2-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-8]\\d|90)\\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-9]`]]]],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`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\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-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`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|30|[689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],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|66)\\d{7}`,[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(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],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|71)\\d{6}`,[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`,[`[67]`],`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,[[`(?:2742|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|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-57-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]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|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-3589]|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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\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`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],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,12],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|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\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`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\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`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`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`,`7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}`,[9],0,`0`,0,0,0,0,0,[[`269(?:0[0-467]|15|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])|7093[5-7])\\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|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`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}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],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,[`348[57]\\d{7}`,[11]],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 Kd(e,t){var n=Array.prototype.slice.call(t);return n.push(Gd),e.apply(this,n)}function qd(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Jd={}.constructor;function Yd(e){return e!=null&&e.constructor===Jd}function Xd(e){"@babel/helpers - typeof";return Xd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Xd(e)}function Zd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ef(r.key),r)}}function $d(e,t,n){return t&&Qd(e.prototype,t),n&&Qd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ef(e){var t=tf(e,`string`);return Xd(t)==`symbol`?t:t+``}function tf(e,t){if(Xd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Xd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nf=`1.2.0`,rf=`1.7.35`,af=` ext. `,of=/^\d+$/,Z=function(){function e(t){Zd(this,e),ff(t),this.metadata=t,gf.call(this,t)}return $d(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return!0}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){if(e&&of.test(e)&&(t=e,e=null),e&&e!==`001`){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new sf(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new sf(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[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(e){return this.numberingPlan.type(e)}},{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(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),sf=function(){function e(t,n){Zd(this,e),this.globalMetadataObject=n,this.metadata=t,gf.call(this,n.metadata)}return $d(e,[{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(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new cf(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[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(e){if(this.hasTypes()&&df(this.types(),e))return new uf(df(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?af:this.metadata[13]||af}}])}(),cf=function(){function e(t,n){Zd(this,e),this._format=t,this.metadata=n}return $d(e,[{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()&&!lf.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),lf=/^\(?\$1\)?$/,uf=function(){function e(t,n){Zd(this,e),this.type=t,this.metadata=n}return $d(e,[{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()}}])}();function df(e,t){switch(t){case`FIXED_LINE`:return e[0];case`MOBILE`:return e[1];case`TOLL_FREE`:return e[2];case`PREMIUM_RATE`:return e[3];case`PERSONAL_NUMBER`:return e[4];case`VOICEMAIL`:return e[5];case`UAN`:return e[6];case`PAGER`:return e[7];case`VOIP`:return e[8];case`SHARED_COST`:return e[9]}}function ff(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Yd(e)||!Yd(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${Yd(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+pf(e)+`: `+e}.`)}var pf=function(e){return Xd(e)};function mf(e,t){if(t=new Z(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function hf(e,t){return t.countries.hasOwnProperty(e)}function gf(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?qd(t,nf)===-1?this.v2=!0:qd(t,rf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function _f(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vf(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(e,t){if(e){if(typeof e==`string`)return yf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(e,t):void 0}}function yf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bf(e,t){for(var n=e.slice(),r=_f(t),i;!(i=r()).done;){var a=i.value;e.indexOf(a)<0&&n.push(a)}return n.sort(function(e,t){return e-t})}function xf(e,t,n){return Sf(e,t,void 0,n)}function Sf(e,t,n,r){t&&(r=new Z(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return`IS_POSSIBLE`;if(n===`FIXED_LINE_OR_MOBILE`){if(!r.type(`FIXED_LINE`))return Sf(e,t,`MOBILE`,r);var o=r.type(`MOBILE`);o&&(a=bf(a,o.possibleLengths()))}else if(n&&!i)return`INVALID_LENGTH`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function Cf(e,t,n){if(t===void 0&&(t={}),n=new Z(n),t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return wf(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function wf(e,t,n){switch(xf(e,t,n)){case`IS_POSSIBLE`:return!0;default:return!1}}function Tf(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function Ef(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Df(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Df(e,t){if(e){if(typeof e==`string`)return Of(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Of(e,t):void 0}}function Of(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kf=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Af(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){n=new Z(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Tf(r,n.nationalNumberPattern())){if(jf(r,`FIXED_LINE`,n))return n.type(`MOBILE`)&&n.type(`MOBILE`).pattern()===``||!n.type(`MOBILE`)||jf(r,`MOBILE`,n)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var i=Ef(kf),a;!(a=i()).done;){var o=a.value;if(jf(r,o,n))return o}}}}function jf(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Tf(e,t.pattern())}function Mf(e,t,n){return t||={},n=new Z(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?Af(e,t,n.metadata)!==void 0:Tf(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}function Nf(e,t,n){var r=new Z(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return Pf(t,e,n)}):[]}function Pf(e,t,n){var r=new Z(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Q=`0-90-9٠-٩۰-۹`,Ff=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,If=`++`,Lf=RegExp(`([`+Q+`])`);function Rf(e,t,n,r){if(t){var i=new Z(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(Lf);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function zf(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else{var c=r[0];i=e.slice(c.length),s&&(a=r[1])}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix())}else l=r[0];return{nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return{nationalNumber:e}}function Bf(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Vf(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vf(e,t){if(e){if(typeof e==`string`)return Hf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hf(e,t):void 0}}function Hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uf(e,t){var n=t.countries,r=t.metadata;r=new Z(r);for(var i=Bf(n),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Af({phone:e,country:o},void 0,r.metadata))return o}}var Wf=!1;function Gf(e,t){var n=t.nationalNumber,r=t.metadata;if(Wf&&r.isNonGeographicCallingCode(e))return`001`;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Uf(n,{countries:i,metadata:r.metadata})}function Kf(e,t,n){var r=zf(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!qf(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=Gf(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!Jf(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function qf(e,t,n){return!(Tf(e,n.nationalNumberPattern())&&!Tf(t,n.nationalNumberPattern()))}function Jf(e,t,n){switch(xf(e,t,n)){case`TOO_SHORT`:case`INVALID_LENGTH`:return!1;default:return!0}}function Yf(e,t,n,r,i){var a=t||n?mf(t||n,i):r;if(e.indexOf(a)===0){i=new Z(i),i.selectNumberingPlan(t||n,a);var o=e.slice(a.length),s=Kf(o,t,i).nationalNumber,c=Kf(e,t,i).nationalNumber;if(!Tf(c,i.nationalNumberPattern())&&Tf(s,i.nationalNumberPattern())||xf(c,t,i)===`TOO_LONG`)return{countryCallingCode:a,number:o}}return{number:e}}function Xf(e,t,n,r,i){if(!e)return{};var a;if(e[0]!==`+`){var o=Rf(e,t||n,r,i);if(o&&o!==e)a=!0,e=`+`+o;else{if(t||n||r){var s=Yf(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return{countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return{number:e}}}if(e[1]===`0`)return{};i=new Z(i);for(var u=2;u-1<=3&&u<=e.length;){var d=e.slice(1,u);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:d,number:e.slice(u)};u++}return{}}function Zf(e){return e.replace(RegExp(`[${Ff}]+`,`g`),` `).trim()}var Qf=/(\$\d)/;function $f(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Qf,t.nationalPrefixFormattingRule()):t.format());return r?Zf(a):a}var ep=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function tp(e,t,n){var r=new Z(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(ep.test(r.IDDPrefix()))return r.IDDPrefix()}var np=`;ext=`,rp=function(e){return`([${Q}]{1,${e}})`};function ip(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=np+rp(t),m=a+c+o+rp(t)+s,h=a+l+o+rp(r)+s,g=u+rp(i)+`#`,_=d+f+o+rp(n)+s,v=d+`(?:,)+`+o+rp(r)+s;return p+`|`+m+`|`+h+`|`+g+`|`+_+`|`+v}var ap=`[`+Q+`]{2}`,op=`[`+If+`]{0,1}(?:[`+Ff+`]*[`+Q+`]){3,}[`+Ff+Q+`]*`,sp=RegExp(`^[`+If+`]{0,1}(?:[`+Ff+`]*[`+Q+`]){1,2}$`,`i`),cp=op+`(?:`+ip()+`)?`,lp=RegExp(`^`+ap+`$|^`+cp+`$`,`i`);function up(e){return e.length>=2&&lp.test(e)}function dp(e){return sp.test(e)}function fp(e){var t=e.number,n=e.ext;if(!t)return``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return`tel:${t}${n?`;ext=`+n:``}`}var pp={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function mp(e,t,n,r){if(n=n?yp({},pp,n):pp,r=new Z(r),e.country&&e.country!==`001`){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case`NATIONAL`:return a?(o=hp(a,e.carrierCode,`NATIONAL`,r,n),_p(o,e.ext,r,n.formatExtension)):``;case`INTERNATIONAL`:return a?(o=hp(a,null,`INTERNATIONAL`,r,n),o=`+${i} ${o}`,_p(o,e.ext,r,n.formatExtension)):`+${i}`;case`E.164`:return`+${i}${a}`;case`RFC3966`:return fp({number:`+${i}${a}`,ext:e.ext});case`IDD`:if(!n.fromCountry)return;var s=vp(a,e.carrierCode,i,n.fromCountry,r);return s?_p(s,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function hp(e,t,n,r,i){var a=gp(r.formats(),e);return a?$f(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function gp(e,t){return bp(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return Tf(t,e.pattern())})}function _p(e,t,n,r){return t?r(e,t,n):e}function vp(e,t,n,r,i){if(mf(r,i.metadata)===n){var a=hp(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=tp(r,void 0,i.metadata);if(o)return`${o} ${n} ${hp(e,null,`INTERNATIONAL`,i)}`}function yp(){for(var e=1,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function bp(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function xp(e){"@babel/helpers - typeof";return xp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xp(e)}function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sp(Object(n),!0).forEach(function(t){wp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wp(e,t,n){return(t=Op(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ep(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Op(r.key),r)}}function Dp(e,t,n){return t&&Ep(e.prototype,t),n&&Ep(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Op(e){var t=kp(e,`string`);return xp(t)==`symbol`?t:t+``}function kp(e,t){if(xp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ap=!1,jp=function(){function e(t,n,r){if(Tp(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(Yd(n)&&Yd(n.countries)){r=n;var i=t;if(!Pp.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Xf(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");ff(r);var s=Np(t,r),c=s.country,l=s.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Dp(e,[{key:`setExt`,value:function(e){this.ext=e}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:Nf(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Cf(this,{v2:!0},this.getMetadata())}},{key:`isValid`,value:function(){return Mf(this,{v2:!0},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Z(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Af(this,{v2:!0},this.getMetadata())}},{key:`format`,value:function(e,t){return mp(this,e,t?Cp(Cp({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),Mp=function(e){return/^[A-Z]{2}$/.test(e)};function Np(e,t){var n,r,i=new Z(t);return Mp(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,Ap&&i.isNonGeographicCallingCode(r)&&(n=`001`)),{country:n,countryCallingCode:r}}var Pp=/^\+\d+$/;function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Fp(e)}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Rp(r.key),r)}}function Lp(e,t,n){return t&&Ip(e.prototype,t),n&&Ip(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rp(e){var t=zp(e,`string`);return Fp(t)==`symbol`?t:t+``}function zp(e,t){if(Fp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Fp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Bp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Vp(e,t,n){return t=Xp(t),Hp(e,qp()?Reflect.construct(t,n||[],Xp(e).constructor):t.apply(e,n))}function Hp(e,t){if(t&&(Fp(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Up(e)}function Up(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Wp(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yp(e,t)}function Gp(e){var t=typeof Map==`function`?new Map:void 0;return Gp=function(e){if(e===null||!Jp(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Kp(e,arguments,Xp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Yp(n,e)},Gp(e)}function Kp(e,t,n){if(qp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Yp(i,n.prototype),i}function qp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qp=function(){return!!e})()}function Jp(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yp(e,t)}function Xp(e){return Xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xp(e)}var Zp=function(e){function t(e){var n;return Bp(this,t),n=Vp(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return Wp(t,e),Lp(t)}(Gp(Error)),Qp=RegExp(`(?:`+ip()+`)$`,`i`);function $p(e){var t=e.search(Qp);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Qp),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function em(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=tm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(e,t){if(e){if(typeof e==`string`)return nm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nm(e,t):void 0}}function nm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rm={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 im(e){return rm[e]}function am(e){for(var t=``,n=em(e.split(``)),r;!(r=n()).done;){var i=r.value,a=im(i);a&&(t+=a)}return t}function om(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sm(e,t){if(e){if(typeof e==`string`)return cm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cm(e,t):void 0}}function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lm(e){for(var t=``,n=om(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=um(i,t)||``}return t}function um(e,t,n){if(e===`+`){if(t){typeof n==`function`&&n(`end`);return}return`+`}return im(e)}var dm=`([`+Q+`]|[\\-\\.\\(\\)]?)`,fm=`^\\+`+dm+`*[`+Q+`]`+dm+`*$`,pm=new RegExp(fm,`g`),mm=Q,hm=`[`+mm+`]+((\\-)*[`+mm+`])*`,gm=`[a-zA-Z]+((\\-)*[`+mm+`])*`,_m=`^(`+hm+`\\.)*`+gm+`\\.?$`,vm=new RegExp(_m,`g`),ym=`tel:`,bm=`;phone-context=`,xm=`;isub=`;function Sm(e){var t=e.indexOf(bm);if(t<0)return null;var n=t+bm.length;if(n>=e.length)return``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Cm(e){return e===null?!0:e.length===0?!1:pm.test(e)||vm.test(e)}function wm(e,t){var n=t.extractFormattedPhoneNumber,r=Sm(e);if(!Cm(r))throw new Zp(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else{i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(ym),o=a>=0?a+ym.length:0,s=e.indexOf(bm);i+=e.substring(o,s)}var c=i.indexOf(xm);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Tm=250,Em=RegExp(`[`+If+Q+`]`),Dm=RegExp(`[^`+Q+`#]+$`),Om=!1;function km(e,t,n){if(t||={},n=new Z(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Zp(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var r=jm(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o===`TOO_SHORT`?new Zp(`TOO_SHORT`):new Zp(`NOT_A_NUMBER`);return{}}var s=Nm(i,t.defaultCountry,t.defaultCallingCode,n),c=s.country,l=s.nationalNumber,u=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Zp(`INVALID_COUNTRY`);return{}}if(!l||l.length<2){if(t.v2)throw new Zp(`TOO_SHORT`);return{}}if(l.length>17){if(t.v2)throw new Zp(`TOO_LONG`);return{}}if(t.v2){var p=new jp(u,l,n.metadata);return c&&(p.country=c),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=d,p}var m=(t.extended?n.hasSelectedNumberingPlan():c)?Tf(l,n.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:m,possible:m?!0:!!(t.extended===!0&&n.possibleLengths()&&wf(l,c,n)),phone:l,ext:a}:m?Mm(c,l,a):{}}function Am(e,t,n){if(e){if(e.length>Tm){if(n)throw new Zp(`TOO_LONG`);return}if(t===!1)return e;var r=e.search(Em);if(!(r<0))return e.slice(r).replace(Dm,``)}}function jm(e,t,n){var r=wm(e,{extractFormattedPhoneNumber:function(e){return Am(e,n,t)}});if(!r)return{};if(!up(r))return dp(r)?{error:`TOO_SHORT`}:{};var i=$p(r);return i.ext?i:{number:r}}function Mm(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Nm(e,t,n,r){var i=Xf(lm(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,c;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))r.selectNumberingPlan(t,n),t?c=t:Om&&r.isNonGeographicCallingCode(n)&&(c=`001`),o=n||mf(t,r.metadata);else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:o};var l=Kf(lm(s),c,r),u=l.nationalNumber,d=l.carrierCode,f=Gf(o,{nationalNumber:u,metadata:r});return f&&(c=f,f===`001`||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:d}}function Pm(e){"@babel/helpers - typeof";return Pm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pm(e)}function Fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fm(Object(n),!0).forEach(function(t){Lm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lm(e,t,n){return(t=Rm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(e){var t=zm(e,`string`);return Pm(t)==`symbol`?t:t+``}function zm(e,t){if(Pm(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pm(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Bm(e,t,n){return km(e,Im(Im({},t),{},{v2:!0}),n)}function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vm(e)}function Hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Um(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hm(Object(n),!0).forEach(function(t){Wm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wm(e,t,n){return(t=Gm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gm(e){var t=Km(e,`string`);return Vm(t)==`symbol`?t:t+``}function Km(e,t){if(Vm(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Vm(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qm(e,t){return Qm(e)||Zm(e,t)||Ym(e,t)||Jm()}function Jm(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ym(e,t){if(e){if(typeof e==`string`)return Xm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xm(e,t):void 0}}function Xm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zm(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Qm(e){if(Array.isArray(e))return e}function $m(e){var t=qm(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=Um({defaultCountry:r},s));else if(Yd(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return{text:o,options:s,metadata:c}}function eh(e){"@babel/helpers - typeof";return eh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eh(e)}function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?th(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rh(e,t,n){return(t=ih(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ih(e){var t=ah(e,`string`);return eh(t)==`symbol`?t:t+``}function ah(e,t){if(eh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(eh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oh(e,t,n){t&&t.defaultCountry&&!hf(t.defaultCountry,n)&&(t=nh(nh({},t),{},{defaultCountry:void 0}));try{return Bm(e,t,n)}catch(e){if(!(e instanceof Zp))throw e}}function sh(){var e=$m(arguments),t=e.text,n=e.options,r=e.metadata;return oh(t,n,r)}function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ch(e)}function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lh(Object(n),!0).forEach(function(t){dh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dh(e,t,n){return(t=fh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fh(e){var t=ph(e,`string`);return ch(t)==`symbol`?t:t+``}function ph(e,t){if(ch(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ch(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mh(){var e=$m(arguments),t=e.text,n=e.options,r=e.metadata;n=uh(uh({},n),{},{extract:!1});try{var i=Bm(t,n,r);r=new Z(r),r.selectNumberingPlan(i.countryCallingCode);var a=xf(i.nationalNumber,i.country,r);if(a!==`IS_POSSIBLE`)return a}catch(e){if(e instanceof Zp)return e.message;throw e}}function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hh(e)}function gh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,yh(r.key),r)}}function vh(e,t,n){return t&&_h(e.prototype,t),n&&_h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yh(e){var t=bh(e,`string`);return hh(t)==`symbol`?t:t+``}function bh(e,t){if(hh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var xh=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;gh(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return vh(e,[{key:`reset`,value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits=``,this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:`resetNationalSignificantNumber`,value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:`update`,value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:`initCountryAndCallingCode`,value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:`setCountry`,value:function(e){this.country=e,this.onCountryChange(e)}},{key:`setCallingCode`,value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:`startInternationalNumber`,value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:`appendDigits`,value:function(e){this.digits+=e}},{key:`appendNationalSignificantNumberDigits`,value:function(e){this.nationalSignificantNumber+=e}},{key:`getNationalDigits`,value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:`getDigitsWithoutInternationalPrefix`,value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function Sh(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ch(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ch(e,t){if(e){if(typeof e==`string`)return wh(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wh(e,t):void 0}}function wh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Th=RegExp(`x`);function Eh(e,t){if(t<1)return``;for(var n=``;t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function Dh(e,t){return e[t]===`)`&&t++,Oh(e.slice(0,t))}function Oh(e){for(var t=[],n=0;n<e.length;)e[n]===`(`?t.push(n):e[n]===`)`&&t.pop(),n++;var r=0,i=``;t.push(e.length);for(var a=0,o=t;a<o.length;a++){var s=o[a];i+=e.slice(r,s),r=s+1}return i}function kh(e,t,n){for(var r=Sh(n.split(``)),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(Th)<0)return;t=e.search(Th),e=e.replace(Th,a)}return[e,t]}function Ah(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber))return Mh(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function jh(e,t,n){return xf(e,t,n)===`IS_POSSIBLE`}function Mh(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=Nh(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(o)return o}return Nh(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function Nh(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=$f(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?o=e.nationalPrefix+a(t)+o:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(o=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+` `+o)),Ph(o,e))return o}function Ph(e,t){return am(e)===t.getNationalDigits()}function Fh(e){"@babel/helpers - typeof";return Fh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Fh(e)}function Ih(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,zh(r.key),r)}}function Rh(e,t,n){return t&&Lh(e.prototype,t),n&&Lh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zh(e){var t=Bh(e,`string`);return Fh(t)==`symbol`?t:t+``}function Bh(e,t){if(Fh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Fh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Vh=function(){function e(){Ih(this,e)}return Rh(e,[{key:`parse`,value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),this.context.length!==1)throw Error(`Non-finalized contexts left when pattern parse ended`);var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:`|`,args:n.concat([Gh(r)])};if(r.length===0)throw Error(`Pattern is required`);return r.length===1?r[0]:r}},{key:`startContext`,value:function(e){this.context.push(e)}},{key:`endContext`,value:function(){this.context.pop()}},{key:`getContext`,value:function(){return this.context[this.context.length-1]}},{key:`parsePattern`,value:function(e){if(!e)throw Error(`Pattern is required`);var t=e.match(Wh);if(!t){if(Uh.test(e))throw Error(`Illegal characters found in a pattern: ${e}`);this.getContext().instructions=this.getContext().instructions.concat(e.split(``));return}var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case`(?:`:r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case`)`:if(!this.getContext().or)throw Error(`")" operator must be preceded by "(?:" operator`);if(r&&this.parsePattern(r),this.getContext().instructions.length===0)throw Error(`No instructions found after "|" operator in an "or" group`);var a=this.getContext().branches;a.push(Gh(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:`|`,args:a});break;case`|`:if(!this.getContext().or)throw Error(`"|" operator can only be used inside "or" groups`);if(r&&this.parsePattern(r),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw Error(`"branches" not found in an "or" group context`);this.getContext().branches.push(Gh(this.getContext().instructions)),this.getContext().instructions=[];break;case`[`:r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case`]`:if(!this.getContext().oneOfSet)throw Error(`"]" operator must be preceded by "[" operator`);this.endContext(),this.getContext().instructions.push({op:`[]`,args:Hh(r)});break;default:throw Error(`Unknown operator: ${n}`)}i&&this.parsePattern(i)}}])}();function Hh(e){for(var t=[],n=0;n<e.length;){if(e[n]===`-`){if(n===0||n===e.length-1)throw Error(`Couldn't parse a one-of set pattern: ${e}`);for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var Uh=/[\(\)\[\]\?\:\|]/,Wh=RegExp(`(\\||\\(\\?\\:|\\)|\\[|\\])`);function Gh(e){return e.length===1?e[0]:e}function Kh(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=qh(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qh(e,t){if(e){if(typeof e==`string`)return Jh(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jh(e,t):void 0}}function Jh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yh(e){"@babel/helpers - typeof";return Yh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Yh(e)}function Xh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,$h(r.key),r)}}function Qh(e,t,n){return t&&Zh(e.prototype,t),n&&Zh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $h(e){var t=eg(e,`string`);return Yh(t)==`symbol`?t:t+``}function eg(e,t){if(Yh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Yh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tg=function(){function e(t){Xh(this,e),this.matchTree=new Vh().parse(t)}return Qh(e,[{key:`match`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).allowOverflow;if(!e)throw Error(`String is required`);var n=ng(e.split(``),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!(n&&n.overflow&&!t))return n}}])}();function ng(e,t,n){if(typeof t==`string`){var r=e.join(``);return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var o=t[a],s=ng(i,o,n&&a===t.length-1);if(!s)return;if(s.overflow)return s;if(s.match){if(i=i.slice(s.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else if(s.partialMatch)return{partialMatch:!0};else throw Error(`Unsupported match result:
10
- ${JSON.stringify(s,null,2)}`);a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case`|`:for(var c,l=Kh(t.args),u;!(u=l()).done;){var d=u.value,f=ng(e,d,n);if(f){if(f.overflow)return f;if(f.match)return{match:!0,matchedChars:f.matchedChars};if(f.partialMatch)c=!0;else throw Error(`Unsupported match result:
11
- ${JSON.stringify(f,null,2)}`)}}return c?{partialMatch:!0}:void 0;case`[]`:for(var p=Kh(t.args),m;!(m=p()).done;){var h=m.value;if(e[0]===h)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[h]}}return;default:throw Error(`Unsupported instruction tree: ${t}`)}}function rg(e){"@babel/helpers - typeof";return rg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rg(e)}function ig(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ag(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ag(e,t){if(e){if(typeof e==`string`)return og(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?og(e,t):void 0}}function og(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function cg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ug(r.key),r)}}function lg(e,t,n){return t&&cg(e.prototype,t),n&&cg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ug(e){var t=dg(e,`string`);return rg(t)==`symbol`?t:t+``}function dg(e,t){if(rg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fg=`9`,pg=Eh(fg,15),mg=/[- ]/,hg=!0,gg=hg&&function(){return/\[([^\[\]])*\]/g},_g=hg&&function(){return/\d(?=[^,}][^,}])/g},vg=RegExp(`[`+Ff+`]*\\$1[`+Ff+`]*(\\$\\d[`+Ff+`]*)*$`),yg=3,bg=function(){function e(t){t.state;var n=t.metadata;sg(this,e),this.metadata=n,this.resetFormat()}return lg(e,[{key:`resetFormat`,value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:`reset`,value:function(e,t){this.resetFormat(),e?(this.isNANP=e.callingCode()===`1`,this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:`format`,value:function(e,t){var n=this;if(jh(t.nationalSignificantNumber,t.country,this.metadata))for(var r=ig(this.matchingFormats),i;!(i=r()).done;){var a=i.value,o=Ah(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(o)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(o.replace(/\d/g,`x`),t),this.populatedNationalNumberTemplate=o,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(`x`),o}return this.formatNationalNumberWithNextDigits(e,t)}},{key:`formatNationalNumberWithNextDigits`,value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:`narrowDownMatchingFormats`,value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,a=n,o=a.length-yg;o<0&&(o=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,a,o)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:`formatSuits`,value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:`formatMatches`,value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(r===0)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<yg)try{return new tg(i).match(t,{allowOverflow:!0})!==void 0}catch(e){return console.error(e),!0}return RegExp(`^(${i})`).test(t)}},{key:`getFormatFormat`,value:function(e,t){return t?e.internationalFormat():e.format()}},{key:`chooseFormat`,value:function(e){for(var t=this,n=function(){var n=a.value;return t.chosenFormat===n?0:vg.test(t.getFormatFormat(n,e.international))?t.createTemplateForFormat(n,e)?(t.chosenFormat=n,0):(t.matchingFormats=t.matchingFormats.filter(function(e){return e!==n}),1):1},r,i=ig(this.matchingFormats.slice()),a;!(a=i()).done&&(r=n(),r!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:`createTemplateForFormat`,value:function(e,t){if(!(hg&&e.pattern().indexOf(`|`)>=0)){var n=this.getTemplateForFormat(e,t);if(n)return this.setNationalNumberTemplate(n,t),!0}}},{key:`getSeparatorAfterNationalPrefix`,value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&mg.test(e.nationalPrefixFormattingRule())?` `:``}},{key:`getInternationalPrefixBeforeCountryCallingCode`,value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&t.spacing===!1?n:n+` `:r?``:`+`}},{key:`getTemplate`,value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):``;n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(`x`,t+1),n++;return Dh(this.template,t+1)}}},{key:`setNationalNumberTemplate`,value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,`x`)+Eh(`x`,t.callingCode.length)+` `+e:this.template=e}},{key:`getTemplateForFormat`,value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,a=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=e.pattern();hg&&(o=o.replace(gg(),`\\d`).replace(_g(),`\\d`));var s=pg.match(o)[0];if(!(n.length>s.length)){var c=RegExp(`^`+o+`$`),l=n.replace(/\d/g,fg);c.test(l)&&(s=l);var u=this.getFormatFormat(e,r),d;if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var f=u.replace(Qf,e.nationalPrefixFormattingRule());if(am(e.nationalPrefixFormattingRule())===(i||``)+am(`$1`)&&(u=f,d=!0,i))for(var p=i.length;p>0;)u=u.replace(/\d/,`x`),p--}var m=s.replace(new RegExp(o),u).replace(new RegExp(fg,`g`),`x`);return d||(a?m=Eh(`x`,a.length)+` `+m:i&&(m=Eh(`x`,i.length)+this.getSeparatorAfterNationalPrefix(e)+m)),r&&(m=Zf(m)),m}}},{key:`formatNextNationalNumberDigits`,value:function(e){var t=kh(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(!t){this.resetFormat();return}return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],Dh(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:`shouldTryNationalPrefixFormattingRule`,value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}])}();function xg(e){"@babel/helpers - typeof";return xg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xg(e)}function Sg(e,t){return Dg(e)||Eg(e,t)||wg(e,t)||Cg()}function Cg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wg(e,t){if(e){if(typeof e==`string`)return Tg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tg(e,t):void 0}}function Tg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eg(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Dg(e){if(Array.isArray(e))return e}function Og(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,jg(r.key),r)}}function Ag(e,t,n){return t&&kg(e.prototype,t),n&&kg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jg(e){var t=Mg(e,`string`);return xg(t)==`symbol`?t:t+``}function Mg(e,t){if(xg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ng=`[`+Ff+Q+`]+`,Pg=RegExp(`^`+Ng+`$`,`i`),Fg=`(?:[`+If+`][`+Ff+Q+`]*|[`+Ff+Q+`]+)`,Ig=RegExp(`[^`+Ff+Q+`]+.*$`),Lg=/[^\d\[\]]/,Rg=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;Og(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return Ag(e,[{key:`input`,value:function(e,t){var n=Sg(Vg(e),2),r=n[0],i=n[1],a=am(r),o;return i&&(t.digits||(t.startInternationalNumber(void 0,void 0),a||(o=!0))),a&&this.inputDigits(a,t),{digits:a,justLeadingPlus:o}}},{key:`inputDigits`,value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:`isWaitingForCountryCallingCode`,value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:`extractCountryCallingCode`,value:function(e){var t=Xf(`+`+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:`reset`,value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&Lg.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:`extractNationalSignificantNumber`,value:function(e,t){if(this.hasSelectedNumberingPlan){var n=zf(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,a=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,a,i,e,t),!0}}},{key:`extractAnotherNationalSignificantNumber`,value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=zf(e,this.metadata),i=r.nationalPrefix,a=r.nationalNumber,o=r.carrierCode;if(a!==t)return this.onExtractedNationalNumber(i,o,a,e,n),!0}}},{key:`onExtractedNationalNumber`,value:function(e,t,n,r,i){var a=!1,o,s=r.lastIndexOf(n);if(s<0||s!==r.length-n.length)a=!0;else{var c=r.slice(0,s);c&&c!==e&&(o=c)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:`reExtractNationalSignificantNumber`,value:function(e){if(this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)}))return!0;if(this.extractIddPrefix(e)||this.fixMissingPlus(e))return this.extractCallingCodeAndNationalSignificantNumber(e),!0}},{key:`extractIddPrefix`,value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!(t||n)){var i=Rf(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==r)return e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:`fixMissingPlus`,value:function(e){if(!e.international){var t=Yf(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:`startInternationalNumber`,value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:`extractCallingCodeAndNationalSignificantNumber`,value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}])}();function zg(e){var t=e.search(Fg);if(!(t<0)){e=e.slice(t);var n;return e[0]===`+`&&(n=!0,e=e.slice(1)),e=e.replace(Ig,``),n&&(e=`+`+e),e}}function Bg(e){var t=zg(e)||``;return t[0]===`+`?[t.slice(1),!0]:[t]}function Vg(e){var t=Sg(Bg(e),2),n=t[0],r=t[1];return Pg.test(n)||(n=``),[n,r]}function Hg(e){"@babel/helpers - typeof";return Hg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hg(e)}function Ug(e,t){return Jg(e)||qg(e,t)||Gg(e,t)||Wg()}function Wg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gg(e,t){if(e){if(typeof e==`string`)return Kg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kg(e,t):void 0}}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qg(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Jg(e){if(Array.isArray(e))return e}function Yg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Xg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Qg(r.key),r)}}function Zg(e,t,n){return t&&Xg(e.prototype,t),n&&Xg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qg(e){var t=$g(e,`string`);return Hg(t)==`symbol`?t:t+``}function $g(e,t){if(Hg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Hg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var e_=!1,t_=function(){function e(t,n){Yg(this,e),this.metadata=new Z(n);var r=Ug(this.getCountryAndCallingCode(t),2),i=r[0],a=r[1];this.defaultCountry=i,this.defaultCallingCode=a,this.reset()}return Zg(e,[{key:`getCountryAndCallingCode`,value:function(e){var t,n;return e&&(Yd(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),n&&e_&&this.metadata.isNonGeographicCallingCode(n)&&(t=`001`),[t,n]}},{key:`input`,value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput=`+`;else if(n){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var r;if(this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),r===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:`reset`,value:function(){var e=this;return this.state=new xh({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new bg({state:this.state,metadata:this.metadata}),this.parser=new Rg({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput=``,this}},{key:`isInternational`,value:function(){return this.state.international}},{key:`getCallingCode`,value:function(){if(this.isInternational())return this.state.callingCode}},{key:`getCountryCallingCode`,value:function(){return this.getCallingCode()}},{key:`getCountry`,value:function(){if(this.state.digits)return this._getCountry()}},{key:`_getCountry`,value:function(){var e=this.state.country;if(!(e_&&e===`001`))return e}},{key:`determineTheCountryIfNeeded`,value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:`getFullNumber`,value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?`${r} ${e}`:r:`${this.state.getDigitsWithoutInternationalPrefix()}`)}return e}},{key:`getNonFormattedNationalNumberWithPrefix`,value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,r=e.nationalPrefix,i=t,a=n||r;return a&&(i=a+i),i}},{key:`getNonFormattedNumber`,value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:`getNonFormattedTemplate`,value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,`x`)}},{key:`isCountryCallingCodeAmbiguous`,value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:`determineTheCountry`,value:function(){this.state.setCountry(Gf(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:`getNumberValue`,value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t){if(this.isInternational())return n?`+`+n+i:`+`+t;if(r||n)return`+`+(r?this.metadata.countryCallingCode():n)+i}}},{key:`getNumber`,value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,i=this._getCountry();if(t&&!(!i&&!r)){if(i&&i===this.defaultCountry){var a=new Z(this.metadata.metadata);a.selectNumberingPlan(i);var o=a.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(o);if(s.length>1){var c=Uf(t,{countries:s,metadata:this.metadata.metadata});c&&(i=c)}}var l=new jp(i||r,t,this.metadata.metadata);return n&&(l.carrierCode=n),l}}},{key:`isPossible`,value:function(){var e=this.getNumber();return e?e.isPossible():!1}},{key:`isValid`,value:function(){var e=this.getNumber();return e?e.isValid():!1}},{key:`getNationalNumber`,value:function(){return this.state.nationalSignificantNumber}},{key:`getChars`,value:function(){return(this.state.international?`+`:``)+this.state.digits}},{key:`getTemplate`,value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||``}}])}();function n_(e){return new Z(e).getCountries()}function r_(e,t,n){return n||(n=t,t=void 0),new t_(t,n).input(e)}function i_(){return Kd(sh,arguments)}function a_(){return Kd(mh,arguments)}function o_(e){return t_.call(this,e,Gd)}o_.prototype=Object.create(t_.prototype,{}),o_.prototype.constructor=o_;function s_(){return Kd(n_,arguments)}function c_(){return Kd(mf,arguments)}function l_(){return Kd(r_,arguments)}function u_(e){return`https://purecatamphetamine.github.io/country-flag-icons/3x2/${e}.svg`}function d_(e,t){return new Intl.DisplayNames(t,{type:`region`}).of(e)??e}var f_=H({slots:{countryFlag:`block h-3.5 w-5 shrink-0 rounded-xxs object-cover`,dialCode:`pl-xs text-sm text-placeholder`},variants:{variant:{}}}),p_={class:`flex items-center gap-md`},m_={class:`h-3 w-5 overflow-hidden rounded-xxs`},h_=[`src`,`alt`],g_=(0,t.defineComponent)({__name:`PhoneNumberFieldSelectItem`,props:{value:{}},setup(e){let n=e,r=J(),i=(0,t.computed)(()=>u_(n.value)),a=(0,t.computed)(()=>d_(n.value,r.locale.value)),o=(0,t.computed)(()=>c_(n.value));return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(ea,{value:n.value},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,p_,[(0,t.createElementVNode)(`div`,m_,[i.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:i.value,alt:a.value??o.value,class:`size-full object-cover`},null,8,h_))]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(a.value??o.value),1)])]),_:1},8,[`value`]))}}),__=[`src`,`alt`],v_={class:`sr-only`},y_=(0,t.defineComponent)({__name:`PhoneNumberField`,props:(0,t.mergeModels)({defaultCountryCode:{default:`BE`},variant:{default:null},isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=J(),{theme:a}=W(),o=(0,t.ref)(null),s=(0,t.computed)(()=>o.value?.$el??null),c=(0,t.ref)(g()),l=s_(),u=(0,t.computed)({get:()=>c.value,set:e=>{if(r.value===null){c.value=e;return}let t=r.value?.replace(`+${c_(c.value)}`,`+${c_(e)}`)??null;t!==null&&(r.value=l_(t,e)),c.value=e}}),d=(0,t.computed)(()=>new o_(c.value)),f=(0,t.computed)({get:()=>{if(r.value===null)return null;let e=c_(u.value).toString();return l_(r.value,u.value).replace(`+${e}`,``).trim()},set:e=>{if(e===null||e===``){r.value=null;return}if(a_(e,c.value)===`TOO_LONG`){let e=structuredClone(r.value);r.value=``,(0,t.nextTick)(()=>{r.value=e});return}let n=`+${c_(u.value)} ${e}`;d.value.reset(),d.value.input(n),d.value.isValid()&&(r.value=d.value.getNumber()?.formatInternational()??n),r.value=n}}),p=(0,t.computed)(()=>f_({variant:n.variant??void 0})),m=(0,t.computed)(()=>N(`phoneNumberField`,a.value,{variant:n.variant})),h=(0,t.computed)(()=>`+${c_(u.value)}`);function g(){if(r.value===null)return n.defaultCountryCode;let e=i_(r.value)??null;return e===null||e.country===void 0?(console.warn(`Invalid phone number format: ${r.value}. Defaulting to ${n.defaultCountryCode}.`),n.defaultCountryCode):e.country??n.defaultCountryCode}function _(e,t){let n=d_(e,i.locale.value)??``;return e.toLowerCase().includes(t.toLowerCase())||n.toLowerCase().includes(t.toLowerCase())}return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(Ud,(0,t.mergeProps)({ref_key:`phoneNumberFieldRef`,ref:o},n,{modelValue:f.value,"onUpdate:modelValue":r[1]||=e=>f.value=e,"class-config":(0,t.unref)(ln)({input:`pl-sm`},m.value?.input,n.classConfig?.input),type:`tel`}),{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),left:(0,t.withCtx)(()=>[(0,t.createVNode)(Yo,{modelValue:u.value,"onUpdate:modelValue":r[0]||=e=>u.value=e,"popover-anchor-reference-element":s.value,"display-fn":e=>e,filter:{isEnabled:!0,fn:_},"virtual-list":{isEnabled:!0,items:(0,t.unref)(l)},"class-config":(0,t.unref)(ln)({root:`h-8 ml-[0.18rem] rounded-xs border-none shadow-none outline-none not-disabled:hover:bg-primary-hover pr-xs focus-within:bg-tertiary`,iconRight:`mr-0 size-4`,baseSingle:`pr-0`},m.value.select,n.classConfig?.select),"is-disabled":n.isDisabled,class:`shrink-0`,"popover-align":`start`},{base:(0,t.withCtx)(()=>[(0,t.createVNode)(so,null,{default:(0,t.withCtx)(()=>[u.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:(0,t.unref)(u_)(u.value)??void 0,alt:(0,t.unref)(d_)(u.value,(0,t.unref)(i).locale.value)??u.value,class:(0,t.normalizeClass)(p.value.countryFlag({class:(0,t.unref)(P)(m.value.countryFlag,n.classConfig?.countryFlag)}))},null,10,__)),(0,t.createElementVNode)(`span`,v_,(0,t.toDisplayString)((0,t.unref)(d_)(u.value,(0,t.unref)(i).locale.value)??u.value),1)]),_:1})]),"virtual-list-item":(0,t.withCtx)(({item:e})=>[(0,t.createVNode)(g_,{value:e},null,8,[`value`])]),_:1},8,[`modelValue`,`popover-anchor-reference-element`,`display-fn`,`filter`,`virtual-list`,`class-config`,`is-disabled`]),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(p.value.dialCode({class:(0,t.unref)(P)(m.value.dialCode,n.classConfig?.dialCode)}))},(0,t.toDisplayString)(h.value),3)]),_:3},16,[`modelValue`,`class-config`]))}}),b_=(0,t.defineComponent)({__name:`PopoverCloseButton`,setup(e){let{classConfig:r,customClassConfig:a}=Oo(),{t:o}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverClose),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(q,{label:(0,t.unref)(o)(`shared.close`),"class-config":{...(0,t.unref)(a)?.closeButton,...(0,t.unref)(r)?.closeButton},icon:`close`,variant:`tertiary`,size:`sm`},null,8,[`label`,`class-config`])])]),_:3}))}}),x_=(0,t.defineComponent)({__name:`RadioGroupRoot`,props:(0,t.mergeModels)({testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.ref)(null);return Is((0,t.computed)(()=>s.value?.$el??null),()=>{a(`blur`)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupRoot),{id:i.id,ref_key:`radioGroupRootRef`,ref:s,modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,"aria-invalid":i.errorMessage!==null},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`id`,`modelValue`,`aria-invalid`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),S_=(0,t.defineComponent)({__name:`RadioGroup`,props:(0,t.mergeModels)({testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(x_,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[C_,w_]=R(`radioGroupItemContext`),T_=(0,t.defineComponent)({__name:`RadioGroupItemIndicator`,setup(e){let{classConfig:i,customClassConfig:a,style:o}=w_();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupIndicator),{class:(0,t.normalizeClass)((0,t.unref)(o).indicator({class:(0,t.unref)(P)((0,t.unref)(a).indicator,(0,t.unref)(i)?.indicator)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3}))}}),E_=(0,t.defineComponent)({__name:`RadioGroupItemIndicatorTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,scale:1.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.5},transition:{duration:.3,type:`spring`,bounce:0}}))}}),D_=(0,t.defineComponent)({__name:`RadioGroupItemControl`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=w_();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).control({class:(0,t.unref)(P)((0,t.unref)(r)?.control,(0,t.unref)(n)?.control)}))},[(0,t.createVNode)(T_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(E_)]),_:1})],2))}}),O_=H({slots:{control:new U().withBase(`relative overflow-hidden isolate`).withSize(`size-4`).withFlex(`flex items-center justify-center`).withBorder(`border border-solid border-primary group-data-[state=checked]/radio-group-item:border-brand-600`).withBorder(`group-data-[state=checked]/radio-group-item:group-disabled/radio-group-item:border-disabled group-disabled/radio-group-item:border-disabled`).withBorder(`group-data-invalid/radio-group-item:group-data-[state=checked]/radio-group-item:border-error group-data-invalid/radio-group-item:group-data-[state=unchecked]/radio-group-item:border-error`).withBorderRadius(`rounded-full`).withBackgroundColor(`group-data-[state=checked]/radio-group-item:bg-brand-solid group-disabled/radio-group-item:group-data-[state=checked]/radio-group-item:bg-disabled-subtle group-disabled/radio-group-item:bg-disabled-subtle group-data-invalid/radio-group-item:group-data-[state=checked]/radio-group-item:bg-error-solid`).withOutline(`outline-2 outline-transparent group-focus-visible/radio-group-item:outline-brand-600 outline-offset-1 group-focus-visible/radio-group-item:group-data-invalid/radio-group-item:outline-error-600`).withTransition(`duration-300`).build(),indicator:new U().withBase(`block`).withColor(`bg-white group-data-disabled/radio-group-item:bg-fg-disabled-subtle`).withSize(`size-1.5`).withBorderRadius(`rounded-full`).build(),root:new U().withBase(`group/radio-group-item`).withOutline(`outline-none`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),k_=(0,t.defineComponent)({__name:`RadioGroupItemRoot`,props:{value:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},emits:[`focus`,`blur`],setup(e,{emit:r}){let i=e,a=r,{theme:o}=W(),s=(0,t.computed)(()=>O_({variant:i.variant??void 0})),c=(0,t.computed)(()=>N(`radioGroupItem`,o.value,{variant:i.variant}));return C_({...G(i),customClassConfig:c,style:s}),(r,o)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupItem),{value:i.value,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,i.classConfig?.root)})),onFocus:o[0]||=e=>a(`focus`),onBlur:o[1]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`value`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),A_=(0,t.defineComponent)({__name:`RadioGroupItem`,props:{value:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},emits:[`focus`,`blur`],setup(e,{emit:n}){let r=e,i=n,a=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(a),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(k_,(0,t.mergeProps)(r,{id:(0,t.unref)(a),onBlur:n[0]||=e=>i(`blur`),onFocus:n[1]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(D_)])]),_:3},16,[`id`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[j_,M_]=R(`switchContext`),N_=H({slots:{root:new U().withBase(`group/switch relative overflow-hidden isolate`).withPadding(`px-xxs`).withBorder(`border border-solid border-tertiary dark:border-primary data-[state=checked]:border-brand-600 data-[state=checked]:disabled:border-disabled-subtle disabled:border-disabled-subtle`).withBorder(`data-invalid:data-[state=checked]:border-error data-invalid:data-[state=unchecked]:border-error`).withBorderRadius(`rounded-full`).withBackgroundColor(`bg-tertiary data-[state=checked]:bg-brand-solid disabled:data-[state=checked]:bg-disabled-subtle disabled:bg-disabled-subtle`).withBackgroundColor(`data-invalid:data-[state=checked]:bg-error-solid data-invalid:bg-error-primary`).withOutline(`outline-brand-600 outline-offset-3 data-invalid:outline-error-600`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),thumb:new U().withBase(`block overflow-hidden`).withFlex(`flex items-center justify-center`).withBackgroundColor(`bg-white`).withBorderRadius(`rounded-full`).withShadow(`shadow-xs`).withTransition(`duration-200`).build(),thumbIcon:new U().withColor(`text-gray-800 group-data-[state=checked]/switch:text-brand-600`).build()},variants:{variant:{},size:{md:{root:new U().withSize(`w-11 h-6`).build(),thumb:new U().withSize(`size-5 data-[state=checked]:translate-x-[1.15rem]`).build(),thumbIcon:new U().withSize(`size-3.5`).build()},sm:{root:new U().withSize(`w-9 h-5`).build(),thumb:new U().withSize(`size-4 data-[state=checked]:translate-x-[0.9rem]`).build(),thumbIcon:new U().withSize(`size-3`).build()}}}}),P_=(0,t.defineComponent)({__name:`SwitchRoot`,props:(0,t.mergeModels)({iconChecked:{default:null},iconUnchecked:{default:null},size:{default:`md`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),{theme:s}=W(),c=(0,t.computed)(()=>N_({size:i.size,variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`switch`,s.value,{size:i.size,variant:i.variant}));return j_({...G(i),isChecked:(0,t.computed)(()=>o.value),customClassConfig:l,style:c}),(r,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.SwitchRoot),{modelValue:o.value,"onUpdate:modelValue":s[0]||=e=>o.value=e,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(c.value.root({class:(0,t.unref)(P)(l.value.root,i.classConfig?.root)})),onFocus:s[1]||=e=>a(`focus`),onBlur:s[2]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),F_=(0,t.defineComponent)({__name:`SwitchThumb`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=M_();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.SwitchThumb),{class:(0,t.normalizeClass)((0,t.unref)(a).thumb({class:(0,t.unref)(P)((0,t.unref)(i).thumb,(0,t.unref)(r)?.thumb)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),I_=(0,t.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:n,classConfig:i,customClassConfig:a,iconChecked:o,iconUnchecked:s,style:c}=M_(),l=(0,t.computed)(()=>n.value?o.value:s.value);return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,t.withCtx)(()=>[l.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:l.value,initial:{opacity:0,x:(0,t.unref)(n)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,t.unref)(n)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(L,{icon:l.value,class:(0,t.normalizeClass)((0,t.unref)(c).thumbIcon({class:(0,t.unref)(P)((0,t.unref)(a).thumbIcon,(0,t.unref)(i)?.thumbIcon)}))},null,8,[`icon`,`class`])]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),L_=(0,t.defineComponent)({__name:`Switch`,props:(0,t.mergeModels)({iconChecked:{},iconUnchecked:{},size:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(P_,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`),onFocus:n[2]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(F_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(I_)]),_:1})]),_:1},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}});I();var R_={},z_={class:`col-span-full grid grid-cols-subgrid`};function B_(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,z_,[(0,t.renderSlot)(e.$slots,`default`)])}var V_=F(R_,[[`render`,B_]]),H_=(0,t.defineComponent)({__name:`TableBody`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(V_,{role:`rowgroup`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),[U_,W_]=R(`tableContext`),G_=[`data-sticky`,`data-primary-cell`],K_=(0,t.defineComponent)({__name:`TableCell`,props:{hasInteractiveContent:{type:Boolean,default:!1},isPrimaryCell:{type:Boolean,default:!1}},setup(e){let n=e,{hasReachedHorizontalEnd:r,isFirstColumnSticky:i,isLastColumnSticky:a,isScrolledHorizontally:o,classConfig:s,customClassConfig:c,style:l}=W_();return(e,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(l).cell({class:(0,t.unref)(P)((0,t.unref)(c)?.cell,(0,t.unref)(s)?.cell)}),{"first-of-type:sticky first-of-type:left-0 first-of-type:border-r":(0,t.unref)(i),"last-of-type:sticky last-of-type:right-0 last-of-type:border-l":(0,t.unref)(a),"first-of-type:border-r-secondary":(0,t.unref)(o),"first-of-type:border-r-transparent":!(0,t.unref)(o),"last-of-type:border-l-secondary":!(0,t.unref)(r),"last-of-type:border-l-transparent":(0,t.unref)(r),"first-of-type:z-1":(0,t.unref)(i)&&!n.hasInteractiveContent,"first-of-type:z-3":(0,t.unref)(i)&&n.hasInteractiveContent,"last-of-type:z-1":(0,t.unref)(a)&&!n.hasInteractiveContent,"last-of-type:z-3":(0,t.unref)(a)&&n.hasInteractiveContent}]),"data-sticky":(0,t.unref)(i)||(0,t.unref)(a)||void 0,"data-primary-cell":n.isPrimaryCell||void 0,role:`cell`},[(0,t.renderSlot)(e.$slots,`default`)],10,G_))}}),q_=(0,t.defineComponent)({__name:`TableCellSkeleton`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=W_();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).cellSkeleton({class:(0,t.unref)(P)((0,t.unref)(r)?.cellSkeleton,(0,t.unref)(n)?.cellSkeleton)}))},[...a[0]||=[(0,t.createElementVNode)(`div`,{class:`h-4 rounded-md bg-tertiary`},null,-1)]],2))}}),J_=(0,t.defineComponent)({__name:`TableContent`,setup(e){let{gridTemplateColumns:n}=W_();return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{style:(0,t.normalizeStyle)({gridTemplateColumns:(0,t.unref)(n)}),class:`grid`},[(0,t.renderSlot)(e.$slots,`default`)],4))}}),Y_=(0,t.defineComponent)({__name:`TableHeader`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=W_();return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(V_,{class:(0,t.normalizeClass)((0,t.unref)(i).header({class:(0,t.unref)(P)((0,t.unref)(r)?.header,(0,t.unref)(n)?.header)})),role:`rowgroup`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(V_,{role:`row`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`class`]))}}),X_=(0,t.defineComponent)({__name:`TableHeaderCell`,props:{isSortable:{type:Boolean,default:!1},sortDirection:{default:null}},emits:[`sort`],setup(e,{emit:n}){let r=e,i=n,{hasReachedHorizontalEnd:a,isFirstColumnSticky:o,isLastColumnSticky:s,isScrolledHorizontally:c,classConfig:l,customClassConfig:u,style:d}=W_(),f=(0,t.computed)(()=>r.isSortable?r.sortDirection===`asc`?`arrowUp`:r.sortDirection===`desc`?`arrowDown`:`switchVertical`:null);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([[(0,t.unref)(d).headerCell({class:(0,t.unref)(P)((0,t.unref)(u)?.headerCell,(0,t.unref)(l)?.headerCell)}),{"first:sticky first:left-0 first:z-1 first:border-r":(0,t.unref)(o),"last:sticky last:right-0 last:z-1 last:border-l":(0,t.unref)(s),"first:border-r-secondary":(0,t.unref)(c),"first:border-r-transparent":!(0,t.unref)(c),"last:border-l-secondary":!(0,t.unref)(a),"last:border-l-transparent":(0,t.unref)(a)}],`flex items-center`]),role:`columnheader`},[r.isSortable?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(vs),{key:0,"class-config":{root:`p-0 px-0 h-auto !bg-transparent min-w-auto rounded-sm !text-secondary`,iconRight:r.sortDirection===null?`text-disabled`:`text-secondary`,...(0,t.unref)(u)?.headerCellButton,...(0,t.unref)(l)?.headerCellButton},"icon-right":f.value,variant:`tertiary`,onClick:n[0]||=e=>i(`sort`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class-config`,`icon-right`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)((0,t.unref)(d).headerCellLabel({class:(0,t.unref)(P)((0,t.unref)(u)?.headerCellLabel,(0,t.unref)(l)?.headerCellLabel)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))],2))}}),Z_={class:`text-xs text-tertiary`},Q_=(0,t.defineComponent)({__name:`TableHiddenResultsHint`,props:{isEmpty:{type:Boolean},isLoading:{type:Boolean},activeFilterCount:{},onClear:{type:Function}},setup(e){let n=e,{classConfig:r,customClassConfig:a,style:o}=W_(),{t:s}=(0,i.useI18n)();return(e,i)=>n.activeFilterCount>0&&!n.isLoading&&!n.isEmpty?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).hiddenResultsHint({class:(0,t.unref)(P)((0,t.unref)(a)?.hiddenResultsHint,(0,t.unref)(r)?.hiddenResultsHint)}))},[(0,t.createElementVNode)(`span`,Z_,(0,t.toDisplayString)((0,t.unref)(s)(`component.table.results_may_be_hidden`,{count:n.activeFilterCount})),1),(0,t.createVNode)(vs,{"class-config":{root:`h-6 px-sm font-regular`,content:`text-xs`},size:`sm`,variant:`secondary`,onClick:i[0]||=e=>n.onClear()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(s)(`component.table.clear_filter`,{count:n.activeFilterCount})),1)]),_:1})],2)):(0,t.createCommentVNode)(``,!0)}});function $_(){let e=(0,t.ref)(null),n=(0,t.ref)(!1),r=(0,t.ref)(!1),i=(0,t.ref)(!1);function a(t){e.value=t}function o(){let t=e.value;t!==null&&(n.value=t.scrollLeft>0,r.value=t.scrollLeft+t.clientWidth>=t.scrollWidth-1,i.value=t.scrollHeight>t.clientHeight)}return(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Table scroll container ref is null`);o(),e.value.addEventListener(`scroll`,o),e.value.addEventListener(`resize`,o)}),(0,t.onBeforeUnmount)(()=>{e.value!==null&&(e.value.removeEventListener(`scroll`,o),e.value.removeEventListener(`resize`,o))}),{hasReachedHorizontalEnd:(0,t.computed)(()=>r.value),hasVerticalOverflow:(0,t.computed)(()=>i.value),isScrolledHorizontally:(0,t.computed)(()=>n.value),setTableScrollContainerRef:a,tableScrollContainerRef:e}}var ev=H({slots:{cell:new U().withBase(`group/cell whitespace-nowrap relative`).withBackgroundColor(`bg-primary group-[&:has(:focus-visible)]/row:bg-secondary`).withColor(`text-tertiary data-primary-cell:text-primary`).withFontWeight(`data-primary-cell:font-semibold`).withFontSize(`text-sm`).withFlex(`flex items-center`).withPadding(`py-xl px-3xl`).withHeight(`h-full`).withTransition(`duration-100`).build(),cellSkeleton:new U().withPadding(`py-xl px-3xl`).build(),header:new U().withBase(`sticky top-0`).withZIndex(`z-5`).withBorder(`border-b border-solid border-b-secondary`).build(),headerCell:new U().withBackgroundColor(`bg-secondary`).withPadding(`py-lg px-3xl`).build(),headerCellLabel:new U().withFontSize(`text-sm`).withFontWeight(`font-medium`).withColor(`text-secondary`).build(),hiddenResultsHint:new U().withBase(`sticky left-0 col-span-full`).withBorder(`border-t border-solid border-t-secondary`).withPadding(`py-xl`).withFlex(`gap-x-lg flex items-center justify-center`).build(),root:new U().withBase(`overflow-hidden isolate`).withBorder(`border border-solid border-secondary`).withFlex(`flex flex-col`).withBorderRadius(`rounded-lg`).build(),row:new U().withBase(`group/row relative`).withBackgroundColor(`bg-primary [&:has(:focus-visible)]:bg-secondary`).withBorder(`border-b border-solid border-b-secondary`).build()},variants:{variant:{}}}),tv=(0,t.defineComponent)({__name:`TableRoot`,props:{isFirstColumnSticky:{type:Boolean,default:!1},isLastColumnSticky:{type:Boolean,default:!1},gridTemplateColumns:{},variant:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),{hasReachedHorizontalEnd:i,hasVerticalOverflow:a,isScrolledHorizontally:o,setTableScrollContainerRef:s}=$_(),c=(0,t.computed)(()=>ev({variant:n.variant??void 0})),l=(0,t.computed)(()=>N(`table`,r.value,{variant:n.variant}));return U_({...G(n),hasReachedHorizontalEnd:i,hasVerticalOverflow:a,isScrolledHorizontally:o,customClassConfig:l,setTableScrollContainerRef:s,style:c}),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(c.value.root({class:(0,t.unref)(P)(l.value?.root,n.classConfig?.root)})),role:`table`},[(0,t.renderSlot)(e.$slots,`default`,{hasReachedHorizontalEnd:(0,t.unref)(i),hasVerticalOverflow:(0,t.unref)(a),isScrolledHorizontally:(0,t.unref)(o)})],2))}}),nv={class:`sr-only`},rv={class:`sr-only`},iv=(0,t.defineComponent)({__name:`TableRow`,props:{action:{default:null}},setup(e){let n=e,{classConfig:r,customClassConfig:i,style:o}=W_();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(V_,{class:(0,t.normalizeClass)((0,t.unref)(o).row({class:(0,t.unref)(P)((0,t.unref)(i)?.row,(0,t.unref)(r)?.row)})),role:`row`},{default:(0,t.withCtx)(()=>[n.action?.type===`link`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a.RouterLink),{key:0,to:n.action.to,class:`absolute inset-0 z-2 cursor-pointer outline-none`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,nv,(0,t.toDisplayString)(n.action.label),1)]),_:1},8,[`to`])):(0,t.createCommentVNode)(``,!0),n.action?.type===`button`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`absolute inset-0 z-2 cursor-pointer outline-none`,onClick:s[0]||=e=>n.action.onClick()},[(0,t.createElementVNode)(`span`,rv,(0,t.toDisplayString)(n.action.label),1)])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),av=(0,t.defineComponent)({__name:`TableScrollContainer`,setup(e){let{setTableScrollContainerRef:n}=W_(),r=(0,t.ref)(null);return(0,t.onMounted)(()=>{if(r.value===null)throw Error(`tableScrollContainerRef is null`);n(r.value)}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`tableScrollContainerRef`,ref:r,class:`overflow-auto`},[(0,t.renderSlot)(e.$slots,`default`)],512))}}),[ov,sv]=R(`tabsContext`),cv=(0,t.defineComponent)({__name:`TabsBase`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=sv();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).base({class:(0,t.unref)(P)((0,t.unref)(n)?.base,(0,t.unref)(r).base)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),lv=(0,t.defineComponent)({__name:`TabsIndicator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=sv();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TabsIndicator),{class:(0,t.normalizeClass)((0,t.unref)(a).indicator({class:(0,t.unref)(P)((0,t.unref)(i).indicator,(0,t.unref)(r)?.indicator)}))},null,8,[`class`]))}}),uv=(0,t.defineComponent)({__name:`TabsList`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=sv();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TabsList),{class:(0,t.normalizeClass)((0,t.unref)(a).list({class:(0,t.unref)(P)((0,t.unref)(i).list,(0,t.unref)(r)?.list)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function dv(){let e=(0,t.ref)(null),n=(0,t.ref)(!1),r=(0,t.ref)(!1),i=(0,t.ref)(!1);function a(t){e.value=t}function o(){let t=e.value;t!==null&&(n.value=t.scrollLeft>0,r.value=t.scrollLeft+t.clientWidth>=t.scrollWidth-1,i.value=t.scrollWidth>t.clientWidth)}function s(){e.value!==null&&e.value.scrollTo({behavior:`smooth`,left:e.value.scrollLeft-200})}function c(){e.value!==null&&e.value.scrollTo({behavior:`smooth`,left:e.value.scrollLeft+200})}function l(){if(e.value===null)return;let t=e.value.querySelector(`[role="tab"][data-state="active"]`)??null;if(t===null)return;let n=t.getBoundingClientRect(),r=e.value.getBoundingClientRect();e.value.scrollTo({behavior:`instant`,left:n.left-r.left+e.value.scrollLeft})}return(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Scroll container ref is null`);o(),e.value.addEventListener(`scroll`,o),e.value.addEventListener(`resize`,o)}),(0,t.onBeforeUnmount)(()=>{e.value!==null&&(e.value.removeEventListener(`scroll`,o),e.value.removeEventListener(`resize`,o))}),{hasHorizontalOverflow:(0,t.computed)(()=>i.value),hasReachedHorizontalEnd:(0,t.computed)(()=>r.value),isScrolledHorizontally:(0,t.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var fv=H({slots:{base:new U().withBase(`relative isolate overflow-hidden`).build(),content:new U().withBase(`outline-none`).build(),indicator:new U().withBase(`absolute group-data-[orientation=horizontal]:bottom-0 group-data-[orientation=vertical]:left-0`).withSize(`group-data-[orientation=horizontal]:w-(--reka-tabs-indicator-size) group-data-[orientation=vertical]:h-(--reka-tabs-indicator-size)`).withTranslate(`group-data-[orientation=horizontal]:translate-x-(--reka-tabs-indicator-position) group-data-[orientation=vertical]:translate-y-(--reka-tabs-indicator-position)`).withTransition(`duration-200`).build(),item:new U().withBase(`group/tabs-item relative data-[orientation=vertical]:text-left whitespace-nowrap`).withFontSize(`text-sm`).withFontWeight(`font-semibold`).withTransition(`duration-200`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).withZIndex(`z-10`).build(),list:new U().withBase(`group relative flex data-[orientation=vertical]:flex-col`).build(),scrollContainer:new U().withBase(`overflow-x-auto no-scrollbar scroll-smooth`).build()},variants:{variant:{"button-border":{base:new U().withBackgroundColor(`bg-secondary-alt`).withBorder(`border border-secondary`).withBorderRadius(`rounded-lg`).build(),indicator:new U().withBackgroundColor(`bg-primary-alt`).withBorderRadius(`rounded-sm`).withSize(`group-data-[orientation=horizontal]:h-full group-data-[orientation=vertical]:w-full`).withShadow(`shadow-xs`).build(),item:new U().withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withColor(`data-[state=active]:text-secondary data-[state=inactive]:text-quaternary not-disabled:data-[state=inactive]:hover:text-tertiary disabled:opacity-75`).withSpacing(`py-md px-lg`).withBorderRadius(`rounded-sm`).build(),list:new U().withSpacing(`gap-xs`).build(),scrollContainer:new U().withSpacing(`p-xs`).build()},"button-brand":{indicator:new U().withSize(`group-data-[orientation=horizontal]:h-full group-data-[orientation=vertical]:w-full`).withBorderRadius(`rounded-sm`).withBackgroundColor(`bg-brand-primary-alt`).build(),item:new U().withColor(`data-[state=active]:text-brand-secondary data-[state=inactive]:text-quaternary not-disabled:data-[state=inactive]:hover:text-tertiary disabled:opacity-75`).withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withBorderRadius(`rounded-sm`).withSpacing(`py-md px-lg`).build(),list:new U().withSpacing(`gap-xs`).build()},underline:{indicator:new U().withSize(`group-data-[orientation=horizontal]:h-0.5 group-data-[orientation=vertical]:w-0.5`).withBackgroundColor(`bg-fg-brand-primary-alt`).withBorderRadius(`rounded-md`).build(),item:new U().withPadding(`px-md py-sm`).withMargin(`group-data-[orientation=horizontal]:my-sm group-data-[orientation=vertical]:mx-sm`).withBorderRadius(`rounded-md`).withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withColor(`data-[state=active]:text-brand-secondary data-[state=inactive]:text-quaternary disabled:opacity-75`).withBackgroundColor(`not-disabled:hover:bg-primary-hover not-disabled:data-[state=active]:hover:bg-brand-primary-alt`).build(),list:new U().withSpacing(`gap-lg`).build()}}}}),pv=(0,t.defineComponent)({__name:`TabsRoot`,props:(0,t.mergeModels)({orientation:{default:`horizontal`},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),{theme:a}=W(),{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:f}=dv(),p=(0,t.computed)(()=>fv({variant:r.variant})),m=(0,t.computed)(()=>N(`tabs`,a.value,{variant:r.variant}));return(0,t.onMounted)(()=>{l()}),ov({...G(r),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,customClassConfig:m,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:f,style:p}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsRoot),{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,orientation:r.orientation},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`])]),_:3},8,[`test-id`]))}}),mv=(0,t.defineComponent)({__name:`TabsScrollContainer`,setup(e){let n=(0,t.ref)(null),{classConfig:r,customClassConfig:i,setScrollContainerRef:a,style:o}=sv();return(0,t.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);a(n.value)}),(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,t.normalizeClass)((0,t.unref)(o).scrollContainer({class:(0,t.unref)(P)((0,t.unref)(i).scrollContainer,(0,t.unref)(r)?.scrollContainer)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),hv={class:`absolute top-0 left-0 z-20 flex h-full items-center bg-linear-to-r from-primary to-transparent px-md`},gv=(0,t.defineComponent)({__name:`TabsScrollToLeftButton`,setup(e){let{hasHorizontalOverflow:n,isScrolledHorizontally:a,classConfig:o,customClassConfig:s,orientation:c,scrollToLeft:l}=sv(),{t:u}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)&&(0,t.unref)(n)&&(0,t.unref)(c)===`horizontal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},"as-child":!0,transition:{duration:.1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,hv,[(0,t.createVNode)(q,{"class-config":{root:`bg-primary size-7`,...(0,t.unref)(o)?.scrollButton,...(0,t.unref)(s)?.scrollButton},label:(0,t.unref)(u)(`component.tabs.scroll_to_left`),size:`sm`,tabindex:`-1`,icon:`chevronLeft`,variant:`secondary`,onClick:(0,t.unref)(l)},null,8,[`class-config`,`label`,`onClick`])])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),_v={class:`absolute top-0 right-0 z-20 flex h-full items-center bg-linear-to-l from-primary to-transparent px-md`},vv=(0,t.defineComponent)({__name:`TabsScrollToRightButton`,setup(e){let{hasHorizontalOverflow:n,hasReachedHorizontalEnd:a,classConfig:o,customClassConfig:s,orientation:c,scrollToRight:l}=sv(),{t:u}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[!(0,t.unref)(a)&&(0,t.unref)(n)&&(0,t.unref)(c)===`horizontal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{opacity:0,x:8},animate:{opacity:1,x:0},exit:{opacity:0,x:8},"as-child":!0,transition:{duration:.1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,_v,[(0,t.createVNode)(q,{"class-config":{root:`bg-primary size-7`,...(0,t.unref)(o)?.scrollButton,...(0,t.unref)(s)?.scrollButton},label:(0,t.unref)(u)(`component.tabs.scroll_to_right`),size:`sm`,icon:`chevronRight`,variant:`secondary`,tabindex:`-1`,onClick:(0,t.unref)(l)},null,8,[`class-config`,`label`,`onClick`])])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),yv=(0,t.defineComponent)({__name:`ButtonTabs`,props:(0,t.mergeModels)({orientation:{},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`);return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(pv,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(cv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gv),(0,t.createVNode)(mv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(uv,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`),(0,t.createVNode)(lv)]),_:3})]),_:3}),(0,t.createVNode)(vv)]),_:3}),(0,t.renderSlot)(e.$slots,`content`)]),_:3},16,[`modelValue`]))}}),bv=(0,t.defineComponent)({__name:`ButtonTabsContent`,props:{value:{},testId:{default:null}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=sv();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsContent),{value:r.value,class:(0,t.normalizeClass)((0,t.unref)(o).content({class:(0,t.unref)(P)((0,t.unref)(a).content,(0,t.unref)(i)?.content)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`])]),_:3},8,[`test-id`]))}}),xv=(0,t.defineComponent)({__name:`ButtonTabsItem`,props:{value:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=sv();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsTrigger),{value:r.value,class:(0,t.normalizeClass)((0,t.unref)(o).item({class:(0,t.unref)(P)((0,t.unref)(a).item,(0,t.unref)(i)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Sv=(0,t.defineComponent)({__name:`RouterLinkTabsItem`,props:{to:{},testId:{default:null}},setup(e){let r=e,{classConfig:i,customClassConfig:o,style:s}=sv();return(e,c)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsTrigger),{"as-child":!0,value:r.to.name,class:(0,t.normalizeClass)((0,t.unref)(s).item({class:(0,t.unref)(P)((0,t.unref)(o).item,(0,t.unref)(i)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a.RouterLink),{to:r.to,replace:!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`])]),_:3},8,[`value`,`class`])]),_:3},8,[`test-id`]))}}),Cv=(0,t.defineComponent)({__name:`RouterLinkTabs`,props:{orientation:{},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},setup(e){let n=e,r=(0,a.useRoute)(),i=(0,t.computed)(()=>r.name);return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(pv,(0,t.mergeProps)(n,{"model-value":i.value}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(cv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gv),(0,t.createVNode)(mv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(uv,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`),(0,t.createVNode)(lv)]),_:3})]),_:3}),(0,t.createVNode)(vv)]),_:3})]),_:3},16,[`model-value`]))}}),[wv,Tv]=R(`textareaContext`),Ev={key:1},Dv=(0,t.defineComponent)({__name:`TextareaInput`,setup(e){let{id:n,testId:r,isDisabled:i,isRequired:a,isSpellCheckEnabled:o,autocomplete:s,classConfig:c,customClassConfig:l,errorMessage:u,modelValue:d,placeholder:f,resize:p,style:m,onBlur:h,onFocus:g}=Tv(),{textarea:_}=Ne({watch:()=>p.value===`auto-vertical`?d.value:null});function v(e){d.value=e.target.value}return(e,y)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(n),value:(0,t.unref)(d),"is-disabled":(0,t.unref)(i),"is-invalid":(0,t.unref)(u)!==null,"is-required":(0,t.unref)(a),"described-by":`${(0,t.unref)(n)}-error ${(0,t.unref)(n)}-hint`,"is-loading":!1,class:(0,t.normalizeClass)((0,t.unref)(m).input({class:(0,t.unref)(P)((0,t.unref)(l).input,(0,t.unref)(c)?.input)})),autocomplete:(0,t.unref)(s),placeholder:(0,t.unref)(f),spellcheck:(0,t.unref)(o),onFocus:(0,t.unref)(g),onBlur:(0,t.unref)(h),onInput:v},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)===`auto-vertical`?((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,{key:0,ref_key:`textarea`,ref:_},null,512)):((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,Ev))]),_:1},8,[`id`,`value`,`is-disabled`,`is-invalid`,`is-required`,`described-by`,`class`,`autocomplete`,`placeholder`,`spellcheck`,`onFocus`,`onBlur`])]),_:1},8,[`test-id`]))}}),Ov=H({slots:{input:new U().withBase(`outline-none group-data-[resize=none]/textarea:resize-none group-data-[resize=vertical]/textarea:resize-y group-data-[resize=horizontal]/textarea:resize-x group-data-[resize=both]/textarea:resize group-data-[resize=auto-vertical]/textarea:resize-none`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`p-lg`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),root:new U().withBase(`group/textarea overflow-hidden`).withSize(`data-[resize=none]:w-full data-[resize=vertical]:w-full data-[resize=auto-vertical]:w-full h-fit`).withFlex(`inline-flex flex-col`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),kv=[`data-invalid`,`data-disabled`,`data-resize`],Av=(0,t.defineComponent)({__name:`TextareaRoot`,props:(0,t.mergeModels)({isSpellCheckEnabled:{type:Boolean,default:!1},autocomplete:{default:`off`},placeholder:{default:null},resize:{default:`none`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),{theme:o}=W(),s=(0,t.computed)(()=>Ov({variant:r.variant??void 0})),c=(0,t.computed)(()=>N(`textarea`,o.value,{variant:r.variant}));function l(e){i(`blur`,e)}function u(e){i(`focus`,e)}return wv({...G(r),customClassConfig:c,modelValue:a,style:s,onBlur:l,onFocus:u}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,r.classConfig?.root)})),"data-invalid":r.errorMessage!==null&&r.isTouched||void 0,"data-disabled":r.isDisabled||void 0,"data-resize":r.resize},[(0,t.renderSlot)(e.$slots,`default`)],10,kv))}}),jv=(0,t.defineComponent)({__name:`Textarea`,props:(0,t.mergeModels)({isSpellCheckEnabled:{type:Boolean},autocomplete:{},placeholder:{},resize:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Av,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`top`),(0,t.createVNode)(Dv),(0,t.renderSlot)(e.$slots,`bottom`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[Mv,Nv]=R(`timeFieldContext`),Pv=(0,t.defineComponent)({__name:`TimeFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=Nv();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Fv=(0,t.defineComponent)({__name:`TimeFieldInput`,props:{segments:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o,onBlur:s,onFocus:c}=Nv();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).inputs({class:(0,t.unref)(P)((0,t.unref)(a).inputs,(0,t.unref)(i)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TimeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(o).input({class:(0,t.unref)(P)((0,t.unref)(a).input,(0,t.unref)(i)?.input)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TimeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(o).input({class:(0,t.unref)(P)((0,t.unref)(a).input,(0,t.unref)(i)?.input)})),onFocus:(0,t.unref)(c),onBlur:(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2))}}),Iv={class:`sr-only`},Lv=(0,t.defineComponent)({__name:`TimeFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Nv(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Iv,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),Rv=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/time-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/time-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/time-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/time-field:pl-2`).withBackgroundColor(`group-data-disabled/time-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/time-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),zv=[`data-icon-left`,`data-invalid`,`data-disabled`],Bv=(0,t.defineComponent)({__name:`TimeFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},iconLeft:{default:null},iconRight:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.computed)({get:()=>{if(s.value===null)return;let{hour:e,minute:t}=s.value;return new $c(Number(e),Number(t))},set:e=>{if(e===void 0){s.value=null;return}let t=`${e.hour.toString().padStart(2,`0`)}:${e.minute.toString().padStart(2,`0`)}`;s.value=o.Temporal.PlainTime.from(t)}}),{hourCycle:l,locale:u}=J(),{theme:d}=W(),f=(0,t.ref)(!1),p=(0,t.computed)(()=>Rv({variant:i.variant??void 0})),m=(0,t.computed)(()=>N(`timeField`,d.value,{variant:i.variant})),h=(0,t.computed)(()=>l.value===null?null:l.value===`12-hour`?12:24);function g(e){f.value=!0,a(`focus`,e)}function _(e){f.value=!1,setTimeout(()=>{f.value||a(`blur`,e)})}return Mv({...G(i),customClassConfig:m,modelValue:s,style:p,onBlur:_,onFocus:g}),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:i.id,value:s.value,"is-loading":e.isLoading,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TimeFieldRoot),{modelValue:c.value,"onUpdate:modelValue":a[0]||=e=>c.value=e,locale:(0,t.unref)(u),required:i.isRequired,"is-invalid":i.errorMessage!==null,"hour-cycle":h.value??void 0},{default:(0,t.withCtx)(({segments:e})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(p.value.root({class:(0,t.unref)(P)(m.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(r.$slots,`default`,{segments:e})],10,zv)]),_:3},8,[`modelValue`,`locale`,`required`,`is-invalid`,`hour-cycle`])]),_:3},8,[`id`,`value`,`is-loading`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),Vv=(0,t.defineComponent)({__name:`TimeFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=Nv();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),Hv=(0,t.defineComponent)({__name:`TimeField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Bv,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(Pv),(0,t.createVNode)(Fv,{segments:n},null,8,[`segments`]),(0,t.createVNode)(Vv),(0,t.createVNode)(Lv)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Uv=1,$=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:Uv++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:`loading`,message:n.loading,description:typeof n.description==`function`?void 0:n.description}));let i=Promise.resolve(e instanceof Function?e():e),a=r!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],(0,t.isVNode)(e))a=!1,this.create({id:r,type:`default`,message:e});else if(Gv(e)&&!e.ok){a=!1;let i=typeof n.error==`function`?await n.error(`HTTP error! status: ${e.status}`):n.error,o=typeof n.description==`function`?await n.description(`HTTP error! status: ${e.status}`):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof n.error==`function`?await n.error(e):n.error,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(n.success!==void 0){a=!1;let i=typeof n.success==`function`?await n.success(e):n.success,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],n.error!==void 0){a=!1;let i=typeof n.error==`function`?await n.error(e):n.error,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally?.()}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof r!=`string`&&typeof r!=`number`?{unwrap:c}:Object.assign(r,{unwrap:c})};custom=(e,t)=>{let n=t?.id||Uv++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function Wv(e,t){let n=t?.id||Uv++;return $.create({message:e,id:n,type:`default`,...t}),n}var Gv=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Kv=Object.assign(Wv,{success:$.success,info:$.info,warning:$.warning,error:$.error,custom:$.custom,message:$.message,promise:$.promise,dismiss:$.dismiss,loading:$.loading},{getHistory:()=>$.toasts,getToasts:()=>$.getActiveToasts()});function qv(e){return e.label!==void 0}var Jv=3,Yv=`24px`,Xv=`16px`,Zv=4e3,Qv=356,$v=14,ey=45,ty=200;function ny(){let e=(0,t.ref)(!1);return(0,t.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function ry(...e){return e.filter(Boolean).join(` `)}function iy(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function ay(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Xv:Yv;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var oy=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],sy=[`aria-label`,`data-disabled`,`data-close-button-position`],cy=(0,t.defineComponent)({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(0),p=(0,t.ref)(0),m=(0,t.ref)(r.toast.duration||r.duration||Zv),h=(0,t.ref)(null),g=(0,t.ref)(null),_=(0,t.computed)(()=>r.index===0),v=(0,t.computed)(()=>r.index+1<=r.visibleToasts),y=(0,t.computed)(()=>r.toast.type),b=(0,t.computed)(()=>r.toast.dismissible!==!1),ee=(0,t.computed)(()=>r.toast.class||``),x=(0,t.computed)(()=>r.descriptionClass||``),te=(0,t.computed)(()=>{let e=r.toast.position||r.position,t=r.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===r.toast.id);return t>=0?t:0}),S=(0,t.computed)(()=>{let e=r.toast.position||r.position;return r.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=te.value?e:e+t.height,0)}),C=(0,t.computed)(()=>te.value*r.gap+S.value||0),ne=(0,t.computed)(()=>r.toast.closeButton??r.closeButton),re=(0,t.computed)(()=>r.toast.duration||r.duration||Zv),ie=(0,t.ref)(0),ae=(0,t.ref)(0),oe=(0,t.ref)(null),se=(0,t.computed)(()=>r.position.split(`-`)),w=(0,t.computed)(()=>se.value[0]),ce=(0,t.computed)(()=>se.value[1]),T=(0,t.computed)(()=>typeof r.toast.title!=`string`),le=(0,t.computed)(()=>typeof r.toast.description!=`string`),{isDocumentHidden:ue}=ny(),de=(0,t.computed)(()=>y.value&&y.value===`loading`);(0,t.onMounted)(()=>{s.value=!0,m.value=re.value}),(0,t.watchEffect)(async()=>{if(!s.value||!g.value)return;await(0,t.nextTick)();let e=g.value,n=e.style.height;e.style.height=`auto`;let a=e.getBoundingClientRect().height;e.style.height=n,p.value=a,i(`update:height`,{toastId:r.toast.id,height:a,position:r.toast.position||r.position})});function fe(){c.value=!0,f.value=C.value,setTimeout(()=>{i(`removeToast`,r.toast)},ty)}function E(){if(de.value||!b.value)return{};fe(),r.toast.onDismiss?.(r.toast)}function D(e){e.button!==2&&(de.value||!b.value||(h.value=new Date,f.value=C.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(l.value=!0,oe.value={x:e.clientX,y:e.clientY})))}function pe(){if(u.value||!b.value)return;oe.value=null;let e=Number(g.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(g.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(h.value?.getTime()||0),i=a.value===`x`?e:t,s=Math.abs(i)/n;if(Math.abs(i)>=ey||s>.11){f.value=C.value,r.toast.onDismiss?.(r.toast),a.value===`x`?o.value=e>0?`right`:`left`:o.value=t>0?`down`:`up`,fe(),u.value=!0;return}else g.value?.style.setProperty(`--swipe-amount-x`,`0px`),g.value?.style.setProperty(`--swipe-amount-y`,`0px`);d.value=!1,l.value=!1,a.value=null}function me(e){if(!oe.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-oe.value.y,n=e.clientX-oe.value.x,i=r.swipeDirections??iy(r.position);!a.value&&(Math.abs(n)>1||Math.abs(t)>1)&&(a.value=Math.abs(n)>Math.abs(t)?`x`:`y`);let o={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(a.value===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&t<0||i.includes(`bottom`)&&t>0)o.y=t;else{let e=t*s(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}else if(a.value===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&n<0||i.includes(`right`)&&n>0)o.x=n;else{let e=n*s(n);o.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(d.value=!0),g.value?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),g.value?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)}(0,t.onMounted)(()=>{if(s.value=!0,!g.value)return;let e=g.value.getBoundingClientRect().height;p.value=e,i(`update:heights`,[{toastId:r.toast.id,height:e,position:r.toast.position},...r.heights])}),(0,t.onBeforeUnmount)(()=>{g.value&&i(`removeToast`,r.toast)}),(0,t.watchEffect)(e=>{if(r.toast.promise&&y.value===`loading`||r.toast.duration===1/0||r.toast.type===`loading`)return;let t;r.expanded||r.interacting||ue.value?(()=>{if(ae.value<ie.value){let e=new Date().getTime()-ie.value;m.value-=e}ae.value=new Date().getTime()})():m.value!==1/0&&(ie.value=new Date().getTime(),t=setTimeout(()=>{r.toast.onAutoClose?.(r.toast),fe()},m.value)),e(()=>{clearTimeout(t)})}),(0,t.watch)(()=>r.toast.delete,e=>{e!==void 0&&e&&(fe(),r.toast.onDismiss?.(r.toast))},{deep:!0});function O(){l.value=!1,a.value=null,oe.value=null}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,t.normalizeClass)((0,t.unref)(ry)(r.class,ee.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[y.value],e.toast?.classes?.[y.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":s.value,"data-promise":!!e.toast.promise,"data-swiped":d.value,"data-removed":c.value,"data-visible":v.value,"data-y-position":w.value,"data-x-position":ce.value,"data-index":e.index,"data-front":_.value,"data-swiping":l.value,"data-dismissible":b.value,"data-type":y.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":u.value,"data-swipe-direction":o.value,"data-expanded":!!(e.expanded||e.expandByDefault&&s.value),"data-testid":e.toast.testId,style:(0,t.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${c.value?f.value:C.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...r.toast.style}),onDragend:O,onPointerdown:D,onPointerup:pe,onPointermove:me},[ne.value&&!e.toast.component&&y.value!==`loading`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":de.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:E},[e.icons?.close?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,t.renderSlot)(e.$slots,`close-icon`,{key:1})],10,sy)):(0,t.createCommentVNode)(`v-if`,!0),e.toast.component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.component),(0,t.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:E,isPaused:e.$props.expanded||e.$props.interacting||(0,t.unref)(ue)}),null,16,[`isPaused`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[y.value!==`default`||e.toast.icon||e.toast.promise?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[y.value===`loading`?(0,t.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,t.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,t.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,t.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,t.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,t.createCommentVNode)(`v-if`,!0)],64))],2)):(0,t.createCommentVNode)(`v-if`,!0),(0,t.createElementVNode)(`div`,{"data-content":``,class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.content,e.toast?.classes?.content))},[(0,t.createElementVNode)(`div`,{"data-title":``,class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.title,e.toast.classes?.title))},[T.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.title),(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,t.normalizeClass)((0,t.unref)(ry)(e.descriptionClass,x.value,e.classes?.description,e.toast.classes?.description))},[le.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.description),(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.toast.description),1)],64))],2)):(0,t.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,style:(0,t.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:n[0]||=n=>{(0,t.unref)(qv)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(n),fe())}},(0,t.toDisplayString)((0,t.unref)(qv)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,t.createCommentVNode)(`v-if`,!0),e.toast.action?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,style:(0,t.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,t.normalizeClass)((0,t.unref)(ry)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:n[1]||=n=>{(0,t.unref)(qv)(e.toast.action)&&(e.toast.action.onClick?.(n),!n.defaultPrevented&&fe())}},(0,t.toDisplayString)((0,t.unref)(qv)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,t.createCommentVNode)(`v-if`,!0)],64))],46,oy))}}),ly=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},uy={},dy={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function fy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,dy,n[0]||=[(0,t.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,t.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var py=ly(uy,[[`render`,fy]]),my=[`data-visible`],hy={class:`sonner-spinner`},gy=(0,t.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let n=Array(12).fill(0);return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,t.createElementVNode)(`div`,hy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,my))}}),_y={},vy={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function yy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,vy,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var by=ly(_y,[[`render`,yy]]),xy={},Sy={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Cy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Sy,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var wy=ly(xy,[[`render`,Cy]]),Ty={},Ey={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function Dy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ey,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var Oy=ly(Ty,[[`render`,Dy]]),ky={},Ay={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function jy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ay,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var My=ly(ky,[[`render`,jy]]),Ny=[`aria-label`],Py=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],Fy=typeof window<`u`&&typeof document<`u`;function Iy(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var Ly=(0,t.defineComponent)({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:$v},visibleToasts:{default:Jv},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:Yv},mobileOffset:{default:Xv},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let n=e,r=(0,t.useAttrs)(),i=(0,t.ref)([]),a=(0,t.computed)(()=>n.id?i.value.filter(e=>e.toasterId===n.id):i.value.filter(e=>!e.toasterId));function o(e,t){return a.value.filter(n=>!n.position&&t===0||n.position===e)}let s=(0,t.computed)(()=>{let e=a.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([n.position].concat(e))):[n.position]}),c=(0,t.computed)(()=>{let e={};return s.value.forEach(t=>{e[t]=i.value.filter(e=>e.position===t)}),e}),l=(0,t.ref)([]),u=(0,t.ref)({}),d=(0,t.ref)(!1);(0,t.watchEffect)(()=>{s.value.forEach(e=>{e in u.value||(u.value[e]=!1)})});let f=(0,t.ref)(n.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:n.theme),p=(0,t.ref)(null),m=(0,t.ref)(null),h=(0,t.ref)(!1),g=n.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){i.value.find(t=>t.id===e.id)?.delete||$.dismiss(e.id),i.value=i.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{i.value.find(t=>t.id===e.id)||(l.value=l.value.filter(t=>t.toastId!==e.id))},250)}function v(e){h.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(h.value=!1,m.value&&=(m.value.focus({preventScroll:!0}),null))}function y(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||h.value||(h.value=!0,m.value=e.relatedTarget)}function b(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(d.value=!0)}(0,t.watchEffect)(e=>{e($.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{i.value=i.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,t.nextTick)(()=>{let t=i.value.findIndex(t=>t.id===e.id);t===-1?i.value=[e,...i.value]:i.value=[...i.value.slice(0,t),{...i.value[t],...e},...i.value.slice(t+1)]})}))}),(0,t.watchEffect)(e=>{if(typeof window>`u`)return;if(n.theme!==`system`){f.value=n.theme;return}let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{f.value=e?`dark`:`light`};r(t.matches);let i=e=>{r(e.matches)};try{t.addEventListener(`change`,i)}catch{t.addListener(i)}e(()=>{try{t.removeEventListener(`change`,i)}catch{t.removeListener(i)}})}),(0,t.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,t.watchEffect)(()=>{i.value.length<=1&&Object.keys(u.value).forEach(e=>{u.value[e]=!1})}),(0,t.watchEffect)(e=>{function t(e){let t=n.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(p.value)?p.value[0]:p.value;t&&(s.value.forEach(e=>{u.value[e]=!0}),r?.focus());let i=document.activeElement===p.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&s.value.forEach(e=>{u.value[e]=!1})}Fy&&(document.addEventListener(`keydown`,t),e(()=>{document.removeEventListener(`keydown`,t)}))});function ee(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);u.value[n]=!0}function x(e){if(!d.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);u.value[n]=!1}}function te(){Object.keys(u.value).forEach(e=>{u.value[e]=!1})}function S(){d.value=!1}function C(e){l.value=e}function ne(e){let t=l.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)l.value[t]=e;else{let t=l.value.findIndex(t=>t.position===e.position);t===-1?l.value.unshift(e):l.value.splice(t,0,e)}}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,t.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,t.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ol`,(0,t.mergeProps)({key:i,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":f.value,class:n.class,dir:e.dir===`auto`?Iy():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":i.split(`-`)[0],"data-x-position":i.split(`-`)[1],style:{"--front-toast-height":`${l.value[0]?.height||0}px`,"--width":`${(0,t.unref)(Qv)}px`,"--gap":`${e.gap}px`,...e.style,...(0,t.unref)(r).style,...(0,t.unref)(ay)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:v,onFocus:y,onMouseenter:ee,onMousemove:ee,onMouseleave:x,onDragend:te,onPointerdown:b,onPointerup:S}),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o(i,a),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)(cy,{key:r.id,heights:l.value,icons:e.icons,index:a,toast:r,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,t.normalizeClass)(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:d.value,position:i,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:(0,t.normalizeStyle)(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:c.value[i],expandByDefault:e.expand,gap:e.gap,expanded:u.value[i]||!1,swipeDirections:n.swipeDirections,"onUpdate:heights":C,"onUpdate:height":ne,onRemoveToast:_},{"close-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,t.createVNode)(py)])]),"loading-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,t.createVNode)(gy,{visible:r.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,t.createVNode)(by)])]),"error-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,t.createVNode)(My)])]),"warning-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,t.createVNode)(Oy)])]),"info-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,t.createVNode)(wy)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,Py))),128))],8,Ny)],2112))}}),[Ry,zy]=R(`toastContext`),By=(0,t.defineComponent)({__name:`ToastActions`,setup(e){let{actions:n,customClassConfig:r,style:i,onClose:a}=zy();function o(e){return Object.entries(e).reduce((e,[n,r])=>(e[n]=(0,t.toValue)(r),e),{})}return(e,s)=>(0,t.unref)(n).length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(i).actions({class:(0,t.unref)(r).actions}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createBlock)(vs,(0,t.mergeProps)({key:e.label},{ref_for:!0},o({...e,onClick:void 0}),{size:(0,t.toValue)(e.size)??`sm`,onClick:()=>{e.onClick((0,t.unref)(a))}}),{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1040,[`size`,`onClick`]))),128))],2)):(0,t.createCommentVNode)(``,!0)}}),Vy=(0,t.defineComponent)({__name:`ToastCloseButton`,setup(e){let{customClassConfig:n,onClose:r}=zy(),{t:a}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(q,{label:(0,t.unref)(a)(`shared.close`),"class-config":(0,t.unref)(ln)({root:`absolute top-1.5 right-1.5`},(0,t.unref)(n)?.closeButton),icon:`close`,variant:`tertiary`,size:`sm`,onClick:(0,t.unref)(r)},null,8,[`label`,`class-config`,`onClick`]))}}),Hy=[`innerHTML`],Uy=(0,t.defineComponent)({__name:`ToastDescription`,setup(e){let{customClassConfig:n,description:r,style:i}=zy();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{class:(0,t.normalizeClass)((0,t.unref)(i).description({class:(0,t.unref)(n).description})),innerHTML:(0,t.unref)(r)},null,10,Hy))}}),Wy={key:0,class:`flex h-lh items-center`},Gy=(0,t.defineComponent)({__name:`ToastIcon`,setup(e){let{customClassConfig:n,icon:r,preview:i,style:a,type:o}=zy(),s=(0,t.computed)(()=>r.value===null?o.value===`success`?`checkCircle`:o.value===`error`?`alertCircle`:`infoCircle`:r.value);return(e,r)=>(0,t.unref)(i)===null&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wy,[(0,t.createVNode)(L,{icon:s.value,class:(0,t.normalizeClass)((0,t.unref)(a).icon({class:(0,t.unref)(n).icon}))},null,8,[`icon`,`class`])])):(0,t.createCommentVNode)(``,!0)}}),Ky=(0,t.defineComponent)({__name:`ToastPreview`,setup(e){let{preview:n}=zy();return(e,r)=>(0,t.unref)(n)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(n)),{key:0}))}}),qy=H({slots:{title:new U().withBase(`truncate`).withFontSize(`text-sm`).withColor(`text-primary`).withFontWeight(`font-semibold`).build(),actions:new U().withFlex(`flex items-center gap-x-sm mt-lg`).build(),description:new U().withSpacing(`mt-xs`).withBase(`line-clamp-2`).withFontSize(`text-sm`).withFontColor(`text-secondary`).build(),icon:new U().withSize(`size-5`).withColor(`group-data-[type=success]/toast:text-success-primary group-data-[type=error]/toast:text-error-primary group-data-[type=info]/toast:text-fg-brand-primary`).build(),root:new U().withBase(`group/toast relative pointer-events-auto`).withGrid(`grid grid-cols-[auto_1fr] items-start gap-lg`).withSize(`w-100`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-xl`).withBackgroundColor(`bg-primary dark:bg-secondary`).withPadding(`p-xl`).withShadow(`shadow-lg`).withOutline(`outline-brand-500`).build()}}),Jy=[`data-type`],Yy=(0,t.defineComponent)({__name:`ToastRoot`,props:{title:{},actions:{default:()=>[]},description:{},icon:{default:null},preview:{default:null},type:{},testId:{default:null}},emits:[`closeToast`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>qy({})),s=(0,t.computed)(()=>N(`toast`,a.value,{}));function c(){i(`closeToast`)}return Ry({...G(r),customClassConfig:s,style:o,onClose:c}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(o.value.root({class:s.value.root})),"data-type":e.type},[(0,t.renderSlot)(n.$slots,`default`)],10,Jy))}}),Xy=(0,t.defineComponent)({__name:`ToastTitle`,setup(e){let{title:n,customClassConfig:r,style:i}=zy();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(i).title({class:(0,t.unref)(r).title}))},(0,t.toDisplayString)((0,t.unref)(n)),3))}}),Zy=(0,t.defineComponent)({__name:`Toast`,props:{title:{},actions:{},description:{},icon:{},preview:{},type:{},testId:{}},emits:[`closeToast`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Yy,(0,t.mergeProps)(r,{onCloseToast:n[0]||=e=>i(`closeToast`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ky),(0,t.createVNode)(Gy),(0,t.createElementVNode)(`div`,null,[(0,t.createVNode)(Xy),(0,t.createVNode)(Uy),(0,t.createVNode)(By)]),(0,t.createVNode)(Vy)]),_:1},16))}}),Qy=1/0,$y=5e3,eb=7e3;function tb(e){return`${e.title}${e.description}`}function nb(){let{autoCloseToast:e,toastPosition:n}=J();function r(t,n){if(t.durationMs!==void 0&&t.durationMs!==null)return t.durationMs;let r=e.value?.[n]??null;return r===null?n===`error`?Qy:$y:typeof r==`number`?r:r===!0?n===`error`?eb:$y:Qy}function i(e){Kv.custom((0,t.h)(Zy,{...e,type:`error`}),{id:tb(e),duration:r(e,`error`),position:n})}function a(e){Kv.custom((0,t.h)(Zy,{...e,type:`info`}),{id:tb(e),duration:r(e,`info`),position:n})}function o(e){Kv.custom((0,t.h)(Zy,{...e,type:`success`}),{id:tb(e),duration:r(e,`success`),position:n})}return{error:i,info:a,success:o}}var rb=(0,t.defineComponent)({__name:`ToastContainer`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Ly),{class:`right-20!`}))}}),[ib,ab]=R(`tooltipContext`),ob=(0,t.defineComponent)({__name:`TooltipArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=ab();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-10 -translate-y-px overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),sb=(0,t.defineComponent)({__name:`TooltipContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h}=ab();return(e,g)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TooltipContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(c),"align-offset":(0,t.unref)(l),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(s)?.content,(0,t.unref)(o)?.content)})),"position-strategy":`absolute`,sticky:`always`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`])]),_:3})]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),cb=4,lb=(0,t.defineComponent)({__name:`TooltipContentTransition`,setup(e){let{isInitialAnimationEnabled:n}=ab(),i=(0,t.useAttrs)(),a=(0,t.computed)(()=>i[`data-side`]);function o(e){switch(e){case`top`:return{transform:`translateY(${cb}px) scale(0.9)`};case`bottom`:return{transform:`translateY(-${cb}px) scale(0.9)`};case`left`:return{transform:`translateX(${cb}px) scale(0.9)`};case`right`:return{transform:`translateX(-${cb}px) scale(0.9)`}}}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...o(a.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`,transition:(0,t.unref)(n)?{duration:.2,type:`spring`,bounce:0}:{duration:0}},exit:{opacity:0,...o(a.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-tooltip-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`exit`]))}}),ub=(0,t.defineComponent)({__name:`TooltipInnerContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=ab();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).innerContent({class:(0,t.unref)(P)((0,t.unref)(r).innerContent,(0,t.unref)(n)?.innerContent)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),db=(0,t.defineComponent)({__name:`TooltipPortal`,setup(e){let n=J();return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{defer:!0,to:(0,t.unref)(n).teleportTargetSelector},[(0,t.renderSlot)(e.$slots,`default`)],8,[`to`]))}}),fb=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`data-[content-width=anchor-width]:w-(--reka-tooltip-trigger-width) data-[content-width=available-width]:w-(--reka-tooltip-content-available-width)`).withZIndex(`z-40`).build(),innerContent:new U().withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withBase(`relative overflow-hidden`).withSize(`size-full`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).build()},variants:{variant:{}}}),pb=(0,t.defineComponent)({__name:`TooltipRoot`,props:(0,t.mergeModels)({isDisabled:{type:Boolean,default:!1},delayDuration:{default:200},disableCloseOnTriggerClick:{type:Boolean,default:!1},disableHoverableContent:{type:Boolean,default:!1},variant:{default:null},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`top`},popoverSideOffset:{default:10},popoverWidth:{default:null},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:[`update:isOpen`],setup(e){let r=e,i=(0,t.useModel)(e,`isOpen`),{theme:a}=W(),{isOpenDelayed:o}=(0,n.injectTooltipProviderContext)(),s=(0,t.ref)(!0);(0,t.watch)(o,e=>{e?s.value=!0:setTimeout(()=>{s.value=e},100)});let c=(0,t.computed)(()=>fb({variant:r.variant??void 0})),l=(0,t.computed)(()=>N(`tooltip`,a.value,{variant:r.variant}));return ib({...G(r),isInitialAnimationEnabled:(0,t.computed)(()=>s.value),isOpen:(0,t.computed)(()=>i.value),customClassConfig:l,style:c}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipRoot),{open:i.value,"onUpdate:open":a[0]||=e=>i.value=e,"delay-duration":r.delayDuration,"disable-hoverable-content":r.disableHoverableContent,"disable-closing-trigger":r.disableCloseOnTriggerClick,disabled:r.isDisabled,"ignore-non-keyboard-focus":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`,`delay-duration`,`disable-hoverable-content`,`disable-closing-trigger`,`disabled`]))}}),mb=(0,t.defineComponent)({__name:`TooltipTrigger`,setup(e){let{popoverAnchorReferenceElement:r}=ab();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipTrigger),{"as-child":!0,reference:(0,t.unref)(r)??void 0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`reference`]))}}),hb=(0,t.defineComponent)({__name:`Tooltip`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},delayDuration:{},disableCloseOnTriggerClick:{type:Boolean},disableHoverableContent:{type:Boolean},variant:{},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},testId:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:[`update:isOpen`],setup(e){let n=e,r=(0,t.useModel)(e,`isOpen`);return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(pb,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mb,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3}),(0,t.createVNode)(db,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(sb,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(lb,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ub,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`)]),_:3}),(0,t.createVNode)(ob)]),_:3})]),_:3})]),_:3})]),_:3},16,[`modelValue`]))}});function gb(){return Te(`theme`,()=>`light`)}var _b=new WeakMap;function vb(e,n,r={}){let{mode:i=`replace`,route:o=(0,a.useRoute)(),router:s=(0,a.useRouter)(),transform:c}=r,l=e=>e,u=e=>e;typeof c==`function`?l=c:c&&(c.get&&(l=c.get),c.set&&(u=c.set)),_b.has(s)||_b.set(s,new Map);let d=_b.get(s),f=o.query[e];b(()=>{f=void 0});let p,m=(0,t.customRef)((r,a)=>(p=a,{get(){return r(),l(f===void 0?(0,t.toValue)(n):f)},set(r){r=u(r),f!==r&&(f=r===(0,t.toValue)(n)?void 0:r,d.set(e,r===(0,t.toValue)(n)?void 0:r),a(),(0,t.nextTick)(()=>{if(d.size===0)return;let e=Object.fromEntries(d.entries());d.clear();let{params:n,query:r,hash:a}=o;s[(0,t.toValue)(i)]({params:n,query:{...r,...e},hash:a})}))}}));return(0,t.watch)(()=>o.query[e],e=>{f!==l(e)&&(f=e,p())},{flush:`sync`}),m}function yb(e){return btoa(e)}function bb(e){return atob(e)}var xb=20;function Sb({isRouteQueryEnabled:e,key:n,options:r=null,type:i=`offset`}){let a=J(),o={filter:{},pagination:i===`offset`?{limit:a.pagination?.limit??xb,offset:0,type:`offset`}:{key:null,limit:a.pagination?.limit??xb,type:`keyset`},search:void 0,sort:void 0,staticFilters:{}};if(e&&n===void 0)throw Error("The `key` prop is required when using the `isRouteQueryEnabled` prop");let s=e?vb(n):null,c=(0,t.shallowRef)(d());function l(e,t){let n={...t.filter,...e.filter},r=t.search??e.search??``;return{filter:n,pagination:{...t.pagination,...e.pagination},search:r.trim().length>0?r:void 0,sort:t.sort??e.sort??void 0,staticFilters:{...t.staticFilters,...e.staticFilters}}}function u(){if(s===null)return null;let e=s.value;return e==null?null:JSON.parse(bb(e.toString()))}function d(){let e=u();return e===null?r===null?structuredClone(o):l((0,t.toValue)(r),o):e}function f(e){c.value={...c.value,pagination:{...c.value.pagination,...e}}}function p(e){let t=Object.fromEntries(Object.entries({...c.value.filter,...e}).filter(([,e])=>e!==void 0));c.value={...c.value,filter:t,pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`}}}function m(e){c.value={...c.value,pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`},search:e.trim().length>0?e:void 0}}function h(e){c.value={...c.value,sort:{key:e.key,order:e.order}}}function g(){c.value={...c.value,filter:{},pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`}}}return(0,t.watch)(()=>(0,t.toValue)(r),e=>{e!==null&&(c.value=l((0,t.toValue)(e),c.value))}),(0,t.watch)(c,t=>{e&&s!==null&&(s.value=yb(JSON.stringify(t)))}),{clearFilters:g,handleFilterChange:p,handlePageChange:f,handleSearchChange:m,handleSortChange:h,paginationOptions:(0,t.computed)(()=>c.value)}}var Cb=0,wb=20,Tb=class{params;constructor(e){let t={...e?.filter,...e?.staticFilters},n=this.getPaginationSet(e);this.params={pagination:n,search:e?.search};for(let[e,n]of Object.entries(t))this.withFilter(e,n);e?.sort!==void 0&&this.withSort({key:e.sort.key,order:e.sort.order})}getPaginationSet(e){let t=e?.pagination.limit??wb;return e===void 0?{limit:t,offset:Cb}:e?.pagination?.type===`offset`?{limit:t,offset:e?.pagination.offset??Cb}:{key:e?.pagination.key,limit:t}}build(e){let t=this.params.pagination;return{...this.params,filter:e?.(this.params).filter,pagination:{limit:t.limit,offset:`offset`in t?t.offset:Cb},sort:this.params?.sort?.map(e=>({key:e.key,order:e.order}))??[]}}buildKeyset(e){return{...this.params,filter:e?.(this.params).filter,pagination:{key:this.params.pagination.key,limit:this.params.pagination?.limit},sort:this.params?.sort?.map(e=>({key:e.key,order:e.order}))??[]}}withFilter(e,t){return t!==null&&t!==``&&(this.params.filter={...this.params.filter,[e]:t}),this}withKey(e){if(`offset`in this.params.pagination)throw Error(`Cannot set key when using offset pagination`);return this.params.pagination.key=e,this}withLimit(e){return this.params.pagination.limit=e,this}withOffset(e){if(`key`in this.params.pagination)throw Error(`Cannot set offset when using keyset pagination`);return`offset`in this.params.pagination&&(this.params.pagination.offset=e),this}withSearch(e){return this.params.search=e,this}withSort(e){return this.params.sort=[{key:e.key,order:e.order}],this}};e.FileUploadStatus=ed,e.PaginationParamsBuilder=Tb,e.VcAddressAutocomplete=es,e.VcAutocomplete=Xo,e.VcAvatar=ss,e.VcAvatarFallback=is,e.VcAvatarImage=as,e.VcAvatarRoot=os,e.VcBadge=eo,e.VcBadgeIcon=Ia,e.VcBadgeRemoveButton=Xa,e.VcBadgeRoot=$a,e.VcButton=vs,e.VcButtonContent=fs,e.VcButtonIconLeft=ps,e.VcButtonIconRight=ms,e.VcButtonLoader=gs,e.VcButtonRoot=_s,e.VcCheckbox=Fs,e.VcCheckboxControl=Ms,e.VcCheckboxGroup=Rs,e.VcCheckboxGroupRoot=Ls,e.VcCheckboxIndicator=js,e.VcCheckboxRoot=Ps,e.VcConfigProvider=Bs,e.VcDateField=Bl,e.VcDateFieldIconLeft=Ws,e.VcDateFieldInput=Gs,e.VcDateFieldLoader=qs,e.VcDateFieldPopover=Ll,e.VcDateFieldRoot=zl,e.VcDatePicker=Ml,e.VcDatePickerDate=Qs,e.VcDatePickerGrid=ul,e.VcDatePickerHeader=Ol,e.VcDatePickerRoot=jl,e.VcDateRangeField=du,e.VcDateRangeFieldIconLeft=ru,e.VcDateRangeFieldInput=iu,e.VcDateRangeFieldLoader=ou,e.VcDateRangeFieldRoot=uu,e.VcDateRangePicker=$l,e.VcDateRangePickerDate=Wl,e.VcDateRangePickerGrid=Gl,e.VcDateRangePickerHeader=Zl,e.VcDateRangePickerRoot=Ql,e.VcDateRangefieldPopover=cu,e.VcDialog=Tu,e.VcDialogCloseButton=Du,e.VcDialogContainer=Eu,e.VcDialogContent=yu,e.VcDialogContentTransition=bu,e.VcDialogDescription=Ou,e.VcDialogOverlay=xu,e.VcDialogOverlayTransition=Su,e.VcDialogPortal=Cu,e.VcDialogRoot=wu,e.VcDialogTitle=ku,e.VcDropdownMenu=Vu,e.VcDropdownMenuArrow=Nu,e.VcDropdownMenuContent=Pu,e.VcDropdownMenuContentTransition=Lu,e.VcDropdownMenuGroup=Hu,e.VcDropdownMenuItem=Ju,e.VcDropdownMenuItemIcon=Ku,e.VcDropdownMenuItemLabel=qu,e.VcDropdownMenuPortal=Ru,e.VcDropdownMenuRoot=zu,e.VcDropdownMenuSeparator=Yu,e.VcDropdownMenuSubMenu=Qu,e.VcDropdownMenuSubMenuTransition=Zu,e.VcDropdownMenuTrigger=Bu,e.VcFileUploadDropzone=rd,e.VcFileUploadItem=yd,e.VcFileUploadItemRemove=bd,e.VcFileUploadItemReplace=xd,e.VcFileUploadRoot=wd,e.VcFileUploadTrigger=Td,e.VcFormField=Ma,e.VcFormFieldError=ia,e.VcFormFieldHint=oa,e.VcFormFieldLabel=la,e.VcFormFieldRoot=ja,e.VcIcon=L,e.VcIconButton=q,e.VcIconButtonIcon=za,e.VcIconButtonLoader=Ga,e.VcIconButtonRoot=Ya,e.VcKeyboardKey=Dd,e.VcKeyboardShortcut=jd,e.VcKeyboardShortcutProvider=Fd,e.VcLayoutStackItem=Rd,e.VcLayoutStackRoot=zd,e.VcNumberField=Sl,e.VcNumberFieldDecrement=pl,e.VcNumberFieldIconLeft=ml,e.VcNumberFieldIconRight=hl,e.VcNumberFieldIncrement=gl,e.VcNumberFieldInput=_l,e.VcNumberFieldLoader=yl,e.VcNumberFieldRoot=xl,e.VcPasswordField=Wd,e.VcPhoneNumberField=y_,e.VcPopover=Fl,e.VcPopoverAnchor=ko,e.VcPopoverArrow=Ao,e.VcPopoverCloseButton=b_,e.VcPopoverContent=Mo,e.VcPopoverContentTransition=Pl,e.VcPopoverPortal=Po,e.VcPopoverRoot=Io,e.VcPopoverTrigger=zo,e.VcRadioGroup=S_,e.VcRadioGroupItem=A_,e.VcRadioGroupItemControl=D_,e.VcRadioGroupItemIndicator=T_,e.VcRadioGroupItemRoot=k_,e.VcRadioGroupRoot=x_,e.VcRouterLinkButton=Es,e.VcRouterLinkButtonContent=xs,e.VcRouterLinkButtonIconLeft=Ss,e.VcRouterLinkButtonIconRight=Cs,e.VcRouterLinkButtonRoot=Ts,e.VcRouterLinkTabs=Cv,e.VcRouterLinkTabsItem=Sv,e.VcSelect=Yo,e.VcSelectBase=co,e.VcSelectBaseMultiple=ao,e.VcSelectBaseSingle=so,e.VcSelectItem=ea,e.VcSelectItemIndicator=Zi,e.VcSpinner=Ua,e.VcSwitch=L_,e.VcSwitchRoot=P_,e.VcSwitchThumb=F_,e.VcSwitchThumbIcon=I_,e.VcTableBody=H_,e.VcTableCell=K_,e.VcTableCellSkeleton=q_,e.VcTableContent=J_,e.VcTableHeader=Y_,e.VcTableHeaderCell=X_,e.VcTableHiddenResultsHint=Q_,e.VcTableRoot=tv,e.VcTableRow=iv,e.VcTableScrollContainer=av,e.VcTabs=yv,e.VcTabsBase=cv,e.VcTabsContent=bv,e.VcTabsIndicator=lv,e.VcTabsItem=xv,e.VcTabsList=uv,e.VcTabsRoot=pv,e.VcTextField=Ud,e.VcTextFieldIconLeft=po,e.VcTextFieldIconRight=Bd,e.VcTextFieldInput=ho,e.VcTextFieldLoader=Hd,e.VcTextFieldRoot=vo,e.VcTextarea=jv,e.VcTextareaInput=Dv,e.VcTextareaRoot=Av,e.VcThemeProvider=jo,e.VcTimeField=Hv,e.VcTimeFieldIconLeft=Pv,e.VcTimeFieldInput=Fv,e.VcTimeFieldLoader=Lv,e.VcTimeFieldRoot=Bv,e.VcToastContainer=rb,e.VcTooltip=hb,e.VcTooltipArrow=ob,e.VcTooltipContent=sb,e.VcTooltipContentTransition=lb,e.VcTooltipInnerContent=ub,e.VcTooltipPortal=db,e.VcTooltipProvider=zs,e.VcTooltipRoot=pb,e.VcTooltipTrigger=mb,e.createAvatarStyle=ts,e.createBadgeStyle=Za,e.createButtonStyle=ls,e.createDateFieldStyle=Vs,e.createDatePickerStyle=Al,e.createDateRangeFieldStyle=eu,e.createDateRangePickerStyle=Vl,e.createDialogStyle=gu,e.createDropdownMenuStyle=Au,e.createFormFieldStyle=Da,e.createIconButtonStyle=qa,e.createKeyboardKeyStyle=Ed,e.createKeyboardShortcutStyle=Od,e.createNumberFieldStyle=bl,e.createPopoverStyle=Fo,e.createRouterLinkButtonStyle=ws,e.createSelectStyle=Go,e.createTabsStyle=fv,e.createTextFieldStyle=go,e.createToastStyle=qy,e.createTooltipStyle=fb,e.defineComponentVariant=sn,e.extendIcons=qi,e.useAppearance=gb,e.useDialog=hu,e.useInjectConfigContext=J,e.useInjectToastContext=zy,e.useKeyboardShortcut=Pd,e.usePagination=Sb,e.useToast=nb});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue"),require("reka-ui"),require("motion-v"),require("vue-i18n"),require("vue-router"),require("temporal-polyfill")):typeof define==`function`&&define.amd?define([`exports`,`vue`,`reka-ui`,`motion-v`,`vue-i18n`,`vue-router`,`temporal-polyfill`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`vue-core`]={},e.Vue,e.RekaUI,e.MotionV,e.VueI18n,e.VueRouter,e.Temporal))})(this,function(e,t,n,r,i,a,o){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var s=Object.defineProperty,c=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>{let n={};for(var r in e)s(n,r,{get:e[r],enumerable:!0});return t||s(n,Symbol.toStringTag,{value:`Module`}),n};function u(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var f=d(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),p=`__googleMapsScriptId`,m;(function(e){e[e.INITIALIZED=0]=`INITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.SUCCESS=2]=`SUCCESS`,e[e.FAILURE=3]=`FAILURE`})(m||={});var h=class e{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:a=p,language:o,libraries:s=[],mapIds:c,nonce:l,region:u,retries:d=3,url:m=`https://maps.googleapis.com/maps/api/js`,version:h}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=a||`__googleMapsScriptId`,this.language=o,this.libraries=s,this.mapIds=c,this.nonce=l,this.region=u,this.retries=d,this.url=m,this.version=h,e.instance){if(!f(this.options,e.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?m.FAILURE:this.done?m.SUCCESS:this.loading?m.LOADING:m.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=__googleMapsCallback&loading=async`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(`,`)}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(`,`)}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let e={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(e).forEach(t=>!e[t]&&delete e[t]),(window==null?void 0:window.google)?.maps?.importLibrary||(e=>{let t,n,r,i=`google`,a=`importLibrary`,o=document,s=window;s=s[i]||(s[i]={});let c=s.maps||={},l=new Set,d=new URLSearchParams,f=()=>t||=new Promise((i,a)=>u(this,void 0,void 0,function*(){for(r in yield n=o.createElement(`script`),n.id=this.id,d.set(`libraries`,[...l]+``),e)d.set(r.replace(/[A-Z]/g,e=>`_`+e[0].toLowerCase()),e[r]);d.set(`callback`,`google.maps.__ib__`),n.src=this.url+`?`+d,c.__ib__=i,n.onerror=()=>t=a(Error(`The Google Maps JavaScript API could not load.`)),n.nonce=this.nonce||o.querySelector(`script[nonce]`)?.nonce||``,o.head.append(n)}));c[a]?console.warn(`The Google Maps JavaScript API only loads once. Ignoring:`,e):c[a]=(e,...t)=>l.add(e)&&f().then(()=>c[a](e,...t))})(e);let t=this.libraries.map(e=>this.importLibrary(e));t.length||t.push(this.importLibrary(`core`)),Promise.all(t).then(()=>this.callback(),e=>{let t=new ErrorEvent(`error`,{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*2**this.errors.length;console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn(`Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match.`),this.callback();return}this.loading=!0,this.setScript()}}};function g(e,t){return e.find(e=>e.types[0]===t)??null}async function _(e){let t=new google.maps.places.Place({id:e});await t.fetchFields({fields:[`addressComponents`,`location`]});let n=t.location?.lat()??null,r=t.location?.lng()??null;return{placeId:t.id??null,bus:g(t.addressComponents??[],`subpremise`)?.longText??``,city:g(t.addressComponents??[],`locality`)?.longText??``,coordinates:{lat:n,lng:r},country:g(t.addressComponents??[],`country`)?.shortText??``,postalCode:g(t.addressComponents??[],`postal_code`)?.longText??``,street:g(t.addressComponents??[],`route`)?.longText??``,streetNumber:g(t.addressComponents??[],`street_number`)?.longText??``}}function v(e){let t=[],n=[];return e.street!==``&&t.push(e.street),e.streetNumber!==``&&t.push(e.streetNumber),e.bus!==``&&t.push(e.bus),e.postalCode!==``&&n.push(e.postalCode),e.city!==``&&n.push(e.city),{placeId:``,mainText:t.join(` `),secondaryText:n.join(` `)}}function y(e){let t=[];return e.mainText!==``&&t.push(e.mainText),e.secondaryText!==``&&t.push(e.secondaryText),t.join(`, `)}function b(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}function ee(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return b(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}var x=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var te=Object.prototype.toString,S=e=>te.call(e)===`[object Object]`,C=()=>{},ne=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function re(...e){if(e.length!==1)return(0,t.toRef)(...e);let n=e[0];return typeof n==`function`?(0,t.readonly)((0,t.customRef)(()=>({get:n,set:C}))):(0,t.ref)(n)}function ie(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var ae=e=>e();function oe(e,n={}){let r,i,a=C,o=e=>{clearTimeout(e),a(),a=C},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function se(e=ae,n={}){let{initialState:r=`active`}=n,i=re(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,t.readonly)(i),pause:a,resume:o,eventFilter:(...t)=>{i.value&&e(...t)}}}function w(e){return Array.isArray(e)?e:[e]}function ce(e){return e||(0,t.getCurrentInstance)()}function T(e,t=200,n={}){return ie(oe(t,n),e)}function le(e,n,r={}){let{eventFilter:i=ae,...a}=r;return(0,t.watch)(e,ie(i,n),a)}function ue(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=se(r,{initialState:i});return{stop:le(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}var de=ue;function fe(e,n=!0,r){ce(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function E(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}var D=x?window:void 0,pe=x?window.document:void 0;x&&window.navigator,x&&window.location;function me(e){let n=(0,t.toValue)(e);return n?.$el??n}function O(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=w((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return E(()=>[r.value?.map(e=>me(e))??[D].filter(e=>e!=null),w((0,t.toValue)(r.value?e[1]:e[0])),w((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=S(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function he(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function ge(e){let n=he();return(0,t.computed)(()=>(n.value,!!e()))}var _e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},ve=`__vueuse_ssr_handlers__`,ye=be();function be(){return ve in _e||(_e[ve]=_e[ve]||{}),_e[ve]}function xe(e,t){return ye[e]||t}function Se(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var Ce={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},we=`vueuse-storage`;function Te(e,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=D,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:m}=i,h=(u?t.shallowRef:t.ref)(typeof n==`function`?n():n),g=(0,t.computed)(()=>(0,t.toValue)(e));if(!r)try{r=xe(`getDefaultStorage`,()=>D?.localStorage)()}catch(e){p(e)}if(!r)return h;let _=(0,t.toValue)(n),v=Se(_),y=i.serializer??Ce[v],{pause:b,resume:ee}=de(h,e=>S(e),{flush:a,deep:o,eventFilter:f});(0,t.watch)(g,()=>ne(),{flush:a});let x=!1;d&&s&&(r instanceof Storage?O(d,`storage`,e=>{m&&!x||ne(e)},{passive:!0}):O(d,we,e=>{m&&!x||re(e)})),m?fe(()=>{x=!0,ne()}):ne();function te(e,t){if(d){let n={key:g.value,oldValue:e,newValue:t,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(we,{detail:n}))}}function S(e){try{let t=r.getItem(g.value);if(e==null)te(t,null),r.removeItem(g.value);else{let n=y.write(e);t!==n&&(r.setItem(g.value,n),te(t,n))}}catch(e){p(e)}}function C(e){let t=e?e.newValue:r.getItem(g.value);if(t==null)return c&&_!=null&&r.setItem(g.value,y.write(_)),_;if(!e&&l){let e=y.read(t);return typeof l==`function`?l(e,_):v===`object`&&!Array.isArray(e)?{..._,...e}:e}else if(typeof t!=`string`)return t;else return y.read(t)}function ne(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){h.value=_;return}if(!(e&&e.key!==g.value)){b();try{let t=y.write(h.value);(e===void 0||e?.newValue!==t)&&(h.value=C(e))}catch(e){p(e)}finally{e?(0,t.nextTick)(ee):ee()}}}}function re(e){ne(e.detail)}return h}function Ee(e,n={}){let r=(0,t.shallowRef)(!1),i=(0,t.shallowRef)(null),a=0,o=!0;if(x){let s=typeof n==`function`?{onDrop:n}:n,c=s.multiple??!0,l=s.preventDefaultForUnhandled??!1,u=e=>{let t=Array.from(e.dataTransfer?.files??[]);return t.length===0?null:c?t:[t[0]]},d=e=>{let n=(0,t.unref)(s.dataTypes);return typeof n==`function`?n(e):n?.length?e.length===0?!1:e.every(e=>n.some(t=>e.includes(t))):!0},f=e=>{if(s.checkValidity)return s.checkValidity(e);let t=d(Array.from(e??[]).map(e=>e.type)),n=c||e.length<=1;return t&&n},p=()=>/^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent)&&!(`chrome`in window),m=(e,t)=>{let n=e.dataTransfer?.items;if(o=(n&&f(n))??!1,l&&e.preventDefault(),!p()&&!o){e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`);let c=u(e);switch(t){case`enter`:var d;a+=1,r.value=!0,(d=s.onEnter)==null||d.call(s,null,e);break;case`over`:var m;(m=s.onOver)==null||m.call(s,null,e);break;case`leave`:var h;--a,a===0&&(r.value=!1),(h=s.onLeave)==null||h.call(s,null,e);break;case`drop`:if(a=0,r.value=!1,o){var g;i.value=c,(g=s.onDrop)==null||g.call(s,c,e)}break}};O(e,`dragenter`,e=>m(e,`enter`)),O(e,`dragover`,e=>m(e,`over`)),O(e,`dragleave`,e=>m(e,`leave`)),O(e,`drop`,e=>m(e,`drop`))}return{files:i,isOverDropZone:r}}function De(e,n,r={}){let{window:i=D,...a}=r,o,s=ge(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},l=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>me(e)):[me(n)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return b(u),{isSupported:s,stop:u}}function Oe(e,n={width:0,height:0},r={}){let{window:i=D,box:a=`content-box`}=r,o=(0,t.computed)(()=>{var t;return(t=me(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=(0,t.shallowRef)(n.width),c=(0,t.shallowRef)(n.height),{stop:l}=De(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=me(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=w(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);fe(()=>{let t=me(e);t&&(s.value=`offsetWidth`in t?t.offsetWidth:n.width,c.value=`offsetHeight`in t?t.offsetHeight:n.height)});let u=(0,t.watch)(()=>me(e),e=>{s.value=e?n.width:0,c.value=e?n.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var ke={multiple:!0,accept:`*`,reset:!1,directory:!1};function Ae(e){if(!e)return null;if(e instanceof FileList)return e;let t=new DataTransfer;for(let n of e)t.items.add(n);return t.files}function je(e={}){let{document:n=pe}=e,r=(0,t.ref)(Ae(e.initialFiles)),{on:i,trigger:a}=ee(),{on:o,trigger:s}=ee(),c=(0,t.computed)(()=>{let t=me(e.input)??(n?n.createElement(`input`):void 0);return t&&(t.type=`file`,t.onchange=e=>{r.value=e.target.files,a(r.value)},t.oncancel=()=>{s()}),t}),l=()=>{r.value=null,c.value&&c.value.value&&(c.value.value=``,a(null))},u=e=>{let n=c.value;n&&(n.multiple=(0,t.toValue)(e.multiple),n.accept=(0,t.toValue)(e.accept),n.webkitdirectory=(0,t.toValue)(e.directory),ne(e,`capture`)&&(n.capture=(0,t.toValue)(e.capture)))};return(0,t.watchEffect)(()=>{u(e)}),{files:(0,t.readonly)(r),open:n=>{let r=c.value;if(!r)return;let i={...ke,...e,...n};u(i),(0,t.toValue)(i.reset)&&l(),r.click()},reset:l,onCancel:o,onChange:i}}function Me(e=D,t){e&&typeof e.requestAnimationFrame==`function`?e.requestAnimationFrame(t):t()}function Ne(e={}){let{window:n=D}=e,r=re(e?.element),i=re(e?.input??``),a=e?.styleProp??`height`,o=(0,t.shallowRef)(1),s=(0,t.shallowRef)(0);function c(){if(!r.value)return;let n=``;r.value.style[a]=`1px`,o.value=r.value?.scrollHeight;let i=(0,t.toValue)(e?.styleTarget);i?i.style[a]=`${o.value}px`:n=`${o.value}px`,r.value.style[a]=n}return(0,t.watch)([i,r],()=>(0,t.nextTick)(c),{immediate:!0}),(0,t.watch)(o,()=>{var t;return e==null||(t=e.onResize)==null?void 0:t.call(e)}),De(r,([{contentRect:e}])=>{s.value!==e.width&&Me(n,()=>{s.value=e.width,c()})}),e?.watch&&(0,t.watch)(e.watch,c,{immediate:!0,deep:!0}),{textarea:r,input:i,triggerResize:c}}var Pe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Fe=(e,t)=>({classGroupId:e,validator:t}),Ie=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Le=`-`,Re=[],ze=`arbitrary..`,Be=e=>{let t=Ue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return He(e);let n=e.split(Le);return Ve(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Pe(i,t):t:i||Re}return n[e]||Re}}},Ve=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ve(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Le):e.slice(t).join(Le),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},He=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ze+r:void 0})(),Ue=e=>{let{theme:t,classGroups:n}=e;return We(n,t)},We=(e,t)=>{let n=Ie();for(let r in e){let i=e[r];Ge(i,n,r,t)}return n},Ge=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ke(i,t,n,r)}},Ke=(e,t,n,r)=>{if(typeof e==`string`){qe(e,t,n);return}if(typeof e==`function`){Je(e,t,n,r);return}Ye(e,t,n,r)},qe=(e,t,n)=>{let r=e===``?t:Xe(t,e);r.classGroupId=n},Je=(e,t,n,r)=>{if(Ze(e)){Ge(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Fe(n,e))},Ye=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ge(o,Xe(t,a),n,r)}},Xe=(e,t)=>{let n=e,r=t.split(Le),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ie(),n.nextPart.set(t,i)),n=i}return n},Ze=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Qe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},$e=`!`,et=`:`,tt=[],nt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),rt=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===et){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith($e)?(c=s.slice(0,-1),l=!0):s.startsWith($e)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return nt(t,l,c,u)};if(t){let e=t+et,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):nt(tt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},it=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},at=e=>({cache:Qe(e.cacheSize),parseClassName:rt(e),sortModifiers:it(e),...Be(e)}),ot=/\s+/,st=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ot),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+$e:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},ct=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=lt(n))&&(i&&(i+=` `),i+=r);return i},lt=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=lt(e[r]))&&(n&&(n+=` `),n+=t);return n},ut=(e,...t)=>{let n,r,i,a,o=o=>(n=at(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=st(e,n);return i(e,a),a};return a=o,(...e)=>a(ct(...e))},dt=[],k=e=>{let t=t=>t[e]||dt;return t.isThemeGetter=!0,t},ft=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mt=/^\d+\/\d+$/,ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bt=e=>mt.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),xt=e=>!!e&&Number.isInteger(Number(e)),St=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Ct=e=>ht.test(e),wt=()=>!0,Tt=e=>gt.test(e)&&!_t.test(e),Et=()=>!1,Dt=e=>vt.test(e),Ot=e=>yt.test(e),kt=e=>!j(e)&&!M(e),At=e=>Ht(e,Kt,Et),j=e=>ft.test(e),jt=e=>Ht(e,qt,Tt),Mt=e=>Ht(e,Jt,A),Nt=e=>Ht(e,Wt,Et),Pt=e=>Ht(e,Gt,Ot),Ft=e=>Ht(e,Xt,Dt),M=e=>pt.test(e),It=e=>Ut(e,qt),Lt=e=>Ut(e,Yt),Rt=e=>Ut(e,Wt),zt=e=>Ut(e,Kt),Bt=e=>Ut(e,Gt),Vt=e=>Ut(e,Xt,!0),Ht=(e,t,n)=>{let r=ft.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ut=(e,t,n=!1)=>{let r=pt.exec(e);return r?r[1]?t(r[1]):n:!1},Wt=e=>e===`position`||e===`percentage`,Gt=e=>e===`image`||e===`url`,Kt=e=>e===`length`||e===`size`||e===`bg-size`,qt=e=>e===`length`,Jt=e=>e===`number`,Yt=e=>e===`family-name`,Xt=e=>e===`shadow`,Zt=()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),M,j],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[M,j,c],C=()=>[bt,`full`,`auto`,...S()],ne=()=>[xt,`none`,`subgrid`,M,j],re=()=>[`auto`,{span:[`full`,xt,M,j]},xt,M,j],ie=()=>[xt,`auto`,M,j],ae=()=>[`auto`,`min`,`max`,`fr`,M,j],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],se=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],w=()=>[`auto`,...S()],ce=()=>[bt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],T=()=>[e,M,j],le=()=>[...b(),Rt,Nt,{position:[M,j]}],ue=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],de=()=>[`auto`,`cover`,`contain`,zt,At,{size:[M,j]}],fe=()=>[St,It,jt],E=()=>[``,`none`,`full`,l,M,j],D=()=>[``,A,It,jt],pe=()=>[`solid`,`dashed`,`dotted`,`double`],me=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],O=()=>[A,St,Rt,Nt],he=()=>[``,`none`,m,M,j],ge=()=>[`none`,A,M,j],_e=()=>[`none`,A,M,j],ve=()=>[A,M,j],ye=()=>[bt,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ct],breakpoint:[Ct],color:[wt],container:[Ct],"drop-shadow":[Ct],ease:[`in`,`out`,`in-out`],font:[kt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ct],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ct],shadow:[Ct],spacing:[`px`,A],text:[Ct],"text-shadow":[Ct],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,bt,j,M,g]}],container:[`container`],columns:[{columns:[A,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[xt,`auto`,M,j]}],basis:[{basis:[bt,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,bt,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[xt,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...se(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...se()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...se(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...se(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...se(),`baseline`]}],"place-self":[{"place-self":[`auto`,...se()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,...ce()]}],"font-size":[{text:[`base`,n,It,jt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,M,Mt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,St,j]}],"font-family":[{font:[Lt,j,t]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,Mt]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...pe(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,jt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:de()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},xt,M,j],radial:[``,M,j],conic:[xt,M,j]},Bt,Pt]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":D()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...pe(),`hidden`,`none`]}],"divide-style":[{divide:[...pe(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...pe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,It,jt]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`none`,u,Vt,Ft]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Vt,Ft]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,jt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Vt,Ft]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...me(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:he()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Vt,Ft]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":[`scale-3d`],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":[`translate-none`],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,M,j]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,It,jt,Mt]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Qt=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>($t(e,`cacheSize`,t),$t(e,`prefix`,n),$t(e,`experimentalParseClassName`,r),en(e.theme,a.theme),en(e.classGroups,a.classGroups),en(e.conflictingClassGroups,a.conflictingClassGroups),en(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),$t(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),tn(e.theme,i.theme),tn(e.classGroups,i.classGroups),tn(e.conflictingClassGroups,i.conflictingClassGroups),tn(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),nn(e,i,`orderSensitiveModifiers`),e),$t=(e,t,n)=>{n!==void 0&&(e[t]=n)},en=(e,t)=>{if(t)for(let n in t)$t(e,n,t[n])},tn=(e,t)=>{if(t)for(let n in t)nn(e,t,n)},nn=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},rn=(e,...t)=>typeof e==`function`?ut(Zt,e,...t):ut(()=>Qt(Zt(),e),...t),an=ut(Zt),on=[];function sn(e){let t=on.filter(t=>t.component===e.component&&(t.theme===e.theme||t.theme===void 0)).find(t=>t.target?.prop===e.target?.prop&&t.target?.value===e.target?.value)??null;return t===null?on.push(e):on.splice(on.indexOf(t),1,e),e}function N(e,t,n){return on.filter(e=>e.theme===t||e.theme===void 0).filter(t=>t.component===e).filter(e=>e.target===void 0||n[e.target.prop]===e.target.value).map(e=>e.config).reduce((e,t)=>{for(let n in t)n in e?e[n]+=` ${t[n]}`:e[n]=t[n];return e},{})}var cn=rn({extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}});function P(...e){return cn(e.filter(Boolean).join(` `))}function ln(...e){let t=e.filter(Boolean);if(t.length===0)return{};if(t.length===1)return t[0];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);let r={};for(let e of n){let n=t.map(t=>t[e]).filter(e=>e!=null);if(n.length!==0)if(n.every(e=>typeof e==`string`))r[e]=P(...n);else{let t=n.filter(e=>typeof e==`object`);t.length>0?r[e]=ln(...t):r[e]=n.at(-1)}}return r}var F,I=c((()=>{F=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n}})),un=l({default:()=>mn});function dn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M11 7V11M11 15H11.01M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fn,pn,mn,hn=c((()=>{I(),fn={},pn={width:`100%`,height:`100%`,viewBox:`0 0 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mn=F(fn,[[`render`,dn]])})),gn=l({default:()=>bn});function _n(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M11.9998 8.99999V13M11.9998 17H12.0098M10.6151 3.89171L2.39019 18.0983C1.93398 18.8863 1.70588 19.2803 1.73959 19.6037C1.769 19.8857 1.91677 20.142 2.14613 20.3088C2.40908 20.5 2.86435 20.5 3.77487 20.5H20.2246C21.1352 20.5 21.5904 20.5 21.8534 20.3088C22.0827 20.142 22.2305 19.8857 22.2599 19.6037C22.2936 19.2803 22.0655 18.8863 21.6093 18.0983L13.3844 3.89171C12.9299 3.10654 12.7026 2.71396 12.4061 2.58211C12.1474 2.4671 11.8521 2.4671 11.5935 2.58211C11.2969 2.71396 11.0696 3.10655 10.6151 3.89171Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vn,yn,bn,xn=c((()=>{I(),vn={},yn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},bn=F(vn,[[`render`,_n]])})),Sn=l({default:()=>En});function Cn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Tn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 5V19M12 19L19 12M12 19L5 12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wn,Tn,En,Dn=c((()=>{I(),wn={},Tn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},En=F(wn,[[`render`,Cn]])})),On=l({default:()=>Mn});function kn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,jn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M19 12H5M5 12L12 19M5 12L12 5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var An,jn,Mn,Nn=c((()=>{I(),An={},jn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mn=F(An,[[`render`,kn]])})),Pn=l({default:()=>Rn});function Fn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ln,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5 12H19M19 12L12 5M19 12L12 19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var In,Ln,Rn,zn=c((()=>{I(),In={},Ln={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Rn=F(In,[[`render`,Fn]])})),Bn=l({default:()=>Wn});function Vn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Un,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 19V5M12 5L5 12M12 5L19 12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hn,Un,Wn,Gn=c((()=>{I(),Hn={},Un={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wn=F(Hn,[[`render`,Vn]])})),Kn=l({default:()=>Xn});function qn(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Yn,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M21 10H3M16 2V6M8 2V6M7.8 22H16.2C17.8802 22 18.7202 22 19.362 21.673C19.9265 21.3854 20.3854 20.9265 20.673 20.362C21 19.7202 21 18.8802 21 17.2V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Jn,Yn,Xn,Zn=c((()=>{I(),Jn={},Yn={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Xn=F(Jn,[[`render`,qn]])})),Qn=l({default:()=>nr});function $n(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,tr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M20 6L9 17L4 12`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var er,tr,nr,rr=c((()=>{I(),er={},tr={xmlns:`http://www.w3.org/2000/svg`,width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`},nr=F(er,[[`render`,$n]])})),ir=l({default:()=>cr});function ar(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,sr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var or,sr,cr,lr=c((()=>{I(),or={},sr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},cr=F(or,[[`render`,ar]])})),ur=l({default:()=>mr});function dr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M15 18L9 12L15 6`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fr,pr,mr,hr=c((()=>{I(),fr={},pr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mr=F(fr,[[`render`,dr]])})),gr=l({default:()=>br});function _r(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M18 17L13 12L18 7M11 17L6 12L11 7`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vr,yr,br,xr=c((()=>{I(),vr={},yr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},br=F(vr,[[`render`,_r]])})),Sr=l({default:()=>Er});function Cr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Tr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M9 18L15 12L9 6`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wr,Tr,Er,Dr=c((()=>{I(),wr={},Tr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Er=F(wr,[[`render`,Cr]])})),Or=l({default:()=>Mr});function kr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,jr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M6 17L11 12L6 7M13 17L18 12L13 7`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ar,jr,Mr,Nr=c((()=>{I(),Ar={},jr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mr=F(Ar,[[`render`,kr]])})),Pr=l({default:()=>Rr});function Fr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Lr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M18 6L6 18M6 6L18 18`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ir,Lr,Rr,zr=c((()=>{I(),Ir={},Lr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Rr=F(Ir,[[`render`,Fr]])})),Br=l({default:()=>Wr});function Vr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ur,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M2.42012 12.7132C2.28394 12.4975 2.21584 12.3897 2.17772 12.2234C2.14909 12.0985 2.14909 11.9015 2.17772 11.7766C2.21584 11.6103 2.28394 11.5025 2.42012 11.2868C3.54553 9.50484 6.8954 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7766C21.8517 11.9015 21.8517 12.0985 21.8231 12.2234C21.785 12.3897 21.7169 12.4975 21.5807 12.7132C20.4553 14.4952 17.1054 19 12.0004 19C6.8954 19 3.54553 14.4952 2.42012 12.7132Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),(0,t.createElementVNode)(`path`,{d:`M12.0004 15C13.6573 15 15.0004 13.6569 15.0004 12C15.0004 10.3431 13.6573 9 12.0004 9C10.3435 9 9.0004 10.3431 9.0004 12C9.0004 13.6569 10.3435 15 12.0004 15Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hr,Ur,Wr,Gr=c((()=>{I(),Hr={},Ur={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wr=F(Hr,[[`render`,Vr]])})),Kr=l({default:()=>Xr});function qr(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Yr,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M10.7429 5.09232C11.1494 5.03223 11.5686 5 12.0004 5C17.1054 5 20.4553 9.50484 21.5807 11.2868C21.7169 11.5025 21.785 11.6103 21.8231 11.7767C21.8518 11.9016 21.8517 12.0987 21.8231 12.2236C21.7849 12.3899 21.7164 12.4985 21.5792 12.7156C21.2793 13.1901 20.8222 13.8571 20.2165 14.5805M6.72432 6.71504C4.56225 8.1817 3.09445 10.2194 2.42111 11.2853C2.28428 11.5019 2.21587 11.6102 2.17774 11.7765C2.1491 11.9014 2.14909 12.0984 2.17771 12.2234C2.21583 12.3897 2.28393 12.4975 2.42013 12.7132C3.54554 14.4952 6.89541 19 12.0004 19C14.0588 19 15.8319 18.2676 17.2888 17.2766M3.00042 3L21.0004 21M9.8791 9.87868C9.3362 10.4216 9.00042 11.1716 9.00042 12C9.00042 13.6569 10.3436 15 12.0004 15C12.8288 15 13.5788 14.6642 14.1217 14.1213`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Jr,Yr,Xr,Zr=c((()=>{I(),Jr={},Yr={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Xr=F(Jr,[[`render`,qr]])})),Qr=l({default:()=>ni});function $r(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ti,[...n[0]||=[(0,t.createElementVNode)(`g`,{"clip-path":`url(#clip0_5570_1431)`},[(0,t.createElementVNode)(`path`,{d:`M7.99967 10.6667V8.00004M7.99967 5.33337H8.00634M14.6663 8.00004C14.6663 11.6819 11.6816 14.6667 7.99967 14.6667C4.31778 14.6667 1.33301 11.6819 1.33301 8.00004C1.33301 4.31814 4.31778 1.33337 7.99967 1.33337C11.6816 1.33337 14.6663 4.31814 14.6663 8.00004Z`,stroke:`currentColor`,"stroke-width":`1.3`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]])}var ei,ti,ni,ri=c((()=>{I(),ei={},ti={width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ni=F(ei,[[`render`,$r]])})),ii=l({default:()=>ci});function ai(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,si,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M5 12H19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var oi,si,ci,li=c((()=>{I(),oi={},si={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ci=F(oi,[[`render`,ai]])})),ui=l({default:()=>mi});function di(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pi,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M12 5V19M5 12H19`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var fi,pi,mi,hi=c((()=>{I(),fi={},pi={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},mi=F(fi,[[`render`,di]])})),gi=l({default:()=>bi});function _i(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yi,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M21 21L17.5001 17.5M20 11.5C20 16.1944 16.1944 20 11.5 20C6.80558 20 3 16.1944 3 11.5C3 6.80558 6.80558 3 11.5 3C16.1944 3 20 6.80558 20 11.5Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var vi,yi,bi,xi=c((()=>{I(),vi={},yi={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},bi=F(vi,[[`render`,_i]])})),Si=l({default:()=>Ei});function Ci(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ti,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M7 15L12 20L17 15M7 9L12 4L17 9`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var wi,Ti,Ei,Di=c((()=>{I(),wi={},Ti={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Ei=F(wi,[[`render`,Ci]])})),Oi=l({default:()=>Mi});function ki(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ji,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M4.5 22V17M4.5 7V2M2 4.5H7M2 19.5H7M13 3L11.2658 7.50886C10.9838 8.24209 10.8428 8.60871 10.6235 8.91709C10.4292 9.1904 10.1904 9.42919 9.91709 9.62353C9.60871 9.84281 9.24209 9.98381 8.50886 10.2658L4 12L8.50886 13.7342C9.24209 14.0162 9.60871 14.1572 9.91709 14.3765C10.1904 14.5708 10.4292 14.8096 10.6235 15.0829C10.8428 15.3913 10.9838 15.7579 11.2658 16.4911L13 21L14.7342 16.4911C15.0162 15.7579 15.1572 15.3913 15.3765 15.0829C15.5708 14.8096 15.8096 14.5708 16.0829 14.3765C16.3913 14.1572 16.7579 14.0162 17.4911 13.7342L22 12L17.4911 10.2658C16.7579 9.98381 16.3913 9.8428 16.0829 9.62353C15.8096 9.42919 15.5708 9.1904 15.3765 8.91709C15.1572 8.60871 15.0162 8.24209 14.7342 7.50886L13 3Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ai,ji,Mi,Ni=c((()=>{I(),Ai={},ji={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Mi=F(Ai,[[`render`,ki]])})),Pi=l({default:()=>Ri});function Fi(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Li,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M17 4V20M17 20L13 16M17 20L21 16M7 20V4M7 4L3 8M7 4L11 8`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Ii,Li,Ri,zi=c((()=>{I(),Ii={},Li={width:`100%`,height:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Ri=F(Ii,[[`render`,Fi]])})),Bi=l({default:()=>Wi});function Vi(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ui,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M8.60886 11.3333H13.3915M8.60886 11.3333L7.3335 14M8.60886 11.3333L10.519 7.33935C10.6729 7.01751 10.7499 6.8566 10.8552 6.80575C10.9468 6.76152 11.0535 6.76152 11.1451 6.80575C11.2504 6.8566 11.3274 7.01751 11.4813 7.33935L13.3915 11.3333M13.3915 11.3333L14.6668 14M1.3335 3.33333H5.3335M5.3335 3.33333H7.66683M5.3335 3.33333V2M7.66683 3.33333H9.3335M7.66683 3.33333C7.33607 5.30486 6.56855 7.09079 5.44386 8.58962M6.66683 9.33333C6.25848 9.14987 5.84193 8.89472 5.44386 8.58962M5.44386 8.58962C4.54218 7.89851 3.73534 6.95109 3.3335 6M5.44386 8.58962C4.37407 10.0153 2.98112 11.1812 1.3335 12`,stroke:`currentColor`,"stroke-width":`0.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Hi,Ui,Wi,Gi=c((()=>{I(),Hi={},Ui={width:`100%`,height:`100%`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},Wi=F(Hi,[[`render`,Vi]])})),Ki={alertCircle:Promise.resolve().then(()=>(hn(),un)),alertTriangle:Promise.resolve().then(()=>(xn(),gn)),arrowDown:Promise.resolve().then(()=>(Dn(),Sn)),arrowLeft:Promise.resolve().then(()=>(Nn(),On)),arrowRight:Promise.resolve().then(()=>(zn(),Pn)),arrowUp:Promise.resolve().then(()=>(Gn(),Bn)),calendarIcon:Promise.resolve().then(()=>(Zn(),Kn)),check:Promise.resolve().then(()=>(rr(),Qn)),checkCircle:Promise.resolve().then(()=>(lr(),ir)),chevronLeft:Promise.resolve().then(()=>(hr(),ur)),chevronLeftDouble:Promise.resolve().then(()=>(xr(),gr)),chevronRight:Promise.resolve().then(()=>(Dr(),Sr)),chevronRightDouble:Promise.resolve().then(()=>(Nr(),Or)),close:Promise.resolve().then(()=>(zr(),Pr)),eye:Promise.resolve().then(()=>(Gr(),Br)),eyeOff:Promise.resolve().then(()=>(Zr(),Kr)),infoCircle:Promise.resolve().then(()=>(ri(),Qr)),minus:Promise.resolve().then(()=>(li(),ii)),plus:Promise.resolve().then(()=>(hi(),ui)),search:Promise.resolve().then(()=>(xi(),gi)),selectIconRight:Promise.resolve().then(()=>(Di(),Si)),stars:Promise.resolve().then(()=>(Ni(),Oi)),switchVertical:Promise.resolve().then(()=>(zi(),Pi)),translate:Promise.resolve().then(()=>(Gi(),Bi))};function qi(e){Object.assign(Ki,e)}var Ji=(0,t.defineComponent)({__name:`AsyncIcon`,props:{icon:{}},setup(e){let n=e,r=(0,t.computed)(()=>(0,t.defineAsyncComponent)(()=>Ki[n.icon]));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.value)))}}),Yi={"aria-hidden":`true`},L=(0,t.defineComponent)({__name:`Icon`,props:{icon:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yi,[((0,t.openBlock)(),(0,t.createBlock)(t.Suspense,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ji,{icon:n.icon},null,8,[`icon`])]),_:1}))]))}});function R(e){let n=Symbol(e);function r(e){return(0,t.provide)(n,e),e}function i(r){let i=(0,t.inject)(n,r??void 0);if(i===void 0&&r===void 0)throw Error(`${e} context is not provided.`);return i??null}return[r,i]}var[Xi,z]=R(`selectContext`),Zi=(0,t.defineComponent)({__name:`SelectItemIndicator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=z();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxItemIndicator),null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(a).itemIndicator({class:(0,t.unref)(P)((0,t.unref)(i).itemIndicator,(0,t.unref)(r)?.itemIndicator)})),icon:`check`},null,8,[`class`])])]),_:3}))}}),[Qi,$i]=R(`selectGroupContext`),B=(0,t.defineComponent)({__name:`TestIdProvider`,props:{testId:{},as:{default:null}},setup(e){let r=e;return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.as===null,as:r.as??void 0,"data-test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-test-id`]))}}),ea=(0,t.defineComponent)({__name:`SelectItem`,props:{isDisabled:{type:Boolean,default:!1},value:{},testId:{default:null}},setup(e){let r=e,{allGroups:i,allItems:a,classConfig:o,customClassConfig:s,filteredItems:c,remainOpenOnSelect:l,setIsDropdownVisible:u,style:d,virtualList:f,onSelectItem:p}=z(),m=$i(null),h=(0,t.useId)();function g(e){let t=e.target.attributes.getNamedItem(`aria-selected`);return t===null?!1:t.value===`true`}function _(e){g(e)&&!l.value&&u(!1),p()}return(0,t.onMounted)(()=>{if(a.value.set(h,r.value),m===null)return;let{id:e}=m,t=i.value.get(e)??null;if(t===null){i.value.set(e,new Set([h]));return}t.add(h)}),(0,t.onBeforeUnmount)(()=>{a.value.delete(h)}),(e,i)=>(0,t.unref)(c).has((0,t.unref)(h))||(0,t.unref)(f)?.isEnabled?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ListboxItem),{value:r.value,disabled:r.isDisabled,class:(0,t.normalizeClass)((0,t.unref)(d).item({class:(0,t.unref)(P)((0,t.unref)(s).item,(0,t.unref)(o)?.item)})),onSelect:_},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`indicator`,{},()=>[(0,t.createVNode)(Zi)])]),_:3},8,[`value`,`disabled`,`class`])]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)}}),[ta,na]=R(`formFieldContext`),ra=[`id`],ia=(0,t.defineComponent)({__name:`FormFieldError`,setup(e){let{isTouched:n,classConfig:i,customClassConfig:a,errorMessage:o,for:s,style:c}=na();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)!==null&&(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{height:0,opacity:0,filter:`blur(4px)`},animate:{height:`auto`,opacity:1,filter:`blur(0)`},exit:{height:0,opacity:0,filter:`blur(4px)`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(c).error({class:(0,t.unref)(P)((0,t.unref)(a).error,(0,t.unref)(i)?.error)}))},[(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(c).errorIcon({class:(0,t.unref)(P)((0,t.unref)(a).errorIcon,(0,t.unref)(i)?.errorIcon)})),icon:`alertTriangle`},null,8,[`class`]),(0,t.createElementVNode)(`span`,{id:`${(0,t.unref)(s)}-error`,"aria-live":`assertive`,role:`alert`},(0,t.toDisplayString)((0,t.unref)(o)),9,ra)],2)])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),aa=[`id`],oa=(0,t.defineComponent)({__name:`FormFieldHint`,setup(e){let{isTouched:n,classConfig:r,customClassConfig:i,errorMessage:a,for:o,hint:s,style:c}=na(),l=(0,t.computed)(()=>n.value&&a.value!==null);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[(0,t.unref)(s)!==null&&!l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,id:`${(0,t.unref)(o)}-hint`,class:(0,t.normalizeClass)((0,t.unref)(c).hint({class:(0,t.unref)(P)((0,t.unref)(i).hint,(0,t.unref)(r)?.hint)})),role:`alert`},(0,t.toDisplayString)((0,t.unref)(s)),11,aa)):(0,t.createCommentVNode)(``,!0)]))}}),sa={class:`flex items-center`},ca=[`for`],la=(0,t.defineComponent)({__name:`FormFieldLabel`,setup(e){let{isRequired:n,classConfig:r,customClassConfig:i,for:a,label:o,style:s}=na();return(e,c)=>(0,t.unref)(o)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(s).labelContainer({class:(0,t.unref)(P)((0,t.unref)(i).labelContainer,(0,t.unref)(r)?.labelContainer)}))},[(0,t.createElementVNode)(`div`,sa,[(0,t.renderSlot)(e.$slots,`leading`),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)((0,t.unref)(s).label({class:(0,t.unref)(P)((0,t.unref)(i).label,(0,t.unref)(r)?.label)})),for:(0,t.unref)(a)},[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(o))+` `,1),(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(s).asterisk({class:(0,t.unref)(P)((0,t.unref)(i).asterisk,(0,t.unref)(r)?.asterisk)}))},`*`,2)):(0,t.createCommentVNode)(``,!0)],10,ca),(0,t.renderSlot)(e.$slots,`trailing`)]),(0,t.renderSlot)(e.$slots,`right`)],2))}}),ua=/\s+/g,da=e=>typeof e!=`string`||!e?e:e.replace(ua,` `).trim(),fa=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?da(t.join(` `)):void 0},pa=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,V=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},ma=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},ha=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=fa(e[n],r):e[n]=r}return e},ga=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ga(r,t):r&&t.push(r)}},_a=(...e)=>{let t=[];ga(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},va=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=_a(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=va(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},ya={twMerge:!0,twMergeConfig:{}};function ba(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var xa=ba(),Sa=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...ya,...n},u=r?.base?fa(r.base,t?.base):t?.base,d=r?.variants&&!V(r.variants)?va(a,r.variants):a,f=r?.defaultVariants&&!V(r.defaultVariants)?{...r.defaultVariants,...c}:c;!V(l.twMergeConfig)&&!ma(l.twMergeConfig,xa.cachedTwMergeConfig)&&(xa.didTwMergeConfigChange=!0,xa.cachedTwMergeConfig=l.twMergeConfig);let p=V(r?.slots),m=V(i)?{}:{base:fa(t?.base,p&&r?.base),...i},h=p?m:ha({...r?.slots},V(m)?{base:t?.base}:m),g=V(r?.compoundVariants)?o:_a(r?.compoundVariants,o),_=t=>{if(V(d)&&V(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||V(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=pa(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??pa(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!V(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!V(i)||!p){let t={};if(typeof h==`object`&&!V(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?va(e,r):e)}},Ca=e=>V(e)?an:rn({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),wa=(e,t)=>{let n=fa(e);return!n||!(t?.twMerge??!0)?n:((!xa.cachedTwMerge||xa.didTwMergeConfigChange)&&(xa.didTwMergeConfigChange=!1,xa.cachedTwMerge=Ca(xa.cachedTwMergeConfig)),xa.cachedTwMerge(n)||void 0)},{createTV:Ta,tv:Ea}=Sa((...e)=>t=>wa(e,t)),H=Ta({twMerge:!0,twMergeConfig:{extend:{theme:{spacing:[`none`,`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`,`10xl`,`11xl`]}}}}),U=class{classes=[];with(e){return this.classes.push(e),this}build(){return this.classes.join(` `)}withBackgroundColor(e){return this.with(e),this}withBase(e){return this.classes.push(e),this}withBorder(e){return this.with(e),this}withBorderRadius(e){return this.with(e),this}withClasses(e){return this.with(e),this}withColor(e){return this.with(e),this}withCursor(e){return this.with(e),this}withFlex(e){return this.with(e),this}withFontColor(e){return this.with(e),this}withFontSize(e){return this.with(e),this}withFontWeight(e){return this.with(e),this}withGap(e){return this.with(e),this}withGrid(e){return this.with(e),this}withHeight(e){return this.with(e),this}withLeading(e){return this.with(e),this}withMargin(e){return this.with(e),this}withOutline(e){return this.with(e),this}withPadding(e){return this.with(e),this}withPlaceholderColor(e){return this.with(e),this}withRing(e){return this.with(e),this}withShadow(e){return this.with(e),this}withSize(e){return this.with(e),this}withSpacing(e){return this.with(e),this}withTransition(e){return this.with(e),this}withTranslate(e){return this.with(e),this}withZIndex(e){return this.with(e),this}},Da=H({slots:{asterisk:new U().withColor(`text-error-primary`).build(),error:new U().withFlex(`flex items-center gap-x-md`).withColor(`text-error-primary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).withSpacing(`group-data-[layout=vertical]/form-field:pt-sm group-data-[layout=horizontal]/form-field:!pt-0`).build(),errorIcon:new U().withSize(`size-4`).build(),hint:new U().withBase(`inline-block`).withColor(`text-tertiary`).withFontSize(`text-sm`).withSpacing(`group-data-[layout=vertical]/form-field:pt-sm group-data-[layout=horizontal]/form-field:!pt-0`).build(),label:new U().withBase(`inline-block`).withFontSize(`text-sm`).withColor(`text-secondary`).withFontWeight(`font-medium`).build(),labelContainer:new U().withBase(`flex items-center justify-between`).withSpacing(`group-data-[layout=vertical]/form-field:pb-sm group-data-[layout=horizontal]/form-field:!pb-0`).build(),root:new U().withBase(`group/form-field`).withGrid(`data-[layout=horizontal]:grid data-[layout=horizontal]:grid-cols-[auto_auto] gap-x-md items-center justify-start`).build()},variants:{variant:{}}}),Oa=Symbol(`themeProviderContextKey`);function ka(e){(0,t.provide)(Oa,e)}function W(){let e=(0,t.inject)(Oa,null);return e===null?{appearance:(0,t.computed)(()=>`light`),theme:(0,t.computed)(()=>`default`)}:e}function G(e){let n={};for(let r in e){if(typeof e[r]==`function`){n[r]=e[r];continue}n[r]=(0,t.computed)(()=>e[r])}return n}var Aa=[`data-layout`],ja=(0,t.defineComponent)({__name:`FormFieldRoot`,props:{for:{},layout:{default:`vertical`},variant:{default:null},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),i=(0,t.computed)(()=>Da({variant:n.variant??void 0})),a=(0,t.computed)(()=>N(`formField`,r.value,{variant:n.variant}));return ta({...G(n),customClassConfig:a,style:i}),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{"data-layout":n.layout,class:(0,t.normalizeClass)(i.value.root({class:(0,t.unref)(P)(a.value.root,n.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`)],10,Aa))}}),Ma=(0,t.defineComponent)({__name:`FormField`,props:{for:{},layout:{default:`vertical`},variant:{},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(ja,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[n.layout===`vertical`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,`label`,{},()=>[(0,t.createVNode)(la)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`error`,{},()=>[(0,t.createVNode)(ia)]),(0,t.renderSlot)(e.$slots,`hint`,{},()=>[(0,t.createVNode)(oa)])],64)):(0,t.createCommentVNode)(``,!0),n.layout===`horizontal`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`label`,{},()=>[(0,t.createVNode)(la)]),r[0]||=(0,t.createElementVNode)(`span`,null,null,-1),(0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(e.$slots,`error`,{},()=>[(0,t.createVNode)(ia)]),(0,t.renderSlot)(e.$slots,`hint`,{},()=>[(0,t.createVNode)(oa)])])],64)):(0,t.createCommentVNode)(``,!0)]),_:3},16))}}),Na=(0,t.defineComponent)({__name:`SelectBaseInlineSearch`,setup(e){let{id:r,hasInteractedWithInlineSearchInput:i,isDisabled:a,classConfig:o,customClassConfig:s,inlinesearchInputElementRef:c,placeholder:l,searchInputPlaceholder:u,searchTerm:d,setIsDropdownVisible:f,style:p}=z(),m=(0,t.ref)();function h(){i.value=!0,g()}function g(){f(!0)}return(0,t.onMounted)(()=>{c.value=m.value?.$el??null}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxFilter),{id:(0,t.unref)(r),ref_key:`listboxFilterRef`,ref:m,modelValue:(0,t.unref)(d),"onUpdate:modelValue":i[0]||=e=>(0,t.isRef)(d)?d.value=e:null,disabled:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(p).inlineSearchInput({class:(0,t.unref)(P)((0,t.unref)(s).inlineSearchInput,(0,t.unref)(o)?.inlineSearchInput)})),placeholder:(0,t.unref)(l)??(0,t.unref)(u),"aria-autocomplete":`list`,role:`combobox`,autocomplete:`false`,onInput:h,onKeydown:(0,t.withKeys)((0,t.withModifiers)(g,[`prevent`]),[`up`,`down`])},null,8,[`id`,`modelValue`,`disabled`,`class`,`placeholder`,`onKeydown`]))}}),[Pa,Fa]=R(`badgeContext`),Ia=(0,t.defineComponent)({__name:`BadgeIcon`,setup(e){let{classConfig:n,customClassConfig:r,icon:i,style:a}=Fa();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).icon({class:(0,t.unref)(P)((0,t.unref)(r).icon,(0,t.unref)(n)?.icon)}))},null,8,[`icon`,`class`]))}}),[La,Ra]=R(`iconButtonContext`),za=(0,t.defineComponent)({__name:`IconButtonIcon`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,icon:a,style:o}=Ra();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300`,"leave-active-class":`duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).icon({class:(0,t.unref)(P)((0,t.unref)(i).icon,(0,t.unref)(r)?.icon)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)]),_:1}))}});I();var Ba={},Va={viewBox:`25 25 50 50`,"aria-hidden":`true`,class:`animate-spinner`};function Ha(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Va,[...n[0]||=[(0,t.createElementVNode)(`circle`,{class:`size-full animate-spinner-path`,cx:`100%`,cy:`100%`,fill:`none`,r:`20`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`4`,"stroke-dasharray":`1, 200`,"stroke-dashoffset":`0`,"stroke-linecap":`round`},null,-1)]])}var Ua=F(Ba,[[`render`,Ha]]),Wa={class:`sr-only`},Ga=(0,t.defineComponent)({__name:`IconButtonLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Ra(),{t:s}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`absolute duration-300`,"leave-active-class":`absolute duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Wa,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua)])],2)):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Ka=H({slots:{root:new U().withBase(`group/button whitespace-nowrap overflow-hidden relative`).withOutline(`focus-visible:outline-2 outline-offset-2 outline-brand-600`).withBorder(`border border-solid`).withBorderRadius(`rounded-md`).withCursor(`cursor-pointer disabled:cursor-not-allowed data-[loading=true]:cursor-not-allowed`).withTransition(`duration-100 data-[loading=false]:not-disabled:active:scale-99`).build()},variants:{variant:{"destructive-primary":{root:new U().withColor(`text-white disabled:text-fg-disabled`).withBackgroundColor(`bg-error-solid disabled:bg-disabled`).withBorder(`border-error-600 disabled:border-disabled-subtle`).withOutline(`outline-error-600`).withTransition(`data-[loading=false]:not-disabled:hover:brightness-95 data-[loading=false]:not-disabled:active:brightness-90`).build()},"destructive-secondary":{root:new U().withColor(`text-error-primary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-error-primary data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-error-primary`).withBorder(`border-error-subtle disabled:border-disabled-subtle`).withOutline(`outline-error-600`).build()},"destructive-tertiary":{root:new U().withColor(`text-error-primary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-error-primary data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-error-primary`).withBorder(`border-transparent`).withOutline(`outline-error-600`).build()},primary:{root:new U().withColor(`text-white disabled:text-fg-disabled`).withBackgroundColor(`bg-brand-solid disabled:bg-disabled`).withBorder(`border-brand-600 disabled:border-disabled-subtle`).withTransition(`data-[loading=false]:not-disabled:hover:brightness-95 data-[loading=false]:not-disabled:active:brightness-90`).build()},secondary:{root:new U().withColor(`text-secondary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-primary-hover data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-primary-hover`).withBorder(`border-primary disabled:border-disabled-subtle`).build()},tertiary:{root:new U().withColor(`text-tertiary disabled:text-fg-disabled`).withBackgroundColor(`bg-transparent data-[loading=false]:not-disabled:hover:bg-primary-hover data-[loading=false]:not-disabled:active:brightness-98 data-[loading=true]:bg-primary-hover`).withBorder(`border-transparent`).build()}},size:{"2xl":{root:new U().withHeight(`h-15`).withBorderRadius(`rounded-lg`).build()},lg:{root:new U().withHeight(`h-11`).build()},md:{root:new U().withHeight(`h-10`).build()},sm:{root:new U().withHeight(`h-9`).build()},xl:{root:new U().withHeight(`h-12`).build()}}}}),qa=H({extend:Ka,slots:{contentContainer:``,icon:``,loader:``,root:new U().withFlex(`flex items-center justify-center`).build()},variants:{size:{"2xl":{icon:new U().withSize(`size-6`).build(),loader:new U().withSize(`size-6`).build(),root:new U().withSize(`w-15`).build()},lg:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-11`).build()},md:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-10`).build()},sm:{icon:new U().withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withSize(`w-9`).build()},xl:{icon:new U().withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withSize(`w-12`).build()}}}}),K=(0,t.defineComponent)({__name:`InteractableElement`,props:{isDisabled:{type:Boolean},as:{default:null}},setup(e){let r=e;return(i,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.as===null,as:r.as??void 0,disabled:e.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,`default`)]),_:3},8,[`as-child`,`as`,`disabled`]))}}),Ja={class:`sr-only`},Ya=(0,t.defineComponent)({__name:`IconButtonRoot`,props:{icon:{},label:{},size:{default:`md`},variant:{default:`primary`},isLoading:{type:Boolean,default:!1},type:{default:`button`},testId:{default:null},isDisabled:{type:Boolean,default:!1},classConfig:{default:null}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>qa({size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`iconButton`,a.value,{size:r.size,variant:r.variant}));function c(e){r.isLoading||i(`click`,e)}return La({...G(r),customClassConfig:s,style:o}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled,"aria-disabled":r.isLoading,"aria-busy":r.isLoading,type:r.type,"data-loading":r.isLoading,class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),as:`button`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Ja,(0,t.toDisplayString)(r.label),1),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`,`aria-disabled`,`aria-busy`,`type`,`data-loading`,`class`])]),_:3},8,[`test-id`]))}}),q=(0,t.defineComponent)({__name:`IconButton`,props:{icon:{},label:{},size:{},variant:{},isLoading:{type:Boolean},type:{},testId:{},isDisabled:{type:Boolean},classConfig:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ya,(0,t.mergeProps)(r,{onClick:n[0]||=e=>i(`click`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon`,{},()=>[(0,t.createVNode)(za)]),(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(Ga)])]),_:3},16))}}),Xa=(0,t.defineComponent)({__name:`BadgeRemoveButton`,setup(e){let{isRemovable:n,classConfig:r,customClassConfig:a,onRemove:o}=Fa(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(q,{key:0,label:(0,t.unref)(s)(`shared.remove`),"class-config":(0,t.unref)(ln)({root:`size-4 text-inherit !bg-inherit hover:brightness-97 outline-inherit`,icon:`size-3.5`},(0,t.unref)(a).removeButton,(0,t.unref)(r)?.removeButton),variant:`tertiary`,icon:`close`,onClick:(0,t.unref)(o)},null,8,[`label`,`class-config`,`onClick`])):(0,t.createCommentVNode)(``,!0)}}),Za=H({slots:{icon:new U().withSize(`size-4`).build(),root:new U().withBase(`group/badge`).withFlex(`inline-flex items-center`).withBorder(`border border-solid`).withBorderRadius(`rounded-full`).withFontWeight(`font-medium`).build()},variants:{variant:{outline:{},solid:{},translucent:{}},color:{brand:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-brand-700`).withColor(`data-[variant=solid]:text-primary-on-brand`).withBorder(`data-[variant=solid]:border-brand-700`).withBackgroundColor(`data-[variant=translucent]:bg-brand-25 data-[variant=translucent]:dark:bg-brand-950`).withColor(`data-[variant=translucent]:text-brand-700 data-[variant=translucent]:dark:text-brand-200`).withBorder(`data-[variant=translucent]:border-brand-200 data-[variant=translucent]:dark:border-brand-800`).withColor(`data-[variant=outline]:text-brand-700 data-[variant=outline]:dark:text-brand-300`).withBorder(`data-[variant=outline]:border-brand-400 data-[variant=outline]:dark:border-brand-600`).build()},error:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-error-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-error-700`).withBackgroundColor(`data-[variant=translucent]:bg-error-25 data-[variant=translucent]:dark:bg-error-950`).withColor(`data-[variant=translucent]:text-error-700 data-[variant=translucent]:dark:text-error-200`).withBorder(`data-[variant=translucent]:border-error-200 data-[variant=translucent]:dark:border-error-800`).withColor(`data-[variant=outline]:text-error-700 data-[variant=outline]:dark:text-error-300`).withBorder(`data-[variant=outline]:border-error-400 data-[variant=outline]:dark:border-error-600`).build()},gray:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-gray-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-gray-700`).withBackgroundColor(`data-[variant=translucent]:bg-gray-25 data-[variant=translucent]:dark:bg-gray-950`).withColor(`data-[variant=translucent]:text-gray-700 data-[variant=translucent]:dark:text-gray-200`).withBorder(`data-[variant=translucent]:border-gray-200 data-[variant=translucent]:dark:border-gray-800`).withColor(`data-[variant=outline]:text-gray-700 data-[variant=outline]:dark:text-gray-300`).withBorder(`data-[variant=outline]:border-gray-400 data-[variant=outline]:dark:border-gray-600`).build()},success:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-success-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-success-700`).withBackgroundColor(`data-[variant=translucent]:bg-success-25 data-[variant=translucent]:dark:bg-success-950`).withColor(`data-[variant=translucent]:text-success-700 data-[variant=translucent]:dark:text-success-200`).withBorder(`data-[variant=translucent]:border-success-200 data-[variant=translucent]:dark:border-success-800`).withColor(`data-[variant=outline]:text-success-700 data-[variant=outline]:dark:text-success-300`).withBorder(`data-[variant=outline]:border-success-400 data-[variant=outline]:dark:border-success-600`).build()},warning:{root:new U().withBackgroundColor(`data-[variant=solid]:bg-warning-700`).withColor(`data-[variant=solid]:text-white`).withBorder(`data-[variant=solid]:border-warning-700`).withBackgroundColor(`data-[variant=translucent]:bg-warning-25 data-[variant=translucent]:dark:bg-warning-950`).withColor(`data-[variant=translucent]:text-warning-700 data-[variant=translucent]:dark:text-warning-200`).withBorder(`data-[variant=translucent]:border-warning-200 data-[variant=translucent]:dark:border-warning-800`).withColor(`data-[variant=outline]:text-warning-700 data-[variant=outline]:dark:text-warning-300`).withBorder(`data-[variant=outline]:border-warning-400 data-[variant=outline]:dark:border-warning-600`).build()}},size:{lg:{root:new U().withFlex(`gap-x-sm`).withPadding(`px-lg py-xs data-icon:pl-md data-removable:pr-sm`).withFontSize(`text-sm`).build()},md:{root:new U().withFlex(`gap-x-sm`).withPadding(`px-2.5 py-xxs data-icon:pl-sm data-removable:pr-sm`).withFontSize(`text-sm`).build()},sm:{root:new U().withFlex(`gap-x-xs`).withPadding(`px-md py-xxs data-icon:pl-xs data-removable:pr-xs`).withFontSize(`text-xs`).build()}}}}),Qa=[`data-icon`,`data-removable`,`data-variant`],$a=(0,t.defineComponent)({__name:`BadgeRoot`,props:{isRemovable:{type:Boolean,default:!1},color:{},icon:{default:null},size:{default:`md`},variant:{},testId:{default:null},classConfig:{default:null}},emits:[`remove`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>Za({color:r.color,size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`badge`,a.value,{color:r.color,size:r.size,variant:r.variant}));function c(){i(`remove`)}return Pa({...G(r),customClassConfig:s,style:o,onRemove:c}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),"data-icon":r.icon!==null||void 0,"data-removable":r.isRemovable||void 0,"data-variant":r.variant},[(0,t.renderSlot)(e.$slots,`default`)],10,Qa)]),_:3},8,[`test-id`]))}}),eo=(0,t.defineComponent)({__name:`Badge`,props:{isRemovable:{type:Boolean},color:{},icon:{},size:{},variant:{},testId:{},classConfig:{}},emits:[`remove`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)($a,(0,t.mergeProps)(r,{onRemove:n[0]||=e=>i(`remove`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ia),(0,t.renderSlot)(e.$slots,`left`),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`right`),(0,t.createVNode)(Xa)]),_:3},16))}}),to=(0,t.defineComponent)({__name:`SelectPlaceholder`,setup(e){let{classConfig:n,customClassConfig:r,modelValue:i,placeholder:a,style:o}=z(),s=(0,t.computed)(()=>Array.isArray(i.value)?i.value.length===0:i.value===null);return(e,i)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).placeholder({class:(0,t.unref)(P)((0,t.unref)(r).placeholder,(0,t.unref)(n)?.placeholder)}))},(0,t.toDisplayString)((0,t.unref)(a)),3)):(0,t.createCommentVNode)(``,!0)}}),no={class:`whitespace-nowrap`},ro={class:`whitespace-nowrap`},io={class:`pl-xs text-sm font-medium text-secondary`},ao=(0,t.defineComponent)({__name:`SelectBaseMultiple`,setup(e){let{classConfig:n,customClassConfig:r,displayFn:i,modelValue:a,style:o}=z(),s=(0,t.ref)(null),c=(0,t.ref)(0),l=(0,t.ref)([]),u=(0,t.ref)(null),d=null,f=(0,t.computed)(()=>a.value),p=(0,t.computed)(()=>c.value===0?[]:f.value.filter((e,t)=>{if(l.value[t]===void 0)return!1;let n=l.value[t].getBoundingClientRect().width,r=u.value?.getBoundingClientRect().width??0;return n+l.value.slice(0,t).reduce((e,t)=>e+t.getBoundingClientRect().width,0)+r+10<=c.value})),m=(0,t.computed)(()=>f.value.length-p.value.length);return(0,t.onMounted)(()=>{s.value!==null&&(d=new ResizeObserver(()=>{c.value=s.value.getBoundingClientRect().width??0}),d.observe(s.value))}),(0,t.onBeforeUnmount)(()=>{d===null||s.value===null||(d.unobserve(s.value),d.disconnect())}),(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`tagContainerRef`,ref:s,class:(0,t.normalizeClass)((0,t.unref)(o).baseMultiple({class:(0,t.unref)(P)((0,t.unref)(r).baseMultiple,(0,t.unref)(n)?.baseMultiple)}))},[(0,t.createVNode)(to,{class:`pl-sm`}),f.value.length>0?(0,t.renderSlot)(e.$slots,`default`,{key:0},()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(o).baseMultiple({class:(0,t.unref)(P)((0,t.unref)(r).baseMultiple,(0,t.unref)(n)?.baseMultiple)}),`invisible absolute`]),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:r,ref_for:!0,ref_key:`badgeWrapperRef`,ref:l},[(0,t.renderSlot)(e.$slots,`badge`,{value:n},()=>[(0,t.createVNode)(eo,{"class-config":{root:`rounded-md`},color:`gray`,variant:`translucent`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,no,(0,t.toDisplayString)((0,t.unref)(i)(n)),1)]),_:2},1024)])],512))),128))],2),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(p.value,(n,r)=>(0,t.renderSlot)(e.$slots,`badge`,{key:r,value:n},()=>[(0,t.createVNode)(eo,{"class-config":{root:`rounded-md`},color:`gray`,variant:`translucent`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ro,(0,t.toDisplayString)((0,t.unref)(i)(n)),1)]),_:2},1024)])),128)),m.value>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`moreTagsCountRef`,ref:u},[(0,t.createElementVNode)(`span`,io,` +`+(0,t.toDisplayString)(m.value),1)],512)):(0,t.createCommentVNode)(``,!0)]):(0,t.createCommentVNode)(``,!0)],2))}}),oo={class:`truncate`},so=(0,t.defineComponent)({__name:`SelectBaseSingle`,setup(e){let{classConfig:n,customClassConfig:r,displayFn:i,modelValue:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).baseSingle({class:(0,t.unref)(P)((0,t.unref)(r).baseSingle,(0,t.unref)(n)?.baseSingle)}))},[(0,t.createVNode)(to),(0,t.unref)(a)===null?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`default`,{key:0},()=>[(0,t.createElementVNode)(`span`,oo,(0,t.toDisplayString)((0,t.unref)(i)((0,t.unref)(a))),1),(0,t.renderSlot)(e.$slots,`right`)])],2))}}),co=(0,t.defineComponent)({__name:`SelectBase`,setup(e){let{hasInlineSearchInput:n,isMultiple:r,classConfig:i,customClassConfig:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).base({class:(0,t.unref)(P)((0,t.unref)(a).base,(0,t.unref)(i)?.base)}))},[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(Na,{key:0})):(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createBlock)(ao,{key:1},{badge:(0,t.withCtx)(({value:n})=>[(0,t.renderSlot)(e.$slots,`badge`,{value:n})]),_:3})):((0,t.openBlock)(),(0,t.createBlock)(so,{key:2}))])],2))}}),lo=(0,t.defineComponent)({__name:`SelectContent`,setup(e){let{id:i,hasScrolledInDropdownContent:a,classConfig:o,customClassConfig:s,style:c}=z(),l=(0,n.injectListboxRootContext)(),u=(0,t.ref)(null),d=(0,t.ref)(null),f=Oe(d);function p(){let e=u.value?.$el??null;return e===null?[]:Array.from(e.querySelectorAll(`[role=option]`))}function m(e){if(e.length===0)return;let t=e.findIndex(e=>e.getAttribute(`aria-selected`)===`true`),n=t===-1?e[0]:e[t];setTimeout(()=>{l.changeHighlight(n)})}function h(e){a.value=e.target.scrollTop!==0}return(0,t.onMounted)(()=>{setTimeout(()=>{m(p())})}),(0,t.onBeforeUnmount)(()=>{l.highlightedElement.value=null}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{animate:{height:(0,t.unref)(f).height.value},transition:{type:`spring`,bounce:0,duration:.3},tabindex:`-1`,class:`overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{ref_key:`listboxContentWrapperRef`,ref:d},[(0,t.createVNode)((0,t.unref)(n.ListboxContent),{id:`${(0,t.unref)(i)}-content`,ref_key:`listboxContentRef`,ref:u,class:(0,t.normalizeClass)((0,t.unref)(c).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)})),onScroll:h},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`id`,`class`])],512)]),_:3},8,[`animate`]))}}),[uo,fo]=R(`textFieldContext`),po=(0,t.defineComponent)({__name:`TextFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=fo();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),mo=(0,t.defineComponent)({__name:`FormControl`,props:{id:{},isDisabled:{type:Boolean},isInvalid:{type:Boolean},isLoading:{type:Boolean},isRequired:{type:Boolean},as:{default:null},describedBy:{}},setup(e){let r=e;return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{id:r.id,as:r.as??void 0,"as-child":r.as===null,"aria-invalid":r.isInvalid,"aria-describedby":r.describedBy,"aria-required":r.isRequired,"aria-busy":r.isLoading},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`])]),_:3},8,[`id`,`as`,`as-child`,`aria-invalid`,`aria-describedby`,`aria-required`,`aria-busy`]))}}),ho=(0,t.defineComponent)({__name:`TextFieldInput`,setup(e){let{id:n,testId:r,isDisabled:i,isLoading:a,isRequired:o,isSpellCheckEnabled:s,autocomplete:c,classConfig:l,customClassConfig:u,errorMessage:d,modelValue:f,placeholder:p,style:m,type:h,onBlur:g,onFocus:_}=fo();function v(e){f.value=e.target.value}return(e,y)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(n),value:(0,t.unref)(f),"is-loading":(0,t.unref)(a),"is-disabled":(0,t.unref)(i),"is-invalid":(0,t.unref)(d)!==null,"is-required":(0,t.unref)(o),"described-by":`${(0,t.unref)(n)}-error ${(0,t.unref)(n)}-hint`,class:(0,t.normalizeClass)((0,t.unref)(m).input({class:(0,t.unref)(P)((0,t.unref)(u).input,(0,t.unref)(l)?.input)})),type:(0,t.unref)(h),autocomplete:(0,t.unref)(c),placeholder:(0,t.unref)(p),spellcheck:(0,t.unref)(s),onFocus:(0,t.unref)(_),onBlur:(0,t.unref)(g),onInput:v},{default:(0,t.withCtx)(()=>[...y[0]||=[(0,t.createElementVNode)(`input`,null,null,-1)]]),_:1},8,[`id`,`value`,`is-loading`,`is-disabled`,`is-invalid`,`is-required`,`described-by`,`class`,`type`,`autocomplete`,`placeholder`,`spellcheck`,`onFocus`,`onBlur`])]),_:1},8,[`test-id`]))}}),go=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/text-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/text-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`px-3 group-data-icon-left/text-field:pl-2 group-data-icon-right/text-field:pr-2`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/text-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),_o=[`data-icon-left`,`data-icon-right`,`data-invalid`,`data-disabled`],vo=(0,t.defineComponent)({__name:`TextFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},isSpellCheckEnabled:{type:Boolean,default:!1},autocomplete:{default:`off`},iconLeft:{default:null},iconRight:{default:null},placeholder:{default:null},type:{default:`text`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),{theme:o}=W(),s=(0,t.computed)(()=>go({variant:r.variant??void 0})),c=(0,t.computed)(()=>N(`textField`,o.value,{variant:r.variant}));function l(e){i(`blur`,e)}function u(e){i(`focus`,e)}return uo({...G(r),customClassConfig:c,modelValue:a,style:s,onBlur:l,onFocus:u}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,r.classConfig?.root)})),"data-icon-left":r.iconLeft!==null||void 0,"data-icon-right":r.iconRight!==null||void 0,"data-invalid":r.errorMessage!==null&&r.isTouched||void 0,"data-disabled":r.isDisabled||void 0},[(0,t.renderSlot)(e.$slots,`default`)],10,_o))}}),yo={key:0,class:`relative p-xs pb-0`},bo={key:0,class:`pointer-events-none absolute bottom-0 z-10 h-4 w-full translate-y-full bg-linear-to-b from-primary to-transparent`},xo=(0,t.defineComponent)({__name:`SelectDropdownSearchInput`,setup(e){let{hasScrolledInDropdownContent:r,classConfig:i,customClassConfig:a,filter:o,searchInputPlaceholder:s,searchTerm:c}=z();return(e,l)=>(0,t.unref)(o)!==null&&(0,t.unref)(o).isEnabled&&!(0,t.unref)(o).isInline?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yo,[(0,t.createVNode)(vo,{modelValue:(0,t.unref)(c),"onUpdate:modelValue":l[0]||=e=>(0,t.isRef)(c)?c.value=e:null,placeholder:(0,t.unref)(s),"class-config":(0,t.unref)(ln)({root:`border-none shadow-none outline-none bg-secondary h-8 rounded-sm`,iconLeft:`ml-md`},(0,t.unref)(a)?.dropdownSearchInput,(0,t.unref)(i)?.dropdownSearchInput)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(po),(0,t.createVNode)((0,t.unref)(n.ListboxFilter),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ho)]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`class-config`]),(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bo)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)}}),So=(0,t.defineComponent)({__name:`SelectEmpty`,setup(e){let{t:n}=(0,i.useI18n)(),{classConfig:r,customClassConfig:a,filteredItems:o,searchTerm:s,style:c,virtualList:l,virtualListFilteredItems:u}=z(),d=(0,t.computed)(()=>l.value===null||!l.value.isEnabled?o.value.size===0:u.value.length===0);return(e,i)=>d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(c).empty({class:(0,t.unref)(P)((0,t.unref)(a).empty,(0,t.unref)(r)?.empty)}))},(0,t.toDisplayString)((0,t.unref)(n)(`component.select.empty_text`,{searchTerm:(0,t.unref)(s)})),3)):(0,t.createCommentVNode)(``,!0)}}),Co=(0,t.defineComponent)({__name:`SelectIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=z();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),wo=(0,t.defineComponent)({__name:`SelectIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=z();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300`,"leave-active-class":`duration-300`},{default:(0,t.withCtx)(()=>[(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),To={class:`sr-only`},Eo=(0,t.defineComponent)({__name:`SelectLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=z(),{t:s}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-from-class":`opacity-0 scale-75 blur-xxs`,"leave-to-class":`opacity-0 scale-75 blur-xxs`,"enter-active-class":`duration-300 absolute right-0`,"leave-active-class":`duration-300 absolute right-0`},{default:(0,t.withCtx)(()=>[(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,To,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),[Do,Oo]=R(`popoverContext`),ko=(0,t.defineComponent)({__name:`PopoverAnchor`,setup(e){let{popoverAnchorReferenceElement:r}=Oo();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverAnchor),{"as-child":!0,reference:(0,t.unref)(r)??void 0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`reference`]))}}),Ao=(0,t.defineComponent)({__name:`PopoverArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=Oo();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-10 overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),jo=(0,t.defineComponent)({__name:`ThemeProvider`,props:{appearance:{default:null},asChild:{type:Boolean,default:!1},theme:{default:null}},setup(e){let r=e,i=W(),a=(0,t.computed)(()=>r.appearance??i.appearance.value??`light`),o=(0,t.computed)(()=>r.theme??i.theme.value);return ka({appearance:a,theme:o}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":r.asChild,class:(0,t.normalizeClass)([o.value,a.value])},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`as-child`,`class`]))}}),Mo=(0,t.defineComponent)({__name:`PopoverContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h,onAutoFocusOnClose:g,onContentEscapeKeyDown:_,onContentFocusOutside:v,onContentInteractOutside:y}=Oo();return(e,b)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.PopoverContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(c),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),"align-offset":(0,t.unref)(l),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)})),"position-strategy":`absolute`,sticky:`always`,onEscapeKeyDown:(0,t.unref)(_),onFocusOutside:(0,t.unref)(v),onInteractOutside:(0,t.unref)(y),onCloseAutoFocus:(0,t.unref)(g)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`collision-padding`,`collision-boundary`,`align-offset`,`side`,`side-offset`,`class`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onCloseAutoFocus`])]),_:3})]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),[No,J]=R(`configContext`),Po=(0,t.defineComponent)({__name:`PopoverPortal`,setup(e){let r=J();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverPortal),{to:(0,t.unref)(r).teleportTargetSelector},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`]))}}),Fo=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`relative overflow-hidden data-[content-width=anchor-width]:w-(--reka-popover-trigger-width) data-[content-width=available-width]:w-(--reka-popover-content-available-width)`).withHeight(`max-h-(--reka-popper-available-height)`).withFlex(`flex flex-col`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withSize(`size-full`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).withZIndex(`z-40`).build()},variants:{variant:{}}}),Io=(0,t.defineComponent)({__name:`PopoverRoot`,props:(0,t.mergeModels)({variant:{default:null},testId:{default:null},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:10},popoverWidth:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>Fo({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`popover`,s.value,{variant:i.variant}));function u(e){a(`escapeKeyDown`,e)}function d(e){a(`focusOutside`,e)}function f(e){a(`interactOutside`,e)}function p(e){a(`autoFocusOnClose`,e)}return Do({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c,onAutoFocusOnClose:p,onContentEscapeKeyDown:u,onContentFocusOutside:d,onContentInteractOutside:f}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverRoot),{open:o.value,"onUpdate:open":r[0]||=e=>o.value=e},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`]))}}),Lo=4,Ro=(0,t.defineComponent)({__name:`SelectPopoverContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]),a=(0,t.ref)(null);function o(e){switch(e){case`top`:return{x:0,y:Lo};case`bottom`:return{x:0,y:-4};case`left`:return{x:Lo,y:0};case`right`:return{x:-4,y:0}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`motionRef`,ref:a,initial:{opacity:0,scale:.9,...o(i.value)},animate:{opacity:1,scale:1,x:0,y:0},exit:{opacity:0,scale:.9,...o(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-popover-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),zo=(0,t.defineComponent)({__name:`PopoverTrigger`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverTrigger),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Bo=[`id`,`tabindex`,`aria-expanded`,`aria-controls`,`onKeydown`],Vo={key:0,class:`sr-only`},Ho={key:1,class:`sr-only`},Uo=(0,t.defineComponent)({__name:`SelectPopoverTrigger`,setup(e){let{id:n,hasInlineSearchInput:r,isDisabled:i,isDropdownVisible:a,displayFn:o,filter:s,modelValue:c,setIsDropdownVisible:l}=z(),u=(0,t.computed)(()=>s.value===null?!0:!s.value.isEnabled||!s.value.isInline);function d(){l(!0)}return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zo,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`button`,{id:(0,t.unref)(r)?void 0:(0,t.unref)(n)??void 0,tabindex:u.value?0:-1,"aria-expanded":(0,t.unref)(a),"aria-controls":`${(0,t.unref)(n)}-content`,class:(0,t.normalizeClass)([{"cursor-not-allowed":(0,t.unref)(i)},`absolute inset-0 outline-none`]),role:`combobox`,onKeydown:[(0,t.withKeys)((0,t.withModifiers)(d,[`prevent`]),[`arrow-down`]),(0,t.withKeys)((0,t.withModifiers)(d,[`prevent`]),[`arrow-up`])]},[Array.isArray((0,t.unref)(c))?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Vo,(0,t.toDisplayString)((0,t.unref)(c).map((0,t.unref)(o)).join(`, `)),1)):(0,t.unref)(c)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ho,(0,t.toDisplayString)((0,t.unref)(o)((0,t.unref)(c))),1))],42,Bo)]),_:1})]),_:1},8,[`is-disabled`]))}}),Wo=(0,t.defineComponent)({__name:`SelectPopover`,setup(e){let{hasInlineSearchInput:n,isDropdownHidden:r,isDropdownVisible:i,isPopoverArrowVisible:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverAnchorReferenceElement:u,popoverCollisionPadding:d,popoverContainerElement:f,popoverSide:p,popoverSideOffset:m,popoverWidth:h,setIsDropdownVisible:g,onDropdownEscapeKeyDown:_,onDropdownInteractOutside:v}=z();function y(e){n.value&&e.preventDefault()}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Io,{"is-open":(0,t.unref)(i)&&!(0,t.unref)(r),"is-popover-arrow-hidden":!(0,t.unref)(a),"popover-align":(0,t.unref)(c),"popover-align-offset":(0,t.unref)(l),"popover-collision-padding":(0,t.unref)(d),"popover-container-element":(0,t.unref)(f),"popover-side-offset":(0,t.unref)(m),"popover-side":(0,t.unref)(p),"popover-width":(0,t.unref)(h),"popover-anchor-reference-element":(0,t.unref)(u),"class-config":(0,t.unref)(ln)((0,t.unref)(s).popover,(0,t.unref)(o)?.popover),"onUpdate:isOpen":(0,t.unref)(g),onEscapeKeyDown:(0,t.unref)(_),onInteractOutside:(0,t.unref)(v),onAutoFocusOnClose:y},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`anchor`,{},()=>[(0,t.createVNode)(ko,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Uo)]),_:1})]),(0,t.renderSlot)(e.$slots,`inline-content`),(0,t.createVNode)(Po,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ro,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Ao)]),_:3})]),_:3})]),_:3})]),_:3},8,[`is-open`,`is-popover-arrow-hidden`,`popover-align`,`popover-align-offset`,`popover-collision-padding`,`popover-container-element`,`popover-side-offset`,`popover-side`,`popover-width`,`popover-anchor-reference-element`,`class-config`,`onUpdate:isOpen`,`onEscapeKeyDown`,`onInteractOutside`]))}}),Go=H({slots:{base:new U().withBase(`overflow-hidden`).withFlex(`flex items-center`).withSize(`size-full`).build(),baseMultiple:new U().withPadding(`px-sm group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withFlex(`flex items-center gap-xs`).withSize(`size-full`).build(),baseSingle:new U().withFontSize(`text-sm`).withColor(`text-primary group-data-disabled/select:text-disabled`).withPadding(`px-3 group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withSize(`w-full`).withFlex(`flex items-center`).build(),content:new U().withBase(`outline-none min-w-(--reka-popover-trigger-width)`).withBase(`overflow-auto`).withPadding(`p-xs`).withHeight(`max-h-80`).build(),empty:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withPadding(`p-sm`).build(),group:new U().build(),groupLabel:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).withSpacing(`py-xs`).build(),iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/select:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/select:text-fg-disabled`).build(),inlineSearchInput:new U().withOutline(`outline-none`).withBase(`z-10`).withSize(`size-full`).withFontSize(`text-sm`).withColor(`text-primary`).withBackgroundColor(`bg-transparent`).withPadding(`px-3 group-data-icon-left/select:pl-2 group-data-icon-right/select:pr-2`).withCursor(`disabled:cursor-not-allowed`).build(),item:new U().withBase(`outline-none`).withSize(`w-full`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withBorderRadius(`rounded-sm`).withPadding(`p-md`).withSpacing(`not-last:mb-xxs`).withFlex(`flex items-center justify-between gap-x-md`).withFontSize(`text-sm`).withFontWeight(`data-[state=checked]:font-medium`).withColor(`text-secondary data-disabled:text-disabled`).withBackgroundColor(`data-[state=checked]:bg-secondary not-data-disabled:data-highlighted:bg-secondary-hover not-data-disabled:hover:bg-secondary-hover`).withTransition(`not-data-disabled:data-highlighted:data-[state=checked]:brightness-98`).build(),itemIndicator:new U().withSize(`size-4`).withColor(`text-secondary`).build(),loader:new U().withBase(`pointer-events-none`).withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),placeholder:new U().withColor(`text-placeholder`).withFontSize(`text-sm`).build(),root:new U().withBase(`relative group/select overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build(),searchInput:``,separator:new U().withHeight(`h-px`).withBackgroundColor(`bg-quaternary`).withSpacing(`my-xs`).build()},variants:{variant:{}}}),Ko=(0,t.defineComponent)({__name:`SelectRoot`,props:(0,t.mergeModels)({isDropdownHidden:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isSearchTermControlled:{type:Boolean,default:!1},clearSearchTermOnSelect:{type:Boolean,default:!1},displayFn:{},filter:{default:null},iconLeft:{default:null},iconRight:{default:`selectIconRight`},placeholder:{default:null},remainOpenOnSelect:{type:[Boolean,null],default:null},searchInputPlaceholder:{default:null},variant:{default:null},virtualList:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},isPopoverArrowVisible:{type:Boolean,default:!1},popoverAlign:{default:`end`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:0},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:6},popoverWidth:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},searchTerm:{default:``,required:!1},searchTermModifiers:{},isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:searchTerm`,`update:isOpen`]),setup(e,{emit:r}){let a=e,o=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`searchTerm`),l=(0,t.useModel)(e,`isOpen`),{theme:u}=W(),{t:d}=(0,i.useI18n)(),f=a.id??(0,t.useId)(),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(new Map),g=(0,t.ref)(new Map),_=(0,t.ref)(null),v=(0,t.ref)(!1),{contains:y}=(0,n.useFilter)(),b=(0,t.computed)(()=>Go({variant:a.variant??void 0})),ee=(0,t.computed)(()=>N(`select`,u.value,{variant:a.variant})),x=(0,t.computed)(()=>Array.isArray(s.value)),te=(0,t.ref)(!1),S=(0,t.computed)(()=>a.remainOpenOnSelect??x.value),C=(0,t.computed)(()=>a.filter===null?!1:(a.filter.isEnabled&&a.filter.isInline)??!1);function ne(e,t){return y(a.displayFn(e).toLowerCase(),t.toLowerCase())}let re=(0,t.computed)(()=>a.filter?.fn??ne),ie=(0,t.computed)(()=>a.filter===null||!a.filter.isEnabled||C.value&&!v.value?h.value:new Map(Array.from(h.value.entries()).filter(([e,t])=>re.value(t,c.value)))),ae=(0,t.computed)(()=>a.virtualList===null||!a.virtualList.isEnabled?[]:a.virtualList.items.filter(e=>re.value(e,c.value))),oe=(0,t.computed)(()=>new Map(Array.from(g.value.entries()).filter(([e,t])=>Array.from(t).some(e=>ie.value.has(e))))),se=(0,t.computed)(()=>a.searchInputPlaceholder??d(`component.select.search_input_placeholder`));function w(e){l.value=e}function ce(){if(!a.isSearchTermControlled){if(x.value||!C.value||s.value===null||a.clearSearchTermOnSelect){c.value=``;return}c.value=a.displayFn(s.value)}}function T(){C.value&&setTimeout(()=>{_.value?.focus()})}function le(){T()}function ue(){a.isSearchTermControlled||ce(),v.value=!1}function de(){te.value||D(),te.value=!0}function fe(){setTimeout(()=>{!p.value?.$el.contains(document.activeElement)&&(!l.value||a.isDropdownHidden)&&(te.value=!1,pe())})}function E(){T()}function D(){o(`focus`)}function pe(){o(`blur`)}function me(e){e.target===_.value?e.preventDefault():pe()}function O(){T(),S.value||w(!1)}return(0,t.watch)(l,e=>{e?le():ue()}),(0,t.watch)(s,ce,{immediate:!0}),Xi({...G(a),id:(0,t.computed)(()=>f),hasInlineSearchInput:C,hasInteractedWithInlineSearchInput:v,hasScrolledInDropdownContent:m,isDropdownVisible:(0,t.computed)(()=>l.value),isMultiple:x,allGroups:g,allItems:h,customClassConfig:ee,filteredGroups:oe,filteredItems:ie,inlinesearchInputElementRef:_,modelValue:s,remainOpenOnSelect:S,searchInputPlaceholder:se,searchTerm:c,setIsDropdownVisible:w,style:b,virtualListFilteredItems:ae,onDropdownEscapeKeyDown:E,onDropdownInteractOutside:me,onSelectItem:O}),(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":a.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:null,ref_key:`rootRef`,ref:p,"is-disabled":a.isDisabled,"is-invalid":a.errorMessage!==null,"is-loading":a.isLoading,"is-required":a.isRequired,"described-by":`${(0,t.unref)(f)}-error ${(0,t.unref)(f)}-hint`,"data-invalid":a.errorMessage!==null&&a.isTouched||void 0,"data-icon-left":e.iconLeft!==null||void 0,"data-icon-right":e.iconRight!==null||void 0,"data-disabled":a.isDisabled||void 0,onFocusin:de,onFocusout:fe,onEntryFocus:i[1]||=(0,t.withModifiers)(()=>{},[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ListboxRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,"selection-behavior":x.value?`toggle`:`replace`,multiple:x.value,class:(0,t.normalizeClass)(b.value.root({class:(0,t.unref)(P)(ee.value.root,a.classConfig?.root)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`selection-behavior`,`multiple`,`class`])]),_:3},8,[`is-disabled`,`is-invalid`,`is-loading`,`is-required`,`described-by`,`data-invalid`,`data-icon-left`,`data-icon-right`,`data-disabled`])]),_:3},8,[`test-id`]))}}),qo={class:`w-full`},Jo=(0,t.defineComponent)({__name:`SelectVirtualList`,setup(e){let{displayFn:r,virtualList:i,virtualListFilteredItems:a}=z();return(e,o)=>(0,t.unref)(i)!==null&&(0,t.unref)(i).isEnabled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.ListboxVirtualizer),{key:0,options:(0,t.unref)(a),overscan:10,"estimate-size":(0,t.unref)(i).optionHeight??39,"text-content":(0,t.unref)(r)},{default:(0,t.withCtx)(({option:n})=>[(0,t.createElementVNode)(`div`,qo,[(0,t.renderSlot)(e.$slots,`item`,{item:n},()=>[(0,t.createVNode)(ea,{value:n},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(n)),1)]),_:2},1032,[`value`])])])]),_:3},8,[`options`,`estimate-size`,`text-content`])):(0,t.createCommentVNode)(``,!0)}}),Yo=(0,t.defineComponent)({__name:`Select`,props:(0,t.mergeModels)({isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},displayFn:{},filter:{},iconLeft:{},iconRight:{},placeholder:{},remainOpenOnSelect:{type:[Boolean,null],default:null},searchInputPlaceholder:{},variant:{},virtualList:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},searchTerm:{required:!1},searchTermModifiers:{},isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:searchTerm`,`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`searchTerm`),s=(0,t.useModel)(e,`isOpen`),c=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(c)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ko,(0,t.mergeProps)(r,{id:(0,t.unref)(c),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"search-term":o.value,"onUpdate:searchTerm":n[1]||=e=>o.value=e,"is-open":s.value,"onUpdate:isOpen":n[2]||=e=>s.value=e,onBlur:n[3]||=e=>i(`blur`),onFocus:n[4]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Wo,null,{anchor:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`anchor`)]),"inline-content":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(Co)]),(0,t.renderSlot)(e.$slots,`base`,{},()=>[(0,t.createVNode)(co,null,{badge:(0,t.withCtx)(({value:n})=>[(0,t.renderSlot)(e.$slots,`badge`,{value:n})]),_:3})]),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(wo)]),(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(Eo)]),(0,t.renderSlot)(e.$slots,`right`)]),content:(0,t.withCtx)(()=>[(0,t.createVNode)(xo),(0,t.createVNode)(lo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Jo,null,{item:(0,t.withCtx)(({item:n})=>[(0,t.renderSlot)(e.$slots,`virtual-list-item`,{item:n})]),_:3}),(0,t.renderSlot)(e.$slots,`default`),(0,t.createVNode)(So)]),_:3})]),_:3})]),_:3},16,[`id`,`modelValue`,`search-term`,`is-open`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Xo=(0,t.defineComponent)({__name:`Autocomplete`,props:(0,t.mergeModels)({isSearchTermOptional:{type:Boolean,default:!1},debounceTimeoutInMs:{default:300},items:{},isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},displayFn:{},iconLeft:{},iconRight:{default:null},placeholder:{},remainOpenOnSelect:{type:[Boolean,null]},searchInputPlaceholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`search`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.ref)(a.value?r.displayFn(a.value):``),s=(0,t.ref)(!1),c=(0,t.ref)(r.items),l=(0,t.computed)(()=>o.value.trim().length===0),u=(0,t.computed)(()=>a.value===null?!1:o.value===r.displayFn(a.value)),d=(0,t.computed)(()=>{if(c.value.length===0&&l.value||u.value&&c.value.length===0||(r.isLoading||s.value)&&c.value.length===0)return!1;if(c.value.length===1){let e=JSON.stringify(c.value[0])===JSON.stringify(a.value),t=c.value[0]!==null&&o.value===r.displayFn(c.value[0]);if(e&&!t)return!1}return!0}),f=(0,t.computed)(()=>r.iconRight===null?r.isSearchTermOptional?`selectIconRight`:null:r.iconRight),p=T(e=>{s.value=!1,e!==null&&i(`search`,e)},r.debounceTimeoutInMs);function m(e){!e&&!r.isSearchTermOptional&&(c.value=[])}(0,t.watch)(o,e=>{l.value&&(c.value=[]),!u.value&&(l.value?(s.value=!1,p(null)):(s.value=!0,p(e)))}),(0,t.watch)(()=>r.items,e=>{c.value=e});function h(e){e!==null&&(o.value=r.displayFn(e))}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Yo,(0,t.mergeProps)(r,{"search-term":o.value,"onUpdate:searchTerm":n[0]||=e=>o.value=e,modelValue:a.value,"onUpdate:modelValue":[n[1]||=e=>a.value=e,h],filter:{isEnabled:!0,isInline:!0,fn:()=>!0},"icon-right":f.value,"is-dropdown-hidden":!d.value,"is-loading":r.isLoading||s.value,"is-search-term-controlled":!0,"onUpdate:isOpen":m}),{base:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`base`)]),left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),right:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`right`)]),loader:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`,{items:c.value},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(n,i)=>(0,t.renderSlot)(e.$slots,`item`,{key:i,value:n},()=>[(0,t.createVNode)(ea,{value:n},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.displayFn(n)),1)]),_:2},1032,[`value`])])),128))])]),_:3},16,[`search-term`,`modelValue`,`icon-right`,`is-dropdown-hidden`,`is-loading`]))}}),Zo={class:`overflow-hidden`},Qo={class:`truncate font-medium`},$o={class:`line-clamp-2`},es=(0,t.defineComponent)({__name:`AddressAutocomplete`,props:(0,t.mergeModels)({isSearchTermOptional:{type:Boolean},debounceTimeoutInMs:{},isDropdownHidden:{type:Boolean},isLoading:{type:Boolean},isSearchTermControlled:{type:Boolean},clearSearchTermOnSelect:{type:Boolean},iconLeft:{},iconRight:{},placeholder:{},remainOpenOnSelect:{type:[Boolean,null]},searchInputPlaceholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},isPopoverArrowVisible:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`,`error`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=/\/\s*(\d+)/,{googleMapsApiKey:s}=J(),c=(0,t.ref)(!1),l=(0,t.ref)([]),u=null,d=(0,t.ref)(null),f=(0,t.computed)(()=>a.value===null?null:v(a.value)),p=(0,t.computed)(()=>l.value.map(e=>({placeId:e.placeId,mainText:e.mainText,secondaryText:e.secondaryText})));async function m(e){if(u===null)throw Error(`Autocomplete service is not defined`);c.value=!0;try{let t=e,n=e.match(o);if(n!==null&&n[1]!==void 0){let e=n[1];t=t.replace(o,`/bus ${e}`)}l.value=(await u.fetchAutocompleteSuggestions({input:t})).suggestions.filter(e=>e.placePrediction!==null).map(e=>{let t=e.placePrediction;return{placeId:t.placeId,mainText:t.mainText?.text??``,secondaryText:t.secondaryText?.text??``}})}catch(e){i(`error`,e)}c.value=!1}async function g(e){if(e===null){a.value=null;return}d.value=e,a.value=await _(e.placeId),d.value=null}async function b(e){let{AutocompleteSuggestion:t}=await new h({apiKey:e,libraries:[`places`]}).importLibrary(`places`);return t}return(0,t.onMounted)(async()=>{if(s===null)throw Error("Google Maps API key is not defined. Provide it in the config using the `<ConfigProvider />` component.");u=await b(s)}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Xo,(0,t.mergeProps)(r,{"model-value":d.value||f.value,items:p.value,"is-loading":c.value,"display-fn":e=>(0,t.unref)(y)(e),onSearch:m,onFocus:n[0]||=e=>i(`focus`),onBlur:n[1]||=e=>i(`blur`),"onUpdate:modelValue":g}),{base:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`base`)]),left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),right:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`right`)]),loader:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`)]),item:(0,t.withCtx)(({value:e})=>[(0,t.createVNode)(ea,{value:e},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Zo,[(0,t.createElementVNode)(`p`,Qo,(0,t.toDisplayString)(e.mainText),1),(0,t.createElementVNode)(`p`,$o,(0,t.toDisplayString)(e.secondaryText),1)])]),_:2},1032,[`value`])]),_:3},16,[`model-value`,`items`,`is-loading`,`display-fn`]))}}),ts=H({slots:{fallback:new U().withBase(`uppercase`).withFontSize(`text-sm`).withColor(`text-secondary`).withFontWeight(`font-medium`).build(),image:new U().withSize(`size-full`).build(),root:new U().withBase(`overflow-hidden`).withFlex(`flex items-center justify-center`).withSize(`size-10`).withBackgroundColor(`bg-tertiary`).withBorderRadius(`rounded-full`).build()},variants:{variant:{}}}),[ns,rs]=R(`avatarContext`),is=(0,t.defineComponent)({__name:`AvatarFallback`,setup(e){let{name:r,classConfig:i,customClassConfig:a,style:o}=rs(),s=(0,t.computed)(()=>r.value.split(` `).map(e=>e.charAt(0).toUpperCase()).join(``));return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarFallback),{class:(0,t.normalizeClass)((0,t.unref)(o).fallback({class:(0,t.unref)(P)((0,t.unref)(a).fallback,(0,t.unref)(i)?.fallback)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1},8,[`class`]))}}),as=(0,t.defineComponent)({__name:`AvatarImage`,setup(e){let{name:r,classConfig:i,customClassConfig:a,src:o,style:s}=rs();return(e,c)=>(0,t.unref)(o)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarImage),{key:0,src:(0,t.unref)(o),alt:(0,t.unref)(r),class:(0,t.normalizeClass)((0,t.unref)(s).image({class:(0,t.unref)(P)((0,t.unref)(a).image,(0,t.unref)(i)?.image)}))},null,8,[`src`,`alt`,`class`]))}}),os=(0,t.defineComponent)({__name:`AvatarRoot`,props:{name:{},src:{default:null},variant:{default:null},testId:{default:null},classConfig:{default:null}},setup(e){let r=e,{theme:i}=W(),a=(0,t.computed)(()=>ts({variant:r.variant??void 0})),o=(0,t.computed)(()=>N(`avatar`,i.value,{variant:r.variant}));return ns({...G(r),customClassConfig:o,style:a}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.AvatarRoot),{class:(0,t.normalizeClass)(a.value.root({class:(0,t.unref)(P)(o.value.root,r.classConfig?.root)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),ss=(0,t.defineComponent)({__name:`Avatar`,props:{name:{},src:{},variant:{},testId:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(os,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(as),(0,t.createVNode)(is)]),_:1},16))}}),cs=H({extend:Ka,slots:{content:new U().withClasses(`[grid-area:stack] group-data-[loading=true]/button:invisible group-data-[loading=true]/button:opacity-0`).withFlex(`flex items-center justify-center`).withTransition(`duration-300 group-data-[loading=true]/button:scale-95 group-data-[loading=true]/button:blur-xxs`).build(),iconLeft:new U().withBase(`shrink-0`).build(),iconRight:new U().withBase(`shrink-0`).build(),loader:new U().withClasses(`[grid-area:stack] mx-auto group-data-[loading=false]/button:invisible group-data-[loading=false]/button:opacity-0`).withBase(`shrink-0`).withTransition(`duration-300 group-data-[loading=false]/button:scale-95`).build(),root:new U().withGrid(`grid items-center justify-center [grid-template-areas:"stack"]`).withFontWeight(`font-medium`).build()},variants:{size:{"2xl":{iconLeft:new U().withMargin(`mr-md`).withSize(`size-5`).build(),iconRight:new U().withMargin(`ml-md`).withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withPadding(`px-5.5`).withFontSize(`text-lg`).withSize(`min-w-15`).build()},lg:{iconLeft:new U().withMargin(`mr-sm`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-sm`).withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withPadding(`px-xl`).withFontSize(`text-md`).withSize(`min-w-11`).build()},md:{iconLeft:new U().withMargin(`mr-xs`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-xs`).withSize(`size-4`).build(),loader:new U().withSize(`size-4.5`).build(),root:new U().withPadding(`px-3.5`).withFontSize(`text-sm`).withSize(`min-w-10`).build()},sm:{iconLeft:new U().withMargin(`mr-xs`).withSize(`size-4`).build(),iconRight:new U().withMargin(`ml-xs`).withSize(`size-4`).build(),loader:new U().withSize(`size-4`).build(),root:new U().withPadding(`px-lg`).withFontSize(`text-sm`).withSize(`min-w-9`).build()},xl:{iconLeft:new U().withMargin(`mr-sm`).withSize(`size-5`).build(),iconRight:new U().withMargin(`ml-sm`).withSize(`size-5`).build(),loader:new U().withSize(`size-5`).build(),root:new U().withPadding(`px-4.5`).withFontSize(`text-md`).withSize(`min-w-12`).build()}}}}),ls=cs,[us,ds]=R(`buttonContext`),fs=(0,t.defineComponent)({__name:`ButtonContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=ds();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).content({class:(0,t.unref)(P)((0,t.unref)(r).content,(0,t.unref)(n)?.content)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),ps=(0,t.defineComponent)({__name:`ButtonIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=ds();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),ms=(0,t.defineComponent)({__name:`ButtonIconRight`,setup(e){let{classConfig:n,customClassConfig:r,iconRight:i,style:a}=ds();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconRight({class:(0,t.unref)(P)((0,t.unref)(r).iconRight,(0,t.unref)(n)?.iconRight)}))},null,8,[`icon`,`class`]))}}),hs={class:`sr-only`},gs=(0,t.defineComponent)({__name:`ButtonLoader`,setup(e){let{t:n}=(0,i.useI18n)(),{classConfig:r,customClassConfig:a,style:o}=ds();return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,hs,(0,t.toDisplayString)((0,t.unref)(n)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua)])],2))}}),_s=(0,t.defineComponent)({__name:`ButtonRoot`,props:{size:{default:`md`},variant:{default:`primary`},iconLeft:{default:null},iconRight:{default:null},isLoading:{type:Boolean,default:!1},type:{default:`button`},testId:{default:null},isDisabled:{type:Boolean,default:!1},classConfig:{default:null}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>ls({size:r.size,variant:r.variant})),s=(0,t.computed)(()=>N(`button`,a.value,{size:r.size,variant:r.variant}));function c(e){r.isLoading||i(`click`,e)}return us({...G(r),customClassConfig:s,style:o}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled,"aria-disabled":r.isLoading,"aria-busy":r.isLoading,type:r.type,"data-loading":r.isLoading,class:(0,t.normalizeClass)(o.value.root({class:(0,t.unref)(P)(s.value.root,r.classConfig?.root)})),as:`button`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`is-disabled`,`aria-disabled`,`aria-busy`,`type`,`data-loading`,`class`])]),_:3},8,[`test-id`]))}}),vs=(0,t.defineComponent)({__name:`Button`,props:{size:{},variant:{},iconLeft:{},iconRight:{},isLoading:{type:Boolean},type:{},testId:{},isDisabled:{type:Boolean},classConfig:{}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(_s,(0,t.mergeProps)(r,{onClick:n[0]||=e=>i(`click`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loader`,{},()=>[(0,t.createVNode)(gs)]),(0,t.createVNode)(fs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(ps)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(ms)])]),_:3})]),_:3},16))}}),[ys,bs]=R(`iconButtonContext`),xs=(0,t.defineComponent)({__name:`RouterLinkButtonContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=bs();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).content({class:(0,t.unref)(P)((0,t.unref)(r).content,(0,t.unref)(n)?.content)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),Ss=(0,t.defineComponent)({__name:`RouterLinkButtonIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=bs();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Cs=(0,t.defineComponent)({__name:`RouterLinkButtonIconRight`,setup(e){let{classConfig:n,customClassConfig:r,iconRight:i,style:a}=bs();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconRight({class:(0,t.unref)(P)((0,t.unref)(r).iconRight,(0,t.unref)(n)?.iconRight)}))},null,8,[`icon`,`class`]))}}),ws=cs,Ts=(0,t.defineComponent)({__name:`RouterLinkButtonRoot`,props:{size:{default:`md`},to:{},variant:{default:`primary`},iconLeft:{default:null},iconRight:{default:null},testId:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),i=(0,t.computed)(()=>ws({size:n.size,variant:n.variant})),o=(0,t.computed)(()=>N(`routerLinkButton`,r.value,{size:n.size,variant:n.variant}));return ys({...G(n),customClassConfig:o,style:i}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":n.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a.RouterLink),{class:(0,t.normalizeClass)(i.value.root({class:(0,t.unref)(P)(o.value.root,n.classConfig?.root)})),"data-loading":!1,to:n.to},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`,`to`])]),_:3},8,[`test-id`]))}}),Es=(0,t.defineComponent)({__name:`RouterLinkButton`,props:{size:{},to:{},variant:{},iconLeft:{},iconRight:{},testId:{},classConfig:{}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(Ts,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`icon-left`,{},()=>[(0,t.createVNode)(Ss)]),(0,t.renderSlot)(e.$slots,`default`),(0,t.renderSlot)(e.$slots,`icon-right`,{},()=>[(0,t.createVNode)(Cs)])]),_:3})]),_:3},16))}}),[Ds,Os]=R(`checkboxContext`),ks={key:0,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},As={key:1,width:`100%`,height:`100%`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},js=(0,t.defineComponent)({__name:`CheckboxIndicator`,setup(e){let i={hidden:{opacity:0,pathLength:0},visible:{opacity:1,pathLength:1,transition:{opacity:{duration:.01},pathLength:{bounce:0,duration:.5,type:`spring`}}}},{isIndeterminate:a,classConfig:o,customClassConfig:s,style:c}=Os();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxIndicator),{class:(0,t.normalizeClass)((0,t.unref)(c).indicator({class:(0,t.unref)(P)((0,t.unref)(s).indicator,(0,t.unref)(o)?.indicator)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ks,[(0,t.createVNode)((0,t.unref)(r.motion).path,{variants:i,tabindex:`-1`,initial:`hidden`,d:`M2.5 6H9.5`,stroke:`currentColor`,"stroke-width":`1.66666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,As,[(0,t.createVNode)((0,t.unref)(r.motion).path,{variants:i,tabindex:`-1`,initial:`hidden`,d:`M2 6L4.5 8.5L10 3`,stroke:`currentColor`,"stroke-width":`1.6666`,"stroke-linecap":`round`,"stroke-linejoin":`round`,animate:`visible`,exit:`hidden`})]))])]),_:3},8,[`class`])]),_:3}))}}),Ms=(0,t.defineComponent)({__name:`CheckboxControl`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Os();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).control({class:(0,t.unref)(P)((0,t.unref)(n)?.control,(0,t.unref)(r)?.control)}))},[(0,t.createVNode)(js)],2))}}),Ns=H({slots:{control:new U().withBase(`relative overflow-hidden isolate`).withSize(`size-4`).withFlex(`flex items-center justify-center`).withBorder(`border border-solid border-primary group-data-[state=checked]/checkbox:border-brand-600 group-data-[state=checked]/checkbox:group-disabled/checkbox:border-disabled disabled:border-disabled`).withBorder(`group-data-invalid/checkbox:group-data-[state=checked]/checkbox:border-error group-data-invalid/checkbox:group-data-[state=unchecked]/checkbox:border-error`).withBorderRadius(`rounded-xs`).withBackgroundColor(`group-data-[state=checked]/checkbox:bg-brand-solid group-disabled/checkbox:group-data-[state=checked]/checkbox:bg-disabled-subtle group-disabled/checkbox:bg-disabled-subtle`).withBackgroundColor(`group-data-invalid/checkbox:group-data-[state=checked]/checkbox:bg-error-solid`).withOutline(`outline-2 outline-transparent group-focus-visible/checkbox:outline-brand-600 outline-offset-1 group-focus-visible/checkbox:group-data-invalid/checkbox:outline-error-600`).withTransition(`duration-300`).build(),indicator:new U().withBase(`block`).withColor(`text-primary-on-brand group-data-disabled/checkbox:text-fg-disabled-subtle`).withSize(`size-3`).build(),root:new U().withBase(`group/checkbox outline-none`).withFlex(`flex items-center justify-start`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),Ps=(0,t.defineComponent)({__name:`CheckboxRoot`,props:(0,t.mergeModels)({isIndeterminate:{type:Boolean,default:!1},value:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.computed)({get(){return o.value===null?null:o.value?!0:i.isIndeterminate?`indeterminate`:!1},set(e){e!==null&&(o.value=e===`indeterminate`?!1:e)}}),{theme:c}=W(),l=(0,t.computed)(()=>Ns({variant:i.variant??void 0})),u=(0,t.computed)(()=>N(`checkbox`,c.value,{variant:i.variant}));return Ds({...G(i),customClassConfig:u,style:l}),(r,o)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxRoot),{modelValue:s.value,"onUpdate:modelValue":o[0]||=e=>s.value=e,value:i.value,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(l.value.root({class:(0,t.unref)(P)(u.value.root,i.classConfig?.root)})),onFocus:o[1]||=e=>a(`focus`),onBlur:o[2]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`value`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),Fs=(0,t.defineComponent)({__name:`Checkbox`,props:(0,t.mergeModels)({isIndeterminate:{type:Boolean},value:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ps,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`),onFocus:n[2]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ms)])]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}});function Is(e,n){function r(t){setTimeout(()=>{e.value.contains(document.activeElement)||n(t)})}(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Element is null`);e.value.addEventListener(`focusout`,r)}),(0,t.onBeforeUnmount)(()=>{e.value?.removeEventListener(`focusout`,r)})}var Ls=(0,t.defineComponent)({__name:`CheckboxGroupRoot`,props:(0,t.mergeModels)({testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.ref)(null);return Is((0,t.computed)(()=>s.value?.$el??null),()=>{a(`blur`)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CheckboxGroupRoot),(0,t.mergeProps)({ref_key:`checkboxGroupRootRef`,ref:s},i,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`modelValue`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Rs=(0,t.defineComponent)({__name:`CheckboxGroup`,props:(0,t.mergeModels)({testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ls,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),zs=(0,t.defineComponent)({__name:`TooltipProvider`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipProvider),null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Bs=(0,t.defineComponent)({__name:`ConfigProvider`,props:{areKeyboardShortcutHintsHidden:{type:Boolean},autoCloseToast:{},googleMapsApiKey:{},hourCycle:{},locale:{},pagination:{},teleportTargetSelector:{},toastPosition:{}},setup(e){let n=e;return No({areKeyboardShortcutHintsHidden:(0,t.computed)(()=>n.areKeyboardShortcutHintsHidden??!1),autoCloseToast:(0,t.computed)(()=>n.autoCloseToast??null),googleMapsApiKey:n.googleMapsApiKey??null,hourCycle:(0,t.computed)(()=>n.hourCycle??null),locale:(0,t.computed)(()=>n.locale),pagination:{limit:n.pagination?.limit},teleportTargetSelector:n.teleportTargetSelector??`body`,toastPosition:n.toastPosition}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(zs,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Vs=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/date-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/date-field:pl-2`).withBackgroundColor(`group-data-disabled/date-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/date-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),[Hs,Us]=R(`dateFieldContext`),Ws=(0,t.defineComponent)({__name:`DateFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=Us();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Gs=(0,t.defineComponent)({__name:`DateFieldInput`,props:{segments:{}},setup(e){let r=e,{testId:i,classConfig:a,customClassConfig:o,style:s,onBlur:c,onFocus:l}=Us();return(e,u)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(s).inputs({class:(0,t.unref)(P)((0,t.unref)(o).inputs,(0,t.unref)(a)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2)]),_:1},8,[`test-id`]))}}),Ks={class:`sr-only`},qs=(0,t.defineComponent)({__name:`DateFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Us(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Ks,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),[Js,Ys]=R(`useDatePickerDateContext`),[Xs,Zs]=R(`datePickerContext`),Qs=(0,t.defineComponent)({__name:`DatePickerDate`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Zs(),{date:o,month:s}=Ys();return(e,c)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarCellTrigger),{day:(0,t.unref)(o),month:(0,t.unref)(s),class:(0,t.normalizeClass)((0,t.unref)(a).date({class:(0,t.unref)(P)((0,t.unref)(i).date,(0,t.unref)(r)?.date)}))},{default:(0,t.withCtx)(({today:n})=>[(0,t.renderSlot)(e.$slots,`default`,{day:(0,t.unref)(o).day},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(o).day),1)]),n?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(a).todayIndicator({class:(0,t.unref)(P)((0,t.unref)(i).todayIndicator,(0,t.unref)(r)?.todayIndicator)}))},null,2)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`day`,`month`,`class`]))}});function $s(e,t){return e-t*Math.floor(e/t)}var ec=1721426;function tc(e,t,n,r){t=rc(e,t);let i=t-1,a=-2;return n<=2?a=0:nc(t)&&(a=-1),ec-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function nc(e){return e%4==0&&(e%100!=0||e%400==0)}function rc(e,t){return e===`BC`?1-t:t}function ic(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var ac={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},oc=class{fromJulianDay(e){let t=e,n=t-ec,r=Math.floor(n/146097),i=$s(n,146097),a=Math.floor(i/36524),o=$s(i,36524),s=Math.floor(o/1461),c=$s(o,1461),l=Math.floor(c/365),[u,d]=ic(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-tc(u,d,1,1),p=2;t<tc(u,d,3,1)?p=0:nc(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new Zc(u,d,m,t-tc(u,d,m,1)+1)}toJulianDay(e){return tc(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return ac[nc(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return nc(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function sc(e,t){return e.isEqual?.call(e,t)??t.isEqual?.call(t,e)??e.identifier===t.identifier}function cc(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function lc(e,t){return uc(e)-uc(t)}function uc(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var dc=null;function fc(){return dc??=new Intl.DateTimeFormat().resolvedOptions().timeZone,dc}function pc(e){return e=wc(e,new oc),mc(rc(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function mc(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function hc(e,t){if(t===`UTC`)return 0;if(e>0&&t===fc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=_c(e,t);return mc(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var gc=new Map;function _c(e,t){let n=gc.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),gc.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var vc=864e5;function yc(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>bc(e,t,n))}function bc(e,t,n){let r=_c(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function xc(e,t,n=`compatible`){let r=Cc(e);if(t===`UTC`)return pc(r);if(t===fc()&&n===`compatible`){r=wc(r,new oc);let e=new Date,t=rc(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=pc(r),a=hc(i-vc,t),o=hc(i+vc,t),s=yc(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function Sc(e,t,n=`compatible`){return new Date(xc(e,t,n))}function Cc(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new tl(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function wc(e,t){if(sc(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ac(r),r}function Tc(e,t){let n=e.copy(),r=`hour`in n?Rc(n,t):0;Ec(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Dc(n),kc(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Oc(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a;let e=(a=n.calendar).isInverseEra?.call(a,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ec(e,t){var n;(n=e.calendar).isInverseEra?.call(n,e)&&(t=-t),e.year+=t}function Dc(e){for(;e.month<1;)Ec(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ec(e,1)}function Oc(e){for(;e.day<1;)e.month--,Dc(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Dc(e)}function kc(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ac(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),kc(e)}function jc(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function Mc(e,t){return Tc(e,jc(t))}function Nc(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ac(n),n}function Pc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Ic(n),n}function Fc(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Lc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Lc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Lc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Lc(e.hour,24),t}function Ic(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Lc(e,t){let n=e%t;return n<0&&(n+=t),n}function Rc(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Fc(e)}function zc(e,t){let n=e.copy();return Rc(n,t),n}function Bc(e,t){return zc(e,jc(t))}function Vc(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Uc(a,n,0,t.length-1,r?.round),i.era=t[a],Ac(i);break}case`year`:var a;(a=i.calendar).isInverseEra?.call(a,i)&&(n=-n),i.year=Uc(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Uc(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Uc(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ac(i),i}function Hc(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Uc(t,n,a,o,r?.round);break}case`minute`:i.minute=Uc(e.minute,n,0,59,r?.round);break;case`second`:i.second=Uc(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Uc(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Uc(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Wc(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function Gc(e){let t=wc(e,new oc),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function Kc(e){return`${Gc(e)}T${Wc(e)}`}function qc(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Jc(e,t,n){qc(e,t),t.set(e,n)}function Yc(e){let t=typeof e[0]==`object`?e.shift():new oc,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Xc=new WeakMap,Zc=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return Tc(this,e)}subtract(e){return Mc(this,e)}set(e){return Nc(this,e)}cycle(e,t,n){return Vc(this,e,t,n)}toDate(e){return Sc(this,e)}toString(){return Gc(this)}compare(e){return cc(this,e)}constructor(...e){Jc(this,Xc,{writable:!0,value:void 0});let[t,n,r,i,a]=Yc(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,Ac(this)}},Qc=new WeakMap,$c=class e{copy(){return new e(this.hour,this.minute,this.second,this.millisecond)}add(e){return zc(this,e)}subtract(e){return Bc(this,e)}set(e){return Pc(this,e)}cycle(e,t,n){return Hc(this,e,t,n)}toString(){return Wc(this)}compare(e){return lc(this,e)}constructor(e=0,t=0,n=0,r=0){Jc(this,Qc,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,Ic(this)}},el=new WeakMap,tl=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Tc(this,e)}subtract(e){return Mc(this,e)}set(e){return Nc(Pc(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return Vc(this,e,t,n);default:return Hc(this,e,t,n)}}toDate(e,t){return Sc(this,e,t)}toString(){return Kc(this)}compare(e){let t=cc(this,e);return t===0?lc(this,Cc(e)):t}constructor(...e){Jc(this,el,{writable:!0,value:void 0});let[t,n,r,i,a]=Yc(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ac(this)}};function nl(e){return new Date(e.toString())}function rl(e){return new Zc(e.getFullYear(),e.getMonth()+1,e.getDate())}function Y(e){let t=e.toDate(fc());return new o.Temporal.PlainDate(t.getFullYear(),t.getMonth()+1,t.getDate())}function X(e){return rl(nl(e))}function il(e){return e.toDate(fc())}function al(e,t,n){return new Intl.DateTimeFormat(t,{month:n}).format(new Date(1,e))}function ol(e,t){return new Date(t,e,0).getDate()}function sl(e){return+![`en-US`,`en-CA`,`en-PH`,`en-MY`,`en-AU`,`en-NZ`,`en-IN`,`ja-JP`,`zh-CN`].some(t=>t.toLowerCase()===e.toLowerCase())}function cl(e,t,n=`short`){let r=sl(e),i=new Date(Date.UTC(2023,0,1)),a=[],o=new Intl.DateTimeFormat(t,{weekday:n});for(let e=0;e<7;e++){let t=(r+e)%7,n=new Date(i);n.setUTCDate(i.getUTCDate()+t),a.push(o.format(n))}return a}var ll=(0,t.defineComponent)({__name:`DatePickerDateProvider`,props:{date:{},month:{}},setup(e){let n=e;return Js({date:n.date,month:n.month}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`)}}),ul=(0,t.defineComponent)({__name:`DatePickerGrid`,props:{grid:{},weekDays:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=Zs(),{locale:s}=J(),{locale:c}=(0,n.injectCalendarRootContext)();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).gridContainer({class:(0,t.unref)(P)((0,t.unref)(a).gridContainer,(0,t.unref)(i)?.gridContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:l.value.toString()},[u===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).monthSeparator({class:(0,t.unref)(P)((0,t.unref)(a).monthSeparator,(0,t.unref)(i)?.monthSeparator)}))},null,2)),(0,t.createVNode)((0,t.unref)(n.CalendarGrid),{class:(0,t.normalizeClass)((0,t.unref)(o).grid({class:(0,t.unref)(P)((0,t.unref)(a).grid,(0,t.unref)(i)?.grid)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarGridHead),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarGridRow),{class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.weekDays,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarHeadCell),{key:e,class:(0,t.normalizeClass)((0,t.unref)(o).weekDayLabel({class:(0,t.unref)(P)((0,t.unref)(a).weekDayLabel,(0,t.unref)(i)?.weekDayLabel)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(cl)((0,t.unref)(c),(0,t.unref)(s))[r]),1)]),_:2},1032,[`class`]))),128))]),_:1},8,[`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(n.CalendarGridBody),{class:(0,t.normalizeClass)((0,t.unref)(o).gridBody({class:(0,t.unref)(P)((0,t.unref)(a).gridBody,(0,t.unref)(i)?.gridBody)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.rows,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarGridRow),{key:r.toString(),class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarCell),{key:r.toString(),date:r},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ll,{date:r,month:l.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`date`,{date:(0,t.unref)(il)(r)},()=>[(0,t.createVNode)(Qs)])]),_:2},1032,[`date`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])],64))),128))],2))}}),[dl,fl]=R(`numberFieldContext`),pl=(0,t.defineComponent)({__name:`NumberFieldDecrement`,setup(e){let{isDisabled:r,classConfig:a,customClassConfig:o,hideControls:s}=fl(),{t:c}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(s)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NumberFieldDecrement),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(r),label:(0,t.unref)(c)(`component.number_field.decrement`),"class-config":(0,t.unref)(ln)({icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem] ml-[0.3rem]`},(0,t.unref)(o)?.decrement,(0,t.unref)(a)?.decrement),icon:`minus`,variant:`tertiary`,size:`sm`},null,8,[`is-disabled`,`label`,`class-config`])]),_:1}))}}),ml=(0,t.defineComponent)({__name:`NumberFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=fl();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),hl=(0,t.defineComponent)({__name:`NumberFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=fl();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),gl=(0,t.defineComponent)({__name:`NumberFieldIncrement`,setup(e){let{isDisabled:r,classConfig:a,customClassConfig:o,hideControls:s}=fl(),{t:c}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(s)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NumberFieldIncrement),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(r),label:(0,t.unref)(c)(`component.number_field.increment`),"class-config":(0,t.unref)(ln)({icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem] mr-[0.3rem]`},(0,t.unref)(o)?.increment,(0,t.unref)(a)?.increment),icon:`plus`,variant:`tertiary`,size:`sm`},null,8,[`is-disabled`,`label`,`class-config`])]),_:1}))}}),_l=(0,t.defineComponent)({__name:`NumberFieldInput`,setup(e){let{id:r,testId:i,isDisabled:a,isLoading:o,isRequired:s,autocomplete:c,classConfig:l,customClassConfig:u,errorMessage:d,placeholder:f,style:p,onBlur:m,onFocus:h}=fl();return(e,g)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(r),"is-disabled":(0,t.unref)(a),"is-loading":(0,t.unref)(o),"is-invalid":(0,t.unref)(d)!==null,"described-by":`${(0,t.unref)(r)}-error ${(0,t.unref)(r)}-hint`,"is-required":(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NumberFieldInput),{class:(0,t.normalizeClass)((0,t.unref)(p).input({class:(0,t.unref)(P)((0,t.unref)(u).input,(0,t.unref)(l)?.input)})),autocomplete:(0,t.unref)(c),placeholder:(0,t.unref)(f),onFocus:(0,t.unref)(h),onBlur:(0,t.unref)(m)},null,8,[`class`,`autocomplete`,`placeholder`,`onFocus`,`onBlur`])]),_:1},8,[`id`,`is-disabled`,`is-loading`,`is-invalid`,`described-by`,`is-required`])]),_:1},8,[`test-id`]))}}),vl={class:`sr-only`},yl=(0,t.defineComponent)({__name:`NumberFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=fl(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,vl,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),bl=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/number-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/number-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none group-data-controls/number-field:text-center`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`px-3 group-data-icon-left/number-field:pl-2 group-data-icon-right/number-field:pr-2`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/number-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),xl=(0,t.defineComponent)({__name:`NumberFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},formatOptions:{default:null},hideControls:{type:Boolean,default:!1},iconLeft:{default:null},iconRight:{default:null},max:{default:null},min:{default:null},placeholder:{default:null},step:{default:1},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=navigator.language,c=(0,t.computed)({get:()=>o.value??void 0,set:e=>{if(Number.isNaN(e)){o.value=null;return}o.value=e??null}}),{theme:l}=W(),u=(0,t.computed)(()=>bl({variant:i.variant??void 0})),d=(0,t.computed)(()=>N(`numberField`,l.value,{variant:i.variant}));function f(e){a(`blur`,e)}function p(e){a(`focus`,e)}return dl({...G(i),customClassConfig:d,style:u,onBlur:f,onFocus:p}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NumberFieldRoot),{modelValue:c.value,"onUpdate:modelValue":r[0]||=e=>c.value=e,class:(0,t.normalizeClass)(u.value.root({class:(0,t.unref)(P)(d.value.root,i.classConfig?.root)})),"data-icon-left":i.iconLeft!==null||void 0,"data-icon-right":i.iconRight!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-controls":!i.hideControls||void 0,required:i.isRequired,min:i.min??void 0,max:i.max??void 0,step:i.step,"format-options":i.formatOptions??void 0,locale:(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`class`,`data-icon-left`,`data-icon-right`,`data-invalid`,`data-controls`,`required`,`min`,`max`,`step`,`format-options`,`locale`])]),_:3},8,[`is-disabled`]))}}),Sl=(0,t.defineComponent)({__name:`NumberField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},formatOptions:{},hideControls:{type:Boolean},iconLeft:{},iconRight:{},max:{},min:{},placeholder:{},step:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(xl,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(pl),(0,t.createVNode)(ml),(0,t.createVNode)(_l),(0,t.createVNode)(gl),(0,t.createVNode)(hl),(0,t.createVNode)(yl),(0,t.renderSlot)(e.$slots,`right`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Cl={key:1},wl={key:0,class:`text-center`},Tl={class:`text-sm font-semibold whitespace-nowrap text-primary`},El={key:1,class:`flex items-center justify-center gap-xxs`},Dl={key:3},Ol=(0,t.defineComponent)({__name:`DatePickerHeader`,props:{grid:{}},setup(e){let r=e,{locale:i}=J(),{classConfig:a,customClassConfig:s,placeholderValue:c,showTwoMonths:l,style:u}=Zs(),d=(0,t.computed)({get:()=>c.value.month,set:async e=>{await(0,t.nextTick)(),c.value=new o.Temporal.PlainDate(c.value.year,e,c.value.day)}}),f=(0,t.computed)({get:()=>c.value.year,set:e=>{c.value=new o.Temporal.PlainDate(e,c.value.month,c.value.day)}});return(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(u).headerContainer({class:(0,t.unref)(P)((0,t.unref)(s).headerContainer,(0,t.unref)(a)?.headerContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(r,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarHeader),{key:o,class:(0,t.normalizeClass)((0,t.unref)(u).header({class:(0,t.unref)(P)((0,t.unref)(s).header,(0,t.unref)(a)?.header)}))},{default:(0,t.withCtx)(()=>[o===0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarPrev),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:-translate-x-px group-enabled/button:group-active/button:-translate-x-0.5 duration-200`},icon:`chevronLeft`,label:`Previous month`,variant:`tertiary`,size:`sm`,class:`justify-self-start`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Cl)),(0,t.createVNode)((0,t.unref)(n.CalendarHeading),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wl,[(0,t.createElementVNode)(`span`,Tl,(0,t.toDisplayString)((0,t.unref)(al)(r.value.month-1,(0,t.unref)(i),`long`))+` `+(0,t.toDisplayString)(r.value.year),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,El,[(0,t.createVNode)(Yo,{modelValue:d.value,"onUpdate:modelValue":c[0]||=e=>d.value=e,"icon-right":null,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,baseSingle:`font-semibold px-sm`,content:`gap-xs grid [grid-template-columns:auto] sm:[grid-template-columns:repeat(auto-fit,minmax(6rem,1fr))]`,popover:{content:`min-w-60`}},filter:{isEnabled:!0},"display-fn":e=>(0,t.unref)(al)(e-1,(0,t.unref)(i),`long`),"popover-align":`start`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(12,e=>(0,t.createVNode)(ea,{key:e,value:e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(al)(e-1,(0,t.unref)(i),`long`)),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`modelValue`,`display-fn`]),(0,t.createVNode)(Sl,{modelValue:f.value,"onUpdate:modelValue":c[1]||=e=>f.value=e,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,input:`font-semibold px-sm`},"format-options":{useGrouping:!1},"hide-controls":!0,class:`w-12 shrink-0`},null,8,[`modelValue`])]))]),_:2},1024),o===e.grid.length-1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.CalendarNext),{key:2,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:translate-x-px group-enabled/button:group-active/button:translate-x-0.5 duration-200`},icon:`chevronRight`,label:`Next month`,variant:`tertiary`,size:`sm`,class:`justify-self-end`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Dl))]),_:2},1032,[`class`]))),128))],2))}}),kl=H({slots:{date:new U().withBase(`group/date relative select-none isolate`).withFlex(`flex items-center justify-center`).withFontSize(`text-sm`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withSize(`size-10`).withOutline(`outline-brand-500 data-selected:outline-offset-2`).build(),grid:new U().withSize(`w-70`).build(),gridBody:new U().withFlex(`flex flex-col gap-y-xs`).build(),gridContainer:new U().withBase(`flex gap-xl`).build(),gridRow:new U().withBase(`grid grid-cols-7 items-center`).build(),header:new U().withGrid(`grid grid-cols-[1fr_auto_1fr] items-center`).withSize(`size-full`).build(),headerContainer:new U().withFlex(`flex justify-between gap-xl`).withMargin(`mb-lg`).build(),monthSeparator:new U().withSize(`w-px`).withBackgroundColor(`bg-tertiary`).build(),todayIndicator:new U().withBase(`absolute bottom-1 left-1/2 -translate-x-1/2`).withSize(`size-1`).withBorderRadius(`rounded-full`).build(),weekDayLabel:new U().withFontWeight(`font-medium`).withColor(`text-secondary`).withFontSize(`text-sm`).withSize(`size-10`).withFlex(`flex items-center justify-center`).build()},variants:{variant:{}}}),Al=H({extend:kl,slots:{date:new U().withColor(`text-secondary data-selected:text-primary-on-brand data-outside-view:text-disabled data-disabled:text-disabled data-unavailable:text-disabled`).withBackgroundColor(`not-data-disabled:hover:bg-tertiary data-selected:bg-brand-solid data-selected:hover:bg-brand-solid-hover`).withBorderRadius(`rounded-full`).build(),header:``,headerContainer:``,todayIndicator:new U().withBackgroundColor(`bg-brand-solid group-data-selected/date:bg-white`).build(),weekDayLabel:``},variants:{variant:{}}}),jl=(0,t.defineComponent)({__name:`DatePickerRoot`,props:(0,t.mergeModels)({variant:{default:null},weekStartsOn:{default:0},focusOnMount:{type:Boolean,default:!1},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1},maxDate:{default:null},minDate:{default:null},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useModel)(e,`placeholderValue`),s=(0,t.computed)(()=>r.locale??navigator.language),c=(0,t.computed)({get:()=>{if(i.value!==null)return X(i.value)},set:e=>{if(e==null){i.value=null;return}i.value=Y(e)}}),l=(0,t.computed)({get:()=>X(a.value??i.value??o.Temporal.Now.plainDateISO()),set:e=>{a.value=Y(e)}}),{theme:u}=W(),d=(0,t.computed)(()=>Al({variant:r.variant??void 0})),f=(0,t.computed)(()=>N(`datePicker`,u.value,{variant:r.variant}));return Xs({...G(r),customClassConfig:f,modelValue:i,placeholderValue:(0,t.computed)({get:()=>Y(l.value),set:e=>{l.value=X(e)}}),style:d}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.CalendarRoot),{modelValue:c.value,"onUpdate:modelValue":i[0]||=e=>c.value=e,placeholder:l.value,"onUpdate:placeholder":i[1]||=e=>l.value=e,"week-starts-on":r.weekStartsOn,"prevent-deselect":!r.allowDeselect,"fixed-weeks":!0,"number-of-months":r.showTwoMonths?2:1,"is-date-unavailable":e=>r.isDateUnavailable((0,t.unref)(Y)(e)),"is-date-disabled":e=>r.isDateDisabled((0,t.unref)(Y)(e)),"calendar-label":r.label,"initial-focus":r.focusOnMount,locale:s.value,"min-value":r.minDate===null?void 0:(0,t.unref)(X)(r.minDate),"max-value":r.maxDate===null?void 0:(0,t.unref)(X)(r.maxDate),"weekday-format":`short`},{default:(0,t.withCtx)(({weekDays:n,grid:r})=>[(0,t.renderSlot)(e.$slots,`default`,{weekDays:n,grid:r})]),_:3},8,[`modelValue`,`placeholder`,`week-starts-on`,`prevent-deselect`,`number-of-months`,`is-date-unavailable`,`is-date-disabled`,`calendar-label`,`initial-focus`,`locale`,`min-value`,`max-value`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Ml=(0,t.defineComponent)({__name:`DatePicker`,props:(0,t.mergeModels)({variant:{},weekStartsOn:{},focusOnMount:{type:Boolean},label:{},testId:{},isDisabled:{type:Boolean},maxDate:{},minDate:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useModel)(e,`placeholderValue`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(jl,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,"placeholder-value":i.value,"onUpdate:placeholderValue":a[1]||=e=>i.value=e}),{default:(0,t.withCtx)(({grid:n,weekDays:r})=>[(0,t.createVNode)(Ol,{grid:n},null,8,[`grid`]),(0,t.createVNode)(ul,{"week-days":r,grid:n},{date:(0,t.withCtx)(({date:n})=>[(0,t.renderSlot)(e.$slots,`date`,{date:n},()=>[(0,t.createVNode)(Qs)])]),_:3},8,[`week-days`,`grid`])]),_:3},16,[`modelValue`,`placeholder-value`]))}}),Nl=4,Pl=(0,t.defineComponent)({__name:`PopoverContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]);function a(e){switch(e){case`top`:return{transform:`translateY(${Nl}px) scale(0.9)`};case`bottom`:return{transform:`translateY(-${Nl}px) scale(0.9)`};case`left`:return{transform:`translateX(${Nl}px) scale(0.9)`};case`right`:return{transform:`translateX(-${Nl}px) scale(0.9)`}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...a(i.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`},exit:{opacity:0,...a(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-popover-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Fl=(0,t.defineComponent)({__name:`Popover`,props:(0,t.mergeModels)({variant:{},testId:{},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`autoFocusOnClose`,`escapeKeyDown`,`focusOutside`,`interactOutside`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Io,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onEscapeKeyDown:n[1]||=e=>i(`escapeKeyDown`,e),onFocusOutside:n[2]||=e=>i(`focusOutside`,e),onInteractOutside:n[3]||=e=>i(`interactOutside`,e),onAutoFocusOnClose:n[4]||=e=>i(`autoFocusOnClose`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(ko,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zo,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3})]),_:3})]),(0,t.createVNode)(Po,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Mo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Pl,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Ao)]),_:3})]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Il={class:`p-lg`},Ll=(0,t.defineComponent)({__name:`DateFieldPopover`,setup(e){let{maxDate:n,minDate:r,weekStartsOn:i,isDateDisabled:a,isDateUnavailable:o,isDisabled:s,allowDeselect:c,classConfig:l,customClassConfig:u,dontCloseOnSelect:d,hideDatePicker:f,label:p,locale:m,modelValue:h,placeholderValue:g,showTwoMonths:_}=Us(),v=(0,t.ref)(!1);return(0,t.watch)(h,()=>{d.value||!v.value||(v.value=!1)}),(e,d)=>(0,t.unref)(f)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(Fl,{key:0,"is-open":v.value,"onUpdate:isOpen":d[1]||=e=>v.value=e,"is-popover-arrow-hidden":!0,"popover-align":`end`},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(s),"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},icon:`calendarIcon`,label:`Open`,variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`},null,8,[`is-disabled`])]),content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Il,[(0,t.createVNode)(Ml,{modelValue:(0,t.unref)(h),"onUpdate:modelValue":d[0]||=e=>(0,t.isRef)(h)?h.value=e:null,"focus-on-mount":!0,"allow-deselect":(0,t.unref)(c),"is-date-disabled":(0,t.unref)(a),"is-date-unavailable":(0,t.unref)(o),"placeholder-value":(0,t.unref)(g),"max-date":(0,t.unref)(n),locale:(0,t.unref)(m),"week-starts-on":(0,t.unref)(i),"min-date":(0,t.unref)(r),"show-two-months":(0,t.unref)(_),label:(0,t.unref)(p)??``,"class-config":{...(0,t.unref)(u).datePicker,...(0,t.unref)(l)?.datePicker}},null,8,[`modelValue`,`allow-deselect`,`is-date-disabled`,`is-date-unavailable`,`placeholder-value`,`max-date`,`locale`,`week-starts-on`,`min-date`,`show-two-months`,`label`,`class-config`])])]),_:1},8,[`is-open`]))}}),Rl=[`data-icon-left`,`data-invalid`,`data-disabled`],zl=(0,t.defineComponent)({__name:`DateFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},dontCloseOnSelect:{type:Boolean,default:!1},hideDatePicker:{type:Boolean,default:!1},iconLeft:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},maxDate:{default:null},minDate:{default:null},weekStartsOn:{default:0},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`placeholderValue`),l=(0,t.computed)(()=>i.locale??navigator.language);function u(){let e=s.value;if(e!==null){if(i.minDate!==null&&o.Temporal.PlainDate.compare(e,i.minDate)<0){s.value=i.minDate;return}i.maxDate!==null&&o.Temporal.PlainDate.compare(e,i.maxDate)>0&&(s.value=i.maxDate)}}let d=(0,t.computed)({get:()=>s.value===null?null:X(s.value),set:e=>{if(e==null){s.value=null;return}s.value=Y(e)}}),f=(0,t.computed)({get:()=>c.value??s.value??o.Temporal.Now.plainDateISO(),set:e=>{c.value=e}}),{theme:p}=W(),m=(0,t.ref)(!1),h=(0,t.computed)(()=>Vs({variant:i.variant??void 0})),g=(0,t.computed)(()=>N(`dateField`,p.value,{variant:i.variant}));function _(e){m.value=!0,a(`focus`,e)}function v(e){m.value=!1,setTimeout(()=>{m.value||(u(),a(`blur`,e))})}return Hs({...G(i),customClassConfig:g,modelValue:s,placeholderValue:f,style:h,onBlur:v,onFocus:_}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DateFieldRoot),{id:i.id??void 0,modelValue:d.value,"onUpdate:modelValue":r[0]||=e=>d.value=e,locale:l.value,"min-value":i.minDate===null?void 0:(0,t.unref)(X)(i.minDate),"max-value":i.maxDate===null?void 0:(0,t.unref)(X)(i.maxDate),"is-date-unavailable":e=>i.isDateUnavailable((0,t.unref)(Y)(e)),"is-invalid":i.errorMessage!==null,required:i.isRequired},{default:(0,t.withCtx)(({segments:n})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(h.value.root({class:(0,t.unref)(P)(g.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`,{segments:n})],10,Rl)]),_:3},8,[`id`,`modelValue`,`locale`,`min-value`,`max-value`,`is-date-unavailable`,`is-invalid`,`required`])]),_:3},8,[`is-disabled`]))}}),Bl=(0,t.defineComponent)({__name:`DateField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},dontCloseOnSelect:{type:Boolean},hideDatePicker:{type:Boolean},iconLeft:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},maxDate:{},minDate:{},weekStartsOn:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`placeholderValue`),s=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(s)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(zl,(0,t.mergeProps)(r,{id:(0,t.unref)(s),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"placeholder-value":o.value,"onUpdate:placeholderValue":n[1]||=e=>o.value=e,onBlur:n[2]||=e=>i(`blur`,e),onFocus:n[3]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(Ws),(0,t.createVNode)(Gs,{segments:n},null,8,[`segments`]),(0,t.createVNode)(qs),(0,t.createVNode)(Ll)]),_:3},16,[`id`,`modelValue`,`placeholder-value`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Vl=H({extend:kl,slots:{innerDate:new U().withSize(`size-full`).withFlex(`flex items-center justify-center`).withBorderRadius(`rounded-full`).withBackgroundColor(`group-data-highlighted-start/date:bg-brand-solid group-data-highlighted-end/date:bg-brand-solid group-data-selection-start/date:bg-brand-solid group-data-selection-end/date:bg-brand-solid`).withBackgroundColor(`not-group-data-selected/date:group-hover/date:bg-brand-primary`).build(),date:new U().withBase(`group/date relative select-none isolate data-outside-view:invisible`).withFlex(`flex items-center justify-center`).withFontSize(`text-sm`).withColor(`text-secondary not-data-highlighted:not-data-highlighted-start:not-data-selected:not-data-selection-start:not-data-selection-end:data-outside-view:text-disabled`).withColor(`data-disabled:text-disabled`).withColor(`data-unavailable:text-disabled`).withBackgroundColor(`data-highlighted:bg-brand-secondary data-selected:bg-brand-secondary data-highlighted-start:bg-brand-secondary data-highlighted-end:bg-brand-secondary data-selection-start:bg-brand-secondary data-selection-end:bg-brand-secondary`).withBackgroundColor(`dark:data-highlighted:bg-brand-950 dark:data-selected:bg-brand-950 dark:data-highlighted-start:bg-brand-950 dark:data-highlighted-end:bg-brand-950 dark:data-selection-start:bg-brand-950 dark:data-selection-end:bg-brand-950`).withColor(`data-highlighted:text-brand-primary data-selected:text-brand-primary data-highlighted-start:text-brand-primary data-highlighted-end:text-brand-primary data-selection-start:text-brand-primary data-selection-end:text-brand-primary`).withColor(`data-highlighted-start:text-primary-on-brand data-highlighted-end:text-primary-on-brand data-selection-start:text-primary-on-brand data-selection-end:text-primary-on-brand`).withBorderRadius(`data-first-day-of-week:rounded-l-full data-first-day-of-month:rounded-l-full data-last-day-of-week:rounded-r-full data-last-day-of-month:rounded-r-full data-selection-start:rounded-l-full data-selection-end:rounded-r-full data-highlighted-start:rounded-l-full data-highlighted-end:rounded-r-full data-highlighted-end:not-data-highlighted-start:not-data-first-day-of-week:not-data-first-day-of-month:rounded-l-none`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withSize(`size-10`).withOutline(`outline-brand-500 data-selected:outline-offset-2`).build(),todayIndicator:new U().withBase(`absolute bottom-1 left-1/2 -translate-x-1/2`).withSize(`size-1`).withBorderRadius(`rounded-full`).withBackgroundColor(`bg-brand-solid group-data-selection-start/date:bg-white group-data-selection-end/date:bg-white group-data-highlighted-start/date:bg-white group-data-highlighted-end/date:bg-white`).build()},variants:{variant:{}}}),[Hl,Ul]=R(`dateRangePickerContext`),Wl=(0,t.defineComponent)({__name:`DateRangePickerDate`,setup(e){let{locale:r}=J(),{classConfig:i,customClassConfig:a,style:o}=Ul(),{date:s,month:c}=Ys(),l=(0,t.computed)(()=>{let e=new Intl.Locale(r.value);return`weekInfo`in e?e.weekInfo.firstDay:1});return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarCellTrigger),{day:(0,t.unref)(s),month:(0,t.unref)(c),class:(0,t.normalizeClass)((0,t.unref)(o).date({class:(0,t.unref)(P)((0,t.unref)(a).date,(0,t.unref)(i)?.date)})),"data-first-day-of-week":(0,t.unref)(s).toDate((0,t.unref)(fc)()).getDay()===l.value%7||void 0,"data-last-day-of-week":(0,t.unref)(s).toDate((0,t.unref)(fc)()).getDay()===(l.value+6)%7||void 0,"data-first-day-of-month":(0,t.unref)(s).day===1||void 0,"data-last-day-of-month":(0,t.unref)(s).day===(0,t.unref)(ol)((0,t.unref)(s).month,(0,t.unref)(s).year)||void 0},{default:(0,t.withCtx)(({today:n})=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).innerDate({class:(0,t.unref)(P)((0,t.unref)(a).innerDate,(0,t.unref)(i)?.innerDate)}))},[(0,t.renderSlot)(e.$slots,`default`,{day:(0,t.unref)(s).day},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(s).day),1)])],2),n?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).todayIndicator({class:(0,t.unref)(P)((0,t.unref)(a).todayIndicator,(0,t.unref)(i)?.todayIndicator)}))},null,2)):(0,t.createCommentVNode)(``,!0)]),_:3},8,[`day`,`month`,`class`,`data-first-day-of-week`,`data-last-day-of-week`,`data-first-day-of-month`,`data-last-day-of-month`]))}}),Gl=(0,t.defineComponent)({__name:`DateRangePickerGrid`,props:{grid:{},weekDays:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=Ul(),{locale:s}=J(),{locale:c}=(0,n.injectRangeCalendarRootContext)();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).gridContainer({class:(0,t.unref)(P)((0,t.unref)(a).gridContainer,(0,t.unref)(i)?.gridContainer)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(l,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:l.value.toString()},[u===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).monthSeparator({class:(0,t.unref)(P)((0,t.unref)(a).monthSeparator,(0,t.unref)(i)?.monthSeparator)}))},null,2)),(0,t.createVNode)((0,t.unref)(n.RangeCalendarGrid),{class:(0,t.normalizeClass)((0,t.unref)(o).grid({class:(0,t.unref)(P)((0,t.unref)(a).grid,(0,t.unref)(i)?.grid)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridHead),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridRow),{class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.weekDays,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarHeadCell),{key:e,class:(0,t.normalizeClass)((0,t.unref)(o).weekDayLabel({class:(0,t.unref)(P)((0,t.unref)(a).weekDayLabel,(0,t.unref)(i)?.weekDayLabel)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(cl)((0,t.unref)(c),(0,t.unref)(s))[r]),1)]),_:2},1032,[`class`]))),128))]),_:1},8,[`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(n.RangeCalendarGridBody),{class:(0,t.normalizeClass)((0,t.unref)(o).gridBody({class:(0,t.unref)(P)((0,t.unref)(a).gridBody,(0,t.unref)(i)?.gridBody)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.rows,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarGridRow),{key:r.toString(),class:(0,t.normalizeClass)((0,t.unref)(o).gridRow({class:(0,t.unref)(P)((0,t.unref)(a).gridRow,(0,t.unref)(i)?.gridRow)}))},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r,r=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarCell),{key:r.toString(),date:r},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ll,{date:r,month:l.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`date`,{date:(0,t.unref)(il)(r)},()=>[(0,t.createVNode)(Qs)])]),_:2},1032,[`date`,`month`])]),_:2},1032,[`date`]))),128))]),_:2},1032,[`class`]))),128))]),_:2},1032,[`class`])]),_:2},1032,[`class`])],64))),128))],2))}}),Kl={key:1},ql={key:0,class:`text-center`},Jl={class:`text-sm font-semibold whitespace-nowrap text-primary`},Yl={key:1,class:`flex items-center justify-center gap-xxs`},Xl={key:3},Zl=(0,t.defineComponent)({__name:`DateRangePickerHeader`,props:{grid:{}},setup(e){let r=e,{locale:i}=J(),{classConfig:a,customClassConfig:o,placeholderValue:s,showTwoMonths:c,style:l}=Ul(),u=(0,t.computed)({get:()=>s.value.month,set:async e=>{await(0,t.nextTick)(),s.value=s.value.with({month:e})}}),d=(0,t.computed)({get:()=>s.value.year,set:e=>{s.value=s.value.with({year:e})}});return(s,f)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(l).headerContainer({class:(0,t.unref)(P)((0,t.unref)(o).headerContainer,(0,t.unref)(a)?.headerContainer)}),`flex`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.grid,(r,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarHeader),{key:s,class:(0,t.normalizeClass)((0,t.unref)(l).header({class:(0,t.unref)(P)((0,t.unref)(o).header,(0,t.unref)(a)?.header)}))},{default:(0,t.withCtx)(()=>[s===0?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarPrev),{key:0,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:-translate-x-px group-enabled/button:group-active/button:-translate-x-0.5 duration-200`},icon:`chevronLeft`,label:`Previous month`,variant:`tertiary`,size:`sm`,class:`justify-self-start`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Kl)),(0,t.createVNode)((0,t.unref)(n.RangeCalendarHeading),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(c)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ql,[(0,t.createElementVNode)(`span`,Jl,(0,t.toDisplayString)((0,t.unref)(al)(r.value.month-1,(0,t.unref)(i),`long`))+` `+(0,t.toDisplayString)(r.value.year),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yl,[(0,t.createVNode)(Yo,{modelValue:u.value,"onUpdate:modelValue":f[0]||=e=>u.value=e,"icon-right":null,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,baseSingle:`font-semibold px-sm`,content:`gap-xs grid [grid-template-columns:auto] sm:[grid-template-columns:repeat(auto-fit,minmax(6rem,1fr))]`,popover:{content:`min-w-60`}},filter:{isEnabled:!0},"display-fn":e=>(0,t.unref)(al)(e-1,(0,t.unref)(i),`long`),"popover-align":`start`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(12,e=>(0,t.createVNode)(ea,{key:e,value:e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(al)(e-1,(0,t.unref)(i),`long`)),1)]),_:2},1032,[`value`])),64))]),_:1},8,[`modelValue`,`display-fn`]),(0,t.createVNode)(Sl,{modelValue:d.value,"onUpdate:modelValue":f[1]||=e=>d.value=e,"class-config":{root:`h-8 shadow-none border-none outline-none hover:bg-primary-hover focus-within:bg-primary-hover`,input:`font-semibold px-sm`},"format-options":{useGrouping:!1},"hide-controls":!0,class:`w-12 shrink-0`},null,8,[`modelValue`])]))]),_:2},1024),s===e.grid.length-1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.RangeCalendarNext),{key:2,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"class-config":{icon:`group-enabled/button:group-hover/button:translate-x-px group-enabled/button:group-active/button:translate-x-0.5 duration-200`},icon:`chevronRight`,label:`Next month`,variant:`tertiary`,size:`sm`,class:`justify-self-end`})]),_:1})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Xl))]),_:2},1032,[`class`]))),128))],2))}}),Ql=(0,t.defineComponent)({__name:`DateRangePickerRoot`,props:(0,t.mergeModels)({allowNonContinuousSelection:{type:Boolean,default:!1},variant:{default:null},weekStartsOn:{default:0},focusOnMount:{type:Boolean,default:!1},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1},maxDate:{default:null},minDate:{default:null},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useModel)(e,`placeholderValue`),s=(0,t.computed)({get:()=>({end:i.value.until===null?void 0:X(i.value.until),start:i.value.from===null?void 0:X(i.value.from)}),set:e=>{e.start===void 0||e.end===null?i.value.from=null:i.value.from=Y(e.start),e.end===void 0||e.end===null?i.value.until=null:i.value.until=Y(e.end)}}),c=(0,t.computed)({get:()=>X(a.value??i.value.from??o.Temporal.Now.plainDateISO()),set:e=>{a.value=Y(e)}}),{theme:l}=W(),u=(0,t.computed)(()=>r.locale??navigator.language),d=(0,t.computed)(()=>Vl({variant:r.variant??void 0})),f=(0,t.computed)(()=>N(`dateRangePicker`,l.value,{variant:r.variant}));return Hl({...G(r),customClassConfig:f,modelValue:i,placeholderValue:(0,t.computed)({get:()=>Y(c.value),set:e=>{c.value=X(e)}}),style:d}),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RangeCalendarRoot),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,placeholder:c.value,"onUpdate:placeholder":i[1]||=e=>c.value=e,"week-starts-on":r.weekStartsOn,"prevent-deselect":!r.allowDeselect,"fixed-weeks":!0,"number-of-months":r.showTwoMonths?2:1,"allow-non-contiguous-ranges":r.allowNonContinuousSelection,"is-date-unavailable":e=>r.isDateUnavailable((0,t.unref)(Y)(e)),"is-date-disabled":e=>r.isDateDisabled((0,t.unref)(Y)(e)),"calendar-label":r.label,locale:u.value,"initial-focus":r.focusOnMount,"min-value":r.minDate===null?void 0:(0,t.unref)(X)(r.minDate),"max-value":r.maxDate===null?void 0:(0,t.unref)(X)(r.maxDate),"weekday-format":`short`},{default:(0,t.withCtx)(({weekDays:n,grid:r})=>[(0,t.renderSlot)(e.$slots,`default`,{weekDays:n,grid:r})]),_:3},8,[`modelValue`,`placeholder`,`week-starts-on`,`prevent-deselect`,`number-of-months`,`allow-non-contiguous-ranges`,`is-date-unavailable`,`is-date-disabled`,`calendar-label`,`locale`,`initial-focus`,`min-value`,`max-value`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),$l=(0,t.defineComponent)({__name:`DateRangePicker`,props:(0,t.mergeModels)({allowNonContinuousSelection:{type:Boolean},variant:{},weekStartsOn:{},focusOnMount:{type:Boolean},label:{},testId:{},isDisabled:{type:Boolean},maxDate:{},minDate:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:[`update:modelValue`,`update:placeholderValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=(0,t.useModel)(e,`placeholderValue`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(Ql,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":a[0]||=e=>r.value=e,"placeholder-value":i.value,"onUpdate:placeholderValue":a[1]||=e=>i.value=e}),{default:(0,t.withCtx)(({grid:n,weekDays:r})=>[(0,t.createVNode)(Zl,{grid:n},null,8,[`grid`]),(0,t.createVNode)(Gl,{"week-days":r,grid:n},{date:(0,t.withCtx)(({date:n})=>[(0,t.renderSlot)(e.$slots,`date`,{date:n},()=>[(0,t.createVNode)(Wl)])]),_:3},8,[`week-days`,`grid`])]),_:3},16,[`modelValue`,`placeholder-value`]))}}),eu=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/date-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/date-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/date-field:pl-2`).withBackgroundColor(`group-data-disabled/date-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/date-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build(),separator:new U().withColor(`text-primary group-data-disabled/date-field:text-disabled`).withSpacing(`px-sm`).build()},variants:{variant:{}}}),[tu,nu]=R(`dateRangeFieldContext`),ru=(0,t.defineComponent)({__name:`DateRangeFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=nu();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),iu=(0,t.defineComponent)({__name:`DateRangeFieldInput`,props:{segments:{}},setup(e){let r=e,{testId:i,classConfig:a,customClassConfig:o,style:s,onBlur:c,onFocus:l}=nu();return(e,u)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(s).inputs({class:(0,t.unref)(P)((0,t.unref)(o).inputs,(0,t.unref)(a)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments.start,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`start`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`start`,onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128)),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(s).separator({class:(0,t.unref)(P)((0,t.unref)(o).separator,(0,t.unref)(a)?.separator)}))},` - `,2),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments.end,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`end`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DateRangeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(s).input({class:(0,t.unref)(P)((0,t.unref)(o).input,(0,t.unref)(a)?.input)})),type:`end`,onFocus:(0,t.unref)(l),onBlur:(0,t.unref)(c)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2)]),_:1},8,[`test-id`]))}}),au={class:`sr-only`},ou=(0,t.defineComponent)({__name:`DateRangeFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=nu(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,au,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),su={class:`p-lg`},cu=(0,t.defineComponent)({__name:`DateRangefieldPopover`,setup(e){let{maxDate:n,minDate:r,weekStartsOn:i,isDateDisabled:a,isDateUnavailable:o,isDisabled:s,allowDeselect:c,allowNonContinuousSelection:l,classConfig:u,customClassConfig:d,dontCloseOnSelect:f,hideDatePicker:p,label:m,locale:h,modelValue:g,placeholderValue:_,showTwoMonths:v}=nu(),y=(0,t.ref)(!1);return(0,t.watch)(()=>[g.value.from?.toString(),g.value.until?.toString()],([e,t])=>{f.value||!y.value||t!==void 0&&(y.value=!1)}),(e,f)=>(0,t.unref)(p)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(Fl,{key:0,"is-open":y.value,"onUpdate:isOpen":f[1]||=e=>y.value=e,"is-popover-arrow-hidden":!0,"popover-align":`end`},{trigger:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{"is-disabled":(0,t.unref)(s),"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},icon:`calendarIcon`,label:`Open`,variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`},null,8,[`is-disabled`])]),content:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,su,[(0,t.createVNode)($l,{modelValue:(0,t.unref)(g),"onUpdate:modelValue":f[0]||=e=>(0,t.isRef)(g)?g.value=e:null,"focus-on-mount":!0,"allow-deselect":(0,t.unref)(c),"placeholder-value":(0,t.unref)(_),"is-date-disabled":(0,t.unref)(a),"week-starts-on":(0,t.unref)(i),locale:(0,t.unref)(h),"allow-non-continuous-selection":(0,t.unref)(l),"is-date-unavailable":(0,t.unref)(o),"max-date":(0,t.unref)(n),"min-date":(0,t.unref)(r),"show-two-months":(0,t.unref)(v),label:(0,t.unref)(m)??``,"class-config":{...(0,t.unref)(d).datePicker,...(0,t.unref)(u)?.datePicker}},null,8,[`modelValue`,`allow-deselect`,`placeholder-value`,`is-date-disabled`,`week-starts-on`,`locale`,`allow-non-continuous-selection`,`is-date-unavailable`,`max-date`,`min-date`,`show-two-months`,`label`,`class-config`])])]),_:1},8,[`is-open`]))}}),lu=[`data-icon-left`,`data-invalid`,`data-disabled`],uu=(0,t.defineComponent)({__name:`DateRangeFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},allowNonContinuousSelection:{type:Boolean},autocomplete:{default:`off`},dontCloseOnSelect:{type:Boolean,default:!1},hideDatePicker:{type:Boolean,default:!1},iconLeft:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},maxDate:{default:null},minDate:{default:null},weekStartsOn:{default:0},isDateDisabled:{type:Function,default:()=>!1},isDateUnavailable:{type:Function,default:()=>!1},allowDeselect:{type:Boolean,default:!1},locale:{},showTwoMonths:{type:Boolean,default:!1},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.useModel)(e,`placeholderValue`),l=(0,t.computed)({get:()=>({end:s.value.until===null?void 0:X(s.value.until),start:s.value.from===null?void 0:X(s.value.from)}),set:e=>{e.start===void 0||e.end===null?s.value.from=null:s.value.from=Y(e.start),e.end===void 0||e.end===null?s.value.until=null:s.value.until=Y(e.end)}}),u=(0,t.computed)({get:()=>c.value??s.value.from??o.Temporal.Now.plainDateISO(),set:e=>{c.value=e}}),d=(0,t.computed)(()=>i.locale??navigator.language),{theme:f}=W(),p=(0,t.ref)(!1),m=(0,t.computed)(()=>eu({variant:i.variant??void 0})),h=(0,t.computed)(()=>N(`dateRangeField`,f.value,{variant:i.variant}));function g(e){p.value=!0,a(`focus`,e)}function _(e){p.value=!1,setTimeout(()=>{p.value||a(`blur`,e)})}return tu({...G(i),customClassConfig:h,modelValue:s,placeholderValue:u,style:m,onBlur:_,onFocus:g}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DateRangeFieldRoot),{id:i.id??void 0,modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,"min-value":i.minDate===null?void 0:(0,t.unref)(X)(i.minDate),"max-value":i.maxDate===null?void 0:(0,t.unref)(X)(i.maxDate),"is-date-unavailable":e=>i.isDateUnavailable((0,t.unref)(Y)(e)),locale:d.value,"week-starts-on":i.weekStartsOn,"is-invalid":i.errorMessage!==null,required:i.isRequired},{default:(0,t.withCtx)(({segments:n})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(m.value.root({class:(0,t.unref)(P)(h.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(e.$slots,`default`,{segments:n})],10,lu)]),_:3},8,[`id`,`modelValue`,`min-value`,`max-value`,`is-date-unavailable`,`locale`,`week-starts-on`,`is-invalid`,`required`])]),_:3},8,[`is-disabled`]))}}),du=(0,t.defineComponent)({__name:`DateRangeField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},allowNonContinuousSelection:{type:Boolean},autocomplete:{},dontCloseOnSelect:{type:Boolean},hideDatePicker:{type:Boolean},iconLeft:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},maxDate:{},minDate:{},weekStartsOn:{},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},allowDeselect:{type:Boolean},locale:{},showTwoMonths:{type:Boolean},classConfig:{}},{modelValue:{required:!0},modelModifiers:{},placeholderValue:{required:!1},placeholderValueModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`,`update:placeholderValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.useModel)(e,`placeholderValue`),s=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(s)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(uu,(0,t.mergeProps)(r,{id:(0,t.unref)(s),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,"placeholder-value":o.value,"onUpdate:placeholderValue":n[1]||=e=>o.value=e,onBlur:n[2]||=e=>i(`blur`,e),onFocus:n[3]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(ru),(0,t.createVNode)(iu,{segments:n},null,8,[`segments`]),(0,t.createVNode)(ou),(0,t.createVNode)(cu)]),_:3},16,[`id`,`modelValue`,`placeholder-value`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),fu=(0,t.ref)([]);function pu(){return{dialogs:fu}}function mu(e){fu.value=fu.value.filter(t=>t.id!==e)}function hu(e){let n=(0,t.useId)(),r=new Map;async function i(e){let i=r.get(n);i&&(clearTimeout(i),r.delete(n));let a=await s(e);a!==null&&(fu.value.push(a.value),await(0,t.nextTick)(),a.value.isOpen=!0)}function a(){let e=fu.value.find(e=>e.id===n)??null;if(e===null)return;e.isOpen=!1;let t=setTimeout(()=>{r.delete(n)},300);r.set(n,t)}let o=(0,t.computed)(()=>{let e=fu.value.find(e=>e.id===n)??null;return e===null?!1:e.isOpen});async function s(r){let i=fu.value.find(e=>e.id===n)??null;return i!==null&&o.value?(console.warn(`Dialog with ID "${n}" is already open`),null):(i!==null&&mu(i.id),await(0,t.nextTick)(),(0,t.ref)({id:n,isOpen:!1,component:(0,t.markRaw)((0,t.computed)(()=>(0,t.h)(e,{...r,onClose:a,onClose_:a})))}))}let c=(0,t.computed)(()=>{let e=fu.value.some(e=>e.id===n&&e.isOpen);return{id:n,"aria-expanded":e,"aria-haspopup":`dialog`,"data-state":e}});return(0,t.onBeforeUnmount)(()=>{a()}),{isOpen:o,close:a,open:i,triggerProps:c}}var gu=H({slots:{content:new U().withClasses(`fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-40 outline-none overflow-hidden`).withZIndex(`z-40`).withBorderRadius(`rounded-2xl`).withBorder(`dark:border border-solid border-tertiary`).withBackgroundColor(`bg-primary`).withShadow(`shadow-lg`).build(),overlay:new U().withClasses(`fixed inset-0 bg-black/30 backdrop-blur-sm`).withZIndex(`z-39`).build()},variants:{variant:{}}}),[_u,vu]=R(`dialogContext`),yu=(0,t.defineComponent)({inheritAttrs:!1,__name:`DialogContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,hideOverlay:c,preventClickOutside:l,preventEsc:u,style:d}=vu(),f=(0,t.useAttrs)();function p(e){u.value&&e.preventDefault()}function m(e){l.value&&e.preventDefault(),e.target.attributes.getNamedItem(`data-dialog-overlay`)===null&&e.preventDefault()}return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DialogContent),(0,t.mergeProps)({"as-child":!0,"force-mount":!0,class:(0,t.unref)(d).content({class:(0,t.unref)(P)((0,t.unref)(s).content,(0,t.unref)(o)?.content)}),"trap-focus":!(0,t.unref)(c)},(0,t.unref)(f),{onEscapeKeyDown:p,onInteractOutside:m}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`class`,`trap-focus`])]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),bu=(0,t.defineComponent)({__name:`DialogContentTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,transform:`translateY(5rem)`},animate:{opacity:1,transform:`translateY(0rem)`,transition:{duration:.6,bounce:0,type:`spring`}},exit:{opacity:0,transform:`translateY(5rem)`,transition:{duration:.3,bounce:0,type:`spring`}}},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),xu=(0,t.defineComponent)({__name:`DialogOverlay`,setup(e){let{isOpen:i,classConfig:a,customClassConfig:o,hideOverlay:s,style:c}=vu();return(e,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(i)&&!(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogOverlay),{key:0,"as-child":!0,"force-mount":!0,class:(0,t.normalizeClass)((0,t.unref)(c).overlay({class:(0,t.unref)(P)((0,t.unref)(o).overlay,(0,t.unref)(a)?.overlay)})),"data-dialog-overlay":``},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Su=(0,t.defineComponent)({__name:`DialogOverlayTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}))}}),Cu=(0,t.defineComponent)({__name:`DialogPortal`,setup(e){let{teleportTargetId:r}=vu(),i=(0,t.computed)(()=>r.value===null?null:`#${r.value}`);return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogPortal),{disabled:(0,t.unref)(r)===null,"force-mount":!0,to:i.value},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`disabled`,`to`]))}}),wu=(0,t.defineComponent)({__name:`DialogRoot`,props:(0,t.mergeModels)({teleportTargetId:{default:null},hideOverlay:{type:Boolean,default:!1},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},variant:{default:null},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`close`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>gu({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`dialog`,s.value,{variant:i.variant}));return(0,t.watch)(o,e=>{e||a(`close`)}),_u({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DialogRoot),{open:o.value,"onUpdate:open":r[0]||=e=>o.value=e,modal:!i.hideOverlay},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`,`modal`])]),_:3},8,[`test-id`]))}}),Tu=(0,t.defineComponent)({__name:`Dialog`,props:(0,t.mergeModels)({teleportTargetId:{default:null},hideOverlay:{type:Boolean,default:!1},preventClickOutside:{type:Boolean,default:!1},preventEsc:{type:Boolean,default:!1},variant:{},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`close`,`close_`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`),o=(0,t.useAttrs)();function s(){i(`close_`),i(`close`)}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(wu,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onClose:s}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Cu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Su)]),_:1}),(0,t.createVNode)(yu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bu,(0,t.normalizeProps)((0,t.guardReactiveProps)((0,t.unref)(o))),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16)]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Eu=(0,t.defineComponent)({__name:`DialogContainer`,setup(e){let{dialogs:n}=pu();return(e,r)=>((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.component),{key:e.id,"is-open":e.isOpen},null,8,[`is-open`]))),128))}}),Du=(0,t.defineComponent)({__name:`DialogCloseButton`,setup(e){let{classConfig:r,customClassConfig:a}=vu(),{t:o}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogClose),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(q,{"class-config":{...(0,t.unref)(a)?.closeButton,...(0,t.unref)(r)?.closeButton},label:(0,t.unref)(o)(`shared.close`),icon:`close`,variant:`tertiary`,size:`sm`},null,8,[`class-config`,`label`])])]),_:3}))}}),Ou=(0,t.defineComponent)({__name:`DialogDescription`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogDescription),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),ku=(0,t.defineComponent)({__name:`DialogTitle`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DialogTitle),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Au=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`data-[content-width=anchor-width]:w-(--reka-dropdown-menu-trigger-width) data-[content-width=available-width]:w-(--reka-dropdown-menu-content-available-width)`).withZIndex(`z-40`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withBase(`relative`).withSize(`size-full min-w-52`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).build(),group:new U().withPadding(`p-xs`).build(),item:new U().withBase(`group/dropdown-menu-item outline-none`).withSize(`w-full`).withGrid(`grid grid-cols-[auto_1fr_auto] items-center`).withCursor(`cursor-pointer data-disabled:cursor-not-allowed`).withBorderRadius(`rounded-sm`).withPadding(`p-md`).withBackgroundColor(`not-data-disabled:data-highlighted:bg-secondary-hover not-data-disabled:data-destructive:data-highlighted:bg-error-primary`).withTransition(`duration-200`).build(),itemIcon:new U().withSize(`size-4`).withColor(`text-secondary group-data-disabled/dropdown-menu-item:text-disabled group-data-destructive/dropdown-menu-item:text-error-primary`).withSpacing(`mr-md`).withTransition(`duration-200`).build(),itemLabel:new U().withColor(`text-secondary font-medium group-data-disabled/dropdown-menu-item:text-disabled group-data-destructive/dropdown-menu-item:text-error-primary`).withFontSize(`text-sm`).withTransition(`duration-200`).build(),label:new U().withColor(`text-tertiary`).withFontSize(`text-sm`).withFontWeight(`font-medium`).build(),separator:new U().withHeight(`h-px`).withBackgroundColor(`bg-quaternary`).build(),subMenuArrowIcon:new U().withSize(`size-4`).withColor(`text-quaternary`).build()},variants:{variant:{}}}),[ju,Mu]=R(`dropdownMenuContext`),Nu=(0,t.defineComponent)({__name:`DropdownMenuArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=Mu();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-8 overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),Pu=(0,t.defineComponent)({__name:`DropdownMenuContent`,setup(e){let{isOpen:i,classConfig:a,customClassConfig:o,popoverAlign:s,popoverAlignOffset:c,popoverAnchorReferenceElement:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h,onCloseAutoFocus:g,onEscapeKeyDown:_}=Mu();return(e,v)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(i)?((0,t.openBlock)(),(0,t.createBlock)(jo,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(s),reference:(0,t.unref)(l)??void 0,"align-offset":(0,t.unref)(c),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(o).content,(0,t.unref)(a)?.content)})),"position-strategy":`absolute`,sticky:`always`,onCloseAutoFocus:(0,t.unref)(g),onEscapeKeyDown:(0,t.unref)(_)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`reference`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`,`onCloseAutoFocus`,`onEscapeKeyDown`])]),_:3})):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),Fu=4,Iu=.9,Lu=(0,t.defineComponent)({__name:`DropdownMenuContentTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]),a=(0,t.ref)(null);function o(e){switch(e){case`top`:return{transform:`translateY(${Fu}px) scale(${Iu})`};case`bottom`:return{transform:`translateY(-${Fu}px) scale(${Iu})`};case`left`:return{transform:`translateX(${Fu}px) scale(${Iu})`};case`right`:return{transform:`translateX(-${Fu}px) scale(${Iu})`}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`motionRef`,ref:a,initial:{opacity:0,...o(i.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`},exit:{opacity:0,...o(i.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-dropdown-menu-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Ru=(0,t.defineComponent)({__name:`DropdownMenuPortal`,setup(e){let r=J();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuPortal),{to:(0,t.unref)(r).teleportTargetSelector},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`]))}}),zu=(0,t.defineComponent)({__name:`DropdownMenuRoot`,props:(0,t.mergeModels)({variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`bottom`},popoverSideOffset:{default:10},popoverWidth:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`closeAutoFocus`,`escapeKeyDown`],[`update:isOpen`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`isOpen`),{theme:s}=W(),c=(0,t.computed)(()=>Au({variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`dropdownMenu`,s.value,{variant:i.variant}));function u(e){a(`closeAutoFocus`,e)}function d(e){a(`escapeKeyDown`,e)}return ju({...G(i),isOpen:(0,t.computed)(()=>o.value),customClassConfig:l,style:c,onCloseAutoFocus:u,onEscapeKeyDown:d}),(r,i)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":e.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuRoot),{open:o.value,"onUpdate:open":i[0]||=e=>o.value=e},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`open`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Bu=(0,t.defineComponent)({__name:`DropdownMenuTrigger`,setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuTrigger),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),Vu=(0,t.defineComponent)({__name:`DropdownMenu`,props:(0,t.mergeModels)({variant:{},testId:{},isDisabled:{type:Boolean},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:(0,t.mergeModels)([`closeAutoFocus`,`escapeKeyDown`],[`update:isOpen`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`isOpen`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(zu,(0,t.mergeProps)(r,{"is-open":a.value,"onUpdate:isOpen":n[0]||=e=>a.value=e,onCloseAutoFocus:n[1]||=e=>i(`closeAutoFocus`,e),onEscapeKeyDown:n[2]||=e=>i(`escapeKeyDown`,e)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Bu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3}),(0,t.createVNode)(Ru,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Pu,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`),(0,t.createVNode)(Nu)]),_:3})]),_:3})]),_:3})]),_:3},16,[`is-open`]))}}),Hu=(0,t.defineComponent)({__name:`DropdownMenuGroup`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Mu(),o=(0,t.useAttrs)();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuGroup),{class:(0,t.normalizeClass)((0,t.unref)(a).group({class:(0,t.unref)(P)((0,t.unref)(i).group,(0,t.unref)(r)?.group,(0,t.unref)(o).class)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),[Uu,Wu]=R(`dropdownMenuItemContext`),Gu={key:1},Ku=(0,t.defineComponent)({__name:`DropdownMenuItemIcon`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Mu(),{icon:a}=Wu(),o=(0,t.useAttrs)();return(e,s)=>(0,t.unref)(a)===null?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Gu)):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,class:(0,t.normalizeClass)((0,t.unref)(i).itemIcon({class:(0,t.unref)(P)((0,t.unref)(r).itemIcon,(0,t.unref)(n)?.itemIcon,(0,t.unref)(o).class)})),icon:(0,t.unref)(a)},null,8,[`class`,`icon`]))}}),qu=(0,t.defineComponent)({__name:`DropdownMenuItemLabel`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=Mu(),{label:a}=Wu(),o=(0,t.useAttrs)();return(e,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(i).itemLabel({class:(0,t.unref)(P)((0,t.unref)(r).itemLabel,(0,t.unref)(n)?.itemLabel,(0,t.unref)(o).class)}))},(0,t.toDisplayString)((0,t.unref)(a)),3))}}),Ju=(0,t.defineComponent)({__name:`DropdownMenuItem`,props:{isDestructive:{type:Boolean,default:!1},icon:{default:null},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:r}){let i=e,a=r,o=(0,t.useAttrs)(),{classConfig:s,customClassConfig:c,style:l}=Mu();return Uu(G(i)),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuItem),{"data-destructive":i.isDestructive||void 0,class:(0,t.normalizeClass)((0,t.unref)(l).item({class:(0,t.unref)(P)((0,t.unref)(c).item,(0,t.unref)(s)?.item,(0,t.unref)(o).class)})),onSelect:r[0]||=e=>a(`select`,e)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ku),(0,t.createVNode)(qu),(0,t.renderSlot)(e.$slots,`right`)])]),_:3},8,[`data-destructive`,`class`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Yu=(0,t.defineComponent)({__name:`DropdownMenuSeparator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=Mu();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuSeparator),{class:(0,t.normalizeClass)((0,t.unref)(a).separator({class:(0,t.unref)(P)((0,t.unref)(i).separator,(0,t.unref)(r)?.separator)}))},null,8,[`class`]))}}),Xu=4,Zu=(0,t.defineComponent)({__name:`DropdownMenuSubMenuTransition`,setup(e){let n=(0,t.useAttrs)(),i=(0,t.computed)(()=>n[`data-side`]);function a(e){switch(e){case`top`:return{x:0,y:Xu};case`bottom`:return{x:0,y:-4};case`left`:return{x:Xu,y:0};case`right`:return{x:-4,y:0}}}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...a(i.value)},animate:{opacity:1,x:0,y:0},exit:{opacity:0,...a(i.value)},transition:{duration:.1,type:`spring`,bounce:0},class:`data-[side=bottom]:origin-top data-[side=left]:origin-right data-[side=right]:origin-left data-[side=top]:origin-bottom`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`exit`]))}}),Qu=(0,t.defineComponent)({__name:`DropdownMenuSubMenu`,props:{isDestructive:{type:Boolean,default:!1},icon:{default:null},label:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},setup(e){let i=e,{classConfig:a,customClassConfig:o,style:s}=Mu();return Uu(G(i)),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.DropdownMenuSub),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuSubTrigger),{class:(0,t.normalizeClass)((0,t.unref)(s).item({class:(0,t.unref)(P)((0,t.unref)(o).item,(0,t.unref)(a)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`item`,{},()=>[(0,t.createVNode)(Ku),(0,t.createVNode)(qu),(0,t.createVNode)(L,{class:(0,t.normalizeClass)((0,t.unref)(s).subMenuArrowIcon({class:(0,t.unref)(P)((0,t.unref)(o).itemIcon,(0,t.unref)(a)?.itemIcon)})),icon:`chevronRight`},null,8,[`class`])])]),_:3},8,[`class`]),(0,t.createVNode)(Ru,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.DropdownMenuSubContent),{"side-offset":6,"align-offset":-5,class:(0,t.normalizeClass)((0,t.unref)(s).content({class:(0,t.unref)(P)((0,t.unref)(o).content,(0,t.unref)(a)?.content)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Zu,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`class`])]),_:3})]),_:3})]),_:3})]),_:3}))}}),$u=function(e){return e.INVALID_MIME_TYPE=`INVALID_MIME_TYPE`,e.PREPROCESSING_FAILED=`PREPROCESSING_FAILED`,e.UPLOAD_FAILED=`UPLOAD_FAILED`,e}({}),ed=function(e){return e.ERROR=`ERROR`,e.PENDING=`PENDING`,e.SUCCESS=`SUCCESS`,e.UPLOADING=`UPLOADING`,e}({}),[td,nd]=R(`fileUploadContext`),rd=(0,t.defineComponent)({__name:`FileUploadDropzone`,setup(e){let r=(0,t.ref)(!1),{isMultiple:i,onFilesSelected:a}=nd(),o=(0,t.ref)(null),{isOverDropZone:s}=Ee((0,t.computed)(()=>o.value?.$el??null),{multiple:i.value,onDrop:e=>{e!==null&&e.length>0&&a(e)}}),c=0;function l(e,t){switch(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),t){case`enter`:c+=1,r.value=!0;break;case`leave`:--c,c===0&&(r.value=!1);break;case`drop`:c=0,r.value=!1;break}}return O(document.body,`dragenter`,e=>l(e,`enter`)),O(document.body,`dragover`,e=>l(e,`over`)),O(document.body,`dragleave`,e=>l(e,`leave`)),O(document.body,`drop`,e=>l(e,`drop`)),(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{ref_key:`dropzoneRef`,ref:o,"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{isHoveringOverDropzone:(0,t.unref)(s),isHoveringOverPage:r.value})]),_:3},512))}}),id=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~`.split(``),ad=(e,t)=>{var n=``;for(let r=1;r<=t;r++){let i=Math.floor(e)/83**(t-r)%83;n+=id[Math.floor(i)]}return n},od=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},sd=e=>{let t=Math.max(0,Math.min(1,e));return Math.trunc(t<=.0031308?t*12.92*255+.5:(1.055*t**.4166666666666667-.055)*255+.5)},cd=e=>e<0?-1:1,ld=(e,t)=>cd(e)*Math.abs(e)**+t,ud=class extends Error{constructor(e){super(e),this.name=`ValidationError`,this.message=e}},dd=4,fd=(e,t,n,r)=>{let i=0,a=0,o=0,s=t*dd;for(let c=0;c<t;c++){let t=dd*c;for(let l=0;l<n;l++){let n=t+l*s,u=r(c,l);i+=u*od(e[n]),a+=u*od(e[n+1]),o+=u*od(e[n+2])}}let c=1/(t*n);return[i*c,a*c,o*c]},pd=e=>{let t=sd(e[0]),n=sd(e[1]),r=sd(e[2]);return(t<<16)+(n<<8)+r},md=(e,t)=>{let n=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[0]/t,.5)*9+9.5)))),r=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[1]/t,.5)*9+9.5)))),i=Math.floor(Math.max(0,Math.min(18,Math.floor(ld(e[2]/t,.5)*9+9.5))));return n*19*19+r*19+i},hd=(e,t,n,r,i)=>{if(r<1||r>9||i<1||i>9)throw new ud(`BlurHash must have between 1 and 9 components`);if(t*n*4!==e.length)throw new ud(`Width and height must match the pixels array`);let a=[];for(let o=0;o<i;o++)for(let i=0;i<r;i++){let r=i==0&&o==0?1:2,s=fd(e,t,n,(e,a)=>r*Math.cos(Math.PI*i*e/t)*Math.cos(Math.PI*o*a/n));a.push(s)}let o=a[0],s=a.slice(1),c=``,l=r-1+(i-1)*9;c+=ad(l,1);let u;if(s.length>0){let e=Math.max(...s.map(e=>Math.max(...e))),t=Math.floor(Math.max(0,Math.min(82,Math.floor(e*166-.5))));u=(t+1)/166,c+=ad(t,1)}else u=1,c+=ad(0,1);return c+=ad(pd(o),4),s.forEach(e=>{c+=ad(md(e,u),2)}),c},gd=class{static async encode(e){if(!e.type.startsWith(`image/`))return null;let t=await this.loadImage(URL.createObjectURL(e)),n=this.getClampedSize(t.width,t.height,32),r=this.getImageData(t,n.width,n.height);try{return hd(r.data,r.width,r.height,4,4)}catch{return null}}static getClampedSize(e,t,n){return e>=t&&e>n?{height:Math.round(t/e*n),width:n}:t>e&&t>n?{height:n,width:Math.round(e/t*n)}:{height:t,width:e}}static getImageData(e,t,n){let r=document.createElement(`canvas`);r.width=t,r.height=n;let i=r.getContext(`2d`);return i.drawImage(e,0,0,t,n),i.getImageData(0,0,t,n)}static loadImage(e){return new Promise((t,n)=>{let r=new Image;r.addEventListener(`load`,()=>t(r)),r.addEventListener(`error`,(...e)=>n(e)),r.src=e})}},[_d,vd]=R(`fileUploadItemContext`),yd=(0,t.defineComponent)({__name:`FileUploadItem`,props:{item:{}},setup(e){let n=e,{isPublic:r,confirmUpload:i,getFileInfo:a,preprocess:o,onError:s,onRemoveFileUploadItem:c,onReplaceFileUploadItem:l,onStartUpload:u,onSuccess:d,onUpdateProgress:f}=nd();async function p(){let{name:e,mimeType:t}=n.item;try{return await a(e,t)}catch{s(n.item,$u.UPLOAD_FAILED)}return null}function m(e,t,i){u(n.item,e);let a=new XMLHttpRequest,o=new Blob([i]);a.upload.addEventListener(`progress`,e=>{if(e.lengthComputable){let t=Math.round(e.loaded/e.total*100);f(n.item,t)}}),a.onload=()=>{a.status>=200&&a.status<300?d(n.item):s(n.item,$u.UPLOAD_FAILED)},a.onerror=()=>{s(n.item,$u.UPLOAD_FAILED)},a.open(`PUT`,t,!0),a.setRequestHeader(`Content-Type`,i.type),r.value?a.setRequestHeader(`x-amz-acl`,`public-read`):a.setRequestHeader(`x-amz-acl`,`private`),a.setRequestHeader(`x-ms-blob-type`,`BlockBlob`),a.send(o)}async function h(){let e=await p();if(e===null)return;let{uuid:t,uploadUrl:r}=e,{file:a}=n.item,c=a;if(o!==null)try{c=await o(a)}catch{s(n.item,$u.PREPROCESSING_FAILED);return}m(t,r,c),i(t,await gd.encode(c))}function g(){}return n.item.status===ed.PENDING&&h(),_d({item:(0,t.computed)(()=>n.item),onCancel:g,onRemove:()=>c(n.item),onReplace:e=>l(n.item,e)}),(e,r)=>(0,t.renderSlot)(e.$slots,`default`,{onRemove:()=>(0,t.unref)(c)(n.item),onReplace:e=>(0,t.unref)(l)(n.item,e)})}}),bd=(0,t.defineComponent)({__name:`FileUploadItemRemove`,setup(e){let{onRemove:r}=vd();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`onClick`]))}}),xd=(0,t.defineComponent)({__name:`FileUploadItemReplace`,setup(e){let{isDisabled:r,isMultiple:i,accept:a}=nd(),{onReplace:o}=vd(),s=je();s.onChange(e=>{if(e===null)return;let[t]=Array.from(e);t!==void 0&&o(t)});function c(){s.open({accept:a.value.join(`, `),multiple:i.value})}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`is-disabled`]))}});function Sd(e,t,n=ed.PENDING){return{uuid:``,isSyncedWithModelValue:!1,name:e.name,file:e,key:`${Math.random()}`,mimeType:e.type,order:t,status:n,url:URL.createObjectURL(e)}}function Cd(e,t){return{...e,isSyncedWithModelValue:!0,status:t}}var wd=(0,t.defineComponent)({__name:`FileUploadRoot`,props:(0,t.mergeModels)({isPublic:{type:Boolean,default:!1},isValidFile:{type:[Function,null],default:null},accept:{},confirmUpload:{},getFileInfo:{},preprocess:{type:[Function,null],default:null},isDisabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`filesRejected`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=(0,t.computed)(()=>Array.isArray(a.value)),s=(0,t.computed)({get:()=>Array.isArray(a.value)?a.value.map(e=>Cd(e,ed.SUCCESS)):a.value===null?[]:[Cd(a.value,ed.SUCCESS)],set:e=>{if(o.value)a.value=e.map(e=>({uuid:e.uuid,name:e.name,blurHash:e.blurHash,mimeType:e.mimeType,order:e.order,url:e.url}));else{let t=e[0]??null;if(t===null){a.value=null;return}a.value={uuid:t.uuid,name:t.name,blurHash:t.blurHash,mimeType:t.mimeType,order:t.order,url:t.url}}}}),c=(0,t.ref)([]),l=(0,t.computed)(()=>[...s.value.filter(e=>c.value.some(t=>t.uuid===e.uuid)?!e.isSyncedWithModelValue:!0),...c.value].toSorted((e,t)=>e.order-t.order).slice(o.value?void 0:-1));function u(e,t){return t.some(t=>{if(t===`*/*`)return!0;if(t.endsWith(`/*`)){let[n]=t.split(`/`);return e.type.startsWith(`${n}/`)}return e.type===t})}function d(e){let t=e;t=t.filter(e=>u(e,r.accept)),t=r.isValidFile===null?t:e.filter(e=>r.isValidFile(e)),t=t.slice(0,o.value?void 0:1);let n=e.filter(e=>!t.includes(e));if(n.length>0&&i(`filesRejected`,n),o.value)c.value.push(...t.map((e,t)=>Sd(e,t+s.value.length)));else{let[e]=t;if(e===void 0)return;c.value=[Sd(e,0)]}}function f(e,t){c.value=c.value.map(n=>n.key===e?{...n,...t}:n)}function p(e,t){f(e.key,{uuid:t,progress:0,status:ed.UPLOADING})}function m(e,t){f(e.key,{progress:t,status:ed.UPLOADING})}function h(e){let t={...e,isSyncedWithModelValue:!0,blurHash:null,status:ed.SUCCESS};f(e.key,t),o.value?s.value=[...s.value.filter(t=>t.uuid!==e.uuid),t]:s.value=[t]}function g(e,t){f(e.key,{errorMessage:t,status:ed.ERROR})}function _(e){c.value=c.value.filter(t=>t.key!==e.key),s.value=s.value.filter(t=>t.uuid!==e.uuid)}function v(e,t){s.value=s.value.filter(t=>t.uuid!==e.uuid),c.value.some(t=>t.key===e.key)?f(e.key,Sd(t,e.order)):c.value=[...c.value,Sd(t,e.order)]}return td({...G(r),isMultiple:o,preprocess:r.preprocess,onError:g,onFilesSelected:d,onRemoveFileUploadItem:_,onReplaceFileUploadItem:v,onStartUpload:p,onSuccess:h,onUpdateProgress:m}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`,{items:l.value})}}),Td=(0,t.defineComponent)({__name:`FileUploadTrigger`,setup(e){let{isDisabled:r,isMultiple:i,accept:a,onFilesSelected:o}=nd(),s=je();s.onChange(e=>{e!==null&&o(Array.from(e))});function c(){s.open({accept:a.value.join(`, `),multiple:i.value})}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(K,{"is-disabled":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.Primitive),{"as-child":!0,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`is-disabled`]))}}),Ed=H({slots:{key:new U().withBase(`text-center font-sans capitalize`).withBackgroundColor(`dark:bg-secondary`).withFontSize(`text-[0.6875rem]`).withColor(`text-tertiary`).withSize(`h-5 min-w-5`).withPadding(`px-xs`).withFlex(`flex items-center justify-center`).withBorderRadius(`rounded-xs`).withShadow(`shadow-keyboard-key`).build()},variants:{variant:{}}}),Dd=(0,t.defineComponent)({__name:`KeyboardKey`,props:{keyboardKey:{},variant:{default:null},classConfig:{default:null}},setup(e){let n=e,r=/windows/i,{theme:i}=W(),a=(0,t.computed)(()=>r.test(navigator.userAgent)),o=new Map([[`alt`,`⌥`],[`arrowdown`,`↓`],[`arrowleft`,`←`],[`arrowright`,`→`],[`arrowup`,`↑`],[`backspace`,`⌫`],[`ctrl`,`⌃`],[`enter`,`↵`],[`escape`,`ESC`],[`meta`,`⌘`],[`shift`,`⇧`]]),s=new Map([[`alt`,`Alt`],[`arrowdown`,`↓`],[`arrowleft`,`←`],[`arrowright`,`→`],[`arrowup`,`↑`],[`backspace`,`Backspace`],[`ctrl`,`Ctrl`],[`enter`,`Enter`],[`escape`,`Esc`],[`meta`,`Win`],[`shift`,`Shift`]]),c=(0,t.computed)(()=>Ed({variant:n.variant??void 0})),l=(0,t.computed)(()=>N(`keyboardKey`,i.value,{variant:n.variant})),u=(0,t.computed)(()=>(a.value?s:o).get(n.keyboardKey)??n.keyboardKey);return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`kbd`,{class:(0,t.normalizeClass)(c.value.key({class:(0,t.unref)(P)(l.value.key,n.classConfig?.key)}))},(0,t.toDisplayString)(u.value),3))}}),Od=H({slots:{root:new U().withFlex(`flex items-center gap-x-1`).build(),thenLabel:new U().withBase(`font-regular`).withFontSize(`text-xs`).withColor(`text-tertiary`).build()},variants:{variant:{}}}),kd=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;function Ad(){return kd.test(navigator.userAgent)}var jd=(0,t.defineComponent)({__name:`KeyboardShortcut`,props:{keyboardKeys:{},variant:{},classConfig:{default:null}},setup(e){let n=e,{areKeyboardShortcutHintsHidden:r}=J(),{theme:a}=W(),{t:o}=(0,i.useI18n)();function s(e){return e===`ctrl`||e===`shift`||e===`alt`||e===`meta`}let c=(0,t.computed)(()=>!n.keyboardKeys.some(e=>s(e))),l=(0,t.computed)(()=>Od()),u=(0,t.computed)(()=>N(`keyboardShortcut`,a.value,{variant:n.variant}));return(i,a)=>!(0,t.unref)(r)&&!(0,t.unref)(Ad)()?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)(l.value.root({class:(0,t.unref)(P)(u.value.root,n.classConfig?.root)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keyboardKeys,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:r},[(0,t.createVNode)(Dd,{"keyboard-key":e,"class-config":(0,t.unref)(ln)(u.value.keyboardKey,n.classConfig?.keyboardKey)},null,8,[`keyboard-key`,`class-config`]),r<n.keyboardKeys.length-1&&c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)(l.value.thenLabel({class:(0,t.unref)(P)(u.value.thenLabel,n.classConfig?.thenLabel)}))},(0,t.toDisplayString)((0,t.unref)(o)(`component.keyboard_shortcut.then`)),3)):(0,t.createCommentVNode)(``,!0)],64))),128))],2)):(0,t.createCommentVNode)(``,!0)}}),Md=1e3,Nd=new Map([[`Control`,`ctrl`]]);function Pd(e){let n=(0,t.getCurrentInstance)(),r=[],{isDisabled:i,element:a=typeof window<`u`?document:null,keys:o,onTrigger:s}=e,c=o.some(l)?`combination`:`sequence`;function l(e){return e===`ctrl`||e===`shift`||e===`alt`||e===`meta`||e===`escape`}function u(e){let t=[];e.shiftKey&&e.key!==`Shift`&&t.push(`shift`),e.ctrlKey&&e.key!==`Control`&&t.push(`ctrl`),e.altKey&&e.key!==`Alt`&&t.push(`alt`),e.metaKey&&e.key!==`Meta`&&t.push(`meta`);let n=Nd.get(e.key)??e.key.toLowerCase();return t.push(n),t}function d(){return typeof document>`u`?!1:document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||document.activeElement?.attributes.getNamedItem(`contenteditable`)?.value!==void 0}function f(e){if(c===`combination`)return e.every(e=>o.includes(e))&&e.length===o.length;if(c===`sequence`){let t=[...r,...e];if(e.some(e=>l(e)))return!1;let n=t.slice(-o.length);return n.every((e,t)=>e===o[t])&&n.length===o.length}return!1}function p(e){if(i?.value===!0||c===`sequence`&&d())return;let t=e,n=u(t);f(n)&&s(t),r.push(...n),setTimeout(()=>{r.splice(0,n.length)},Md)}function m(){a!==null&&a.removeEventListener(`keydown`,p)}return(0,t.onMounted)(()=>{a!==null&&a.addEventListener(`keydown`,p)}),n!==null&&(0,t.onBeforeUnmount)(()=>{m()}),{unbind:m}}var Fd=(0,t.defineComponent)({__name:`KeyboardShortcutProvider`,props:{isDisabled:{type:Boolean,default:!1},keyboardKeys:{},preventDefault:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1}},setup(e){let n=e,r=(0,t.ref)(null);function i(e){if([`A`,`BUTTON`,`INPUT`,`TEXTAREA`,`SELECT`,`DETAILS`].includes(e.tagName)){let t=e;return!t.hasAttribute(`disabled`)&&t.tabIndex>=0&&!t.hidden}let t=e;return t.tabIndex>=0&&!t.hidden}function a(e){let t=Array.from(e.querySelectorAll(`a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [contenteditable]`));for(let e of t)if(i(e))return e;return null}function o(e){let t=e.parentElement;for(;t;){if(t.hasAttribute(`aria-hidden`))return t.getAttribute(`aria-hidden`)===`true`;t=t.parentElement}return!1}return Pd({isDisabled:(0,t.computed)(()=>n.isDisabled),keys:n.keyboardKeys,onTrigger:e=>{if(r.value===null)return;let t=a(r.value);t!==null&&((n.preventDefault??!1)&&e.preventDefault(),(n.stopPropagation??!1)&&e.stopPropagation(),!o(t)&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`?t.focus():t.click()))}}),(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`wrapperRef`,ref:r},[(0,t.renderSlot)(e.$slots,`default`,{keys:n.keyboardKeys})],512))}}),[Id,Ld]=R(`layoutStackContext`),Rd=(0,t.defineComponent)({__name:`LayoutStackItem`,props:{maxDepth:{default:2}},setup(e){let n=e,i=(0,t.ref)(null),{height:a,width:o}=Oe(i),{addToStack:s,getDepth:c,removeFromStack:l}=Ld(),u=(0,t.useId)(),d=(0,t.ref)(!1);s(u);let f=(0,t.computed)(()=>c(u)),p=(0,t.computed)(()=>o.value===0||a.value===0?1:1-f.value*.05*(o.value/a.value)),m=(0,t.computed)(()=>o.value===0||a.value===0?0:-f.value*50);return(0,t.onMounted)(()=>{setTimeout(()=>{d.value=!0},0)}),(0,t.onBeforeUnmount)(()=>{l(u)}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{ref_key:`layoutStackItemRef`,ref:i,initial:{y:`20%`,opacity:0},exit:{opacity:0,y:`20%`},animate:{y:m.value,scale:p.value,filter:`brightness(${1-f.value*.1}) blur(${f.value}px)`,opacity:f.value>n.maxDepth?0:1},transition:{duration:.6,type:`spring`,bounce:.2}},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`animate`]))}}),zd=(0,t.defineComponent)({__name:`LayoutStackRoot`,setup(e){let n=(0,t.ref)([]);function r(e){return n.value.push(e),n.value.length-1}function i(e){n.value=n.value.filter(t=>t!==e)}function a(e){return n.value.toReversed().indexOf(e)}return Id({addToStack:r,getDepth:a,removeFromStack:i,stack:(0,t.computed)(()=>n.value)}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`)}}),Bd=(0,t.defineComponent)({__name:`TextFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=fo();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),Vd={class:`sr-only`},Hd=(0,t.defineComponent)({__name:`TextFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=fo(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,Vd,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),Ud=(0,t.defineComponent)({__name:`TextField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},type:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(vo,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(po),(0,t.createVNode)(ho),(0,t.createVNode)(Hd),(0,t.createVNode)(Bd),(0,t.renderSlot)(e.$slots,`right`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Wd=(0,t.defineComponent)({__name:`PasswordField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),{t:a}=(0,i.useI18n)(),o=(0,t.ref)(!1),s=(0,t.computed)(()=>o.value?`text`:`password`),c=(0,t.computed)(()=>o.value?`eyeOff`:`eye`),l=(0,t.computed)(()=>o.value?a(`component.password_field.hide_password`):a(`component.password_field.show_password`));function u(){o.value=!o.value}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(Ud,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,type:s.value}),{left:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left`)]),label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),right:(0,t.withCtx)(()=>[(0,t.createVNode)(q,{icon:c.value,label:l.value,"is-disabled":n.isDisabled,"class-config":{icon:`size-4`,root:`min-w-7 h-7 rounded-[0.3rem]`},variant:`tertiary`,size:`sm`,class:`mr-[0.3rem]`,onClick:u},null,8,[`icon`,`label`,`is-disabled`])]),_:3},16,[`modelValue`,`type`]))}}),Gd={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],0,0,0,0,0,0,0,[[`6[2-467]\\d{3}`,[5]],[`4\\d{4}`,[5]],0,0,0,0,[`(?:0[1-9]|[1589]\\d)\\d{4}`,[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`]]],0,0,0,0,0,0,[[`[78]\\d{5}`,[6]],[`690\\d{6}|[356]\\d{5}`,[6,9]],[`180[02]\\d{4}`,[8]],[`[19]\\d{5}`,[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`,0,0,0,0,0,[[`[2-4679][2-8]\\d{6}`,[8]],[`5[02-68]\\d{7}`,[9]],[`400\\d{6}|800\\d{2,9}`],[`900[02]\\d{5}`,[9]],0,0,[`600[25]\\d{5}`,[9]],0,0,[`700[05]\\d{5}`,[9]]]],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}`],[`7\\d{8}`]]],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`,[[`268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}`],[`268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,0,[`26840[69]\\d{4}`],[`26848[01]\\d{4}`]]],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`,[[`264(?:292|4(?:6[12]|9[78]))\\d{4}`],[`264(?:235|4(?:69|7[67])|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,0,[`264724\\d{4}`]]],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`,0,0,0,0,0,[[`4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}`,[8]],[`6(?:[78][2-9]|9\\d)\\d{6}`,[9]],[`800\\d{4}`,[7]],[`900[1-9]\\d\\d`,[6]],[`700[2-9]\\d{4}`,[8]],0,0,0,0,[`808[1-9]\\d\\d`,[6]]]],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`,0,0,0,0,0,[[`(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}`],[`(?:33|4[1349]|55|77|88|9[13-9])\\d{6}`],[`800\\d{5}`],[`90[016]\\d{5}`],0,0,0,0,[`60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}`],[`80[1-4]\\d{5}`]]],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]],0,0,0,0,0,0,[[`2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}`],[`9[1-79]\\d{7}`]]],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`,0,0,[[`3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68])))\\d{6}|(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}`,[10]],[`93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))\\d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}`],[`800\\d{7,8}`],[`60[04579]\\d{7}`,[10]],0,0,[`810\\d{7}`,[10]]]],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`,[[`684(?:274|6(?:22|33|44|55|77|88|9[19]))\\d{4}`],[`684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|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`,0,0,0,0,0,[[`1(?:11\\d|[2-9]\\d{3,11})|(?:316|463)\\d{3,10}|648[34]\\d{3,9}|(?:51|66|73)2\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-7]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}`],[`6(?:485|(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d)\\d{3,9}`,[7,8,9,10,11,12,13]],[`800\\d{6,10}`,[9,10,11,12,13]],[`(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}`,[9,10,11,12,13]],0,0,0,0,[`5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}`,[5,6,7,8,9,10,11,12,13]],[`8(?:10|2[018])\\d{6,10}|828\\d{5}`,[8,9,10,11,12,13]]]],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,[[`(?:(?:241|349)0\\d\\d|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])|[34]\\d\\d)|91(?:(?:[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}|(?: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])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]`]]],0,0,0,0,0,0,[[`5(?:2\\d|8[1-9])\\d{4}`],[`(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}`],[`800\\d{4}`],[`900\\d{4}`],0,0,0,0,[`(?:28\\d|501)\\d{4}`]]],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`,[[`18[1-8]\\d{3,6}`,[6,7,8,9]],[`4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}`,[6,7,8,9,10]],[`800\\d{4,6}`,[7,8,9]],[`[67]00\\d{5,6}`,[8,9]],0,0,[`20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}`]],`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`,0,0,0,0,0,[[`(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}`],[`36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}`],[`88\\d{7}`],[`900200\\d{3}`]]],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`,0,0,0,0,0,[[`(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}`,[8]],[`6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}`],[`8[08]\\d{6}`,[8]],[`9[0246]\\d{6}`,[8]],0,0,[`703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}`,[8]],0,0,[`8[12]\\d{6}`,[8]]]],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`,[[`246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}`],[`246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}`],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`(?:246976|900[2-9]\\d\\d)\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,[`246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}`],0,[`24631\\d{5}`]]],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]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`,0,0,0,0,0,[[`(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:[23]\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}`],[`(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}`,[10]],[`80[03]\\d{7}`,[10]],0,0,0,0,0,[`96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}`,[10]]]],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`,0,0,0,0,0,[[`80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}`,[8]],[`4[5-9]\\d{7}`,[9]],[`800[1-9]\\d{4}`,[8]],[`(?:70(?:2[0-57]|3[04-7]|44|6[04-69]|7[0579])|90\\d\\d)\\d{4}`,[8]],0,0,[`78(?:0[578]|1[014-8]|2[25]|3[15-8]|48|5[05]|60|7[06-8]|9\\d)\\d{4}`,[8]],0,0,[`7879\\d{4}`,[8]]]],BF:[`226`,`00`,`[024-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]],0,0,0,0,0,0,[[`2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-8]))\\d{4}`],[`(?:0[1-7]|4[4-6]|5[0-8]|[67]\\d)\\d{6}`]]],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`,0,0,0,0,0,[[`2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}`,[6,7,8]],[`(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}`,[8,9]],[`(?:00800\\d\\d|800)\\d{5}`,[8,12]],[`90\\d{6}`,[8]],0,0,0,0,0,[`700\\d{5}`,[8]]]],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]],0,0,0,0,0,0,[[`(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]\\d\\d|1(?:11|78)))\\d{4}`],[`(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-689])))\\d{4}`],[`8[02369]\\d{6}`],[`(?:87|9[0-8])\\d{6}`],0,0,0,0,0,[`84\\d{6}`]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]],0,0,0,0,0,0,[[`(?:22|31)\\d{6}`],[`(?:29|6[1-9]|7[125-9])\\d{6}`]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]],0,0,0,0,0,0,[[`012\\d{7}`,[10]],[`01(?:2[5-9]|[4-69]\\d)\\d{6}`,[10]],0,0,0,0,[`81\\d{6}`,[8]],0,[`857[58]\\d{4}`,[8]]]],BL:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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`,[[`441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}`],[`441(?:[2378]\\d|5[0-39]|9[02])\\d{5}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]],0,0,0,0,0,0,[[`22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}`],[`(?:22[89]|[78]\\d\\d)\\d{4}`],0,0,0,0,0,0,[`5[34]\\d{5}`]]],BO:[`591`,`00(?:1\\d)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`,0,0,0,[[`(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}`,[8]],[`(?:57|[67]\\d)\\d{6}`,[8]],[`8001[07]\\d{4}`,[9]],0,0,0,0,0,[`50\\d{6}`,[8]]]],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`,[[`(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}`],[`(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}`]]],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\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`,0,0,[[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}`,[10]],[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}`,[10,11]],[`800\\d{6,7}`,[9,10]],[`[59]00\\d{6,7}`,[9,10]],0,0,0,0,0,[`(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370|864))\\d{4}|300\\d{5}`,[8,10]]]],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`,[[`242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}`],[`242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}`],[`242300\\d{4}|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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,[`242225\\d{4}`]]],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]],0,0,0,0,0,0,[[`(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}`,[7]],[`(?:1[67]|[78]7)\\d{6}`,[8]]]],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`]]],0,0,0,0,0,0,[[`(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}`,[7]],[`(?:321|7(?:[1-8]\\d|9[03]))\\d{5}`,[8]],[`(?:0800|800\\d)\\d{6}`,[10]],[`90\\d{5}`,[7]],0,0,0,0,[`79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{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,[[`(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}`,[9]],[`(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}`,[9]],[`800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}`],[`(?:810|902)\\d{7}`,[10]],0,0,0,0,[`249\\d{6}`,[9]]],`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`]]],0,0,0,0,0,0,[[`(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}`,[7]],[`6[0-35-7]\\d{5}`,[7]],[`0800\\d{7}`,[11]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|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|7[39])|9(?:0[25]|42))[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(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[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[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\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{2})(\\d{4})`,`$1 $2 $3`,[`2`],`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`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`,0,0,0,0,0,[[`(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}`],[`88\\d{5}|(?:8[0-69]|9[016-9])\\d{7}`,[7,9]]]],CF:[`236`,`00`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]],0,0,0,0,0,0,[[`(?:2[12]|61)\\d{6}`],[`7[02-7]\\d{6}`],0,[`8776\\d{4}`]]],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]`]]],0,0,0,0,0,0,[[`222[1-589]\\d{5}`],[`026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}`],0,[`80[0-2]\\d{6}`]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\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`,0,0,0,0,0,[[`(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}`,[9]],[`(?:6[89]|7[235-9])\\d{7}`,[9]],[`800\\d{6}`,[9]],[`90[016]\\d{6}`,[9]],[`878\\d{6}`,[9]],[`860\\d{9}`,[12]],[`5[18]\\d{7}`,[9]],[`74[0248]\\d{6}`,[9]],0,[`84[0248]\\d{6}`,[9]]]],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`]]],0,0,0,0,0,0,[[`2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}`],[`0[157]\\d{8}`]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]],0,0,0,0,0,0,[[`(?:2\\d|3[13-7]|4[1-5])\\d{3}`],[`[578]\\d{4}`]]],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{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\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(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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`]]],0,0,0,0,0,0,[[`2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|(?:600|80[1-9])\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}`,[9]],[`2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}`,[9]],[`(?:123|8)00\\d{6}`,[9,11]],0,0,0,0,0,[`44\\d{7}`,[9]],[`600\\d{7,8}`,[10,11]]]],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`]]],0,0,0,0,0,0,[[`2(?:22|33)\\d{6}`,[9]],[`(?:24[23]|6(?:[25-9]\\d|4[01]))\\d{6}`,[9]],[`88\\d{6,7}`]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`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,[[`(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|2(?:[02-57-9]\\d{3}|1(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))|(?:41[03]|8078|9(?:78|94))\\d\\d)\\d{5}|(?:10|2[0-57-9])(?:1(?:00|23)\\d\\d|95\\d{3,4})|(?:41[03]|9(?:78|94))(?:100\\d\\d|95\\d{3,4})|8078123|(?:43[35]|754|851)\\d{7,8}|(?:43[35]|754|851)(?:1(?:00\\d|23)\\d|95\\d{3,4})|(?:3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[13-9]\\d{6}|2(?:[0-24-9]\\d{5}|3\\d(?:\\d{4})?))|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[24-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[13-9]\\d{5}|2(?:[0-24-9]\\d{4}|3\\d(?:\\d{3})?))|9(?:[0-46-9]\\d{5}|5\\d{3,5}))`,[7,8,9,10,11]],[`1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}`,[11]],[`(?:(?:10|21)8|8)00\\d{7}`,[10,12]],[`16[08]\\d{5}`,[8]],0,0,0,0,0,[`10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}`,[7,8,9,10,11]]],`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`,0,0,0,[[`601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[18][1-9]|[24-7][2-9]))\\d{6}`,[8,10]],[`333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:(?:0[0-5]|1\\d|5[01]|70)\\d|2(?:[0-3]\\d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))\\d{6}`,[10]],[`1800\\d{7}`,[11]],[`(?:19(?:0[01]|4[78])|901)\\d{7}`,[10,11]]]],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))`,0,0,0,[[`210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}`,[8]],[`(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}`,[8]],[`800\\d{7}`,[10]],[`90[059]\\d{7}`,[10]],0,0,0,0,[`(?:210[0-6]|4\\d{3}|5100)\\d{4}`,[8]]]],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[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`,0,0,0,0,0,[[`(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}`],[`(?:5\\d|6[2-4])\\d{6}`,[8]],[`800\\d{7}`,[10]],0,0,0,0,0,0,[`807\\d{7}`,[10]]]],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]],0,0,0,0,0,0,[[`2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}`],[`(?:36|5[1-389]|9\\d)\\d{5}`],[`800\\d{4}`],0,0,0,0,0,[`(?:3[3-5]|4[356])\\d{5}`]]],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]`,[[`9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}`],[`953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}`],0,0,0,0,0,[`955\\d{5}`,[8]],0,[`60[0-2]\\d{4}`,[7]]]],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[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]`]]],0,0,0,0,0,0,[[`2[2-6]\\d{6}`],[`9(?:10|[4-79]\\d)\\d{5}`],[`800\\d{5}`],[`90[09]\\d{5}`],[`700\\d{5}`],0,[`(?:50|77)\\d{6}`],0,0,[`80[1-9]\\d{5}`]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\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`]]],0,0,0,0,0,0,[[`(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}`,[9]],[`7060\\d{5}|(?:60[1-8]|7(?:0[2-5]|19|[2379]\\d))\\d{6}`,[9]],[`800\\d{6}`,[9]],[`9(?:0[05689]|76)\\d{6}`,[9]],[`70[01]\\d{6}`,[9]],[`9(?:3\\d{9}|6\\d{7,10})`],[`9(?:5\\d|7[2-4])\\d{6}`,[9]],0,[`9[17]0\\d{6}`,[9]],[`8[134]\\d{7}`,[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{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`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`,0,0,0,0,0,[[`32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}`,[5,6,7,8,9,10,11,12,13,14,15]],[`1(?:6[023]|7\\d)\\d{7,8}|15(?:[0-25-9]\\d\\d|3(?:10|33))\\d{6}`,[10,11]],[`800\\d{7,12}`,[10,11,12,13,14,15]],[`(?:137[7-9]|900(?:[135]|9\\d))\\d{6}`,[10,11]],[`700\\d{8}`,[11]],[`1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}`,[12,13]],[`18(?:1\\d{5,11}|[2-9]\\d{8})`,[8,9,10,11,12,13,14]],[`16(?:4\\d{1,10}|[89]\\d{1,11})`,[4,5,6,7,8,9,10,11,12,13,14]],0,[`180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}`,[7,8,9,10,11,12,13,14]]]],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]],0,0,0,0,0,0,[[`2(?:1[2-5]|7[45])\\d{5}`],[`77\\d{6}`]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]],0,0,0,0,0,0,[[`(?:2(?:[0-59][1-9]|[6-8]\\d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7\\d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]\\d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6\\d))\\d{5}`],[`(?:2[6-8]|37|6[78]|96)\\d{6}|(?:2[0-59]|3[0-689]|[457]\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\d{5}`],[`80\\d{6}`],[`90\\d{6}`]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`,[[`767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}`],[`767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`,[[`8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}`],[`8[024]9[2-9]\\d{6}`],[`800(?:14|[2-9]\\d)\\d{5}|8[024]9[01]\\d{6}|8(?: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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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`,0,0,0,0,0,[[`9619\\d{5}|(?:[1-3]\\d|4[013-689])\\d{6}`],[`5(?:4[0-29]|6[0-4])\\d{6}|(?:55|6\\d|7[7-9])\\d{7}`,[9]],[`800\\d{6}`,[9]],[`80[3-689]1\\d{5}`,[9]],0,0,0,0,[`98[23]\\d{6}`,[9]],[`80[12]1\\d{5}`,[9]]]],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`,0,0,0,0,0,[[`[2-7][2-7]\\d{6}`,[8]],[`964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}`,[9]],[`1800\\d{7}|1[78]00\\d{6}`,[10,11]],0,0,0,0,0,[`[2-7]890\\d{4}`,[8]]]],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`]]],0,0,0,0,0,0,[[`(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}`,[7]],[`(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}`,[7,8]],[`800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}`],[`(?:40\\d\\d|900)\\d{4}`,[7,8]],[`70[0-2]\\d{5}`,[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`,0,0,0,0,0,[[`13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}`,[8,9]],[`1[0-25]\\d{8}`,[10]],[`800\\d{7}`,[10]],[`900\\d{7}`,[10]]]],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}`],[`(?:17[1-3]|7\\d\\d)\\d{4}`]]],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]`]]],0,0,0,0,0,0,[[`96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}`],[`96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}`],[`[89]00\\d{6}`],[`80[367]\\d{6}`],[`70\\d{7}`],0,[`51\\d{7}`],0,0,[`90[12]\\d{6}`]]],ET:[`251`,`00`,`(?:11|[2-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:11(?:[124]\\d\\d|3(?:[0-79]\\d|8[0-7])|5(?:[02-9]\\d|1[0-57-9])|6(?:[02-79]\\d|1[0-57-9]|8[0-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}`],[`700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3\\d|77|86|99)|(?:8[01]|9\\d)\\d)\\d{6}`]]],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{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,[[`1[3-7][1-8]\\d{3,6}|(?:19[1-8]|[23568][1-8]\\d|9(?:00|[1-8]\\d))\\d{2,6}`,[5,6,7,8,9]],[`4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}`,[6,7,8,9,10]],[`800\\d{4,6}`,[7,8,9]],[`[67]00\\d{5,6}`,[8,9]],0,0,[`20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}`]],`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,[[`603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}`,[7]],[`(?:[279]\\d|45|5[01568]|8[034679])\\d{5}`,[7]],[`0800\\d{7}`,[11]]],`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5],0,0,0,0,0,0,0,[[`[2-47]\\d{4}`],[`[56]\\d{4}`]]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]],0,0,0,0,0,0,[[`31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}`],[`31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}`]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`,0,0,0,[[`(?:20|[34]\\d|8[19])\\d{4}`],[`(?:[27][1-9]|5\\d|9[16])\\d{4}`],[`80[257-9]\\d{3}`],[`90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d`],0,0,0,0,[`(?:6[0-36]|88)\\d{4}`]]],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`,0,0,0,0,0,[[`(?:26[013-9]|59[1-35-9])\\d{6}|(?:[13]\\d|2[0-57-9]|4[1-9]|5[0-8])\\d{7}`],[`(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}`],[`80[0-5]\\d{6}`],[`836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}`],0,0,[`80[6-9]\\d{6}`],0,[`9\\d{8}`],[`8(?:1[01]|2[0156]|4[024]|84)\\d{6}`]]],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`,0,0,[[`[01]1\\d{6}`,[8]],[`(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}`]]],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|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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-3]))|(?: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`,[[`473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-4]|5[59]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}`],[`473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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`,0,0,0,0,0,[[`(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}`],[`5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-6])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|4(?:44|55))|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}`],[`800\\d{6}`],0,0,0,0,0,[`70[67]\\d{6}`]]],GF:[`594`,`00`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:4(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)|88\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}`]]],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|180020`,`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{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`0$1`]],`0`,0,0,0,0,0,[[`3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}`,[9]],[`(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}`,[9]],[`800\\d{5,6}`]]],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]],0,0,0,0,0,0,[[`2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}`],[`5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}`]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]],0,0,0,0,0,0,[[`(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}`],[`[245]\\d{5}`],[`80\\d{4}`],0,0,0,0,0,[`3[89]\\d{4}`]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]],0,0,0,0,0,0,[[`(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8[0-389]\\d\\d)\\d{3}`],[`556\\d{4}|(?:[23679]\\d|4[015]|5[0-489]|8[4-7])\\d{5}`]]],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]`]]],0,0,0,0,0,0,[[`3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}`,[8]],[`6[0-356]\\d{7}`,[9]],0,0,0,0,0,0,[`722\\d{6}`,[9]]]],GP:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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]`]]],0,0,0,0,0,0,[[`33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}`],[`(?:222|55\\d)\\d{6}`],[`80\\d[1-9]\\d{5}`],[`90\\d[1-9]\\d{5}`]]],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`]]],0,0,0,0,0,0,[[`2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}`,[10]],[`68[57-9]\\d{7}|(?:69|94)\\d{8}`,[10]],[`800\\d{7,9}`],[`90[19]\\d{7}`,[10]],[`70\\d{8}`,[10]],0,[`5005000\\d{3}`,[10]],0,0,[`8(?:0[16]|12|[27]5|50)\\d{7}`,[10]]]],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`]]],0,0,0,0,0,0,[[`[267][2-9]\\d{6}`,[8]],[`(?:[3-5]\\d\\d|80[0-4])\\d{5}`,[8]],[`18[01]\\d{8}`,[11]],[`19\\d{9}`,[11]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`,[[`671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}`],[``],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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]`]]],0,0,0,0,0,0,[[`443\\d{6}`,[9]],[`9(?:5\\d|6[569]|77)\\d{6}`,[9]],0,0,0,0,0,0,[`40\\d{5}`,[7]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]],0,0,0,0,0,0,[[`(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}`],[`(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|70))\\d{4}`],[`(?:289|8(?:00|6[28]|88|99))\\d{4}`],[`9008\\d{3}`],0,0,0,0,[`515\\d{4}`]]],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,[[`(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-5]))|58(?:0[1-9]|1[2-9]))\\d{4}`,[8]],[`(?:4(?:(?:09|24)[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}`,[8]],[`800\\d{6}`,[9]],[`900(?:[0-24-9]\\d{7}|3\\d{1,4})`,[5,6,7,8,11]],[`8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}`,[8]],0,[`30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}`,[8]],[`7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}`,[8]]],`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]],0,0,0,0,0,0,[[`2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-7]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}`,[8]],[`[37-9]\\d{7}`,[8]],[`8002\\d{7}`,[11]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{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`,[`6|7[245]`],`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-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}`,[8,9]],[`9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}`,[8,9]],[`80\\d{5,7}`],[`6[01459]\\d{6}|6[01]\\d{5}`,[7,8]],[`7[45]\\d{6}`,[8]],0,[`62\\d{6,7}|72\\d{6}`,[8,9]]]],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]],0,0,0,0,0,0,[[`2(?:2\\d|5[1-5]|81|9[149])\\d{5}`],[`(?:[34]\\d|5[568])\\d{6}`],[`8\\d{7}`],0,0,0,0,0,[`9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}`]]],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`,0,0,0,0,0,[[`(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}`,[8]],[`(?:[257]0|3[01])\\d{7}`,[9]],[`(?:[48]0\\d|680[29])\\d{5}`],[`9[01]\\d{6}`,[8]],0,0,[`38\\d{7}`,[9]],0,[`21\\d{7}`,[9]]]],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\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`,0,0,0,0,0,[[`2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}`,[7,8,9,10,11]],[`8[1-35-9]\\d{7,10}`,[9,10,11,12]],[`00(?:1803\\d{5,11}|7803\\d{7})|(?:177\\d|800)\\d{5,7}`,[8,9,10,11,12,13,14,15,16,17]],[`809\\d{7}`,[10]],0,0,[`(?:1500|8071\\d{3})\\d{3}`,[7,10]],0,0,[`804\\d{7}`,[10]]]],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`,0,0,0,0,0,[[`(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}`],[`8(?:22|[35-9]\\d)\\d{6}`,[9]],[`1800\\d{6}`,[10]],[`15(?:1[2-8]|[2-8]0|9[089])\\d{6}`,[10]],[`700\\d{6}`,[9]],[`88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}`,[10]],[`818\\d{6}`,[9]],0,[`76\\d{7}`,[9]],[`18[59]0\\d{6}`,[10]]]],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`,0,0,0,0,0,[[`153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}`,[8,11,12]],[`55(?:4(?:0[0-3]|[16]0)|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}`,[9]],[`1(?:255|80[019]\\d{3})\\d{3}`,[7,10]],[`1212\\d{4}|1(?:200|9(?:0[0-2]|19|9\\d))\\d{6}`,[8,10]],0,[`151\\d{8,9}`,[11,12]],[`1599\\d{6}`,[10]],0,[`7(?:38(?:[05]\\d|8[0138])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}`,[9]],[`1700\\d{6}`,[10]]]],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`,[[`1624(?:230|[5-8]\\d\\d)\\d{3}`],[`76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}`],[`808162\\d{4}`],[`8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}`],[`70\\d{8}`],0,[`3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}`],0,[`56\\d{8}`]]],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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`,0,0,0,0,0,[[`(?:2717(?:[2-7]\\d|95)|6828[235-7]\\d)\\d{4}|(?:170[24]|280[13468]|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:271[0-689]|682[0-79]|782[0-6])[2-7]\\d{5}|(?:2(?:[02][2-79]|90)|3(?:23|80)|683|79[1-7])\\d{7}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[14-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}`,[10]],[`(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:(?:12|[2-4]1|5[17]|6[13]|80)[0189]|7(?:1[0189]|86))|7(?:1(?:2[0189]|9[0-5])|3(?:2[5-8]|[34][017-9]|9[016-9])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:731|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|4[0189]|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-5])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:[024]\\d|3[05-8]|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}`,[10]],[`000800\\d{7}|180(?:0\\d{4,9}|3\\d{9})`],[`186[12]\\d{9}`,[13]],0,0,[`140\\d{7}`,[10]],0,0,[`1860\\d{7}`,[11]]]],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]],0,0,0,0,0,0,[[`37\\d{5}`],[`38\\d{5}`]]],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`,0,0,0,0,0,[[`1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}`,[8,9]],[`7[3-9]\\d{8}`,[10]]]],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`,0,0,0,0,0,[[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|(?:12\\d|30[0-2])\\d|2(?:[02689]0\\d|121)|4(?:111|40\\d))\\d{4}`,[6,7,10]],[`9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}`,[10]],0,0,0,0,[`96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])`,[4,5]]]],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,[[`(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}`,[7]],[`(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}`],[`80[0-8]\\d{4}`,[7]],[`90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}`,[7]],0,[`(?:689|8(?:7[18]|80)|95[48])\\d{4}`,[7]],[`809\\d{4}`,[7]],0,[`49[0-24-79]\\d{4}`,[7]]],`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\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]|43`]],[`(\\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`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[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]],[`3[2-8]\\d{9,10}`,[11,12]],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|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\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`,[[`8766060\\d{3}|(?:658(?:2(?:[5-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}`],[`(?:6582(?:[0-4]\\d|95)|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|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`,[`[47]`],`0$1`]],`0`,0,0,0,0,0,[[`87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}`,[8]],[`(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}`,[9]],[`80\\d{6}`,[8]],[`9\\d{7}`,[8]],[`70\\d{7}`,[9]],0,[`8(?:10|8\\d)\\d{5}`,[8]],[`74(?:66|77)\\d{5}`,[9]],0,[`85\\d{6}`,[8]]]],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-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`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`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`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`,0,0,[[`(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}`,[9]],[`[6-9]0[1-9]\\d{7}`,[10]],[`00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}`],[`990\\d{6}`,[9]],[`60\\d{7}`,[9]],0,[`570\\d{6}`,[9]],[`20\\d{8}`,[10]],[`50[1-9]\\d{7}`,[10]]]],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`,0,0,0,0,0,[[`(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}`,[7,8,9]],[`(?:1(?:0[0-8]|1\\d|2[014]|30|4[0-5])|7\\d\\d)\\d{6}`,[9]],[`800[02-8]\\d{5,6}`,[9,10]],[`900[02-9]\\d{5}`,[9]]]],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`,0,0,0,0,0,[[`312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}`,[9]],[`312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}`,[9]],[`800\\d{6,7}`]]],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`,0,0,0,0,0,[[`23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})`,[8,9]],[`(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}`,[8,9]],[`1800(?:1\\d|2[019])\\d{4}`,[10]],[`1900(?:1\\d|2[09])\\d{4}`,[10]]]],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`,0,0,0,0,0,[[`(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}`],[`(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}`,[8]],0,0,0,0,0,0,[`30(?:0[01]\\d\\d|12(?:11|20))\\d\\d`,[8]]]],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]],0,0,0,0,0,0,[[`7[4-7]\\d{5}`],[`[34]\\d{6}`],0,[`8\\d{6}`]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`,[[`869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}`],[`869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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`,0,0,0,0,0,[[`(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}`],[`19[1-3]\\d{7}`,[10]]]],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`,[`[36]0|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))?`,0,0,0,[[`(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}`,[5,6,8,9,10]],[`1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}`,[9,10]],[`00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}`,[9,11,12,13,14]],[`60[2-9]\\d{6}`,[9]],[`50\\d{8,9}`,[10,11]],0,[`1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}`,[8]],[`15\\d{7,8}`,[9,10]],[`70\\d{8}`,[10]]]],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]`]]],0,0,0,0,0,0,[[`2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}`,[8]],[`(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\\d)|8[68]8|9(?:[069]\\d|3[039]))|9(?:(?:[04679]\\d|8[057-9])\\d|1(?:00|1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}`,[8]],[`18\\d{5}`,[7]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`,[[`345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))\\d{4}`],[`345(?:32[1-9]|4(?:1[2-6]|2[0-4])|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}`],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`(?:345976|900[2-9]\\d\\d)\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],KZ:[`7`,`810`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`7`,[[`7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}`,[10]],[`7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}`,[10]],[`8(?:00|108\\d{3})\\d{7}`],[`809\\d{7}`,[10]],[`808\\d{7}`,[10]],0,0,0,[`751\\d{7}`,[10]]],`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`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:2[13]|[35-7][14]|41|8[1468])\\d{6}`,[8]],[`(?:20(?:[23579]\\d|8[78])|30[24]\\d)\\d{6}|30\\d{7}`,[9,10]]]],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-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`,0,0,0,0,0,[[`7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}`],[`(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-4]))\\d{5}`],0,[`9[01]\\d{6}`,[8]],0,0,0,0,0,[`80\\d{6}`,[8]]]],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`,[[`758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}`],[`758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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`,0,0,0,[[`(?:2(?:01|1[27]|2[024]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}`,[7]],[`(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\d|7(?:[37-9]\\d|42|56))\\d{4}`],[`8002[28]\\d\\d|80(?:05\\d|9)\\d{4}`],[`90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d`,[7]],0,[`697(?:42|56|[78]\\d)\\d{4}`,[9]],[`870(?:28|87)\\d\\d`,[7]]]],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`,0,0,0,0,0,[[`(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}`],[`7(?:[0-25-8]\\d|4[0-4])\\d{6}`],0,0,0,0,[`1973\\d{5}`]]],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`,0,0,0,0,0,[[`2\\d{7}`,[8]],[`(?:(?:(?:22|33)0|555|7(?:6[01]|7\\d)|88\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}`,[7,9]],0,[`332(?:02|[34]\\d)\\d{4}`,[9]]]],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]],0,0,0,0,0,0,[[`2\\d{7}`],[`[56]\\d{7}`],[`800[1256]\\d{4}`]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`,0,0,0,[[`(?:3[1478]|4[124-6]|52)\\d{6}`],[`6\\d{7}`],[`80[02]\\d{5}`],[`9(?:0[0239]|10)\\d{5}`],[`70[05]\\d{5}`],0,[`70[67]\\d{5}`],0,[`[89]01\\d{5}`],[`808\\d{5}`]]],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`,[`20`]],[`(\\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]`]],[`(\\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`,[`20`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`,0,0,0,[[`(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}`],[`6(?:[26][18]|5[1568]|7[189]|81|9[128])\\d{6}`,[9]],[`800\\d{5}`,[8]],[`90[015]\\d{5}`,[8]],0,0,0,0,[`20(?:1\\d{5}|[2-689]\\d{1,7})`,[4,5,6,7,8,9,10]],[`801\\d{5}`,[8]]]],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]],0,0,0,0,0,0,[[`6\\d{7}`],[`2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}`],[`80\\d{6}`],[`90\\d{6}`],0,0,0,0,0,[`81\\d{6}`]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}`],[`9[1-6]\\d{7}`]]],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`,[[`5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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]|[67]\\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`,[`[67]`],`0$1`]],`0`,0,0,0,0,0,[[`(?:870|9[2-47-9]\\d)\\d{5}`,[8]],[`4(?:[46]\\d|5[1-9])\\d{5}|(?:3|[67]\\d)\\d{7}`],[`(?:800|90\\d)\\d{5}`,[8]]]],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`,0,0,0,0,0,[[`(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}`],[`562\\d{5}|(?:6\\d|7[16-9])\\d{6}`],[`800\\d{5}`],[`90[056]\\d{5}`],0,0,[`803\\d{5}`],0,[`3[08]\\d{6}`],[`808\\d{5}`]]],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`,0,0,0,0,0,[[`(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}`,[8]],[`6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}`,[8]],[`80(?:[0-2578]|9\\d)\\d{5}`],[`9(?:4[1568]|5[178])\\d{5}`,[8]],0,0,[`77[1-9]\\d{5}`,[8]],0,[`78[1-49]\\d{5}`,[8]]]],MF:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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`,0,0,[[`2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}`],[`3[2-9]\\d{7}`],0,0,0,0,0,0,[`22\\d{7}`]]],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`,0,0,0,0,0,[[`(?:247|528|625)\\d{4}`],[`(?:(?:23|54)5|329|45[35-8])\\d{4}`],0,0,0,0,0,0,[`635\\d{4}`]]],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`,0,0,0,0,0,[[`(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}`],[`7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}`],[`800\\d{5}`],[`5\\d{7}`],0,0,0,0,0,[`8(?:0[1-9]|[1-9]\\d)\\d{5}`]]],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]],0,0,0,0,0,0,[[`2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-59]))\\d{5}`],[`2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[0-3]|[679]\\d|8[2-59])\\d{6}`],[`80\\d{6}`]]],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`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`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`,0,0,0,0,0,[[`(?:1(?:(?:12|[28]\\d|3[56]|7[3-6]|9[0-6])\\d|4(?:2[29]|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|22|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5(?:2\\d|470))|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:3\\d\\d|4[67]0|8(?:[01459]\\d|8))))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}`,[6,7,8,9]],[`(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}`,[7,8,9,10]],[`80080(?:0[1-9]|2\\d)\\d{3}`,[10]],0,0,0,0,0,[`1333\\d{4}`,[8]]]],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`11|2[16]`],`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`,0,0,0,0,0,[[`[12](?:2[1-3]|(?:3[2-8]|4[2-68]|5[1-4689])\\d)\\d{5,6}|7(?:0(?:[0-5]\\d|7[078]|80)|128)\\d{4}|[12]27\\d{6}|(?:11|2[16]|5[368])\\d{6}`],[`(?:87[01]|92[0139])\\d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])\\d{6}`,[8]],0,0,0,0,0,0,[`712[0-79]\\d{4}|7(?:1[013-9]|[5-79]\\d)\\d{5}`,[8]]]],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]`]]],0,0,0,0,0,0,[[`(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}`,[8]],[`6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}`,[8]],[`0800\\d{3}`,[7]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`,[[`670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}`],[``],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],MQ:[`596`,`00`,`7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:6(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|89\\d)|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}`],[`(?:69[67]\\d\\d|7091[0-3])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}`]]],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]`]]],0,0,0,0,0,0,[[`(?:25[08]|35\\d|45[1-7])\\d{5}`],[`[2-4][0-46-9]\\d{6}`],[`800\\d{5}`]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`,[[`6644(?:1[0-3]|91)\\d{4}`],[`664(?:3(?:49|9[1-6])|49[2-6])\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]],0,0,0,0,0,0,[[`20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}`],[`(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}`],[`800(?:02|[3467]\\d)\\d{3}`],[`5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}`],0,0,[`501\\d{5}`],[`7117\\d{4}`],[`3550\\d{4}`]]],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,[[`(?:2(?:[0346-8]\\d|1[0-8])|4(?:[013568]\\d|2[0-24-8]|71|90)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}`,[7,8]],[`5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-7]|3[013]))\\d{5}`,[8]],[`802\\d{7}|80[0-2]\\d{4}`,[7,10]],[`30\\d{5}`,[7]],0,0,0,[`219\\d{4}`,[7]],[`3(?:20|9\\d)\\d{4}`,[7]]],`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,[[`(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}`,[7]],[`(?:46[46]|[79]\\d\\d)\\d{4}`,[7]],[`800\\d{7}`,[10]],[`900\\d{7}`,[10]],0,0,[`4(?:0[01]|50)\\d{4}`,[7]]],`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{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-37-9]`],`0$1`]],`0`,0,0,0,0,0,[[`1[2-9]\\d{5}`,[7]],[`111\\d{6}|(?:2[12]|31|77|[89][89])\\d{7}`,[9]]]],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,[[`(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}`],[`(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}`],[`8(?:00|88)\\d{7}`],[`900\\d{7}`],[`500\\d{7}`],0,0,0,0,[`300\\d{7}`]],`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`,0,0,0,0,0,[[`427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}`,[8,9]],[`1(?:(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|9\\d{7,8})|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]|8[02-5]))|(?:[26]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}`,[9,10]],[`1[378]00\\d{6}`,[10]],[`1600\\d{6}`,[10]],0,0,0,0,[`15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}`,[10]]]],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`]]],0,0,0,0,0,0,[[`2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}`,[8]],[`8[2-79]\\d{7}`,[9]],[`800\\d{6}`,[9]]]],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`,0,0,0,0,0,[[`64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}`],[`(?:60|8[1245])\\d{7}`,[9]],[`80\\d{7}`,[9]],[`8701\\d{5}`,[9]],0,0,0,0,[`8(?:3\\d\\d|86)\\d{5}`]]],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]],0,0,0,0,0,0,[[`(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}`],[`(?:[579]\\d|8[0-79])\\d{4}`],[`050\\d{3}`],[`36\\d{4}`]]],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[0467]`]]],0,0,0,0,0,0,[[`2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}`],[`(?:23|7[0467]|[89]\\d)\\d{6}`],[`08\\d{6}`],[`09\\d{6}`]]],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`,0,0,[[`(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}`],[`(?:14|3[58])\\d{4}`]]],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`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`,0,0,0,0,0,[[`20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}`,[10]],[`(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}`,[10]],[`800\\d{7,11}`],0,0,0,[`700\\d{7,11}`]]],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]],0,0,0,0,0,0,[[`2\\d{7}`],[`(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}`],[`1800\\d{4}`]]],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`,0,0,0,0,0,[[`(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}`,[9]],[`(?:6[1-58]|970\\d)\\d{7}`,[9,11]],[`800\\d{4,7}`,[7,8,9,10]],[`90[069]\\d{4,7}`,[7,8,9,10]],0,0,[`140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d`,[5,6,9]],[`66\\d{7}`,[9]],[`(?:85|91)\\d{7}`,[9]]]],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]`,[[`(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-46-9]|7[0-8])\\d{6}`,[8]],[`[49]\\d{7}`,[8]],[`80[01]\\d{5}`,[8]],[`82[09]\\d{5}`,[8]],[`880\\d{5}`,[8]],[`81[23]\\d{5}`,[8]],[`(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}`],0,[`85[0-5]\\d{5}`,[8]],[`810(?:0[0-6]|[2-8]\\d)\\d{3}`,[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`,0,0,0,0,0,[[`(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}`,[8]],[`9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])\\d{7}`,[10]],[`1(?:66001|800\\d\\d)\\d{5}`,[11]]]],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]],0,0,0,0,0,0,[[`444\\d{4}`],[`(?:222|55[3-9]|666|777|8\\d\\d|999)\\d{4}`]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,[[`[47]\\d{3}`,[4]],[`(?:[56]|888[1-9])\\d{3}`]]],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,[[`240\\d{5}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}`,[8]],[`2(?:[0-27-9]\\d|6)\\d{6,7}|2(?:1\\d|75)\\d{5}`,[8,9,10]],[`508\\d{6,7}|80\\d{6,8}`,[8,9,10]],[`(?:1[13-57-9]\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}`,[7,8,9,10]],[`70\\d{7}`,[9]],0,[`8(?:1[16-9]|22|3\\d|4[045]|5[459]|6[235-9]|7[0-3579]|90)\\d{2,7}`]],`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]`]]],0,0,0,0,0,0,[[`2[1-6]\\d{6}`,[8]],[`(?:1505|90[1-9]\\d)\\d{4}|(?:7[124-9]|9[1-9])\\d{6}`,[8]],[`8007\\d{4,5}|(?:500|800[05])\\d{4}`],[`900\\d{5}`,[8]]]],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`]]],0,0,0,0,0,0,[[`(?:1(?:0\\d|1[0479]|2[37]|3[0137]|4[147]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[0147-9]\\d|[25][0-5]|33|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}`,[7]],[`(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}`,[7,8]],[`800\\d{4,5}|(?:00800|800\\d)\\d{6}`],[`(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}`,[7]]]],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,[[`(?:(?:(?:4[34]|5[14])[0-8]|687)\\d|7(?:173|(?:3[0-8]|55)\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}`,[8]],[`9\\d{8}`,[9]],[`800\\d{5}`,[8]],[`805\\d{5}`,[8]],[`80[24]\\d{5}`,[8]],0,0,0,0,[`801\\d{5}`,[8]]],`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`]]],0,0,0,0,0,0,[[`4(?:0[4-689]|9[4-68])\\d{5}`,[8]],[`8[7-9]\\d{6}`,[8]],[`80[0-5]\\d{6}`,[9]],0,0,0,[`44\\d{4}`,[6]],0,[`499\\d{5}`,[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,[[`(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}`,[7]],[`(?:7\\d|8[1-48])\\d{6}`,[8]],[`180\\d{4}`,[7]],0,0,0,0,[`27[01]\\d{4}`,[7]],[`2(?:0[0-57]|7[568])\\d{4}`,[7]]],`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`,0,0,0,0,0,[[`(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}`,[6,8,9,10]],[`(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}`,[10]],[`1800\\d{7,9}`,[11,12,13]]]],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`,0,0,0,0,0,[[`(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?: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]))[2-9]\\d{5,6}`,[9,10]],[`3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}`,[10]],[`800\\d{5}(?:\\d{3})?`,[8,11]],[`900\\d{5}`,[8]],[`122\\d{6}`,[9]],0,[`(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}`,[11,12]]]],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`,[`30|(?: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`,`30|(?: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`]]],0,0,0,0,0,0,[[`(?:30|47\\d\\d)\\d{5}|(?: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])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))`,[7,9]],[`21(?:1[013-5]|2\\d|3[1-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}`,[9]],[`800\\d{6,7}`,[9,10]],[`70[01346-8]\\d{6}`,[9]],0,0,[`804\\d{6}`,[9]],[`64\\d{4,7}`,[6,7,8,9]],[`39\\d{7}`,[9]],[`801\\d{6}`,[9]]]],PM:[`508`,`00`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`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`,0,0,0,0,0,[[`80[6-9]\\d{6}|(?:[236-9]\\d|4[1-35-9]|5[0-47-9])\\d{4}`],[`708(?:4[0-5]|5[0-6])\\d{4}|(?:[236-9]\\d|4[02-489]|5[02-9])\\d{4}`],[`80[0-5]\\d{6}`,[9]],[`8[129]\\d{7}`,[9]]]],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`,[[`(?:787|939)[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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],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`,0,0,0,0,0,[[`(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}`,[8]],[`5[69]\\d{7}`,[9]],[`1800\\d{6}`,[10]],0,0,0,0,0,0,[`1700\\d{6}`,[10]]]],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]`]]],0,0,0,0,0,0,[[`2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}`],[`6(?:[06]92(?:30|9\\d)|[35]92(?:[049]\\d|3[034]))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}`],[`80[02]\\d{6}`],[`(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}`],[`884[0-4689]\\d{5}`],[`600\\d{6}|6[06]92(?:0\\d|3[349]|49)\\d{3}`],[`70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}`],[`6(?:222\\d|89(?:00|88|99))\\d{4}`],[`30\\d{7}`],[`80(?:8\\d|9[1579])\\d{5}`]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]],0,0,0,0,0,0,[[`(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}`],[`(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}`]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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`,[`3[289]|4[246-8]|61|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-7])`],`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`,0,0,0,0,0,[[`(?:3[289]|4[246-8]|61|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:[14-68]\\d|2[4-68]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:1\\d|3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}`,[7,8,9]],[`9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])\\d{6}`,[9]],[`9800\\d{5,7}`,[9,10,11]],0,0,0,[`[245]0\\d{6,7}|[36-9]0\\d{4,7}`,[6,7,8,9]],0,[`8700[0-4]\\d{4}`,[9]]]],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[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]],0,0,0,0,0,0,[[`4(?:(?:[014]\\d\\d|999)\\d|2022)\\d{3}`,[8]],[`[35-7]\\d{7}`,[8]],[`800\\d{4}|(?:0080[01]|800)\\d{6}`,[7,9,11]],0,0,0,0,[`2[136]\\d{5}`,[7]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|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,[[`[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d`],[`(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}`,[9]],[`800\\d{6}`,[9]],[`90[0136]\\d{6}`,[9]],0,0,[`(?:37\\d|80[578])\\d{6}`,[9]],0,0,[`801\\d{6}`,[9]]],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`,0,0,0,0,0,[[`(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}`,[7,8,9,10,11,12]],[`6(?:[0-689]|7\\d)\\d{6,7}`,[8,9,10]],[`800\\d{3,9}`],[`(?:78\\d|90[0169])\\d{3,7}`,[6,7,8,9,10]],0,0,[`7[06]\\d{4,10}`]]],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,`[3489]`,[[`(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`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`,0,0,0,0,0,[[`(?:06|2[23568]\\d)\\d{6}`],[`7[237-9]\\d{7}`,[9]],[`800\\d{6}`,[9]],[`900\\d{6}`,[9]]]],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[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{4})`,`$1 $2 $3`,[`8`]]],`0`,0,0,0,0,0,[[`1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}`,[9]],[`579[0-8]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}`,[9]],[`800\\d{7}`,[10]],[`925\\d{6}`,[9]],0,0,0,0,0,[`920\\d{6}`,[9]]]],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]],0,0,0,0,0,0,[[`(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}`,[5]],[`48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}`],[`1[38]\\d{3}`,[5]],0,0,0,0,0,[`5[12]\\d{3}`,[5]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,[[`4[2-46]\\d{5}`],[`2[125-8]\\d{5}`],[`800[08]\\d{3}`],[`85\\d{5}`],0,0,0,0,[`971\\d{4}|(?:64|95)\\d{5}`]],`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`,0,0,0,0,0,[[`1(?:5\\d|8[35-7])\\d{6}`],[`(?:1[0-2]|9[0-3569])\\d{7}`]]],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,12],[[`(\\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`,0,0,0,0,0,[[`(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}`,[7,8,9]],[`7[02369]\\d{7}`,[9]],[`20\\d{4,7}`,[6,7,8,9]],[`649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}`,[7,8,9,10]],[`75[1-8]\\d{6}`,[9]],[`(?:25[245]|67[3-68])\\d{9}`,[12]],[`10[1-8]\\d{6}`,[9]],[`74[02-9]\\d{6}`,[9]],0,[`77[0-7]\\d{6}`,[9]]]],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-9]|[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`]]],0,0,0,0,0,0,[[`662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}`,[8]],[`80[1-9]\\d{5}|(?:8[1-9]|9[0-8])\\d{6}`,[8]],[`(?:18|8)00\\d{7}`,[10,11]],[`1900\\d{7}`,[11]],0,0,[`7000\\d{7}`,[11]],0,[`(?:3[12]\\d|666)\\d{5}`,[8]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`,[[`2(?:[0-57-9]\\d|6[4-9])\\d\\d`],[`[56]\\d{4}`,[5]],0,0,0,0,0,0,[`262\\d\\d`,[5]]]],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[013]|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,[[`(?:[1-357][2-8]|4[24-8])\\d{6}`,[8]],[`65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[013]|51|6[489])\\d{6}`,[8]],[`80\\d{4,6}`,[6,7,8]],[`89[1-3]\\d{2,5}|90\\d{4,6}`],0,0,0,0,[`(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}`,[8]]],`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`,[[`79\\d{6}`,[8]],[`[49]\\d{7}`,[8]],[`80[01]\\d{5}`,[8]],[`82[09]\\d{5}`,[8]],[`880\\d{5}`,[8]],[`81[23]\\d{5}`,[8]],[`(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}`],0,[`85[0-5]\\d{5}`,[8]],[`810(?:0[0-6]|[2-8]\\d)\\d{3}`,[8]]]],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`,0,0,0,0,0,[[`(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d`],[`909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}`,[9]],[`800\\d{6}`,[9]],[`9(?:00|[78]\\d)\\d{6}`,[9]],0,0,[`96\\d{7}`,[9]],[`9090\\d{3}`,[7]],[`6(?:02|5[0-4]|9[0-6])\\d{6}`,[9]],[`8[5-9]\\d{7}`,[9]]]],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`,0,0,0,0,0,[[`22[2-4][2-9]\\d{4}`],[`(?:25|3[0-5]|66|7\\d|8[08]|9[09])\\d{6}`]]],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`,0,0,[[`0549(?:8[0157-9]|9\\d)\\d{4}`,[10]],[`6[16]\\d{6}`,[8]],0,[`7[178]\\d{6}`,[8]],0,0,0,0,[`5[158]\\d{6}`,[8]]]],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]`]]],0,0,0,0,0,0,[[`3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}`],[`7(?:[015-8]\\d|21|90)\\d{6}`],[`800\\d{6}`],[`88[4689]\\d{6}`],0,0,0,0,[`(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}`],[`81[02468]\\d{6}`]]],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{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`,0,0,0,0,0,[[`(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}`,[6,7]],[`(?:(?:15|(?:3[59]|4[89]|6\\d|7[0-35-9]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}`,[7,8,9]]]],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\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-9]`]]],0,0,0,0,0,0,[[`(?:2[1-3]|3[0-7]|4\\d|5[2-578])\\d{4}`,[6]],[`(?:6[08]|7[124-7]|8[1-9])\\d{5}`,[7]],[`80\\d{5}`,[7]],[`90\\d{5}`,[7]],0,0,0,0,[`(?:56|91\\d)\\d{4}`]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`,0,0,0,0,0,[[`1[89]\\d{7}`],[`(?:12|9[1257-9])\\d{7}`]]],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]],0,0,0,0,0,0,[[`22\\d{5}`],[`900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}`]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,[[`2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}`,[8]],[`[5-7]\\d{7}`,[8]],[`800\\d{8}|80[01]\\d{4}`,[7,11]],[`900\\d{4}(?:\\d{4})?`,[7,11]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`,[[`7215(?:4[2-8]|8[39]|9[056])\\d{4}`],[`7215(?:1[02]|2\\d|5[034679]|8[0-24-8])\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`,0,0,0,0,0,[[`21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}`],[`(?:50|9[1-9])\\d{7}`,[9]]]],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`]]],0,0,0,0,0,0,[[`[23][2-5]\\d{6}`,[8]],[`7[5-9]\\d{6}`,[8]],[`0800\\d{4}`,[8]],[`900\\d{6}`,[9]],0,0,0,0,[`70\\d{6}`,[8]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`,[[`8\\d{3}`]]],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`,[[`649(?:266|712|9(?:4\\d|50))\\d{4}`],[`649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,0,0,[`649(?:71[01]|966)\\d{4}`]]],TD:[`235`,`00|16`,`(?:22|[3689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,[[`22(?:[37-9]0|5[0-5]|6[89])\\d{4}`],[`(?:3[01]|[69]\\d|77|8[5-7])\\d{6}`]],`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]],0,0,0,0,0,0,[[`2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}`],[`(?:7[0-289]|9[0-36-9])\\d{6}`]]],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`,0,0,0,0,0,[[`(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}`,[8]],[`(?:(?:14|[89]\\d)\\d\\d|6(?:[1-6]\\d\\d|7(?:1[0-8]|2[4-7]|3[1-6])))\\d{5}`,[9]],[`(?:001800\\d|1800)\\d{6}`,[10,13]],[`1900\\d{6}`,[10]],0,0,0,0,[`6[08]\\d{7}`,[9]]]],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[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(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,[[`(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}`],[`(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])\\d{7}`]],`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7],0,0,0,0,0,0,0,[[`(?:2[2-4]|[34]\\d)\\d{2,5}`],[`7[2-4]\\d{2,5}`]]],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`]]],0,0,0,0,0,0,[[`(?:2[1-5]|3[1-9]|4[1-4])\\d{5}`,[7]],[`7[2-8]\\d{6}`,[8]],[`80\\d{5}`,[7]],[`90\\d{5}`,[7]],[`70\\d{5}`,[7]]]],TM:[`993`,`810`,`(?:[1-6]\\d|71)\\d{6}`,[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`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,[[`(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}`],[`(?:6\\d|71)\\d{6}`]],`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]],0,0,0,0,0,0,[[`81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}`],[`3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}`],[`8010\\d{4}`],[`88\\d{6}`],0,0,0,0,0,[`8[12]10\\d{4}`]]],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]`]]],0,0,0,0,0,0,[[`(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}`,[5]],[`(?:5(?:4[0-5]|5[4-6])|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}`,[7]],[`0800\\d{3}`,[7]],0,0,0,0,0,[`55[0-37-9]\\d{4}`,[7]]]],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-79]`],`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`,0,0,0,0,0,[[`(?:2(?:1[26]|[28][2468]|[3-5][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}`,[10]],[`561(?:011|61\\d)\\d{4}|5(?:[03-5]\\d|1[06]|24|6[24]|7[245]|9[46])\\d{7}`,[10]],[`8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})`,[10,12,13]],[`(?:8[89]8|900)\\d{7}`,[10]],[`592(?:21[12]|461)\\d{4}`,[10]],0,[`444\\d{4}`,[7]],[`512\\d{7}`,[10]],[`850\\d{7}`,[10]]]],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`,[[`868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}`],[`868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}`],[`868800\\d{4}|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]|3[23]|44|66|77|88)[2-9]\\d{6}`],[`868619\\d{4}`]]],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`]]],0,0,0,0,0,0,[[`2[02-9]\\d{3}`,[5]],[`(?:7[01]\\d|90)\\d{4}`,[6,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{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?: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,[[`(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}`,[8,9]],[`(?:40001[0-2]|9[0-8]\\d{4})\\d{3}`,[9]],[`80[0-79]\\d{6}|800\\d{5}`,[8,9]],[`20(?:[013-9]\\d\\d|2)\\d{4}`,[7,9]],[`99\\d{7}`,[9]],0,[`50[0-46-9]\\d{6}`,[9]],0,[`7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}`,[10,11]]],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`,0,0,0,0,0,[[`2[2-8]\\d{7}`],[`(?:6[1-35-9]|7[013-9])\\d{7}`],[`80[08]\\d{6}`],[`90\\d{7}`],0,0,0,0,[`41\\d{7}`],[`8(?:40|6[01])\\d{6}`]]],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,[[`(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}`,[9]],[`790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}`,[9]],[`800[1-8]\\d{5,6}`],[`900[239]\\d{5,6}`],0,0,0,0,[`89[1-579]\\d{6}`,[9]]],`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`,0,0,0,0,0,[[`20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}`],[`7280\\d{5}|7(?:[014-8]\\d|2[01467]|3[016]|9[0-589])\\d{6}`],[`800[1-3]\\d{5}`],[`90[1-3]\\d{6}`]]],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,[[`(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|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-57-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]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|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-3589]|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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\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,[[`(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}`,[8]],[`9[1-9]\\d{6}`,[8]],[`0004\\d{2,9}|(?:405|80[05])\\d{4}`,[6,7,8,9,10,11,12,13]],[`90[0-8]\\d{4}`,[7]],0,0,[`21\\d{2,3}`,[4,5]]],`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]],0,0,0,0,0,0,[[`(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}`],[`(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}`]]],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,12],0,0,0,0,0,0,`06698`,[[`06698\\d{1,6}`,[6,7,8,9,10,11]],[`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]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`,[[`784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}`],[`784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`],0,0,0,[`78451[0-2]\\d{4}`]]],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`,0,0,0,0,0,[[`(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}`],[`4(?:1[24-8]|2[246])\\d{7}`],[`800\\d{7}`],[`90[01]\\d{7}`],0,0,[`501\\d{7}`]]],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`,[[`284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}`],[`284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}`],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`,[[`340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}`],[``],[`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]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}`,[7,8,9,10],[[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|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`,0,0,0,0,0,[[`2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}`,[10]],[`121[0-3]\\d{5}|(?:160|(?:3\\d|7[06-9])\\d|5(?:[1689]\\d|2[238]|59)|8(?:[1-8]\\d|9[6-9])|9(?:[0-8]\\d|9[013-9]))\\d{6}`,[9]],[`1800\\d{4,6}|12(?:0[13]|28)\\d{4}`,[8,9,10]],[`1900\\d{4,6}`,[8,9,10]],0,0,[`[17]99\\d{4}|69\\d{5,6}`,[7,8]],0,[`672\\d{6}`,[9]]]],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]],0,0,0,0,0,0,[[`(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}`,[5]],[`(?:[58]\\d|7[0-7])\\d{5}`,[7]],[`81[18]\\d\\d`,[5]],0,0,0,[`(?:3[03]|900\\d)\\d{3}`],0,[`9(?:0[1-9]|1[01])\\d{4}`,[7]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]],0,0,0,0,0,0,[[`72\\d{4}`,[6]],[`(?:72|8[23])\\d{4}`,[6]],[`80[0-5]\\d{6}`,[9]],0,0,[`[48]0\\d{4}`,[6]],0,0,[`9[23]\\d{4}`,[6]]]],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`]]],0,0,0,0,0,0,[[`6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}`,[5,6]],[`(?:7[1-35-8]|8(?:[3-7]|9\\d{3}))\\d{5}`,[7,10]],[`800\\d{3}`,[6]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\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`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`,0,0,0,0,0,[[`38\\d{6,10}|(?:2[89]|39)(?:0\\d{5,6}|[1-9]\\d{5})`],[`4[3-9]\\d{6}`,[8]],[`800\\d{5}`,[8]],[`900\\d{5}`,[8]]]],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`,0,0,0,0,0,[[`78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}`,[7,8]],[`7[01378]\\d{7}`,[9]]]],YT:[`262`,`00`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?:0[0-467]|15|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])|7093[5-7])\\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`,0,0,0,0,0,[[`(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}`,[9]],[`(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:50[0-2]|[67]\\d\\d)\\d\\d|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}`,[5,6,7,8,9]],[`80\\d{7}`,[9]],[`(?:86[2-9]|9[0-2]\\d)\\d{6}`,[9]],0,0,[`861\\d{6,7}`,[9,10]],0,[`87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}`,[9]],[`860\\d{6}`,[9]]]],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`,0,0,0,0,0,[[`21[1-8]\\d{6}`],[`(?:[59][5-8]|7[5-9])\\d{7}`],[`800\\d{6}`],0,0,0,0,0,[`63\\d{7}`]]],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`,0,0,0,0,0,[[`(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}`],[`7(?:[1278]\\d|3[1-9])\\d{6}`,[9]],[`80(?:[01]\\d|20|8[0-8])\\d{3}`,[7]],0,0,0,0,0,[`86(?:1[12]|22|30|44|55|77|8[368])\\d{6}`,[10]]]]},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}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],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|5[12]`]],[`(\\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})|5(?:0\\d{3}|2[0-2]))\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],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 Kd(e,t){var n=Array.prototype.slice.call(t);return n.push(Gd),e.apply(this,n)}function qd(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Jd={}.constructor;function Yd(e){return e!=null&&e.constructor===Jd}var Xd=/^\d+$/;function Zd(e){return Xd.test(e)}function Qd(e){"@babel/helpers - typeof";return Qd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qd(e)}function $d(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ef(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,nf(r.key),r)}}function tf(e,t,n){return t&&ef(e.prototype,t),n&&ef(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nf(e){var t=rf(e,`string`);return Qd(t)==`symbol`?t:t+``}function rf(e,t){if(Qd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Qd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var af=`1.2.0`,of=`1.7.35`,sf=` ext. `,Z=function(){function e(t){$d(this,e),pf(t),this.metadata=t,_f.call(this,t)}return tf(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return!0}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){var n,r;if(e&&(Zd(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new cf(i,this)}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new cf(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[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(e){return this.numberingPlan.type(e)}},{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(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),cf=function(){function e(t,n){$d(this,e),this.globalMetadataObject=n,this.metadata=t,_f.call(this,n.metadata)}return tf(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new lf(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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(e){if(this.hasTypes()&&ff(this.types(),e))return new df(ff(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?sf:this.metadata[13]||sf}}])}(),lf=function(){function e(t,n){$d(this,e),this._format=t,this.metadata=n}return tf(e,[{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()&&!uf.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),uf=/^\(?\$1\)?$/,df=function(){function e(t,n){$d(this,e),this.type=t,this.metadata=n}return tf(e,[{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()}}])}();function ff(e,t){switch(t){case`FIXED_LINE`:return e[0];case`MOBILE`:return e[1];case`TOLL_FREE`:return e[2];case`PREMIUM_RATE`:return e[3];case`PERSONAL_NUMBER`:return e[4];case`VOICEMAIL`:return e[5];case`UAN`:return e[6];case`PAGER`:return e[7];case`VOIP`:return e[8];case`SHARED_COST`:return e[9]}}function pf(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Yd(e)||!Yd(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${Yd(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+mf(e)+`: `+e}.`)}var mf=function(e){return Qd(e)};function hf(e,t){var n=new Z(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function gf(e,t){return t.countries.hasOwnProperty(e)}function _f(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?qd(t,af)===-1?this.v2=!0:qd(t,of)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function vf(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=yf(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yf(e,t){if(e){if(typeof e==`string`)return bf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bf(e,t):void 0}}function bf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xf(e,t){for(var n=e.slice(),r=vf(t),i;!(i=r()).done;){var a=i.value;e.indexOf(a)<0&&n.push(a)}return n.sort(function(e,t){return e-t})}function Sf(e,t,n){return Cf(e,void 0,t,n)}function Cf(e,t,n,r){n&&(r=new Z(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return`IS_POSSIBLE`;if(t===`FIXED_LINE_OR_MOBILE`){if(!r.type(`FIXED_LINE`))return Cf(e,`MOBILE`,n,r);var o=r.type(`MOBILE`);o&&(a=xf(a,o.possibleLengths()))}else if(t&&!i)return`INVALID_LENGTH`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function wf(e,t,n){t===void 0&&(t={});var r=new Z(n);if(t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return Tf(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function Tf(e,t){switch(Sf(e,void 0,t)){case`IS_POSSIBLE`:return!0;default:return!1}}function Ef(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function Df(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Of(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Of(e,t){if(e){if(typeof e==`string`)return kf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kf(e,t):void 0}}function kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Af=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function jf(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new Z(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Ef(i,r.nationalNumberPattern())){if(Mf(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||Mf(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=Df(Af),o;!(o=a()).done;){var s=o.value;if(Mf(i,s,r))return s}}}}function Mf(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Ef(e,r.pattern())}function Nf(e,t,n){t||={};var r=new Z(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?jf(e,t,r.metadata)!==void 0:Ef(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var Pf=/^[A-Z]{2}$/;function Ff(e){return Pf.test(e)}var If=!1;function Lf(e,t){var n,r,i=new Z(t);return Ff(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,If&&i.isNonGeographicCallingCode(r)&&(n=`001`)),{country:n,callingCode:r}}function Rf(e,t,n){var r=new Z(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return zf(t,e,n)}):[]}function zf(e,t,n){var r=new Z(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Q=`0-90-9٠-٩۰-۹`,Bf=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,Vf=`++`,Hf=RegExp(`([`+Q+`])`);function Uf(e,t,n,r){if(t){var i=new Z(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(Hf);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function Wf(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else{var c=r[0];i=e.slice(c.length),s&&(a=r[1])}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix())}else l=r[0];return{nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return{nationalNumber:e}}function Gf(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Kf(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kf(e,t){if(e){if(typeof e==`string`)return qf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qf(e,t):void 0}}function qf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jf(e,t,n){for(var r=new Z(n),i=Gf(t),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(jf({phone:e,country:o},void 0,r.metadata))return o}}var Yf=!1;function Xf(e,t){var n=t.nationalNumber,r=t.metadata;if(Yf&&r.isNonGeographicCallingCode(e))return`001`;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Jf(n,i,r.metadata)}function Zf(e,t,n){var r=Wf(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Qf(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=Xf(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!$f(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Qf(e,t,n){return!(Ef(e,n.nationalNumberPattern())&&!Ef(t,n.nationalNumberPattern()))}function $f(e,t,n){switch(Sf(e,t,n)){case`TOO_SHORT`:case`INVALID_LENGTH`:return!1;default:return!0}}function ep(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?hf(t||n,i):r;if(e.indexOf(a)===0){var o=new Z(i);o.selectNumberingPlan(t||n||r);var s=e.slice(a.length),c=Zf(s,void 0,o).nationalNumber,l=Zf(e,void 0,o).nationalNumber;if(!Ef(l,o.nationalNumberPattern())&&Ef(c,o.nationalNumberPattern())||Sf(l,void 0,o)===`TOO_LONG`)return{countryCallingCode:a,number:s}}return{number:e}}function tp(e,t,n,r,i){if(!e)return{};var a;if(e[0]!==`+`){var o=Uf(e,t||n,r,i);if(o&&o!==e)a=!0,e=`+`+o;else{if(t||n||r){var s=ep(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return{countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return{number:e}}}if(e[1]===`0`)return{};for(var u=new Z(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++}return{}}function np(e){return e.replace(RegExp(`[${Bf}]+`,`g`),` `).trim()}var rp=/(\$\d)/;function ip(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(rp,t.nationalPrefixFormattingRule()):t.format());return r?np(a):a}var ap=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function op(e,t,n){var r=new Z(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(ap.test(r.IDDPrefix()))return r.IDDPrefix()}var sp=`;ext=`,cp=function(e){return`([${Q}]{1,${e}})`};function lp(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=sp+cp(t),m=a+c+o+cp(t)+s,h=a+l+o+cp(r)+s,g=u+cp(i)+`#`,_=d+f+o+cp(n)+s,v=d+`(?:,)+`+o+cp(r)+s;return p+`|`+m+`|`+h+`|`+g+`|`+_+`|`+v}var up=`[`+Q+`]{2}`,dp=`[`+Vf+`]{0,1}(?:[`+Bf+`]*[`+Q+`]){3,}[`+Bf+Q+`]*`,fp=RegExp(`^[`+Vf+`]{0,1}(?:[`+Bf+`]*[`+Q+`]){1,2}$`,`i`),pp=dp+`(?:`+lp()+`)?`,mp=RegExp(`^`+up+`$|^`+pp+`$`,`i`);function hp(e){return e.length>=2&&mp.test(e)}function gp(e){return fp.test(e)}function _p(e){var t=e.number,n=e.ext;if(!t)return``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return`tel:${t}${n?`;ext=`+n:``}`}var vp={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function yp(e,t,n,r){n=n?wp({},vp,n):vp;var i=new Z(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case`NATIONAL`:return o?(s=bp(o,e.carrierCode,`NATIONAL`,i,n),Sp(s,e.ext,i,n.formatExtension)):``;case`INTERNATIONAL`:return o?(s=bp(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,Sp(s,e.ext,i,n.formatExtension)):`+${a}`;case`E.164`:return`+${a}${o}`;case`RFC3966`:return _p({number:`+${a}${o}`,ext:e.ext});case`IDD`:if(!n.fromCountry)return;var c=Cp(o,e.carrierCode,a,n.fromCountry,i);return c?Sp(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function bp(e,t,n,r,i){var a=xp(r.formats(),e);return a?ip(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function xp(e,t){return Tp(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return Ef(t,e.pattern())})}function Sp(e,t,n,r){return t?r(e,t,n):e}function Cp(e,t,n,r,i){if(hf(r,i.metadata)===n){var a=bp(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=op(r,void 0,i.metadata);if(o)return`${o} ${n} ${bp(e,null,`INTERNATIONAL`,i)}`}function wp(){for(var e=1,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Tp(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Ep(e){"@babel/helpers - typeof";return Ep=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ep(e)}function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dp(Object(n),!0).forEach(function(t){kp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kp(e,t,n){return(t=Np(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ap(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Np(r.key),r)}}function Mp(e,t,n){return t&&jp(e.prototype,t),n&&jp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Np(e){var t=Pp(e,`string`);return Ep(t)==`symbol`?t:t+``}function Pp(e,t){if(Ep(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ep(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Fp=function(){function e(t,n,r){if(Ap(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(Yd(n)&&Yd(n.countries)){r=n;var i=t;if(!Ip.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=tp(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");pf(r);var s=Lf(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Mp(e,[{key:`setExt`,value:function(e){this.ext=e}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:Rf(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return wf(this,{v2:!0},this.getMetadata())}},{key:`isValid`,value:function(){return Nf(this,{v2:!0},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Z(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return jf(this,{v2:!0},this.getMetadata())}},{key:`format`,value:function(e,t){return yp(this,e,t?Op(Op({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),Ip=/^\+\d+$/;function Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lp(e)}function Rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Bp(r.key),r)}}function zp(e,t,n){return t&&Rp(e.prototype,t),n&&Rp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bp(e){var t=Vp(e,`string`);return Lp(t)==`symbol`?t:t+``}function Vp(e,t){if(Lp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Lp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Up(e,t,n){return t=Qp(t),Wp(e,Yp()?Reflect.construct(t,n||[],Qp(e).constructor):t.apply(e,n))}function Wp(e,t){if(t&&(Lp(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Gp(e)}function Gp(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Kp(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zp(e,t)}function qp(e){var t=typeof Map==`function`?new Map:void 0;return qp=function(e){if(e===null||!Xp(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Jp(e,arguments,Qp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zp(n,e)},qp(e)}function Jp(e,t,n){if(Yp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Zp(i,n.prototype),i}function Yp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yp=function(){return!!e})()}function Xp(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zp(e,t)}function Qp(e){return Qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qp(e)}var $p=function(e){function t(e){var n;return Hp(this,t),n=Up(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return Kp(t,e),zp(t)}(qp(Error)),em=RegExp(`(?:`+lp()+`)$`,`i`);function tm(e){var t=e.search(em);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(em),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function nm(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=rm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rm(e,t){if(e){if(typeof e==`string`)return im(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?im(e,t):void 0}}function im(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var am={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 om(e){return am[e]}function sm(e){for(var t=``,n=nm(e.split(``)),r;!(r=n()).done;){var i=r.value,a=om(i);a&&(t+=a)}return t}function cm(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e,t){if(e){if(typeof e==`string`)return um(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?um(e,t):void 0}}function um(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dm(e){for(var t=``,n=cm(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=fm(i,t)||``}return t}function fm(e,t,n){if(e===`+`){if(t){typeof n==`function`&&n(`end`);return}return`+`}return om(e)}var pm=`([`+Q+`]|[\\-\\.\\(\\)]?)`,mm=`^\\+`+pm+`*[`+Q+`]`+pm+`*$`,hm=new RegExp(mm,`g`),gm=Q,_m=`[`+gm+`]+((\\-)*[`+gm+`])*`,vm=`[a-zA-Z]+((\\-)*[`+gm+`])*`,ym=`^(`+_m+`\\.)*`+vm+`\\.?$`,bm=new RegExp(ym,`g`),xm=`tel:`,Sm=`;phone-context=`,Cm=`;isub=`;function wm(e){var t=e.indexOf(Sm);if(t<0)return null;var n=t+Sm.length;if(n>=e.length)return``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Tm(e){return e===null?!0:e.length===0?!1:hm.test(e)||bm.test(e)}function Em(e,t){var n=t.extractFormattedPhoneNumber,r=wm(e);if(!Tm(r))throw new $p(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else{i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(xm),o=a>=0?a+xm.length:0,s=e.indexOf(Sm);i+=e.substring(o,s)}var c=i.indexOf(Cm);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Dm=250,Om=RegExp(`[`+Vf+Q+`]`),km=RegExp(`[^`+Q+`#]+$`),Am=!1;function jm(e,t,n){t||={};var r=new Z(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new $p(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var i=Nm(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2)throw s===`TOO_SHORT`?new $p(`TOO_SHORT`):new $p(`NOT_A_NUMBER`);return{}}var c=Fm(a,t.defaultCountry,t.defaultCallingCode,r),l=c.country,u=c.nationalNumber,d=c.countryCallingCode,f=c.countryCallingCodeSource,p=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new $p(`INVALID_COUNTRY`);return{}}if(!u||u.length<2){if(t.v2)throw new $p(`TOO_SHORT`);return{}}if(u.length>17){if(t.v2)throw new $p(`TOO_LONG`);return{}}if(t.v2){var m=new Fp(d,u,r.metadata);return l&&(m.country=l),p&&(m.carrierCode=p),o&&(m.ext=o),m.__countryCallingCodeSource=f,m}var h=(t.extended?r.hasSelectedNumberingPlan():l)?Ef(u,r.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:d,carrierCode:p,valid:h,possible:h?!0:!!(t.extended===!0&&r.possibleLengths()&&Tf(u,r)),phone:u,ext:o}:h?Pm(l,u,o):{}}function Mm(e,t,n){if(e){if(e.length>Dm){if(n)throw new $p(`TOO_LONG`);return}if(t===!1)return e;var r=e.search(Om);if(!(r<0))return e.slice(r).replace(km,``)}}function Nm(e,t,n){var r=Em(e,{extractFormattedPhoneNumber:function(e){return Mm(e,n,t)}});if(!r)return{};if(!hp(r))return gp(r)?{error:`TOO_SHORT`}:{};var i=tm(r);return i.ext?i:{number:r}}function Pm(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Fm(e,t,n,r){var i=tp(dm(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,c;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))t?(c=t,r.selectNumberingPlan(t),o=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),o=n,Am&&r.isNonGeographicCallingCode(o)&&(c=`001`));else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:o};var l=Zf(dm(s),void 0,r),u=l.nationalNumber,d=l.carrierCode,f=Xf(o,{nationalNumber:u,metadata:r});return f&&(c=f,f===`001`||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:d}}function Im(e){"@babel/helpers - typeof";return Im=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Im(e)}function Lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lm(Object(n),!0).forEach(function(t){zm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zm(e,t,n){return(t=Bm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e){var t=Vm(e,`string`);return Im(t)==`symbol`?t:t+``}function Vm(e,t){if(Im(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Im(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hm(e,t,n){return jm(e,Rm(Rm({},t),{},{v2:!0}),n)}function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Um(e)}function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wm(Object(n),!0).forEach(function(t){Km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Km(e,t,n){return(t=qm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qm(e){var t=Jm(e,`string`);return Um(t)==`symbol`?t:t+``}function Jm(e,t){if(Um(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Um(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ym(e,t){return eh(e)||$m(e,t)||Zm(e,t)||Xm()}function Xm(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zm(e,t){if(e){if(typeof e==`string`)return Qm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qm(e,t):void 0}}function Qm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $m(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function eh(e){if(Array.isArray(e))return e}function th(e){var t=Ym(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=Gm({defaultCountry:r},s));else if(Yd(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return{text:o,options:s,metadata:c}}function nh(e){"@babel/helpers - typeof";return nh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nh(e)}function rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rh(Object(n),!0).forEach(function(t){ah(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ah(e,t,n){return(t=oh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oh(e){var t=sh(e,`string`);return nh(t)==`symbol`?t:t+``}function sh(e,t){if(nh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ch(e,t,n){t&&t.defaultCountry&&!gf(t.defaultCountry,n)&&(t=ih(ih({},t),{},{defaultCountry:void 0}));try{return Hm(e,t,n)}catch(e){if(!(e instanceof $p))throw e}}function lh(){var e=th(arguments),t=e.text,n=e.options,r=e.metadata;return ch(t,n,r)}function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uh(e)}function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dh(Object(n),!0).forEach(function(t){ph(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ph(e,t,n){return(t=mh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e){var t=hh(e,`string`);return uh(t)==`symbol`?t:t+``}function hh(e,t){if(uh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gh(){var e=th(arguments),t=e.text,n=e.options,r=e.metadata;n=fh(fh({},n),{},{extract:!1});try{var i=Hm(t,n,r),a=new Z(r);a.selectNumberingPlan(i.country||i.countryCallingCode);var o=Sf(i.nationalNumber,void 0,a);if(o!==`IS_POSSIBLE`)return o}catch(e){if(e instanceof $p)return e.message;throw e}}function _h(e){"@babel/helpers - typeof";return _h=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_h(e)}function vh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xh(r.key),r)}}function bh(e,t,n){return t&&yh(e.prototype,t),n&&yh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xh(e){var t=Sh(e,`string`);return _h(t)==`symbol`?t:t+``}function Sh(e,t){if(_h(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_h(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ch=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;vh(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return bh(e,[{key:`reset`,value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits=``,this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:`resetNationalSignificantNumber`,value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:`update`,value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:`initCountryAndCallingCode`,value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:`setCountry`,value:function(e){this.country=e,this.onCountryChange(e)}},{key:`setCallingCode`,value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:`startInternationalNumber`,value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:`appendDigits`,value:function(e){this.digits+=e}},{key:`appendNationalSignificantNumberDigits`,value:function(e){this.nationalSignificantNumber+=e}},{key:`getNationalDigits`,value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:`getDigitsWithoutInternationalPrefix`,value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])}();function wh(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Th(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Th(e,t){if(e){if(typeof e==`string`)return Eh(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eh(e,t):void 0}}function Eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Dh=RegExp(`x`);function Oh(e,t){if(t<1)return``;for(var n=``;t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function kh(e,t){return e[t]===`)`&&t++,Ah(e.slice(0,t))}function Ah(e){for(var t=[],n=0;n<e.length;)e[n]===`(`?t.push(n):e[n]===`)`&&t.pop(),n++;var r=0,i=``;t.push(e.length);for(var a=0,o=t;a<o.length;a++){var s=o[a];i+=e.slice(r,s),r=s+1}return i}function jh(e,t,n){for(var r=wh(n.split(``)),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(Dh)<0)return;t=e.search(Dh),e=e.replace(Dh,a)}return[e,t]}function Mh(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber))return Ph(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function Nh(e,t){return Sf(e,void 0,t)===`IS_POSSIBLE`}function Ph(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=Fh(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(o)return o}return Fh(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function Fh(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=ip(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?o=e.nationalPrefix+a(t)+o:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(o=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+` `+o)),Ih(o,e))return o}function Ih(e,t){return sm(e)===t.getNationalDigits()}function Lh(e){"@babel/helpers - typeof";return Lh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lh(e)}function Rh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Vh(r.key),r)}}function Bh(e,t,n){return t&&zh(e.prototype,t),n&&zh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vh(e){var t=Hh(e,`string`);return Lh(t)==`symbol`?t:t+``}function Hh(e,t){if(Lh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Lh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Uh=function(){function e(){Rh(this,e)}return Bh(e,[{key:`parse`,value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),this.context.length!==1)throw Error(`Non-finalized contexts left when pattern parse ended`);var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:`|`,args:n.concat([qh(r)])};if(r.length===0)throw Error(`Pattern is required`);return r.length===1?r[0]:r}},{key:`startContext`,value:function(e){this.context.push(e)}},{key:`endContext`,value:function(){this.context.pop()}},{key:`getContext`,value:function(){return this.context[this.context.length-1]}},{key:`parsePattern`,value:function(e){if(!e)throw Error(`Pattern is required`);var t=e.match(Kh);if(!t){if(Gh.test(e))throw Error(`Illegal characters found in a pattern: ${e}`);this.getContext().instructions=this.getContext().instructions.concat(e.split(``));return}var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case`(?:`:r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case`)`:if(!this.getContext().or)throw Error(`")" operator must be preceded by "(?:" operator`);if(r&&this.parsePattern(r),this.getContext().instructions.length===0)throw Error(`No instructions found after "|" operator in an "or" group`);var a=this.getContext().branches;a.push(qh(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:`|`,args:a});break;case`|`:if(!this.getContext().or)throw Error(`"|" operator can only be used inside "or" groups`);if(r&&this.parsePattern(r),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw Error(`"branches" not found in an "or" group context`);this.getContext().branches.push(qh(this.getContext().instructions)),this.getContext().instructions=[];break;case`[`:r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case`]`:if(!this.getContext().oneOfSet)throw Error(`"]" operator must be preceded by "[" operator`);this.endContext(),this.getContext().instructions.push({op:`[]`,args:Wh(r)});break;default:throw Error(`Unknown operator: ${n}`)}i&&this.parsePattern(i)}}])}();function Wh(e){for(var t=[],n=0;n<e.length;){if(e[n]===`-`){if(n===0||n===e.length-1)throw Error(`Couldn't parse a one-of set pattern: ${e}`);for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var Gh=/[\(\)\[\]\?\:\|]/,Kh=RegExp(`(\\||\\(\\?\\:|\\)|\\[|\\])`);function qh(e){return e.length===1?e[0]:e}function Jh(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Yh(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yh(e,t){if(e){if(typeof e==`string`)return Xh(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xh(e,t):void 0}}function Xh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zh(e){"@babel/helpers - typeof";return Zh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Zh(e)}function Qh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,tg(r.key),r)}}function eg(e,t,n){return t&&$h(e.prototype,t),n&&$h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tg(e){var t=ng(e,`string`);return Zh(t)==`symbol`?t:t+``}function ng(e,t){if(Zh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Zh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rg=function(){function e(t){Qh(this,e),this.matchTree=new Uh().parse(t)}return eg(e,[{key:`match`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).allowOverflow;if(!e)throw Error(`String is required`);var n=ig(e.split(``),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!(n&&n.overflow&&!t))return n}}])}();function ig(e,t,n){if(typeof t==`string`){var r=e.join(``);return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var o=t[a],s=ig(i,o,n&&a===t.length-1);if(!s)return;if(s.overflow)return s;if(s.match){if(i=i.slice(s.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else if(s.partialMatch)return{partialMatch:!0};else throw Error(`Unsupported match result:
10
+ ${JSON.stringify(s,null,2)}`);a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case`|`:for(var c,l=Jh(t.args),u;!(u=l()).done;){var d=u.value,f=ig(e,d,n);if(f){if(f.overflow)return f;if(f.match)return{match:!0,matchedChars:f.matchedChars};if(f.partialMatch)c=!0;else throw Error(`Unsupported match result:
11
+ ${JSON.stringify(f,null,2)}`)}}return c?{partialMatch:!0}:void 0;case`[]`:for(var p=Jh(t.args),m;!(m=p()).done;){var h=m.value;if(e[0]===h)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[h]}}return;default:throw Error(`Unsupported instruction tree: ${t}`)}}function ag(e){"@babel/helpers - typeof";return ag=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ag(e)}function og(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sg(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sg(e,t){if(e){if(typeof e==`string`)return cg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cg(e,t):void 0}}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fg(r.key),r)}}function dg(e,t,n){return t&&ug(e.prototype,t),n&&ug(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fg(e){var t=pg(e,`string`);return ag(t)==`symbol`?t:t+``}function pg(e,t){if(ag(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ag(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mg=`9`,hg=Oh(mg,15),gg=/[- ]/,_g=!0,vg=_g&&function(){return/\[([^\[\]])*\]/g},yg=_g&&function(){return/\d(?=[^,}][^,}])/g},bg=RegExp(`[`+Bf+`]*\\$1[`+Bf+`]*(\\$\\d[`+Bf+`]*)*$`),xg=3,Sg=function(){function e(t){t.state;var n=t.metadata;lg(this,e),this.metadata=n,this.resetFormat()}return dg(e,[{key:`resetFormat`,value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:`reset`,value:function(e,t){this.resetFormat(),e?(this.isNANP=e.callingCode()===`1`,this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:`format`,value:function(e,t){var n=this;if(Nh(t.nationalSignificantNumber,this.metadata))for(var r=og(this.matchingFormats),i;!(i=r()).done;){var a=i.value,o=Mh(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(o)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(o.replace(/\d/g,`x`),t),this.populatedNationalNumberTemplate=o,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(`x`),o}return this.formatNationalNumberWithNextDigits(e,t)}},{key:`formatNationalNumberWithNextDigits`,value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:`narrowDownMatchingFormats`,value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,a=n,o=a.length-xg;o<0&&(o=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,a,o)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:`formatSuits`,value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:`formatMatches`,value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(r===0)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<xg)try{return new rg(i).match(t,{allowOverflow:!0})!==void 0}catch(e){return console.error(e),!0}return RegExp(`^(${i})`).test(t)}},{key:`getFormatFormat`,value:function(e,t){return t?e.internationalFormat():e.format()}},{key:`chooseFormat`,value:function(e){for(var t=this,n=function(){var n=a.value;return t.chosenFormat===n?0:bg.test(t.getFormatFormat(n,e.international))?t.createTemplateForFormat(n,e)?(t.chosenFormat=n,0):(t.matchingFormats=t.matchingFormats.filter(function(e){return e!==n}),1):1},r,i=og(this.matchingFormats.slice()),a;!(a=i()).done&&(r=n(),r!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:`createTemplateForFormat`,value:function(e,t){if(!(_g&&e.pattern().indexOf(`|`)>=0)){var n=this.getTemplateForFormat(e,t);if(n)return this.setNationalNumberTemplate(n,t),!0}}},{key:`getSeparatorAfterNationalPrefix`,value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&gg.test(e.nationalPrefixFormattingRule())?` `:``}},{key:`getInternationalPrefixBeforeCountryCallingCode`,value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&t.spacing===!1?n:n+` `:r?``:`+`}},{key:`getTemplate`,value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):``;n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(`x`,t+1),n++;return kh(this.template,t+1)}}},{key:`setNationalNumberTemplate`,value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,`x`)+Oh(`x`,t.callingCode.length)+` `+e:this.template=e}},{key:`getTemplateForFormat`,value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,a=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=e.pattern();_g&&(o=o.replace(vg(),`\\d`).replace(yg(),`\\d`));var s=hg.match(o)[0];if(!(n.length>s.length)){var c=RegExp(`^`+o+`$`),l=n.replace(/\d/g,mg);c.test(l)&&(s=l);var u=this.getFormatFormat(e,r),d;if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var f=u.replace(rp,e.nationalPrefixFormattingRule());if(sm(e.nationalPrefixFormattingRule())===(i||``)+sm(`$1`)&&(u=f,d=!0,i))for(var p=i.length;p>0;)u=u.replace(/\d/,`x`),p--}var m=s.replace(new RegExp(o),u).replace(new RegExp(mg,`g`),`x`);return d||(a?m=Oh(`x`,a.length)+` `+m:i&&(m=Oh(`x`,i.length)+this.getSeparatorAfterNationalPrefix(e)+m)),r&&(m=np(m)),m}}},{key:`formatNextNationalNumberDigits`,value:function(e){var t=jh(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(!t){this.resetFormat();return}return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],kh(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:`shouldTryNationalPrefixFormattingRule`,value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}])}();function Cg(e){"@babel/helpers - typeof";return Cg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Cg(e)}function wg(e,t){return kg(e)||Og(e,t)||Eg(e,t)||Tg()}function Tg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eg(e,t){if(e){if(typeof e==`string`)return Dg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dg(e,t):void 0}}function Dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Og(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kg(e){if(Array.isArray(e))return e}function Ag(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ng(r.key),r)}}function Mg(e,t,n){return t&&jg(e.prototype,t),n&&jg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ng(e){var t=Pg(e,`string`);return Cg(t)==`symbol`?t:t+``}function Pg(e,t){if(Cg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Cg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Fg=`[`+Bf+Q+`]+`,Ig=RegExp(`^`+Fg+`$`,`i`),Lg=`(?:[`+Vf+`][`+Bf+Q+`]*|[`+Bf+Q+`]+)`,Rg=RegExp(`[^`+Bf+Q+`]+.*$`),zg=/[^\d\[\]]/,Bg=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;Ag(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return Mg(e,[{key:`input`,value:function(e,t){var n=wg(Ug(e),2),r=n[0],i=n[1],a=sm(r),o;return i&&(t.digits||(t.startInternationalNumber(void 0,void 0),a||(o=!0))),a&&this.inputDigits(a,t),{digits:a,justLeadingPlus:o}}},{key:`inputDigits`,value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:`isWaitingForCountryCallingCode`,value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:`extractCountryCallingCode`,value:function(e){var t=tp(`+`+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:`reset`,value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&zg.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:`extractNationalSignificantNumber`,value:function(e,t){if(this.hasSelectedNumberingPlan){var n=Wf(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,a=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,a,i,e,t),!0}}},{key:`extractAnotherNationalSignificantNumber`,value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=Wf(e,this.metadata),i=r.nationalPrefix,a=r.nationalNumber,o=r.carrierCode;if(a!==t)return this.onExtractedNationalNumber(i,o,a,e,n),!0}}},{key:`onExtractedNationalNumber`,value:function(e,t,n,r,i){var a=!1,o,s=r.lastIndexOf(n);if(s<0||s!==r.length-n.length)a=!0;else{var c=r.slice(0,s);c&&c!==e&&(o=c)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:`reExtractNationalSignificantNumber`,value:function(e){if(this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)}))return!0;if(this.extractIddPrefix(e)||this.fixMissingPlus(e))return this.extractCallingCodeAndNationalSignificantNumber(e),!0}},{key:`extractIddPrefix`,value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!(t||n)){var i=Uf(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==r)return e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:`fixMissingPlus`,value:function(e){if(!e.international){var t=ep(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:`startInternationalNumber`,value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:`extractCallingCodeAndNationalSignificantNumber`,value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}])}();function Vg(e){var t=e.search(Lg);if(!(t<0)){e=e.slice(t);var n;return e[0]===`+`&&(n=!0,e=e.slice(1)),e=e.replace(Rg,``),n&&(e=`+`+e),e}}function Hg(e){var t=Vg(e)||``;return t[0]===`+`?[t.slice(1),!0]:[t]}function Ug(e){var t=wg(Hg(e),2),n=t[0],r=t[1];return Ig.test(n)||(n=``),[n,r]}function Wg(e){"@babel/helpers - typeof";return Wg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Wg(e)}function Gg(e,t){return Xg(e)||Yg(e,t)||qg(e,t)||Kg()}function Kg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg(e,t){if(e){if(typeof e==`string`)return Jg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jg(e,t):void 0}}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yg(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Xg(e){if(Array.isArray(e))return e}function Zg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Qg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,e_(r.key),r)}}function $g(e,t,n){return t&&Qg(e.prototype,t),n&&Qg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e_(e){var t=t_(e,`string`);return Wg(t)==`symbol`?t:t+``}function t_(e,t){if(Wg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Wg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var n_=!1,r_=function(){function e(t,n){Zg(this,e),this.metadata=new Z(n);var r=Gg(this.getCountryAndCallingCode(t),2),i=r[0],a=r[1];this.defaultCountry=i,this.defaultCallingCode=a,this.reset()}return $g(e,[{key:`getCountryAndCallingCode`,value:function(e){var t,n;return e&&(Yd(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),n&&n_&&this.metadata.isNonGeographicCallingCode(n)&&(t=`001`),[t,n]}},{key:`input`,value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput=`+`;else if(n){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var r;if(this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),r===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:`reset`,value:function(){var e=this;return this.state=new Ch({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n||t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new Sg({state:this.state,metadata:this.metadata}),this.parser=new Bg({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput=``,this}},{key:`isInternational`,value:function(){return this.state.international}},{key:`getCallingCode`,value:function(){if(this.isInternational())return this.state.callingCode}},{key:`getCountryCallingCode`,value:function(){return this.getCallingCode()}},{key:`getCountry`,value:function(){if(this.state.digits)return this._getCountry()}},{key:`_getCountry`,value:function(){var e=this.state.country;if(!(n_&&e===`001`))return e}},{key:`determineTheCountryIfNeeded`,value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:`getFullNumber`,value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?`${r} ${e}`:r:`${this.state.getDigitsWithoutInternationalPrefix()}`)}return e}},{key:`getNonFormattedNationalNumberWithPrefix`,value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,r=e.nationalPrefix,i=t,a=n||r;return a&&(i=a+i),i}},{key:`getNonFormattedNumber`,value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:`getNonFormattedTemplate`,value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,`x`)}},{key:`isCountryCallingCodeAmbiguous`,value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:`determineTheCountry`,value:function(){var e=Xf(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});e!==this.state.country&&(this.state.setCountry(e),e&&this.metadata.selectNumberingPlan(e))}},{key:`getNumberValue`,value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t){if(this.isInternational())return n?`+`+n+i:`+`+t;if(r||n)return`+`+(r?this.metadata.countryCallingCode():n)+i}}},{key:`getNumber`,value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode;if(t){var i=this._getCountry();if(!(!i&&!r)){if(i&&i===this.defaultCountry){var a=i_(this.metadata.numberingPlan.callingCode(),t,this.metadata);a&&(i=a)}var o=new Fp(i||r,t,this.metadata.metadata);return n&&(o.carrierCode=n),o}}}},{key:`isPossible`,value:function(){var e=this.getNumber();return e?e.isPossible():!1}},{key:`isValid`,value:function(){var e=this.getNumber();return e?e.isValid():!1}},{key:`validateLength`,value:function(){var e=this.state,t=e.digits,n=e.nationalSignificantNumber;if(!t)return`NOT_A_NUMBER`;if(!this.metadata.numberingPlan)return`INVALID_COUNTRY`;if(!n)return`TOO_SHORT`;var r=Sf(n,void 0,this.metadata);if(r!==`IS_POSSIBLE`)return r}},{key:`getNationalNumber`,value:function(){return this.state.nationalSignificantNumber}},{key:`getChars`,value:function(){return(this.state.international?`+`:``)+this.state.digits}},{key:`getTemplate`,value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||``}}])}();function i_(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return Jf(t,r,n.metadata)}function a_(e){return new Z(e).getCountries()}function o_(e,t,n){return n||(n=t,t=void 0),new r_(t,n).input(e)}function s_(){return Kd(lh,arguments)}function c_(){return Kd(gh,arguments)}function l_(e){return r_.call(this,e,Gd)}l_.prototype=Object.create(r_.prototype,{}),l_.prototype.constructor=l_;function u_(){return Kd(a_,arguments)}function d_(){return Kd(hf,arguments)}function f_(){return Kd(o_,arguments)}function p_(e){return`https://purecatamphetamine.github.io/country-flag-icons/3x2/${e}.svg`}function m_(e,t){return new Intl.DisplayNames(t,{type:`region`}).of(e)??e}var h_=H({slots:{countryFlag:`block h-3.5 w-5 shrink-0 rounded-xxs object-cover`,dialCode:`pl-xs text-sm text-placeholder`},variants:{variant:{}}}),g_={class:`flex items-center gap-md`},__={class:`h-3 w-5 overflow-hidden rounded-xxs`},v_=[`src`,`alt`],y_=(0,t.defineComponent)({__name:`PhoneNumberFieldSelectItem`,props:{value:{}},setup(e){let n=e,r=J(),i=(0,t.computed)(()=>p_(n.value)),a=(0,t.computed)(()=>m_(n.value,r.locale.value)),o=(0,t.computed)(()=>d_(n.value));return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(ea,{value:n.value},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,g_,[(0,t.createElementVNode)(`div`,__,[i.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:i.value,alt:a.value??o.value,class:`size-full object-cover`},null,8,v_))]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(a.value??o.value),1)])]),_:1},8,[`value`]))}}),b_=[`src`,`alt`],x_={class:`sr-only`},S_=(0,t.defineComponent)({__name:`PhoneNumberField`,props:(0,t.mergeModels)({defaultCountryCode:{default:`BE`},variant:{default:null},isLoading:{type:Boolean},isSpellCheckEnabled:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},placeholder:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`),i=J(),{theme:a}=W(),o=(0,t.ref)(null),s=(0,t.computed)(()=>o.value?.$el??null),c=(0,t.ref)(g()),l=u_(),u=(0,t.computed)({get:()=>c.value,set:e=>{if(r.value===null){c.value=e;return}let t=r.value?.replace(`+${d_(c.value)}`,`+${d_(e)}`)??null;t!==null&&(r.value=f_(t,e)),c.value=e}}),d=(0,t.computed)(()=>new l_(c.value)),f=(0,t.computed)({get:()=>{if(r.value===null)return null;let e=d_(u.value).toString();return f_(r.value,u.value).replace(`+${e}`,``).trim()},set:e=>{if(e===null||e===``){r.value=null;return}if(c_(e,c.value)===`TOO_LONG`){let e=structuredClone(r.value);r.value=``,(0,t.nextTick)(()=>{r.value=e});return}let n=`+${d_(u.value)} ${e}`;d.value.reset(),d.value.input(n),d.value.isValid()&&(r.value=d.value.getNumber()?.formatInternational()??n),r.value=n}}),p=(0,t.computed)(()=>h_({variant:n.variant??void 0})),m=(0,t.computed)(()=>N(`phoneNumberField`,a.value,{variant:n.variant})),h=(0,t.computed)(()=>`+${d_(u.value)}`);function g(){if(r.value===null)return n.defaultCountryCode;let e=s_(r.value)??null;return e===null||e.country===void 0?(console.warn(`Invalid phone number format: ${r.value}. Defaulting to ${n.defaultCountryCode}.`),n.defaultCountryCode):e.country??n.defaultCountryCode}function _(e,t){let n=m_(e,i.locale.value)??``;return e.toLowerCase().includes(t.toLowerCase())||n.toLowerCase().includes(t.toLowerCase())}return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(Ud,(0,t.mergeProps)({ref_key:`phoneNumberFieldRef`,ref:o},n,{modelValue:f.value,"onUpdate:modelValue":r[1]||=e=>f.value=e,"class-config":(0,t.unref)(ln)({input:`pl-sm`},m.value?.input,n.classConfig?.input),type:`tel`}),{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),left:(0,t.withCtx)(()=>[(0,t.createVNode)(Yo,{modelValue:u.value,"onUpdate:modelValue":r[0]||=e=>u.value=e,"popover-anchor-reference-element":s.value,"display-fn":e=>e,filter:{isEnabled:!0,fn:_},"virtual-list":{isEnabled:!0,items:(0,t.unref)(l)},"class-config":(0,t.unref)(ln)({root:`h-8 ml-[0.18rem] rounded-xs border-none shadow-none outline-none not-disabled:hover:bg-primary-hover pr-xs focus-within:bg-tertiary`,iconRight:`mr-0 size-4`,baseSingle:`pr-0`},m.value.select,n.classConfig?.select),"is-disabled":n.isDisabled,class:`shrink-0`,"popover-align":`start`},{base:(0,t.withCtx)(()=>[(0,t.createVNode)(so,null,{default:(0,t.withCtx)(()=>[u.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:(0,t.unref)(p_)(u.value)??void 0,alt:(0,t.unref)(m_)(u.value,(0,t.unref)(i).locale.value)??u.value,class:(0,t.normalizeClass)(p.value.countryFlag({class:(0,t.unref)(P)(m.value.countryFlag,n.classConfig?.countryFlag)}))},null,10,b_)),(0,t.createElementVNode)(`span`,x_,(0,t.toDisplayString)((0,t.unref)(m_)(u.value,(0,t.unref)(i).locale.value)??u.value),1)]),_:1})]),"virtual-list-item":(0,t.withCtx)(({item:e})=>[(0,t.createVNode)(y_,{value:e},null,8,[`value`])]),_:1},8,[`modelValue`,`popover-anchor-reference-element`,`display-fn`,`filter`,`virtual-list`,`class-config`,`is-disabled`]),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(p.value.dialCode({class:(0,t.unref)(P)(m.value.dialCode,n.classConfig?.dialCode)}))},(0,t.toDisplayString)(h.value),3)]),_:3},16,[`modelValue`,`class-config`]))}}),C_=(0,t.defineComponent)({__name:`PopoverCloseButton`,setup(e){let{classConfig:r,customClassConfig:a}=Oo(),{t:o}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.PopoverClose),{"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(q,{label:(0,t.unref)(o)(`shared.close`),"class-config":{...(0,t.unref)(a)?.closeButton,...(0,t.unref)(r)?.closeButton},icon:`close`,variant:`tertiary`,size:`sm`},null,8,[`label`,`class-config`])])]),_:3}))}}),w_=(0,t.defineComponent)({__name:`RadioGroupRoot`,props:(0,t.mergeModels)({testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),s=(0,t.ref)(null);return Is((0,t.computed)(()=>s.value?.$el??null),()=>{a(`blur`)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":i.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupRoot),{id:i.id,ref_key:`radioGroupRootRef`,ref:s,modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,"aria-invalid":i.errorMessage!==null},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`id`,`modelValue`,`aria-invalid`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),T_=(0,t.defineComponent)({__name:`RadioGroup`,props:(0,t.mergeModels)({testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(w_,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[E_,D_]=R(`radioGroupItemContext`),O_=(0,t.defineComponent)({__name:`RadioGroupItemIndicator`,setup(e){let{classConfig:i,customClassConfig:a,style:o}=D_();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupIndicator),{class:(0,t.normalizeClass)((0,t.unref)(o).indicator({class:(0,t.unref)(P)((0,t.unref)(a).indicator,(0,t.unref)(i)?.indicator)})),"as-child":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`])]),_:3}))}}),k_=(0,t.defineComponent)({__name:`RadioGroupItemIndicatorTransition`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,scale:1.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.5},transition:{duration:.3,type:`spring`,bounce:0}}))}}),A_=(0,t.defineComponent)({__name:`RadioGroupItemControl`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=D_();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).control({class:(0,t.unref)(P)((0,t.unref)(r)?.control,(0,t.unref)(n)?.control)}))},[(0,t.createVNode)(O_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(k_)]),_:1})],2))}}),j_=H({slots:{control:new U().withBase(`relative overflow-hidden isolate`).withSize(`size-4`).withFlex(`flex items-center justify-center`).withBorder(`border border-solid border-primary group-data-[state=checked]/radio-group-item:border-brand-600`).withBorder(`group-data-[state=checked]/radio-group-item:group-disabled/radio-group-item:border-disabled group-disabled/radio-group-item:border-disabled`).withBorder(`group-data-invalid/radio-group-item:group-data-[state=checked]/radio-group-item:border-error group-data-invalid/radio-group-item:group-data-[state=unchecked]/radio-group-item:border-error`).withBorderRadius(`rounded-full`).withBackgroundColor(`group-data-[state=checked]/radio-group-item:bg-brand-solid group-disabled/radio-group-item:group-data-[state=checked]/radio-group-item:bg-disabled-subtle group-disabled/radio-group-item:bg-disabled-subtle group-data-invalid/radio-group-item:group-data-[state=checked]/radio-group-item:bg-error-solid`).withOutline(`outline-2 outline-transparent group-focus-visible/radio-group-item:outline-brand-600 outline-offset-1 group-focus-visible/radio-group-item:group-data-invalid/radio-group-item:outline-error-600`).withTransition(`duration-300`).build(),indicator:new U().withBase(`block`).withColor(`bg-white group-data-disabled/radio-group-item:bg-fg-disabled-subtle`).withSize(`size-1.5`).withBorderRadius(`rounded-full`).build(),root:new U().withBase(`group/radio-group-item`).withOutline(`outline-none`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),M_=(0,t.defineComponent)({__name:`RadioGroupItemRoot`,props:{value:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},emits:[`focus`,`blur`],setup(e,{emit:r}){let i=e,a=r,{theme:o}=W(),s=(0,t.computed)(()=>j_({variant:i.variant??void 0})),c=(0,t.computed)(()=>N(`radioGroupItem`,o.value,{variant:i.variant}));return E_({...G(i),customClassConfig:c,style:s}),(r,o)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.RadioGroupItem),{value:i.value,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,i.classConfig?.root)})),onFocus:o[0]||=e=>a(`focus`),onBlur:o[1]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`value`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),N_=(0,t.defineComponent)({__name:`RadioGroupItem`,props:{value:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},emits:[`focus`,`blur`],setup(e,{emit:n}){let r=e,i=n,a=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(a),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(M_,(0,t.mergeProps)(r,{id:(0,t.unref)(a),onBlur:n[0]||=e=>i(`blur`),onFocus:n[1]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(A_)])]),_:3},16,[`id`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[P_,F_]=R(`switchContext`),I_=H({slots:{root:new U().withBase(`group/switch relative overflow-hidden isolate`).withPadding(`px-xxs`).withBorder(`border border-solid border-tertiary dark:border-primary data-[state=checked]:border-brand-600 data-[state=checked]:disabled:border-disabled-subtle disabled:border-disabled-subtle`).withBorder(`data-invalid:data-[state=checked]:border-error data-invalid:data-[state=unchecked]:border-error`).withBorderRadius(`rounded-full`).withBackgroundColor(`bg-tertiary data-[state=checked]:bg-brand-solid disabled:data-[state=checked]:bg-disabled-subtle disabled:bg-disabled-subtle`).withBackgroundColor(`data-invalid:data-[state=checked]:bg-error-solid data-invalid:bg-error-primary`).withOutline(`outline-brand-600 outline-offset-3 data-invalid:outline-error-600`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),thumb:new U().withBase(`block overflow-hidden`).withFlex(`flex items-center justify-center`).withBackgroundColor(`bg-white`).withBorderRadius(`rounded-full`).withShadow(`shadow-xs`).withTransition(`duration-200`).build(),thumbIcon:new U().withColor(`text-gray-800 group-data-[state=checked]/switch:text-brand-600`).build()},variants:{variant:{},size:{md:{root:new U().withSize(`w-11 h-6`).build(),thumb:new U().withSize(`size-5 data-[state=checked]:translate-x-[1.15rem]`).build(),thumbIcon:new U().withSize(`size-3.5`).build()},sm:{root:new U().withSize(`w-9 h-5`).build(),thumb:new U().withSize(`size-4 data-[state=checked]:translate-x-[0.9rem]`).build(),thumbIcon:new U().withSize(`size-3`).build()}}}}),L_=(0,t.defineComponent)({__name:`SwitchRoot`,props:(0,t.mergeModels)({iconChecked:{default:null},iconUnchecked:{default:null},size:{default:`md`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,o=(0,t.useModel)(e,`modelValue`),{theme:s}=W(),c=(0,t.computed)(()=>I_({size:i.size,variant:i.variant??void 0})),l=(0,t.computed)(()=>N(`switch`,s.value,{size:i.size,variant:i.variant}));return P_({...G(i),isChecked:(0,t.computed)(()=>o.value),customClassConfig:l,style:c}),(r,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":e.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:e.id,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`,"is-loading":!1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.SwitchRoot),{modelValue:o.value,"onUpdate:modelValue":s[0]||=e=>o.value=e,"data-invalid":e.errorMessage!==null&&i.isTouched||void 0,class:(0,t.normalizeClass)(c.value.root({class:(0,t.unref)(P)(l.value.root,i.classConfig?.root)})),onFocus:s[1]||=e=>a(`focus`),onBlur:s[2]||=e=>a(`blur`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`default`)]),_:3},8,[`modelValue`,`data-invalid`,`class`])]),_:3},8,[`id`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),R_=(0,t.defineComponent)({__name:`SwitchThumb`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=F_();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.SwitchThumb),{class:(0,t.normalizeClass)((0,t.unref)(a).thumb({class:(0,t.unref)(P)((0,t.unref)(i).thumb,(0,t.unref)(r)?.thumb)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),z_=(0,t.defineComponent)({__name:`SwitchThumbIcon`,setup(e){let{isChecked:n,classConfig:i,customClassConfig:a,iconChecked:o,iconUnchecked:s,style:c}=F_(),l=(0,t.computed)(()=>n.value?o.value:s.value);return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1,mode:`popLayout`},{default:(0,t.withCtx)(()=>[l.value===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:l.value,initial:{opacity:0,x:(0,t.unref)(n)?-8:8,filter:`blur(2px)`},animate:{opacity:1,scale:1,x:0,filter:`blur(0px)`},exit:{opacity:0,x:(0,t.unref)(n)?-8:8,filter:`blur(2px)`},transition:{duration:.25,type:`spring`,bounce:0}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(L,{icon:l.value,class:(0,t.normalizeClass)((0,t.unref)(c).thumbIcon({class:(0,t.unref)(P)((0,t.unref)(a).thumbIcon,(0,t.unref)(i)?.thumbIcon)}))},null,8,[`icon`,`class`])]),_:1},8,[`initial`,`exit`]))]),_:1}))}}),B_=(0,t.defineComponent)({__name:`Switch`,props:(0,t.mergeModels)({iconChecked:{},iconUnchecked:{},size:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o),layout:`horizontal`},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(L_,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`),onFocus:n[2]||=e=>i(`focus`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(R_,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(z_)]),_:1})]),_:1},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}});I();var V_={},H_={class:`col-span-full grid grid-cols-subgrid`};function U_(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,H_,[(0,t.renderSlot)(e.$slots,`default`)])}var W_=F(V_,[[`render`,U_]]),G_=(0,t.defineComponent)({__name:`TableBody`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(W_,{role:`rowgroup`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3}))}}),[K_,q_]=R(`tableContext`),J_=[`data-sticky`,`data-primary-cell`],Y_=(0,t.defineComponent)({__name:`TableCell`,props:{hasInteractiveContent:{type:Boolean,default:!1},isPrimaryCell:{type:Boolean,default:!1}},setup(e){let n=e,{hasReachedHorizontalEnd:r,isFirstColumnSticky:i,isLastColumnSticky:a,isScrolledHorizontally:o,classConfig:s,customClassConfig:c,style:l}=q_();return(e,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(l).cell({class:(0,t.unref)(P)((0,t.unref)(c)?.cell,(0,t.unref)(s)?.cell)}),{"first-of-type:sticky first-of-type:left-0 first-of-type:border-r":(0,t.unref)(i),"last-of-type:sticky last-of-type:right-0 last-of-type:border-l":(0,t.unref)(a),"first-of-type:border-r-secondary":(0,t.unref)(o),"first-of-type:border-r-transparent":!(0,t.unref)(o),"last-of-type:border-l-secondary":!(0,t.unref)(r),"last-of-type:border-l-transparent":(0,t.unref)(r),"first-of-type:z-1":(0,t.unref)(i)&&!n.hasInteractiveContent,"first-of-type:z-3":(0,t.unref)(i)&&n.hasInteractiveContent,"last-of-type:z-1":(0,t.unref)(a)&&!n.hasInteractiveContent,"last-of-type:z-3":(0,t.unref)(a)&&n.hasInteractiveContent}]),"data-sticky":(0,t.unref)(i)||(0,t.unref)(a)||void 0,"data-primary-cell":n.isPrimaryCell||void 0,role:`cell`},[(0,t.renderSlot)(e.$slots,`default`)],10,J_))}}),X_=(0,t.defineComponent)({__name:`TableCellSkeleton`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=q_();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).cellSkeleton({class:(0,t.unref)(P)((0,t.unref)(r)?.cellSkeleton,(0,t.unref)(n)?.cellSkeleton)}))},[...a[0]||=[(0,t.createElementVNode)(`div`,{class:`h-4 rounded-md bg-tertiary`},null,-1)]],2))}}),Z_=(0,t.defineComponent)({__name:`TableContent`,setup(e){let{gridTemplateColumns:n}=q_();return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{style:(0,t.normalizeStyle)({gridTemplateColumns:(0,t.unref)(n)}),class:`grid`},[(0,t.renderSlot)(e.$slots,`default`)],4))}}),Q_=(0,t.defineComponent)({__name:`TableHeader`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=q_();return(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(W_,{class:(0,t.normalizeClass)((0,t.unref)(i).header({class:(0,t.unref)(P)((0,t.unref)(r)?.header,(0,t.unref)(n)?.header)})),role:`rowgroup`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(W_,{role:`row`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3},8,[`class`]))}}),$_=(0,t.defineComponent)({__name:`TableHeaderCell`,props:{isSortable:{type:Boolean,default:!1},sortDirection:{default:null}},emits:[`sort`],setup(e,{emit:n}){let r=e,i=n,{hasReachedHorizontalEnd:a,isFirstColumnSticky:o,isLastColumnSticky:s,isScrolledHorizontally:c,classConfig:l,customClassConfig:u,style:d}=q_(),f=(0,t.computed)(()=>r.isSortable?r.sortDirection===`asc`?`arrowUp`:r.sortDirection===`desc`?`arrowDown`:`switchVertical`:null);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([[(0,t.unref)(d).headerCell({class:(0,t.unref)(P)((0,t.unref)(u)?.headerCell,(0,t.unref)(l)?.headerCell)}),{"first:sticky first:left-0 first:z-1 first:border-r":(0,t.unref)(o),"last:sticky last:right-0 last:z-1 last:border-l":(0,t.unref)(s),"first:border-r-secondary":(0,t.unref)(c),"first:border-r-transparent":!(0,t.unref)(c),"last:border-l-secondary":!(0,t.unref)(a),"last:border-l-transparent":(0,t.unref)(a)}],`flex items-center`]),role:`columnheader`},[r.isSortable?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(vs),{key:0,"class-config":{root:`p-0 px-0 h-auto !bg-transparent min-w-auto rounded-sm !text-secondary`,iconRight:r.sortDirection===null?`text-disabled`:`text-secondary`,...(0,t.unref)(u)?.headerCellButton,...(0,t.unref)(l)?.headerCellButton},"icon-right":f.value,variant:`tertiary`,onClick:n[0]||=e=>i(`sort`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class-config`,`icon-right`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:(0,t.normalizeClass)((0,t.unref)(d).headerCellLabel({class:(0,t.unref)(P)((0,t.unref)(u)?.headerCellLabel,(0,t.unref)(l)?.headerCellLabel)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))],2))}}),ev={class:`text-xs text-tertiary`},tv=(0,t.defineComponent)({__name:`TableHiddenResultsHint`,props:{isEmpty:{type:Boolean},isLoading:{type:Boolean},activeFilterCount:{},onClear:{type:Function}},setup(e){let n=e,{classConfig:r,customClassConfig:a,style:o}=q_(),{t:s}=(0,i.useI18n)();return(e,i)=>n.activeFilterCount>0&&!n.isLoading&&!n.isEmpty?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).hiddenResultsHint({class:(0,t.unref)(P)((0,t.unref)(a)?.hiddenResultsHint,(0,t.unref)(r)?.hiddenResultsHint)}))},[(0,t.createElementVNode)(`span`,ev,(0,t.toDisplayString)((0,t.unref)(s)(`component.table.results_may_be_hidden`,{count:n.activeFilterCount})),1),(0,t.createVNode)(vs,{"class-config":{root:`h-6 px-sm font-regular`,content:`text-xs`},size:`sm`,variant:`secondary`,onClick:i[0]||=e=>n.onClear()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(s)(`component.table.clear_filter`,{count:n.activeFilterCount})),1)]),_:1})],2)):(0,t.createCommentVNode)(``,!0)}});function nv(){let e=(0,t.ref)(null),n=(0,t.ref)(!1),r=(0,t.ref)(!1),i=(0,t.ref)(!1);function a(t){e.value=t}function o(){let t=e.value;t!==null&&(n.value=t.scrollLeft>0,r.value=t.scrollLeft+t.clientWidth>=t.scrollWidth-1,i.value=t.scrollHeight>t.clientHeight)}return(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Table scroll container ref is null`);o(),e.value.addEventListener(`scroll`,o),e.value.addEventListener(`resize`,o)}),(0,t.onBeforeUnmount)(()=>{e.value!==null&&(e.value.removeEventListener(`scroll`,o),e.value.removeEventListener(`resize`,o))}),{hasReachedHorizontalEnd:(0,t.computed)(()=>r.value),hasVerticalOverflow:(0,t.computed)(()=>i.value),isScrolledHorizontally:(0,t.computed)(()=>n.value),setTableScrollContainerRef:a,tableScrollContainerRef:e}}var rv=H({slots:{cell:new U().withBase(`group/cell whitespace-nowrap relative`).withBackgroundColor(`bg-primary group-[&:has(:focus-visible)]/row:bg-secondary`).withColor(`text-tertiary data-primary-cell:text-primary`).withFontWeight(`data-primary-cell:font-semibold`).withFontSize(`text-sm`).withFlex(`flex items-center`).withPadding(`py-xl px-3xl`).withHeight(`h-full`).withTransition(`duration-100`).build(),cellSkeleton:new U().withPadding(`py-xl px-3xl`).build(),header:new U().withBase(`sticky top-0`).withZIndex(`z-5`).withBorder(`border-b border-solid border-b-secondary`).build(),headerCell:new U().withBackgroundColor(`bg-secondary`).withPadding(`py-lg px-3xl`).build(),headerCellLabel:new U().withFontSize(`text-sm`).withFontWeight(`font-medium`).withColor(`text-secondary`).build(),hiddenResultsHint:new U().withBase(`sticky left-0 col-span-full`).withBorder(`border-t border-solid border-t-secondary`).withPadding(`py-xl`).withFlex(`gap-x-lg flex items-center justify-center`).build(),root:new U().withBase(`overflow-hidden isolate`).withBorder(`border border-solid border-secondary`).withFlex(`flex flex-col`).withBorderRadius(`rounded-lg`).build(),row:new U().withBase(`group/row relative`).withBackgroundColor(`bg-primary [&:has(:focus-visible)]:bg-secondary`).withBorder(`border-b border-solid border-b-secondary`).build()},variants:{variant:{}}}),iv=(0,t.defineComponent)({__name:`TableRoot`,props:{isFirstColumnSticky:{type:Boolean,default:!1},isLastColumnSticky:{type:Boolean,default:!1},gridTemplateColumns:{},variant:{default:null},classConfig:{default:null}},setup(e){let n=e,{theme:r}=W(),{hasReachedHorizontalEnd:i,hasVerticalOverflow:a,isScrolledHorizontally:o,setTableScrollContainerRef:s}=nv(),c=(0,t.computed)(()=>rv({variant:n.variant??void 0})),l=(0,t.computed)(()=>N(`table`,r.value,{variant:n.variant}));return K_({...G(n),hasReachedHorizontalEnd:i,hasVerticalOverflow:a,isScrolledHorizontally:o,customClassConfig:l,setTableScrollContainerRef:s,style:c}),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(c.value.root({class:(0,t.unref)(P)(l.value?.root,n.classConfig?.root)})),role:`table`},[(0,t.renderSlot)(e.$slots,`default`,{hasReachedHorizontalEnd:(0,t.unref)(i),hasVerticalOverflow:(0,t.unref)(a),isScrolledHorizontally:(0,t.unref)(o)})],2))}}),av={class:`sr-only`},ov={class:`sr-only`},sv=(0,t.defineComponent)({__name:`TableRow`,props:{action:{default:null}},setup(e){let n=e,{classConfig:r,customClassConfig:i,style:o}=q_();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(W_,{class:(0,t.normalizeClass)((0,t.unref)(o).row({class:(0,t.unref)(P)((0,t.unref)(i)?.row,(0,t.unref)(r)?.row)})),role:`row`},{default:(0,t.withCtx)(()=>[n.action?.type===`link`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a.RouterLink),{key:0,to:n.action.to,class:`absolute inset-0 z-2 cursor-pointer outline-none`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,av,(0,t.toDisplayString)(n.action.label),1)]),_:1},8,[`to`])):(0,t.createCommentVNode)(``,!0),n.action?.type===`button`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:`absolute inset-0 z-2 cursor-pointer outline-none`,onClick:s[0]||=e=>n.action.onClick()},[(0,t.createElementVNode)(`span`,ov,(0,t.toDisplayString)(n.action.label),1)])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}}),cv=(0,t.defineComponent)({__name:`TableScrollContainer`,setup(e){let{setTableScrollContainerRef:n}=q_(),r=(0,t.ref)(null);return(0,t.onMounted)(()=>{if(r.value===null)throw Error(`tableScrollContainerRef is null`);n(r.value)}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`tableScrollContainerRef`,ref:r,class:`overflow-auto`},[(0,t.renderSlot)(e.$slots,`default`)],512))}}),[lv,uv]=R(`tabsContext`),dv=(0,t.defineComponent)({__name:`TabsBase`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=uv();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).base({class:(0,t.unref)(P)((0,t.unref)(n)?.base,(0,t.unref)(r).base)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),fv=(0,t.defineComponent)({__name:`TabsIndicator`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=uv();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TabsIndicator),{class:(0,t.normalizeClass)((0,t.unref)(a).indicator({class:(0,t.unref)(P)((0,t.unref)(i).indicator,(0,t.unref)(r)?.indicator)}))},null,8,[`class`]))}}),pv=(0,t.defineComponent)({__name:`TabsList`,setup(e){let{classConfig:r,customClassConfig:i,style:a}=uv();return(e,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TabsList),{class:(0,t.normalizeClass)((0,t.unref)(a).list({class:(0,t.unref)(P)((0,t.unref)(i).list,(0,t.unref)(r)?.list)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`class`]))}});function mv(){let e=(0,t.ref)(null),n=(0,t.ref)(!1),r=(0,t.ref)(!1),i=(0,t.ref)(!1);function a(t){e.value=t}function o(){let t=e.value;t!==null&&(n.value=t.scrollLeft>0,r.value=t.scrollLeft+t.clientWidth>=t.scrollWidth-1,i.value=t.scrollWidth>t.clientWidth)}function s(){e.value!==null&&e.value.scrollTo({behavior:`smooth`,left:e.value.scrollLeft-200})}function c(){e.value!==null&&e.value.scrollTo({behavior:`smooth`,left:e.value.scrollLeft+200})}function l(){if(e.value===null)return;let t=e.value.querySelector(`[role="tab"][data-state="active"]`)??null;if(t===null)return;let n=t.getBoundingClientRect(),r=e.value.getBoundingClientRect();e.value.scrollTo({behavior:`instant`,left:n.left-r.left+e.value.scrollLeft})}return(0,t.onMounted)(()=>{if(e.value===null)throw Error(`Scroll container ref is null`);o(),e.value.addEventListener(`scroll`,o),e.value.addEventListener(`resize`,o)}),(0,t.onBeforeUnmount)(()=>{e.value!==null&&(e.value.removeEventListener(`scroll`,o),e.value.removeEventListener(`resize`,o))}),{hasHorizontalOverflow:(0,t.computed)(()=>i.value),hasReachedHorizontalEnd:(0,t.computed)(()=>r.value),isScrolledHorizontally:(0,t.computed)(()=>n.value),scrollToActiveTab:l,scrollToLeft:s,scrollToRight:c,setScrollContainerRef:a}}var hv=H({slots:{base:new U().withBase(`relative isolate overflow-hidden`).build(),content:new U().withBase(`outline-none`).build(),indicator:new U().withBase(`absolute group-data-[orientation=horizontal]:bottom-0 group-data-[orientation=vertical]:left-0`).withSize(`group-data-[orientation=horizontal]:w-(--reka-tabs-indicator-size) group-data-[orientation=vertical]:h-(--reka-tabs-indicator-size)`).withTranslate(`group-data-[orientation=horizontal]:translate-x-(--reka-tabs-indicator-position) group-data-[orientation=vertical]:translate-y-(--reka-tabs-indicator-position)`).withTransition(`duration-200`).build(),item:new U().withBase(`group/tabs-item relative data-[orientation=vertical]:text-left whitespace-nowrap`).withFontSize(`text-sm`).withFontWeight(`font-semibold`).withTransition(`duration-200`).withCursor(`cursor-pointer disabled:cursor-not-allowed`).withZIndex(`z-10`).build(),list:new U().withBase(`group relative flex data-[orientation=vertical]:flex-col`).build(),scrollContainer:new U().withBase(`overflow-x-auto no-scrollbar scroll-smooth`).build()},variants:{variant:{"button-border":{base:new U().withBackgroundColor(`bg-secondary-alt`).withBorder(`border border-secondary`).withBorderRadius(`rounded-lg`).build(),indicator:new U().withBackgroundColor(`bg-primary-alt`).withBorderRadius(`rounded-sm`).withSize(`group-data-[orientation=horizontal]:h-full group-data-[orientation=vertical]:w-full`).withShadow(`shadow-xs`).build(),item:new U().withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withColor(`data-[state=active]:text-secondary data-[state=inactive]:text-quaternary not-disabled:data-[state=inactive]:hover:text-tertiary disabled:opacity-75`).withSpacing(`py-md px-lg`).withBorderRadius(`rounded-sm`).build(),list:new U().withSpacing(`gap-xs`).build(),scrollContainer:new U().withSpacing(`p-xs`).build()},"button-brand":{indicator:new U().withSize(`group-data-[orientation=horizontal]:h-full group-data-[orientation=vertical]:w-full`).withBorderRadius(`rounded-sm`).withBackgroundColor(`bg-brand-primary-alt`).build(),item:new U().withColor(`data-[state=active]:text-brand-secondary data-[state=inactive]:text-quaternary not-disabled:data-[state=inactive]:hover:text-tertiary disabled:opacity-75`).withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withBorderRadius(`rounded-sm`).withSpacing(`py-md px-lg`).build(),list:new U().withSpacing(`gap-xs`).build()},underline:{indicator:new U().withSize(`group-data-[orientation=horizontal]:h-0.5 group-data-[orientation=vertical]:w-0.5`).withBackgroundColor(`bg-fg-brand-primary-alt`).withBorderRadius(`rounded-md`).build(),item:new U().withPadding(`px-md py-sm`).withMargin(`group-data-[orientation=horizontal]:my-sm group-data-[orientation=vertical]:mx-sm`).withBorderRadius(`rounded-md`).withOutline(`outline-2 outline-transparent focus-visible:outline-fg-brand-primary-alt`).withColor(`data-[state=active]:text-brand-secondary data-[state=inactive]:text-quaternary disabled:opacity-75`).withBackgroundColor(`not-disabled:hover:bg-primary-hover not-disabled:data-[state=active]:hover:bg-brand-primary-alt`).build(),list:new U().withSpacing(`gap-lg`).build()}}}}),gv=(0,t.defineComponent)({__name:`TabsRoot`,props:(0,t.mergeModels)({orientation:{default:`horizontal`},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let r=e,i=(0,t.useModel)(e,`modelValue`),{theme:a}=W(),{hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,scrollToActiveTab:l,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:f}=mv(),p=(0,t.computed)(()=>hv({variant:r.variant})),m=(0,t.computed)(()=>N(`tabs`,a.value,{variant:r.variant}));return(0,t.onMounted)(()=>{l()}),lv({...G(r),hasHorizontalOverflow:o,hasReachedHorizontalEnd:s,isScrolledHorizontally:c,customClassConfig:m,scrollToLeft:u,scrollToRight:d,setScrollContainerRef:f,style:p}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsRoot),{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,orientation:r.orientation},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`orientation`])]),_:3},8,[`test-id`]))}}),_v=(0,t.defineComponent)({__name:`TabsScrollContainer`,setup(e){let n=(0,t.ref)(null),{classConfig:r,customClassConfig:i,setScrollContainerRef:a,style:o}=uv();return(0,t.onMounted)(()=>{if(n.value===null)throw Error(`scrollContainerRef is null`);a(n.value)}),(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`scrollContainerRef`,ref:n,class:(0,t.normalizeClass)((0,t.unref)(o).scrollContainer({class:(0,t.unref)(P)((0,t.unref)(i).scrollContainer,(0,t.unref)(r)?.scrollContainer)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),vv={class:`absolute top-0 left-0 z-20 flex h-full items-center bg-linear-to-r from-primary to-transparent px-md`},yv=(0,t.defineComponent)({__name:`TabsScrollToLeftButton`,setup(e){let{hasHorizontalOverflow:n,isScrolledHorizontally:a,classConfig:o,customClassConfig:s,orientation:c,scrollToLeft:l}=uv(),{t:u}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)&&(0,t.unref)(n)&&(0,t.unref)(c)===`horizontal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},"as-child":!0,transition:{duration:.1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,vv,[(0,t.createVNode)(q,{"class-config":{root:`bg-primary size-7`,...(0,t.unref)(o)?.scrollButton,...(0,t.unref)(s)?.scrollButton},label:(0,t.unref)(u)(`component.tabs.scroll_to_left`),size:`sm`,tabindex:`-1`,icon:`chevronLeft`,variant:`secondary`,onClick:(0,t.unref)(l)},null,8,[`class-config`,`label`,`onClick`])])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),bv={class:`absolute top-0 right-0 z-20 flex h-full items-center bg-linear-to-l from-primary to-transparent px-md`},xv=(0,t.defineComponent)({__name:`TabsScrollToRightButton`,setup(e){let{hasHorizontalOverflow:n,hasReachedHorizontalEnd:a,classConfig:o,customClassConfig:s,orientation:c,scrollToRight:l}=uv(),{t:u}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),{initial:!1},{default:(0,t.withCtx)(()=>[!(0,t.unref)(a)&&(0,t.unref)(n)&&(0,t.unref)(c)===`horizontal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{key:0,initial:{opacity:0,x:8},animate:{opacity:1,x:0},exit:{opacity:0,x:8},"as-child":!0,transition:{duration:.1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,bv,[(0,t.createVNode)(q,{"class-config":{root:`bg-primary size-7`,...(0,t.unref)(o)?.scrollButton,...(0,t.unref)(s)?.scrollButton},label:(0,t.unref)(u)(`component.tabs.scroll_to_right`),size:`sm`,icon:`chevronRight`,variant:`secondary`,tabindex:`-1`,onClick:(0,t.unref)(l)},null,8,[`class-config`,`label`,`onClick`])])]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1}))}}),Sv=(0,t.defineComponent)({__name:`ButtonTabs`,props:(0,t.mergeModels)({orientation:{},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=e,r=(0,t.useModel)(e,`modelValue`);return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(gv,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(dv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yv),(0,t.createVNode)(_v,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pv,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`),(0,t.createVNode)(fv)]),_:3})]),_:3}),(0,t.createVNode)(xv)]),_:3}),(0,t.renderSlot)(e.$slots,`content`)]),_:3},16,[`modelValue`]))}}),Cv=(0,t.defineComponent)({__name:`ButtonTabsContent`,props:{value:{},testId:{default:null}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=uv();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsContent),{value:r.value,class:(0,t.normalizeClass)((0,t.unref)(o).content({class:(0,t.unref)(P)((0,t.unref)(a).content,(0,t.unref)(i)?.content)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`])]),_:3},8,[`test-id`]))}}),wv=(0,t.defineComponent)({__name:`ButtonTabsItem`,props:{value:{},testId:{default:null},isDisabled:{type:Boolean,default:!1}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o}=uv();return(e,s)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(K,{"is-disabled":r.isDisabled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsTrigger),{value:r.value,class:(0,t.normalizeClass)((0,t.unref)(o).item({class:(0,t.unref)(P)((0,t.unref)(a).item,(0,t.unref)(i)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`value`,`class`])]),_:3},8,[`is-disabled`])]),_:3},8,[`test-id`]))}}),Tv=(0,t.defineComponent)({__name:`RouterLinkTabsItem`,props:{to:{},testId:{default:null}},setup(e){let r=e,{classConfig:i,customClassConfig:o,style:s}=uv();return(e,c)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":r.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TabsTrigger),{"as-child":!0,value:r.to.name,class:(0,t.normalizeClass)((0,t.unref)(s).item({class:(0,t.unref)(P)((0,t.unref)(o).item,(0,t.unref)(i)?.item)}))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a.RouterLink),{to:r.to,replace:!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`to`])]),_:3},8,[`value`,`class`])]),_:3},8,[`test-id`]))}}),Ev=(0,t.defineComponent)({__name:`RouterLinkTabs`,props:{orientation:{},variant:{default:`underline`},testId:{default:null},classConfig:{default:null}},setup(e){let n=e,r=(0,a.useRoute)(),i=(0,t.computed)(()=>r.name);return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(gv,(0,t.mergeProps)(n,{"model-value":i.value}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(dv,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yv),(0,t.createVNode)(_v,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pv,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`items`),(0,t.createVNode)(fv)]),_:3})]),_:3}),(0,t.createVNode)(xv)]),_:3})]),_:3},16,[`model-value`]))}}),[Dv,Ov]=R(`textareaContext`),kv={key:1},Av=(0,t.defineComponent)({__name:`TextareaInput`,setup(e){let{id:n,testId:r,isDisabled:i,isRequired:a,isSpellCheckEnabled:o,autocomplete:s,classConfig:c,customClassConfig:l,errorMessage:u,modelValue:d,placeholder:f,resize:p,style:m,onBlur:h,onFocus:g}=Ov(),{textarea:_}=Ne({watch:()=>p.value===`auto-vertical`?d.value:null});function v(e){d.value=e.target.value}return(e,y)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":(0,t.unref)(r)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:(0,t.unref)(n),value:(0,t.unref)(d),"is-disabled":(0,t.unref)(i),"is-invalid":(0,t.unref)(u)!==null,"is-required":(0,t.unref)(a),"described-by":`${(0,t.unref)(n)}-error ${(0,t.unref)(n)}-hint`,"is-loading":!1,class:(0,t.normalizeClass)((0,t.unref)(m).input({class:(0,t.unref)(P)((0,t.unref)(l).input,(0,t.unref)(c)?.input)})),autocomplete:(0,t.unref)(s),placeholder:(0,t.unref)(f),spellcheck:(0,t.unref)(o),onFocus:(0,t.unref)(g),onBlur:(0,t.unref)(h),onInput:v},{default:(0,t.withCtx)(()=>[(0,t.unref)(p)===`auto-vertical`?((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,{key:0,ref_key:`textarea`,ref:_},null,512)):((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,kv))]),_:1},8,[`id`,`value`,`is-disabled`,`is-invalid`,`is-required`,`described-by`,`class`,`autocomplete`,`placeholder`,`spellcheck`,`onFocus`,`onBlur`])]),_:1},8,[`test-id`]))}}),jv=H({slots:{input:new U().withBase(`outline-none group-data-[resize=none]/textarea:resize-none group-data-[resize=vertical]/textarea:resize-y group-data-[resize=horizontal]/textarea:resize-x group-data-[resize=both]/textarea:resize group-data-[resize=auto-vertical]/textarea:resize-none`).withSize(`size-full`).withFontSize(`text-sm`).withPadding(`p-lg`).withColor(`text-primary disabled:text-disabled placeholder:text-placeholder`).withBackgroundColor(`bg-transparent`).withCursor(`disabled:cursor-not-allowed`).build(),root:new U().withBase(`group/textarea overflow-hidden`).withSize(`data-[resize=none]:w-full data-[resize=vertical]:w-full data-[resize=auto-vertical]:w-full h-fit`).withFlex(`inline-flex flex-col`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),Mv=[`data-invalid`,`data-disabled`,`data-resize`],Nv=(0,t.defineComponent)({__name:`TextareaRoot`,props:(0,t.mergeModels)({isSpellCheckEnabled:{type:Boolean,default:!1},autocomplete:{default:`off`},placeholder:{default:null},resize:{default:`none`},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),{theme:o}=W(),s=(0,t.computed)(()=>jv({variant:r.variant??void 0})),c=(0,t.computed)(()=>N(`textarea`,o.value,{variant:r.variant}));function l(e){i(`blur`,e)}function u(e){i(`focus`,e)}return Dv({...G(r),customClassConfig:c,modelValue:a,style:s,onBlur:l,onFocus:u}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(s.value.root({class:(0,t.unref)(P)(c.value.root,r.classConfig?.root)})),"data-invalid":r.errorMessage!==null&&r.isTouched||void 0,"data-disabled":r.isDisabled||void 0,"data-resize":r.resize},[(0,t.renderSlot)(e.$slots,`default`)],10,Mv))}}),Pv=(0,t.defineComponent)({__name:`Textarea`,props:(0,t.mergeModels)({isSpellCheckEnabled:{type:Boolean},autocomplete:{},placeholder:{},resize:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Nv,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`top`),(0,t.createVNode)(Av),(0,t.renderSlot)(e.$slots,`bottom`)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),[Fv,Iv]=R(`timeFieldContext`),Lv=(0,t.defineComponent)({__name:`TimeFieldIconLeft`,setup(e){let{classConfig:n,customClassConfig:r,iconLeft:i,style:a}=Iv();return(e,o)=>(0,t.unref)(i)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(i),class:(0,t.normalizeClass)((0,t.unref)(a).iconLeft({class:(0,t.unref)(P)((0,t.unref)(r).iconLeft,(0,t.unref)(n)?.iconLeft)}))},null,8,[`icon`,`class`]))}}),Rv=(0,t.defineComponent)({__name:`TimeFieldInput`,props:{segments:{}},setup(e){let r=e,{classConfig:i,customClassConfig:a,style:o,onBlur:s,onFocus:c}=Iv();return(e,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).inputs({class:(0,t.unref)(P)((0,t.unref)(a).inputs,(0,t.unref)(i)?.inputs)}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.segments,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.part},[e.part===`literal`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TimeFieldInput),{key:0,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(o).input({class:(0,t.unref)(P)((0,t.unref)(a).input,(0,t.unref)(i)?.input)}))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TimeFieldInput),{key:1,part:e.part,class:(0,t.normalizeClass)((0,t.unref)(o).input({class:(0,t.unref)(P)((0,t.unref)(a).input,(0,t.unref)(i)?.input)})),onFocus:(0,t.unref)(c),onBlur:(0,t.unref)(s)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`part`,`class`,`onFocus`,`onBlur`]))],64))),128))],2))}}),zv={class:`sr-only`},Bv=(0,t.defineComponent)({__name:`TimeFieldLoader`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:a,style:o}=Iv(),{t:s}=(0,i.useI18n)();return(e,i)=>(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(o).loader({class:(0,t.unref)(P)((0,t.unref)(a).loader,(0,t.unref)(r)?.loader)}))},[(0,t.createElementVNode)(`span`,zv,(0,t.toDisplayString)((0,t.unref)(s)(`shared.loading`)),1),(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createVNode)(Ua,{"aria-hidden":!0})])],2)):(0,t.createCommentVNode)(``,!0)}}),Vv=H({slots:{iconLeft:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`ml-3`).withColor(`text-quaternary group-data-disabled/time-field:text-fg-disabled`).build(),iconRight:new U().withBase(`shrink-0`).withSize(`size-4.5`).withSpacing(`mr-3`).withColor(`text-quaternary group-data-disabled/time-field:text-fg-disabled`).build(),input:new U().withBase(`outline-none`).withFontSize(`text-sm`).withBackgroundColor(`focus:bg-quaternary`).withPadding(`px-0.5 data-[segment=literal]:px-0`).withBorderRadius(`rounded-xs`).withColor(`text-primary data-placeholder:text-placeholder data-[segment=literal]:text-placeholder group-data-disabled/time-field:text-disabled`).withCursor(`disabled:cursor-not-allowed`).withTransition(`duration-200`).build(),inputs:new U().withFlex(`flex items-center`).withSize(`size-full`).withPadding(`pl-3 pr-2 group-data-icon-left/time-field:pl-2`).withBackgroundColor(`group-data-disabled/time-field:bg-disabled-subtle`).build(),loader:new U().withBase(`shrink-0`).withSpacing(`mr-3`).withSize(`size-4`).withColor(`text-quaternary`).build(),root:new U().withBase(`group/time-field overflow-hidden`).withFlex(`flex items-center`).withHeight(`h-10`).withBorder(`border border-solid border-primary focus-within:border-brand-500`).withBorder(`data-disabled:border-disabled-subtle`).withBorder(`data-invalid:border-error data-invalid:focus-within:border-error`).withBackgroundColor(`bg-primary data-disabled:bg-disabled-subtle`).withBorderRadius(`rounded-md`).withShadow(`shadow-xs`).withOutline(`outline outline-transparent focus-within:outline-brand-500 focus-within:data-invalid:outline-error-500`).withTransition(`duration-200`).withCursor(`data-disabled:cursor-not-allowed`).build()},variants:{variant:{}}}),Hv=[`data-icon-left`,`data-invalid`,`data-disabled`],Uv=(0,t.defineComponent)({__name:`TimeFieldRoot`,props:(0,t.mergeModels)({isLoading:{type:Boolean,default:!1},autocomplete:{default:`off`},iconLeft:{default:null},iconRight:{default:null},variant:{default:null},testId:{default:null},isDisabled:{type:Boolean,default:!1},id:{default:null},isRequired:{type:Boolean,default:!1},isTouched:{type:Boolean,default:!1},errorMessage:{default:null},hint:{default:null},label:{default:null},classConfig:{default:null}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:r}){let i=e,a=r,s=(0,t.useModel)(e,`modelValue`),c=(0,t.computed)({get:()=>{if(s.value===null)return;let{hour:e,minute:t}=s.value;return new $c(Number(e),Number(t))},set:e=>{if(e===void 0){s.value=null;return}let t=`${e.hour.toString().padStart(2,`0`)}:${e.minute.toString().padStart(2,`0`)}`;s.value=o.Temporal.PlainTime.from(t)}}),{hourCycle:l,locale:u}=J(),{theme:d}=W(),f=(0,t.ref)(!1),p=(0,t.computed)(()=>Vv({variant:i.variant??void 0})),m=(0,t.computed)(()=>N(`timeField`,d.value,{variant:i.variant})),h=(0,t.computed)(()=>l.value===null?null:l.value===`12-hour`?12:24);function g(e){f.value=!0,a(`focus`,e)}function _(e){f.value=!1,setTimeout(()=>{f.value||a(`blur`,e)})}return Fv({...G(i),customClassConfig:m,modelValue:s,style:p,onBlur:_,onFocus:g}),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)(B,{"test-id":i.testId},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(mo,{id:i.id,value:s.value,"is-loading":e.isLoading,"is-disabled":e.isDisabled,"is-invalid":e.errorMessage!==null,"is-required":e.isRequired,"described-by":`${e.id}-error ${e.id}-hint`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TimeFieldRoot),{modelValue:c.value,"onUpdate:modelValue":a[0]||=e=>c.value=e,locale:(0,t.unref)(u),required:i.isRequired,"is-invalid":i.errorMessage!==null,"hour-cycle":h.value??void 0},{default:(0,t.withCtx)(({segments:e})=>[(0,t.createElementVNode)(`div`,{"data-icon-left":i.iconLeft!==null||void 0,"data-invalid":i.errorMessage!==null&&i.isTouched||void 0,"data-disabled":i.isDisabled||void 0,class:(0,t.normalizeClass)(p.value.root({class:(0,t.unref)(P)(m.value.root,i.classConfig?.root)}))},[(0,t.renderSlot)(r.$slots,`default`,{segments:e})],10,Hv)]),_:3},8,[`modelValue`,`locale`,`required`,`is-invalid`,`hour-cycle`])]),_:3},8,[`id`,`value`,`is-loading`,`is-disabled`,`is-invalid`,`is-required`,`described-by`])]),_:3},8,[`test-id`]))}}),Wv=(0,t.defineComponent)({__name:`TimeFieldIconRight`,setup(e){let{isLoading:n,classConfig:r,customClassConfig:i,iconRight:a,style:o}=Iv();return(e,s)=>(0,t.unref)(a)!==null&&!(0,t.unref)(n)?((0,t.openBlock)(),(0,t.createBlock)(L,{key:0,icon:(0,t.unref)(a),class:(0,t.normalizeClass)((0,t.unref)(o).iconRight({class:(0,t.unref)(P)((0,t.unref)(i).iconRight,(0,t.unref)(r)?.iconRight)}))},null,8,[`icon`,`class`])):(0,t.createCommentVNode)(``,!0)}}),Gv=(0,t.defineComponent)({__name:`TimeField`,props:(0,t.mergeModels)({isLoading:{type:Boolean},autocomplete:{},iconLeft:{},iconRight:{},variant:{},testId:{},isDisabled:{type:Boolean},id:{},isRequired:{type:Boolean},isTouched:{type:Boolean},errorMessage:{},hint:{},label:{},classConfig:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,a=(0,t.useModel)(e,`modelValue`),o=r.id??(0,t.useId)();return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Ma,{"error-message":r.errorMessage,hint:r.hint,"is-required":r.isRequired,"is-touched":r.isTouched,label:r.label,for:(0,t.unref)(o)},{label:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),error:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error`)]),hint:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`hint`)]),default:(0,t.withCtx)(()=>[(0,t.createVNode)(Uv,(0,t.mergeProps)(r,{id:(0,t.unref)(o),modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,onBlur:n[1]||=e=>i(`blur`,e),onFocus:n[2]||=e=>i(`focus`,e)}),{default:(0,t.withCtx)(({segments:n})=>[(0,t.renderSlot)(e.$slots,`left`),(0,t.createVNode)(Lv),(0,t.createVNode)(Rv,{segments:n},null,8,[`segments`]),(0,t.createVNode)(Wv),(0,t.createVNode)(Bv)]),_:3},16,[`id`,`modelValue`])]),_:3},8,[`error-message`,`hint`,`is-required`,`is-touched`,`label`,`for`]))}}),Kv=1,$=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:Kv++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:`loading`,message:n.loading,description:typeof n.description==`function`?void 0:n.description}));let i=Promise.resolve(e instanceof Function?e():e),a=r!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],(0,t.isVNode)(e))a=!1,this.create({id:r,type:`default`,message:e});else if(Jv(e)&&!e.ok){a=!1;let i=typeof n.error==`function`?await n.error(`HTTP error! status: ${e.status}`):n.error,o=typeof n.description==`function`?await n.description(`HTTP error! status: ${e.status}`):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof n.error==`function`?await n.error(e):n.error,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(n.success!==void 0){a=!1;let i=typeof n.success==`function`?await n.success(e):n.success,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],n.error!==void 0){a=!1;let i=typeof n.error==`function`?await n.error(e):n.error,o=typeof n.description==`function`?await n.description(e):n.description,s=typeof i==`object`&&!(0,t.isVNode)(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally?.()}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof r!=`string`&&typeof r!=`number`?{unwrap:c}:Object.assign(r,{unwrap:c})};custom=(e,t)=>{let n=t?.id||Kv++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function qv(e,t){let n=t?.id||Kv++;return $.create({message:e,id:n,type:`default`,...t}),n}var Jv=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Yv=Object.assign(qv,{success:$.success,info:$.info,warning:$.warning,error:$.error,custom:$.custom,message:$.message,promise:$.promise,dismiss:$.dismiss,loading:$.loading},{getHistory:()=>$.toasts,getToasts:()=>$.getActiveToasts()});function Xv(e){return e.label!==void 0}var Zv=3,Qv=`24px`,$v=`16px`,ey=4e3,ty=356,ny=14,ry=45,iy=200;function ay(){let e=(0,t.ref)(!1);return(0,t.watchEffect)(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function oy(...e){return e.filter(Boolean).join(` `)}function sy(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function cy(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?$v:Qv;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var ly=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],uy=[`aria-label`,`data-disabled`,`data-close-button-position`],dy=(0,t.defineComponent)({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(0),p=(0,t.ref)(0),m=(0,t.ref)(r.toast.duration||r.duration||ey),h=(0,t.ref)(null),g=(0,t.ref)(null),_=(0,t.computed)(()=>r.index===0),v=(0,t.computed)(()=>r.index+1<=r.visibleToasts),y=(0,t.computed)(()=>r.toast.type),b=(0,t.computed)(()=>r.toast.dismissible!==!1),ee=(0,t.computed)(()=>r.toast.class||``),x=(0,t.computed)(()=>r.descriptionClass||``),te=(0,t.computed)(()=>{let e=r.toast.position||r.position,t=r.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===r.toast.id);return t>=0?t:0}),S=(0,t.computed)(()=>{let e=r.toast.position||r.position;return r.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=te.value?e:e+t.height,0)}),C=(0,t.computed)(()=>te.value*r.gap+S.value||0),ne=(0,t.computed)(()=>r.toast.closeButton??r.closeButton),re=(0,t.computed)(()=>r.toast.duration||r.duration||ey),ie=(0,t.ref)(0),ae=(0,t.ref)(0),oe=(0,t.ref)(null),se=(0,t.computed)(()=>r.position.split(`-`)),w=(0,t.computed)(()=>se.value[0]),ce=(0,t.computed)(()=>se.value[1]),T=(0,t.computed)(()=>typeof r.toast.title!=`string`),le=(0,t.computed)(()=>typeof r.toast.description!=`string`),{isDocumentHidden:ue}=ay(),de=(0,t.computed)(()=>y.value&&y.value===`loading`);(0,t.onMounted)(()=>{s.value=!0,m.value=re.value}),(0,t.watchEffect)(async()=>{if(!s.value||!g.value)return;await(0,t.nextTick)();let e=g.value,n=e.style.height;e.style.height=`auto`;let a=e.getBoundingClientRect().height;e.style.height=n,p.value=a,i(`update:height`,{toastId:r.toast.id,height:a,position:r.toast.position||r.position})});function fe(){c.value=!0,f.value=C.value,setTimeout(()=>{i(`removeToast`,r.toast)},iy)}function E(){if(de.value||!b.value)return{};fe(),r.toast.onDismiss?.(r.toast)}function D(e){e.button!==2&&(de.value||!b.value||(h.value=new Date,f.value=C.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(l.value=!0,oe.value={x:e.clientX,y:e.clientY})))}function pe(){if(u.value||!b.value)return;oe.value=null;let e=Number(g.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(g.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(h.value?.getTime()||0),i=a.value===`x`?e:t,s=Math.abs(i)/n;if(Math.abs(i)>=ry||s>.11){f.value=C.value,r.toast.onDismiss?.(r.toast),a.value===`x`?o.value=e>0?`right`:`left`:o.value=t>0?`down`:`up`,fe(),u.value=!0;return}else g.value?.style.setProperty(`--swipe-amount-x`,`0px`),g.value?.style.setProperty(`--swipe-amount-y`,`0px`);d.value=!1,l.value=!1,a.value=null}function me(e){if(!oe.value||!b.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-oe.value.y,n=e.clientX-oe.value.x,i=r.swipeDirections??sy(r.position);!a.value&&(Math.abs(n)>1||Math.abs(t)>1)&&(a.value=Math.abs(n)>Math.abs(t)?`x`:`y`);let o={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(a.value===`y`){if(i.includes(`top`)||i.includes(`bottom`))if(i.includes(`top`)&&t<0||i.includes(`bottom`)&&t>0)o.y=t;else{let e=t*s(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}else if(a.value===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&n<0||i.includes(`right`)&&n>0)o.x=n;else{let e=n*s(n);o.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(d.value=!0),g.value?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),g.value?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)}(0,t.onMounted)(()=>{if(s.value=!0,!g.value)return;let e=g.value.getBoundingClientRect().height;p.value=e,i(`update:heights`,[{toastId:r.toast.id,height:e,position:r.toast.position},...r.heights])}),(0,t.onBeforeUnmount)(()=>{g.value&&i(`removeToast`,r.toast)}),(0,t.watchEffect)(e=>{if(r.toast.promise&&y.value===`loading`||r.toast.duration===1/0||r.toast.type===`loading`)return;let t;r.expanded||r.interacting||ue.value?(()=>{if(ae.value<ie.value){let e=new Date().getTime()-ie.value;m.value-=e}ae.value=new Date().getTime()})():m.value!==1/0&&(ie.value=new Date().getTime(),t=setTimeout(()=>{r.toast.onAutoClose?.(r.toast),fe()},m.value)),e(()=>{clearTimeout(t)})}),(0,t.watch)(()=>r.toast.delete,e=>{e!==void 0&&e&&(fe(),r.toast.onDismiss?.(r.toast))},{deep:!0});function O(){l.value=!1,a.value=null,oe.value=null}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:g,class:(0,t.normalizeClass)((0,t.unref)(oy)(r.class,ee.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[y.value],e.toast?.classes?.[y.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":s.value,"data-promise":!!e.toast.promise,"data-swiped":d.value,"data-removed":c.value,"data-visible":v.value,"data-y-position":w.value,"data-x-position":ce.value,"data-index":e.index,"data-front":_.value,"data-swiping":l.value,"data-dismissible":b.value,"data-type":y.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":u.value,"data-swipe-direction":o.value,"data-expanded":!!(e.expanded||e.expandByDefault&&s.value),"data-testid":e.toast.testId,style:(0,t.normalizeStyle)({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${c.value?f.value:C.value}px`,"--initial-height":e.expandByDefault?`auto`:`${p.value}px`,...e.style,...r.toast.style}),onDragend:O,onPointerdown:D,onPointerup:pe,onPointermove:me},[ne.value&&!e.toast.component&&y.value!==`loading`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":de.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:E},[e.icons?.close?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icons?.close),{key:0})):(0,t.renderSlot)(e.$slots,`close-icon`,{key:1})],10,uy)):(0,t.createCommentVNode)(`v-if`,!0),e.toast.component?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.component),(0,t.mergeProps)({key:1},e.toast.componentProps,{onCloseToast:E,isPaused:e.$props.expanded||e.$props.interacting||(0,t.unref)(ue)}),null,16,[`isPaused`])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[y.value!==`default`||e.toast.icon||e.toast.promise?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,"data-icon":``,class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.icon),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[y.value===`loading`?(0,t.renderSlot)(e.$slots,`loading-icon`,{key:0}):y.value===`success`?(0,t.renderSlot)(e.$slots,`success-icon`,{key:1}):y.value===`error`?(0,t.renderSlot)(e.$slots,`error-icon`,{key:2}):y.value===`warning`?(0,t.renderSlot)(e.$slots,`warning-icon`,{key:3}):y.value===`info`?(0,t.renderSlot)(e.$slots,`info-icon`,{key:4}):(0,t.createCommentVNode)(`v-if`,!0)],64))],2)):(0,t.createCommentVNode)(`v-if`,!0),(0,t.createElementVNode)(`div`,{"data-content":``,class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.content,e.toast?.classes?.content))},[(0,t.createElementVNode)(`div`,{"data-title":``,class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.title,e.toast.classes?.title))},[T.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.title),(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.toast.title),1)],64))],2),e.toast.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,"data-description":``,class:(0,t.normalizeClass)((0,t.unref)(oy)(e.descriptionClass,x.value,e.classes?.description,e.toast.classes?.description))},[le.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.toast.description),(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.toast.componentProps)),null,16)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.toast.description),1)],64))],2)):(0,t.createCommentVNode)(`v-if`,!0)],2),e.toast.cancel?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,style:(0,t.normalizeStyle)(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:n[0]||=n=>{(0,t.unref)(Xv)(e.toast.cancel)&&b.value&&(e.toast.cancel.onClick?.(n),fe())}},(0,t.toDisplayString)((0,t.unref)(Xv)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):(0,t.createCommentVNode)(`v-if`,!0),e.toast.action?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,style:(0,t.normalizeStyle)(e.toast.actionButtonStyle||e.actionButtonStyle),class:(0,t.normalizeClass)((0,t.unref)(oy)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:n[1]||=n=>{(0,t.unref)(Xv)(e.toast.action)&&(e.toast.action.onClick?.(n),!n.defaultPrevented&&fe())}},(0,t.toDisplayString)((0,t.unref)(Xv)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):(0,t.createCommentVNode)(`v-if`,!0)],64))],46,ly))}}),fy=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},py={},my={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function hy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,my,n[0]||=[(0,t.createElementVNode)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),(0,t.createElementVNode)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var gy=fy(py,[[`render`,hy]]),_y=[`data-visible`],vy={class:`sonner-spinner`},yy=(0,t.defineComponent)({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let n=Array(12).fill(0);return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[(0,t.createElementVNode)(`div`,vy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,_y))}}),by={},xy={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Sy(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,xy,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var Cy=fy(by,[[`render`,Sy]]),wy={},Ty={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Ey(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ty,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var Dy=fy(wy,[[`render`,Ey]]),Oy={},ky={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function Ay(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,ky,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var jy=fy(Oy,[[`render`,Ay]]),My={},Ny={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Py(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Ny,n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var Fy=fy(My,[[`render`,Py]]),Iy=[`aria-label`],Ly=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],Ry=typeof window<`u`&&typeof document<`u`;function zy(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var By=(0,t.defineComponent)({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:ny},visibleToasts:{default:Zv},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:Qv},mobileOffset:{default:$v},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let n=e,r=(0,t.useAttrs)(),i=(0,t.ref)([]),a=(0,t.computed)(()=>n.id?i.value.filter(e=>e.toasterId===n.id):i.value.filter(e=>!e.toasterId));function o(e,t){return a.value.filter(n=>!n.position&&t===0||n.position===e)}let s=(0,t.computed)(()=>{let e=a.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([n.position].concat(e))):[n.position]}),c=(0,t.computed)(()=>{let e={};return s.value.forEach(t=>{e[t]=i.value.filter(e=>e.position===t)}),e}),l=(0,t.ref)([]),u=(0,t.ref)({}),d=(0,t.ref)(!1);(0,t.watchEffect)(()=>{s.value.forEach(e=>{e in u.value||(u.value[e]=!1)})});let f=(0,t.ref)(n.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:n.theme),p=(0,t.ref)(null),m=(0,t.ref)(null),h=(0,t.ref)(!1),g=n.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function _(e){i.value.find(t=>t.id===e.id)?.delete||$.dismiss(e.id),i.value=i.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{i.value.find(t=>t.id===e.id)||(l.value=l.value.filter(t=>t.toastId!==e.id))},250)}function v(e){h.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(h.value=!1,m.value&&=(m.value.focus({preventScroll:!0}),null))}function y(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||h.value||(h.value=!0,m.value=e.relatedTarget)}function b(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(d.value=!0)}(0,t.watchEffect)(e=>{e($.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{i.value=i.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}(0,t.nextTick)(()=>{let t=i.value.findIndex(t=>t.id===e.id);t===-1?i.value=[e,...i.value]:i.value=[...i.value.slice(0,t),{...i.value[t],...e},...i.value.slice(t+1)]})}))}),(0,t.watchEffect)(e=>{if(typeof window>`u`)return;if(n.theme!==`system`){f.value=n.theme;return}let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{f.value=e?`dark`:`light`};r(t.matches);let i=e=>{r(e.matches)};try{t.addEventListener(`change`,i)}catch{t.addListener(i)}e(()=>{try{t.removeEventListener(`change`,i)}catch{t.removeListener(i)}})}),(0,t.watchEffect)(()=>{p.value&&m.value&&(m.value.focus({preventScroll:!0}),m.value=null,h.value=!1)}),(0,t.watchEffect)(()=>{i.value.length<=1&&Object.keys(u.value).forEach(e=>{u.value[e]=!1})}),(0,t.watchEffect)(e=>{function t(e){let t=n.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(p.value)?p.value[0]:p.value;t&&(s.value.forEach(e=>{u.value[e]=!0}),r?.focus());let i=document.activeElement===p.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&s.value.forEach(e=>{u.value[e]=!1})}Ry&&(document.addEventListener(`keydown`,t),e(()=>{document.removeEventListener(`keydown`,t)}))});function ee(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);u.value[n]=!0}function x(e){if(!d.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);u.value[n]=!1}}function te(){Object.keys(u.value).forEach(e=>{u.value[e]=!1})}function S(){d.value=!1}function C(e){l.value=e}function ne(e){let t=l.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)l.value[t]=e;else{let t=l.value.findIndex(t=>t.position===e.position);t===-1?l.value.unshift(e):l.value.splice(t,0,e)}}return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createCommentVNode)(` Remove item from normal navigation flow, only available via hotkey `),(0,t.createElementVNode)(`section`,{"aria-label":`${e.containerAriaLabel} ${(0,t.unref)(g)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ol`,(0,t.mergeProps)({key:i,ref_for:!0,ref_key:`listRef`,ref:p,"data-sonner-toaster":``,"data-sonner-theme":f.value,class:n.class,dir:e.dir===`auto`?zy():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":i.split(`-`)[0],"data-x-position":i.split(`-`)[1],style:{"--front-toast-height":`${l.value[0]?.height||0}px`,"--width":`${(0,t.unref)(ty)}px`,"--gap":`${e.gap}px`,...e.style,...(0,t.unref)(r).style,...(0,t.unref)(cy)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:v,onFocus:y,onMouseenter:ee,onMousemove:ee,onMouseleave:x,onDragend:te,onPointerdown:b,onPointerup:S}),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o(i,a),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)(dy,{key:r.id,heights:l.value,icons:e.icons,index:a,toast:r,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:(0,t.normalizeClass)(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:d.value,position:i,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:(0,t.normalizeStyle)(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:c.value[i],expandByDefault:e.expand,gap:e.gap,expanded:u.value[i]||!1,swipeDirections:n.swipeDirections,"onUpdate:heights":C,"onUpdate:height":ne,onRemoveToast:_},{"close-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`close-icon`,{},()=>[(0,t.createVNode)(gy)])]),"loading-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`loading-icon`,{},()=>[(0,t.createVNode)(yy,{visible:r.type===`loading`},null,8,[`visible`])])]),"success-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`success-icon`,{},()=>[(0,t.createVNode)(Cy)])]),"error-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`error-icon`,{},()=>[(0,t.createVNode)(Fy)])]),"warning-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`warning-icon`,{},()=>[(0,t.createVNode)(jy)])]),"info-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`info-icon`,{},()=>[(0,t.createVNode)(Dy)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,Ly))),128))],8,Iy)],2112))}}),[Vy,Hy]=R(`toastContext`),Uy=(0,t.defineComponent)({__name:`ToastActions`,setup(e){let{actions:n,customClassConfig:r,style:i,onClose:a}=Hy();function o(e){return Object.entries(e).reduce((e,[n,r])=>(e[n]=(0,t.toValue)(r),e),{})}return(e,s)=>(0,t.unref)(n).length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)((0,t.unref)(i).actions({class:(0,t.unref)(r).actions}))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(n),e=>((0,t.openBlock)(),(0,t.createBlock)(vs,(0,t.mergeProps)({key:e.label},{ref_for:!0},o({...e,onClick:void 0}),{size:(0,t.toValue)(e.size)??`sm`,onClick:()=>{e.onClick((0,t.unref)(a))}}),{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1040,[`size`,`onClick`]))),128))],2)):(0,t.createCommentVNode)(``,!0)}}),Wy=(0,t.defineComponent)({__name:`ToastCloseButton`,setup(e){let{customClassConfig:n,onClose:r}=Hy(),{t:a}=(0,i.useI18n)();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(q,{label:(0,t.unref)(a)(`shared.close`),"class-config":(0,t.unref)(ln)({root:`absolute top-1.5 right-1.5`},(0,t.unref)(n)?.closeButton),icon:`close`,variant:`tertiary`,size:`sm`,onClick:(0,t.unref)(r)},null,8,[`label`,`class-config`,`onClick`]))}}),Gy=[`innerHTML`],Ky=(0,t.defineComponent)({__name:`ToastDescription`,setup(e){let{customClassConfig:n,description:r,style:i}=Hy();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{class:(0,t.normalizeClass)((0,t.unref)(i).description({class:(0,t.unref)(n).description})),innerHTML:(0,t.unref)(r)},null,10,Gy))}}),qy={key:0,class:`flex h-lh items-center`},Jy=(0,t.defineComponent)({__name:`ToastIcon`,setup(e){let{customClassConfig:n,icon:r,preview:i,style:a,type:o}=Hy(),s=(0,t.computed)(()=>r.value===null?o.value===`success`?`checkCircle`:o.value===`error`?`alertCircle`:`infoCircle`:r.value);return(e,r)=>(0,t.unref)(i)===null&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qy,[(0,t.createVNode)(L,{icon:s.value,class:(0,t.normalizeClass)((0,t.unref)(a).icon({class:(0,t.unref)(n).icon}))},null,8,[`icon`,`class`])])):(0,t.createCommentVNode)(``,!0)}}),Yy=(0,t.defineComponent)({__name:`ToastPreview`,setup(e){let{preview:n}=Hy();return(e,r)=>(0,t.unref)(n)===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(n)),{key:0}))}}),Xy=H({slots:{title:new U().withBase(`truncate`).withFontSize(`text-sm`).withColor(`text-primary`).withFontWeight(`font-semibold`).build(),actions:new U().withFlex(`flex items-center gap-x-sm mt-lg`).build(),description:new U().withSpacing(`mt-xs`).withBase(`line-clamp-2`).withFontSize(`text-sm`).withFontColor(`text-secondary`).build(),icon:new U().withSize(`size-5`).withColor(`group-data-[type=success]/toast:text-success-primary group-data-[type=error]/toast:text-error-primary group-data-[type=info]/toast:text-fg-brand-primary`).build(),root:new U().withBase(`group/toast relative pointer-events-auto`).withGrid(`grid grid-cols-[auto_1fr] items-start gap-lg`).withSize(`w-100`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-xl`).withBackgroundColor(`bg-primary dark:bg-secondary`).withPadding(`p-xl`).withShadow(`shadow-lg`).withOutline(`outline-brand-500`).build()}}),Zy=[`data-type`],Qy=(0,t.defineComponent)({__name:`ToastRoot`,props:{title:{},actions:{default:()=>[]},description:{},icon:{default:null},preview:{default:null},type:{},testId:{default:null}},emits:[`closeToast`],setup(e,{emit:n}){let r=e,i=n,{theme:a}=W(),o=(0,t.computed)(()=>Xy({})),s=(0,t.computed)(()=>N(`toast`,a.value,{}));function c(){i(`closeToast`)}return Vy({...G(r),customClassConfig:s,style:o,onClose:c}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(o.value.root({class:s.value.root})),"data-type":e.type},[(0,t.renderSlot)(n.$slots,`default`)],10,Zy))}}),$y=(0,t.defineComponent)({__name:`ToastTitle`,setup(e){let{title:n,customClassConfig:r,style:i}=Hy();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)((0,t.unref)(i).title({class:(0,t.unref)(r).title}))},(0,t.toDisplayString)((0,t.unref)(n)),3))}}),eb=(0,t.defineComponent)({__name:`Toast`,props:{title:{},actions:{},description:{},icon:{},preview:{},type:{},testId:{}},emits:[`closeToast`],setup(e,{emit:n}){let r=e,i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Qy,(0,t.mergeProps)(r,{onCloseToast:n[0]||=e=>i(`closeToast`)}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Yy),(0,t.createVNode)(Jy),(0,t.createElementVNode)(`div`,null,[(0,t.createVNode)($y),(0,t.createVNode)(Ky),(0,t.createVNode)(Uy)]),(0,t.createVNode)(Wy)]),_:1},16))}}),tb=1/0,nb=5e3,rb=7e3;function ib(e){return`${e.title}${e.description}`}function ab(){let{autoCloseToast:e,toastPosition:n}=J();function r(t,n){if(t.durationMs!==void 0&&t.durationMs!==null)return t.durationMs;let r=e.value?.[n]??null;return r===null?n===`error`?tb:nb:typeof r==`number`?r:r===!0?n===`error`?rb:nb:tb}function i(e){Yv.custom((0,t.h)(eb,{...e,type:`error`}),{id:ib(e),duration:r(e,`error`),position:n})}function a(e){Yv.custom((0,t.h)(eb,{...e,type:`info`}),{id:ib(e),duration:r(e,`info`),position:n})}function o(e){Yv.custom((0,t.h)(eb,{...e,type:`success`}),{id:ib(e),duration:r(e,`success`),position:n})}return{error:i,info:a,success:o}}var ob=(0,t.defineComponent)({__name:`ToastContainer`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(By),{class:`right-20!`}))}}),[sb,cb]=R(`tooltipContext`),lb=(0,t.defineComponent)({__name:`TooltipArrow`,setup(e){let{isPopoverArrowHidden:r,classConfig:i,customClassConfig:a,style:o}=cb();return(e,s)=>(0,t.unref)(r)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipArrow),{key:0,as:`div`,class:`relative -mb-4 h-4 w-10 -translate-y-px overflow-hidden`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(o).arrow({class:(0,t.unref)(P)((0,t.unref)(a).arrow,(0,t.unref)(i)?.arrow)}))},null,2)]),_:1}))}}),ub=(0,t.defineComponent)({__name:`TooltipContent`,setup(e){let{testId:i,isOpen:a,classConfig:o,customClassConfig:s,popoverAlign:c,popoverAlignOffset:l,popoverCollisionPadding:u,popoverContainerElement:d,popoverSide:f,popoverSideOffset:p,popoverWidth:m,style:h}=cb();return(e,g)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.AnimatePresence),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)(B,{key:0,"test-id":(0,t.unref)(i)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(jo,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.TooltipContent),{"force-mount":!0,"as-child":!0,"data-content-width":(0,t.unref)(m),align:(0,t.unref)(c),"align-offset":(0,t.unref)(l),"collision-padding":(0,t.unref)(u),"collision-boundary":(0,t.unref)(d),side:(0,t.unref)(f),"side-offset":(0,t.unref)(p),class:(0,t.normalizeClass)((0,t.unref)(h).content({class:(0,t.unref)(P)((0,t.unref)(s)?.content,(0,t.unref)(o)?.content)})),"position-strategy":`absolute`,sticky:`always`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`data-content-width`,`align`,`align-offset`,`collision-padding`,`collision-boundary`,`side`,`side-offset`,`class`])]),_:3})]),_:3},8,[`test-id`])):(0,t.createCommentVNode)(``,!0)]),_:3}))}}),db=4,fb=(0,t.defineComponent)({__name:`TooltipContentTransition`,setup(e){let{isInitialAnimationEnabled:n}=cb(),i=(0,t.useAttrs)(),a=(0,t.computed)(()=>i[`data-side`]);function o(e){switch(e){case`top`:return{transform:`translateY(${db}px) scale(0.9)`};case`bottom`:return{transform:`translateY(-${db}px) scale(0.9)`};case`left`:return{transform:`translateX(${db}px) scale(0.9)`};case`right`:return{transform:`translateX(-${db}px) scale(0.9)`}}}return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.Motion),{initial:{opacity:0,...o(a.value)},animate:{opacity:1,transform:`translate(0, 0) scale(1)`,transition:(0,t.unref)(n)?{duration:.2,type:`spring`,bounce:0}:{duration:0}},exit:{opacity:0,...o(a.value)},transition:{duration:.2,type:`spring`,bounce:0},class:`origin-(--reka-tooltip-content-transform-origin)`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`initial`,`animate`,`exit`]))}}),pb=(0,t.defineComponent)({__name:`TooltipInnerContent`,setup(e){let{classConfig:n,customClassConfig:r,style:i}=cb();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)((0,t.unref)(i).innerContent({class:(0,t.unref)(P)((0,t.unref)(r).innerContent,(0,t.unref)(n)?.innerContent)}))},[(0,t.renderSlot)(e.$slots,`default`)],2))}}),mb=(0,t.defineComponent)({__name:`TooltipPortal`,setup(e){let n=J();return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{defer:!0,to:(0,t.unref)(n).teleportTargetSelector},[(0,t.renderSlot)(e.$slots,`default`)],8,[`to`]))}}),hb=H({slots:{arrow:new U().withClasses(`absolute left-1/2 rotate-45`).withSize(`size-4`).withTranslate(`-translate-x-1/2 -translate-y-3`).withBorderRadius(`rounded-xxs`).withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withShadow(`shadow-lg`).build(),content:new U().withBase(`data-[content-width=anchor-width]:w-(--reka-tooltip-trigger-width) data-[content-width=available-width]:w-(--reka-tooltip-content-available-width)`).withZIndex(`z-40`).build(),innerContent:new U().withBackgroundColor(`bg-primary`).withBorder(`border border-solid border-secondary`).withBorderRadius(`rounded-lg`).withBase(`relative overflow-hidden`).withSize(`size-full`).withBorderRadius(`rounded-lg`).withShadow(`shadow-lg`).build()},variants:{variant:{}}}),gb=(0,t.defineComponent)({__name:`TooltipRoot`,props:(0,t.mergeModels)({isDisabled:{type:Boolean,default:!1},delayDuration:{default:200},disableCloseOnTriggerClick:{type:Boolean,default:!1},disableHoverableContent:{type:Boolean,default:!1},variant:{default:null},isPopoverArrowHidden:{type:Boolean,default:!1},popoverAlign:{default:`center`},popoverAlignOffset:{default:0},popoverAnchorReferenceElement:{default:null},popoverCollisionPadding:{default:10},popoverContainerElement:{default:null},popoverSide:{default:`top`},popoverSideOffset:{default:10},popoverWidth:{default:null},testId:{default:null},classConfig:{default:null}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:[`update:isOpen`],setup(e){let r=e,i=(0,t.useModel)(e,`isOpen`),{theme:a}=W(),{isOpenDelayed:o}=(0,n.injectTooltipProviderContext)(),s=(0,t.ref)(!0);(0,t.watch)(o,e=>{e?s.value=!0:setTimeout(()=>{s.value=e},100)});let c=(0,t.computed)(()=>hb({variant:r.variant??void 0})),l=(0,t.computed)(()=>N(`tooltip`,a.value,{variant:r.variant}));return sb({...G(r),isInitialAnimationEnabled:(0,t.computed)(()=>s.value),isOpen:(0,t.computed)(()=>i.value),customClassConfig:l,style:c}),(e,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipRoot),{open:i.value,"onUpdate:open":a[0]||=e=>i.value=e,"delay-duration":r.delayDuration,"disable-hoverable-content":r.disableHoverableContent,"disable-closing-trigger":r.disableCloseOnTriggerClick,disabled:r.isDisabled,"ignore-non-keyboard-focus":!0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`open`,`delay-duration`,`disable-hoverable-content`,`disable-closing-trigger`,`disabled`]))}}),_b=(0,t.defineComponent)({__name:`TooltipTrigger`,setup(e){let{popoverAnchorReferenceElement:r}=cb();return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.TooltipTrigger),{"as-child":!0,reference:(0,t.unref)(r)??void 0},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`reference`]))}}),vb=(0,t.defineComponent)({__name:`Tooltip`,props:(0,t.mergeModels)({isDisabled:{type:Boolean},delayDuration:{},disableCloseOnTriggerClick:{type:Boolean},disableHoverableContent:{type:Boolean},variant:{},isPopoverArrowHidden:{type:Boolean},popoverAlign:{},popoverAlignOffset:{},popoverAnchorReferenceElement:{},popoverCollisionPadding:{},popoverContainerElement:{},popoverSide:{},popoverSideOffset:{},popoverWidth:{},testId:{},classConfig:{}},{isOpen:{type:Boolean,default:!1,required:!1},isOpenModifiers:{}}),emits:[`update:isOpen`],setup(e){let n=e,r=(0,t.useModel)(e,`isOpen`);return(e,i)=>((0,t.openBlock)(),(0,t.createBlock)(gb,(0,t.mergeProps)(n,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(_b,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`trigger`)]),_:3}),(0,t.createVNode)(mb,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ub,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(fb,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pb,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`)]),_:3}),(0,t.createVNode)(lb)]),_:3})]),_:3})]),_:3})]),_:3},16,[`modelValue`]))}});function yb(){return Te(`theme`,()=>`light`)}var bb=new WeakMap;function xb(e,n,r={}){let{mode:i=`replace`,route:o=(0,a.useRoute)(),router:s=(0,a.useRouter)(),transform:c}=r,l=e=>e,u=e=>e;typeof c==`function`?l=c:c&&(c.get&&(l=c.get),c.set&&(u=c.set)),bb.has(s)||bb.set(s,new Map);let d=bb.get(s),f=o.query[e];b(()=>{f=void 0});let p,m=(0,t.customRef)((r,a)=>(p=a,{get(){return r(),l(f===void 0?(0,t.toValue)(n):f)},set(r){r=u(r),f!==r&&(f=r===(0,t.toValue)(n)?void 0:r,d.set(e,r===(0,t.toValue)(n)?void 0:r),a(),(0,t.nextTick)(()=>{if(d.size===0)return;let e=Object.fromEntries(d.entries());d.clear();let{params:n,query:r,hash:a}=o;s[(0,t.toValue)(i)]({params:n,query:{...r,...e},hash:a})}))}}));return(0,t.watch)(()=>o.query[e],e=>{f!==l(e)&&(f=e,p())},{flush:`sync`}),m}function Sb(e){return btoa(e)}function Cb(e){return atob(e)}var wb=20;function Tb({isRouteQueryEnabled:e,key:n,options:r=null,type:i=`offset`}){let a=J(),o={filter:{},pagination:i===`offset`?{limit:a.pagination?.limit??wb,offset:0,type:`offset`}:{key:null,limit:a.pagination?.limit??wb,type:`keyset`},search:void 0,sort:void 0,staticFilters:{}};if(e&&n===void 0)throw Error("The `key` prop is required when using the `isRouteQueryEnabled` prop");let s=e?xb(n):null,c=(0,t.shallowRef)(d());function l(e,t){let n={...t.filter,...e.filter},r=t.search??e.search??``;return{filter:n,pagination:{...t.pagination,...e.pagination},search:r.trim().length>0?r:void 0,sort:t.sort??e.sort??void 0,staticFilters:{...t.staticFilters,...e.staticFilters}}}function u(){if(s===null)return null;let e=s.value;return e==null?null:JSON.parse(Cb(e.toString()))}function d(){let e=u();return e===null?r===null?structuredClone(o):l((0,t.toValue)(r),o):e}function f(e){c.value={...c.value,pagination:{...c.value.pagination,...e}}}function p(e){let t=Object.fromEntries(Object.entries({...c.value.filter,...e}).filter(([,e])=>e!==void 0));c.value={...c.value,filter:t,pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`}}}function m(e){c.value={...c.value,pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`},search:e.trim().length>0?e:void 0}}function h(e){c.value={...c.value,sort:{key:e.key,order:e.order}}}function g(){c.value={...c.value,filter:{},pagination:i===`offset`?{...c.value.pagination,offset:0,type:`offset`}:{...c.value.pagination,key:null,type:`keyset`}}}return(0,t.watch)(()=>(0,t.toValue)(r),e=>{e!==null&&(c.value=l((0,t.toValue)(e),c.value))}),(0,t.watch)(c,t=>{e&&s!==null&&(s.value=Sb(JSON.stringify(t)))}),{clearFilters:g,handleFilterChange:p,handlePageChange:f,handleSearchChange:m,handleSortChange:h,paginationOptions:(0,t.computed)(()=>c.value)}}var Eb=0,Db=20,Ob=class{params;constructor(e){let t={...e?.filter,...e?.staticFilters},n=this.getPaginationSet(e);this.params={pagination:n,search:e?.search};for(let[e,n]of Object.entries(t))this.withFilter(e,n);e?.sort!==void 0&&this.withSort({key:e.sort.key,order:e.sort.order})}getPaginationSet(e){let t=e?.pagination.limit??Db;return e===void 0?{limit:t,offset:Eb}:e?.pagination?.type===`offset`?{limit:t,offset:e?.pagination.offset??Eb}:{key:e?.pagination.key,limit:t}}build(e){let t=this.params.pagination;return{...this.params,filter:e?.(this.params).filter,pagination:{limit:t.limit,offset:`offset`in t?t.offset:Eb},sort:this.params?.sort?.map(e=>({key:e.key,order:e.order}))??[]}}buildKeyset(e){return{...this.params,filter:e?.(this.params).filter,pagination:{key:this.params.pagination.key,limit:this.params.pagination?.limit},sort:this.params?.sort?.map(e=>({key:e.key,order:e.order}))??[]}}withFilter(e,t){return t!==null&&t!==``&&(this.params.filter={...this.params.filter,[e]:t}),this}withKey(e){if(`offset`in this.params.pagination)throw Error(`Cannot set key when using offset pagination`);return this.params.pagination.key=e,this}withLimit(e){return this.params.pagination.limit=e,this}withOffset(e){if(`key`in this.params.pagination)throw Error(`Cannot set offset when using keyset pagination`);return`offset`in this.params.pagination&&(this.params.pagination.offset=e),this}withSearch(e){return this.params.search=e,this}withSort(e){return this.params.sort=[{key:e.key,order:e.order}],this}};e.FileUploadStatus=ed,e.PaginationParamsBuilder=Ob,e.VcAddressAutocomplete=es,e.VcAutocomplete=Xo,e.VcAvatar=ss,e.VcAvatarFallback=is,e.VcAvatarImage=as,e.VcAvatarRoot=os,e.VcBadge=eo,e.VcBadgeIcon=Ia,e.VcBadgeRemoveButton=Xa,e.VcBadgeRoot=$a,e.VcButton=vs,e.VcButtonContent=fs,e.VcButtonIconLeft=ps,e.VcButtonIconRight=ms,e.VcButtonLoader=gs,e.VcButtonRoot=_s,e.VcCheckbox=Fs,e.VcCheckboxControl=Ms,e.VcCheckboxGroup=Rs,e.VcCheckboxGroupRoot=Ls,e.VcCheckboxIndicator=js,e.VcCheckboxRoot=Ps,e.VcConfigProvider=Bs,e.VcDateField=Bl,e.VcDateFieldIconLeft=Ws,e.VcDateFieldInput=Gs,e.VcDateFieldLoader=qs,e.VcDateFieldPopover=Ll,e.VcDateFieldRoot=zl,e.VcDatePicker=Ml,e.VcDatePickerDate=Qs,e.VcDatePickerGrid=ul,e.VcDatePickerHeader=Ol,e.VcDatePickerRoot=jl,e.VcDateRangeField=du,e.VcDateRangeFieldIconLeft=ru,e.VcDateRangeFieldInput=iu,e.VcDateRangeFieldLoader=ou,e.VcDateRangeFieldRoot=uu,e.VcDateRangePicker=$l,e.VcDateRangePickerDate=Wl,e.VcDateRangePickerGrid=Gl,e.VcDateRangePickerHeader=Zl,e.VcDateRangePickerRoot=Ql,e.VcDateRangefieldPopover=cu,e.VcDialog=Tu,e.VcDialogCloseButton=Du,e.VcDialogContainer=Eu,e.VcDialogContent=yu,e.VcDialogContentTransition=bu,e.VcDialogDescription=Ou,e.VcDialogOverlay=xu,e.VcDialogOverlayTransition=Su,e.VcDialogPortal=Cu,e.VcDialogRoot=wu,e.VcDialogTitle=ku,e.VcDropdownMenu=Vu,e.VcDropdownMenuArrow=Nu,e.VcDropdownMenuContent=Pu,e.VcDropdownMenuContentTransition=Lu,e.VcDropdownMenuGroup=Hu,e.VcDropdownMenuItem=Ju,e.VcDropdownMenuItemIcon=Ku,e.VcDropdownMenuItemLabel=qu,e.VcDropdownMenuPortal=Ru,e.VcDropdownMenuRoot=zu,e.VcDropdownMenuSeparator=Yu,e.VcDropdownMenuSubMenu=Qu,e.VcDropdownMenuSubMenuTransition=Zu,e.VcDropdownMenuTrigger=Bu,e.VcFileUploadDropzone=rd,e.VcFileUploadItem=yd,e.VcFileUploadItemRemove=bd,e.VcFileUploadItemReplace=xd,e.VcFileUploadRoot=wd,e.VcFileUploadTrigger=Td,e.VcFormField=Ma,e.VcFormFieldError=ia,e.VcFormFieldHint=oa,e.VcFormFieldLabel=la,e.VcFormFieldRoot=ja,e.VcIcon=L,e.VcIconButton=q,e.VcIconButtonIcon=za,e.VcIconButtonLoader=Ga,e.VcIconButtonRoot=Ya,e.VcKeyboardKey=Dd,e.VcKeyboardShortcut=jd,e.VcKeyboardShortcutProvider=Fd,e.VcLayoutStackItem=Rd,e.VcLayoutStackRoot=zd,e.VcNumberField=Sl,e.VcNumberFieldDecrement=pl,e.VcNumberFieldIconLeft=ml,e.VcNumberFieldIconRight=hl,e.VcNumberFieldIncrement=gl,e.VcNumberFieldInput=_l,e.VcNumberFieldLoader=yl,e.VcNumberFieldRoot=xl,e.VcPasswordField=Wd,e.VcPhoneNumberField=S_,e.VcPopover=Fl,e.VcPopoverAnchor=ko,e.VcPopoverArrow=Ao,e.VcPopoverCloseButton=C_,e.VcPopoverContent=Mo,e.VcPopoverContentTransition=Pl,e.VcPopoverPortal=Po,e.VcPopoverRoot=Io,e.VcPopoverTrigger=zo,e.VcRadioGroup=T_,e.VcRadioGroupItem=N_,e.VcRadioGroupItemControl=A_,e.VcRadioGroupItemIndicator=O_,e.VcRadioGroupItemRoot=M_,e.VcRadioGroupRoot=w_,e.VcRouterLinkButton=Es,e.VcRouterLinkButtonContent=xs,e.VcRouterLinkButtonIconLeft=Ss,e.VcRouterLinkButtonIconRight=Cs,e.VcRouterLinkButtonRoot=Ts,e.VcRouterLinkTabs=Ev,e.VcRouterLinkTabsItem=Tv,e.VcSelect=Yo,e.VcSelectBase=co,e.VcSelectBaseMultiple=ao,e.VcSelectBaseSingle=so,e.VcSelectItem=ea,e.VcSelectItemIndicator=Zi,e.VcSpinner=Ua,e.VcSwitch=B_,e.VcSwitchRoot=L_,e.VcSwitchThumb=R_,e.VcSwitchThumbIcon=z_,e.VcTableBody=G_,e.VcTableCell=Y_,e.VcTableCellSkeleton=X_,e.VcTableContent=Z_,e.VcTableHeader=Q_,e.VcTableHeaderCell=$_,e.VcTableHiddenResultsHint=tv,e.VcTableRoot=iv,e.VcTableRow=sv,e.VcTableScrollContainer=cv,e.VcTabs=Sv,e.VcTabsBase=dv,e.VcTabsContent=Cv,e.VcTabsIndicator=fv,e.VcTabsItem=wv,e.VcTabsList=pv,e.VcTabsRoot=gv,e.VcTextField=Ud,e.VcTextFieldIconLeft=po,e.VcTextFieldIconRight=Bd,e.VcTextFieldInput=ho,e.VcTextFieldLoader=Hd,e.VcTextFieldRoot=vo,e.VcTextarea=Pv,e.VcTextareaInput=Av,e.VcTextareaRoot=Nv,e.VcThemeProvider=jo,e.VcTimeField=Gv,e.VcTimeFieldIconLeft=Lv,e.VcTimeFieldInput=Rv,e.VcTimeFieldLoader=Bv,e.VcTimeFieldRoot=Uv,e.VcToastContainer=ob,e.VcTooltip=vb,e.VcTooltipArrow=lb,e.VcTooltipContent=ub,e.VcTooltipContentTransition=fb,e.VcTooltipInnerContent=pb,e.VcTooltipPortal=mb,e.VcTooltipProvider=zs,e.VcTooltipRoot=gb,e.VcTooltipTrigger=_b,e.createAvatarStyle=ts,e.createBadgeStyle=Za,e.createButtonStyle=ls,e.createDateFieldStyle=Vs,e.createDatePickerStyle=Al,e.createDateRangeFieldStyle=eu,e.createDateRangePickerStyle=Vl,e.createDialogStyle=gu,e.createDropdownMenuStyle=Au,e.createFormFieldStyle=Da,e.createIconButtonStyle=qa,e.createKeyboardKeyStyle=Ed,e.createKeyboardShortcutStyle=Od,e.createNumberFieldStyle=bl,e.createPopoverStyle=Fo,e.createRouterLinkButtonStyle=ws,e.createSelectStyle=Go,e.createTabsStyle=hv,e.createTextFieldStyle=go,e.createToastStyle=Xy,e.createTooltipStyle=hb,e.defineComponentVariant=sn,e.extendIcons=qi,e.useAppearance=yb,e.useDialog=hu,e.useInjectConfigContext=J,e.useInjectToastContext=Hy,e.useKeyboardShortcut=Pd,e.usePagination=Tb,e.useToast=ab});