@riab/cpm-archiving 1.1.10-beta.20 → 1.1.10-beta.21

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.
@@ -261,7 +261,7 @@ See the full list of free and premium components here: ${wJ}`),console.groupEnd(
261
261
  font-size: .6rem;
262
262
  font-weight: bold;
263
263
  color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function rn(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function Xne(e,t,n,r){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:nn(()=>[e,n,t,a],(o,u,d,h)=>({table:o,column:u,row:d,cell:h,getValue:h.getValue,renderValue:h.renderValue}),rn(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,n,t,e)},{}),a}function zne(e,t,n,r){var i,a;const u={...e._getDefaultColumnDef(),...t},d=u.accessorKey;let h=(i=(a=u.id)!=null?a:d?typeof String.prototype.replaceAll=="function"?d.replaceAll(".","_"):d.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,b;if(u.accessorFn?b=u.accessorFn:d&&(d.includes(".")?b=y=>{let g=y;for(const A of d.split(".")){var x;g=(x=g)==null?void 0:x[A]}return g}:b=y=>y[u.accessorKey]),!h)throw new Error;let p={id:`${String(h)}`,accessorFn:b,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:nn(()=>[!0],()=>{var y;return[p,...(y=p.columns)==null?void 0:y.flatMap(g=>g.getFlatColumns())]},rn(e.options,"debugColumns")),getLeafColumns:nn(()=>[e._getOrderColumnsFn()],y=>{var g;if((g=p.columns)!=null&&g.length){let x=p.columns.flatMap(A=>A.getLeafColumns());return y(x)}return[p]},rn(e.options,"debugColumns"))};for(const y of e._features)y.createColumn==null||y.createColumn(p,e);return p}const Mi="debugHeaders";function bD(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],u=d=>{d.subHeaders&&d.subHeaders.length&&d.subHeaders.map(u),o.push(d)};return u(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const qne={createTable:e=>{e.getHeaderGroups=nn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var a,o;const u=(a=r==null?void 0:r.map(p=>n.find(y=>y.id===p)).filter(Boolean))!=null?a:[],d=(o=i==null?void 0:i.map(p=>n.find(y=>y.id===p)).filter(Boolean))!=null?o:[],h=n.filter(p=>!(r!=null&&r.includes(p.id))&&!(i!=null&&i.includes(p.id)));return Bg(t,[...u,...h,...d],e)},rn(e.options,Mi)),e.getCenterHeaderGroups=nn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Bg(t,n,e,"center")),rn(e.options,Mi)),e.getLeftHeaderGroups=nn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?i:[];return Bg(t,a,e,"left")},rn(e.options,Mi)),e.getRightHeaderGroups=nn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const a=(i=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?i:[];return Bg(t,a,e,"right")},rn(e.options,Mi)),e.getFooterGroups=nn(()=>[e.getHeaderGroups()],t=>[...t].reverse(),rn(e.options,Mi)),e.getLeftFooterGroups=nn(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),rn(e.options,Mi)),e.getCenterFooterGroups=nn(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),rn(e.options,Mi)),e.getRightFooterGroups=nn(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),rn(e.options,Mi)),e.getFlatHeaders=nn(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),rn(e.options,Mi)),e.getLeftFlatHeaders=nn(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),rn(e.options,Mi)),e.getCenterFlatHeaders=nn(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),rn(e.options,Mi)),e.getRightFlatHeaders=nn(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),rn(e.options,Mi)),e.getCenterLeafHeaders=nn(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rn(e.options,Mi)),e.getLeftLeafHeaders=nn(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rn(e.options,Mi)),e.getRightLeafHeaders=nn(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rn(e.options,Mi)),e.getLeafHeaders=nn(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,a,o,u,d,h;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(d=(h=r[0])==null?void 0:h.headers)!=null?d:[]].map(b=>b.getLeafHeaders()).flat()},rn(e.options,Mi))}};function Bg(e,t,n,r){var i,a;let o=0;const u=function(y,g){g===void 0&&(g=1),o=Math.max(o,g),y.filter(x=>x.getIsVisible()).forEach(x=>{var A;(A=x.columns)!=null&&A.length&&u(x.columns,g+1)},0)};u(e);let d=[];const h=(y,g)=>{const x={depth:g,id:[r,`${g}`].filter(Boolean).join("_"),headers:[]},A=[];y.forEach(w=>{const C=[...A].reverse()[0],M=w.column.depth===x.depth;let P,R=!1;if(M&&w.column.parent?P=w.column.parent:(P=w.column,R=!0),C&&(C==null?void 0:C.column)===P)C.subHeaders.push(w);else{const S=bD(n,P,{id:[r,g,P.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:R,placeholderId:R?`${A.filter(O=>O.column===P).length}`:void 0,depth:g,index:A.length});S.subHeaders.push(w),A.push(S)}x.headers.push(w),w.headerGroup=x}),d.push(x),g>0&&h(A,g-1)},b=t.map((y,g)=>bD(n,y,{depth:o,index:g}));h(b,o-1),d.reverse();const p=y=>y.filter(x=>x.column.getIsVisible()).map(x=>{let A=0,w=0,C=[0];x.subHeaders&&x.subHeaders.length?(C=[],p(x.subHeaders).forEach(P=>{let{colSpan:R,rowSpan:S}=P;A+=R,C.push(S)})):A=1;const M=Math.min(...C);return w=w+M,x.colSpan=A,x.rowSpan=w,{colSpan:A,rowSpan:w}});return p((i=(a=d[0])==null?void 0:a.headers)!=null?i:[]),d}const f6=(e,t,n,r,i,a,o)=>{let u={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:d=>{if(u._valuesCache.hasOwnProperty(d))return u._valuesCache[d];const h=e.getColumn(d);if(h!=null&&h.accessorFn)return u._valuesCache[d]=h.accessorFn(u.original,r),u._valuesCache[d]},getUniqueValues:d=>{if(u._uniqueValuesCache.hasOwnProperty(d))return u._uniqueValuesCache[d];const h=e.getColumn(d);if(h!=null&&h.accessorFn)return h.columnDef.getUniqueValues?(u._uniqueValuesCache[d]=h.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[d]):(u._uniqueValuesCache[d]=[u.getValue(d)],u._uniqueValuesCache[d])},renderValue:d=>{var h;return(h=u.getValue(d))!=null?h:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Lne(u.subRows,d=>d.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let d=[],h=u;for(;;){const b=h.getParentRow();if(!b)break;d.push(b),h=b}return d.reverse()},getAllCells:nn(()=>[e.getAllLeafColumns()],d=>d.map(h=>Xne(e,u,h,h.id)),rn(e.options,"debugRows")),_getAllCellsByColumnId:nn(()=>[u.getAllCells()],d=>d.reduce((h,b)=>(h[b.column.id]=b,h),{}),rn(e.options,"debugRows"))};for(let d=0;d<e._features.length;d++){const h=e._features[d];h==null||h.createRow==null||h.createRow(u,e)}return u},Qne={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},jX=(e,t,n)=>{var r,i;const a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};jX.autoRemove=e=>fs(e);const TX=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};TX.autoRemove=e=>fs(e);const NX=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};NX.autoRemove=e=>fs(e);const kX=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};kX.autoRemove=e=>fs(e);const _X=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});_X.autoRemove=e=>fs(e)||!(e!=null&&e.length);const BX=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});BX.autoRemove=e=>fs(e)||!(e!=null&&e.length);const FX=(e,t,n)=>e.getValue(t)===n;FX.autoRemove=e=>fs(e);const LX=(e,t,n)=>e.getValue(t)==n;LX.autoRemove=e=>fs(e);const h6=(e,t,n)=>{let[r,i]=n;const a=e.getValue(t);return a>=r&&a<=i};h6.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){const u=a;a=o,o=u}return[a,o]};h6.autoRemove=e=>fs(e)||fs(e[0])&&fs(e[1]);const So={includesString:jX,includesStringSensitive:TX,equalsString:NX,arrIncludes:kX,arrIncludesAll:_X,arrIncludesSome:BX,equals:FX,weakEquals:LX,inNumberRange:h6};function fs(e){return e==null||e===""}const Hne={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ra("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?So.includesString:typeof r=="number"?So.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?So.equals:Array.isArray(r)?So.arrIncludes:So.weakEquals},e.getFilterFn=()=>{var n,r;return ob(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:So[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),a=r==null?void 0:r.find(b=>b.id===e.id),o=Wl(n,a?a.value:void 0);if(yD(i,o,e)){var u;return(u=r==null?void 0:r.filter(b=>b.id!==e.id))!=null?u:[]}const d={id:e.id,value:o};if(a){var h;return(h=r==null?void 0:r.map(b=>b.id===e.id?d:b))!=null?h:[]}return r!=null&&r.length?[...r,d]:[d]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var a;return(a=Wl(t,i))==null?void 0:a.filter(o=>{const u=n.find(d=>d.id===o.id);if(u){const d=u.getFilterFn();if(yD(d,o.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function yD(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t=="undefined"||typeof t=="string"&&!t}const Vne=(e,t,n)=>n.reduce((r,i)=>{const a=i.getValue(e);return r+(typeof a=="number"?a:0)},0),Une=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},Wne=(e,t,n)=>{let r;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},Yne=(e,t,n)=>{let r,i;return n.forEach(a=>{const o=a.getValue(e);o!=null&&(r===void 0?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}),[r,i]},Gne=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},Kne=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!Fne(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,o)=>a-o);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},Zne=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),$ne=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Jne=(e,t)=>t.length,_x={sum:Vne,min:Une,max:Wne,extent:Yne,mean:Gne,median:Kne,unique:Zne,uniqueCount:$ne,count:Jne},ere={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ra("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n!=null?n:[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return _x.sum;if(Object.prototype.toString.call(r)==="[object Date]")return _x.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return ob(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:_x[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function tre(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...r]}const nre={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ra("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=nn(n=>[g0(t,n)],n=>n.findIndex(r=>r.id===e.id),rn(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=g0(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=g0(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=nn(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],u=[...i];for(;u.length&&o.length;){const d=o.shift(),h=u.findIndex(b=>b.id===d);h>-1&&a.push(u.splice(h,1)[0])}a=[...a,...u]}return tre(a,n,r)},rn(e.options,"debugTable"))}},Bx=()=>({left:[],right:[]}),rre={getInitialState:e=>({columnPinning:Bx(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ra("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(n==="right"){var u,d;return{left:((u=i==null?void 0:i.left)!=null?u:[]).filter(p=>!(r!=null&&r.includes(p))),right:[...((d=i==null?void 0:i.right)!=null?d:[]).filter(p=>!(r!=null&&r.includes(p))),...r]}}if(n==="left"){var h,b;return{left:[...((h=i==null?void 0:i.left)!=null?h:[]).filter(p=>!(r!=null&&r.includes(p))),...r],right:((b=i==null?void 0:i.right)!=null?b:[]).filter(p=>!(r!=null&&r.includes(p)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(p=>!(r!=null&&r.includes(p))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(p=>!(r!=null&&r.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,a,o;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(u=>u.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>i==null?void 0:i.includes(u));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=nn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const a=[...r!=null?r:[],...i!=null?i:[]];return n.filter(o=>!a.includes(o.column.id))},rn(t.options,"debugRows")),e.getLeftVisibleCells=nn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r!=null?r:[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),rn(t.options,"debugRows")),e.getRightVisibleCells=nn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r!=null?r:[]).map(a=>n.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),rn(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Bx():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Bx())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=nn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n!=null?n:[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rn(e.options,"debugColumns")),e.getRightLeafColumns=nn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n!=null?n:[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rn(e.options,"debugColumns")),e.getCenterLeafColumns=nn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n!=null?n:[],...r!=null?r:[]];return t.filter(a=>!i.includes(a.id))},rn(e.options,"debugColumns"))}};function ire(e){return e||(typeof document!="undefined"?document:null)}const Fg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Fx=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),are={getDefaultColumnDef:()=>Fg,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fx(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ra("columnSizing",e),onColumnSizingInfoChange:Ra("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Fg.minSize,(r=a!=null?a:e.columnDef.size)!=null?r:Fg.size),(i=e.columnDef.maxSize)!=null?i:Fg.maxSize)},e.getStart=nn(n=>[n,g0(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),rn(t.options,"debugColumns")),e.getAfter=nn(n=>[n,g0(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),rn(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),Lx(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),u=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[r.id,r.getSize()]],d=Lx(a)?Math.round(a.touches[0].clientX):a.clientX,h={},b=(C,M)=>{typeof M=="number"&&(t.setColumnSizingInfo(P=>{var R,S;const O=t.options.columnResizeDirection==="rtl"?-1:1,D=(M-((R=P==null?void 0:P.startOffset)!=null?R:0))*O,j=Math.max(D/((S=P==null?void 0:P.startSize)!=null?S:0),-.999999);return P.columnSizingStart.forEach(T=>{let[N,_]=T;h[N]=Math.round(Math.max(_+_*j,0)*100)/100}),{...P,deltaOffset:D,deltaPercentage:j}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing(P=>({...P,...h})))},p=C=>b("move",C),y=C=>{b("end",C),t.setColumnSizingInfo(M=>({...M,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=ire(n),x={moveHandler:C=>p(C.clientX),upHandler:C=>{g==null||g.removeEventListener("mousemove",x.moveHandler),g==null||g.removeEventListener("mouseup",x.upHandler),y(C.clientX)}},A={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),p(C.touches[0].clientX),!1),upHandler:C=>{var M;g==null||g.removeEventListener("touchmove",A.moveHandler),g==null||g.removeEventListener("touchend",A.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),y((M=C.touches[0])==null?void 0:M.clientX)}},w=sre()?{passive:!1}:!1;Lx(a)?(g==null||g.addEventListener("touchmove",A.moveHandler,w),g==null||g.addEventListener("touchend",A.upHandler,w)):(g==null||g.addEventListener("mousemove",x.moveHandler,w),g==null||g.addEventListener("mouseup",x.upHandler,w)),t.setColumnSizingInfo(C=>({...C,startOffset:d,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Fx():(n=e.initialState.columnSizingInfo)!=null?n:Fx())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let Lg=null;function sre(){if(typeof Lg=="boolean")return Lg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Lg=e,Lg}function Lx(e){return e.type==="touchstart"}const ore={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ra("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n!=null?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=nn(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),rn(t.options,"debugRows")),e.getVisibleCells=nn(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],rn(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>nn(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),rn(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function g0(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const lre={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},ure={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ra("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>So.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return ob(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:So[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},cre={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ra("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{(r!=null?r:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,a;e.setExpanded(r?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");r=Math.max(r,o.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const a=r===!0?!0:!!(r!=null&&r[e.id]);let o={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{o[u]=!0}):o=r,n=(i=n)!=null?i:!a,!a&&n)return{...o,[e.id]:!0};if(a&&!n){const{[e.id]:u,...d}=o;return d}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},T4=0,N4=10,Xx=()=>({pageIndex:T4,pageSize:N4}),dre={getInitialState:e=>({...e,pagination:{...Xx(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ra("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=a=>Wl(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Xx():(i=e.initialState.pagination)!=null?i:Xx())},e.setPageIndex=r=>{e.setPagination(i=>{let a=Wl(r,i.pageIndex);const o=typeof e.options.pageCount=="undefined"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=r=>{var i,a;e.setPageIndex(r?T4:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:T4)},e.resetPageSize=r=>{var i,a;e.setPageSize(r?N4:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:N4)},e.setPageSize=r=>{e.setPagination(i=>{const a=Math.max(1,Wl(r,i.pageSize)),o=i.pageSize*i.pageIndex,u=Math.floor(o/a);return{...i,pageIndex:u,pageSize:a}})},e.setPageCount=r=>e.setPagination(i=>{var a;let o=Wl(r,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=nn(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,o)=>o)),i},rn(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},zx=()=>({top:[],bottom:[]}),fre={getInitialState:e=>({rowPinning:zx(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ra("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const a=r?e.getLeafRows().map(d=>{let{id:h}=d;return h}):[],o=i?e.getParentRows().map(d=>{let{id:h}=d;return h}):[],u=new Set([...o,e.id,...a]);t.setRowPinning(d=>{var h,b;if(n==="bottom"){var p,y;return{top:((p=d==null?void 0:d.top)!=null?p:[]).filter(A=>!(u!=null&&u.has(A))),bottom:[...((y=d==null?void 0:d.bottom)!=null?y:[]).filter(A=>!(u!=null&&u.has(A))),...Array.from(u)]}}if(n==="top"){var g,x;return{top:[...((g=d==null?void 0:d.top)!=null?g:[]).filter(A=>!(u!=null&&u.has(A))),...Array.from(u)],bottom:((x=d==null?void 0:d.bottom)!=null?x:[]).filter(A=>!(u!=null&&u.has(A)))}}return{top:((h=d==null?void 0:d.top)!=null?h:[]).filter(A=>!(u!=null&&u.has(A))),bottom:((b=d==null?void 0:d.bottom)!=null?b:[]).filter(A=>!(u!=null&&u.has(A)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r!=null?r:i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>i==null?void 0:i.includes(u));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const a=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:u}=o;return u});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?zx():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:zx())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n!=null?n:[]).map(o=>{const u=e.getRow(o,!0);return u.getIsAllParentsExpanded()?u:null}):(n!=null?n:[]).map(o=>t.find(u=>u.id===o))).filter(Boolean).map(o=>({...o,position:r}))},e.getTopRows=nn(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),rn(e.options,"debugRows")),e.getBottomRows=nn(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),rn(e.options,"debugRows")),e.getCenterRows=nn(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n!=null?n:[],...r!=null?r:[]]);return t.filter(a=>!i.has(a.id))},rn(e.options,"debugRows"))}},hre={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ra("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t!="undefined"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t!="undefined"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(a=>{k4(i,a.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=nn(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?qx(e,n):{rows:[],flatRows:[],rowsById:{}},rn(e.options,"debugTable")),e.getFilteredSelectedRowModel=nn(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?qx(e,n):{rows:[],flatRows:[],rowsById:{}},rn(e.options,"debugTable")),e.getGroupedSelectedRowModel=nn(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?qx(e,n):{rows:[],flatRows:[],rowsById:{}},rn(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(n=typeof n!="undefined"?n:!i,e.getCanSelect()&&i===n)return a;const u={...a};return k4(u,e.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return m6(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return _4(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return _4(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},k4=(e,t,n,r,i)=>{var a;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(u=>k4(e,u.id,n,r,i))};function qx(e,t){const n=e.getState().rowSelection,r=[],i={},a=function(o,u){return o.map(d=>{var h;const b=m6(d,n);if(b&&(r.push(d),i[d.id]=d),(h=d.subRows)!=null&&h.length&&(d={...d,subRows:a(d.subRows)}),b)return d}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function m6(e,t){var n;return(n=t[e.id])!=null?n:!1}function _4(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(m6(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const u=_4(o,t);u==="all"?a=!0:(u==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const B4=/([0-9]+)/gm,mre=(e,t,n)=>XX(eu(e.getValue(n)).toLowerCase(),eu(t.getValue(n)).toLowerCase()),pre=(e,t,n)=>XX(eu(e.getValue(n)),eu(t.getValue(n))),gre=(e,t,n)=>p6(eu(e.getValue(n)).toLowerCase(),eu(t.getValue(n)).toLowerCase()),vre=(e,t,n)=>p6(eu(e.getValue(n)),eu(t.getValue(n))),bre=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},yre=(e,t,n)=>p6(e.getValue(n),t.getValue(n));function p6(e,t){return e===t?0:e>t?1:-1}function eu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function XX(e,t){const n=e.split(B4).filter(Boolean),r=t.split(B4).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),o=parseInt(i,10),u=parseInt(a,10),d=[o,u].sort();if(isNaN(d[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(d[1]))return isNaN(o)?-1:1;if(o>u)return 1;if(u>o)return-1}return n.length-r.length}const Im={alphanumeric:mre,alphanumericCaseSensitive:pre,text:gre,textCaseSensitive:vre,datetime:bre,basic:yre},xre={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ra("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Im.datetime;if(typeof a=="string"&&(r=!0,a.split(B4).length>1))return Im.alphanumeric}return r?Im.text:Im.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return ob(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Im[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),a=typeof n!="undefined"&&n!==null;t.setSorting(o=>{const u=o==null?void 0:o.find(g=>g.id===e.id),d=o==null?void 0:o.findIndex(g=>g.id===e.id);let h=[],b,p=a?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&r?u?b="toggle":b="add":o!=null&&o.length&&d!==o.length-1?b="replace":u?b="toggle":b="replace",b==="toggle"&&(a||i||(b="remove")),b==="add"){var y;h=[...o,{id:e.id,desc:p}],h.splice(0,h.length-((y=t.options.maxMultiSortColCount)!=null?y:Number.MAX_SAFE_INTEGER))}else b==="toggle"?h=o.map(g=>g.id===e.id?{...g,desc:p}:g):b==="remove"?h=o.filter(g=>g.id!==e.id):h=[{id:e.id,desc:p}];return h})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Are=[qne,ore,nre,rre,Qne,Hne,lre,ure,xre,ere,cre,dre,fre,hre,are];function wre(e){var t,n;const r=[...Are,...(t=e._features)!=null?t:[]];let i={_features:r};const a=i._features.reduce((y,g)=>Object.assign(y,g.getDefaultOptions==null?void 0:g.getDefaultOptions(i)),{}),o=y=>i.options.mergeOptions?i.options.mergeOptions(a,y):{...a,...y};let d={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(y=>{var g;d=(g=y.getInitialState==null?void 0:y.getInitialState(d))!=null?g:d});const h=[];let b=!1;const p={_features:r,options:{...a,...e},initialState:d,_queue:y=>{h.push(y),b||(b=!0,Promise.resolve().then(()=>{for(;h.length;)h.shift()();b=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{i.setState(i.initialState)},setOptions:y=>{const g=Wl(y,i.options);i.options=o(g)},getState:()=>i.options.state,setState:y=>{i.options.onStateChange==null||i.options.onStateChange(y)},_getRowId:(y,g,x)=>{var A;return(A=i.options.getRowId==null?void 0:i.options.getRowId(y,g,x))!=null?A:`${x?[x.id,g].join("."):g}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(y,g)=>{let x=(g?i.getPrePaginationRowModel():i.getRowModel()).rowsById[y];if(!x&&(x=i.getCoreRowModel().rowsById[y],!x))throw new Error;return x},_getDefaultColumnDef:nn(()=>[i.options.defaultColumn],y=>{var g;return y=(g=y)!=null?g:{},{header:x=>{const A=x.header.column.columnDef;return A.accessorKey?A.accessorKey:A.accessorFn?A.id:null},cell:x=>{var A,w;return(A=(w=x.renderValue())==null||w.toString==null?void 0:w.toString())!=null?A:null},...i._features.reduce((x,A)=>Object.assign(x,A.getDefaultColumnDef==null?void 0:A.getDefaultColumnDef()),{}),...y}},rn(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:nn(()=>[i._getColumnDefs()],y=>{const g=function(x,A,w){return w===void 0&&(w=0),x.map(C=>{const M=zne(i,C,w,A),P=C;return M.columns=P.columns?g(P.columns,M,w+1):[],M})};return g(y)},rn(e,"debugColumns")),getAllFlatColumns:nn(()=>[i.getAllColumns()],y=>y.flatMap(g=>g.getFlatColumns()),rn(e,"debugColumns")),_getAllFlatColumnsById:nn(()=>[i.getAllFlatColumns()],y=>y.reduce((g,x)=>(g[x.id]=x,g),{}),rn(e,"debugColumns")),getAllLeafColumns:nn(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(y,g)=>{let x=y.flatMap(A=>A.getLeafColumns());return g(x)},rn(e,"debugColumns")),getColumn:y=>i._getAllFlatColumnsById()[y]};Object.assign(i,p);for(let y=0;y<i._features.length;y++){const g=i._features[y];g==null||g.createTable==null||g.createTable(i)}return i}function qn(){return e=>nn(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,o){a===void 0&&(a=0);const u=[];for(let h=0;h<i.length;h++){const b=f6(e,e._getRowId(i[h],h,o),i[h],h,a,void 0,o==null?void 0:o.id);if(n.flatRows.push(b),n.rowsById[b.id]=b,u.push(b),e.options.getSubRows){var d;b.originalSubRows=e.options.getSubRows(i[h],h),(d=b.originalSubRows)!=null&&d.length&&(b.subRows=r(b.originalSubRows,a+1,b))}}return u};return n.rows=r(t),n},rn(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Ere(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Sre(e,t,n){return n.options.filterFromLeafRows?Cre(e,t,n):Rre(e,t,n)}function Cre(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,u=function(d,h){h===void 0&&(h=0);const b=[];for(let y=0;y<d.length;y++){var p;let g=d[y];const x=f6(n,g.id,g.original,g.index,g.depth,void 0,g.parentId);if(x.columnFilters=g.columnFilters,(p=g.subRows)!=null&&p.length&&h<o){if(x.subRows=u(g.subRows,h+1),g=x,t(g)&&!x.subRows.length){b.push(g),a[g.id]=g,i.push(g);continue}if(t(g)||x.subRows.length){b.push(g),a[g.id]=g,i.push(g);continue}}else g=x,t(g)&&(b.push(g),a[g.id]=g,i.push(g))}return b};return{rows:u(e),flatRows:i,rowsById:a}}function Rre(e,t,n){var r;const i=[],a={},o=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,u=function(d,h){h===void 0&&(h=0);const b=[];for(let y=0;y<d.length;y++){let g=d[y];if(t(g)){var p;if((p=g.subRows)!=null&&p.length&&h<o){const A=f6(n,g.id,g.original,g.index,g.depth,void 0,g.parentId);A.subRows=u(g.subRows,h+1),g=A}b.push(g),i.push(g),a[g.id]=g}}return b};return{rows:u(e),flatRows:i,rowsById:a}}function tr(){return e=>nn(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let y=0;y<t.flatRows.length;y++)t.flatRows[y].columnFilters={},t.flatRows[y].columnFiltersMeta={};return t}const i=[],a=[];(n!=null?n:[]).forEach(y=>{var g;const x=e.getColumn(y.id);if(!x)return;const A=x.getFilterFn();A&&i.push({id:y.id,filterFn:A,resolvedValue:(g=A.resolveFilterValue==null?void 0:A.resolveFilterValue(y.value))!=null?g:y.value})});const o=(n!=null?n:[]).map(y=>y.id),u=e.getGlobalFilterFn(),d=e.getAllLeafColumns().filter(y=>y.getCanGlobalFilter());r&&u&&d.length&&(o.push("__global__"),d.forEach(y=>{var g;a.push({id:y.id,filterFn:u,resolvedValue:(g=u.resolveFilterValue==null?void 0:u.resolveFilterValue(r))!=null?g:r})}));let h,b;for(let y=0;y<t.flatRows.length;y++){const g=t.flatRows[y];if(g.columnFilters={},i.length)for(let x=0;x<i.length;x++){h=i[x];const A=h.id;g.columnFilters[A]=h.filterFn(g,A,h.resolvedValue,w=>{g.columnFiltersMeta[A]=w})}if(a.length){for(let x=0;x<a.length;x++){b=a[x];const A=b.id;if(b.filterFn(g,A,b.resolvedValue,w=>{g.columnFiltersMeta[A]=w})){g.columnFilters.__global__=!0;break}}g.columnFilters.__global__!==!0&&(g.columnFilters.__global__=!1)}}const p=y=>{for(let g=0;g<o.length;g++)if(y.columnFilters[o[g]]===!1)return!1;return!0};return Sre(t.rows,p,e)},rn(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function dr(e){return t=>nn(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:a}=n;let{rows:o,flatRows:u,rowsById:d}=r;const h=i*a,b=h+i;o=o.slice(h,b);let p;t.options.paginateExpandedRows?p={rows:o,flatRows:u,rowsById:d}:p=Ere({rows:o,flatRows:u,rowsById:d}),p.flatRows=[];const y=g=>{p.flatRows.push(g),g.subRows.length&&g.subRows.forEach(y)};return p.rows.forEach(y),p},rn(t.options,"debugTable"))}function lu(){return e=>nn(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],a=r.filter(d=>{var h;return(h=e.getColumn(d.id))==null?void 0:h.getCanSort()}),o={};a.forEach(d=>{const h=e.getColumn(d.id);h&&(o[d.id]={sortUndefined:h.columnDef.sortUndefined,invertSorting:h.columnDef.invertSorting,sortingFn:h.getSortingFn()})});const u=d=>{const h=d.map(b=>({...b}));return h.sort((b,p)=>{for(let g=0;g<a.length;g+=1){var y;const x=a[g],A=o[x.id],w=A.sortUndefined,C=(y=x==null?void 0:x.desc)!=null?y:!1;let M=0;if(w){const P=b.getValue(x.id),R=p.getValue(x.id),S=P===void 0,O=R===void 0;if(S||O){if(w==="first")return S?-1:1;if(w==="last")return S?1:-1;M=S&&O?0:S?w:-w}}if(M===0&&(M=A.sortingFn(b,p,x.id)),M!==0)return C&&(M*=-1),A.invertSorting&&(M*=-1),M}return b.index-p.index}),h.forEach(b=>{var p;i.push(b),(p=b.subRows)!=null&&p.length&&(b.subRows=u(b.subRows))}),h};return{rows:u(n.rows),flatRows:i,rowsById:n.rowsById}},rn(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function C1(e,t){return e?Ire(e)?k.createElement(e,t):e:null}function Ire(e){return Mre(e)||typeof e=="function"||Ore(e)}function Mre(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Ore(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Qn(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=k.useState(()=>({current:wre(t)})),[r,i]=k.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}function Vr({maxHeight:e=null,table:t,searchPlaceholder:n="Search...",itemsLabel:r="Items",hasGlobalFilter:i=!1,filterButtons:a=[],onRowClick:o,emptyMessage:u="No items found",bordered:d=!1,pageSizes:h=[10,20,30,50],rowSelectedCheck:b=null,paginationControlLabel:p=null,collapseSearchAndFilters:y=!1,footer:g,showItemsPerPageLabel:x=!1,outerBorder:A=!0}){const w=t.getPageCount(),C=t.getState().pagination.pageIndex+1,M=t.getState().pagination.pageSize,P=t.getFilteredRowModel().rows.length,R=C===1?1:(C-1)*M+1,S=Math.min(R+M-1,P),O=()=>{const N=[],_=[],L=Math.max(1,C-1),q=Math.min(w,C+1);for(let z=L;z<=q;z++)N.push(z);return L>1&&_.push(0),_.push(...N),q<w&&_.push(0),_},D=T=>{t.setGlobalFilter(T.target.value),t.setPageIndex(0)},j=O();return c.jsx("div",{className:"max-w-full",children:c.jsxs("div",{className:`rounded overflow-hidden ${A&&"border-l border border-brand-dark-800"}`,children:[i||a.length>0?c.jsxs("div",{className:`flex flex-col md:flex-row bg-near-neutral-300 p-4 ${y?"":"gap-4"}`,children:[c.jsx("div",{className:"grow",children:c.jsx("div",{className:"relative",children:i&&c.jsxs(c.Fragment,{children:[c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-brand-dark-800 h-5 w-5 ",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),c.jsx("input",{type:"text",placeholder:n,value:t.getState().globalFilter,onChange:D,className:`mb-0! w-full pl-10 pr-4 py-3 border border-brand-dark-50 rounded-md bg-white text-brand-dark-800 focus:outline-none focus:border focus:border-brand-dark-500
264
- ${y?"rounded-tr-none rounded-br-none":""}`})]})})}),a.map((T,N)=>c.jsxs(cn,{onClick:T.onClick,className:`${y&&N==0?"rounded-tl-none rounded-bl-none":""}`,children:[T.icon?c.jsx(de,{style:{fill:T.active?"white":"var(--color-brand-dark-800)"},icon:T.icon,size:"medium",className:"mr-1"}):"",T.label]},N))]}):null,c.jsx("div",{className:`overflow-x-auto ${e}`,children:c.jsxs("table",{className:`min-w-full border-collapse table-fixed ${d?"table-bordered":""}`,children:[c.jsx("thead",{className:"text-brand-dark-800",children:c.jsx("tr",{children:t.getHeaderGroups().map(T=>T.headers.map(N=>c.jsx("th",{className:"py-4 px-6 text-left bg-near-neutral-300",style:{width:N.getSize()?N.getSize():"",cursor:N.column.getCanSort()?"pointer":"default"},children:N.isPlaceholder?null:N.column.columnDef.header?C1(N.column.columnDef.header,N.getContext()):N.id},N.id)))})}),c.jsx("tbody",{children:t.getRowModel().rows.length>0?t.getRowModel().rows.map(T=>c.jsx("tr",{onClick:()=>o==null?void 0:o(T),className:`group ${o?"hover:cursor-pointer":""} ${b!=null?b(T)?"bg-near-neutral-300":"":T.getIsSelected()?"bg-near-neutral-300":""}`,children:T.getVisibleCells().map(N=>c.jsx("td",{className:`py-4 px-6 bg-white group-hover:bg-near-neutral-300 ${d?"border border-near-neutral-300 p-2":""}`,children:C1(N.column.columnDef.cell,N.getContext())},N.id))},T.id)):c.jsx("tr",{children:c.jsx("td",{colSpan:t.getAllColumns().length,className:"py-4 px-6 text-center",children:u})})})]})}),c.jsx("div",{className:`flex items-center justify-between bg-near-neutral-300 text-brand-dark-800 ${d?"":"border-t border-brand-dark-500"} ${j.length?"":"py-5"} px-4 rounded-b-lg`,children:g?g({table:t}):c.jsxs(c.Fragment,{children:[c.jsx("div",{children:c.jsx("p",{children:`${R} - ${S} of ${P} ${p!=null?p:r.toLowerCase()}`})}),c.jsxs("div",{className:"flex gap-5",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{className:"p-1 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:UL,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:tb,className:"block w-4 h-4 fill-current"})}),c.jsx("div",{className:"flex items-center space-x-2",children:j.map((T,N)=>{if(T===0)return c.jsx("span",{children:"..."},N);const _=C===T;return c.jsx("button",{className:`px-3 py-5 w-12 ${_?"inset-shadow-highlight text-brand-medium-500":""}`,onClick:()=>t.setPageIndex(T-1),children:T},N)})}),c.jsx("button",{className:"p-1 text-brand-dark-800 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:eb,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-brand-dark-800 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:VL,className:"block w-4 h-4 fill-current"})})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[h.length===1?c.jsx("span",{children:h.at(0)}):c.jsx("select",{className:"w-25 bg-white text-brand-dark-800 rounded p-1",value:t.getState().pagination.pageSize,onChange:T=>t.setPageSize(Number(T.target.value)),children:h.map(T=>c.jsx("option",{value:T,children:T},T))}),x&&c.jsxs("span",{children:[r," per page"]})]})]})]})})]})})}function Dre({imageUrl:e,name:t,iconClass:n,svgIcon:r,imageAlt:i,buttonClasses:a}){return e?k.createElement("img",{role:"presentation",className:or(nf.icon({c:a})),alt:i,src:e}):t||r?k.createElement(Q5,{className:or(nf.icon({c:a})),name:t,icon:r}):n?k.createElement("span",{role:"presentation",className:or(nf.icon({c:a}),n)}):null}const tu=k.forwardRef((e,t)=>{const{children:n,togglable:r,dir:i,disabled:a,selected:o,icon:u,iconClass:d,svgIcon:h,imageUrl:b,imageAlt:p,className:y,startIcon:g,endIcon:x,onClick:A,size:w=Xg.size,rounded:C=Xg.rounded,fillMode:M=Xg.fillMode,themeColor:P=Xg.themeColor,...R}=e,S=()=>{r&&o===void 0&&(D.current=!T,N(!T))},O=J=>{S(),A&&A.call(void 0,J)},D=k.useRef(void 0),j=k.useRef(null),[T,N]=k.useState(r===!0&&o===!0),_=h!==void 0||u!==void 0||d!==void 0||b!==void 0,L=n!==void 0,q=W0(),z=e.unstyled||q,B=z&&z.uButton;k.useImperativeHandle(t,()=>({element:j.current,selected:D.current!==void 0?D.current:T})),k.useMemo(()=>{r&&o!==void 0&&o!==T&&N(o)},[r,o]),k.useEffect(()=>{D.current=void 0},[T]);const X=Dre({name:u,svgIcon:h,iconClass:d,imageUrl:b,imageAlt:p,buttonClasses:B}),V=J=>k.cloneElement(J,{className:or(nf.icon({c:B}))});return k.createElement("button",{ref:j,"aria-pressed":r?T:void 0,...R,dir:i,disabled:a,onClick:O,className:or(nf.wrapper({c:B,isRtl:i==="rtl",selected:T,disabled:a,size:w,fillMode:M,rounded:C,themeColor:P,iconButton:!L&&_}),y)},g&&V(g),X,n&&k.createElement("span",{className:or(nf.text({c:B}))},n),x&&V(x))}),Xg={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};tu.displayName="KendoReactButton";tu.propTypes={children:fe.node,selected:fe.bool,togglable:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,imageAlt:fe.string,size:fe.oneOf([null,"small","medium","large"]),rounded:fe.oneOf([null,"small","medium","large","full"]),fillMode:fe.oneOf([null,"flat","link","outline","solid","clear"]),themeColor:fe.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};const g6=e=>{const t=W0(),n=e.unstyled||t,r=n&&n.uDropDownButton,i=k.useCallback(d=>{e.onClick(d,e.index)},[e]),a=e.dataItem.render||e.item||(e.item===void 0?e.render:null),o=e.dataItem.text!==void 0?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,u=k.createElement("li",{id:e.id,className:or(Zd.li({c:r,focused:e.focused}),e.className),tabIndex:-1,onClick:i,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},k.createElement("span",{tabIndex:-1,className:or(Zd.link({c:r,selected:e.dataItem.selected,disabled:e.dataItem.disabled})),key:"icon"},a?k.createElement(a,{item:e.dataItem,itemIndex:e.index}):k.createElement(k.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass||e.dataItem.svgIcon)&&k.createElement(Q5,{className:e.dataItem.iconClass,name:e.dataItem.icon,icon:e.dataItem.svgIcon}),e.dataItem.imageUrl&&k.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),o&&k.createElement("span",{className:"k-menu-link-text"},o))));return e.item!==void 0&&e.render!==void 0?e.render.call(void 0,u,e):u};g6.displayName="KendoReactButtonItem";const zX=class extends k.Component{render(){return null}};zX.propTypes={text:fe.string,icon:fe.string,iconClass:fe.string,imageUrl:fe.string,disabled:fe.bool,render:fe.any};let Pre=zX;const qX=(e,t,n,r)=>{if(n)return e;const i=Math.min(r-1,Math.max(0,e));switch(t){case Fn.enter:case Fn.space:case Fn.esc:return-1;case Fn.up:case Fn.left:return i-1<0?r-1:i-1;case Fn.down:case Fn.right:return i+1>=r?0:i+1;case Fn.home:return 0;case Fn.end:return r-1;default:return e}};const xD=(e,t,n)=>{e.style.transitionDuration="",t&&e.classList.remove(...t.split(" ")),n&&e.classList.remove(...n.split(" "))},jre=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),Tre=(e,t,n,r,i,a)=>{if(n===0)return i();const o=or(Zu.slide({direction:t,type:r,c:a})),u=or(Zu.slideActive({direction:t,type:r,c:a})),d=y=>{y.target===e&&(e.removeEventListener("transitionend",d),xD(e,o,u),r==="exit"?e.style.display="none":e.style.display="",i())};e.addEventListener("transitionend",d);const h=e.ownerDocument;if(!h)return;const b=h.defaultView;if(!b)return;const p=()=>{xD(e,o,u),r==="enter"&&(e.style.display=""),o&&e.classList.add(...o.split(" ").filter(y=>y)),b.requestAnimationFrame(()=>{e.style.transitionDuration=n+"ms",e.classList.add(...u.split(" ").filter(y=>y))})};jre?b.requestAnimationFrame(p):p()};var jn;(function(e){e.bottom="bottom",e.center="center",e.middle="middle",e.left="left",e.right="right",e.top="top"})(jn||(jn={}));var Nre=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,a=e.margin,o=a===void 0?{}:a,u=n.horizontal,d=n.vertical,h=i.horizontal,b=i.vertical,p=o.horizontal||0,y=o.vertical||0,g=t.top,x=t.left;return d===jn.bottom&&(g+=t.height),(d===jn.center||d===jn.middle)&&(g+=Math.round(t.height/2)),b===jn.bottom&&(g-=r.height,y*=-1),(b===jn.center||b===jn.middle)&&(g-=Math.round(r.height/2),y*=-1),u===jn.right&&(x+=t.width),(u===jn.center||u===jn.middle)&&(x+=Math.round(t.width/2)),h===jn.right&&(x-=r.width,p*=-1),(h===jn.center||h===jn.middle)&&(x-=Math.round(r.width/2),p*=-1),{top:g+y,left:x+p}},kre=function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}};const QX=(function(e){return e&&e.ownerDocument||document});var HX=function(e){return QX(e).documentElement},Qx=0,_re=function(){if(!Qx&&typeof document!="undefined"){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),Qx=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Qx},v6=function(e){return QX(e).defaultView},VX=function(e){var t=v6(e),n=HX(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=_re()),r},Bre=function(e){if(!e.getBoundingClientRect){var t=VX(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect(),r=n.bottom,i=n.left,a=n.right,o=n.top;return{bottom:r,left:i,right:a,top:o}},b6=function(e){for(var t=e.offsetParent;t&&t.style.position==="static";)t=t.offsetParent;return t||e.ownerDocument.documentElement},Fre=function(e){var t=e.style,n=t.display,r=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=i,{top:a.top,left:a.left,height:a.height,width:a.width}},C0=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return!t.height&&!t.width&&(t=Fre(e)),{top:r,left:n,height:t.height,width:t.width}},UX=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n},WX=function(e){var t=HX(e),n=v6(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}},YX=function(e){return e===(e.ownerDocument||{}).body?WX(e):{x:e.scrollLeft,y:e.scrollTop}},Lre=function(e){var t=b6(e);return t?YX(t):{x:0,y:0}},Xre=function(e,t){var n=v6(e),r=n.getComputedStyle(e),i=C0(e),a=t||b6(e),o=e.ownerDocument,u=a!==o.body&&a!==o.documentElement,d={top:0,left:0};if(r.position!=="fixed"&&u){var h=n.getComputedStyle(a);d=C0(a),d.top+=parseFloat(h.borderTopWidth),d.left+=parseFloat(h.borderLeftWidth)}return{top:i.top-d.top,left:i.left-d.left,height:i.height,width:i.width}},zre=function(e,t){return e?YX(e):Lre(t)},qre=function(e,t,n){n===void 0&&(n=1);var r=t?b6(t):null,i=Xre(e,r),a=i.top,o=i.left,u=i.height,d=i.width,h=zre(r,e),b=h.x,p=h.y,y=e.ownerDocument,g=r===y.body||r===y.documentElement?1:n;return{top:a+p*g,left:o+b*g,height:u,width:d}},Qre=function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},sa;(function(e){e.fit="fit",e.flip="flip",e.none="none"})(sa||(sa={}));var AD=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},wD=function(e){var t=e.offset,n=e.size,r=e.anchorSize,i=e.viewPortSize,a=e.anchorAlignPoint,o=e.elementAlignPoint,u=e.margin,d=0,h=o===jn.center||o===jn.middle,b=a===jn.center||a===jn.middle,p=2*u;if(o!==a&&!h&&!b){var y=a===jn.top||a===jn.left;t<0&&y?(d=n+r+p,t+d+n>i&&(d=0)):t>=0&&!y&&(t+n>i&&(d+=-(r+n+p)),t+d<0&&(d=0))}return d},Hre=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,a=e.collisions,o=e.viewPort,u=e.margin,d=u===void 0?{}:u,h=r.top,b=r.left,p=r.height,y=r.width,g=o.height,x=o.width,A=d.horizontal||0,w=d.vertical||0,C=0,M=0,P=a.vertical===sa.fit,R=a.horizontal===sa.fit,S=a.vertical===sa.flip,O=a.horizontal===sa.flip;P&&(M+=AD(h,p,g)),R&&(C+=AD(b,y,x)),S&&(M+=wD({margin:w,offset:h,size:p,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),O&&(C+=wD({margin:A,offset:b,size:y,anchorSize:t.width,viewPortSize:x,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var D=S&&M!==0,j=O&&C!==0,T=P&&M!==0,N=R&&C!==0;return{flipped:j||D,fitted:T||N,flip:{horizontal:j,vertical:D},fit:{horizontal:N,vertical:T},offset:{left:C,top:M}}},Vre=function(e){for(var t,n=[],r=(t=e.parentNode)===null||t===void 0?void 0:t.firstElementChild;r;)r!==e&&n.push(r),r=r.nextElementSibling;return n},Ure=function(e,t){for(var n=UX(e),r=t,i,a;r&&(i=Vre(r),a=n.reduce(function(o,u){return o.concat(i.filter(function(d){return d===u}))},[])[0],!a);)r=r.parentElement;return a},Wre=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},Yre=function(e,t){return!e||t===1?e:{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}},Gre=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e};function Kre(e){var t=this,n,r=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r||(n=e.apply(t,i),r=!0),n}}var Zre=Kre(function(e){if(!GX())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=10,r=t.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: '.concat(n,'px;">child</div>'),t.body.appendChild(r);var i=r.children[0].getBoundingClientRect().top!==n;return t.body.removeChild(r),i}),GX=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},da={eitherRect:Wre,scaleRect:Yre,removeStackingOffset:Gre,hasRelativeStackingContext:Zre,canUseDOM:GX},$re=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Jre=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},KX=function(){return da.canUseDOM()?window:null},eie=function(e){var t=KX();if(!t||!e)return[];var n=t.getComputedStyle(e);return $re.map(function(r){return{key:r,value:n[r]}})},tie=function(e){return e?!!e.offsetParent:!1},nie=function(e){return e?C0(e):null},rie=function(e,t){if(!e)return null;var n=e.style,r=n.left,i=n.top,a=n.transition;e.style.transition="none",e.style.left="".concat(t.left,"px"),e.style.top="".concat(t.top,"px");var o=C0(e);return e.style.left=r,e.style.top=i,e.offsetHeight,e.style.transition=a,o},iie=function(e,t,n){if(!e||!t)return null;var r=n||1;return qre(e,t,r)},aie=/auto|scroll/,sie=function(e){return"".concat(window.getComputedStyle(e).overflow)},oie=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)},lie=function(e){return sie(e)||oie(e)},uie=function(e){var t=[];if(!da.canUseDOM())return t;for(var n=e.parentElement;n;)(aie.test(lie(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},J0=function(e){if(!e||!da.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if(window.getComputedStyle(t).transform!=="none")return t;t=t.parentElement}return null},cie=function(e){var t=J0(e);return t?C0(t):null},die=function(e){var t=J0(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},fie=function(e){var t=J0(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},hie=function(e){return!!J0(e)},ZX=function(){return da.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},mie=function(){return ZX()>1},pie=function(e,t){if(!e||!da.canUseDOM())return null;var n=Ure(e,t);if(!n)return null;var r=[e].concat(UX(e,n)).reduce(function(i,a){var o=a.style.zIndex||window.getComputedStyle(a).zIndex,u=parseInt(o,10);return u>i?u:i},0);return r?r+1:null},Pi={addOffset:Jre,addScroll:kre,align:Nre,boundingOffset:Bre,getFontStyles:eie,getWindow:KX,hasOffsetParent:tie,offset:nie,offsetAtPoint:rie,position:iie,removeScroll:Qre,restrictToView:Hre,scrollPosition:WX,scrollableParents:uie,getRelativeContextElement:J0,stackingElementOffset:cie,stackingElementScroll:die,stackingElementViewPort:fie,useRelativePosition:hie,windowViewport:VX,zoomLevel:ZX,isZoomed:mie,zIndex:pie},gie=function(e,t,n,r){var i=bie(e,t),a=da.eitherRect(Pi.offset(e),n),o=2*r,u=Pi.stackingElementScroll(t);r!==1&&u&&(u.x/=o,u.y/=o);var d=Pi.stackingElementOffset(t);return r!==1&&d&&(d.left/=o,d.top/=o),Pi.removeScroll(Pi.addScroll(da.removeStackingOffset(da.scaleRect(a,r),d),u),i)},vie=function(e,t,n,r){var i=da.eitherRect(Pi.position(e,t,r),n);return da.scaleRect(i,r)},bie=function(e,t){return e?{x:0,y:0}:Pi.scrollPosition(t)},yie=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.margin,o=e.offset,u=e.positionMode,d=e.scale,h=d||1,b=u==="fixed"||!Pi.hasOffsetParent(n),p=b?gie(t,n,o,h):vie(t,n,o,h),y=da.scaleRect(Pi.offset(n),h),g=Pi.align({anchorAlign:r,anchorRect:p,elementAlign:i,elementRect:y,margin:a});return g},xie=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,i=e.anchorAlign,a=e.elementAlign,o=e.collisions,u=e.margin,d=e.scale,h=d||1,b=Pi.offsetAtPoint(r,n),p=da.scaleRect(b,h),y=da.scaleRect(Pi.offset(t),h),g=da.eitherRect(y,n),x=e.viewPort||Pi.windowViewport(r);x.width=x.width/h,x.height=x.height/h;var A=Pi.restrictToView({anchorAlign:i,anchorRect:g,collisions:o,elementAlign:a,elementRect:p,margin:u,viewPort:x}),w=Pi.addOffset(n,A.offset);return{flip:A.flip,flipped:A.flipped,fit:A.fit,fitted:A.fitted,offset:w}};const Aie=16.666666666666668,wie=function(e,t,n={}){let r,i,a,o,u=0;n=n||{};const d=function(){u=n.leading===!1?0:new Date().getTime(),r=void 0,o=e.apply(i,a),r||(i=a=null)};return function(){const h=new Date().getTime();!u&&n.leading===!1&&(u=h);const b=t-(h-u);return i=void 0,a=arguments,b<=0||b>t?(r&&(clearTimeout(r),r=void 0),u=h,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=window.setTimeout(d,b)),o}};const Eie=k.createContext(e=>e),Sie=100,Cie=1;function kd(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==t[a])return!1}return!0}const Rie={left:-1e3,top:0},ep=k.forwardRef((e,t)=>{const n=k.useContext(Eie).call(void 0,e),{collision:r=wl.collision,anchorAlign:i=wl.anchorAlign,popupAlign:a=wl.popupAlign,offset:o=wl.offset,animate:u=wl.animate,show:d=wl.show,margin:h=wl.margin,positionMode:b=wl.positionMode,appendTo:p,contentKey:y,anchor:g,scale:x,role:A,onKeyDown:w,onPosition:C,onOpen:M,onMouseDownOutside:P,onClose:R,className:S,popupClass:O,id:D,style:j,children:T}=n,N=W0(),_=n.unstyled||N,L=_&&_.uPopup,[q,z]=k.useState({current:"hidden",previous:"hidden",props:{}}),B=pe=>{window==null||window.addEventListener("mousedown",ee),X(pe),J(pe.firstChild,"enter",V),z({...Ke,current:"shown",previous:Ke.current})},X=pe=>{const{width:ye,height:Be}=pe.style;if(pe.offsetWidth===0&&pe.offsetHeight===0)return;pe.style.width=pe.offsetWidth+"px",pe.style.height=pe.offsetHeight+"px";const $e=yie({anchor:g,anchorAlign:i,element:pe,elementAlign:a,offset:o,margin:h,positionMode:b,scale:x}),it=xie({anchor:g,anchorAlign:i,element:pe,elementAlign:a,collisions:r,currentLocation:$e,margin:h});if(pe.style.top=it.offset.top+"px",pe.style.left=it.offset.left+"px",pe.style.width=ye,pe.style.height=Be,be.current={fit:it.fit,fitted:it.fitted,flip:it.flip,flipped:it.flipped},C){const At={target:mt.current,flipped:it.flipped,fitted:it.fitted};C.call(void 0,At)}},V=()=>{const pe=Ge.current;pe&&(d&&pe.classList.add(...or(Zu.animationContainerShown({c:L})).split(" ").filter(ye=>ye)),W(pe),M&&M.call(void 0,{target:mt.current}))},J=(pe,ye,Be)=>{if(!a)return;let $e;const{horizontal:it,vertical:At}=a;typeof e.animate=="object"&&e.animate.direction?$e=e.animate.direction:it==="left"&&At==="center"?$e="right":it==="right"&&At==="center"?$e="left":At==="top"?$e="down":$e="up";const wt={down:"up",up:"down",left:"right",right:"left"};be.current&&be.current.flipped&&($e=wt[$e]),Tre(pe,$e,H()[ye],ye,Be,L)},ee=pe=>{var ye;const Be=((ye=pe==null?void 0:pe.target)==null?void 0:ye.closest(".k-animation-container"))===null,$e=(g==null?void 0:g.contains(pe==null?void 0:pe.target))||!1;if(Be){if(P){const it={target:mt.current,event:pe,state:q,isAnchorClicked:$e};P.call(void 0,it)}window==null||window.removeEventListener("mousedown",ee)}},ne=pe=>{if(!d){const ye=_&&_.uPopup;pe.classList.remove(...or(Zu.animationContainerShown({c:ye})).split(" ").filter(Be=>Be))}Y()},U=()=>{Ke.current==="hiding"&&(Ke.previous==="shown"||Ke.previous==="reposition")&&z({...Ke,current:"hidden",previous:Ke.current}),R&&R.call(void 0,{target:mt.current})},H=()=>{const pe=u;let ye=0,Be=0;return pe&&(pe===!0?ye=Be=300:(ye=pe.openDuration||0,Be=pe.closeDuration||0)),{enter:ye,exit:Be}},W=pe=>{Y(),Te.current=Pi.scrollableParents(g||pe),Te.current&&Te.current.map(ye=>ye.addEventListener("scroll",K)),window.addEventListener("resize",K)},Y=()=>{Te.current&&(Te.current.map(pe=>pe.removeEventListener("scroll",K)),Te.current=void 0),window.removeEventListener("resize",K)},K=wie(()=>{Ge.current&&Ke.current!=="hidden"&&Ke.current!=="hiding"&&z({...q,current:"reposition",previous:Ke.current})},Aie),re=()=>me?me+Cie:Sie,me=NL()||0,be=k.useRef(void 0),Te=k.useRef(void 0),Ge=k.useRef(null),mt=k.useRef(null),Rt=k.useRef({}),dt=k.useRef(!1);k.useImperativeHandle(mt,()=>({element:Ge.current,setPosition:X,props:e})),k.useImperativeHandle(t,()=>mt.current);const Ke=k.useMemo(()=>{const pe={...q,props:{show:d,anchor:g,anchorAlign:i,appendTo:p,collision:r,popupAlign:a,className:S,popupClass:O,style:j,offset:o,contentKey:y}};return d?q.current==="hidden"||q.current==="hiding"?{...pe,current:"showing",previous:q.current}:q.current==="showing"?{...pe,current:"shown",previous:q.current}:q.current==="shown"&&(!kd(o,q.props.offset)||!kd(i,q.props.anchorAlign)||!kd(p,q.props.appendTo)||!kd(r,q.props.collision)||!kd(a,q.props.popupAlign)||!kd(j,q.props.style)||g!==q.props.anchor||O!==q.props.popupClass||S!==q.props.className)?{...pe,current:"reposition",previous:q.current}:pe:q.current==="hiding"||q.current==="hidden"?{...pe,current:"hidden",previous:q.current}:{...pe,current:"hiding",previous:q.current}},[d,g,i,p,r,a,S,O,j,o,y,q]);k.useEffect(()=>{Ke.current==="hiding"&&!dt.current&&Ge.current?(dt.current=!0,ne(Ge.current),J(Ge.current.firstChild,"exit",U)):(dt.current=!1,Ke.current==="showing"&&Ge.current&&!Ge.current.classList.contains("k-animation-container-shown")?B(Ge.current):Ke.current==="hiding"&&Ge.current?U():Ke.current==="reposition"&&Ke.previous==="shown"?setTimeout(()=>{z({...Ke,current:"shown",previous:Ke.current})},0):Ke.current==="shown"&&Rt.current.contentKey!==y&&Ge.current&&X(Ge.current)),Ke.current==="reposition"&&(Ke.previous==="shown"||Ke.previous==="showing")&&Ge.current&&X(Ge.current),Rt.current={contentKey:y}},[Ke]),k.useEffect(()=>(Ke.current==="showing"&&Ge.current&&B(Ge.current),()=>{Y()}),[]);const ie=p||(Gd?g&&g.ownerDocument?g.ownerDocument.body:document.body:void 0),ce=Object.assign({},{position:b,top:0,left:-1e4},j||{}),De=Ke.current==="hiding";if((d||De)&&ie){const pe=re(),ye=k.createElement(Xf.Provider,{value:pe},k.createElement("div",{onKeyDown:w,className:or(Zu.animationContainer({c:L}),S),id:D,ref:Ge,style:{zIndex:pe,...ce}},k.createElement("div",{className:or(Zu.animationChild({c:L})),style:{transitionDelay:"0ms"}},k.createElement("div",{role:A,className:or(Zu.popup({c:L}),O)},T))));return p!==null?X0.createPortal(ye,ie):ye}return null}),wl={collision:{horizontal:sa.fit,vertical:sa.flip},anchorAlign:{horizontal:jn.left,vertical:jn.bottom},popupAlign:{horizontal:jn.left,vertical:jn.top},offset:Rie,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"};ep.displayName="Popup";ep.propTypes={anchor:function(e){const t=e.anchor;return t&&typeof t.nodeType!="number"?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){const t=e.appendTo;return t&&typeof t.nodeType!="number"?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:fe.oneOfType([fe.string,fe.arrayOf(fe.string.isRequired)]),id:fe.string,popupClass:fe.oneOfType([fe.string,fe.arrayOf(fe.string),fe.object]),collision:fe.shape({horizontal:fe.oneOf([sa.fit,sa.flip,sa.none]),vertical:fe.oneOf([sa.fit,sa.flip,sa.none])}),anchorAlign:fe.shape({horizontal:fe.oneOf([jn.left,jn.center,jn.right]),vertical:fe.oneOf([jn.top,jn.center,jn.bottom])}),popupAlign:fe.shape({horizontal:fe.oneOf([jn.left,jn.center,jn.right]),vertical:fe.oneOf([jn.top,jn.center,jn.bottom])}),offset:fe.shape({left:fe.number,top:fe.number}),children:fe.oneOfType([fe.element,fe.node]),show:fe.bool,animate:fe.oneOfType([fe.bool,fe.shape({openDuration:fe.number,closeDuration:fe.number})]),margin:fe.shape({horizontal:fe.number,vertical:fe.number}),positionMode:fe.oneOf(["fixed","absolute"]),scale:fe.number,style:fe.object,onClose:fe.func,onPosition:fe.func,onOpen:fe.func,onKeyDown:fe.func,onMouseDownOutside:fe.func};function $X(e){const t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function JX(e){const t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}const ez={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1745410557,version:"10.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};const F4=class extends k.Component{constructor(t){super(t),this.state={focused:!1,focusedIndex:-1,opened:!1},this.wrapper=null,this.mainButton=null,this.list=null,this.skipFocus=!1,this.buttonsData=[],this.showLicenseWatermark=!1,this.onKeyDown=n=>{const{focusedIndex:r}=this.state;if(n.altKey){!this.opened&&n.keyCode===Fn.down?(n.preventDefault(),this.setState({focusedIndex:0}),this.setOpen(!0,n)):this.opened&&n.keyCode===Fn.up&&(n.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,n));return}let i;if(n.keyCode===Fn.enter||n.keyCode===Fn.space){if(n.preventDefault(),this.dispatchClickEvent(n,r),r>=0){i={focusedIndex:this.opened?-1:0};const a=!this.opened;this.setOpen(a,n)}}else if(this.opened&&n.keyCode===Fn.esc){this.setState({focusedIndex:-1}),this.setOpen(!1,n);return}if(this.opened){const a=qX(r,n.keyCode,n.altKey,this.buttonsData.length);a!==r&&(i=i||{},i.focusedIndex=a);const o=n.keyCode===Fn.up||n.keyCode===Fn.down||n.keyCode===Fn.left||n.keyCode===Fn.right;!n.altKey&&(o||n.keyCode===Fn.home||n.keyCode===Fn.end)&&n.preventDefault()}i&&this.setState(i)},this.switchFocus=n=>{this.skipFocus=!0,n(),window.setTimeout(()=>this.skipFocus=!1,0)},this.onFocus=n=>{this.skipFocus||(us(this.props.onFocus,n,this,void 0),this.setState({focused:!0}))},this.setOpen=(n,r)=>{this.opened!==n&&(this.openedDuringOnChange=n,this.setState({opened:n}),r?this.dispatchPopupEvent(r,n):this.openedDuringOnChange=void 0)},this.onItemClick=(n,r)=>{this.opened&&this.setState({focusedIndex:0}),this.dispatchClickEvent(n,r),this.setOpen(!1,n)},this.onBlur=n=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),us(this.props.onBlur,n,this,void 0),setTimeout(()=>{this.setOpen(!1,n)},0))},this.onPopupClose=n=>{var r;const i=pc(document);this.element&&this.element.removeAttribute("tabindex"),(i===this.list||(r=this.list)!=null&&r.contains(i))&&this.switchFocus(()=>{this.element&&this.element.focus({preventScroll:!0})}),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,n)},this.listRef=n=>{this.list=n,n&&this.state.focused&&this.switchFocus(()=>{n.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)})},this.onSplitPartClick=n=>{if(this.buttonsData.length){const r=!this.opened;this.setState({focusedIndex:r?0:-1,focused:!0}),this.setOpen(r,n)}},this.onDownSplitPart=n=>{n.preventDefault();const r=pc(document);this.element&&r!==this.element&&r!==this.list&&this.element.focus()},this.onItemDown=n=>{pc(document)===this.list&&n.preventDefault()},this.dispatchPopupEvent=(n,r)=>{us(r?this.props.onOpen:this.props.onClose,n,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!XL(ez,{component:"SplitButton"})}get guid(){return this.props.id?this.props.id+"-accessibility-id":this.props.id}get opened(){return this.openedDuringOnChange!==void 0?this.openedDuringOnChange:this.props.opened===void 0?this.state.opened:this.props.opened}render(){this.buttonsData=this.props.items||k.Children.toArray(this.props.children).filter(u=>u&&u.type===Pre).map(u=>u.props);const t=this.isRtl(),n=t?"rtl":void 0,{id:r,style:i,tabIndex:a,disabled:o}=this.props;return k.createElement(k.Fragment,null,k.createElement("div",{id:r,style:i,className:or("k-split-button","k-button-group",{"k-focus":this.state.focused},`k-rounded-${NO.roundedMap[this.props.rounded||"medium"]}`,this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:u=>{this.wrapper=u}},k.createElement(tu,{ref:u=>{this.mainButton=u&&u.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:u=>this.onItemClick(u,-1),disabled:o||void 0,tabIndex:a,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,svgIcon:this.props.svgIcon,iconClass:this.props.iconClass,startIcon:this.props.startIcon,endIcon:this.props.endIcon,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":o,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),k.createElement(tu,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",svgIcon:LJ,className:"k-split-button-arrow",disabled:o||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t)),this.showLicenseWatermark&&k.createElement(zL,null))}componentDidMount(){(this.props.dir===void 0&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(t,n){this.isItemDisabled(n)||(n===-1?us(this.props.onButtonClick,t,this,void 0):us(this.props.onItemClick,t,this,{item:this.buttonsData[n],itemIndex:n}))}renderPopup(t){const{popupSettings:n={}}=this.props,{focusedIndex:r}=this.state;return k.createElement(ep,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:or("k-menu-popup",n.popupClass),anchorAlign:n.anchorAlign||$X(t),popupAlign:n.popupAlign||JX(t),style:t?{direction:"rtl"}:void 0,onClose:this.onPopupClose},k.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":r>=0?`${this.guid}-${r}`:void 0,className:or("k-menu-group",{[`k-menu-group-${NO.sizeMap[this.props.size]||this.props.size}`]:this.props.size})},this.renderChildItems()))}renderChildItems(){const{item:t,itemRender:n,textField:r}=this.props;return this.buttonsData.length>0?this.buttonsData.map((i,a)=>k.createElement(g6,{className:or("k-menu-item",{"k-first":a===0},{"k-last":a===this.buttonsData.length-1}),dataItem:i,textField:r,focused:this.state.focusedIndex===a,onClick:this.onItemClick,onDown:this.onItemDown,render:n,item:t,key:a,index:a,id:`${this.guid}-${a}`})):null}isItemDisabled(t){return this.buttonsData[t]?this.buttonsData[t].disabled:this.props.disabled}isRtl(){return this.props.dir!==void 0?this.props.dir==="rtl":!!this.wrapper&&getComputedStyle(this.wrapper).direction==="rtl"}};F4.propTypes={accessKey:fe.string,ariaLabel:fe.string,title:fe.string,onButtonClick:fe.func,onFocus:fe.func,onBlur:fe.func,onItemClick:fe.func,onOpen:fe.func,onClose:fe.func,text:fe.string,items:fe.arrayOf(fe.any),textField:fe.string,tabIndex:fe.number,disabled:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,popupSettings:fe.object,itemRender:fe.any,item:fe.func,className:fe.string,buttonClass:fe.string,dir:fe.string},F4.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let Iie=F4;const tz=class extends k.Component{render(){return null}};tz.propTypes={text:fe.string,icon:fe.string,iconClass:fe.string,imageUrl:fe.string,selected:fe.bool,disabled:fe.bool,render:fe.any};let Mie=tz;const Oie=12e3,Die=2e3,L4=class extends k.Component{constructor(t){super(t),this.state={opened:!1,focused:!1,focusedIndex:-1},this.mainButton=null,this.list=null,this.skipFocus=!1,this.showLicenseWatermark=!1,this.buttonsData=[],this.onKeyDown=n=>{const{focusedIndex:r}=this.state;if(n.altKey){!this.opened&&n.keyCode===Fn.down?(n.preventDefault(),this.setOpen(!0,n),this.setState({focusedIndex:0})):this.opened&&n.keyCode===Fn.up&&(n.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,n));return}const i={...this.state};if(n.keyCode===Fn.enter||n.keyCode===Fn.space){n.preventDefault(),r>=0&&this.dispatchClickEvent(n,r);const a=!this.opened;this.setState({focused:!0,focusedIndex:a?0:-1}),this.setOpen(a,n);return}if(this.opened&&n.keyCode===Fn.esc){this.setState({focusedIndex:-1}),this.setOpen(!1,n);return}if(this.opened){const a=qX(r,n.keyCode,n.altKey,this.buttonsData.length);i.focusedIndex=a;const o=n.keyCode===Fn.up||n.keyCode===Fn.down||n.keyCode===Fn.left||n.keyCode===Fn.right;!n.altKey&&(o||n.keyCode===Fn.home||n.keyCode===Fn.end)&&n.preventDefault()}this.setState(i)},this.switchFocus=n=>{this.skipFocus=!0,n(),window.setTimeout(()=>this.skipFocus=!1,0)},this.handleFocus=n=>{this.skipFocus||(this.setState({focused:!0,focusedIndex:this.opened?0:-1}),us(this.props.onFocus,n,this,void 0))},this.handleButtonBlur=n=>{this.opened||(this.setState({focused:!1}),us(this.props.onBlur,n,this,void 0))},this.handleMenuBlur=n=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),us(this.props.onBlur,n,this,void 0),setTimeout(()=>{this.setOpen(!1,n)},0))},this.setOpen=(n,r)=>{this.opened!==n&&(this.openedDuringOnChange=n,this.setState({opened:n}),r?this.dispatchPopupEvent(r,n):this.openedDuringOnChange=void 0)},this.onItemClick=(n,r)=>{this.setState({focusedIndex:-1}),this.dispatchClickEvent(n,r),this.setOpen(!1,n)},this.onItemDown=n=>{pc(document)===this.list&&n.preventDefault()},this.mouseDown=n=>{n.preventDefault();const r=pc(document);this.element&&r!==this.element&&r!==this.list&&this.element.focus()},this.onPopupClose=n=>{var r;const i=pc(document);this.element&&this.element.removeAttribute("tabindex"),(i===this.list||(r=this.list)!=null&&r.contains(i))&&this.switchFocus(()=>{this.element&&this.element.focus({preventScroll:!0})}),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,n)},this.listRef=n=>{this.list=n,n&&this.state.focused&&this.switchFocus(()=>{n.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)})},this.onClickMainButton=n=>{if(!this.buttonsData.length)return;const r=!this.opened;this.setState({focused:!0,focusedIndex:r?0:-1}),this.setOpen(r,n)},this.dispatchPopupEvent=(n,r)=>{us(r?this.props.onOpen:this.props.onClose,n,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!XL(ez,{component:"DropDownButton"})}get guid(){return this.props.id+"-accessibility-id"}get opened(){return this.openedDuringOnChange!==void 0?this.openedDuringOnChange:this.props.opened===void 0?this.state.opened:this.props.opened}render(){const t=this.isRtl(),n=this.props.unstyled&&this.props.unstyled.uDropDownButton,r=t?"rtl":void 0,{id:i,style:a,tabIndex:o,disabled:u,size:d,rounded:h,fillMode:b,themeColor:p,ariaLabel:y,title:g,accessKey:x,icon:A,svgIcon:w,iconClass:C,buttonClass:M,className:P,imageUrl:R,startIcon:S,endIcon:O}=this.props;return this.buttonsData=this.props.items||k.Children.toArray(this.props.children).filter(D=>D&&D.type===Mie).map(D=>D.props),k.createElement(k.Fragment,null,k.createElement(tu,{id:i,size:d,style:a,rounded:h,fillMode:b,themeColor:p,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleButtonBlur,"aria-disabled":u?"true":void 0,tabIndex:o,accessKey:x,icon:A,svgIcon:w,iconClass:C,className:or(M,P,Zd.wrapper({c:n,focused:this.state.focused,disabled:u})),imageUrl:R,dir:r,ref:D=>{this.mainButton=D&&D.element},type:"button","aria-expanded":this.opened?"true":"false","aria-label":y,"aria-controls":this.opened?this.guid:void 0,title:g,startIcon:S,endIcon:O},this.props.text),this.showLicenseWatermark&&k.createElement(zL,null),this.renderPopup(t))}componentDidMount(){(this.props.dir===void 0&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(t,n){this.isItemDisabled(n)||us(this.props.onItemClick,t,this,{item:this.buttonsData[n],itemIndex:n})}renderPopup(t){const{popupSettings:n={},_zIndex:r,unstyled:i}=this.props,a=r?r+Die:Oie,o=i&&i.uDropDownButton,{focusedIndex:u}=this.state;return k.createElement(Xf.Provider,{value:a},k.createElement(ep,{anchor:this.mainButton,show:this.opened,animate:n.animate,popupClass:or(Zd.popup({c:o}),n.popupClass),anchorAlign:n.anchorAlign||$X(t),popupAlign:n.popupAlign||JX(t),style:t?{direction:"rtl"}:void 0,onClose:this.onPopupClose},k.createElement("ul",{role:"list",id:this.guid,tabIndex:-1,"aria-activedescendant":u>=0?`${this.guid}-${u}`:void 0,ref:this.listRef,onKeyDown:this.onKeyDown,onBlur:this.handleMenuBlur,className:or(Zd.ul({c:o,size:this.props.size}))},this.renderChildItems())))}renderChildItems(){const{item:t,itemRender:n,textField:r,unstyled:i}=this.props,a=i&&i.uDropDownButton;return this.buttonsData.length>0?this.buttonsData.map((o,u)=>k.createElement(g6,{className:or(Zd.item({c:a}),o.className,{"k-first":u===0},{"k-last":u===this.buttonsData.length-1}),dataItem:o,textField:r,focused:this.state.focusedIndex===u,onClick:this.onItemClick,onDown:this.onItemDown,render:n,item:t,index:u,key:u,id:`${this.guid}-${u}`})):null}isItemDisabled(t){return this.buttonsData[t]?this.buttonsData[t].disabled:this.props.disabled}isRtl(){return this.props.dir!==void 0?this.props.dir==="rtl":!!this.mainButton&&getComputedStyle(this.mainButton).direction==="rtl"}};L4.propTypes={accessKey:fe.string,ariaLabel:fe.string,title:fe.string,onFocus:fe.func,onBlur:fe.func,onItemClick:fe.func,onOpen:fe.func,onClose:fe.func,items:fe.arrayOf(fe.any),textField:fe.string,tabIndex:fe.number,disabled:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,popupSettings:fe.object,itemRender:fe.func,item:fe.func,className:fe.string,buttonClass:fe.string,dir:fe.string},L4.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let Pie=L4;const jie=qL(),nz=J1(QL(jie,OJ(DJ(Pie))));nz.displayName="KendoReactDropDownButton";const Tie=J1(nz);Tie.displayName="KendoReactDropDownButton";const Nie=J1(Iie);Nie.displayName="KendoReactSplitButton";const kie=({children:e,onCloseButtonClick:t,id:n,closeIcon:r})=>k.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:n},k.createElement("span",{className:"k-window-title k-dialog-title"},e),r&&k.createElement("div",{className:"k-window-titlebar-actions k-dialog-titlebar-actions"},k.createElement(tu,{role:"button","aria-label":"Close",onClick:t,icon:"x",svgIcon:an,fillMode:"flat",className:"k-window-titlebar-action k-dialog-titlebar-action"})));const X4=e=>{const t={layout:"stretched",...e},{layout:n,children:r}=t,i=or("k-actions","k-actions-horizontal","k-window-actions k-dialog-actions",{[`k-actions-${n}`]:n});return k.createElement("div",{className:i},r)};X4.propTypes={children:fe.any,layout:fe.oneOf(["start","center","end","stretched"])};const rz="data-windowid",_ie=10002,z4=2,Bie=".k-window:not(.k-dialog), .k-dialog-wrapper";const Fie=(e,t,n)=>{let r=e;if(t&&t.defaultView){const i=t.querySelectorAll(Bie);let a=!1;return i.forEach(o=>{const u=t.defaultView.getComputedStyle(o,null);if(o.getAttribute(rz)!==n&&u.zIndex!==null){const d=parseInt(u.zIndex,10);d>=r&&(r=d,a=!0)}}),a?r+z4:r}return r};const a0=class extends k.Component{constructor(t){super(t),this.context=0,this.titleId=this.generateTitleId(),this.contentId=this.generateContentId(),this.activeElement=null,this.onCloseDialog=n=>{n.preventDefault(),us(this.props.onClose,n,this,void 0)},this.onKeyDown=n=>{n.keyCode===Fn.esc&&this.props.onClose&&(n.preventDefault(),this.onCloseDialog(n)),cJ(n,this.element)},this.getCurrentZIndex=()=>!this.state||this.context===void 0?this.context?this.context:_ie:this.state.zIndex>(this.context?this.context+z4:0)?this.state.zIndex:this.context+z4,this.getDocument=()=>{const n=Gd?document:null;return this.props.appendTo?this.props.appendTo.ownerDocument:n},Gd&&(this.activeElement=pc(document))}get _id(){return this.props.id+"-accessibility-id"}componentDidMount(){if(this.element){if(this.props.autoFocus&&!this.props.autoFocusedElement)this.element.focus();else if(this.props.autoFocus&&this.props.autoFocusedElement)this.element.focus();else if(!this.props.autoFocus&&this.props.autoFocusedElement){const t=this.element.querySelector(this.props.autoFocusedElement);t&&t.focus()}else{const t=[...$1].map(n=>n+":not(.k-dialog-titlebar *)");uJ(this.element,t)}this.setState({zIndex:Fie(this.getCurrentZIndex(),this.getDocument(),this._id)})}}componentWillUnmount(){setTimeout(()=>{var t;!this.element&&this.activeElement&&Gd&&(document.contains(this.activeElement)?this.activeElement.focus():this.activeElement.id&&((t=document.getElementById(this.activeElement.id))==null||t.focus()))})}render(){const t=this.props.id!==void 0?this.props.id:this.titleId,{title:n,width:r,height:i,children:a,minWidth:o,dir:u,style:d,contentStyle:h,modal:b=!0}=this.props,p=k.Children.toArray(a),y=this.getContent(p),g=this.getActionBar(p),x=n?{"aria-labelledby":t}:null,A=this.props.closeIcon!==void 0?this.props.closeIcon:!0,w=this.getCurrentZIndex(),C=k.createElement(Xf.Provider,{value:w},k.createElement("div",{[rz]:this._id,className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:u,style:{zIndex:w,...d},ref:M=>{this.element=M}},b&&k.createElement("div",{className:"k-overlay",style:this.props.overlayStyle}),k.createElement("div",{...x,className:or("k-window k-dialog",{[`k-window-${this.props.themeColor}`]:this.props.themeColor}),role:"dialog","aria-labelledby":t,"aria-modal":!0,"aria-describedby":this.contentId,style:{width:r,height:i,minWidth:o}},this.props.title&&k.createElement(kie,{closeIcon:A,onCloseButtonClick:this.onCloseDialog,id:t},n),k.createElement("div",{className:"k-window-content k-dialog-content",style:h,id:this.contentId},y),g)));return Gd?this.props.appendTo!==null?X0.createPortal(C,this.props.appendTo||document.body):C:null}getActionBar(t){return t.filter(n=>n&&n.type===X4)}getContent(t){return t.filter(n=>n&&n.type!==X4)}generateTitleId(){return"dialog-title-"+this._id}generateContentId(){return"dialog-content-"+this._id}};a0.displayName="Dialog",a0.propTypes={title:fe.any,id:fe.string,dir:fe.string,style:fe.object,closeIcon:fe.bool,width:fe.oneOfType([fe.number,fe.string]),height:fe.oneOfType([fe.number,fe.string]),minWidth:fe.oneOfType([fe.number,fe.string]),autoFocus:fe.bool},a0.defaultProps={autoFocus:!1},a0.contextType=Xf;let Lie=a0;const Xie=qL(),iz=J1(QL(Xie,Lie));iz.displayName="KendoReactDialog";const An=e=>c.jsx(iz,{...e,appendTo:null}),zie={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qie=(e,t,n)=>{let r;const i=zie[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qie={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hie={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vie={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uie={date:Hx({formats:Qie,defaultWidth:"full"}),time:Hx({formats:Hie,defaultWidth:"full"}),dateTime:Hx({formats:Vie,defaultWidth:"full"})},Wie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yie=(e,t,n,r)=>Wie[e];function Mm(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Gie={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Kie={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zie={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},$ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jie={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tae=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},nae={ordinalNumber:tae,era:Mm({values:Gie,defaultWidth:"wide"}),quarter:Mm({values:Kie,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mm({values:Zie,defaultWidth:"wide"}),day:Mm({values:$ie,defaultWidth:"wide"}),dayPeriod:Mm({values:Jie,defaultWidth:"wide",formattingValues:eae,defaultFormattingWidth:"wide"})};function Om(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?iae(u,p=>p.test(o)):rae(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const b=t.slice(o.length);return{value:h,rest:b}}}function rae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function iae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function aae(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const sae=/^(\d+)(th|st|nd|rd)?/i,oae=/\d+/i,lae={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uae={any:[/^b/i,/^(a|c)/i]},cae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dae={any:[/1/i,/2/i,/3/i,/4/i]},fae={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hae={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mae={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gae={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vae={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bae={ordinalNumber:aae({matchPattern:sae,parsePattern:oae,valueCallback:e=>parseInt(e,10)}),era:Om({matchPatterns:lae,defaultMatchWidth:"wide",parsePatterns:uae,defaultParseWidth:"any"}),quarter:Om({matchPatterns:cae,defaultMatchWidth:"wide",parsePatterns:dae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Om({matchPatterns:fae,defaultMatchWidth:"wide",parsePatterns:hae,defaultParseWidth:"any"}),day:Om({matchPatterns:mae,defaultMatchWidth:"wide",parsePatterns:pae,defaultParseWidth:"any"}),dayPeriod:Om({matchPatterns:gae,defaultMatchWidth:"any",parsePatterns:vae,defaultParseWidth:"any"})},az={code:"en-US",formatDistance:qie,formatLong:Uie,formatRelative:Yie,localize:nae,match:bae,options:{weekStartsOn:0,firstWeekContainsDate:1}};let yae={};function Uf(){return yae}const sz=6048e5,xae=864e5,y6=6e4,x6=36e5,Aae=1e3,ED=Symbol.for("constructDateFrom");function Fr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ED in e?e[ED](t):e instanceof Date?new e.constructor(t):new Date(t)}function Dr(e,t){return Fr(t||e,e)}function R1(e){const t=Dr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function oz(e,...t){const n=Fr.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function I1(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function lz(e,t,n){const[r,i]=oz(n==null?void 0:n.in,e,t),a=I1(r),o=I1(i),u=+a-R1(a),d=+o-R1(o);return Math.round((u-d)/xae)}function wae(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Eae(e,t){const n=Dr(e,t==null?void 0:t.in);return lz(n,wae(n))+1}function nu(e,t){var u,d,h,b,p,y,g,x;const n=Uf(),r=(x=(g=(b=(h=t==null?void 0:t.weekStartsOn)!=null?h:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)!=null?b:n.weekStartsOn)!=null?g:(y=(p=n.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)!=null?x:0,i=Dr(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function jf(e,t){return nu(e,{...t,weekStartsOn:1})}function uz(e,t){const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Fr(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=jf(i),o=Fr(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const u=jf(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Sae(e,t){const n=uz(e,t),r=Fr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),jf(r)}function cz(e,t){const n=Dr(e,t==null?void 0:t.in),r=+jf(n)-+Sae(n);return Math.round(r/sz)+1}function A6(e,t){var b,p,y,g,x,A,w,C;const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Uf(),a=(C=(w=(g=(y=t==null?void 0:t.firstWeekContainsDate)!=null?y:(p=(b=t==null?void 0:t.locale)==null?void 0:b.options)==null?void 0:p.firstWeekContainsDate)!=null?g:i.firstWeekContainsDate)!=null?w:(A=(x=i.locale)==null?void 0:x.options)==null?void 0:A.firstWeekContainsDate)!=null?C:1,o=Fr((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=nu(o,t),d=Fr((t==null?void 0:t.in)||e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const h=nu(d,t);return+n>=+u?r+1:+n>=+h?r:r-1}function Cae(e,t){var u,d,h,b,p,y,g,x;const n=Uf(),r=(x=(g=(b=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)!=null?b:n.firstWeekContainsDate)!=null?g:(y=(p=n.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)!=null?x:1,i=A6(e,t),a=Fr((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),nu(a,t)}function dz(e,t){const n=Dr(e,t==null?void 0:t.in),r=+nu(n,t)-+Cae(n,t);return Math.round(r/sz)+1}function Jn(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const El={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Jn(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Jn(n+1,2)},d(e,t){return Jn(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Jn(e.getHours()%12||12,t.length)},H(e,t){return Jn(e.getHours(),t.length)},m(e,t){return Jn(e.getMinutes(),t.length)},s(e,t){return Jn(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Jn(i,t.length)}},_d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SD={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return El.y(e,t)},Y:function(e,t,n,r){const i=A6(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Jn(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Jn(a,t.length)},R:function(e,t){const n=uz(e);return Jn(n,t.length)},u:function(e,t){const n=e.getFullYear();return Jn(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Jn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Jn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return El.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Jn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=dz(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Jn(i,t.length)},I:function(e,t,n){const r=cz(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Jn(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):El.d(e,t)},D:function(e,t,n){const r=Eae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Jn(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Jn(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Jn(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Jn(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=_d.noon:r===0?i=_d.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=_d.evening:r>=12?i=_d.afternoon:r>=4?i=_d.morning:i=_d.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return El.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):El.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Jn(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Jn(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):El.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):El.s(e,t)},S:function(e,t){return El.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return RD(r);case"XXXX":case"XX":return Gu(r);default:return Gu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return RD(r);case"xxxx":case"xx":return Gu(r);default:return Gu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+CD(r,":");default:return"GMT"+Gu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+CD(r,":");default:return"GMT"+Gu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Jn(r,t.length)},T:function(e,t,n){return Jn(+e,t.length)}};function CD(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Jn(a,2)}function RD(e,t){return e%60===0?(e>0?"-":"+")+Jn(Math.abs(e)/60,2):Gu(e,t)}function Gu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Jn(Math.trunc(r/60),2),a=Jn(r%60,2);return n+i+t+a}const ID=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fz=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Rae=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ID(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ID(r,t)).replace("{{time}}",fz(i,t))},q4={p:fz,P:Rae},Iae=/^D+$/,Mae=/^Y+$/,Oae=["D","DD","YY","YYYY"];function hz(e){return Iae.test(e)}function mz(e){return Mae.test(e)}function Q4(e,t,n){const r=Dae(e,t,n);if(console.warn(r),Oae.includes(e))throw new RangeError(r)}function Dae(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Pae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jae(e){return!(!Pae(e)&&typeof e!="number"||isNaN(+Dr(e)))}const Tae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kae=/^'([^]*?)'?$/,_ae=/''/g,Bae=/[a-zA-Z]/;function pr(e,t,n){var b,p,y,g,x,A,w,C,M;const r=Uf(),i=(b=r.locale)!=null?b:az,a=(x=(g=r.firstWeekContainsDate)!=null?g:(y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)!=null?x:1,o=(M=(C=r.weekStartsOn)!=null?C:(w=(A=r.locale)==null?void 0:A.options)==null?void 0:w.weekStartsOn)!=null?M:0,u=Dr(e,n==null?void 0:n.in);if(!jae(u))throw new RangeError("Invalid time value");let d=t.match(Nae).map(P=>{const R=P[0];if(R==="p"||R==="P"){const S=q4[R];return S(P,i.formatLong)}return P}).join("").match(Tae).map(P=>{if(P==="''")return{isToken:!1,value:"'"};const R=P[0];if(R==="'")return{isToken:!1,value:Fae(P)};if(SD[R])return{isToken:!0,value:P};if(R.match(Bae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:P}});i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return d.map(P=>{if(!P.isToken)return P.value;const R=P.value;(mz(R)||hz(R))&&Q4(R,t,String(e));const S=SD[R[0]];return S(u,R,i.localize,h)}).join("")}function Fae(e){const t=e.match(kae);return t?t[1].replace(_ae,"'"):e}const Lae={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],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,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[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-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|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,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Xae(e,t){var n=Array.prototype.slice.call(t);return n.push(Lae),e.apply(this,n)}function MD(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var zae={}.constructor;function sf(e){return e!=null&&e.constructor===zae}function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function lb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qae(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,Qae(r.key),r)}}function ub(e,t,n){return t&&qae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qae(e){var t=Hae(e,"string");return Tf(t)=="symbol"?t:t+""}function Hae(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vae="1.2.0",Uae="1.7.35",OD=" ext. ",Wae=/^\d+$/,ki=(function(){function e(t){lb(this,e),pz(t),this.metadata=t,gz.call(this,t)}return ub(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&&Wae.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new DD(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new DD(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 i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),DD=(function(){function e(t,n){lb(this,e),this.globalMetadataObject=n,this.metadata=t,gz.call(this,n.metadata)}return ub(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(i){return new Yae(i,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()&&PD(this.types(),n))return new Kae(PD(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?OD:this.metadata[13]||OD}}])})(),Yae=(function(){function e(t,n){lb(this,e),this._format=t,this.metadata=n}return ub(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()&&!Gae.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),Gae=/^\(?\$1\)?$/,Kae=(function(){function e(t,n){lb(this,e),this.type=t,this.metadata=n}return ub(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 PD(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 pz(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!sf(e)||!sf(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(sf(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Zae(e)+": "+e,"."))}var Zae=function(t){return Tf(t)};function w6(e,t){if(t=new ki(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function gz(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?MD(t,Vae)===-1?this.v2=!0:MD(t,Uae)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function E6(e,t,n){return $ae(e,t,void 0,n)}function $ae(e,t,n,r){t&&(r=new ki(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var o=e.length,u=a[0];return u===o?"IS_POSSIBLE":u>o?"TOO_SHORT":a[a.length-1]<o?"TOO_LONG":a.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Jae(e,t,n){if(t===void 0&&(t={}),n=new ki(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 vz(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 vz(e,t,n){return E6(e,t,n)==="IS_POSSIBLE"}function qo(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ese(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=tse(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.
264
+ ${y?"rounded-tr-none rounded-br-none":""}`})]})})}),a.map((T,N)=>c.jsxs(cn,{onClick:T.onClick,className:`${y&&N==0?"rounded-tl-none rounded-bl-none":""}`,children:[T.icon?c.jsx(de,{style:{fill:T.active?"white":"var(--color-brand-dark-800)"},icon:T.icon,size:"medium",className:"mr-1"}):"",T.label]},N))]}):null,c.jsx("div",{className:`overflow-x-auto ${e}`,children:c.jsxs("table",{className:`min-w-full border-collapse table-fixed ${d?"table-bordered":""}`,children:[c.jsx("thead",{className:"text-brand-dark-800",children:c.jsx("tr",{children:t.getHeaderGroups().map(T=>T.headers.map(N=>c.jsx("th",{className:"py-4 px-6 text-left bg-near-neutral-300",style:{width:N.getSize()?N.getSize():"",cursor:N.column.getCanSort()?"pointer":"default"},children:N.isPlaceholder?null:N.column.columnDef.header?C1(N.column.columnDef.header,N.getContext()):N.id},N.id)))})}),c.jsx("tbody",{children:t.getRowModel().rows.length>0?t.getRowModel().rows.map(T=>c.jsx("tr",{onClick:()=>o==null?void 0:o(T),className:`group ${o?"hover:cursor-pointer":""} ${b!=null?b(T)?"bg-near-neutral-300":"":T.getIsSelected()?"bg-near-neutral-300":""}`,children:T.getVisibleCells().map(N=>c.jsx("td",{className:`py-4 px-6 bg-white group-hover:bg-near-neutral-300 ${d?"border border-near-neutral-300 p-2":""}`,children:C1(N.column.columnDef.cell,N.getContext())},N.id))},T.id)):c.jsx("tr",{children:c.jsx("td",{colSpan:t.getAllColumns().length,className:"py-4 px-6 text-center",children:u})})})]})}),c.jsx("div",{className:`flex items-center justify-between bg-near-neutral-300 text-brand-dark-800 ${d?"":"border-t border-brand-dark-500"} ${j.length?"":"py-5"} px-4 rounded-b-lg`,children:g?g({table:t}):c.jsxs(c.Fragment,{children:[c.jsx("div",{children:c.jsx("p",{children:`${R} - ${S} of ${P} ${p!=null?p:r.toLowerCase()}`})}),c.jsxs("div",{className:"flex gap-5",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{className:"p-1 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:UL,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:tb,className:"block w-4 h-4 fill-current"})}),c.jsx("div",{className:"flex items-center space-x-2",children:j.map((T,N)=>{if(T===0)return c.jsx("span",{children:"..."},N);const _=C===T;return c.jsx("button",{className:`px-3 py-5 w-12 ${_?"inset-shadow-highlight text-brand-medium-500":""}`,onClick:()=>t.setPageIndex(T-1),children:T},N)})}),c.jsx("button",{className:"p-1 text-brand-dark-800 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:eb,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-brand-dark-800 hover:bg-brand-medium-500 hover:text-white rounded disabled:text-near-neutral-700 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:VL,className:"block w-4 h-4 fill-current"})})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[h.length===1?c.jsx("span",{children:h.at(0)}):c.jsx("select",{className:"w-25 bg-white text-brand-dark-800 rounded p-1",value:t.getState().pagination.pageSize,onChange:T=>{t.setPagination(N=>({...N,pageSize:Number(T.target.value),pageIndex:0}))},children:h.map(T=>c.jsx("option",{value:T,children:T},T))}),x&&c.jsxs("span",{children:[r," per page"]})]})]})]})})]})})}function Dre({imageUrl:e,name:t,iconClass:n,svgIcon:r,imageAlt:i,buttonClasses:a}){return e?k.createElement("img",{role:"presentation",className:or(nf.icon({c:a})),alt:i,src:e}):t||r?k.createElement(Q5,{className:or(nf.icon({c:a})),name:t,icon:r}):n?k.createElement("span",{role:"presentation",className:or(nf.icon({c:a}),n)}):null}const tu=k.forwardRef((e,t)=>{const{children:n,togglable:r,dir:i,disabled:a,selected:o,icon:u,iconClass:d,svgIcon:h,imageUrl:b,imageAlt:p,className:y,startIcon:g,endIcon:x,onClick:A,size:w=Xg.size,rounded:C=Xg.rounded,fillMode:M=Xg.fillMode,themeColor:P=Xg.themeColor,...R}=e,S=()=>{r&&o===void 0&&(D.current=!T,N(!T))},O=J=>{S(),A&&A.call(void 0,J)},D=k.useRef(void 0),j=k.useRef(null),[T,N]=k.useState(r===!0&&o===!0),_=h!==void 0||u!==void 0||d!==void 0||b!==void 0,L=n!==void 0,q=W0(),z=e.unstyled||q,B=z&&z.uButton;k.useImperativeHandle(t,()=>({element:j.current,selected:D.current!==void 0?D.current:T})),k.useMemo(()=>{r&&o!==void 0&&o!==T&&N(o)},[r,o]),k.useEffect(()=>{D.current=void 0},[T]);const X=Dre({name:u,svgIcon:h,iconClass:d,imageUrl:b,imageAlt:p,buttonClasses:B}),V=J=>k.cloneElement(J,{className:or(nf.icon({c:B}))});return k.createElement("button",{ref:j,"aria-pressed":r?T:void 0,...R,dir:i,disabled:a,onClick:O,className:or(nf.wrapper({c:B,isRtl:i==="rtl",selected:T,disabled:a,size:w,fillMode:M,rounded:C,themeColor:P,iconButton:!L&&_}),y)},g&&V(g),X,n&&k.createElement("span",{className:or(nf.text({c:B}))},n),x&&V(x))}),Xg={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};tu.displayName="KendoReactButton";tu.propTypes={children:fe.node,selected:fe.bool,togglable:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,imageAlt:fe.string,size:fe.oneOf([null,"small","medium","large"]),rounded:fe.oneOf([null,"small","medium","large","full"]),fillMode:fe.oneOf([null,"flat","link","outline","solid","clear"]),themeColor:fe.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])};const g6=e=>{const t=W0(),n=e.unstyled||t,r=n&&n.uDropDownButton,i=k.useCallback(d=>{e.onClick(d,e.index)},[e]),a=e.dataItem.render||e.item||(e.item===void 0?e.render:null),o=e.dataItem.text!==void 0?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,u=k.createElement("li",{id:e.id,className:or(Zd.li({c:r,focused:e.focused}),e.className),tabIndex:-1,onClick:i,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},k.createElement("span",{tabIndex:-1,className:or(Zd.link({c:r,selected:e.dataItem.selected,disabled:e.dataItem.disabled})),key:"icon"},a?k.createElement(a,{item:e.dataItem,itemIndex:e.index}):k.createElement(k.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass||e.dataItem.svgIcon)&&k.createElement(Q5,{className:e.dataItem.iconClass,name:e.dataItem.icon,icon:e.dataItem.svgIcon}),e.dataItem.imageUrl&&k.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),o&&k.createElement("span",{className:"k-menu-link-text"},o))));return e.item!==void 0&&e.render!==void 0?e.render.call(void 0,u,e):u};g6.displayName="KendoReactButtonItem";const zX=class extends k.Component{render(){return null}};zX.propTypes={text:fe.string,icon:fe.string,iconClass:fe.string,imageUrl:fe.string,disabled:fe.bool,render:fe.any};let Pre=zX;const qX=(e,t,n,r)=>{if(n)return e;const i=Math.min(r-1,Math.max(0,e));switch(t){case Fn.enter:case Fn.space:case Fn.esc:return-1;case Fn.up:case Fn.left:return i-1<0?r-1:i-1;case Fn.down:case Fn.right:return i+1>=r?0:i+1;case Fn.home:return 0;case Fn.end:return r-1;default:return e}};const xD=(e,t,n)=>{e.style.transitionDuration="",t&&e.classList.remove(...t.split(" ")),n&&e.classList.remove(...n.split(" "))},jre=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),Tre=(e,t,n,r,i,a)=>{if(n===0)return i();const o=or(Zu.slide({direction:t,type:r,c:a})),u=or(Zu.slideActive({direction:t,type:r,c:a})),d=y=>{y.target===e&&(e.removeEventListener("transitionend",d),xD(e,o,u),r==="exit"?e.style.display="none":e.style.display="",i())};e.addEventListener("transitionend",d);const h=e.ownerDocument;if(!h)return;const b=h.defaultView;if(!b)return;const p=()=>{xD(e,o,u),r==="enter"&&(e.style.display=""),o&&e.classList.add(...o.split(" ").filter(y=>y)),b.requestAnimationFrame(()=>{e.style.transitionDuration=n+"ms",e.classList.add(...u.split(" ").filter(y=>y))})};jre?b.requestAnimationFrame(p):p()};var jn;(function(e){e.bottom="bottom",e.center="center",e.middle="middle",e.left="left",e.right="right",e.top="top"})(jn||(jn={}));var Nre=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,a=e.margin,o=a===void 0?{}:a,u=n.horizontal,d=n.vertical,h=i.horizontal,b=i.vertical,p=o.horizontal||0,y=o.vertical||0,g=t.top,x=t.left;return d===jn.bottom&&(g+=t.height),(d===jn.center||d===jn.middle)&&(g+=Math.round(t.height/2)),b===jn.bottom&&(g-=r.height,y*=-1),(b===jn.center||b===jn.middle)&&(g-=Math.round(r.height/2),y*=-1),u===jn.right&&(x+=t.width),(u===jn.center||u===jn.middle)&&(x+=Math.round(t.width/2)),h===jn.right&&(x-=r.width,p*=-1),(h===jn.center||h===jn.middle)&&(x-=Math.round(r.width/2),p*=-1),{top:g+y,left:x+p}},kre=function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}};const QX=(function(e){return e&&e.ownerDocument||document});var HX=function(e){return QX(e).documentElement},Qx=0,_re=function(){if(!Qx&&typeof document!="undefined"){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),Qx=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Qx},v6=function(e){return QX(e).defaultView},VX=function(e){var t=v6(e),n=HX(e),r={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=_re()),r},Bre=function(e){if(!e.getBoundingClientRect){var t=VX(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect(),r=n.bottom,i=n.left,a=n.right,o=n.top;return{bottom:r,left:i,right:a,top:o}},b6=function(e){for(var t=e.offsetParent;t&&t.style.position==="static";)t=t.offsetParent;return t||e.ownerDocument.documentElement},Fre=function(e){var t=e.style,n=t.display,r=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=r,e.style.position=i,{top:a.top,left:a.left,height:a.height,width:a.width}},C0=function(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;return!t.height&&!t.width&&(t=Fre(e)),{top:r,left:n,height:t.height,width:t.width}},UX=function(e,t){for(var n=[],r=e.parentNode;r&&(n.push(r),r!==t);)r=r.parentNode;return n},WX=function(e){var t=HX(e),n=v6(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}},YX=function(e){return e===(e.ownerDocument||{}).body?WX(e):{x:e.scrollLeft,y:e.scrollTop}},Lre=function(e){var t=b6(e);return t?YX(t):{x:0,y:0}},Xre=function(e,t){var n=v6(e),r=n.getComputedStyle(e),i=C0(e),a=t||b6(e),o=e.ownerDocument,u=a!==o.body&&a!==o.documentElement,d={top:0,left:0};if(r.position!=="fixed"&&u){var h=n.getComputedStyle(a);d=C0(a),d.top+=parseFloat(h.borderTopWidth),d.left+=parseFloat(h.borderLeftWidth)}return{top:i.top-d.top,left:i.left-d.left,height:i.height,width:i.width}},zre=function(e,t){return e?YX(e):Lre(t)},qre=function(e,t,n){n===void 0&&(n=1);var r=t?b6(t):null,i=Xre(e,r),a=i.top,o=i.left,u=i.height,d=i.width,h=zre(r,e),b=h.x,p=h.y,y=e.ownerDocument,g=r===y.body||r===y.documentElement?1:n;return{top:a+p*g,left:o+b*g,height:u,width:d}},Qre=function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},sa;(function(e){e.fit="fit",e.flip="flip",e.none="none"})(sa||(sa={}));var AD=function(e,t,n){var r=0;return e+t>n&&(r=n-(e+t)),e<0&&(r=-e),r},wD=function(e){var t=e.offset,n=e.size,r=e.anchorSize,i=e.viewPortSize,a=e.anchorAlignPoint,o=e.elementAlignPoint,u=e.margin,d=0,h=o===jn.center||o===jn.middle,b=a===jn.center||a===jn.middle,p=2*u;if(o!==a&&!h&&!b){var y=a===jn.top||a===jn.left;t<0&&y?(d=n+r+p,t+d+n>i&&(d=0)):t>=0&&!y&&(t+n>i&&(d+=-(r+n+p)),t+d<0&&(d=0))}return d},Hre=function(e){var t=e.anchorRect,n=e.anchorAlign,r=e.elementRect,i=e.elementAlign,a=e.collisions,o=e.viewPort,u=e.margin,d=u===void 0?{}:u,h=r.top,b=r.left,p=r.height,y=r.width,g=o.height,x=o.width,A=d.horizontal||0,w=d.vertical||0,C=0,M=0,P=a.vertical===sa.fit,R=a.horizontal===sa.fit,S=a.vertical===sa.flip,O=a.horizontal===sa.flip;P&&(M+=AD(h,p,g)),R&&(C+=AD(b,y,x)),S&&(M+=wD({margin:w,offset:h,size:p,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),O&&(C+=wD({margin:A,offset:b,size:y,anchorSize:t.width,viewPortSize:x,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var D=S&&M!==0,j=O&&C!==0,T=P&&M!==0,N=R&&C!==0;return{flipped:j||D,fitted:T||N,flip:{horizontal:j,vertical:D},fit:{horizontal:N,vertical:T},offset:{left:C,top:M}}},Vre=function(e){for(var t,n=[],r=(t=e.parentNode)===null||t===void 0?void 0:t.firstElementChild;r;)r!==e&&n.push(r),r=r.nextElementSibling;return n},Ure=function(e,t){for(var n=UX(e),r=t,i,a;r&&(i=Vre(r),a=n.reduce(function(o,u){return o.concat(i.filter(function(d){return d===u}))},[])[0],!a);)r=r.parentElement;return a},Wre=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},Yre=function(e,t){return!e||t===1?e:{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}},Gre=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e};function Kre(e){var t=this,n,r=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r||(n=e.apply(t,i),r=!0),n}}var Zre=Kre(function(e){if(!GX())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=10,r=t.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: '.concat(n,'px;">child</div>'),t.body.appendChild(r);var i=r.children[0].getBoundingClientRect().top!==n;return t.body.removeChild(r),i}),GX=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},da={eitherRect:Wre,scaleRect:Yre,removeStackingOffset:Gre,hasRelativeStackingContext:Zre,canUseDOM:GX},$re=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Jre=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},KX=function(){return da.canUseDOM()?window:null},eie=function(e){var t=KX();if(!t||!e)return[];var n=t.getComputedStyle(e);return $re.map(function(r){return{key:r,value:n[r]}})},tie=function(e){return e?!!e.offsetParent:!1},nie=function(e){return e?C0(e):null},rie=function(e,t){if(!e)return null;var n=e.style,r=n.left,i=n.top,a=n.transition;e.style.transition="none",e.style.left="".concat(t.left,"px"),e.style.top="".concat(t.top,"px");var o=C0(e);return e.style.left=r,e.style.top=i,e.offsetHeight,e.style.transition=a,o},iie=function(e,t,n){if(!e||!t)return null;var r=n||1;return qre(e,t,r)},aie=/auto|scroll/,sie=function(e){return"".concat(window.getComputedStyle(e).overflow)},oie=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)},lie=function(e){return sie(e)||oie(e)},uie=function(e){var t=[];if(!da.canUseDOM())return t;for(var n=e.parentElement;n;)(aie.test(lie(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},J0=function(e){if(!e||!da.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if(window.getComputedStyle(t).transform!=="none")return t;t=t.parentElement}return null},cie=function(e){var t=J0(e);return t?C0(t):null},die=function(e){var t=J0(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},fie=function(e){var t=J0(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},hie=function(e){return!!J0(e)},ZX=function(){return da.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},mie=function(){return ZX()>1},pie=function(e,t){if(!e||!da.canUseDOM())return null;var n=Ure(e,t);if(!n)return null;var r=[e].concat(UX(e,n)).reduce(function(i,a){var o=a.style.zIndex||window.getComputedStyle(a).zIndex,u=parseInt(o,10);return u>i?u:i},0);return r?r+1:null},Pi={addOffset:Jre,addScroll:kre,align:Nre,boundingOffset:Bre,getFontStyles:eie,getWindow:KX,hasOffsetParent:tie,offset:nie,offsetAtPoint:rie,position:iie,removeScroll:Qre,restrictToView:Hre,scrollPosition:WX,scrollableParents:uie,getRelativeContextElement:J0,stackingElementOffset:cie,stackingElementScroll:die,stackingElementViewPort:fie,useRelativePosition:hie,windowViewport:VX,zoomLevel:ZX,isZoomed:mie,zIndex:pie},gie=function(e,t,n,r){var i=bie(e,t),a=da.eitherRect(Pi.offset(e),n),o=2*r,u=Pi.stackingElementScroll(t);r!==1&&u&&(u.x/=o,u.y/=o);var d=Pi.stackingElementOffset(t);return r!==1&&d&&(d.left/=o,d.top/=o),Pi.removeScroll(Pi.addScroll(da.removeStackingOffset(da.scaleRect(a,r),d),u),i)},vie=function(e,t,n,r){var i=da.eitherRect(Pi.position(e,t,r),n);return da.scaleRect(i,r)},bie=function(e,t){return e?{x:0,y:0}:Pi.scrollPosition(t)},yie=function(e){var t=e.anchor,n=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.margin,o=e.offset,u=e.positionMode,d=e.scale,h=d||1,b=u==="fixed"||!Pi.hasOffsetParent(n),p=b?gie(t,n,o,h):vie(t,n,o,h),y=da.scaleRect(Pi.offset(n),h),g=Pi.align({anchorAlign:r,anchorRect:p,elementAlign:i,elementRect:y,margin:a});return g},xie=function(e){var t=e.anchor,n=e.currentLocation,r=e.element,i=e.anchorAlign,a=e.elementAlign,o=e.collisions,u=e.margin,d=e.scale,h=d||1,b=Pi.offsetAtPoint(r,n),p=da.scaleRect(b,h),y=da.scaleRect(Pi.offset(t),h),g=da.eitherRect(y,n),x=e.viewPort||Pi.windowViewport(r);x.width=x.width/h,x.height=x.height/h;var A=Pi.restrictToView({anchorAlign:i,anchorRect:g,collisions:o,elementAlign:a,elementRect:p,margin:u,viewPort:x}),w=Pi.addOffset(n,A.offset);return{flip:A.flip,flipped:A.flipped,fit:A.fit,fitted:A.fitted,offset:w}};const Aie=16.666666666666668,wie=function(e,t,n={}){let r,i,a,o,u=0;n=n||{};const d=function(){u=n.leading===!1?0:new Date().getTime(),r=void 0,o=e.apply(i,a),r||(i=a=null)};return function(){const h=new Date().getTime();!u&&n.leading===!1&&(u=h);const b=t-(h-u);return i=void 0,a=arguments,b<=0||b>t?(r&&(clearTimeout(r),r=void 0),u=h,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=window.setTimeout(d,b)),o}};const Eie=k.createContext(e=>e),Sie=100,Cie=1;function kd(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==t[a])return!1}return!0}const Rie={left:-1e3,top:0},ep=k.forwardRef((e,t)=>{const n=k.useContext(Eie).call(void 0,e),{collision:r=wl.collision,anchorAlign:i=wl.anchorAlign,popupAlign:a=wl.popupAlign,offset:o=wl.offset,animate:u=wl.animate,show:d=wl.show,margin:h=wl.margin,positionMode:b=wl.positionMode,appendTo:p,contentKey:y,anchor:g,scale:x,role:A,onKeyDown:w,onPosition:C,onOpen:M,onMouseDownOutside:P,onClose:R,className:S,popupClass:O,id:D,style:j,children:T}=n,N=W0(),_=n.unstyled||N,L=_&&_.uPopup,[q,z]=k.useState({current:"hidden",previous:"hidden",props:{}}),B=pe=>{window==null||window.addEventListener("mousedown",ee),X(pe),J(pe.firstChild,"enter",V),z({...Ke,current:"shown",previous:Ke.current})},X=pe=>{const{width:ye,height:Be}=pe.style;if(pe.offsetWidth===0&&pe.offsetHeight===0)return;pe.style.width=pe.offsetWidth+"px",pe.style.height=pe.offsetHeight+"px";const $e=yie({anchor:g,anchorAlign:i,element:pe,elementAlign:a,offset:o,margin:h,positionMode:b,scale:x}),it=xie({anchor:g,anchorAlign:i,element:pe,elementAlign:a,collisions:r,currentLocation:$e,margin:h});if(pe.style.top=it.offset.top+"px",pe.style.left=it.offset.left+"px",pe.style.width=ye,pe.style.height=Be,be.current={fit:it.fit,fitted:it.fitted,flip:it.flip,flipped:it.flipped},C){const At={target:mt.current,flipped:it.flipped,fitted:it.fitted};C.call(void 0,At)}},V=()=>{const pe=Ge.current;pe&&(d&&pe.classList.add(...or(Zu.animationContainerShown({c:L})).split(" ").filter(ye=>ye)),W(pe),M&&M.call(void 0,{target:mt.current}))},J=(pe,ye,Be)=>{if(!a)return;let $e;const{horizontal:it,vertical:At}=a;typeof e.animate=="object"&&e.animate.direction?$e=e.animate.direction:it==="left"&&At==="center"?$e="right":it==="right"&&At==="center"?$e="left":At==="top"?$e="down":$e="up";const wt={down:"up",up:"down",left:"right",right:"left"};be.current&&be.current.flipped&&($e=wt[$e]),Tre(pe,$e,H()[ye],ye,Be,L)},ee=pe=>{var ye;const Be=((ye=pe==null?void 0:pe.target)==null?void 0:ye.closest(".k-animation-container"))===null,$e=(g==null?void 0:g.contains(pe==null?void 0:pe.target))||!1;if(Be){if(P){const it={target:mt.current,event:pe,state:q,isAnchorClicked:$e};P.call(void 0,it)}window==null||window.removeEventListener("mousedown",ee)}},ne=pe=>{if(!d){const ye=_&&_.uPopup;pe.classList.remove(...or(Zu.animationContainerShown({c:ye})).split(" ").filter(Be=>Be))}Y()},U=()=>{Ke.current==="hiding"&&(Ke.previous==="shown"||Ke.previous==="reposition")&&z({...Ke,current:"hidden",previous:Ke.current}),R&&R.call(void 0,{target:mt.current})},H=()=>{const pe=u;let ye=0,Be=0;return pe&&(pe===!0?ye=Be=300:(ye=pe.openDuration||0,Be=pe.closeDuration||0)),{enter:ye,exit:Be}},W=pe=>{Y(),Te.current=Pi.scrollableParents(g||pe),Te.current&&Te.current.map(ye=>ye.addEventListener("scroll",K)),window.addEventListener("resize",K)},Y=()=>{Te.current&&(Te.current.map(pe=>pe.removeEventListener("scroll",K)),Te.current=void 0),window.removeEventListener("resize",K)},K=wie(()=>{Ge.current&&Ke.current!=="hidden"&&Ke.current!=="hiding"&&z({...q,current:"reposition",previous:Ke.current})},Aie),re=()=>me?me+Cie:Sie,me=NL()||0,be=k.useRef(void 0),Te=k.useRef(void 0),Ge=k.useRef(null),mt=k.useRef(null),Rt=k.useRef({}),dt=k.useRef(!1);k.useImperativeHandle(mt,()=>({element:Ge.current,setPosition:X,props:e})),k.useImperativeHandle(t,()=>mt.current);const Ke=k.useMemo(()=>{const pe={...q,props:{show:d,anchor:g,anchorAlign:i,appendTo:p,collision:r,popupAlign:a,className:S,popupClass:O,style:j,offset:o,contentKey:y}};return d?q.current==="hidden"||q.current==="hiding"?{...pe,current:"showing",previous:q.current}:q.current==="showing"?{...pe,current:"shown",previous:q.current}:q.current==="shown"&&(!kd(o,q.props.offset)||!kd(i,q.props.anchorAlign)||!kd(p,q.props.appendTo)||!kd(r,q.props.collision)||!kd(a,q.props.popupAlign)||!kd(j,q.props.style)||g!==q.props.anchor||O!==q.props.popupClass||S!==q.props.className)?{...pe,current:"reposition",previous:q.current}:pe:q.current==="hiding"||q.current==="hidden"?{...pe,current:"hidden",previous:q.current}:{...pe,current:"hiding",previous:q.current}},[d,g,i,p,r,a,S,O,j,o,y,q]);k.useEffect(()=>{Ke.current==="hiding"&&!dt.current&&Ge.current?(dt.current=!0,ne(Ge.current),J(Ge.current.firstChild,"exit",U)):(dt.current=!1,Ke.current==="showing"&&Ge.current&&!Ge.current.classList.contains("k-animation-container-shown")?B(Ge.current):Ke.current==="hiding"&&Ge.current?U():Ke.current==="reposition"&&Ke.previous==="shown"?setTimeout(()=>{z({...Ke,current:"shown",previous:Ke.current})},0):Ke.current==="shown"&&Rt.current.contentKey!==y&&Ge.current&&X(Ge.current)),Ke.current==="reposition"&&(Ke.previous==="shown"||Ke.previous==="showing")&&Ge.current&&X(Ge.current),Rt.current={contentKey:y}},[Ke]),k.useEffect(()=>(Ke.current==="showing"&&Ge.current&&B(Ge.current),()=>{Y()}),[]);const ie=p||(Gd?g&&g.ownerDocument?g.ownerDocument.body:document.body:void 0),ce=Object.assign({},{position:b,top:0,left:-1e4},j||{}),De=Ke.current==="hiding";if((d||De)&&ie){const pe=re(),ye=k.createElement(Xf.Provider,{value:pe},k.createElement("div",{onKeyDown:w,className:or(Zu.animationContainer({c:L}),S),id:D,ref:Ge,style:{zIndex:pe,...ce}},k.createElement("div",{className:or(Zu.animationChild({c:L})),style:{transitionDelay:"0ms"}},k.createElement("div",{role:A,className:or(Zu.popup({c:L}),O)},T))));return p!==null?X0.createPortal(ye,ie):ye}return null}),wl={collision:{horizontal:sa.fit,vertical:sa.flip},anchorAlign:{horizontal:jn.left,vertical:jn.bottom},popupAlign:{horizontal:jn.left,vertical:jn.top},offset:Rie,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"};ep.displayName="Popup";ep.propTypes={anchor:function(e){const t=e.anchor;return t&&typeof t.nodeType!="number"?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){const t=e.appendTo;return t&&typeof t.nodeType!="number"?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:fe.oneOfType([fe.string,fe.arrayOf(fe.string.isRequired)]),id:fe.string,popupClass:fe.oneOfType([fe.string,fe.arrayOf(fe.string),fe.object]),collision:fe.shape({horizontal:fe.oneOf([sa.fit,sa.flip,sa.none]),vertical:fe.oneOf([sa.fit,sa.flip,sa.none])}),anchorAlign:fe.shape({horizontal:fe.oneOf([jn.left,jn.center,jn.right]),vertical:fe.oneOf([jn.top,jn.center,jn.bottom])}),popupAlign:fe.shape({horizontal:fe.oneOf([jn.left,jn.center,jn.right]),vertical:fe.oneOf([jn.top,jn.center,jn.bottom])}),offset:fe.shape({left:fe.number,top:fe.number}),children:fe.oneOfType([fe.element,fe.node]),show:fe.bool,animate:fe.oneOfType([fe.bool,fe.shape({openDuration:fe.number,closeDuration:fe.number})]),margin:fe.shape({horizontal:fe.number,vertical:fe.number}),positionMode:fe.oneOf(["fixed","absolute"]),scale:fe.number,style:fe.object,onClose:fe.func,onPosition:fe.func,onOpen:fe.func,onKeyDown:fe.func,onMouseDownOutside:fe.func};function $X(e){const t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function JX(e){const t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}const ez={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1745410557,version:"10.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};const F4=class extends k.Component{constructor(t){super(t),this.state={focused:!1,focusedIndex:-1,opened:!1},this.wrapper=null,this.mainButton=null,this.list=null,this.skipFocus=!1,this.buttonsData=[],this.showLicenseWatermark=!1,this.onKeyDown=n=>{const{focusedIndex:r}=this.state;if(n.altKey){!this.opened&&n.keyCode===Fn.down?(n.preventDefault(),this.setState({focusedIndex:0}),this.setOpen(!0,n)):this.opened&&n.keyCode===Fn.up&&(n.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,n));return}let i;if(n.keyCode===Fn.enter||n.keyCode===Fn.space){if(n.preventDefault(),this.dispatchClickEvent(n,r),r>=0){i={focusedIndex:this.opened?-1:0};const a=!this.opened;this.setOpen(a,n)}}else if(this.opened&&n.keyCode===Fn.esc){this.setState({focusedIndex:-1}),this.setOpen(!1,n);return}if(this.opened){const a=qX(r,n.keyCode,n.altKey,this.buttonsData.length);a!==r&&(i=i||{},i.focusedIndex=a);const o=n.keyCode===Fn.up||n.keyCode===Fn.down||n.keyCode===Fn.left||n.keyCode===Fn.right;!n.altKey&&(o||n.keyCode===Fn.home||n.keyCode===Fn.end)&&n.preventDefault()}i&&this.setState(i)},this.switchFocus=n=>{this.skipFocus=!0,n(),window.setTimeout(()=>this.skipFocus=!1,0)},this.onFocus=n=>{this.skipFocus||(us(this.props.onFocus,n,this,void 0),this.setState({focused:!0}))},this.setOpen=(n,r)=>{this.opened!==n&&(this.openedDuringOnChange=n,this.setState({opened:n}),r?this.dispatchPopupEvent(r,n):this.openedDuringOnChange=void 0)},this.onItemClick=(n,r)=>{this.opened&&this.setState({focusedIndex:0}),this.dispatchClickEvent(n,r),this.setOpen(!1,n)},this.onBlur=n=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),us(this.props.onBlur,n,this,void 0),setTimeout(()=>{this.setOpen(!1,n)},0))},this.onPopupClose=n=>{var r;const i=pc(document);this.element&&this.element.removeAttribute("tabindex"),(i===this.list||(r=this.list)!=null&&r.contains(i))&&this.switchFocus(()=>{this.element&&this.element.focus({preventScroll:!0})}),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,n)},this.listRef=n=>{this.list=n,n&&this.state.focused&&this.switchFocus(()=>{n.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)})},this.onSplitPartClick=n=>{if(this.buttonsData.length){const r=!this.opened;this.setState({focusedIndex:r?0:-1,focused:!0}),this.setOpen(r,n)}},this.onDownSplitPart=n=>{n.preventDefault();const r=pc(document);this.element&&r!==this.element&&r!==this.list&&this.element.focus()},this.onItemDown=n=>{pc(document)===this.list&&n.preventDefault()},this.dispatchPopupEvent=(n,r)=>{us(r?this.props.onOpen:this.props.onClose,n,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!XL(ez,{component:"SplitButton"})}get guid(){return this.props.id?this.props.id+"-accessibility-id":this.props.id}get opened(){return this.openedDuringOnChange!==void 0?this.openedDuringOnChange:this.props.opened===void 0?this.state.opened:this.props.opened}render(){this.buttonsData=this.props.items||k.Children.toArray(this.props.children).filter(u=>u&&u.type===Pre).map(u=>u.props);const t=this.isRtl(),n=t?"rtl":void 0,{id:r,style:i,tabIndex:a,disabled:o}=this.props;return k.createElement(k.Fragment,null,k.createElement("div",{id:r,style:i,className:or("k-split-button","k-button-group",{"k-focus":this.state.focused},`k-rounded-${NO.roundedMap[this.props.rounded||"medium"]}`,this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:u=>{this.wrapper=u}},k.createElement(tu,{ref:u=>{this.mainButton=u&&u.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:u=>this.onItemClick(u,-1),disabled:o||void 0,tabIndex:a,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,svgIcon:this.props.svgIcon,iconClass:this.props.iconClass,startIcon:this.props.startIcon,endIcon:this.props.endIcon,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":o,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),k.createElement(tu,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",svgIcon:LJ,className:"k-split-button-arrow",disabled:o||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t)),this.showLicenseWatermark&&k.createElement(zL,null))}componentDidMount(){(this.props.dir===void 0&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(t,n){this.isItemDisabled(n)||(n===-1?us(this.props.onButtonClick,t,this,void 0):us(this.props.onItemClick,t,this,{item:this.buttonsData[n],itemIndex:n}))}renderPopup(t){const{popupSettings:n={}}=this.props,{focusedIndex:r}=this.state;return k.createElement(ep,{anchor:this.wrapper,show:this.opened,animate:n.animate,popupClass:or("k-menu-popup",n.popupClass),anchorAlign:n.anchorAlign||$X(t),popupAlign:n.popupAlign||JX(t),style:t?{direction:"rtl"}:void 0,onClose:this.onPopupClose},k.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":r>=0?`${this.guid}-${r}`:void 0,className:or("k-menu-group",{[`k-menu-group-${NO.sizeMap[this.props.size]||this.props.size}`]:this.props.size})},this.renderChildItems()))}renderChildItems(){const{item:t,itemRender:n,textField:r}=this.props;return this.buttonsData.length>0?this.buttonsData.map((i,a)=>k.createElement(g6,{className:or("k-menu-item",{"k-first":a===0},{"k-last":a===this.buttonsData.length-1}),dataItem:i,textField:r,focused:this.state.focusedIndex===a,onClick:this.onItemClick,onDown:this.onItemDown,render:n,item:t,key:a,index:a,id:`${this.guid}-${a}`})):null}isItemDisabled(t){return this.buttonsData[t]?this.buttonsData[t].disabled:this.props.disabled}isRtl(){return this.props.dir!==void 0?this.props.dir==="rtl":!!this.wrapper&&getComputedStyle(this.wrapper).direction==="rtl"}};F4.propTypes={accessKey:fe.string,ariaLabel:fe.string,title:fe.string,onButtonClick:fe.func,onFocus:fe.func,onBlur:fe.func,onItemClick:fe.func,onOpen:fe.func,onClose:fe.func,text:fe.string,items:fe.arrayOf(fe.any),textField:fe.string,tabIndex:fe.number,disabled:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,popupSettings:fe.object,itemRender:fe.any,item:fe.func,className:fe.string,buttonClass:fe.string,dir:fe.string},F4.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let Iie=F4;const tz=class extends k.Component{render(){return null}};tz.propTypes={text:fe.string,icon:fe.string,iconClass:fe.string,imageUrl:fe.string,selected:fe.bool,disabled:fe.bool,render:fe.any};let Mie=tz;const Oie=12e3,Die=2e3,L4=class extends k.Component{constructor(t){super(t),this.state={opened:!1,focused:!1,focusedIndex:-1},this.mainButton=null,this.list=null,this.skipFocus=!1,this.showLicenseWatermark=!1,this.buttonsData=[],this.onKeyDown=n=>{const{focusedIndex:r}=this.state;if(n.altKey){!this.opened&&n.keyCode===Fn.down?(n.preventDefault(),this.setOpen(!0,n),this.setState({focusedIndex:0})):this.opened&&n.keyCode===Fn.up&&(n.preventDefault(),this.setState({focusedIndex:-1}),this.setOpen(!1,n));return}const i={...this.state};if(n.keyCode===Fn.enter||n.keyCode===Fn.space){n.preventDefault(),r>=0&&this.dispatchClickEvent(n,r);const a=!this.opened;this.setState({focused:!0,focusedIndex:a?0:-1}),this.setOpen(a,n);return}if(this.opened&&n.keyCode===Fn.esc){this.setState({focusedIndex:-1}),this.setOpen(!1,n);return}if(this.opened){const a=qX(r,n.keyCode,n.altKey,this.buttonsData.length);i.focusedIndex=a;const o=n.keyCode===Fn.up||n.keyCode===Fn.down||n.keyCode===Fn.left||n.keyCode===Fn.right;!n.altKey&&(o||n.keyCode===Fn.home||n.keyCode===Fn.end)&&n.preventDefault()}this.setState(i)},this.switchFocus=n=>{this.skipFocus=!0,n(),window.setTimeout(()=>this.skipFocus=!1,0)},this.handleFocus=n=>{this.skipFocus||(this.setState({focused:!0,focusedIndex:this.opened?0:-1}),us(this.props.onFocus,n,this,void 0))},this.handleButtonBlur=n=>{this.opened||(this.setState({focused:!1}),us(this.props.onBlur,n,this,void 0))},this.handleMenuBlur=n=>{this.skipFocus||(this.setState({focused:!1,focusedIndex:-1}),us(this.props.onBlur,n,this,void 0),setTimeout(()=>{this.setOpen(!1,n)},0))},this.setOpen=(n,r)=>{this.opened!==n&&(this.openedDuringOnChange=n,this.setState({opened:n}),r?this.dispatchPopupEvent(r,n):this.openedDuringOnChange=void 0)},this.onItemClick=(n,r)=>{this.setState({focusedIndex:-1}),this.dispatchClickEvent(n,r),this.setOpen(!1,n)},this.onItemDown=n=>{pc(document)===this.list&&n.preventDefault()},this.mouseDown=n=>{n.preventDefault();const r=pc(document);this.element&&r!==this.element&&r!==this.list&&this.element.focus()},this.onPopupClose=n=>{var r;const i=pc(document);this.element&&this.element.removeAttribute("tabindex"),(i===this.list||(r=this.list)!=null&&r.contains(i))&&this.switchFocus(()=>{this.element&&this.element.focus({preventScroll:!0})}),this.props.popupSettings&&this.props.popupSettings.onClose&&this.props.popupSettings.onClose.call(void 0,n)},this.listRef=n=>{this.list=n,n&&this.state.focused&&this.switchFocus(()=>{n.focus({preventScroll:!0}),this.element&&(this.element.tabIndex=-1)})},this.onClickMainButton=n=>{if(!this.buttonsData.length)return;const r=!this.opened;this.setState({focused:!0,focusedIndex:r?0:-1}),this.setOpen(r,n)},this.dispatchPopupEvent=(n,r)=>{us(r?this.props.onOpen:this.props.onClose,n,this,void 0),this.openedDuringOnChange=void 0},this.showLicenseWatermark=!XL(ez,{component:"DropDownButton"})}get guid(){return this.props.id+"-accessibility-id"}get opened(){return this.openedDuringOnChange!==void 0?this.openedDuringOnChange:this.props.opened===void 0?this.state.opened:this.props.opened}render(){const t=this.isRtl(),n=this.props.unstyled&&this.props.unstyled.uDropDownButton,r=t?"rtl":void 0,{id:i,style:a,tabIndex:o,disabled:u,size:d,rounded:h,fillMode:b,themeColor:p,ariaLabel:y,title:g,accessKey:x,icon:A,svgIcon:w,iconClass:C,buttonClass:M,className:P,imageUrl:R,startIcon:S,endIcon:O}=this.props;return this.buttonsData=this.props.items||k.Children.toArray(this.props.children).filter(D=>D&&D.type===Mie).map(D=>D.props),k.createElement(k.Fragment,null,k.createElement(tu,{id:i,size:d,style:a,rounded:h,fillMode:b,themeColor:p,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleButtonBlur,"aria-disabled":u?"true":void 0,tabIndex:o,accessKey:x,icon:A,svgIcon:w,iconClass:C,className:or(M,P,Zd.wrapper({c:n,focused:this.state.focused,disabled:u})),imageUrl:R,dir:r,ref:D=>{this.mainButton=D&&D.element},type:"button","aria-expanded":this.opened?"true":"false","aria-label":y,"aria-controls":this.opened?this.guid:void 0,title:g,startIcon:S,endIcon:O},this.props.text),this.showLicenseWatermark&&k.createElement(zL,null),this.renderPopup(t))}componentDidMount(){(this.props.dir===void 0&&this.isRtl()||this.opened)&&this.forceUpdate()}get element(){return this.mainButton}dispatchClickEvent(t,n){this.isItemDisabled(n)||us(this.props.onItemClick,t,this,{item:this.buttonsData[n],itemIndex:n})}renderPopup(t){const{popupSettings:n={},_zIndex:r,unstyled:i}=this.props,a=r?r+Die:Oie,o=i&&i.uDropDownButton,{focusedIndex:u}=this.state;return k.createElement(Xf.Provider,{value:a},k.createElement(ep,{anchor:this.mainButton,show:this.opened,animate:n.animate,popupClass:or(Zd.popup({c:o}),n.popupClass),anchorAlign:n.anchorAlign||$X(t),popupAlign:n.popupAlign||JX(t),style:t?{direction:"rtl"}:void 0,onClose:this.onPopupClose},k.createElement("ul",{role:"list",id:this.guid,tabIndex:-1,"aria-activedescendant":u>=0?`${this.guid}-${u}`:void 0,ref:this.listRef,onKeyDown:this.onKeyDown,onBlur:this.handleMenuBlur,className:or(Zd.ul({c:o,size:this.props.size}))},this.renderChildItems())))}renderChildItems(){const{item:t,itemRender:n,textField:r,unstyled:i}=this.props,a=i&&i.uDropDownButton;return this.buttonsData.length>0?this.buttonsData.map((o,u)=>k.createElement(g6,{className:or(Zd.item({c:a}),o.className,{"k-first":u===0},{"k-last":u===this.buttonsData.length-1}),dataItem:o,textField:r,focused:this.state.focusedIndex===u,onClick:this.onItemClick,onDown:this.onItemDown,render:n,item:t,index:u,key:u,id:`${this.guid}-${u}`})):null}isItemDisabled(t){return this.buttonsData[t]?this.buttonsData[t].disabled:this.props.disabled}isRtl(){return this.props.dir!==void 0?this.props.dir==="rtl":!!this.mainButton&&getComputedStyle(this.mainButton).direction==="rtl"}};L4.propTypes={accessKey:fe.string,ariaLabel:fe.string,title:fe.string,onFocus:fe.func,onBlur:fe.func,onItemClick:fe.func,onOpen:fe.func,onClose:fe.func,items:fe.arrayOf(fe.any),textField:fe.string,tabIndex:fe.number,disabled:fe.bool,icon:fe.string,svgIcon:z5,iconClass:fe.string,imageUrl:fe.string,popupSettings:fe.object,itemRender:fe.func,item:fe.func,className:fe.string,buttonClass:fe.string,dir:fe.string},L4.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"};let Pie=L4;const jie=qL(),nz=J1(QL(jie,OJ(DJ(Pie))));nz.displayName="KendoReactDropDownButton";const Tie=J1(nz);Tie.displayName="KendoReactDropDownButton";const Nie=J1(Iie);Nie.displayName="KendoReactSplitButton";const kie=({children:e,onCloseButtonClick:t,id:n,closeIcon:r})=>k.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:n},k.createElement("span",{className:"k-window-title k-dialog-title"},e),r&&k.createElement("div",{className:"k-window-titlebar-actions k-dialog-titlebar-actions"},k.createElement(tu,{role:"button","aria-label":"Close",onClick:t,icon:"x",svgIcon:an,fillMode:"flat",className:"k-window-titlebar-action k-dialog-titlebar-action"})));const X4=e=>{const t={layout:"stretched",...e},{layout:n,children:r}=t,i=or("k-actions","k-actions-horizontal","k-window-actions k-dialog-actions",{[`k-actions-${n}`]:n});return k.createElement("div",{className:i},r)};X4.propTypes={children:fe.any,layout:fe.oneOf(["start","center","end","stretched"])};const rz="data-windowid",_ie=10002,z4=2,Bie=".k-window:not(.k-dialog), .k-dialog-wrapper";const Fie=(e,t,n)=>{let r=e;if(t&&t.defaultView){const i=t.querySelectorAll(Bie);let a=!1;return i.forEach(o=>{const u=t.defaultView.getComputedStyle(o,null);if(o.getAttribute(rz)!==n&&u.zIndex!==null){const d=parseInt(u.zIndex,10);d>=r&&(r=d,a=!0)}}),a?r+z4:r}return r};const a0=class extends k.Component{constructor(t){super(t),this.context=0,this.titleId=this.generateTitleId(),this.contentId=this.generateContentId(),this.activeElement=null,this.onCloseDialog=n=>{n.preventDefault(),us(this.props.onClose,n,this,void 0)},this.onKeyDown=n=>{n.keyCode===Fn.esc&&this.props.onClose&&(n.preventDefault(),this.onCloseDialog(n)),cJ(n,this.element)},this.getCurrentZIndex=()=>!this.state||this.context===void 0?this.context?this.context:_ie:this.state.zIndex>(this.context?this.context+z4:0)?this.state.zIndex:this.context+z4,this.getDocument=()=>{const n=Gd?document:null;return this.props.appendTo?this.props.appendTo.ownerDocument:n},Gd&&(this.activeElement=pc(document))}get _id(){return this.props.id+"-accessibility-id"}componentDidMount(){if(this.element){if(this.props.autoFocus&&!this.props.autoFocusedElement)this.element.focus();else if(this.props.autoFocus&&this.props.autoFocusedElement)this.element.focus();else if(!this.props.autoFocus&&this.props.autoFocusedElement){const t=this.element.querySelector(this.props.autoFocusedElement);t&&t.focus()}else{const t=[...$1].map(n=>n+":not(.k-dialog-titlebar *)");uJ(this.element,t)}this.setState({zIndex:Fie(this.getCurrentZIndex(),this.getDocument(),this._id)})}}componentWillUnmount(){setTimeout(()=>{var t;!this.element&&this.activeElement&&Gd&&(document.contains(this.activeElement)?this.activeElement.focus():this.activeElement.id&&((t=document.getElementById(this.activeElement.id))==null||t.focus()))})}render(){const t=this.props.id!==void 0?this.props.id:this.titleId,{title:n,width:r,height:i,children:a,minWidth:o,dir:u,style:d,contentStyle:h,modal:b=!0}=this.props,p=k.Children.toArray(a),y=this.getContent(p),g=this.getActionBar(p),x=n?{"aria-labelledby":t}:null,A=this.props.closeIcon!==void 0?this.props.closeIcon:!0,w=this.getCurrentZIndex(),C=k.createElement(Xf.Provider,{value:w},k.createElement("div",{[rz]:this._id,className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:u,style:{zIndex:w,...d},ref:M=>{this.element=M}},b&&k.createElement("div",{className:"k-overlay",style:this.props.overlayStyle}),k.createElement("div",{...x,className:or("k-window k-dialog",{[`k-window-${this.props.themeColor}`]:this.props.themeColor}),role:"dialog","aria-labelledby":t,"aria-modal":!0,"aria-describedby":this.contentId,style:{width:r,height:i,minWidth:o}},this.props.title&&k.createElement(kie,{closeIcon:A,onCloseButtonClick:this.onCloseDialog,id:t},n),k.createElement("div",{className:"k-window-content k-dialog-content",style:h,id:this.contentId},y),g)));return Gd?this.props.appendTo!==null?X0.createPortal(C,this.props.appendTo||document.body):C:null}getActionBar(t){return t.filter(n=>n&&n.type===X4)}getContent(t){return t.filter(n=>n&&n.type!==X4)}generateTitleId(){return"dialog-title-"+this._id}generateContentId(){return"dialog-content-"+this._id}};a0.displayName="Dialog",a0.propTypes={title:fe.any,id:fe.string,dir:fe.string,style:fe.object,closeIcon:fe.bool,width:fe.oneOfType([fe.number,fe.string]),height:fe.oneOfType([fe.number,fe.string]),minWidth:fe.oneOfType([fe.number,fe.string]),autoFocus:fe.bool},a0.defaultProps={autoFocus:!1},a0.contextType=Xf;let Lie=a0;const Xie=qL(),iz=J1(QL(Xie,Lie));iz.displayName="KendoReactDialog";const An=e=>c.jsx(iz,{...e,appendTo:null}),zie={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qie=(e,t,n)=>{let r;const i=zie[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qie={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hie={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vie={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uie={date:Hx({formats:Qie,defaultWidth:"full"}),time:Hx({formats:Hie,defaultWidth:"full"}),dateTime:Hx({formats:Vie,defaultWidth:"full"})},Wie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yie=(e,t,n,r)=>Wie[e];function Mm(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Gie={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Kie={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zie={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},$ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jie={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tae=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},nae={ordinalNumber:tae,era:Mm({values:Gie,defaultWidth:"wide"}),quarter:Mm({values:Kie,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mm({values:Zie,defaultWidth:"wide"}),day:Mm({values:$ie,defaultWidth:"wide"}),dayPeriod:Mm({values:Jie,defaultWidth:"wide",formattingValues:eae,defaultFormattingWidth:"wide"})};function Om(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?iae(u,p=>p.test(o)):rae(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const b=t.slice(o.length);return{value:h,rest:b}}}function rae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function iae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function aae(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const sae=/^(\d+)(th|st|nd|rd)?/i,oae=/\d+/i,lae={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uae={any:[/^b/i,/^(a|c)/i]},cae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dae={any:[/1/i,/2/i,/3/i,/4/i]},fae={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hae={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mae={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gae={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vae={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bae={ordinalNumber:aae({matchPattern:sae,parsePattern:oae,valueCallback:e=>parseInt(e,10)}),era:Om({matchPatterns:lae,defaultMatchWidth:"wide",parsePatterns:uae,defaultParseWidth:"any"}),quarter:Om({matchPatterns:cae,defaultMatchWidth:"wide",parsePatterns:dae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Om({matchPatterns:fae,defaultMatchWidth:"wide",parsePatterns:hae,defaultParseWidth:"any"}),day:Om({matchPatterns:mae,defaultMatchWidth:"wide",parsePatterns:pae,defaultParseWidth:"any"}),dayPeriod:Om({matchPatterns:gae,defaultMatchWidth:"any",parsePatterns:vae,defaultParseWidth:"any"})},az={code:"en-US",formatDistance:qie,formatLong:Uie,formatRelative:Yie,localize:nae,match:bae,options:{weekStartsOn:0,firstWeekContainsDate:1}};let yae={};function Uf(){return yae}const sz=6048e5,xae=864e5,y6=6e4,x6=36e5,Aae=1e3,ED=Symbol.for("constructDateFrom");function Fr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ED in e?e[ED](t):e instanceof Date?new e.constructor(t):new Date(t)}function Dr(e,t){return Fr(t||e,e)}function R1(e){const t=Dr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function oz(e,...t){const n=Fr.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function I1(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function lz(e,t,n){const[r,i]=oz(n==null?void 0:n.in,e,t),a=I1(r),o=I1(i),u=+a-R1(a),d=+o-R1(o);return Math.round((u-d)/xae)}function wae(e,t){const n=Dr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Eae(e,t){const n=Dr(e,t==null?void 0:t.in);return lz(n,wae(n))+1}function nu(e,t){var u,d,h,b,p,y,g,x;const n=Uf(),r=(x=(g=(b=(h=t==null?void 0:t.weekStartsOn)!=null?h:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)!=null?b:n.weekStartsOn)!=null?g:(y=(p=n.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)!=null?x:0,i=Dr(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function jf(e,t){return nu(e,{...t,weekStartsOn:1})}function uz(e,t){const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Fr(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=jf(i),o=Fr(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const u=jf(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Sae(e,t){const n=uz(e,t),r=Fr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),jf(r)}function cz(e,t){const n=Dr(e,t==null?void 0:t.in),r=+jf(n)-+Sae(n);return Math.round(r/sz)+1}function A6(e,t){var b,p,y,g,x,A,w,C;const n=Dr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Uf(),a=(C=(w=(g=(y=t==null?void 0:t.firstWeekContainsDate)!=null?y:(p=(b=t==null?void 0:t.locale)==null?void 0:b.options)==null?void 0:p.firstWeekContainsDate)!=null?g:i.firstWeekContainsDate)!=null?w:(A=(x=i.locale)==null?void 0:x.options)==null?void 0:A.firstWeekContainsDate)!=null?C:1,o=Fr((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=nu(o,t),d=Fr((t==null?void 0:t.in)||e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const h=nu(d,t);return+n>=+u?r+1:+n>=+h?r:r-1}function Cae(e,t){var u,d,h,b,p,y,g,x;const n=Uf(),r=(x=(g=(b=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)!=null?b:n.firstWeekContainsDate)!=null?g:(y=(p=n.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)!=null?x:1,i=A6(e,t),a=Fr((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),nu(a,t)}function dz(e,t){const n=Dr(e,t==null?void 0:t.in),r=+nu(n,t)-+Cae(n,t);return Math.round(r/sz)+1}function Jn(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const El={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Jn(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Jn(n+1,2)},d(e,t){return Jn(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Jn(e.getHours()%12||12,t.length)},H(e,t){return Jn(e.getHours(),t.length)},m(e,t){return Jn(e.getMinutes(),t.length)},s(e,t){return Jn(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Jn(i,t.length)}},_d={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SD={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return El.y(e,t)},Y:function(e,t,n,r){const i=A6(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Jn(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Jn(a,t.length)},R:function(e,t){const n=uz(e);return Jn(n,t.length)},u:function(e,t){const n=e.getFullYear();return Jn(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Jn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Jn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return El.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Jn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=dz(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Jn(i,t.length)},I:function(e,t,n){const r=cz(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Jn(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):El.d(e,t)},D:function(e,t,n){const r=Eae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Jn(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Jn(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Jn(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Jn(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=_d.noon:r===0?i=_d.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=_d.evening:r>=12?i=_d.afternoon:r>=4?i=_d.morning:i=_d.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return El.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):El.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Jn(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Jn(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):El.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):El.s(e,t)},S:function(e,t){return El.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return RD(r);case"XXXX":case"XX":return Gu(r);default:return Gu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return RD(r);case"xxxx":case"xx":return Gu(r);default:return Gu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+CD(r,":");default:return"GMT"+Gu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+CD(r,":");default:return"GMT"+Gu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Jn(r,t.length)},T:function(e,t,n){return Jn(+e,t.length)}};function CD(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Jn(a,2)}function RD(e,t){return e%60===0?(e>0?"-":"+")+Jn(Math.abs(e)/60,2):Gu(e,t)}function Gu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Jn(Math.trunc(r/60),2),a=Jn(r%60,2);return n+i+t+a}const ID=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fz=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Rae=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ID(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ID(r,t)).replace("{{time}}",fz(i,t))},q4={p:fz,P:Rae},Iae=/^D+$/,Mae=/^Y+$/,Oae=["D","DD","YY","YYYY"];function hz(e){return Iae.test(e)}function mz(e){return Mae.test(e)}function Q4(e,t,n){const r=Dae(e,t,n);if(console.warn(r),Oae.includes(e))throw new RangeError(r)}function Dae(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Pae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jae(e){return!(!Pae(e)&&typeof e!="number"||isNaN(+Dr(e)))}const Tae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kae=/^'([^]*?)'?$/,_ae=/''/g,Bae=/[a-zA-Z]/;function pr(e,t,n){var b,p,y,g,x,A,w,C,M;const r=Uf(),i=(b=r.locale)!=null?b:az,a=(x=(g=r.firstWeekContainsDate)!=null?g:(y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)!=null?x:1,o=(M=(C=r.weekStartsOn)!=null?C:(w=(A=r.locale)==null?void 0:A.options)==null?void 0:w.weekStartsOn)!=null?M:0,u=Dr(e,n==null?void 0:n.in);if(!jae(u))throw new RangeError("Invalid time value");let d=t.match(Nae).map(P=>{const R=P[0];if(R==="p"||R==="P"){const S=q4[R];return S(P,i.formatLong)}return P}).join("").match(Tae).map(P=>{if(P==="''")return{isToken:!1,value:"'"};const R=P[0];if(R==="'")return{isToken:!1,value:Fae(P)};if(SD[R])return{isToken:!0,value:P};if(R.match(Bae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:P}});i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return d.map(P=>{if(!P.isToken)return P.value;const R=P.value;(mz(R)||hz(R))&&Q4(R,t,String(e));const S=SD[R[0]];return S(u,R,i.localize,h)}).join("")}function Fae(e){const t=e.match(kae);return t?t[1].replace(_ae,"'"):e}const Lae={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],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,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[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-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|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,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Xae(e,t){var n=Array.prototype.slice.call(t);return n.push(Lae),e.apply(this,n)}function MD(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var zae={}.constructor;function sf(e){return e!=null&&e.constructor===zae}function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function lb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qae(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,Qae(r.key),r)}}function ub(e,t,n){return t&&qae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qae(e){var t=Hae(e,"string");return Tf(t)=="symbol"?t:t+""}function Hae(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vae="1.2.0",Uae="1.7.35",OD=" ext. ",Wae=/^\d+$/,ki=(function(){function e(t){lb(this,e),pz(t),this.metadata=t,gz.call(this,t)}return ub(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&&Wae.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new DD(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new DD(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 i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),DD=(function(){function e(t,n){lb(this,e),this.globalMetadataObject=n,this.metadata=t,gz.call(this,n.metadata)}return ub(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(i){return new Yae(i,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()&&PD(this.types(),n))return new Kae(PD(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?OD:this.metadata[13]||OD}}])})(),Yae=(function(){function e(t,n){lb(this,e),this._format=t,this.metadata=n}return ub(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()&&!Gae.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),Gae=/^\(?\$1\)?$/,Kae=(function(){function e(t,n){lb(this,e),this.type=t,this.metadata=n}return ub(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 PD(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 pz(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!sf(e)||!sf(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(sf(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Zae(e)+": "+e,"."))}var Zae=function(t){return Tf(t)};function w6(e,t){if(t=new ki(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function gz(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?MD(t,Vae)===-1?this.v2=!0:MD(t,Uae)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function E6(e,t,n){return $ae(e,t,void 0,n)}function $ae(e,t,n,r){t&&(r=new ki(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var o=e.length,u=a[0];return u===o?"IS_POSSIBLE":u>o?"TOO_SHORT":a[a.length-1]<o?"TOO_LONG":a.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Jae(e,t,n){if(t===void 0&&(t={}),n=new ki(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 vz(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 vz(e,t,n){return E6(e,t,n)==="IS_POSSIBLE"}function qo(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ese(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=tse(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.
265
265
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tse(e,t){if(e){if(typeof e=="string")return jD(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)?jD(e,t):void 0}}function jD(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 nse=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function S6(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new ki(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(qo(r,n.nationalNumberPattern())){if(Vx(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||Vx(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=ese(nse),a;!(a=i()).done;){var o=a.value;if(Vx(r,o,n))return o}}}}function Vx(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:qo(e,r.pattern())}function rse(e,t,n){if(t=t||{},n=new ki(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return S6(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return qo(r,n.nationalNumberPattern())}function ise(e,t,n){var r=new ki(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return ase(t,a,n)}):[]}function ase(e,t,n){var r=new ki(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var C6=2,sse=17,ose=3,hs="0-90-9٠-٩۰-۹",lse="-‐-―−ー-",use="//",cse="..",dse="  ­​⁠ ",fse="()()[]\\[\\]",hse="~⁓∼~",M1="".concat(lse).concat(use).concat(cse).concat(dse).concat(fse).concat(hse),R6="++",mse=new RegExp("(["+hs+"])");function pse(e,t,n,r){if(t){var i=new ki(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(mse);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function gse(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o=r.length-1,u=o>0&&r[o];if(t.nationalPrefixTransformRule()&&u)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else{var d=r[0];i=e.slice(d.length),u&&(a=r[1])}var h;if(u){var b=e.indexOf(r[1]),p=e.slice(0,b);p===t.numberingPlan.nationalPrefix()&&(h=t.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:a}}}return{nationalNumber:e}}function vse(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=bse(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.
266
266
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bse(e,t){if(e){if(typeof e=="string")return TD(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)?TD(e,t):void 0}}function TD(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 yse(e,t){var n=t.countries,r=t.metadata;r=new ki(r);for(var i=vse(n),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(S6({phone:e,country:o},void 0,r.metadata))return o}}function bz(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:yse(n,{countries:i,metadata:r.metadata})}function H4(e,t,n){var r=gse(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!xse(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=bz(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!Ase(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function xse(e,t,n){return!(qo(e,n.nationalNumberPattern())&&!qo(t,n.nationalNumberPattern()))}function Ase(e,t,n){switch(E6(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function wse(e,t,n,r,i){var a=n?w6(n,i):r;if(e.indexOf(a)===0){i=new ki(i),i.selectNumberingPlan(n,a);var o=e.slice(a.length),u=H4(o,t,i),d=u.nationalNumber,h=H4(e,t,i),b=h.nationalNumber;if(!qo(b,i.nationalNumberPattern())&&qo(d,i.nationalNumberPattern())||E6(b,t,i)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function yz(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var o=pse(e,n,r,i);if(o&&o!==e)a=!0,e="+"+o;else{if(n||r){var u=wse(e,t,n,r,i),d=u.countryCallingCode,h=u.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:h}}return{number:e}}}if(e[1]==="0")return{};i=new ki(i);for(var b=2;b-1<=ose&&b<=e.length;){var p=e.slice(1,b);if(i.hasCallingCode(p))return i.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:e.slice(b)};b++}return{}}function Ese(e){return e.replace(new RegExp("[".concat(M1,"]+"),"g")," ").trim()}var Sse=/(\$\d)/;function Cse(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Sse,t.nationalPrefixFormattingRule()):t.format());return r?Ese(a):a}var Rse=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Ise(e,t,n){var r=new ki(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Rse.test(r.IDDPrefix()))return r.IDDPrefix()}var Mse=";ext=",Bd=function(t){return"([".concat(hs,"]{1,").concat(t,"})")};function xz(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",o="[:\\..]?[  \\t,-]*",u="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",b="[- ]+",p="[  \\t]*",y="(?:,{2}|;)",g=Mse+Bd(t),x=a+d+o+Bd(t)+u,A=a+h+o+Bd(r)+u,w=b+Bd(i)+"#",C=p+y+o+Bd(n)+u,M=p+"(?:,)+"+o+Bd(r)+u;return g+"|"+x+"|"+A+"|"+w+"|"+C+"|"+M}var Ose="["+hs+"]{"+C6+"}",Dse="["+R6+"]{0,1}(?:["+M1+"]*["+hs+"]){3,}["+M1+hs+"]*",Pse=new RegExp("^["+R6+"]{0,1}(?:["+M1+"]*["+hs+"]){1,2}$","i"),jse=Dse+"(?:"+xz()+")?",Tse=new RegExp("^"+Ose+"$|^"+jse+"$","i");function Nse(e){return e.length>=C6&&Tse.test(e)}function kse(e){return Pse.test(e)}function _se(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 ND={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Bse(e,t,n,r){if(n?n=Xse({},ND,n):n=ND,r=new ki(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 i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return a?(o=O1(a,e.carrierCode,"NATIONAL",r,n),Ux(o,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return a?(o=O1(a,null,"INTERNATIONAL",r,n),o="+".concat(i," ").concat(o),Ux(o,e.ext,r,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return _se({number:"+".concat(i).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var u=Lse(a,e.carrierCode,i,n.fromCountry,r);return u?Ux(u,e.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function O1(e,t,n,r,i){var a=Fse(r.formats(),e);return a?Cse(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1)}):e}function Fse(e,t){return zse(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return qo(t,n.pattern())})}function Ux(e,t,n,r){return t?r(e,t,n):e}function Lse(e,t,n,r,i){var a=w6(r,i.metadata);if(a===n){var o=O1(e,t,"NATIONAL",i);return n==="1"?n+" "+o:o}var u=Ise(r,void 0,i.metadata);if(u)return"".concat(u," ").concat(n," ").concat(O1(e,null,"INTERNATIONAL",i))}function Xse(){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 i in n[e])n[0][i]=n[e][i];e++}return n[0]}function zse(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function R0(e){"@babel/helpers - typeof";return R0=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},R0(e)}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(n),!0).forEach(function(r){qse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qse(e,t,n){return(t=Az(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hse(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,Az(r.key),r)}}function Vse(e,t,n){return t&&Hse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e){var t=Use(e,"string");return R0(t)=="symbol"?t:t+""}function Use(e,t){if(R0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(R0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wse=(function(){function e(t,n,r){if(Qse(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(sf(n)&&sf(n.countries)){r=n;var i=t;if(!Kse.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=yz(i,void 0,void 0,void 0,r),o=a.countryCallingCode,u=a.number;if(n=u,t=o,!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");pz(r);var d=Gse(t,r),h=d.country,b=d.countryCallingCode;this.country=h,this.countryCallingCode=b,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Vse(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:ise(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Jae(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return rse(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new ki(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 S6(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Bse(this,n,r?_D(_D({},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)}}])})(),Yse=function(t){return/^[A-Z]{2}$/.test(t)};function Gse(e,t){var n,r,i=new ki(t);return Yse(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var Kse=/^\+\d+$/;function V4(e){"@babel/helpers - typeof";return V4=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},V4(e)}function Zse(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function $se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jse(e,t,n){return t=M0(t),eoe(e,I6()?Reflect.construct(t,n||[],M0(e).constructor):t.apply(e,n))}function eoe(e,t){if(t&&(V4(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return toe(e)}function toe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function noe(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&&I0(e,t)}function U4(e){var t=typeof Map=="function"?new Map:void 0;return U4=function(r){if(r===null||!ioe(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,i)}function i(){return roe(r,arguments,M0(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),I0(i,r)},U4(e)}function roe(e,t,n){if(I6())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&I0(i,n.prototype),i}function I6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I6=function(){return!!e})()}function ioe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function I0(e,t){return I0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},I0(e,t)}function M0(e){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M0(e)}var Pl=(function(e){function t(n){var r;return $se(this,t),r=Jse(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return noe(t,e),Zse(t)})(U4(Error)),BD=new RegExp("(?:"+xz()+")$","i");function aoe(e){var t=e.search(BD);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(BD),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}var soe={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 ooe(e){return soe[e]}function loe(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=uoe(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.
267
267
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uoe(e,t){if(e){if(typeof e=="string")return FD(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)?FD(e,t):void 0}}function FD(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 LD(e){for(var t="",n=loe(e.split("")),r;!(r=n()).done;){var i=r.value;t+=coe(i,t)||""}return t}function coe(e,t,n){return e==="+"?t?void 0:"+":ooe(e)}var wz="+",doe="[\\-\\.\\(\\)]?",XD="(["+hs+"]|"+doe+")",foe="^\\"+wz+XD+"*["+hs+"]"+XD+"*$",hoe=new RegExp(foe,"g"),W4=hs,moe="["+W4+"]+((\\-)*["+W4+"])*",poe="a-zA-Z",goe="["+poe+"]+((\\-)*["+W4+"])*",voe="^("+moe+"\\.)*"+goe+"\\.?$",boe=new RegExp(voe,"g"),zD="tel:",Y4=";phone-context=",yoe=";isub=";function xoe(e){var t=e.indexOf(Y4);if(t<0)return null;var n=t+Y4.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function Aoe(e){return e===null?!0:e.length===0?!1:hoe.test(e)||boe.test(e)}function woe(e,t){var n=t.extractFormattedPhoneNumber,r=xoe(e);if(!Aoe(r))throw new Pl("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===wz&&(i+=r);var a=e.indexOf(zD),o;a>=0?o=a+zD.length:o=0;var u=e.indexOf(Y4);i+=e.substring(o,u)}var d=i.indexOf(yoe);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var Eoe=250,Soe=new RegExp("["+R6+hs+"]"),Coe=new RegExp("[^"+hs+"#]+$");function Roe(e,t,n){if(t=t||{},n=new ki(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Pl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=Moe(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o==="TOO_SHORT"?new Pl("TOO_SHORT"):new Pl("NOT_A_NUMBER");return{}}var u=Doe(i,t.defaultCountry,t.defaultCallingCode,n),d=u.country,h=u.nationalNumber,b=u.countryCallingCode,p=u.countryCallingCodeSource,y=u.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Pl("INVALID_COUNTRY");return{}}if(!h||h.length<C6){if(t.v2)throw new Pl("TOO_SHORT");return{}}if(h.length>sse){if(t.v2)throw new Pl("TOO_LONG");return{}}if(t.v2){var g=new Wse(b,h,n.metadata);return d&&(g.country=d),y&&(g.carrierCode=y),a&&(g.ext=a),g.__countryCallingCodeSource=p,g}var x=(t.extended?n.hasSelectedNumberingPlan():d)?qo(h,n.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:b,carrierCode:y,valid:x,possible:x?!0:!!(t.extended===!0&&n.possibleLengths()&&vz(h,d,n)),phone:h,ext:a}:x?Ooe(d,h,a):{}}function Ioe(e,t,n){if(e){if(e.length>Eoe){if(n)throw new Pl("TOO_LONG");return}if(t===!1)return e;var r=e.search(Soe);if(!(r<0))return e.slice(r).replace(Coe,"")}}function Moe(e,t,n){var r=woe(e,{extractFormattedPhoneNumber:function(o){return Ioe(o,n,t)}});if(!r)return{};if(!Nse(r))return kse(r)?{error:"TOO_SHORT"}:{};var i=aoe(r);return i.ext?i:{number:r}}function Ooe(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Doe(e,t,n,r){var i=yz(LD(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,u=i.number,d;if(o)r.selectNumberingPlan(o);else if(u&&(t||n))r.selectNumberingPlan(t,n),t&&(d=t),o=n||w6(t,r.metadata);else return{};if(!u)return{countryCallingCodeSource:a,countryCallingCode:o};var h=H4(LD(u),d,r),b=h.nationalNumber,p=h.carrierCode,y=bz(o,{nationalNumber:b,metadata:r});return y&&(d=y,y==="001"||r.selectNumberingPlan(d)),{country:d,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:b,carrierCode:p}}function O0(e){"@babel/helpers - typeof";return O0=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},O0(e)}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){Poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Poe(e,t,n){return(t=joe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function joe(e){var t=Toe(e,"string");return O0(t)=="symbol"?t:t+""}function Toe(e,t){if(O0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(O0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Noe(e,t,n){return Roe(e,QD(QD({},t),{},{v2:!0}),n)}function D0(e){"@babel/helpers - typeof";return D0=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},D0(e)}function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function koe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(n),!0).forEach(function(r){_oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _oe(e,t,n){return(t=Boe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Boe(e){var t=Foe(e,"string");return D0(t)=="symbol"?t:t+""}function Foe(e,t){if(D0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(D0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Loe(e,t){return Qoe(e)||qoe(e,t)||zoe(e,t)||Xoe()}function Xoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -294,7 +294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
294
294
  focus-visible:bg-brand-dark-50 focus-visible:text-brand-medium-500
295
295
  shadow-[0_2px_4px_0_var(--color-brand-alpha-200)]
296
296
  disabled:bg-near-neutral-100 disabled:text-near-neutral-600 disabled:border-near-neutral-400 disabled:cursor-not-allowed disabled:pointer-events-none
297
- ${e}`,onClick:t,children:n}),Nue=({status:e,contacts:t,hasActiveFilters:n,refetch:r})=>e==="error"?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:rf,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"Failed to load excluded contacts"}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm mb-4",children:"Something went wrong. Please try again."}),c.jsx(ms,{onClick:r,className:"h-10 bg-white",children:"Reload"})]}):e==="pending"?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx("div",{className:"mb-2",children:c.jsx(Ut,{size:"lg",colorClass:"border-true-neutral-500"})}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"Loading..."})]}):(t==null?void 0:t.length)===0?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:Tue,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"No excluded numbers added yet."}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm",children:"Add numbers to be excluded from your review period."})]}):n?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:w0,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"No results found"}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm",children:"Try adjusting your search or clear the filters."})]}):"No items found",kue=[{value:"Family",label:"Family"},{value:"Personal Friend",label:"Personal Friend"},{value:"Non-client Business Contact",label:"Non-client Business Contact"},{value:"Others",label:"Others"}],_ue=({isFormDisabled:e,onSearch:t,onClear:n})=>{const{data:r,status:i}=Mt(ip()),a=i==="pending",[o,u]=k.useState(null),[d,h]=k.useState(null),[b,p]=k.useState(""),[y,g]=k.useState(""),x=()=>{t({deviceOwner:(o==null?void 0:o.value)||"",contactName:b,phoneNumber:y,relationship:(d==null?void 0:d.value)||""})},A=()=>{u(null),h(null),p(""),g(""),n()};return c.jsx("div",{className:"bg-near-neutral-300 p-3",children:c.jsxs("div",{className:"flex gap-2 items-end flex-wrap",children:[c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"device-owner",className:"block text-sm text-brand-dark-800 mb-1",children:"Device Owner"}),c.jsx(T0._default,{inputId:"device-owner",value:o,onChange:w=>u(w),options:(r==null?void 0:r.map(w=>({value:`${w.firstName} ${w.lastName}`,label:`${w.firstName} ${w.lastName}`})))||[],placeholder:"Choose an option",isDisabled:e||a,isLoading:a,isClearable:!0,isSearchable:!0,menuPosition:"fixed",components:{IndicatorSeparator:null},styles:{control:(w,C)=>({...w,minHeight:"40px",borderRadius:"6px",borderColor:C.isFocused?"var(--color-brand-dark-500)":"var(--color-near-neutral-400)",boxShadow:"none","&:hover":{borderColor:"var(--color-brand-dark-500)"}}),placeholder:w=>({...w,color:"var(--color-brand-dark-800)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),option:(w,C)=>({...w,backgroundColor:C.isSelected?"var(--color-brand-medium-50)":C.isFocused?"var(--color-brand-bright-50)":"white",color:"var(--color-brand-dark-800)",cursor:"pointer"}),singleValue:w=>({...w,color:"var(--color-brand-dark-800)"})}})]}),c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"contact-name",className:"block text-sm text-brand-dark-800 mb-1",children:"Search Contact"}),c.jsxs("div",{className:"relative",children:[c.jsx(de,{icon:w0,className:"absolute! left-3 top-3 text-brand-dark-800"}),c.jsx("input",{id:"contact-name",type:"text",value:b,onChange:w=>p(Iz(w.target.value)),placeholder:"",disabled:e,className:"w-full h-10 pl-10 pr-3 py-2 bg-white border border-near-neutral-400 rounded-md text-brand-dark-800 focus:outline-none focus:border-brand-dark-500 hover:border-brand-dark-500 transition-colors duration-200 disabled:cursor-not-allowed disabled:bg-white disabled:opacity-60"})]})]}),c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"phone-number",className:"block text-sm text-brand-dark-800 mb-1",children:"Search Phone number"}),c.jsxs("div",{className:"relative",children:[c.jsx(de,{icon:w0,className:"absolute! left-3 top-3 text-brand-dark-800"}),c.jsx("input",{id:"phone-number",type:"text",value:y,onChange:w=>g(Koe(w.target.value)),placeholder:"",disabled:e,className:"w-full h-10 pl-10 pr-3 py-2 bg-white border border-near-neutral-400 rounded-md text-brand-dark-800 focus:outline-none focus:border-brand-dark-500 hover:border-brand-dark-500 transition-colors duration-200 disabled:cursor-not-allowed disabled:bg-white disabled:opacity-60"})]})]}),c.jsxs("div",{className:"flex-1 min-w-45",children:[c.jsx("label",{htmlFor:"relationship",className:"block text-sm text-brand-dark-800 mb-1",children:"Relationship"}),c.jsx(T0._default,{inputId:"relationship",value:d,onChange:w=>h(w),options:kue,placeholder:"Choose an option",isDisabled:e,isClearable:!0,isSearchable:!0,menuPosition:"fixed",components:{IndicatorSeparator:null},styles:{control:(w,C)=>({...w,minHeight:"40px",borderRadius:"6px",borderColor:C.isFocused?"var(--color-brand-dark-500)":"var(--color-near-neutral-400)",boxShadow:"none","&:hover":{borderColor:"var(--color-brand-dark-500)"}}),placeholder:w=>({...w,color:"var(--color-brand-dark-800)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),option:(w,C)=>({...w,backgroundColor:C.isSelected?"var(--color-brand-medium-50)":C.isFocused?"var(--color-brand-bright-50)":"white",color:"var(--color-brand-dark-800)",cursor:"pointer"}),singleValue:w=>({...w,color:"var(--color-brand-dark-800)"})}})]}),c.jsx(ms,{onClick:x,disabled:e,className:"h-10 bg-white disabled:opacity-60",children:"Search"}),c.jsx(ms,{onClick:A,disabled:e,className:"h-10 bg-white disabled:opacity-60",children:"Clear"})]})})},Bue=({className:e})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(!1),[a,o]=k.useState(null),{data:u,status:d,refetch:h}=Mt(Iue()),b=k.useMemo(()=>u==null?void 0:u.map(M=>({...M,deviceOwner:M.userName,phoneNumber:M.countryCode?`${M.countryCode}${M.contactNumber}`:M.contactNumber,relationship:M.relationshipName})),[u]),p=cr(),y=[p.accessor("deviceOwner",{header:"Device Owner",size:150,cell:M=>M.getValue(),filterFn:"includesString"}),p.accessor("contactName",{header:"Contact Name",size:150,cell:M=>M.getValue(),filterFn:"includesString"}),p.accessor("phoneNumber",{header:"Phone Number",size:150,cell:M=>kf(M.getValue())||M.getValue(),filterFn:"includesString"}),p.accessor("relationship",{header:"Relationship",size:160,cell:M=>M.getValue(),filterFn:"equalsString"}),p.accessor("dateCreated",{header:"Date Added",size:120,cell:M=>{const P=M.getValue();return P?pr(new Date(P),"MMM d, yyyy"):""}}),p.display({id:"delete",size:48,header:()=>null,cell:({row:M})=>c.jsx(zo,{onClick:P=>{P.stopPropagation(),i(!0),o(M.original)},className:"hover:bg-transparent active:bg-transparent",children:c.jsx(de,{className:"text-brand-dark-800",icon:Ga,size:"medium"})})})],g=Qn({data:b!=null?b:[],columns:y,getCoreRowModel:qn(),getPaginationRowModel:dr(),getFilteredRowModel:tr(),getRowId:M=>M.id.toString(),autoResetPageIndex:!1}),x=M=>{const P=[{id:"deviceOwner",value:M.deviceOwner},{id:"contactName",value:M.contactName},{id:"phoneNumber",value:M.phoneNumber},{id:"relationship",value:M.relationship}].filter(R=>R.value);g.setColumnFilters(P)},A=()=>{g.setColumnFilters([])},w=g.getState().columnFilters.length>0,C=d!=="success";return c.jsxs("div",{className:`border border-brand-dark-800 rounded-lg overflow-hidden ${e||""}`,children:[c.jsx("div",{className:"bg-near-neutral-300 p-3 flex justify-end rounded-t-lg",children:c.jsxs(cn,{className:"flex items-center gap-2 h-10",onClick:()=>n(!0),children:[c.jsx(de,{icon:Rr,size:"medium"}),"Add Number"]})}),c.jsx(_ue,{isFormDisabled:C,onSearch:x,onClear:A}),c.jsx(Vr,{table:g,hasGlobalFilter:!1,filterButtons:[],emptyMessage:c.jsx(Nue,{status:d,contacts:u,hasActiveFilters:w,refetch:h}),bordered:!1,outerBorder:!1,maxHeight:null,paginationControlLabel:null}),c.jsx(Pue,{isOpen:t,onClose:()=>n(!1)}),c.jsx(jue,{isOpen:r,contact:a,onClose:()=>{i(!1),o(null)}})]})},Fue=()=>c.jsxs("section",{className:"flex flex-col w-full mb-3",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"text-brand-dark-800 text-2xl font-semibold leading-9",children:"Excluded Numbers"}),c.jsx("p",{className:"mb-10 max-w-150",children:"Exclude specific contacts from your mobile archiving review. Changes to review settings will go into effect in your next review period."})]}),c.jsx(Bue,{})]}),G6=()=>c.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[c.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"Native Text-Message Coverage with LeapXpert"}),c.jsxs("div",{children:[c.jsx("p",{className:"mt-5",children:"Comply’s partnership with LeapXpert makes us one of the few vendors who offer truly native iMessage and WhatsApp capture. That means employees can text through iMessage and WhatsApp as they regularly would – no app switching required."}),c.jsxs("ul",{className:"list-disc pl-5 mt-5",children:[c.jsx("li",{children:"Reps can keep their existing phone numbers"}),c.jsx("li",{children:"Full capture of conversation threads, timestamps, attachments and multimedia, edits and updated message versions, and message reactions (i.e. emojis)"}),c.jsx("li",{children:"WORM-compliant, meaning records cannot be altered, edited, or deleted"}),c.jsx("li",{children:"Compliant with Apple and WhatsApp terms of service"}),c.jsx("li",{children:"Full encryption from capture to archive"})]}),c.jsxs("p",{className:"mt-5",children:["Interested in learning more? Reach out to ",c.jsx("a",{className:"text-blue-500 underline",href:"mailto:InstallBaseSales@comply.com",children:"InstallBaseSales@comply.com"})]})]})]}),Lue=()=>c.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"End of Setup"}),c.jsx("p",{className:"mb-2 text-lg color-black",children:"You have reached the end of the communications archiving and review setup. Further changes can be accessed at any time from the archiving settings page. "})]}),c.jsx(ur,{prevLink:"/setup/website/review-frequency",prevProgress:24,nextLink:"/",nextIcon:!1,nextText:"Finish Setup",nextProgress:vc})]}),$z="data:image/svg+xml,%3csvg%20width='26'%20height='30'%20viewBox='0%200%2026%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33301%2019.0013C2.33301%2019.0013%203.66634%2017.668%207.66634%2017.668C11.6663%2017.668%2014.333%2020.3346%2018.333%2020.3346C22.333%2020.3346%2023.6663%2019.0013%2023.6663%2019.0013V3.0013C23.6663%203.0013%2022.333%204.33464%2018.333%204.33464C14.333%204.33464%2011.6663%201.66797%207.66634%201.66797C3.66634%201.66797%202.33301%203.0013%202.33301%203.0013V19.0013Z'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2019.0013C2.33301%2019.0013%203.66634%2017.668%207.66634%2017.668C11.6663%2017.668%2014.333%2020.3346%2018.333%2020.3346C22.333%2020.3346%2023.6663%2019.0013%2023.6663%2019.0013V3.0013C23.6663%203.0013%2022.333%204.33464%2018.333%204.33464C14.333%204.33464%2011.6663%201.66797%207.66634%201.66797C3.66634%201.66797%202.33301%203.0013%202.33301%203.0013V19.0013Z'%20stroke='%23D4483E'%20stroke-opacity='0.75'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2028.3333V19'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2028.3333V19'%20stroke='%23D4483E'%20stroke-opacity='0.75'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xb=({thread:e})=>e.isReviewed?c.jsxs("span",{className:"flex items-center gap-2 text-item-reviewed",children:[c.jsx(de,{icon:kn})," Reviewed"]}):e.isFurtherReview?c.jsxs("span",{className:"flex items-center gap-2 text-item-needs-further-review",children:[c.jsx("img",{src:$z,className:"w-[13px]",alt:"Flag"})," Needs Further Review"]}):c.jsx("span",{className:"flex items-center gap-2 text-item-not-reviewed",children:"Not Reviewed"}),Xue=[{value:"reviewed",label:"Reviewed"},{value:"not_reviewed",label:"Not Reviewed"},{value:"needs_further_review",label:"Needs Further Review"}];function zue({selectedValues:e,onFilter:t,onClear:n,anchorRef:r,onClose:i}){const a=k.useRef(null),o=zte(),[u,d]=k.useState(()=>[...e]),h=y=>{d(g=>g.includes(y)?g.filter(x=>x!==y):[...g,y])},b=()=>{t([...u]),i()},p=()=>{d([]),n(),i()};return c.jsx(ep,{anchor:r.current,show:!0,anchorAlign:{horizontal:"right",vertical:"bottom"},popupAlign:{horizontal:"right",vertical:"top"},margin:{horizontal:0,vertical:4},onClose:i,appendTo:o.current,popupClass:"bg-white border border-true-neutral-200 rounded shadow-[1px_1px_4px_0px_rgba(0,0,0,0.5)]",children:c.jsxs("div",{ref:a,children:[c.jsx("div",{className:"p-2",children:c.jsx("p",{className:"text-xs font-normal leading-5 text-true-neutral-600",children:"Select Review Status"})}),Xue.map(y=>{const g=u.includes(y.value);return c.jsxs("label",{className:"flex items-center gap-2 p-2 cursor-pointer hover:bg-near-neutral-300",children:[c.jsx("input",{type:"checkbox",checked:g,onChange:()=>h(y.value),className:"size-4 rounded border-gray-300 text-brand-dark-600 focus:ring-brand-medium-600"}),c.jsx("span",{className:"text-sm font-normal leading-5 text-brand-dark-800",children:y.label})]},y.value)}),c.jsxs("div",{className:"flex gap-2.5 p-2.5",children:[c.jsx(ms,{onClick:p,className:"flex-1 text-sm",children:"Clear"}),c.jsx(cn,{onClick:b,className:"flex-1 text-sm",children:"Filter"})]})]})})}function K6(e,t){let n;try{n=e()}catch(i){return}return{getItem:i=>{var a;const o=d=>d===null?null:JSON.parse(d,void 0),u=(a=n.getItem(i))!=null?a:null;return u instanceof Promise?u.then(o):o(u)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Z4=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Z4(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Z4(r)(n)}}}},que=(e,t)=>(n,r,i)=>{let a={storage:K6(()=>window.localStorage),partialize:w=>w,version:0,merge:(w,C)=>({...C,...w}),...t},o=!1,u=0;const d=new Set,h=new Set;let b=a.storage;if(!b)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...w)},r,i);const p=()=>{const w=a.partialize({...r()});return b.setItem(a.name,{state:w,version:a.version})},y=i.setState;i.setState=(w,C)=>(y(w,C),p());const g=e((...w)=>(n(...w),p()),r,i);i.getInitialState=()=>g;let x;const A=()=>{var w,C;if(!b)return;const M=++u;o=!1,d.forEach(R=>{var S;return R((S=r())!=null?S:g)});const P=((C=a.onRehydrateStorage)==null?void 0:C.call(a,(w=r())!=null?w:g))||void 0;return Z4(b.getItem.bind(b))(a.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==a.version){if(a.migrate){const S=a.migrate(R.state,R.version);return S instanceof Promise?S.then(O=>[!0,O]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var S;if(M!==u)return;const[O,D]=R;if(x=a.merge(D,(S=r())!=null?S:g),n(x,!0),O)return p()}).then(()=>{M===u&&(P==null||P(x,void 0),x=r(),o=!0,h.forEach(R=>R(x)))}).catch(R=>{M===u&&(P==null||P(void 0,R))})};return i.persist={setOptions:w=>{a={...a,...w},w.storage&&(b=w.storage)},clearStorage:()=>{b==null||b.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>A(),hasHydrated:()=>o,onHydrate:w=>(d.add(w),()=>{d.delete(w)}),onFinishHydration:w=>(h.add(w),()=>{h.delete(w)})},a.skipHydration||A(),x||g},Jz=que,Qg={search:null,flagged:!1,supervision:!1,reviewPeriodId:null,sorting:[],reviewStatusFilter:[]},Que={mobile:{...Qg},email:{...Qg},social_media:{...Qg},website:{...Qg}},Wi=Dc()(Jz(e=>({...Que,setSearch:(t,n)=>e(r=>({[t]:{...r[t],search:n}})),setFlagged:(t,n)=>e(r=>({[t]:{...r[t],flagged:n}})),setSupervision:(t,n)=>e(r=>({[t]:{...r[t],supervision:n}})),setReviewPeriodId:(t,n)=>e(r=>({[t]:{...r[t],reviewPeriodId:n}})),setSorting:(t,n)=>e(r=>({[t]:{...r[t],sorting:n}})),setReviewStatusFilter:(t,n)=>e(r=>({[t]:{...r[t],reviewStatusFilter:n}}))}),{name:"archiving-data",storage:K6(()=>localStorage)}));function Ab(){var p;const[e,t]=k.useState(!1),n=k.useRef(null),{pathname:r}=$l(),i=Sz(r),a=Wi(y=>y),o=i?a[i]:null,u=(p=o==null?void 0:o.reviewStatusFilter)!=null?p:[],d=u.length>0,h=y=>{i&&a.setReviewStatusFilter(i,y)},b=()=>{i&&a.setReviewStatusFilter(i,[])};return c.jsxs("div",{className:"relative flex items-center gap-1",children:[c.jsx("span",{children:"Review Status"}),c.jsx("button",{ref:n,type:"button",onClick:()=>t(!e),className:"p-1 rounded hover:bg-white/10",children:c.jsx(de,{icon:WJ,className:d?"text-white":"text-gray-400",size:"medium"})}),e&&c.jsx(zue,{onClose:()=>t(!1),selectedValues:u,onFilter:h,onClear:b,anchorRef:n})]})}const Dm=cr(),eq=[Dm.accessor("from",{header:"From",cell:e=>c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.getValue()}),minSize:75}),Dm.accessor("to",{header:"To",cell:e=>{const t=e.getValue().split(",");let n=null;const r=t[0];return t.length<1&&(n=null),t.length==1?n=r:n=r+" +"+(t.length-1),c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n})},minSize:52}),Dm.accessor("subject",{header:"Subject",cell:e=>c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.getValue()}),minSize:95}),Dm.accessor("emailDate",{size:110,header:()=>"Date",cell:e=>c.jsx("div",{className:"text-right",children:pr(new Date(e.getValue()),"MM/dd/yyyy")}),meta:{className:"w-full flex justify-end"},minSize:71}),Dm.accessor(e=>e.isReviewed?"reviewed":e.isFurtherReview?"needs_further_review":"not_reviewed",{id:"reviewStatus",header:Ab,enableSorting:!1,minSize:150,filterFn:(e,t,n)=>{if(n.length===0)return!0;const r=e.original.isReviewed?"reviewed":e.original.isFurtherReview?"needs_further_review":"not_reviewed";return n.includes(r)},cell:e=>c.jsx(xb,{thread:e.row.original})})],jc=e=>({queryKey:["emails",e],enabled:!!e,queryFn:async()=>e?(await Je.post("/emailaccounts/list",{reviewPeriodId:e,pageIndex:1,pageSize:1e5,filters:[],sortings:[{name:"emailDate",ascending:!0}]})).data||[]:[]}),Zf=(e,t,n=!1)=>({queryKey:["emailreview",t],queryFn:()=>Je.get(`/emailaccounts/details?ReviewPeriodId=${e}&ItemId=${t}&IsSpecialReview=${n}`)}),tq=(e,t=!1)=>({queryKey:["emailreviewmessage",e],queryFn:()=>Je.get(`/emailaccounts/message?S3Path=${e}&IsKeyword=${t}`)}),Hue=()=>{const e=Vt();return zt({mutationFn:({esId:t,reviewPeriodId:n,reviewed:r})=>Je.post("/emailreviewresponses",{esId:t,reviewPeriodId:n,reviewed:r}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},Vue=()=>{const e=Vt();return zt({mutationFn:({esId:t,reviewPeriodId:n,reviewed:r})=>Je.post("/emailreviewresponses/further",{esId:t,reviewPeriodId:n,reviewed:r}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},wb=()=>{const e=Vt();return zt({mutationFn:({esId:t,note:n,archivingType:r,reviewPeriodId:i})=>Je.post("/accounts/note",{esId:t.toString(),note:n,archivingType:r,reviewPeriodId:i}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},Uue=(e,t,n)=>({queryKey:["emailexclude",e,n,t],queryFn:()=>Je.get(`/clientdomains/exclude?From=${e}&ItemType=${t}&CurrEmailReviewPeriodId=${n}`),enabled:n!==null}),Wue=()=>{const e=Vt();return zt({mutationFn:({item:t,itemType:n,currEmailReviewPeriodId:r,filterType:i="blacklist",isEmailLimit:a=!0})=>Je.post("/emailaccounts/deactivate",{item:t,itemType:n,filterType:i,isEmailLimit:a,currEmailReviewPeriodId:r,filters:[],sortings:[]}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while excluding item. Please try again!",{id:"exclude-item-error"})}})},Yue=()=>{const e=Vt();return zt({mutationFn:({reviewPeriodId:t,isEnable:n})=>{const r=n?"/Archiving/disable_exclusion_confirmation_popup":"/Archiving/enable_exclusion_confirmation_popup";return Je.post(r,{reviewPeriodId:t})},onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while excluding item. Please try again!",{id:"exclude-item-error"})}})},Gue=(e,t)=>({queryKey:["emailreviewnotes",e,t],queryFn:()=>{if(!(!e||!t))return Je.get(`/emailreviewnotes/${e}/${t}`)}});function Rc(e,t){const n=()=>Fr(t==null?void 0:t.in,NaN),i=Jue(e);let a;if(i.date){const h=ece(i.date,2);a=tce(h.restDateString,h.year)}if(!a||isNaN(+a))return n();const o=+a;let u=0,d;if(i.time&&(u=nce(i.time),isNaN(u)))return n();if(i.timezone){if(d=rce(i.timezone),isNaN(d))return n()}else{const h=new Date(o+u),b=Dr(0,t==null?void 0:t.in);return b.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),b.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),b}return Dr(o+u+d,t==null?void 0:t.in)}const Hg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kue=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zue=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$ue=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Jue(e){const t={},n=e.split(Hg.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Hg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Hg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Hg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function ece(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function tce(e,t){if(t===null)return new Date(NaN);const n=e.match(Kue);if(!n)return new Date(NaN);const r=!!n[4],i=Pm(n[1]),a=Pm(n[2])-1,o=Pm(n[3]),u=Pm(n[4]),d=Pm(n[5])-1;if(r)return lce(t,u,d)?ice(t,u,d):new Date(NaN);{const h=new Date(0);return!sce(t,a,o)||!oce(t,i)?new Date(NaN):(h.setUTCFullYear(t,a,Math.max(i,o)),h)}}function Pm(e){return e?parseInt(e):1}function nce(e){const t=e.match(Zue);if(!t)return NaN;const n=RA(t[1]),r=RA(t[2]),i=RA(t[3]);return uce(n,r,i)?n*x6+r*y6+i*1e3:NaN}function RA(e){return e&&parseFloat(e.replace(",","."))||0}function rce(e){if(e==="Z")return 0;const t=e.match($ue);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return cce(r,i)?n*(r*x6+i*y6):NaN}function ice(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const ace=[31,null,31,30,31,30,31,31,30,31,30,31];function nq(e){return e%400===0||e%4===0&&e%100!==0}function sce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ace[t]||(nq(e)?29:28))}function oce(e,t){return t>=1&&t<=(nq(e)?366:365)}function lce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function uce(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function cce(e,t){return t>=0&&t<=59}const sp=({data:e})=>{const t=(e==null?void 0:e.length)||0,n=(e==null?void 0:e.filter(d=>d==null?void 0:d.isReviewed).length)||0,r=(e==null?void 0:e.filter(d=>!(d!=null&&d.isReviewed)&&(d==null?void 0:d.isFurtherReview)).length)||0,i=(e==null?void 0:e.filter(d=>!(d!=null&&d.isReviewed)&&!(d!=null&&d.isFurtherReview)).length)||0,a=(n/t*100).toFixed(2),o=(r/t*100).toFixed(2),u=(i/t*100).toFixed(2);return c.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[c.jsxs("div",{className:"flex items-center text-[14px] text-item-reviewed",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Reviewed: ",n," (",isNaN(a)?0:a,"%)"]}),c.jsxs("div",{className:"flex items-center text-[14px] text-item-not-reviewed",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Not Reviewed: ",i," (",isNaN(u)?0:u,"%)"]}),c.jsxs("div",{className:"flex items-center text-[14px] text-item-needs-further-review",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Needs Further Review: ",r," (",isNaN(o)?0:o,"%)"]})]})};function dce({originalData:e,selectedPeriod:t,isLoading:n,isProcessing:r,hasVisibleRows:i,onStartOrContinue:a,onComplete:o}){if(t.isCompleted)return c.jsx("div",{className:"w-full text-center",children:c.jsx("span",{className:"text-item-reviewed",children:"Review Completed"})});if(n)return c.jsx("div",{className:"w-full flex justify-center",children:c.jsx(Ut,{size:"md"})});const u=e==null?void 0:e.every(h=>h.isReviewed);return!(e!=null&&e.length)||u&&!t.isCompleted?c.jsx("div",{className:"w-full flex justify-center",children:c.jsx(cn,{onClick:o,className:"flex items-center justify-center",disabled:r,children:r?c.jsx(Ut,{colorClass:"white"}):"Mark as Completed"})}):c.jsxs(c.Fragment,{children:[c.jsx(sp,{data:e}),i&&c.jsx(cn,{onClick:a,className:"flex items-center justify-center",disabled:r,children:r?c.jsx(Ut,{colorClass:"white"}):t.isStarted?"Continue":"Start"})]})}const fce=(e,t)=>{const r=[],i=[],a=Math.max(1,e-1),o=Math.min(t,e+1);for(let u=a;u<=o;u++)r.push(u);return a>1&&i.push(0),i.push(...r),o<t&&i.push(0),i};function Eb({maxHeight:e=null,table:t,searchPlaceholder:n="Search...",itemsLabel:r="Items",hasGlobalFilter:i=!1,filterButtons:a=[],pageSizes:o=[10,20,30,50],onRowClick:u,emptyMessage:d="No items found",bordered:h=!1,rowSelectedCheck:b=null,paginationControlLabel:p=null,showItemsPerPageLabel:y=!0}){var O;const g=t.getPageCount(),x=t.getState().pagination.pageIndex+1,A=t.getState().pagination.pageSize,C=t.options.manualPagination?t.getRowCount():t.getFilteredRowModel().rows.length,M=x===1?1:(x-1)*A+1,P=Math.min(M+A-1,C),R=D=>{t.setGlobalFilter(D.target.value)},S=fce(x,g);return c.jsx("div",{className:"w-full",children:c.jsxs("div",{className:"rounded-t-lg overflow-hidden",children:[i||a.length>0?c.jsxs("div",{className:"flex flex-col md:flex-row gap-4 bg-brand-dark-800 p-4",children:[c.jsx("div",{className:"grow",children:c.jsx("div",{className:"relative",children:i&&c.jsxs(c.Fragment,{children:[c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-white h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),c.jsx("input",{type:"text",placeholder:n,value:t.getState().globalFilter,onChange:R,className:"w-full pl-10 pr-4 py-3 border border-brand-dark-200 rounded-md bg-brand-dark-700 text-white focus:outline-none max-w-80"})]})})}),a.map((D,j)=>c.jsxs(ms,{onClick:D.onClick,className:`px-4 py-3 border border-white ${D.classes?D.classes:""} ${D.hasOwnProperty("active")&&!D.active?"text-white":"active"} `,children:[D.icon?c.jsx(de,{style:{fill:D.active?"var(--color-brand-dark-800)":"white"},icon:D.icon,size:"medium",className:"mr-1"}):"",D.label]},j))]}):null,c.jsx("div",{className:`overflow-x-auto border-l border-r border-[#344D5D] ${e}`,children:c.jsxs("table",{className:`min-w-full border-collapse table-fixed ${h?"table-bordered":""}`,children:[c.jsx("thead",{className:"text-white",children:c.jsx("tr",{children:t.getHeaderGroups().map(D=>D.headers.map(j=>{var z;const T=j.column.getIsSorted(),N=j.column.getCanSort(),_=typeof j.column.columnDef.header=="function",L=!N&&_,q=j.isPlaceholder?null:j.column.columnDef.header?C1(j.column.columnDef.header,j.getContext()):j.id;return c.jsx("th",{className:"py-4 px-6 text-left bg-brand-dark-800",style:{width:j.getSize()?j.getSize():"",cursor:N?"pointer":"default"},children:L?q:c.jsxs(tp,{asButton:!0,onClick:j.column.getToggleSortingHandler(),className:(z=j.column.columnDef.meta)==null?void 0:z.className,disabled:!N,children:[q,N&&c.jsxs(c.Fragment,{children:[c.jsx(de,{icon:BO,className:`-mr-1 ${T==="asc"?"text-white":"text-gray-400"}`,size:"large"}),c.jsx(de,{icon:BO,flip:"vertical",className:`-ml-1 ${T==="desc"?"text-white":"text-gray-400"}`,size:"large"})]})]})},j.id)}))})}),c.jsx("tbody",{children:t.getRowModel().rows.length>0?t.getRowModel().rows.map(D=>c.jsx("tr",{onClick:()=>u==null?void 0:u(D),className:`group hover:cursor-pointer ${b!=null?b(D)?"bg-near-neutral-300":"":D.getIsSelected()?"bg-near-neutral-300":""}`,children:D.getVisibleCells().map(j=>c.jsx("td",{onClick:T=>{j.column.id==="id"&&(T.preventDefault(),T.stopPropagation())},className:`bg-white group-hover:bg-near-neutral-300 ${j.column.id==="id"?"":"py-4 px-6"} ${h?"border border-gray-200 p-2":""}`,children:C1(j.column.columnDef.cell,j.getContext())},j.id))},D.id)):c.jsx("tr",{children:c.jsx("td",{colSpan:t.getAllColumns().length,className:"py-4 px-6 text-center",children:d})})})]})}),c.jsxs("div",{className:`flex items-center justify-between bg-brand-dark-800 text-white ${S.length?"":"py-5"} px-4 rounded-b-lg`,children:[c.jsx("div",{children:c.jsx("p",{children:`${M} - ${P} of ${C} ${(O=p!=null?p:r==null?void 0:r.toLowerCase())!=null?O:"items"}`})}),c.jsxs("div",{className:"flex gap-5",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:UL,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:tb,className:"block w-4 h-4 fill-current"})}),c.jsx("div",{className:"flex items-center space-x-2",children:S.map((D,j)=>{if(D===0)return c.jsx("span",{children:"..."},j);const T=x===D;return c.jsx("button",{className:`px-3 py-5 w-12 ${T?"shadow-[inset_0_4px_0_0_var(--color-brand-bright-500)] text-brand-bright-500":""}`,onClick:()=>t.setPageIndex(D-1),children:D},j)})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:eb,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:VL,className:"block w-4 h-4 fill-current"})})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[o.length===1?c.jsx("span",{children:o.at(0)}):c.jsx("select",{className:"w-25 bg-white text-brand-dark-800 rounded p-1",value:t.getState().pagination.pageSize,onChange:D=>t.setPageSize(Number(D.target.value)),children:o.map(D=>c.jsx("option",{value:D,children:D},D))}),y&&c.jsxs("span",{children:[r," per page"]})]})]})]})]})})}function rq({options:e,value:t,onChange:n,placeholder:r="Select an option",className:i="text-brand-dark-800 bg-[#F5F6F7] border-0 border-b border-brand-dark-800 min-w-[200px]",disabled:a=!1}){var d;const o=e.find(h=>h.value===t),u=(d=o==null?void 0:o.label)!=null?d:r;return c.jsxs("div",{className:"relative inline-block",children:[c.jsxs("div",{className:`
297
+ ${e}`,onClick:t,children:n}),Nue=({status:e,contacts:t,hasActiveFilters:n,refetch:r})=>e==="error"?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:rf,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"Failed to load excluded contacts"}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm mb-4",children:"Something went wrong. Please try again."}),c.jsx(ms,{onClick:r,className:"h-10 bg-white",children:"Reload"})]}):e==="pending"?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx("div",{className:"mb-2",children:c.jsx(Ut,{size:"lg",colorClass:"border-true-neutral-500"})}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"Loading..."})]}):(t==null?void 0:t.length)===0?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:Tue,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"No excluded numbers added yet."}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm",children:"Add numbers to be excluded from your review period."})]}):n?c.jsxs("div",{className:"flex flex-col items-center py-10",children:[c.jsx(de,{icon:w0,size:"xxxlarge",className:"mb-2 text-true-neutral-500"}),c.jsx("p",{className:"text-brand-dark-800 text-center",children:"No results found"}),c.jsx("p",{className:"text-brand-dark-800 text-center text-sm",children:"Try adjusting your search or clear the filters."})]}):"No items found",kue=[{value:"Family",label:"Family"},{value:"Personal Friend",label:"Personal Friend"},{value:"Non-client Business Contact",label:"Non-client Business Contact"},{value:"Others",label:"Others"}],_ue=({isFormDisabled:e,onSearch:t,onClear:n})=>{const{data:r,status:i}=Mt(ip()),a=i==="pending",[o,u]=k.useState(null),[d,h]=k.useState(null),[b,p]=k.useState(""),[y,g]=k.useState(""),x=()=>{t({deviceOwner:(o==null?void 0:o.value)||"",contactName:b,phoneNumber:y,relationship:(d==null?void 0:d.value)||""})},A=()=>{u(null),h(null),p(""),g(""),n()};return c.jsx("div",{className:"bg-near-neutral-300 p-3",children:c.jsxs("div",{className:"flex gap-2 items-end flex-wrap",children:[c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"device-owner",className:"block text-sm text-brand-dark-800 mb-1",children:"Device Owner"}),c.jsx(T0._default,{inputId:"device-owner",value:o,onChange:w=>u(w),options:(r==null?void 0:r.map(w=>({value:`${w.firstName} ${w.lastName}`,label:`${w.firstName} ${w.lastName}`})))||[],placeholder:"Choose an option",isDisabled:e||a,isLoading:a,isClearable:!0,isSearchable:!0,menuPosition:"fixed",components:{IndicatorSeparator:null},styles:{control:(w,C)=>({...w,minHeight:"40px",borderRadius:"6px",borderColor:C.isFocused?"var(--color-brand-dark-500)":"var(--color-near-neutral-400)",boxShadow:"none","&:hover":{borderColor:"var(--color-brand-dark-500)"}}),placeholder:w=>({...w,color:"var(--color-brand-dark-800)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),option:(w,C)=>({...w,backgroundColor:C.isSelected?"var(--color-brand-medium-50)":C.isFocused?"var(--color-brand-bright-50)":"white",color:"var(--color-brand-dark-800)",cursor:"pointer"}),singleValue:w=>({...w,color:"var(--color-brand-dark-800)"})}})]}),c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"contact-name",className:"block text-sm text-brand-dark-800 mb-1",children:"Search Contact"}),c.jsxs("div",{className:"relative",children:[c.jsx(de,{icon:w0,className:"absolute! left-3 top-3 text-brand-dark-800"}),c.jsx("input",{id:"contact-name",type:"text",value:b,onChange:w=>p(Iz(w.target.value)),placeholder:"",disabled:e,className:"w-full h-10 pl-10 pr-3 py-2 bg-white border border-near-neutral-400 rounded-md text-brand-dark-800 focus:outline-none focus:border-brand-dark-500 hover:border-brand-dark-500 transition-colors duration-200 disabled:cursor-not-allowed disabled:bg-white disabled:opacity-60"})]})]}),c.jsxs("div",{className:"flex-1 min-w-37.5",children:[c.jsx("label",{htmlFor:"phone-number",className:"block text-sm text-brand-dark-800 mb-1",children:"Search Phone number"}),c.jsxs("div",{className:"relative",children:[c.jsx(de,{icon:w0,className:"absolute! left-3 top-3 text-brand-dark-800"}),c.jsx("input",{id:"phone-number",type:"text",value:y,onChange:w=>g(Koe(w.target.value)),placeholder:"",disabled:e,className:"w-full h-10 pl-10 pr-3 py-2 bg-white border border-near-neutral-400 rounded-md text-brand-dark-800 focus:outline-none focus:border-brand-dark-500 hover:border-brand-dark-500 transition-colors duration-200 disabled:cursor-not-allowed disabled:bg-white disabled:opacity-60"})]})]}),c.jsxs("div",{className:"flex-1 min-w-45",children:[c.jsx("label",{htmlFor:"relationship",className:"block text-sm text-brand-dark-800 mb-1",children:"Relationship"}),c.jsx(T0._default,{inputId:"relationship",value:d,onChange:w=>h(w),options:kue,placeholder:"Choose an option",isDisabled:e,isClearable:!0,isSearchable:!0,menuPosition:"fixed",components:{IndicatorSeparator:null},styles:{control:(w,C)=>({...w,minHeight:"40px",borderRadius:"6px",borderColor:C.isFocused?"var(--color-brand-dark-500)":"var(--color-near-neutral-400)",boxShadow:"none","&:hover":{borderColor:"var(--color-brand-dark-500)"}}),placeholder:w=>({...w,color:"var(--color-brand-dark-800)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),option:(w,C)=>({...w,backgroundColor:C.isSelected?"var(--color-brand-medium-50)":C.isFocused?"var(--color-brand-bright-50)":"white",color:"var(--color-brand-dark-800)",cursor:"pointer"}),singleValue:w=>({...w,color:"var(--color-brand-dark-800)"})}})]}),c.jsx(ms,{onClick:x,disabled:e,className:"h-10 bg-white disabled:opacity-60",children:"Search"}),c.jsx(ms,{onClick:A,disabled:e,className:"h-10 bg-white disabled:opacity-60",children:"Clear"})]})})},Bue=({className:e})=>{const[t,n]=k.useState(!1),[r,i]=k.useState(!1),[a,o]=k.useState(null),{data:u,status:d,refetch:h}=Mt(Iue()),b=k.useMemo(()=>u==null?void 0:u.map(M=>({...M,deviceOwner:M.userName,phoneNumber:M.countryCode?`${M.countryCode}${M.contactNumber}`:M.contactNumber,relationship:M.relationshipName})),[u]),p=cr(),y=[p.accessor("deviceOwner",{header:"Device Owner",size:150,cell:M=>M.getValue(),filterFn:"includesString"}),p.accessor("contactName",{header:"Contact Name",size:150,cell:M=>M.getValue(),filterFn:"includesString"}),p.accessor("phoneNumber",{header:"Phone Number",size:150,cell:M=>kf(M.getValue())||M.getValue(),filterFn:"includesString"}),p.accessor("relationship",{header:"Relationship",size:160,cell:M=>M.getValue(),filterFn:"equalsString"}),p.accessor("dateCreated",{header:"Date Added",size:120,cell:M=>{const P=M.getValue();return P?pr(new Date(P),"MMM d, yyyy"):""}}),p.display({id:"delete",size:48,header:()=>null,cell:({row:M})=>c.jsx(zo,{onClick:P=>{P.stopPropagation(),i(!0),o(M.original)},className:"hover:bg-transparent active:bg-transparent",children:c.jsx(de,{className:"text-brand-dark-800",icon:Ga,size:"medium"})})})],g=Qn({data:b!=null?b:[],columns:y,getCoreRowModel:qn(),getPaginationRowModel:dr(),getFilteredRowModel:tr(),getRowId:M=>M.id.toString(),autoResetPageIndex:!1}),x=M=>{const P=[{id:"deviceOwner",value:M.deviceOwner},{id:"contactName",value:M.contactName},{id:"phoneNumber",value:M.phoneNumber},{id:"relationship",value:M.relationship}].filter(R=>R.value);g.setColumnFilters(P)},A=()=>{g.setColumnFilters([])},w=g.getState().columnFilters.length>0,C=d!=="success";return c.jsxs("div",{className:`border border-brand-dark-800 rounded-lg overflow-hidden ${e||""}`,children:[c.jsx("div",{className:"bg-near-neutral-300 p-3 flex justify-end rounded-t-lg",children:c.jsxs(cn,{className:"flex items-center gap-2 h-10",onClick:()=>n(!0),children:[c.jsx(de,{icon:Rr,size:"medium"}),"Add Number"]})}),c.jsx(_ue,{isFormDisabled:C,onSearch:x,onClear:A}),c.jsx(Vr,{table:g,hasGlobalFilter:!1,filterButtons:[],emptyMessage:c.jsx(Nue,{status:d,contacts:u,hasActiveFilters:w,refetch:h}),bordered:!1,outerBorder:!1,maxHeight:null,paginationControlLabel:null}),c.jsx(Pue,{isOpen:t,onClose:()=>n(!1)}),c.jsx(jue,{isOpen:r,contact:a,onClose:()=>{i(!1),o(null)}})]})},Fue=()=>c.jsxs("section",{className:"flex flex-col w-full mb-3",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"text-brand-dark-800 text-2xl font-semibold leading-9",children:"Excluded Numbers"}),c.jsx("p",{className:"mb-10 max-w-150",children:"Exclude specific contacts from your mobile archiving review. Changes to review settings will go into effect in your next review period."})]}),c.jsx(Bue,{})]}),G6=()=>c.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[c.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"Native Text-Message Coverage with LeapXpert"}),c.jsxs("div",{children:[c.jsx("p",{className:"mt-5",children:"Comply’s partnership with LeapXpert makes us one of the few vendors who offer truly native iMessage and WhatsApp capture. That means employees can text through iMessage and WhatsApp as they regularly would – no app switching required."}),c.jsxs("ul",{className:"list-disc pl-5 mt-5",children:[c.jsx("li",{children:"Reps can keep their existing phone numbers"}),c.jsx("li",{children:"Full capture of conversation threads, timestamps, attachments and multimedia, edits and updated message versions, and message reactions (i.e. emojis)"}),c.jsx("li",{children:"WORM-compliant, meaning records cannot be altered, edited, or deleted"}),c.jsx("li",{children:"Compliant with Apple and WhatsApp terms of service"}),c.jsx("li",{children:"Full encryption from capture to archive"})]}),c.jsxs("p",{className:"mt-5",children:["Interested in learning more? Reach out to ",c.jsx("a",{className:"text-blue-500 underline",href:"mailto:InstallBaseSales@comply.com",children:"InstallBaseSales@comply.com"})]})]})]}),Lue=()=>c.jsxs("section",{className:"flex flex-col w-full !mb-3",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h4",{className:"text-2xl font-semibold leading-9",children:"End of Setup"}),c.jsx("p",{className:"mb-2 text-lg color-black",children:"You have reached the end of the communications archiving and review setup. Further changes can be accessed at any time from the archiving settings page. "})]}),c.jsx(ur,{prevLink:"/setup/website/review-frequency",prevProgress:24,nextLink:"/",nextIcon:!1,nextText:"Finish Setup",nextProgress:vc})]}),$z="data:image/svg+xml,%3csvg%20width='26'%20height='30'%20viewBox='0%200%2026%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33301%2019.0013C2.33301%2019.0013%203.66634%2017.668%207.66634%2017.668C11.6663%2017.668%2014.333%2020.3346%2018.333%2020.3346C22.333%2020.3346%2023.6663%2019.0013%2023.6663%2019.0013V3.0013C23.6663%203.0013%2022.333%204.33464%2018.333%204.33464C14.333%204.33464%2011.6663%201.66797%207.66634%201.66797C3.66634%201.66797%202.33301%203.0013%202.33301%203.0013V19.0013Z'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2019.0013C2.33301%2019.0013%203.66634%2017.668%207.66634%2017.668C11.6663%2017.668%2014.333%2020.3346%2018.333%2020.3346C22.333%2020.3346%2023.6663%2019.0013%2023.6663%2019.0013V3.0013C23.6663%203.0013%2022.333%204.33464%2018.333%204.33464C14.333%204.33464%2011.6663%201.66797%207.66634%201.66797C3.66634%201.66797%202.33301%203.0013%202.33301%203.0013V19.0013Z'%20stroke='%23D4483E'%20stroke-opacity='0.75'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2028.3333V19'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.33301%2028.3333V19'%20stroke='%23D4483E'%20stroke-opacity='0.75'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xb=({thread:e})=>e.isReviewed?c.jsxs("span",{className:"flex items-center gap-2 text-item-reviewed",children:[c.jsx(de,{icon:kn})," Reviewed"]}):e.isFurtherReview?c.jsxs("span",{className:"flex items-center gap-2 text-item-needs-further-review",children:[c.jsx("img",{src:$z,className:"w-[13px]",alt:"Flag"})," Needs Further Review"]}):c.jsx("span",{className:"flex items-center gap-2 text-item-not-reviewed",children:"Not Reviewed"}),Xue=[{value:"reviewed",label:"Reviewed"},{value:"not_reviewed",label:"Not Reviewed"},{value:"needs_further_review",label:"Needs Further Review"}];function zue({selectedValues:e,onFilter:t,onClear:n,anchorRef:r,onClose:i}){const a=k.useRef(null),o=zte(),[u,d]=k.useState(()=>[...e]),h=y=>{d(g=>g.includes(y)?g.filter(x=>x!==y):[...g,y])},b=()=>{t([...u]),i()},p=()=>{d([]),n(),i()};return c.jsx(ep,{anchor:r.current,show:!0,anchorAlign:{horizontal:"right",vertical:"bottom"},popupAlign:{horizontal:"right",vertical:"top"},margin:{horizontal:0,vertical:4},onClose:i,appendTo:o.current,popupClass:"bg-white border border-true-neutral-200 rounded shadow-[1px_1px_4px_0px_rgba(0,0,0,0.5)]",children:c.jsxs("div",{ref:a,children:[c.jsx("div",{className:"p-2",children:c.jsx("p",{className:"text-xs font-normal leading-5 text-true-neutral-600",children:"Select Review Status"})}),Xue.map(y=>{const g=u.includes(y.value);return c.jsxs("label",{className:"flex items-center gap-2 p-2 cursor-pointer hover:bg-near-neutral-300",children:[c.jsx("input",{type:"checkbox",checked:g,onChange:()=>h(y.value),className:"size-4 rounded border-gray-300 text-brand-dark-600 focus:ring-brand-medium-600"}),c.jsx("span",{className:"text-sm font-normal leading-5 text-brand-dark-800",children:y.label})]},y.value)}),c.jsxs("div",{className:"flex gap-2.5 p-2.5",children:[c.jsx(ms,{onClick:p,className:"flex-1 text-sm",children:"Clear"}),c.jsx(cn,{onClick:b,className:"flex-1 text-sm",children:"Filter"})]})]})})}function K6(e,t){let n;try{n=e()}catch(i){return}return{getItem:i=>{var a;const o=d=>d===null?null:JSON.parse(d,void 0),u=(a=n.getItem(i))!=null?a:null;return u instanceof Promise?u.then(o):o(u)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Z4=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Z4(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Z4(r)(n)}}}},que=(e,t)=>(n,r,i)=>{let a={storage:K6(()=>window.localStorage),partialize:w=>w,version:0,merge:(w,C)=>({...C,...w}),...t},o=!1,u=0;const d=new Set,h=new Set;let b=a.storage;if(!b)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...w)},r,i);const p=()=>{const w=a.partialize({...r()});return b.setItem(a.name,{state:w,version:a.version})},y=i.setState;i.setState=(w,C)=>(y(w,C),p());const g=e((...w)=>(n(...w),p()),r,i);i.getInitialState=()=>g;let x;const A=()=>{var w,C;if(!b)return;const M=++u;o=!1,d.forEach(R=>{var S;return R((S=r())!=null?S:g)});const P=((C=a.onRehydrateStorage)==null?void 0:C.call(a,(w=r())!=null?w:g))||void 0;return Z4(b.getItem.bind(b))(a.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==a.version){if(a.migrate){const S=a.migrate(R.state,R.version);return S instanceof Promise?S.then(O=>[!0,O]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var S;if(M!==u)return;const[O,D]=R;if(x=a.merge(D,(S=r())!=null?S:g),n(x,!0),O)return p()}).then(()=>{M===u&&(P==null||P(x,void 0),x=r(),o=!0,h.forEach(R=>R(x)))}).catch(R=>{M===u&&(P==null||P(void 0,R))})};return i.persist={setOptions:w=>{a={...a,...w},w.storage&&(b=w.storage)},clearStorage:()=>{b==null||b.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>A(),hasHydrated:()=>o,onHydrate:w=>(d.add(w),()=>{d.delete(w)}),onFinishHydration:w=>(h.add(w),()=>{h.delete(w)})},a.skipHydration||A(),x||g},Jz=que,Qg={search:null,flagged:!1,supervision:!1,reviewPeriodId:null,sorting:[],reviewStatusFilter:[]},Que={mobile:{...Qg},email:{...Qg},social_media:{...Qg},website:{...Qg}},Wi=Dc()(Jz(e=>({...Que,setSearch:(t,n)=>e(r=>({[t]:{...r[t],search:n}})),setFlagged:(t,n)=>e(r=>({[t]:{...r[t],flagged:n}})),setSupervision:(t,n)=>e(r=>({[t]:{...r[t],supervision:n}})),setReviewPeriodId:(t,n)=>e(r=>({[t]:{...r[t],reviewPeriodId:n}})),setSorting:(t,n)=>e(r=>({[t]:{...r[t],sorting:n}})),setReviewStatusFilter:(t,n)=>e(r=>({[t]:{...r[t],reviewStatusFilter:n}}))}),{name:"archiving-data",storage:K6(()=>localStorage)}));function Ab(){var p;const[e,t]=k.useState(!1),n=k.useRef(null),{pathname:r}=$l(),i=Sz(r),a=Wi(y=>y),o=i?a[i]:null,u=(p=o==null?void 0:o.reviewStatusFilter)!=null?p:[],d=u.length>0,h=y=>{i&&a.setReviewStatusFilter(i,y)},b=()=>{i&&a.setReviewStatusFilter(i,[])};return c.jsxs("div",{className:"relative flex items-center gap-1",children:[c.jsx("span",{children:"Review Status"}),c.jsx("button",{ref:n,type:"button",onClick:()=>t(!e),className:"p-1 rounded hover:bg-white/10",children:c.jsx(de,{icon:WJ,className:d?"text-white":"text-gray-400",size:"medium"})}),e&&c.jsx(zue,{onClose:()=>t(!1),selectedValues:u,onFilter:h,onClear:b,anchorRef:n})]})}const Dm=cr(),eq=[Dm.accessor("from",{header:"From",cell:e=>c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.getValue()}),minSize:75}),Dm.accessor("to",{header:"To",cell:e=>{const t=e.getValue().split(",");let n=null;const r=t[0];return t.length<1&&(n=null),t.length==1?n=r:n=r+" +"+(t.length-1),c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n})},minSize:52}),Dm.accessor("subject",{header:"Subject",cell:e=>c.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.getValue()}),minSize:95}),Dm.accessor("emailDate",{size:110,header:()=>"Date",cell:e=>c.jsx("div",{className:"text-right",children:pr(new Date(e.getValue()),"MM/dd/yyyy")}),meta:{className:"w-full flex justify-end"},minSize:71}),Dm.accessor(e=>e.isReviewed?"reviewed":e.isFurtherReview?"needs_further_review":"not_reviewed",{id:"reviewStatus",header:Ab,enableSorting:!1,minSize:150,filterFn:(e,t,n)=>{if(n.length===0)return!0;const r=e.original.isReviewed?"reviewed":e.original.isFurtherReview?"needs_further_review":"not_reviewed";return n.includes(r)},cell:e=>c.jsx(xb,{thread:e.row.original})})],jc=e=>({queryKey:["emails",e],enabled:!!e,queryFn:async()=>e?(await Je.post("/emailaccounts/list",{reviewPeriodId:e,pageIndex:1,pageSize:1e5,filters:[],sortings:[{name:"emailDate",ascending:!0}]})).data||[]:[]}),Zf=(e,t,n=!1)=>({queryKey:["emailreview",t],queryFn:()=>Je.get(`/emailaccounts/details?ReviewPeriodId=${e}&ItemId=${t}&IsSpecialReview=${n}`)}),tq=(e,t=!1)=>({queryKey:["emailreviewmessage",e],queryFn:()=>Je.get(`/emailaccounts/message?S3Path=${e}&IsKeyword=${t}`)}),Hue=()=>{const e=Vt();return zt({mutationFn:({esId:t,reviewPeriodId:n,reviewed:r})=>Je.post("/emailreviewresponses",{esId:t,reviewPeriodId:n,reviewed:r}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},Vue=()=>{const e=Vt();return zt({mutationFn:({esId:t,reviewPeriodId:n,reviewed:r})=>Je.post("/emailreviewresponses/further",{esId:t,reviewPeriodId:n,reviewed:r}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},wb=()=>{const e=Vt();return zt({mutationFn:({esId:t,note:n,archivingType:r,reviewPeriodId:i})=>Je.post("/accounts/note",{esId:t.toString(),note:n,archivingType:r,reviewPeriodId:i}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while updating item",{id:"update-email-review-status"})}})},Uue=(e,t,n)=>({queryKey:["emailexclude",e,n,t],queryFn:()=>Je.get(`/clientdomains/exclude?From=${e}&ItemType=${t}&CurrEmailReviewPeriodId=${n}`),enabled:n!==null}),Wue=()=>{const e=Vt();return zt({mutationFn:({item:t,itemType:n,currEmailReviewPeriodId:r,filterType:i="blacklist",isEmailLimit:a=!0})=>Je.post("/emailaccounts/deactivate",{item:t,itemType:n,filterType:i,isEmailLimit:a,currEmailReviewPeriodId:r,filters:[],sortings:[]}),onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while excluding item. Please try again!",{id:"exclude-item-error"})}})},Yue=()=>{const e=Vt();return zt({mutationFn:({reviewPeriodId:t,isEnable:n})=>{const r=n?"/Archiving/disable_exclusion_confirmation_popup":"/Archiving/enable_exclusion_confirmation_popup";return Je.post(r,{reviewPeriodId:t})},onSuccess:()=>{e.invalidateQueries([jc,Zf])},onError:()=>{ge.error("Error occurred while excluding item. Please try again!",{id:"exclude-item-error"})}})},Gue=(e,t)=>({queryKey:["emailreviewnotes",e,t],queryFn:()=>{if(!(!e||!t))return Je.get(`/emailreviewnotes/${e}/${t}`)}});function Rc(e,t){const n=()=>Fr(t==null?void 0:t.in,NaN),i=Jue(e);let a;if(i.date){const h=ece(i.date,2);a=tce(h.restDateString,h.year)}if(!a||isNaN(+a))return n();const o=+a;let u=0,d;if(i.time&&(u=nce(i.time),isNaN(u)))return n();if(i.timezone){if(d=rce(i.timezone),isNaN(d))return n()}else{const h=new Date(o+u),b=Dr(0,t==null?void 0:t.in);return b.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),b.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),b}return Dr(o+u+d,t==null?void 0:t.in)}const Hg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kue=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zue=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$ue=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Jue(e){const t={},n=e.split(Hg.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Hg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Hg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Hg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function ece(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function tce(e,t){if(t===null)return new Date(NaN);const n=e.match(Kue);if(!n)return new Date(NaN);const r=!!n[4],i=Pm(n[1]),a=Pm(n[2])-1,o=Pm(n[3]),u=Pm(n[4]),d=Pm(n[5])-1;if(r)return lce(t,u,d)?ice(t,u,d):new Date(NaN);{const h=new Date(0);return!sce(t,a,o)||!oce(t,i)?new Date(NaN):(h.setUTCFullYear(t,a,Math.max(i,o)),h)}}function Pm(e){return e?parseInt(e):1}function nce(e){const t=e.match(Zue);if(!t)return NaN;const n=RA(t[1]),r=RA(t[2]),i=RA(t[3]);return uce(n,r,i)?n*x6+r*y6+i*1e3:NaN}function RA(e){return e&&parseFloat(e.replace(",","."))||0}function rce(e){if(e==="Z")return 0;const t=e.match($ue);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return cce(r,i)?n*(r*x6+i*y6):NaN}function ice(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const ace=[31,null,31,30,31,30,31,31,30,31,30,31];function nq(e){return e%400===0||e%4===0&&e%100!==0}function sce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ace[t]||(nq(e)?29:28))}function oce(e,t){return t>=1&&t<=(nq(e)?366:365)}function lce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function uce(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function cce(e,t){return t>=0&&t<=59}const sp=({data:e})=>{const t=(e==null?void 0:e.length)||0,n=(e==null?void 0:e.filter(d=>d==null?void 0:d.isReviewed).length)||0,r=(e==null?void 0:e.filter(d=>!(d!=null&&d.isReviewed)&&(d==null?void 0:d.isFurtherReview)).length)||0,i=(e==null?void 0:e.filter(d=>!(d!=null&&d.isReviewed)&&!(d!=null&&d.isFurtherReview)).length)||0,a=(n/t*100).toFixed(2),o=(r/t*100).toFixed(2),u=(i/t*100).toFixed(2);return c.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[c.jsxs("div",{className:"flex items-center text-[14px] text-item-reviewed",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Reviewed: ",n," (",isNaN(a)?0:a,"%)"]}),c.jsxs("div",{className:"flex items-center text-[14px] text-item-not-reviewed",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Not Reviewed: ",i," (",isNaN(u)?0:u,"%)"]}),c.jsxs("div",{className:"flex items-center text-[14px] text-item-needs-further-review",children:[c.jsx(de,{icon:Ei,size:"medium"}),"Needs Further Review: ",r," (",isNaN(o)?0:o,"%)"]})]})};function dce({originalData:e,selectedPeriod:t,isLoading:n,isProcessing:r,hasVisibleRows:i,onStartOrContinue:a,onComplete:o}){if(t.isCompleted)return c.jsx("div",{className:"w-full text-center",children:c.jsx("span",{className:"text-item-reviewed",children:"Review Completed"})});if(n)return c.jsx("div",{className:"w-full flex justify-center",children:c.jsx(Ut,{size:"md"})});const u=e==null?void 0:e.every(h=>h.isReviewed);return!(e!=null&&e.length)||u&&!t.isCompleted?c.jsx("div",{className:"w-full flex justify-center",children:c.jsx(cn,{onClick:o,className:"flex items-center justify-center",disabled:r,children:r?c.jsx(Ut,{colorClass:"white"}):"Mark as Completed"})}):c.jsxs(c.Fragment,{children:[c.jsx(sp,{data:e}),i&&c.jsx(cn,{onClick:a,className:"flex items-center justify-center",disabled:r,children:r?c.jsx(Ut,{colorClass:"white"}):t.isStarted?"Continue":"Start"})]})}const fce=(e,t)=>{const r=[],i=[],a=Math.max(1,e-1),o=Math.min(t,e+1);for(let u=a;u<=o;u++)r.push(u);return a>1&&i.push(0),i.push(...r),o<t&&i.push(0),i};function Eb({maxHeight:e=null,table:t,searchPlaceholder:n="Search...",itemsLabel:r="Items",hasGlobalFilter:i=!1,filterButtons:a=[],pageSizes:o=[10,20,30,50],onRowClick:u,emptyMessage:d="No items found",bordered:h=!1,rowSelectedCheck:b=null,paginationControlLabel:p=null,showItemsPerPageLabel:y=!0}){var O;const g=t.getPageCount(),x=t.getState().pagination.pageIndex+1,A=t.getState().pagination.pageSize,C=t.options.manualPagination?t.getRowCount():t.getFilteredRowModel().rows.length,M=x===1?1:(x-1)*A+1,P=Math.min(M+A-1,C),R=D=>{t.setGlobalFilter(D.target.value)},S=fce(x,g);return c.jsx("div",{className:"w-full",children:c.jsxs("div",{className:"rounded-t-lg overflow-hidden",children:[i||a.length>0?c.jsxs("div",{className:"flex flex-col md:flex-row gap-4 bg-brand-dark-800 p-4",children:[c.jsx("div",{className:"grow",children:c.jsx("div",{className:"relative",children:i&&c.jsxs(c.Fragment,{children:[c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-white h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),c.jsx("input",{type:"text",placeholder:n,value:t.getState().globalFilter,onChange:R,className:"w-full pl-10 pr-4 py-3 border border-brand-dark-200 rounded-md bg-brand-dark-700 text-white focus:outline-none max-w-80"})]})})}),a.map((D,j)=>c.jsxs(ms,{onClick:D.onClick,className:`px-4 py-3 border border-white ${D.classes?D.classes:""} ${D.hasOwnProperty("active")&&!D.active?"text-white":"active"} `,children:[D.icon?c.jsx(de,{style:{fill:D.active?"var(--color-brand-dark-800)":"white"},icon:D.icon,size:"medium",className:"mr-1"}):"",D.label]},j))]}):null,c.jsx("div",{className:`overflow-x-auto border-l border-r border-[#344D5D] ${e}`,children:c.jsxs("table",{className:`min-w-full border-collapse table-fixed ${h?"table-bordered":""}`,children:[c.jsx("thead",{className:"text-white",children:c.jsx("tr",{children:t.getHeaderGroups().map(D=>D.headers.map(j=>{var z;const T=j.column.getIsSorted(),N=j.column.getCanSort(),_=typeof j.column.columnDef.header=="function",L=!N&&_,q=j.isPlaceholder?null:j.column.columnDef.header?C1(j.column.columnDef.header,j.getContext()):j.id;return c.jsx("th",{className:"py-4 px-6 text-left bg-brand-dark-800",style:{width:j.getSize()?j.getSize():"",cursor:N?"pointer":"default"},children:L?q:c.jsxs(tp,{asButton:!0,onClick:j.column.getToggleSortingHandler(),className:(z=j.column.columnDef.meta)==null?void 0:z.className,disabled:!N,children:[q,N&&c.jsxs(c.Fragment,{children:[c.jsx(de,{icon:BO,className:`-mr-1 ${T==="asc"?"text-white":"text-gray-400"}`,size:"large"}),c.jsx(de,{icon:BO,flip:"vertical",className:`-ml-1 ${T==="desc"?"text-white":"text-gray-400"}`,size:"large"})]})]})},j.id)}))})}),c.jsx("tbody",{children:t.getRowModel().rows.length>0?t.getRowModel().rows.map(D=>c.jsx("tr",{onClick:()=>u==null?void 0:u(D),className:`group hover:cursor-pointer ${b!=null?b(D)?"bg-near-neutral-300":"":D.getIsSelected()?"bg-near-neutral-300":""}`,children:D.getVisibleCells().map(j=>c.jsx("td",{onClick:T=>{j.column.id==="id"&&(T.preventDefault(),T.stopPropagation())},className:`bg-white group-hover:bg-near-neutral-300 ${j.column.id==="id"?"":"py-4 px-6"} ${h?"border border-gray-200 p-2":""}`,children:C1(j.column.columnDef.cell,j.getContext())},j.id))},D.id)):c.jsx("tr",{children:c.jsx("td",{colSpan:t.getAllColumns().length,className:"py-4 px-6 text-center",children:d})})})]})}),c.jsxs("div",{className:`flex items-center justify-between bg-brand-dark-800 text-white ${S.length?"":"py-5"} px-4 rounded-b-lg`,children:[c.jsx("div",{children:c.jsx("p",{children:`${M} - ${P} of ${C} ${(O=p!=null?p:r==null?void 0:r.toLowerCase())!=null?O:"items"}`})}),c.jsxs("div",{className:"flex gap-5",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:UL,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:c.jsx(de,{icon:tb,className:"block w-4 h-4 fill-current"})}),c.jsx("div",{className:"flex items-center space-x-2",children:S.map((D,j)=>{if(D===0)return c.jsx("span",{children:"..."},j);const T=x===D;return c.jsx("button",{className:`px-3 py-5 w-12 ${T?"shadow-[inset_0_4px_0_0_var(--color-brand-bright-500)] text-brand-bright-500":""}`,onClick:()=>t.setPageIndex(D-1),children:D},j)})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:eb,className:"block w-4 h-4 fill-current"})}),c.jsx("button",{className:"p-1 text-white hover:bg-brand-bright-100 hover:text-brand-dark-800 rounded disabled:text-near-neutral-800 disabled:hover:bg-transparent",onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),children:c.jsx(de,{icon:VL,className:"block w-4 h-4 fill-current"})})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[o.length===1?c.jsx("span",{children:o.at(0)}):c.jsx("select",{className:"w-25 bg-white text-brand-dark-800 rounded p-1",value:t.getState().pagination.pageSize,onChange:D=>{t.setPagination(j=>({...j,pageSize:Number(D.target.value),pageIndex:0}))},children:o.map(D=>c.jsx("option",{value:D,children:D},D))}),y&&c.jsxs("span",{children:[r," per page"]})]})]})]})]})})}function rq({options:e,value:t,onChange:n,placeholder:r="Select an option",className:i="text-brand-dark-800 bg-[#F5F6F7] border-0 border-b border-brand-dark-800 min-w-[200px]",disabled:a=!1}){var d;const o=e.find(h=>h.value===t),u=(d=o==null?void 0:o.label)!=null?d:r;return c.jsxs("div",{className:"relative inline-block",children:[c.jsxs("div",{className:`
298
298
  px-4 py-2
299
299
  flex items-center gap-2 w-fit
300
300
  pointer-events-none