chiperos-ai-components-library 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,59 +1,46 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react"),Si=require("react-dom");function Ei(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=Ei(te),mr=Ei(Si);var Ht={exports:{}},At={};var so;function nd(){if(so)return At;so=1;var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,d,c){var l,p={},$=null,g=null;c!==void 0&&($=""+c),d.key!==void 0&&($=""+d.key),d.ref!==void 0&&(g=d.ref);for(l in d)n.call(d,l)&&!i.hasOwnProperty(l)&&(p[l]=d[l]);if(a&&a.defaultProps)for(l in d=a.defaultProps,d)p[l]===void 0&&(p[l]=d[l]);return{$$typeof:t,type:a,key:$,ref:g,props:p,_owner:o.current}}return At.Fragment=r,At.jsx=s,At.jsxs=s,At}var kt={};var ao;function od(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,h="@@iterator";function v(m){if(m===null||typeof m!="object")return null;var _=x&&m[x]||m[h];return typeof _=="function"?_:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(m){{for(var _=arguments.length,N=new Array(_>1?_-1:0),I=1;I<_;I++)N[I-1]=arguments[I];w("error",m,N)}}function w(m,_,N){{var I=y.ReactDebugCurrentFrame,X=I.getStackAddendum();X!==""&&(_+="%s",N=N.concat([X]));var J=N.map(function(G){return String(G)});J.unshift("Warning: "+_),Function.prototype.apply.call(console[m],console,J)}}var C=!1,S=!1,R=!1,P=!1,j=!1,B;B=Symbol.for("react.module.reference");function Z(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===i||j||m===o||m===c||m===l||P||m===g||C||S||R||typeof m=="object"&&m!==null&&(m.$$typeof===$||m.$$typeof===p||m.$$typeof===s||m.$$typeof===a||m.$$typeof===d||m.$$typeof===B||m.getModuleId!==void 0))}function K(m,_,N){var I=m.displayName;if(I)return I;var X=_.displayName||_.name||"";return X!==""?N+"("+X+")":N}function A(m){return m.displayName||"Context"}function D(m){if(m==null)return null;if(typeof m.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case a:var _=m;return A(_)+".Consumer";case s:var N=m;return A(N._context)+".Provider";case d:return K(m,m.render,"ForwardRef");case p:var I=m.displayName||null;return I!==null?I:D(m.type)||"Memo";case $:{var X=m,J=X._payload,G=X._init;try{return D(G(J))}catch{return null}}}return null}var k=Object.assign,W=0,L,V,O,H,ce,le,Ve;function Ue(){}Ue.__reactDisabledLog=!0;function ke(){{if(W===0){L=console.log,V=console.info,O=console.warn,H=console.error,ce=console.group,le=console.groupCollapsed,Ve=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}W++}}function He(){{if(W--,W===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},m,{value:L}),info:k({},m,{value:V}),warn:k({},m,{value:O}),error:k({},m,{value:H}),group:k({},m,{value:ce}),groupCollapsed:k({},m,{value:le}),groupEnd:k({},m,{value:Ve})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=y.ReactCurrentDispatcher,T;function q(m,_,N){{if(T===void 0)try{throw Error()}catch(X){var I=X.stack.trim().match(/\n( *(at )?)/);T=I&&I[1]||""}return`
2
- `+T+m}}var fe=!1,Y;{var Q=typeof WeakMap=="function"?WeakMap:Map;Y=new Q}function oe(m,_){if(!m||fe)return"";{var N=Y.get(m);if(N!==void 0)return N}var I;fe=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=Ee.current,Ee.current=null,ke();try{if(_){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(ve){I=ve}Reflect.construct(m,[],G)}else{try{G.call()}catch(ve){I=ve}m.call(G.prototype)}}else{try{throw Error()}catch(ve){I=ve}m()}}catch(ve){if(ve&&I&&typeof ve.stack=="string"){for(var U=ve.stack.split(`
3
- `),he=I.stack.split(`
4
- `),ae=U.length-1,ue=he.length-1;ae>=1&&ue>=0&&U[ae]!==he[ue];)ue--;for(;ae>=1&&ue>=0;ae--,ue--)if(U[ae]!==he[ue]){if(ae!==1||ue!==1)do if(ae--,ue--,ue<0||U[ae]!==he[ue]){var _e=`
5
- `+U[ae].replace(" at new "," at ");return m.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",m.displayName)),typeof m=="function"&&Y.set(m,_e),_e}while(ae>=1&&ue>=0);break}}}finally{fe=!1,Ee.current=J,He(),Error.prepareStackTrace=X}var ft=m?m.displayName||m.name:"",rt=ft?q(ft):"";return typeof m=="function"&&Y.set(m,rt),rt}function ge(m,_,N){return oe(m,!1)}function De(m){var _=m.prototype;return!!(_&&_.isReactComponent)}function Ge(m,_,N){if(m==null)return"";if(typeof m=="function")return oe(m,De(m));if(typeof m=="string")return q(m);switch(m){case c:return q("Suspense");case l:return q("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case d:return ge(m.render);case p:return Ge(m.type,_,N);case $:{var I=m,X=I._payload,J=I._init;try{return Ge(J(X),_,N)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,lt={},Gn=y.ReactDebugCurrentFrame;function Ut(m){if(m){var _=m._owner,N=Ge(m.type,m._source,_?_.type:null);Gn.setExtraStackFrame(N)}else Gn.setExtraStackFrame(null)}function ja(m,_,N,I,X){{var J=Function.call.bind(Me);for(var G in m)if(J(m,G)){var U=void 0;try{if(typeof m[G]!="function"){var he=Error((I||"React class")+": "+N+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw he.name="Invariant Violation",he}U=m[G](_,G,I,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ae){U=ae}U&&!(U instanceof Error)&&(Ut(X),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",N,G,typeof U),Ut(null)),U instanceof Error&&!(U.message in lt)&&(lt[U.message]=!0,Ut(X),b("Failed %s type: %s",N,U.message),Ut(null))}}}var Fa=Array.isArray;function jr(m){return Fa(m)}function La(m){{var _=typeof Symbol=="function"&&Symbol.toStringTag,N=_&&m[Symbol.toStringTag]||m.constructor.name||"Object";return N}}function Da(m){try{return Kn(m),!1}catch{return!0}}function Kn(m){return""+m}function Yn(m){if(Da(m))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",La(m)),Kn(m)}var Xn=y.ReactCurrentOwner,Ma={key:!0,ref:!0,__self:!0,__source:!0},qn,Jn;function za(m){if(Me.call(m,"ref")){var _=Object.getOwnPropertyDescriptor(m,"ref").get;if(_&&_.isReactWarning)return!1}return m.ref!==void 0}function Ba(m){if(Me.call(m,"key")){var _=Object.getOwnPropertyDescriptor(m,"key").get;if(_&&_.isReactWarning)return!1}return m.key!==void 0}function Za(m,_){typeof m.ref=="string"&&Xn.current}function Wa(m,_){{var N=function(){qn||(qn=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_))};N.isReactWarning=!0,Object.defineProperty(m,"key",{get:N,configurable:!0})}}function Va(m,_){{var N=function(){Jn||(Jn=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_))};N.isReactWarning=!0,Object.defineProperty(m,"ref",{get:N,configurable:!0})}}var Ua=function(m,_,N,I,X,J,G){var U={$$typeof:t,type:m,key:_,ref:N,props:G,_owner:J};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Ha(m,_,N,I,X){{var J,G={},U=null,he=null;N!==void 0&&(Yn(N),U=""+N),Ba(_)&&(Yn(_.key),U=""+_.key),za(_)&&(he=_.ref,Za(_,X));for(J in _)Me.call(_,J)&&!Ma.hasOwnProperty(J)&&(G[J]=_[J]);if(m&&m.defaultProps){var ae=m.defaultProps;for(J in ae)G[J]===void 0&&(G[J]=ae[J])}if(U||he){var ue=typeof m=="function"?m.displayName||m.name||"Unknown":m;U&&Wa(G,ue),he&&Va(G,ue)}return Ua(m,U,he,X,I,Xn.current,G)}}var Fr=y.ReactCurrentOwner,Qn=y.ReactDebugCurrentFrame;function ut(m){if(m){var _=m._owner,N=Ge(m.type,m._source,_?_.type:null);Qn.setExtraStackFrame(N)}else Qn.setExtraStackFrame(null)}var Lr;Lr=!1;function Dr(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function eo(){{if(Fr.current){var m=D(Fr.current.type);if(m)return`
6
-
7
- Check the render method of \``+m+"`."}return""}}function Ga(m){return""}var to={};function Ka(m){{var _=eo();if(!_){var N=typeof m=="string"?m:m.displayName||m.name;N&&(_=`
8
-
9
- Check the top-level render call using <`+N+">.")}return _}}function ro(m,_){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var N=Ka(_);if(to[N])return;to[N]=!0;var I="";m&&m._owner&&m._owner!==Fr.current&&(I=" It was passed a child from "+D(m._owner.type)+"."),ut(m),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,I),ut(null)}}function no(m,_){{if(typeof m!="object")return;if(jr(m))for(var N=0;N<m.length;N++){var I=m[N];Dr(I)&&ro(I,_)}else if(Dr(m))m._store&&(m._store.validated=!0);else if(m){var X=v(m);if(typeof X=="function"&&X!==m.entries)for(var J=X.call(m),G;!(G=J.next()).done;)Dr(G.value)&&ro(G.value,_)}}}function Ya(m){{var _=m.type;if(_==null||typeof _=="string")return;var N;if(typeof _=="function")N=_.propTypes;else if(typeof _=="object"&&(_.$$typeof===d||_.$$typeof===p))N=_.propTypes;else return;if(N){var I=D(_);ja(N,m.props,"prop",I,m)}else if(_.PropTypes!==void 0&&!Lr){Lr=!0;var X=D(_);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof _.getDefaultProps=="function"&&!_.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xa(m){{for(var _=Object.keys(m.props),N=0;N<_.length;N++){var I=_[N];if(I!=="children"&&I!=="key"){ut(m),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),ut(null);break}}m.ref!==null&&(ut(m),b("Invalid attribute `ref` supplied to `React.Fragment`."),ut(null))}}var oo={};function io(m,_,N,I,X,J){{var G=Z(m);if(!G){var U="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var he=Ga();he?U+=he:U+=eo();var ae;m===null?ae="null":jr(m)?ae="array":m!==void 0&&m.$$typeof===t?(ae="<"+(D(m.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):ae=typeof m,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ae,U)}var ue=Ha(m,_,N,X,J);if(ue==null)return ue;if(G){var _e=_.children;if(_e!==void 0)if(I)if(jr(_e)){for(var ft=0;ft<_e.length;ft++)no(_e[ft],m);Object.freeze&&Object.freeze(_e)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else no(_e,m)}if(Me.call(_,"key")){var rt=D(m),ve=Object.keys(_).filter(function(rd){return rd!=="key"}),Mr=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!oo[rt+Mr]){var td=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
10
- let props = %s;
11
- <%s {...props} />
12
- React keys must be passed directly to JSX without using spread:
13
- let props = %s;
14
- <%s key={someKey} {...props} />`,Mr,rt,td,rt),oo[rt+Mr]=!0}}return m===n?Xa(ue):Ya(ue),ue}}function qa(m,_,N){return io(m,_,N,!0)}function Ja(m,_,N){return io(m,_,N,!1)}var Qa=Ja,ed=qa;kt.Fragment=n,kt.jsx=Qa,kt.jsxs=ed})()),kt}var co;function id(){return co||(co=1,process.env.NODE_ENV==="production"?Ht.exports=nd():Ht.exports=od()),Ht.exports}var u=id();function Pi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Pi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ni(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pi(e))&&(n&&(n+=" "),n+=t);return n}const xn="-",sd=e=>{const t=dd(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(xn);return a[0]===""&&a.length!==1&&a.shift(),Ri(a,t)||ad(s)},getConflictingClassGroupIds:(s,a)=>{const d=r[s]||[];return a&&n[s]?[...d,...n[s]]:d}}},Ri=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ri(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(xn);return t.validators.find(({validator:s})=>s(i))?.classGroupId},lo=/^\[(.+)\]$/,ad=e=>{if(lo.test(e)){const t=lo.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},dd=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ld(Object.entries(e.classGroups),r).forEach(([i,s])=>{Qr(s,n,i,t)}),n},Qr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:uo(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(cd(o)){Qr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Qr(s,uo(t,i),r,n)})})},uo=(e,t)=>{let r=e;return t.split(xn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},cd=e=>e.isThemeGetter,ld=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,ud=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Ai="!",fd=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const d=[];let c=0,l=0,p;for(let v=0;v<a.length;v++){let y=a[v];if(c===0){if(y===o&&(n||a.slice(v,v+i)===t)){d.push(a.slice(l,v)),l=v+i;continue}if(y==="/"){p=v;continue}}y==="["?c++:y==="]"&&c--}const $=d.length===0?a:a.substring(l),g=$.startsWith(Ai),x=g?$.substring(1):$,h=p&&p>l?p-l:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:h}};return r?a=>r({className:a,parseClassName:s}):s},pd=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},$d=e=>({cache:ud(e.cacheSize),parseClassName:fd(e),...sd(e)}),hd=/\s+/,md=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(hd);let a="";for(let d=s.length-1;d>=0;d-=1){const c=s[d],{modifiers:l,hasImportantModifier:p,baseClassName:$,maybePostfixModifierPosition:g}=r(c);let x=!!g,h=n(x?$.substring(0,g):$);if(!h){if(!x){a=c+(a.length>0?" "+a:a);continue}if(h=n($),!h){a=c+(a.length>0?" "+a:a);continue}x=!1}const v=pd(l).join(":"),y=p?v+Ai:v,b=y+h;if(i.includes(b))continue;i.push(b);const w=o(h,x);for(let C=0;C<w.length;++C){const S=w[C];i.push(y+S)}a=c+(a.length>0?" "+a:a)}return a};function gd(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ki(t))&&(n&&(n+=" "),n+=r);return n}const ki=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ki(e[n]))&&(r&&(r+=" "),r+=t);return r};function vd(e,...t){let r,n,o,i=s;function s(d){const c=t.reduce((l,p)=>p(l),e());return r=$d(c),n=r.cache.get,o=r.cache.set,i=a,a(d)}function a(d){const c=n(d);if(c)return c;const l=md(d,r);return o(d,l),l}return function(){return i(gd.apply(null,arguments))}}const ee=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Oi=/^\[(?:([a-z-]+):)?(.+)\]$/i,yd=/^\d+\/\d+$/,bd=new Set(["px","full","screen"]),xd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wd=/\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$/,Cd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_d=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>vt(e)||bd.has(e)||yd.test(e),Ke=e=>St(e,"length",Td),vt=e=>!!e&&!Number.isNaN(Number(e)),zr=e=>St(e,"number",vt),Ot=e=>!!e&&Number.isInteger(Number(e)),Ed=e=>e.endsWith("%")&&vt(e.slice(0,-1)),M=e=>Oi.test(e),Ye=e=>xd.test(e),Pd=new Set(["length","size","percentage"]),Nd=e=>St(e,Pd,Ti),Rd=e=>St(e,"position",Ti),Ad=new Set(["image","url"]),kd=e=>St(e,Ad,jd),Od=e=>St(e,"",Id),Tt=()=>!0,St=(e,t,r)=>{const n=Oi.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Td=e=>wd.test(e)&&!Cd.test(e),Ti=()=>!1,Id=e=>_d.test(e),jd=e=>Sd.test(e),Fd=()=>{const e=ee("colors"),t=ee("spacing"),r=ee("blur"),n=ee("brightness"),o=ee("borderColor"),i=ee("borderRadius"),s=ee("borderSpacing"),a=ee("borderWidth"),d=ee("contrast"),c=ee("grayscale"),l=ee("hueRotate"),p=ee("invert"),$=ee("gap"),g=ee("gradientColorStops"),x=ee("gradientColorStopPositions"),h=ee("inset"),v=ee("margin"),y=ee("opacity"),b=ee("padding"),w=ee("saturate"),C=ee("scale"),S=ee("sepia"),R=ee("skew"),P=ee("space"),j=ee("translate"),B=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",M,t],A=()=>[M,t],D=()=>["",ze,Ke],k=()=>["auto",vt,M],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",M],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[vt,M];return{cacheSize:500,separator:":",theme:{colors:[Tt],spacing:[ze,Ke],blur:["none","",Ye,M],brightness:le(),borderColor:[e],borderRadius:["none","","full",Ye,M],borderSpacing:A(),borderWidth:D(),contrast:le(),grayscale:H(),hueRotate:le(),invert:H(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Ed,Ke],inset:K(),margin:K(),opacity:le(),padding:A(),saturate:le(),scale:le(),sepia:H(),skew:le(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Ye]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"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"],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:[...W(),M]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ot,M]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",Ot,M]}],"grid-cols":[{"grid-cols":[Tt]}],"col-start-end":[{col:["auto",{span:["full",Ot,M]},M]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[Tt]}],"row-start-end":[{row:["auto",{span:[Ot,M]},M]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Ye]},Ye]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ye,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zr]}],"font-family":[{font:[Tt]}],"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:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",vt,zr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,Ke]}],"underline-offset":[{"underline-offset":["auto",ze,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),Rd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[ze,M]}],"outline-w":[{outline:[ze,Ke]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ze,Ke]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,Od]}],"shadow-color":[{shadow:[Tt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ye,M]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ot,M]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ze,Ke,zr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Ld=vd(Fd);function F(...e){return Ld(Ni(e))}const Ii=f.forwardRef(({title:e,description:t,icon:r,action:n,onClick:o,className:i,...s},a)=>u.jsxs("div",{ref:a,onClick:o,className:F("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",o&&"cursor-pointer hover:shadow-md transition-shadow",i),style:{width:"350px"},...s,children:[u.jsx("div",{className:"flex items-center justify-center shrink-0",children:r}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[u.jsx("h3",{className:"text-base leading-5 font-semibold text-[#312e4d] capitalize",style:{fontFamily:"Causten Round, sans-serif"},children:e}),u.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),n&&u.jsx("button",{onClick:d=>{d.stopPropagation(),n.onClick()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline self-start",style:{fontFamily:"Causten Round, sans-serif"},children:n.label})]})]}));Ii.displayName="ActionCard";const Dd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Md=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fo=e=>{const t=Md(e);return t.charAt(0).toUpperCase()+t.slice(1)},ji=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),zd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Bd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Zd=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...a},d)=>te.createElement("svg",{ref:d,...Bd,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ji("lucide",o),...!i&&!zd(a)&&{"aria-hidden":"true"},...a},[...s.map(([c,l])=>te.createElement(c,l)),...Array.isArray(i)?i:[i]]));const Ce=(e,t)=>{const r=te.forwardRef(({className:n,...o},i)=>te.createElement(Zd,{ref:i,iconNode:t,className:ji(`lucide-${Dd(fo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=fo(e),r};const Wd=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fi=Ce("chevron-down",Wd);const Vd=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ud=Ce("circle-check-big",Vd);const Hd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Gd=Ce("circle-check",Hd);const Kd=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Yd=Ce("eye-off",Kd);const Xd=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qd=Ce("eye",Xd);const Jd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],po=Ce("info",Jd);const Qd=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],ec=Ce("list-filter",Qd);const tc=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],rc=Ce("package",tc);const nc=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]],oc=Ce("receipt-text",nc);const ic=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],sc=Ce("route",ic);const ac=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dc=Ce("search",ac);const cc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Li=Ce("triangle-alert",cc);const lc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],uc=Ce("x",lc),Di=f.forwardRef(({variant:e="information",title:t,description:r,icon:n,className:o,...i},s)=>{const d={warning:{container:"bg-[#fff3e8]",text:"text-[#d48620]",icon:u.jsx(Li,{size:24,className:"text-[#d48620]"})},information:{container:"bg-[#e3f2ff]",text:"text-[#4087fb]",icon:u.jsx(po,{size:24,className:"text-[#4087fb]"})},grey:{container:"bg-[#f4f4f4]",text:"text-[#6e6f6e]",icon:u.jsx(po,{size:24,className:"text-[#202020]"})}}[e],c=n||d.icon;return u.jsxs("div",{ref:s,className:F("flex items-center gap-3 p-4 rounded-lg",d.container,d.text,o),role:"alert","aria-live":"polite",...i,children:[u.jsx("div",{className:"flex-shrink-0",children:c}),u.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0",children:[u.jsx("div",{className:"font-semibold text-sm leading-[18px]",children:t}),u.jsx("div",{className:"font-normal text-sm leading-[18px]",children:r})]})]})});Di.displayName="BannerAlerts";function $o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wt(...e){return t=>{let r=!1;const n=e.map(o=>{const i=$o(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():$o(e[o],null)}}}}function pe(...e){return f.useCallback(Wt(...e),e)}var fc=Symbol.for("react.lazy"),sr=f[" use ".trim().toString()];function pc(e){return typeof e=="object"&&e!==null&&"then"in e}function Mi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fc&&"_payload"in e&&pc(e._payload)}function $c(e){const t=mc(e),r=f.forwardRef((n,o)=>{let{children:i,...s}=n;Mi(i)&&typeof sr=="function"&&(i=sr(i._payload));const a=f.Children.toArray(i),d=a.find(vc);if(d){const c=d.props.children,l=a.map(p=>p===d?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,l):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var hc=$c("Slot");function mc(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(Mi(o)&&typeof sr=="function"&&(o=sr(o._payload)),f.isValidElement(o)){const s=bc(o),a=yc(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Wt(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gc=Symbol("radix.slottable");function vc(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gc}function yc(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function bc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ho=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mo=Ni,xc=(e,t)=>r=>{var n;if(t?.variants==null)return mo(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const l=r?.[c],p=i?.[c];if(l===null)return null;const $=ho(l)||ho(p);return o[c][$]}),a=r&&Object.entries(r).reduce((c,l)=>{let[p,$]=l;return $===void 0||(c[p]=$),c},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,l)=>{let{class:p,className:$,...g}=l;return Object.entries(g).every(x=>{let[h,v]=x;return Array.isArray(v)?v.includes({...i,...a}[h]):{...i,...a}[h]===v})?[...c,p,$]:c},[]);return mo(e,s,d,r?.class,r?.className)},en=xc("inline-flex items-center justify-center gap-2 rounded font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-[#00b56b] text-white border border-[#00b56b] hover:bg-[#00995a] hover:border-[#00995a] active:bg-[#007a48] active:border-[#007a48] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",secondary:"bg-transparent text-[#312e4d] border border-[#00b56b] hover:bg-[#e6f8ef] hover:border-[#00995a] active:bg-[#00b56b]/10 active:border-[#007a48] disabled:bg-transparent disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",alert:"bg-[#ff305f] text-white border border-[#a80023] hover:bg-[#d4002c] hover:border-[#a80023] active:bg-[#a80023] active:border-[#a80023] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",ghost:"bg-transparent text-[#00995a] border-0 hover:bg-[#e6f8ef] hover:text-[#00995a] active:bg-[#00b56b]/10 active:text-[#007a48] disabled:bg-transparent disabled:text-[#9e9e9e]",plain:"bg-transparent text-[#00995a] border-0 p-0 h-auto hover:text-[#00995a] hover:underline active:text-[#007a48] disabled:text-[#9e9e9e] disabled:no-underline"},size:{small:"h-8 px-3 py-2 text-sm",medium:"h-9 px-4 py-2 text-sm",large:"h-11 px-5 py-2.5 text-base"},iconOnly:{true:"aspect-square"}},compoundVariants:[{size:"small",iconOnly:!0,className:"h-8 w-8 p-0"},{size:"medium",iconOnly:!0,className:"h-10 w-10 p-0"},{size:"large",iconOnly:!0,className:"h-11 w-11 p-0"},{variant:"plain",size:"small",className:"h-auto px-0 py-0"},{variant:"plain",size:"medium",className:"h-auto px-0 py-0"},{variant:"plain",size:"large",className:"h-auto px-0 py-0"}],defaultVariants:{variant:"primary",size:"medium",iconOnly:!1}}),wn=f.forwardRef(({className:e,variant:t,size:r,iconOnly:n,asChild:o=!1,leftIcon:i,rightIcon:s,children:a,...d},c)=>{const l=o?hc:"button";return o?u.jsx(l,{className:F(en({variant:t,size:r,iconOnly:n,className:e})),ref:c,...d,children:a}):u.jsxs(l,{className:F(en({variant:t,size:r,iconOnly:n,className:e})),ref:c,...d,children:[i&&!n&&u.jsx("span",{className:"inline-flex shrink-0",children:i}),n&&i||a,s&&!n&&u.jsx("span",{className:"inline-flex shrink-0",children:s})]})});wn.displayName="Button";const nt={largeDark:"https://www.figma.com/api/mcp/asset/4d8371e7-dff3-4ec8-bbce-b93185151f4c",largeLight:"https://www.figma.com/api/mcp/asset/8a7267d5-2fb8-494e-a13a-3795b42fde22",smallDark:"https://www.figma.com/api/mcp/asset/9d2e5067-f587-40b6-b0a5-5ce6da0aad4c",smallLight:"https://www.figma.com/api/mcp/asset/f01bbe9b-2dae-44fe-892f-97ff47e10e8e",gradientLarge:"https://www.figma.com/api/mcp/asset/972e7e1a-3343-4868-9c4d-97d6dfce3ce8"},zi=f.forwardRef(({size:e="large",mode:t="dark",gradient:r=!1,className:n,alt:o="Chiperos Logo",...i},s)=>{const a=()=>r&&e==="large"?nt.gradientLarge:e==="large"&&t==="dark"?nt.largeDark:e==="large"&&t==="light"?nt.largeLight:e==="small"&&t==="dark"?nt.smallDark:e==="small"&&t==="light"?nt.smallLight:nt.largeDark,d={large:{width:143,height:32},small:{width:40,height:32}},{width:c,height:l}=d[e];return u.jsx("img",{ref:s,src:a(),alt:o,width:c,height:l,className:F("inline-block",n),...i})});zi.displayName="BrandIcons";const Bi=f.forwardRef(({columns:e,gap:t=4,tabletColumns:r,mobileColumns:n=1,children:o,className:i,style:s,...a},d)=>{const c=()=>typeof t=="number"?`gap-${t}`:"",l=()=>{const $=[];return $.push(`grid-cols-${n}`),r&&$.push(`md:grid-cols-${r}`),$.push(`lg:grid-cols-${e}`),$.join(" ")},p=typeof t=="string"?{gap:t,...s}:s;return u.jsx("div",{ref:d,className:F("grid w-full",c(),l(),i),style:p,...a,children:f.Children.map(o,$=>f.isValidElement($)?f.cloneElement($,{...$.props,className:F("w-full",$.props.className)}):$)})});Bi.displayName="CardsGrid";const Zi=f.forwardRef(({title:e,description:t,icon:r,iconBackground:n="#e6f8ef",onClick:o,className:i,...s},a)=>u.jsxs("div",{ref:a,onClick:o,className:F("bg-white border border-[#ecebf0] rounded-lg p-8 flex flex-col items-center gap-8 w-96",o&&"cursor-pointer hover:shadow-md transition-shadow",i),...s,children:[u.jsx("div",{className:"flex items-center justify-center rounded-lg shrink-0",style:{width:"56px",height:"56px",backgroundColor:n},children:r}),u.jsxs("div",{className:"flex flex-col gap-2 items-center text-center",style:{width:"300px"},children:[u.jsx("h3",{className:"text-2xl leading-8 font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),u.jsx("p",{className:"text-base leading-5 font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})]})]}));Zi.displayName="FeatureCard";function E(e,t,r){function n(a,d){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,d);const c=s.prototype,l=Object.keys(c);for(let p=0;p<l.length;p++){const $=l[p];$ in a||(a[$]=c[$].bind(a))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var d;const c=r?.Parent?new i:this;n(c,a),(d=c._zod).deferred??(d.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class yt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Wi extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const wc={};function ot(e){return wc}function tn(e,t){return typeof t=="bigint"?t.toString():t}function Cn(e){return e==null}function _n(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const go=Symbol("evaluating");function re(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==go)return n===void 0&&(n=go,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Cc(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function _c(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Vi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function rn(e){if(vo(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(vo(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ui(e){return rn(e)?{...e}:Array.isArray(e)?[...e]:e}function Sn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Sc(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function z(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gt(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Ec(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Gt(e){return typeof e=="string"?e:e?.message}function it(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Gt(e.inst?._zod.def?.error?.(e))??Gt(t?.error?.(e))??Gt(r.customError?.(e))??Gt(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function En(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function jt(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const Hi=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,tn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gi=E("$ZodError",Hi),Ki=E("$ZodError",Hi,{Parent:Error});function Pc(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function Nc(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const d=i.path[a];a===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],a++}}};return n(e),r}const Pn=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new yt;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>it(d,i,ot())));throw Vi(a,o?.callee),a}return s.value},Nn=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>it(d,i,ot())));throw Vi(a,o?.callee),a}return s.value},gr=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new yt;return i.issues.length?{success:!1,error:new(e??Gi)(i.issues.map(s=>it(s,o,ot())))}:{success:!0,data:i.value}},Rc=gr(Ki),vr=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>it(s,o,ot())))}:{success:!0,data:i.value}},Ac=vr(Ki),kc=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pn(e)(t,r,o)},Oc=e=>(t,r,n)=>Pn(e)(t,r,n),Tc=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Nn(e)(t,r,o)},Ic=e=>async(t,r,n)=>Nn(e)(t,r,n),jc=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return gr(e)(t,r,o)},Fc=e=>(t,r,n)=>gr(e)(t,r,n),Lc=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return vr(e)(t,r,o)},Dc=e=>async(t,r,n)=>vr(e)(t,r,n),Mc=/^[cC][^\s-]{8,}$/,zc=/^[0-9a-z]+$/,Bc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zc=/^[0-9a-vA-V]{20}$/,Wc=/^[A-Za-z0-9]{27}$/,Vc=/^[a-zA-Z0-9_-]{21}$/,Uc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Hc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,yo=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Gc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Kc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yc(){return new RegExp(Kc,"u")}const Xc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Jc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Qc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,el=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Yi=/^[A-Za-z0-9_-]*$/,tl=/^\+(?:[0-9]){6,14}[0-9]$/,Xi="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",rl=new RegExp(`^${Xi}$`);function qi(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nl(e){return new RegExp(`^${qi(e)}$`)}function ol(e){const t=qi({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Xi}T(?:${n})$`)}const il=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sl=/^[^A-Z]*$/,al=/^[^a-z]*$/,Fe=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),dl=E("$ZodCheckMaxLength",(e,t)=>{var r;Fe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Cn(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=En(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),cl=E("$ZodCheckMinLength",(e,t)=>{var r;Fe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Cn(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=En(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ll=E("$ZodCheckLengthEquals",(e,t)=>{var r;Fe.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Cn(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=En(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),yr=E("$ZodCheckStringFormat",(e,t)=>{var r,n;Fe.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ul=E("$ZodCheckRegex",(e,t)=>{yr.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fl=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=sl),yr.init(e,t)}),pl=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=al),yr.init(e,t)}),$l=E("$ZodCheckIncludes",(e,t)=>{Fe.init(e,t);const r=Sn(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),hl=E("$ZodCheckStartsWith",(e,t)=>{Fe.init(e,t);const r=new RegExp(`^${Sn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ml=E("$ZodCheckEndsWith",(e,t)=>{Fe.init(e,t);const r=new RegExp(`.*${Sn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),gl=E("$ZodCheckOverwrite",(e,t)=>{Fe.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),vl={major:4,minor:1,patch:13},me=E("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vl;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,d)=>{let c=gt(s),l;for(const p of a){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(c)continue;const $=s.issues.length,g=p._zod.check(s);if(g instanceof Promise&&d?.async===!1)throw new yt;if(l||g instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await g,s.issues.length!==$&&(c||(c=gt(s,$)))});else{if(s.issues.length===$)continue;c||(c=gt(s,$))}}return l?l.then(()=>s):s},i=(s,a,d)=>{if(gt(s))return s.aborted=!0,s;const c=o(a,n,d);if(c instanceof Promise){if(d.async===!1)throw new yt;return c.then(l=>e._zod.parse(l,d))}return e._zod.parse(c,d)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(l=>i(l,s,a)):i(c,s,a)}const d=e._zod.parse(s,a);if(d instanceof Promise){if(a.async===!1)throw new yt;return d.then(c=>o(c,n,a))}return o(d,n,a)}}e["~standard"]={validate:o=>{try{const i=Rc(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Ac(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),Rn=E("$ZodString",(e,t)=>{me.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??il(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ne=E("$ZodStringFormat",(e,t)=>{yr.init(e,t),Rn.init(e,t)}),yl=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Hc),ne.init(e,t)}),bl=E("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=yo(n))}else t.pattern??(t.pattern=yo());ne.init(e,t)}),xl=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Gc),ne.init(e,t)}),wl=E("$ZodURL",(e,t)=>{ne.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Cl=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yc()),ne.init(e,t)}),_l=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Vc),ne.init(e,t)}),Sl=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Mc),ne.init(e,t)}),El=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=zc),ne.init(e,t)}),Pl=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Bc),ne.init(e,t)}),Nl=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Zc),ne.init(e,t)}),Rl=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Wc),ne.init(e,t)}),Al=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ol(t)),ne.init(e,t)}),kl=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=rl),ne.init(e,t)}),Ol=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=nl(t)),ne.init(e,t)}),Tl=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Uc),ne.init(e,t)}),Il=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Xc),ne.init(e,t),e._zod.bag.format="ipv4"}),jl=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=qc),ne.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Fl=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Jc),ne.init(e,t)}),Ll=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Qc),ne.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Ji(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Dl=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=el),ne.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Ji(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Ml(e){if(!Yi.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ji(r)}const zl=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Yi),ne.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Ml(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Bl=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tl),ne.init(e,t)});function Zl(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Wl=E("$ZodJWT",(e,t)=>{ne.init(e,t),e._zod.check=r=>{Zl(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});function bo(e,t,r){e.issues.length&&t.issues.push(...Ec(r,e.issues)),t.value[r]=e.value}const Vl=E("$ZodArray",(e,t)=>{me.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],d=t.element._zod.run({value:a,issues:[]},n);d instanceof Promise?i.push(d.then(c=>bo(c,r,s))):bo(d,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function xo(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!gt(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>it(s,n,ot())))}),t)}const Ul=E("$ZodUnion",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),re(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),re(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),re(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>_n(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const d of t.options){const c=d._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(d=>xo(d,o,e,i)):xo(a,o,e,i)}}),Hl=E("$ZodIntersection",(e,t)=>{me.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([d,c])=>wo(r,d,c)):wo(r,i,s)}});function nn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(rn(e)&&rn(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=nn(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=nn(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function wo(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),gt(e))return e;const n=nn(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const Gl=E("$ZodTransform",(e,t)=>{me.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Wi(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new yt;return r.value=o,r}});function Co(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Kl=E("$ZodOptional",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.optout="optional",re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),re(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${_n(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Co(i,r.value)):Co(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),Yl=E("$ZodNullable",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${_n(r.source)}|null)$`):void 0}),re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),Xl=E("$ZodDefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>_o(i,t)):_o(o,t)}});function _o(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ql=E("$ZodPrefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Jl=E("$ZodNonOptional",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>So(i,e)):So(o,e)}});function So(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ql=E("$ZodCatch",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>it(s,n,ot()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>it(i,n,ot()))},input:r.value}),r.issues=[]),r)}}),eu=E("$ZodPipe",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>t.in._zod.values),re(e._zod,"optin",()=>t.in._zod.optin),re(e._zod,"optout",()=>t.out._zod.optout),re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Kt(s,t.in,n)):Kt(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Kt(i,t.out,n)):Kt(o,t.out,n)}});function Kt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const tu=E("$ZodReadonly",(e,t)=>{me.init(e,t),re(e._zod,"propValues",()=>t.innerType._zod.propValues),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"optin",()=>t.innerType?._zod?.optin),re(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Eo):Eo(o)}});function Eo(e){return e.value=Object.freeze(e.value),e}const ru=E("$ZodCustom",(e,t)=>{Fe.init(e,t),me.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>Po(i,r,n,e));Po(o,r,n,e)}});function Po(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(jt(o))}}var No;class nu{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ou(){return new nu}(No=globalThis).__zod_globalRegistry??(No.__zod_globalRegistry=ou());const Yt=globalThis.__zod_globalRegistry;function iu(e,t){return new e({type:"string",...z(t)})}function su(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function Ro(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function au(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function du(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function cu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function lu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function uu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function fu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function pu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function $u(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function hu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function mu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function gu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function vu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function yu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function bu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function xu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function wu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function Cu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function _u(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function Su(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function Eu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}function Pu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Nu(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Ru(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Au(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Qi(e,t){return new dl({check:"max_length",...z(t),maximum:e})}function ar(e,t){return new cl({check:"min_length",...z(t),minimum:e})}function es(e,t){return new ll({check:"length_equals",...z(t),length:e})}function ku(e,t){return new ul({check:"string_format",format:"regex",...z(t),pattern:e})}function Ou(e){return new fl({check:"string_format",format:"lowercase",...z(e)})}function Tu(e){return new pl({check:"string_format",format:"uppercase",...z(e)})}function Iu(e,t){return new $l({check:"string_format",format:"includes",...z(t),includes:e})}function ju(e,t){return new hl({check:"string_format",format:"starts_with",...z(t),prefix:e})}function Fu(e,t){return new ml({check:"string_format",format:"ends_with",...z(t),suffix:e})}function Et(e){return new gl({check:"overwrite",tx:e})}function Lu(e){return Et(t=>t.normalize(e))}function Du(){return Et(e=>e.trim())}function Mu(){return Et(e=>e.toLowerCase())}function zu(){return Et(e=>e.toUpperCase())}function Bu(){return Et(e=>_c(e))}function Zu(e,t,r){return new e({type:"array",element:t,...z(r)})}function Wu(e,t,r){return new e({type:"custom",check:"custom",fn:t,...z(r)})}function Vu(e){const t=Uu(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(jt(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(jt(o))}},e(r.value,r)));return t}function Uu(e,t){const r=new Fe({check:"custom",...z(t)});return r._zod.check=e,r}const Hu=E("ZodISODateTime",(e,t)=>{Al.init(e,t),ie.init(e,t)});function Gu(e){return Pu(Hu,e)}const Ku=E("ZodISODate",(e,t)=>{kl.init(e,t),ie.init(e,t)});function Yu(e){return Nu(Ku,e)}const Xu=E("ZodISOTime",(e,t)=>{Ol.init(e,t),ie.init(e,t)});function qu(e){return Ru(Xu,e)}const Ju=E("ZodISODuration",(e,t)=>{Tl.init(e,t),ie.init(e,t)});function Qu(e){return Au(Ju,e)}const e0=(e,t)=>{Gi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Nc(e,r)},flatten:{value:r=>Pc(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,tn,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,tn,2)}},isEmpty:{get(){return e.issues.length===0}}})},Se=E("ZodError",e0,{Parent:Error}),t0=Pn(Se),r0=Nn(Se),n0=gr(Se),o0=vr(Se),i0=kc(Se),s0=Oc(Se),a0=Tc(Se),d0=Ic(Se),c0=jc(Se),l0=Fc(Se),u0=Lc(Se),f0=Dc(Se),be=E("ZodType",(e,t)=>(me.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Cc(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>Sc(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>t0(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>n0(e,r,n),e.parseAsync=async(r,n)=>r0(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>o0(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>i0(e,r,n),e.decode=(r,n)=>s0(e,r,n),e.encodeAsync=async(r,n)=>a0(e,r,n),e.decodeAsync=async(r,n)=>d0(e,r,n),e.safeEncode=(r,n)=>c0(e,r,n),e.safeDecode=(r,n)=>l0(e,r,n),e.safeEncodeAsync=async(r,n)=>u0(e,r,n),e.safeDecodeAsync=async(r,n)=>f0(e,r,n),e.refine=(r,n)=>e.check(Q0(r,n)),e.superRefine=r=>e.check(ef(r)),e.overwrite=r=>e.check(Et(r)),e.optional=()=>ko(e),e.nullable=()=>Oo(e),e.nullish=()=>ko(Oo(e)),e.nonoptional=r=>H0(e,r),e.array=()=>O0(e),e.or=r=>I0([e,r]),e.and=r=>F0(e,r),e.transform=r=>To(e,D0(r)),e.default=r=>Z0(e,r),e.prefault=r=>V0(e,r),e.catch=r=>K0(e,r),e.pipe=r=>To(e,r),e.readonly=()=>q0(e),e.describe=r=>{const n=e.clone();return Yt.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Yt.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Yt.get(e);const n=e.clone();return Yt.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ts=E("_ZodString",(e,t)=>{Rn.init(e,t),be.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(ku(...n)),e.includes=(...n)=>e.check(Iu(...n)),e.startsWith=(...n)=>e.check(ju(...n)),e.endsWith=(...n)=>e.check(Fu(...n)),e.min=(...n)=>e.check(ar(...n)),e.max=(...n)=>e.check(Qi(...n)),e.length=(...n)=>e.check(es(...n)),e.nonempty=(...n)=>e.check(ar(1,...n)),e.lowercase=n=>e.check(Ou(n)),e.uppercase=n=>e.check(Tu(n)),e.trim=()=>e.check(Du()),e.normalize=(...n)=>e.check(Lu(...n)),e.toLowerCase=()=>e.check(Mu()),e.toUpperCase=()=>e.check(zu()),e.slugify=()=>e.check(Bu())}),p0=E("ZodString",(e,t)=>{Rn.init(e,t),ts.init(e,t),e.email=r=>e.check(su($0,r)),e.url=r=>e.check(uu(h0,r)),e.jwt=r=>e.check(Eu(A0,r)),e.emoji=r=>e.check(fu(m0,r)),e.guid=r=>e.check(Ro(Ao,r)),e.uuid=r=>e.check(au(qt,r)),e.uuidv4=r=>e.check(du(qt,r)),e.uuidv6=r=>e.check(cu(qt,r)),e.uuidv7=r=>e.check(lu(qt,r)),e.nanoid=r=>e.check(pu(g0,r)),e.guid=r=>e.check(Ro(Ao,r)),e.cuid=r=>e.check($u(v0,r)),e.cuid2=r=>e.check(hu(y0,r)),e.ulid=r=>e.check(mu(b0,r)),e.base64=r=>e.check(Cu(P0,r)),e.base64url=r=>e.check(_u(N0,r)),e.xid=r=>e.check(gu(x0,r)),e.ksuid=r=>e.check(vu(w0,r)),e.ipv4=r=>e.check(yu(C0,r)),e.ipv6=r=>e.check(bu(_0,r)),e.cidrv4=r=>e.check(xu(S0,r)),e.cidrv6=r=>e.check(wu(E0,r)),e.e164=r=>e.check(Su(R0,r)),e.datetime=r=>e.check(Gu(r)),e.date=r=>e.check(Yu(r)),e.time=r=>e.check(qu(r)),e.duration=r=>e.check(Qu(r))});function Xt(e){return iu(p0,e)}const ie=E("ZodStringFormat",(e,t)=>{ne.init(e,t),ts.init(e,t)}),$0=E("ZodEmail",(e,t)=>{xl.init(e,t),ie.init(e,t)}),Ao=E("ZodGUID",(e,t)=>{yl.init(e,t),ie.init(e,t)}),qt=E("ZodUUID",(e,t)=>{bl.init(e,t),ie.init(e,t)}),h0=E("ZodURL",(e,t)=>{wl.init(e,t),ie.init(e,t)}),m0=E("ZodEmoji",(e,t)=>{Cl.init(e,t),ie.init(e,t)}),g0=E("ZodNanoID",(e,t)=>{_l.init(e,t),ie.init(e,t)}),v0=E("ZodCUID",(e,t)=>{Sl.init(e,t),ie.init(e,t)}),y0=E("ZodCUID2",(e,t)=>{El.init(e,t),ie.init(e,t)}),b0=E("ZodULID",(e,t)=>{Pl.init(e,t),ie.init(e,t)}),x0=E("ZodXID",(e,t)=>{Nl.init(e,t),ie.init(e,t)}),w0=E("ZodKSUID",(e,t)=>{Rl.init(e,t),ie.init(e,t)}),C0=E("ZodIPv4",(e,t)=>{Il.init(e,t),ie.init(e,t)}),_0=E("ZodIPv6",(e,t)=>{jl.init(e,t),ie.init(e,t)}),S0=E("ZodCIDRv4",(e,t)=>{Fl.init(e,t),ie.init(e,t)}),E0=E("ZodCIDRv6",(e,t)=>{Ll.init(e,t),ie.init(e,t)}),P0=E("ZodBase64",(e,t)=>{Dl.init(e,t),ie.init(e,t)}),N0=E("ZodBase64URL",(e,t)=>{zl.init(e,t),ie.init(e,t)}),R0=E("ZodE164",(e,t)=>{Bl.init(e,t),ie.init(e,t)}),A0=E("ZodJWT",(e,t)=>{Wl.init(e,t),ie.init(e,t)}),k0=E("ZodArray",(e,t)=>{Vl.init(e,t),be.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(ar(r,n)),e.nonempty=r=>e.check(ar(1,r)),e.max=(r,n)=>e.check(Qi(r,n)),e.length=(r,n)=>e.check(es(r,n)),e.unwrap=()=>e.element});function O0(e,t){return Zu(k0,e,t)}const T0=E("ZodUnion",(e,t)=>{Ul.init(e,t),be.init(e,t),e.options=t.options});function I0(e,t){return new T0({type:"union",options:e,...z(t)})}const j0=E("ZodIntersection",(e,t)=>{Hl.init(e,t),be.init(e,t)});function F0(e,t){return new j0({type:"intersection",left:e,right:t})}const L0=E("ZodTransform",(e,t)=>{Gl.init(e,t),be.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Wi(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(jt(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(jt(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function D0(e){return new L0({type:"transform",transform:e})}const M0=E("ZodOptional",(e,t)=>{Kl.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ko(e){return new M0({type:"optional",innerType:e})}const z0=E("ZodNullable",(e,t)=>{Yl.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Oo(e){return new z0({type:"nullable",innerType:e})}const B0=E("ZodDefault",(e,t)=>{Xl.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Z0(e,t){return new B0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ui(t)}})}const W0=E("ZodPrefault",(e,t)=>{ql.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType});function V0(e,t){return new W0({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ui(t)}})}const U0=E("ZodNonOptional",(e,t)=>{Jl.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType});function H0(e,t){return new U0({type:"nonoptional",innerType:e,...z(t)})}const G0=E("ZodCatch",(e,t)=>{Ql.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function K0(e,t){return new G0({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Y0=E("ZodPipe",(e,t)=>{eu.init(e,t),be.init(e,t),e.in=t.in,e.out=t.out});function To(e,t){return new Y0({type:"pipe",in:e,out:t})}const X0=E("ZodReadonly",(e,t)=>{tu.init(e,t),be.init(e,t),e.unwrap=()=>e._zod.def.innerType});function q0(e){return new X0({type:"readonly",innerType:e})}const J0=E("ZodCustom",(e,t)=>{ru.init(e,t),be.init(e,t)});function Q0(e,t={}){return Wu(J0,e,t)}function ef(e){return Vu(e)}const tf={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]|33|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",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,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{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?: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,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?: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-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|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]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],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 rf(e,t){var r=Array.prototype.slice.call(t);return r.push(tf),e.apply(this,r)}function Io(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var i=Number(r[o]),s=Number(n[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return 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 nf={}.constructor;function bt(e){return e!=null&&e.constructor===nf}function Ct(e){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(e)}function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function of(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sf(n.key),n)}}function xr(e,t,r){return t&&of(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sf(e){var t=af(e,"string");return Ct(t)=="symbol"?t:t+""}function af(e,t){if(Ct(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var df="1.2.0",cf="1.7.35",jo=" ext. ",lf=/^\d+$/,$e=(function(){function e(t){br(this,e),rs(t),this.metadata=t,ns.call(this,t)}return xr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){if(r&&lf.test(r)&&(n=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new Fo(this.getCountryMetadata(r),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new Fo(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var o=this.nonGeographic()[r];if(o)return o}else{var i=this.countryCallingCodes()[r];if(i&&i.length===1&&i[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(r){return this.numberingPlan.type(r)}},{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(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Fo=(function(){function e(t,r){br(this,e),this.globalMetadataObject=r,this.metadata=t,ns.call(this,r.metadata)}return xr(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(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(o){return new uf(o,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[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(r){if(this.hasTypes()&&Lo(this.types(),r))return new pf(Lo(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?jo:this.metadata[13]||jo}}])})(),uf=(function(){function e(t,r){br(this,e),this._format=t,this.metadata=r}return xr(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()&&!ff.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),ff=/^\(?\$1\)?$/,pf=(function(){function e(t,r){br(this,e),this.type=t,this.metadata=r}return xr(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 Lo(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 rs(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!bt(e)||!bt(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(bt(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+$f(e)+": "+e,"."))}var $f=function(t){return Ct(t)};function An(e,t){if(t=new $e(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function ns(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?Io(t,df)===-1?this.v2=!0:Io(t,cf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function kn(e,t,r){return hf(e,t,void 0,r)}function hf(e,t,r,n){t&&(n=new $e(n.metadata),n.selectNumberingPlan(t));var o=n.type(r),i=o&&o.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";var s=e.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function mf(e,t,r){if(t===void 0&&(t={}),r=new $e(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return os(e.phone||e.nationalNumber,e.country,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function os(e,t,r){switch(kn(e,t,r)){case"IS_POSSIBLE":return!0;default:return!1}}function Be(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function gf(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=vf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
- 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 Do(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Do(e,t):void 0}}function Do(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yf=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function On(e,t,r){if(t=t||{},!(!e.country&&!e.countryCallingCode)){r=new $e(r),r.selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(Be(n,r.nationalNumberPattern())){if(Br(n,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||Br(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=gf(yf),i;!(i=o()).done;){var s=i.value;if(Br(n,s,r))return s}}}}function Br(e,t,r){return t=r.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Be(e,t.pattern())}function bf(e,t,r){if(t=t||{},r=new $e(r),r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return On(e,t,r.metadata)!==void 0;var n=t.v2?e.nationalNumber:e.phone;return Be(n,r.nationalNumberPattern())}function xf(e,t,r){var n=new $e(r),o=n.getCountryCodesForCallingCode(e);return o?o.filter(function(i){return wf(t,i,r)}):[]}function wf(e,t,r){var n=new $e(r);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Tn=2,Cf=17,_f=3,Ne="0-90-9٠-٩۰-۹",Sf="-‐-―−ー-",Ef="//",Pf="..",Nf="  ­​⁠ ",Rf="()()[]\\[\\]",Af="~⁓∼~",dr="".concat(Sf).concat(Ef).concat(Pf).concat(Nf).concat(Rf).concat(Af),In="++",kf=new RegExp("(["+Ne+"])");function Of(e,t,r,n){if(t){var o=new $e(n);o.selectNumberingPlan(t,r);var i=new RegExp(o.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(kf);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function Tf(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var o,i,s=n.length-1,a=s>0&&n[s];if(t.nationalPrefixTransformRule()&&a)o=e.replace(r,t.nationalPrefixTransformRule()),s>1&&(i=n[1]);else{var d=n[0];o=e.slice(d.length),a&&(i=n[1])}var c;if(a){var l=e.indexOf(n[1]),p=e.slice(0,l);p===t.numberingPlan.nationalPrefix()&&(c=t.numberingPlan.nationalPrefix())}else c=n[0];return{nationalNumber:o,nationalPrefix:c,carrierCode:i}}}return{nationalNumber:e}}function If(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=jf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jf(e,t){if(e){if(typeof e=="string")return Mo(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mo(e,t):void 0}}function Mo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ff(e,t){var r=t.countries,n=t.metadata;n=new $e(n);for(var o=If(r),i;!(i=o()).done;){var s=i.value;if(n.selectNumberingPlan(s),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return s}else if(On({phone:e,country:s},void 0,n.metadata))return s}}function is(e,t){var r=t.nationalNumber,n=t.metadata,o=n.getCountryCodesForCallingCode(e);if(o)return o.length===1?o[0]:Ff(r,{countries:o,metadata:n.metadata})}function on(e,t,r){var n=Tf(e,r),o=n.carrierCode,i=n.nationalNumber;if(i!==e){if(!Lf(e,i,r))return{nationalNumber:e};if(r.numberingPlan.possibleLengths()&&(t||(t=is(r.numberingPlan.callingCode(),{nationalNumber:i,metadata:r})),!Df(i,t,r)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:o}}function Lf(e,t,r){return!(Be(e,r.nationalNumberPattern())&&!Be(t,r.nationalNumberPattern()))}function Df(e,t,r){switch(kn(e,t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Mf(e,t,r,n,o){var i=r?An(r,o):n;if(e.indexOf(i)===0){o=new $e(o),o.selectNumberingPlan(r,i);var s=e.slice(i.length),a=on(s,t,o),d=a.nationalNumber,c=on(e,t,o),l=c.nationalNumber;if(!Be(l,o.nationalNumberPattern())&&Be(d,o.nationalNumberPattern())||kn(l,t,o)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function ss(e,t,r,n,o){if(!e)return{};var i;if(e[0]!=="+"){var s=Of(e,r,n,o);if(s&&s!==e)i=!0,e="+"+s;else{if(r||n){var a=Mf(e,t,r,n,o),d=a.countryCallingCode,c=a.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:e}}}if(e[1]==="0")return{};o=new $e(o);for(var l=2;l-1<=_f&&l<=e.length;){var p=e.slice(1,l);if(o.hasCallingCode(p))return o.selectNumberingPlan(p),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:e.slice(l)};l++}return{}}function zf(e){return e.replace(new RegExp("[".concat(dr,"]+"),"g")," ").trim()}var Bf=/(\$\d)/;function Zf(e,t,r){var n=r.useInternationalFormat,o=r.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Bf,t.nationalPrefixFormattingRule()):t.format());return n?zf(i):i}var Wf=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Vf(e,t,r){var n=new $e(r);if(n.selectNumberingPlan(e,t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(Wf.test(n.IDDPrefix()))return n.IDDPrefix()}var Uf=";ext=",pt=function(t){return"([".concat(Ne,"]{1,").concat(t,"})")};function as(e){var t="20",r="15",n="9",o="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",a="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",l="[- ]+",p="[  \\t]*",$="(?:,{2}|;)",g=Uf+pt(t),x=i+d+s+pt(t)+a,h=i+c+s+pt(n)+a,v=l+pt(o)+"#",y=p+$+s+pt(r)+a,b=p+"(?:,)+"+s+pt(n)+a;return g+"|"+x+"|"+h+"|"+v+"|"+y+"|"+b}var Hf="["+Ne+"]{"+Tn+"}",Gf="["+In+"]{0,1}(?:["+dr+"]*["+Ne+"]){3,}["+dr+Ne+"]*",Kf=new RegExp("^["+In+"]{0,1}(?:["+dr+"]*["+Ne+"]){1,2}$","i"),Yf=Gf+"(?:"+as()+")?",Xf=new RegExp("^"+Hf+"$|^"+Yf+"$","i");function qf(e){return e.length>=Tn&&Xf.test(e)}function Jf(e){return Kf.test(e)}function Qf(e){var t=e.number,r=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}var zo={formatExtension:function(t,r,n){return"".concat(t).concat(n.ext()).concat(r)}};function e1(e,t,r,n){if(r?r=n1({},zo,r):r=zo,n=new $e(n),e.country&&e.country!=="001"){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else if(e.countryCallingCode)n.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var o=n.countryCallingCode(),i=r.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=cr(i,e.carrierCode,"NATIONAL",n,r),Zr(s,e.ext,n,r.formatExtension)):"";case"INTERNATIONAL":return i?(s=cr(i,null,"INTERNATIONAL",n,r),s="+".concat(o," ").concat(s),Zr(s,e.ext,n,r.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return Qf({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!r.fromCountry)return;var a=r1(i,e.carrierCode,o,r.fromCountry,n);return Zr(a,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function cr(e,t,r,n,o){var i=t1(n.formats(),e);return i?Zf(e,i,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1)}):e}function t1(e,t){return o1(e,function(r){if(r.leadingDigitsPatterns().length>0){var n=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return Be(t,r.pattern())})}function Zr(e,t,r,n){return t?n(e,t,r):e}function r1(e,t,r,n,o){var i=An(n,o.metadata);if(i===r){var s=cr(e,t,"NATIONAL",o);return r==="1"?r+" "+s:s}var a=Vf(n,void 0,o.metadata);if(a)return"".concat(a," ").concat(r," ").concat(cr(e,null,"INTERNATIONAL",o))}function n1(){for(var e=1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e<r.length;){if(r[e])for(var o in r[e])r[0][o]=r[e][o];e++}return r[0]}function o1(e,t){for(var r=0;r<e.length;){if(t(e[r]))return e[r];r++}}function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}function Bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bo(Object(r),!0).forEach(function(n){i1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i1(e,t,r){return(t=ds(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ds(n.key),n)}}function d1(e,t,r){return t&&a1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ds(e){var t=c1(e,"string");return Ft(t)=="symbol"?t:t+""}function c1(e,t){if(Ft(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var l1=(function(){function e(t,r,n){if(s1(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!r)throw new TypeError("`metadata` argument not passed");if(bt(r)&&bt(r.countries)){n=r;var o=t;if(!p1.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=ss(o,void 0,void 0,void 0,n),s=i.countryCallingCode,a=i.number;if(r=a,t=s,!r)throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if(typeof r!="string")throw new TypeError("`nationalNumber` argument must be a string");rs(n);var d=f1(t,n),c=d.country,l=d.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return d1(e,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:xf(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return mf(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return bf(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new $e(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return On(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,n){return e1(this,r,n?Zo(Zo({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}])})(),u1=function(t){return/^[A-Z]{2}$/.test(t)};function f1(e,t){var r,n,o=new $e(t);return u1(e)?(r=e,o.selectNumberingPlan(r),n=o.countryCallingCode()):n=e,{country:r,countryCallingCode:n}}var p1=/^\+\d+$/;function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function $1(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function h1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t,r){return t=Dt(t),g1(e,jn()?Reflect.construct(t,r||[],Dt(e).constructor):t.apply(e,r))}function g1(e,t){if(t&&(sn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v1(e)}function v1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y1(e,t){if(typeof t!="function"&&t!==null)throw new 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&&Lt(e,t)}function an(e){var t=typeof Map=="function"?new Map:void 0;return an=function(n){if(n===null||!x1(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return b1(n,arguments,Dt(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Lt(o,n)},an(e)}function b1(e,t,r){if(jn())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Lt(o,r.prototype),o}function jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jn=function(){return!!e})()}function x1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Lt(e,t){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Lt(e,t)}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dt(e)}var qe=(function(e){function t(r){var n;return h1(this,t),n=m1(this,t,[r]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return y1(t,e),$1(t)})(an(Error)),Wo=new RegExp("(?:"+as()+")$","i");function w1(e){var t=e.search(Wo);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Wo),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}var C1={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 _1(e){return C1[e]}function S1(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=E1(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E1(e,t){if(e){if(typeof e=="string")return Vo(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vo(e,t):void 0}}function Vo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Uo(e){for(var t="",r=S1(e.split("")),n;!(n=r()).done;){var o=n.value;t+=P1(o,t)||""}return t}function P1(e,t,r){return e==="+"?t?void 0:"+":_1(e)}var cs="+",N1="[\\-\\.\\(\\)]?",Ho="(["+Ne+"]|"+N1+")",R1="^\\"+cs+Ho+"*["+Ne+"]"+Ho+"*$",A1=new RegExp(R1,"g"),dn=Ne,k1="["+dn+"]+((\\-)*["+dn+"])*",O1="a-zA-Z",T1="["+O1+"]+((\\-)*["+dn+"])*",I1="^("+k1+"\\.)*"+T1+"\\.?$",j1=new RegExp(I1,"g"),Go="tel:",cn=";phone-context=",F1=";isub=";function L1(e){var t=e.indexOf(cn);if(t<0)return null;var r=t+cn.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}function D1(e){return e===null?!0:e.length===0?!1:A1.test(e)||j1.test(e)}function M1(e,t){var r=t.extractFormattedPhoneNumber,n=L1(e);if(!D1(n))throw new qe("NOT_A_NUMBER");var o;if(n===null)o=r(e)||"";else{o="",n.charAt(0)===cs&&(o+=n);var i=e.indexOf(Go),s;i>=0?s=i+Go.length:s=0;var a=e.indexOf(cn);o+=e.substring(s,a)}var d=o.indexOf(F1);if(d>0&&(o=o.substring(0,d)),o!=="")return o}var z1=250,B1=new RegExp("["+In+Ne+"]"),Z1=new RegExp("[^"+Ne+"#]+$");function W1(e,t,r){if(t=t||{},r=new $e(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new qe("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var n=U1(e,t.v2,t.extract),o=n.number,i=n.ext,s=n.error;if(!o){if(t.v2)throw s==="TOO_SHORT"?new qe("TOO_SHORT"):new qe("NOT_A_NUMBER");return{}}var a=G1(o,t.defaultCountry,t.defaultCallingCode,r),d=a.country,c=a.nationalNumber,l=a.countryCallingCode,p=a.countryCallingCodeSource,$=a.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new qe("INVALID_COUNTRY");return{}}if(!c||c.length<Tn){if(t.v2)throw new qe("TOO_SHORT");return{}}if(c.length>Cf){if(t.v2)throw new qe("TOO_LONG");return{}}if(t.v2){var g=new l1(l,c,r.metadata);return d&&(g.country=d),$&&(g.carrierCode=$),i&&(g.ext=i),g.__countryCallingCodeSource=p,g}var x=(t.extended?r.hasSelectedNumberingPlan():d)?Be(c,r.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:l,carrierCode:$,valid:x,possible:x?!0:!!(t.extended===!0&&r.possibleLengths()&&os(c,d,r)),phone:c,ext:i}:x?H1(d,c,i):{}}function V1(e,t,r){if(e){if(e.length>z1){if(r)throw new qe("TOO_LONG");return}if(t===!1)return e;var n=e.search(B1);if(!(n<0))return e.slice(n).replace(Z1,"")}}function U1(e,t,r){var n=M1(e,{extractFormattedPhoneNumber:function(s){return V1(s,r,t)}});if(!n)return{};if(!qf(n))return Jf(n)?{error:"TOO_SHORT"}:{};var o=w1(n);return o.ext?o:{number:n}}function H1(e,t,r){var n={country:e,phone:t};return r&&(n.ext=r),n}function G1(e,t,r,n){var o=ss(Uo(e),void 0,t,r,n.metadata),i=o.countryCallingCodeSource,s=o.countryCallingCode,a=o.number,d;if(s)n.selectNumberingPlan(s);else if(a&&(t||r))n.selectNumberingPlan(t,r),t&&(d=t),s=r||An(t,n.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:s};var c=on(Uo(a),d,n),l=c.nationalNumber,p=c.carrierCode,$=is(s,{nationalNumber:l,metadata:n});return $&&(d=$,$==="001"||n.selectNumberingPlan(d)),{country:d,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:l,carrierCode:p}}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ko(Object(r),!0).forEach(function(n){K1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K1(e,t,r){return(t=Y1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=X1(e,"string");return Mt(t)=="symbol"?t:t+""}function X1(e,t){if(Mt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q1(e,t,r){return W1(e,Yo(Yo({},t),{},{v2:!0}),r)}function zt(e){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(e)}function Xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function J1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xo(Object(r),!0).forEach(function(n){Q1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q1(e,t,r){return(t=e2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e2(e){var t=t2(e,"string");return zt(t)=="symbol"?t:t+""}function t2(e,t){if(zt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r2(e,t){return s2(e)||i2(e,t)||o2(e,t)||n2()}function n2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o2(e,t){if(e){if(typeof e=="string")return qo(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qo(e,t):void 0}}function qo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,a=[],d=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);d=!0);}catch(l){c=!0,o=l}finally{try{if(!d&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function s2(e){if(Array.isArray(e))return e}function a2(e){var t=Array.prototype.slice.call(e),r=r2(t,4),n=r[0],o=r[1],i=r[2],s=r[3],a,d,c;if(typeof n=="string")a=n;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")s?(d=i,c=s):(d=void 0,c=i),o&&(d=J1({defaultCountry:o},d));else if(bt(o))i?(d=o,c=i):c=o;else throw new Error("Invalid second argument: ".concat(o));return{text:a,options:d,metadata:c}}function d2(){var e=a2(arguments),t=e.text,r=e.options,n=e.metadata;return q1(t,r,n)}function c2(){return rf(d2,arguments)}const Wr=(e,t)=>{if(!t)return null;if(t.required&&!e)return typeof t.required=="string"?t.required:"This field is required";if(!e)return null;if(t.email&&!Xt().email().safeParse(e).success)return typeof t.email=="string"?t.email:"Please enter a valid email address";if(t.number&&!Xt().regex(/^-?\d*\.?\d+$/).safeParse(e).success)return typeof t.number=="string"?t.number:"Please enter a valid number";if(t.phone)try{const r=c2(e,t.phone.country);if(!r||!r.isValid())return t.phone.message||`Please enter a valid phone number${t.phone.country?` for ${t.phone.country}`:""}`}catch{return t.phone.message||"Please enter a valid phone number"}return t.minLength&&!Xt().min(t.minLength.value).safeParse(e).success?t.minLength.message||`Must be at least ${t.minLength.value} characters`:t.maxLength&&!Xt().max(t.maxLength.value).safeParse(e).success?t.maxLength.message||`Must be at most ${t.maxLength.value} characters`:t.regex&&!t.regex.pattern.test(e)?t.regex.message||"Invalid format":null},ls=te.forwardRef(({value:e="",onChange:t,disabled:r=!1,error:n,placeholder:o,type:i="text",className:s,showPasswordToggle:a=!1,validation:d,validateOnChange:c=!0,validateOnBlur:l=!0,...p},$)=>{const[g,x]=te.useState(!1),[h,v]=te.useState(!1),[y,b]=te.useState(null),w=!!n||!!y,C=typeof n=="string"?n:y,S=i==="password"&&a,R=S&&h?"text":i;te.useEffect(()=>{if(e&&d){const k=Wr(e,d);b(k)}},[]);const P=k=>{const W=k.target.value;if(t&&t(W),c&&d){const L=Wr(W,d);b(L)}},j=k=>{x(!0),p.onFocus&&p.onFocus(k)},B=k=>{if(x(!1),l&&d){const W=Wr(k.target.value,d);b(W)}p.onBlur&&p.onBlur(k)},Z=()=>{v(!h)},K=F("flex items-center gap-2","w-full h-12","px-4 py-2","rounded","text-base leading-[18px]","border transition-colors",r&&"bg-[#f4f4f4] cursor-not-allowed",!r&&"bg-white",w&&!r&&"border-[#ff305f]",!w&&g&&!r&&"border-[#a29fba]",!w&&!g&&"border-[#ecebf0]",s),A=F("flex-1 w-full h-full","bg-transparent border-none outline-none","text-[#312e4d] text-base leading-[18px]","placeholder:text-[#7d79a0]",r&&"text-[#a29fba] cursor-not-allowed",r&&"placeholder:text-[#a29fba]"),D=F("flex items-center justify-center","w-5 h-5 shrink-0","text-[#312e4d]","cursor-pointer hover:opacity-70 transition-opacity",r&&"cursor-not-allowed opacity-50");return u.jsxs("div",{className:"w-full",children:[u.jsxs("div",{className:K,"data-testid":"input-container",children:[u.jsx("input",{ref:$,type:R,value:e,onChange:P,onFocus:j,onBlur:B,disabled:r,placeholder:o,className:A,"data-testid":"input","aria-invalid":w,"aria-disabled":r,...p}),S&&u.jsx("button",{type:"button",onClick:Z,disabled:r,className:D,"data-testid":"password-toggle","aria-label":h?"Hide password":"Show password",tabIndex:-1,children:h?u.jsx(Yd,{size:20}):u.jsx(qd,{size:20})})]}),C&&u.jsx("p",{className:"mt-1 text-sm text-[#ff305f]","data-testid":"input-error",role:"alert",children:C})]})});ls.displayName="Input";const us=f.forwardRef(({icon:e,primaryText:t,primaryTextColor:r="#312e4d",secondaryText:n,secondaryTextColor:o="#575385",rightIcon:i,className:s,...a},d)=>u.jsxs("div",{ref:d,className:F("flex items-center justify-between w-full",s),...a,children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("div",{className:"shrink-0",children:e}),u.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:r},children:t}),n&&u.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:o},children:n})]}),i&&u.jsx("div",{className:"shrink-0",children:i})]}));us.displayName="KPIComparisonCustom";const l2=({className:e})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[u.jsx("path",{d:"M11 3L6.5 7.5L4 5L1 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M8 3H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),u2=({className:e})=>u.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[u.jsx("path",{d:"M11 9L6.5 4.5L4 7L1 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M8 9H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),f2=({className:e})=>u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[u.jsx("circle",{cx:"8",cy:"8",r:"6.375",stroke:"currentColor",strokeWidth:"1.25"}),u.jsx("path",{d:"M8 4.5V8.5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),u.jsx("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor"})]}),Fn=f.forwardRef(({percentage:e,trend:t,label:r="KPI comparison",showWarning:n=!1,className:o,...i},s)=>{const a=t==="positive",d=e>0?`+${e.toFixed(1)}%`:`${e.toFixed(1)}%`;return u.jsxs("div",{ref:s,className:F("flex items-center justify-between w-full",o),...i,children:[u.jsxs("div",{className:"flex items-center gap-1",children:[a?u.jsx(l2,{className:"text-[#00995a] shrink-0"}):u.jsx(u2,{className:"text-[#d4002c] shrink-0"}),u.jsx("span",{className:F("text-xs leading-[14px] font-normal whitespace-nowrap",a?"text-[#00995a]":"text-[#d4002c]"),style:{fontFamily:"Causten Round, sans-serif"},children:d}),u.jsx("span",{className:"text-xs leading-[14px] font-normal text-[#575385] whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif"},children:r})]}),n&&u.jsx(f2,{className:"text-[#d4002c] shrink-0"})]})});Fn.displayName="KPIComparison";const Jo={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"},yellow:{bg:"#fff9e6",border:"#ffd966",text:"#cc8800"}},fs=f.forwardRef(({title:e,content:t,description:r,footer:n,tag:o,icon:i,onClick:s,className:a,...d},c)=>{const l=o?Jo[o.variant||"default"]:Jo.default;return u.jsxs("div",{ref:c,onClick:s,className:F("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",s&&"cursor-pointer hover:shadow-md transition-shadow",a),...d,children:[u.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[u.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),o&&u.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:l.bg,borderColor:l.border,color:l.text,fontFamily:"Causten Round, sans-serif"},children:o.label})]}),u.jsx("div",{className:"min-w-0",children:t}),r&&u.jsx("div",{className:"min-w-0",children:r}),n&&u.jsx("div",{className:"min-w-0",children:n})]})]})});fs.displayName="KPICardCustom";const p2=({color:e="#312e4d"})=>u.jsx(Li,{size:32,color:e,strokeWidth:2}),ps=f.forwardRef(({title:e,value:t,unit:r="%",total:n,description:o,comparison:i,tag:s,icon:a,iconColor:d="primary",bodyText:c,button:l,onClick:p,className:$,...g},x)=>{const h={primary:"#312e4d",error:"#d4002c",brand:"#00995a"},y={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"}}[s?.variant||"default"];return u.jsxs("div",{ref:x,onClick:p,className:F("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",p&&"cursor-pointer hover:shadow-md transition-shadow",$),...g,children:[u.jsx("div",{className:"flex items-center justify-center shrink-0",children:a||u.jsx(p2,{color:h[d]})}),u.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[u.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),s&&u.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:y.bg,borderColor:y.border,color:y.text,fontFamily:"Causten Round, sans-serif"},children:s.label})]}),u.jsxs("div",{className:"flex items-end gap-1",children:[u.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),n!==void 0?u.jsxs("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:["/",n]}):r?u.jsx("span",{className:"text-xs leading-[18px] font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:r}):null,o&&u.jsx("span",{className:"text-sm leading-[18px] font-normal text-[#575385] flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-right",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),c&&u.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:c}),i&&u.jsx(Fn,{percentage:i.percentage,trend:i.trend,label:i.label,showWarning:i.showWarning}),l&&u.jsx("button",{onClick:b=>{b.stopPropagation(),l.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] text-left self-start hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:l.label})]})]})});ps.displayName="KPICard";const $s=f.forwardRef(({type:e="spinner",show:t=!0,variant:r="active",size:n=48,width:o=230,className:i,...s},a)=>{if(!t)return null;const c={active:"#00b56b",disabled:"#a29fba"}[r];return e==="spinner"?u.jsxs("div",{ref:a,className:F("inline-flex items-center justify-center",i),role:"status","aria-label":"Cargando",...s,children:[u.jsx("div",{className:"rounded-full animate-spin",style:{width:n,height:n,border:"4px solid transparent",borderTopColor:c,borderRightColor:c}}),u.jsx("span",{className:"sr-only",children:"Cargando..."})]}):u.jsxs("div",{ref:a,className:F("relative overflow-hidden rounded-full bg-gray-200",i),style:{width:o,height:8},role:"progressbar","aria-label":"Cargando","aria-valuemin":0,"aria-valuemax":100,...s,children:[u.jsx("div",{className:"absolute top-0 left-0 h-full rounded-full",style:{backgroundColor:c,animation:"linear-progress 1.5s ease-in-out infinite"}}),u.jsx("span",{className:"sr-only",children:"Cargando..."})]})});$s.displayName="Loader";const hs=f.forwardRef(({title:e,description:t,value:r,selected:n=!1,onSelect:o,disabled:i,className:s,...a},d)=>{const c=()=>{!i&&o&&o(r)};return u.jsxs("div",{ref:d,onClick:c,className:F("bg-white border border-solid rounded-xl p-4 flex flex-col gap-1 transition-all cursor-pointer",n?"border-[#00b56b]":"border-[#ecebf0]",i&&"opacity-50 cursor-not-allowed",!i&&"hover:shadow-sm",s),...a,children:[u.jsxs("div",{className:"flex gap-3 items-center h-6",children:[u.jsx("div",{className:"flex items-center justify-center shrink-0 w-6 h-6",children:u.jsx("div",{className:F("w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors",n?"border-[#00995a]":"border-[#a29fba]"),children:n&&u.jsx("div",{className:"w-3 h-3 rounded-full bg-[#00995a]"})})}),u.jsx("h3",{className:"text-base leading-5 font-medium text-[#312e4d] flex-1",style:{fontFamily:"Causten Round, sans-serif"},children:e})]}),u.jsx("div",{className:"pl-9",children:u.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})})]})});hs.displayName="OptionCard";const Qo={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"}},ms=f.forwardRef(({title:e,count:t,countLabel:r="orders",infoLine1:n,infoLine2:o,icon:i,badge:s,button:a,className:d,...c},l)=>{const p=s?Qo[s.variant||"default"]:Qo.default;return u.jsxs("div",{ref:l,className:F("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",d),...c,children:[u.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),u.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[u.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[u.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),u.jsxs("div",{className:"flex items-end gap-1",children:[u.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),u.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:r})]}),n&&u.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n}),o&&u.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),u.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pb-[33px]",children:[s&&u.jsx("button",{onClick:$=>{$.stopPropagation(),s.onClick?.()},disabled:!s.onClick,className:F("px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border transition-opacity",s.onClick&&"hover:opacity-80 cursor-pointer"),style:{fontFamily:"Causten Round, sans-serif",height:"24px",backgroundColor:p.bg,borderColor:p.border,color:p.text},children:s.label}),a&&u.jsx("button",{onClick:$=>{$.stopPropagation(),a.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:a.label})]})]})]})});ms.displayName="OrderCardCustom";const wr="#00995a",Cr=32,_r=2,$2=()=>u.jsx(oc,{size:Cr,color:wr,strokeWidth:_r}),h2=()=>u.jsx(rc,{size:Cr,color:wr,strokeWidth:_r}),m2=()=>u.jsx(sc,{size:Cr,color:wr,strokeWidth:_r}),g2=()=>u.jsx(Gd,{size:Cr,color:wr,strokeWidth:_r}),v2={received:{title:"Received",icon:$2},picking:{title:"Picking",icon:h2},dispatched:{title:"Dispatched",icon:m2},delivered:{title:"Delivered",icon:g2}},gs=f.forwardRef(({state:e,count:t,countLabel:r="orders",grossSales:n,netSales:o,hasDelays:i=!1,delayCount:s,onDelaysClick:a,onFilterClick:d,icon:c,currencySymbol:l="$",className:p,...$},g)=>{const x=v2[e],h=c||x.icon,v=y=>`${l}${y.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}`;return u.jsxs("div",{ref:g,className:F("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",p),...$,children:[u.jsx("div",{className:"flex items-start justify-center shrink-0",children:typeof h=="function"?u.jsx(h,{}):h}),u.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[u.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[u.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:x.title}),u.jsxs("div",{className:"flex items-end gap-1",children:[u.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),u.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:r})]}),u.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[u.jsx("span",{children:"Gross Sales:"}),u.jsx("span",{children:v(n)})]}),u.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[u.jsx("span",{children:"Net Sales:"}),u.jsx("span",{children:v(o)})]})]}),u.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pl-12 pb-[33px]",children:[i&&u.jsx("button",{onClick:y=>{y.stopPropagation(),a?.()},className:"px-2 rounded-2xl text-[12px] leading-[18px] font-light border bg-[#ffecf0] border-[#ff8ea7] text-[#ff305f] hover:opacity-80 transition-opacity",style:{fontFamily:"Causten Round, sans-serif",height:"24px"},children:s?`${s} Delays`:"Delays"}),d&&u.jsx("button",{onClick:y=>{y.stopPropagation(),d()},className:"text-sm leading-[18px] font-medium text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:"Filter"})]})]})]})});gs.displayName="OrderCard";const vs=({currentPage:e,totalPages:t,onPageChange:r})=>{const n=()=>{e>1&&r(e-1)},o=()=>{e<t&&r(e+1)},i=d=>{r(d)},a=(()=>{const d=[];if(t<=6)for(let l=1;l<=t;l++)d.push(l);else if(d.push(1),e<=3){for(let l=2;l<=4;l++)d.push(l);d.push("..."),d.push(t)}else if(e>=t-2){d.push("...");for(let l=t-2;l<=t;l++)d.push(l)}else{d.push("...");for(let l=e-1;l<=e+1;l++)d.push(l);d.push("..."),d.push(t)}return d})();return u.jsxs("div",{className:"flex gap-1.5 items-center",children:[u.jsx("button",{onClick:n,disabled:e===1,className:F("border rounded bg-transparent p-1 flex items-center justify-center w-[28px] h-[28px]",e===1?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:u.jsx("i",{className:"tabler-chevron-left text-sm text-[#312e4d]"})}),a.map((d,c)=>{if(d==="...")return u.jsx("div",{className:"border border-[#ecebf0] rounded p-1 h-[28px] w-[28px] flex items-center justify-center",children:u.jsx("p",{className:"text-xs text-[#575385] text-center",children:"..."})},`ellipsis-${c}`);const l=d,p=l===e;return u.jsx("button",{onClick:()=>i(l),className:F("border rounded bg-transparent p-1 h-[28px] w-[28px] flex items-center justify-center px-1",p?"border-[#a29fba] bg-white":"border-[#ecebf0] hover:bg-gray-50"),children:u.jsx("p",{className:F("text-xs text-center",p?"text-[#312e4d]":"text-[#a29fba]"),children:l})},l)}),u.jsx("button",{onClick:o,disabled:e===t,className:F("border rounded bg-transparent p-1 flex items-center justify-center h-[28px]",e===t?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:u.jsx("i",{className:"tabler-chevron-right text-sm text-[#312e4d]"})})]})};function ei(e,[t,r]){return Math.min(r,Math.max(t,e))}function de(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function Sr(e,t=[]){let r=[];function n(i,s){const a=f.createContext(s),d=r.length;r=[...r,s];const c=p=>{const{scope:$,children:g,...x}=p,h=$?.[e]?.[d]||a,v=f.useMemo(()=>x,Object.values(x));return u.jsx(h.Provider,{value:v,children:g})};c.displayName=i+"Provider";function l(p,$){const g=$?.[e]?.[d]||a,x=f.useContext(g);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,l]}const o=()=>{const i=r.map(s=>f.createContext(s));return function(a){const d=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[n,y2(o,...t)]}function y2(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:d,scopeName:c})=>{const p=d(i)[`__scope${c}`];return{...a,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function ti(e){const t=b2(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),d=a.find(w2);if(d){const c=d.props.children,l=a.map(p=>p===d?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,l):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function b2(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=_2(o),a=C2(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Wt(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x2=Symbol("radix.slottable");function w2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===x2}function C2(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function _2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function S2(e){const t=e+"CollectionProvider",[r,n]=Sr(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:v,children:y}=h,b=te.useRef(null),w=te.useRef(new Map).current;return u.jsx(o,{scope:v,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const a=e+"CollectionSlot",d=ti(a),c=te.forwardRef((h,v)=>{const{scope:y,children:b}=h,w=i(a,y),C=pe(v,w.collectionRef);return u.jsx(d,{ref:C,children:b})});c.displayName=a;const l=e+"CollectionItemSlot",p="data-radix-collection-item",$=ti(l),g=te.forwardRef((h,v)=>{const{scope:y,children:b,...w}=h,C=te.useRef(null),S=pe(v,C),R=i(l,y);return te.useEffect(()=>(R.itemMap.set(C,{ref:C,...w}),()=>void R.itemMap.delete(C))),u.jsx($,{[p]:"",ref:S,children:b})});g.displayName=l;function x(h){const v=i(e+"CollectionConsumer",h);return te.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((R,P)=>w.indexOf(R.ref.current)-w.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},x,n]}var E2=f.createContext(void 0);function P2(e){const t=f.useContext(E2);return e||t||"ltr"}function N2(e){const t=R2(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),d=a.find(k2);if(d){const c=d.props.children,l=a.map(p=>p===d?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,l):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function R2(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=T2(o),a=O2(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Wt(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A2=Symbol("radix.slottable");function k2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A2}function O2(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function T2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var I2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=I2.reduce((e,t)=>{const r=N2(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(d,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function j2(e,t){e&&mr.flushSync(()=>e.dispatchEvent(t))}function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function F2(e,t=globalThis?.document){const r=st(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var L2="DismissableLayer",ln="dismissableLayer.update",D2="dismissableLayer.pointerDownOutside",M2="dismissableLayer.focusOutside",ri,ys=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=f.useContext(ys),[l,p]=f.useState(null),$=l?.ownerDocument??globalThis?.document,[,g]=f.useState({}),x=pe(t,P=>p(P)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=l?h.indexOf(l):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,S=Z2(P=>{const j=P.target,B=[...c.branches].some(Z=>Z.contains(j));!C||B||(o?.(P),s?.(P),P.defaultPrevented||a?.())},$),R=W2(P=>{const j=P.target;[...c.branches].some(Z=>Z.contains(j))||(i?.(P),s?.(P),P.defaultPrevented||a?.())},$);return F2(P=>{b===c.layers.size-1&&(n?.(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},$),f.useEffect(()=>{if(l)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ri=$.body.style.pointerEvents,$.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(l)),c.layers.add(l),ni(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&($.body.style.pointerEvents=ri)}},[l,$,r,c]),f.useEffect(()=>()=>{l&&(c.layers.delete(l),c.layersWithOutsidePointerEventsDisabled.delete(l),ni())},[l,c]),f.useEffect(()=>{const P=()=>g({});return document.addEventListener(ln,P),()=>document.removeEventListener(ln,P)},[]),u.jsx(se.div,{...d,ref:x,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,R.onFocusCapture),onBlurCapture:de(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,S.onPointerDownCapture)})});bs.displayName=L2;var z2="DismissableLayerBranch",B2=f.forwardRef((e,t)=>{const r=f.useContext(ys),n=f.useRef(null),o=pe(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),u.jsx(se.div,{...e,ref:o})});B2.displayName=z2;function Z2(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let d=function(){xs(D2,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function W2(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&xs(M2,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ni(){const e=new CustomEvent(ln);document.dispatchEvent(e)}function xs(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?j2(o,i):o.dispatchEvent(i)}var Vr=0;function V2(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oi()),document.body.insertAdjacentElement("beforeend",e[1]??oi()),Vr++,()=>{Vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Vr--}},[])}function oi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ur="focusScope.autoFocusOnMount",Hr="focusScope.autoFocusOnUnmount",ii={bubbles:!1,cancelable:!0},U2="FocusScope",ws=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=f.useState(null),c=st(o),l=st(i),p=f.useRef(null),$=pe(t,h=>d(h)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let h=function(w){if(g.paused||!a)return;const C=w.target;a.contains(C)?p.current=C:Xe(p.current,{select:!0})},v=function(w){if(g.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Xe(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Xe(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[n,a,g.paused]),f.useEffect(()=>{if(a){ai.add(g);const h=document.activeElement;if(!a.contains(h)){const y=new CustomEvent(Ur,ii);a.addEventListener(Ur,c),a.dispatchEvent(y),y.defaultPrevented||(H2(q2(Cs(a)),{select:!0}),document.activeElement===h&&Xe(a))}return()=>{a.removeEventListener(Ur,c),setTimeout(()=>{const y=new CustomEvent(Hr,ii);a.addEventListener(Hr,l),a.dispatchEvent(y),y.defaultPrevented||Xe(h??document.body,{select:!0}),a.removeEventListener(Hr,l),ai.remove(g)},0)}}},[a,c,l,g]);const x=f.useCallback(h=>{if(!r&&!n||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[w,C]=G2(b);w&&C?!h.shiftKey&&y===C?(h.preventDefault(),r&&Xe(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),r&&Xe(C,{select:!0})):y===b&&h.preventDefault()}},[r,n,g.paused]);return u.jsx(se.div,{tabIndex:-1,...s,ref:$,onKeyDown:x})});ws.displayName=U2;function H2(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Xe(n,{select:t}),document.activeElement!==r)return}function G2(e){const t=Cs(e),r=si(t,e),n=si(t.reverse(),e);return[r,n]}function Cs(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function si(e,t){for(const r of e)if(!K2(r,{upTo:t}))return r}function K2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Y2(e){return e instanceof HTMLInputElement&&"select"in e}function Xe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Y2(e)&&t&&e.select()}}var ai=X2();function X2(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=di(e,t),e.unshift(t)},remove(t){e=di(e,t),e[0]?.resume()}}}function di(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function q2(e){return e.filter(t=>t.tagName!=="A")}var ye=globalThis?.document?f.useLayoutEffect:()=>{},J2=f[" useId ".trim().toString()]||(()=>{}),Q2=0;function Ln(e){const[t,r]=f.useState(J2());return ye(()=>{r(n=>n??String(Q2++))},[e]),e||(t?`radix-${t}`:"")}const e3=["top","right","bottom","left"],Je=Math.min,xe=Math.max,lr=Math.round,Jt=Math.floor,Ie=e=>({x:e,y:e}),t3={left:"right",right:"left",bottom:"top",top:"bottom"},r3={start:"end",end:"start"};function un(e,t,r){return xe(e,Je(t,r))}function Ze(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}const n3=new Set(["top","bottom"]);function Te(e){return n3.has(We(e))?"y":"x"}function zn(e){return Dn(Te(e))}function o3(e,t,r){r===void 0&&(r=!1);const n=Pt(e),o=zn(e),i=Mn(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ur(s)),[s,ur(s)]}function i3(e){const t=ur(e);return[fn(e),t,fn(t)]}function fn(e){return e.replace(/start|end/g,t=>r3[t])}const ci=["left","right"],li=["right","left"],s3=["top","bottom"],a3=["bottom","top"];function d3(e,t,r){switch(e){case"top":case"bottom":return r?t?li:ci:t?ci:li;case"left":case"right":return t?s3:a3;default:return[]}}function c3(e,t,r,n){const o=Pt(e);let i=d3(We(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(fn)))),i}function ur(e){return e.replace(/left|right|bottom|top/g,t=>t3[t])}function l3(e){return{top:0,right:0,bottom:0,left:0,...e}}function _s(e){return typeof e!="number"?l3(e):{top:e,right:e,bottom:e,left:e}}function fr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ui(e,t,r){let{reference:n,floating:o}=e;const i=Te(t),s=zn(t),a=Mn(s),d=We(t),c=i==="y",l=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,$=n[a]/2-o[a]/2;let g;switch(d){case"top":g={x:l,y:n.y-o.height};break;case"bottom":g={x:l,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(Pt(t)){case"start":g[s]-=$*(r&&c?-1:1);break;case"end":g[s]+=$*(r&&c?-1:1);break}return g}const u3=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:p}=ui(c,n,d),$=n,g={},x=0;for(let h=0;h<a.length;h++){const{name:v,fn:y}=a[h],{x:b,y:w,data:C,reset:S}=await y({x:l,y:p,initialPlacement:n,placement:$,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});l=b??l,p=w??p,g={...g,[v]:{...g[v],...C}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&($=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:l,y:p}=ui(c,$,d)),h=-1)}return{x:l,y:p,placement:$,strategy:o,middlewareData:g}};async function Bt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:$=!1,padding:g=0}=Ze(t,e),x=_s(g),v=a[$?p==="floating"?"reference":"floating":p],y=fr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:d})),b=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=fr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:d}):b);return{top:(y.top-S.top+x.top)/C.y,bottom:(S.bottom-y.bottom+x.bottom)/C.y,left:(y.left-S.left+x.left)/C.x,right:(S.right-y.right+x.right)/C.x}}const f3=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:l=0}=Ze(e,t)||{};if(c==null)return{};const p=_s(l),$={x:r,y:n},g=zn(o),x=Mn(g),h=await s.getDimensions(c),v=g==="y",y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",C=i.reference[x]+i.reference[g]-$[g]-i.floating[x],S=$[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let P=R?R[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=a.floating[w]||i.floating[x]);const j=C/2-S/2,B=P/2-h[x]/2-1,Z=Je(p[y],B),K=Je(p[b],B),A=Z,D=P-h[x]-K,k=P/2-h[x]/2+j,W=un(A,k,D),L=!d.arrow&&Pt(o)!=null&&k!==W&&i.reference[x]/2-(k<A?Z:K)-h[x]/2<0,V=L?k<A?k-A:k-D:0;return{[g]:$[g]+V,data:{[g]:W,centerOffset:k-W-V,...L&&{alignmentOffset:V}},reset:L}}}),p3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:l=!0,crossAxis:p=!0,fallbackPlacements:$,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...v}=Ze(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=We(o),b=Te(a),w=We(a)===a,C=await(d.isRTL==null?void 0:d.isRTL(c.floating)),S=$||(w||!h?[ur(a)]:i3(a)),R=x!=="none";!$&&R&&S.push(...c3(a,h,x,C));const P=[a,...S],j=await Bt(t,v),B=[];let Z=((n=i.flip)==null?void 0:n.overflows)||[];if(l&&B.push(j[y]),p){const k=o3(o,s,C);B.push(j[k[0]],j[k[1]])}if(Z=[...Z,{placement:o,overflows:B}],!B.every(k=>k<=0)){var K,A;const k=(((K=i.flip)==null?void 0:K.index)||0)+1,W=P[k];if(W&&(!(p==="alignment"?b!==Te(W):!1)||Z.every(O=>Te(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:k,overflows:Z},reset:{placement:W}};let L=(A=Z.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:A.placement;if(!L)switch(g){case"bestFit":{var D;const V=(D=Z.filter(O=>{if(R){const H=Te(O.placement);return H===b||H==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(H=>H>0).reduce((H,ce)=>H+ce,0)]).sort((O,H)=>O[1]-H[1])[0])==null?void 0:D[0];V&&(L=V);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function fi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pi(e){return e3.some(t=>e[t]>=0)}const $3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ze(e,t);switch(n){case"referenceHidden":{const i=await Bt(t,{...o,elementContext:"reference"}),s=fi(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:pi(s)}}}case"escaped":{const i=await Bt(t,{...o,altBoundary:!0}),s=fi(i,r.floating);return{data:{escapedOffsets:s,escaped:pi(s)}}}default:return{}}}}},Ss=new Set(["left","top"]);async function h3(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=We(r),a=Pt(r),d=Te(r)==="y",c=Ss.has(s)?-1:1,l=i&&d?-1:1,p=Ze(t,e);let{mainAxis:$,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),d?{x:g*l,y:$*c}:{x:$*c,y:g*l}}const m3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await h3(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},g3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...d}=Ze(e,t),c={x:r,y:n},l=await Bt(t,d),p=Te(We(o)),$=Dn(p);let g=c[$],x=c[p];if(i){const v=$==="y"?"top":"left",y=$==="y"?"bottom":"right",b=g+l[v],w=g-l[y];g=un(b,g,w)}if(s){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=x+l[v],w=x-l[y];x=un(b,x,w)}const h=a.fn({...t,[$]:g,[p]:x});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[$]:i,[p]:s}}}}}},v3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=Ze(e,t),l={x:r,y:n},p=Te(o),$=Dn(p);let g=l[$],x=l[p];const h=Ze(a,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(d){const w=$==="y"?"height":"width",C=i.reference[$]-i.floating[w]+v.mainAxis,S=i.reference[$]+i.reference[w]-v.mainAxis;g<C?g=C:g>S&&(g=S)}if(c){var y,b;const w=$==="y"?"width":"height",C=Ss.has(We(o)),S=i.reference[p]-i.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:v.crossAxis),R=i.reference[p]+i.reference[w]+(C?0:((b=s.offset)==null?void 0:b[p])||0)-(C?v.crossAxis:0);x<S?x=S:x>R&&(x=R)}return{[$]:g,[p]:x}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=Ze(e,t),l=await Bt(t,c),p=We(o),$=Pt(o),g=Te(o)==="y",{width:x,height:h}=i.floating;let v,y;p==="top"||p==="bottom"?(v=p,y=$===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,v=$==="end"?"top":"bottom");const b=h-l.top-l.bottom,w=x-l.left-l.right,C=Je(h-l[v],b),S=Je(x-l[y],w),R=!t.middlewareData.shift;let P=C,j=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=b),R&&!$){const Z=xe(l.left,0),K=xe(l.right,0),A=xe(l.top,0),D=xe(l.bottom,0);g?j=x-2*(Z!==0||K!==0?Z+K:xe(l.left,l.right)):P=h-2*(A!==0||D!==0?A+D:xe(l.top,l.bottom))}await d({...t,availableWidth:j,availableHeight:P});const B=await s.getDimensions(a.floating);return x!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function Er(){return typeof window<"u"}function Nt(e){return Es(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Le(e){var t;return(t=(Es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Es(e){return Er()?e instanceof Node||e instanceof we(e).Node:!1}function Re(e){return Er()?e instanceof Element||e instanceof we(e).Element:!1}function je(e){return Er()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function $i(e){return!Er()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const b3=new Set(["inline","contents"]);function Vt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!b3.has(o)}const x3=new Set(["table","td","th"]);function w3(e){return x3.has(Nt(e))}const C3=[":popover-open",":modal"];function Pr(e){return C3.some(t=>{try{return e.matches(t)}catch{return!1}})}const _3=["transform","translate","scale","rotate","perspective"],S3=["transform","translate","scale","rotate","perspective","filter"],E3=["paint","layout","strict","content"];function Bn(e){const t=Zn(),r=Re(e)?Ae(e):e;return _3.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||S3.some(n=>(r.willChange||"").includes(n))||E3.some(n=>(r.contain||"").includes(n))}function P3(e){let t=Qe(e);for(;je(t)&&!_t(t);){if(Bn(t))return t;if(Pr(t))return null;t=Qe(t)}return null}function Zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const N3=new Set(["html","body","#document"]);function _t(e){return N3.has(Nt(e))}function Ae(e){return we(e).getComputedStyle(e)}function Nr(e){return Re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qe(e){if(Nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$i(e)&&e.host||Le(e);return $i(t)?t.host:t}function Ps(e){const t=Qe(e);return _t(t)?e.ownerDocument?e.ownerDocument.body:e.body:je(t)&&Vt(t)?t:Ps(t)}function Zt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ps(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=we(o);if(i){const a=pn(s);return t.concat(s,s.visualViewport||[],Vt(o)?o:[],a&&r?Zt(a):[])}return t.concat(o,Zt(o,[],r))}function pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ns(e){const t=Ae(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=je(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=lr(r)!==i||lr(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Wn(e){return Re(e)?e:e.contextElement}function xt(e){const t=Wn(e);if(!je(t))return Ie(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ns(t);let s=(i?lr(r.width):r.width)/n,a=(i?lr(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const R3=Ie(0);function Rs(e){const t=we(e);return!Zn()||!t.visualViewport?R3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function A3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==we(e)?!1:t}function at(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wn(e);let s=Ie(1);t&&(n?Re(n)&&(s=xt(n)):s=xt(e));const a=A3(i,r,n)?Rs(i):Ie(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,l=o.width/s.x,p=o.height/s.y;if(i){const $=we(i),g=n&&Re(n)?we(n):n;let x=$,h=pn(x);for(;h&&n&&g!==x;){const v=xt(h),y=h.getBoundingClientRect(),b=Ae(h),w=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,C=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;d*=v.x,c*=v.y,l*=v.x,p*=v.y,d+=w,c+=C,x=we(h),h=pn(x)}}return fr({width:l,height:p,x:d,y:c})}function Rr(e,t){const r=Nr(e).scrollLeft;return t?t.left+r:at(Le(e)).left+r}function As(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Rr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function k3(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Le(n),a=t?Pr(t.floating):!1;if(n===s||a&&i)return r;let d={scrollLeft:0,scrollTop:0},c=Ie(1);const l=Ie(0),p=je(n);if((p||!p&&!i)&&((Nt(n)!=="body"||Vt(s))&&(d=Nr(n)),je(n))){const g=at(n);c=xt(n),l.x=g.x+n.clientLeft,l.y=g.y+n.clientTop}const $=s&&!p&&!i?As(s,d):Ie(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-d.scrollLeft*c.x+l.x+$.x,y:r.y*c.y-d.scrollTop*c.y+l.y+$.y}}function O3(e){return Array.from(e.getClientRects())}function T3(e){const t=Le(e),r=Nr(e),n=e.ownerDocument.body,o=xe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Rr(e);const a=-r.scrollTop;return Ae(n).direction==="rtl"&&(s+=xe(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const hi=25;function I3(e,t){const r=we(e),n=Le(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const l=Zn();(!l||l&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=Rr(n);if(c<=0){const l=n.ownerDocument,p=l.body,$=getComputedStyle(p),g=l.compatMode==="CSS1Compat"&&parseFloat($.marginLeft)+parseFloat($.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-g);x<=hi&&(i-=x)}else c<=hi&&(i+=c);return{width:i,height:s,x:a,y:d}}const j3=new Set(["absolute","fixed"]);function F3(e,t){const r=at(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=je(e)?xt(e):Ie(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=n*i.y;return{width:s,height:a,x:d,y:c}}function mi(e,t,r){let n;if(t==="viewport")n=I3(e,r);else if(t==="document")n=T3(Le(e));else if(Re(t))n=F3(t,r);else{const o=Rs(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fr(n)}function ks(e,t){const r=Qe(e);return r===t||!Re(r)||_t(r)?!1:Ae(r).position==="fixed"||ks(r,t)}function L3(e,t){const r=t.get(e);if(r)return r;let n=Zt(e,[],!1).filter(a=>Re(a)&&Nt(a)!=="body"),o=null;const i=Ae(e).position==="fixed";let s=i?Qe(e):e;for(;Re(s)&&!_t(s);){const a=Ae(s),d=Bn(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&j3.has(o.position)||Vt(s)&&!d&&ks(e,s))?n=n.filter(l=>l!==s):o=a,s=Qe(s)}return t.set(e,n),n}function D3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Pr(t)?[]:L3(t,this._c):[].concat(r),n],a=s[0],d=s.reduce((c,l)=>{const p=mi(t,l,o);return c.top=xe(p.top,c.top),c.right=Je(p.right,c.right),c.bottom=Je(p.bottom,c.bottom),c.left=xe(p.left,c.left),c},mi(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function M3(e){const{width:t,height:r}=Ns(e);return{width:t,height:r}}function z3(e,t,r){const n=je(t),o=Le(t),i=r==="fixed",s=at(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=Ie(0);function c(){d.x=Rr(o)}if(n||!n&&!i)if((Nt(t)!=="body"||Vt(o))&&(a=Nr(t)),n){const g=at(t,!0,i,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&c();i&&!n&&o&&c();const l=o&&!n&&!i?As(o,a):Ie(0),p=s.left+a.scrollLeft-d.x-l.x,$=s.top+a.scrollTop-d.y-l.y;return{x:p,y:$,width:s.width,height:s.height}}function Gr(e){return Ae(e).position==="static"}function gi(e,t){if(!je(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Le(e)===r&&(r=r.ownerDocument.body),r}function Os(e,t){const r=we(e);if(Pr(e))return r;if(!je(e)){let o=Qe(e);for(;o&&!_t(o);){if(Re(o)&&!Gr(o))return o;o=Qe(o)}return r}let n=gi(e,t);for(;n&&w3(n)&&Gr(n);)n=gi(n,t);return n&&_t(n)&&Gr(n)&&!Bn(n)?r:n||P3(e)||r}const B3=async function(e){const t=this.getOffsetParent||Os,r=this.getDimensions,n=await r(e.floating);return{reference:z3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Z3(e){return Ae(e).direction==="rtl"}const W3={convertOffsetParentRelativeRectToViewportRelativeRect:k3,getDocumentElement:Le,getClippingRect:D3,getOffsetParent:Os,getElementRects:B3,getClientRects:O3,getDimensions:M3,getScale:xt,isElement:Re,isRTL:Z3};function Ts(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function V3(e,t){let r=null,n;const o=Le(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:l,top:p,width:$,height:g}=c;if(a||t(),!$||!g)return;const x=Jt(p),h=Jt(o.clientWidth-(l+$)),v=Jt(o.clientHeight-(p+g)),y=Jt(l),w={rootMargin:-x+"px "+-h+"px "+-v+"px "+-y+"px",threshold:xe(0,Je(1,d))||1};let C=!0;function S(R){const P=R[0].intersectionRatio;if(P!==d){if(!C)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Ts(c,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,w)}r.observe(e)}return s(!0),i}function U3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,c=Wn(e),l=o||i?[...c?Zt(c):[],...Zt(t)]:[];l.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const p=c&&a?V3(c,r):null;let $=-1,g=null;s&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&(g.unobserve(t),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!d&&g.observe(c),g.observe(t));let x,h=d?at(e):null;d&&v();function v(){const y=at(e);h&&!Ts(h,y)&&r(),h=y,x=requestAnimationFrame(v)}return r(),()=>{var y;l.forEach(b=>{o&&b.removeEventListener("scroll",r),i&&b.removeEventListener("resize",r)}),p?.(),(y=g)==null||y.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const H3=m3,G3=g3,K3=p3,Y3=y3,X3=$3,vi=f3,q3=v3,J3=(e,t,r)=>{const n=new Map,o={platform:W3,...r},i={...o.platform,_c:n};return u3(e,t,{...o,platform:i})};var Q3=typeof document<"u",ep=function(){},nr=Q3?te.useLayoutEffect:ep;function pr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!pr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!pr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Is(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yi(e,t){const r=Is(e);return Math.round(t*r)/r}function Kr(e){const t=f.useRef(e);return nr(()=>{t.current=e}),t}function tp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[l,p]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[$,g]=f.useState(n);pr($,n)||g(n);const[x,h]=f.useState(null),[v,y]=f.useState(null),b=f.useCallback(O=>{O!==R.current&&(R.current=O,h(O))},[]),w=f.useCallback(O=>{O!==P.current&&(P.current=O,y(O))},[]),C=i||x,S=s||v,R=f.useRef(null),P=f.useRef(null),j=f.useRef(l),B=d!=null,Z=Kr(d),K=Kr(o),A=Kr(c),D=f.useCallback(()=>{if(!R.current||!P.current)return;const O={placement:t,strategy:r,middleware:$};K.current&&(O.platform=K.current),J3(R.current,P.current,O).then(H=>{const ce={...H,isPositioned:A.current!==!1};k.current&&!pr(j.current,ce)&&(j.current=ce,mr.flushSync(()=>{p(ce)}))})},[$,t,r,K,A]);nr(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[c]);const k=f.useRef(!1);nr(()=>(k.current=!0,()=>{k.current=!1}),[]),nr(()=>{if(C&&(R.current=C),S&&(P.current=S),C&&S){if(Z.current)return Z.current(C,S,D);D()}},[C,S,D,Z,B]);const W=f.useMemo(()=>({reference:R,floating:P,setReference:b,setFloating:w}),[b,w]),L=f.useMemo(()=>({reference:C,floating:S}),[C,S]),V=f.useMemo(()=>{const O={position:r,left:0,top:0};if(!L.floating)return O;const H=yi(L.floating,l.x),ce=yi(L.floating,l.y);return a?{...O,transform:"translate("+H+"px, "+ce+"px)",...Is(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:ce}},[r,a,L.floating,l.x,l.y]);return f.useMemo(()=>({...l,update:D,refs:W,elements:L,floatingStyles:V}),[l,D,W,L,V])}const rp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?vi({element:n.current,padding:o}).fn(r):{}:n?vi({element:n,padding:o}).fn(r):{}}}},np=(e,t)=>({...H3(e),options:[e,t]}),op=(e,t)=>({...G3(e),options:[e,t]}),ip=(e,t)=>({...q3(e),options:[e,t]}),sp=(e,t)=>({...K3(e),options:[e,t]}),ap=(e,t)=>({...Y3(e),options:[e,t]}),dp=(e,t)=>({...X3(e),options:[e,t]}),cp=(e,t)=>({...rp(e),options:[e,t]});var lp="Arrow",js=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return u.jsx(se.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});js.displayName=lp;var up=js;function Fs(e){const[t,r]=f.useState(void 0);return ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,c=Array.isArray(d)?d[0]:d;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Vn="Popper",[Ls,Ds]=Sr(Vn),[fp,Ms]=Ls(Vn),zs=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(fp,{scope:t,anchor:n,onAnchorChange:o,children:r})};zs.displayName=Vn;var Bs="PopperAnchor",Zs=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Ms(Bs,r),s=f.useRef(null),a=pe(t,s),d=f.useRef(null);return f.useEffect(()=>{const c=d.current;d.current=n?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),n?null:u.jsx(se.div,{...o,ref:a})});Zs.displayName=Bs;var Un="PopperContent",[pp,$p]=Ls(Un),Ws=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:l=0,sticky:p="partial",hideWhenDetached:$=!1,updatePositionStrategy:g="optimized",onPlaced:x,...h}=e,v=Ms(Un,r),[y,b]=f.useState(null),w=pe(t,T=>b(T)),[C,S]=f.useState(null),R=Fs(C),P=R?.width??0,j=R?.height??0,B=n+(i!=="center"?"-"+i:""),Z=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},K=Array.isArray(c)?c:[c],A=K.length>0,D={padding:Z,boundary:K.filter(mp),altBoundary:A},{refs:k,floatingStyles:W,placement:L,isPositioned:V,middlewareData:O}=tp({strategy:"fixed",placement:B,whileElementsMounted:(...T)=>U3(...T,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[np({mainAxis:o+j,alignmentAxis:s}),d&&op({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?ip():void 0,...D}),d&&sp({...D}),ap({...D,apply:({elements:T,rects:q,availableWidth:fe,availableHeight:Y})=>{const{width:Q,height:oe}=q.reference,ge=T.floating.style;ge.setProperty("--radix-popper-available-width",`${fe}px`),ge.setProperty("--radix-popper-available-height",`${Y}px`),ge.setProperty("--radix-popper-anchor-width",`${Q}px`),ge.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),C&&cp({element:C,padding:a}),gp({arrowWidth:P,arrowHeight:j}),$&&dp({strategy:"referenceHidden",...D})]}),[H,ce]=Hs(L),le=st(x);ye(()=>{V&&le?.()},[V,le]);const Ve=O.arrow?.x,Ue=O.arrow?.y,ke=O.arrow?.centerOffset!==0,[He,Ee]=f.useState();return ye(()=>{y&&Ee(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(pp,{scope:r,placedSide:H,onArrowChange:S,arrowX:Ve,arrowY:Ue,shouldHideArrow:ke,children:u.jsx(se.div,{"data-side":H,"data-align":ce,...h,ref:w,style:{...h.style,animation:V?void 0:"none"}})})})});Ws.displayName=Un;var Vs="PopperArrow",hp={top:"bottom",right:"left",bottom:"top",left:"right"},Us=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=$p(Vs,n),s=hp[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(up,{...o,ref:r,style:{...o.style,display:"block"}})})});Us.displayName=Vs;function mp(e){return e!==null}var gp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,l]=Hs(r),p={start:"0%",center:"50%",end:"100%"}[l],$=(o.arrow?.x??0)+a/2,g=(o.arrow?.y??0)+d/2;let x="",h="";return c==="bottom"?(x=s?p:`${$}px`,h=`${-d}px`):c==="top"?(x=s?p:`${$}px`,h=`${n.floating.height+d}px`):c==="right"?(x=`${-d}px`,h=s?p:`${g}px`):c==="left"&&(x=`${n.floating.width+d}px`,h=s?p:`${g}px`),{data:{x,y:h}}}});function Hs(e){const[t,r="center"]=e.split("-");return[t,r]}var vp=zs,yp=Zs,bp=Ws,xp=Us,wp="Portal",Gs=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);ye(()=>i(!0),[]);const s=r||o&&globalThis?.document?.body;return s?Si.createPortal(u.jsx(se.div,{...n,ref:t}),s):null});Gs.displayName=wp;function Cp(e){const t=_p(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),d=a.find(Ep);if(d){const c=d.props.children,l=a.map(p=>p===d?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:p);return u.jsx(t,{...s,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,l):null})}return u.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function _p(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=Np(o),a=Pp(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Wt(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sp=Symbol("radix.slottable");function Ep(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sp}function Pp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Np(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Rp=f[" useInsertionEffect ".trim().toString()]||ye;function $n({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Ap({defaultProp:t,onChange:r}),a=e!==void 0,d=a?e:o;{const l=f.useRef(e!==void 0);f.useEffect(()=>{const p=l.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=a},[a,n])}const c=f.useCallback(l=>{if(a){const p=kp(l)?l(e):l;p!==e&&s.current?.(p)}else i(l)},[a,e,i,s]);return[d,c]}function Ap({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return Rp(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function kp(e){return typeof e=="function"}function Ks(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ys=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Op="VisuallyHidden",Tp=f.forwardRef((e,t)=>u.jsx(se.span,{...e,ref:t,style:{...Ys,...e.style}}));Tp.displayName=Op;var Ip=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$t=new WeakMap,Qt=new WeakMap,er={},Yr=0,Xs=function(e){return e&&(e.host||Xs(e.parentNode))},jp=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Xs(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Fp=function(e,t,r,n){var o=jp(t,Array.isArray(e)?e:[e]);er[r]||(er[r]=new WeakMap);var i=er[r],s=[],a=new Set,d=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var l=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function($){if(a.has($))l($);else try{var g=$.getAttribute(n),x=g!==null&&g!=="false",h=($t.get($)||0)+1,v=(i.get($)||0)+1;$t.set($,h),i.set($,v),s.push($),h===1&&x&&Qt.set($,!0),v===1&&$.setAttribute(r,"true"),x||$.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",$,y)}})};return l(t),a.clear(),Yr++,function(){s.forEach(function(p){var $=$t.get(p)-1,g=i.get(p)-1;$t.set(p,$),i.set(p,g),$||(Qt.has(p)||p.removeAttribute(n),Qt.delete(p)),g||p.removeAttribute(r)}),Yr--,Yr||($t=new WeakMap,$t=new WeakMap,Qt=new WeakMap,er={})}},Lp=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Ip(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Fp(n,o,r,"aria-hidden")):function(){return null}},Oe=function(){return Oe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Oe.apply(this,arguments)};function qs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Dp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var or="right-scroll-bar-position",ir="width-before-scroll-bar",Mp="with-scroll-bars-hidden",zp="--removed-body-scroll-bar-size";function Xr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bp(e,t){var r=te.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Zp=typeof window<"u"?f.useLayoutEffect:f.useEffect,bi=new WeakMap;function Wp(e,t){var r=Bp(null,function(n){return e.forEach(function(o){return Xr(o,n)})});return Zp(function(){var n=bi.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||Xr(a,null)}),i.forEach(function(a){o.has(a)||Xr(a,s)})}bi.set(r,e)},[e]),r}function Vp(e){return e}function Up(e,t){t===void 0&&(t=Vp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var d=function(){var l=s;s=[],l.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),r={push:function(l){s.push(l),c()},filter:function(l){return s=s.filter(l),r}}}};return o}function Hp(e){e===void 0&&(e={});var t=Up(null);return t.options=Oe({async:!0,ssr:!1},e),t}var Js=function(e){var t=e.sideCar,r=qs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Oe({},r))};Js.isSideCarExport=!0;function Gp(e,t){return e.useMedium(t),Js}var Qs=Hp(),qr=function(){},Ar=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:qr,onWheelCapture:qr,onTouchMoveCapture:qr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,l=e.enabled,p=e.shards,$=e.sideCar,g=e.noRelative,x=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=qs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=$,R=Wp([r,t]),P=Oe(Oe({},C),o);return f.createElement(f.Fragment,null,l&&f.createElement(S,{sideCar:Qs,removeScrollBar:c,shards:p,noRelative:g,noIsolation:x,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:w}),s?f.cloneElement(f.Children.only(a),Oe(Oe({},P),{ref:R})):f.createElement(b,Oe({},P,{className:d,ref:R}),a))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:ir,zeroRight:or};var Kp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kp();return t&&e.setAttribute("nonce",t),e}function Xp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jp=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yp())&&(Xp(t,r),qp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qp=function(){var e=Jp();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ea=function(){var e=Qp(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},e$={left:0,top:0,right:0,gap:0},Jr=function(e){return parseInt(e||"",10)||0},t$=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Jr(r),Jr(n),Jr(o)]},r$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return e$;var t=t$(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},n$=ea(),wt="data-scroll-locked",o$=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
19
- .`.concat(Mp,` {
20
- overflow: hidden `).concat(n,`;
21
- padding-right: `).concat(a,"px ").concat(n,`;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),te=require("react"),re=require("lucide-react"),pt=require("@radix-ui/react-slot"),jo=require("react-dom"),Ts=require("@radix-ui/react-switch");function Gn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Gn(te),Gt=Gn(jo),yr=Gn(Ts);function Fo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fo(e))&&(r&&(r+=" "),r+=t);return r}const Hn="-",ks=e=>{const t=Fs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Hn);return a[0]===""&&a.length!==1&&a.shift(),Mo(a,t)||js(s)},getConflictingClassGroupIds:(s,a)=>{const d=n[s]||[];return a&&r[s]?[...d,...r[s]]:d}}},Mo=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Mo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Hn);return t.validators.find(({validator:s})=>s(i))?.classGroupId},xr=/^\[(.+)\]$/,js=e=>{if(xr.test(e)){const t=xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fs=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ms(Object.entries(e.classGroups),n).forEach(([i,s])=>{Pn(s,r,i,t)}),r},Pn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ls(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Pn(s,wr(t,i),n,r)})})},wr=(e,t)=>{let n=e;return t.split(Hn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ls=e=>e.isThemeGetter,Ms=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,Ds=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Do="!",zs=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const d=[];let c=0,u=0,f;for(let g=0;g<a.length;g++){let b=a[g];if(c===0){if(b===o&&(r||a.slice(g,g+i)===t)){d.push(a.slice(u,g)),u=g+i;continue}if(b==="/"){f=g;continue}}b==="["?c++:b==="]"&&c--}const p=d.length===0?a:a.substring(u),m=p.startsWith(Do),v=m?p.substring(1):p,$=f&&f>u?f-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:$}};return n?a=>n({className:a,parseClassName:s}):s},Zs=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Bs=e=>({cache:Ds(e.cacheSize),parseClassName:zs(e),...ks(e)}),Us=/\s+/,Ws=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Us);let a="";for(let d=s.length-1;d>=0;d-=1){const c=s[d],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(c);let v=!!m,$=r(v?p.substring(0,m):p);if(!$){if(!v){a=c+(a.length>0?" "+a:a);continue}if($=r(p),!$){a=c+(a.length>0?" "+a:a);continue}v=!1}const g=Zs(u).join(":"),b=f?g+Do:g,y=b+$;if(i.includes(y))continue;i.push(y);const x=o($,v);for(let w=0;w<x.length;++w){const S=x[w];i.push(b+S)}a=c+(a.length>0?" "+a:a)}return a};function Vs(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=zo(t))&&(r&&(r+=" "),r+=n);return r}const zo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Gs(e,...t){let n,r,o,i=s;function s(d){const c=t.reduce((u,f)=>f(u),e());return n=Bs(c),r=n.cache.get,o=n.cache.set,i=a,a(d)}function a(d){const c=r(d);if(c)return c;const u=Ws(d,n);return o(d,u),u}return function(){return i(Vs.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Zo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hs=/^\d+\/\d+$/,Ks=new Set(["px","full","screen"]),Xs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\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$/,qs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Js=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>qe(e)||Ks.has(e)||Hs.test(e),Ee=e=>ot(e,"length",aa),qe=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>ot(e,"number",qe),ut=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith("%")&&qe(e.slice(0,-1)),k=e=>Zo.test(e),Re=e=>Xs.test(e),ta=new Set(["length","size","percentage"]),na=e=>ot(e,ta,Bo),ra=e=>ot(e,"position",Bo),oa=new Set(["image","url"]),ia=e=>ot(e,oa,ca),sa=e=>ot(e,"",da),ft=()=>!0,ot=(e,t,n)=>{const r=Zo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},aa=e=>Ys.test(e)&&!qs.test(e),Bo=()=>!1,da=e=>Js.test(e),ca=e=>Qs.test(e),la=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),a=W("borderWidth"),d=W("contrast"),c=W("grayscale"),u=W("hueRotate"),f=W("invert"),p=W("gap"),m=W("gradientColorStops"),v=W("gradientColorStopPositions"),$=W("inset"),g=W("margin"),b=W("opacity"),y=W("padding"),x=W("saturate"),w=W("scale"),S=W("sepia"),P=W("skew"),_=W("space"),O=W("translate"),L=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",k,t],N=()=>[k,t],M=()=>["",Ce,Ee],A=()=>["auto",qe,k],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",k],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[qe,k];return{cacheSize:500,separator:":",theme:{colors:[ft],spacing:[Ce,Ee],blur:["none","",Re,k],brightness:ee(),borderColor:[e],borderRadius:["none","","full",Re,k],borderSpacing:N(),borderWidth:M(),contrast:ee(),grayscale:B(),hueRotate:ee(),invert:B(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ea,Ee],inset:z(),margin:z(),opacity:ee(),padding:N(),saturate:ee(),scale:ee(),sepia:B(),skew:ee(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[Re]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],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:[...Z(),k]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ut,k]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ut,k]}],"grid-cols":[{"grid-cols":[ft]}],"col-start-end":[{col:["auto",{span:["full",ut,k]},k]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ft]}],"row-start-end":[{row:["auto",{span:[ut,k]},k]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[Re]},Re]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Re,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$n]}],"font-family":[{font:[ft]}],"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:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",qe,$n]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,Ee]}],"underline-offset":[{"underline-offset":["auto",Ce,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),ra]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",na]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ia]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:T()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[Ce,k]}],"outline-w":[{outline:[Ce,Ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ce,Ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Re,sa]}],"shadow-color":[{shadow:[ft]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Re,k]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ut,k]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,Ee,$n]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},ua=Gs(la);function I(...e){return ua(Lo(e))}const Uo=h.forwardRef(({title:e,description:t,icon:n,action:r,onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",o&&"cursor-pointer hover:shadow-md transition-shadow",i),style:{width:"350px"},...s,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:n}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-semibold text-[#312e4d] capitalize",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r&&l.jsx("button",{onClick:d=>{d.stopPropagation(),r.onClick()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline self-start",style:{fontFamily:"Causten Round, sans-serif"},children:r.label})]})]}));Uo.displayName="ActionCard";const Wo=h.forwardRef(({variant:e="information",title:t,description:n,icon:r,className:o,...i},s)=>{const d={warning:{container:"bg-[#fff3e8]",text:"text-[#d48620]",icon:l.jsx(re.AlertTriangle,{size:24,className:"text-[#d48620]"})},information:{container:"bg-[#e3f2ff]",text:"text-[#4087fb]",icon:l.jsx(re.Info,{size:24,className:"text-[#4087fb]"})},grey:{container:"bg-[#f4f4f4]",text:"text-[#6e6f6e]",icon:l.jsx(re.Info,{size:24,className:"text-[#202020]"})}}[e],c=r||d.icon;return l.jsxs("div",{ref:s,className:I("flex items-center gap-3 p-4 rounded-lg",d.container,d.text,o),role:"alert","aria-live":"polite",...i,children:[l.jsx("div",{className:"flex-shrink-0",children:c}),l.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0",children:[l.jsx("div",{className:"font-semibold text-sm leading-[18px]",children:t}),l.jsx("div",{className:"font-normal text-sm leading-[18px]",children:n})]})]})});Wo.displayName="BannerAlerts";const Cr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sr=Lo,fa=(e,t)=>n=>{var r;if(t?.variants==null)return Sr(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const p=Cr(u)||Cr(f);return o[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:p,...m}=u;return Object.entries(m).every(v=>{let[$,g]=v;return Array.isArray(g)?g.includes({...i,...a}[$]):{...i,...a}[$]===g})?[...c,f,p]:c},[]);return Sr(e,s,d,n?.class,n?.className)},Nn=fa("inline-flex items-center justify-center gap-2 rounded font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-[#00b56b] text-white border border-[#00b56b] hover:bg-[#00995a] hover:border-[#00995a] active:bg-[#007a48] active:border-[#007a48] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",secondary:"bg-transparent text-[#312e4d] border border-[#00b56b] hover:bg-[#e6f8ef] hover:border-[#00995a] active:bg-[#00b56b]/10 active:border-[#007a48] disabled:bg-transparent disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",alert:"bg-[#ff305f] text-white border border-[#a80023] hover:bg-[#d4002c] hover:border-[#a80023] active:bg-[#a80023] active:border-[#a80023] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",ghost:"bg-transparent text-[#00995a] border-0 hover:bg-[#e6f8ef] hover:text-[#00995a] active:bg-[#00b56b]/10 active:text-[#007a48] disabled:bg-transparent disabled:text-[#9e9e9e]",plain:"bg-transparent text-[#00995a] border-0 p-0 h-auto hover:text-[#00995a] hover:underline active:text-[#007a48] disabled:text-[#9e9e9e] disabled:no-underline"},size:{small:"h-8 px-3 py-2 text-sm",medium:"h-9 px-4 py-2 text-sm",large:"h-11 px-5 py-2.5 text-base"},iconOnly:{true:"aspect-square"}},compoundVariants:[{size:"small",iconOnly:!0,className:"h-8 w-8 p-0"},{size:"medium",iconOnly:!0,className:"h-10 w-10 p-0"},{size:"large",iconOnly:!0,className:"h-11 w-11 p-0"},{variant:"plain",size:"small",className:"h-auto px-0 py-0"},{variant:"plain",size:"medium",className:"h-auto px-0 py-0"},{variant:"plain",size:"large",className:"h-auto px-0 py-0"}],defaultVariants:{variant:"primary",size:"medium",iconOnly:!1}}),Kn=h.forwardRef(({className:e,variant:t,size:n,iconOnly:r,asChild:o=!1,leftIcon:i,rightIcon:s,children:a,...d},c)=>{const u=o?pt.Slot:"button";return o?l.jsx(u,{className:I(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:a}):l.jsxs(u,{className:I(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:[i&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:i}),r&&i||a,s&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:s})]})});Kn.displayName="Button";const Me={largeDark:"https://www.figma.com/api/mcp/asset/4d8371e7-dff3-4ec8-bbce-b93185151f4c",largeLight:"https://www.figma.com/api/mcp/asset/8a7267d5-2fb8-494e-a13a-3795b42fde22",smallDark:"https://www.figma.com/api/mcp/asset/9d2e5067-f587-40b6-b0a5-5ce6da0aad4c",smallLight:"https://www.figma.com/api/mcp/asset/f01bbe9b-2dae-44fe-892f-97ff47e10e8e",gradientLarge:"https://www.figma.com/api/mcp/asset/972e7e1a-3343-4868-9c4d-97d6dfce3ce8"},Vo=h.forwardRef(({size:e="large",mode:t="dark",gradient:n=!1,className:r,alt:o="Chiperos Logo",...i},s)=>{const a=()=>n&&e==="large"?Me.gradientLarge:e==="large"&&t==="dark"?Me.largeDark:e==="large"&&t==="light"?Me.largeLight:e==="small"&&t==="dark"?Me.smallDark:e==="small"&&t==="light"?Me.smallLight:Me.largeDark,d={large:{width:143,height:32},small:{width:40,height:32}},{width:c,height:u}=d[e];return l.jsx("img",{ref:s,src:a(),alt:o,width:c,height:u,className:I("inline-block",r),...i})});Vo.displayName="BrandIcons";const Go=h.forwardRef(({columns:e,gap:t=4,tabletColumns:n,mobileColumns:r=1,children:o,className:i,style:s,...a},d)=>{const c=()=>typeof t=="number"?`gap-${t}`:"",u=()=>{const p=[];return p.push(`grid-cols-${r}`),n&&p.push(`md:grid-cols-${n}`),p.push(`lg:grid-cols-${e}`),p.join(" ")},f=typeof t=="string"?{gap:t,...s}:s;return l.jsx("div",{ref:d,className:I("grid w-full",c(),u(),i),style:f,...a,children:h.Children.map(o,p=>h.isValidElement(p)?h.cloneElement(p,{...p.props,className:I("w-full",p.props.className)}):p)})});Go.displayName="CardsGrid";const Ho=h.forwardRef(({title:e,description:t,icon:n,iconBackground:r="#e6f8ef",onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:I("bg-white border border-[#ecebf0] rounded-lg p-8 flex flex-col items-center gap-8 w-96",o&&"cursor-pointer hover:shadow-md transition-shadow",i),...s,children:[l.jsx("div",{className:"flex items-center justify-center rounded-lg shrink-0",style:{width:"56px",height:"56px",backgroundColor:r},children:n}),l.jsxs("div",{className:"flex flex-col gap-2 items-center text-center",style:{width:"300px"},children:[l.jsx("h3",{className:"text-2xl leading-8 font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-base leading-5 font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})]})]}));Ho.displayName="FeatureCard";function C(e,t,n){function r(a,d){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,d);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const p=u[f];p in a||(a[p]=c[p].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var d;const c=n?.Parent?new i:this;r(c,a),(d=c._zod).deferred??(d.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Je extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ko extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const $a={};function De(e){return $a}function En(e,t){return typeof t=="bigint"?t.toString():t}function Xn(e){return e==null}function Yn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const _r=Symbol("evaluating");function G(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==_r)return r===void 0&&(r=_r,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pa(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ha(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Xo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rn(e){if(Pr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yo(e){return Rn(e)?{...e}:Array.isArray(e)?[...e]:e}function qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ma(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ga(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function St(e){return typeof e=="string"?e:e?.message}function ze(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=St(e.inst?._zod.def?.error?.(e))??St(t?.error?.(e))??St(n.customError?.(e))??St(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Jn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ht(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const qo=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,En,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Jo=C("$ZodError",qo),Qo=C("$ZodError",qo,{Parent:Error});function va(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function ba(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>r({issues:s}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let s=n,a=0;for(;a<i.path.length;){const d=i.path[a];a===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],a++}}};return r(e),n}const Qn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Je;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Xo(a,o?.callee),a}return s.value},er=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Xo(a,o?.callee),a}return s.value},Ht=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Je;return i.issues.length?{success:!1,error:new(e??Jo)(i.issues.map(s=>ze(s,o,De())))}:{success:!0,data:i.value}},ya=Ht(Qo),Kt=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>ze(s,o,De())))}:{success:!0,data:i.value}},xa=Kt(Qo),wa=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Qn(e)(t,n,o)},Ca=e=>(t,n,r)=>Qn(e)(t,n,r),Sa=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return er(e)(t,n,o)},_a=e=>async(t,n,r)=>er(e)(t,n,r),Pa=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ht(e)(t,n,o)},Na=e=>(t,n,r)=>Ht(e)(t,n,r),Ea=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Kt(e)(t,n,o)},Ra=e=>async(t,n,r)=>Kt(e)(t,n,r),Aa=/^[cC][^\s-]{8,}$/,Ia=/^[0-9a-z]+$/,Oa=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ta=/^[0-9a-vA-V]{20}$/,ka=/^[A-Za-z0-9]{27}$/,ja=/^[a-zA-Z0-9_-]{21}$/,Fa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,La=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Nr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ma=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Da="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function za(){return new RegExp(Da,"u")}const Za=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ba=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ua=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Wa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Va=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ei=/^[A-Za-z0-9_-]*$/,Ga=/^\+(?:[0-9]){6,14}[0-9]$/,ti="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ha=new RegExp(`^${ti}$`);function ni(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ka(e){return new RegExp(`^${ni(e)}$`)}function Xa(e){const t=ni({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${ti}T(?:${r})$`)}const Ya=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},qa=/^[^A-Z]*$/,Ja=/^[^a-z]*$/,xe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qa=C("$ZodCheckMaxLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const s=Jn(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ed=C("$ZodCheckMinLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const s=Jn(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),td=C("$ZodCheckLengthEquals",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const s=Jn(o),a=i>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Xt=C("$ZodCheckStringFormat",(e,t)=>{var n,r;xe.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nd=C("$ZodCheckRegex",(e,t)=>{Xt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rd=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=qa),Xt.init(e,t)}),od=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ja),Xt.init(e,t)}),id=C("$ZodCheckIncludes",(e,t)=>{xe.init(e,t);const n=qn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),sd=C("$ZodCheckStartsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`^${qn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ad=C("$ZodCheckEndsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`.*${qn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),dd=C("$ZodCheckOverwrite",(e,t)=>{xe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),cd={major:4,minor:1,patch:13},se=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=cd;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,d)=>{let c=Ye(s),u;for(const f of a){if(f._zod.def.when){if(!f._zod.def.when(s))continue}else if(c)continue;const p=s.issues.length,m=f._zod.check(s);if(m instanceof Promise&&d?.async===!1)throw new Je;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==p&&(c||(c=Ye(s,p)))});else{if(s.issues.length===p)continue;c||(c=Ye(s,p))}}return u?u.then(()=>s):s},i=(s,a,d)=>{if(Ye(s))return s.aborted=!0,s;const c=o(a,r,d);if(c instanceof Promise){if(d.async===!1)throw new Je;return c.then(u=>e._zod.parse(u,d))}return e._zod.parse(c,d)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const d=e._zod.parse(s,a);if(d instanceof Promise){if(a.async===!1)throw new Je;return d.then(c=>o(c,r,a))}return o(d,r,a)}}e["~standard"]={validate:o=>{try{const i=ya(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return xa(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),tr=C("$ZodString",(e,t)=>{se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ya(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),H=C("$ZodStringFormat",(e,t)=>{Xt.init(e,t),tr.init(e,t)}),ld=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=La),H.init(e,t)}),ud=C("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Nr(r))}else t.pattern??(t.pattern=Nr());H.init(e,t)}),fd=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ma),H.init(e,t)}),$d=C("$ZodURL",(e,t)=>{H.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),pd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=za()),H.init(e,t)}),hd=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ja),H.init(e,t)}),md=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Aa),H.init(e,t)}),gd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ia),H.init(e,t)}),vd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Oa),H.init(e,t)}),bd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ta),H.init(e,t)}),yd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ka),H.init(e,t)}),xd=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xa(t)),H.init(e,t)}),wd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ha),H.init(e,t)}),Cd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ka(t)),H.init(e,t)}),Sd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Fa),H.init(e,t)}),_d=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Za),H.init(e,t),e._zod.bag.format="ipv4"}),Pd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ba),H.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Nd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ua),H.init(e,t)}),Ed=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Wa),H.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ri(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Rd=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Va),H.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ri(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ad(e){if(!ei.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ri(n)}const Id=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ei),H.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ad(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Od=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ga),H.init(e,t)});function Td(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const kd=C("$ZodJWT",(e,t)=>{H.init(e,t),e._zod.check=n=>{Td(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}});function Er(e,t,n){e.issues.length&&t.issues.push(...ga(n,e.issues)),t.value[n]=e.value}const jd=C("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],d=t.element._zod.run({value:a,issues:[]},r);d instanceof Promise?i.push(d.then(c=>Er(c,n,s))):Er(d,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Rr(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Ye(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ze(s,r,De())))}),t)}const Fd=C("$ZodUnion",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),G(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),G(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),G(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Yn(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let s=!1;const a=[];for(const d of t.options){const c=d._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(d=>Rr(d,o,e,i)):Rr(a,o,e,i)}}),Ld=C("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([d,c])=>Ar(n,d,c)):Ar(n,i,s)}});function An(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Rn(e)&&Rn(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const s=An(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=An(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ar(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Ye(e))return e;const r=An(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Md=C("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ko(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new Je;return n.value=o,n}});function Ir(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Dd=C("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Ir(i,n.value)):Ir(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),zd=C("$ZodNullable",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(n.source)}|null)$`):void 0}),G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Zd=C("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Or(i,t)):Or(o,t)}});function Or(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Bd=C("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ud=C("$ZodNonOptional",(e,t)=>{se.init(e,t),G(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Tr(i,e)):Tr(o,e)}});function Tr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Wd=C("$ZodCatch",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>ze(s,r,De()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>ze(i,r,De()))},input:n.value}),n.issues=[]),n)}}),Vd=C("$ZodPipe",(e,t)=>{se.init(e,t),G(e._zod,"values",()=>t.in._zod.values),G(e._zod,"optin",()=>t.in._zod.optin),G(e._zod,"optout",()=>t.out._zod.optout),G(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>_t(s,t.in,r)):_t(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>_t(i,t.out,r)):_t(o,t.out,r)}});function _t(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Gd=C("$ZodReadonly",(e,t)=>{se.init(e,t),G(e._zod,"propValues",()=>t.innerType._zod.propValues),G(e._zod,"values",()=>t.innerType._zod.values),G(e._zod,"optin",()=>t.innerType?._zod?.optin),G(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(kr):kr(o)}});function kr(e){return e.value=Object.freeze(e.value),e}const Hd=C("$ZodCustom",(e,t)=>{xe.init(e,t),se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>jr(i,n,r,e));jr(o,n,r,e)}});function jr(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(ht(o))}}var Fr;class Kd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Xd(){return new Kd}(Fr=globalThis).__zod_globalRegistry??(Fr.__zod_globalRegistry=Xd());const Pt=globalThis.__zod_globalRegistry;function Yd(e,t){return new e({type:"string",...j(t)})}function qd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Lr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function Jd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function Qd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function nc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function rc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function oc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function ic(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function sc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function ac(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function dc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function cc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function lc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function uc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function fc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function $c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function pc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function hc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function mc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function gc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function vc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function bc(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function yc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function xc(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function oi(e,t){return new Qa({check:"max_length",...j(t),maximum:e})}function Lt(e,t){return new ed({check:"min_length",...j(t),minimum:e})}function ii(e,t){return new td({check:"length_equals",...j(t),length:e})}function wc(e,t){return new nd({check:"string_format",format:"regex",...j(t),pattern:e})}function Cc(e){return new rd({check:"string_format",format:"lowercase",...j(e)})}function Sc(e){return new od({check:"string_format",format:"uppercase",...j(e)})}function _c(e,t){return new id({check:"string_format",format:"includes",...j(t),includes:e})}function Pc(e,t){return new sd({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Nc(e,t){return new ad({check:"string_format",format:"ends_with",...j(t),suffix:e})}function it(e){return new dd({check:"overwrite",tx:e})}function Ec(e){return it(t=>t.normalize(e))}function Rc(){return it(e=>e.trim())}function Ac(){return it(e=>e.toLowerCase())}function Ic(){return it(e=>e.toUpperCase())}function Oc(){return it(e=>ha(e))}function Tc(e,t,n){return new e({type:"array",element:t,...j(n)})}function kc(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function jc(e){const t=Fc(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ht(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(ht(o))}},e(n.value,n)));return t}function Fc(e,t){const n=new xe({check:"custom",...j(t)});return n._zod.check=e,n}const Lc=C("ZodISODateTime",(e,t)=>{xd.init(e,t),K.init(e,t)});function Mc(e){return vc(Lc,e)}const Dc=C("ZodISODate",(e,t)=>{wd.init(e,t),K.init(e,t)});function zc(e){return bc(Dc,e)}const Zc=C("ZodISOTime",(e,t)=>{Cd.init(e,t),K.init(e,t)});function Bc(e){return yc(Zc,e)}const Uc=C("ZodISODuration",(e,t)=>{Sd.init(e,t),K.init(e,t)});function Wc(e){return xc(Uc,e)}const Vc=(e,t)=>{Jo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ba(e,n)},flatten:{value:n=>va(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,En,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,En,2)}},isEmpty:{get(){return e.issues.length===0}}})},fe=C("ZodError",Vc,{Parent:Error}),Gc=Qn(fe),Hc=er(fe),Kc=Ht(fe),Xc=Kt(fe),Yc=wa(fe),qc=Ca(fe),Jc=Sa(fe),Qc=_a(fe),el=Pa(fe),tl=Na(fe),nl=Ea(fe),rl=Ra(fe),de=C("ZodType",(e,t)=>(se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(pa(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>ma(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Gc(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Kc(e,n,r),e.parseAsync=async(n,r)=>Hc(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Xc(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Yc(e,n,r),e.decode=(n,r)=>qc(e,n,r),e.encodeAsync=async(n,r)=>Jc(e,n,r),e.decodeAsync=async(n,r)=>Qc(e,n,r),e.safeEncode=(n,r)=>el(e,n,r),e.safeDecode=(n,r)=>tl(e,n,r),e.safeEncodeAsync=async(n,r)=>nl(e,n,r),e.safeDecodeAsync=async(n,r)=>rl(e,n,r),e.refine=(n,r)=>e.check(Wl(n,r)),e.superRefine=n=>e.check(Vl(n)),e.overwrite=n=>e.check(it(n)),e.optional=()=>Dr(e),e.nullable=()=>zr(e),e.nullish=()=>Dr(zr(e)),e.nonoptional=n=>Ll(e,n),e.array=()=>Cl(e),e.or=n=>_l([e,n]),e.and=n=>Nl(e,n),e.transform=n=>Zr(e,Rl(n)),e.default=n=>Tl(e,n),e.prefault=n=>jl(e,n),e.catch=n=>Dl(e,n),e.pipe=n=>Zr(e,n),e.readonly=()=>Bl(e),e.describe=n=>{const r=e.clone();return Pt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Pt.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Pt.get(e);const r=e.clone();return Pt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),si=C("_ZodString",(e,t)=>{tr.init(e,t),de.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(wc(...r)),e.includes=(...r)=>e.check(_c(...r)),e.startsWith=(...r)=>e.check(Pc(...r)),e.endsWith=(...r)=>e.check(Nc(...r)),e.min=(...r)=>e.check(Lt(...r)),e.max=(...r)=>e.check(oi(...r)),e.length=(...r)=>e.check(ii(...r)),e.nonempty=(...r)=>e.check(Lt(1,...r)),e.lowercase=r=>e.check(Cc(r)),e.uppercase=r=>e.check(Sc(r)),e.trim=()=>e.check(Rc()),e.normalize=(...r)=>e.check(Ec(...r)),e.toLowerCase=()=>e.check(Ac()),e.toUpperCase=()=>e.check(Ic()),e.slugify=()=>e.check(Oc())}),ol=C("ZodString",(e,t)=>{tr.init(e,t),si.init(e,t),e.email=n=>e.check(qd(il,n)),e.url=n=>e.check(nc(sl,n)),e.jwt=n=>e.check(gc(xl,n)),e.emoji=n=>e.check(rc(al,n)),e.guid=n=>e.check(Lr(Mr,n)),e.uuid=n=>e.check(Jd(Et,n)),e.uuidv4=n=>e.check(Qd(Et,n)),e.uuidv6=n=>e.check(ec(Et,n)),e.uuidv7=n=>e.check(tc(Et,n)),e.nanoid=n=>e.check(oc(dl,n)),e.guid=n=>e.check(Lr(Mr,n)),e.cuid=n=>e.check(ic(cl,n)),e.cuid2=n=>e.check(sc(ll,n)),e.ulid=n=>e.check(ac(ul,n)),e.base64=n=>e.check(pc(vl,n)),e.base64url=n=>e.check(hc(bl,n)),e.xid=n=>e.check(dc(fl,n)),e.ksuid=n=>e.check(cc($l,n)),e.ipv4=n=>e.check(lc(pl,n)),e.ipv6=n=>e.check(uc(hl,n)),e.cidrv4=n=>e.check(fc(ml,n)),e.cidrv6=n=>e.check($c(gl,n)),e.e164=n=>e.check(mc(yl,n)),e.datetime=n=>e.check(Mc(n)),e.date=n=>e.check(zc(n)),e.time=n=>e.check(Bc(n)),e.duration=n=>e.check(Wc(n))});function Nt(e){return Yd(ol,e)}const K=C("ZodStringFormat",(e,t)=>{H.init(e,t),si.init(e,t)}),il=C("ZodEmail",(e,t)=>{fd.init(e,t),K.init(e,t)}),Mr=C("ZodGUID",(e,t)=>{ld.init(e,t),K.init(e,t)}),Et=C("ZodUUID",(e,t)=>{ud.init(e,t),K.init(e,t)}),sl=C("ZodURL",(e,t)=>{$d.init(e,t),K.init(e,t)}),al=C("ZodEmoji",(e,t)=>{pd.init(e,t),K.init(e,t)}),dl=C("ZodNanoID",(e,t)=>{hd.init(e,t),K.init(e,t)}),cl=C("ZodCUID",(e,t)=>{md.init(e,t),K.init(e,t)}),ll=C("ZodCUID2",(e,t)=>{gd.init(e,t),K.init(e,t)}),ul=C("ZodULID",(e,t)=>{vd.init(e,t),K.init(e,t)}),fl=C("ZodXID",(e,t)=>{bd.init(e,t),K.init(e,t)}),$l=C("ZodKSUID",(e,t)=>{yd.init(e,t),K.init(e,t)}),pl=C("ZodIPv4",(e,t)=>{_d.init(e,t),K.init(e,t)}),hl=C("ZodIPv6",(e,t)=>{Pd.init(e,t),K.init(e,t)}),ml=C("ZodCIDRv4",(e,t)=>{Nd.init(e,t),K.init(e,t)}),gl=C("ZodCIDRv6",(e,t)=>{Ed.init(e,t),K.init(e,t)}),vl=C("ZodBase64",(e,t)=>{Rd.init(e,t),K.init(e,t)}),bl=C("ZodBase64URL",(e,t)=>{Id.init(e,t),K.init(e,t)}),yl=C("ZodE164",(e,t)=>{Od.init(e,t),K.init(e,t)}),xl=C("ZodJWT",(e,t)=>{kd.init(e,t),K.init(e,t)}),wl=C("ZodArray",(e,t)=>{jd.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Lt(n,r)),e.nonempty=n=>e.check(Lt(1,n)),e.max=(n,r)=>e.check(oi(n,r)),e.length=(n,r)=>e.check(ii(n,r)),e.unwrap=()=>e.element});function Cl(e,t){return Tc(wl,e,t)}const Sl=C("ZodUnion",(e,t)=>{Fd.init(e,t),de.init(e,t),e.options=t.options});function _l(e,t){return new Sl({type:"union",options:e,...j(t)})}const Pl=C("ZodIntersection",(e,t)=>{Ld.init(e,t),de.init(e,t)});function Nl(e,t){return new Pl({type:"intersection",left:e,right:t})}const El=C("ZodTransform",(e,t)=>{Md.init(e,t),de.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ko(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ht(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ht(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Rl(e){return new El({type:"transform",transform:e})}const Al=C("ZodOptional",(e,t)=>{Dd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dr(e){return new Al({type:"optional",innerType:e})}const Il=C("ZodNullable",(e,t)=>{zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Il({type:"nullable",innerType:e})}const Ol=C("ZodDefault",(e,t)=>{Zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Tl(e,t){return new Ol({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yo(t)}})}const kl=C("ZodPrefault",(e,t)=>{Bd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jl(e,t){return new kl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yo(t)}})}const Fl=C("ZodNonOptional",(e,t)=>{Ud.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Fl({type:"nonoptional",innerType:e,...j(t)})}const Ml=C("ZodCatch",(e,t)=>{Wd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Dl(e,t){return new Ml({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const zl=C("ZodPipe",(e,t)=>{Vd.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Zr(e,t){return new zl({type:"pipe",in:e,out:t})}const Zl=C("ZodReadonly",(e,t)=>{Gd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bl(e){return new Zl({type:"readonly",innerType:e})}const Ul=C("ZodCustom",(e,t)=>{Hd.init(e,t),de.init(e,t)});function Wl(e,t={}){return kc(Ul,e,t)}function Vl(e){return jc(e)}const Gl={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]|33|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",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,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{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?: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,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?: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-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|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]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],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 Hl(e,t){var n=Array.prototype.slice.call(t);return n.push(Gl),e.apply(this,n)}function Br(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return 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 Kl={}.constructor;function Qe(e){return e!=null&&e.constructor===Kl}function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(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,Yl(r.key),r)}}function qt(e,t,n){return t&&Xl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yl(e){var t=ql(e,"string");return nt(t)=="symbol"?t:t+""}function ql(e,t){if(nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jl="1.2.0",Ql="1.7.35",Ur=" ext. ",eu=/^\d+$/,oe=(function(){function e(t){Yt(this,e),ai(t),this.metadata=t,di.call(this,t)}return qt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&eu.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Wr(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Wr(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Wr=(function(){function e(t,n){Yt(this,e),this.globalMetadataObject=n,this.metadata=t,di.call(this,n.metadata)}return qt(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(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(o){return new tu(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Vr(this.types(),n))return new ru(Vr(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ur:this.metadata[13]||Ur}}])})(),tu=(function(){function e(t,n){Yt(this,e),this._format=t,this.metadata=n}return qt(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()&&!nu.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),nu=/^\(?\$1\)?$/,ru=(function(){function e(t,n){Yt(this,e),this.type=t,this.metadata=n}return qt(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 Vr(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 ai(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Qe(e)||!Qe(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ou(e)+": "+e,"."))}var ou=function(t){return nt(t)};function nr(e,t){if(t=new oe(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function di(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?Br(t,Jl)===-1?this.v2=!0:Br(t,Ql)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function rr(e,t,n){return iu(e,t,void 0,n)}function iu(e,t,n,r){t&&(r=new oe(r.metadata),r.selectNumberingPlan(t));var o=r.type(n),i=o&&o.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var s=e.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function su(e,t,n){if(t===void 0&&(t={}),n=new oe(n),t.v2){if(!e.countryCallingCode)throw new 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 new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return ci(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ci(e,t,n){switch(rr(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Se(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function au(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=du(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function du(e,t){if(e){if(typeof e=="string")return Gr(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)?Gr(e,t):void 0}}function Gr(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 cu=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function or(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Se(r,n.nationalNumberPattern())){if(pn(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||pn(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=au(cu),i;!(i=o()).done;){var s=i.value;if(pn(r,s,n))return s}}}}function pn(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Se(e,t.pattern())}function lu(e,t,n){if(t=t||{},n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return or(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return Se(r,n.nationalNumberPattern())}function uu(e,t,n){var r=new oe(n),o=r.getCountryCodesForCallingCode(e);return o?o.filter(function(i){return fu(t,i,n)}):[]}function fu(e,t,n){var r=new oe(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ir=2,$u=17,pu=3,pe="0-90-9٠-٩۰-۹",hu="-‐-―−ー-",mu="//",gu="..",vu="  ­​⁠ ",bu="()()[]\\[\\]",yu="~⁓∼~",Mt="".concat(hu).concat(mu).concat(gu).concat(vu).concat(bu).concat(yu),sr="++",xu=new RegExp("(["+pe+"])");function wu(e,t,n,r){if(t){var o=new oe(r);o.selectNumberingPlan(t,n);var i=new RegExp(o.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(xu);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function Cu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,i,s=r.length-1,a=s>0&&r[s];if(t.nationalPrefixTransformRule()&&a)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var d=r[0];o=e.slice(d.length),a&&(i=r[1])}var c;if(a){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(c=t.numberingPlan.nationalPrefix())}else c=r[0];return{nationalNumber:o,nationalPrefix:c,carrierCode:i}}}return{nationalNumber:e}}function Su(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=_u(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _u(e,t){if(e){if(typeof e=="string")return Hr(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)?Hr(e,t):void 0}}function Hr(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 Pu(e,t){var n=t.countries,r=t.metadata;r=new oe(r);for(var o=Su(n),i;!(i=o()).done;){var s=i.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return s}else if(or({phone:e,country:s},void 0,r.metadata))return s}}function li(e,t){var n=t.nationalNumber,r=t.metadata,o=r.getCountryCodesForCallingCode(e);if(o)return o.length===1?o[0]:Pu(n,{countries:o,metadata:r.metadata})}function In(e,t,n){var r=Cu(e,n),o=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!Nu(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=li(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!Eu(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:o}}function Nu(e,t,n){return!(Se(e,n.nationalNumberPattern())&&!Se(t,n.nationalNumberPattern()))}function Eu(e,t,n){switch(rr(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Ru(e,t,n,r,o){var i=n?nr(n,o):r;if(e.indexOf(i)===0){o=new oe(o),o.selectNumberingPlan(n,i);var s=e.slice(i.length),a=In(s,t,o),d=a.nationalNumber,c=In(e,t,o),u=c.nationalNumber;if(!Se(u,o.nationalNumberPattern())&&Se(d,o.nationalNumberPattern())||rr(u,t,o)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function ui(e,t,n,r,o){if(!e)return{};var i;if(e[0]!=="+"){var s=wu(e,n,r,o);if(s&&s!==e)i=!0,e="+"+s;else{if(n||r){var a=Ru(e,t,n,r,o),d=a.countryCallingCode,c=a.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:e}}}if(e[1]==="0")return{};o=new oe(o);for(var u=2;u-1<=pu&&u<=e.length;){var f=e.slice(1,u);if(o.hasCallingCode(f))return o.selectNumberingPlan(f),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(u)};u++}return{}}function Au(e){return e.replace(new RegExp("[".concat(Mt,"]+"),"g")," ").trim()}var Iu=/(\$\d)/;function Ou(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Iu,t.nationalPrefixFormattingRule()):t.format());return r?Au(i):i}var Tu=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ku(e,t,n){var r=new oe(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Tu.test(r.IDDPrefix()))return r.IDDPrefix()}var ju=";ext=",Ge=function(t){return"([".concat(pe,"]{1,").concat(t,"})")};function fi(e){var t="20",n="15",r="9",o="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",a="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",u="[- ]+",f="[  \\t]*",p="(?:,{2}|;)",m=ju+Ge(t),v=i+d+s+Ge(t)+a,$=i+c+s+Ge(r)+a,g=u+Ge(o)+"#",b=f+p+s+Ge(n)+a,y=f+"(?:,)+"+s+Ge(r)+a;return m+"|"+v+"|"+$+"|"+g+"|"+b+"|"+y}var Fu="["+pe+"]{"+ir+"}",Lu="["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){3,}["+Mt+pe+"]*",Mu=new RegExp("^["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){1,2}$","i"),Du=Lu+"(?:"+fi()+")?",zu=new RegExp("^"+Fu+"$|^"+Du+"$","i");function Zu(e){return e.length>=ir&&zu.test(e)}function Bu(e){return Mu.test(e)}function Uu(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Kr={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Wu(e,t,n,r){if(n?n=Hu({},Kr,n):n=Kr,r=new oe(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var o=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Dt(i,e.carrierCode,"NATIONAL",r,n),hn(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=Dt(i,null,"INTERNATIONAL",r,n),s="+".concat(o," ").concat(s),hn(s,e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return Uu({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=Gu(i,e.carrierCode,o,n.fromCountry,r);return hn(a,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Dt(e,t,n,r,o){var i=Vu(r.formats(),e);return i?Ou(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1)}):e}function Vu(e,t){return Ku(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Se(t,n.pattern())})}function hn(e,t,n,r){return t?r(e,t,n):e}function Gu(e,t,n,r,o){var i=nr(r,o.metadata);if(i===n){var s=Dt(e,t,"NATIONAL",o);return n==="1"?n+" "+s:s}var a=ku(r,void 0,o.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Dt(e,null,"INTERNATIONAL",o))}function Hu(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var o in n[e])n[0][o]=n[e][o];e++}return n[0]}function Ku(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(r){Xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xu(e,t,n){return(t=$i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qu(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,$i(r.key),r)}}function Ju(e,t,n){return t&&qu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $i(e){var t=Qu(e,"string");return mt(t)=="symbol"?t:t+""}function Qu(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var e0=(function(){function e(t,n,r){if(Yu(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Qe(n)&&Qe(n.countries)){r=n;var o=t;if(!r0.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=ui(o,void 0,void 0,void 0,r),s=i.countryCallingCode,a=i.number;if(n=a,t=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");ai(r);var d=n0(t,r),c=d.country,u=d.countryCallingCode;this.country=c,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Ju(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:uu(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return su(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return lu(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new oe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return or(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Wu(this,n,r?Yr(Yr({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),t0=function(t){return/^[A-Z]{2}$/.test(t)};function n0(e,t){var n,r,o=new oe(t);return t0(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var r0=/^\+\d+$/;function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function o0(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function i0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s0(e,t,n){return t=vt(t),a0(e,ar()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function a0(e,t){if(t&&(On(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d0(e)}function d0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(e,t){if(typeof t!="function"&&t!==null)throw new 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&&gt(e,t)}function Tn(e){var t=typeof Map=="function"?new Map:void 0;return Tn=function(r){if(r===null||!u0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return l0(r,arguments,vt(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gt(o,r)},Tn(e)}function l0(e,t,n){if(ar())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&gt(o,n.prototype),o}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ar=function(){return!!e})()}function u0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gt(e,t)}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vt(e)}var Ie=(function(e){function t(n){var r;return i0(this,t),r=s0(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return c0(t,e),o0(t)})(Tn(Error)),qr=new RegExp("(?:"+fi()+")$","i");function f0(e){var t=e.search(qr);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(qr),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}var $0={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 p0(e){return $0[e]}function h0(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=m0(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m0(e,t){if(e){if(typeof e=="string")return Jr(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)?Jr(e,t):void 0}}function Jr(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 Qr(e){for(var t="",n=h0(e.split("")),r;!(r=n()).done;){var o=r.value;t+=g0(o,t)||""}return t}function g0(e,t,n){return e==="+"?t?void 0:"+":p0(e)}var pi="+",v0="[\\-\\.\\(\\)]?",eo="(["+pe+"]|"+v0+")",b0="^\\"+pi+eo+"*["+pe+"]"+eo+"*$",y0=new RegExp(b0,"g"),kn=pe,x0="["+kn+"]+((\\-)*["+kn+"])*",w0="a-zA-Z",C0="["+w0+"]+((\\-)*["+kn+"])*",S0="^("+x0+"\\.)*"+C0+"\\.?$",_0=new RegExp(S0,"g"),to="tel:",jn=";phone-context=",P0=";isub=";function N0(e){var t=e.indexOf(jn);if(t<0)return null;var n=t+jn.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function E0(e){return e===null?!0:e.length===0?!1:y0.test(e)||_0.test(e)}function R0(e,t){var n=t.extractFormattedPhoneNumber,r=N0(e);if(!E0(r))throw new Ie("NOT_A_NUMBER");var o;if(r===null)o=n(e)||"";else{o="",r.charAt(0)===pi&&(o+=r);var i=e.indexOf(to),s;i>=0?s=i+to.length:s=0;var a=e.indexOf(jn);o+=e.substring(s,a)}var d=o.indexOf(P0);if(d>0&&(o=o.substring(0,d)),o!=="")return o}var A0=250,I0=new RegExp("["+sr+pe+"]"),O0=new RegExp("[^"+pe+"#]+$");function T0(e,t,n){if(t=t||{},n=new oe(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ie("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=j0(e,t.v2,t.extract),o=r.number,i=r.ext,s=r.error;if(!o){if(t.v2)throw s==="TOO_SHORT"?new Ie("TOO_SHORT"):new Ie("NOT_A_NUMBER");return{}}var a=L0(o,t.defaultCountry,t.defaultCallingCode,n),d=a.country,c=a.nationalNumber,u=a.countryCallingCode,f=a.countryCallingCodeSource,p=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ie("INVALID_COUNTRY");return{}}if(!c||c.length<ir){if(t.v2)throw new Ie("TOO_SHORT");return{}}if(c.length>$u){if(t.v2)throw new Ie("TOO_LONG");return{}}if(t.v2){var m=new e0(u,c,n.metadata);return d&&(m.country=d),p&&(m.carrierCode=p),i&&(m.ext=i),m.__countryCallingCodeSource=f,m}var v=(t.extended?n.hasSelectedNumberingPlan():d)?Se(c,n.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:u,carrierCode:p,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&ci(c,d,n)),phone:c,ext:i}:v?F0(d,c,i):{}}function k0(e,t,n){if(e){if(e.length>A0){if(n)throw new Ie("TOO_LONG");return}if(t===!1)return e;var r=e.search(I0);if(!(r<0))return e.slice(r).replace(O0,"")}}function j0(e,t,n){var r=R0(e,{extractFormattedPhoneNumber:function(s){return k0(s,n,t)}});if(!r)return{};if(!Zu(r))return Bu(r)?{error:"TOO_SHORT"}:{};var o=f0(r);return o.ext?o:{number:r}}function F0(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function L0(e,t,n,r){var o=ui(Qr(e),void 0,t,n,r.metadata),i=o.countryCallingCodeSource,s=o.countryCallingCode,a=o.number,d;if(s)r.selectNumberingPlan(s);else if(a&&(t||n))r.selectNumberingPlan(t,n),t&&(d=t),s=n||nr(t,r.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:s};var c=In(Qr(a),d,r),u=c.nationalNumber,f=c.carrierCode,p=li(s,{nationalNumber:u,metadata:r});return p&&(d=p,p==="001"||r.selectNumberingPlan(d)),{country:d,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:u,carrierCode:f}}function bt(e){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(e)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(r){M0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M0(e,t,n){return(t=D0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D0(e){var t=z0(e,"string");return bt(t)=="symbol"?t:t+""}function z0(e,t){if(bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z0(e,t,n){return T0(e,ro(ro({},t),{},{v2:!0}),n)}function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(r){U0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0(e,t,n){return(t=W0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W0(e){var t=V0(e,"string");return yt(t)=="symbol"?t:t+""}function V0(e,t){if(yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G0(e,t){return Y0(e)||X0(e,t)||K0(e,t)||H0()}function H0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K0(e,t){if(e){if(typeof e=="string")return io(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)?io(e,t):void 0}}function io(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 X0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],d=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(d=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);d=!0);}catch(u){c=!0,o=u}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function Y0(e){if(Array.isArray(e))return e}function q0(e){var t=Array.prototype.slice.call(e),n=G0(t,4),r=n[0],o=n[1],i=n[2],s=n[3],a,d,c;if(typeof r=="string")a=r;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")s?(d=i,c=s):(d=void 0,c=i),o&&(d=B0({defaultCountry:o},d));else if(Qe(o))i?(d=o,c=i):c=o;else throw new Error("Invalid second argument: ".concat(o));return{text:a,options:d,metadata:c}}function J0(){var e=q0(arguments),t=e.text,n=e.options,r=e.metadata;return Z0(t,n,r)}function Q0(){return Hl(J0,arguments)}const mn=(e,t)=>{if(!t)return null;if(t.required&&!e)return typeof t.required=="string"?t.required:"This field is required";if(!e)return null;if(t.email&&!Nt().email().safeParse(e).success)return typeof t.email=="string"?t.email:"Please enter a valid email address";if(t.number&&!Nt().regex(/^-?\d*\.?\d+$/).safeParse(e).success)return typeof t.number=="string"?t.number:"Please enter a valid number";if(t.phone)try{const n=Q0(e,t.phone.country);if(!n||!n.isValid())return t.phone.message||`Please enter a valid phone number${t.phone.country?` for ${t.phone.country}`:""}`}catch{return t.phone.message||"Please enter a valid phone number"}return t.minLength&&!Nt().min(t.minLength.value).safeParse(e).success?t.minLength.message||`Must be at least ${t.minLength.value} characters`:t.maxLength&&!Nt().max(t.maxLength.value).safeParse(e).success?t.maxLength.message||`Must be at most ${t.maxLength.value} characters`:t.regex&&!t.regex.pattern.test(e)?t.regex.message||"Invalid format":null},hi=te.forwardRef(({value:e="",onChange:t,disabled:n=!1,error:r,placeholder:o,type:i="text",className:s,showPasswordToggle:a=!1,validation:d,validateOnChange:c=!0,validateOnBlur:u=!0,...f},p)=>{const[m,v]=te.useState(!1),[$,g]=te.useState(!1),[b,y]=te.useState(null),x=!!r||!!b,w=typeof r=="string"?r:b,S=i==="password"&&a,P=S&&$?"text":i;te.useEffect(()=>{if(e&&d){const A=mn(e,d);y(A)}},[]);const _=A=>{const Z=A.target.value;if(t&&t(Z),c&&d){const T=mn(Z,d);y(T)}},O=A=>{v(!0),f.onFocus&&f.onFocus(A)},L=A=>{if(v(!1),u&&d){const Z=mn(A.target.value,d);y(Z)}f.onBlur&&f.onBlur(A)},F=()=>{g(!$)},z=I("flex items-center gap-2","w-full h-12","px-4 py-2","rounded","text-base leading-[18px]","border transition-colors",n&&"bg-[#f4f4f4] cursor-not-allowed",!n&&"bg-white",x&&!n&&"border-[#ff305f]",!x&&m&&!n&&"border-[#a29fba]",!x&&!m&&"border-[#ecebf0]",s),N=I("flex-1 w-full h-full","bg-transparent border-none outline-none","text-[#312e4d] text-base leading-[18px]","placeholder:text-[#7d79a0]",n&&"text-[#a29fba] cursor-not-allowed",n&&"placeholder:text-[#a29fba]"),M=I("flex items-center justify-center","w-5 h-5 shrink-0","text-[#312e4d]","cursor-pointer hover:opacity-70 transition-opacity",n&&"cursor-not-allowed opacity-50");return l.jsxs("div",{className:"w-full",children:[l.jsxs("div",{className:z,"data-testid":"input-container",children:[l.jsx("input",{ref:p,type:P,value:e,onChange:_,onFocus:O,onBlur:L,disabled:n,placeholder:o,className:N,"data-testid":"input","aria-invalid":x,"aria-disabled":n,...f}),S&&l.jsx("button",{type:"button",onClick:F,disabled:n,className:M,"data-testid":"password-toggle","aria-label":$?"Hide password":"Show password",tabIndex:-1,children:$?l.jsx(re.EyeOff,{size:20}):l.jsx(re.Eye,{size:20})})]}),w&&l.jsx("p",{className:"mt-1 text-sm text-[#ff305f]","data-testid":"input-error",role:"alert",children:w})]})});hi.displayName="Input";const mi=h.forwardRef(({icon:e,primaryText:t,primaryTextColor:n="#312e4d",secondaryText:r,secondaryTextColor:o="#575385",rightIcon:i,className:s,...a},d)=>l.jsxs("div",{ref:d,className:I("flex items-center justify-between w-full",s),...a,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("div",{className:"shrink-0",children:e}),l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:n},children:t}),r&&l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:o},children:r})]}),i&&l.jsx("div",{className:"shrink-0",children:i})]}));mi.displayName="KPIComparisonCustom";const e1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 3L6.5 7.5L4 5L1 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 3H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),t1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 9L6.5 4.5L4 7L1 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 9H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),n1=({className:e})=>l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("circle",{cx:"8",cy:"8",r:"6.375",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("path",{d:"M8 4.5V8.5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),l.jsx("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor"})]}),dr=h.forwardRef(({percentage:e,trend:t,label:n="KPI comparison",showWarning:r=!1,className:o,...i},s)=>{const a=t==="positive",d=e>0?`+${e.toFixed(1)}%`:`${e.toFixed(1)}%`;return l.jsxs("div",{ref:s,className:I("flex items-center justify-between w-full",o),...i,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[a?l.jsx(e1,{className:"text-[#00995a] shrink-0"}):l.jsx(t1,{className:"text-[#d4002c] shrink-0"}),l.jsx("span",{className:I("text-xs leading-[14px] font-normal whitespace-nowrap",a?"text-[#00995a]":"text-[#d4002c]"),style:{fontFamily:"Causten Round, sans-serif"},children:d}),l.jsx("span",{className:"text-xs leading-[14px] font-normal text-[#575385] whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx(n1,{className:"text-[#d4002c] shrink-0"})]})});dr.displayName="KPIComparison";const so={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"},yellow:{bg:"#fff9e6",border:"#ffd966",text:"#cc8800"}},gi=h.forwardRef(({title:e,content:t,description:n,footer:r,tag:o,icon:i,onClick:s,className:a,...d},c)=>{const u=o?so[o.variant||"default"]:so.default;return l.jsxs("div",{ref:c,onClick:s,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",s&&"cursor-pointer hover:shadow-md transition-shadow",a),...d,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),o&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:u.bg,borderColor:u.border,color:u.text,fontFamily:"Causten Round, sans-serif"},children:o.label})]}),l.jsx("div",{className:"min-w-0",children:t}),n&&l.jsx("div",{className:"min-w-0",children:n}),r&&l.jsx("div",{className:"min-w-0",children:r})]})]})});gi.displayName="KPICardCustom";const r1=({color:e="#312e4d"})=>l.jsx(re.TriangleAlert,{size:32,color:e,strokeWidth:2}),vi=h.forwardRef(({title:e,value:t,unit:n="%",total:r,description:o,comparison:i,tag:s,icon:a,iconColor:d="primary",bodyText:c,button:u,onClick:f,className:p,...m},v)=>{const $={primary:"#312e4d",error:"#d4002c",brand:"#00995a"},b={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"}}[s?.variant||"default"];return l.jsxs("div",{ref:v,onClick:f,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",f&&"cursor-pointer hover:shadow-md transition-shadow",p),...m,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:a||l.jsx(r1,{color:$[d]})}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),s&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:b.bg,borderColor:b.border,color:b.text,fontFamily:"Causten Round, sans-serif"},children:s.label})]}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r!==void 0?l.jsxs("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:["/",r]}):n?l.jsx("span",{className:"text-xs leading-[18px] font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:n}):null,o&&l.jsx("span",{className:"text-sm leading-[18px] font-normal text-[#575385] flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-right",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),c&&l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:c}),i&&l.jsx(dr,{percentage:i.percentage,trend:i.trend,label:i.label,showWarning:i.showWarning}),u&&l.jsx("button",{onClick:y=>{y.stopPropagation(),u.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] text-left self-start hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:u.label})]})]})});vi.displayName="KPICard";const bi=h.forwardRef(({type:e="spinner",show:t=!0,variant:n="active",size:r=48,width:o=230,className:i,...s},a)=>{if(!t)return null;const c={active:"#00b56b",disabled:"#a29fba"}[n];return e==="spinner"?l.jsxs("div",{ref:a,className:I("inline-flex items-center justify-center",i),role:"status","aria-label":"Cargando",...s,children:[l.jsx("div",{className:"rounded-full animate-spin",style:{width:r,height:r,border:"4px solid transparent",borderTopColor:c,borderRightColor:c}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]}):l.jsxs("div",{ref:a,className:I("relative overflow-hidden rounded-full bg-gray-200",i),style:{width:o,height:8},role:"progressbar","aria-label":"Cargando","aria-valuemin":0,"aria-valuemax":100,...s,children:[l.jsx("div",{className:"absolute top-0 left-0 h-full rounded-full",style:{backgroundColor:c,animation:"linear-progress 1.5s ease-in-out infinite"}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]})});bi.displayName="Loader";const yi=h.forwardRef(({title:e,description:t,value:n,selected:r=!1,onSelect:o,disabled:i,className:s,...a},d)=>{const c=()=>{!i&&o&&o(n)};return l.jsxs("div",{ref:d,onClick:c,className:I("bg-white border border-solid rounded-xl p-4 flex flex-col gap-1 transition-all cursor-pointer",r?"border-[#00b56b]":"border-[#ecebf0]",i&&"opacity-50 cursor-not-allowed",!i&&"hover:shadow-sm",s),...a,children:[l.jsxs("div",{className:"flex gap-3 items-center h-6",children:[l.jsx("div",{className:"flex items-center justify-center shrink-0 w-6 h-6",children:l.jsx("div",{className:I("w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors",r?"border-[#00995a]":"border-[#a29fba]"),children:r&&l.jsx("div",{className:"w-3 h-3 rounded-full bg-[#00995a]"})})}),l.jsx("h3",{className:"text-base leading-5 font-medium text-[#312e4d] flex-1",style:{fontFamily:"Causten Round, sans-serif"},children:e})]}),l.jsx("div",{className:"pl-9",children:l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})})]})});yi.displayName="OptionCard";const ao={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"}},xi=h.forwardRef(({title:e,count:t,countLabel:n="orders",infoLine1:r,infoLine2:o,icon:i,badge:s,button:a,className:d,...c},u)=>{const f=s?ao[s.variant||"default"]:ao.default;return l.jsxs("div",{ref:u,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",d),...c,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:r}),o&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pb-[33px]",children:[s&&l.jsx("button",{onClick:p=>{p.stopPropagation(),s.onClick?.()},disabled:!s.onClick,className:I("px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border transition-opacity",s.onClick&&"hover:opacity-80 cursor-pointer"),style:{fontFamily:"Causten Round, sans-serif",height:"24px",backgroundColor:f.bg,borderColor:f.border,color:f.text},children:s.label}),a&&l.jsx("button",{onClick:p=>{p.stopPropagation(),a.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:a.label})]})]})]})});xi.displayName="OrderCardCustom";const Jt="#00995a",Qt=32,en=2,o1=()=>l.jsx(re.ReceiptText,{size:Qt,color:Jt,strokeWidth:en}),i1=()=>l.jsx(re.Package,{size:Qt,color:Jt,strokeWidth:en}),s1=()=>l.jsx(re.Route,{size:Qt,color:Jt,strokeWidth:en}),a1=()=>l.jsx(re.CircleCheck,{size:Qt,color:Jt,strokeWidth:en}),d1={received:{title:"Received",icon:o1},picking:{title:"Picking",icon:i1},dispatched:{title:"Dispatched",icon:s1},delivered:{title:"Delivered",icon:a1}},wi=h.forwardRef(({state:e,count:t,countLabel:n="orders",grossSales:r,netSales:o,hasDelays:i=!1,delayCount:s,onDelaysClick:a,onFilterClick:d,icon:c,currencySymbol:u="$",className:f,...p},m)=>{const v=d1[e],$=c||v.icon,g=b=>`${u}${b.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}`;return l.jsxs("div",{ref:m,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",f),...p,children:[l.jsx("div",{className:"flex items-start justify-center shrink-0",children:typeof $=="function"?l.jsx($,{}):$}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:v.title}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Gross Sales:"}),l.jsx("span",{children:g(r)})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Net Sales:"}),l.jsx("span",{children:g(o)})]})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pl-12 pb-[33px]",children:[i&&l.jsx("button",{onClick:b=>{b.stopPropagation(),a?.()},className:"px-2 rounded-2xl text-[12px] leading-[18px] font-light border bg-[#ffecf0] border-[#ff8ea7] text-[#ff305f] hover:opacity-80 transition-opacity",style:{fontFamily:"Causten Round, sans-serif",height:"24px"},children:s?`${s} Delays`:"Delays"}),d&&l.jsx("button",{onClick:b=>{b.stopPropagation(),d()},className:"text-sm leading-[18px] font-medium text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:"Filter"})]})]})]})});wi.displayName="OrderCard";const Ci=({currentPage:e,totalPages:t,onPageChange:n})=>{const r=()=>{e>1&&n(e-1)},o=()=>{e<t&&n(e+1)},i=d=>{n(d)},a=(()=>{const d=[];if(t<=6)for(let u=1;u<=t;u++)d.push(u);else if(d.push(1),e<=3){for(let u=2;u<=4;u++)d.push(u);d.push("..."),d.push(t)}else if(e>=t-2){d.push("...");for(let u=t-2;u<=t;u++)d.push(u)}else{d.push("...");for(let u=e-1;u<=e+1;u++)d.push(u);d.push("..."),d.push(t)}return d})();return l.jsxs("div",{className:"flex gap-1.5 items-center",children:[l.jsx("button",{onClick:r,disabled:e===1,className:I("border rounded bg-transparent p-1 flex items-center justify-center w-[28px] h-[28px]",e===1?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-left text-sm text-[#312e4d]"})}),a.map((d,c)=>{if(d==="...")return l.jsx("div",{className:"border border-[#ecebf0] rounded p-1 h-[28px] w-[28px] flex items-center justify-center",children:l.jsx("p",{className:"text-xs text-[#575385] text-center",children:"..."})},`ellipsis-${c}`);const u=d,f=u===e;return l.jsx("button",{onClick:()=>i(u),className:I("border rounded bg-transparent p-1 h-[28px] w-[28px] flex items-center justify-center px-1",f?"border-[#a29fba] bg-white":"border-[#ecebf0] hover:bg-gray-50"),children:l.jsx("p",{className:I("text-xs text-center",f?"text-[#312e4d]":"text-[#a29fba]"),children:u})},u)}),l.jsx("button",{onClick:o,disabled:e===t,className:I("border rounded bg-transparent p-1 flex items-center justify-center h-[28px]",e===t?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-right text-sm text-[#312e4d]"})})]})};function co(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cr(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),d=n.length;n=[...n,s];const c=f=>{const{scope:p,children:m,...v}=f,$=p?.[e]?.[d]||a,g=h.useMemo(()=>v,Object.values(v));return l.jsx($.Provider,{value:g,children:m})};c.displayName=i+"Provider";function u(f,p){const m=p?.[e]?.[d]||a,v=h.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const d=a?.[e]||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,c1(o,...t)]}function c1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:d,scopeName:c})=>{const f=d(i)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=lo(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():lo(e[o],null)}}}}function ne(...e){return h.useCallback(l1(...e),e)}function u1(e){const t=e+"CollectionProvider",[n,r]=cr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=$=>{const{scope:g,children:b}=$,y=te.useRef(null),x=te.useRef(new Map).current;return l.jsx(o,{scope:g,itemMap:x,collectionRef:y,children:b})};s.displayName=t;const a=e+"CollectionSlot",d=pt.createSlot(a),c=te.forwardRef(($,g)=>{const{scope:b,children:y}=$,x=i(a,b),w=ne(g,x.collectionRef);return l.jsx(d,{ref:w,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=pt.createSlot(u),m=te.forwardRef(($,g)=>{const{scope:b,children:y,...x}=$,w=te.useRef(null),S=ne(g,w),P=i(u,b);return te.useEffect(()=>(P.itemMap.set(w,{ref:w,...x}),()=>void P.itemMap.delete(w))),l.jsx(p,{[f]:"",ref:S,children:y})});m.displayName=u;function v($){const g=i(e+"CollectionConsumer",$);return te.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},v,r]}var f1=h.createContext(void 0);function $1(e){const t=h.useContext(f1);return e||t||"ltr"}var p1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=p1.reduce((e,t)=>{const n=pt.createSlot(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function h1(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function m1(e,t=globalThis?.document){const n=Ze(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var g1="DismissableLayer",Fn="dismissableLayer.update",v1="dismissableLayer.pointerDownOutside",b1="dismissableLayer.focusOutside",uo,Si=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_i=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=h.useContext(Si),[u,f]=h.useState(null),p=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),v=ne(t,_=>f(_)),$=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=$.indexOf(g),y=u?$.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=b,S=w1(_=>{const O=_.target,L=[...c.branches].some(F=>F.contains(O));!w||L||(o?.(_),s?.(_),_.defaultPrevented||a?.())},p),P=C1(_=>{const O=_.target;[...c.branches].some(F=>F.contains(O))||(i?.(_),s?.(_),_.defaultPrevented||a?.())},p);return m1(_=>{y===c.layers.size-1&&(r?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},p),h.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(uo=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),fo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=uo)}},[u,p,n,c]),h.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),fo())},[u,c]),h.useEffect(()=>{const _=()=>m({});return document.addEventListener(Fn,_),()=>document.removeEventListener(Fn,_)},[]),l.jsx(Y.div,{...d,ref:v,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,P.onFocusCapture),onBlurCapture:J(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,S.onPointerDownCapture)})});_i.displayName=g1;var y1="DismissableLayerBranch",x1=h.forwardRef((e,t)=>{const n=h.useContext(Si),r=h.useRef(null),o=ne(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(Y.div,{...e,ref:o})});x1.displayName=y1;function w1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){Pi(v1,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Pi(b1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fo(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function Pi(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?h1(o,i):o.dispatchEvent(i)}var gn=0;function S1(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$o()),document.body.insertAdjacentElement("beforeend",e[1]??$o()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gn--}},[])}function $o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",po={bubbles:!1,cancelable:!0},_1="FocusScope",Ni=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=h.useState(null),c=Ze(o),u=Ze(i),f=h.useRef(null),p=ne(t,$=>d($)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let $=function(x){if(m.paused||!a)return;const w=x.target;a.contains(w)?f.current=w:Ae(f.current,{select:!0})},g=function(x){if(m.paused||!a)return;const w=x.relatedTarget;w!==null&&(a.contains(w)||Ae(f.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ae(a)};document.addEventListener("focusin",$),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",$),document.removeEventListener("focusout",g),y.disconnect()}}},[r,a,m.paused]),h.useEffect(()=>{if(a){mo.add(m);const $=document.activeElement;if(!a.contains($)){const b=new CustomEvent(vn,po);a.addEventListener(vn,c),a.dispatchEvent(b),b.defaultPrevented||(P1(I1(Ei(a)),{select:!0}),document.activeElement===$&&Ae(a))}return()=>{a.removeEventListener(vn,c),setTimeout(()=>{const b=new CustomEvent(bn,po);a.addEventListener(bn,u),a.dispatchEvent(b),b.defaultPrevented||Ae($??document.body,{select:!0}),a.removeEventListener(bn,u),mo.remove(m)},0)}}},[a,c,u,m]);const v=h.useCallback($=>{if(!n&&!r||m.paused)return;const g=$.key==="Tab"&&!$.altKey&&!$.ctrlKey&&!$.metaKey,b=document.activeElement;if(g&&b){const y=$.currentTarget,[x,w]=N1(y);x&&w?!$.shiftKey&&b===w?($.preventDefault(),n&&Ae(x,{select:!0})):$.shiftKey&&b===x&&($.preventDefault(),n&&Ae(w,{select:!0})):b===y&&$.preventDefault()}},[n,r,m.paused]);return l.jsx(Y.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});Ni.displayName=_1;function P1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ae(r,{select:t}),document.activeElement!==n)return}function N1(e){const t=Ei(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function Ei(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ho(e,t){for(const n of e)if(!E1(n,{upTo:t}))return n}function E1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function R1(e){return e instanceof HTMLInputElement&&"select"in e}function Ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&R1(e)&&t&&e.select()}}var mo=A1();function A1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=go(e,t),e.unshift(t)},remove(t){e=go(e,t),e[0]?.resume()}}}function go(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function I1(e){return e.filter(t=>t.tagName!=="A")}var ae=globalThis?.document?h.useLayoutEffect:()=>{},O1=h[" useId ".trim().toString()]||(()=>{}),T1=0;function lr(e){const[t,n]=h.useState(O1());return ae(()=>{n(r=>r??String(T1++))},[e]),e||(t?`radix-${t}`:"")}const k1=["top","right","bottom","left"],Oe=Math.min,ce=Math.max,zt=Math.round,Rt=Math.floor,be=e=>({x:e,y:e}),j1={left:"right",right:"left",bottom:"top",top:"bottom"},F1={start:"end",end:"start"};function Ln(e,t,n){return ce(e,Oe(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function ur(e){return e==="x"?"y":"x"}function fr(e){return e==="y"?"height":"width"}const L1=new Set(["top","bottom"]);function ve(e){return L1.has(Pe(e))?"y":"x"}function $r(e){return ur(ve(e))}function M1(e,t,n){n===void 0&&(n=!1);const r=st(e),o=$r(e),i=fr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function D1(e){const t=Zt(e);return[Mn(e),t,Mn(t)]}function Mn(e){return e.replace(/start|end/g,t=>F1[t])}const vo=["left","right"],bo=["right","left"],z1=["top","bottom"],Z1=["bottom","top"];function B1(e,t,n){switch(e){case"top":case"bottom":return n?t?bo:vo:t?vo:bo;case"left":case"right":return t?z1:Z1;default:return[]}}function U1(e,t,n,r){const o=st(e);let i=B1(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Mn)))),i}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>j1[t])}function W1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ri(e){return typeof e!="number"?W1(e):{top:e,right:e,bottom:e,left:e}}function Bt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yo(e,t,n){let{reference:r,floating:o}=e;const i=ve(t),s=$r(t),a=fr(s),d=Pe(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(st(t)){case"start":m[s]-=p*(n&&c?-1:1);break;case"end":m[s]+=p*(n&&c?-1:1);break}return m}const V1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=yo(c,r,d),p=r,m={},v=0;for(let $=0;$<a.length;$++){const{name:g,fn:b}=a[$],{x:y,y:x,data:w,reset:S}=await b({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,f=x??f,m={...m,[g]:{...m[g],...w}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=yo(c,p,d)),$=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:m}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=_e(t,e),v=Ri(m),g=a[p?f==="floating"?"reference":"floating":f],b=Bt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:d})),y=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(b.top-S.top+v.top)/w.y,bottom:(S.bottom-b.bottom+v.bottom)/w.y,left:(b.left-S.left+v.left)/w.x,right:(S.right-b.right+v.right)/w.x}}const G1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:u=0}=_e(e,t)||{};if(c==null)return{};const f=Ri(u),p={x:n,y:r},m=$r(o),v=fr(m),$=await s.getDimensions(c),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[m]-p[m]-i.floating[v],S=p[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[x]||i.floating[v]);const O=w/2-S/2,L=_/2-$[v]/2-1,F=Oe(f[b],L),z=Oe(f[y],L),N=F,M=_-$[v]-z,A=_/2-$[v]/2+O,Z=Ln(N,A,M),T=!d.arrow&&st(o)!=null&&A!==Z&&i.reference[v]/2-(A<N?F:z)-$[v]/2<0,D=T?A<N?A-N:A-M:0;return{[m]:p[m]+D,data:{[m]:Z,centerOffset:A-Z-D,...T&&{alignmentOffset:D}},reset:T}}}),H1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:$=!0,...g}=_e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Pe(o),y=ve(a),x=Pe(a)===a,w=await(d.isRTL==null?void 0:d.isRTL(c.floating)),S=p||(x||!$?[Zt(a)]:D1(a)),P=v!=="none";!p&&P&&S.push(...U1(a,$,v,w));const _=[a,...S],O=await xt(t,g),L=[];let F=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(O[b]),f){const A=M1(o,s,w);L.push(O[A[0]],O[A[1]])}if(F=[...F,{placement:o,overflows:L}],!L.every(A=>A<=0)){var z,N;const A=(((z=i.flip)==null?void 0:z.index)||0)+1,Z=_[A];if(Z&&(!(f==="alignment"?y!==ve(Z):!1)||F.every(E=>ve(E.placement)===y?E.overflows[0]>0:!0)))return{data:{index:A,overflows:F},reset:{placement:Z}};let T=(N=F.filter(D=>D.overflows[0]<=0).sort((D,E)=>D.overflows[1]-E.overflows[1])[0])==null?void 0:N.placement;if(!T)switch(m){case"bestFit":{var M;const D=(M=F.filter(E=>{if(P){const B=ve(E.placement);return B===y||B==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((E,B)=>E[1]-B[1])[0])==null?void 0:M[0];D&&(T=D);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function xo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wo(e){return k1.some(t=>e[t]>=0)}const K1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const i=await xt(t,{...o,elementContext:"reference"}),s=xo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wo(s)}}}case"escaped":{const i=await xt(t,{...o,altBoundary:!0}),s=xo(i,n.floating);return{data:{escapedOffsets:s,escaped:wo(s)}}}default:return{}}}}},Ai=new Set(["left","top"]);async function X1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=st(n),d=ve(n)==="y",c=Ai.has(s)?-1:1,u=i&&d?-1:1,f=_e(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),d?{x:m*u,y:p*c}:{x:p*c,y:m*u}}const Y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await X1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},q1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...d}=_e(e,t),c={x:n,y:r},u=await xt(t,d),f=ve(Pe(o)),p=ur(f);let m=c[p],v=c[f];if(i){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=m+u[g],x=m-u[b];m=Ln(y,m,x)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=v+u[g],x=v-u[b];v=Ln(y,v,x)}const $=a.fn({...t,[p]:m,[f]:v});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[p]:i,[f]:s}}}}}},J1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=_e(e,t),u={x:n,y:r},f=ve(o),p=ur(f);let m=u[p],v=u[f];const $=_e(a,t),g=typeof $=="number"?{mainAxis:$,crossAxis:0}:{mainAxis:0,crossAxis:0,...$};if(d){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+g.mainAxis,S=i.reference[p]+i.reference[x]-g.mainAxis;m<w?m=w:m>S&&(m=S)}if(c){var b,y;const x=p==="y"?"width":"height",w=Ai.has(Pe(o)),S=i.reference[f]-i.floating[x]+(w&&((b=s.offset)==null?void 0:b[f])||0)+(w?0:g.crossAxis),P=i.reference[f]+i.reference[x]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?g.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[p]:m,[f]:v}}}},Q1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=_e(e,t),u=await xt(t,c),f=Pe(o),p=st(o),m=ve(o)==="y",{width:v,height:$}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=p==="end"?"top":"bottom");const y=$-u.top-u.bottom,x=v-u.left-u.right,w=Oe($-u[g],y),S=Oe(v-u[b],x),P=!t.middlewareData.shift;let _=w,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),P&&!p){const F=ce(u.left,0),z=ce(u.right,0),N=ce(u.top,0),M=ce(u.bottom,0);m?O=v-2*(F!==0||z!==0?F+z:ce(u.left,u.right)):_=$-2*(N!==0||M!==0?N+M:ce(u.top,u.bottom))}await d({...t,availableWidth:O,availableHeight:_});const L=await s.getDimensions(a.floating);return v!==L.width||$!==L.height?{reset:{rects:!0}}:{}}}};function tn(){return typeof window<"u"}function at(e){return Ii(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Ii(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ii(e){return tn()?e instanceof Node||e instanceof le(e).Node:!1}function he(e){return tn()?e instanceof Element||e instanceof le(e).Element:!1}function ye(e){return tn()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Co(e){return!tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const ef=new Set(["inline","contents"]);function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ef.has(o)}const tf=new Set(["table","td","th"]);function nf(e){return tf.has(at(e))}const rf=[":popover-open",":modal"];function nn(e){return rf.some(t=>{try{return e.matches(t)}catch{return!1}})}const of=["transform","translate","scale","rotate","perspective"],sf=["transform","translate","scale","rotate","perspective","filter"],af=["paint","layout","strict","content"];function pr(e){const t=hr(),n=he(e)?me(e):e;return of.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sf.some(r=>(n.willChange||"").includes(r))||af.some(r=>(n.contain||"").includes(r))}function df(e){let t=Te(e);for(;ye(t)&&!rt(t);){if(pr(t))return t;if(nn(t))return null;t=Te(t)}return null}function hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cf=new Set(["html","body","#document"]);function rt(e){return cf.has(at(e))}function me(e){return le(e).getComputedStyle(e)}function rn(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Te(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Co(e)&&e.host||we(e);return Co(t)?t.host:t}function Oi(e){const t=Te(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&Ct(t)?t:Oi(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Oi(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=le(o);if(i){const a=Dn(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],a&&n?wt(a):[])}return t.concat(o,wt(o,[],n))}function Dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ti(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=zt(n)!==i||zt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function mr(e){return he(e)?e:e.contextElement}function et(e){const t=mr(e);if(!ye(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ti(t);let s=(i?zt(n.width):n.width)/r,a=(i?zt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lf=be(0);function ki(e){const t=le(e);return!hr()||!t.visualViewport?lf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=mr(e);let s=be(1);t&&(r?he(r)&&(s=et(r)):s=et(e));const a=uf(i,n,r)?ki(i):be(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=le(i),m=r&&he(r)?le(r):r;let v=p,$=Dn(v);for(;$&&r&&m!==v;){const g=et($),b=$.getBoundingClientRect(),y=me($),x=b.left+($.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+($.clientTop+parseFloat(y.paddingTop))*g.y;d*=g.x,c*=g.y,u*=g.x,f*=g.y,d+=x,c+=w,v=le($),$=Dn(v)}}return Bt({width:u,height:f,x:d,y:c})}function on(e,t){const n=rn(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ji(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-on(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ff(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=we(r),a=t?nn(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),f=ye(r);if((f||!f&&!i)&&((at(r)!=="body"||Ct(s))&&(d=rn(r)),ye(r))){const m=Be(r);c=et(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const p=s&&!f&&!i?ji(s,d):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-d.scrollTop*c.y+u.y+p.y}}function $f(e){return Array.from(e.getClientRects())}function pf(e){const t=we(e),n=rn(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+on(e);const a=-n.scrollTop;return me(r).direction==="rtl"&&(s+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const So=25;function hf(e,t){const n=le(e),r=we(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=hr();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=on(r);if(c<=0){const u=r.ownerDocument,f=u.body,p=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-m);v<=So&&(i-=v)}else c<=So&&(i+=c);return{width:i,height:s,x:a,y:d}}const mf=new Set(["absolute","fixed"]);function gf(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ye(e)?et(e):be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function _o(e,t,n){let r;if(t==="viewport")r=hf(e,n);else if(t==="document")r=pf(we(e));else if(he(t))r=gf(t,n);else{const o=ki(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bt(r)}function Fi(e,t){const n=Te(e);return n===t||!he(n)||rt(n)?!1:me(n).position==="fixed"||Fi(n,t)}function vf(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(a=>he(a)&&at(a)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Te(e):e;for(;he(s)&&!rt(s);){const a=me(s),d=pr(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&mf.has(o.position)||Ct(s)&&!d&&Fi(e,s))?r=r.filter(u=>u!==s):o=a,s=Te(s)}return t.set(e,r),r}function bf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?nn(t)?[]:vf(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,u)=>{const f=_o(t,u,o);return c.top=ce(f.top,c.top),c.right=Oe(f.right,c.right),c.bottom=Oe(f.bottom,c.bottom),c.left=ce(f.left,c.left),c},_o(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function yf(e){const{width:t,height:n}=Ti(e);return{width:t,height:n}}function xf(e,t,n){const r=ye(t),o=we(t),i=n==="fixed",s=Be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=be(0);function c(){d.x=on(o)}if(r||!r&&!i)if((at(t)!=="body"||Ct(o))&&(a=rn(t)),r){const m=Be(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?ji(o,a):be(0),f=s.left+a.scrollLeft-d.x-u.x,p=s.top+a.scrollTop-d.y-u.y;return{x:f,y:p,width:s.width,height:s.height}}function yn(e){return me(e).position==="static"}function Po(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Li(e,t){const n=le(e);if(nn(e))return n;if(!ye(e)){let o=Te(e);for(;o&&!rt(o);){if(he(o)&&!yn(o))return o;o=Te(o)}return n}let r=Po(e,t);for(;r&&nf(r)&&yn(r);)r=Po(r,t);return r&&rt(r)&&yn(r)&&!pr(r)?n:r||df(e)||n}const wf=async function(e){const t=this.getOffsetParent||Li,n=this.getDimensions,r=await n(e.floating);return{reference:xf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cf(e){return me(e).direction==="rtl"}const Sf={convertOffsetParentRelativeRectToViewportRelativeRect:ff,getDocumentElement:we,getClippingRect:bf,getOffsetParent:Li,getElementRects:wf,getClientRects:$f,getDimensions:yf,getScale:et,isElement:he,isRTL:Cf};function Mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _f(e,t){let n=null,r;const o=we(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:p,height:m}=c;if(a||t(),!p||!m)return;const v=Rt(f),$=Rt(o.clientWidth-(u+p)),g=Rt(o.clientHeight-(f+m)),b=Rt(u),x={rootMargin:-v+"px "+-$+"px "+-g+"px "+-b+"px",threshold:ce(0,Oe(1,d))||1};let w=!0;function S(P){const _=P[0].intersectionRatio;if(_!==d){if(!w)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!Mi(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),i}function Pf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=mr(e),u=o||i?[...c?wt(c):[],...wt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=c&&a?_f(c,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!d&&m.observe(c),m.observe(t));let v,$=d?Be(e):null;d&&g();function g(){const b=Be(e);$&&!Mi($,b)&&n(),$=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,d&&cancelAnimationFrame(v)}}const Nf=Y1,Ef=q1,Rf=H1,Af=Q1,If=K1,No=G1,Of=J1,Tf=(e,t,n)=>{const r=new Map,o={platform:Sf,...n},i={...o.platform,_c:r};return V1(e,t,{...o,platform:i})};var kf=typeof document<"u",jf=function(){},kt=kf?te.useLayoutEffect:jf;function Ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ut(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Di(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eo(e,t){const n=Di(e);return Math.round(t*n)/n}function xn(e){const t=h.useRef(e);return kt(()=>{t.current=e}),t}function Ff(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=h.useState(r);Ut(p,r)||m(r);const[v,$]=h.useState(null),[g,b]=h.useState(null),y=h.useCallback(E=>{E!==P.current&&(P.current=E,$(E))},[]),x=h.useCallback(E=>{E!==_.current&&(_.current=E,b(E))},[]),w=i||v,S=s||g,P=h.useRef(null),_=h.useRef(null),O=h.useRef(u),L=d!=null,F=xn(d),z=xn(o),N=xn(c),M=h.useCallback(()=>{if(!P.current||!_.current)return;const E={placement:t,strategy:n,middleware:p};z.current&&(E.platform=z.current),Tf(P.current,_.current,E).then(B=>{const Q={...B,isPositioned:N.current!==!1};A.current&&!Ut(O.current,Q)&&(O.current=Q,Gt.flushSync(()=>{f(Q)}))})},[p,t,n,z,N]);kt(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[c]);const A=h.useRef(!1);kt(()=>(A.current=!0,()=>{A.current=!1}),[]),kt(()=>{if(w&&(P.current=w),S&&(_.current=S),w&&S){if(F.current)return F.current(w,S,M);M()}},[w,S,M,F,L]);const Z=h.useMemo(()=>({reference:P,floating:_,setReference:y,setFloating:x}),[y,x]),T=h.useMemo(()=>({reference:w,floating:S}),[w,S]),D=h.useMemo(()=>{const E={position:n,left:0,top:0};if(!T.floating)return E;const B=Eo(T.floating,u.x),Q=Eo(T.floating,u.y);return a?{...E,transform:"translate("+B+"px, "+Q+"px)",...Di(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:Q}},[n,a,T.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:M,refs:Z,elements:T,floatingStyles:D}),[u,M,Z,T,D])}const Lf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?No({element:r.current,padding:o}).fn(n):{}:r?No({element:r,padding:o}).fn(n):{}}}},Mf=(e,t)=>({...Nf(e),options:[e,t]}),Df=(e,t)=>({...Ef(e),options:[e,t]}),zf=(e,t)=>({...Of(e),options:[e,t]}),Zf=(e,t)=>({...Rf(e),options:[e,t]}),Bf=(e,t)=>({...Af(e),options:[e,t]}),Uf=(e,t)=>({...If(e),options:[e,t]}),Wf=(e,t)=>({...Lf(e),options:[e,t]});var Vf="Arrow",zi=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(Y.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});zi.displayName=Vf;var Gf=zi;function Hf(e){const[t,n]=h.useState(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,c=Array.isArray(d)?d[0]:d;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var gr="Popper",[Zi,Bi]=cr(gr),[Kf,Ui]=Zi(gr),Wi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return l.jsx(Kf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wi.displayName=gr;var Vi="PopperAnchor",Gi=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ui(Vi,n),s=h.useRef(null),a=ne(t,s),d=h.useRef(null);return h.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:l.jsx(Y.div,{...o,ref:a})});Gi.displayName=Vi;var vr="PopperContent",[Xf,Yf]=Zi(vr),Hi=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:v,...$}=e,g=Ui(vr,n),[b,y]=h.useState(null),x=ne(t,R=>y(R)),[w,S]=h.useState(null),P=Hf(w),_=P?.width??0,O=P?.height??0,L=r+(i!=="center"?"-"+i:""),F=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(c)?c:[c],N=z.length>0,M={padding:F,boundary:z.filter(Jf),altBoundary:N},{refs:A,floatingStyles:Z,placement:T,isPositioned:D,middlewareData:E}=Ff({strategy:"fixed",placement:L,whileElementsMounted:(...R)=>Pf(...R,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Mf({mainAxis:o+O,alignmentAxis:s}),d&&Df({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zf():void 0,...M}),d&&Zf({...M}),Bf({...M,apply:({elements:R,rects:X,availableWidth:ie,availableHeight:U})=>{const{width:V,height:q}=X.reference,ue=R.floating.style;ue.setProperty("--radix-popper-available-width",`${ie}px`),ue.setProperty("--radix-popper-available-height",`${U}px`),ue.setProperty("--radix-popper-anchor-width",`${V}px`),ue.setProperty("--radix-popper-anchor-height",`${q}px`)}}),w&&Wf({element:w,padding:a}),Qf({arrowWidth:_,arrowHeight:O}),p&&Uf({strategy:"referenceHidden",...M})]}),[B,Q]=Yi(T),ee=Ze(v);ae(()=>{D&&ee?.()},[D,ee]);const ct=E.arrow?.x,lt=E.arrow?.y,Ne=E.arrow?.centerOffset!==0,[Ve,Fe]=h.useState();return ae(()=>{b&&Fe(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:D?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ve,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Xf,{scope:n,placedSide:B,onArrowChange:S,arrowX:ct,arrowY:lt,shouldHideArrow:Ne,children:l.jsx(Y.div,{"data-side":B,"data-align":Q,...$,ref:x,style:{...$.style,animation:D?void 0:"none"}})})})});Hi.displayName=vr;var Ki="PopperArrow",qf={top:"bottom",right:"left",bottom:"top",left:"right"},Xi=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Yf(Ki,r),s=qf[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(Gf,{...o,ref:n,style:{...o.style,display:"block"}})})});Xi.displayName=Ki;function Jf(e){return e!==null}var Qf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,u]=Yi(n),f={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+d/2;let v="",$="";return c==="bottom"?(v=s?f:`${p}px`,$=`${-d}px`):c==="top"?(v=s?f:`${p}px`,$=`${r.floating.height+d}px`):c==="right"?(v=`${-d}px`,$=s?f:`${m}px`):c==="left"&&(v=`${r.floating.width+d}px`,$=s?f:`${m}px`),{data:{x:v,y:$}}}});function Yi(e){const[t,n="center"]=e.split("-");return[t,n]}var e2=Wi,t2=Gi,n2=Hi,r2=Xi,o2="Portal",qi=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=h.useState(!1);ae(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?jo.createPortal(l.jsx(Y.div,{...r,ref:t}),s):null});qi.displayName=o2;var i2=h[" useInsertionEffect ".trim().toString()]||ae;function Ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=s2({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=h.useCallback(u=>{if(a){const f=a2(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[d,c]}function s2({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return i2(()=>{i.current=t},[t]),h.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function a2(e){return typeof e=="function"}function d2(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ji=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),c2="VisuallyHidden",l2=h.forwardRef((e,t)=>l.jsx(Y.span,{...e,ref:t,style:{...Ji,...e.style}}));l2.displayName=c2;var u2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},He=new WeakMap,At=new WeakMap,It={},wn=0,Qi=function(e){return e&&(e.host||Qi(e.parentNode))},f2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$2=function(e,t,n,r){var o=f2(t,Array.isArray(e)?e:[e]);It[n]||(It[n]=new WeakMap);var i=It[n],s=[],a=new Set,d=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))u(p);else try{var m=p.getAttribute(r),v=m!==null&&m!=="false",$=(He.get(p)||0)+1,g=(i.get(p)||0)+1;He.set(p,$),i.set(p,g),s.push(p),$===1&&v&&At.set(p,!0),g===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),a.clear(),wn++,function(){s.forEach(function(f){var p=He.get(f)-1,m=i.get(f)-1;He.set(f,p),i.set(f,m),p||(At.has(f)||f.removeAttribute(r),At.delete(f)),m||f.removeAttribute(n)}),wn--,wn||(He=new WeakMap,He=new WeakMap,At=new WeakMap,It={})}},p2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=u2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$2(r,o,n,"aria-hidden")):function(){return null}},ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ge.apply(this,arguments)};function es(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function h2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jt="right-scroll-bar-position",Ft="width-before-scroll-bar",m2="with-scroll-bars-hidden",g2="--removed-body-scroll-bar-size";function Cn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v2(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var b2=typeof window<"u"?h.useLayoutEffect:h.useEffect,Ao=new WeakMap;function y2(e,t){var n=v2(null,function(r){return e.forEach(function(o){return Cn(o,r)})});return b2(function(){var r=Ao.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Cn(a,null)}),i.forEach(function(a){o.has(a)||Cn(a,s)})}Ao.set(n,e)},[e]),n}function x2(e){return e}function w2(e,t){t===void 0&&(t=x2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function C2(e){e===void 0&&(e={});var t=w2(null);return t.options=ge({async:!0,ssr:!1},e),t}var ts=function(e){var t=e.sideCar,n=es(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,ge({},n))};ts.isSideCarExport=!0;function S2(e,t){return e.useMedium(t),ts}var ns=C2(),Sn=function(){},sn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Sn,onWheelCapture:Sn,onTouchMoveCapture:Sn}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,v=e.noIsolation,$=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=es(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=y2([n,t]),_=ge(ge({},w),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:ns,removeScrollBar:c,shards:f,noRelative:m,noIsolation:v,inert:$,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?h.cloneElement(h.Children.only(a),ge(ge({},_),{ref:P})):h.createElement(y,ge({},_,{className:d,ref:P}),a))});sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sn.classNames={fullWidth:Ft,zeroRight:jt};var _2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function P2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_2();return t&&e.setAttribute("nonce",t),e}function N2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var R2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=P2())&&(N2(t,n),E2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A2=function(){var e=R2();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rs=function(){var e=A2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I2={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},O2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_n(n),_n(r),_n(o)]},T2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I2;var t=O2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k2=rs(),tt="data-scroll-locked",j2=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
6
+ .`.concat(m2,` {
7
+ overflow: hidden `).concat(r,`;
8
+ padding-right: `).concat(a,"px ").concat(r,`;
22
9
  }
23
- body[`).concat(wt,`] {
24
- overflow: hidden `).concat(n,`;
10
+ body[`).concat(tt,`] {
11
+ overflow: hidden `).concat(r,`;
25
12
  overscroll-behavior: contain;
26
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
13
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
27
14
  padding-left: `.concat(o,`px;
28
15
  padding-top: `).concat(i,`px;
29
16
  padding-right: `).concat(s,`px;
30
17
  margin-left:0;
31
18
  margin-top:0;
32
- margin-right: `).concat(a,"px ").concat(n,`;
33
- `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
19
+ margin-right: `).concat(a,"px ").concat(r,`;
20
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
34
21
  }
35
22
 
36
- .`).concat(or,` {
37
- right: `).concat(a,"px ").concat(n,`;
23
+ .`).concat(jt,` {
24
+ right: `).concat(a,"px ").concat(r,`;
38
25
  }
39
26
 
40
- .`).concat(ir,` {
41
- margin-right: `).concat(a,"px ").concat(n,`;
27
+ .`).concat(Ft,` {
28
+ margin-right: `).concat(a,"px ").concat(r,`;
42
29
  }
43
30
 
44
- .`).concat(or," .").concat(or,` {
45
- right: 0 `).concat(n,`;
31
+ .`).concat(jt," .").concat(jt,` {
32
+ right: 0 `).concat(r,`;
46
33
  }
47
34
 
48
- .`).concat(ir," .").concat(ir,` {
49
- margin-right: 0 `).concat(n,`;
35
+ .`).concat(Ft," .").concat(Ft,` {
36
+ margin-right: 0 `).concat(r,`;
50
37
  }
51
38
 
52
- body[`).concat(wt,`] {
53
- `).concat(zp,": ").concat(a,`px;
39
+ body[`).concat(tt,`] {
40
+ `).concat(g2,": ").concat(a,`px;
54
41
  }
55
- `)},xi=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},i$=function(){f.useEffect(function(){return document.body.setAttribute(wt,(xi()+1).toString()),function(){var e=xi()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}},[])},s$=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;i$();var i=f.useMemo(function(){return r$(o)},[o]);return f.createElement(n$,{styles:o$(i,!t,o,r?"":"!important")})},hn=!1;if(typeof window<"u")try{var tr=Object.defineProperty({},"passive",{get:function(){return hn=!0,!0}});window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{hn=!1}var ht=hn?{passive:!1}:!1,a$=function(e){return e.tagName==="TEXTAREA"},ta=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!a$(e)&&r[t]==="visible")},d$=function(e){return ta(e,"overflowY")},c$=function(e){return ta(e,"overflowX")},wi=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ra(e,n);if(o){var i=na(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},l$=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},u$=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ra=function(e,t){return e==="v"?d$(t):c$(t)},na=function(e,t){return e==="v"?l$(t):u$(t)},f$=function(e,t){return e==="h"&&t==="rtl"?-1:1},p$=function(e,t,r,n,o){var i=f$(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,d=t.contains(a),c=!1,l=s>0,p=0,$=0;do{if(!a)break;var g=na(e,a),x=g[0],h=g[1],v=g[2],y=h-v-i*x;(x||y)&&ra(e,a)&&(p+=y,$+=x);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(l&&Math.abs(p)<1||!l&&Math.abs($)<1)&&(c=!0),c},rr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ci=function(e){return[e.deltaX,e.deltaY]},_i=function(e){return e&&"current"in e?e.current:e},$$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},h$=function(e){return`
42
+ `)},Io=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0},F2=function(){h.useEffect(function(){return document.body.setAttribute(tt,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString())}},[])},L2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;F2();var i=h.useMemo(function(){return T2(o)},[o]);return h.createElement(k2,{styles:j2(i,!t,o,n?"":"!important")})},zn=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return zn=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{zn=!1}var Ke=zn?{passive:!1}:!1,M2=function(e){return e.tagName==="TEXTAREA"},os=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!M2(e)&&n[t]==="visible")},D2=function(e){return os(e,"overflowY")},z2=function(e){return os(e,"overflowX")},Oo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=is(e,r);if(o){var i=ss(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Z2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},B2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},is=function(e,t){return e==="v"?D2(t):z2(t)},ss=function(e,t){return e==="v"?Z2(t):B2(t)},U2=function(e,t){return e==="h"&&t==="rtl"?-1:1},W2=function(e,t,n,r,o){var i=U2(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),c=!1,u=s>0,f=0,p=0;do{if(!a)break;var m=ss(e,a),v=m[0],$=m[1],g=m[2],b=$-g-i*v;(v||b)&&is(e,a)&&(f+=b,p+=v);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(p)<1)&&(c=!0),c},Tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},To=function(e){return[e.deltaX,e.deltaY]},ko=function(e){return e&&"current"in e?e.current:e},V2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},G2=function(e){return`
56
43
  .block-interactivity-`.concat(e,` {pointer-events: none;}
57
44
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
58
- `)},m$=0,mt=[];function g$(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(m$++)[0],i=f.useState(ea)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Dp([e.lockRef.current],(e.shards||[]).map(_i),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=rr(h),b=r.current,w="deltaX"in h?h.deltaX:b[0]-y[0],C="deltaY"in h?h.deltaY:b[1]-y[1],S,R=h.target,P=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in h&&P==="h"&&R.type==="range")return!1;var j=wi(P,R);if(!j)return!0;if(j?S=P:(S=P==="v"?"h":"v",j=wi(P,R)),!j)return!1;if(!n.current&&"changedTouches"in h&&(w||C)&&(n.current=S),!S)return!0;var B=n.current||S;return p$(B,v,h,B==="h"?w:C)},[]),d=f.useCallback(function(h){var v=h;if(!(!mt.length||mt[mt.length-1]!==i)){var y="deltaY"in v?Ci(v):rr(v),b=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&$$(S.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(_i).filter(Boolean).filter(function(S){return S.contains(v.target)}),C=w.length>0?a(v,w[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),c=f.useCallback(function(h,v,y,b){var w={name:h,delta:v,target:y,should:b,shadowParent:v$(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),l=f.useCallback(function(h){r.current=rr(h),n.current=void 0},[]),p=f.useCallback(function(h){c(h.type,Ci(h),h.target,a(h,e.lockRef.current))},[]),$=f.useCallback(function(h){c(h.type,rr(h),h.target,a(h,e.lockRef.current))},[]);f.useEffect(function(){return mt.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:$}),document.addEventListener("wheel",d,ht),document.addEventListener("touchmove",d,ht),document.addEventListener("touchstart",l,ht),function(){mt=mt.filter(function(h){return h!==i}),document.removeEventListener("wheel",d,ht),document.removeEventListener("touchmove",d,ht),document.removeEventListener("touchstart",l,ht)}},[]);var g=e.removeScrollBar,x=e.inert;return f.createElement(f.Fragment,null,x?f.createElement(i,{styles:h$(o)}):null,g?f.createElement(s$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function v$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y$=Gp(Qs,g$);var oa=f.forwardRef(function(e,t){return f.createElement(Ar,Oe({},e,{ref:t,sideCar:y$}))});oa.classNames=Ar.classNames;var b$=[" ","Enter","ArrowUp","ArrowDown"],x$=[" ","Enter"],dt="Select",[kr,Or,w$]=S2(dt),[Rt]=Sr(dt,[w$,Ds]),Tr=Ds(),[C$,et]=Rt(dt),[_$,S$]=Rt(dt),ia=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:d,dir:c,name:l,autoComplete:p,disabled:$,required:g,form:x}=e,h=Tr(t),[v,y]=f.useState(null),[b,w]=f.useState(null),[C,S]=f.useState(!1),R=P2(c),[P,j]=$n({prop:n,defaultProp:o??!1,onChange:i,caller:dt}),[B,Z]=$n({prop:s,defaultProp:a,onChange:d,caller:dt}),K=f.useRef(null),A=v?x||!!v.closest("form"):!0,[D,k]=f.useState(new Set),W=Array.from(D).map(L=>L.props.value).join(";");return u.jsx(vp,{...h,children:u.jsxs(C$,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:Ln(),value:B,onValueChange:Z,open:P,onOpenChange:j,dir:R,triggerPointerDownPosRef:K,disabled:$,children:[u.jsx(kr.Provider,{scope:t,children:u.jsx(_$,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(L=>{k(V=>new Set(V).add(L))},[]),onNativeOptionRemove:f.useCallback(L=>{k(V=>{const O=new Set(V);return O.delete(L),O})},[]),children:r})}),A?u.jsxs(_a,{"aria-hidden":!0,required:g,tabIndex:-1,name:l,autoComplete:p,value:B,onChange:L=>Z(L.target.value),disabled:$,form:x,children:[B===void 0?u.jsx("option",{value:""}):null,Array.from(D)]},W):null]})})};ia.displayName=dt;var sa="SelectTrigger",aa=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Tr(r),s=et(sa,r),a=s.disabled||n,d=pe(t,s.onTriggerChange),c=Or(r),l=f.useRef("touch"),[p,$,g]=Ea(h=>{const v=c().filter(w=>!w.disabled),y=v.find(w=>w.value===s.value),b=Pa(v,h,y);b!==void 0&&s.onValueChange(b.value)}),x=h=>{a||(s.onOpenChange(!0),g()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return u.jsx(yp,{asChild:!0,...i,children:u.jsx(se.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Sa(s.value)?"":void 0,...o,ref:d,onClick:de(o.onClick,h=>{h.currentTarget.focus(),l.current!=="mouse"&&x(h)}),onPointerDown:de(o.onPointerDown,h=>{l.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(x(h),h.preventDefault())}),onKeyDown:de(o.onKeyDown,h=>{const v=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&$(h.key),!(v&&h.key===" ")&&b$.includes(h.key)&&(x(),h.preventDefault())})})})});aa.displayName=sa;var da="SelectValue",ca=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:s="",...a}=e,d=et(da,r),{onValueNodeHasChildrenChange:c}=d,l=i!==void 0,p=pe(t,d.onValueNodeChange);return ye(()=>{c(l)},[c,l]),u.jsx(se.span,{...a,ref:p,style:{pointerEvents:"none"},children:Sa(d.value)?u.jsx(u.Fragment,{children:s}):i})});ca.displayName=da;var E$="SelectIcon",la=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(se.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});la.displayName=E$;var P$="SelectPortal",ua=e=>u.jsx(Gs,{asChild:!0,...e});ua.displayName=P$;var ct="SelectContent",fa=f.forwardRef((e,t)=>{const r=et(ct,e.__scopeSelect),[n,o]=f.useState();if(ye(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?mr.createPortal(u.jsx(pa,{scope:e.__scopeSelect,children:u.jsx(kr.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),i):null}return u.jsx($a,{...e,ref:t})});fa.displayName=ct;var Pe=10,[pa,tt]=Rt(ct),N$="SelectContentImpl",R$=Cp("SelectContent.RemoveScroll"),$a=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:d,align:c,alignOffset:l,arrowPadding:p,collisionBoundary:$,collisionPadding:g,sticky:x,hideWhenDetached:h,avoidCollisions:v,...y}=e,b=et(ct,r),[w,C]=f.useState(null),[S,R]=f.useState(null),P=pe(t,T=>C(T)),[j,B]=f.useState(null),[Z,K]=f.useState(null),A=Or(r),[D,k]=f.useState(!1),W=f.useRef(!1);f.useEffect(()=>{if(w)return Lp(w)},[w]),V2();const L=f.useCallback(T=>{const[q,...fe]=A().map(oe=>oe.ref.current),[Y]=fe.slice(-1),Q=document.activeElement;for(const oe of T)if(oe===Q||(oe?.scrollIntoView({block:"nearest"}),oe===q&&S&&(S.scrollTop=0),oe===Y&&S&&(S.scrollTop=S.scrollHeight),oe?.focus(),document.activeElement!==Q))return},[A,S]),V=f.useCallback(()=>L([j,w]),[L,j,w]);f.useEffect(()=>{D&&V()},[D,V]);const{onOpenChange:O,triggerPointerDownPosRef:H}=b;f.useEffect(()=>{if(w){let T={x:0,y:0};const q=Y=>{T={x:Math.abs(Math.round(Y.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(Y.pageY)-(H.current?.y??0))}},fe=Y=>{T.x<=10&&T.y<=10?Y.preventDefault():w.contains(Y.target)||O(!1),document.removeEventListener("pointermove",q),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",fe,{capture:!0})}}},[w,O,H]),f.useEffect(()=>{const T=()=>O(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[O]);const[ce,le]=Ea(T=>{const q=A().filter(Q=>!Q.disabled),fe=q.find(Q=>Q.ref.current===document.activeElement),Y=Pa(q,T,fe);Y&&setTimeout(()=>Y.ref.current.focus())}),Ve=f.useCallback((T,q,fe)=>{const Y=!W.current&&!fe;(b.value!==void 0&&b.value===q||Y)&&(B(T),Y&&(W.current=!0))},[b.value]),Ue=f.useCallback(()=>w?.focus(),[w]),ke=f.useCallback((T,q,fe)=>{const Y=!W.current&&!fe;(b.value!==void 0&&b.value===q||Y)&&K(T)},[b.value]),He=n==="popper"?mn:ha,Ee=He===mn?{side:a,sideOffset:d,align:c,alignOffset:l,arrowPadding:p,collisionBoundary:$,collisionPadding:g,sticky:x,hideWhenDetached:h,avoidCollisions:v}:{};return u.jsx(pa,{scope:r,content:w,viewport:S,onViewportChange:R,itemRefCallback:Ve,selectedItem:j,onItemLeave:Ue,itemTextRefCallback:ke,focusSelectedItem:V,selectedItemText:Z,position:n,isPositioned:D,searchRef:ce,children:u.jsx(oa,{as:R$,allowPinchZoom:!0,children:u.jsx(ws,{asChild:!0,trapped:b.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:de(o,T=>{b.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:u.jsx(bs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:u.jsx(He,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:T=>T.preventDefault(),...y,...Ee,onPlaced:()=>k(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:de(y.onKeyDown,T=>{const q=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!q&&T.key.length===1&&le(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let Y=A().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(T.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const Q=T.target,oe=Y.indexOf(Q);Y=Y.slice(oe+1)}setTimeout(()=>L(Y)),T.preventDefault()}})})})})})})});$a.displayName=N$;var A$="SelectItemAlignedPosition",ha=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=et(ct,r),s=tt(ct,r),[a,d]=f.useState(null),[c,l]=f.useState(null),p=pe(t,P=>l(P)),$=Or(r),g=f.useRef(!1),x=f.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=s,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&h&&v&&y){const P=i.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),Z=y.getBoundingClientRect();if(i.dir!=="rtl"){const Q=Z.left-j.left,oe=B.left-Q,ge=P.left-oe,De=P.width+ge,Ge=Math.max(De,j.width),Me=window.innerWidth-Pe,lt=ei(oe,[Pe,Math.max(Pe,Me-Ge)]);a.style.minWidth=De+"px",a.style.left=lt+"px"}else{const Q=j.right-Z.right,oe=window.innerWidth-B.right-Q,ge=window.innerWidth-P.right-oe,De=P.width+ge,Ge=Math.max(De,j.width),Me=window.innerWidth-Pe,lt=ei(oe,[Pe,Math.max(Pe,Me-Ge)]);a.style.minWidth=De+"px",a.style.right=lt+"px"}const K=$(),A=window.innerHeight-Pe*2,D=h.scrollHeight,k=window.getComputedStyle(c),W=parseInt(k.borderTopWidth,10),L=parseInt(k.paddingTop,10),V=parseInt(k.borderBottomWidth,10),O=parseInt(k.paddingBottom,10),H=W+L+D+O+V,ce=Math.min(v.offsetHeight*5,H),le=window.getComputedStyle(h),Ve=parseInt(le.paddingTop,10),Ue=parseInt(le.paddingBottom,10),ke=P.top+P.height/2-Pe,He=A-ke,Ee=v.offsetHeight/2,T=v.offsetTop+Ee,q=W+L+T,fe=H-q;if(q<=ke){const Q=K.length>0&&v===K[K.length-1].ref.current;a.style.bottom="0px";const oe=c.clientHeight-h.offsetTop-h.offsetHeight,ge=Math.max(He,Ee+(Q?Ue:0)+oe+V),De=q+ge;a.style.height=De+"px"}else{const Q=K.length>0&&v===K[0].ref.current;a.style.top="0px";const ge=Math.max(ke,W+h.offsetTop+(Q?Ve:0)+Ee)+fe;a.style.height=ge+"px",h.scrollTop=q-ke+h.offsetTop}a.style.margin=`${Pe}px 0`,a.style.minHeight=ce+"px",a.style.maxHeight=A+"px",n?.(),requestAnimationFrame(()=>g.current=!0)}},[$,i.trigger,i.valueNode,a,c,h,v,y,i.dir,n]);ye(()=>w(),[w]);const[C,S]=f.useState();ye(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const R=f.useCallback(P=>{P&&x.current===!0&&(w(),b?.(),x.current=!1)},[w,b]);return u.jsx(O$,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:u.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(se.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ha.displayName=A$;var k$="SelectPopperPosition",mn=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Pe,...i}=e,s=Tr(r);return u.jsx(bp,{...s,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mn.displayName=k$;var[O$,Hn]=Rt(ct,{}),gn="SelectViewport",ma=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=tt(gn,r),s=Hn(gn,r),a=pe(t,i.onViewportChange),d=f.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(kr.Slot,{scope:r,children:u.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:de(o.onScroll,c=>{const l=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:$}=s;if($?.current&&p){const g=Math.abs(d.current-l.scrollTop);if(g>0){const x=window.innerHeight-Pe*2,h=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),y=Math.max(h,v);if(y<x){const b=y+g,w=Math.min(x,b),C=b-w;p.style.height=w+"px",p.style.bottom==="0px"&&(l.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}d.current=l.scrollTop})})})]})});ma.displayName=gn;var ga="SelectGroup",[T$,I$]=Rt(ga),j$=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ln();return u.jsx(T$,{scope:r,id:o,children:u.jsx(se.div,{role:"group","aria-labelledby":o,...n,ref:t})})});j$.displayName=ga;var va="SelectLabel",F$=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=I$(va,r);return u.jsx(se.div,{id:o.id,...n,ref:t})});F$.displayName=va;var $r="SelectItem",[L$,ya]=Rt($r),ba=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...s}=e,a=et($r,r),d=tt($r,r),c=a.value===n,[l,p]=f.useState(i??""),[$,g]=f.useState(!1),x=pe(t,b=>d.itemRefCallback?.(b,n,o)),h=Ln(),v=f.useRef("touch"),y=()=>{o||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(L$,{scope:r,value:n,disabled:o,textId:h,isSelected:c,onItemTextChange:f.useCallback(b=>{p(w=>w||(b?.textContent??"").trim())},[]),children:u.jsx(kr.ItemSlot,{scope:r,value:n,disabled:o,textValue:l,children:u.jsx(se.div,{role:"option","aria-labelledby":h,"data-highlighted":$?"":void 0,"aria-selected":c&&$,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:de(s.onFocus,()=>g(!0)),onBlur:de(s.onBlur,()=>g(!1)),onClick:de(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:de(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:de(s.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:de(s.onPointerMove,b=>{v.current=b.pointerType,o?d.onItemLeave?.():v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:de(s.onPointerLeave,b=>{b.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:de(s.onKeyDown,b=>{d.searchRef?.current!==""&&b.key===" "||(x$.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});ba.displayName=$r;var It="SelectItemText",xa=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,s=et(It,r),a=tt(It,r),d=ya(It,r),c=S$(It,r),[l,p]=f.useState(null),$=pe(t,y=>p(y),d.onItemTextChange,y=>a.itemTextRefCallback?.(y,d.value,d.disabled)),g=l?.textContent,x=f.useMemo(()=>u.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=c;return ye(()=>(h(x),()=>v(x)),[h,v,x]),u.jsxs(u.Fragment,{children:[u.jsx(se.span,{id:d.textId,...i,ref:$}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?mr.createPortal(i.children,s.valueNode):null]})});xa.displayName=It;var wa="SelectItemIndicator",D$=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ya(wa,r).isSelected?u.jsx(se.span,{"aria-hidden":!0,...n,ref:t}):null});D$.displayName=wa;var vn="SelectScrollUpButton",M$=f.forwardRef((e,t)=>{const r=tt(vn,e.__scopeSelect),n=Hn(vn,e.__scopeSelect),[o,i]=f.useState(!1),s=pe(t,n.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=d.scrollTop>0;i(c)};const d=r.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?u.jsx(Ca,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=r;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});M$.displayName=vn;var yn="SelectScrollDownButton",z$=f.forwardRef((e,t)=>{const r=tt(yn,e.__scopeSelect),n=Hn(yn,e.__scopeSelect),[o,i]=f.useState(!1),s=pe(t,n.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=d.scrollHeight-d.clientHeight,l=Math.ceil(d.scrollTop)<c;i(l)};const d=r.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?u.jsx(Ca,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=r;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});z$.displayName=yn;var Ca=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=tt("SelectScrollButton",r),s=f.useRef(null),a=Or(r),d=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),ye(()=>{a().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),u.jsx(se.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:de(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:de(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:de(o.onPointerLeave,()=>{d()})})}),B$="SelectSeparator",Z$=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(se.div,{"aria-hidden":!0,...n,ref:t})});Z$.displayName=B$;var bn="SelectArrow",W$=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Tr(r),i=et(bn,r),s=tt(bn,r);return i.open&&s.position==="popper"?u.jsx(xp,{...o,...n,ref:t}):null});W$.displayName=bn;var V$="SelectBubbleInput",_a=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=pe(n,o),s=Ks(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&l){const p=new Event("change",{bubbles:!0});l.call(a,t),a.dispatchEvent(p)}},[s,t]),u.jsx(se.select,{...r,style:{...Ys,...r.style},ref:i,defaultValue:t})});_a.displayName=V$;function Sa(e){return e===""||e===void 0}function Ea(e){const t=st(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(s=>{const a=r.current+s;t(a),(function d(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function Pa(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=U$(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==r));const d=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function U$(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var H$=ia,G$=aa,K$=ca,Y$=la,X$=ua,q$=fa,J$=ma,Q$=ba,eh=xa;const hr=te.forwardRef(({value:e,onChange:t,disabled:r=!1,options:n=[],placeholder:o="Select an option",label:i,className:s},a)=>{const d=n.find(p=>p.id===e),c=d?.text||o,l=p=>{t&&t(p)};return u.jsxs(H$,{value:e,onValueChange:l,disabled:r,children:[u.jsxs(G$,{ref:a,className:F("flex items-center gap-2","w-full","px-4 py-3","rounded","border border-[#ecebf0]","bg-white","text-left","transition-colors","hover:border-[#a29fba]","focus:outline-none focus:ring-0 focus:border-[#a29fba]","data-[state=open]:border-[#a29fba]",r&&"opacity-50 cursor-not-allowed bg-[#f4f4f4]",s),"data-testid":"select-trigger","aria-label":i||o,children:[u.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[(d||i)&&u.jsx("span",{className:"text-xs leading-normal text-[#575385]","data-testid":"select-label",children:i||o}),u.jsx(K$,{asChild:!0,children:u.jsx("span",{className:F("text-sm leading-4","text-[#312e4d]",!d&&!i&&"text-base leading-5"),"data-testid":"select-value",children:c})})]}),u.jsx(Y$,{asChild:!0,children:u.jsx(Fi,{size:16,className:"text-[#312e4d] shrink-0","data-testid":"select-icon"})})]}),u.jsx(X$,{children:u.jsx(q$,{className:F("overflow-hidden","bg-white","rounded","border border-[#ecebf0]","shadow-lg","z-50","w-[var(--radix-select-trigger-width)]"),position:"popper",sideOffset:4,"data-testid":"select-content",children:u.jsx(J$,{className:"p-1",children:n.map(p=>u.jsx(Q$,{value:p.id,className:F("relative flex items-center","px-4 py-2","text-sm leading-4 text-[#312e4d]","rounded","cursor-pointer","select-none","outline-none","transition-colors","hover:bg-[#f4f4f4]","focus:bg-[#f4f4f4]","data-[state=checked]:bg-[#ecebf0]","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none"),"data-testid":`select-option-${p.id}`,children:u.jsx(eh,{children:p.text})},p.id))})})})]})});hr.displayName="Select";var Ir="Switch",[th]=Sr(Ir),[rh,nh]=th(Ir),Na=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:s,disabled:a,value:d="on",onCheckedChange:c,form:l,...p}=e,[$,g]=f.useState(null),x=pe(t,w=>g(w)),h=f.useRef(!1),v=$?l||!!$.closest("form"):!0,[y,b]=$n({prop:o,defaultProp:i??!1,onChange:c,caller:Ir});return u.jsxs(rh,{scope:r,checked:y,disabled:a,children:[u.jsx(se.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":Oa(y),"data-disabled":a?"":void 0,disabled:a,value:d,...p,ref:x,onClick:de(e.onClick,w=>{b(C=>!C),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&u.jsx(ka,{control:$,bubbles:!h.current,name:n,value:d,checked:y,required:s,disabled:a,form:l,style:{transform:"translateX(-100%)"}})]})});Na.displayName=Ir;var Ra="SwitchThumb",Aa=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=nh(Ra,r);return u.jsx(se.span,{"data-state":Oa(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Aa.displayName=Ra;var oh="SwitchBubbleInput",ka=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const s=f.useRef(null),a=pe(s,i),d=Ks(r),c=Fs(t);return f.useEffect(()=>{const l=s.current;if(!l)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&g){const x=new Event("click",{bubbles:n});g.call(l,r),l.dispatchEvent(x)}},[d,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ka.displayName=oh;function Oa(e){return e?"checked":"unchecked"}var ih=Na,sh=Aa;const Ta=f.forwardRef(({status:e=!1,disabled:t=!1,onChange:r,className:n,...o},i)=>u.jsx(ih,{ref:i,checked:e,onCheckedChange:r,disabled:t,className:F("relative inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#00995a] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",e?"bg-[#00995a]":"bg-[#e0e0e0]",n),...o,children:u.jsx(sh,{className:F("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg transition-transform duration-200 ease-in-out",e?"translate-x-5":"translate-x-0")})}));Ta.displayName="Switcher";function ah({columns:e,data:t,rowsPerPage:r=10,showPagination:n=!0,className:o,rowClassName:i,onPageChange:s,currentPage:a,loading:d=!1,emptyMessage:c="No data available"}){const[l,p]=te.useState(1),$=a!==void 0?a:l,g=C=>{a===void 0&&p(C),s?.(C)},x=Math.ceil(t.length/r),h=($-1)*r,v=h+r,y=t.slice(h,v),b=(C,S,R)=>{if(C.render)return C.render(S,R);const P=S[C.key];return P==null?"-":typeof P=="object"&&"primary"in P?u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:P.primary}),P.secondary&&u.jsx("span",{className:"text-xs leading-normal text-[#575385]",children:P.secondary})]}):u.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:String(P)})},w=(C,S)=>typeof i=="function"?i(C,S):i;return u.jsxs("div",{className:F("bg-white rounded-xl p-8","flex flex-col gap-4",o),"data-testid":"table-container",children:[u.jsxs("div",{className:"w-full","data-testid":"table-body",children:[u.jsx("div",{className:F("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]","font-semibold text-sm leading-[18px] text-[#312e4d]"),"data-testid":"table-header",children:e.map(C=>u.jsx("div",{className:F("flex-1 min-w-0",C.className),"data-testid":`table-header-${C.key}`,children:C.label},C.key))}),d?u.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-loading",children:u.jsx("span",{className:"text-[#a29fba]",children:"Loading..."})}):y.length===0?u.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-empty",children:u.jsx("span",{className:"text-[#a29fba]",children:c})}):y.map((C,S)=>u.jsx("div",{className:F("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]",w(C,S)),"data-testid":`table-row-${S}`,children:e.map(R=>u.jsx("div",{className:F("flex-1 min-w-0",R.className),"data-testid":`table-cell-${S}-${R.key}`,children:b(R,C,S)},R.key))},S))]}),n&&x>1&&!d&&u.jsx("div",{className:"flex justify-end","data-testid":"table-pagination",children:u.jsx(vs,{currentPage:$,totalPages:x,onPageChange:g})})]})}const dh=({title:e="Table Header",showTitle:t=!1,searchPlaceholder:r="Search by...",searchValue:n="",onSearchChange:o,filters:i=[],showFilters:s=!0,buttons:a=[],showButtons:d=!0,cards:c=[],showCards:l=!1,className:p})=>u.jsxs("div",{className:F("bg-white rounded-xl p-8","flex flex-col gap-4",p),"data-testid":"table-header",children:[t&&e&&u.jsx("h2",{className:"text-xl font-semibold text-[#312e4d]","data-testid":"table-header-title",children:e}),l&&c.length>0&&u.jsx("div",{className:"flex gap-4 w-full","data-testid":"table-header-cards",children:c.map(($,g)=>u.jsxs("div",{className:"bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2","data-testid":`table-header-card-${g}`,children:[$.icon&&u.jsx("div",{className:"shrink-0","data-testid":`table-header-card-icon-${g}`,children:$.icon}),u.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[u.jsx("span",{className:"text-base font-medium text-[#575385] leading-5",children:$.label}),u.jsx("span",{className:"text-xl font-semibold text-[#312e4d] leading-[22px]",children:$.value})]})]},g))}),u.jsxs("div",{className:"relative","data-testid":"table-header-search",children:[u.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 pointer-events-none",children:u.jsx(dc,{size:16,className:"text-[#312e4d]"})}),u.jsx("input",{type:"text",value:n,onChange:$=>o?.($.target.value),placeholder:r,className:F("w-full h-11 pl-10 pr-4 py-3","border border-[#ecebf0] rounded","text-base leading-5","placeholder:text-[#a29fba]","focus:outline-none focus:border-[#a29fba]","transition-colors"),"data-testid":"table-header-search-input"})]}),u.jsxs("div",{className:"flex gap-4 items-center w-full",children:[s&&i.length>0&&u.jsxs("div",{className:"flex gap-4 items-center","data-testid":"table-header-filters",children:[u.jsxs("div",{className:"flex items-center gap-2 py-3",children:[u.jsx(ec,{size:16,className:"text-[#312e4d]"}),u.jsx("span",{className:"text-base leading-5 text-[#312e4d]",children:"Filter by"})]}),i.map(($,g)=>u.jsx("div",{className:"min-w-[120px]","data-testid":`table-header-filter-${g}`,children:$.options&&$.options.length>0?u.jsx(hr,{options:$.options,value:$.value,onChange:x=>$.onChange?.(x),placeholder:$.placeholder||$.label,className:"h-11"}):u.jsxs("button",{className:F("flex items-center gap-2","border border-[#ecebf0] rounded","px-4 py-3 h-11","text-base leading-5 text-[#312e4d]","hover:border-[#a29fba] transition-colors"),onClick:()=>$.onChange?.(""),children:[u.jsx("span",{children:$.placeholder||$.label}),u.jsx(Fi,{size:16})]})},$.key))]}),d&&a.length>0&&u.jsx("div",{className:"flex gap-4 items-center ml-auto","data-testid":"table-header-buttons",children:a.map(($,g)=>u.jsx("div",{"data-testid":`table-header-button-${g}`,children:$.isDropdown&&$.dropdownOptions?u.jsx("div",{className:"relative",children:u.jsx(hr,{options:$.dropdownOptions,value:$.dropdownValue,onChange:x=>$.onDropdownChange?.(x),placeholder:$.label,className:F("h-11",$.variant==="outline"?"border-[#00b56b]":"")})}):u.jsx(wn,{variant:$.variant==="outline"?"outline":"primary",onClick:$.onClick,className:"h-11",children:$.label})},g))})]})]}),Ia=f.forwardRef(({type:e="light",text:t,icon:r,onClose:n,className:o,...i},s)=>{const d={light:{container:"bg-[#ecebf0]",text:"text-[#575385]",iconColor:"text-[#312e4d]",closeColor:"text-[#312e4d]"},dark:{container:"bg-[#3f3c5e]",text:"text-white",iconColor:"text-white",closeColor:"text-white"}}[e],c=u.jsx(Ud,{size:16,className:d.iconColor});return u.jsxs("div",{ref:s,className:F("flex items-center gap-3 p-3 rounded",d.container,o),role:"status","aria-live":"polite",...i,children:[u.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[u.jsx("div",{className:"flex-shrink-0",children:r||c}),u.jsx("div",{className:F("text-base leading-5 whitespace-nowrap",d.text),children:t})]}),n&&u.jsx("button",{type:"button",onClick:n,className:F("flex-shrink-0 opacity-99 hover:opacity-100 transition-opacity",d.closeColor),"aria-label":"Cerrar notificación",children:u.jsx(uc,{size:12})})]})});Ia.displayName="Toasts";exports.ActionCard=Ii;exports.BannerAlerts=Di;exports.BrandIcons=zi;exports.Button=wn;exports.CardsGrid=Bi;exports.FeatureCard=Zi;exports.Input=ls;exports.KPICard=ps;exports.KPICardCustom=fs;exports.KPIComparison=Fn;exports.KPIComparisonCustom=us;exports.LOGO_ASSETS=nt;exports.Loader=$s;exports.OptionCard=hs;exports.OrderCard=gs;exports.OrderCardCustom=ms;exports.PaginationLib=vs;exports.Select=hr;exports.Switcher=Ta;exports.Table=ah;exports.TableHeader=dh;exports.Toasts=Ia;exports.buttonVariants=en;
45
+ `)},H2=0,Xe=[];function K2(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(H2++)[0],i=h.useState(rs)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var $=h2([e.lockRef.current],(e.shards||[]).map(ko),!0).filter(Boolean);return $.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),$.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function($,g){if("touches"in $&&$.touches.length===2||$.type==="wheel"&&$.ctrlKey)return!s.current.allowPinchZoom;var b=Tt($),y=n.current,x="deltaX"in $?$.deltaX:y[0]-b[0],w="deltaY"in $?$.deltaY:y[1]-b[1],S,P=$.target,_=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in $&&_==="h"&&P.type==="range")return!1;var O=Oo(_,P);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=Oo(_,P)),!O)return!1;if(!r.current&&"changedTouches"in $&&(x||w)&&(r.current=S),!S)return!0;var L=r.current||S;return W2(L,g,$,L==="h"?x:w)},[]),d=h.useCallback(function($){var g=$;if(!(!Xe.length||Xe[Xe.length-1]!==i)){var b="deltaY"in g?To(g):Tt(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&V2(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(ko).filter(Boolean).filter(function(S){return S.contains(g.target)}),w=x.length>0?a(g,x[0]):!s.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),c=h.useCallback(function($,g,b,y){var x={name:$,delta:g,target:b,should:y,shadowParent:X2(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),u=h.useCallback(function($){n.current=Tt($),r.current=void 0},[]),f=h.useCallback(function($){c($.type,To($),$.target,a($,e.lockRef.current))},[]),p=h.useCallback(function($){c($.type,Tt($),$.target,a($,e.lockRef.current))},[]);h.useEffect(function(){return Xe.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",d,Ke),document.addEventListener("touchmove",d,Ke),document.addEventListener("touchstart",u,Ke),function(){Xe=Xe.filter(function($){return $!==i}),document.removeEventListener("wheel",d,Ke),document.removeEventListener("touchmove",d,Ke),document.removeEventListener("touchstart",u,Ke)}},[]);var m=e.removeScrollBar,v=e.inert;return h.createElement(h.Fragment,null,v?h.createElement(i,{styles:G2(o)}):null,m?h.createElement(L2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function X2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y2=S2(ns,K2);var as=h.forwardRef(function(e,t){return h.createElement(sn,ge({},e,{ref:t,sideCar:Y2}))});as.classNames=sn.classNames;var q2=[" ","Enter","ArrowUp","ArrowDown"],J2=[" ","Enter"],Ue="Select",[an,dn,Q2]=u1(Ue),[dt]=cr(Ue,[Q2,Bi]),cn=Bi(),[e3,ke]=dt(Ue),[t3,n3]=dt(Ue),ds=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:d,dir:c,name:u,autoComplete:f,disabled:p,required:m,form:v}=e,$=cn(t),[g,b]=h.useState(null),[y,x]=h.useState(null),[w,S]=h.useState(!1),P=$1(c),[_,O]=Ro({prop:r,defaultProp:o??!1,onChange:i,caller:Ue}),[L,F]=Ro({prop:s,defaultProp:a,onChange:d,caller:Ue}),z=h.useRef(null),N=g?v||!!g.closest("form"):!0,[M,A]=h.useState(new Set),Z=Array.from(M).map(T=>T.props.value).join(";");return l.jsx(e2,{...$,children:l.jsxs(e3,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:lr(),value:L,onValueChange:F,open:_,onOpenChange:O,dir:P,triggerPointerDownPosRef:z,disabled:p,children:[l.jsx(an.Provider,{scope:t,children:l.jsx(t3,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(T=>{A(D=>new Set(D).add(T))},[]),onNativeOptionRemove:h.useCallback(T=>{A(D=>{const E=new Set(D);return E.delete(T),E})},[]),children:n})}),N?l.jsxs(Ns,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:L,onChange:T=>F(T.target.value),disabled:p,form:v,children:[L===void 0?l.jsx("option",{value:""}):null,Array.from(M)]},Z):null]})})};ds.displayName=Ue;var cs="SelectTrigger",ls=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cn(n),s=ke(cs,n),a=s.disabled||r,d=ne(t,s.onTriggerChange),c=dn(n),u=h.useRef("touch"),[f,p,m]=Rs($=>{const g=c().filter(x=>!x.disabled),b=g.find(x=>x.value===s.value),y=As(g,$,b);y!==void 0&&s.onValueChange(y.value)}),v=$=>{a||(s.onOpenChange(!0),m()),$&&(s.triggerPointerDownPosRef.current={x:Math.round($.pageX),y:Math.round($.pageY)})};return l.jsx(t2,{asChild:!0,...i,children:l.jsx(Y.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Es(s.value)?"":void 0,...o,ref:d,onClick:J(o.onClick,$=>{$.currentTarget.focus(),u.current!=="mouse"&&v($)}),onPointerDown:J(o.onPointerDown,$=>{u.current=$.pointerType;const g=$.target;g.hasPointerCapture($.pointerId)&&g.releasePointerCapture($.pointerId),$.button===0&&$.ctrlKey===!1&&$.pointerType==="mouse"&&(v($),$.preventDefault())}),onKeyDown:J(o.onKeyDown,$=>{const g=f.current!=="";!($.ctrlKey||$.altKey||$.metaKey)&&$.key.length===1&&p($.key),!(g&&$.key===" ")&&q2.includes($.key)&&(v(),$.preventDefault())})})})});ls.displayName=cs;var us="SelectValue",fs=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,d=ke(us,n),{onValueNodeHasChildrenChange:c}=d,u=i!==void 0,f=ne(t,d.onValueNodeChange);return ae(()=>{c(u)},[c,u]),l.jsx(Y.span,{...a,ref:f,style:{pointerEvents:"none"},children:Es(d.value)?l.jsx(l.Fragment,{children:s}):i})});fs.displayName=us;var r3="SelectIcon",$s=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(Y.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$s.displayName=r3;var o3="SelectPortal",ps=e=>l.jsx(qi,{asChild:!0,...e});ps.displayName=o3;var We="SelectContent",hs=h.forwardRef((e,t)=>{const n=ke(We,e.__scopeSelect),[r,o]=h.useState();if(ae(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Gt.createPortal(l.jsx(ms,{scope:e.__scopeSelect,children:l.jsx(an.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(gs,{...e,ref:t})});hs.displayName=We;var $e=10,[ms,je]=dt(We),i3="SelectContentImpl",s3=pt.createSlot("SelectContent.RemoveScroll"),gs=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:$,avoidCollisions:g,...b}=e,y=ke(We,n),[x,w]=h.useState(null),[S,P]=h.useState(null),_=ne(t,R=>w(R)),[O,L]=h.useState(null),[F,z]=h.useState(null),N=dn(n),[M,A]=h.useState(!1),Z=h.useRef(!1);h.useEffect(()=>{if(x)return p2(x)},[x]),S1();const T=h.useCallback(R=>{const[X,...ie]=N().map(q=>q.ref.current),[U]=ie.slice(-1),V=document.activeElement;for(const q of R)if(q===V||(q?.scrollIntoView({block:"nearest"}),q===X&&S&&(S.scrollTop=0),q===U&&S&&(S.scrollTop=S.scrollHeight),q?.focus(),document.activeElement!==V))return},[N,S]),D=h.useCallback(()=>T([O,x]),[T,O,x]);h.useEffect(()=>{M&&D()},[M,D]);const{onOpenChange:E,triggerPointerDownPosRef:B}=y;h.useEffect(()=>{if(x){let R={x:0,y:0};const X=U=>{R={x:Math.abs(Math.round(U.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(U.pageY)-(B.current?.y??0))}},ie=U=>{R.x<=10&&R.y<=10?U.preventDefault():x.contains(U.target)||E(!1),document.removeEventListener("pointermove",X),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,E,B]),h.useEffect(()=>{const R=()=>E(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[E]);const[Q,ee]=Rs(R=>{const X=N().filter(V=>!V.disabled),ie=X.find(V=>V.ref.current===document.activeElement),U=As(X,R,ie);U&&setTimeout(()=>U.ref.current.focus())}),ct=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&(L(R),U&&(Z.current=!0))},[y.value]),lt=h.useCallback(()=>x?.focus(),[x]),Ne=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&z(R)},[y.value]),Ve=r==="popper"?Zn:vs,Fe=Ve===Zn?{side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:$,avoidCollisions:g}:{};return l.jsx(ms,{scope:n,content:x,viewport:S,onViewportChange:P,itemRefCallback:ct,selectedItem:O,onItemLeave:lt,itemTextRefCallback:Ne,focusSelectedItem:D,selectedItemText:F,position:r,isPositioned:M,searchRef:Q,children:l.jsx(as,{as:s3,allowPinchZoom:!0,children:l.jsx(Ni,{asChild:!0,trapped:y.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:J(o,R=>{y.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:l.jsx(_i,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsx(Ve,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:R=>R.preventDefault(),...b,...Fe,onPlaced:()=>A(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:J(b.onKeyDown,R=>{const X=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!X&&R.key.length===1&&ee(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let U=N().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(R.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const V=R.target,q=U.indexOf(V);U=U.slice(q+1)}setTimeout(()=>T(U)),R.preventDefault()}})})})})})})});gs.displayName=i3;var a3="SelectItemAlignedPosition",vs=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ke(We,n),s=je(We,n),[a,d]=h.useState(null),[c,u]=h.useState(null),f=ne(t,_=>u(_)),p=dn(n),m=h.useRef(!1),v=h.useRef(!0),{viewport:$,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=s,x=h.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&$&&g&&b){const _=i.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(i.dir!=="rtl"){const V=F.left-O.left,q=L.left-V,ue=_.left-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.left=fn+"px"}else{const V=O.right-F.right,q=window.innerWidth-L.right-V,ue=window.innerWidth-_.right-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.right=fn+"px"}const z=p(),N=window.innerHeight-$e*2,M=$.scrollHeight,A=window.getComputedStyle(c),Z=parseInt(A.borderTopWidth,10),T=parseInt(A.paddingTop,10),D=parseInt(A.borderBottomWidth,10),E=parseInt(A.paddingBottom,10),B=Z+T+M+E+D,Q=Math.min(g.offsetHeight*5,B),ee=window.getComputedStyle($),ct=parseInt(ee.paddingTop,10),lt=parseInt(ee.paddingBottom,10),Ne=_.top+_.height/2-$e,Ve=N-Ne,Fe=g.offsetHeight/2,R=g.offsetTop+Fe,X=Z+T+R,ie=B-X;if(X<=Ne){const V=z.length>0&&g===z[z.length-1].ref.current;a.style.bottom="0px";const q=c.clientHeight-$.offsetTop-$.offsetHeight,ue=Math.max(Ve,Fe+(V?lt:0)+q+D),Le=X+ue;a.style.height=Le+"px"}else{const V=z.length>0&&g===z[0].ref.current;a.style.top="0px";const ue=Math.max(Ne,Z+$.offsetTop+(V?ct:0)+Fe)+ie;a.style.height=ue+"px",$.scrollTop=X-Ne+$.offsetTop}a.style.margin=`${$e}px 0`,a.style.minHeight=Q+"px",a.style.maxHeight=N+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,a,c,$,g,b,i.dir,r]);ae(()=>x(),[x]);const[w,S]=h.useState();ae(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const P=h.useCallback(_=>{_&&v.current===!0&&(x(),y?.(),v.current=!1)},[x,y]);return l.jsx(c3,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:l.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:l.jsx(Y.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});vs.displayName=a3;var d3="SelectPopperPosition",Zn=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=$e,...i}=e,s=cn(n);return l.jsx(n2,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zn.displayName=d3;var[c3,br]=dt(We,{}),Bn="SelectViewport",bs=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=je(Bn,n),s=br(Bn,n),a=ne(t,i.onViewportChange),d=h.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(an.Slot,{scope:n,children:l.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=s;if(p?.current&&f){const m=Math.abs(d.current-u.scrollTop);if(m>0){const v=window.innerHeight-$e*2,$=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max($,g);if(b<v){const y=b+m,x=Math.min(v,y),w=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});bs.displayName=Bn;var ys="SelectGroup",[l3,u3]=dt(ys),f3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lr();return l.jsx(l3,{scope:n,id:o,children:l.jsx(Y.div,{role:"group","aria-labelledby":o,...r,ref:t})})});f3.displayName=ys;var xs="SelectLabel",$3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=u3(xs,n);return l.jsx(Y.div,{id:o.id,...r,ref:t})});$3.displayName=xs;var Wt="SelectItem",[p3,ws]=dt(Wt),Cs=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=ke(Wt,n),d=je(Wt,n),c=a.value===r,[u,f]=h.useState(i??""),[p,m]=h.useState(!1),v=ne(t,y=>d.itemRefCallback?.(y,r,o)),$=lr(),g=h.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(p3,{scope:n,value:r,disabled:o,textId:$,isSelected:c,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:l.jsx(an.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:l.jsx(Y.div,{role:"option","aria-labelledby":$,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:J(s.onFocus,()=>m(!0)),onBlur:J(s.onBlur,()=>m(!1)),onClick:J(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:J(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:J(s.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:J(s.onPointerMove,y=>{g.current=y.pointerType,o?d.onItemLeave?.():g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(s.onPointerLeave,y=>{y.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:J(s.onKeyDown,y=>{d.searchRef?.current!==""&&y.key===" "||(J2.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});Cs.displayName=Wt;var $t="SelectItemText",Ss=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=ke($t,n),a=je($t,n),d=ws($t,n),c=n3($t,n),[u,f]=h.useState(null),p=ne(t,b=>f(b),d.onItemTextChange,b=>a.itemTextRefCallback?.(b,d.value,d.disabled)),m=u?.textContent,v=h.useMemo(()=>l.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:$,onNativeOptionRemove:g}=c;return ae(()=>($(v),()=>g(v)),[$,g,v]),l.jsxs(l.Fragment,{children:[l.jsx(Y.span,{id:d.textId,...i,ref:p}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Gt.createPortal(i.children,s.valueNode):null]})});Ss.displayName=$t;var _s="SelectItemIndicator",h3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ws(_s,n).isSelected?l.jsx(Y.span,{"aria-hidden":!0,...r,ref:t}):null});h3.displayName=_s;var Un="SelectScrollUpButton",m3=h.forwardRef((e,t)=>{const n=je(Un,e.__scopeSelect),r=br(Un,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollTop>0;i(c)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ps,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});m3.displayName=Un;var Wn="SelectScrollDownButton",g3=h.forwardRef((e,t)=>{const n=je(Wn,e.__scopeSelect),r=br(Wn,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<c;i(u)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ps,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});g3.displayName=Wn;var Ps=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=je("SelectScrollButton",n),s=h.useRef(null),a=dn(n),d=h.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>d(),[d]),ae(()=>{a().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),l.jsx(Y.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{d()})})}),v3="SelectSeparator",b3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Y.div,{"aria-hidden":!0,...r,ref:t})});b3.displayName=v3;var Vn="SelectArrow",y3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn(n),i=ke(Vn,n),s=je(Vn,n);return i.open&&s.position==="popper"?l.jsx(r2,{...o,...r,ref:t}):null});y3.displayName=Vn;var x3="SelectBubbleInput",Ns=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=ne(r,o),s=d2(t);return h.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&u){const f=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[s,t]),l.jsx(Y.select,{...n,style:{...Ji,...n.style},ref:i,defaultValue:t})});Ns.displayName=x3;function Es(e){return e===""||e===void 0}function Rs(e){const t=Ze(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(s=>{const a=n.current+s;t(a),(function d(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function As(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=w3(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const d=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function w3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var C3=ds,S3=ls,_3=fs,P3=$s,N3=ps,E3=hs,R3=bs,A3=Cs,I3=Ss;const Vt=te.forwardRef(({value:e,onChange:t,disabled:n=!1,options:r=[],placeholder:o="Select an option",label:i,className:s},a)=>{const d=r.find(f=>f.id===e),c=d?.text||o,u=f=>{t&&t(f)};return l.jsxs(C3,{value:e,onValueChange:u,disabled:n,children:[l.jsxs(S3,{ref:a,className:I("flex items-center gap-2","w-full","px-4 py-3","rounded","border border-[#ecebf0]","bg-white","text-left","transition-colors","hover:border-[#a29fba]","focus:outline-none focus:ring-0 focus:border-[#a29fba]","data-[state=open]:border-[#a29fba]",n&&"opacity-50 cursor-not-allowed bg-[#f4f4f4]",s),"data-testid":"select-trigger","aria-label":i||o,children:[l.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[(d||i)&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]","data-testid":"select-label",children:i||o}),l.jsx(_3,{asChild:!0,children:l.jsx("span",{className:I("text-sm leading-4","text-[#312e4d]",!d&&!i&&"text-base leading-5"),"data-testid":"select-value",children:c})})]}),l.jsx(P3,{asChild:!0,children:l.jsx(re.ChevronDown,{size:16,className:"text-[#312e4d] shrink-0","data-testid":"select-icon"})})]}),l.jsx(N3,{children:l.jsx(E3,{className:I("overflow-hidden","bg-white","rounded","border border-[#ecebf0]","shadow-lg","z-50","w-[var(--radix-select-trigger-width)]"),position:"popper",sideOffset:4,"data-testid":"select-content",children:l.jsx(R3,{className:"p-1",children:r.map(f=>l.jsx(A3,{value:f.id,className:I("relative flex items-center","px-4 py-2","text-sm leading-4 text-[#312e4d]","rounded","cursor-pointer","select-none","outline-none","transition-colors","hover:bg-[#f4f4f4]","focus:bg-[#f4f4f4]","data-[state=checked]:bg-[#ecebf0]","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none"),"data-testid":`select-option-${f.id}`,children:l.jsx(I3,{children:f.text})},f.id))})})})]})});Vt.displayName="Select";const Is=h.forwardRef(({status:e=!1,disabled:t=!1,onChange:n,className:r,...o},i)=>l.jsx(yr.Root,{ref:i,checked:e,onCheckedChange:n,disabled:t,className:I("relative inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#00995a] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",e?"bg-[#00995a]":"bg-[#e0e0e0]",r),...o,children:l.jsx(yr.Thumb,{className:I("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg transition-transform duration-200 ease-in-out",e?"translate-x-5":"translate-x-0")})}));Is.displayName="Switcher";function O3({columns:e,data:t,rowsPerPage:n=10,showPagination:r=!0,className:o,rowClassName:i,onPageChange:s,currentPage:a,loading:d=!1,emptyMessage:c="No data available"}){const[u,f]=te.useState(1),p=a!==void 0?a:u,m=w=>{a===void 0&&f(w),s?.(w)},v=Math.ceil(t.length/n),$=(p-1)*n,g=$+n,b=t.slice($,g),y=(w,S,P)=>{if(w.render)return w.render(S,P);const _=S[w.key];return _==null?"-":typeof _=="object"&&"primary"in _?l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:_.primary}),_.secondary&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]",children:_.secondary})]}):l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:String(_)})},x=(w,S)=>typeof i=="function"?i(w,S):i;return l.jsxs("div",{className:I("bg-white rounded-xl p-8","flex flex-col gap-4",o),"data-testid":"table-container",children:[l.jsxs("div",{className:"w-full","data-testid":"table-body",children:[l.jsx("div",{className:I("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]","font-semibold text-sm leading-[18px] text-[#312e4d]"),"data-testid":"table-header",children:e.map(w=>l.jsx("div",{className:I("flex-1 min-w-0",w.className),"data-testid":`table-header-${w.key}`,children:w.label},w.key))}),d?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-loading",children:l.jsx("span",{className:"text-[#a29fba]",children:"Loading..."})}):b.length===0?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-empty",children:l.jsx("span",{className:"text-[#a29fba]",children:c})}):b.map((w,S)=>l.jsx("div",{className:I("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]",x(w,S)),"data-testid":`table-row-${S}`,children:e.map(P=>l.jsx("div",{className:I("flex-1 min-w-0",P.className),"data-testid":`table-cell-${S}-${P.key}`,children:y(P,w,S)},P.key))},S))]}),r&&v>1&&!d&&l.jsx("div",{className:"flex justify-end","data-testid":"table-pagination",children:l.jsx(Ci,{currentPage:p,totalPages:v,onPageChange:m})})]})}const T3=({title:e="Table Header",showTitle:t=!1,searchPlaceholder:n="Search by...",searchValue:r="",onSearchChange:o,filters:i=[],showFilters:s=!0,buttons:a=[],showButtons:d=!0,cards:c=[],showCards:u=!1,className:f})=>l.jsxs("div",{className:I("bg-white rounded-xl p-8","flex flex-col gap-4",f),"data-testid":"table-header",children:[t&&e&&l.jsx("h2",{className:"text-xl font-semibold text-[#312e4d]","data-testid":"table-header-title",children:e}),u&&c.length>0&&l.jsx("div",{className:"flex gap-4 w-full","data-testid":"table-header-cards",children:c.map((p,m)=>l.jsxs("div",{className:"bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2","data-testid":`table-header-card-${m}`,children:[p.icon&&l.jsx("div",{className:"shrink-0","data-testid":`table-header-card-icon-${m}`,children:p.icon}),l.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[l.jsx("span",{className:"text-base font-medium text-[#575385] leading-5",children:p.label}),l.jsx("span",{className:"text-xl font-semibold text-[#312e4d] leading-[22px]",children:p.value})]})]},m))}),l.jsxs("div",{className:"relative","data-testid":"table-header-search",children:[l.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 pointer-events-none",children:l.jsx(re.Search,{size:16,className:"text-[#312e4d]"})}),l.jsx("input",{type:"text",value:r,onChange:p=>o?.(p.target.value),placeholder:n,className:I("w-full h-11 pl-10 pr-4 py-3","border border-[#ecebf0] rounded","text-base leading-5","placeholder:text-[#a29fba]","focus:outline-none focus:border-[#a29fba]","transition-colors"),"data-testid":"table-header-search-input"})]}),l.jsxs("div",{className:"flex gap-4 items-center w-full",children:[s&&i.length>0&&l.jsxs("div",{className:"flex gap-4 items-center","data-testid":"table-header-filters",children:[l.jsxs("div",{className:"flex items-center gap-2 py-3",children:[l.jsx(re.ListFilter,{size:16,className:"text-[#312e4d]"}),l.jsx("span",{className:"text-base leading-5 text-[#312e4d]",children:"Filter by"})]}),i.map((p,m)=>l.jsx("div",{className:"min-w-[120px]","data-testid":`table-header-filter-${m}`,children:p.options&&p.options.length>0?l.jsx(Vt,{options:p.options,value:p.value,onChange:v=>p.onChange?.(v),placeholder:p.placeholder||p.label,className:"h-11"}):l.jsxs("button",{className:I("flex items-center gap-2","border border-[#ecebf0] rounded","px-4 py-3 h-11","text-base leading-5 text-[#312e4d]","hover:border-[#a29fba] transition-colors"),onClick:()=>p.onChange?.(""),children:[l.jsx("span",{children:p.placeholder||p.label}),l.jsx(re.ChevronDown,{size:16})]})},p.key))]}),d&&a.length>0&&l.jsx("div",{className:"flex gap-4 items-center ml-auto","data-testid":"table-header-buttons",children:a.map((p,m)=>l.jsx("div",{"data-testid":`table-header-button-${m}`,children:p.isDropdown&&p.dropdownOptions?l.jsx("div",{className:"relative",children:l.jsx(Vt,{options:p.dropdownOptions,value:p.dropdownValue,onChange:v=>p.onDropdownChange?.(v),placeholder:p.label,className:I("h-11",p.variant==="outline"?"border-[#00b56b]":"")})}):l.jsx(Kn,{variant:p.variant==="outline"?"secondary":"primary",onClick:p.onClick,className:"h-11",children:p.label})},m))})]})]}),Os=h.forwardRef(({type:e="light",text:t,icon:n,onClose:r,className:o,...i},s)=>{const d={light:{container:"bg-[#ecebf0]",text:"text-[#575385]",iconColor:"text-[#312e4d]",closeColor:"text-[#312e4d]"},dark:{container:"bg-[#3f3c5e]",text:"text-white",iconColor:"text-white",closeColor:"text-white"}}[e],c=l.jsx(re.CheckCircle,{size:16,className:d.iconColor});return l.jsxs("div",{ref:s,className:I("flex items-center gap-3 p-3 rounded",d.container,o),role:"status","aria-live":"polite",...i,children:[l.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[l.jsx("div",{className:"flex-shrink-0",children:n||c}),l.jsx("div",{className:I("text-base leading-5 whitespace-nowrap",d.text),children:t})]}),r&&l.jsx("button",{type:"button",onClick:r,className:I("flex-shrink-0 opacity-99 hover:opacity-100 transition-opacity",d.closeColor),"aria-label":"Cerrar notificación",children:l.jsx(re.X,{size:12})})]})});Os.displayName="Toasts";exports.ActionCard=Uo;exports.BannerAlerts=Wo;exports.BrandIcons=Vo;exports.Button=Kn;exports.CardsGrid=Go;exports.FeatureCard=Ho;exports.Input=hi;exports.KPICard=vi;exports.KPICardCustom=gi;exports.KPIComparison=dr;exports.KPIComparisonCustom=mi;exports.LOGO_ASSETS=Me;exports.Loader=bi;exports.OptionCard=yi;exports.OrderCard=wi;exports.OrderCardCustom=xi;exports.PaginationLib=Ci;exports.Select=Vt;exports.Switcher=Is;exports.Table=O3;exports.TableHeader=T3;exports.Toasts=Os;exports.buttonVariants=Nn;
59
46
  //# sourceMappingURL=chiperos-ai-components-library.cjs.map