@c3labsbr/vuetify-elements 1.18.1 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ T* `):Y.join(` Tj
47
47
  endobj\r
48
48
  `},e.outline.count_r=function(i,u){for(var r=0;r<u.children.length;r++)i.count++,this.count_r(i,u.children[r]);return i.count}}])})($t.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,i,u,r,s,l){var o,a=this.decode.DCT_DECODE,c=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,o=(function(p){for(var f,d=256*p.charCodeAt(4)+p.charCodeAt(5),v=p.length,g={width:0,height:0,numcomponents:1},m=4;m<v;m+=2){if(m+=d,n.indexOf(p.charCodeAt(m+1))!==-1){f=256*p.charCodeAt(m+5)+p.charCodeAt(m+6),g={width:256*p.charCodeAt(m+7)+p.charCodeAt(m+8),height:f,numcomponents:p.charCodeAt(m+9)};break}d=256*p.charCodeAt(m+2)+p.charCodeAt(m+3)}return g})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),o.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}c={data:e,width:o.width,height:o.height,colorSpace:l,bitsPerComponent:8,filter:a,index:i,alias:u}}return c}})($t.API),$t.API.processPNG=function(t,n,e,i){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var u,r=r6(t,{checkCrc:!0}),s=r.width,l=r.height,o=r.channels,a=r.palette,c=r.depth;u=a&&o===1?(function(I){for(var D=I.width,z=I.height,$=I.data,O=I.palette,N=I.depth,E=!1,C=[],x=[],_=void 0,S=!1,k=0,M=0;M<O.length;M++){var j=Vm(O[M],4),P=j[0],U=j[1],q=j[2],X=j[3];C.push(P,U,q),X!=null&&(X===0?(k++,x.length<1&&x.push(M)):X<255&&(S=!0))}if(S||k>1){E=!0,x=void 0;var V=D*z;_=new Uint8Array(V);for(var K=new DataView($.buffer),L=0;L<V;L++){var R=lf(K,L,N),G=Vm(O[R],4)[3];_[L]=G}}else k===0&&(x=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:E?8:void 0,colorBytes:$,alphaBytes:_,needSMask:E,palette:C,mask:x}})(r):o===2||o===4?(function(I){for(var D=I.data,z=I.width,$=I.height,O=I.channels,N=I.depth,E=O===2?"DeviceGray":"DeviceRGB",C=O-1,x=z*$,_=C,S=x*_,k=1*x,M=Math.ceil(S*N/8),j=Math.ceil(k*N/8),P=new Uint8Array(M),U=new Uint8Array(j),q=new DataView(D.buffer),X=new DataView(P.buffer),V=new DataView(U.buffer),K=!1,L=0;L<x;L++){for(var R=L*O,G=0;G<_;G++)U0(X,lf(q,R+G,N),L*_+G,N);var Q=lf(q,R+_,N);Q<(1<<N)-1&&(K=!0),U0(V,Q,1*L,N)}return{colorSpace:E,colorsPerPixel:C,sMaskBitsPerComponent:K?N:void 0,colorBytes:P,alphaBytes:U,needSMask:K}})(r):(function(I){var D=I.data,z=I.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:z,colorsPerPixel:z==="DeviceGray"?1:3,colorBytes:D instanceof Uint16Array?(function($){for(var O=$.length,N=new Uint8Array(2*O),E=new DataView(N.buffer,N.byteOffset,N.byteLength),C=0;C<O;C++)E.setUint16(2*C,$[C],!1);return N})(D):D,needSMask:!1}})(r);var p,f,d,v=u,g=v.colorSpace,m=v.colorsPerPixel,y=v.sMaskBitsPerComponent,b=v.colorBytes,w=v.alphaBytes,A=v.needSMask,T=v.palette,F=v.mask,H=null;return i!==$t.API.image_compression.NONE&&typeof Xf=="function"?(H=(function(I){var D;switch(I){case $t.API.image_compression.FAST:D=11;break;case $t.API.image_compression.MEDIUM:D=13;break;case $t.API.image_compression.SLOW:D=14;break;default:D=12}return D})(i),p=this.decode.FLATE_DECODE,f="/Predictor ".concat(H," /Colors ").concat(m," /BitsPerComponent ").concat(c," /Columns ").concat(s),t=B0(b,Math.ceil(s*m*c/8),m,c,i),A&&(d=B0(w,Math.ceil(s*y/8),1,y,i))):(p=void 0,f=void 0,t=b,A&&(d=w)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:e,data:t,index:n,filter:p,decodeParameters:f,transparency:F,palette:T,sMask:d,predictor:H,width:s,height:l,bitsPerComponent:c,sMaskBitsPerComponent:y,colorSpace:g}}},(function(t){t.processGIF89A=function(n,e,i,u){var r=new k6(n),s=r.width,l=r.height,o=[];r.decodeAndBlitFrameRGBA(0,o);var a={data:o,width:s,height:l},c=new uf(100).encode(a,100);return t.processJPEG.call(this,c,e,i,u)},t.processGIF87A=t.processGIF89A})($t.API),qi.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:u,green:i,blue:e,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qi.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,n=this.width*this.height*4;if(n>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[t]()}catch(e){Tn.log("bit decode error:"+e)}},qi.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,u=0;u<n;u++)for(var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+8*u*4,l=0;l<8&&8*u+l<this.width;l++){var o=this.palette[r>>7-l&1];this.data[s+4*l]=o.blue,this.data[s+4*l+1]=o.green,this.data[s+4*l+2]=o.red,this.data[s+4*l+3]=255}e!==0&&(this.pos+=4-e)}},qi.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,u=0;u<t;u++){var r=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+2*u*4,l=r>>4,o=15&r,a=this.palette[l];if(this.data[s]=a.blue,this.data[s+1]=a.green,this.data[s+2]=a.red,this.data[s+3]=255,2*u+1>=this.width)break;a=this.palette[o],this.data[s+4]=a.blue,this.data[s+4+1]=a.green,this.data[s+4+2]=a.red,this.data[s+4+3]=255}n!==0&&(this.pos+=4-n)}},qi.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var u=this.datav.getUint8(this.pos++,!0),r=e*this.width*4+4*i;if(u<this.palette.length){var s=this.palette[u];this.data[r]=s.red,this.data[r+1]=s.green,this.data[r+2]=s.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}t!==0&&(this.pos+=4-t)}},qi.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,u=0;u<this.width;u++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&n)/n*255|0,l=(r>>5&n)/n*255|0,o=(r>>10&n)/n*255|0,a=r>>15?255:0,c=i*this.width*4+4*u;this.data[c]=o,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=a}this.pos+=t}},qi.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var u=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(s&n)/n*255|0,o=(s>>5&e)/e*255|0,a=(s>>11)/n*255|0,c=u*this.width*4+4*r;this.data[c]=a,this.data[c+1]=o,this.data[c+2]=l,this.data[c+3]=255}this.pos+=t}},qi.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*e;this.data[s]=r,this.data[s+1]=u,this.data[s+2]=i,this.data[s+3]=255}this.pos+=this.width%4}},qi.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=r,this.data[l+1]=u,this.data[l+2]=i,this.data[l+3]=s}},qi.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(n,e,i,u){var r=new qi(n,!1),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},a=new uf(100).encode(o,100);return t.processJPEG.call(this,a,e,i,u)}})($t.API),q0.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(n,e,i,u){var r=new q0(n),s=r.width,l=r.height,o={data:r.getData(),width:s,height:l},a=new uf(100).encode(o,100);return t.processJPEG.call(this,a,e,i,u)}})($t.API),$t.API.processRGBA=function(t,n,e){for(var i=t.data,u=i.length,r=new Uint8Array(u/4*3),s=new Uint8Array(u/4),l=0,o=0,a=0;a<u;a+=4){var c=i[a],p=i[a+1],f=i[a+2],d=i[a+3];r[l++]=c,r[l++]=p,r[l++]=f,s[o++]=d}var v=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:v,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},$t.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Is=$t.API,qu=Is.getCharWidthsArray=function(t,n){var e,i,u=(n=n||{}).font||this.internal.getFont(),r=n.fontSize||this.internal.getFontSize(),s=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:u.metadata.Unicode.widths,o=l.fof?l.fof:1,a=n.kerning?n.kerning:u.metadata.Unicode.kerning,c=a.fof?a.fof:1,p=n.doKerning!==!1,f=0,d=t.length,v=0,g=l[0]||o,m=[];for(e=0;e<d;e++)i=t.charCodeAt(e),typeof u.metadata.widthOfString=="function"?m.push((u.metadata.widthOfGlyph(u.metadata.characterToGlyph(i))+s*(1e3/r)||0)/1e3):(f=p&&xn(a[i])==="object"&&!isNaN(parseInt(a[i][v],10))?a[i][v]/c:0,m.push((l[i]||g)/o+f)),v=i;return m},L0=Is.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),i=n.font||this.internal.getFont(),u=n.charSpace||this.internal.getCharSpace();return Is.processArabic&&(t=Is.processArabic(t)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(t,e,u)/e:qu.apply(this,arguments).reduce(function(r,s){return r+s},0)},O0=function(t,n,e,i){for(var u=[],r=0,s=t.length,l=0;r!==s&&l+n[r]<e;)l+=n[r],r++;u.push(t.slice(0,r));var o=r;for(l=0;r!==s;)l+n[r]>i&&(u.push(t.slice(o,r)),l=0,o=r),l+=n[r],r++;return o!==r&&u.push(t.slice(o,r)),u},F0=function(t,n,e){e||(e={});var i,u,r,s,l,o,a,c=[],p=[c],f=e.textIndent||0,d=0,v=0,g=t.split(" "),m=qu.apply(this,[" ",e])[0];if(o=e.lineIndent===-1?g[0].length+2:e.lineIndent||0){var y=Array(o).join(" "),b=[];g.map(function(A){(A=A.split(/\s*\n/)).length>1?b=b.concat(A.map(function(T,F){return(F&&T.length?`
49
49
  `:"")+T})):b.push(A[0])}),g=b,o=L0.apply(this,[y,e])}for(r=0,s=g.length;r<s;r++){var w=0;if(i=g[r],o&&i[0]==`
50
- `&&(i=i.substr(1),w=1),f+d+(v=(u=qu.apply(this,[i,e])).reduce(function(A,T){return A+T},0))>n||w){if(v>n){for(l=O0.apply(this,[i,u,n-(f+d),n]),c.push(l.shift()),c=[l.pop()];l.length;)p.push([l.shift()]);v=u.slice(i.length-(c[0]?c[0].length:0)).reduce(function(A,T){return A+T},0)}else c=[i];p.push(c),f=v+o,d=m}else c.push(i),f+=d+v,d=m}return a=o?function(A,T){return(T?y:"")+A.join(" ")}:function(A){return A.join(" ")},p.map(a)},Is.splitTextToSize=function(t,n,e){var i,u=(e=e||{}).fontSize||this.internal.getFontSize(),r=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var p=this.internal.getFont(c.fontName,c.fontStyle),f="Unicode";return p.metadata[f]?{widths:p.metadata[f].widths||{0:1},kerning:p.metadata[f].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*n/u;r.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/u:0,r.lineIndent=e.lineIndent;var l,o,a=[];for(l=0,o=i.length;l<o;l++)a=a.concat(F0.apply(this,[i[l],s,r]));return a},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",i={},u={},r=0;r<16;r++)i[e[r]]=n[r],u[n[r]]=e[r];var s=function(f){return"0x"+parseInt(f,10).toString(16)},l=t.__fontmetrics__.compress=function(f){var d,v,g,m,y=["{"];for(var b in f){if(d=f[b],isNaN(parseInt(b,10))?v="'"+b+"'":(b=parseInt(b,10),v=(v=s(b).slice(2)).slice(0,-1)+u[v.slice(-1)]),typeof d=="number")d<0?(g=s(d).slice(3),m="-"):(g=s(d).slice(2),m=""),g=m+g.slice(0,-1)+u[g.slice(-1)];else{if(xn(d)!=="object")throw new Error("Don't know what to do with value type "+xn(d)+".");g=l(d)}y.push(v+g)}return y.push("}"),y.join("")},o=t.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,v,g,m,y={},b=1,w=y,A=[],T="",F="",H=f.length-1,I=1;I<H;I+=1)(m=f[I])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(m):m=="{"?(A.push([w,g]),w={},g=void 0):m=="}"?((v=A.pop())[0][v[1]]=w,g=void 0,w=v[0]):m=="-"?b=-1:g===void 0?i.hasOwnProperty(m)?(T+=i[m],g=parseInt(T,16)*b,b=1,T=""):T+=m:i.hasOwnProperty(m)?(F+=i[m],w[g]=parseInt(F,16)*b,b=1,g=void 0,F=""):F+=m;return y},a={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:a,"Courier-Bold":a,"Courier-BoldOblique":a,"Courier-Oblique":a,Helvetica:a,"Helvetica-Bold":a,"Helvetica-BoldOblique":a,"Helvetica-Oblique":a,"Times-Roman":a,"Times-Bold":a,"Times-BoldItalic":a,"Times-Italic":a}},p={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(f){var d=f.font,v=p.Unicode[d.postScriptName];v&&(d.metadata.Unicode={},d.metadata.Unicode.widths=v.widths,d.metadata.Unicode.kerning=v.kerning);var g=c.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})($t.API),(function(t){var n=function(e){for(var i=e.length,u=new Uint8Array(i),r=0;r<i;r++)u[r]=e.charCodeAt(r);return u};t.API.events.push(["addFont",function(e){var i=void 0,u=e.font,r=e.instance;if(!u.isStandardFont){if(r===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");if(typeof(i=r.existsFileInVFS(u.postScriptName)===!1?r.loadFile(u.postScriptName):r.getFileFromVFS(u.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");(function(s,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(nc(l)),s.metadata=t.API.TTFFont.open(l),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(u,i)}}])})($t),$t.API.addSvgAsImage=function(t,n,e,i,u,r,s,l){if(isNaN(n)||isNaN(e))throw Tn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(u))throw Tn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=i,o.height=u;var a=o.getContext("2d");a.fillStyle="#fff",a.fillRect(0,0,o.width,o.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(Kt.canvg?Promise.resolve(Kt.canvg):Promise.resolve().then(()=>require("./index.es-C5sq0zxh.cjs"))).catch(function(f){return Promise.reject(new Error("Could not load canvg: "+f))}).then(function(f){return f.default?f.default:f}).then(function(f){return f.fromString(a,t,c)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(f){return f.render(c)}).then(function(){p.addImage(o.toDataURL("image/jpeg",1),n,e,i,u,s,l)})},$t.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var u=0;u<this.internal.pages[i].length;u++)this.internal.pages[i][u]=this.internal.pages[i][u].replace(n,e);return this},$t.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var i,u,r,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),o=[],a=0,c=0,p=0;function f(v,g){var m,y=!1;for(m=0;m<v.length;m+=1)v[m]===g&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var d=l.length;for(p=0;p<d;p+=1)e[l[p]].value=e[l[p]].defaultValue,e[l[p]].explicitSet=!1}if(xn(t)==="object"){for(u in t)if(r=t[u],f(l,u)&&r!==void 0){if(e[u].type==="boolean"&&typeof r=="boolean")e[u].value=r;else if(e[u].type==="name"&&f(e[u].valueSet,r))e[u].value=r;else if(e[u].type==="integer"&&Number.isInteger(r))e[u].value=r;else if(e[u].type==="array"){for(a=0;a<r.length;a+=1)if(i=!0,r[a].length===1&&typeof r[a][0]=="number")o.push(String(r[a]-1));else if(r[a].length>1){for(c=0;c<r[a].length;c+=1)typeof r[a][c]!="number"&&(i=!1);i===!0&&o.push([r[a][0]-1,r[a][1]-1].join(" "))}e[u].value="["+o.join(" ")+"]"}else e[u].value=e[u].defaultValue;e[u].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var v,g=[];for(v in e)e[v].explicitSet===!0&&(e[v].type==="name"?g.push("/"+v+" /"+e[v].value):g.push("/"+v+" "+e[v].value));g.length!==0&&this.internal.write(`/ViewerPreferences
50
+ `&&(i=i.substr(1),w=1),f+d+(v=(u=qu.apply(this,[i,e])).reduce(function(A,T){return A+T},0))>n||w){if(v>n){for(l=O0.apply(this,[i,u,n-(f+d),n]),c.push(l.shift()),c=[l.pop()];l.length;)p.push([l.shift()]);v=u.slice(i.length-(c[0]?c[0].length:0)).reduce(function(A,T){return A+T},0)}else c=[i];p.push(c),f=v+o,d=m}else c.push(i),f+=d+v,d=m}return a=o?function(A,T){return(T?y:"")+A.join(" ")}:function(A){return A.join(" ")},p.map(a)},Is.splitTextToSize=function(t,n,e){var i,u=(e=e||{}).fontSize||this.internal.getFontSize(),r=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var p=this.internal.getFont(c.fontName,c.fontStyle),f="Unicode";return p.metadata[f]?{widths:p.metadata[f].widths||{0:1},kerning:p.metadata[f].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*n/u;r.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/u:0,r.lineIndent=e.lineIndent;var l,o,a=[];for(l=0,o=i.length;l<o;l++)a=a.concat(F0.apply(this,[i[l],s,r]));return a},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",i={},u={},r=0;r<16;r++)i[e[r]]=n[r],u[n[r]]=e[r];var s=function(f){return"0x"+parseInt(f,10).toString(16)},l=t.__fontmetrics__.compress=function(f){var d,v,g,m,y=["{"];for(var b in f){if(d=f[b],isNaN(parseInt(b,10))?v="'"+b+"'":(b=parseInt(b,10),v=(v=s(b).slice(2)).slice(0,-1)+u[v.slice(-1)]),typeof d=="number")d<0?(g=s(d).slice(3),m="-"):(g=s(d).slice(2),m=""),g=m+g.slice(0,-1)+u[g.slice(-1)];else{if(xn(d)!=="object")throw new Error("Don't know what to do with value type "+xn(d)+".");g=l(d)}y.push(v+g)}return y.push("}"),y.join("")},o=t.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,v,g,m,y={},b=1,w=y,A=[],T="",F="",H=f.length-1,I=1;I<H;I+=1)(m=f[I])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(m):m=="{"?(A.push([w,g]),w={},g=void 0):m=="}"?((v=A.pop())[0][v[1]]=w,g=void 0,w=v[0]):m=="-"?b=-1:g===void 0?i.hasOwnProperty(m)?(T+=i[m],g=parseInt(T,16)*b,b=1,T=""):T+=m:i.hasOwnProperty(m)?(F+=i[m],w[g]=parseInt(F,16)*b,b=1,g=void 0,F=""):F+=m;return y},a={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:a,"Courier-Bold":a,"Courier-BoldOblique":a,"Courier-Oblique":a,Helvetica:a,"Helvetica-Bold":a,"Helvetica-BoldOblique":a,"Helvetica-Oblique":a,"Times-Roman":a,"Times-Bold":a,"Times-BoldItalic":a,"Times-Italic":a}},p={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(f){var d=f.font,v=p.Unicode[d.postScriptName];v&&(d.metadata.Unicode={},d.metadata.Unicode.widths=v.widths,d.metadata.Unicode.kerning=v.kerning);var g=c.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})($t.API),(function(t){var n=function(e){for(var i=e.length,u=new Uint8Array(i),r=0;r<i;r++)u[r]=e.charCodeAt(r);return u};t.API.events.push(["addFont",function(e){var i=void 0,u=e.font,r=e.instance;if(!u.isStandardFont){if(r===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");if(typeof(i=r.existsFileInVFS(u.postScriptName)===!1?r.loadFile(u.postScriptName):r.getFileFromVFS(u.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");(function(s,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(nc(l)),s.metadata=t.API.TTFFont.open(l),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(u,i)}}])})($t),$t.API.addSvgAsImage=function(t,n,e,i,u,r,s,l){if(isNaN(n)||isNaN(e))throw Tn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(u))throw Tn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=i,o.height=u;var a=o.getContext("2d");a.fillStyle="#fff",a.fillRect(0,0,o.width,o.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(Kt.canvg?Promise.resolve(Kt.canvg):Promise.resolve().then(()=>require("./index.es-DvZE8ua2.cjs"))).catch(function(f){return Promise.reject(new Error("Could not load canvg: "+f))}).then(function(f){return f.default?f.default:f}).then(function(f){return f.fromString(a,t,c)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(f){return f.render(c)}).then(function(){p.addImage(o.toDataURL("image/jpeg",1),n,e,i,u,s,l)})},$t.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var u=0;u<this.internal.pages[i].length;u++)this.internal.pages[i][u]=this.internal.pages[i][u].replace(n,e);return this},$t.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var i,u,r,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),o=[],a=0,c=0,p=0;function f(v,g){var m,y=!1;for(m=0;m<v.length;m+=1)v[m]===g&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var d=l.length;for(p=0;p<d;p+=1)e[l[p]].value=e[l[p]].defaultValue,e[l[p]].explicitSet=!1}if(xn(t)==="object"){for(u in t)if(r=t[u],f(l,u)&&r!==void 0){if(e[u].type==="boolean"&&typeof r=="boolean")e[u].value=r;else if(e[u].type==="name"&&f(e[u].valueSet,r))e[u].value=r;else if(e[u].type==="integer"&&Number.isInteger(r))e[u].value=r;else if(e[u].type==="array"){for(a=0;a<r.length;a+=1)if(i=!0,r[a].length===1&&typeof r[a][0]=="number")o.push(String(r[a]-1));else if(r[a].length>1){for(c=0;c<r[a].length;c+=1)typeof r[a][c]!="number"&&(i=!1);i===!0&&o.push([r[a][0]-1,r[a][1]-1].join(" "))}e[u].value="["+o.join(" ")+"]"}else e[u].value=e[u].defaultValue;e[u].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var v,g=[];for(v in e)e[v].explicitSet===!0&&(e[v].type==="name"?g.push("/"+v+" /"+e[v].value):g.push("/"+v+" "+e[v].value));g.length!==0&&this.internal.write(`/ViewerPreferences
51
51
  <<
52
52
  `+g.join(`
53
53
  `)+`
@@ -111,4 +111,4 @@ use chrome, FireFox or Internet Explorer 11`)}var o=e("safe-buffer"),a=e("random
111
111
  <span class='flatpickr-weekday'>
112
112
  `+pe.join("</span><span class='flatpickr-weekday'>")+`
113
113
  </span>
114
- `}}function M(){e.calendarContainer.classList.add("hasWeeks");var ue=yn("div","flatpickr-weekwrapper");ue.appendChild(yn("span","flatpickr-weekday",e.l10n.weekAbbreviation));var pe=yn("div","flatpickr-weeks");return ue.appendChild(pe),{weekWrapper:ue,weekNumbers:pe}}function j(ue,pe){pe===void 0&&(pe=!0);var Se=pe?ue:ue-e.currentMonth;Se<0&&e._hidePrevMonthArrow===!0||Se>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=Se,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,$e("onYearChange"),N()),O(),$e("onMonthChange"),vt())}function P(ue,pe){if(ue===void 0&&(ue=!0),pe===void 0&&(pe=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,pe===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var Se=Nf(e.config),Ie=Se.hours,Ye=Se.minutes,De=Se.seconds;d(Ie,Ye,De)}e.redraw(),ue&&$e("onChange")}function U(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),$e("onClose")}function q(){e.config!==void 0&&$e("onDestroy");for(var ue=e._handlers.length;ue--;)e._handlers[ue].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var pe=e.calendarContainer.parentNode;if(pe.lastChild&&pe.removeChild(pe.lastChild),pe.parentNode){for(;pe.firstChild;)pe.parentNode.insertBefore(pe.firstChild,pe);pe.parentNode.removeChild(pe)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(Se){try{delete e[Se]}catch{}})}function X(ue){return e.calendarContainer.contains(ue)}function V(ue){if(e.isOpen&&!e.config.inline){var pe=gi(ue),Se=X(pe),Ie=pe===e.input||pe===e.altInput||e.element.contains(pe)||ue.path&&ue.path.indexOf&&(~ue.path.indexOf(e.input)||~ue.path.indexOf(e.altInput)),Ye=!Ie&&!Se&&!X(ue.relatedTarget),De=!e.config.ignoredFocusElements.some(function(bt){return bt.contains(pe)});Ye&&De&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&o(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function K(ue){if(!(!ue||e.config.minDate&&ue<e.config.minDate.getFullYear()||e.config.maxDate&&ue>e.config.maxDate.getFullYear())){var pe=ue,Se=e.currentYear!==pe;e.currentYear=pe||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),Se&&(e.redraw(),$e("onYearChange"),N())}}function L(ue,pe){var Se;pe===void 0&&(pe=!0);var Ie=e.parseDate(ue,void 0,pe);if(e.config.minDate&&Ie&&bi(Ie,e.config.minDate,pe!==void 0?pe:!e.minDateHasTime)<0||e.config.maxDate&&Ie&&bi(Ie,e.config.maxDate,pe!==void 0?pe:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(Ie===void 0)return!1;for(var Ye=!!e.config.enable,De=(Se=e.config.enable)!==null&&Se!==void 0?Se:e.config.disable,bt=0,ct=void 0;bt<De.length;bt++){if(ct=De[bt],typeof ct=="function"&&ct(Ie))return Ye;if(ct instanceof Date&&Ie!==void 0&&ct.getTime()===Ie.getTime())return Ye;if(typeof ct=="string"){var dt=e.parseDate(ct,void 0,!0);return dt&&dt.getTime()===Ie.getTime()?Ye:!Ye}else if(typeof ct=="object"&&Ie!==void 0&&ct.from&&ct.to&&Ie.getTime()>=ct.from.getTime()&&Ie.getTime()<=ct.to.getTime())return Ye}return!Ye}function R(ue){return e.daysContainer!==void 0?ue.className.indexOf("hidden")===-1&&ue.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(ue):!1}function G(ue){var pe=ue.target===e._input,Se=e._input.value.trimEnd()!==lt();pe&&Se&&!(ue.relatedTarget&&X(ue.relatedTarget))&&e.setDate(e._input.value,!0,ue.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Q(ue){var pe=gi(ue),Se=e.config.wrap?t.contains(pe):pe===e._input,Ie=e.config.allowInput,Ye=e.isOpen&&(!Ie||!Se),De=e.config.inline&&Se&&!Ie;if(ue.keyCode===13&&Se){if(Ie)return e.setDate(e._input.value,!0,pe===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),pe.blur();e.open()}else if(X(pe)||Ye||De){var bt=!!e.timeContainer&&e.timeContainer.contains(pe);switch(ue.keyCode){case 13:bt?(ue.preventDefault(),o(),Ne()):Oe(ue);break;case 27:ue.preventDefault(),Ne();break;case 8:case 46:Se&&!e.config.allowInput&&(ue.preventDefault(),e.clear());break;case 37:case 39:if(!bt&&!Se){ue.preventDefault();var ct=r();if(e.daysContainer!==void 0&&(Ie===!1||ct&&R(ct))){var dt=ue.keyCode===39?1:-1;ue.ctrlKey?(ue.stopPropagation(),j(dt),z(I(1),0)):z(void 0,dt)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:ue.preventDefault();var ge=ue.keyCode===40?1:-1;e.daysContainer&&pe.$i!==void 0||pe===e.input||pe===e.altInput?ue.ctrlKey?(ue.stopPropagation(),K(e.currentYear-ge),z(I(1),0)):bt||z(void 0,ge*7):pe===e.currentYearElement?K(e.currentYear-ge):e.config.enableTime&&(!bt&&e.hourElement&&e.hourElement.focus(),o(ue),e._debouncedChange());break;case 9:if(bt){var ke=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(_t){return _t}),Re=ke.indexOf(pe);if(Re!==-1){var rt=ke[Re+(ue.shiftKey?-1:1)];ue.preventDefault(),(rt||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(pe)&&ue.shiftKey&&(ue.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&pe===e.amPM)switch(ue.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],p(),Nt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],p(),Nt();break}(Se||X(pe))&&$e("onKeyDown",ue)}function ae(ue,pe){if(pe===void 0&&(pe="flatpickr-day"),!(e.selectedDates.length!==1||ue&&(!ue.classList.contains(pe)||ue.classList.contains("flatpickr-disabled")))){for(var Se=ue?ue.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),Ie=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),Ye=Math.min(Se,e.selectedDates[0].getTime()),De=Math.max(Se,e.selectedDates[0].getTime()),bt=!1,ct=0,dt=0,ge=Ye;ge<De;ge+=X9.DAY)L(new Date(ge),!0)||(bt=bt||ge>Ye&&ge<De,ge<Ie&&(!ct||ge>ct)?ct=ge:ge>Ie&&(!dt||ge<dt)&&(dt=ge));var ke=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+pe));ke.forEach(function(Re){var rt=Re.dateObj,_t=rt.getTime(),ht=ct>0&&_t<ct||dt>0&&_t>dt;if(ht){Re.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Et){Re.classList.remove(Et)});return}else if(bt&&!ht)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Et){Re.classList.remove(Et)}),ue!==void 0&&(ue.classList.add(Se<=e.selectedDates[0].getTime()?"startRange":"endRange"),Ie<Se&&_t===Ie?Re.classList.add("startRange"):Ie>Se&&_t===Ie&&Re.classList.add("endRange"),_t>=ct&&(dt===0||_t<=dt)&&K9(_t,Ie,Se)&&Re.classList.add("inRange"))})}}function te(){e.isOpen&&!e.config.static&&!e.config.inline&&le()}function ne(ue,pe){if(pe===void 0&&(pe=e._positionElement),e.isMobile===!0){if(ue){ue.preventDefault();var Se=gi(ue);Se&&Se.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),$e("onOpen");return}else if(e._input.disabled||e.config.inline)return;var Ie=e.isOpen;e.isOpen=!0,Ie||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),$e("onOpen"),le(pe)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(ue===void 0||!e.timeContainer.contains(ue.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function J(ue){return function(pe){var Se=e.config["_"+ue+"Date"]=e.parseDate(pe,e.config.dateFormat),Ie=e.config["_"+(ue==="min"?"max":"min")+"Date"];Se!==void 0&&(e[ue==="min"?"minDateHasTime":"maxDateHasTime"]=Se.getHours()>0||Se.getMinutes()>0||Se.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(Ye){return L(Ye)}),!e.selectedDates.length&&ue==="min"&&f(Se),Nt()),e.daysContainer&&(Ce(),Se!==void 0?e.currentYearElement[ue]=Se.getFullYear().toString():e.currentYearElement.removeAttribute(ue),e.currentYearElement.disabled=!!Ie&&Se!==void 0&&Ie.getFullYear()===Se.getFullYear())}}function he(){var ue=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],pe=Lr(Lr({},JSON.parse(JSON.stringify(t.dataset||{}))),n),Se={};e.config.parseDate=pe.parseDate,e.config.formatDate=pe.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(ke){e.config._enable=Ge(ke)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(ke){e.config._disable=Ge(ke)}});var Ie=pe.mode==="time";if(!pe.dateFormat&&(pe.enableTime||Ie)){var Ye=Zn.defaultConfig.dateFormat||Hs.dateFormat;Se.dateFormat=pe.noCalendar||Ie?"H:i"+(pe.enableSeconds?":S":""):Ye+" H:i"+(pe.enableSeconds?":S":"")}if(pe.altInput&&(pe.enableTime||Ie)&&!pe.altFormat){var De=Zn.defaultConfig.altFormat||Hs.altFormat;Se.altFormat=pe.noCalendar||Ie?"h:i"+(pe.enableSeconds?":S K":" K"):De+(" h:i"+(pe.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:J("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:J("max")});var bt=function(ke){return function(Re){e.config[ke==="min"?"_minTime":"_maxTime"]=e.parseDate(Re,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:bt("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:bt("max")}),pe.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,Se,pe);for(var ct=0;ct<ue.length;ct++)e.config[ue[ct]]=e.config[ue[ct]]===!0||e.config[ue[ct]]==="true";Sf.filter(function(ke){return e.config[ke]!==void 0}).forEach(function(ke){e.config[ke]=kf(e.config[ke]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ct=0;ct<e.config.plugins.length;ct++){var dt=e.config.plugins[ct](e)||{};for(var ge in dt)Sf.indexOf(ge)>-1?e.config[ge]=kf(dt[ge]).map(s).concat(e.config[ge]):typeof pe[ge]>"u"&&(e.config[ge]=dt[ge])}pe.altInputClass||(e.config.altInputClass=re().className+" "+e.config.altInputClass),$e("onParseConfig")}function re(){return e.config.wrap?t.querySelector("[data-input]"):t}function de(){typeof e.config.locale!="object"&&typeof Zn.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Lr(Lr({},Zn.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Zn.l10ns[e.config.locale]:void 0),Go.D="("+e.l10n.weekdays.shorthand.join("|")+")",Go.l="("+e.l10n.weekdays.longhand.join("|")+")",Go.M="("+e.l10n.months.shorthand.join("|")+")",Go.F="("+e.l10n.months.longhand.join("|")+")",Go.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var ue=Lr(Lr({},n),JSON.parse(JSON.stringify(t.dataset||{})));ue.time_24hr===void 0&&Zn.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=j2(e),e.parseDate=gh({config:e.config,l10n:e.l10n})}function le(ue){if(typeof e.config.position=="function")return void e.config.position(e,ue);if(e.calendarContainer!==void 0){$e("onPreCalendarPosition");var pe=ue||e._positionElement,Se=Array.prototype.reduce.call(e.calendarContainer.children,(function(An,Un){return An+Un.offsetHeight}),0),Ie=e.calendarContainer.offsetWidth,Ye=e.config.position.split(" "),De=Ye[0],bt=Ye.length>1?Ye[1]:null,ct=pe.getBoundingClientRect(),dt=window.innerHeight-ct.bottom,ge=De==="above"||De!=="below"&&dt<Se&&ct.top>Se,ke=window.pageYOffset+ct.top+(ge?-Se-2:pe.offsetHeight+2);if(Wr(e.calendarContainer,"arrowTop",!ge),Wr(e.calendarContainer,"arrowBottom",ge),!e.config.inline){var Re=window.pageXOffset+ct.left,rt=!1,_t=!1;bt==="center"?(Re-=(Ie-ct.width)/2,rt=!0):bt==="right"&&(Re-=Ie-ct.width,_t=!0),Wr(e.calendarContainer,"arrowLeft",!rt&&!_t),Wr(e.calendarContainer,"arrowCenter",rt),Wr(e.calendarContainer,"arrowRight",_t);var ht=window.document.body.offsetWidth-(window.pageXOffset+ct.right),Et=Re+Ie>window.document.body.offsetWidth,Tt=ht+Ie>window.document.body.offsetWidth;if(Wr(e.calendarContainer,"rightMost",Et),!e.config.static)if(e.calendarContainer.style.top=ke+"px",!Et)e.calendarContainer.style.left=Re+"px",e.calendarContainer.style.right="auto";else if(!Tt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=ht+"px";else{var Ct=_e();if(Ct===void 0)return;var jt=window.document.body.offsetWidth,Dt=Math.max(0,jt/2-Ie/2),Ht=".flatpickr-calendar.centerMost:before",hn=".flatpickr-calendar.centerMost:after",cn=Ct.cssRules.length,Cn="{left:"+ct.left+"px;right:auto;}";Wr(e.calendarContainer,"rightMost",!1),Wr(e.calendarContainer,"centerMost",!0),Ct.insertRule(Ht+","+hn+Cn,cn),e.calendarContainer.style.left=Dt+"px",e.calendarContainer.style.right="auto"}}}}function _e(){for(var ue=null,pe=0;pe<document.styleSheets.length;pe++){var Se=document.styleSheets[pe];if(Se.cssRules){try{Se.cssRules}catch{continue}ue=Se;break}}return ue??xe()}function xe(){var ue=document.createElement("style");return document.head.appendChild(ue),ue.sheet}function Ce(){e.config.noCalendar||e.isMobile||(N(),vt(),O())}function Ne(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Oe(ue){ue.preventDefault(),ue.stopPropagation();var pe=function(ke){return ke.classList&&ke.classList.contains("flatpickr-day")&&!ke.classList.contains("flatpickr-disabled")&&!ke.classList.contains("notAllowed")},Se=B2(gi(ue),pe);if(Se!==void 0){var Ie=Se,Ye=e.latestSelectedDateObj=new Date(Ie.dateObj.getTime()),De=(Ye.getMonth()<e.currentMonth||Ye.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=Ie,e.config.mode==="single")e.selectedDates=[Ye];else if(e.config.mode==="multiple"){var bt=Ke(Ye);bt?e.selectedDates.splice(parseInt(bt),1):e.selectedDates.push(Ye)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=Ye,e.selectedDates.push(Ye),bi(Ye,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ke,Re){return ke.getTime()-Re.getTime()}));if(p(),De){var ct=e.currentYear!==Ye.getFullYear();e.currentYear=Ye.getFullYear(),e.currentMonth=Ye.getMonth(),ct&&($e("onYearChange"),N()),$e("onMonthChange")}if(vt(),O(),Nt(),!De&&e.config.mode!=="range"&&e.config.showMonths===1?H(Ie):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var dt=e.config.mode==="single"&&!e.config.enableTime,ge=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(dt||ge)&&Ne()}m()}}var Me={locale:[de,k],showMonths:[C,l,S],minDate:[b],maxDate:[b],positionElement:[yt],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Be(ue,pe){if(ue!==null&&typeof ue=="object"){Object.assign(e.config,ue);for(var Se in ue)Me[Se]!==void 0&&Me[Se].forEach(function(Ie){return Ie()})}else e.config[ue]=pe,Me[ue]!==void 0?Me[ue].forEach(function(Ie){return Ie()}):Sf.indexOf(ue)>-1&&(e.config[ue]=kf(pe));e.redraw(),Nt(!0)}function ze(ue,pe){var Se=[];if(ue instanceof Array)Se=ue.map(function(Ie){return e.parseDate(Ie,pe)});else if(ue instanceof Date||typeof ue=="number")Se=[e.parseDate(ue,pe)];else if(typeof ue=="string")switch(e.config.mode){case"single":case"time":Se=[e.parseDate(ue,pe)];break;case"multiple":Se=ue.split(e.config.conjunction).map(function(Ie){return e.parseDate(Ie,pe)});break;case"range":Se=ue.split(e.l10n.rangeSeparator).map(function(Ie){return e.parseDate(Ie,pe)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(ue)));e.selectedDates=e.config.allowInvalidPreload?Se:Se.filter(function(Ie){return Ie instanceof Date&&L(Ie,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(Ie,Ye){return Ie.getTime()-Ye.getTime()})}function Ue(ue,pe,Se){if(pe===void 0&&(pe=!1),Se===void 0&&(Se=e.config.dateFormat),ue!==0&&!ue||ue instanceof Array&&ue.length===0)return e.clear(pe);ze(ue,Se),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),b(void 0,pe),f(),e.selectedDates.length===0&&e.clear(!1),Nt(pe),pe&&$e("onChange")}function Ge(ue){return ue.slice().map(function(pe){return typeof pe=="string"||typeof pe=="number"||pe instanceof Date?e.parseDate(pe,void 0,!0):pe&&typeof pe=="object"&&pe.from&&pe.to?{from:e.parseDate(pe.from,void 0),to:e.parseDate(pe.to,void 0)}:pe}).filter(function(pe){return pe})}function st(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var ue=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);ue&&ze(ue,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function et(){if(e.input=re(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=yn(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),yt()}function yt(){e._positionElement=e.config.positionElement||e._input}function nt(){var ue=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=yn("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=ue,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=ue==="datetime-local"?"Y-m-d\\TH:i:S":ue==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}g(e.mobileInput,"change",function(pe){e.setDate(gi(pe).value,!1,e.mobileFormatStr),$e("onChange"),$e("onClose")})}function He(ue){if(e.isOpen===!0)return e.close();e.open(ue)}function $e(ue,pe){if(e.config!==void 0){var Se=e.config[ue];if(Se!==void 0&&Se.length>0)for(var Ie=0;Se[Ie]&&Ie<Se.length;Ie++)Se[Ie](e.selectedDates,e.input.value,e,pe);ue==="onChange"&&(e.input.dispatchEvent(mt("change")),e.input.dispatchEvent(mt("input")))}}function mt(ue){var pe=document.createEvent("Event");return pe.initEvent(ue,!0,!0),pe}function Ke(ue){for(var pe=0;pe<e.selectedDates.length;pe++){var Se=e.selectedDates[pe];if(Se instanceof Date&&bi(Se,ue)===0)return""+pe}return!1}function Mt(ue){return e.config.mode!=="range"||e.selectedDates.length<2?!1:bi(ue,e.selectedDates[0])>=0&&bi(ue,e.selectedDates[1])<=0}function vt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(ue,pe){var Se=new Date(e.currentYear,e.currentMonth,1);Se.setMonth(e.currentMonth+pe),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[pe].textContent=Mc(Se.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=Se.getMonth().toString(),ue.value=Se.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function lt(ue){var pe=ue||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(Se){return e.formatDate(Se,pe)}).filter(function(Se,Ie,Ye){return e.config.mode!=="range"||e.config.enableTime||Ye.indexOf(Se)===Ie}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Nt(ue){ue===void 0&&(ue=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=lt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=lt(e.config.altFormat)),ue!==!1&&$e("onValueUpdate")}function wt(ue){var pe=gi(ue),Se=e.prevMonthNav.contains(pe),Ie=e.nextMonthNav.contains(pe);Se||Ie?j(Se?-1:1):e.yearElements.indexOf(pe)>=0?pe.select():pe.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):pe.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function ut(ue){ue.preventDefault();var pe=ue.type==="keydown",Se=gi(ue),Ie=Se;e.amPM!==void 0&&Se===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Li(e.amPM.textContent===e.l10n.amPM[0])]);var Ye=parseFloat(Ie.getAttribute("min")),De=parseFloat(Ie.getAttribute("max")),bt=parseFloat(Ie.getAttribute("step")),ct=parseInt(Ie.value,10),dt=ue.delta||(pe?ue.which===38?1:-1:0),ge=ct+bt*dt;if(typeof Ie.value<"u"&&Ie.value.length===2){var ke=Ie===e.hourElement,Re=Ie===e.minuteElement;ge<Ye?(ge=De+ge+Li(!ke)+(Li(ke)&&Li(!e.amPM)),Re&&A(void 0,-1,e.hourElement)):ge>De&&(ge=Ie===e.hourElement?ge-De-Li(!e.amPM):Ye,Re&&A(void 0,1,e.hourElement)),e.amPM&&ke&&(bt===1?ge+ct===23:Math.abs(ge-ct)>bt)&&(e.amPM.textContent=e.l10n.amPM[Li(e.amPM.textContent===e.l10n.amPM[0])]),Ie.value=ri(ge)}}return u(),e}function qs(t,n){for(var e=Array.prototype.slice.call(t).filter(function(s){return s instanceof HTMLElement}),i=[],u=0;u<e.length;u++){var r=e[u];try{if(r.getAttribute("data-fp-omit")!==null)continue;r._flatpickr!==void 0&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=J9(r,n||{}),i.push(r._flatpickr)}catch(s){console.error(s)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return qs(this,t)},HTMLElement.prototype.flatpickr=function(t){return qs([this],t)});var Zn=function(t,n){return typeof t=="string"?qs(window.document.querySelectorAll(t),n):t instanceof Node?qs([t],n):qs(t,n)};Zn.defaultConfig={};Zn.l10ns={en:Lr({},Xl),default:Lr({},Xl)};Zn.localize=function(t){Zn.l10ns.default=Lr(Lr({},Zn.l10ns.default),t)};Zn.setDefaults=function(t){Zn.defaultConfig=Lr(Lr({},Zn.defaultConfig),t)};Zn.parseDate=gh({});Zn.formatDate=j2({});Zn.compareDates=bi;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return qs(this,t)});Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))};typeof window<"u"&&(window.flatpickr=Zn);const V2=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"],Q9=["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"];function P1(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function I1(t){return t instanceof Array?t:[t]}function Ef(t){return t&&t.length?t:null}const R1=[...V2,...Q9],eC=["locale","showMonths"],tC=h.defineComponent({name:"FlatPickr",compatConfig:{MODE:3},render(){return h.h("input",{type:"text","data-input":!0,disabled:this.disabled,onInput:this.onInput})},emits:["blur","update:modelValue",...R1.map(P1)],props:{modelValue:{type:[String,Number,Date,Array,null],required:!0},config:{type:Object,default:()=>({defaultDate:null,wrap:!1})},events:{type:Array,default:()=>V2},disabled:{type:Boolean,default:!1}},data(){return{fp:null}},mounted(){this.fp||(this.fp=Zn(this.getElem(),this.prepareConfig()),this.fpInput().addEventListener("blur",this.onBlur),this.$watch("disabled",this.watchDisabled,{immediate:!0}))},methods:{prepareConfig(){let t=Object.assign({},this.config);this.events.forEach(e=>{let i=Zn.defaultConfig[e]||[],u=(...r)=>{this.$emit(P1(e),...r)};t[e]=I1(t[e]||[]).concat(i,u)});const n=this.onClose.bind(this);return t.onClose=I1(t.onClose||[]).concat(n),t.defaultDate=this.modelValue||t.defaultDate,t},getElem(){return this.config.wrap?this.$el.parentNode:this.$el},onInput(t){const n=t.target;h.nextTick().then(()=>{this.$emit("update:modelValue",Ef(n.value))})},fpInput(){return this.fp.altInput||this.fp.input},onBlur(t){this.$emit("blur",Ef(t.target.value))},onClose(t,n){this.$emit("update:modelValue",n)},watchDisabled(t){t?this.fpInput().setAttribute("disabled",""):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler(t){if(!this.fp)return;let n=Object.assign({},t);R1.forEach(e=>{delete n[e]}),this.fp.set(n),eC.forEach(e=>{typeof n[e]<"u"&&this.fp.set(e,n[e])})}},modelValue(t){var n;!this.$el||t===Ef(this.$el.value)||(n=this.fp)===null||n===void 0||n.setDate(t,!0)}},beforeUnmount(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}});var Pl={exports:{}},nC=Pl.exports,D1;function rC(){return D1||(D1=1,(function(t,n){(function(e,i){i(n)})(nC,(function(e){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},u={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até ",time_24hr:!0};i.l10ns.pt=u;var r=i.l10ns;e.Portuguese=u,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))})(Pl,Pl.exports)),Pl.exports}var iC=rC();const aC={class:"app-picker-field"},z2=h.defineComponent({__name:"DateTimePicker",props:h.mergeModels({label:{},placeholder:{},hint:{},persistentHint:{type:Boolean},errorText:{type:[String,Boolean]},disabled:{type:Boolean},readonly:{type:Boolean},rules:{},config:{},minDate:{},allDay:{type:Boolean},variant:{default:"outlined"},prependIcon:{},appendIcon:{},prependInnerIcon:{},appendInnerIcon:{}},{modelValue:{default:""},modelModifiers:{}}),emits:h.mergeModels(["click:clear"],["update:modelValue"]),setup(t,{emit:n}){Zn.localize(iC.Portuguese);const e=t,i=h.useModel(t,"modelValue"),u=n,r=h.ref(null),s=h.ref(!1),l=h.ref(!1),o=Hy.useTheme(),a=()=>{const g=r.value?.fp?.calendarContainer;g&&(Object.keys(o.themes.value).forEach(m=>g.classList.remove(`v-theme--${m}`)),g.classList.add(`v-theme--${o.global.name.value}`))},c=g=>{if(g.todayButtonAdded)return;const m=document.createElement("button");m.type="button",m.textContent="Hoje",m.className="flatpickr-today-btn",m.addEventListener("click",()=>{g.setDate(new Date,!0),g.close()});const y=document.createElement("div");y.className="flatpickr-footer",y.appendChild(m),g.calendarContainer?.appendChild(y),g.todayButtonAdded=!0},p=h.computed(()=>({...e.config,...e.minDate?{minDate:e.minDate}:{},altInput:!0,allowInput:!0,onReady:[...e.config?.onReady||[],(g,m,y)=>c(y)]}));h.watch(()=>o.global.name.value,a),h.onMounted(a);const f=g=>{if(g===""||Array.isArray(g)&&g.length===0){i.value=null;return}i.value=g},d=g=>{g.stopPropagation(),h.nextTick(()=>{i.value=null,u("click:clear",g)})},v=h.computed(()=>typeof e.errorText=="string"&&e.errorText?[e.errorText]:[]);return(g,m)=>(h.openBlock(),h.createElementBlock("div",aC,[h.createVNode(Si,{class:"position-relative v-text-field",density:"compact","hide-details":"auto","model-value":i.value,rules:t.rules,disabled:t.disabled,readonly:t.readonly,"error-messages":v.value,hint:t.hint,"persistent-hint":t.persistentHint,"prepend-icon":t.prependIcon,"append-icon":t.appendIcon},{default:h.withCtx(({id:y,isDirty:b,isDisabled:w,isReadonly:A,validate:T})=>[h.createVNode(as,{id:y.value,role:"textbox",label:t.label,variant:t.variant,color:"primary",active:s.value||b.value||l.value,focused:s.value||l.value,dirty:b.value,disabled:w.value,"prepend-inner-icon":t.prependInnerIcon,"append-inner-icon":t.appendInnerIcon,"onClick:clear":d},{default:h.withCtx(({props:F})=>[h.createElementVNode("div",h.normalizeProps(h.guardReactiveProps(F)),[h.createVNode(h.unref(tC),{ref_key:"refFlatPicker",ref:r,config:p.value,"model-value":i.value,placeholder:t.placeholder,readonly:A.value,disabled:w.value,class:"flat-picker-custom-style h-100 w-100",onOnOpen:m[0]||(m[0]=H=>l.value=!0),onOnClose:H=>{l.value=!1,T()},onFocus:m[1]||(m[1]=H=>s.value=!0),onBlur:m[2]||(m[2]=H=>s.value=!1),"onUpdate:modelValue":f},null,8,["config","model-value","placeholder","readonly","disabled","onOnClose"])],16)]),_:2},1032,["id","label","variant","active","focused","dirty","disabled","prepend-inner-icon","append-inner-icon"])]),_:1},8,["model-value","rules","disabled","readonly","error-messages","hint","persistent-hint","prepend-icon","append-icon"])]))}}),uu={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},el={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Xr={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},oC={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},sC={dangerouslyHTMLString:!1,multiple:!0,position:uu.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},lC={rtl:!1,newestOnTop:!1,toastClassName:""},$2={...sC,...lC};Xr.DEFAULT;var wn=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(wn||{}),vh=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(vh||{});const uC={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},cC={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},dC={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},fC={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},L1="Toastify--animate Toastify__none-enter";function U2(t,n=!1){var e;let i=uC;if(!t||typeof t=="string")switch(t){case"flip":i=fC;break;case"zoom":i=dC;break;case"slide":i=cC;break}else i=t;if(n)i.enter=L1;else if(i.enter===L1){const u=(e=i.exit.split("__")[1])==null?void 0:e.split("-")[0];i.enter=`Toastify--animate Toastify__${u}-enter`}return i}function hC(t){return t.containerId||String(t.position)}const od="will-unmount";function pC(t=uu.TOP_RIGHT){return!!document.querySelector(`.${wn.CSS_NAMESPACE}__toast-container--${t}`)}function mC(t=uu.TOP_RIGHT){return`${wn.CSS_NAMESPACE}__toast-container--${t}`}function gC(t,n,e=!1){const i=[`${wn.CSS_NAMESPACE}__toast-container`,`${wn.CSS_NAMESPACE}__toast-container--${t}`,e?`${wn.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Ws(n)?n({position:t,rtl:e,defaultClassName:i}):`${i} ${n||""}`}function vC(t){var n;const{position:e,containerClassName:i,rtl:u=!1,style:r={}}=t,s=wn.CSS_NAMESPACE,l=mC(e),o=document.querySelector(`.${s}`),a=document.querySelector(`.${l}`),c=!!a&&!((n=a.className)!=null&&n.includes(od)),p=o||document.createElement("div"),f=document.createElement("div");f.className=gC(e,i,u),f.dataset.testid=`${wn.CSS_NAMESPACE}__toast-container--${e}`,f.id=hC(t);for(const d in r)if(Object.prototype.hasOwnProperty.call(r,d)){const v=r[d];f.style[d]=v}return o||(p.className=wn.CSS_NAMESPACE,document.body.appendChild(p)),c||p.appendChild(f),f}function bh(t){var n,e,i;const u=typeof t=="string"?t:((n=t.currentTarget)==null?void 0:n.id)||((e=t.target)==null?void 0:e.id),r=document.getElementById(u);r&&r.removeEventListener("animationend",bh,!1);try{Zl[u].unmount(),(i=document.getElementById(u))==null||i.remove(),delete Zl[u],delete _r[u]}catch{}}const Zl=h.reactive({});function bC(t,n){const e=document.getElementById(String(n));e&&(Zl[e.id]=t)}function yh(t,n=!0){const e=String(t);if(!Zl[e])return;const i=document.getElementById(e);i&&i.classList.add(od),n?(wC(t),i&&i.addEventListener("animationend",bh,!1)):bh(e),ma.items=ma.items.filter(u=>u.containerId!==t)}function yC(t){for(const n in Zl)yh(n,t);ma.items=[]}function H2(t,n){const e=document.getElementById(t.toastId);if(e){let i=t;i={...i,...U2(i.transition)};const u=i.appendPosition?`${i.exit}--${i.position}`:i.exit;e.className+=` ${u}`,n&&n(e)}}function wC(t){for(const n in _r)if(n===t)for(const e of _r[n]||[])H2(e)}function xC(t){const n=tl().find(e=>e.toastId===t);return n?.containerId}function dp(t){return document.getElementById(t)}function _C(t){const n=dp(t.containerId);return n&&n.classList.contains(od)}function O1(t){var n;const e=h.isVNode(t.content)?h.toRaw(t.content.props):null;return e??h.toRaw((n=t.data)!=null?n:{})}function SC(t){return t?ma.items.filter(n=>n.containerId===t).length>0:ma.items.length>0}function kC(){if(ma.items.length>0){const t=ma.items.shift();sc(t?.toastContent,t?.toastProps)}}const _r=h.reactive({}),ma=h.reactive({items:[]});function tl(){const t=h.toRaw(_r);return Object.values(t).reduce((n,e)=>[...n,...e],[])}function CC(t){return tl().find(n=>n.toastId===t)}function sc(t,n={}){if(_C(n)){const e=dp(n.containerId);e&&e.addEventListener("animationend",wh.bind(null,t,n),!1)}else wh(t,n)}function wh(t,n={}){const e=dp(n.containerId);e&&e.removeEventListener("animationend",wh.bind(null,t,n),!1);const i=_r[n.containerId]||[],u=i.length>0;if(!u&&!pC(n.position)){const r=vC(n),s=h.createApp(qC,n);n.useHandler&&n.useHandler(s),s.mount(r),bC(s,r.id)}u&&!n.updateId&&(n.position=i[0].position),h.nextTick(()=>{n.updateId?yi.update(n):yi.add(t,n)})}const yi={add(t,n){const{containerId:e=""}=n;e&&(_r[e]=_r[e]||[],_r[e].find(i=>i.toastId===n.toastId)||setTimeout(()=>{var i,u;n.newestOnTop?(i=_r[e])==null||i.unshift(n):(u=_r[e])==null||u.push(n),n.onOpen&&n.onOpen(O1(n))},n.delay||0))},remove(t){if(t){const n=xC(t);if(n){const e=_r[n];let i=e.find(u=>u.toastId===t);_r[n]=e.filter(u=>u.toastId!==t),!_r[n].length&&!SC(n)&&yh(n,!1),kC(),h.nextTick(()=>{i!=null&&i.onClose&&(i.onClose(O1(i)),i=void 0)})}}},update(t={}){const{containerId:n=""}=t;if(n&&t.updateId){_r[n]=_r[n]||[];const e=_r[n].find(r=>r.toastId===t.toastId),i=e?.position!==t.position||e?.transition!==t.transition,u={...t,disabledEnterTransition:!i,updateId:void 0};yi.dismissForce(t?.toastId),setTimeout(()=>{Pn(u.content,u)},t.delay||0)}},clear(t,n=!0){t?yh(t,n):yC(n)},dismissCallback(t){var n;const e=(n=t.currentTarget)==null?void 0:n.id,i=document.getElementById(e);i&&(i.removeEventListener("animationend",yi.dismissCallback,!1),setTimeout(()=>{yi.remove(e)}))},dismiss(t){if(t){const n=tl();for(const e of n)if(e.toastId===t){H2(e,i=>{i.addEventListener("animationend",yi.dismissCallback,!1)});break}}},dismissForce(t){if(t){const n=tl();for(const e of n)if(e.toastId===t){const i=document.getElementById(t);i&&(i.remove(),i.removeEventListener("animationend",yi.dismissCallback,!1),yi.remove(t));break}}}},AC=h.reactive({useHandler:void 0}),q2=h.reactive({}),Tc=h.reactive({});function W2(){return Math.random().toString(36).substring(2,9)}function NC(t){return typeof t=="number"&&!isNaN(t)}function xh(t){return typeof t=="string"}function Ws(t){return typeof t=="function"}function sd(...t){return h.mergeProps(...t)}function lc(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function EC(t={}){q2[`${wn.CSS_NAMESPACE}-default-options`]=t}function MC(){return q2[`${wn.CSS_NAMESPACE}-default-options`]||$2}function TC(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var uc=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(uc||{});const G2={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:uu.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:el.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Xr.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},PC={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Xr.DEFAULT},theme:{type:String,required:!1,default:el.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},IC=h.defineComponent({name:"ProgressBar",props:PC,setup(t,{attrs:n}){const e=h.ref(),i=h.computed(()=>t.hide?"true":"false"),u=h.computed(()=>({...n.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),r=h.computed(()=>[`${wn.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${wn.CSS_NAMESPACE}__progress-bar--controlled`:`${wn.CSS_NAMESPACE}__progress-bar--animated`,`${wn.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${wn.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${wn.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),s=h.computed(()=>`${r.value} ${n?.class||""}`),l=()=>{e.value&&(e.value.onanimationend=null,e.value.ontransitionend=null)},o=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),l())},a=h.computed(()=>t.controlledProgress?null:o),c=h.computed(()=>t.controlledProgress?o:null);return h.watchEffect(()=>{e.value&&(l(),e.value.onanimationend=a.value,e.value.ontransitionend=c.value)}),()=>h.createVNode("div",{ref:e,role:"progressbar","aria-hidden":i.value,"aria-label":"notification timer",class:s.value,style:u.value},null)}}),RC=h.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:el.AUTO},type:{type:String,required:!1,default:el.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>h.createVNode("button",{class:`${wn.CSS_NAMESPACE}__close-button ${wn.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:n=>{n.stopPropagation(),t.closeToast&&t.closeToast(n)},"aria-label":t.ariaLabel},[h.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[h.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),ld=({theme:t,type:n,path:e,...i})=>h.createVNode("svg",h.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`},i),[h.createVNode("path",{d:e},null)]);function DC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function LC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function OC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function FC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function BC(){return h.createVNode("div",{class:`${wn.CSS_NAMESPACE}__spinner`},null)}const cc={info:LC,warning:DC,success:OC,error:FC,spinner:BC},jC=t=>t in cc;function VC({theme:t,type:n,isLoading:e,icon:i}){let u;const r=!!e||n==="loading",s={theme:t,type:n};if(r&&(i===void 0||typeof i=="boolean"))return cc.spinner();if(i!==!1){if(lc(i))u=h.toRaw(i);else if(Ws(i)){const l=i;s.type=r?"loading":n,u=l(s),u=!u&&r?cc.spinner():u}else h.isVNode(i)?u=h.cloneVNode(i,s):xh(i)||NC(i)?u=i:jC(n)&&(u=cc[n](s));return u}}const zC=()=>{};function $C(t,n,e=wn.COLLAPSE_DURATION){const{scrollHeight:i,style:u}=t,r=e;requestAnimationFrame(()=>{u.minHeight="initial",u.height=i+"px",u.transition=`all ${r}ms`,requestAnimationFrame(()=>{u.height="0",u.padding="0",u.margin="0",setTimeout(n,r)})})}function UC(t){const n=h.ref(!1),e=h.ref(!1),i=h.ref(!1),u=h.ref(uc.Enter),r=h.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||wn.COLLAPSE_DURATION}),s=r.done||zC,l=h.computed(()=>r.appendPosition?`${r.enter}--${r.position}`:r.enter),o=h.computed(()=>r.appendPosition?`${r.exit}--${r.position}`:r.exit),a=h.computed(()=>t.pauseOnHover?{onMouseenter:m,onMouseleave:g}:{});function c(){const b=l.value.split(" ");f().addEventListener(vh.ENTRANCE_ANIMATION_END,g,{once:!0});const w=T=>{const F=f();T.target===F&&(F.dispatchEvent(new Event(vh.ENTRANCE_ANIMATION_END)),F.removeEventListener("animationend",w),F.removeEventListener("animationcancel",w),u.value===uc.Enter&&T.type!=="animationcancel"&&F.classList.remove(...b))},A=()=>{const T=f();T.classList.add(...b),T.addEventListener("animationend",w),T.addEventListener("animationcancel",w)};t.pauseOnFocusLoss&&d(),A()}function p(){if(!f())return;const b=()=>{const A=f();A.removeEventListener("animationend",b),r.collapse?$C(A,s,r.collapseDuration):s()},w=()=>{const A=f();u.value=uc.Exit,A&&(A.className+=` ${o.value}`,A.addEventListener("animationend",b))};e.value||(i.value?b():setTimeout(w))}function f(){return t.toastRef.value}function d(){document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m)}function v(){window.removeEventListener("focus",g),window.removeEventListener("blur",m)}function g(){(!t.loading.value||t.isLoading===void 0)&&(n.value=!0)}function m(){n.value=!1}function y(b){b&&(b.stopPropagation(),b.preventDefault()),e.value=!1}return h.watchEffect(p),h.watchEffect(()=>{const b=tl();e.value=b.findIndex(w=>w.toastId===r.toastId)>-1}),h.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?m():g())}),h.onMounted(c),h.onUnmounted(()=>{t.pauseOnFocusLoss&&v()}),{isIn:e,isRunning:n,hideToast:y,eventHandlers:a}}const HC=h.defineComponent({name:"ToastItem",inheritAttrs:!1,props:G2,setup(t){const n=h.ref(),e=h.computed(()=>!!t.isLoading),i=h.computed(()=>t.progress!==void 0&&t.progress!==null),u=h.computed(()=>VC(t)),r=h.computed(()=>[`${wn.CSS_NAMESPACE}__toast`,`${wn.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${wn.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${wn.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:l,hideToast:o,eventHandlers:a}=UC({toastRef:n,loading:e,done:()=>{yi.remove(t.toastId)},...U2(t.transition,t.disabledEnterTransition),...t});return()=>h.createVNode("div",h.mergeProps({id:t.toastId,class:r.value,style:t.toastStyle||{},ref:n,"data-testid":`toast-item-${t.toastId}`,onClick:c=>{t.closeOnClick&&o(),t.onClick&&t.onClick(c)}},a.value),[h.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${wn.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[u.value!=null&&h.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${wn.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${wn.CSS_NAMESPACE}--animate-icon ${wn.CSS_NAMESPACE}__zoom-enter`].join(" ")},[lc(u.value)?h.h(h.toRaw(u.value),{theme:t.theme,type:t.type}):Ws(u.value)?u.value({theme:t.theme,type:t.type}):u.value]),h.createVNode("div",{"data-testid":"toast-content"},[lc(t.content)?h.h(h.toRaw(t.content),{toastProps:h.toRaw(t),closeToast:o,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):Ws(t.content)?t.content({toastProps:h.toRaw(t),closeToast:o,data:t.data}):t.dangerouslyHTMLString?h.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&h.createVNode(RC,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),o()}},null),lc(t.closeButton)?h.h(h.toRaw(t.closeButton),{closeToast:o,type:t.type,theme:t.theme}):Ws(t.closeButton)?t.closeButton({closeToast:o,type:t.type,theme:t.theme}):null,h.createVNode(IC,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:l.value,type:t.type,hide:t.hideProgressBar,isRunning:s.value,autoClose:t.autoClose,controlledProgress:i.value,progress:t.progress,closeToast:t.isLoading?void 0:o},null)])}});let Vl=0;function K2(){typeof window>"u"||(Vl&&window.cancelAnimationFrame(Vl),Vl=window.requestAnimationFrame(K2),Tc.lastUrl!==window.location.href&&(Tc.lastUrl=window.location.href,yi.clear()))}const qC=h.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:G2,setup(t){const n=h.computed(()=>t.containerId),e=h.computed(()=>_r[n.value]||[]),i=h.computed(()=>e.value.filter(u=>u.position===t.position));return h.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(K2)}),h.onUnmounted(()=>{typeof window<"u"&&Vl&&(window.cancelAnimationFrame(Vl),Tc.lastUrl="")}),()=>h.createVNode(h.Fragment,null,[i.value.map(u=>{const{toastId:r=""}=u;return h.createVNode(HC,h.mergeProps({key:r},u),null)})])}});let Mf=!1;const Y2={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function X2(){const t=[];return tl().forEach(n=>{const e=document.getElementById(n.containerId);e&&!e.classList.contains(od)&&t.push(n)}),t}function WC(t){const n=X2().length,e=t??0;return e>0&&n+ma.items.length>=e}function GC(t){WC(t.limit)&&!t.updateId&&ma.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function Eo(t,n,e={}){if(Mf)return;e=sd(MC(),{type:n},h.toRaw(e)),(!e.toastId||typeof e.toastId!="string"&&typeof e.toastId!="number")&&(e.toastId=W2()),e={...e,...e.type==="loading"?Y2:{},content:t,containerId:e.containerId||String(e.position)};const i=Number(e?.progress);return!isNaN(i)&&i<0&&(e.progress=0),i>1&&(e.progress=1),e.theme==="auto"&&(e.theme=TC()),GC(e),Tc.lastUrl=window.location.href,e.multiple?ma.items.length?e.updateId&&sc(t,e):sc(t,e):(Mf=!0,Pn.clearAll(void 0,!1),setTimeout(()=>{sc(t,e)},0),setTimeout(()=>{Mf=!1},390)),e.toastId}const Pn=(t,n)=>Eo(t,Xr.DEFAULT,n);Pn.info=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.INFO});Pn.error=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.ERROR});Pn.warning=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.WARNING});Pn.warn=Pn.warning;Pn.success=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.SUCCESS});Pn.loading=(t,n)=>Eo(t,Xr.DEFAULT,sd(n,Y2));Pn.dark=(t,n)=>Eo(t,Xr.DEFAULT,sd(n,{theme:el.DARK}));Pn.remove=t=>{t?yi.dismiss(t):yi.clear()};Pn.clearAll=(t,n)=>{h.nextTick(()=>{yi.clear(t,n)})};Pn.isActive=t=>{let n=!1;return n=X2().findIndex(e=>e.toastId===t)>-1,n};Pn.update=(t,n={})=>{setTimeout(()=>{const e=CC(t);if(e){const i=h.toRaw(e),{content:u}=i,r={...i,...n,toastId:n.toastId||t,updateId:W2()},s=r.render||u;delete r.render,Eo(s,r.type,r)}},0)};Pn.done=t=>{Pn.update(t,{isLoading:!1,progress:1})};Pn.promise=KC;function KC(t,{pending:n,error:e,success:i},u){var r,s,l;let o;const a={...u||{},autoClose:!1};n&&(o=xh(n)?Pn.loading(n,a):Pn.loading(n.render,{...a,...n}));const c={autoClose:(r=u?.autoClose)!=null?r:!0,closeOnClick:(s=u?.closeOnClick)!=null?s:!0,closeButton:(l=u?.autoClose)!=null?l:null,isLoading:void 0,draggable:null,delay:100},p=(d,v,g)=>{if(v==null){Pn.remove(o);return}const m={type:d,...c,...u,data:g},y=xh(v)?{render:v}:v;return o?Pn.update(o,{...m,...y,isLoading:!1}):Pn(y.render,{...m,...y,isLoading:!1}),g},f=Ws(t)?t():t;return f.then(d=>{p("success",i,d)}).catch(d=>{p("error",e,d)}),f}Pn.POSITION=uu;Pn.THEME=el;Pn.TYPE=Xr;Pn.TRANSITIONS=oC;const YC={install(t,n={}){AC.useHandler=n.useHandler||(()=>{}),XC(n)}};typeof window<"u"&&(window.Vue3Toastify=YC);function XC(t={}){const n=sd($2,t);EC(n)}async function F1(t,n,e,i,u,r){Pn(t,{theme:"auto",type:n,position:"top-right",pauseOnFocusLoss:!1,autoClose:5e3,hideProgressBar:!1,dangerouslyHTMLString:!0})}function Z2(t,n){const e=()=>{F1("unexpectedError","error")};try{n&&(t.message||t.data)||t.message&&F1(t.message,"error")}catch{e()}finally{console.error(t)}}const ZC={class:"d-flex ga-1 align-center"},JC={key:0,class:"w-100"},QC={key:1},eA={key:2,class:"ma-0 text-center w-100"},tA=h.defineComponent({__name:"RemoteSearchField",props:h.mergeModels({searchFunction:{},placeholder:{},label:{},itemTitle:{},itemValue:{},itemSubtitle:{},itemComponent:{},errors:{},returnObject:{type:Boolean},secondParam:{},createComponent:{},createData:{},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},appendIcon:{},appendIconAction:{type:Function},appendIconTooltip:{},appendIconColor:{},appendIconAlwaysActive:{type:Boolean},searchContextKey:{},exclude:{type:Function}},{value:{default:null},valueModifiers:{},items:{type:Array,default:()=>[]},itemsModifiers:{}}),emits:h.mergeModels(["update:value"],["update:value","update:items"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"value"),u=h.useModel(t,"items"),r=h.ref(""),s=h.ref(!1),l=h.ref(!1),o=h.ref(),a=h.ref(!1),c=h.ref(null);let p=0;const f=h.computed(()=>o.value?[...u.value.filter(k=>g(k)!=g(o.value))]:u.value??[]),d=k=>e.itemTitle.split(".").reduce((j,P)=>j[P],k),v=k=>e.itemSubtitle?e.itemSubtitle.split(".").reduce((j,P)=>j[P],k):null,g=k=>k?e.itemValue.split(".").reduce((j,P)=>j[P],k):null,m=async k=>{if(!e.searchFunction)return[];try{return(e.secondParam!=null?await e.searchFunction(k??"",e.secondParam):await e.searchFunction(k??""))??[]}catch(M){return Z2(M),[]}},y=async(k=r.value)=>{const M=++p;l.value=!0;const j=await m(k);M===p&&(u.value=j,c.value=k,l.value=!1)},b=up(()=>{a.value&&y()},500),w=()=>{a.value=!1,r.value="",c.value=null},A=(k=!0)=>{e.disabled||(a.value=!0,k&&c.value!==r.value&&y())},T=k=>{k?A():w()},F=(k,M=!0)=>{o.value=k,M&&(i.value=e.returnObject?k:g(k)),w()},H=(k,M=!0)=>{r.value=k,M&&b()},I=h.computed(()=>a.value?r.value:o.value?d(o.value):""),D=h.computed(()=>o.value?a.value?d(o.value):"":e.placeholder),z=k=>{k&&A()},$=k=>{A(!1),H(k)},O=async()=>{if(e.disabled)return;c.value!==r.value&&await y();const k=f.value[0];k&&F(k)},N=()=>{F(null)},E=async k=>{k&&(F(k),H("")),s.value=!1},C=h.computed(()=>e.returnObject?g(i.value):i.value),x=h.computed(()=>!!i.value&&!!o.value&&g(o.value)==C.value),_=async()=>{if(!i.value){o.value=null;return}if(e.returnObject){o.value=i.value;return}const M=(await m(String(i.value))).find(j=>g(j)==i.value);o.value=M??null,M||(i.value=null)},S=h.ref(e.searchContextKey);return h.watch([()=>i.value,()=>e.searchContextKey],async([,k])=>{const M=k!=S.value;S.value=k,!(!M&&x.value)&&await _()},{immediate:!0}),h.watch(()=>e.secondParam,async()=>{c.value=null,a.value&&y(),await _()}),h.onUnmounted(()=>{u.value=[]}),(k,M)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(Wa,{modelValue:a.value,"onUpdate:modelValue":[M[5]||(M[5]=j=>a.value=j),T],"close-on-content-click":!1,disabled:e.disabled,"open-on-click":!1},{activator:h.withCtx(({props:j,isActive:P})=>[h.createVNode(Kr,h.mergeProps(j,{density:"compact",label:e.label,"model-value":I.value,placeholder:D.value,dirty:!!o.value||P,active:!!o.value||P,"error-messages":e.errors,disabled:e.disabled,class:"activator",onClick:M[2]||(M[2]=U=>A()),"onUpdate:focused":z,"onUpdate:modelValue":$,onKeydown:h.withKeys(h.withModifiers(O,["prevent"]),["enter"])}),h.createSlots({_:2},[o.value&&!e.disabled?{name:"append-inner",fn:h.withCtx(()=>[h.createVNode(au,{size:"x-small",icon:"ri-close-line",variant:"text",class:"rounded",tabindex:"-1",onClick:h.withModifiers(N,["stop"])})]),key:"0"}:void 0,e.createComponent||e.appendIcon?{name:"append",fn:h.withCtx(()=>[h.createElementVNode("div",ZC,[e.createComponent?(h.openBlock(),h.createBlock(qt,{key:0,tabindex:"-1",onClick:M[0]||(M[0]=h.withModifiers(U=>s.value=!0,["stop"])),size:"18"},{default:h.withCtx(()=>[...M[8]||(M[8]=[h.createTextVNode(" ri-add-line ",-1)])]),_:1})):h.createCommentVNode("",!0),h.createElementVNode("span",{class:h.normalizeClass(["append-icon-wrap",{"append-icon-active":e.disabled}])},[e.appendIcon?(h.openBlock(),h.createBlock(_n,{key:0,icon:"",variant:"text",size:"18",tabindex:"-1"},{default:h.withCtx(()=>[h.createVNode(qt,{size:"18",tabindex:"-1",color:e.appendIconColor,onClick:M[1]||(M[1]=h.withModifiers(U=>e.appendIconAction?e.appendIconAction():"",["stop"]))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.appendIcon),1)]),_:1},8,["color"]),e.appendIconTooltip?(h.openBlock(),h.createBlock(Wc,{key:0,activator:"parent"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.appendIconTooltip),1)]),_:1})):h.createCommentVNode("",!0)]),_:1})):h.createCommentVNode("",!0)],2)])]),key:"1"}:void 0]),1040,["label","model-value","placeholder","dirty","active","error-messages","disabled","onKeydown"])]),default:h.withCtx(()=>[h.createVNode(us,{class:"py-2",density:"compact","max-height":"300"},{default:h.withCtx(()=>[l.value?(h.openBlock(),h.createElementBlock("div",JC,[h.createVNode(vS,{type:"list-item-two-line, list-item-two-line"})])):f.value.length?(h.openBlock(),h.createElementBlock("div",QC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.value,j=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[e.itemComponent?(h.openBlock(),h.createElementBlock("span",{key:0,onMousedown:M[3]||(M[3]=h.withModifiers(()=>{},["prevent"]))},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.itemComponent),{item:j,onClick:P=>F(j)},null,8,["item","onClick"]))],32)):(h.openBlock(),h.createBlock(dr,{key:1,title:d(j),subtitle:v(j),onMousedown:M[4]||(M[4]=h.withModifiers(()=>{},["prevent"])),onClick:P=>F(j)},null,8,["title","subtitle","onClick"]))],64))),256))])):(h.openBlock(),h.createElementBlock("p",eA," Nenhum resultado encontrado... "))]),_:1})]),_:1},8,["modelValue","disabled"]),e.createComponent?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.createComponent),{key:0,data:e.createData,"show-modal":s.value,"onUpdate:showModal":M[6]||(M[6]=j=>s.value=j),"is-dialog-visible":s.value,"onUpdate:isDialogVisible":M[7]||(M[7]=j=>s.value=j),onCreate:E},null,40,["data","show-modal","is-dialog-visible"])):h.createCommentVNode("",!0)],64))}}),J2=ji(tA,[["__scopeId","data-v-cc765103"]]),nA={class:"d-flex flex-wrap ga-1 display-value"},rA={key:0,class:"w-100 d-flex align-center justify-center"},iA={key:1},aA={key:2,class:"ma-0 text-center w-100"},oA=h.defineComponent({__name:"RemoteMultipleSearchField",props:h.mergeModels({searchFunction:{},placeholder:{},label:{},itemTitle:{},itemValue:{},itemComponent:{},errors:{},returnObject:{type:Boolean},secondParam:{},createComponent:{},createData:{},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},exclude:{type:Function}},{value:{default:()=>[]},valueModifiers:{},items:{type:Array,default:()=>[]},itemsModifiers:{}}),emits:h.mergeModels(["update:value"],["update:value","update:items"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"value"),u=h.useModel(t,"items"),r=h.ref(""),s=h.ref(!1),l=h.ref(!1),o=h.ref([]),a=h.ref(!1),c=h.ref(null);let p=0;const f=h.computed(()=>{const E=o.value.map(C=>v(C));return u.value.filter(C=>!E.includes(v(C)))}),d=E=>e.itemTitle.split(".").reduce((x,_)=>x[_],E),v=E=>E?e.itemValue.split(".").reduce((x,_)=>x[_],E):null,g=async E=>{if(!e.searchFunction)return[];try{return(e.secondParam!=null?await e.searchFunction(E??"",e.secondParam):await e.searchFunction(E??""))??[]}catch(C){return Z2(C),[]}},m=async(E=r.value)=>{const C=++p;l.value=!0;const x=await g(E);C===p&&(u.value=x,c.value=E,l.value=!1)},y=up(()=>{a.value&&m()},500),b=E=>{const C=v(E);o.value.some(_=>v(_)===C)?o.value=o.value.filter(_=>v(_)!==C):o.value.push(E),i.value=o.value.map(_=>e.returnObject?_:v(_)),r.value="",c.value!==""&&m("")},w=(E,C=!0)=>{r.value=E,C&&y()},A=()=>{a.value=!1,r.value="",c.value=null},T=(E=!0)=>{e.disabled||(a.value=!0,E&&c.value!==r.value&&m())},F=E=>{E?T():A()},H=E=>{E&&T()},I=E=>{T(!1),w(E)},D=async()=>{if(e.disabled)return;c.value!==r.value&&await m();const E=f.value[0];E&&b(E)},z=()=>{o.value=[],i.value=[]},$=async E=>{E&&(b(E),w("")),s.value=!1},O=h.computed(()=>{const E=i.value??[];return E.length===o.value.length&&E.every(C=>o.value.some(x=>v(x)==C))}),N=async()=>{const E=i.value??[];if(!E.length){o.value=[];return}if(e.returnObject){o.value=E;return}const C=[],x=[],_=await g("");if(E.forEach(S=>{const k=_.find(M=>v(M)==S);k?C.push(k):x.push(S)}),x.length){const S=await Promise.all(x.map(k=>g(String(k))));x.forEach((k,M)=>{const j=S[M].find(P=>v(P)==k);j&&C.push(j)})}o.value=C};return h.watch(()=>i.value,async()=>{O.value||await N()},{immediate:!0}),(E,C)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(Wa,{modelValue:a.value,"onUpdate:modelValue":[C[4]||(C[4]=x=>a.value=x),F],"close-on-content-click":!1,disabled:e.disabled,"open-on-click":!1},{activator:h.withCtx(({props:x,isActive:_})=>[h.createVNode(Kr,h.mergeProps(x,{density:"compact",label:e.label,"model-value":r.value,placeholder:o.value.length?"":e.placeholder,dirty:!!o.value.length||_,active:!!o.value.length||_,"error-messages":e.errors,disabled:e.disabled,class:"activator",onClick:C[1]||(C[1]=S=>T()),"onUpdate:focused":H,"onUpdate:modelValue":I,onKeydown:h.withKeys(h.withModifiers(D,["prevent"]),["enter"])}),h.createSlots({default:h.withCtx(()=>[h.createElementVNode("span",nA,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,S=>(h.openBlock(),h.createBlock(_i,{key:v(S),closable:"",size:"small","onClick:close":k=>b(S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d(S)),1)]),_:2},1032,["onClick:close"]))),128))])]),_:2},[o.value.length?{name:"append-inner",fn:h.withCtx(()=>[h.createVNode(au,{size:"x-small",icon:"ri-close-line",variant:"text",class:"rounded",tabindex:"-1",onClick:h.withModifiers(z,["stop"])})]),key:"0"}:void 0,e.createComponent?{name:"append",fn:h.withCtx(()=>[h.createVNode(qt,{tabindex:"-1",onClick:C[0]||(C[0]=h.withModifiers(S=>s.value=!0,["stop"]))},{default:h.withCtx(()=>[...C[7]||(C[7]=[h.createTextVNode(" ri-add-line ",-1)])]),_:1})]),key:"1"}:void 0]),1040,["label","model-value","placeholder","dirty","active","error-messages","disabled","onKeydown"])]),default:h.withCtx(()=>[h.createVNode(us,{class:"py-2",density:"compact","max-height":"300"},{default:h.withCtx(()=>[l.value?(h.openBlock(),h.createElementBlock("div",rA,[h.createVNode(Lc,{indeterminate:"",size:"20"})])):f.value.length?(h.openBlock(),h.createElementBlock("div",iA,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.value,x=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v(x)},[e.itemComponent?(h.openBlock(),h.createElementBlock("span",{key:0,onMousedown:C[2]||(C[2]=h.withModifiers(()=>{},["prevent"]))},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.itemComponent),{item:x,onClick:_=>b(x)},null,8,["item","onClick"]))],32)):(h.openBlock(),h.createBlock(dr,{key:1,title:d(x),onMousedown:C[3]||(C[3]=h.withModifiers(()=>{},["prevent"])),onClick:_=>b(x)},null,8,["title","onClick"]))],64))),128))])):(h.openBlock(),h.createElementBlock("p",aA," Nenhum resultado encontrado... "))]),_:1})]),_:1},8,["modelValue","disabled"]),e.createComponent?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.createComponent),{key:0,data:e.createData,"show-modal":s.value,"onUpdate:showModal":C[5]||(C[5]=x=>s.value=x),"is-dialog-visible":s.value,"onUpdate:isDialogVisible":C[6]||(C[6]=x=>s.value=x),onCreate:$},null,40,["data","show-modal","is-dialog-visible"])):h.createCommentVNode("",!0)],64))}}),Q2=ji(oA,[["__scopeId","data-v-4f0e453d"]]),sA={AC:"+247 #####",AD:["+376 ### ###","+376 #### ####"],AE:["+971 # ### ####","+971 ## ### ####","+971 ### ######","+971 ### # #####"],AF:"+93 ## ### ####",AG:"+1 ###-###-####",AI:"+1 ###-###-####",AL:["+355 ## ### ###","+355 ## ### ####","+355 ### ####","+355 ### ###","+355 ### #####"],AM:["+374 ## ######","+374 ### ## ###"],AO:"+244 ### ### ###",AR:["+54 ## ####-####","+54 # ## ####-####","+54 ###-###-####"],AS:"+1 ###-###-####",AT:["+43 # #########","+43 ### ######"],AU:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###","+61 ## ### ##"],AW:"+297 ### ####",AX:["+358 ## #######","+358 ### ######"],AZ:["+994 ## ### ## ##","+994 ### ## ## ##"],BA:["+387 ## ###-###","+387 ## ### ###"],BB:"+1 ###-###-####",BD:["+880 #-#######","+880 ####-######","+880 ###-#######"],BE:["+32 ## ## ## ##","+32 ### ## ## ##","+32 ### ## ###"],BF:"+226 ## ## ## ##",BG:["+359 # ### ###","+359 ## ### ###","+359 ### ## ###"],BH:"+973 #### ####",BI:"+257 ## ## ## ##",BJ:["+229 ## ## ## ## ##","+229 ## ## ## ##"],BL:"+590 ### ## ## ##",BM:"+1 ###-###-####",BN:"+673 ### ####",BO:["+591 # #######","+591 ########","+591 ### ## ####"],BQ:"+599 ### ####",BR:["+55 ## ####-####","+55 ## #####-####","+55 ### ## ####","+55 ####-####"],BS:"+1 ###-###-####",BT:["+975 # ### ###","+975 ## ## ## ##"],BW:["+267 ### ####","+267 ## ### ###","+267 #### ### ###","+267 ## #####"],BY:["+375 ### ##-##-##","+375 ## ###-##-##","+375 ### ### ####"],BZ:["+501 ###-####","+501 #-###-####-###"],CA:"+1 ###-###-####",CC:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CD:["+243 ## #####","+243 ### ### ###"],CF:"+236 ## ## ## ##",CG:["+242 ## ### ####","+242 # #### ####"],CH:["+41 ## ### ## ##","+41 ### ### ###"],CI:["+225 ## ## # #####","+225 ## ## ## ####"],CK:"+682 ## ###",CL:["+56 ### ### ###","+56 # #### ####","+56 ### ### ####","+56 ## ### ####"],CM:["+237 # ## ## ## ##","+237 ## ## ## ##"],CN:["+86 ## #### ####","+86 ### #### ####","+86 ### ### ####","+86 ########"],CO:["+57 ### #######","+57 # ### #######"],CR:["+506 #### ####","+506 ###-###-####"],CU:["+53 # #######","+53 ### #######"],CV:"+238 ### ## ##",CW:["+599 # ### ####","+599 ### ####"],CX:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CY:"+357 ## ######",CZ:"+420 ### ### ###",DE:["+49 ## ######","+49 #### #######","+49 ### ##########","+49 ### # ######","+49 ### # ####","+49 ### #### ####","+49 ########"],DJ:"+253 ## ## ## ##",DK:"+45 ## ## ## ##",DM:"+1 ###-###-####",DO:"+1 ###-###-####",DZ:["+213 ## ## ## ##","+213 ### ## ## ##","+213 ## ### ## ##"],EC:["+593 #-###-####","+593 ## ### ####","+593 #### ### ####"],EE:["+372 ### ####","+372 #### ####","+372 ## ## ####"],EG:["+20 # ########","+20 ## ########","+20 ### ### ####"],EH:["+212 # ## ## ## ##","+212 ##-#######"],ER:"+291 # ### ###",ES:["+34 ### ## ## ##","+34 ### ### ###"],ET:"+251 ## ### ####",FI:["+358 ## #######","+358 ### ######"],FJ:["+679 ### ####","+679 #### ### ####"],FK:"+500 #####",FM:"+691 ### ####",FO:"+298 ######",FR:["+33 # ## ## ## ##","+33 ### ## ## ##"],GA:"+241 ## ## ## ##",GB:["+44 ### ### ####","+44 #### ######","+44 ## #### ####"],GD:"+1 ###-###-####",GE:["+995 ## ### ## ##","+995 ### ## ## ##","+995 ### ### ###"],GF:"+594 ### ## ## ##",GG:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],GH:["+233 ## ### ####","+233 ### #####"],GI:["+350 ### #####","+350 ########"],GL:"+299 ## ## ##",GM:"+220 ### ####",GN:["+224 ## ## ## ##","+224 ### ## ## ##"],GP:"+590 ### ## ## ##",GQ:["+240 ### ### ###","+240 ### ######"],GR:["+30 ## #### ####","+30 ### ### ####"],GT:["+502 #### ####","+502 #### ### ####"],GU:"+1 ###-###-####",GW:["+245 ### ### ###","+245 ### ####"],GY:"+592 ### ####",HK:["+852 #### ####","+852 ### ### ###","+852 ### ## ### ###"],HN:["+504 ####-####","+504 ###########"],HR:["+385 # #### ###","+385 ## ### ####","+385 ### ### ###","+385 ## ## ###","+385 ## ### ###"],HT:"+509 ## ## ####",HU:["+36 # ### ####","+36 ## ### ####","+36 ## ### ###"],ID:["+62 ## #######","+62 ###-###-###","+62 ### #######","+62 ### # ### ###","+62 ### ### ####"],IE:["+353 ## #####","+353 ## ### ####","+353 #### ### ###","+353 ### ### ###"],IL:["+972 #-###-####","+972 ##-###-####","+972 #-###-###-###"],IM:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],IN:["+91 ##### #####","+91 #### ## ####","+91 #### ### ### ###","+91 #### ### ####"],IO:"+246 ### ####",IQ:["+964 # ### ####","+964 ### ### ####"],IR:["+98 ## #### ####","+98 ### ### ####"],IS:"+354 ### ####",IT:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],JE:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],JM:"+1 ###-###-####",JO:["+962 # ### ####","+962 # #### ####","+962 ### #####","+962 ## #######"],JP:["+81 #-####-####","+81 ##-####-####","+81 ###-###-###","+81 ##-###-####"],KE:["+254 ## #######","+254 ### ######","+254 ### ### ###"],KG:["+996 ### ### ###","+996 ### ### # ##"],KH:["+855 ## ### ###","+855 #### ### ###"],KI:["+686 #####","+686 ########"],KM:"+269 ### ## ##",KN:"+1 ###-###-####",KP:["+850 # ### ####","+850 ### ### ####"],KR:["+82 #-###-####","+82 ##-####-####","+82 ##-###-####"],KW:["+965 #### ####","+965 ### #####","+965 #### ###"],KY:"+1 ###-###-####",KZ:["+7 ##### # ## ##","+7 ### ### ####","+7 ### ###-##-##"],LA:["+856 ## ### ###","+856 ## ## ### ###"],LB:["+961 # ### ###","+961 ## ### ###"],LC:"+1 ###-###-####",LI:["+423 ### ## ##","+423 ### ### ###"],LK:["+94 ### ### ###","+94 ## ### ####"],LR:["+231 ## ### ###","+231 ## ### ####"],LS:"+266 #### ####",LT:["+370 ### #####","+370 ### ## ###"],LU:["+352 ## ## ## ##","+352 ### ### ###","+352 ### ## ###"],LV:"+371 ## ### ###",LY:"+218 ##-#######",MA:["+212 # ## ## ## ##","+212 ##-#######"],MC:["+377 ## ## ## ##","+377 # ## ## ## ##"],MD:["+373 ## ### ###","+373 ### ## ###","+373 ### #####"],ME:"+382 ## ### ###",MF:"+590 ### ## ## ##",MG:"+261 ## ## ### ##",MH:"+692 ###-####",MK:["+389 # ### ####","+389 ## ### ###","+389 ### # ## ##"],ML:"+223 ## ## ## ##",MM:["+95 # ### ###","+95 # ### ####","+95 ### ### ####"],MN:"+976 #### ####",MO:["+853 #### ####","+853 #### ###"],MP:"+1 ###-###-####",MQ:"+596 ### ## ## ##",MR:"+222 ## ## ## ##",MS:"+1 ###-###-####",MT:"+356 #### ####",MU:["+230 #### ####","+230 ### ####"],MV:["+960 ###-####","+960 ### ### ####"],MW:["+265 # ### ###","+265 ### ## ## ##"],MX:"+52 ### ### ####",MY:["+60 #-#### ####","+60 ##-### ####","+60 #-###-##-####","+60 ###-### ####"],MZ:["+258 ## ### ###","+258 ## ### ####","+258 ### ### ###"],NA:["+264 ## ### ###","+264 ## ### ####","+264 ### ### ###"],NC:"+687 ##.##.##",NE:["+227 ## ## ## ##","+227 ## ### ###"],NF:["+672 ## ####","+672 # #####"],NG:["+234 #### ## ####","+234 ### ### ####","+234 ### #### ####"],NI:"+505 #### ####",NL:["+31 ## ### ####","+31 # ########","+31 ### ####","+31 ## #######"],NO:["+47 ## ## ## ##","+47 ### ## ###"],NP:["+977 #-#######","+977 ###-#######","+977 ###########"],NR:"+674 ### ####",NU:["+683 ####","+683 ### ####"],NZ:["+64 # ### ####","+64 ## ### ####","+64 ### ### ###"],OM:["+968 ## ######","+968 #### ####","+968 ### #####"],PA:["+507 ###-####","+507 ####-####"],PE:["+51 # #######","+51 ### ### ###","+51 ### #####"],PF:["+689 ## ## ## ##","+689 ### ## ## ##"],PG:["+675 ### ####","+675 #### ####"],PH:["+63 # #### ####","+63 ### ### ####","+63 #### # ### ####"],PK:["+92 ## ########","+92 ### #######","+92 ### ### ##","+92 #### #####"],PL:["+48 ## ### ## ##","+48 ### ### ###"],PM:["+508 ## ## ##","+508 ### ## ## ##"],PR:"+1 ###-###-####",PS:["+970 # ### ####","+970 ### ### ###","+970 #### ### ###"],PT:["+351 ## ### ####","+351 ### ### ###"],PW:"+680 ### ####",PY:["+595 ## ### ####","+595 ### ######","+595 #### ### ####"],QA:["+974 #### ####","+974 ### ####"],RE:"+262 ### ## ## ##",RO:["+40 ## ### ####","+40 ### ### ###"],RS:["+381 ## ######","+381 ## #######","+381 ### #####"],RU:"+7 ### ###-##-##",RW:"+250 ### ### ###",SA:["+966 ## ### ####","+966 ### ### ####","+966 #### #####"],SB:["+677 #####","+677 ## #####"],SC:["+248 # ### ###","+248 #######"],SD:"+249 ## ### ####",SE:["+46 # ## ## ##","+46 ## ### ## ##","+46 ## ## ## ##","+46 ### ## ## ###"],SG:["+65 #### ####","+65 #### ### ####"],SH:"+290 #####",SI:["+386 # ### ## ##","+386 ## ### ###","+386 ## ######","+386 ### #####"],SJ:["+47 ## ## ## ##","+47 ### ## ###"],SK:["+421 #/### ### ##","+421 ### ### ###","+421 #######"],SL:"+232 ## ######",SM:["+378 #### ######","+378 ## ## ## ##"],SN:["+221 ## ### ## ##","+221 ### ## ## ##"],SO:["+252 # ######","+252 # #######"],SR:["+597 ###-###","+597 ###-####","+597 ##-##-##"],SS:"+211 ### ### ###",ST:"+239 ### ####",SV:["+503 #### ####","+503 ### ####"],SX:"+1 ###-###-####",SY:["+963 ## ### ####","+963 ### ### ###"],SZ:["+268 #### ####","+268 ##### ####"],TA:"+290 ####",TC:"+1 ###-###-####",TD:"+235 ## ## ## ##",TG:"+228 ## ## ## ##",TH:["+66 # ### ####","+66 ## ### ####","+66 #### ### ###"],TJ:["+992 ### ## ####","+992 ## ### ####"],TK:"+690 ####",TL:["+670 ### ####","+670 #### ####"],TM:["+993 ## ##-##-##","+993 ## ######"],TN:"+216 ## ### ###",TO:["+676 ##-###","+676 ### ####","+676 #### ###"],TR:["+90 ### ### ## ##","+90 ### ### ####"],TT:"+1 ###-###-####",TV:["+688 ## ###","+688 ## ####"],TW:["+886 # #### ####","+886 ### ### ###","+886 ## ### ####","+886 ## #### ####"],TZ:["+255 ## ### ####","+255 ### ### ###","+255 ### ## ####"],UA:["+380 #### #####","+380 ## ### ####","+380 ### ### ###"],UG:["+256 ## #######","+256 ### ######"],US:"+1 ###-###-####",UY:["+598 #### ####","+598 ## ### ###","+598 ### ####"],UZ:"+998 ## ### ## ##",VA:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],VC:"+1 ###-###-####",VE:"+58 ###-#######",VG:"+1 ###-###-####",VI:"+1 ###-###-####",VN:["+84 ### #### ###","+84 ### ### ###","+84 #### ######","+84 ## ### ## ##"],VU:["+678 #####","+678 ### ####"],WF:["+681 ## ## ##","+681 ### ## ## ##"],WS:["+685 #####","+685 ## #####","+685 ### ###"],XK:["+383 ## ### ###","+383 ### #####"],YE:["+967 # ### ###","+967 ### ### ###"],YT:"+262 ### ## ## ##",ZA:["+27 ## ### ####","+27 ### ### ###"],ZM:["+260 ### ### ###","+260 ## #######","+260 #########"],ZW:["+263 ## #####","+263 ## ### ####","+263 ### ####","+263 #### ######"]},lA=/^[a-z]{2}$/i,ol=t=>{if(!lA.test(t)){const e=typeof t;throw new TypeError(`cc argument must be an ISO 3166-1 alpha-2 string, but got '${e==="string"?t:e}' instead.`)}const n=[...t.toUpperCase()].map(e=>(e.codePointAt(0)??0)+127397);return String.fromCodePoint(...n)},Ka=Object.entries(sA),B1=t=>t.split(/ (.*)/s);function Mo(t){let n="",e="";if(Array.isArray(t)){const i=[];for(const u of t){const[r,s]=B1(u);n||(n=r),i.push(s)}e=i}else{const[i,u]=B1(t);n=i,e=u}return[n,e]}Ka.map(([t,n])=>({id:t,mask:n}));Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e);return t[n]={code:i,mask:u},t},{});Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i}});Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e);return t[n]={code:i,mask:u,flag:ol(n)},t},{});Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i,flag:ol(t)}});const uA=t=>{const n=new Intl.DisplayNames([t],{type:"region"});return Ka.reduce((e,[i,u])=>{const[r,s]=Mo(u),l=n.of(i)??"";return e[i]={code:r,mask:s,name:l,flag:ol(i)},e},{})},cA=t=>{const n=new Intl.DisplayNames([t],{type:"region"});return Ka.map(([e,i])=>{const[u,r]=Mo(i);return{id:e,code:u,mask:r,name:n.of(e)??"",flag:ol(e)}})},dA=Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e),r=new Intl.DisplayNames(["en"],{type:"region"});return t[n]={code:i,mask:u,name:r.of(n)??"",flag:ol(n)},t},{}),fA=Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i,name:new Intl.DisplayNames(["en"],{type:"region"}).of(t)??"",flag:ol(t)}});function hA(t){return Array.isArray(t)?t:[t]}function ey(t){return(t.match(/#/g)||[]).length}function j1(t){return t.replace(/^\+\d+\s?/,"")}function pA(t,n){if(t.length===1)return t[0];const e=t.map(r=>({mask:r,count:ey(r)})),i=e.filter(r=>r.count>=n).sort((r,s)=>r.count-s.count);if(i.length>0)return i[0].mask;const u=e.sort((r,s)=>s.count-r.count)[0];return u?u.mask:t[0]}function Tf(t,n){let e="";const i=[];let u=0;const r=n.length,s=t.length;for(let l=0;l<s;l++){const o=t[l];if(o==="#"){if(!(u<r))break;e+=n[u],i.push(u),u++}else{const a=t.indexOf("#",l+1)!==-1&&u<r;(e.length>0||a)&&(e+=o,i.push(-1))}}return{display:e,map:i}}const Pf="@desource/phone-mask:geo",mA=1440*6e4,gA=1500,vA="https://ipapi.co/json/",bA=[" ","-","(",")"],yA=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Tab"],wA=/[^\d\s\-()]/,xA={id:"",code:"",mask:"",flag:"",name:""};function _A(t){const n=h.computed(()=>t.value.toLowerCase().startsWith("en")),e=h.computed(()=>n.value?fA:cA(t.value)),i=h.computed(()=>n.value?dA:uA(t.value)),u=h.ref(e.value[0]?.id||""),r=h.ref(!1),s=h.ref(!0),l=h.ref(""),o=h.ref(0),a=h.computed(()=>{const F=u.value,H=i.value[F];return H?{id:F,...H}:e.value[0]||xA}),c=F=>{const H=F.toUpperCase();return!!i.value[H]},p=h.computed(()=>{const F=l.value.trim().toUpperCase();if(!F)return e.value;const H=F.replace(/\D/g,""),I=H.length>0;return e.value.map(D=>{const z=D.name.toUpperCase(),$=D.id.toUpperCase(),O=D.code.replace(/\D/g,"");let N=0;return z.startsWith(F)?N=1e3:z.includes(F)&&(N=500),D.code.startsWith(F)?N+=100:D.code.includes(F)&&(N+=50),$===F?N+=200:$.startsWith(F)&&(N+=150),I&&O.startsWith(H)?N+=80:I&&O.includes(H)&&(N+=40),{country:D,score:N}}).filter(({score:D})=>D>0).sort((D,z)=>z.score!==D.score?z.score-D.score:D.country.name.localeCompare(z.country.name)).map(({country:D})=>D)}),f=F=>{u.value=F,v()},d=async F=>{r.value=!r.value,r.value&&(await h.nextTick(),F.value?.focus({preventScroll:!0}),o.value=0)},v=()=>{r.value=!1},g=F=>{p.value.length!==0&&(o.value=Math.min(p.value.length-1,o.value+1),F?.())},m=F=>{p.value.length!==0&&(o.value=Math.max(0,o.value-1),F?.())},y=()=>{const F=p.value[o.value];F&&f(F.id)},b=()=>{try{const F=navigator.language||"";try{const I=new Intl.Locale(F);if(I.region&&c(I.region))return I.region.toUpperCase()}catch{}const H=F.split(/[-_]/);if(H.length>1&&c(H[1]))return H[1].toUpperCase()}catch{}return null},w=async()=>{try{const I=localStorage.getItem(Pf);if(I){const D=JSON.parse(I),z=Date.now()-D.ts>mA;if(!z&&D.country_code&&c(D.country_code))return D.country_code.toUpperCase();z&&localStorage.removeItem(Pf)}}catch{}const F=new AbortController,H=setTimeout(()=>F.abort(),gA);try{const I=await fetch(vA,{signal:F.signal,headers:{Accept:"application/json"}});if(!I.ok)return null;const D=await I.json(),z=(D.country||D.country_code||D.countryCode||D.country_code2||"").toString().toUpperCase();if(z&&c(z)){try{localStorage.setItem(Pf,JSON.stringify({country_code:z,ts:Date.now()}))}catch{}return z}}catch{}finally{clearTimeout(H)}return null},A=(F,H)=>{const I=u.value;u.value=F,I!==u.value&&H&&h.nextTick(H)};return{countries:e,selectedId:u,selected:a,hasCountry:c,hasDropdown:s,dropdownOpened:r,search:l,focusedIndex:o,filteredCountries:p,selectCountry:f,toggleDropdown:d,closeDropdown:v,focusNextOption:g,focusPrevOption:m,chooseFocusedOption:y,initCountry:async(F,H,I)=>{if(s.value=!F&&e.value.length>1,F&&c(F)){A(F.toUpperCase(),I);return}if(!H)return;const D=await w();if(D){A(D,I);return}const z=b();if(z){A(z,I);return}}}}function SA(t){const n=hA(t.mask),e=n.map(r=>ey(j1(r))),i=Math.max(...e),u=r=>{const s=pA(n,r);return j1(s)};return{formatDisplay:r=>{const s=u(r.length);return Tf(s,r).display},getMaxDigits:()=>i,getPlaceholder:()=>u(0),getCaretPosition:r=>{const s=u(r),{display:l,map:o}=Tf(s,"0".repeat(r));for(let a=0;a<o.length;a++)if(o[a]===r)return a;if(r>=o.length)return l.length;for(let a=0;a<o.length;a++)if(o[a]>r)return a;return l.length},getDigitRange:(r,s,l)=>{const o=u(r.length),{map:a}=Tf(o,r);let c=1/0,p=-1/0;for(let f=s;f<l&&f<a.length;f++){const d=a[f];d!==void 0&&d>=0&&(c=Math.min(c,d),p=Math.max(p,d))}return c===1/0?null:[c,p+1]},isComplete:r=>e.includes(r.length)}}function kA(t,n){if(t)try{t.setSelectionRange(n,n)}catch{}}function Qu(t,n){const e=t.replace(/\D/g,"");return n?e.slice(0,n):e}function V1(t){return t?[t.selectionStart??0,t.selectionEnd??0]:[0,0]}function CA(t,n){const e=h.ref(""),i=h.ref(""),u=h.ref(null),r=h.ref(!1),s=h.computed(()=>SA(t.value)),l=h.computed(()=>s.value.getPlaceholder()),o=h.computed(()=>s.value.isComplete(e.value)),a=h.computed(()=>e.value.length===0),c=h.computed(()=>s.value.getMaxDigits()),p=h.computed(()=>r.value&&!a.value&&!o.value),f=h.computed(()=>i.value?`${t.value.code} ${i.value}`:""),d=h.computed(()=>e.value?`${t.value.code}${e.value}`:""),v=()=>{i.value=s.value.formatDisplay(e.value)},g=I=>{const D=s.value.getCaretPosition(I);kA(n.value,D)},m=(I,D)=>{I>=D||(e.value=e.value.slice(0,I)+e.value.slice(D))},y=I=>{const D=I.target;if(!D)return;const z=I.data;I.inputType!=="insertText"||!z||(wA.test(z)||z===" "&&D.value.endsWith(" "))&&I.preventDefault()},b=I=>{const D=I.target;if(!D)return;const z=Qu(D.value,c.value);r.value=!1,u.value&&clearTimeout(u.value),e.value=z,v(),z.length>0&&(u.value=setTimeout(()=>{r.value=!0},500)),h.nextTick(()=>{g(e.value.length)})},w=I=>{const D=n.value??I.target;if(!D||I.ctrlKey||I.metaKey||I.altKey||yA.includes(I.key))return;const[z,$]=V1(D);if(I.key==="Backspace"){if(I.preventDefault(),z!==$){const O=s.value.getDigitRange(e.value,z,$);if(O){const[N,E]=O;m(N,E),v(),h.nextTick(()=>g(N))}return}if(z>0){const O=i.value;let N=z-1;for(;N>=0&&bA.includes(O[N]);)N--;if(N>=0){const E=s.value.getDigitRange(e.value,N,N+1);if(E){const[C]=E;m(C,C+1),v(),h.nextTick(()=>g(C))}}}return}if(I.key==="Delete"){if(I.preventDefault(),z!==$){const O=s.value.getDigitRange(e.value,z,$);if(O){const[N,E]=O;m(N,E),v(),h.nextTick(()=>g(N))}return}if(z<i.value.length){const O=s.value.getDigitRange(e.value,z,z+1);if(O){const[N]=O;m(N,N+1),v(),h.nextTick(()=>g(N))}}return}if(/^[0-9]$/.test(I.key)){e.value.length>=c.value&&I.preventDefault();return}I.key.length===1&&I.preventDefault()},A=I=>{r.value=!1,u.value&&clearTimeout(u.value),w(I),u.value&&clearTimeout(u.value),u.value=setTimeout(()=>{!o.value&&!a.value&&(r.value=!0)},300)},T=I=>{I.preventDefault();const D=I.clipboardData?.getData("text")||"",z=Qu(D,c.value);if(z.length===0)return;const $=n.value;if(!$)return;const[O,N]=V1($);if(O!==N){const S=s.value.getDigitRange(e.value,O,N);if(S){const[k,M]=S,j=e.value.slice(0,k),P=e.value.slice(M);e.value=Qu(j+z+P,c.value),v(),h.nextTick(()=>g(k+z.length));return}}const E=s.value.getDigitRange(e.value,O,O),C=E?E[0]:e.value.length,x=e.value.slice(0,C),_=e.value.slice(C);e.value=Qu(x+z+_,c.value),v(),u.value&&clearTimeout(u.value),u.value=setTimeout(()=>{!o.value&&!a.value&&(r.value=!0)},300),h.nextTick(()=>g(C+z.length))},F=()=>{u.value&&clearTimeout(u.value)},H=()=>{e.value="",i.value="",r.value=!1,u.value&&(clearTimeout(u.value),u.value=null)};return h.watch(t,()=>{e.value.length>c.value&&(e.value=e.value.slice(0,c.value)),v()}),v(),{digits:e,displayValue:i,displayPlaceholder:l,isComplete:o,isEmpty:a,shouldShowWarn:p,fullFormatted:f,full:d,handleBeforeInput:y,handleInput:b,handleKeydown:A,handlePaste:T,handleFocus:F,updateDisplayFromDigits:v,clear:H}}function AA(){const t=h.ref(!1),n=h.ref(!1);let e=null;const i=()=>{e&&(clearTimeout(e),e=null)};return{copied:t,isCopying:n,copy:async s=>{if(n.value)return!1;const l=s.trim();if(!l)return!1;n.value=!0;try{return await navigator.clipboard.writeText(l),t.value=!0,i(),e=setTimeout(()=>{t.value=!1,e=null},1800),!0}catch(o){return console.warn("Copy failed",o),!1}finally{n.value=!1}},onUnmount:()=>{i()}}}const NA={class:"pi-selector"},EA=["disabled","tabindex","aria-label","aria-expanded","aria-haspopup"],MA=["aria-label"],TA={class:"pi-code"},PA={class:"pi-input-wrap"},IA=["placeholder","value","disabled","readonly","aria-invalid"],RA={class:"pi-actions",role:"toolbar","aria-label":"Phone input actions"},DA=["aria-label","title"],LA={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},OA={key:2,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},FA=["aria-label","title"],BA={key:0,width:"11",height:"11",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},jA={class:"pi-search-wrap"},VA=["placeholder"],zA=["aria-activedescendant"],$A=["id","aria-selected","title","onClick","onMouseenter"],UA=["aria-label"],HA={class:"pi-opt-name"},qA={class:"pi-opt-code"},WA={key:0,class:"pi-empty"},GA=h.defineComponent({__name:"PhoneInput",props:h.mergeModels({country:{},detect:{type:Boolean,default:!0},locale:{},size:{default:"normal"},theme:{default:"auto"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},showCopy:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},withValidity:{type:Boolean,default:!0},searchPlaceholder:{default:"Search country or code..."},noResultsText:{default:"No countries found"},clearButtonLabel:{default:"Clear phone number"},dropdownClass:{},disableDefaultStyles:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:h.mergeModels(["change","country-change","validation-change","focus","blur","copy","clear"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const i=t,u=h.useSlots(),r=h.useModel(t,"modelValue"),s=e,l=h.useTemplateRef("rootRef"),o=h.useTemplateRef("telRef"),a=h.useTemplateRef("searchRef"),c=h.useTemplateRef("liveRef"),p=h.useTemplateRef("dropdownRef"),f=h.computed(()=>i.locale?i.locale:typeof navigator<"u"&&navigator.language||"en"),d=h.shallowRef({}),v=_A(f),{search:g,filteredCountries:m,focusedIndex:y,selected:b,dropdownOpened:w,hasDropdown:A,focusNextOption:T,focusPrevOption:F,chooseFocusedOption:H,closeDropdown:I}=v,D=CA(b,o),{digits:z,displayValue:$,displayPlaceholder:O,isComplete:N,isEmpty:E,shouldShowWarn:C,full:x,fullFormatted:_}=D,{copied:S,copy:k,onUnmount:M}=AA(),j=h.computed(()=>i.disabled||i.readonly),P=h.computed(()=>i.showCopy&&!E.value&&!i.disabled),U=h.computed(()=>i.showClear&&!E.value&&!j.value),q=h.computed(()=>S.value?"Copied":`Copy ${b.value.code} ${$.value}`),X=h.computed(()=>S.value?"Copied":"Copy phone number"),V=h.computed(()=>S.value?"Phone number copied to clipboard":""),K=h.computed(()=>`size-${i.size}`),L=h.computed(()=>i.theme!=="auto"?`theme-${i.theme}`:typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"theme-dark":"theme-light"),R=h.computed(()=>["phone-input",K.value,L.value,{"is-disabled":i.disabled,"is-readonly":i.readonly,"is-unstyled":i.disableDefaultStyles,"is-incomplete":i.withValidity&&C.value,"is-complete":i.withValidity&&N.value}]),G=h.computed(()=>({"--pi-actions-count":+P.value+ +U.value+(u["actions-before"]?1:0)})),Q=()=>{r.value!==z.value&&(r.value=z.value,s("change",{full:x.value,fullFormatted:_.value,digits:z.value}))},ae=async Me=>{j.value||(D.handleInput(Me),await h.nextTick(),Q())},te=async Me=>{j.value||(D.handleKeydown(Me),await h.nextTick(),Q())},ne=async Me=>{j.value||(D.handlePaste(Me),await h.nextTick(),Q())},J=Me=>{D.handleFocus(),w.value=!1,s("focus",Me)},he=Me=>s("blur",Me),re=async Me=>{v.selectCountry(Me),s("country-change",b.value),await h.nextTick(),o.value?.focus()},de=async()=>{const Me=_.value;await k(Me)&&s("copy",Me)},le=async()=>{D.clear(),r.value="",s("change",{full:"",fullFormatted:"",digits:""}),s("clear"),await h.nextTick(),o.value?.focus()},_e=Me=>{if(Me?.type==="scroll"&&Me.target&&p.value?.contains(Me.target))return;const Be=l.value;if(!Be)return;const ze=Be.getBoundingClientRect();d.value={top:`${ze.bottom+window.scrollY+8}px`,left:`${ze.left+window.scrollX}px`,width:`${ze.width}px`}},xe=()=>{window.removeEventListener("scroll",_e,!0),window.removeEventListener("click",Oe,!0),window.removeEventListener("resize",_e)},Ce=async()=>{j.value||!A.value||(await v.toggleDropdown(a),w.value?(_e(),window.addEventListener("scroll",_e,!0),window.addEventListener("click",Oe,!0),window.addEventListener("resize",_e)):xe())},Ne=async()=>{await h.nextTick();const Me=p.value?.lastElementChild;if(!Me)return;const Be=Me.children[y.value];if(!Be)return;const ze=Me.getBoundingClientRect(),Ue=Be.getBoundingClientRect();let Ge=0;if(Ue.top<ze.top)Ge=Me.scrollTop-(ze.top-Ue.top);else if(Ue.bottom>ze.bottom)Ge=Me.scrollTop+(Ue.bottom-ze.bottom);else return;Me.scrollTo({top:Ge,behavior:"smooth"})},Oe=Me=>{const Be=p.value,ze=l.value?.firstChild;if(!(Be||ze))return;const Ue=Me.target;!Ue||Be?.contains(Ue)||ze?.contains(Ue)||(w.value=!1)};return h.watch(r,Me=>{if(!Me){E.value||D.clear();return}const Be=z.value;if(Me!==Be){const ze=Me.replace(/\D/g,"");ze!==Be&&(z.value=ze,D.updateDisplayFromDigits())}},{immediate:!0}),h.watch([()=>i.country,()=>i.detect],async([Me,Be])=>{await h.nextTick(),await v.initCountry(Me,Be,()=>s("country-change",b.value))},{immediate:!0}),h.watch(V,Me=>{c.value&&Me&&(c.value.textContent=Me)},{flush:"post"}),h.watch(N,Me=>{s("validation-change",Me)},{flush:"post"}),h.onBeforeUnmount(()=>{xe(),M()}),n({focus:()=>o.value?.focus(),blur:()=>o.value?.blur(),clear:D.clear,selectCountry:v.selectCountry,getFullNumber:()=>x.value,getFullFormattedNumber:()=>_.value,getDigits:()=>z.value,isValid:()=>N.value,isComplete:()=>N.value}),(Me,Be)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"rootRef",ref:l,"aria-label":"Phone input with country selector",role:"group",class:h.normalizeClass(R.value),style:h.normalizeStyle(G.value)},[h.createElementVNode("div",NA,[h.createElementVNode("button",{type:"button",class:h.normalizeClass(["pi-selector-btn",{"no-dropdown":!h.unref(A)||t.readonly}]),disabled:t.disabled,tabindex:j.value||!h.unref(A)?-1:void 0,"aria-label":`Selected country: ${h.unref(b).name}`,"aria-expanded":h.unref(w),"aria-haspopup":h.unref(A)?"listbox":void 0,onClick:Ce},[h.createElementVNode("span",{class:"pi-flag",role:"img","aria-label":`${h.unref(b).name} flag`},[h.renderSlot(Me.$slots,"flag",{country:h.unref(b)},()=>[h.createTextVNode(h.toDisplayString(h.unref(b).flag),1)],!0)],8,MA),h.createElementVNode("span",TA,h.toDisplayString(h.unref(b).code),1),!j.value&&h.unref(A)?(h.openBlock(),h.createElementBlock("svg",{key:0,class:h.normalizeClass(["pi-chevron",{"is-open":h.unref(w)}]),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true"},[...Be[6]||(Be[6]=[h.createElementVNode("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)):h.createCommentVNode("",!0)],10,EA)]),h.createElementVNode("div",PA,[h.createElementVNode("input",{ref_key:"telRef",ref:o,type:"tel",inputmode:"tel",autocomplete:"tel-national",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"pi-input",placeholder:h.unref(O),value:h.unref($),disabled:t.disabled,readonly:t.readonly,"aria-invalid":h.unref(C),onBeforeinput:Be[0]||(Be[0]=(...ze)=>h.unref(D).handleBeforeInput&&h.unref(D).handleBeforeInput(...ze)),onInput:ae,onKeydown:te,onPaste:ne,onFocus:J,onBlur:he},null,40,IA),h.createElementVNode("div",RA,[h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[h.renderSlot(Me.$slots,"actions-before",{},void 0,!0)]),_:3}),h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[P.value?(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:h.normalizeClass(["pi-btn",{"is-copied":h.unref(S)}]),"aria-label":q.value,title:X.value,onClick:de},[u["copy-svg"]?h.renderSlot(Me.$slots,"copy-svg",{key:0,copied:h.unref(S)},void 0,!0):h.unref(S)?(h.openBlock(),h.createElementBlock("svg",OA,[...Be[8]||(Be[8]=[h.createElementVNode("path",{d:"M6.5 11.5L3 8L4.06 6.94L6.5 9.38L11.94 3.94L13 5L6.5 11.5Z",fill:"currentColor"},null,-1)])])):(h.openBlock(),h.createElementBlock("svg",LA,[...Be[7]||(Be[7]=[h.createElementVNode("path",{d:"M13.5 5.5V13.5H5.5V5.5H13.5ZM13.5 4H5.5C4.67 4 4 4.67 4 5.5V13.5C4 14.33 4.67 15 5.5 15H13.5C14.33 15 15 14.33 15 13.5V5.5C15 4.67 14.33 4 13.5 4ZM10.5 1H2.5V11H4V2.5H10.5V1Z",fill:"currentColor"},null,-1)])]))],10,DA)):h.createCommentVNode("",!0)]),_:3}),h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[U.value?(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:"pi-btn","aria-label":t.clearButtonLabel,title:t.clearButtonLabel,onClick:le},[u["clear-svg"]?h.renderSlot(Me.$slots,"clear-svg",{key:1},void 0,!0):(h.openBlock(),h.createElementBlock("svg",BA,[...Be[9]||(Be[9]=[h.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"currentColor"},null,-1)])]))],8,FA)):h.createCommentVNode("",!0)]),_:3})])]),(h.openBlock(),h.createBlock(h.Teleport,{to:"body"},[h.createVNode(h.Transition,{name:"dropdown"},{default:h.withCtx(()=>[h.unref(w)?(h.openBlock(),h.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:p,class:h.normalizeClass(["phone-dropdown",[t.dropdownClass,L.value]]),role:"dialog","aria-modal":"false","aria-label":"Select country",style:h.normalizeStyle(d.value)},[h.createElementVNode("div",jA,[h.withDirectives(h.createElementVNode("input",{ref_key:"searchRef",ref:a,"onUpdate:modelValue":Be[1]||(Be[1]=ze=>h.isRef(g)?g.value=ze:null),type:"search",class:"pi-search","aria-label":"Search countries",placeholder:t.searchPlaceholder,onKeydown:[Be[2]||(Be[2]=h.withKeys(h.withModifiers(ze=>h.unref(T)(Ne),["prevent"]),["down"])),Be[3]||(Be[3]=h.withKeys(h.withModifiers(ze=>h.unref(F)(Ne),["prevent"]),["up"])),Be[4]||(Be[4]=h.withKeys(h.withModifiers((...ze)=>h.unref(H)&&h.unref(H)(...ze),["prevent"]),["enter"])),Be[5]||(Be[5]=h.withKeys((...ze)=>h.unref(I)&&h.unref(I)(...ze),["escape"]))]},null,40,VA),[[h.vModelText,h.unref(g)]])]),h.createElementVNode("ul",{class:"pi-options",role:"listbox","aria-activedescendant":`option-${h.unref(y)}`,tabindex:"-1"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(m),(ze,Ue)=>(h.openBlock(),h.createElementBlock("li",{id:`option-${Ue}`,key:ze.id,role:"option",class:h.normalizeClass(["pi-option",{"is-focused":Ue===h.unref(y),"is-selected":ze.id===h.unref(b).id}]),"aria-selected":ze.id===h.unref(b).id,title:ze.name,onClick:Ge=>re(ze.id),onMouseenter:Ge=>y.value=Ue},[h.createElementVNode("span",{class:"pi-flag",role:"img","aria-label":`${ze.name} flag`},[h.renderSlot(Me.$slots,"flag",{country:ze},()=>[h.createTextVNode(h.toDisplayString(ze.flag),1)],!0)],8,UA),h.createElementVNode("span",HA,h.toDisplayString(ze.name),1),h.createElementVNode("span",qA,h.toDisplayString(ze.code),1)],42,$A))),128)),h.unref(m).length===0?(h.openBlock(),h.createElementBlock("li",WA,h.toDisplayString(t.noResultsText),1)):h.createCommentVNode("",!0)],8,zA)],6)):h.createCommentVNode("",!0)]),_:3})])),h.createElementVNode("div",{ref_key:"liveRef",ref:c,class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},null,512)],6))}}),KA=(t,n)=>{const e=t.__vccOpts||t;for(const[i,u]of n)e[i]=u;return e},YA=KA(GA,[["__scopeId","data-v-95467f81"]]),XA={AC:"+247 #####",AD:["+376 ### ###","+376 #### ####"],AE:["+971 # ### ####","+971 ## ### ####","+971 ### ######","+971 ### # #####"],AF:"+93 ## ### ####",AG:"+1 ###-###-####",AI:"+1 ###-###-####",AL:["+355 ## ### ###","+355 ## ### ####","+355 ### ####","+355 ### ###","+355 ### #####"],AM:["+374 ## ######","+374 ### ## ###"],AO:"+244 ### ### ###",AR:["+54 ## ####-####","+54 # ## ####-####","+54 ###-###-####"],AS:"+1 ###-###-####",AT:["+43 # #########","+43 ### ######"],AU:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###","+61 ## ### ##"],AW:"+297 ### ####",AX:["+358 ## #######","+358 ### ######"],AZ:["+994 ## ### ## ##","+994 ### ## ## ##"],BA:["+387 ## ###-###","+387 ## ### ###"],BB:"+1 ###-###-####",BD:["+880 #-#######","+880 ####-######","+880 ###-#######"],BE:["+32 ## ## ## ##","+32 ### ## ## ##","+32 ### ## ###"],BF:"+226 ## ## ## ##",BG:["+359 # ### ###","+359 ## ### ###","+359 ### ## ###"],BH:"+973 #### ####",BI:"+257 ## ## ## ##",BJ:["+229 ## ## ## ## ##","+229 ## ## ## ##"],BL:"+590 ### ## ## ##",BM:"+1 ###-###-####",BN:"+673 ### ####",BO:["+591 # #######","+591 ########","+591 ### ## ####"],BQ:"+599 ### ####",BR:["+55 ## ####-####","+55 ## #####-####","+55 ### ## ####","+55 ####-####"],BS:"+1 ###-###-####",BT:["+975 # ### ###","+975 ## ## ## ##"],BW:["+267 ### ####","+267 ## ### ###","+267 #### ### ###","+267 ## #####"],BY:["+375 ### ##-##-##","+375 ## ###-##-##","+375 ### ### ####"],BZ:["+501 ###-####","+501 #-###-####-###"],CA:"+1 ###-###-####",CC:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CD:["+243 ## #####","+243 ### ### ###"],CF:"+236 ## ## ## ##",CG:["+242 ## ### ####","+242 # #### ####"],CH:["+41 ## ### ## ##","+41 ### ### ###"],CI:["+225 ## ## # #####","+225 ## ## ## ####"],CK:"+682 ## ###",CL:["+56 ### ### ###","+56 # #### ####","+56 ### ### ####","+56 ## ### ####"],CM:["+237 # ## ## ## ##","+237 ## ## ## ##"],CN:["+86 ## #### ####","+86 ### #### ####","+86 ### ### ####","+86 ########"],CO:["+57 ### #######","+57 # ### #######"],CR:["+506 #### ####","+506 ###-###-####"],CU:["+53 # #######","+53 ### #######"],CV:"+238 ### ## ##",CW:["+599 # ### ####","+599 ### ####"],CX:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CY:"+357 ## ######",CZ:"+420 ### ### ###",DE:["+49 ## ######","+49 #### #######","+49 ### ##########","+49 ### # ######","+49 ### # ####","+49 ### #### ####","+49 ########"],DJ:"+253 ## ## ## ##",DK:"+45 ## ## ## ##",DM:"+1 ###-###-####",DO:"+1 ###-###-####",DZ:["+213 ## ## ## ##","+213 ### ## ## ##","+213 ## ### ## ##"],EC:["+593 #-###-####","+593 ## ### ####","+593 #### ### ####"],EE:["+372 ### ####","+372 #### ####","+372 ## ## ####"],EG:["+20 # ########","+20 ## ########","+20 ### ### ####"],EH:["+212 # ## ## ## ##","+212 ##-#######"],ER:"+291 # ### ###",ES:["+34 ### ## ## ##","+34 ### ### ###"],ET:"+251 ## ### ####",FI:["+358 ## #######","+358 ### ######"],FJ:["+679 ### ####","+679 #### ### ####"],FK:"+500 #####",FM:"+691 ### ####",FO:"+298 ######",FR:["+33 # ## ## ## ##","+33 ### ## ## ##"],GA:"+241 ## ## ## ##",GB:["+44 ### ### ####","+44 #### ######","+44 ## #### ####"],GD:"+1 ###-###-####",GE:["+995 ## ### ## ##","+995 ### ## ## ##","+995 ### ### ###"],GF:"+594 ### ## ## ##",GG:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],GH:["+233 ## ### ####","+233 ### #####"],GI:["+350 ### #####","+350 ########"],GL:"+299 ## ## ##",GM:"+220 ### ####",GN:["+224 ## ## ## ##","+224 ### ## ## ##"],GP:"+590 ### ## ## ##",GQ:["+240 ### ### ###","+240 ### ######"],GR:["+30 ## #### ####","+30 ### ### ####"],GT:["+502 #### ####","+502 #### ### ####"],GU:"+1 ###-###-####",GW:["+245 ### ### ###","+245 ### ####"],GY:"+592 ### ####",HK:["+852 #### ####","+852 ### ### ###","+852 ### ## ### ###"],HN:["+504 ####-####","+504 ###########"],HR:["+385 # #### ###","+385 ## ### ####","+385 ### ### ###","+385 ## ## ###","+385 ## ### ###"],HT:"+509 ## ## ####",HU:["+36 # ### ####","+36 ## ### ####","+36 ## ### ###"],ID:["+62 ## #######","+62 ###-###-###","+62 ### #######","+62 ### # ### ###","+62 ### ### ####"],IE:["+353 ## #####","+353 ## ### ####","+353 #### ### ###","+353 ### ### ###"],IL:["+972 #-###-####","+972 ##-###-####","+972 #-###-###-###"],IM:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],IN:["+91 ##### #####","+91 #### ## ####","+91 #### ### ### ###","+91 #### ### ####"],IO:"+246 ### ####",IQ:["+964 # ### ####","+964 ### ### ####"],IR:["+98 ## #### ####","+98 ### ### ####"],IS:"+354 ### ####",IT:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],JE:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],JM:"+1 ###-###-####",JO:["+962 # ### ####","+962 # #### ####","+962 ### #####","+962 ## #######"],JP:["+81 #-####-####","+81 ##-####-####","+81 ###-###-###","+81 ##-###-####"],KE:["+254 ## #######","+254 ### ######","+254 ### ### ###"],KG:["+996 ### ### ###","+996 ### ### # ##"],KH:["+855 ## ### ###","+855 #### ### ###"],KI:["+686 #####","+686 ########"],KM:"+269 ### ## ##",KN:"+1 ###-###-####",KP:["+850 # ### ####","+850 ### ### ####"],KR:["+82 #-###-####","+82 ##-####-####","+82 ##-###-####"],KW:["+965 #### ####","+965 ### #####","+965 #### ###"],KY:"+1 ###-###-####",KZ:["+7 ##### # ## ##","+7 ### ### ####","+7 ### ###-##-##"],LA:["+856 ## ### ###","+856 ## ## ### ###"],LB:["+961 # ### ###","+961 ## ### ###"],LC:"+1 ###-###-####",LI:["+423 ### ## ##","+423 ### ### ###"],LK:["+94 ### ### ###","+94 ## ### ####"],LR:["+231 ## ### ###","+231 ## ### ####"],LS:"+266 #### ####",LT:["+370 ### #####","+370 ### ## ###"],LU:["+352 ## ## ## ##","+352 ### ### ###","+352 ### ## ###"],LV:"+371 ## ### ###",LY:"+218 ##-#######",MA:["+212 # ## ## ## ##","+212 ##-#######"],MC:["+377 ## ## ## ##","+377 # ## ## ## ##"],MD:["+373 ## ### ###","+373 ### ## ###","+373 ### #####"],ME:"+382 ## ### ###",MF:"+590 ### ## ## ##",MG:"+261 ## ## ### ##",MH:"+692 ###-####",MK:["+389 # ### ####","+389 ## ### ###","+389 ### # ## ##"],ML:"+223 ## ## ## ##",MM:["+95 # ### ###","+95 # ### ####","+95 ### ### ####"],MN:"+976 #### ####",MO:["+853 #### ####","+853 #### ###"],MP:"+1 ###-###-####",MQ:"+596 ### ## ## ##",MR:"+222 ## ## ## ##",MS:"+1 ###-###-####",MT:"+356 #### ####",MU:["+230 #### ####","+230 ### ####"],MV:["+960 ###-####","+960 ### ### ####"],MW:["+265 # ### ###","+265 ### ## ## ##"],MX:"+52 ### ### ####",MY:["+60 #-#### ####","+60 ##-### ####","+60 #-###-##-####","+60 ###-### ####"],MZ:["+258 ## ### ###","+258 ## ### ####","+258 ### ### ###"],NA:["+264 ## ### ###","+264 ## ### ####","+264 ### ### ###"],NC:"+687 ##.##.##",NE:["+227 ## ## ## ##","+227 ## ### ###"],NF:["+672 ## ####","+672 # #####"],NG:["+234 #### ## ####","+234 ### ### ####","+234 ### #### ####"],NI:"+505 #### ####",NL:["+31 ## ### ####","+31 # ########","+31 ### ####","+31 ## #######"],NO:["+47 ## ## ## ##","+47 ### ## ###"],NP:["+977 #-#######","+977 ###-#######","+977 ###########"],NR:"+674 ### ####",NU:["+683 ####","+683 ### ####"],NZ:["+64 # ### ####","+64 ## ### ####","+64 ### ### ###"],OM:["+968 ## ######","+968 #### ####","+968 ### #####"],PA:["+507 ###-####","+507 ####-####"],PE:["+51 # #######","+51 ### ### ###","+51 ### #####"],PF:["+689 ## ## ## ##","+689 ### ## ## ##"],PG:["+675 ### ####","+675 #### ####"],PH:["+63 # #### ####","+63 ### ### ####","+63 #### # ### ####"],PK:["+92 ## ########","+92 ### #######","+92 ### ### ##","+92 #### #####"],PL:["+48 ## ### ## ##","+48 ### ### ###"],PM:["+508 ## ## ##","+508 ### ## ## ##"],PR:"+1 ###-###-####",PS:["+970 # ### ####","+970 ### ### ###","+970 #### ### ###"],PT:["+351 ## ### ####","+351 ### ### ###"],PW:"+680 ### ####",PY:["+595 ## ### ####","+595 ### ######","+595 #### ### ####"],QA:["+974 #### ####","+974 ### ####"],RE:"+262 ### ## ## ##",RO:["+40 ## ### ####","+40 ### ### ###"],RS:["+381 ## ######","+381 ## #######","+381 ### #####"],RU:"+7 ### ###-##-##",RW:"+250 ### ### ###",SA:["+966 ## ### ####","+966 ### ### ####","+966 #### #####"],SB:["+677 #####","+677 ## #####"],SC:["+248 # ### ###","+248 #######"],SD:"+249 ## ### ####",SE:["+46 # ## ## ##","+46 ## ### ## ##","+46 ## ## ## ##","+46 ### ## ## ###"],SG:["+65 #### ####","+65 #### ### ####"],SH:"+290 #####",SI:["+386 # ### ## ##","+386 ## ### ###","+386 ## ######","+386 ### #####"],SJ:["+47 ## ## ## ##","+47 ### ## ###"],SK:["+421 #/### ### ##","+421 ### ### ###","+421 #######"],SL:"+232 ## ######",SM:["+378 #### ######","+378 ## ## ## ##"],SN:["+221 ## ### ## ##","+221 ### ## ## ##"],SO:["+252 # ######","+252 # #######"],SR:["+597 ###-###","+597 ###-####","+597 ##-##-##"],SS:"+211 ### ### ###",ST:"+239 ### ####",SV:["+503 #### ####","+503 ### ####"],SX:"+1 ###-###-####",SY:["+963 ## ### ####","+963 ### ### ###"],SZ:["+268 #### ####","+268 ##### ####"],TA:"+290 ####",TC:"+1 ###-###-####",TD:"+235 ## ## ## ##",TG:"+228 ## ## ## ##",TH:["+66 # ### ####","+66 ## ### ####","+66 #### ### ###"],TJ:["+992 ### ## ####","+992 ## ### ####"],TK:"+690 ####",TL:["+670 ### ####","+670 #### ####"],TM:["+993 ## ##-##-##","+993 ## ######"],TN:"+216 ## ### ###",TO:["+676 ##-###","+676 ### ####","+676 #### ###"],TR:["+90 ### ### ## ##","+90 ### ### ####"],TT:"+1 ###-###-####",TV:["+688 ## ###","+688 ## ####"],TW:["+886 # #### ####","+886 ### ### ###","+886 ## ### ####","+886 ## #### ####"],TZ:["+255 ## ### ####","+255 ### ### ###","+255 ### ## ####"],UA:["+380 #### #####","+380 ## ### ####","+380 ### ### ###"],UG:["+256 ## #######","+256 ### ######"],US:"+1 ###-###-####",UY:["+598 #### ####","+598 ## ### ###","+598 ### ####"],UZ:"+998 ## ### ## ##",VA:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],VC:"+1 ###-###-####",VE:"+58 ###-#######",VG:"+1 ###-###-####",VI:"+1 ###-###-####",VN:["+84 ### #### ###","+84 ### ### ###","+84 #### ######","+84 ## ### ## ##"],VU:["+678 #####","+678 ### ####"],WF:["+681 ## ## ##","+681 ### ## ## ##"],WS:["+685 #####","+685 ## #####","+685 ### ###"],XK:["+383 ## ### ###","+383 ### #####"],YE:["+967 # ### ###","+967 ### ### ###"],YT:"+262 ### ## ## ##",ZA:["+27 ## ### ####","+27 ### ### ###"],ZM:["+260 ### ### ###","+260 ## #######","+260 #########"],ZW:["+263 ## #####","+263 ## ### ####","+263 ### ####","+263 #### ######"]},ZA=/^[a-z]{2}$/i,ud=t=>{if(!ZA.test(t)){const e=typeof t;throw new TypeError(`cc argument must be an ISO 3166-1 alpha-2 string, but got '${e==="string"?t:e}' instead.`)}const n=[...t.toUpperCase()].map(e=>(e.codePointAt(0)??0)+127397);return String.fromCodePoint(...n)},fs=Object.entries(XA),z1=t=>t.split(/ (.*)/s);function sl(t){let n="",e="";if(Array.isArray(t)){const i=[];for(const u of t){const[r,s]=z1(u);n||(n=r),i.push(s)}e=i}else{const[i,u]=z1(t);n=i,e=u}return[n,e]}fs.map(([t,n])=>({id:t,mask:n}));fs.reduce((t,[n,e])=>{const[i,u]=sl(e);return t[n]={code:i,mask:u},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i}});fs.reduce((t,[n,e])=>{const[i,u]=sl(e);return t[n]={code:i,mask:u,flag:ud(n)},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i,flag:ud(t)}});const JA=fs.reduce((t,[n,e])=>{const[i,u]=sl(e),r=new Intl.DisplayNames(["en"],{type:"region"});return t[n]={code:i,mask:u,name:r.of(n)??"",flag:ud(n)},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i,name:new Intl.DisplayNames(["en"],{type:"region"}).of(t)??"",flag:ud(t)}});const QA={key:0,class:"v-messages text-error py-2 px-4"},eN={class:"v-messages__message"},ty=h.defineComponent({__name:"PhoneMaskField",props:h.mergeModels({error:{},disabled:{type:Boolean}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.ref(),u=h.ref(""),r=h.ref(),s=a=>{if(!a){i.value?.selectCountry("BR"),r.value="BR";return}const[c,p]=a.split(" "),f=JA[c]?c:"BR";u.value||(u.value=p??""),i.value?.selectCountry(f),r.value=f};h.watch(()=>e.value,s,{immediate:!0});const l=a=>{if(!a){e.value=a;return}const c=a.split(" ").slice(1).join("").replace(/\D/g,"");e.value=`${r.value} ${c}`},o=a=>{r.value=a,e.value&&l(`${a} ${e.value.split(" ")[1]}`)};return h.onMounted(()=>s(e.value)),(a,c)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(YA),{ref_key:"phoneInput",ref:i,modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=p=>u.value=p),theme:"auto","search-placeholder":"Pesquise pelo país","no-results-text":"Nenhum país encontrado",detect:!1,"show-copy":!1,"disable-default-styles":!1,disabled:!!n.disabled,onChange:c[1]||(c[1]=p=>l(p.fullFormatted)),onCountryChange:c[2]||(c[2]=p=>o(p.id))},null,8,["modelValue","disabled"]),n.error?(h.openBlock(),h.createElementBlock("div",QA,[h.createElementVNode("div",eN,h.toDisplayString(n.error),1)])):h.createCommentVNode("",!0)],64))}}),ny=h.defineComponent({__name:"HourField",props:h.mergeModels({error:{default:""},disabled:{type:Boolean,default:!1},label:{},rules:{default:()=>[]}},{value:{default:"00:00"},valueModifiers:{}}),emits:["update:value"],setup(t){const n=t,e=u=>{const r=(u??"").split(":")[1];return r===void 0||parseInt(r,10)<=59||"Minutos devem ser entre 00 e 59"},i=h.useModel(t,"value");return(u,r)=>h.withDirectives((h.openBlock(),h.createBlock(Kr,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=s=>i.value=s),maxlength:5,"error-messages":n.error,disabled:n.disabled,rules:[e,...n.rules],label:n.label,placeholder:"HH:mm","hide-details":"auto"},null,8,["modelValue","error-messages","disabled","rules","label"])),[[h.unref(O2),"##:##"]])}}),tN={class:"position-relative overflow-visible"},nN={class:"pa-0 ma-0 text-red text-subtitle-2"},rN=h.defineComponent({__name:"ColorPaletteField",props:h.mergeModels({label:{},defaultColors:{}},{value:{default:null},valueModifiers:{},errorMessages:{type:[String,Array,Boolean],default:!1},errorMessagesModifiers:{}}),emits:["update:value","update:errorMessages"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.useModel(t,"errorMessages"),u=h.ref(!1),r=h.ref("#000000"),s=h.ref(),l=a=>{a===n.defaultColors?.length?e.value=r.value:n.defaultColors&&a!==void 0&&(e.value=n.defaultColors[a]),i.value=!1},o=()=>!!i.value&&i.value!==""&&i.value!==!0;return(a,c)=>(h.openBlock(),h.createBlock(Xi,{variant:"text",class:"pa-0",style:{"z-index":"10"}},{default:h.withCtx(()=>[h.createVNode(Js,{class:"d-flex align-center pa-0"},{default:h.withCtx(()=>[h.createVNode(Hx,{modelValue:s.value,"onUpdate:modelValue":[c[0]||(c[0]=p=>s.value=p),l],"selected-class":"selected",mandatory:"","show-arrows":""},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.defaultColors,p=>(h.openBlock(),h.createBlock(_i,{key:p,class:"border-thin color-swatch",style:h.normalizeStyle(`background-color: ${p}`)},null,8,["style"]))),128))]),_:1},8,["modelValue"]),h.createVNode(_i,{class:h.normalizeClass(["border-thin mr-2 custom-swatch",{selected:s.value===n.defaultColors?.length}]),style:h.normalizeStyle(`background-color: ${r.value}`),onClick:c[1]||(c[1]=()=>{s.value=n.defaultColors?.length,l(s.value)})},null,8,["class","style"]),h.createElementVNode("div",tN,[h.createVNode(_i,{class:"cursor-pointer toggle-picker",onClick:c[2]||(c[2]=p=>u.value=!u.value)},{default:h.withCtx(()=>[h.createVNode(qt,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(u.value?"ri-close-fill":"ri-pencil-line"),1)]),_:1})]),_:1}),u.value?(h.openBlock(),h.createBlock(h7,{key:0,modelValue:r.value,"onUpdate:modelValue":[c[3]||(c[3]=p=>r.value=p),c[4]||(c[4]=()=>l(s.value))],class:"position-fixed",modes:["hex"]},null,8,["modelValue"])):h.createCommentVNode("",!0)])]),_:1}),o()?(h.openBlock(),h.createBlock(rp,{key:0},{default:h.withCtx(()=>[h.createElementVNode("p",nN,h.toDisplayString(i.value),1)]),_:1})):h.createCommentVNode("",!0)]),_:1}))}}),ry=ji(rN,[["__scopeId","data-v-84ec2e9c"]]),iN={key:0,class:"form-fields-section-header"},aN={class:"d-flex align-center ga-2 min-w-0"},oN={class:"ma-0 text-sm font-weight-bold text-truncate"},sN=h.defineComponent({__name:"FormFields",props:{maskMode:{},searchMode:{},noPadding:{type:Boolean},fields:{},disabled:{type:Boolean}},emits:["updateField","updateSearch","removeCount","addCount"],setup(t,{emit:n}){const e=t,i=n,u=h.computed(()=>e.fields.filter(p=>N9(p))),r=p=>p.errorMessages??p.error??"",s=p=>p.itemTitle??(p.items?.some(f=>f&&f.text!==void 0)?"text":"title"),l=p=>!!(p.errorMessages?.length||p.error),o=(p,f)=>{p.error=void 0,p.errorMessages=[],p.value=f,i("updateField",{field:p.model,value:f})},a=(p,f)=>{o(p,f)},c=(p,f)=>{o(p,f)};return(p,f)=>(h.openBlock(),h.createBlock(Jo,{class:h.normalizeClass(["ma-0",t.noPadding?"pa-0":"pa-5"])},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.value,(d,v)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:`${d.model}-${v}`},[h.createVNode(Dr,{cols:h.unref(xf)(d),class:"pa-2",md:d.section?12:d.md||6,sm:"12"},{default:h.withCtx(()=>[d.section?(h.openBlock(),h.createElementBlock("div",iN,[h.createElementVNode("div",aN,[d.section.icon?(h.openBlock(),h.createBlock(qt,{key:0,icon:d.section.icon,size:"16"},null,8,["icon"])):h.createCommentVNode("",!0),h.createElementVNode("p",oN,h.toDisplayString(d.section.title),1)])])):d.type==="button-options"?(h.openBlock(),h.createBlock(q9,{key:1,field:d,onOnSelectedButtonChange:c},null,8,["field"])):d.secondField?(h.openBlock(),h.createBlock(Jo,{key:2},{default:h.withCtx(()=>[d.prependComponent?(h.openBlock(),h.createBlock(Dr,{key:0,class:"px-0",cols:"1"},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.prependComponent),{field:d,onClick:g=>d.prependClickFunction?.(g,d)},null,8,["field","onClick"]))]),_:2},1024)):h.createCommentVNode("",!0),h.createVNode(Dr,{cols:h.unref(xf)(d)},{default:h.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":g=>d.value=g},{ref_for:!0},d,{type:d.type,"mask-type":t.maskMode==="masked"?void 0:d.maskType,disabled:d.disabledOnlyField||d.disabled||t.disabled||!1,error:l(d),"error-messages":r(d),"onUpdate:modelValue":g=>o(d,g)}),null,16,["modelValue","onUpdate:modelValue","type","mask-type","disabled","error","error-messages"])):d.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:1,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","return-object","disabled"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"]),h.createVNode(Dr,{class:"pa-0 mt-3 d-flex",cols:d.secondField.cols||4},{default:h.withCtx(()=>[d.secondField.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:0,modelValue:d.secondField.value,"onUpdate:modelValue":[g=>d.secondField.value=g,g=>a(d.secondField,g)],label:d.secondField.label,items:d.secondField.items,"item-title":d.secondField.itemTitle??"text","item-value":d.secondField.itemValue??"value","error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","disabled"])):d.secondField.type==="text"||d.secondField.type==="number"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:1,modelValue:d.secondField.value,"onUpdate:modelValue":g=>d.secondField.value=g},{ref_for:!0},d.secondField,{type:d.secondField.type,disabled:d.secondField.disabled||t.disabled||!1,error:l(d.secondField),"error-messages":r(d.secondField),"onUpdate:modelValue":g=>a(d.secondField,g)}),null,16,["modelValue","onUpdate:modelValue","type","disabled","error","error-messages"])):d.secondField.type==="checkbox"?(h.openBlock(),h.createBlock(ha,{key:2,modelValue:d.secondField.value,"onUpdate:modelValue":[g=>d.secondField.value=g,g=>a(d.secondField,g)],label:d.secondField.label,"error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"])]),_:2},1024)):(h.openBlock(),h.createBlock(Jo,{key:3},{default:h.withCtx(()=>[h.createVNode(Dr,{cols:h.unref(xf)(d)},{default:h.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":g=>d.value=g},{ref_for:!0},d,{type:d.type,"mask-type":t.maskMode==="masked"?void 0:d.maskType,disabled:d.disabled||t.disabled||!1,error:l(d),"error-messages":r(d),"onUpdate:modelValue":g=>o(d,g)}),null,16,["modelValue","onUpdate:modelValue","type","mask-type","disabled","error","error-messages"])):d.type==="textarea"?(h.openBlock(),h.createBlock(xS,{key:1,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,placeholder:d.placeholder,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","error-messages","rules","disabled"])):d.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:2,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","multiple","chips","return-object","disabled"])):d.type==="file"?(h.openBlock(),h.createBlock(iS,{key:3,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1,clearable:""},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="autocomplete"?(h.openBlock(),h.createBlock(Bb,{key:4,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],search:d.search,"onUpdate:search":[g=>d.search=g,g=>i("updateSearch",d,g)],label:d.label,items:d.items,"item-title":s(d),"item-value":d.itemValue??"value","error-messages":r(d),autofocus:d.autofocus,"no-data-text":d.noDataText,multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1,clearable:""},h.createSlots({_:2},[d.slotItem?{name:"item",fn:h.withCtx(({item:g,props:m})=>[h.createElementVNode("span",h.mergeProps({ref_for:!0},m),[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.slotItem),{item:g},null,8,["item"]))],16)]),key:"0"}:void 0,d.chips?{name:"chip",fn:h.withCtx(({props:g,item:m})=>[h.createVNode(_i,h.mergeProps({ref_for:!0},g,{"prepend-avatar":m.raw?.avatar,text:m.title}),null,16,["prepend-avatar","text"])]),key:"1"}:void 0]),1032,["modelValue","onUpdate:modelValue","search","onUpdate:search","label","items","item-title","item-value","error-messages","autofocus","no-data-text","multiple","chips","return-object","disabled"])):d.type==="date"?(h.openBlock(),h.createBlock(Kr,{key:5,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g===""?null:g)],type:"date",label:d.label,placeholder:d.placeholder,hint:d.description,"persistent-hint":!!d.description,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","hint","persistent-hint","error-messages","rules","disabled"])):d.type==="datetime"?(h.openBlock(),h.createBlock(z2,{key:JSON.stringify(d.config),"model-value":d.value,config:d.config,rules:d.rules,label:d.label,placeholder:d.placeholder??"","min-date":d.minDate,"all-day":d.allDay??!1,"error-text":r(d),hint:d.description,"persistent-hint":!!d.description,disabled:d.disabled||t.disabled||!1,"prepend-icon":d.prependIcon,"prepend-inner-icon":d.prependInnerIcon,"append-icon":d.appendIcon,"append-inner-icon":d.appendInnerIcon,"onUpdate:modelValue":g=>o(d,g===""?null:g)},null,8,["model-value","config","rules","label","placeholder","min-date","all-day","error-text","hint","persistent-hint","disabled","prepend-icon","prepend-inner-icon","append-icon","append-inner-icon","onUpdate:modelValue"])):d.type==="checkbox"?(h.openBlock(),h.createBlock(ha,{key:7,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="switch"?(h.openBlock(),h.createBlock(yS,{key:8,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,messages:d.description,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","messages","error-messages","disabled"])):d.type==="searchAutocomplete"&&t.searchMode==="remote"&&!d.multiple?(h.openBlock(),h.createBlock(J2,{key:9,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],items:d.items,"onUpdate:items":g=>d.items=g,"item-component":d.itemComponent??null,label:d.label,placeholder:d.placeholder,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","item-subtitle":d.itemSubtitle,"search-function":d.searchFunction,errors:d.error??null,"return-object":d.returnObject??!1,"second-param":d.secondSearchParam??null,"create-component":d.createComponent??null,"create-data":d.createData??null,disabled:d.disabled||t.disabled||!1,"append-icon":d.appendIcon,"append-icon-action":d.appendIconAction,"append-icon-tooltip":d.appendIconTooltip,"append-icon-color":d.appendIconColor,"search-context-key":d.searchContextKey,exclude:typeof d.exclude=="function"?d.exclude:()=>[]},null,8,["value","onUpdate:value","items","onUpdate:items","item-component","label","placeholder","item-title","item-value","item-subtitle","search-function","errors","return-object","second-param","create-component","create-data","disabled","append-icon","append-icon-action","append-icon-tooltip","append-icon-color","search-context-key","exclude"])):d.type==="searchAutocomplete"&&t.searchMode==="remote"&&d.multiple?(h.openBlock(),h.createBlock(Q2,{key:10,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],items:d.items,"onUpdate:items":g=>d.items=g,"item-component":d.itemComponent??null,label:d.label,placeholder:d.placeholder,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","search-function":d.searchFunction,errors:d.error??null,"return-object":d.returnObject??!1,"second-param":d.secondSearchParam??null,"create-component":d.createComponent??null,"create-data":d.createData??null,disabled:d.disabled||t.disabled||!1,exclude:typeof d.exclude=="function"?d.exclude:()=>[]},null,8,["value","onUpdate:value","items","onUpdate:items","item-component","label","placeholder","item-title","item-value","search-function","errors","return-object","second-param","create-component","create-data","disabled","exclude"])):d.type==="searchAutocomplete"?(h.openBlock(),h.createBlock(cp,h.mergeProps({key:11,value:d.value,"onUpdate:value":g=>d.value=g,items:d.items,"onUpdate:items":g=>d.items=g},{ref_for:!0},d,{error:l(d),disabled:d.disabled||t.disabled||!1,"onUpdate:value":g=>o(d,g)}),null,16,["value","onUpdate:value","items","onUpdate:items","error","disabled"])):d.type==="phone"?(h.openBlock(),h.createBlock(ty,{key:12,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],error:r(d),disabled:d.disabled||t.disabled||!1},null,8,["value","onUpdate:value","error","disabled"])):d.type==="hour"?(h.openBlock(),h.createBlock(ny,{key:13,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],error:r(d),disabled:d.disabled||t.disabled||!1,label:d.label,rules:d.rules},null,8,["value","onUpdate:value","error","disabled","label","rules"])):d.type==="color-picker"?(h.openBlock(),h.createBlock(ry,{key:14,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],label:d.label,"default-colors":d.defaultColors,"error-messages":r(d)},null,8,["value","onUpdate:value","label","default-colors","error-messages"])):d.type==="info"&&d.component?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.component),{key:15,value:d.value,"onUpdate:value":g=>d.value=g,info:d.info,error:d.error,"remove-function":d.removeFunction},null,40,["value","onUpdate:value","info","error","remove-function"])):d.type==="button"?(h.openBlock(),h.createBlock(_n,{key:16,block:"",onClick:g=>d.action?.()},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d.label),1)]),_:2},1032,["onClick"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"]),d.count&&!d.disabled?(h.openBlock(),h.createBlock(Dr,{key:0,cols:"1",class:"d-flex align-center justify-center"},{default:h.withCtx(()=>[h.createVNode(_n,{variant:"outlined",onClick:()=>i("removeCount",d)},{default:h.withCtx(()=>[h.createVNode(qt,{icon:"ri-delete-bin-line",color:"red"})]),_:1},8,["onClick"])]),_:2},1024)):h.createCommentVNode("",!0)]),_:2},1024))]),_:2},1032,["cols","md"]),d.hasCountBtn&&!d.disabled?(h.openBlock(),h.createBlock(Dr,{key:0,cols:"12",class:"d-flex align-start justify-center pa-0"},{default:h.withCtx(()=>[h.createVNode(_n,{color:"primary",size:"small",variant:"outlined",icon:"",onClick:()=>{d.count&&(d.hasCountBtn=!1,i("addCount",[d,d.count+1]))}},{default:h.withCtx(()=>[h.createVNode(qt,{icon:"ri-add-line"})]),_:1},8,["onClick"])]),_:2},1024)):h.createCommentVNode("",!0)],64))),128)),h.createVNode(Dr,{cols:"12",class:"pa-0"},{default:h.withCtx(()=>[h.renderSlot(p.$slots,"custom",{},void 0,!0)]),_:3})]),_:3},8,["class"]))}}),lN=ji(sN,[["__scopeId","data-v-3a5a8b2e"]]),uN=h.defineComponent({__name:"GenericFormFlat",props:h.mergeModels({...I2.props,hideCancelButton:Boolean,noActionButtons:Boolean},{modelValue:{type:Object,default:()=>({})},modelModifiers:{}}),emits:h.mergeModels(["updateField","submit","updateSearch","addCount","removeCount","cancel"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const i=t,u=e,r=h.useModel(t,"modelValue"),s=(b,w)=>{b.search=w,u("updateSearch",{field:b.model,value:w})},l=(b,w)=>i.maskMode!=="masked"?w:b.maskType?mh(b.maskType,w):b.getMaskType?mh(b.getMaskType(),w):b.maskFunction?b.maskFunction(w):w,o=({field:b,value:w})=>{const A=i.fields.find(T=>T.model===b);A&&i.maskMode==="masked"&&(w=l(A,w),A.value=w),r.value&&(r.value[b]=w),u("updateField",{field:b,value:w})},a=b=>{let w=!0;return b&&b.forEach(A=>{w=A()}),w},c=h.computed(()=>{const b={};return i.fields.forEach(w=>{b[w.model]=w.condition?a(w.condition):w.type!=="hidden"}),b}),p=b=>(b.type==="date"||b.type==="datetime")&&b.value===""?null:b.value,f=()=>{let b=!0;return g.value.forEach(w=>{if(w.disabledOnlyField)return;[w,w.secondField].filter(Boolean).forEach(T=>{const F=E9(T,T.value);T.error=F===!0?"":F,F!==!0&&(b=!1)})}),b},d=()=>{if(i.loading||i.disableSubmit)return;const b=i.validationMode==="submit";if(b&&!f())return;const w={};i.fields.forEach(A=>{w[A.model]=b?p(A):A.value,b&&A.secondField&&(w[A.secondField.model]=p(A.secondField))}),u("submit",w)},v=b=>{i.fields.forEach(w=>{i.maskMode==="masked"?w.value=b&&b[w.model]!=null?l(w,b[w.model]):null:w.value=b?b[w.model]:null,r.value&&(r.value[w.model]=w.value)})};h.watch(()=>i.initialData,v,{deep:!0,immediate:!0});const g=h.computed(()=>i.fields.filter(b=>c.value[b.model])),m=h.ref(!1),y=h.ref(null);return n({formRef:y}),(b,w)=>(h.openBlock(),h.createBlock(Xi,{variant:"text"},{default:h.withCtx(()=>[i.title?(h.openBlock(),h.createBlock(T9,{key:0,title:i.title},null,8,["title"])):h.createCommentVNode("",!0),h.createVNode(Js,{class:"pa-0"},{default:h.withCtx(()=>[h.createVNode(oS,{onSubmit:h.withModifiers(d,["prevent"]),disabled:i.disabled,ref_key:"form",ref:y,modelValue:m.value,"onUpdate:modelValue":w[3]||(w[3]=A=>m.value=A)},{default:h.withCtx(()=>[h.createVNode(lN,{fields:g.value,disabled:i.disabled,"no-padding":i.noPadding,"mask-mode":i.maskMode,"search-mode":i.searchMode,onUpdateSearch:s,onUpdateField:o,onAddCount:w[0]||(w[0]=A=>u("addCount",A)),onRemoveCount:w[1]||(w[1]=A=>u("removeCount",A))},null,8,["fields","disabled","no-padding","mask-mode","search-mode"]),t.noActionButtons?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(P9,{key:0,"disable-add-button":i.disableSubmit||i.validationMode==="live"&&!m.value,"hide-cancel-button":t.hideCancelButton??!1,"add-btn-text":b.addBtnText,loading:b.loading??!1,onCancel:w[2]||(w[2]=A=>u("cancel")),onSubmit:d},null,8,["disable-add-button","hide-cancel-button","add-btn-text","loading"]))]),_:1},8,["disabled","modelValue"])]),_:1})]),_:1}))}}),fp=ji(uN,[["__scopeId","data-v-833b3974"]]),iy=h.defineComponent({__name:"GenericForm",props:{...I2.props},emits:["update:isDialogVisible","submit","cancel","updateField","updateSearch","addCount","removeCount"],setup(t,{emit:n}){const e=t,i=n,u=()=>{s(!1),i("cancel")},r=l=>{i("submit",l)},s=l=>{l||e.fields.forEach(o=>o.error=""),i("update:isDialogVisible",l)};return h.watch(()=>e.isDialogVisible,l=>{l||e.fields.forEach(o=>o.error=""),!(!l&&e.notClearOnClose)&&e.fields.forEach(o=>{o.value=e.initialData?e.initialData[o.model]:null})}),(l,o)=>(h.openBlock(),h.createBlock(np,{"model-value":e.isDialogVisible,"onUpdate:modelValue":s,width:e.width??"600","min-width":e.minWidth??"600"},{default:h.withCtx(()=>[h.createVNode(Xi,{class:"position-relative"},{default:h.withCtx(()=>[e.loading?(h.openBlock(),h.createBlock(v9,{key:0})):h.createCommentVNode("",!0),h.createVNode(w9,{title:e.title,onClose:o[0]||(o[0]=a=>s(!1))},{beforeClose:h.withCtx(()=>[h.renderSlot(l.$slots,"beforeClose")]),_:3},8,["title"]),h.createVNode(Wi),h.createVNode(Js,{class:"pa-0"},{default:h.withCtx(()=>[h.createVNode(fp,{fields:e.fields,"initial-data":e.initialData,loading:l.loading,"no-action-buttons":e.noActionButtons,disabled:e.disabled,"add-btn-text":e.addBtnText,"no-padding":e.noPadding,"mask-mode":e.maskMode,"search-mode":e.searchMode,"validation-mode":e.validationMode,"disable-submit":e.disableSubmit,onCancel:u,onSubmit:r,onUpdateField:o[1]||(o[1]=a=>i("updateField",a)),onUpdateSearch:o[2]||(o[2]=a=>i("updateSearch",a)),onAddCount:o[3]||(o[3]=a=>i("addCount",a)),onRemoveCount:o[4]||(o[4]=a=>i("removeCount",a))},{custom:h.withCtx(()=>[h.renderSlot(l.$slots,"custom")]),_:3},8,["fields","initial-data","loading","no-action-buttons","disabled","add-btn-text","no-padding","mask-mode","search-mode","validation-mode","disable-submit"])]),_:3})]),_:3})]),_:3},8,["model-value","width","min-width"]))}}),cN={class:"d-flex text-2xl font-400 text-capitalize align-center font-weight-bold ga-4"},dN={key:0,class:"text-wrap mb-2 text-body-1"},fN={key:1,class:"text-wrap mb-2 text-body-1"},hN={key:0},pN={key:1,class:"text-primary"},mN={key:2},ay=h.defineComponent({__name:"GenericDeleteDialog",props:h.mergeModels({keyWord:{type:String,required:!0},itemName:{type:String,required:!1},actionVerb:{type:String,default:"deletar"},appendText:{type:String,required:!1},prependText:{type:String,required:!1},endText:{type:String,required:!1},customDescription:{type:String,required:!1},color:{type:String,default:"error"},confirmText:{type:String,default:"confirmar"}},{isDialogVisible:{default:!1,type:Boolean},isDialogVisibleModifiers:{}}),emits:h.mergeModels(["confirm","cancel"],["update:isDialogVisible"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"isDialogVisible"),u=n;return(r,s)=>(h.openBlock(),h.createBlock(np,{modelValue:i.value,"onUpdate:modelValue":s[2]||(s[2]=l=>i.value=l),width:"480"},{default:h.withCtx(()=>[h.createVNode(Xi,{class:"pa-3"},{default:h.withCtx(()=>[h.createVNode(ip,{class:"d-flex flex-column"},{default:h.withCtx(()=>[h.createElementVNode("div",cN,[h.createVNode(_n,{icon:"",variant:"tonal",color:t.color,class:"my-4",size:"small"},{default:h.withCtx(()=>[...s[3]||(s[3]=[h.createElementVNode("span",{class:"text-xl"},"!",-1)])]),_:1},8,["color"]),h.createTextVNode(" "+h.toDisplayString(e.actionVerb)+" "+h.toDisplayString(t.keyWord),1)]),e.customDescription?(h.openBlock(),h.createElementBlock("span",dN,h.toDisplayString(e.customDescription),1)):(h.openBlock(),h.createElementBlock("span",fN,[h.createTextVNode(" Tem certeza que deseja "+h.toDisplayString(e.actionVerb)+" ",1),e.prependText?(h.openBlock(),h.createElementBlock("span",hN,h.toDisplayString(e.prependText),1)):h.createCommentVNode("",!0),e.itemName?(h.openBlock(),h.createElementBlock("span",pN,h.toDisplayString(t.itemName),1)):h.createCommentVNode("",!0),e.appendText?(h.openBlock(),h.createElementBlock("span",mN,h.toDisplayString(e.appendText),1)):h.createCommentVNode("",!0),h.createElementVNode("span",null,h.toDisplayString(e.endText||"? Esta ação não pode ser desfeita"),1)]))]),_:1}),h.createVNode(rp,{class:"d-flex align-center justify-end"},{default:h.withCtx(()=>[h.createVNode(_n,{color:"secondary",variant:"outlined",density:"comfortable",onClick:s[0]||(s[0]=l=>u("cancel"))},{default:h.withCtx(()=>[...s[4]||(s[4]=[h.createTextVNode(" Cancelar ",-1)])]),_:1}),h.createVNode(_n,{color:t.color,variant:"flat",density:"comfortable",onClick:s[1]||(s[1]=l=>u("confirm"))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.confirmText),1)]),_:1},8,["color"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),gN=h.defineComponent({__name:"MultipleSearchAutocomplete",props:h.mergeModels({searchFunction:{type:Function},label:{},placeholder:{},itemTitle:{},itemValue:{},itemSubtitle:{},multiple:{type:Boolean},chips:{type:Boolean},returnObject:{type:Boolean},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},rules:{},clearable:{type:Boolean},exclude:{type:Function},searchContextKey:{},createComponent:{},createData:{},itemComponent:{}},{value:{default:()=>[]},valueModifiers:{},items:{default:()=>[]},itemsModifiers:{}}),emits:["update:value","update:items"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.useModel(t,"items");return(u,r)=>(h.openBlock(),h.createBlock(cp,h.mergeProps({value:e.value,"onUpdate:value":r[0]||(r[0]=s=>e.value=s),items:i.value,"onUpdate:items":r[1]||(r[1]=s=>i.value=s)},n,{multiple:"",chips:""}),null,16,["value","items"]))}}),vN=h.defineComponent({__name:"PhoneField",props:h.mergeModels({label:{},disabled:{type:Boolean},error:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=h.useModel(t,"modelValue");return(e,i)=>(h.openBlock(),h.createBlock(Bl,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=u=>n.value=u),type:"text","mask-type":"phone",label:t.label,disabled:t.disabled,"error-messages":t.error,rules:t.rules},null,8,["modelValue","label","disabled","error-messages","rules"]))}}),bN=h.defineComponent({__name:"ColorPickerOptions",props:h.mergeModels({label:{},disabled:{type:Boolean},defaultColors:{}},{value:{},valueModifiers:{},errorMessages:{},errorMessagesModifiers:{}}),emits:["update:value","update:errorMessages"],setup(t){const n=h.useModel(t,"value"),e=h.useModel(t,"errorMessages");return(i,u)=>(h.openBlock(),h.createBlock(Kr,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),type:"color",label:t.label,disabled:t.disabled,"error-messages":e.value},null,8,["modelValue","label","disabled","error-messages"]))}}),yN={"vuetify-elements":{actions:"Ações",search:"Pesquisar",add:"Adicionar",adjust_columns:"Ajustar colunas de visualização",delete:"Excluir",deleted:"Excluído",cancel:"Cancelar",save:"Salvar",ok:"OK",this:"Esse",was_deleted:"foi deletado.",confirm_delete:"Tem certeza que deseja excluir",editFnNotDefined:"Função de edição não definida. Por favor, forneça uma editFn na definição do cabeçalho (header).",errorGettingHeaderValue:"Erro ao obter o valor do item para o cabeçalho",filterFnNotDefined:"Função de filtro não definida. Por favor, forneça uma filterFn nas propriedades do componente.",filterColumn:"Filtrar coluna",filterBy:"Filtrar por...",classify:"Classificar",hideColumn:"Esconder coluna",moveLeft:"Mover para esquerda",moveRight:"Mover para direita",all:"Todos",unexpectedError:"Ocorreu um erro inesperado. Por favor, tente novamente ou contate o suporte.",sortAsc:"Classificar de A a Z",sortDesc:"Classificar de Z a A",clearSort:"Limpar classificação",selectAll:"Selecionar tudo",clearFilter:"Limpar filtro",clearFilters:"Limpar filtros",noValuesFound:"Nenhum valor encontrado",loadingValues:"Carregando...",errorLoadingValues:"Não foi possível carregar os valores",filterPageOnly:"Filtro aplicado apenas aos itens desta página",columnMenu:"Opções da coluna"}},wN={"vuetify-elements":{actions:"Actions",search:"Search",add:"Add",adjust_columns:"Adjust view columns",delete:"Delete",deleted:"Deleted",cancel:"Cancel",save:"Save",ok:"OK",this:"This",was_deleted:"was deleted.",confirm_delete:"Are you sure you want to delete",editFnNotDefined:"Edit function not defined. Please provide an editFn in the header definition.",errorGettingHeaderValue:"Error getting item value for header",filterFnNotDefined:"Filter function not defined. Please provide a filterFn in the component props.",filterColumn:"Filter column",filterBy:"Filter by...",classify:"Classify",hideColumn:"Hide column",moveLeft:"Move left",moveRight:"Move right",all:"All",unexpectedError:"Unexpected error. Please, try again or contact the support team.",sortAsc:"Sort A to Z",sortDesc:"Sort Z to A",clearSort:"Clear sort",selectAll:"Select all",clearFilter:"Clear filter",clearFilters:"Clear filters",noValuesFound:"No values found",loadingValues:"Loading...",errorLoadingValues:"Could not load the values",filterPageOnly:"Filter applied to the items of this page only",columnMenu:"Column options"}},Pc={"pt-BR":yN,"en-US":wN};let oy=Pc["en-US"];function xN(t,n){oy={...Pc[t],...n}}function _N(t){return oy["vuetify-elements"][t]||t}function SN(t,n){for(const e of Object.keys(Pc)){const i={...Pc[e],...n?.[e]};t.global.setLocaleMessage(e,i)}return e=>t.global.t(`vuetify-elements.${e}`)}const kN={install(t,n){let e;if(n?.i18n)e=SN(n.i18n,n.messages);else{const i=n?.locale||"en-US";xN(i,n?.messages?.[i]),e=_N}t.provide(Oh,e),t.provide(Cg,n?.defaultColumnMenu??"legacy"),t.component("ActionBtn",au),t.component("GenericTable",M2),t.component("GenericForm",iy),t.component("GenericFormFlat",fp),t.component("GenericDeleteDialog",ay)}};exports.ColorPaletteField=ry;exports.GenericFormFlat=fp;exports.GenericTable=M2;exports.GenericTablePagination=Lb;exports.RemoteMultipleSearchField=Q2;exports.RemoteSearchField=J2;exports._sfc_main=au;exports._sfc_main$1=Bl;exports._sfc_main$10=ty;exports._sfc_main$11=cp;exports._sfc_main$2=F2;exports._sfc_main$3=bN;exports._sfc_main$4=z2;exports._sfc_main$5=ay;exports._sfc_main$6=iy;exports._sfc_main$7=ny;exports._sfc_main$8=gN;exports._sfc_main$9=vN;exports._typeof=xn;exports.applyColumnFilters=Gc;exports.applyFormMask=mh;exports.buildColumnFilterParams=Zw;exports.clearColumnFilter=Rl;exports.columnFilterKey=Bh;exports.columnSortKey=Wf;exports.commonjsGlobal=fn;exports.distinctColumnValues=Tg;exports.formatMoney=T8;exports.getDefaultExportFromCjs=Bv;exports.handleExport=Vv;exports.plugin=kN;exports.setColumnFilter=Pg;exports.vnodeText=yc;
114
+ `}}function M(){e.calendarContainer.classList.add("hasWeeks");var ue=yn("div","flatpickr-weekwrapper");ue.appendChild(yn("span","flatpickr-weekday",e.l10n.weekAbbreviation));var pe=yn("div","flatpickr-weeks");return ue.appendChild(pe),{weekWrapper:ue,weekNumbers:pe}}function j(ue,pe){pe===void 0&&(pe=!0);var Se=pe?ue:ue-e.currentMonth;Se<0&&e._hidePrevMonthArrow===!0||Se>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=Se,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,$e("onYearChange"),N()),O(),$e("onMonthChange"),vt())}function P(ue,pe){if(ue===void 0&&(ue=!0),pe===void 0&&(pe=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,pe===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var Se=Nf(e.config),Ie=Se.hours,Ye=Se.minutes,De=Se.seconds;d(Ie,Ye,De)}e.redraw(),ue&&$e("onChange")}function U(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),$e("onClose")}function q(){e.config!==void 0&&$e("onDestroy");for(var ue=e._handlers.length;ue--;)e._handlers[ue].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var pe=e.calendarContainer.parentNode;if(pe.lastChild&&pe.removeChild(pe.lastChild),pe.parentNode){for(;pe.firstChild;)pe.parentNode.insertBefore(pe.firstChild,pe);pe.parentNode.removeChild(pe)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(Se){try{delete e[Se]}catch{}})}function X(ue){return e.calendarContainer.contains(ue)}function V(ue){if(e.isOpen&&!e.config.inline){var pe=gi(ue),Se=X(pe),Ie=pe===e.input||pe===e.altInput||e.element.contains(pe)||ue.path&&ue.path.indexOf&&(~ue.path.indexOf(e.input)||~ue.path.indexOf(e.altInput)),Ye=!Ie&&!Se&&!X(ue.relatedTarget),De=!e.config.ignoredFocusElements.some(function(bt){return bt.contains(pe)});Ye&&De&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&o(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function K(ue){if(!(!ue||e.config.minDate&&ue<e.config.minDate.getFullYear()||e.config.maxDate&&ue>e.config.maxDate.getFullYear())){var pe=ue,Se=e.currentYear!==pe;e.currentYear=pe||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),Se&&(e.redraw(),$e("onYearChange"),N())}}function L(ue,pe){var Se;pe===void 0&&(pe=!0);var Ie=e.parseDate(ue,void 0,pe);if(e.config.minDate&&Ie&&bi(Ie,e.config.minDate,pe!==void 0?pe:!e.minDateHasTime)<0||e.config.maxDate&&Ie&&bi(Ie,e.config.maxDate,pe!==void 0?pe:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(Ie===void 0)return!1;for(var Ye=!!e.config.enable,De=(Se=e.config.enable)!==null&&Se!==void 0?Se:e.config.disable,bt=0,ct=void 0;bt<De.length;bt++){if(ct=De[bt],typeof ct=="function"&&ct(Ie))return Ye;if(ct instanceof Date&&Ie!==void 0&&ct.getTime()===Ie.getTime())return Ye;if(typeof ct=="string"){var dt=e.parseDate(ct,void 0,!0);return dt&&dt.getTime()===Ie.getTime()?Ye:!Ye}else if(typeof ct=="object"&&Ie!==void 0&&ct.from&&ct.to&&Ie.getTime()>=ct.from.getTime()&&Ie.getTime()<=ct.to.getTime())return Ye}return!Ye}function R(ue){return e.daysContainer!==void 0?ue.className.indexOf("hidden")===-1&&ue.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(ue):!1}function G(ue){var pe=ue.target===e._input,Se=e._input.value.trimEnd()!==lt();pe&&Se&&!(ue.relatedTarget&&X(ue.relatedTarget))&&e.setDate(e._input.value,!0,ue.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Q(ue){var pe=gi(ue),Se=e.config.wrap?t.contains(pe):pe===e._input,Ie=e.config.allowInput,Ye=e.isOpen&&(!Ie||!Se),De=e.config.inline&&Se&&!Ie;if(ue.keyCode===13&&Se){if(Ie)return e.setDate(e._input.value,!0,pe===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),pe.blur();e.open()}else if(X(pe)||Ye||De){var bt=!!e.timeContainer&&e.timeContainer.contains(pe);switch(ue.keyCode){case 13:bt?(ue.preventDefault(),o(),Ne()):Oe(ue);break;case 27:ue.preventDefault(),Ne();break;case 8:case 46:Se&&!e.config.allowInput&&(ue.preventDefault(),e.clear());break;case 37:case 39:if(!bt&&!Se){ue.preventDefault();var ct=r();if(e.daysContainer!==void 0&&(Ie===!1||ct&&R(ct))){var dt=ue.keyCode===39?1:-1;ue.ctrlKey?(ue.stopPropagation(),j(dt),z(I(1),0)):z(void 0,dt)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:ue.preventDefault();var ge=ue.keyCode===40?1:-1;e.daysContainer&&pe.$i!==void 0||pe===e.input||pe===e.altInput?ue.ctrlKey?(ue.stopPropagation(),K(e.currentYear-ge),z(I(1),0)):bt||z(void 0,ge*7):pe===e.currentYearElement?K(e.currentYear-ge):e.config.enableTime&&(!bt&&e.hourElement&&e.hourElement.focus(),o(ue),e._debouncedChange());break;case 9:if(bt){var ke=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(_t){return _t}),Re=ke.indexOf(pe);if(Re!==-1){var rt=ke[Re+(ue.shiftKey?-1:1)];ue.preventDefault(),(rt||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(pe)&&ue.shiftKey&&(ue.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&pe===e.amPM)switch(ue.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],p(),Nt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],p(),Nt();break}(Se||X(pe))&&$e("onKeyDown",ue)}function ae(ue,pe){if(pe===void 0&&(pe="flatpickr-day"),!(e.selectedDates.length!==1||ue&&(!ue.classList.contains(pe)||ue.classList.contains("flatpickr-disabled")))){for(var Se=ue?ue.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),Ie=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),Ye=Math.min(Se,e.selectedDates[0].getTime()),De=Math.max(Se,e.selectedDates[0].getTime()),bt=!1,ct=0,dt=0,ge=Ye;ge<De;ge+=X9.DAY)L(new Date(ge),!0)||(bt=bt||ge>Ye&&ge<De,ge<Ie&&(!ct||ge>ct)?ct=ge:ge>Ie&&(!dt||ge<dt)&&(dt=ge));var ke=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+pe));ke.forEach(function(Re){var rt=Re.dateObj,_t=rt.getTime(),ht=ct>0&&_t<ct||dt>0&&_t>dt;if(ht){Re.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Et){Re.classList.remove(Et)});return}else if(bt&&!ht)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Et){Re.classList.remove(Et)}),ue!==void 0&&(ue.classList.add(Se<=e.selectedDates[0].getTime()?"startRange":"endRange"),Ie<Se&&_t===Ie?Re.classList.add("startRange"):Ie>Se&&_t===Ie&&Re.classList.add("endRange"),_t>=ct&&(dt===0||_t<=dt)&&K9(_t,Ie,Se)&&Re.classList.add("inRange"))})}}function te(){e.isOpen&&!e.config.static&&!e.config.inline&&le()}function ne(ue,pe){if(pe===void 0&&(pe=e._positionElement),e.isMobile===!0){if(ue){ue.preventDefault();var Se=gi(ue);Se&&Se.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),$e("onOpen");return}else if(e._input.disabled||e.config.inline)return;var Ie=e.isOpen;e.isOpen=!0,Ie||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),$e("onOpen"),le(pe)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(ue===void 0||!e.timeContainer.contains(ue.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function J(ue){return function(pe){var Se=e.config["_"+ue+"Date"]=e.parseDate(pe,e.config.dateFormat),Ie=e.config["_"+(ue==="min"?"max":"min")+"Date"];Se!==void 0&&(e[ue==="min"?"minDateHasTime":"maxDateHasTime"]=Se.getHours()>0||Se.getMinutes()>0||Se.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(Ye){return L(Ye)}),!e.selectedDates.length&&ue==="min"&&f(Se),Nt()),e.daysContainer&&(Ce(),Se!==void 0?e.currentYearElement[ue]=Se.getFullYear().toString():e.currentYearElement.removeAttribute(ue),e.currentYearElement.disabled=!!Ie&&Se!==void 0&&Ie.getFullYear()===Se.getFullYear())}}function he(){var ue=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],pe=Lr(Lr({},JSON.parse(JSON.stringify(t.dataset||{}))),n),Se={};e.config.parseDate=pe.parseDate,e.config.formatDate=pe.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(ke){e.config._enable=Ge(ke)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(ke){e.config._disable=Ge(ke)}});var Ie=pe.mode==="time";if(!pe.dateFormat&&(pe.enableTime||Ie)){var Ye=Zn.defaultConfig.dateFormat||Hs.dateFormat;Se.dateFormat=pe.noCalendar||Ie?"H:i"+(pe.enableSeconds?":S":""):Ye+" H:i"+(pe.enableSeconds?":S":"")}if(pe.altInput&&(pe.enableTime||Ie)&&!pe.altFormat){var De=Zn.defaultConfig.altFormat||Hs.altFormat;Se.altFormat=pe.noCalendar||Ie?"h:i"+(pe.enableSeconds?":S K":" K"):De+(" h:i"+(pe.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:J("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:J("max")});var bt=function(ke){return function(Re){e.config[ke==="min"?"_minTime":"_maxTime"]=e.parseDate(Re,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:bt("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:bt("max")}),pe.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,Se,pe);for(var ct=0;ct<ue.length;ct++)e.config[ue[ct]]=e.config[ue[ct]]===!0||e.config[ue[ct]]==="true";Sf.filter(function(ke){return e.config[ke]!==void 0}).forEach(function(ke){e.config[ke]=kf(e.config[ke]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ct=0;ct<e.config.plugins.length;ct++){var dt=e.config.plugins[ct](e)||{};for(var ge in dt)Sf.indexOf(ge)>-1?e.config[ge]=kf(dt[ge]).map(s).concat(e.config[ge]):typeof pe[ge]>"u"&&(e.config[ge]=dt[ge])}pe.altInputClass||(e.config.altInputClass=re().className+" "+e.config.altInputClass),$e("onParseConfig")}function re(){return e.config.wrap?t.querySelector("[data-input]"):t}function de(){typeof e.config.locale!="object"&&typeof Zn.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Lr(Lr({},Zn.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Zn.l10ns[e.config.locale]:void 0),Go.D="("+e.l10n.weekdays.shorthand.join("|")+")",Go.l="("+e.l10n.weekdays.longhand.join("|")+")",Go.M="("+e.l10n.months.shorthand.join("|")+")",Go.F="("+e.l10n.months.longhand.join("|")+")",Go.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var ue=Lr(Lr({},n),JSON.parse(JSON.stringify(t.dataset||{})));ue.time_24hr===void 0&&Zn.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=j2(e),e.parseDate=gh({config:e.config,l10n:e.l10n})}function le(ue){if(typeof e.config.position=="function")return void e.config.position(e,ue);if(e.calendarContainer!==void 0){$e("onPreCalendarPosition");var pe=ue||e._positionElement,Se=Array.prototype.reduce.call(e.calendarContainer.children,(function(An,Un){return An+Un.offsetHeight}),0),Ie=e.calendarContainer.offsetWidth,Ye=e.config.position.split(" "),De=Ye[0],bt=Ye.length>1?Ye[1]:null,ct=pe.getBoundingClientRect(),dt=window.innerHeight-ct.bottom,ge=De==="above"||De!=="below"&&dt<Se&&ct.top>Se,ke=window.pageYOffset+ct.top+(ge?-Se-2:pe.offsetHeight+2);if(Wr(e.calendarContainer,"arrowTop",!ge),Wr(e.calendarContainer,"arrowBottom",ge),!e.config.inline){var Re=window.pageXOffset+ct.left,rt=!1,_t=!1;bt==="center"?(Re-=(Ie-ct.width)/2,rt=!0):bt==="right"&&(Re-=Ie-ct.width,_t=!0),Wr(e.calendarContainer,"arrowLeft",!rt&&!_t),Wr(e.calendarContainer,"arrowCenter",rt),Wr(e.calendarContainer,"arrowRight",_t);var ht=window.document.body.offsetWidth-(window.pageXOffset+ct.right),Et=Re+Ie>window.document.body.offsetWidth,Tt=ht+Ie>window.document.body.offsetWidth;if(Wr(e.calendarContainer,"rightMost",Et),!e.config.static)if(e.calendarContainer.style.top=ke+"px",!Et)e.calendarContainer.style.left=Re+"px",e.calendarContainer.style.right="auto";else if(!Tt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=ht+"px";else{var Ct=_e();if(Ct===void 0)return;var jt=window.document.body.offsetWidth,Dt=Math.max(0,jt/2-Ie/2),Ht=".flatpickr-calendar.centerMost:before",hn=".flatpickr-calendar.centerMost:after",cn=Ct.cssRules.length,Cn="{left:"+ct.left+"px;right:auto;}";Wr(e.calendarContainer,"rightMost",!1),Wr(e.calendarContainer,"centerMost",!0),Ct.insertRule(Ht+","+hn+Cn,cn),e.calendarContainer.style.left=Dt+"px",e.calendarContainer.style.right="auto"}}}}function _e(){for(var ue=null,pe=0;pe<document.styleSheets.length;pe++){var Se=document.styleSheets[pe];if(Se.cssRules){try{Se.cssRules}catch{continue}ue=Se;break}}return ue??xe()}function xe(){var ue=document.createElement("style");return document.head.appendChild(ue),ue.sheet}function Ce(){e.config.noCalendar||e.isMobile||(N(),vt(),O())}function Ne(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Oe(ue){ue.preventDefault(),ue.stopPropagation();var pe=function(ke){return ke.classList&&ke.classList.contains("flatpickr-day")&&!ke.classList.contains("flatpickr-disabled")&&!ke.classList.contains("notAllowed")},Se=B2(gi(ue),pe);if(Se!==void 0){var Ie=Se,Ye=e.latestSelectedDateObj=new Date(Ie.dateObj.getTime()),De=(Ye.getMonth()<e.currentMonth||Ye.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=Ie,e.config.mode==="single")e.selectedDates=[Ye];else if(e.config.mode==="multiple"){var bt=Ke(Ye);bt?e.selectedDates.splice(parseInt(bt),1):e.selectedDates.push(Ye)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=Ye,e.selectedDates.push(Ye),bi(Ye,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(ke,Re){return ke.getTime()-Re.getTime()}));if(p(),De){var ct=e.currentYear!==Ye.getFullYear();e.currentYear=Ye.getFullYear(),e.currentMonth=Ye.getMonth(),ct&&($e("onYearChange"),N()),$e("onMonthChange")}if(vt(),O(),Nt(),!De&&e.config.mode!=="range"&&e.config.showMonths===1?H(Ie):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var dt=e.config.mode==="single"&&!e.config.enableTime,ge=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(dt||ge)&&Ne()}m()}}var Me={locale:[de,k],showMonths:[C,l,S],minDate:[b],maxDate:[b],positionElement:[yt],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Be(ue,pe){if(ue!==null&&typeof ue=="object"){Object.assign(e.config,ue);for(var Se in ue)Me[Se]!==void 0&&Me[Se].forEach(function(Ie){return Ie()})}else e.config[ue]=pe,Me[ue]!==void 0?Me[ue].forEach(function(Ie){return Ie()}):Sf.indexOf(ue)>-1&&(e.config[ue]=kf(pe));e.redraw(),Nt(!0)}function ze(ue,pe){var Se=[];if(ue instanceof Array)Se=ue.map(function(Ie){return e.parseDate(Ie,pe)});else if(ue instanceof Date||typeof ue=="number")Se=[e.parseDate(ue,pe)];else if(typeof ue=="string")switch(e.config.mode){case"single":case"time":Se=[e.parseDate(ue,pe)];break;case"multiple":Se=ue.split(e.config.conjunction).map(function(Ie){return e.parseDate(Ie,pe)});break;case"range":Se=ue.split(e.l10n.rangeSeparator).map(function(Ie){return e.parseDate(Ie,pe)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(ue)));e.selectedDates=e.config.allowInvalidPreload?Se:Se.filter(function(Ie){return Ie instanceof Date&&L(Ie,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(Ie,Ye){return Ie.getTime()-Ye.getTime()})}function Ue(ue,pe,Se){if(pe===void 0&&(pe=!1),Se===void 0&&(Se=e.config.dateFormat),ue!==0&&!ue||ue instanceof Array&&ue.length===0)return e.clear(pe);ze(ue,Se),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),b(void 0,pe),f(),e.selectedDates.length===0&&e.clear(!1),Nt(pe),pe&&$e("onChange")}function Ge(ue){return ue.slice().map(function(pe){return typeof pe=="string"||typeof pe=="number"||pe instanceof Date?e.parseDate(pe,void 0,!0):pe&&typeof pe=="object"&&pe.from&&pe.to?{from:e.parseDate(pe.from,void 0),to:e.parseDate(pe.to,void 0)}:pe}).filter(function(pe){return pe})}function st(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var ue=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);ue&&ze(ue,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function et(){if(e.input=re(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=yn(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),yt()}function yt(){e._positionElement=e.config.positionElement||e._input}function nt(){var ue=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=yn("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=ue,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=ue==="datetime-local"?"Y-m-d\\TH:i:S":ue==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}g(e.mobileInput,"change",function(pe){e.setDate(gi(pe).value,!1,e.mobileFormatStr),$e("onChange"),$e("onClose")})}function He(ue){if(e.isOpen===!0)return e.close();e.open(ue)}function $e(ue,pe){if(e.config!==void 0){var Se=e.config[ue];if(Se!==void 0&&Se.length>0)for(var Ie=0;Se[Ie]&&Ie<Se.length;Ie++)Se[Ie](e.selectedDates,e.input.value,e,pe);ue==="onChange"&&(e.input.dispatchEvent(mt("change")),e.input.dispatchEvent(mt("input")))}}function mt(ue){var pe=document.createEvent("Event");return pe.initEvent(ue,!0,!0),pe}function Ke(ue){for(var pe=0;pe<e.selectedDates.length;pe++){var Se=e.selectedDates[pe];if(Se instanceof Date&&bi(Se,ue)===0)return""+pe}return!1}function Mt(ue){return e.config.mode!=="range"||e.selectedDates.length<2?!1:bi(ue,e.selectedDates[0])>=0&&bi(ue,e.selectedDates[1])<=0}function vt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(ue,pe){var Se=new Date(e.currentYear,e.currentMonth,1);Se.setMonth(e.currentMonth+pe),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[pe].textContent=Mc(Se.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=Se.getMonth().toString(),ue.value=Se.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function lt(ue){var pe=ue||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(Se){return e.formatDate(Se,pe)}).filter(function(Se,Ie,Ye){return e.config.mode!=="range"||e.config.enableTime||Ye.indexOf(Se)===Ie}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Nt(ue){ue===void 0&&(ue=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=lt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=lt(e.config.altFormat)),ue!==!1&&$e("onValueUpdate")}function wt(ue){var pe=gi(ue),Se=e.prevMonthNav.contains(pe),Ie=e.nextMonthNav.contains(pe);Se||Ie?j(Se?-1:1):e.yearElements.indexOf(pe)>=0?pe.select():pe.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):pe.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function ut(ue){ue.preventDefault();var pe=ue.type==="keydown",Se=gi(ue),Ie=Se;e.amPM!==void 0&&Se===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Li(e.amPM.textContent===e.l10n.amPM[0])]);var Ye=parseFloat(Ie.getAttribute("min")),De=parseFloat(Ie.getAttribute("max")),bt=parseFloat(Ie.getAttribute("step")),ct=parseInt(Ie.value,10),dt=ue.delta||(pe?ue.which===38?1:-1:0),ge=ct+bt*dt;if(typeof Ie.value<"u"&&Ie.value.length===2){var ke=Ie===e.hourElement,Re=Ie===e.minuteElement;ge<Ye?(ge=De+ge+Li(!ke)+(Li(ke)&&Li(!e.amPM)),Re&&A(void 0,-1,e.hourElement)):ge>De&&(ge=Ie===e.hourElement?ge-De-Li(!e.amPM):Ye,Re&&A(void 0,1,e.hourElement)),e.amPM&&ke&&(bt===1?ge+ct===23:Math.abs(ge-ct)>bt)&&(e.amPM.textContent=e.l10n.amPM[Li(e.amPM.textContent===e.l10n.amPM[0])]),Ie.value=ri(ge)}}return u(),e}function qs(t,n){for(var e=Array.prototype.slice.call(t).filter(function(s){return s instanceof HTMLElement}),i=[],u=0;u<e.length;u++){var r=e[u];try{if(r.getAttribute("data-fp-omit")!==null)continue;r._flatpickr!==void 0&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=J9(r,n||{}),i.push(r._flatpickr)}catch(s){console.error(s)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return qs(this,t)},HTMLElement.prototype.flatpickr=function(t){return qs([this],t)});var Zn=function(t,n){return typeof t=="string"?qs(window.document.querySelectorAll(t),n):t instanceof Node?qs([t],n):qs(t,n)};Zn.defaultConfig={};Zn.l10ns={en:Lr({},Xl),default:Lr({},Xl)};Zn.localize=function(t){Zn.l10ns.default=Lr(Lr({},Zn.l10ns.default),t)};Zn.setDefaults=function(t){Zn.defaultConfig=Lr(Lr({},Zn.defaultConfig),t)};Zn.parseDate=gh({});Zn.formatDate=j2({});Zn.compareDates=bi;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return qs(this,t)});Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))};typeof window<"u"&&(window.flatpickr=Zn);const V2=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"],Q9=["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"];function P1(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function I1(t){return t instanceof Array?t:[t]}function Ef(t){return t&&t.length?t:null}const R1=[...V2,...Q9],eC=["locale","showMonths"],tC=h.defineComponent({name:"FlatPickr",compatConfig:{MODE:3},render(){return h.h("input",{type:"text","data-input":!0,disabled:this.disabled,onInput:this.onInput})},emits:["blur","update:modelValue",...R1.map(P1)],props:{modelValue:{type:[String,Number,Date,Array,null],required:!0},config:{type:Object,default:()=>({defaultDate:null,wrap:!1})},events:{type:Array,default:()=>V2},disabled:{type:Boolean,default:!1}},data(){return{fp:null}},mounted(){this.fp||(this.fp=Zn(this.getElem(),this.prepareConfig()),this.fpInput().addEventListener("blur",this.onBlur),this.$watch("disabled",this.watchDisabled,{immediate:!0}))},methods:{prepareConfig(){let t=Object.assign({},this.config);this.events.forEach(e=>{let i=Zn.defaultConfig[e]||[],u=(...r)=>{this.$emit(P1(e),...r)};t[e]=I1(t[e]||[]).concat(i,u)});const n=this.onClose.bind(this);return t.onClose=I1(t.onClose||[]).concat(n),t.defaultDate=this.modelValue||t.defaultDate,t},getElem(){return this.config.wrap?this.$el.parentNode:this.$el},onInput(t){const n=t.target;h.nextTick().then(()=>{this.$emit("update:modelValue",Ef(n.value))})},fpInput(){return this.fp.altInput||this.fp.input},onBlur(t){this.$emit("blur",Ef(t.target.value))},onClose(t,n){this.$emit("update:modelValue",n)},watchDisabled(t){t?this.fpInput().setAttribute("disabled",""):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler(t){if(!this.fp)return;let n=Object.assign({},t);R1.forEach(e=>{delete n[e]}),this.fp.set(n),eC.forEach(e=>{typeof n[e]<"u"&&this.fp.set(e,n[e])})}},modelValue(t){var n;!this.$el||t===Ef(this.$el.value)||(n=this.fp)===null||n===void 0||n.setDate(t,!0)}},beforeUnmount(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}});var Pl={exports:{}},nC=Pl.exports,D1;function rC(){return D1||(D1=1,(function(t,n){(function(e,i){i(n)})(nC,(function(e){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},u={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até ",time_24hr:!0};i.l10ns.pt=u;var r=i.l10ns;e.Portuguese=u,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))})(Pl,Pl.exports)),Pl.exports}var iC=rC();const aC={class:"app-picker-field"},z2=h.defineComponent({__name:"DateTimePicker",props:h.mergeModels({label:{},placeholder:{},hint:{},persistentHint:{type:Boolean},errorText:{type:[String,Boolean]},disabled:{type:Boolean},readonly:{type:Boolean},rules:{},config:{},minDate:{},allDay:{type:Boolean},variant:{default:"outlined"},prependIcon:{},appendIcon:{},prependInnerIcon:{},appendInnerIcon:{}},{modelValue:{default:""},modelModifiers:{}}),emits:h.mergeModels(["click:clear"],["update:modelValue"]),setup(t,{emit:n}){Zn.localize(iC.Portuguese);const e=t,i=h.useModel(t,"modelValue"),u=n,r=h.ref(null),s=h.ref(!1),l=h.ref(!1),o=Hy.useTheme(),a=()=>{const g=r.value?.fp?.calendarContainer;g&&(Object.keys(o.themes.value).forEach(m=>g.classList.remove(`v-theme--${m}`)),g.classList.add(`v-theme--${o.global.name.value}`))},c=g=>{if(g.todayButtonAdded)return;const m=document.createElement("button");m.type="button",m.textContent="Hoje",m.className="flatpickr-today-btn",m.addEventListener("click",()=>{g.setDate(new Date,!0),g.close()});const y=document.createElement("div");y.className="flatpickr-footer",y.appendChild(m),g.calendarContainer?.appendChild(y),g.todayButtonAdded=!0},p=h.computed(()=>({...e.config,...e.minDate?{minDate:e.minDate}:{},altInput:!0,allowInput:!0,onReady:[...e.config?.onReady||[],(g,m,y)=>c(y)]}));h.watch(()=>o.global.name.value,a),h.onMounted(a);const f=g=>{if(g===""||Array.isArray(g)&&g.length===0){i.value=null;return}i.value=g},d=g=>{g.stopPropagation(),h.nextTick(()=>{i.value=null,u("click:clear",g)})},v=h.computed(()=>typeof e.errorText=="string"&&e.errorText?[e.errorText]:[]);return(g,m)=>(h.openBlock(),h.createElementBlock("div",aC,[h.createVNode(Si,{class:"position-relative v-text-field",density:"compact","hide-details":"auto","model-value":i.value,rules:t.rules,disabled:t.disabled,readonly:t.readonly,"error-messages":v.value,hint:t.hint,"persistent-hint":t.persistentHint,"prepend-icon":t.prependIcon,"append-icon":t.appendIcon},{default:h.withCtx(({id:y,isDirty:b,isDisabled:w,isReadonly:A,validate:T})=>[h.createVNode(as,{id:y.value,role:"textbox",label:t.label,variant:t.variant,color:"primary",active:s.value||b.value||l.value,focused:s.value||l.value,dirty:b.value,disabled:w.value,"prepend-inner-icon":t.prependInnerIcon,"append-inner-icon":t.appendInnerIcon,"onClick:clear":d},{default:h.withCtx(({props:F})=>[h.createElementVNode("div",h.normalizeProps(h.guardReactiveProps(F)),[h.createVNode(h.unref(tC),{ref_key:"refFlatPicker",ref:r,config:p.value,"model-value":i.value,placeholder:t.placeholder,readonly:A.value,disabled:w.value,class:"flat-picker-custom-style h-100 w-100",onOnOpen:m[0]||(m[0]=H=>l.value=!0),onOnClose:H=>{l.value=!1,T()},onFocus:m[1]||(m[1]=H=>s.value=!0),onBlur:m[2]||(m[2]=H=>s.value=!1),"onUpdate:modelValue":f},null,8,["config","model-value","placeholder","readonly","disabled","onOnClose"])],16)]),_:2},1032,["id","label","variant","active","focused","dirty","disabled","prepend-inner-icon","append-inner-icon"])]),_:1},8,["model-value","rules","disabled","readonly","error-messages","hint","persistent-hint","prepend-icon","append-icon"])]))}}),uu={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},el={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Xr={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},oC={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},sC={dangerouslyHTMLString:!1,multiple:!0,position:uu.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},lC={rtl:!1,newestOnTop:!1,toastClassName:""},$2={...sC,...lC};Xr.DEFAULT;var wn=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(wn||{}),vh=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(vh||{});const uC={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},cC={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},dC={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},fC={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},L1="Toastify--animate Toastify__none-enter";function U2(t,n=!1){var e;let i=uC;if(!t||typeof t=="string")switch(t){case"flip":i=fC;break;case"zoom":i=dC;break;case"slide":i=cC;break}else i=t;if(n)i.enter=L1;else if(i.enter===L1){const u=(e=i.exit.split("__")[1])==null?void 0:e.split("-")[0];i.enter=`Toastify--animate Toastify__${u}-enter`}return i}function hC(t){return t.containerId||String(t.position)}const od="will-unmount";function pC(t=uu.TOP_RIGHT){return!!document.querySelector(`.${wn.CSS_NAMESPACE}__toast-container--${t}`)}function mC(t=uu.TOP_RIGHT){return`${wn.CSS_NAMESPACE}__toast-container--${t}`}function gC(t,n,e=!1){const i=[`${wn.CSS_NAMESPACE}__toast-container`,`${wn.CSS_NAMESPACE}__toast-container--${t}`,e?`${wn.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Ws(n)?n({position:t,rtl:e,defaultClassName:i}):`${i} ${n||""}`}function vC(t){var n;const{position:e,containerClassName:i,rtl:u=!1,style:r={}}=t,s=wn.CSS_NAMESPACE,l=mC(e),o=document.querySelector(`.${s}`),a=document.querySelector(`.${l}`),c=!!a&&!((n=a.className)!=null&&n.includes(od)),p=o||document.createElement("div"),f=document.createElement("div");f.className=gC(e,i,u),f.dataset.testid=`${wn.CSS_NAMESPACE}__toast-container--${e}`,f.id=hC(t);for(const d in r)if(Object.prototype.hasOwnProperty.call(r,d)){const v=r[d];f.style[d]=v}return o||(p.className=wn.CSS_NAMESPACE,document.body.appendChild(p)),c||p.appendChild(f),f}function bh(t){var n,e,i;const u=typeof t=="string"?t:((n=t.currentTarget)==null?void 0:n.id)||((e=t.target)==null?void 0:e.id),r=document.getElementById(u);r&&r.removeEventListener("animationend",bh,!1);try{Zl[u].unmount(),(i=document.getElementById(u))==null||i.remove(),delete Zl[u],delete _r[u]}catch{}}const Zl=h.reactive({});function bC(t,n){const e=document.getElementById(String(n));e&&(Zl[e.id]=t)}function yh(t,n=!0){const e=String(t);if(!Zl[e])return;const i=document.getElementById(e);i&&i.classList.add(od),n?(wC(t),i&&i.addEventListener("animationend",bh,!1)):bh(e),ma.items=ma.items.filter(u=>u.containerId!==t)}function yC(t){for(const n in Zl)yh(n,t);ma.items=[]}function H2(t,n){const e=document.getElementById(t.toastId);if(e){let i=t;i={...i,...U2(i.transition)};const u=i.appendPosition?`${i.exit}--${i.position}`:i.exit;e.className+=` ${u}`,n&&n(e)}}function wC(t){for(const n in _r)if(n===t)for(const e of _r[n]||[])H2(e)}function xC(t){const n=tl().find(e=>e.toastId===t);return n?.containerId}function dp(t){return document.getElementById(t)}function _C(t){const n=dp(t.containerId);return n&&n.classList.contains(od)}function O1(t){var n;const e=h.isVNode(t.content)?h.toRaw(t.content.props):null;return e??h.toRaw((n=t.data)!=null?n:{})}function SC(t){return t?ma.items.filter(n=>n.containerId===t).length>0:ma.items.length>0}function kC(){if(ma.items.length>0){const t=ma.items.shift();sc(t?.toastContent,t?.toastProps)}}const _r=h.reactive({}),ma=h.reactive({items:[]});function tl(){const t=h.toRaw(_r);return Object.values(t).reduce((n,e)=>[...n,...e],[])}function CC(t){return tl().find(n=>n.toastId===t)}function sc(t,n={}){if(_C(n)){const e=dp(n.containerId);e&&e.addEventListener("animationend",wh.bind(null,t,n),!1)}else wh(t,n)}function wh(t,n={}){const e=dp(n.containerId);e&&e.removeEventListener("animationend",wh.bind(null,t,n),!1);const i=_r[n.containerId]||[],u=i.length>0;if(!u&&!pC(n.position)){const r=vC(n),s=h.createApp(qC,n);n.useHandler&&n.useHandler(s),s.mount(r),bC(s,r.id)}u&&!n.updateId&&(n.position=i[0].position),h.nextTick(()=>{n.updateId?yi.update(n):yi.add(t,n)})}const yi={add(t,n){const{containerId:e=""}=n;e&&(_r[e]=_r[e]||[],_r[e].find(i=>i.toastId===n.toastId)||setTimeout(()=>{var i,u;n.newestOnTop?(i=_r[e])==null||i.unshift(n):(u=_r[e])==null||u.push(n),n.onOpen&&n.onOpen(O1(n))},n.delay||0))},remove(t){if(t){const n=xC(t);if(n){const e=_r[n];let i=e.find(u=>u.toastId===t);_r[n]=e.filter(u=>u.toastId!==t),!_r[n].length&&!SC(n)&&yh(n,!1),kC(),h.nextTick(()=>{i!=null&&i.onClose&&(i.onClose(O1(i)),i=void 0)})}}},update(t={}){const{containerId:n=""}=t;if(n&&t.updateId){_r[n]=_r[n]||[];const e=_r[n].find(r=>r.toastId===t.toastId),i=e?.position!==t.position||e?.transition!==t.transition,u={...t,disabledEnterTransition:!i,updateId:void 0};yi.dismissForce(t?.toastId),setTimeout(()=>{Pn(u.content,u)},t.delay||0)}},clear(t,n=!0){t?yh(t,n):yC(n)},dismissCallback(t){var n;const e=(n=t.currentTarget)==null?void 0:n.id,i=document.getElementById(e);i&&(i.removeEventListener("animationend",yi.dismissCallback,!1),setTimeout(()=>{yi.remove(e)}))},dismiss(t){if(t){const n=tl();for(const e of n)if(e.toastId===t){H2(e,i=>{i.addEventListener("animationend",yi.dismissCallback,!1)});break}}},dismissForce(t){if(t){const n=tl();for(const e of n)if(e.toastId===t){const i=document.getElementById(t);i&&(i.remove(),i.removeEventListener("animationend",yi.dismissCallback,!1),yi.remove(t));break}}}},AC=h.reactive({useHandler:void 0}),q2=h.reactive({}),Tc=h.reactive({});function W2(){return Math.random().toString(36).substring(2,9)}function NC(t){return typeof t=="number"&&!isNaN(t)}function xh(t){return typeof t=="string"}function Ws(t){return typeof t=="function"}function sd(...t){return h.mergeProps(...t)}function lc(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function EC(t={}){q2[`${wn.CSS_NAMESPACE}-default-options`]=t}function MC(){return q2[`${wn.CSS_NAMESPACE}-default-options`]||$2}function TC(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var uc=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(uc||{});const G2={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:uu.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:el.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Xr.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},PC={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Xr.DEFAULT},theme:{type:String,required:!1,default:el.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},IC=h.defineComponent({name:"ProgressBar",props:PC,setup(t,{attrs:n}){const e=h.ref(),i=h.computed(()=>t.hide?"true":"false"),u=h.computed(()=>({...n.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),r=h.computed(()=>[`${wn.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${wn.CSS_NAMESPACE}__progress-bar--controlled`:`${wn.CSS_NAMESPACE}__progress-bar--animated`,`${wn.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${wn.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${wn.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),s=h.computed(()=>`${r.value} ${n?.class||""}`),l=()=>{e.value&&(e.value.onanimationend=null,e.value.ontransitionend=null)},o=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),l())},a=h.computed(()=>t.controlledProgress?null:o),c=h.computed(()=>t.controlledProgress?o:null);return h.watchEffect(()=>{e.value&&(l(),e.value.onanimationend=a.value,e.value.ontransitionend=c.value)}),()=>h.createVNode("div",{ref:e,role:"progressbar","aria-hidden":i.value,"aria-label":"notification timer",class:s.value,style:u.value},null)}}),RC=h.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:el.AUTO},type:{type:String,required:!1,default:el.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>h.createVNode("button",{class:`${wn.CSS_NAMESPACE}__close-button ${wn.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:n=>{n.stopPropagation(),t.closeToast&&t.closeToast(n)},"aria-label":t.ariaLabel},[h.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[h.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),ld=({theme:t,type:n,path:e,...i})=>h.createVNode("svg",h.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`},i),[h.createVNode("path",{d:e},null)]);function DC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function LC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function OC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function FC(t){return h.createVNode(ld,h.mergeProps(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function BC(){return h.createVNode("div",{class:`${wn.CSS_NAMESPACE}__spinner`},null)}const cc={info:LC,warning:DC,success:OC,error:FC,spinner:BC},jC=t=>t in cc;function VC({theme:t,type:n,isLoading:e,icon:i}){let u;const r=!!e||n==="loading",s={theme:t,type:n};if(r&&(i===void 0||typeof i=="boolean"))return cc.spinner();if(i!==!1){if(lc(i))u=h.toRaw(i);else if(Ws(i)){const l=i;s.type=r?"loading":n,u=l(s),u=!u&&r?cc.spinner():u}else h.isVNode(i)?u=h.cloneVNode(i,s):xh(i)||NC(i)?u=i:jC(n)&&(u=cc[n](s));return u}}const zC=()=>{};function $C(t,n,e=wn.COLLAPSE_DURATION){const{scrollHeight:i,style:u}=t,r=e;requestAnimationFrame(()=>{u.minHeight="initial",u.height=i+"px",u.transition=`all ${r}ms`,requestAnimationFrame(()=>{u.height="0",u.padding="0",u.margin="0",setTimeout(n,r)})})}function UC(t){const n=h.ref(!1),e=h.ref(!1),i=h.ref(!1),u=h.ref(uc.Enter),r=h.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||wn.COLLAPSE_DURATION}),s=r.done||zC,l=h.computed(()=>r.appendPosition?`${r.enter}--${r.position}`:r.enter),o=h.computed(()=>r.appendPosition?`${r.exit}--${r.position}`:r.exit),a=h.computed(()=>t.pauseOnHover?{onMouseenter:m,onMouseleave:g}:{});function c(){const b=l.value.split(" ");f().addEventListener(vh.ENTRANCE_ANIMATION_END,g,{once:!0});const w=T=>{const F=f();T.target===F&&(F.dispatchEvent(new Event(vh.ENTRANCE_ANIMATION_END)),F.removeEventListener("animationend",w),F.removeEventListener("animationcancel",w),u.value===uc.Enter&&T.type!=="animationcancel"&&F.classList.remove(...b))},A=()=>{const T=f();T.classList.add(...b),T.addEventListener("animationend",w),T.addEventListener("animationcancel",w)};t.pauseOnFocusLoss&&d(),A()}function p(){if(!f())return;const b=()=>{const A=f();A.removeEventListener("animationend",b),r.collapse?$C(A,s,r.collapseDuration):s()},w=()=>{const A=f();u.value=uc.Exit,A&&(A.className+=` ${o.value}`,A.addEventListener("animationend",b))};e.value||(i.value?b():setTimeout(w))}function f(){return t.toastRef.value}function d(){document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m)}function v(){window.removeEventListener("focus",g),window.removeEventListener("blur",m)}function g(){(!t.loading.value||t.isLoading===void 0)&&(n.value=!0)}function m(){n.value=!1}function y(b){b&&(b.stopPropagation(),b.preventDefault()),e.value=!1}return h.watchEffect(p),h.watchEffect(()=>{const b=tl();e.value=b.findIndex(w=>w.toastId===r.toastId)>-1}),h.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?m():g())}),h.onMounted(c),h.onUnmounted(()=>{t.pauseOnFocusLoss&&v()}),{isIn:e,isRunning:n,hideToast:y,eventHandlers:a}}const HC=h.defineComponent({name:"ToastItem",inheritAttrs:!1,props:G2,setup(t){const n=h.ref(),e=h.computed(()=>!!t.isLoading),i=h.computed(()=>t.progress!==void 0&&t.progress!==null),u=h.computed(()=>VC(t)),r=h.computed(()=>[`${wn.CSS_NAMESPACE}__toast`,`${wn.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${wn.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${wn.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:l,hideToast:o,eventHandlers:a}=UC({toastRef:n,loading:e,done:()=>{yi.remove(t.toastId)},...U2(t.transition,t.disabledEnterTransition),...t});return()=>h.createVNode("div",h.mergeProps({id:t.toastId,class:r.value,style:t.toastStyle||{},ref:n,"data-testid":`toast-item-${t.toastId}`,onClick:c=>{t.closeOnClick&&o(),t.onClick&&t.onClick(c)}},a.value),[h.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${wn.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[u.value!=null&&h.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${wn.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${wn.CSS_NAMESPACE}--animate-icon ${wn.CSS_NAMESPACE}__zoom-enter`].join(" ")},[lc(u.value)?h.h(h.toRaw(u.value),{theme:t.theme,type:t.type}):Ws(u.value)?u.value({theme:t.theme,type:t.type}):u.value]),h.createVNode("div",{"data-testid":"toast-content"},[lc(t.content)?h.h(h.toRaw(t.content),{toastProps:h.toRaw(t),closeToast:o,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):Ws(t.content)?t.content({toastProps:h.toRaw(t),closeToast:o,data:t.data}):t.dangerouslyHTMLString?h.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&h.createVNode(RC,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),o()}},null),lc(t.closeButton)?h.h(h.toRaw(t.closeButton),{closeToast:o,type:t.type,theme:t.theme}):Ws(t.closeButton)?t.closeButton({closeToast:o,type:t.type,theme:t.theme}):null,h.createVNode(IC,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:l.value,type:t.type,hide:t.hideProgressBar,isRunning:s.value,autoClose:t.autoClose,controlledProgress:i.value,progress:t.progress,closeToast:t.isLoading?void 0:o},null)])}});let Vl=0;function K2(){typeof window>"u"||(Vl&&window.cancelAnimationFrame(Vl),Vl=window.requestAnimationFrame(K2),Tc.lastUrl!==window.location.href&&(Tc.lastUrl=window.location.href,yi.clear()))}const qC=h.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:G2,setup(t){const n=h.computed(()=>t.containerId),e=h.computed(()=>_r[n.value]||[]),i=h.computed(()=>e.value.filter(u=>u.position===t.position));return h.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(K2)}),h.onUnmounted(()=>{typeof window<"u"&&Vl&&(window.cancelAnimationFrame(Vl),Tc.lastUrl="")}),()=>h.createVNode(h.Fragment,null,[i.value.map(u=>{const{toastId:r=""}=u;return h.createVNode(HC,h.mergeProps({key:r},u),null)})])}});let Mf=!1;const Y2={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function X2(){const t=[];return tl().forEach(n=>{const e=document.getElementById(n.containerId);e&&!e.classList.contains(od)&&t.push(n)}),t}function WC(t){const n=X2().length,e=t??0;return e>0&&n+ma.items.length>=e}function GC(t){WC(t.limit)&&!t.updateId&&ma.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function Eo(t,n,e={}){if(Mf)return;e=sd(MC(),{type:n},h.toRaw(e)),(!e.toastId||typeof e.toastId!="string"&&typeof e.toastId!="number")&&(e.toastId=W2()),e={...e,...e.type==="loading"?Y2:{},content:t,containerId:e.containerId||String(e.position)};const i=Number(e?.progress);return!isNaN(i)&&i<0&&(e.progress=0),i>1&&(e.progress=1),e.theme==="auto"&&(e.theme=TC()),GC(e),Tc.lastUrl=window.location.href,e.multiple?ma.items.length?e.updateId&&sc(t,e):sc(t,e):(Mf=!0,Pn.clearAll(void 0,!1),setTimeout(()=>{sc(t,e)},0),setTimeout(()=>{Mf=!1},390)),e.toastId}const Pn=(t,n)=>Eo(t,Xr.DEFAULT,n);Pn.info=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.INFO});Pn.error=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.ERROR});Pn.warning=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.WARNING});Pn.warn=Pn.warning;Pn.success=(t,n)=>Eo(t,Xr.DEFAULT,{...n,type:Xr.SUCCESS});Pn.loading=(t,n)=>Eo(t,Xr.DEFAULT,sd(n,Y2));Pn.dark=(t,n)=>Eo(t,Xr.DEFAULT,sd(n,{theme:el.DARK}));Pn.remove=t=>{t?yi.dismiss(t):yi.clear()};Pn.clearAll=(t,n)=>{h.nextTick(()=>{yi.clear(t,n)})};Pn.isActive=t=>{let n=!1;return n=X2().findIndex(e=>e.toastId===t)>-1,n};Pn.update=(t,n={})=>{setTimeout(()=>{const e=CC(t);if(e){const i=h.toRaw(e),{content:u}=i,r={...i,...n,toastId:n.toastId||t,updateId:W2()},s=r.render||u;delete r.render,Eo(s,r.type,r)}},0)};Pn.done=t=>{Pn.update(t,{isLoading:!1,progress:1})};Pn.promise=KC;function KC(t,{pending:n,error:e,success:i},u){var r,s,l;let o;const a={...u||{},autoClose:!1};n&&(o=xh(n)?Pn.loading(n,a):Pn.loading(n.render,{...a,...n}));const c={autoClose:(r=u?.autoClose)!=null?r:!0,closeOnClick:(s=u?.closeOnClick)!=null?s:!0,closeButton:(l=u?.autoClose)!=null?l:null,isLoading:void 0,draggable:null,delay:100},p=(d,v,g)=>{if(v==null){Pn.remove(o);return}const m={type:d,...c,...u,data:g},y=xh(v)?{render:v}:v;return o?Pn.update(o,{...m,...y,isLoading:!1}):Pn(y.render,{...m,...y,isLoading:!1}),g},f=Ws(t)?t():t;return f.then(d=>{p("success",i,d)}).catch(d=>{p("error",e,d)}),f}Pn.POSITION=uu;Pn.THEME=el;Pn.TYPE=Xr;Pn.TRANSITIONS=oC;const YC={install(t,n={}){AC.useHandler=n.useHandler||(()=>{}),XC(n)}};typeof window<"u"&&(window.Vue3Toastify=YC);function XC(t={}){const n=sd($2,t);EC(n)}async function F1(t,n,e,i,u,r){Pn(t,{theme:"auto",type:n,position:"top-right",pauseOnFocusLoss:!1,autoClose:5e3,hideProgressBar:!1,dangerouslyHTMLString:!0})}function Z2(t,n){const e=()=>{F1("unexpectedError","error")};try{n&&(t.message||t.data)||t.message&&F1(t.message,"error")}catch{e()}finally{console.error(t)}}const ZC={class:"d-flex ga-1 align-center"},JC={key:0,class:"w-100"},QC={key:1},eA={key:2,class:"ma-0 text-center w-100"},tA=h.defineComponent({__name:"RemoteSearchField",props:h.mergeModels({searchFunction:{},placeholder:{},label:{},itemTitle:{},itemValue:{},itemSubtitle:{},itemComponent:{},errors:{},returnObject:{type:Boolean},secondParam:{},createComponent:{},createData:{},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},appendIcon:{},appendIconAction:{type:Function},appendIconTooltip:{},appendIconColor:{},appendIconAlwaysActive:{type:Boolean},searchContextKey:{},exclude:{type:Function}},{value:{default:null},valueModifiers:{},items:{type:Array,default:()=>[]},itemsModifiers:{}}),emits:h.mergeModels(["update:value"],["update:value","update:items"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"value"),u=h.useModel(t,"items"),r=h.ref(""),s=h.ref(!1),l=h.ref(!1),o=h.ref(),a=h.ref(!1),c=h.ref(null);let p=0;const f=h.computed(()=>o.value?[...u.value.filter(k=>g(k)!=g(o.value))]:u.value??[]),d=k=>e.itemTitle.split(".").reduce((j,P)=>j[P],k),v=k=>e.itemSubtitle?e.itemSubtitle.split(".").reduce((j,P)=>j[P],k):null,g=k=>k?e.itemValue.split(".").reduce((j,P)=>j[P],k):null,m=async k=>{if(!e.searchFunction)return[];try{return(e.secondParam!=null?await e.searchFunction(k??"",e.secondParam):await e.searchFunction(k??""))??[]}catch(M){return Z2(M),[]}},y=async(k=r.value)=>{const M=++p;l.value=!0;const j=await m(k);M===p&&(u.value=j,c.value=k,l.value=!1)},b=up(()=>{a.value&&y()},500),w=()=>{a.value=!1,r.value="",c.value=null},A=(k=!0)=>{e.disabled||(a.value=!0,k&&c.value!==r.value&&y())},T=k=>{k?A():w()},F=(k,M=!0)=>{o.value=k,M&&(i.value=e.returnObject?k:g(k)),w()},H=(k,M=!0)=>{r.value=k,M&&b()},I=h.computed(()=>a.value?r.value:o.value?d(o.value):""),D=h.computed(()=>o.value?a.value?d(o.value):"":e.placeholder),z=k=>{k&&A()},$=k=>{A(!1),H(k)},O=async()=>{if(e.disabled)return;c.value!==r.value&&await y();const k=f.value[0];k&&F(k)},N=()=>{F(null)},E=async k=>{k&&(F(k),H("")),s.value=!1},C=h.computed(()=>e.returnObject?g(i.value):i.value),x=h.computed(()=>!!i.value&&!!o.value&&g(o.value)==C.value),_=async()=>{if(!i.value){o.value=null;return}if(e.returnObject){o.value=i.value;return}const M=(await m(String(i.value))).find(j=>g(j)==i.value);o.value=M??null,M||(i.value=null)},S=h.ref(e.searchContextKey);return h.watch([()=>i.value,()=>e.searchContextKey],async([,k])=>{const M=k!=S.value;S.value=k,!(!M&&x.value)&&await _()},{immediate:!0}),h.watch(()=>e.secondParam,async()=>{c.value=null,a.value&&y(),await _()}),h.onUnmounted(()=>{u.value=[]}),(k,M)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(Wa,{modelValue:a.value,"onUpdate:modelValue":[M[5]||(M[5]=j=>a.value=j),T],"close-on-content-click":!1,disabled:e.disabled,"open-on-click":!1},{activator:h.withCtx(({props:j,isActive:P})=>[h.createVNode(Kr,h.mergeProps(j,{density:"compact",label:e.label,"model-value":I.value,placeholder:D.value,dirty:!!o.value||P,active:!!o.value||P,"error-messages":e.errors,disabled:e.disabled,class:"activator",onClick:M[2]||(M[2]=U=>A()),"onUpdate:focused":z,"onUpdate:modelValue":$,onKeydown:h.withKeys(h.withModifiers(O,["prevent"]),["enter"])}),h.createSlots({_:2},[o.value&&!e.disabled?{name:"append-inner",fn:h.withCtx(()=>[h.createVNode(au,{size:"x-small",icon:"ri-close-line",variant:"text",class:"rounded",tabindex:"-1",onClick:h.withModifiers(N,["stop"])})]),key:"0"}:void 0,e.createComponent||e.appendIcon?{name:"append",fn:h.withCtx(()=>[h.createElementVNode("div",ZC,[e.createComponent?(h.openBlock(),h.createBlock(qt,{key:0,tabindex:"-1",onClick:M[0]||(M[0]=h.withModifiers(U=>s.value=!0,["stop"])),size:"18"},{default:h.withCtx(()=>[...M[8]||(M[8]=[h.createTextVNode(" ri-add-line ",-1)])]),_:1})):h.createCommentVNode("",!0),h.createElementVNode("span",{class:h.normalizeClass(["append-icon-wrap",{"append-icon-active":e.disabled}])},[e.appendIcon?(h.openBlock(),h.createBlock(_n,{key:0,icon:"",variant:"text",size:"18",tabindex:"-1"},{default:h.withCtx(()=>[h.createVNode(qt,{size:"18",tabindex:"-1",color:e.appendIconColor,onClick:M[1]||(M[1]=h.withModifiers(U=>e.appendIconAction?e.appendIconAction():"",["stop"]))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.appendIcon),1)]),_:1},8,["color"]),e.appendIconTooltip?(h.openBlock(),h.createBlock(Wc,{key:0,activator:"parent"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.appendIconTooltip),1)]),_:1})):h.createCommentVNode("",!0)]),_:1})):h.createCommentVNode("",!0)],2)])]),key:"1"}:void 0]),1040,["label","model-value","placeholder","dirty","active","error-messages","disabled","onKeydown"])]),default:h.withCtx(()=>[h.createVNode(us,{class:"py-2",density:"compact","max-height":"300"},{default:h.withCtx(()=>[l.value?(h.openBlock(),h.createElementBlock("div",JC,[h.createVNode(vS,{type:"list-item-two-line, list-item-two-line"})])):f.value.length?(h.openBlock(),h.createElementBlock("div",QC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.value,j=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[e.itemComponent?(h.openBlock(),h.createElementBlock("span",{key:0,onMousedown:M[3]||(M[3]=h.withModifiers(()=>{},["prevent"]))},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.itemComponent),{item:j,onClick:P=>F(j)},null,8,["item","onClick"]))],32)):(h.openBlock(),h.createBlock(dr,{key:1,title:d(j),subtitle:v(j),onMousedown:M[4]||(M[4]=h.withModifiers(()=>{},["prevent"])),onClick:P=>F(j)},null,8,["title","subtitle","onClick"]))],64))),256))])):(h.openBlock(),h.createElementBlock("p",eA," Nenhum resultado encontrado... "))]),_:1})]),_:1},8,["modelValue","disabled"]),e.createComponent?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.createComponent),{key:0,data:e.createData,"show-modal":s.value,"onUpdate:showModal":M[6]||(M[6]=j=>s.value=j),"is-dialog-visible":s.value,"onUpdate:isDialogVisible":M[7]||(M[7]=j=>s.value=j),onCreate:E},null,40,["data","show-modal","is-dialog-visible"])):h.createCommentVNode("",!0)],64))}}),J2=ji(tA,[["__scopeId","data-v-cc765103"]]),nA={class:"d-flex flex-wrap ga-1 display-value"},rA={key:0,class:"w-100 d-flex align-center justify-center"},iA={key:1},aA={key:2,class:"ma-0 text-center w-100"},oA=h.defineComponent({__name:"RemoteMultipleSearchField",props:h.mergeModels({searchFunction:{},placeholder:{},label:{},itemTitle:{},itemValue:{},itemComponent:{},errors:{},returnObject:{type:Boolean},secondParam:{},createComponent:{},createData:{},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},exclude:{type:Function}},{value:{default:()=>[]},valueModifiers:{},items:{type:Array,default:()=>[]},itemsModifiers:{}}),emits:h.mergeModels(["update:value"],["update:value","update:items"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"value"),u=h.useModel(t,"items"),r=h.ref(""),s=h.ref(!1),l=h.ref(!1),o=h.ref([]),a=h.ref(!1),c=h.ref(null);let p=0;const f=h.computed(()=>{const E=o.value.map(C=>v(C));return u.value.filter(C=>!E.includes(v(C)))}),d=E=>e.itemTitle.split(".").reduce((x,_)=>x[_],E),v=E=>E?e.itemValue.split(".").reduce((x,_)=>x[_],E):null,g=async E=>{if(!e.searchFunction)return[];try{return(e.secondParam!=null?await e.searchFunction(E??"",e.secondParam):await e.searchFunction(E??""))??[]}catch(C){return Z2(C),[]}},m=async(E=r.value)=>{const C=++p;l.value=!0;const x=await g(E);C===p&&(u.value=x,c.value=E,l.value=!1)},y=up(()=>{a.value&&m()},500),b=E=>{const C=v(E);o.value.some(_=>v(_)===C)?o.value=o.value.filter(_=>v(_)!==C):o.value.push(E),i.value=o.value.map(_=>e.returnObject?_:v(_)),r.value="",c.value!==""&&m("")},w=(E,C=!0)=>{r.value=E,C&&y()},A=()=>{a.value=!1,r.value="",c.value=null},T=(E=!0)=>{e.disabled||(a.value=!0,E&&c.value!==r.value&&m())},F=E=>{E?T():A()},H=E=>{E&&T()},I=E=>{T(!1),w(E)},D=async()=>{if(e.disabled)return;c.value!==r.value&&await m();const E=f.value[0];E&&b(E)},z=()=>{o.value=[],i.value=[]},$=async E=>{E&&(b(E),w("")),s.value=!1},O=h.computed(()=>{const E=i.value??[];return E.length===o.value.length&&E.every(C=>o.value.some(x=>v(x)==C))}),N=async()=>{const E=i.value??[];if(!E.length){o.value=[];return}if(e.returnObject){o.value=E;return}const C=[],x=[],_=await g("");if(E.forEach(S=>{const k=_.find(M=>v(M)==S);k?C.push(k):x.push(S)}),x.length){const S=await Promise.all(x.map(k=>g(String(k))));x.forEach((k,M)=>{const j=S[M].find(P=>v(P)==k);j&&C.push(j)})}o.value=C};return h.watch(()=>i.value,async()=>{O.value||await N()},{immediate:!0}),(E,C)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(Wa,{modelValue:a.value,"onUpdate:modelValue":[C[4]||(C[4]=x=>a.value=x),F],"close-on-content-click":!1,disabled:e.disabled,"open-on-click":!1},{activator:h.withCtx(({props:x,isActive:_})=>[h.createVNode(Kr,h.mergeProps(x,{density:"compact",label:e.label,"model-value":r.value,placeholder:o.value.length?"":e.placeholder,dirty:!!o.value.length||_,active:!!o.value.length||_,"error-messages":e.errors,disabled:e.disabled,class:"activator",onClick:C[1]||(C[1]=S=>T()),"onUpdate:focused":H,"onUpdate:modelValue":I,onKeydown:h.withKeys(h.withModifiers(D,["prevent"]),["enter"])}),h.createSlots({default:h.withCtx(()=>[h.createElementVNode("span",nA,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,S=>(h.openBlock(),h.createBlock(_i,{key:v(S),closable:"",size:"small","onClick:close":k=>b(S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d(S)),1)]),_:2},1032,["onClick:close"]))),128))])]),_:2},[o.value.length?{name:"append-inner",fn:h.withCtx(()=>[h.createVNode(au,{size:"x-small",icon:"ri-close-line",variant:"text",class:"rounded",tabindex:"-1",onClick:h.withModifiers(z,["stop"])})]),key:"0"}:void 0,e.createComponent?{name:"append",fn:h.withCtx(()=>[h.createVNode(qt,{tabindex:"-1",onClick:C[0]||(C[0]=h.withModifiers(S=>s.value=!0,["stop"]))},{default:h.withCtx(()=>[...C[7]||(C[7]=[h.createTextVNode(" ri-add-line ",-1)])]),_:1})]),key:"1"}:void 0]),1040,["label","model-value","placeholder","dirty","active","error-messages","disabled","onKeydown"])]),default:h.withCtx(()=>[h.createVNode(us,{class:"py-2",density:"compact","max-height":"300"},{default:h.withCtx(()=>[l.value?(h.openBlock(),h.createElementBlock("div",rA,[h.createVNode(Lc,{indeterminate:"",size:"20"})])):f.value.length?(h.openBlock(),h.createElementBlock("div",iA,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.value,x=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v(x)},[e.itemComponent?(h.openBlock(),h.createElementBlock("span",{key:0,onMousedown:C[2]||(C[2]=h.withModifiers(()=>{},["prevent"]))},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.itemComponent),{item:x,onClick:_=>b(x)},null,8,["item","onClick"]))],32)):(h.openBlock(),h.createBlock(dr,{key:1,title:d(x),onMousedown:C[3]||(C[3]=h.withModifiers(()=>{},["prevent"])),onClick:_=>b(x)},null,8,["title","onClick"]))],64))),128))])):(h.openBlock(),h.createElementBlock("p",aA," Nenhum resultado encontrado... "))]),_:1})]),_:1},8,["modelValue","disabled"]),e.createComponent?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.createComponent),{key:0,data:e.createData,"show-modal":s.value,"onUpdate:showModal":C[5]||(C[5]=x=>s.value=x),"is-dialog-visible":s.value,"onUpdate:isDialogVisible":C[6]||(C[6]=x=>s.value=x),onCreate:$},null,40,["data","show-modal","is-dialog-visible"])):h.createCommentVNode("",!0)],64))}}),Q2=ji(oA,[["__scopeId","data-v-4f0e453d"]]),sA={AC:"+247 #####",AD:["+376 ### ###","+376 #### ####"],AE:["+971 # ### ####","+971 ## ### ####","+971 ### ######","+971 ### # #####"],AF:"+93 ## ### ####",AG:"+1 ###-###-####",AI:"+1 ###-###-####",AL:["+355 ## ### ###","+355 ## ### ####","+355 ### ####","+355 ### ###","+355 ### #####"],AM:["+374 ## ######","+374 ### ## ###"],AO:"+244 ### ### ###",AR:["+54 ## ####-####","+54 # ## ####-####","+54 ###-###-####"],AS:"+1 ###-###-####",AT:["+43 # #########","+43 ### ######"],AU:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###","+61 ## ### ##"],AW:"+297 ### ####",AX:["+358 ## #######","+358 ### ######"],AZ:["+994 ## ### ## ##","+994 ### ## ## ##"],BA:["+387 ## ###-###","+387 ## ### ###"],BB:"+1 ###-###-####",BD:["+880 #-#######","+880 ####-######","+880 ###-#######"],BE:["+32 ## ## ## ##","+32 ### ## ## ##","+32 ### ## ###"],BF:"+226 ## ## ## ##",BG:["+359 # ### ###","+359 ## ### ###","+359 ### ## ###"],BH:"+973 #### ####",BI:"+257 ## ## ## ##",BJ:["+229 ## ## ## ## ##","+229 ## ## ## ##"],BL:"+590 ### ## ## ##",BM:"+1 ###-###-####",BN:"+673 ### ####",BO:["+591 # #######","+591 ########","+591 ### ## ####"],BQ:"+599 ### ####",BR:["+55 ## ####-####","+55 ## #####-####","+55 ### ## ####","+55 ####-####"],BS:"+1 ###-###-####",BT:["+975 # ### ###","+975 ## ## ## ##"],BW:["+267 ### ####","+267 ## ### ###","+267 #### ### ###","+267 ## #####"],BY:["+375 ### ##-##-##","+375 ## ###-##-##","+375 ### ### ####"],BZ:["+501 ###-####","+501 #-###-####-###"],CA:"+1 ###-###-####",CC:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CD:["+243 ## #####","+243 ### ### ###"],CF:"+236 ## ## ## ##",CG:["+242 ## ### ####","+242 # #### ####"],CH:["+41 ## ### ## ##","+41 ### ### ###"],CI:["+225 ## ## # #####","+225 ## ## ## ####"],CK:"+682 ## ###",CL:["+56 ### ### ###","+56 # #### ####","+56 ### ### ####","+56 ## ### ####"],CM:["+237 # ## ## ## ##","+237 ## ## ## ##"],CN:["+86 ## #### ####","+86 ### #### ####","+86 ### ### ####","+86 ########"],CO:["+57 ### #######","+57 # ### #######"],CR:["+506 #### ####","+506 ###-###-####"],CU:["+53 # #######","+53 ### #######"],CV:"+238 ### ## ##",CW:["+599 # ### ####","+599 ### ####"],CX:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CY:"+357 ## ######",CZ:"+420 ### ### ###",DE:["+49 ## ######","+49 #### #######","+49 ### ##########","+49 ### # ######","+49 ### # ####","+49 ### #### ####","+49 ########"],DJ:"+253 ## ## ## ##",DK:"+45 ## ## ## ##",DM:"+1 ###-###-####",DO:"+1 ###-###-####",DZ:["+213 ## ## ## ##","+213 ### ## ## ##","+213 ## ### ## ##"],EC:["+593 #-###-####","+593 ## ### ####","+593 #### ### ####"],EE:["+372 ### ####","+372 #### ####","+372 ## ## ####"],EG:["+20 # ########","+20 ## ########","+20 ### ### ####"],EH:["+212 # ## ## ## ##","+212 ##-#######"],ER:"+291 # ### ###",ES:["+34 ### ## ## ##","+34 ### ### ###"],ET:"+251 ## ### ####",FI:["+358 ## #######","+358 ### ######"],FJ:["+679 ### ####","+679 #### ### ####"],FK:"+500 #####",FM:"+691 ### ####",FO:"+298 ######",FR:["+33 # ## ## ## ##","+33 ### ## ## ##"],GA:"+241 ## ## ## ##",GB:["+44 ### ### ####","+44 #### ######","+44 ## #### ####"],GD:"+1 ###-###-####",GE:["+995 ## ### ## ##","+995 ### ## ## ##","+995 ### ### ###"],GF:"+594 ### ## ## ##",GG:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],GH:["+233 ## ### ####","+233 ### #####"],GI:["+350 ### #####","+350 ########"],GL:"+299 ## ## ##",GM:"+220 ### ####",GN:["+224 ## ## ## ##","+224 ### ## ## ##"],GP:"+590 ### ## ## ##",GQ:["+240 ### ### ###","+240 ### ######"],GR:["+30 ## #### ####","+30 ### ### ####"],GT:["+502 #### ####","+502 #### ### ####"],GU:"+1 ###-###-####",GW:["+245 ### ### ###","+245 ### ####"],GY:"+592 ### ####",HK:["+852 #### ####","+852 ### ### ###","+852 ### ## ### ###"],HN:["+504 ####-####","+504 ###########"],HR:["+385 # #### ###","+385 ## ### ####","+385 ### ### ###","+385 ## ## ###","+385 ## ### ###"],HT:"+509 ## ## ####",HU:["+36 # ### ####","+36 ## ### ####","+36 ## ### ###"],ID:["+62 ## #######","+62 ###-###-###","+62 ### #######","+62 ### # ### ###","+62 ### ### ####"],IE:["+353 ## #####","+353 ## ### ####","+353 #### ### ###","+353 ### ### ###"],IL:["+972 #-###-####","+972 ##-###-####","+972 #-###-###-###"],IM:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],IN:["+91 ##### #####","+91 #### ## ####","+91 #### ### ### ###","+91 #### ### ####"],IO:"+246 ### ####",IQ:["+964 # ### ####","+964 ### ### ####"],IR:["+98 ## #### ####","+98 ### ### ####"],IS:"+354 ### ####",IT:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],JE:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],JM:"+1 ###-###-####",JO:["+962 # ### ####","+962 # #### ####","+962 ### #####","+962 ## #######"],JP:["+81 #-####-####","+81 ##-####-####","+81 ###-###-###","+81 ##-###-####"],KE:["+254 ## #######","+254 ### ######","+254 ### ### ###"],KG:["+996 ### ### ###","+996 ### ### # ##"],KH:["+855 ## ### ###","+855 #### ### ###"],KI:["+686 #####","+686 ########"],KM:"+269 ### ## ##",KN:"+1 ###-###-####",KP:["+850 # ### ####","+850 ### ### ####"],KR:["+82 #-###-####","+82 ##-####-####","+82 ##-###-####"],KW:["+965 #### ####","+965 ### #####","+965 #### ###"],KY:"+1 ###-###-####",KZ:["+7 ##### # ## ##","+7 ### ### ####","+7 ### ###-##-##"],LA:["+856 ## ### ###","+856 ## ## ### ###"],LB:["+961 # ### ###","+961 ## ### ###"],LC:"+1 ###-###-####",LI:["+423 ### ## ##","+423 ### ### ###"],LK:["+94 ### ### ###","+94 ## ### ####"],LR:["+231 ## ### ###","+231 ## ### ####"],LS:"+266 #### ####",LT:["+370 ### #####","+370 ### ## ###"],LU:["+352 ## ## ## ##","+352 ### ### ###","+352 ### ## ###"],LV:"+371 ## ### ###",LY:"+218 ##-#######",MA:["+212 # ## ## ## ##","+212 ##-#######"],MC:["+377 ## ## ## ##","+377 # ## ## ## ##"],MD:["+373 ## ### ###","+373 ### ## ###","+373 ### #####"],ME:"+382 ## ### ###",MF:"+590 ### ## ## ##",MG:"+261 ## ## ### ##",MH:"+692 ###-####",MK:["+389 # ### ####","+389 ## ### ###","+389 ### # ## ##"],ML:"+223 ## ## ## ##",MM:["+95 # ### ###","+95 # ### ####","+95 ### ### ####"],MN:"+976 #### ####",MO:["+853 #### ####","+853 #### ###"],MP:"+1 ###-###-####",MQ:"+596 ### ## ## ##",MR:"+222 ## ## ## ##",MS:"+1 ###-###-####",MT:"+356 #### ####",MU:["+230 #### ####","+230 ### ####"],MV:["+960 ###-####","+960 ### ### ####"],MW:["+265 # ### ###","+265 ### ## ## ##"],MX:"+52 ### ### ####",MY:["+60 #-#### ####","+60 ##-### ####","+60 #-###-##-####","+60 ###-### ####"],MZ:["+258 ## ### ###","+258 ## ### ####","+258 ### ### ###"],NA:["+264 ## ### ###","+264 ## ### ####","+264 ### ### ###"],NC:"+687 ##.##.##",NE:["+227 ## ## ## ##","+227 ## ### ###"],NF:["+672 ## ####","+672 # #####"],NG:["+234 #### ## ####","+234 ### ### ####","+234 ### #### ####"],NI:"+505 #### ####",NL:["+31 ## ### ####","+31 # ########","+31 ### ####","+31 ## #######"],NO:["+47 ## ## ## ##","+47 ### ## ###"],NP:["+977 #-#######","+977 ###-#######","+977 ###########"],NR:"+674 ### ####",NU:["+683 ####","+683 ### ####"],NZ:["+64 # ### ####","+64 ## ### ####","+64 ### ### ###"],OM:["+968 ## ######","+968 #### ####","+968 ### #####"],PA:["+507 ###-####","+507 ####-####"],PE:["+51 # #######","+51 ### ### ###","+51 ### #####"],PF:["+689 ## ## ## ##","+689 ### ## ## ##"],PG:["+675 ### ####","+675 #### ####"],PH:["+63 # #### ####","+63 ### ### ####","+63 #### # ### ####"],PK:["+92 ## ########","+92 ### #######","+92 ### ### ##","+92 #### #####"],PL:["+48 ## ### ## ##","+48 ### ### ###"],PM:["+508 ## ## ##","+508 ### ## ## ##"],PR:"+1 ###-###-####",PS:["+970 # ### ####","+970 ### ### ###","+970 #### ### ###"],PT:["+351 ## ### ####","+351 ### ### ###"],PW:"+680 ### ####",PY:["+595 ## ### ####","+595 ### ######","+595 #### ### ####"],QA:["+974 #### ####","+974 ### ####"],RE:"+262 ### ## ## ##",RO:["+40 ## ### ####","+40 ### ### ###"],RS:["+381 ## ######","+381 ## #######","+381 ### #####"],RU:"+7 ### ###-##-##",RW:"+250 ### ### ###",SA:["+966 ## ### ####","+966 ### ### ####","+966 #### #####"],SB:["+677 #####","+677 ## #####"],SC:["+248 # ### ###","+248 #######"],SD:"+249 ## ### ####",SE:["+46 # ## ## ##","+46 ## ### ## ##","+46 ## ## ## ##","+46 ### ## ## ###"],SG:["+65 #### ####","+65 #### ### ####"],SH:"+290 #####",SI:["+386 # ### ## ##","+386 ## ### ###","+386 ## ######","+386 ### #####"],SJ:["+47 ## ## ## ##","+47 ### ## ###"],SK:["+421 #/### ### ##","+421 ### ### ###","+421 #######"],SL:"+232 ## ######",SM:["+378 #### ######","+378 ## ## ## ##"],SN:["+221 ## ### ## ##","+221 ### ## ## ##"],SO:["+252 # ######","+252 # #######"],SR:["+597 ###-###","+597 ###-####","+597 ##-##-##"],SS:"+211 ### ### ###",ST:"+239 ### ####",SV:["+503 #### ####","+503 ### ####"],SX:"+1 ###-###-####",SY:["+963 ## ### ####","+963 ### ### ###"],SZ:["+268 #### ####","+268 ##### ####"],TA:"+290 ####",TC:"+1 ###-###-####",TD:"+235 ## ## ## ##",TG:"+228 ## ## ## ##",TH:["+66 # ### ####","+66 ## ### ####","+66 #### ### ###"],TJ:["+992 ### ## ####","+992 ## ### ####"],TK:"+690 ####",TL:["+670 ### ####","+670 #### ####"],TM:["+993 ## ##-##-##","+993 ## ######"],TN:"+216 ## ### ###",TO:["+676 ##-###","+676 ### ####","+676 #### ###"],TR:["+90 ### ### ## ##","+90 ### ### ####"],TT:"+1 ###-###-####",TV:["+688 ## ###","+688 ## ####"],TW:["+886 # #### ####","+886 ### ### ###","+886 ## ### ####","+886 ## #### ####"],TZ:["+255 ## ### ####","+255 ### ### ###","+255 ### ## ####"],UA:["+380 #### #####","+380 ## ### ####","+380 ### ### ###"],UG:["+256 ## #######","+256 ### ######"],US:"+1 ###-###-####",UY:["+598 #### ####","+598 ## ### ###","+598 ### ####"],UZ:"+998 ## ### ## ##",VA:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],VC:"+1 ###-###-####",VE:"+58 ###-#######",VG:"+1 ###-###-####",VI:"+1 ###-###-####",VN:["+84 ### #### ###","+84 ### ### ###","+84 #### ######","+84 ## ### ## ##"],VU:["+678 #####","+678 ### ####"],WF:["+681 ## ## ##","+681 ### ## ## ##"],WS:["+685 #####","+685 ## #####","+685 ### ###"],XK:["+383 ## ### ###","+383 ### #####"],YE:["+967 # ### ###","+967 ### ### ###"],YT:"+262 ### ## ## ##",ZA:["+27 ## ### ####","+27 ### ### ###"],ZM:["+260 ### ### ###","+260 ## #######","+260 #########"],ZW:["+263 ## #####","+263 ## ### ####","+263 ### ####","+263 #### ######"]},lA=/^[a-z]{2}$/i,ol=t=>{if(!lA.test(t)){const e=typeof t;throw new TypeError(`cc argument must be an ISO 3166-1 alpha-2 string, but got '${e==="string"?t:e}' instead.`)}const n=[...t.toUpperCase()].map(e=>(e.codePointAt(0)??0)+127397);return String.fromCodePoint(...n)},Ka=Object.entries(sA),B1=t=>t.split(/ (.*)/s);function Mo(t){let n="",e="";if(Array.isArray(t)){const i=[];for(const u of t){const[r,s]=B1(u);n||(n=r),i.push(s)}e=i}else{const[i,u]=B1(t);n=i,e=u}return[n,e]}Ka.map(([t,n])=>({id:t,mask:n}));Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e);return t[n]={code:i,mask:u},t},{});Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i}});Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e);return t[n]={code:i,mask:u,flag:ol(n)},t},{});Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i,flag:ol(t)}});const uA=t=>{const n=new Intl.DisplayNames([t],{type:"region"});return Ka.reduce((e,[i,u])=>{const[r,s]=Mo(u),l=n.of(i)??"";return e[i]={code:r,mask:s,name:l,flag:ol(i)},e},{})},cA=t=>{const n=new Intl.DisplayNames([t],{type:"region"});return Ka.map(([e,i])=>{const[u,r]=Mo(i);return{id:e,code:u,mask:r,name:n.of(e)??"",flag:ol(e)}})},dA=Ka.reduce((t,[n,e])=>{const[i,u]=Mo(e),r=new Intl.DisplayNames(["en"],{type:"region"});return t[n]={code:i,mask:u,name:r.of(n)??"",flag:ol(n)},t},{}),fA=Ka.map(([t,n])=>{const[e,i]=Mo(n);return{id:t,code:e,mask:i,name:new Intl.DisplayNames(["en"],{type:"region"}).of(t)??"",flag:ol(t)}});function hA(t){return Array.isArray(t)?t:[t]}function ey(t){return(t.match(/#/g)||[]).length}function j1(t){return t.replace(/^\+\d+\s?/,"")}function pA(t,n){if(t.length===1)return t[0];const e=t.map(r=>({mask:r,count:ey(r)})),i=e.filter(r=>r.count>=n).sort((r,s)=>r.count-s.count);if(i.length>0)return i[0].mask;const u=e.sort((r,s)=>s.count-r.count)[0];return u?u.mask:t[0]}function Tf(t,n){let e="";const i=[];let u=0;const r=n.length,s=t.length;for(let l=0;l<s;l++){const o=t[l];if(o==="#"){if(!(u<r))break;e+=n[u],i.push(u),u++}else{const a=t.indexOf("#",l+1)!==-1&&u<r;(e.length>0||a)&&(e+=o,i.push(-1))}}return{display:e,map:i}}const Pf="@desource/phone-mask:geo",mA=1440*6e4,gA=1500,vA="https://ipapi.co/json/",bA=[" ","-","(",")"],yA=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Tab"],wA=/[^\d\s\-()]/,xA={id:"",code:"",mask:"",flag:"",name:""};function _A(t){const n=h.computed(()=>t.value.toLowerCase().startsWith("en")),e=h.computed(()=>n.value?fA:cA(t.value)),i=h.computed(()=>n.value?dA:uA(t.value)),u=h.ref(e.value[0]?.id||""),r=h.ref(!1),s=h.ref(!0),l=h.ref(""),o=h.ref(0),a=h.computed(()=>{const F=u.value,H=i.value[F];return H?{id:F,...H}:e.value[0]||xA}),c=F=>{const H=F.toUpperCase();return!!i.value[H]},p=h.computed(()=>{const F=l.value.trim().toUpperCase();if(!F)return e.value;const H=F.replace(/\D/g,""),I=H.length>0;return e.value.map(D=>{const z=D.name.toUpperCase(),$=D.id.toUpperCase(),O=D.code.replace(/\D/g,"");let N=0;return z.startsWith(F)?N=1e3:z.includes(F)&&(N=500),D.code.startsWith(F)?N+=100:D.code.includes(F)&&(N+=50),$===F?N+=200:$.startsWith(F)&&(N+=150),I&&O.startsWith(H)?N+=80:I&&O.includes(H)&&(N+=40),{country:D,score:N}}).filter(({score:D})=>D>0).sort((D,z)=>z.score!==D.score?z.score-D.score:D.country.name.localeCompare(z.country.name)).map(({country:D})=>D)}),f=F=>{u.value=F,v()},d=async F=>{r.value=!r.value,r.value&&(await h.nextTick(),F.value?.focus({preventScroll:!0}),o.value=0)},v=()=>{r.value=!1},g=F=>{p.value.length!==0&&(o.value=Math.min(p.value.length-1,o.value+1),F?.())},m=F=>{p.value.length!==0&&(o.value=Math.max(0,o.value-1),F?.())},y=()=>{const F=p.value[o.value];F&&f(F.id)},b=()=>{try{const F=navigator.language||"";try{const I=new Intl.Locale(F);if(I.region&&c(I.region))return I.region.toUpperCase()}catch{}const H=F.split(/[-_]/);if(H.length>1&&c(H[1]))return H[1].toUpperCase()}catch{}return null},w=async()=>{try{const I=localStorage.getItem(Pf);if(I){const D=JSON.parse(I),z=Date.now()-D.ts>mA;if(!z&&D.country_code&&c(D.country_code))return D.country_code.toUpperCase();z&&localStorage.removeItem(Pf)}}catch{}const F=new AbortController,H=setTimeout(()=>F.abort(),gA);try{const I=await fetch(vA,{signal:F.signal,headers:{Accept:"application/json"}});if(!I.ok)return null;const D=await I.json(),z=(D.country||D.country_code||D.countryCode||D.country_code2||"").toString().toUpperCase();if(z&&c(z)){try{localStorage.setItem(Pf,JSON.stringify({country_code:z,ts:Date.now()}))}catch{}return z}}catch{}finally{clearTimeout(H)}return null},A=(F,H)=>{const I=u.value;u.value=F,I!==u.value&&H&&h.nextTick(H)};return{countries:e,selectedId:u,selected:a,hasCountry:c,hasDropdown:s,dropdownOpened:r,search:l,focusedIndex:o,filteredCountries:p,selectCountry:f,toggleDropdown:d,closeDropdown:v,focusNextOption:g,focusPrevOption:m,chooseFocusedOption:y,initCountry:async(F,H,I)=>{if(s.value=!F&&e.value.length>1,F&&c(F)){A(F.toUpperCase(),I);return}if(!H)return;const D=await w();if(D){A(D,I);return}const z=b();if(z){A(z,I);return}}}}function SA(t){const n=hA(t.mask),e=n.map(r=>ey(j1(r))),i=Math.max(...e),u=r=>{const s=pA(n,r);return j1(s)};return{formatDisplay:r=>{const s=u(r.length);return Tf(s,r).display},getMaxDigits:()=>i,getPlaceholder:()=>u(0),getCaretPosition:r=>{const s=u(r),{display:l,map:o}=Tf(s,"0".repeat(r));for(let a=0;a<o.length;a++)if(o[a]===r)return a;if(r>=o.length)return l.length;for(let a=0;a<o.length;a++)if(o[a]>r)return a;return l.length},getDigitRange:(r,s,l)=>{const o=u(r.length),{map:a}=Tf(o,r);let c=1/0,p=-1/0;for(let f=s;f<l&&f<a.length;f++){const d=a[f];d!==void 0&&d>=0&&(c=Math.min(c,d),p=Math.max(p,d))}return c===1/0?null:[c,p+1]},isComplete:r=>e.includes(r.length)}}function kA(t,n){if(t)try{t.setSelectionRange(n,n)}catch{}}function Qu(t,n){const e=t.replace(/\D/g,"");return n?e.slice(0,n):e}function V1(t){return t?[t.selectionStart??0,t.selectionEnd??0]:[0,0]}function CA(t,n){const e=h.ref(""),i=h.ref(""),u=h.ref(null),r=h.ref(!1),s=h.computed(()=>SA(t.value)),l=h.computed(()=>s.value.getPlaceholder()),o=h.computed(()=>s.value.isComplete(e.value)),a=h.computed(()=>e.value.length===0),c=h.computed(()=>s.value.getMaxDigits()),p=h.computed(()=>r.value&&!a.value&&!o.value),f=h.computed(()=>i.value?`${t.value.code} ${i.value}`:""),d=h.computed(()=>e.value?`${t.value.code}${e.value}`:""),v=()=>{i.value=s.value.formatDisplay(e.value)},g=I=>{const D=s.value.getCaretPosition(I);kA(n.value,D)},m=(I,D)=>{I>=D||(e.value=e.value.slice(0,I)+e.value.slice(D))},y=I=>{const D=I.target;if(!D)return;const z=I.data;I.inputType!=="insertText"||!z||(wA.test(z)||z===" "&&D.value.endsWith(" "))&&I.preventDefault()},b=I=>{const D=I.target;if(!D)return;const z=Qu(D.value,c.value);r.value=!1,u.value&&clearTimeout(u.value),e.value=z,v(),z.length>0&&(u.value=setTimeout(()=>{r.value=!0},500)),h.nextTick(()=>{g(e.value.length)})},w=I=>{const D=n.value??I.target;if(!D||I.ctrlKey||I.metaKey||I.altKey||yA.includes(I.key))return;const[z,$]=V1(D);if(I.key==="Backspace"){if(I.preventDefault(),z!==$){const O=s.value.getDigitRange(e.value,z,$);if(O){const[N,E]=O;m(N,E),v(),h.nextTick(()=>g(N))}return}if(z>0){const O=i.value;let N=z-1;for(;N>=0&&bA.includes(O[N]);)N--;if(N>=0){const E=s.value.getDigitRange(e.value,N,N+1);if(E){const[C]=E;m(C,C+1),v(),h.nextTick(()=>g(C))}}}return}if(I.key==="Delete"){if(I.preventDefault(),z!==$){const O=s.value.getDigitRange(e.value,z,$);if(O){const[N,E]=O;m(N,E),v(),h.nextTick(()=>g(N))}return}if(z<i.value.length){const O=s.value.getDigitRange(e.value,z,z+1);if(O){const[N]=O;m(N,N+1),v(),h.nextTick(()=>g(N))}}return}if(/^[0-9]$/.test(I.key)){e.value.length>=c.value&&I.preventDefault();return}I.key.length===1&&I.preventDefault()},A=I=>{r.value=!1,u.value&&clearTimeout(u.value),w(I),u.value&&clearTimeout(u.value),u.value=setTimeout(()=>{!o.value&&!a.value&&(r.value=!0)},300)},T=I=>{I.preventDefault();const D=I.clipboardData?.getData("text")||"",z=Qu(D,c.value);if(z.length===0)return;const $=n.value;if(!$)return;const[O,N]=V1($);if(O!==N){const S=s.value.getDigitRange(e.value,O,N);if(S){const[k,M]=S,j=e.value.slice(0,k),P=e.value.slice(M);e.value=Qu(j+z+P,c.value),v(),h.nextTick(()=>g(k+z.length));return}}const E=s.value.getDigitRange(e.value,O,O),C=E?E[0]:e.value.length,x=e.value.slice(0,C),_=e.value.slice(C);e.value=Qu(x+z+_,c.value),v(),u.value&&clearTimeout(u.value),u.value=setTimeout(()=>{!o.value&&!a.value&&(r.value=!0)},300),h.nextTick(()=>g(C+z.length))},F=()=>{u.value&&clearTimeout(u.value)},H=()=>{e.value="",i.value="",r.value=!1,u.value&&(clearTimeout(u.value),u.value=null)};return h.watch(t,()=>{e.value.length>c.value&&(e.value=e.value.slice(0,c.value)),v()}),v(),{digits:e,displayValue:i,displayPlaceholder:l,isComplete:o,isEmpty:a,shouldShowWarn:p,fullFormatted:f,full:d,handleBeforeInput:y,handleInput:b,handleKeydown:A,handlePaste:T,handleFocus:F,updateDisplayFromDigits:v,clear:H}}function AA(){const t=h.ref(!1),n=h.ref(!1);let e=null;const i=()=>{e&&(clearTimeout(e),e=null)};return{copied:t,isCopying:n,copy:async s=>{if(n.value)return!1;const l=s.trim();if(!l)return!1;n.value=!0;try{return await navigator.clipboard.writeText(l),t.value=!0,i(),e=setTimeout(()=>{t.value=!1,e=null},1800),!0}catch(o){return console.warn("Copy failed",o),!1}finally{n.value=!1}},onUnmount:()=>{i()}}}const NA={class:"pi-selector"},EA=["disabled","tabindex","aria-label","aria-expanded","aria-haspopup"],MA=["aria-label"],TA={class:"pi-code"},PA={class:"pi-input-wrap"},IA=["placeholder","value","disabled","readonly","aria-invalid"],RA={class:"pi-actions",role:"toolbar","aria-label":"Phone input actions"},DA=["aria-label","title"],LA={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},OA={key:2,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},FA=["aria-label","title"],BA={key:0,width:"11",height:"11",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},jA={class:"pi-search-wrap"},VA=["placeholder"],zA=["aria-activedescendant"],$A=["id","aria-selected","title","onClick","onMouseenter"],UA=["aria-label"],HA={class:"pi-opt-name"},qA={class:"pi-opt-code"},WA={key:0,class:"pi-empty"},GA=h.defineComponent({__name:"PhoneInput",props:h.mergeModels({country:{},detect:{type:Boolean,default:!0},locale:{},size:{default:"normal"},theme:{default:"auto"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},showCopy:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},withValidity:{type:Boolean,default:!0},searchPlaceholder:{default:"Search country or code..."},noResultsText:{default:"No countries found"},clearButtonLabel:{default:"Clear phone number"},dropdownClass:{},disableDefaultStyles:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:h.mergeModels(["change","country-change","validation-change","focus","blur","copy","clear"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const i=t,u=h.useSlots(),r=h.useModel(t,"modelValue"),s=e,l=h.useTemplateRef("rootRef"),o=h.useTemplateRef("telRef"),a=h.useTemplateRef("searchRef"),c=h.useTemplateRef("liveRef"),p=h.useTemplateRef("dropdownRef"),f=h.computed(()=>i.locale?i.locale:typeof navigator<"u"&&navigator.language||"en"),d=h.shallowRef({}),v=_A(f),{search:g,filteredCountries:m,focusedIndex:y,selected:b,dropdownOpened:w,hasDropdown:A,focusNextOption:T,focusPrevOption:F,chooseFocusedOption:H,closeDropdown:I}=v,D=CA(b,o),{digits:z,displayValue:$,displayPlaceholder:O,isComplete:N,isEmpty:E,shouldShowWarn:C,full:x,fullFormatted:_}=D,{copied:S,copy:k,onUnmount:M}=AA(),j=h.computed(()=>i.disabled||i.readonly),P=h.computed(()=>i.showCopy&&!E.value&&!i.disabled),U=h.computed(()=>i.showClear&&!E.value&&!j.value),q=h.computed(()=>S.value?"Copied":`Copy ${b.value.code} ${$.value}`),X=h.computed(()=>S.value?"Copied":"Copy phone number"),V=h.computed(()=>S.value?"Phone number copied to clipboard":""),K=h.computed(()=>`size-${i.size}`),L=h.computed(()=>i.theme!=="auto"?`theme-${i.theme}`:typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"theme-dark":"theme-light"),R=h.computed(()=>["phone-input",K.value,L.value,{"is-disabled":i.disabled,"is-readonly":i.readonly,"is-unstyled":i.disableDefaultStyles,"is-incomplete":i.withValidity&&C.value,"is-complete":i.withValidity&&N.value}]),G=h.computed(()=>({"--pi-actions-count":+P.value+ +U.value+(u["actions-before"]?1:0)})),Q=()=>{r.value!==z.value&&(r.value=z.value,s("change",{full:x.value,fullFormatted:_.value,digits:z.value}))},ae=async Me=>{j.value||(D.handleInput(Me),await h.nextTick(),Q())},te=async Me=>{j.value||(D.handleKeydown(Me),await h.nextTick(),Q())},ne=async Me=>{j.value||(D.handlePaste(Me),await h.nextTick(),Q())},J=Me=>{D.handleFocus(),w.value=!1,s("focus",Me)},he=Me=>s("blur",Me),re=async Me=>{v.selectCountry(Me),s("country-change",b.value),await h.nextTick(),o.value?.focus()},de=async()=>{const Me=_.value;await k(Me)&&s("copy",Me)},le=async()=>{D.clear(),r.value="",s("change",{full:"",fullFormatted:"",digits:""}),s("clear"),await h.nextTick(),o.value?.focus()},_e=Me=>{if(Me?.type==="scroll"&&Me.target&&p.value?.contains(Me.target))return;const Be=l.value;if(!Be)return;const ze=Be.getBoundingClientRect();d.value={top:`${ze.bottom+window.scrollY+8}px`,left:`${ze.left+window.scrollX}px`,width:`${ze.width}px`}},xe=()=>{window.removeEventListener("scroll",_e,!0),window.removeEventListener("click",Oe,!0),window.removeEventListener("resize",_e)},Ce=async()=>{j.value||!A.value||(await v.toggleDropdown(a),w.value?(_e(),window.addEventListener("scroll",_e,!0),window.addEventListener("click",Oe,!0),window.addEventListener("resize",_e)):xe())},Ne=async()=>{await h.nextTick();const Me=p.value?.lastElementChild;if(!Me)return;const Be=Me.children[y.value];if(!Be)return;const ze=Me.getBoundingClientRect(),Ue=Be.getBoundingClientRect();let Ge=0;if(Ue.top<ze.top)Ge=Me.scrollTop-(ze.top-Ue.top);else if(Ue.bottom>ze.bottom)Ge=Me.scrollTop+(Ue.bottom-ze.bottom);else return;Me.scrollTo({top:Ge,behavior:"smooth"})},Oe=Me=>{const Be=p.value,ze=l.value?.firstChild;if(!(Be||ze))return;const Ue=Me.target;!Ue||Be?.contains(Ue)||ze?.contains(Ue)||(w.value=!1)};return h.watch(r,Me=>{if(!Me){E.value||D.clear();return}const Be=z.value;if(Me!==Be){const ze=Me.replace(/\D/g,"");ze!==Be&&(z.value=ze,D.updateDisplayFromDigits())}},{immediate:!0}),h.watch([()=>i.country,()=>i.detect],async([Me,Be])=>{await h.nextTick(),await v.initCountry(Me,Be,()=>s("country-change",b.value))},{immediate:!0}),h.watch(V,Me=>{c.value&&Me&&(c.value.textContent=Me)},{flush:"post"}),h.watch(N,Me=>{s("validation-change",Me)},{flush:"post"}),h.onBeforeUnmount(()=>{xe(),M()}),n({focus:()=>o.value?.focus(),blur:()=>o.value?.blur(),clear:D.clear,selectCountry:v.selectCountry,getFullNumber:()=>x.value,getFullFormattedNumber:()=>_.value,getDigits:()=>z.value,isValid:()=>N.value,isComplete:()=>N.value}),(Me,Be)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"rootRef",ref:l,"aria-label":"Phone input with country selector",role:"group",class:h.normalizeClass(R.value),style:h.normalizeStyle(G.value)},[h.createElementVNode("div",NA,[h.createElementVNode("button",{type:"button",class:h.normalizeClass(["pi-selector-btn",{"no-dropdown":!h.unref(A)||t.readonly}]),disabled:t.disabled,tabindex:j.value||!h.unref(A)?-1:void 0,"aria-label":`Selected country: ${h.unref(b).name}`,"aria-expanded":h.unref(w),"aria-haspopup":h.unref(A)?"listbox":void 0,onClick:Ce},[h.createElementVNode("span",{class:"pi-flag",role:"img","aria-label":`${h.unref(b).name} flag`},[h.renderSlot(Me.$slots,"flag",{country:h.unref(b)},()=>[h.createTextVNode(h.toDisplayString(h.unref(b).flag),1)],!0)],8,MA),h.createElementVNode("span",TA,h.toDisplayString(h.unref(b).code),1),!j.value&&h.unref(A)?(h.openBlock(),h.createElementBlock("svg",{key:0,class:h.normalizeClass(["pi-chevron",{"is-open":h.unref(w)}]),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true"},[...Be[6]||(Be[6]=[h.createElementVNode("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)):h.createCommentVNode("",!0)],10,EA)]),h.createElementVNode("div",PA,[h.createElementVNode("input",{ref_key:"telRef",ref:o,type:"tel",inputmode:"tel",autocomplete:"tel-national",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"pi-input",placeholder:h.unref(O),value:h.unref($),disabled:t.disabled,readonly:t.readonly,"aria-invalid":h.unref(C),onBeforeinput:Be[0]||(Be[0]=(...ze)=>h.unref(D).handleBeforeInput&&h.unref(D).handleBeforeInput(...ze)),onInput:ae,onKeydown:te,onPaste:ne,onFocus:J,onBlur:he},null,40,IA),h.createElementVNode("div",RA,[h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[h.renderSlot(Me.$slots,"actions-before",{},void 0,!0)]),_:3}),h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[P.value?(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:h.normalizeClass(["pi-btn",{"is-copied":h.unref(S)}]),"aria-label":q.value,title:X.value,onClick:de},[u["copy-svg"]?h.renderSlot(Me.$slots,"copy-svg",{key:0,copied:h.unref(S)},void 0,!0):h.unref(S)?(h.openBlock(),h.createElementBlock("svg",OA,[...Be[8]||(Be[8]=[h.createElementVNode("path",{d:"M6.5 11.5L3 8L4.06 6.94L6.5 9.38L11.94 3.94L13 5L6.5 11.5Z",fill:"currentColor"},null,-1)])])):(h.openBlock(),h.createElementBlock("svg",LA,[...Be[7]||(Be[7]=[h.createElementVNode("path",{d:"M13.5 5.5V13.5H5.5V5.5H13.5ZM13.5 4H5.5C4.67 4 4 4.67 4 5.5V13.5C4 14.33 4.67 15 5.5 15H13.5C14.33 15 15 14.33 15 13.5V5.5C15 4.67 14.33 4 13.5 4ZM10.5 1H2.5V11H4V2.5H10.5V1Z",fill:"currentColor"},null,-1)])]))],10,DA)):h.createCommentVNode("",!0)]),_:3}),h.createVNode(h.Transition,{name:"fade-scale"},{default:h.withCtx(()=>[U.value?(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:"pi-btn","aria-label":t.clearButtonLabel,title:t.clearButtonLabel,onClick:le},[u["clear-svg"]?h.renderSlot(Me.$slots,"clear-svg",{key:1},void 0,!0):(h.openBlock(),h.createElementBlock("svg",BA,[...Be[9]||(Be[9]=[h.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"currentColor"},null,-1)])]))],8,FA)):h.createCommentVNode("",!0)]),_:3})])]),(h.openBlock(),h.createBlock(h.Teleport,{to:"body"},[h.createVNode(h.Transition,{name:"dropdown"},{default:h.withCtx(()=>[h.unref(w)?(h.openBlock(),h.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:p,class:h.normalizeClass(["phone-dropdown",[t.dropdownClass,L.value]]),role:"dialog","aria-modal":"false","aria-label":"Select country",style:h.normalizeStyle(d.value)},[h.createElementVNode("div",jA,[h.withDirectives(h.createElementVNode("input",{ref_key:"searchRef",ref:a,"onUpdate:modelValue":Be[1]||(Be[1]=ze=>h.isRef(g)?g.value=ze:null),type:"search",class:"pi-search","aria-label":"Search countries",placeholder:t.searchPlaceholder,onKeydown:[Be[2]||(Be[2]=h.withKeys(h.withModifiers(ze=>h.unref(T)(Ne),["prevent"]),["down"])),Be[3]||(Be[3]=h.withKeys(h.withModifiers(ze=>h.unref(F)(Ne),["prevent"]),["up"])),Be[4]||(Be[4]=h.withKeys(h.withModifiers((...ze)=>h.unref(H)&&h.unref(H)(...ze),["prevent"]),["enter"])),Be[5]||(Be[5]=h.withKeys((...ze)=>h.unref(I)&&h.unref(I)(...ze),["escape"]))]},null,40,VA),[[h.vModelText,h.unref(g)]])]),h.createElementVNode("ul",{class:"pi-options",role:"listbox","aria-activedescendant":`option-${h.unref(y)}`,tabindex:"-1"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(m),(ze,Ue)=>(h.openBlock(),h.createElementBlock("li",{id:`option-${Ue}`,key:ze.id,role:"option",class:h.normalizeClass(["pi-option",{"is-focused":Ue===h.unref(y),"is-selected":ze.id===h.unref(b).id}]),"aria-selected":ze.id===h.unref(b).id,title:ze.name,onClick:Ge=>re(ze.id),onMouseenter:Ge=>y.value=Ue},[h.createElementVNode("span",{class:"pi-flag",role:"img","aria-label":`${ze.name} flag`},[h.renderSlot(Me.$slots,"flag",{country:ze},()=>[h.createTextVNode(h.toDisplayString(ze.flag),1)],!0)],8,UA),h.createElementVNode("span",HA,h.toDisplayString(ze.name),1),h.createElementVNode("span",qA,h.toDisplayString(ze.code),1)],42,$A))),128)),h.unref(m).length===0?(h.openBlock(),h.createElementBlock("li",WA,h.toDisplayString(t.noResultsText),1)):h.createCommentVNode("",!0)],8,zA)],6)):h.createCommentVNode("",!0)]),_:3})])),h.createElementVNode("div",{ref_key:"liveRef",ref:c,class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},null,512)],6))}}),KA=(t,n)=>{const e=t.__vccOpts||t;for(const[i,u]of n)e[i]=u;return e},YA=KA(GA,[["__scopeId","data-v-95467f81"]]),XA={AC:"+247 #####",AD:["+376 ### ###","+376 #### ####"],AE:["+971 # ### ####","+971 ## ### ####","+971 ### ######","+971 ### # #####"],AF:"+93 ## ### ####",AG:"+1 ###-###-####",AI:"+1 ###-###-####",AL:["+355 ## ### ###","+355 ## ### ####","+355 ### ####","+355 ### ###","+355 ### #####"],AM:["+374 ## ######","+374 ### ## ###"],AO:"+244 ### ### ###",AR:["+54 ## ####-####","+54 # ## ####-####","+54 ###-###-####"],AS:"+1 ###-###-####",AT:["+43 # #########","+43 ### ######"],AU:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###","+61 ## ### ##"],AW:"+297 ### ####",AX:["+358 ## #######","+358 ### ######"],AZ:["+994 ## ### ## ##","+994 ### ## ## ##"],BA:["+387 ## ###-###","+387 ## ### ###"],BB:"+1 ###-###-####",BD:["+880 #-#######","+880 ####-######","+880 ###-#######"],BE:["+32 ## ## ## ##","+32 ### ## ## ##","+32 ### ## ###"],BF:"+226 ## ## ## ##",BG:["+359 # ### ###","+359 ## ### ###","+359 ### ## ###"],BH:"+973 #### ####",BI:"+257 ## ## ## ##",BJ:["+229 ## ## ## ## ##","+229 ## ## ## ##"],BL:"+590 ### ## ## ##",BM:"+1 ###-###-####",BN:"+673 ### ####",BO:["+591 # #######","+591 ########","+591 ### ## ####"],BQ:"+599 ### ####",BR:["+55 ## ####-####","+55 ## #####-####","+55 ### ## ####","+55 ####-####"],BS:"+1 ###-###-####",BT:["+975 # ### ###","+975 ## ## ## ##"],BW:["+267 ### ####","+267 ## ### ###","+267 #### ### ###","+267 ## #####"],BY:["+375 ### ##-##-##","+375 ## ###-##-##","+375 ### ### ####"],BZ:["+501 ###-####","+501 #-###-####-###"],CA:"+1 ###-###-####",CC:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CD:["+243 ## #####","+243 ### ### ###"],CF:"+236 ## ## ## ##",CG:["+242 ## ### ####","+242 # #### ####"],CH:["+41 ## ### ## ##","+41 ### ### ###"],CI:["+225 ## ## # #####","+225 ## ## ## ####"],CK:"+682 ## ###",CL:["+56 ### ### ###","+56 # #### ####","+56 ### ### ####","+56 ## ### ####"],CM:["+237 # ## ## ## ##","+237 ## ## ## ##"],CN:["+86 ## #### ####","+86 ### #### ####","+86 ### ### ####","+86 ########"],CO:["+57 ### #######","+57 # ### #######"],CR:["+506 #### ####","+506 ###-###-####"],CU:["+53 # #######","+53 ### #######"],CV:"+238 ### ## ##",CW:["+599 # ### ####","+599 ### ####"],CX:["+61 # #### ####","+61 ### ### ###","+61 #### ### ###"],CY:"+357 ## ######",CZ:"+420 ### ### ###",DE:["+49 ## ######","+49 #### #######","+49 ### ##########","+49 ### # ######","+49 ### # ####","+49 ### #### ####","+49 ########"],DJ:"+253 ## ## ## ##",DK:"+45 ## ## ## ##",DM:"+1 ###-###-####",DO:"+1 ###-###-####",DZ:["+213 ## ## ## ##","+213 ### ## ## ##","+213 ## ### ## ##"],EC:["+593 #-###-####","+593 ## ### ####","+593 #### ### ####"],EE:["+372 ### ####","+372 #### ####","+372 ## ## ####"],EG:["+20 # ########","+20 ## ########","+20 ### ### ####"],EH:["+212 # ## ## ## ##","+212 ##-#######"],ER:"+291 # ### ###",ES:["+34 ### ## ## ##","+34 ### ### ###"],ET:"+251 ## ### ####",FI:["+358 ## #######","+358 ### ######"],FJ:["+679 ### ####","+679 #### ### ####"],FK:"+500 #####",FM:"+691 ### ####",FO:"+298 ######",FR:["+33 # ## ## ## ##","+33 ### ## ## ##"],GA:"+241 ## ## ## ##",GB:["+44 ### ### ####","+44 #### ######","+44 ## #### ####"],GD:"+1 ###-###-####",GE:["+995 ## ### ## ##","+995 ### ## ## ##","+995 ### ### ###"],GF:"+594 ### ## ## ##",GG:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],GH:["+233 ## ### ####","+233 ### #####"],GI:["+350 ### #####","+350 ########"],GL:"+299 ## ## ##",GM:"+220 ### ####",GN:["+224 ## ## ## ##","+224 ### ## ## ##"],GP:"+590 ### ## ## ##",GQ:["+240 ### ### ###","+240 ### ######"],GR:["+30 ## #### ####","+30 ### ### ####"],GT:["+502 #### ####","+502 #### ### ####"],GU:"+1 ###-###-####",GW:["+245 ### ### ###","+245 ### ####"],GY:"+592 ### ####",HK:["+852 #### ####","+852 ### ### ###","+852 ### ## ### ###"],HN:["+504 ####-####","+504 ###########"],HR:["+385 # #### ###","+385 ## ### ####","+385 ### ### ###","+385 ## ## ###","+385 ## ### ###"],HT:"+509 ## ## ####",HU:["+36 # ### ####","+36 ## ### ####","+36 ## ### ###"],ID:["+62 ## #######","+62 ###-###-###","+62 ### #######","+62 ### # ### ###","+62 ### ### ####"],IE:["+353 ## #####","+353 ## ### ####","+353 #### ### ###","+353 ### ### ###"],IL:["+972 #-###-####","+972 ##-###-####","+972 #-###-###-###"],IM:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],IN:["+91 ##### #####","+91 #### ## ####","+91 #### ### ### ###","+91 #### ### ####"],IO:"+246 ### ####",IQ:["+964 # ### ####","+964 ### ### ####"],IR:["+98 ## #### ####","+98 ### ### ####"],IS:"+354 ### ####",IT:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],JE:["+44 #### ######","+44 ### ### ####","+44 ## #### ####"],JM:"+1 ###-###-####",JO:["+962 # ### ####","+962 # #### ####","+962 ### #####","+962 ## #######"],JP:["+81 #-####-####","+81 ##-####-####","+81 ###-###-###","+81 ##-###-####"],KE:["+254 ## #######","+254 ### ######","+254 ### ### ###"],KG:["+996 ### ### ###","+996 ### ### # ##"],KH:["+855 ## ### ###","+855 #### ### ###"],KI:["+686 #####","+686 ########"],KM:"+269 ### ## ##",KN:"+1 ###-###-####",KP:["+850 # ### ####","+850 ### ### ####"],KR:["+82 #-###-####","+82 ##-####-####","+82 ##-###-####"],KW:["+965 #### ####","+965 ### #####","+965 #### ###"],KY:"+1 ###-###-####",KZ:["+7 ##### # ## ##","+7 ### ### ####","+7 ### ###-##-##"],LA:["+856 ## ### ###","+856 ## ## ### ###"],LB:["+961 # ### ###","+961 ## ### ###"],LC:"+1 ###-###-####",LI:["+423 ### ## ##","+423 ### ### ###"],LK:["+94 ### ### ###","+94 ## ### ####"],LR:["+231 ## ### ###","+231 ## ### ####"],LS:"+266 #### ####",LT:["+370 ### #####","+370 ### ## ###"],LU:["+352 ## ## ## ##","+352 ### ### ###","+352 ### ## ###"],LV:"+371 ## ### ###",LY:"+218 ##-#######",MA:["+212 # ## ## ## ##","+212 ##-#######"],MC:["+377 ## ## ## ##","+377 # ## ## ## ##"],MD:["+373 ## ### ###","+373 ### ## ###","+373 ### #####"],ME:"+382 ## ### ###",MF:"+590 ### ## ## ##",MG:"+261 ## ## ### ##",MH:"+692 ###-####",MK:["+389 # ### ####","+389 ## ### ###","+389 ### # ## ##"],ML:"+223 ## ## ## ##",MM:["+95 # ### ###","+95 # ### ####","+95 ### ### ####"],MN:"+976 #### ####",MO:["+853 #### ####","+853 #### ###"],MP:"+1 ###-###-####",MQ:"+596 ### ## ## ##",MR:"+222 ## ## ## ##",MS:"+1 ###-###-####",MT:"+356 #### ####",MU:["+230 #### ####","+230 ### ####"],MV:["+960 ###-####","+960 ### ### ####"],MW:["+265 # ### ###","+265 ### ## ## ##"],MX:"+52 ### ### ####",MY:["+60 #-#### ####","+60 ##-### ####","+60 #-###-##-####","+60 ###-### ####"],MZ:["+258 ## ### ###","+258 ## ### ####","+258 ### ### ###"],NA:["+264 ## ### ###","+264 ## ### ####","+264 ### ### ###"],NC:"+687 ##.##.##",NE:["+227 ## ## ## ##","+227 ## ### ###"],NF:["+672 ## ####","+672 # #####"],NG:["+234 #### ## ####","+234 ### ### ####","+234 ### #### ####"],NI:"+505 #### ####",NL:["+31 ## ### ####","+31 # ########","+31 ### ####","+31 ## #######"],NO:["+47 ## ## ## ##","+47 ### ## ###"],NP:["+977 #-#######","+977 ###-#######","+977 ###########"],NR:"+674 ### ####",NU:["+683 ####","+683 ### ####"],NZ:["+64 # ### ####","+64 ## ### ####","+64 ### ### ###"],OM:["+968 ## ######","+968 #### ####","+968 ### #####"],PA:["+507 ###-####","+507 ####-####"],PE:["+51 # #######","+51 ### ### ###","+51 ### #####"],PF:["+689 ## ## ## ##","+689 ### ## ## ##"],PG:["+675 ### ####","+675 #### ####"],PH:["+63 # #### ####","+63 ### ### ####","+63 #### # ### ####"],PK:["+92 ## ########","+92 ### #######","+92 ### ### ##","+92 #### #####"],PL:["+48 ## ### ## ##","+48 ### ### ###"],PM:["+508 ## ## ##","+508 ### ## ## ##"],PR:"+1 ###-###-####",PS:["+970 # ### ####","+970 ### ### ###","+970 #### ### ###"],PT:["+351 ## ### ####","+351 ### ### ###"],PW:"+680 ### ####",PY:["+595 ## ### ####","+595 ### ######","+595 #### ### ####"],QA:["+974 #### ####","+974 ### ####"],RE:"+262 ### ## ## ##",RO:["+40 ## ### ####","+40 ### ### ###"],RS:["+381 ## ######","+381 ## #######","+381 ### #####"],RU:"+7 ### ###-##-##",RW:"+250 ### ### ###",SA:["+966 ## ### ####","+966 ### ### ####","+966 #### #####"],SB:["+677 #####","+677 ## #####"],SC:["+248 # ### ###","+248 #######"],SD:"+249 ## ### ####",SE:["+46 # ## ## ##","+46 ## ### ## ##","+46 ## ## ## ##","+46 ### ## ## ###"],SG:["+65 #### ####","+65 #### ### ####"],SH:"+290 #####",SI:["+386 # ### ## ##","+386 ## ### ###","+386 ## ######","+386 ### #####"],SJ:["+47 ## ## ## ##","+47 ### ## ###"],SK:["+421 #/### ### ##","+421 ### ### ###","+421 #######"],SL:"+232 ## ######",SM:["+378 #### ######","+378 ## ## ## ##"],SN:["+221 ## ### ## ##","+221 ### ## ## ##"],SO:["+252 # ######","+252 # #######"],SR:["+597 ###-###","+597 ###-####","+597 ##-##-##"],SS:"+211 ### ### ###",ST:"+239 ### ####",SV:["+503 #### ####","+503 ### ####"],SX:"+1 ###-###-####",SY:["+963 ## ### ####","+963 ### ### ###"],SZ:["+268 #### ####","+268 ##### ####"],TA:"+290 ####",TC:"+1 ###-###-####",TD:"+235 ## ## ## ##",TG:"+228 ## ## ## ##",TH:["+66 # ### ####","+66 ## ### ####","+66 #### ### ###"],TJ:["+992 ### ## ####","+992 ## ### ####"],TK:"+690 ####",TL:["+670 ### ####","+670 #### ####"],TM:["+993 ## ##-##-##","+993 ## ######"],TN:"+216 ## ### ###",TO:["+676 ##-###","+676 ### ####","+676 #### ###"],TR:["+90 ### ### ## ##","+90 ### ### ####"],TT:"+1 ###-###-####",TV:["+688 ## ###","+688 ## ####"],TW:["+886 # #### ####","+886 ### ### ###","+886 ## ### ####","+886 ## #### ####"],TZ:["+255 ## ### ####","+255 ### ### ###","+255 ### ## ####"],UA:["+380 #### #####","+380 ## ### ####","+380 ### ### ###"],UG:["+256 ## #######","+256 ### ######"],US:"+1 ###-###-####",UY:["+598 #### ####","+598 ## ### ###","+598 ### ####"],UZ:"+998 ## ### ## ##",VA:["+39 ## #### ####","+39 ### ### ####","+39 ### ### ###"],VC:"+1 ###-###-####",VE:"+58 ###-#######",VG:"+1 ###-###-####",VI:"+1 ###-###-####",VN:["+84 ### #### ###","+84 ### ### ###","+84 #### ######","+84 ## ### ## ##"],VU:["+678 #####","+678 ### ####"],WF:["+681 ## ## ##","+681 ### ## ## ##"],WS:["+685 #####","+685 ## #####","+685 ### ###"],XK:["+383 ## ### ###","+383 ### #####"],YE:["+967 # ### ###","+967 ### ### ###"],YT:"+262 ### ## ## ##",ZA:["+27 ## ### ####","+27 ### ### ###"],ZM:["+260 ### ### ###","+260 ## #######","+260 #########"],ZW:["+263 ## #####","+263 ## ### ####","+263 ### ####","+263 #### ######"]},ZA=/^[a-z]{2}$/i,ud=t=>{if(!ZA.test(t)){const e=typeof t;throw new TypeError(`cc argument must be an ISO 3166-1 alpha-2 string, but got '${e==="string"?t:e}' instead.`)}const n=[...t.toUpperCase()].map(e=>(e.codePointAt(0)??0)+127397);return String.fromCodePoint(...n)},fs=Object.entries(XA),z1=t=>t.split(/ (.*)/s);function sl(t){let n="",e="";if(Array.isArray(t)){const i=[];for(const u of t){const[r,s]=z1(u);n||(n=r),i.push(s)}e=i}else{const[i,u]=z1(t);n=i,e=u}return[n,e]}fs.map(([t,n])=>({id:t,mask:n}));fs.reduce((t,[n,e])=>{const[i,u]=sl(e);return t[n]={code:i,mask:u},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i}});fs.reduce((t,[n,e])=>{const[i,u]=sl(e);return t[n]={code:i,mask:u,flag:ud(n)},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i,flag:ud(t)}});const JA=fs.reduce((t,[n,e])=>{const[i,u]=sl(e),r=new Intl.DisplayNames(["en"],{type:"region"});return t[n]={code:i,mask:u,name:r.of(n)??"",flag:ud(n)},t},{});fs.map(([t,n])=>{const[e,i]=sl(n);return{id:t,code:e,mask:i,name:new Intl.DisplayNames(["en"],{type:"region"}).of(t)??"",flag:ud(t)}});const QA={key:0,class:"v-messages text-error py-2 px-4"},eN={class:"v-messages__message"},ty=h.defineComponent({__name:"PhoneMaskField",props:h.mergeModels({error:{},disabled:{type:Boolean}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.ref(),u=h.ref(""),r=h.ref(),s=a=>{if(!a){i.value?.selectCountry("BR"),r.value="BR";return}const[c,p]=a.split(" "),f=JA[c]?c:"BR";u.value||(u.value=p??""),i.value?.selectCountry(f),r.value=f};h.watch(()=>e.value,s,{immediate:!0});const l=a=>{if(!a){e.value=a;return}const c=a.split(" ").slice(1).join("").replace(/\D/g,"");e.value=`${r.value} ${c}`},o=a=>{r.value=a,e.value&&l(`${a} ${e.value.split(" ")[1]}`)};return h.onMounted(()=>s(e.value)),(a,c)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(YA),{ref_key:"phoneInput",ref:i,modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=p=>u.value=p),theme:"auto","search-placeholder":"Pesquise pelo país","no-results-text":"Nenhum país encontrado",detect:!1,"show-copy":!1,"disable-default-styles":!1,disabled:!!n.disabled,onChange:c[1]||(c[1]=p=>l(p.fullFormatted)),onCountryChange:c[2]||(c[2]=p=>o(p.id))},null,8,["modelValue","disabled"]),n.error?(h.openBlock(),h.createElementBlock("div",QA,[h.createElementVNode("div",eN,h.toDisplayString(n.error),1)])):h.createCommentVNode("",!0)],64))}}),ny=h.defineComponent({__name:"HourField",props:h.mergeModels({error:{default:""},disabled:{type:Boolean,default:!1},label:{},rules:{default:()=>[]}},{value:{default:"00:00"},valueModifiers:{}}),emits:["update:value"],setup(t){const n=t,e=u=>{const r=(u??"").split(":")[1];return r===void 0||parseInt(r,10)<=59||"Minutos devem ser entre 00 e 59"},i=h.useModel(t,"value");return(u,r)=>h.withDirectives((h.openBlock(),h.createBlock(Kr,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=s=>i.value=s),maxlength:5,"error-messages":n.error,disabled:n.disabled,rules:[e,...n.rules],label:n.label,placeholder:"HH:mm","hide-details":"auto"},null,8,["modelValue","error-messages","disabled","rules","label"])),[[h.unref(O2),"##:##"]])}}),tN={class:"position-relative overflow-visible"},nN={class:"pa-0 ma-0 text-red text-subtitle-2"},rN=h.defineComponent({__name:"ColorPaletteField",props:h.mergeModels({label:{},defaultColors:{}},{value:{default:null},valueModifiers:{},errorMessages:{type:[String,Array,Boolean],default:!1},errorMessagesModifiers:{}}),emits:["update:value","update:errorMessages"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.useModel(t,"errorMessages"),u=h.ref(!1),r=h.ref("#000000"),s=h.ref(),l=a=>{a===n.defaultColors?.length?e.value=r.value:n.defaultColors&&a!==void 0&&(e.value=n.defaultColors[a]),i.value=!1},o=()=>!!i.value&&i.value!==""&&i.value!==!0;return(a,c)=>(h.openBlock(),h.createBlock(Xi,{variant:"text",class:"pa-0",style:{"z-index":"10"}},{default:h.withCtx(()=>[h.createVNode(Js,{class:"d-flex align-center pa-0"},{default:h.withCtx(()=>[h.createVNode(Hx,{modelValue:s.value,"onUpdate:modelValue":[c[0]||(c[0]=p=>s.value=p),l],"selected-class":"selected",mandatory:"","show-arrows":""},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.defaultColors,p=>(h.openBlock(),h.createBlock(_i,{key:p,class:"border-thin color-swatch",style:h.normalizeStyle(`background-color: ${p}`)},null,8,["style"]))),128))]),_:1},8,["modelValue"]),h.createVNode(_i,{class:h.normalizeClass(["border-thin mr-2 custom-swatch",{selected:s.value===n.defaultColors?.length}]),style:h.normalizeStyle(`background-color: ${r.value}`),onClick:c[1]||(c[1]=()=>{s.value=n.defaultColors?.length,l(s.value)})},null,8,["class","style"]),h.createElementVNode("div",tN,[h.createVNode(_i,{class:"cursor-pointer toggle-picker",onClick:c[2]||(c[2]=p=>u.value=!u.value)},{default:h.withCtx(()=>[h.createVNode(qt,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(u.value?"ri-close-fill":"ri-pencil-line"),1)]),_:1})]),_:1}),u.value?(h.openBlock(),h.createBlock(h7,{key:0,modelValue:r.value,"onUpdate:modelValue":[c[3]||(c[3]=p=>r.value=p),c[4]||(c[4]=()=>l(s.value))],class:"position-fixed",modes:["hex"]},null,8,["modelValue"])):h.createCommentVNode("",!0)])]),_:1}),o()?(h.openBlock(),h.createBlock(rp,{key:0},{default:h.withCtx(()=>[h.createElementVNode("p",nN,h.toDisplayString(i.value),1)]),_:1})):h.createCommentVNode("",!0)]),_:1}))}}),ry=ji(rN,[["__scopeId","data-v-84ec2e9c"]]),iN={key:0,class:"form-fields-section-header"},aN={class:"d-flex align-center ga-2 min-w-0"},oN={class:"ma-0 text-sm font-weight-bold text-truncate"},sN=h.defineComponent({__name:"FormFields",props:{maskMode:{},searchMode:{},noPadding:{type:Boolean},fields:{},disabled:{type:Boolean}},emits:["updateField","updateSearch","removeCount","addCount"],setup(t,{emit:n}){const e=t,i=n,u=h.computed(()=>e.fields.filter(p=>N9(p))),r=p=>p.errorMessages??p.error??"",s=p=>p.itemTitle??(p.items?.some(f=>f&&f.text!==void 0)?"text":"title"),l=p=>!!(p.errorMessages?.length||p.error),o=(p,f)=>{p.error=void 0,p.errorMessages=[],p.value=f,i("updateField",{field:p.model,value:f})},a=(p,f)=>{o(p,f)},c=(p,f)=>{o(p,f)};return(p,f)=>(h.openBlock(),h.createBlock(Jo,{class:h.normalizeClass(["ma-0",t.noPadding?"pa-0":"pa-5"])},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.value,(d,v)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:`${d.model}-${v}`},[h.createVNode(Dr,{cols:h.unref(xf)(d),class:"pa-2",md:d.section?12:d.md||6,sm:"12"},{default:h.withCtx(()=>[d.section?(h.openBlock(),h.createElementBlock("div",iN,[h.createElementVNode("div",aN,[d.section.icon?(h.openBlock(),h.createBlock(qt,{key:0,icon:d.section.icon,size:"16"},null,8,["icon"])):h.createCommentVNode("",!0),h.createElementVNode("p",oN,h.toDisplayString(d.section.title),1)])])):d.type==="button-options"?(h.openBlock(),h.createBlock(q9,{key:1,field:d,onOnSelectedButtonChange:c},null,8,["field"])):d.secondField?(h.openBlock(),h.createBlock(Jo,{key:2},{default:h.withCtx(()=>[d.prependComponent?(h.openBlock(),h.createBlock(Dr,{key:0,class:"px-0",cols:"1"},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.prependComponent),{field:d,onClick:g=>d.prependClickFunction?.(g,d)},null,8,["field","onClick"]))]),_:2},1024)):h.createCommentVNode("",!0),h.createVNode(Dr,{cols:h.unref(xf)(d)},{default:h.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":g=>d.value=g},{ref_for:!0},d,{type:d.type,"mask-type":t.maskMode==="masked"?void 0:d.maskType,disabled:d.disabledOnlyField||d.disabled||t.disabled||!1,error:l(d),"error-messages":r(d),"onUpdate:modelValue":g=>o(d,g)}),null,16,["modelValue","onUpdate:modelValue","type","mask-type","disabled","error","error-messages"])):d.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:1,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","return-object","disabled"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"]),h.createVNode(Dr,{class:"pa-0 mt-3 d-flex",cols:d.secondField.cols||4},{default:h.withCtx(()=>[d.secondField.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:0,modelValue:d.secondField.value,"onUpdate:modelValue":[g=>d.secondField.value=g,g=>a(d.secondField,g)],label:d.secondField.label,items:d.secondField.items,"item-title":d.secondField.itemTitle??"text","item-value":d.secondField.itemValue??"value","error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","disabled"])):d.secondField.type==="text"||d.secondField.type==="number"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:1,modelValue:d.secondField.value,"onUpdate:modelValue":g=>d.secondField.value=g},{ref_for:!0},d.secondField,{type:d.secondField.type,disabled:d.secondField.disabled||t.disabled||!1,error:l(d.secondField),"error-messages":r(d.secondField),"onUpdate:modelValue":g=>a(d.secondField,g)}),null,16,["modelValue","onUpdate:modelValue","type","disabled","error","error-messages"])):d.secondField.type==="checkbox"?(h.openBlock(),h.createBlock(ha,{key:2,modelValue:d.secondField.value,"onUpdate:modelValue":[g=>d.secondField.value=g,g=>a(d.secondField,g)],label:d.secondField.label,"error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"])]),_:2},1024)):(h.openBlock(),h.createBlock(Jo,{key:3},{default:h.withCtx(()=>[h.createVNode(Dr,{cols:h.unref(xf)(d)},{default:h.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(h.openBlock(),h.createBlock(Bl,h.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":g=>d.value=g},{ref_for:!0},d,{type:d.type,"mask-type":t.maskMode==="masked"?void 0:d.maskType,disabled:d.disabled||t.disabled||!1,error:l(d),"error-messages":r(d),"onUpdate:modelValue":g=>o(d,g)}),null,16,["modelValue","onUpdate:modelValue","type","mask-type","disabled","error","error-messages"])):d.type==="textarea"?(h.openBlock(),h.createBlock(xS,{key:1,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,placeholder:d.placeholder,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","error-messages","rules","disabled"])):d.type==="select"?(h.openBlock(),h.createBlock(Qo,{key:2,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","multiple","chips","return-object","disabled"])):d.type==="file"?(h.openBlock(),h.createBlock(iS,{key:3,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1,clearable:""},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="autocomplete"?(h.openBlock(),h.createBlock(Bb,{key:4,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],search:d.search,"onUpdate:search":[g=>d.search=g,g=>i("updateSearch",d,g)],label:d.label,items:d.items,"item-title":s(d),"item-value":d.itemValue??"value","error-messages":r(d),autofocus:d.autofocus,"no-data-text":d.noDataText,multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1,clearable:""},h.createSlots({_:2},[d.slotItem?{name:"item",fn:h.withCtx(({item:g,props:m})=>[h.createElementVNode("span",h.mergeProps({ref_for:!0},m),[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.slotItem),{item:g},null,8,["item"]))],16)]),key:"0"}:void 0,d.chips?{name:"chip",fn:h.withCtx(({props:g,item:m})=>[h.createVNode(_i,h.mergeProps({ref_for:!0},g,{"prepend-avatar":m.raw?.avatar,text:m.title}),null,16,["prepend-avatar","text"])]),key:"1"}:void 0]),1032,["modelValue","onUpdate:modelValue","search","onUpdate:search","label","items","item-title","item-value","error-messages","autofocus","no-data-text","multiple","chips","return-object","disabled"])):d.type==="date"?(h.openBlock(),h.createBlock(Kr,{key:5,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g===""?null:g)],type:"date",label:d.label,placeholder:d.placeholder,hint:d.description,"persistent-hint":!!d.description,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","hint","persistent-hint","error-messages","rules","disabled"])):d.type==="datetime"?(h.openBlock(),h.createBlock(z2,{key:JSON.stringify(d.config),"model-value":d.value,config:d.config,rules:d.rules,label:d.label,placeholder:d.placeholder??"","min-date":d.minDate,"all-day":d.allDay??!1,"error-text":r(d),hint:d.description,"persistent-hint":!!d.description,disabled:d.disabled||t.disabled||!1,"prepend-icon":d.prependIcon,"prepend-inner-icon":d.prependInnerIcon,"append-icon":d.appendIcon,"append-inner-icon":d.appendInnerIcon,"onUpdate:modelValue":g=>o(d,g===""?null:g)},null,8,["model-value","config","rules","label","placeholder","min-date","all-day","error-text","hint","persistent-hint","disabled","prepend-icon","prepend-inner-icon","append-icon","append-inner-icon","onUpdate:modelValue"])):d.type==="checkbox"?(h.openBlock(),h.createBlock(ha,{key:7,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="switch"?(h.openBlock(),h.createBlock(yS,{key:8,modelValue:d.value,"onUpdate:modelValue":[g=>d.value=g,g=>o(d,g)],label:d.label,messages:d.description,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","messages","error-messages","disabled"])):d.type==="searchAutocomplete"&&t.searchMode==="remote"&&!d.multiple?(h.openBlock(),h.createBlock(J2,{key:9,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],items:d.items,"onUpdate:items":g=>d.items=g,"item-component":d.itemComponent??null,label:d.label,placeholder:d.placeholder,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","item-subtitle":d.itemSubtitle,"search-function":d.searchFunction,errors:d.error??null,"return-object":d.returnObject??!1,"second-param":d.secondSearchParam??null,"create-component":d.createComponent??null,"create-data":d.createData??null,disabled:d.disabled||t.disabled||!1,"append-icon":d.appendIcon,"append-icon-action":d.appendIconAction,"append-icon-tooltip":d.appendIconTooltip,"append-icon-color":d.appendIconColor,"search-context-key":d.searchContextKey,exclude:typeof d.exclude=="function"?d.exclude:()=>[]},null,8,["value","onUpdate:value","items","onUpdate:items","item-component","label","placeholder","item-title","item-value","item-subtitle","search-function","errors","return-object","second-param","create-component","create-data","disabled","append-icon","append-icon-action","append-icon-tooltip","append-icon-color","search-context-key","exclude"])):d.type==="searchAutocomplete"&&t.searchMode==="remote"&&d.multiple?(h.openBlock(),h.createBlock(Q2,{key:10,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],items:d.items,"onUpdate:items":g=>d.items=g,"item-component":d.itemComponent??null,label:d.label,placeholder:d.placeholder,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","search-function":d.searchFunction,errors:d.error??null,"return-object":d.returnObject??!1,"second-param":d.secondSearchParam??null,"create-component":d.createComponent??null,"create-data":d.createData??null,disabled:d.disabled||t.disabled||!1,exclude:typeof d.exclude=="function"?d.exclude:()=>[]},null,8,["value","onUpdate:value","items","onUpdate:items","item-component","label","placeholder","item-title","item-value","search-function","errors","return-object","second-param","create-component","create-data","disabled","exclude"])):d.type==="searchAutocomplete"?(h.openBlock(),h.createBlock(cp,h.mergeProps({key:11,value:d.value,"onUpdate:value":g=>d.value=g,items:d.items,"onUpdate:items":g=>d.items=g},{ref_for:!0},d,{error:l(d),disabled:d.disabled||t.disabled||!1,"onUpdate:value":g=>o(d,g)}),null,16,["value","onUpdate:value","items","onUpdate:items","error","disabled"])):d.type==="phone"?(h.openBlock(),h.createBlock(ty,{key:12,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],error:r(d),disabled:d.disabled||t.disabled||!1},null,8,["value","onUpdate:value","error","disabled"])):d.type==="hour"?(h.openBlock(),h.createBlock(ny,{key:13,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],error:r(d),disabled:d.disabled||t.disabled||!1,label:d.label,rules:d.rules},null,8,["value","onUpdate:value","error","disabled","label","rules"])):d.type==="color-picker"?(h.openBlock(),h.createBlock(ry,{key:14,value:d.value,"onUpdate:value":[g=>d.value=g,g=>o(d,g)],label:d.label,"default-colors":d.defaultColors,"error-messages":r(d)},null,8,["value","onUpdate:value","label","default-colors","error-messages"])):d.type==="info"&&d.component?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(d.component),h.mergeProps({key:15,ref_for:!0},d.props??{},{value:d.value,"onUpdate:value":g=>d.value=g,info:d.info,error:d.error,"remove-function":d.removeFunction}),null,16,["value","onUpdate:value","info","error","remove-function"])):d.type==="button"?(h.openBlock(),h.createBlock(_n,{key:16,block:"",onClick:g=>d.action?.()},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d.label),1)]),_:2},1032,["onClick"])):h.createCommentVNode("",!0)]),_:2},1032,["cols"]),d.count&&!d.disabled?(h.openBlock(),h.createBlock(Dr,{key:0,cols:"1",class:"d-flex align-center justify-center"},{default:h.withCtx(()=>[h.createVNode(_n,{variant:"outlined",onClick:()=>i("removeCount",d)},{default:h.withCtx(()=>[h.createVNode(qt,{icon:"ri-delete-bin-line",color:"red"})]),_:1},8,["onClick"])]),_:2},1024)):h.createCommentVNode("",!0)]),_:2},1024))]),_:2},1032,["cols","md"]),d.hasCountBtn&&!d.disabled?(h.openBlock(),h.createBlock(Dr,{key:0,cols:"12",class:"d-flex align-start justify-center pa-0"},{default:h.withCtx(()=>[h.createVNode(_n,{color:"primary",size:"small",variant:"outlined",icon:"",onClick:()=>{d.count&&(d.hasCountBtn=!1,i("addCount",[d,d.count+1]))}},{default:h.withCtx(()=>[h.createVNode(qt,{icon:"ri-add-line"})]),_:1},8,["onClick"])]),_:2},1024)):h.createCommentVNode("",!0)],64))),128)),h.createVNode(Dr,{cols:"12",class:"pa-0"},{default:h.withCtx(()=>[h.renderSlot(p.$slots,"custom",{},void 0,!0)]),_:3})]),_:3},8,["class"]))}}),lN=ji(sN,[["__scopeId","data-v-1eb837f7"]]),uN=h.defineComponent({__name:"GenericFormFlat",props:h.mergeModels({...I2.props,hideCancelButton:Boolean,noActionButtons:Boolean},{modelValue:{type:Object,default:()=>({})},modelModifiers:{}}),emits:h.mergeModels(["updateField","submit","updateSearch","addCount","removeCount","cancel"],["update:modelValue"]),setup(t,{expose:n,emit:e}){const i=t,u=e,r=h.useModel(t,"modelValue"),s=(b,w)=>{b.search=w,u("updateSearch",{field:b.model,value:w})},l=(b,w)=>i.maskMode!=="masked"?w:b.maskType?mh(b.maskType,w):b.getMaskType?mh(b.getMaskType(),w):b.maskFunction?b.maskFunction(w):w,o=({field:b,value:w})=>{const A=i.fields.find(T=>T.model===b);A&&i.maskMode==="masked"&&(w=l(A,w),A.value=w),r.value&&(r.value[b]=w),u("updateField",{field:b,value:w})},a=b=>{let w=!0;return b&&b.forEach(A=>{w=A()}),w},c=h.computed(()=>{const b={};return i.fields.forEach(w=>{b[w.model]=w.condition?a(w.condition):w.type!=="hidden"}),b}),p=b=>(b.type==="date"||b.type==="datetime")&&b.value===""?null:b.value,f=()=>{let b=!0;return g.value.forEach(w=>{if(w.disabledOnlyField)return;[w,w.secondField].filter(Boolean).forEach(T=>{const F=E9(T,T.value);T.error=F===!0?"":F,F!==!0&&(b=!1)})}),b},d=()=>{if(i.loading||i.disableSubmit)return;const b=i.validationMode==="submit";if(b&&!f())return;const w={};i.fields.forEach(A=>{w[A.model]=b?p(A):A.value,b&&A.secondField&&(w[A.secondField.model]=p(A.secondField))}),u("submit",w)},v=b=>{i.fields.forEach(w=>{i.maskMode==="masked"?w.value=b&&b[w.model]!=null?l(w,b[w.model]):null:w.value=b?b[w.model]:null,r.value&&(r.value[w.model]=w.value)})};h.watch(()=>i.initialData,v,{deep:!0,immediate:!0});const g=h.computed(()=>i.fields.filter(b=>c.value[b.model])),m=h.ref(!1),y=h.ref(null);return n({formRef:y}),(b,w)=>(h.openBlock(),h.createBlock(Xi,{variant:"text"},{default:h.withCtx(()=>[i.title?(h.openBlock(),h.createBlock(T9,{key:0,title:i.title},null,8,["title"])):h.createCommentVNode("",!0),h.createVNode(Js,{class:"pa-0"},{default:h.withCtx(()=>[h.createVNode(oS,{onSubmit:h.withModifiers(d,["prevent"]),disabled:i.disabled,ref_key:"form",ref:y,modelValue:m.value,"onUpdate:modelValue":w[3]||(w[3]=A=>m.value=A)},{default:h.withCtx(()=>[h.createVNode(lN,{fields:g.value,disabled:i.disabled,"no-padding":i.noPadding,"mask-mode":i.maskMode,"search-mode":i.searchMode,onUpdateSearch:s,onUpdateField:o,onAddCount:w[0]||(w[0]=A=>u("addCount",A)),onRemoveCount:w[1]||(w[1]=A=>u("removeCount",A))},null,8,["fields","disabled","no-padding","mask-mode","search-mode"]),t.noActionButtons?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(P9,{key:0,"disable-add-button":i.disableSubmit||i.validationMode==="live"&&!m.value,"hide-cancel-button":t.hideCancelButton??!1,"add-btn-text":b.addBtnText,loading:b.loading??!1,onCancel:w[2]||(w[2]=A=>u("cancel")),onSubmit:d},null,8,["disable-add-button","hide-cancel-button","add-btn-text","loading"]))]),_:1},8,["disabled","modelValue"])]),_:1})]),_:1}))}}),fp=ji(uN,[["__scopeId","data-v-833b3974"]]),iy=h.defineComponent({__name:"GenericForm",props:{...I2.props},emits:["update:isDialogVisible","submit","cancel","updateField","updateSearch","addCount","removeCount"],setup(t,{emit:n}){const e=t,i=n,u=()=>{s(!1),i("cancel")},r=l=>{i("submit",l)},s=l=>{l||e.fields.forEach(o=>o.error=""),i("update:isDialogVisible",l)};return h.watch(()=>e.isDialogVisible,l=>{l||e.fields.forEach(o=>o.error=""),!(!l&&e.notClearOnClose)&&e.fields.forEach(o=>{o.value=e.initialData?e.initialData[o.model]:null})}),(l,o)=>(h.openBlock(),h.createBlock(np,{"model-value":e.isDialogVisible,"onUpdate:modelValue":s,width:e.width??"600","min-width":e.minWidth??"600"},{default:h.withCtx(()=>[h.createVNode(Xi,{class:"position-relative"},{default:h.withCtx(()=>[e.loading?(h.openBlock(),h.createBlock(v9,{key:0})):h.createCommentVNode("",!0),h.createVNode(w9,{title:e.title,onClose:o[0]||(o[0]=a=>s(!1))},{beforeClose:h.withCtx(()=>[h.renderSlot(l.$slots,"beforeClose")]),_:3},8,["title"]),h.createVNode(Wi),h.createVNode(Js,{class:"pa-0"},{default:h.withCtx(()=>[h.createVNode(fp,{fields:e.fields,"initial-data":e.initialData,loading:l.loading,"no-action-buttons":e.noActionButtons,disabled:e.disabled,"add-btn-text":e.addBtnText,"no-padding":e.noPadding,"mask-mode":e.maskMode,"search-mode":e.searchMode,"validation-mode":e.validationMode,"disable-submit":e.disableSubmit,onCancel:u,onSubmit:r,onUpdateField:o[1]||(o[1]=a=>i("updateField",a)),onUpdateSearch:o[2]||(o[2]=a=>i("updateSearch",a)),onAddCount:o[3]||(o[3]=a=>i("addCount",a)),onRemoveCount:o[4]||(o[4]=a=>i("removeCount",a))},{custom:h.withCtx(()=>[h.renderSlot(l.$slots,"custom")]),_:3},8,["fields","initial-data","loading","no-action-buttons","disabled","add-btn-text","no-padding","mask-mode","search-mode","validation-mode","disable-submit"])]),_:3})]),_:3})]),_:3},8,["model-value","width","min-width"]))}}),cN={class:"d-flex text-2xl font-400 text-capitalize align-center font-weight-bold ga-4"},dN={key:0,class:"text-wrap mb-2 text-body-1"},fN={key:1,class:"text-wrap mb-2 text-body-1"},hN={key:0},pN={key:1,class:"text-primary"},mN={key:2},ay=h.defineComponent({__name:"GenericDeleteDialog",props:h.mergeModels({keyWord:{type:String,required:!0},itemName:{type:String,required:!1},actionVerb:{type:String,default:"deletar"},appendText:{type:String,required:!1},prependText:{type:String,required:!1},endText:{type:String,required:!1},customDescription:{type:String,required:!1},color:{type:String,default:"error"},confirmText:{type:String,default:"confirmar"}},{isDialogVisible:{default:!1,type:Boolean},isDialogVisibleModifiers:{}}),emits:h.mergeModels(["confirm","cancel"],["update:isDialogVisible"]),setup(t,{emit:n}){const e=t,i=h.useModel(t,"isDialogVisible"),u=n;return(r,s)=>(h.openBlock(),h.createBlock(np,{modelValue:i.value,"onUpdate:modelValue":s[2]||(s[2]=l=>i.value=l),width:"480"},{default:h.withCtx(()=>[h.createVNode(Xi,{class:"pa-3"},{default:h.withCtx(()=>[h.createVNode(ip,{class:"d-flex flex-column"},{default:h.withCtx(()=>[h.createElementVNode("div",cN,[h.createVNode(_n,{icon:"",variant:"tonal",color:t.color,class:"my-4",size:"small"},{default:h.withCtx(()=>[...s[3]||(s[3]=[h.createElementVNode("span",{class:"text-xl"},"!",-1)])]),_:1},8,["color"]),h.createTextVNode(" "+h.toDisplayString(e.actionVerb)+" "+h.toDisplayString(t.keyWord),1)]),e.customDescription?(h.openBlock(),h.createElementBlock("span",dN,h.toDisplayString(e.customDescription),1)):(h.openBlock(),h.createElementBlock("span",fN,[h.createTextVNode(" Tem certeza que deseja "+h.toDisplayString(e.actionVerb)+" ",1),e.prependText?(h.openBlock(),h.createElementBlock("span",hN,h.toDisplayString(e.prependText),1)):h.createCommentVNode("",!0),e.itemName?(h.openBlock(),h.createElementBlock("span",pN,h.toDisplayString(t.itemName),1)):h.createCommentVNode("",!0),e.appendText?(h.openBlock(),h.createElementBlock("span",mN,h.toDisplayString(e.appendText),1)):h.createCommentVNode("",!0),h.createElementVNode("span",null,h.toDisplayString(e.endText||"? Esta ação não pode ser desfeita"),1)]))]),_:1}),h.createVNode(rp,{class:"d-flex align-center justify-end"},{default:h.withCtx(()=>[h.createVNode(_n,{color:"secondary",variant:"outlined",density:"comfortable",onClick:s[0]||(s[0]=l=>u("cancel"))},{default:h.withCtx(()=>[...s[4]||(s[4]=[h.createTextVNode(" Cancelar ",-1)])]),_:1}),h.createVNode(_n,{color:t.color,variant:"flat",density:"comfortable",onClick:s[1]||(s[1]=l=>u("confirm"))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.confirmText),1)]),_:1},8,["color"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),gN=h.defineComponent({__name:"MultipleSearchAutocomplete",props:h.mergeModels({searchFunction:{type:Function},label:{},placeholder:{},itemTitle:{},itemValue:{},itemSubtitle:{},multiple:{type:Boolean},chips:{type:Boolean},returnObject:{type:Boolean},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},rules:{},clearable:{type:Boolean},exclude:{type:Function},searchContextKey:{},createComponent:{},createData:{},itemComponent:{}},{value:{default:()=>[]},valueModifiers:{},items:{default:()=>[]},itemsModifiers:{}}),emits:["update:value","update:items"],setup(t){const n=t,e=h.useModel(t,"value"),i=h.useModel(t,"items");return(u,r)=>(h.openBlock(),h.createBlock(cp,h.mergeProps({value:e.value,"onUpdate:value":r[0]||(r[0]=s=>e.value=s),items:i.value,"onUpdate:items":r[1]||(r[1]=s=>i.value=s)},n,{multiple:"",chips:""}),null,16,["value","items"]))}}),vN=h.defineComponent({__name:"PhoneField",props:h.mergeModels({label:{},disabled:{type:Boolean},error:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=h.useModel(t,"modelValue");return(e,i)=>(h.openBlock(),h.createBlock(Bl,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=u=>n.value=u),type:"text","mask-type":"phone",label:t.label,disabled:t.disabled,"error-messages":t.error,rules:t.rules},null,8,["modelValue","label","disabled","error-messages","rules"]))}}),bN=h.defineComponent({__name:"ColorPickerOptions",props:h.mergeModels({label:{},disabled:{type:Boolean},defaultColors:{}},{value:{},valueModifiers:{},errorMessages:{},errorMessagesModifiers:{}}),emits:["update:value","update:errorMessages"],setup(t){const n=h.useModel(t,"value"),e=h.useModel(t,"errorMessages");return(i,u)=>(h.openBlock(),h.createBlock(Kr,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),type:"color",label:t.label,disabled:t.disabled,"error-messages":e.value},null,8,["modelValue","label","disabled","error-messages"]))}}),yN={"vuetify-elements":{actions:"Ações",search:"Pesquisar",add:"Adicionar",adjust_columns:"Ajustar colunas de visualização",delete:"Excluir",deleted:"Excluído",cancel:"Cancelar",save:"Salvar",ok:"OK",this:"Esse",was_deleted:"foi deletado.",confirm_delete:"Tem certeza que deseja excluir",editFnNotDefined:"Função de edição não definida. Por favor, forneça uma editFn na definição do cabeçalho (header).",errorGettingHeaderValue:"Erro ao obter o valor do item para o cabeçalho",filterFnNotDefined:"Função de filtro não definida. Por favor, forneça uma filterFn nas propriedades do componente.",filterColumn:"Filtrar coluna",filterBy:"Filtrar por...",classify:"Classificar",hideColumn:"Esconder coluna",moveLeft:"Mover para esquerda",moveRight:"Mover para direita",all:"Todos",unexpectedError:"Ocorreu um erro inesperado. Por favor, tente novamente ou contate o suporte.",sortAsc:"Classificar de A a Z",sortDesc:"Classificar de Z a A",clearSort:"Limpar classificação",selectAll:"Selecionar tudo",clearFilter:"Limpar filtro",clearFilters:"Limpar filtros",noValuesFound:"Nenhum valor encontrado",loadingValues:"Carregando...",errorLoadingValues:"Não foi possível carregar os valores",filterPageOnly:"Filtro aplicado apenas aos itens desta página",columnMenu:"Opções da coluna"}},wN={"vuetify-elements":{actions:"Actions",search:"Search",add:"Add",adjust_columns:"Adjust view columns",delete:"Delete",deleted:"Deleted",cancel:"Cancel",save:"Save",ok:"OK",this:"This",was_deleted:"was deleted.",confirm_delete:"Are you sure you want to delete",editFnNotDefined:"Edit function not defined. Please provide an editFn in the header definition.",errorGettingHeaderValue:"Error getting item value for header",filterFnNotDefined:"Filter function not defined. Please provide a filterFn in the component props.",filterColumn:"Filter column",filterBy:"Filter by...",classify:"Classify",hideColumn:"Hide column",moveLeft:"Move left",moveRight:"Move right",all:"All",unexpectedError:"Unexpected error. Please, try again or contact the support team.",sortAsc:"Sort A to Z",sortDesc:"Sort Z to A",clearSort:"Clear sort",selectAll:"Select all",clearFilter:"Clear filter",clearFilters:"Clear filters",noValuesFound:"No values found",loadingValues:"Loading...",errorLoadingValues:"Could not load the values",filterPageOnly:"Filter applied to the items of this page only",columnMenu:"Column options"}},Pc={"pt-BR":yN,"en-US":wN};let oy=Pc["en-US"];function xN(t,n){oy={...Pc[t],...n}}function _N(t){return oy["vuetify-elements"][t]||t}function SN(t,n){for(const e of Object.keys(Pc)){const i={...Pc[e],...n?.[e]};t.global.setLocaleMessage(e,i)}return e=>t.global.t(`vuetify-elements.${e}`)}const kN={install(t,n){let e;if(n?.i18n)e=SN(n.i18n,n.messages);else{const i=n?.locale||"en-US";xN(i,n?.messages?.[i]),e=_N}t.provide(Oh,e),t.provide(Cg,n?.defaultColumnMenu??"legacy"),t.component("ActionBtn",au),t.component("GenericTable",M2),t.component("GenericForm",iy),t.component("GenericFormFlat",fp),t.component("GenericDeleteDialog",ay)}};exports.ColorPaletteField=ry;exports.GenericFormFlat=fp;exports.GenericTable=M2;exports.GenericTablePagination=Lb;exports.RemoteMultipleSearchField=Q2;exports.RemoteSearchField=J2;exports._sfc_main=au;exports._sfc_main$1=Bl;exports._sfc_main$10=ty;exports._sfc_main$11=cp;exports._sfc_main$2=F2;exports._sfc_main$3=bN;exports._sfc_main$4=z2;exports._sfc_main$5=ay;exports._sfc_main$6=iy;exports._sfc_main$7=ny;exports._sfc_main$8=gN;exports._sfc_main$9=vN;exports._typeof=xn;exports.applyColumnFilters=Gc;exports.applyFormMask=mh;exports.buildColumnFilterParams=Zw;exports.clearColumnFilter=Rl;exports.columnFilterKey=Bh;exports.columnSortKey=Wf;exports.commonjsGlobal=fn;exports.distinctColumnValues=Tg;exports.formatMoney=T8;exports.getDefaultExportFromCjs=Bv;exports.handleExport=Vv;exports.plugin=kN;exports.setColumnFilter=Pg;exports.vnodeText=yc;