nuxt-ignis 0.5.0-rc.2 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.data/content/contents.sqlite +0 -0
- package/.nuxt/components.d.ts +402 -208
- package/.nuxt/content/components.ts +201 -104
- package/.nuxt/dev/index.mjs +1041 -712
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.mjs +1 -18
- package/.nuxt/dist/server/client.precomputed.mjs +1 -0
- package/.nuxt/eslint-typegen.d.ts +56 -2
- package/.nuxt/eslint.config.d.mts +2 -2
- package/.nuxt/eslint.config.mjs +10 -10
- package/.nuxt/imports.d.ts +63 -59
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-highlighter.mjs +4 -0
- package/.nuxt/mdc-image-component.mjs +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +12 -12
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +8 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +17 -17
- package/.nuxt/nitro.json +4 -4
- package/.nuxt/nuxt.d.ts +12 -11
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +13 -10
- package/.nuxt/tsconfig.app.json +191 -191
- package/.nuxt/tsconfig.json +194 -194
- package/.nuxt/tsconfig.node.json +105 -105
- package/.nuxt/tsconfig.server.json +128 -128
- package/.nuxt/tsconfig.shared.json +55 -55
- package/.nuxt/types/build.d.ts +2 -1
- package/.nuxt/types/components.d.ts +402 -208
- package/.nuxt/types/i18n-plugin.d.ts +2 -2
- package/.nuxt/types/imports.d.ts +348 -342
- package/.nuxt/types/modules.d.ts +16 -16
- package/.nuxt/types/nitro-imports.d.ts +68 -68
- package/.nuxt/types/nitro-nuxt.d.ts +1 -0
- package/.nuxt/types/nitro-routes.d.ts +20 -20
- package/.nuxt/types/plugins.d.ts +37 -37
- package/.nuxt/types/ui.d.ts +3 -3
- package/.nuxt/ui/drawer.ts +23 -0
- package/.nuxt/ui/progress.ts +3 -3
- package/.nuxt/ui-image-component.ts +1 -1
- package/.output/nitro.json +3 -3
- package/.output/public/_nuxt/1vOq3xiE.js +1 -0
- package/.output/public/_nuxt/22rhGZdI.js +1 -0
- package/.output/public/_nuxt/9eIdSibD.js +1 -0
- package/.output/public/_nuxt/BBmTy930.js +35 -0
- package/.output/public/_nuxt/BKe83Cjx.js +1 -0
- package/.output/public/_nuxt/Bc5GLloR.js +1 -0
- package/.output/public/_nuxt/BdG3SY-u.js +1 -0
- package/.output/public/_nuxt/BeyOQpYA.js +1 -0
- package/.output/public/_nuxt/BqcXd3MY.js +94 -0
- package/.output/public/_nuxt/Bz55A4y1.js +1 -0
- package/.output/public/_nuxt/C2ybsIQ4.js +1 -0
- package/.output/public/_nuxt/C4U5VOMJ.js +1 -0
- package/.output/public/_nuxt/CAJsyjAK.js +1 -0
- package/.output/public/_nuxt/CD9aBAuy.js +1 -0
- package/.output/public/_nuxt/CHOS7x_d.js +1 -0
- package/.output/public/_nuxt/CXhUbdF6.js +1 -0
- package/.output/public/_nuxt/CZWScI5k.js +1 -0
- package/.output/public/_nuxt/DHd34syF.js +1 -0
- package/.output/public/_nuxt/DMbgtwAJ.js +1 -0
- package/.output/public/_nuxt/DR8jhnFO.js +1 -0
- package/.output/public/_nuxt/DTT0LBLY.js +1 -0
- package/.output/public/_nuxt/{aetvq4w9.js → DWV_uL6G.js} +9 -12
- package/.output/public/_nuxt/DdpTKqR-.js +1 -0
- package/.output/public/_nuxt/Df_NcBcC.js +1 -0
- package/.output/public/_nuxt/DhqOMFXQ.js +1 -0
- package/.output/public/_nuxt/Dnp9eFDR.js +1 -0
- package/.output/public/_nuxt/DnqMs_6O.js +1 -0
- package/.output/public/_nuxt/Dq7g_IfY.js +1 -0
- package/.output/public/_nuxt/DsAJWnuW.js +1 -0
- package/.output/public/_nuxt/DvVg7vM_.js +1 -0
- package/.output/public/_nuxt/DwKqLVGx.js +1 -0
- package/.output/public/_nuxt/DxzqnQKF.js +1 -0
- package/.output/public/_nuxt/Y0f1tU-r.js +1 -0
- package/.output/public/_nuxt/atySmcu6.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7bab2b8f-93ee-4f44-a604-8cd2b41eac60.json +1 -0
- package/.output/public/_nuxt/entry.CtpkPzPO.css +1 -0
- package/.output/public/_nuxt/error-404.DzDu4Ean.css +1 -0
- package/.output/public/_nuxt/error-500.BdNqqJx7.css +1 -0
- package/.output/public/_nuxt/q3i45eMH.js +1 -0
- package/.output/public/_nuxt/vueform.CkWb7x1C.css +1 -0
- package/.output/server/chunks/_/error-500.mjs +1 -1
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +468 -543
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +10 -33
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +212 -145
- package/.output/server/node_modules/@babel/parser/package.json +3 -3
- package/.output/server/node_modules/@poppinss/utils/package.json +1 -1
- package/.output/server/node_modules/@shikijs/core/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
- package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +1 -1
- package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +1 -1
- package/.output/server/node_modules/@shikijs/langs/package.json +11 -3
- package/.output/server/node_modules/@shikijs/themes/package.json +3 -3
- package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
- package/.output/server/node_modules/@shikijs/types/package.json +1 -1
- package/.output/server/node_modules/detect-libc/lib/detect-libc.js +59 -13
- package/.output/server/node_modules/detect-libc/lib/elf.js +39 -0
- package/.output/server/node_modules/detect-libc/lib/filesystem.js +18 -8
- package/.output/server/node_modules/detect-libc/package.json +5 -2
- package/.output/server/node_modules/devalue/package.json +1 -1
- package/.output/server/node_modules/devalue/src/parse.js +7 -1
- package/.output/server/node_modules/devalue/src/uneval.js +9 -8
- package/.output/server/node_modules/fast-xml-parser/package.json +1 -1
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +297 -287
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +3 -2
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +4 -4
- package/.output/server/node_modules/image-meta/dist/index.mjs +85 -4
- package/.output/server/node_modules/image-meta/package.json +12 -12
- package/.output/server/node_modules/is-arrayish/package.json +1 -1
- package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -2
- package/.output/server/node_modules/node-fetch-native/dist/node.mjs +10 -10
- package/.output/server/node_modules/node-fetch-native/package.json +13 -13
- package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -1
- package/.output/server/node_modules/node-mock-http/package.json +6 -6
- package/.output/server/node_modules/oauth4webapi/build/index.js +10 -8
- package/.output/server/node_modules/oauth4webapi/package.json +12 -12
- package/.output/server/node_modules/openid-client/build/index.js +1 -1
- package/.output/server/node_modules/openid-client/package.json +7 -7
- package/.output/server/node_modules/secure-json-parse/index.js +35 -0
- package/.output/server/node_modules/secure-json-parse/package.json +2 -3
- package/.output/server/node_modules/semver/classes/semver.js +19 -5
- package/.output/server/node_modules/semver/internal/identifiers.js +4 -0
- package/.output/server/node_modules/semver/package.json +3 -3
- package/.output/server/node_modules/shiki/package.json +9 -9
- package/.output/server/node_modules/simple-swizzle/package.json +1 -1
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +6 -513
- package/.output/server/node_modules/unhead/package.json +5 -1
- package/.output/server/node_modules/unist-util-is/lib/index.js +10 -5
- package/.output/server/node_modules/unist-util-is/package.json +12 -9
- package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +8 -7
- package/.output/server/node_modules/unist-util-visit-parents/package.json +18 -13
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +1 -1
- package/.output/server/node_modules/yaml/package.json +2 -1
- package/.output/server/package.json +27 -27
- package/bin/cli.js +23 -16
- package/bin/set-app-vue.js +3 -1
- package/bin/set-css.js +3 -1
- package/bin/set-eslint.js +3 -1
- package/bin/setup.js +10 -7
- package/nuxt.config.ts +13 -1
- package/package.json +15 -12
- package/test/versions.test.ts +65 -0
- package/vitest.config.ts +5 -5
- package/.nuxt/dist/server/client.manifest.json +0 -18
- package/.output/public/_nuxt/1soVlS0z.js +0 -1
- package/.output/public/_nuxt/B7rsWaa2.js +0 -1
- package/.output/public/_nuxt/BFreiu22.js +0 -1
- package/.output/public/_nuxt/BLcTglbc.js +0 -1
- package/.output/public/_nuxt/Bhd4_yFT.js +0 -1
- package/.output/public/_nuxt/Bhpb4lc3.js +0 -1
- package/.output/public/_nuxt/Bi2eMDmd.js +0 -1
- package/.output/public/_nuxt/Bm30MqE0.js +0 -1
- package/.output/public/_nuxt/BqsN2CZp.js +0 -1
- package/.output/public/_nuxt/Bs3IGOdt.js +0 -1
- package/.output/public/_nuxt/ByaiRTkI.js +0 -1
- package/.output/public/_nuxt/C9ePPGPX.js +0 -94
- package/.output/public/_nuxt/CA578xwz.js +0 -1
- package/.output/public/_nuxt/CDttUXKg.js +0 -1
- package/.output/public/_nuxt/CQozUI2A.js +0 -1
- package/.output/public/_nuxt/CSN71QT8.js +0 -1
- package/.output/public/_nuxt/CqCaqSd2.js +0 -1
- package/.output/public/_nuxt/D8v-efI7.js +0 -1
- package/.output/public/_nuxt/DBJqMhGy.js +0 -35
- package/.output/public/_nuxt/DR4hWRk7.js +0 -1
- package/.output/public/_nuxt/DRroQ-Xq.js +0 -1
- package/.output/public/_nuxt/DStnBfJS.js +0 -1
- package/.output/public/_nuxt/DXTYyv-V.js +0 -1
- package/.output/public/_nuxt/DeS1g0YT.js +0 -1
- package/.output/public/_nuxt/Deb6R53f.js +0 -1
- package/.output/public/_nuxt/DiDHllLr.js +0 -1
- package/.output/public/_nuxt/DvwlldUy.js +0 -1
- package/.output/public/_nuxt/DyCICqRh.js +0 -1
- package/.output/public/_nuxt/DzT4wm3Y.js +0 -1
- package/.output/public/_nuxt/E8nje24C.js +0 -1
- package/.output/public/_nuxt/RbPLLy5S.js +0 -1
- package/.output/public/_nuxt/builds/meta/cbc9377a-971e-4db1-b4b1-01807b82ee58.json +0 -1
- package/.output/public/_nuxt/entry.whtwWr_z.css +0 -1
- package/.output/public/_nuxt/error-404.Cq535Uij.css +0 -1
- package/.output/public/_nuxt/error-500.BHm_N15n.css +0 -1
- package/.output/public/_nuxt/jpnxxCHq.js +0 -1
- package/.output/public/_nuxt/sHsV3x2B.js +0 -1
- package/.output/public/_nuxt/sQEqbbg2.js +0 -1
- package/.output/public/_nuxt/vueform.ChEauysg.css +0 -1
- package/.output/server/chunks/build/client.manifest.mjs +0 -511
- package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{t as Q,c as h,E as ja,r as R,w as Se,o as Vt,Q as ut,G as Gn,R as pi,H as He,S as Ii,U as yp,V as bp,a as Ap,W as x1,X as li,Y as oa}from"./BqcXd3MY.js";function wp(e,t){return function(){return e.apply(t,arguments)}}const{toString:$1}=Object.prototype,{getPrototypeOf:xd}=Object,{iterator:fo,toStringTag:_p}=Symbol,co=(e=>t=>{const r=$1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),un=e=>(e=e.toLowerCase(),t=>co(t)===e),vo=e=>t=>typeof t===e,{isArray:Mu}=Array,Du=vo("undefined");function Ll(e){return e!==null&&!Du(e)&&e.constructor!==null&&!Du(e.constructor)&&da(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ep=un("ArrayBuffer");function O1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ep(e.buffer),t}const T1=vo("string"),da=vo("function"),Sp=vo("number"),jl=e=>e!==null&&typeof e=="object",F1=e=>e===!0||e===!1,Fs=e=>{if(co(e)!=="object")return!1;const t=xd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_p in e)&&!(fo in e)},M1=e=>{if(!jl(e)||Ll(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},k1=un("Date"),B1=un("File"),P1=un("Blob"),q1=un("FileList"),N1=e=>jl(e)&&da(e.pipe),R1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||da(e.append)&&((t=co(e))==="formdata"||t==="object"&&da(e.toString)&&e.toString()==="[object FormData]"))},I1=un("URLSearchParams"),[L1,j1,U1,Y1]=["ReadableStream","Request","Response","Headers"].map(un),z1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ul(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Mu(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(Ll(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),u=i.length;let l;for(a=0;a<u;a++)l=i[a],t.call(null,e[l],l,e)}}function Dp(e,t){if(Ll(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cp=e=>!Du(e)&&e!==Bi;function Kf(){const{caseless:e,skipUndefined:t}=Cp(this)&&this||{},r={},a=(n,i)=>{const u=e&&Dp(r,i)||i;Fs(r[u])&&Fs(n)?r[u]=Kf(r[u],n):Fs(n)?r[u]=Kf({},n):Mu(n)?r[u]=n.slice():(!t||!Du(n))&&(r[u]=n)};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ul(arguments[n],a);return r}const V1=(e,t,r,{allOwnKeys:a}={})=>(Ul(t,(n,i)=>{r&&da(n)?e[i]=wp(n,r):e[i]=n},{allOwnKeys:a}),e),W1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H1=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},G1=(e,t,r,a)=>{let n,i,u;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)u=n[i],(!a||a(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=r!==!1&&xd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},K1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},Z1=e=>{if(!e)return null;if(Mu(e))return e;let t=e.length;if(!Sp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},X1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xd(Uint8Array)),J1=(e,t)=>{const a=(e&&e[fo]).call(e);let n;for(;(n=a.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Q1=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},eA=un("HTMLFormElement"),tA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),av=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),rA=un("RegExp"),xp=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Ul(r,(n,i)=>{let u;(u=t(n,i,e))!==!1&&(a[i]=u||n)}),Object.defineProperties(e,a)},aA=e=>{xp(e,(t,r)=>{if(da(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(da(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},nA=(e,t)=>{const r={},a=n=>{n.forEach(i=>{r[i]=!0})};return Mu(e)?a(e):a(String(e).split(t)),r},iA=()=>{},uA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function lA(e){return!!(e&&da(e.append)&&e[_p]==="FormData"&&e[fo])}const sA=e=>{const t=new Array(10),r=(a,n)=>{if(jl(a)){if(t.indexOf(a)>=0)return;if(Ll(a))return a;if(!("toJSON"in a)){t[n]=a;const i=Mu(a)?[]:{};return Ul(a,(u,l)=>{const s=r(u,n+1);!Du(s)&&(i[l]=s)}),t[n]=void 0,i}}return a};return r(e,0)},oA=un("AsyncFunction"),fA=e=>e&&(jl(e)||da(e))&&da(e.then)&&da(e.catch),$p=((e,t)=>e?setImmediate:t?((r,a)=>(Bi.addEventListener("message",({source:n,data:i})=>{n===Bi&&i===r&&a.length&&a.shift()()},!1),n=>{a.push(n),Bi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",da(Bi.postMessage)),dA=typeof queueMicrotask<"u"?queueMicrotask.bind(Bi):typeof process<"u"&&process.nextTick||$p,cA=e=>e!=null&&da(e[fo]),L={isArray:Mu,isArrayBuffer:Ep,isBuffer:Ll,isFormData:R1,isArrayBufferView:O1,isString:T1,isNumber:Sp,isBoolean:F1,isObject:jl,isPlainObject:Fs,isEmptyObject:M1,isReadableStream:L1,isRequest:j1,isResponse:U1,isHeaders:Y1,isUndefined:Du,isDate:k1,isFile:B1,isBlob:P1,isRegExp:rA,isFunction:da,isStream:N1,isURLSearchParams:I1,isTypedArray:X1,isFileList:q1,forEach:Ul,merge:Kf,extend:V1,trim:z1,stripBOM:W1,inherits:H1,toFlatObject:G1,kindOf:co,kindOfTest:un,endsWith:K1,toArray:Z1,forEachEntry:J1,matchAll:Q1,isHTMLForm:eA,hasOwnProperty:av,hasOwnProp:av,reduceDescriptors:xp,freezeMethods:aA,toObjectSet:nA,toCamelCase:tA,noop:iA,toFiniteNumber:uA,findKey:Dp,global:Bi,isContextDefined:Cp,isSpecCompliantForm:lA,toJSONObject:sA,isAsyncFn:oA,isThenable:fA,setImmediate:$p,asap:dA,isIterable:cA};function Je(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}L.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const Op=Je.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tp[e]={value:e}});Object.defineProperties(Je,Tp);Object.defineProperty(Op,"isAxiosError",{value:!0});Je.from=(e,t,r,a,n,i)=>{const u=Object.create(Op);L.toFlatObject(e,u,function(f){return f!==Error.prototype},o=>o!=="isAxiosError");const l=e&&e.message?e.message:"Error",s=t==null&&e?e.code:t;return Je.call(u,l,s,r,a,n),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",i&&Object.assign(u,i),u};const vA=null;function Zf(e){return L.isPlainObject(e)||L.isArray(e)}function Fp(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function nv(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fp(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function pA(e){return L.isArray(e)&&!e.some(Zf)}const hA=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function po(e,t,r){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=L.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!L.isUndefined(g[m])});const a=r.metaTokens,n=r.visitor||f,i=r.dots,u=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(n))throw new TypeError("visitor must be a function");function o(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(L.isBoolean(p))return p.toString();if(!s&&L.isBlob(p))throw new Je("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,g){let A=p;if(p&&!g&&typeof p=="object"){if(L.endsWith(m,"{}"))m=a?m:m.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&pA(p)||(L.isFileList(p)||L.endsWith(m,"[]"))&&(A=L.toArray(p)))return m=Fp(m),A.forEach(function(b,_){!(L.isUndefined(b)||b===null)&&t.append(u===!0?nv([m],_,i):u===null?m:m+"[]",o(b))}),!1}return Zf(p)?!0:(t.append(nv(g,m,i),o(p)),!1)}const d=[],c=Object.assign(hA,{defaultVisitor:f,convertValue:o,isVisitable:Zf});function v(p,m){if(!L.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),L.forEach(p,function(A,y){(!(L.isUndefined(A)||A===null)&&n.call(t,A,L.isString(y)?y.trim():y,m,c))===!0&&v(A,m?m.concat(y):[y])}),d.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return v(e),t}function iv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function $d(e,t){this._pairs=[],e&&po(e,this,t)}const Mp=$d.prototype;Mp.append=function(t,r){this._pairs.push([t,r])};Mp.toString=function(t){const r=t?function(a){return t.call(this,a,iv)}:iv;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function mA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kp(e,t,r){if(!t)return e;const a=r&&r.encode||mA;L.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(n?i=n(t,r):i=L.isURLSearchParams(t)?t.toString():new $d(t,r).toString(a),i){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uv{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Bp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gA=typeof URLSearchParams<"u"?URLSearchParams:$d,yA=typeof FormData<"u"?FormData:null,bA=typeof Blob<"u"?Blob:null,AA={isBrowser:!0,classes:{URLSearchParams:gA,FormData:yA,Blob:bA},protocols:["http","https","file","blob","url","data"]},Od=typeof window<"u"&&typeof document<"u",Xf=typeof navigator=="object"&&navigator||void 0,wA=Od&&(!Xf||["ReactNative","NativeScript","NS"].indexOf(Xf.product)<0),_A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",EA=Od&&window.location.href||"http://localhost",SA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Od,hasStandardBrowserEnv:wA,hasStandardBrowserWebWorkerEnv:_A,navigator:Xf,origin:EA},Symbol.toStringTag,{value:"Module"})),Gr={...SA,...AA};function DA(e,t){return po(e,new Gr.classes.URLSearchParams,{visitor:function(r,a,n,i){return Gr.isNode&&L.isBuffer(r)?(this.append(a,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function CA(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xA(e){const t={},r=Object.keys(e);let a;const n=r.length;let i;for(a=0;a<n;a++)i=r[a],t[i]=e[i];return t}function Pp(e){function t(r,a,n,i){let u=r[i++];if(u==="__proto__")return!0;const l=Number.isFinite(+u),s=i>=r.length;return u=!u&&L.isArray(n)?n.length:u,s?(L.hasOwnProp(n,u)?n[u]=[n[u],a]:n[u]=a,!l):((!n[u]||!L.isObject(n[u]))&&(n[u]=[]),t(r,a,n[u],i)&&L.isArray(n[u])&&(n[u]=xA(n[u])),!l)}if(L.isFormData(e)&&L.isFunction(e.entries)){const r={};return L.forEachEntry(e,(a,n)=>{t(CA(a),n,r,0)}),r}return null}function $A(e,t,r){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const Yl={transitional:Bp,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return n?JSON.stringify(Pp(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return DA(t,this.formSerializer).toString();if((l=L.isFileList(t))||a.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return po(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||n?(r.setContentType("application/json",!1),$A(t)):t}],transformResponse:[function(t){const r=this.transitional||Yl.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(a&&!this.responseType||n)){const u=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(l){if(u)throw l.name==="SyntaxError"?Je.from(l,Je.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gr.classes.FormData,Blob:Gr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Yl.headers[e]={}});const OA=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TA=e=>{const t={};let r,a,n;return e&&e.split(`
|
|
2
|
+
`).forEach(function(u){n=u.indexOf(":"),r=u.substring(0,n).trim().toLowerCase(),a=u.substring(n+1).trim(),!(!r||t[r]&&OA[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},lv=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function Ms(e){return e===!1||e==null?e:L.isArray(e)?e.map(Ms):String(e)}function FA(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const MA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function df(e,t,r,a,n){if(L.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!L.isString(t)){if(L.isString(a))return t.indexOf(a)!==-1;if(L.isRegExp(a))return a.test(t)}}function kA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function BA(e,t){const r=L.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,i,u){return this[a].call(this,t,n,i,u)},configurable:!0})})}let ca=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function i(l,s,o){const f=il(s);if(!f)throw new Error("header name must be a non-empty string");const d=L.findKey(n,f);(!d||n[d]===void 0||o===!0||o===void 0&&n[d]!==!1)&&(n[d||s]=Ms(l))}const u=(l,s)=>L.forEach(l,(o,f)=>i(o,f,s));if(L.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(L.isString(t)&&(t=t.trim())&&!MA(t))u(TA(t),r);else if(L.isObject(t)&&L.isIterable(t)){let l={},s,o;for(const f of t){if(!L.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[o=f[0]]=(s=l[o])?L.isArray(s)?[...s,f[1]]:[s,f[1]]:f[1]}u(l,r)}else t!=null&&i(r,t,a);return this}get(t,r){if(t=il(t),t){const a=L.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return FA(n);if(L.isFunction(r))return r.call(this,n,a);if(L.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=il(t),t){const a=L.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||df(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function i(u){if(u=il(u),u){const l=L.findKey(a,u);l&&(!r||df(a,a[l],l,r))&&(delete a[l],n=!0)}}return L.isArray(t)?t.forEach(i):i(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const i=r[a];(!t||df(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const r=this,a={};return L.forEach(this,(n,i)=>{const u=L.findKey(a,i);if(u){r[u]=Ms(n),delete r[i];return}const l=t?kA(i):String(i).trim();l!==i&&delete r[i],r[l]=Ms(n),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return L.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&L.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[lv]=this[lv]={accessors:{}}).accessors,n=this.prototype;function i(u){const l=il(u);a[l]||(BA(n,u),a[l]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}};ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(ca.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});L.freezeMethods(ca);function cf(e,t){const r=this||Yl,a=t||r,n=ca.from(a.headers);let i=a.data;return L.forEach(e,function(l){i=l.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function qp(e){return!!(e&&e.__CANCEL__)}function ku(e,t,r){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,r),this.name="CanceledError"}L.inherits(ku,Je,{__CANCEL__:!0});function Np(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new Je("Request failed with status code "+r.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function PA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qA(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,i=0,u;return t=t!==void 0?t:1e3,function(s){const o=Date.now(),f=a[i];u||(u=o),r[n]=s,a[n]=o;let d=i,c=0;for(;d!==n;)c+=r[d++],d=d%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),o-u<t)return;const v=f&&o-f;return v?Math.round(c*1e3/v):void 0}}function NA(e,t){let r=0,a=1e3/t,n,i;const u=(o,f=Date.now())=>{r=f,n=null,i&&(clearTimeout(i),i=null),e(...o)};return[(...o)=>{const f=Date.now(),d=f-r;d>=a?u(o,f):(n=o,i||(i=setTimeout(()=>{i=null,u(n)},a-d)))},()=>n&&u(n)]}const Ws=(e,t,r=3)=>{let a=0;const n=qA(50,250);return NA(i=>{const u=i.loaded,l=i.lengthComputable?i.total:void 0,s=u-a,o=n(s),f=u<=l;a=u;const d={loaded:u,total:l,progress:l?u/l:void 0,bytes:s,rate:o||void 0,estimated:o&&l&&f?(l-u)/o:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},r)},sv=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},ov=e=>(...t)=>L.asap(()=>e(...t)),RA=Gr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Gr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Gr.origin),Gr.navigator&&/(msie|trident)/i.test(Gr.navigator.userAgent)):()=>!0,IA=Gr.hasStandardBrowserEnv?{write(e,t,r,a,n,i){const u=[e+"="+encodeURIComponent(t)];L.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),L.isString(a)&&u.push("path="+a),L.isString(n)&&u.push("domain="+n),i===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function LA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rp(e,t,r){let a=!LA(t);return e&&(a||r==!1)?jA(e,t):t}const fv=e=>e instanceof ca?{...e}:e;function Li(e,t){t=t||{};const r={};function a(o,f,d,c){return L.isPlainObject(o)&&L.isPlainObject(f)?L.merge.call({caseless:c},o,f):L.isPlainObject(f)?L.merge({},f):L.isArray(f)?f.slice():f}function n(o,f,d,c){if(L.isUndefined(f)){if(!L.isUndefined(o))return a(void 0,o,d,c)}else return a(o,f,d,c)}function i(o,f){if(!L.isUndefined(f))return a(void 0,f)}function u(o,f){if(L.isUndefined(f)){if(!L.isUndefined(o))return a(void 0,o)}else return a(void 0,f)}function l(o,f,d){if(d in t)return a(o,f);if(d in e)return a(void 0,o)}const s={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(o,f,d)=>n(fv(o),fv(f),d,!0)};return L.forEach(Object.keys({...e,...t}),function(f){const d=s[f]||n,c=d(e[f],t[f],f);L.isUndefined(c)&&d!==l||(r[f]=c)}),r}const Ip=e=>{const t=Li({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:i,headers:u,auth:l}=t;if(t.headers=u=ca.from(u),t.url=kp(Rp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&u.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),L.isFormData(r)){if(Gr.hasStandardBrowserEnv||Gr.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(L.isFunction(r.getHeaders)){const s=r.getHeaders(),o=["content-type","content-length"];Object.entries(s).forEach(([f,d])=>{o.includes(f.toLowerCase())&&u.set(f,d)})}}if(Gr.hasStandardBrowserEnv&&(a&&L.isFunction(a)&&(a=a(t)),a||a!==!1&&RA(t.url))){const s=n&&i&&IA.read(i);s&&u.set(n,s)}return t},UA=typeof XMLHttpRequest<"u",YA=UA&&function(e){return new Promise(function(r,a){const n=Ip(e);let i=n.data;const u=ca.from(n.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:o}=n,f,d,c,v,p;function m(){v&&v(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(f),n.signal&&n.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function A(){if(!g)return;const b=ca.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};Np(function(S){r(S),m()},function(S){a(S),m()},C),g=null}"onloadend"in g?g.onloadend=A:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(A)},g.onabort=function(){g&&(a(new Je("Request aborted",Je.ECONNABORTED,e,g)),g=null)},g.onerror=function(_){const C=_&&_.message?_.message:"Network Error",T=new Je(C,Je.ERR_NETWORK,e,g);T.event=_||null,a(T),g=null},g.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const C=n.transitional||Bp;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),a(new Je(_,C.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,g)),g=null},i===void 0&&u.setContentType(null),"setRequestHeader"in g&&L.forEach(u.toJSON(),function(_,C){g.setRequestHeader(C,_)}),L.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&l!=="json"&&(g.responseType=n.responseType),o&&([c,p]=Ws(o,!0),g.addEventListener("progress",c)),s&&g.upload&&([d,v]=Ws(s),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",v)),(n.cancelToken||n.signal)&&(f=b=>{g&&(a(!b||b.type?new ku(null,e,g):b),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(f),n.signal&&(n.signal.aborted?f():n.signal.addEventListener("abort",f)));const y=PA(n.url);if(y&&Gr.protocols.indexOf(y)===-1){a(new Je("Unsupported protocol "+y+":",Je.ERR_BAD_REQUEST,e));return}g.send(i||null)})},zA=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const i=function(o){if(!n){n=!0,l();const f=o instanceof Error?o:this.reason;a.abort(f instanceof Je?f:new ku(f instanceof Error?f.message:f))}};let u=t&&setTimeout(()=>{u=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const l=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(o=>{o.unsubscribe?o.unsubscribe(i):o.removeEventListener("abort",i)}),e=null)};e.forEach(o=>o.addEventListener("abort",i));const{signal:s}=a;return s.unsubscribe=()=>L.asap(l),s}},VA=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},WA=async function*(e,t){for await(const r of HA(e))yield*VA(r,t)},HA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},dv=(e,t,r,a)=>{const n=WA(e,t);let i=0,u,l=s=>{u||(u=!0,a&&a(s))};return new ReadableStream({async pull(s){try{const{done:o,value:f}=await n.next();if(o){l(),s.close();return}let d=f.byteLength;if(r){let c=i+=d;r(c)}s.enqueue(new Uint8Array(f))}catch(o){throw l(o),o}},cancel(s){return l(s),n.return()}},{highWaterMark:2})},cv=64*1024,{isFunction:ms}=L,GA=(({Request:e,Response:t})=>({Request:e,Response:t}))(L.global),{ReadableStream:vv,TextEncoder:pv}=L.global,hv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},KA=e=>{e=L.merge.call({skipUndefined:!0},GA,e);const{fetch:t,Request:r,Response:a}=e,n=t?ms(t):typeof fetch=="function",i=ms(r),u=ms(a);if(!n)return!1;const l=n&&ms(vv),s=n&&(typeof pv=="function"?(p=>m=>p.encode(m))(new pv):async p=>new Uint8Array(await new r(p).arrayBuffer())),o=i&&l&&hv(()=>{let p=!1;const m=new r(Gr.origin,{body:new vv,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),f=u&&l&&hv(()=>L.isReadableStream(new a("").body)),d={stream:f&&(p=>p.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,g)=>{let A=m&&m[p];if(A)return A.call(m);throw new Je(`Response type '${p}' is not supported`,Je.ERR_NOT_SUPPORT,g)})});const c=async p=>{if(p==null)return 0;if(L.isBlob(p))return p.size;if(L.isSpecCompliantForm(p))return(await new r(Gr.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(L.isArrayBufferView(p)||L.isArrayBuffer(p))return p.byteLength;if(L.isURLSearchParams(p)&&(p=p+""),L.isString(p))return(await s(p)).byteLength},v=async(p,m)=>{const g=L.toFiniteNumber(p.getContentLength());return g??c(m)};return async p=>{let{url:m,method:g,data:A,signal:y,cancelToken:b,timeout:_,onDownloadProgress:C,onUploadProgress:T,responseType:S,headers:D,withCredentials:x="same-origin",fetchOptions:F}=Ip(p),k=t||fetch;S=S?(S+"").toLowerCase():"text";let U=zA([y,b&&b.toAbortSignal()],_),Y=null;const H=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let N;try{if(T&&o&&g!=="get"&&g!=="head"&&(N=await v(D,A))!==0){let W=new r(m,{method:"POST",body:A,duplex:"half"}),ee;if(L.isFormData(A)&&(ee=W.headers.get("content-type"))&&D.setContentType(ee),W.body){const[se,Me]=sv(N,Ws(ov(T)));A=dv(W.body,cv,se,Me)}}L.isString(x)||(x=x?"include":"omit");const I=i&&"credentials"in r.prototype,j={...F,signal:U,method:g.toUpperCase(),headers:D.normalize().toJSON(),body:A,duplex:"half",credentials:I?x:void 0};Y=i&&new r(m,j);let M=await(i?k(Y,F):k(m,j));const K=f&&(S==="stream"||S==="response");if(f&&(C||K&&H)){const W={};["status","statusText","headers"].forEach(z=>{W[z]=M[z]});const ee=L.toFiniteNumber(M.headers.get("content-length")),[se,Me]=C&&sv(ee,Ws(ov(C),!0))||[];M=new a(dv(M.body,cv,se,()=>{Me&&Me(),H&&H()}),W)}S=S||"text";let Z=await d[L.findKey(d,S)||"text"](M,p);return!K&&H&&H(),await new Promise((W,ee)=>{Np(W,ee,{data:Z,headers:ca.from(M.headers),status:M.status,statusText:M.statusText,config:p,request:Y})})}catch(I){throw H&&H(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,p,Y),{cause:I.cause||I}):Je.from(I,I&&I.code,p,Y)}}},ZA=new Map,Lp=e=>{let t=e?e.env:{};const{fetch:r,Request:a,Response:n}=t,i=[a,n,r];let u=i.length,l=u,s,o,f=ZA;for(;l--;)s=i[l],o=f.get(s),o===void 0&&f.set(s,o=l?new Map:KA(t)),f=o;return o};Lp();const Jf={http:vA,xhr:YA,fetch:{get:Lp}};L.forEach(Jf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mv=e=>`- ${e}`,XA=e=>L.isFunction(e)||e===null||e===!1,jp={getAdapter:(e,t)=>{e=L.isArray(e)?e:[e];const{length:r}=e;let a,n;const i={};for(let u=0;u<r;u++){a=e[u];let l;if(n=a,!XA(a)&&(n=Jf[(l=String(a)).toLowerCase()],n===void 0))throw new Je(`Unknown adapter '${l}'`);if(n&&(L.isFunction(n)||(n=n.get(t))))break;i[l||"#"+u]=n}if(!n){const u=Object.entries(i).map(([s,o])=>`adapter ${s} `+(o===!1?"is not supported by the environment":"is not available in the build"));let l=r?u.length>1?`since :
|
|
4
|
+
`+u.map(mv).join(`
|
|
5
|
+
`):" "+mv(u[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return n},adapters:Jf};function vf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ku(null,e)}function gv(e){return vf(e),e.headers=ca.from(e.headers),e.data=cf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jp.getAdapter(e.adapter||Yl.adapter,e)(e).then(function(a){return vf(e),a.data=cf.call(e,e.transformResponse,a),a.headers=ca.from(a.headers),a},function(a){return qp(a)||(vf(e),a&&a.response&&(a.response.data=cf.call(e,e.transformResponse,a.response),a.response.headers=ca.from(a.response.headers))),Promise.reject(a)})}const Up="1.12.2",ho={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ho[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const yv={};ho.transitional=function(t,r,a){function n(i,u){return"[Axios v"+Up+"] Transitional option '"+i+"'"+u+(a?". "+a:"")}return(i,u,l)=>{if(t===!1)throw new Je(n(u," has been removed"+(r?" in "+r:"")),Je.ERR_DEPRECATED);return r&&!yv[u]&&(yv[u]=!0),t?t(i,u,l):!0}};ho.spelling=function(t){return(r,a)=>!0};function JA(e,t,r){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const i=a[n],u=t[i];if(u){const l=e[i],s=l===void 0||u(l,i,e);if(s!==!0)throw new Je("option "+i+" must be "+s,Je.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const ks={assertOptions:JA,validators:ho},yn=ks.validators;let qi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new uv,response:new uv}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
6
|
+
`+i):a.stack=i}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Li(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:i}=r;a!==void 0&&ks.assertOptions(a,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),n!=null&&(L.isFunction(n)?r.paramsSerializer={serialize:n}:ks.assertOptions(n,{encode:yn.function,serialize:yn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ks.assertOptions(r,{baseUrl:yn.spelling("baseURL"),withXsrfToken:yn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=i&&L.merge(i.common,i[r.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ca.concat(u,i);const l=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(s=s&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});let f,d=0,c;if(!s){const p=[gv.bind(this),void 0];for(p.unshift(...l),p.push(...o),c=p.length,f=Promise.resolve(r);d<c;)f=f.then(p[d++],p[d++]);return f}c=l.length;let v=r;for(;d<c;){const p=l[d++],m=l[d++];try{v=p(v)}catch(g){m.call(this,g);break}}try{f=gv.call(this,v)}catch(p){return Promise.reject(p)}for(d=0,c=o.length;d<c;)f=f.then(o[d++],o[d++]);return f}getUri(t){t=Li(this.defaults,t);const r=Rp(t.baseURL,t.url,t.allowAbsoluteUrls);return kp(r,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){qi.prototype[t]=function(r,a){return this.request(Li(a||{},{method:t,url:r,data:(a||{}).data}))}});L.forEach(["post","put","patch"],function(t){function r(a){return function(i,u,l){return this.request(Li(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:u}))}}qi.prototype[t]=r(),qi.prototype[t+"Form"]=r(!0)});let QA=class Yp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const a=this;this.promise.then(n=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](n);a._listeners=null}),this.promise.then=n=>{let i;const u=new Promise(l=>{a.subscribe(l),i=l}).then(n);return u.cancel=function(){a.unsubscribe(i)},u},t(function(i,u,l){a.reason||(a.reason=new ku(i,u,l),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Yp(function(n){t=n}),cancel:t}}};function ew(e){return function(r){return e.apply(null,r)}}function tw(e){return L.isObject(e)&&e.isAxiosError===!0}const Qf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qf).forEach(([e,t])=>{Qf[t]=e});function zp(e){const t=new qi(e),r=wp(qi.prototype.request,t);return L.extend(r,qi.prototype,t,{allOwnKeys:!0}),L.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return zp(Li(e,n))},r}const wr=zp(Yl);wr.Axios=qi;wr.CanceledError=ku;wr.CancelToken=QA;wr.isCancel=qp;wr.VERSION=Up;wr.toFormData=po;wr.AxiosError=Je;wr.Cancel=wr.CanceledError;wr.all=function(t){return Promise.all(t)};wr.spread=ew;wr.isAxiosError=tw;wr.mergeConfig=Li;wr.AxiosHeaders=ca;wr.formToJSON=e=>Pp(L.isHTMLForm(e)?new FormData(e):e);wr.getAdapter=jp.getAdapter;wr.HttpStatusCode=Qf;wr.default=wr;const{Axios:aU,AxiosError:nU,CanceledError:iU,isCancel:uU,CancelToken:lU,VERSION:sU,all:oU,Cancel:fU,isAxiosError:dU,spread:cU,toFormData:vU,AxiosHeaders:pU,HttpStatusCode:hU,formToJSON:mU,getAdapter:gU,mergeConfig:yU}=wr;//! moment.js
|
|
7
|
+
//! version : 2.30.1
|
|
8
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
9
|
+
//! license : MIT
|
|
10
|
+
//! momentjs.com
|
|
11
|
+
var Vp;function Ae(){return Vp.apply(null,arguments)}function rw(e){Vp=e}function rn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ni(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function gt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Td(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(gt(e,t))return!1;return!0}function la(e){return e===void 0}function Kn(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function zl(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wp(e,t){var r=[],a,n=e.length;for(a=0;a<n;++a)r.push(t(e[a],a));return r}function fi(e,t){for(var r in t)gt(t,r)&&(e[r]=t[r]);return gt(t,"toString")&&(e.toString=t.toString),gt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Cn(e,t,r,a){return hh(e,t,r,a,!0).utc()}function aw(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function tt(e){return e._pf==null&&(e._pf=aw()),e._pf}var ed;Array.prototype.some?ed=Array.prototype.some:ed=function(e){var t=Object(this),r=t.length>>>0,a;for(a=0;a<r;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function Fd(e){var t=null,r=!1,a=e._d&&!isNaN(e._d.getTime());if(a&&(t=tt(e),r=ed.call(t.parsedDateParts,function(n){return n!=null}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a;return e._isValid}function mo(e){var t=Cn(NaN);return e!=null?fi(tt(t),e):tt(t).userInvalidated=!0,t}var bv=Ae.momentProperties=[],pf=!1;function Md(e,t){var r,a,n,i=bv.length;if(la(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),la(t._i)||(e._i=t._i),la(t._f)||(e._f=t._f),la(t._l)||(e._l=t._l),la(t._strict)||(e._strict=t._strict),la(t._tzm)||(e._tzm=t._tzm),la(t._isUTC)||(e._isUTC=t._isUTC),la(t._offset)||(e._offset=t._offset),la(t._pf)||(e._pf=tt(t)),la(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)a=bv[r],n=t[a],la(n)||(e[a]=n);return e}function Vl(e){Md(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),pf===!1&&(pf=!0,Ae.updateOffset(this),pf=!1)}function an(e){return e instanceof Vl||e!=null&&e._isAMomentObject!=null}function Hp(e){Ae.suppressDeprecationWarnings===!1&&typeof console<"u"}function Ua(e,t){var r=!0;return fi(function(){if(Ae.deprecationHandler!=null&&Ae.deprecationHandler(null,e),r){var a=[],n,i,u,l=arguments.length;for(i=0;i<l;i++){if(n="",typeof arguments[i]=="object"){n+=`
|
|
12
|
+
[`+i+"] ";for(u in arguments[0])gt(arguments[0],u)&&(n+=u+": "+arguments[0][u]+", ");n=n.slice(0,-2)}else n=arguments[i];a.push(n)}Hp(e+`
|
|
13
|
+
Arguments: `+Array.prototype.slice.call(a).join("")+`
|
|
14
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Av={};function Gp(e,t){Ae.deprecationHandler!=null&&Ae.deprecationHandler(e,t),Av[e]||(Hp(t),Av[e]=!0)}Ae.suppressDeprecationWarnings=!1;Ae.deprecationHandler=null;function xn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function nw(e){var t,r;for(r in e)gt(e,r)&&(t=e[r],xn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function td(e,t){var r=fi({},e),a;for(a in t)gt(t,a)&&(Ni(e[a])&&Ni(t[a])?(r[a]={},fi(r[a],e[a]),fi(r[a],t[a])):t[a]!=null?r[a]=t[a]:delete r[a]);for(a in e)gt(e,a)&&!gt(t,a)&&Ni(e[a])&&(r[a]=fi({},r[a]));return r}function kd(e){e!=null&&this.set(e)}var rd;Object.keys?rd=Object.keys:rd=function(e){var t,r=[];for(t in e)gt(e,t)&&r.push(t);return r};var iw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function uw(e,t,r){var a=this._calendar[e]||this._calendar.sameElse;return xn(a)?a.call(t,r):a}function Sn(e,t,r){var a=""+Math.abs(e),n=t-a.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+a}var Bd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,gs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hf={},bu={};function Pe(e,t,r,a){var n=a;typeof a=="string"&&(n=function(){return this[a]()}),e&&(bu[e]=n),t&&(bu[t[0]]=function(){return Sn(n.apply(this,arguments),t[1],t[2])}),r&&(bu[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function lw(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function sw(e){var t=e.match(Bd),r,a;for(r=0,a=t.length;r<a;r++)bu[t[r]]?t[r]=bu[t[r]]:t[r]=lw(t[r]);return function(n){var i="",u;for(u=0;u<a;u++)i+=xn(t[u])?t[u].call(n,e):t[u];return i}}function Bs(e,t){return e.isValid()?(t=Kp(t,e.localeData()),hf[t]=hf[t]||sw(t),hf[t](e)):e.localeData().invalidDate()}function Kp(e,t){var r=5;function a(n){return t.longDateFormat(n)||n}for(gs.lastIndex=0;r>=0&&gs.test(e);)e=e.replace(gs,a),gs.lastIndex=0,r-=1;return e}var ow={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function fw(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Bd).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var dw="Invalid date";function cw(){return this._invalidDate}var vw="%d",pw=/\d{1,2}/;function hw(e){return this._ordinal.replace("%d",e)}var mw={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function gw(e,t,r,a){var n=this._relativeTime[r];return xn(n)?n(e,t,r,a):n.replace(/%d/i,e)}function yw(e,t){var r=this._relativeTime[e>0?"future":"past"];return xn(r)?r(t):r.replace(/%s/i,t)}var wv={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ya(e){return typeof e=="string"?wv[e]||wv[e.toLowerCase()]:void 0}function Pd(e){var t={},r,a;for(a in e)gt(e,a)&&(r=Ya(a),r&&(t[r]=e[a]));return t}var bw={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Aw(e){var t=[],r;for(r in e)gt(e,r)&&t.push({unit:r,priority:bw[r]});return t.sort(function(a,n){return a.priority-n.priority}),t}var Zp=/\d/,Sa=/\d\d/,Xp=/\d{3}/,qd=/\d{4}/,go=/[+-]?\d{6}/,tr=/\d\d?/,Jp=/\d\d\d\d?/,Qp=/\d\d\d\d\d\d?/,yo=/\d{1,3}/,Nd=/\d{1,4}/,bo=/[+-]?\d{1,6}/,Bu=/\d+/,Ao=/[+-]?\d+/,ww=/Z|[+-]\d\d:?\d\d/gi,wo=/Z|[+-]\d\d(?::?\d\d)?/gi,_w=/[+-]?\d+(\.\d{1,3})?/,Wl=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pu=/^[1-9]\d?/,Rd=/^([1-9]\d|\d)/,Hs;Hs={};function De(e,t,r){Hs[e]=xn(t)?t:function(a,n){return a&&r?r:t}}function Ew(e,t){return gt(Hs,e)?Hs[e](t._strict,t._locale):new RegExp(Sw(e))}function Sw(e){return Vn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,a,n,i){return r||a||n||i}))}function Vn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ra(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function st(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Ra(t)),r}var ad={};function Ut(e,t){var r,a=t,n;for(typeof e=="string"&&(e=[e]),Kn(t)&&(a=function(i,u){u[t]=st(i)}),n=e.length,r=0;r<n;r++)ad[e[r]]=a}function Hl(e,t){Ut(e,function(r,a,n,i){n._w=n._w||{},t(r,n._w,n,i)})}function Dw(e,t,r){t!=null&>(ad,e)&&ad[e](t,r._a,r,e)}function _o(e){return e%4===0&&e%100!==0||e%400===0}var Kr=0,Yn=1,wn=2,kr=3,Qa=4,zn=5,Pi=6,Cw=7,xw=8;Pe("Y",0,0,function(){var e=this.year();return e<=9999?Sn(e,4):"+"+e});Pe(0,["YY",2],0,function(){return this.year()%100});Pe(0,["YYYY",4],0,"year");Pe(0,["YYYYY",5],0,"year");Pe(0,["YYYYYY",6,!0],0,"year");De("Y",Ao);De("YY",tr,Sa);De("YYYY",Nd,qd);De("YYYYY",bo,go);De("YYYYYY",bo,go);Ut(["YYYYY","YYYYYY"],Kr);Ut("YYYY",function(e,t){t[Kr]=e.length===2?Ae.parseTwoDigitYear(e):st(e)});Ut("YY",function(e,t){t[Kr]=Ae.parseTwoDigitYear(e)});Ut("Y",function(e,t){t[Kr]=parseInt(e,10)});function El(e){return _o(e)?366:365}Ae.parseTwoDigitYear=function(e){return st(e)+(st(e)>68?1900:2e3)};var eh=qu("FullYear",!0);function $w(){return _o(this.year())}function qu(e,t){return function(r){return r!=null?(th(this,e,r),Ae.updateOffset(this,t),this):Ml(this,e)}}function Ml(e,t){if(!e.isValid())return NaN;var r=e._d,a=e._isUTC;switch(t){case"Milliseconds":return a?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return a?r.getUTCSeconds():r.getSeconds();case"Minutes":return a?r.getUTCMinutes():r.getMinutes();case"Hours":return a?r.getUTCHours():r.getHours();case"Date":return a?r.getUTCDate():r.getDate();case"Day":return a?r.getUTCDay():r.getDay();case"Month":return a?r.getUTCMonth():r.getMonth();case"FullYear":return a?r.getUTCFullYear():r.getFullYear();default:return NaN}}function th(e,t,r){var a,n,i,u,l;if(!(!e.isValid()||isNaN(r))){switch(a=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?a.setUTCMilliseconds(r):a.setMilliseconds(r));case"Seconds":return void(n?a.setUTCSeconds(r):a.setSeconds(r));case"Minutes":return void(n?a.setUTCMinutes(r):a.setMinutes(r));case"Hours":return void(n?a.setUTCHours(r):a.setHours(r));case"Date":return void(n?a.setUTCDate(r):a.setDate(r));case"FullYear":break;default:return}i=r,u=e.month(),l=e.date(),l=l===29&&u===1&&!_o(i)?28:l,n?a.setUTCFullYear(i,u,l):a.setFullYear(i,u,l)}}function Ow(e){return e=Ya(e),xn(this[e])?this[e]():this}function Tw(e,t){if(typeof e=="object"){e=Pd(e);var r=Aw(e),a,n=r.length;for(a=0;a<n;a++)this[r[a].unit](e[r[a].unit])}else if(e=Ya(e),xn(this[e]))return this[e](t);return this}function Fw(e,t){return(e%t+t)%t}var br;Array.prototype.indexOf?br=Array.prototype.indexOf:br=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Id(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Fw(t,12);return e+=(t-r)/12,r===1?_o(e)?29:28:31-r%7%2}Pe("M",["MM",2],"Mo",function(){return this.month()+1});Pe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Pe("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",tr,Pu);De("MM",tr,Sa);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});Ut(["M","MM"],function(e,t){t[Yn]=st(e)-1});Ut(["MMM","MMMM"],function(e,t,r,a){var n=r._locale.monthsParse(e,a,r._strict);n!=null?t[Yn]=n:tt(r).invalidMonth=e});var Mw="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ah=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kw=Wl,Bw=Wl;function Pw(e,t){return e?rn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ah).test(t)?"format":"standalone"][e.month()]:rn(this._months)?this._months:this._months.standalone}function qw(e,t){return e?rn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ah.test(t)?"format":"standalone"][e.month()]:rn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Nw(e,t,r){var a,n,i,u=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=Cn([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(n=br.call(this._shortMonthsParse,u),n!==-1?n:null):(n=br.call(this._longMonthsParse,u),n!==-1?n:null):t==="MMM"?(n=br.call(this._shortMonthsParse,u),n!==-1?n:(n=br.call(this._longMonthsParse,u),n!==-1?n:null)):(n=br.call(this._longMonthsParse,u),n!==-1?n:(n=br.call(this._shortMonthsParse,u),n!==-1?n:null))}function Rw(e,t,r){var a,n,i;if(this._monthsParseExact)return Nw.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(n=Cn([2e3,a]),r&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[a]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[a]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(r&&t==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!r&&this._monthsParse[a].test(e))return a}}function nh(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=st(t);else if(t=e.localeData().monthsParse(t),!Kn(t))return e}var r=t,a=e.date();return a=a<29?a:Math.min(a,Id(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,a):e._d.setMonth(r,a),e}function ih(e){return e!=null?(nh(this,e),Ae.updateOffset(this,!0),this):Ml(this,"Month")}function Iw(){return Id(this.year(),this.month())}function Lw(e){return this._monthsParseExact?(gt(this,"_monthsRegex")||uh.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(gt(this,"_monthsShortRegex")||(this._monthsShortRegex=kw),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function jw(e){return this._monthsParseExact?(gt(this,"_monthsRegex")||uh.call(this),e?this._monthsStrictRegex:this._monthsRegex):(gt(this,"_monthsRegex")||(this._monthsRegex=Bw),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function uh(){function e(s,o){return o.length-s.length}var t=[],r=[],a=[],n,i,u,l;for(n=0;n<12;n++)i=Cn([2e3,n]),u=Vn(this.monthsShort(i,"")),l=Vn(this.months(i,"")),t.push(u),r.push(l),a.push(l),a.push(u);t.sort(e),r.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Uw(e,t,r,a,n,i,u){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,a,n,i,u),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,a,n,i,u),l}function kl(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Gs(e,t,r){var a=7+t-r,n=(7+kl(e,0,a).getUTCDay()-t)%7;return-n+a-1}function lh(e,t,r,a,n){var i=(7+r-a)%7,u=Gs(e,a,n),l=1+7*(t-1)+i+u,s,o;return l<=0?(s=e-1,o=El(s)+l):l>El(e)?(s=e+1,o=l-El(e)):(s=e,o=l),{year:s,dayOfYear:o}}function Bl(e,t,r){var a=Gs(e.year(),t,r),n=Math.floor((e.dayOfYear()-a-1)/7)+1,i,u;return n<1?(u=e.year()-1,i=n+Wn(u,t,r)):n>Wn(e.year(),t,r)?(i=n-Wn(e.year(),t,r),u=e.year()+1):(u=e.year(),i=n),{week:i,year:u}}function Wn(e,t,r){var a=Gs(e,t,r),n=Gs(e+1,t,r);return(El(e)-a+n)/7}Pe("w",["ww",2],"wo","week");Pe("W",["WW",2],"Wo","isoWeek");De("w",tr,Pu);De("ww",tr,Sa);De("W",tr,Pu);De("WW",tr,Sa);Hl(["w","ww","W","WW"],function(e,t,r,a){t[a.substr(0,1)]=st(e)});function Yw(e){return Bl(e,this._week.dow,this._week.doy).week}var zw={dow:0,doy:6};function Vw(){return this._week.dow}function Ww(){return this._week.doy}function Hw(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Gw(e){var t=Bl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Pe("d",0,"do","day");Pe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Pe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Pe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Pe("e",0,0,"weekday");Pe("E",0,0,"isoWeekday");De("d",tr);De("e",tr);De("E",tr);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});Hl(["dd","ddd","dddd"],function(e,t,r,a){var n=r._locale.weekdaysParse(e,a,r._strict);n!=null?t.d=n:tt(r).invalidWeekday=e});Hl(["d","e","E"],function(e,t,r,a){t[a]=st(e)});function Kw(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Zw(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ld(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Xw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qw=Wl,e_=Wl,t_=Wl;function r_(e,t){var r=rn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ld(r,this._week.dow):e?r[e.day()]:r}function a_(e){return e===!0?Ld(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function n_(e){return e===!0?Ld(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function i_(e,t,r){var a,n,i,u=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=Cn([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(n=br.call(this._weekdaysParse,u),n!==-1?n:null):t==="ddd"?(n=br.call(this._shortWeekdaysParse,u),n!==-1?n:null):(n=br.call(this._minWeekdaysParse,u),n!==-1?n:null):t==="dddd"?(n=br.call(this._weekdaysParse,u),n!==-1||(n=br.call(this._shortWeekdaysParse,u),n!==-1)?n:(n=br.call(this._minWeekdaysParse,u),n!==-1?n:null)):t==="ddd"?(n=br.call(this._shortWeekdaysParse,u),n!==-1||(n=br.call(this._weekdaysParse,u),n!==-1)?n:(n=br.call(this._minWeekdaysParse,u),n!==-1?n:null)):(n=br.call(this._minWeekdaysParse,u),n!==-1||(n=br.call(this._weekdaysParse,u),n!==-1)?n:(n=br.call(this._shortWeekdaysParse,u),n!==-1?n:null))}function u_(e,t,r){var a,n,i;if(this._weekdaysParseExact)return i_.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(n=Cn([2e3,1]).day(a),r&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(r&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(r&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!r&&this._weekdaysParse[a].test(e))return a}}function l_(e){if(!this.isValid())return e!=null?this:NaN;var t=Ml(this,"Day");return e!=null?(e=Kw(e,this.localeData()),this.add(e-t,"d")):t}function s_(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function o_(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Zw(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function f_(e){return this._weekdaysParseExact?(gt(this,"_weekdaysRegex")||jd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(gt(this,"_weekdaysRegex")||(this._weekdaysRegex=Qw),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function d_(e){return this._weekdaysParseExact?(gt(this,"_weekdaysRegex")||jd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=e_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function c_(e){return this._weekdaysParseExact?(gt(this,"_weekdaysRegex")||jd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=t_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jd(){function e(f,d){return d.length-f.length}var t=[],r=[],a=[],n=[],i,u,l,s,o;for(i=0;i<7;i++)u=Cn([2e3,1]).day(i),l=Vn(this.weekdaysMin(u,"")),s=Vn(this.weekdaysShort(u,"")),o=Vn(this.weekdays(u,"")),t.push(l),r.push(s),a.push(o),n.push(l),n.push(s),n.push(o);t.sort(e),r.sort(e),a.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ud(){return this.hours()%12||12}function v_(){return this.hours()||24}Pe("H",["HH",2],0,"hour");Pe("h",["hh",2],0,Ud);Pe("k",["kk",2],0,v_);Pe("hmm",0,0,function(){return""+Ud.apply(this)+Sn(this.minutes(),2)});Pe("hmmss",0,0,function(){return""+Ud.apply(this)+Sn(this.minutes(),2)+Sn(this.seconds(),2)});Pe("Hmm",0,0,function(){return""+this.hours()+Sn(this.minutes(),2)});Pe("Hmmss",0,0,function(){return""+this.hours()+Sn(this.minutes(),2)+Sn(this.seconds(),2)});function oh(e,t){Pe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}oh("a",!0);oh("A",!1);function fh(e,t){return t._meridiemParse}De("a",fh);De("A",fh);De("H",tr,Rd);De("h",tr,Pu);De("k",tr,Pu);De("HH",tr,Sa);De("hh",tr,Sa);De("kk",tr,Sa);De("hmm",Jp);De("hmmss",Qp);De("Hmm",Jp);De("Hmmss",Qp);Ut(["H","HH"],kr);Ut(["k","kk"],function(e,t,r){var a=st(e);t[kr]=a===24?0:a});Ut(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ut(["h","hh"],function(e,t,r){t[kr]=st(e),tt(r).bigHour=!0});Ut("hmm",function(e,t,r){var a=e.length-2;t[kr]=st(e.substr(0,a)),t[Qa]=st(e.substr(a)),tt(r).bigHour=!0});Ut("hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[kr]=st(e.substr(0,a)),t[Qa]=st(e.substr(a,2)),t[zn]=st(e.substr(n)),tt(r).bigHour=!0});Ut("Hmm",function(e,t,r){var a=e.length-2;t[kr]=st(e.substr(0,a)),t[Qa]=st(e.substr(a))});Ut("Hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[kr]=st(e.substr(0,a)),t[Qa]=st(e.substr(a,2)),t[zn]=st(e.substr(n))});function p_(e){return(e+"").toLowerCase().charAt(0)==="p"}var h_=/[ap]\.?m?\.?/i,m_=qu("Hours",!0);function g_(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var dh={calendar:iw,longDateFormat:ow,invalidDate:dw,ordinal:vw,dayOfMonthOrdinalParse:pw,relativeTime:mw,months:Mw,monthsShort:rh,week:zw,weekdays:Xw,weekdaysMin:Jw,weekdaysShort:sh,meridiemParse:h_},fr={},ul={},Pl;function y_(e,t){var r,a=Math.min(e.length,t.length);for(r=0;r<a;r+=1)if(e[r]!==t[r])return r;return a}function _v(e){return e&&e.toLowerCase().replace("_","-")}function b_(e){for(var t=0,r,a,n,i;t<e.length;){for(i=_v(e[t]).split("-"),r=i.length,a=_v(e[t+1]),a=a?a.split("-"):null;r>0;){if(n=Eo(i.slice(0,r).join("-")),n)return n;if(a&&a.length>=r&&y_(i,a)>=r-1)break;r--}t++}return Pl}function A_(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Eo(e){var t=null,r;if(fr[e]===void 0&&typeof module<"u"&&module&&module.exports&&A_(e))try{t=Pl._abbr,r=require,r("./locale/"+e),hi(t)}catch{fr[e]=null}return fr[e]}function hi(e,t){var r;return e&&(la(t)?r=Qn(e):r=Yd(e,t),r&&(Pl=r)),Pl._abbr}function Yd(e,t){if(t!==null){var r,a=dh;if(t.abbr=e,fr[e]!=null)Gp("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=fr[e]._config;else if(t.parentLocale!=null)if(fr[t.parentLocale]!=null)a=fr[t.parentLocale]._config;else if(r=Eo(t.parentLocale),r!=null)a=r._config;else return ul[t.parentLocale]||(ul[t.parentLocale]=[]),ul[t.parentLocale].push({name:e,config:t}),null;return fr[e]=new kd(td(a,t)),ul[e]&&ul[e].forEach(function(n){Yd(n.name,n.config)}),hi(e),fr[e]}else return delete fr[e],null}function w_(e,t){if(t!=null){var r,a,n=dh;fr[e]!=null&&fr[e].parentLocale!=null?fr[e].set(td(fr[e]._config,t)):(a=Eo(e),a!=null&&(n=a._config),t=td(n,t),a==null&&(t.abbr=e),r=new kd(t),r.parentLocale=fr[e],fr[e]=r),hi(e)}else fr[e]!=null&&(fr[e].parentLocale!=null?(fr[e]=fr[e].parentLocale,e===hi()&&hi(e)):fr[e]!=null&&delete fr[e]);return fr[e]}function Qn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pl;if(!rn(e)){if(t=Eo(e),t)return t;e=[e]}return b_(e)}function __(){return rd(fr)}function zd(e){var t,r=e._a;return r&&tt(e).overflow===-2&&(t=r[Yn]<0||r[Yn]>11?Yn:r[wn]<1||r[wn]>Id(r[Kr],r[Yn])?wn:r[kr]<0||r[kr]>24||r[kr]===24&&(r[Qa]!==0||r[zn]!==0||r[Pi]!==0)?kr:r[Qa]<0||r[Qa]>59?Qa:r[zn]<0||r[zn]>59?zn:r[Pi]<0||r[Pi]>999?Pi:-1,tt(e)._overflowDayOfYear&&(t<Kr||t>wn)&&(t=wn),tt(e)._overflowWeeks&&t===-1&&(t=Cw),tt(e)._overflowWeekday&&t===-1&&(t=xw),tt(e).overflow=t),e}var E_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,S_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,D_=/Z|[+-]\d\d(?::?\d\d)?/,ys=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],C_=/^\/?Date\((-?\d+)/i,x_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$_={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ch(e){var t,r,a=e._i,n=E_.exec(a)||S_.exec(a),i,u,l,s,o=ys.length,f=mf.length;if(n){for(tt(e).iso=!0,t=0,r=o;t<r;t++)if(ys[t][1].exec(n[1])){u=ys[t][0],i=ys[t][2]!==!1;break}if(u==null){e._isValid=!1;return}if(n[3]){for(t=0,r=f;t<r;t++)if(mf[t][1].exec(n[3])){l=(n[2]||" ")+mf[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(n[4])if(D_.exec(n[4]))s="Z";else{e._isValid=!1;return}e._f=u+(l||"")+(s||""),Wd(e)}else e._isValid=!1}function O_(e,t,r,a,n,i){var u=[T_(e),rh.indexOf(t),parseInt(r,10),parseInt(a,10),parseInt(n,10)];return i&&u.push(parseInt(i,10)),u}function T_(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function F_(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function M_(e,t,r){if(e){var a=sh.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(a!==n)return tt(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function k_(e,t,r){if(e)return $_[e];if(t)return 0;var a=parseInt(r,10),n=a%100,i=(a-n)/100;return i*60+n}function vh(e){var t=x_.exec(F_(e._i)),r;if(t){if(r=O_(t[4],t[3],t[2],t[5],t[6],t[7]),!M_(t[1],r,e))return;e._a=r,e._tzm=k_(t[8],t[9],t[10]),e._d=kl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),tt(e).rfc2822=!0}else e._isValid=!1}function B_(e){var t=C_.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ch(e),e._isValid===!1)delete e._isValid;else return;if(vh(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Ae.createFromInputFallback(e)}Ae.createFromInputFallback=Ua("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function du(e,t,r){return e??t??r}function P_(e){var t=new Date(Ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vd(e){var t,r,a=[],n,i,u;if(!e._d){for(n=P_(e),e._w&&e._a[wn]==null&&e._a[Yn]==null&&q_(e),e._dayOfYear!=null&&(u=du(e._a[Kr],n[Kr]),(e._dayOfYear>El(u)||e._dayOfYear===0)&&(tt(e)._overflowDayOfYear=!0),r=kl(u,0,e._dayOfYear),e._a[Yn]=r.getUTCMonth(),e._a[wn]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[kr]===24&&e._a[Qa]===0&&e._a[zn]===0&&e._a[Pi]===0&&(e._nextDay=!0,e._a[kr]=0),e._d=(e._useUTC?kl:Uw).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[kr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(tt(e).weekdayMismatch=!0)}}function q_(e){var t,r,a,n,i,u,l,s,o;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,u=4,r=du(t.GG,e._a[Kr],Bl(er(),1,4).year),a=du(t.W,1),n=du(t.E,1),(n<1||n>7)&&(s=!0)):(i=e._locale._week.dow,u=e._locale._week.doy,o=Bl(er(),i,u),r=du(t.gg,e._a[Kr],o.year),a=du(t.w,o.week),t.d!=null?(n=t.d,(n<0||n>6)&&(s=!0)):t.e!=null?(n=t.e+i,(t.e<0||t.e>6)&&(s=!0)):n=i),a<1||a>Wn(r,i,u)?tt(e)._overflowWeeks=!0:s!=null?tt(e)._overflowWeekday=!0:(l=lh(r,a,n,i,u),e._a[Kr]=l.year,e._dayOfYear=l.dayOfYear)}Ae.ISO_8601=function(){};Ae.RFC_2822=function(){};function Wd(e){if(e._f===Ae.ISO_8601){ch(e);return}if(e._f===Ae.RFC_2822){vh(e);return}e._a=[],tt(e).empty=!0;var t=""+e._i,r,a,n,i,u,l=t.length,s=0,o,f;for(n=Kp(e._f,e._locale).match(Bd)||[],f=n.length,r=0;r<f;r++)i=n[r],a=(t.match(Ew(i,e))||[])[0],a&&(u=t.substr(0,t.indexOf(a)),u.length>0&&tt(e).unusedInput.push(u),t=t.slice(t.indexOf(a)+a.length),s+=a.length),bu[i]?(a?tt(e).empty=!1:tt(e).unusedTokens.push(i),Dw(i,a,e)):e._strict&&!a&&tt(e).unusedTokens.push(i);tt(e).charsLeftOver=l-s,t.length>0&&tt(e).unusedInput.push(t),e._a[kr]<=12&&tt(e).bigHour===!0&&e._a[kr]>0&&(tt(e).bigHour=void 0),tt(e).parsedDateParts=e._a.slice(0),tt(e).meridiem=e._meridiem,e._a[kr]=N_(e._locale,e._a[kr],e._meridiem),o=tt(e).era,o!==null&&(e._a[Kr]=e._locale.erasConvertYear(o,e._a[Kr])),Vd(e),zd(e)}function N_(e,t,r){var a;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(a=e.isPM(r),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function R_(e){var t,r,a,n,i,u,l=!1,s=e._f.length;if(s===0){tt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<s;n++)i=0,u=!1,t=Md({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Wd(t),Fd(t)&&(u=!0),i+=tt(t).charsLeftOver,i+=tt(t).unusedTokens.length*10,tt(t).score=i,l?i<a&&(a=i,r=t):(a==null||i<a||u)&&(a=i,r=t,u&&(l=!0));fi(e,r||t)}function I_(e){if(!e._d){var t=Pd(e._i),r=t.day===void 0?t.date:t.day;e._a=Wp([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(a){return a&&parseInt(a,10)}),Vd(e)}}function L_(e){var t=new Vl(zd(ph(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ph(e){var t=e._i,r=e._f;return e._locale=e._locale||Qn(e._l),t===null||r===void 0&&t===""?mo({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),an(t)?new Vl(zd(t)):(zl(t)?e._d=t:rn(r)?R_(e):r?Wd(e):j_(e),Fd(e)||(e._d=null),e))}function j_(e){var t=e._i;la(t)?e._d=new Date(Ae.now()):zl(t)?e._d=new Date(t.valueOf()):typeof t=="string"?B_(e):rn(t)?(e._a=Wp(t.slice(0),function(r){return parseInt(r,10)}),Vd(e)):Ni(t)?I_(e):Kn(t)?e._d=new Date(t):Ae.createFromInputFallback(e)}function hh(e,t,r,a,n){var i={};return(t===!0||t===!1)&&(a=t,t=void 0),(r===!0||r===!1)&&(a=r,r=void 0),(Ni(e)&&Td(e)||rn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=r,i._i=e,i._f=t,i._strict=a,L_(i)}function er(e,t,r,a){return hh(e,t,r,a,!1)}var U_=Ua("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=er.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:mo()}),Y_=Ua("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=er.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:mo()});function mh(e,t){var r,a;if(t.length===1&&rn(t[0])&&(t=t[0]),!t.length)return er();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}function z_(){var e=[].slice.call(arguments,0);return mh("isBefore",e)}function V_(){var e=[].slice.call(arguments,0);return mh("isAfter",e)}var W_=function(){return Date.now?Date.now():+new Date},ll=["year","quarter","month","week","day","hour","minute","second","millisecond"];function H_(e){var t,r=!1,a,n=ll.length;for(t in e)if(gt(e,t)&&!(br.call(ll,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(a=0;a<n;++a)if(e[ll[a]]){if(r)return!1;parseFloat(e[ll[a]])!==st(e[ll[a]])&&(r=!0)}return!0}function G_(){return this._isValid}function K_(){return ln(NaN)}function So(e){var t=Pd(e),r=t.year||0,a=t.quarter||0,n=t.month||0,i=t.week||t.isoWeek||0,u=t.day||0,l=t.hour||0,s=t.minute||0,o=t.second||0,f=t.millisecond||0;this._isValid=H_(t),this._milliseconds=+f+o*1e3+s*6e4+l*1e3*60*60,this._days=+u+i*7,this._months=+n+a*3+r*12,this._data={},this._locale=Qn(),this._bubble()}function Ps(e){return e instanceof So}function nd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Z_(e,t,r){var a=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),i=0,u;for(u=0;u<a;u++)st(e[u])!==st(t[u])&&i++;return i+n}function gh(e,t){Pe(e,0,0,function(){var r=this.utcOffset(),a="+";return r<0&&(r=-r,a="-"),a+Sn(~~(r/60),2)+t+Sn(~~r%60,2)})}gh("Z",":");gh("ZZ","");De("Z",wo);De("ZZ",wo);Ut(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Hd(wo,e)});var X_=/([\+\-]|\d\d)/gi;function Hd(e,t){var r=(t||"").match(e),a,n,i;return r===null?null:(a=r[r.length-1]||[],n=(a+"").match(X_)||["-",0,0],i=+(n[1]*60)+st(n[2]),i===0?0:n[0]==="+"?i:-i)}function Gd(e,t){var r,a;return t._isUTC?(r=t.clone(),a=(an(e)||zl(e)?e.valueOf():er(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),Ae.updateOffset(r,!1),r):er(e).local()}function id(e){return-Math.round(e._d.getTimezoneOffset())}Ae.updateOffset=function(){};function J_(e,t,r){var a=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Hd(wo,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=id(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?Ah(this,ln(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:id(this)}function Q_(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function eE(e){return this.utcOffset(0,e)}function tE(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(id(this),"m")),this}function rE(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Hd(ww,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function aE(e){return this.isValid()?(e=e?er(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function nE(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function iE(){if(!la(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Md(e,this),e=ph(e),e._a?(t=e._isUTC?Cn(e._a):er(e._a),this._isDSTShifted=this.isValid()&&Z_(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function uE(){return this.isValid()?!this._isUTC:!1}function lE(){return this.isValid()?this._isUTC:!1}function yh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var sE=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ln(e,t){var r=e,a=null,n,i,u;return Ps(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Kn(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=sE.exec(e))?(n=a[1]==="-"?-1:1,r={y:0,d:st(a[wn])*n,h:st(a[kr])*n,m:st(a[Qa])*n,s:st(a[zn])*n,ms:st(nd(a[Pi]*1e3))*n}):(a=oE.exec(e))?(n=a[1]==="-"?-1:1,r={y:wi(a[2],n),M:wi(a[3],n),w:wi(a[4],n),d:wi(a[5],n),h:wi(a[6],n),m:wi(a[7],n),s:wi(a[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(u=fE(er(r.from),er(r.to)),r={},r.ms=u.milliseconds,r.M=u.months),i=new So(r),Ps(e)&>(e,"_locale")&&(i._locale=e._locale),Ps(e)&>(e,"_isValid")&&(i._isValid=e._isValid),i}ln.fn=So.prototype;ln.invalid=K_;function wi(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ev(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function fE(e,t){var r;return e.isValid()&&t.isValid()?(t=Gd(t,e),e.isBefore(t)?r=Ev(e,t):(r=Ev(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function bh(e,t){return function(r,a){var n,i;return a!==null&&!isNaN(+a)&&(Gp(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=a,a=i),n=ln(r,a),Ah(this,n,e),this}}function Ah(e,t,r,a){var n=t._milliseconds,i=nd(t._days),u=nd(t._months);e.isValid()&&(a=a??!0,u&&nh(e,Ml(e,"Month")+u*r),i&&th(e,"Date",Ml(e,"Date")+i*r),n&&e._d.setTime(e._d.valueOf()+n*r),a&&Ae.updateOffset(e,i||u))}var dE=bh(1,"add"),cE=bh(-1,"subtract");function wh(e){return typeof e=="string"||e instanceof String}function vE(e){return an(e)||zl(e)||wh(e)||Kn(e)||hE(e)||pE(e)||e===null||e===void 0}function pE(e){var t=Ni(e)&&!Td(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,u=a.length;for(n=0;n<u;n+=1)i=a[n],r=r||gt(e,i);return t&&r}function hE(e){var t=rn(e),r=!1;return t&&(r=e.filter(function(a){return!Kn(a)&&wh(e)}).length===0),t&&r}function mE(e){var t=Ni(e)&&!Td(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<a.length;n+=1)i=a[n],r=r||gt(e,i);return t&&r}function gE(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function yE(e,t){arguments.length===1&&(arguments[0]?vE(arguments[0])?(e=arguments[0],t=void 0):mE(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||er(),a=Gd(r,this).startOf("day"),n=Ae.calendarFormat(this,a)||"sameElse",i=t&&(xn(t[n])?t[n].call(this,r):t[n]);return this.format(i||this.localeData().calendar(n,this,er(r)))}function bE(){return new Vl(this)}function AE(e,t){var r=an(e)?e:er(e);return this.isValid()&&r.isValid()?(t=Ya(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function wE(e,t){var r=an(e)?e:er(e);return this.isValid()&&r.isValid()?(t=Ya(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function _E(e,t,r,a){var n=an(e)?e:er(e),i=an(t)?t:er(t);return this.isValid()&&n.isValid()&&i.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(a[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function EE(e,t){var r=an(e)?e:er(e),a;return this.isValid()&&r.isValid()?(t=Ya(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf())):!1}function SE(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function DE(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function CE(e,t,r){var a,n,i;if(!this.isValid())return NaN;if(a=Gd(e,this),!a.isValid())return NaN;switch(n=(a.utcOffset()-this.utcOffset())*6e4,t=Ya(t),t){case"year":i=qs(this,a)/12;break;case"month":i=qs(this,a);break;case"quarter":i=qs(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-n)/864e5;break;case"week":i=(this-a-n)/6048e5;break;default:i=this-a}return r?i:Ra(i)}function qs(e,t){if(e.date()<t.date())return-qs(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,"months"),n,i;return t-a<0?(n=e.clone().add(r-1,"months"),i=(t-a)/(a-n)):(n=e.clone().add(r+1,"months"),i=(t-a)/(n-a)),-(r+i)||0}Ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xE(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $E(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Bs(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):xn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Bs(r,"Z")):Bs(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function OE(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,a,n,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+a+n+i)}function TE(e){e||(e=this.isUtc()?Ae.defaultFormatUtc:Ae.defaultFormat);var t=Bs(this,e);return this.localeData().postformat(t)}function FE(e,t){return this.isValid()&&(an(e)&&e.isValid()||er(e).isValid())?ln({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ME(e){return this.from(er(),e)}function kE(e,t){return this.isValid()&&(an(e)&&e.isValid()||er(e).isValid())?ln({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function BE(e){return this.to(er(),e)}function _h(e){var t;return e===void 0?this._locale._abbr:(t=Qn(e),t!=null&&(this._locale=t),this)}var Eh=Ua("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Sh(){return this._locale}var Ks=1e3,Au=60*Ks,Zs=60*Au,Dh=(365*400+97)*24*Zs;function wu(e,t){return(e%t+t)%t}function Ch(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Dh:new Date(e,t,r).valueOf()}function xh(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Dh:Date.UTC(e,t,r)}function PE(e){var t,r;if(e=Ya(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xh:Ch,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=wu(t+(this._isUTC?0:this.utcOffset()*Au),Zs);break;case"minute":t=this._d.valueOf(),t-=wu(t,Au);break;case"second":t=this._d.valueOf(),t-=wu(t,Ks);break}return this._d.setTime(t),Ae.updateOffset(this,!0),this}function qE(e){var t,r;if(e=Ya(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xh:Ch,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Zs-wu(t+(this._isUTC?0:this.utcOffset()*Au),Zs)-1;break;case"minute":t=this._d.valueOf(),t+=Au-wu(t,Au)-1;break;case"second":t=this._d.valueOf(),t+=Ks-wu(t,Ks)-1;break}return this._d.setTime(t),Ae.updateOffset(this,!0),this}function NE(){return this._d.valueOf()-(this._offset||0)*6e4}function RE(){return Math.floor(this.valueOf()/1e3)}function IE(){return new Date(this.valueOf())}function LE(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function jE(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function UE(){return this.isValid()?this.toISOString():null}function YE(){return Fd(this)}function zE(){return fi({},tt(this))}function VE(){return tt(this).overflow}function WE(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Pe("N",0,0,"eraAbbr");Pe("NN",0,0,"eraAbbr");Pe("NNN",0,0,"eraAbbr");Pe("NNNN",0,0,"eraName");Pe("NNNNN",0,0,"eraNarrow");Pe("y",["y",1],"yo","eraYear");Pe("y",["yy",2],0,"eraYear");Pe("y",["yyy",3],0,"eraYear");Pe("y",["yyyy",4],0,"eraYear");De("N",Kd);De("NN",Kd);De("NNN",Kd);De("NNNN",aS);De("NNNNN",nS);Ut(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,a){var n=r._locale.erasParse(e,a,r._strict);n?tt(r).era=n:tt(r).invalidEra=e});De("y",Bu);De("yy",Bu);De("yyy",Bu);De("yyyy",Bu);De("yo",iS);Ut(["y","yy","yyy","yyyy"],Kr);Ut(["yo"],function(e,t,r,a){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Kr]=r._locale.eraYearOrdinalParse(e,n):t[Kr]=parseInt(e,10)});function HE(e,t){var r,a,n,i=this._eras||Qn("en")._eras;for(r=0,a=i.length;r<a;++r){switch(typeof i[r].since){case"string":n=Ae(i[r].since).startOf("day"),i[r].since=n.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=Ae(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf();break}}return i}function GE(e,t,r){var a,n,i=this.eras(),u,l,s;for(e=e.toUpperCase(),a=0,n=i.length;a<n;++a)if(u=i[a].name.toUpperCase(),l=i[a].abbr.toUpperCase(),s=i[a].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[a];break;case"NNNN":if(u===e)return i[a];break;case"NNNNN":if(s===e)return i[a];break}else if([u,l,s].indexOf(e)>=0)return i[a]}function KE(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Ae(e.since).year():Ae(e.since).year()+(t-e.offset)*r}function ZE(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].name;return""}function XE(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].narrow;return""}function JE(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].abbr;return""}function QE(){var e,t,r,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until||n[e].until<=a&&a<=n[e].since)return(this.year()-Ae(n[e].since).year())*r+n[e].offset;return this.year()}function eS(e){return gt(this,"_erasNameRegex")||Zd.call(this),e?this._erasNameRegex:this._erasRegex}function tS(e){return gt(this,"_erasAbbrRegex")||Zd.call(this),e?this._erasAbbrRegex:this._erasRegex}function rS(e){return gt(this,"_erasNarrowRegex")||Zd.call(this),e?this._erasNarrowRegex:this._erasRegex}function Kd(e,t){return t.erasAbbrRegex(e)}function aS(e,t){return t.erasNameRegex(e)}function nS(e,t){return t.erasNarrowRegex(e)}function iS(e,t){return t._eraYearOrdinalRegex||Bu}function Zd(){var e=[],t=[],r=[],a=[],n,i,u,l,s,o=this.eras();for(n=0,i=o.length;n<i;++n)u=Vn(o[n].name),l=Vn(o[n].abbr),s=Vn(o[n].narrow),t.push(u),e.push(l),r.push(s),a.push(u),a.push(l),a.push(s);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Pe(0,["gg",2],0,function(){return this.weekYear()%100});Pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Do(e,t){Pe(0,[e,e.length],0,t)}Do("gggg","weekYear");Do("ggggg","weekYear");Do("GGGG","isoWeekYear");Do("GGGGG","isoWeekYear");De("G",Ao);De("g",Ao);De("GG",tr,Sa);De("gg",tr,Sa);De("GGGG",Nd,qd);De("gggg",Nd,qd);De("GGGGG",bo,go);De("ggggg",bo,go);Hl(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,a){t[a.substr(0,2)]=st(e)});Hl(["gg","GG"],function(e,t,r,a){t[a]=Ae.parseTwoDigitYear(e)});function uS(e){return $h.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lS(e){return $h.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function sS(){return Wn(this.year(),1,4)}function oS(){return Wn(this.isoWeekYear(),1,4)}function fS(){var e=this.localeData()._week;return Wn(this.year(),e.dow,e.doy)}function dS(){var e=this.localeData()._week;return Wn(this.weekYear(),e.dow,e.doy)}function $h(e,t,r,a,n){var i;return e==null?Bl(this,a,n).year:(i=Wn(e,a,n),t>i&&(t=i),cS.call(this,e,t,r,a,n))}function cS(e,t,r,a,n){var i=lh(e,t,r,a,n),u=kl(i.year,0,i.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}Pe("Q",0,"Qo","quarter");De("Q",Zp);Ut("Q",function(e,t){t[Yn]=(st(e)-1)*3});function vS(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Pe("D",["DD",2],"Do","date");De("D",tr,Pu);De("DD",tr,Sa);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ut(["D","DD"],wn);Ut("Do",function(e,t){t[wn]=st(e.match(tr)[0])});var Oh=qu("Date",!0);Pe("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",yo);De("DDDD",Xp);Ut(["DDD","DDDD"],function(e,t,r){r._dayOfYear=st(e)});function pS(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Pe("m",["mm",2],0,"minute");De("m",tr,Rd);De("mm",tr,Sa);Ut(["m","mm"],Qa);var hS=qu("Minutes",!1);Pe("s",["ss",2],0,"second");De("s",tr,Rd);De("ss",tr,Sa);Ut(["s","ss"],zn);var mS=qu("Seconds",!1);Pe("S",0,0,function(){return~~(this.millisecond()/100)});Pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Pe(0,["SSS",3],0,"millisecond");Pe(0,["SSSS",4],0,function(){return this.millisecond()*10});Pe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",yo,Zp);De("SS",yo,Sa);De("SSS",yo,Xp);var di,Th;for(di="SSSS";di.length<=9;di+="S")De(di,Bu);function gS(e,t){t[Pi]=st(("0."+e)*1e3)}for(di="S";di.length<=9;di+="S")Ut(di,gS);Th=qu("Milliseconds",!1);Pe("z",0,0,"zoneAbbr");Pe("zz",0,0,"zoneName");function yS(){return this._isUTC?"UTC":""}function bS(){return this._isUTC?"Coordinated Universal Time":""}var ue=Vl.prototype;ue.add=dE;ue.calendar=yE;ue.clone=bE;ue.diff=CE;ue.endOf=qE;ue.format=TE;ue.from=FE;ue.fromNow=ME;ue.to=kE;ue.toNow=BE;ue.get=Ow;ue.invalidAt=VE;ue.isAfter=AE;ue.isBefore=wE;ue.isBetween=_E;ue.isSame=EE;ue.isSameOrAfter=SE;ue.isSameOrBefore=DE;ue.isValid=YE;ue.lang=Eh;ue.locale=_h;ue.localeData=Sh;ue.max=Y_;ue.min=U_;ue.parsingFlags=zE;ue.set=Tw;ue.startOf=PE;ue.subtract=cE;ue.toArray=LE;ue.toObject=jE;ue.toDate=IE;ue.toISOString=$E;ue.inspect=OE;typeof Symbol<"u"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=UE;ue.toString=xE;ue.unix=RE;ue.valueOf=NE;ue.creationData=WE;ue.eraName=ZE;ue.eraNarrow=XE;ue.eraAbbr=JE;ue.eraYear=QE;ue.year=eh;ue.isLeapYear=$w;ue.weekYear=uS;ue.isoWeekYear=lS;ue.quarter=ue.quarters=vS;ue.month=ih;ue.daysInMonth=Iw;ue.week=ue.weeks=Hw;ue.isoWeek=ue.isoWeeks=Gw;ue.weeksInYear=fS;ue.weeksInWeekYear=dS;ue.isoWeeksInYear=sS;ue.isoWeeksInISOWeekYear=oS;ue.date=Oh;ue.day=ue.days=l_;ue.weekday=s_;ue.isoWeekday=o_;ue.dayOfYear=pS;ue.hour=ue.hours=m_;ue.minute=ue.minutes=hS;ue.second=ue.seconds=mS;ue.millisecond=ue.milliseconds=Th;ue.utcOffset=J_;ue.utc=eE;ue.local=tE;ue.parseZone=rE;ue.hasAlignedHourOffset=aE;ue.isDST=nE;ue.isLocal=uE;ue.isUtcOffset=lE;ue.isUtc=yh;ue.isUTC=yh;ue.zoneAbbr=yS;ue.zoneName=bS;ue.dates=Ua("dates accessor is deprecated. Use date instead.",Oh);ue.months=Ua("months accessor is deprecated. Use month instead",ih);ue.years=Ua("years accessor is deprecated. Use year instead",eh);ue.zone=Ua("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Q_);ue.isDSTShifted=Ua("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",iE);function AS(e){return er(e*1e3)}function wS(){return er.apply(null,arguments).parseZone()}function Fh(e){return e}var yt=kd.prototype;yt.calendar=uw;yt.longDateFormat=fw;yt.invalidDate=cw;yt.ordinal=hw;yt.preparse=Fh;yt.postformat=Fh;yt.relativeTime=gw;yt.pastFuture=yw;yt.set=nw;yt.eras=HE;yt.erasParse=GE;yt.erasConvertYear=KE;yt.erasAbbrRegex=tS;yt.erasNameRegex=eS;yt.erasNarrowRegex=rS;yt.months=Pw;yt.monthsShort=qw;yt.monthsParse=Rw;yt.monthsRegex=jw;yt.monthsShortRegex=Lw;yt.week=Yw;yt.firstDayOfYear=Ww;yt.firstDayOfWeek=Vw;yt.weekdays=r_;yt.weekdaysMin=n_;yt.weekdaysShort=a_;yt.weekdaysParse=u_;yt.weekdaysRegex=f_;yt.weekdaysShortRegex=d_;yt.weekdaysMinRegex=c_;yt.isPM=p_;yt.meridiem=g_;function Xs(e,t,r,a){var n=Qn(),i=Cn().set(a,t);return n[r](i,e)}function Mh(e,t,r){if(Kn(e)&&(t=e,e=void 0),e=e||"",t!=null)return Xs(e,t,r,"month");var a,n=[];for(a=0;a<12;a++)n[a]=Xs(e,a,r,"month");return n}function Xd(e,t,r,a){typeof e=="boolean"?(Kn(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Kn(t)&&(r=t,t=void 0),t=t||"");var n=Qn(),i=e?n._week.dow:0,u,l=[];if(r!=null)return Xs(t,(r+i)%7,a,"day");for(u=0;u<7;u++)l[u]=Xs(t,(u+i)%7,a,"day");return l}function _S(e,t){return Mh(e,t,"months")}function ES(e,t){return Mh(e,t,"monthsShort")}function SS(e,t,r){return Xd(e,t,r,"weekdays")}function DS(e,t,r){return Xd(e,t,r,"weekdaysShort")}function CS(e,t,r){return Xd(e,t,r,"weekdaysMin")}hi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=st(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Ae.lang=Ua("moment.lang is deprecated. Use moment.locale instead.",hi);Ae.langData=Ua("moment.langData is deprecated. Use moment.localeData instead.",Qn);var qn=Math.abs;function xS(){var e=this._data;return this._milliseconds=qn(this._milliseconds),this._days=qn(this._days),this._months=qn(this._months),e.milliseconds=qn(e.milliseconds),e.seconds=qn(e.seconds),e.minutes=qn(e.minutes),e.hours=qn(e.hours),e.months=qn(e.months),e.years=qn(e.years),this}function kh(e,t,r,a){var n=ln(t,r);return e._milliseconds+=a*n._milliseconds,e._days+=a*n._days,e._months+=a*n._months,e._bubble()}function $S(e,t){return kh(this,e,t,1)}function OS(e,t){return kh(this,e,t,-1)}function Sv(e){return e<0?Math.floor(e):Math.ceil(e)}function TS(){var e=this._milliseconds,t=this._days,r=this._months,a=this._data,n,i,u,l,s;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Sv(ud(r)+t)*864e5,t=0,r=0),a.milliseconds=e%1e3,n=Ra(e/1e3),a.seconds=n%60,i=Ra(n/60),a.minutes=i%60,u=Ra(i/60),a.hours=u%24,t+=Ra(u/24),s=Ra(Bh(t)),r+=s,t-=Sv(ud(s)),l=Ra(r/12),r%=12,a.days=t,a.months=r,a.years=l,this}function Bh(e){return e*4800/146097}function ud(e){return e*146097/4800}function FS(e){if(!this.isValid())return NaN;var t,r,a=this._milliseconds;if(e=Ya(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,r=this._months+Bh(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ud(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function ei(e){return function(){return this.as(e)}}var Ph=ei("ms"),MS=ei("s"),kS=ei("m"),BS=ei("h"),PS=ei("d"),qS=ei("w"),NS=ei("M"),RS=ei("Q"),IS=ei("y"),LS=Ph;function jS(){return ln(this)}function US(e){return e=Ya(e),this.isValid()?this[e+"s"]():NaN}function zi(e){return function(){return this.isValid()?this._data[e]:NaN}}var YS=zi("milliseconds"),zS=zi("seconds"),VS=zi("minutes"),WS=zi("hours"),HS=zi("days"),GS=zi("months"),KS=zi("years");function ZS(){return Ra(this.days()/7)}var Un=Math.round,hu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function XS(e,t,r,a,n){return n.relativeTime(t||1,!!r,e,a)}function JS(e,t,r,a){var n=ln(e).abs(),i=Un(n.as("s")),u=Un(n.as("m")),l=Un(n.as("h")),s=Un(n.as("d")),o=Un(n.as("M")),f=Un(n.as("w")),d=Un(n.as("y")),c=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||u<=1&&["m"]||u<r.m&&["mm",u]||l<=1&&["h"]||l<r.h&&["hh",l]||s<=1&&["d"]||s<r.d&&["dd",s];return r.w!=null&&(c=c||f<=1&&["w"]||f<r.w&&["ww",f]),c=c||o<=1&&["M"]||o<r.M&&["MM",o]||d<=1&&["y"]||["yy",d],c[2]=t,c[3]=+e>0,c[4]=a,XS.apply(null,c)}function QS(e){return e===void 0?Un:typeof e=="function"?(Un=e,!0):!1}function eD(e,t){return hu[e]===void 0?!1:t===void 0?hu[e]:(hu[e]=t,e==="s"&&(hu.ss=t-1),!0)}function tD(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,a=hu,n,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(a=Object.assign({},hu,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),n=this.localeData(),i=JS(this,!r,a,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var gf=Math.abs;function lu(e){return(e>0)-(e<0)||+e}function Co(){if(!this.isValid())return this.localeData().invalidDate();var e=gf(this._milliseconds)/1e3,t=gf(this._days),r=gf(this._months),a,n,i,u,l=this.asSeconds(),s,o,f,d;return l?(a=Ra(e/60),n=Ra(a/60),e%=60,a%=60,i=Ra(r/12),r%=12,u=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=l<0?"-":"",o=lu(this._months)!==lu(l)?"-":"",f=lu(this._days)!==lu(l)?"-":"",d=lu(this._milliseconds)!==lu(l)?"-":"",s+"P"+(i?o+i+"Y":"")+(r?o+r+"M":"")+(t?f+t+"D":"")+(n||a||e?"T":"")+(n?d+n+"H":"")+(a?d+a+"M":"")+(e?d+u+"S":"")):"P0D"}var dt=So.prototype;dt.isValid=G_;dt.abs=xS;dt.add=$S;dt.subtract=OS;dt.as=FS;dt.asMilliseconds=Ph;dt.asSeconds=MS;dt.asMinutes=kS;dt.asHours=BS;dt.asDays=PS;dt.asWeeks=qS;dt.asMonths=NS;dt.asQuarters=RS;dt.asYears=IS;dt.valueOf=LS;dt._bubble=TS;dt.clone=jS;dt.get=US;dt.milliseconds=YS;dt.seconds=zS;dt.minutes=VS;dt.hours=WS;dt.days=HS;dt.weeks=ZS;dt.months=GS;dt.years=KS;dt.humanize=tD;dt.toISOString=Co;dt.toString=Co;dt.toJSON=Co;dt.locale=_h;dt.localeData=Sh;dt.toIsoString=Ua("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Co);dt.lang=Eh;Pe("X",0,0,"unix");Pe("x",0,0,"valueOf");De("x",Ao);De("X",_w);Ut("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ut("x",function(e,t,r){r._d=new Date(st(e))});//! moment.js
|
|
15
|
+
Ae.version="2.30.1";rw(er);Ae.fn=ue;Ae.min=z_;Ae.max=V_;Ae.now=W_;Ae.utc=Cn;Ae.unix=AS;Ae.months=_S;Ae.isDate=zl;Ae.locale=hi;Ae.invalid=mo;Ae.duration=ln;Ae.isMoment=an;Ae.weekdays=SS;Ae.parseZone=wS;Ae.localeData=Qn;Ae.isDuration=Ps;Ae.monthsShort=ES;Ae.weekdaysMin=CS;Ae.defineLocale=Yd;Ae.updateLocale=w_;Ae.locales=__;Ae.weekdaysShort=DS;Ae.normalizeUnits=Ya;Ae.relativeTimeRounding=QS;Ae.relativeTimeThreshold=eD;Ae.calendarFormat=gE;Ae.prototype=ue;Ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*!
|
|
16
|
+
* Vueform v1.13.5 (https://github.com/vueform/vueform)
|
|
17
|
+
* Copyright (c) 2025 Adam Berecz <adam@vueform.com>
|
|
18
|
+
* Licensed under the MIT License
|
|
19
|
+
*/function Dv(e,t,r,a,n,i,u){try{var l=e[i](u),s=l.value}catch(o){return void r(o)}l.done?t(s):Promise.resolve(s).then(a,n)}function he(e){return function(){var t=this,r=arguments;return new Promise(function(a,n){var i=e.apply(t,r);function u(s){Dv(i,a,n,u,l,"next",s)}function l(s){Dv(i,a,n,u,l,"throw",s)}u(void 0)})}}function ta(e,t,r){return(t=aD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(a){ta(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function rD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aD(e){var t=rD(e,"string");return typeof t=="symbol"?t:t+""}var bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qh={exports:{}};function iD(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var Nh=iD;function uD(e){return function(t,r,a){for(var n=-1,i=Object(t),u=a(t),l=u.length;l--;){var s=u[e?l:++n];if(r(i[s],s,i)===!1)break}return t}}var lD=uD,sD=lD,oD=sD(),Rh=oD;function fD(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var dD=fD,cD=typeof bs=="object"&&bs&&bs.Object===Object&&bs,Ih=cD,vD=Ih,pD=typeof self=="object"&&self&&self.Object===Object&&self,hD=vD||pD||Function("return this")(),$n=hD,mD=$n,gD=mD.Symbol,Nu=gD,xv=Nu,Lh=Object.prototype,yD=Lh.hasOwnProperty,bD=Lh.toString,sl=xv?xv.toStringTag:void 0;function AD(e){var t=yD.call(e,sl),r=e[sl];try{e[sl]=void 0;var a=!0}catch{}var n=bD.call(e);return a&&(t?e[sl]=r:delete e[sl]),n}var wD=AD,_D=Object.prototype,ED=_D.toString;function SD(e){return ED.call(e)}var DD=SD,$v=Nu,CD=wD,xD=DD,$D="[object Null]",OD="[object Undefined]",Ov=$v?$v.toStringTag:void 0;function TD(e){return e==null?e===void 0?OD:$D:Ov&&Ov in Object(e)?CD(e):xD(e)}var Vi=TD;function FD(e){return e!=null&&typeof e=="object"}var On=FD,MD=Vi,kD=On,BD="[object Arguments]";function PD(e){return kD(e)&&MD(e)==BD}var qD=PD,Tv=qD,ND=On,jh=Object.prototype,RD=jh.hasOwnProperty,ID=jh.propertyIsEnumerable,LD=Tv((function(){return arguments})())?Tv:function(e){return ND(e)&&RD.call(e,"callee")&&!ID.call(e,"callee")},Gl=LD,jD=Array.isArray,Oe=jD,ji={exports:{}};function UD(){return!1}var YD=UD;(function(e,t){var r=$n,a=YD,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===n,l=u?r.Buffer:void 0,s=l?l.isBuffer:void 0,o=s||a;e.exports=o})(ji,ji.exports);var zD=9007199254740991,VD=/^(?:0|[1-9]\d*)$/;function WD(e,t){var r=typeof e;return t=t??zD,!!t&&(r=="number"||r!="symbol"&&VD.test(e))&&e>-1&&e%1==0&&e<t}var xo=WD,HD=9007199254740991;function GD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HD}var Jd=GD,KD=Vi,ZD=Jd,XD=On,JD="[object Arguments]",QD="[object Array]",eC="[object Boolean]",tC="[object Date]",rC="[object Error]",aC="[object Function]",nC="[object Map]",iC="[object Number]",uC="[object Object]",lC="[object RegExp]",sC="[object Set]",oC="[object String]",fC="[object WeakMap]",dC="[object ArrayBuffer]",cC="[object DataView]",vC="[object Float32Array]",pC="[object Float64Array]",hC="[object Int8Array]",mC="[object Int16Array]",gC="[object Int32Array]",yC="[object Uint8Array]",bC="[object Uint8ClampedArray]",AC="[object Uint16Array]",wC="[object Uint32Array]",Qt={};Qt[vC]=Qt[pC]=Qt[hC]=Qt[mC]=Qt[gC]=Qt[yC]=Qt[bC]=Qt[AC]=Qt[wC]=!0;Qt[JD]=Qt[QD]=Qt[dC]=Qt[eC]=Qt[cC]=Qt[tC]=Qt[rC]=Qt[aC]=Qt[nC]=Qt[iC]=Qt[uC]=Qt[lC]=Qt[sC]=Qt[oC]=Qt[fC]=!1;function _C(e){return XD(e)&&ZD(e.length)&&!!Qt[KD(e)]}var EC=_C;function SC(e){return function(t){return e(t)}}var Kl=SC,ql={exports:{}};(function(e,t){var r=Ih,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i&&r.process,l=(function(){try{var s=n&&n.require&&n.require("util").types;return s||u&&u.binding&&u.binding("util")}catch{}})();e.exports=l})(ql,ql.exports);var DC=EC,CC=Kl,Fv=ql.exports,Mv=Fv&&Fv.isTypedArray,xC=Mv?CC(Mv):DC,$o=xC,$C=dD,OC=Gl,TC=Oe,FC=ji.exports,MC=xo,kC=$o,BC=Object.prototype,PC=BC.hasOwnProperty;function qC(e,t){var r=TC(e),a=!r&&OC(e),n=!r&&!a&&FC(e),i=!r&&!a&&!n&&kC(e),u=r||a||n||i,l=u?$C(e.length,String):[],s=l.length;for(var o in e)(t||PC.call(e,o))&&!(u&&(o=="length"||n&&(o=="offset"||o=="parent")||i&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||MC(o,s)))&&l.push(o);return l}var Uh=qC,NC=Object.prototype;function RC(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||NC;return e===r}var Oo=RC;function IC(e,t){return function(r){return e(t(r))}}var Yh=IC,LC=Yh,jC=LC(Object.keys,Object),UC=jC,YC=Oo,zC=UC,VC=Object.prototype,WC=VC.hasOwnProperty;function HC(e){if(!YC(e))return zC(e);var t=[];for(var r in Object(e))WC.call(e,r)&&r!="constructor"&&t.push(r);return t}var zh=HC;function GC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Da=GC,KC=Vi,ZC=Da,XC="[object AsyncFunction]",JC="[object Function]",QC="[object GeneratorFunction]",ex="[object Proxy]";function tx(e){if(!ZC(e))return!1;var t=KC(e);return t==JC||t==QC||t==XC||t==ex}var Qd=tx,rx=Qd,ax=Jd;function nx(e){return e!=null&&ax(e.length)&&!rx(e)}var ti=nx,ix=Uh,ux=zh,lx=ti;function sx(e){return lx(e)?ix(e):ux(e)}var Br=sx,ox=Rh,fx=Br;function dx(e,t){return e&&ox(e,t,fx)}var Vh=dx,cx=ti;function vx(e,t){return function(r,a){if(r==null)return r;if(!cx(r))return e(r,a);for(var n=r.length,i=t?n:-1,u=Object(r);(t?i--:++i<n)&&a(u[i],i,u)!==!1;);return r}}var px=vx,hx=Vh,mx=px,gx=mx(hx),Zl=gx;function yx(e){return e}var Xl=yx,bx=Xl;function Ax(e){return typeof e=="function"?e:bx}var wx=Ax,_x=Nh,Ex=Zl,Sx=wx,Dx=Oe;function Cx(e,t){var r=Dx(e)?_x:Ex;return r(e,Sx(t))}var xx=Cx;(function(e){e.exports=xx})(qh);var P=nD(qh.exports);function $x(){this.__data__=[],this.size=0}var Ox=$x;function Tx(e,t){return e===t||e!==e&&t!==t}var Jl=Tx,Fx=Jl;function Mx(e,t){for(var r=e.length;r--;)if(Fx(e[r][0],t))return r;return-1}var To=Mx,kx=To,Bx=Array.prototype,Px=Bx.splice;function qx(e){var t=this.__data__,r=kx(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Px.call(t,r,1),--this.size,!0}var Nx=qx,Rx=To;function Ix(e){var t=this.__data__,r=Rx(t,e);return r<0?void 0:t[r][1]}var Lx=Ix,jx=To;function Ux(e){return jx(this.__data__,e)>-1}var Yx=Ux,zx=To;function Vx(e,t){var r=this.__data__,a=zx(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var Wx=Vx,Hx=Ox,Gx=Nx,Kx=Lx,Zx=Yx,Xx=Wx;function Ru(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ru.prototype.clear=Hx;Ru.prototype.delete=Gx;Ru.prototype.get=Kx;Ru.prototype.has=Zx;Ru.prototype.set=Xx;var Fo=Ru,Jx=Fo;function Qx(){this.__data__=new Jx,this.size=0}var e$=Qx;function t$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var r$=t$;function a$(e){return this.__data__.get(e)}var n$=a$;function i$(e){return this.__data__.has(e)}var u$=i$,l$=$n,s$=l$["__core-js_shared__"],o$=s$,yf=o$,kv=(function(){var e=/[^.]+$/.exec(yf&&yf.keys&&yf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function f$(e){return!!kv&&kv in e}var d$=f$,c$=Function.prototype,v$=c$.toString;function p$(e){if(e!=null){try{return v$.call(e)}catch{}try{return e+""}catch{}}return""}var Wh=p$,h$=Qd,m$=d$,g$=Da,y$=Wh,b$=/[\\^$.*+?()[\]{}|]/g,A$=/^\[object .+?Constructor\]$/,w$=Function.prototype,_$=Object.prototype,E$=w$.toString,S$=_$.hasOwnProperty,D$=RegExp("^"+E$.call(S$).replace(b$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C$(e){if(!g$(e)||m$(e))return!1;var t=h$(e)?D$:A$;return t.test(y$(e))}var x$=C$;function $$(e,t){return e?.[t]}var O$=$$,T$=x$,F$=O$;function M$(e,t){var r=F$(e,t);return T$(r)?r:void 0}var Wi=M$,k$=Wi,B$=$n,P$=k$(B$,"Map"),ec=P$,q$=Wi,N$=q$(Object,"create"),Mo=N$,Bv=Mo;function R$(){this.__data__=Bv?Bv(null):{},this.size=0}var I$=R$;function L$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var j$=L$,U$=Mo,Y$="__lodash_hash_undefined__",z$=Object.prototype,V$=z$.hasOwnProperty;function W$(e){var t=this.__data__;if(U$){var r=t[e];return r===Y$?void 0:r}return V$.call(t,e)?t[e]:void 0}var H$=W$,G$=Mo,K$=Object.prototype,Z$=K$.hasOwnProperty;function X$(e){var t=this.__data__;return G$?t[e]!==void 0:Z$.call(t,e)}var J$=X$,Q$=Mo,eO="__lodash_hash_undefined__";function tO(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q$&&t===void 0?eO:t,this}var rO=tO,aO=I$,nO=j$,iO=H$,uO=J$,lO=rO;function Iu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Iu.prototype.clear=aO;Iu.prototype.delete=nO;Iu.prototype.get=iO;Iu.prototype.has=uO;Iu.prototype.set=lO;var sO=Iu,Pv=sO,oO=Fo,fO=ec;function dO(){this.size=0,this.__data__={hash:new Pv,map:new(fO||oO),string:new Pv}}var cO=dO;function vO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var pO=vO,hO=pO;function mO(e,t){var r=e.__data__;return hO(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ko=mO,gO=ko;function yO(e){var t=gO(this,e).delete(e);return this.size-=t?1:0,t}var bO=yO,AO=ko;function wO(e){return AO(this,e).get(e)}var _O=wO,EO=ko;function SO(e){return EO(this,e).has(e)}var DO=SO,CO=ko;function xO(e,t){var r=CO(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var $O=xO,OO=cO,TO=bO,FO=_O,MO=DO,kO=$O;function Lu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Lu.prototype.clear=OO;Lu.prototype.delete=TO;Lu.prototype.get=FO;Lu.prototype.has=MO;Lu.prototype.set=kO;var tc=Lu,BO=Fo,PO=ec,qO=tc,NO=200;function RO(e,t){var r=this.__data__;if(r instanceof BO){var a=r.__data__;if(!PO||a.length<NO-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new qO(a)}return r.set(e,t),this.size=r.size,this}var IO=RO,LO=Fo,jO=e$,UO=r$,YO=n$,zO=u$,VO=IO;function ju(e){var t=this.__data__=new LO(e);this.size=t.size}ju.prototype.clear=jO;ju.prototype.delete=UO;ju.prototype.get=YO;ju.prototype.has=zO;ju.prototype.set=VO;var Bo=ju,WO=Wi,HO=(function(){try{var e=WO(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Hh=HO,qv=Hh;function GO(e,t,r){t=="__proto__"&&qv?qv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Po=GO,KO=Po,ZO=Jl;function XO(e,t,r){(r!==void 0&&!ZO(e[t],r)||r===void 0&&!(t in e))&&KO(e,t,r)}var Gh=XO,Js={exports:{}};(function(e,t){var r=$n,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i?r.Buffer:void 0,l=u?u.allocUnsafe:void 0;function s(o,f){if(f)return o.slice();var d=o.length,c=l?l(d):new o.constructor(d);return o.copy(c),c}e.exports=s})(Js,Js.exports);var JO=$n,QO=JO.Uint8Array,Kh=QO,Nv=Kh;function e2(e){var t=new e.constructor(e.byteLength);return new Nv(t).set(new Nv(e)),t}var rc=e2,t2=rc;function r2(e,t){var r=t?t2(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Zh=r2;function a2(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var ac=a2,n2=Da,Rv=Object.create,i2=(function(){function e(){}return function(t){if(!n2(t))return{};if(Rv)return Rv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),u2=i2,l2=Yh,s2=l2(Object.getPrototypeOf,Object),nc=s2,o2=u2,f2=nc,d2=Oo;function c2(e){return typeof e.constructor=="function"&&!d2(e)?o2(f2(e)):{}}var Xh=c2,v2=ti,p2=On;function h2(e){return p2(e)&&v2(e)}var qo=h2,m2=Vi,g2=nc,y2=On,b2="[object Object]",A2=Function.prototype,w2=Object.prototype,Jh=A2.toString,_2=w2.hasOwnProperty,E2=Jh.call(Object);function S2(e){if(!y2(e)||m2(e)!=b2)return!1;var t=g2(e);if(t===null)return!0;var r=_2.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Jh.call(r)==E2}var zt=S2;function D2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qh=D2,C2=Po,x2=Jl,$2=Object.prototype,O2=$2.hasOwnProperty;function T2(e,t,r){var a=e[t];(!(O2.call(e,t)&&x2(a,r))||r===void 0&&!(t in e))&&C2(e,t,r)}var ic=T2,F2=ic,M2=Po;function k2(e,t,r,a){var n=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var l=t[i],s=a?a(r[l],e[l],l,r,e):void 0;s===void 0&&(s=e[l]),n?M2(r,l,s):F2(r,l,s)}return r}var Uu=k2;function B2(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var P2=B2,q2=Da,N2=Oo,R2=P2,I2=Object.prototype,L2=I2.hasOwnProperty;function j2(e){if(!q2(e))return R2(e);var t=N2(e),r=[];for(var a in e)a=="constructor"&&(t||!L2.call(e,a))||r.push(a);return r}var U2=j2,Y2=Uh,z2=U2,V2=ti;function W2(e){return V2(e)?Y2(e,!0):z2(e)}var Ql=W2,H2=Uu,G2=Ql;function K2(e){return H2(e,G2(e))}var Z2=K2,Iv=Gh,X2=Js.exports,J2=Zh,Q2=ac,eT=Xh,Lv=Gl,jv=Oe,tT=qo,rT=ji.exports,aT=Qd,nT=Da,iT=zt,uT=$o,Uv=Qh,lT=Z2;function sT(e,t,r,a,n,i,u){var l=Uv(e,r),s=Uv(t,r),o=u.get(s);if(o){Iv(e,r,o);return}var f=i?i(l,s,r+"",e,t,u):void 0,d=f===void 0;if(d){var c=jv(s),v=!c&&rT(s),p=!c&&!v&&uT(s);f=s,c||v||p?jv(l)?f=l:tT(l)?f=Q2(l):v?(d=!1,f=X2(s,!0)):p?(d=!1,f=J2(s,!0)):f=[]:iT(s)||Lv(s)?(f=l,Lv(l)?f=lT(l):(!nT(l)||aT(l))&&(f=eT(s))):d=!1}d&&(u.set(s,f),n(f,s,a,i,u),u.delete(s)),Iv(e,r,f)}var oT=sT,fT=Bo,dT=Gh,cT=Rh,vT=oT,pT=Da,hT=Ql,mT=Qh;function em(e,t,r,a,n){e!==t&&cT(t,function(i,u){if(n||(n=new fT),pT(i))vT(e,t,u,r,em,a,n);else{var l=a?a(mT(e,u),i,u+"",e,t,n):void 0;l===void 0&&(l=i),dT(e,u,l)}},hT)}var gT=em;function yT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var bT=yT,AT=bT,Yv=Math.max;function wT(e,t,r){return t=Yv(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Yv(a.length-t,0),u=Array(i);++n<i;)u[n]=a[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=a[n];return l[t]=r(u),AT(e,this,l)}}var tm=wT;function _T(e){return function(){return e}}var ET=_T,ST=ET,zv=Hh,DT=Xl,CT=zv?function(e,t){return zv(e,"toString",{configurable:!0,enumerable:!1,value:ST(t),writable:!0})}:DT,xT=CT,$T=800,OT=16,TT=Date.now;function FT(e){var t=0,r=0;return function(){var a=TT(),n=OT-(a-r);if(r=a,n>0){if(++t>=$T)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MT=FT,kT=xT,BT=MT,PT=BT(kT),rm=PT,qT=Xl,NT=tm,RT=rm;function IT(e,t){return RT(NT(e,t,qT),e+"")}var es=IT,LT=Jl,jT=ti,UT=xo,YT=Da;function zT(e,t,r){if(!YT(r))return!1;var a=typeof t;return(a=="number"?jT(r)&&UT(t,r.length):a=="string"&&t in r)?LT(r[t],e):!1}var uc=zT,VT=es,WT=uc;function HT(e){return VT(function(t,r){var a=-1,n=r.length,i=n>1?r[n-1]:void 0,u=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,u&&WT(r[0],r[1],u)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var l=r[a];l&&e(t,l,a,i)}return t})}var GT=HT,KT=gT,ZT=GT,XT=ZT(function(e,t,r){KT(e,t,r)}),_n=XT;function JT(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var am=JT,QT="__lodash_hash_undefined__";function eF(e){return this.__data__.set(e,QT),this}var tF=eF;function rF(e){return this.__data__.has(e)}var aF=rF,nF=tc,iF=tF,uF=aF;function Qs(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nF;++t<r;)this.add(e[t])}Qs.prototype.add=Qs.prototype.push=iF;Qs.prototype.has=uF;var lc=Qs;function lF(e,t){return e.has(t)}var sc=lF,sF=lc,oF=am,fF=sc,dF=1,cF=2;function vF(e,t,r,a,n,i){var u=r&dF,l=e.length,s=t.length;if(l!=s&&!(u&&s>l))return!1;var o=i.get(e),f=i.get(t);if(o&&f)return o==t&&f==e;var d=-1,c=!0,v=r&cF?new sF:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var p=e[d],m=t[d];if(a)var g=u?a(m,p,d,t,e,i):a(p,m,d,e,t,i);if(g!==void 0){if(g)continue;c=!1;break}if(v){if(!oF(t,function(A,y){if(!fF(v,y)&&(p===A||n(p,A,r,a,i)))return v.push(y)})){c=!1;break}}else if(!(p===m||n(p,m,r,a,i))){c=!1;break}}return i.delete(e),i.delete(t),c}var nm=vF;function pF(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var hF=pF;function mF(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var oc=mF,Vv=Nu,Wv=Kh,gF=Jl,yF=nm,bF=hF,AF=oc,wF=1,_F=2,EF="[object Boolean]",SF="[object Date]",DF="[object Error]",CF="[object Map]",xF="[object Number]",$F="[object RegExp]",OF="[object Set]",TF="[object String]",FF="[object Symbol]",MF="[object ArrayBuffer]",kF="[object DataView]",Hv=Vv?Vv.prototype:void 0,bf=Hv?Hv.valueOf:void 0;function BF(e,t,r,a,n,i,u){switch(r){case kF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MF:return!(e.byteLength!=t.byteLength||!i(new Wv(e),new Wv(t)));case EF:case SF:case xF:return gF(+e,+t);case DF:return e.name==t.name&&e.message==t.message;case $F:case TF:return e==t+"";case CF:var l=bF;case OF:var s=a&wF;if(l||(l=AF),e.size!=t.size&&!s)return!1;var o=u.get(e);if(o)return o==t;a|=_F,u.set(e,t);var f=yF(l(e),l(t),a,n,i,u);return u.delete(e),f;case FF:if(bf)return bf.call(e)==bf.call(t)}return!1}var PF=BF;function qF(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var No=qF,NF=No,RF=Oe;function IF(e,t,r){var a=t(e);return RF(e)?a:NF(a,r(e))}var im=IF;function LF(e,t){for(var r=-1,a=e==null?0:e.length,n=0,i=[];++r<a;){var u=e[r];t(u,r,e)&&(i[n++]=u)}return i}var um=LF;function jF(){return[]}var lm=jF,UF=um,YF=lm,zF=Object.prototype,VF=zF.propertyIsEnumerable,Gv=Object.getOwnPropertySymbols,WF=Gv?function(e){return e==null?[]:(e=Object(e),UF(Gv(e),function(t){return VF.call(e,t)}))}:YF,fc=WF,HF=im,GF=fc,KF=Br;function ZF(e){return HF(e,KF,GF)}var sm=ZF,Kv=sm,XF=1,JF=Object.prototype,QF=JF.hasOwnProperty;function eM(e,t,r,a,n,i){var u=r&XF,l=Kv(e),s=l.length,o=Kv(t),f=o.length;if(s!=f&&!u)return!1;for(var d=s;d--;){var c=l[d];if(!(u?c in t:QF.call(t,c)))return!1}var v=i.get(e),p=i.get(t);if(v&&p)return v==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=u;++d<s;){c=l[d];var A=e[c],y=t[c];if(a)var b=u?a(y,A,c,t,e,i):a(A,y,c,e,t,i);if(!(b===void 0?A===y||n(A,y,r,a,i):b)){m=!1;break}g||(g=c=="constructor")}if(m&&!g){var _=e.constructor,C=t.constructor;_!=C&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof C=="function"&&C instanceof C)&&(m=!1)}return i.delete(e),i.delete(t),m}var tM=eM,rM=Wi,aM=$n,nM=rM(aM,"DataView"),iM=nM,uM=Wi,lM=$n,sM=uM(lM,"Promise"),oM=sM,fM=Wi,dM=$n,cM=fM(dM,"Set"),om=cM,vM=Wi,pM=$n,hM=vM(pM,"WeakMap"),mM=hM,ld=iM,sd=ec,od=oM,fd=om,dd=mM,fm=Vi,Yu=Wh,Zv="[object Map]",gM="[object Object]",Xv="[object Promise]",Jv="[object Set]",Qv="[object WeakMap]",e0="[object DataView]",yM=Yu(ld),bM=Yu(sd),AM=Yu(od),wM=Yu(fd),_M=Yu(dd),Oi=fm;(ld&&Oi(new ld(new ArrayBuffer(1)))!=e0||sd&&Oi(new sd)!=Zv||od&&Oi(od.resolve())!=Xv||fd&&Oi(new fd)!=Jv||dd&&Oi(new dd)!=Qv)&&(Oi=function(e){var t=fm(e),r=t==gM?e.constructor:void 0,a=r?Yu(r):"";if(a)switch(a){case yM:return e0;case bM:return Zv;case AM:return Xv;case wM:return Jv;case _M:return Qv}return t});var ts=Oi,Af=Bo,EM=nm,SM=PF,DM=tM,t0=ts,r0=Oe,a0=ji.exports,CM=$o,xM=1,n0="[object Arguments]",i0="[object Array]",As="[object Object]",$M=Object.prototype,u0=$M.hasOwnProperty;function OM(e,t,r,a,n,i){var u=r0(e),l=r0(t),s=u?i0:t0(e),o=l?i0:t0(t);s=s==n0?As:s,o=o==n0?As:o;var f=s==As,d=o==As,c=s==o;if(c&&a0(e)){if(!a0(t))return!1;u=!0,f=!1}if(c&&!f)return i||(i=new Af),u||CM(e)?EM(e,t,r,a,n,i):SM(e,t,s,r,a,n,i);if(!(r&xM)){var v=f&&u0.call(e,"__wrapped__"),p=d&&u0.call(t,"__wrapped__");if(v||p){var m=v?e.value():e,g=p?t.value():t;return i||(i=new Af),n(m,g,r,a,i)}}return c?(i||(i=new Af),DM(e,t,r,a,n,i)):!1}var TM=OM,FM=TM,l0=On;function dm(e,t,r,a,n){return e===t?!0:e==null||t==null||!l0(e)&&!l0(t)?e!==e&&t!==t:FM(e,t,r,a,dm,n)}var dc=dm,MM=Bo,kM=dc,BM=1,PM=2;function qM(e,t,r,a){var n=r.length,i=n,u=!a;if(e==null)return!i;for(e=Object(e);n--;){var l=r[n];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<i;){l=r[n];var s=l[0],o=e[s],f=l[1];if(u&&l[2]){if(o===void 0&&!(s in e))return!1}else{var d=new MM;if(a)var c=a(o,f,s,e,t,d);if(!(c===void 0?kM(f,o,BM|PM,a,d):c))return!1}}return!0}var NM=qM,RM=Da;function IM(e){return e===e&&!RM(e)}var cm=IM,LM=cm,jM=Br;function UM(e){for(var t=jM(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,LM(n)]}return t}var YM=UM;function zM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var vm=zM,VM=NM,WM=YM,HM=vm;function GM(e){var t=WM(e);return t.length==1&&t[0][2]?HM(t[0][0],t[0][1]):function(r){return r===e||VM(r,e,t)}}var KM=GM,ZM=Vi,XM=On,JM="[object Symbol]";function QM(e){return typeof e=="symbol"||XM(e)&&ZM(e)==JM}var rs=QM,ek=Oe,tk=rs,rk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ak=/^\w*$/;function nk(e,t){if(ek(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tk(e)?!0:ak.test(e)||!rk.test(e)||t!=null&&e in Object(t)}var cc=nk,pm=tc,ik="Expected a function";function vc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ik);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var u=e.apply(this,a);return r.cache=i.set(n,u)||i,u};return r.cache=new(vc.Cache||pm),r}vc.Cache=pm;var uk=vc,lk=uk,sk=500;function ok(e){var t=lk(e,function(a){return r.size===sk&&r.clear(),a}),r=t.cache;return t}var fk=ok,dk=fk,ck=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vk=/\\(\\)?/g,pk=dk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ck,function(r,a,n,i){t.push(n?i.replace(vk,"$1"):a||r)}),t}),hk=pk;function mk(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var zu=mk,s0=Nu,gk=zu,yk=Oe,bk=rs,o0=s0?s0.prototype:void 0,f0=o0?o0.toString:void 0;function hm(e){if(typeof e=="string")return e;if(yk(e))return gk(e,hm)+"";if(bk(e))return f0?f0.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ro=hm,Ak=Ro;function wk(e){return e==null?"":Ak(e)}var gi=wk,_k=Oe,Ek=cc,Sk=hk,Dk=gi;function Ck(e,t){return _k(e)?e:Ek(e,t)?[e]:Sk(Dk(e))}var Vu=Ck,xk=rs;function $k(e){if(typeof e=="string"||xk(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Wu=$k,Ok=Vu,Tk=Wu;function Fk(e,t){t=Ok(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Tk(t[r++])];return r&&r==a?e:void 0}var as=Fk,Mk=as;function kk(e,t,r){var a=e==null?void 0:Mk(e,t);return a===void 0?r:a}var $r=kk;function Bk(e,t){return e!=null&&t in Object(e)}var Pk=Bk,qk=Vu,Nk=Gl,Rk=Oe,Ik=xo,Lk=Jd,jk=Wu;function Uk(e,t,r){t=qk(t,e);for(var a=-1,n=t.length,i=!1;++a<n;){var u=jk(t[a]);if(!(i=e!=null&&r(e,u)))break;e=e[u]}return i||++a!=n?i:(n=e==null?0:e.length,!!n&&Lk(n)&&Ik(u,n)&&(Rk(e)||Nk(e)))}var Yk=Uk,zk=Pk,Vk=Yk;function Wk(e,t){return e!=null&&Vk(e,t,zk)}var mm=Wk,Hk=dc,Gk=$r,Kk=mm,Zk=cc,Xk=cm,Jk=vm,Qk=Wu,e3=1,t3=2;function r3(e,t){return Zk(e)&&Xk(t)?Jk(Qk(e),t):function(r){var a=Gk(r,e);return a===void 0&&a===t?Kk(r,e):Hk(t,a,e3|t3)}}var a3=r3;function n3(e){return function(t){return t?.[e]}}var i3=n3,u3=as;function l3(e){return function(t){return u3(t,e)}}var s3=l3,o3=i3,f3=s3,d3=cc,c3=Wu;function v3(e){return d3(e)?o3(c3(e)):f3(e)}var p3=v3,h3=KM,m3=a3,g3=Xl,y3=Oe,b3=p3;function A3(e){return typeof e=="function"?e:e==null?g3:typeof e=="object"?y3(e)?m3(e[0],e[1]):h3(e):b3(e)}var ri=A3,w3=Zl;function _3(e,t){var r;return w3(e,function(a,n,i){return r=t(a,n,i),!r}),!!r}var E3=_3,S3=am,D3=ri,C3=E3,x3=Oe,$3=uc;function O3(e,t,r){var a=x3(e)?S3:C3;return r&&$3(e,t,r)&&(t=void 0),a(e,D3(t))}var rt=O3,T3=zh,F3=ts,M3=Gl,k3=Oe,B3=ti,P3=ji.exports,q3=Oo,N3=$o,R3="[object Map]",I3="[object Set]",L3=Object.prototype,j3=L3.hasOwnProperty;function U3(e){if(e==null)return!0;if(B3(e)&&(k3(e)||typeof e=="string"||typeof e.splice=="function"||P3(e)||N3(e)||M3(e)))return!e.length;var t=F3(e);if(t==R3||t==I3)return!e.size;if(q3(e))return!T3(e).length;for(var r in e)if(j3.call(e,r))return!1;return!0}var Sl=U3;function Y3(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++a<n;)i[a]=e[a+t];return i}var gm=Y3,z3=gm;function V3(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:z3(e,t,r)}var ym=V3,W3="\\ud800-\\udfff",H3="\\u0300-\\u036f",G3="\\ufe20-\\ufe2f",K3="\\u20d0-\\u20ff",Z3=H3+G3+K3,X3="\\ufe0e\\ufe0f",J3="\\u200d",Q3=RegExp("["+J3+W3+Z3+X3+"]");function eB(e){return Q3.test(e)}var bm=eB;function tB(e){return e.split("")}var rB=tB,Am="\\ud800-\\udfff",aB="\\u0300-\\u036f",nB="\\ufe20-\\ufe2f",iB="\\u20d0-\\u20ff",uB=aB+nB+iB,lB="\\ufe0e\\ufe0f",sB="["+Am+"]",cd="["+uB+"]",vd="\\ud83c[\\udffb-\\udfff]",oB="(?:"+cd+"|"+vd+")",wm="[^"+Am+"]",_m="(?:\\ud83c[\\udde6-\\uddff]){2}",Em="[\\ud800-\\udbff][\\udc00-\\udfff]",fB="\\u200d",Sm=oB+"?",Dm="["+lB+"]?",dB="(?:"+fB+"(?:"+[wm,_m,Em].join("|")+")"+Dm+Sm+")*",cB=Dm+Sm+dB,vB="(?:"+[wm+cd+"?",cd,_m,Em,sB].join("|")+")",pB=RegExp(vd+"(?="+vd+")|"+vB+cB,"g");function hB(e){return e.match(pB)||[]}var mB=hB,gB=rB,yB=bm,bB=mB;function AB(e){return yB(e)?bB(e):gB(e)}var Cm=AB,wB=ym,_B=bm,EB=Cm,SB=gi;function DB(e){return function(t){t=SB(t);var r=_B(t)?EB(t):void 0,a=r?r[0]:t.charAt(0),n=r?wB(r,1).join(""):t.slice(1);return a[e]()+n}}var xm=DB,CB=xm,xB=CB("toUpperCase"),ai=xB,$B=Zl;function OB(e,t){var r=[];return $B(e,function(a,n,i){t(a,n,i)&&r.push(a)}),r}var TB=OB,FB=um,MB=TB,kB=ri,BB=Oe;function PB(e,t){var r=BB(e)?FB:MB;return r(e,kB(t))}var pc=PB,qB=Uu,NB=Br;function RB(e,t){return e&&qB(t,NB(t),e)}var IB=RB,LB=Uu,jB=Ql;function UB(e,t){return e&&LB(t,jB(t),e)}var YB=UB,zB=Uu,VB=fc;function WB(e,t){return zB(e,VB(e),t)}var HB=WB,GB=No,KB=nc,ZB=fc,XB=lm,JB=Object.getOwnPropertySymbols,QB=JB?function(e){for(var t=[];e;)GB(t,ZB(e)),e=KB(e);return t}:XB,$m=QB,eP=Uu,tP=$m;function rP(e,t){return eP(e,tP(e),t)}var aP=rP,nP=im,iP=$m,uP=Ql;function lP(e){return nP(e,uP,iP)}var Om=lP,sP=Object.prototype,oP=sP.hasOwnProperty;function fP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&oP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var dP=fP,cP=rc;function vP(e,t){var r=t?cP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var pP=vP,hP=/\w*$/;function mP(e){var t=new e.constructor(e.source,hP.exec(e));return t.lastIndex=e.lastIndex,t}var gP=mP,d0=Nu,c0=d0?d0.prototype:void 0,v0=c0?c0.valueOf:void 0;function yP(e){return v0?Object(v0.call(e)):{}}var bP=yP,AP=rc,wP=pP,_P=gP,EP=bP,SP=Zh,DP="[object Boolean]",CP="[object Date]",xP="[object Map]",$P="[object Number]",OP="[object RegExp]",TP="[object Set]",FP="[object String]",MP="[object Symbol]",kP="[object ArrayBuffer]",BP="[object DataView]",PP="[object Float32Array]",qP="[object Float64Array]",NP="[object Int8Array]",RP="[object Int16Array]",IP="[object Int32Array]",LP="[object Uint8Array]",jP="[object Uint8ClampedArray]",UP="[object Uint16Array]",YP="[object Uint32Array]";function zP(e,t,r){var a=e.constructor;switch(t){case kP:return AP(e);case DP:case CP:return new a(+e);case BP:return wP(e,r);case PP:case qP:case NP:case RP:case IP:case LP:case jP:case UP:case YP:return SP(e,r);case xP:return new a;case $P:case FP:return new a(e);case OP:return _P(e);case TP:return new a;case MP:return EP(e)}}var VP=zP,WP=ts,HP=On,GP="[object Map]";function KP(e){return HP(e)&&WP(e)==GP}var ZP=KP,XP=ZP,JP=Kl,p0=ql.exports,h0=p0&&p0.isMap,QP=h0?JP(h0):XP,eq=QP,tq=ts,rq=On,aq="[object Set]";function nq(e){return rq(e)&&tq(e)==aq}var iq=nq,uq=iq,lq=Kl,m0=ql.exports,g0=m0&&m0.isSet,sq=g0?lq(g0):uq,oq=sq,fq=Bo,dq=Nh,cq=ic,vq=IB,pq=YB,hq=Js.exports,mq=ac,gq=HB,yq=aP,bq=sm,Aq=Om,wq=ts,_q=dP,Eq=VP,Sq=Xh,Dq=Oe,Cq=ji.exports,xq=eq,$q=Da,Oq=oq,Tq=Br,Fq=Ql,Mq=1,kq=2,Bq=4,Tm="[object Arguments]",Pq="[object Array]",qq="[object Boolean]",Nq="[object Date]",Rq="[object Error]",Fm="[object Function]",Iq="[object GeneratorFunction]",Lq="[object Map]",jq="[object Number]",Mm="[object Object]",Uq="[object RegExp]",Yq="[object Set]",zq="[object String]",Vq="[object Symbol]",Wq="[object WeakMap]",Hq="[object ArrayBuffer]",Gq="[object DataView]",Kq="[object Float32Array]",Zq="[object Float64Array]",Xq="[object Int8Array]",Jq="[object Int16Array]",Qq="[object Int32Array]",eN="[object Uint8Array]",tN="[object Uint8ClampedArray]",rN="[object Uint16Array]",aN="[object Uint32Array]",Gt={};Gt[Tm]=Gt[Pq]=Gt[Hq]=Gt[Gq]=Gt[qq]=Gt[Nq]=Gt[Kq]=Gt[Zq]=Gt[Xq]=Gt[Jq]=Gt[Qq]=Gt[Lq]=Gt[jq]=Gt[Mm]=Gt[Uq]=Gt[Yq]=Gt[zq]=Gt[Vq]=Gt[eN]=Gt[tN]=Gt[rN]=Gt[aN]=!0;Gt[Rq]=Gt[Fm]=Gt[Wq]=!1;function Ns(e,t,r,a,n,i){var u,l=t&Mq,s=t&kq,o=t&Bq;if(r&&(u=n?r(e,a,n,i):r(e)),u!==void 0)return u;if(!$q(e))return e;var f=Dq(e);if(f){if(u=_q(e),!l)return mq(e,u)}else{var d=wq(e),c=d==Fm||d==Iq;if(Cq(e))return hq(e,l);if(d==Mm||d==Tm||c&&!n){if(u=s||c?{}:Sq(e),!l)return s?yq(e,pq(u,e)):gq(e,vq(u,e))}else{if(!Gt[d])return n?e:{};u=Eq(e,d,l)}}i||(i=new fq);var v=i.get(e);if(v)return v;i.set(e,u),Oq(e)?e.forEach(function(g){u.add(Ns(g,t,r,g,e,i))}):xq(e)&&e.forEach(function(g,A){u.set(A,Ns(g,t,r,A,e,i))});var p=o?s?Aq:bq:s?Fq:Tq,m=f?void 0:p(e);return dq(m||e,function(g,A){m&&(A=g,g=e[A]),cq(u,A,Ns(g,t,r,A,e,i))}),u}var hc=Ns,nN=hc,iN=1,uN=4;function lN(e){return nN(e,iN|uN)}var Ze=lN,sN=ic,oN=Vu,fN=xo,y0=Da,dN=Wu;function cN(e,t,r,a){if(!y0(e))return e;t=oN(t,e);for(var n=-1,i=t.length,u=i-1,l=e;l!=null&&++n<i;){var s=dN(t[n]),o=r;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(n!=u){var f=l[s];o=a?a(f,s,l):void 0,o===void 0&&(o=y0(f)?f:fN(t[n+1])?[]:{})}sN(l,s,o),l=l[s]}return e}var km=cN,vN=km;function pN(e,t,r){return e==null?e:vN(e,t,r)}var Fi=pN,b0=Nu,hN=Gl,mN=Oe,A0=b0?b0.isConcatSpreadable:void 0;function gN(e){return mN(e)||hN(e)||!!(A0&&e&&e[A0])}var yN=gN,bN=No,AN=yN;function Bm(e,t,r,a,n){var i=-1,u=e.length;for(r||(r=AN),n||(n=[]);++i<u;){var l=e[i];t>0&&r(l)?t>1?Bm(l,t-1,r,a,n):bN(n,l):a||(n[n.length]=l)}return n}var Hu=Bm;function wN(e,t,r,a){for(var n=e.length,i=r+(a?1:-1);a?i--:++i<n;)if(t(e[i],i,e))return i;return-1}var mc=wN;function _N(e){return e!==e}var EN=_N;function SN(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}var DN=SN,CN=mc,xN=EN,$N=DN;function ON(e,t,r){return t===t?$N(e,t,r):CN(e,xN,r)}var Io=ON,TN=Io;function FN(e,t){var r=e==null?0:e.length;return!!r&&TN(e,t,0)>-1}var Pm=FN;function MN(e,t,r){for(var a=-1,n=e==null?0:e.length;++a<n;)if(r(t,e[a]))return!0;return!1}var qm=MN;function kN(){}var BN=kN,wf=om,PN=BN,qN=oc,NN=1/0,RN=wf&&1/qN(new wf([,-0]))[1]==NN?function(e){return new wf(e)}:PN,IN=RN,LN=lc,jN=Pm,UN=qm,YN=sc,zN=IN,VN=oc,WN=200;function HN(e,t,r){var a=-1,n=jN,i=e.length,u=!0,l=[],s=l;if(r)u=!1,n=UN;else if(i>=WN){var o=t?null:zN(e);if(o)return VN(o);u=!1,n=YN,s=new LN}else s=t?[]:l;e:for(;++a<i;){var f=e[a],d=t?t(f):f;if(f=r||f!==0?f:0,u&&d===d){for(var c=s.length;c--;)if(s[c]===d)continue e;t&&s.push(d),l.push(f)}else n(s,d,r)||(s!==l&&s.push(d),l.push(f))}return l}var GN=HN,KN=Hu,ZN=es,XN=GN,JN=qo,QN=ZN(function(e){return XN(KN(e,1,JN,!0))}),w0=QN,eR=Hu,tR=1/0;function rR(e){var t=e==null?0:e.length;return t?eR(e,tR):[]}var _0=rR,aR=["presets","usePresets","addClasses","prependClasses","removeClasses","replaceClasses","overrideClasses"],nR=["addClass","removeClass","replaceClass","overrideClass"];class Lo{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=t,this.shouldMergeTemplateClasses?(this.componentClasses=this.templateClasses,this.merge({overrideClasses:{[this.component]:this.themeClasses}})):this.componentClasses=this.templateClasses,this.merge(this.config),P(t.merge,r=>{this.merge(r)}),this.merge(this.locals||this.component$.value,!0),this.config.classHelpers&&this.config.env!=="production"&&this.merge({prependClasses:{[this.component]:this.getClassHelpers(this.componentClasses,[this.component])}})}get classes(){return new Proxy(this.componentClasses,{get:(t,r)=>typeof r!="string"?t[r]:this.getDynamicClasses(t,r)})}get config(){return this.options.config||{}}get component(){return this.options.component}get component$(){return this.options.component$}get locals(){return this.options.locals}get view(){return this.options.view}get theme(){return this.options.theme}get presets(){return this.config.presets}get templates(){return this.options.templates||{}}get template(){return this.view&&this.templates["".concat(this.component,"_").concat(this.view)]?this.templates["".concat(this.component,"_").concat(this.view)]:this.templates[this.component]||{}}get themeClasses(){return Ze(this.toArray(this.view&&this.theme.classes["".concat(this.component,"_").concat(this.view)]?this.theme.classes["".concat(this.component,"_").concat(this.view)]:this.theme.classes[this.component]))}get templateClasses(){return Ze(this.toArray(this.defaultClasses))}get shouldMergeTemplateClasses(){var t=typeof this.template.data=="function"&&this.template.data().merge!==void 0?this.template.data().merge:this.component$.value.merge;return t!==void 0?t:!1}get defaultClasses(){return typeof this.template.data=="function"&&this.template.data().defaultClasses?this.template.data().defaultClasses:this.component$.value.defaultClasses}get mainClass(){var t=typeof this.template.data=="function"&&this.template.data().defaultClasses?this.template.data().defaultClasses:this.component$.value.defaultClasses;return Object.keys(t)[0]}merge(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;P(this.pick(t,r?nR:aR),(a,n)=>{switch(typeof a=="function"&&(a=a(this.component$.value.form$,"el$"in this.component$.value&&typeof this.component$.value.el$=="object"?this.component$.value.el$:void 0,this.component$.value)),n){case"addClasses":case"prependClasses":case"overrideClasses":if(!a||a[this.component]===void 0)return;this.mergeComponentClasses(this.toArray(a[this.component]),n);break;case"removeClasses":case"replaceClasses":if(!a||a[this.component]===void 0)return;this.mergeComponentClasses(a[this.component],n);break;case"addClass":case"removeClass":case"replaceClass":case"overrideClass":if(!a)return;typeof a=="string"||Array.isArray(a)?(Array.isArray(a)||(a=a.length>0?a.split(" "):[]),this.mergeComponentClasses({[this.mainClass]:a},"".concat(n,"es"))):n==="replaceClass"?this.mergeComponentClasses(a,"".concat(n,"es")):zt(a)&&this.mergeComponentClasses(this.toArray(a),"".concat(n,"es"));break;case"presets":case"usePresets":if(!Array.isArray(a))return;P(a,i=>{this.merge(this.presets[i])});break}})}mergeComponentClasses(t,r){P(t,(a,n)=>{this[r](a,[n])})}addClasses(t,r){var a=$r(this.componentClasses,r.join("."));t.length==1&&!t[0]||(zt(a)?P(t,(n,i)=>{this.addClasses(n,r.concat(i))}):Fi(this.componentClasses,r.join("."),w0(a,t)))}prependClasses(t,r){var a=$r(this.componentClasses,r.join("."));t.length==1&&!t[0]||(zt(a)?P(t,(n,i)=>{this.prependClasses(n,r.concat(i))}):Fi(this.componentClasses,r.join("."),w0(t,a)))}removeClasses(t,r){var a=$r(this.componentClasses,r.join("."));zt(a)?P(t,(n,i)=>{this.removeClasses(n,r.concat(i))}):Array.isArray(a)&&Fi(this.componentClasses,r.join("."),a.filter(n=>typeof n!="string"||t.indexOf(n)===-1))}replaceClasses(t,r){var a=$r(this.componentClasses,r.join("."));if(Array.isArray(t)){var n={};t.forEach(i=>{n=B(B({},n),i)}),t=n}zt(a)?P(t,(i,u)=>{this.replaceClasses(i,r.concat(u))}):Array.isArray(a)&&Fi(this.componentClasses,r.join("."),a.map(i=>typeof i!="string"||Object.keys(t).indexOf(i)===-1?i:t[i]))}overrideClasses(t,r){var a=$r(this.componentClasses,r.join("."));zt(a)?P(t,(n,i)=>{this.overrideClasses(n,r.concat(i))}):Fi(this.componentClasses,r.join("."),t)}toArray(t){var r={};return P(t,(a,n)=>{r[n]=this.classesToArray(a,[n])}),r}classesToArray(t,r){var a,n=t,i=r?$r(this.componentClasses,r.join(".")):void 0;if(typeof t=="string")n=t.length>0?t.split(" "):[];else if(zt(t))i&&Array.isArray(i)?n=[t]:(!i||zt(i))&&(n={},P(t,(u,l)=>{n[l]=this.classesToArray(u,r.concat([l]))}));else if(typeof t=="boolean"||typeof t=="object"&&["ComputedRefImpl","RefImpl"].indexOf(t==null||(a=t.constructor)===null||a===void 0?void 0:a.name)!==-1)throw Error("Cannot add conditional class to ".concat(this.component,": '").concat(r.join("."),"'"));return n}getDynamicClasses(t,r,a){a||(a=t);var n=Array.isArray(t[r])?_0(t[r]):t[r];if(t["$".concat(r)]){var i=t["$".concat(r)](a,this.component$.value);return typeof i=="function"?i:_0(i)}return zt(n)&&(n=Ze(n),P(n,(u,l)=>{n[l]=this.getDynamicClasses(n,l,t)})),n}getClassHelpers(t,r){var a={};return P(t,(n,i)=>{i.match(/[$]/)||(zt(n)?a[i]=this.getClassHelpers(t[i],r.concat([i])):a[i]=["".concat(r.join("."),".").concat(i,"-->")])}),a}pick(t,r){var a={};return t&&P(r,n=>{n in t&&(a[n]=t[n])}),a}}var eo=function(t,r,a){return r===void 0&&(r=new FormData),a===void 0&&(a=""),Oe(t)?P(t,(n,i)=>{eo(n,r,a+"["+i+"]")}):zt(t)?P(t,(n,i)=>{eo(n,r,a?a+"["+i+"]":i)}):r.append(a,t===null?"":t),r},iR=zu;function uR(e,t){return iR(t,function(r){return e[r]})}var lR=uR,sR=lR,oR=Br;function fR(e){return e==null?[]:sR(e,oR(e))}var mi=fR;function Zr(e,t){return pd.apply(this,arguments)}function pd(){return pd=he(function*(e,t){for(var r=0;r<(zt(e)?mi(e):e).length;r++){var a=zt(e)?Br(e)[r]:r;yield t(e[a],a,e)}}),pd.apply(this,arguments)}var dR=Po,cR=Vh,vR=ri;function pR(e,t){var r={};return t=vR(t),cR(e,function(a,n,i){dR(r,n,t(a,n,i))}),r}var hR=pR,mR=dc;function gR(e,t){return mR(e,t)}var nn=gR,yR=function(t){return{lastModified:t.lastModified,name:t.name,size:t.size,type:t.type}},to=function(t){return t instanceof File?yR(t):t instanceof Date?t.toString():Array.isArray(t)?t.map(to):typeof t=="object"&&t!==null?hR(t,to):t};function Tn(e,t){return nn(to(e),to(t))}var bR=e=>{for(var t=e.parentElement;t&&t!==document.body;){var r=window.getComputedStyle(t).overflowY,a=window.getComputedStyle(t).overflowX,n=(r==="scroll"||r==="auto")&&t.scrollHeight>t.clientHeight,i=(a==="scroll"||a==="auto")&&t.scrollWidth>t.clientWidth;if(n||i)return t;t=t.parentElement}return null},AR=(e,t)=>{if(t){var r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),n=r.top-a.top+t.scrollTop,i=r.left-a.left+t.scrollLeft;t.scrollTo({top:n,left:i,behavior:"smooth"})}};function ol(e,t){return e.appContext!==void 0?typeof e.appContext.app.component(t)!="string":!!e.proxy.$root.$options.components[t]}var Nm=e=>{var t=[];return e.forEach(r=>{t.push(r.path),r.children&&Nm(r.children).forEach(a=>{t.push(a)})}),t},hd=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=u=>{var l=t[u],s=a.length?"".concat(a,".").concat(u):u,o={name:u,path:s,type:l.type};return["group","object"].indexOf(l.type)!==-1&&Object.keys(l.schema||{}).length&&(o.children=hd(l.schema,null,s)),l.type==="list"&&Object.keys(l?.element||{}).length&&(o.children=hd({0:l.element},null,s)),o},i=[];return r&&Object.keys(r).length?Object.values(r).forEach(u=>{u.elements.forEach(l=>{i.push(n(l))})}):Object.keys(t).forEach(u=>{i.push(n(u))}),i},wR=gi,_R=ai;function ER(e){return _R(wR(e).toLowerCase())}var SR=ER;function DR(e,t,r,a){var n=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}var Rm=DR;function CR(e){return function(t){return e?.[t]}}var xR=CR,$R=xR,OR={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},TR=$R(OR),FR=TR,MR=FR,kR=gi,BR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,PR="\\u0300-\\u036f",qR="\\ufe20-\\ufe2f",NR="\\u20d0-\\u20ff",RR=PR+qR+NR,IR="["+RR+"]",LR=RegExp(IR,"g");function jR(e){return e=kR(e),e&&e.replace(BR,MR).replace(LR,"")}var UR=jR,YR=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function zR(e){return e.match(YR)||[]}var VR=zR,WR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function HR(e){return WR.test(e)}var GR=HR,Im="\\ud800-\\udfff",KR="\\u0300-\\u036f",ZR="\\ufe20-\\ufe2f",XR="\\u20d0-\\u20ff",JR=KR+ZR+XR,Lm="\\u2700-\\u27bf",jm="a-z\\xdf-\\xf6\\xf8-\\xff",QR="\\xac\\xb1\\xd7\\xf7",eI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tI="\\u2000-\\u206f",rI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Um="A-Z\\xc0-\\xd6\\xd8-\\xde",aI="\\ufe0e\\ufe0f",Ym=QR+eI+tI+rI,zm="['’]",E0="["+Ym+"]",nI="["+JR+"]",Vm="\\d+",iI="["+Lm+"]",Wm="["+jm+"]",Hm="[^"+Im+Ym+Vm+Lm+jm+Um+"]",uI="\\ud83c[\\udffb-\\udfff]",lI="(?:"+nI+"|"+uI+")",sI="[^"+Im+"]",Gm="(?:\\ud83c[\\udde6-\\uddff]){2}",Km="[\\ud800-\\udbff][\\udc00-\\udfff]",cu="["+Um+"]",oI="\\u200d",S0="(?:"+Wm+"|"+Hm+")",fI="(?:"+cu+"|"+Hm+")",D0="(?:"+zm+"(?:d|ll|m|re|s|t|ve))?",C0="(?:"+zm+"(?:D|LL|M|RE|S|T|VE))?",Zm=lI+"?",Xm="["+aI+"]?",dI="(?:"+oI+"(?:"+[sI,Gm,Km].join("|")+")"+Xm+Zm+")*",cI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pI=Xm+Zm+dI,hI="(?:"+[iI,Gm,Km].join("|")+")"+pI,mI=RegExp([cu+"?"+Wm+"+"+D0+"(?="+[E0,cu,"$"].join("|")+")",fI+"+"+C0+"(?="+[E0,cu+S0,"$"].join("|")+")",cu+"?"+S0+"+"+D0,cu+"+"+C0,vI,cI,Vm,hI].join("|"),"g");function gI(e){return e.match(mI)||[]}var yI=gI,bI=VR,AI=GR,wI=gi,_I=yI;function EI(e,t,r){return e=wI(e),t=r?void 0:t,t===void 0?AI(e)?_I(e):bI(e):e.match(t)||[]}var SI=EI,DI=Rm,CI=UR,xI=SI,$I="['’]",OI=RegExp($I,"g");function TI(e){return function(t){return DI(xI(CI(t).replace(OI,"")),e,"")}}var FI=TI,MI=SR,kI=FI,BI=kI(function(e,t,r){return t=t.toLowerCase(),e+(r?MI(t):t)}),Ui=BI,nt=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!n.events)throw new Error("`events` option is required for useEvents");var i=R(n.events),u=R({}),l=(f,d)=>{u.value[f]||(u.value[f]=[]),u.value[f].push(d)},s=f=>{delete u.value[f]},o=function(){var d=arguments[0],c=[].slice.call(arguments).splice(1);P(u.value[d],v=>{v(...c)}),(!u.value[d]||!u.value[d].length)&&r.emit(...[d].concat(c))};return P(i.value,f=>{var d=t["on"+ai(Ui(f))];d&&l(f,d)}),{events:i,listeners:u,on:l,off:s,fire:o}};function PI(e,t,r){var{value:a,modelValue:n,sync:i}=Q(e),u=r.$this,l=u.$vueform.vueVersion===3?n:a,s=R({}),o=R(l&&l.value?Ze(l.value):null),f=h(()=>i.value&&l&&l.value!==void 0),d=h(()=>Ze(l.value||s.value)),c=(v,p)=>{if(l.value)if(v){var m=v.split("."),g=m.pop(),A=m.join(".")||null,y=A?$r(l.value,A):l.value;y!==void 0&&u.$set(y,g,p),o.value=Ze(l.value)}else P(p,(_,C)=>{l.value!==void 0&&u.$set(l.value,C,_),o.value!==void 0&&u.$set(o.value,C,_)});else{var b=Ze(l.value||s.value);v?Fi(b,v,p):b=Object.assign({},b,p),s.value=b}};return l&&l.value&&Se(d,(v,p)=>{Tn(v,p)||(s.value=v)},{deep:!0,immediate:!1}),{model:d,internalData:s,intermediaryValue:o,externalValue:l,isSync:f,updateModel:c}}var qI=function(t,r){var{schema:a,tabs:n,steps:i,size:u,view:l,views:s,addClass:o,removeClass:f,replaceClass:d,overrideClass:c,addClasses:v,removeClasses:p,replaceClasses:m,overrideClasses:g,presets:A,templates:y,theme:b,messages:_,columns:C,languages:T,formKey:S,endpoint:D,method:x,formData:F,language:k,locale:U,validateOn:Y,scrollToInvalid:H,scrollOnNext:N,showRequired:I,forceLabels:j,floatPlaceholders:M,multilingual:K,stepsControls:Z,displayErrors:W,displayMessages:ee,formatLoad:se,formatData:Me,forceNumbers:z,prepare:G,default:X,disabled:re,loading:Ne,providers:ge,useProviders:ke,providerOptions:je,onChange:oe,onReset:be,onClear:Ie,onSubmit:ce,onSuccess:te,onError:J,onLanguage:pe,onBeforeMount:le,onMounted:_e,onBeforeUpdate:Te,onUpdated:nr,onBeforeUnmount:jr,onUnmounted:hr}=Q(t),Ue=["change","reset","clear","submit","success","error","language","response","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],ir=ja(),It=ir.proxy,{events:Wa,listeners:fn,fire:kt,on:xa,off:$a}=nt(t,r,{form$:It},{events:Ue}),{externalValue:Ur,model:at,internalData:Yr,intermediaryValue:ha,isSync:Ha,updateModel:Oa}=PI(t,r,{$this:It}),zr,Qe=R({}),ma=R(null),Mr=R(null),w=R(!0),E=R(!0),O=R({}),q=R(!1),ie=R(!1),de=R(null),Re=R(null),me=R({}),We=R(!1),we=R(ol(ir,"FormMessages")),Ce=R(ol(ir,"FormErrors")),Xe=R(ol(ir,"FormLanguages")),_r=R(ol(ir,"FormTabs")),mr=R(ol(ir,"FormSteps")),mt=h(()=>It),Ge=h(()=>It.$vueform),qr=h(()=>Ge.value),dn=h(()=>$e.value.locale||Ge.value.i18n.locale),Ta=h(()=>It.$vueform.services),$e=h(()=>{var V={schema:cn.value,tabs:xe.value,steps:$.value},fe={columns:C,languages:T,language:k,theme:b,method:x,validateOn:Y,showRequired:I,messages:_,formKey:S,multilingual:K,formatLoad:se,formatData:Me,prepare:G,default:X,formData:F,templates:y,addClass:o,removeClass:f,replaceClass:d,overrideClass:c,addClasses:v,removeClasses:p,replaceClasses:m,overrideClasses:g,presets:A,size:u,view:l,views:s,locale:U},qe={stepsControls:Z,displayErrors:W,displayMessages:ee,forceLabels:j,disabled:re,loading:Ne,floatPlaceholders:M,endpoint:D,forceNumbers:z,scrollOnNext:N,scrollToInvalid:H,onChange:oe.value,onReset:be.value,onClear:Ie.value,onSubmit:ce.value,onSuccess:te.value,onError:J.value,onLanguage:pe.value,onBeforeMount:le.value,onMounted:_e.value,onBeforeUpdate:Te.value,onUpdated:nr.value,onBeforeUnmount:jr.value,onUnmounted:hr.value},_t={useProviders:ke,providers:ge,providerOptions:je},ba={providers:Ge.value.config.providers,useProviders:Ge.value.config.useProviders,providerOptions:Ge.value.config.providerOptions,languages:Ge.value.config.languages,language:Ge.value.config.language,endpoint:typeof Ge.value.config.endpoints.submit=="function"?Ge.value.config.endpoints.submit:Ge.value.config.endpoints.submit.url,method:typeof Ge.value.config.endpoints.submit=="function"?null:Ge.value.config.endpoints.submit.method,validateOn:Ge.value.config.validateOn,scrollToInvalid:Ge.value.config.scrollToInvalid,scrollOnNext:Ge.value.config.scrollOnNext,showRequired:Ge.value.config.showRequired,displayErrors:Ge.value.config.displayErrors,displayMessages:Ge.value.config.displayMessages,forceLabels:Ge.value.config.forceLabels,floatPlaceholders:Ge.value.config.floatPlaceholders,formData:Ge.value.config.formData,theme:Ge.value.theme,view:Ge.value.config.view,views:{},columns:{},size:null,addClass:null,removeClass:null,replaceClass:null,overrideClass:null,addClasses:{},removeClasses:{},replaceClasses:{},overrideClasses:{},presets:[],templates:{},messages:{},default:{},formKey:null,formatLoad:null,formatData:null,forceNumbers:null,prepare:null,multilingual:!1,stepsControls:!0,disabled:!1,loading:!1};return P(fe,(sr,Et)=>{V[Et]=me.value[Et]!==void 0?me.value[Et]:(sr&&sr.value?sr.value:void 0)||ba[Et]}),P(qe,(sr,Et)=>{V[Et]=me.value[Et]!==void 0?me.value[Et]:sr&&sr.value!==null?sr.value:ba[Et]}),P(_t,(sr,Et)=>{V[Et]=_n({},ba[Et],me.value[Et]||{},sr&&sr.value?sr.value:{})}),V}),cn=h(()=>{var V,fe=Xr.value;return Object.keys($.value).length>0&&(V=$.value),Object.keys(xe.value).length>0&&(V=xe.value),V&&(fe={},P(V,qe=>{P(qe.elements,_t=>{Xr.value[_t]&&(fe[_t]=Xr.value[_t])})}),P(Object.keys(Xr.value),qe=>{fe[qe]===void 0&&(fe[qe]=Xr.value[qe])})),fe}),Xr=h(()=>_n({},a&&a.value?a.value:{},me.value.schema||{})),xe=h(()=>_n({},n&&n.value?n.value:{},me.value.tabs||{})),$=h(()=>_n({},i&&i.value?i.value:{},me.value.steps||{})),ae=h(()=>hd(Xr.value,rl.value?xe.value:$.value)),Ee=h(()=>Nm(ae.value)),ft=h(()=>{var V={};return P(Qe.value,fe=>{fe.isStatic||(V=Object.assign({},V,fe.data))}),V}),cr=h(()=>{var V={};return P(Qe.value,fe=>{fe.isStatic||(V=Object.assign({},V,fe.requestData))}),Me.value?Me.value(V):V}),Ht=h(()=>rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.dirty===!0)),ur=h(()=>rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.invalid===!0)),Nr=h(()=>rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.debouncing===!0)),Fa=h(()=>rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.pending===!0)),Fn=h(()=>!rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.validated===!1)),vr=h(()=>rt(Qe.value,V=>V.isStatic===!1&&V.available===!0&&V.busy===!0)||q.value||ie.value||vs.value),Mn=h(()=>{var V=[];return P(pc(Qe.value,{available:!0,isStatic:!1}),fe=>{P(fe.errors,qe=>{V.push(qe)})}),V}),kn=h(()=>O.value.errors),tu=h(()=>kn.value.length>0),fs=h(()=>tu.value&&$e.value.displayErrors&&Ce.value),Qu=h(()=>O.value.messages),el=h(()=>Qu.value.length>0),ds=h(()=>el.value&&$e.value.displayMessages&&we.value),bi=h(()=>$e.value.multilingual),nf=h(()=>bi.value&&Xe.value),cs=h(()=>{if(ur.value&&ru.value||vr.value)return!0;if(typeof $e.value.disabled=="boolean")return $e.value.disabled;if(typeof $e.value.disabled=="object"&&$e.value.disabled&&$e.value.disabled.value!==void 0)return $e.value.disabled.value;if(typeof $e.value.disabled=="function")return $e.value.disabled(mt.value);if(Array.isArray($e.value.disabled))return $e.value.disabled.every(V=>It.$vueform.services.condition.check(V,null,mt.value))}),vs=h(()=>$e.value.loading),ru=h(()=>$e.value.validateOn.split("|").indexOf("change")!==-1),uf=h(()=>$e.value.validateOn.split("|").indexOf("step")!==-1),tl=h(()=>!Sl($e.value.steps)),lf=h(()=>tl.value&&mr.value),sf=h(()=>tl.value&&$e.value.stepsControls&&mr.value),rl=h(()=>!Sl($e.value.tabs)),ps=h(()=>rl.value&&_r.value),au=h(()=>{var V={};return P(Ge.value.config.usePresets.concat($e.value.presets),fe=>{var qe=Ge.value.config.presets[fe];!qe||!qe.templates||(V=Object.assign({},V,qe.templates))}),Object.assign({},$e.value.theme,{templates:Object.assign({},$e.value.theme.templates,Ge.value.templates,V,$e.value.templates||{})})}),Bn=h(()=>au.value.templates),al=h(()=>et.value&&Bn.value["Vueform_".concat(et.value)]?Bn.value["Vueform_".concat(et.value)]:Bn.value.Vueform),ne=h(()=>new Lo({component:"Vueform",component$:mt,theme:au.value,config:Ge.value.config,templates:Bn.value,view:et.value,locals:$e.value,merge:[$e.value]}).classes),Be=h(()=>{var V;return $e.value.size?V=$e.value.size:P(Ge.value.config.usePresets.concat($e.value.presets),fe=>{var qe=Ge.value.config.presets[fe];!qe||!qe.size||(V=qe.size)}),V||(V=Ge.value.config.size),V}),Ye=h(()=>{var V=Ge.value.config.views;return P(Ge.value.config.usePresets.concat($e.value.presets),fe=>{var qe=Ge.value.config.presets[fe];!qe||!qe.views||(V=Object.assign({},V,qe.views))}),V=Object.assign({},V,$e.value.views),V}),et=h(()=>$e.value.view?$e.value.view:Ye.value.Vueform),Yt=h(()=>{var V=It.$vueform.i18n,fe=V.locales,qe=U.value||V.locale,_t=V.fallbackLocale||"en";return qe?_n({},fe[_t],fe[qe]):fe[_t]}),Er=function(fe){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(qe){hs(qe).update(fe);return}P(Qe.value,_t=>{_t.isStatic||fe[_t.name]===void 0&&!_t.flat||_t.update(_t.flat?fe:fe[_t.name])})},lr=(function(){var V=he(function*(fe){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Mr.value!==null&&Mr.value.enableAllSteps();var _t=qe&&$e.value.formatLoad!==null?$e.value.formatLoad(fe):fe;yield Zr(Qe.value,(function(){var ba=he(function*(sr){if(!sr.isStatic){var Et=sr.flat?_t:_t[sr.name];if(Et===void 0){sr.clear();return}yield sr.load(Et,qe)}});return function(sr){return ba.apply(this,arguments)}})())});return function(qe){return V.apply(this,arguments)}})(),Lt=()=>{P(Qe.value,V=>{V.isStatic||V.reset()}),Mr.value!==null&&Mr.value.reset(),ma.value!==null&&ma.value.reset(),kt("reset")},vn=()=>{P(Qe.value,V=>{V.isStatic||V.clear()}),Mr.value!==null&&Mr.value.reset(),ma.value!==null&&ma.value.reset(),kt("clear")},pn=()=>{P(Qe.value,V=>{V.isStatic||V.clean()})},ga=()=>{O.value&&O.value.clear(),P(Qe.value,V=>{V.isStatic||V.clearMessages()})},Sr=(function(){var V=he(function*(){if(!(!ur.value&&Fn.value&&ru.value)){var fe=Object.values(Qe.value).filter(qe=>qe.available&&!qe.isStatic&&(!qe.validated||!ru.value));yield Zr(fe,(function(){var qe=he(function*(_t){yield _t.validate()});return function(_t){return qe.apply(this,arguments)}})())}});return function(){return V.apply(this,arguments)}})(),nu=()=>{P(Qe.value,V=>{V.isStatic||V.resetValidators()})},hn=()=>{if($e.value.scrollToInvalid){var V=_t=>{var ba;return Object.keys(_t).forEach(sr=>{if(!ba){var Et=_t[sr];Et&&!Et.isStatic&&Et.available&&Et.invalid&&(Et.isObjectType||Et.isGroupType||Et.isListType||Et.isGridType?ba=V(Et.children$):ba=Et)}}),ba},fe=V(Qe.value);if(fe){var qe=bR(fe.$el);qe?AR(fe.$el,qe):fe.$el.scrollIntoView&&fe.$el.scrollIntoView({behavior:"smooth"})}}},mn=(function(){var V=he(function*(){if(!cs.value){if(yield Sr(),ur.value){hn();return}ie.value=!0;try{yield Ga(),typeof $e.value.prepare=="function"&&(yield $e.value.prepare(mt.value)),typeof It.$vueform.config.beforeSend=="function"&&(yield It.$vueform.config.beforeSend(mt.value))}catch(qe){kt("error",qe,{type:"prepare"},mt.value);return}finally{ie.value=!1}var fe=$e.value.formData(mt.value);kt("submit",mt.value,fe),$e.value.endpoint&&Ma()}});return function(){return V.apply(this,arguments)}})(),Ma=(function(){var V=he(function*(){q.value=!0;var fe={};try{var qe,_t;nu();var ba=$e.value.formData(mt.value);if(typeof $e.value.endpoint=="function")fe=yield $e.value.endpoint(ba,mt.value);else{var sr,Et;de.value=Ta.value.axios.CancelToken.source();var C1=((sr=It.$vueform.config.endpoints[$e.value.endpoint])===null||sr===void 0?void 0:sr.url)||$e.value.endpoint,rv=((Et=It.$vueform.config.endpoints[$e.value.endpoint])===null||Et===void 0?void 0:Et.method)||$e.value.method;fe=yield Ta.value.axios.request({url:C1,method:rv.toLowerCase(),[rv.toLowerCase()==="get"?"params":"data"]:ba,cancelToken:de.value.token})}if(fe&&!(fe instanceof Promise)){var Pn;(Pn=fe)!==null&&Pn!==void 0&&(Pn=Pn.data)!==null&&Pn!==void 0&&(Pn=Pn.payload)!==null&&Pn!==void 0&&Pn.updates&&Er(fe.data.payload.updates)}((qe=fe)===null||qe===void 0?void 0:qe.status)>=200&&((_t=fe)===null||_t===void 0?void 0:_t.status)<300?kt("success",fe,mt.value):kt("error",{response:fe},{type:"submit"},mt.value)}catch(uu){uu.response?(kt("error",uu,{type:"submit"},mt.value),kt("response",uu.response,mt.value)):Ta.value.axios.isCancel(uu)?kt("error",uu,{type:"cancel"},mt.value):kt("error",uu,{type:"other"},mt.value);return}finally{de.value=null,q.value=!1}kt("response",fe,mt.value)});return function(){return V.apply(this,arguments)}})(),iu=()=>{de.value&&de.value.cancel()},Ga=(function(){var V=he(function*(){try{yield Zr(Qe.value,(function(){var fe=he(function*(qe){qe.prepare&&(yield qe.prepare())});return function(qe){return fe.apply(this,arguments)}})())}catch(fe){throw new Error(fe)}});return function(){return V.apply(this,arguments)}})(),Ai=()=>{w.value=!1},ya=()=>{w.value=!0},na=()=>{E.value=!0},gn=()=>{E.value=!1},ka=V=>{Re.value=V,kt("language",V)},nl=()=>{mn()},of=V=>eo(V),ff=(V,fe)=>zr.resolve(V,cr.value,fe),hs=(V,fe)=>{if(fe===void 0&&(fe=Qe.value),Sl(fe)||!V)return null;var qe=String(V).match(/^[^.]+\./);if(qe){var _t=qe[0].replace(".","");return fe[_t]?hs(V.replace(qe[0],""),fe[_t].children$):null}else if(fe[V]!==void 0)return fe[V];return null},D1=V=>{var fe;return/\.+/.test(V)?((fe=hs(V.match(/.*(?=\.)/)[0]))===null||fe===void 0?void 0:fe.children$)||{}:Qe.value},ev=()=>{O.value=new Ta.value.messageBag(Mn)},tv=()=>{zr=new Ta.value.expression(qr.value.config.expression,qr,mt)};return oa("form$",mt),oa("theme",au),oa("Size",Be),oa("Views",Ye),oa("translations",Yt),oa("config$",qr),ev(),tv(),ka($e.value.language),Ii(()=>{me.value=It.vueform||{},P(Ue,V=>{var fe=$e.value["on"+ai(V)];fe&&xa(V,fe)}),kt("beforeMount",It)}),Vt(()=>{We.value=!0,Se(ft,(V,fe)=>{Tn(V,fe)||(kt("change",V,fe,It),Ur&&Ur.value!==void 0&&(r.emit("input",V),r.emit("update:modelValue",V)))},{deep:!0,immediate:!1}),Ur&&Ur.value!==void 0&&JSON.stringify(Ur.value)!==JSON.stringify(ft.value)&&(r.emit("input",ft.value),r.emit("update:modelValue",ft.value)),kt("mounted",It)}),yp(()=>kt("beforeUpdate",It)),bp(()=>kt("updated",It)),Gn(()=>kt("beforeUnmount",It)),Ap(()=>kt("unmounted",It)),Se(h(()=>$e.value.language),(V,fe)=>{V&&ka(V)}),{tabs$:ma,steps$:Mr,elements$:Qe,options:$e,validation:w,conditions:E,messageBag:O,selectedLanguage:Re,submitting:q,preparing:ie,cancelToken:de,events:Wa,listeners:fn,internalData:Yr,data:ft,requestData:cr,dirty:Ht,invalid:ur,debouncing:Nr,pending:Fa,validated:Fn,busy:vr,formErrors:kn,formMessages:Qu,isDisabled:cs,isLoading:vs,shouldValidateOnChange:ru,shouldValidateOnStep:uf,hasSteps:tl,hasTabs:rl,hasErrors:tu,hasMessages:el,isMultilingual:bi,showErrors:fs,showMessages:ds,showLanguages:nf,showSteps:lf,showTabs:ps,showStepsControls:sf,classes:ne,Templates:Bn,template:al,extendedTheme:au,Size:Be,View:et,Views:Ye,form$:mt,model:at,intermediaryValue:ha,userConfig:me,isSync:Ha,tree:ae,flatTree:Ee,translations:Yt,locale$:dn,prepareElements:Ga,updateModel:Oa,update:Er,load:lr,reset:Lt,clear:vn,clean:pn,clearMessages:ga,validate:Sr,resetValidators:nu,convertFormData:of,resolveExpression:ff,submit:mn,scrollToFirstInvalid:hn,send:Ma,cancel:iu,disableValidation:Ai,enableValidation:ya,enableConditions:na,disableConditions:gn,setLanguage:ka,handleSubmit:nl,el$:hs,siblings$:D1,initMessageBag:ev,initExpressionService:tv,fire:kt,on:xa,off:$a,messagesRegistered:we,errorsRegistered:Ce,languagesRegistered:Xe,tabsRegistered:_r,stepsRegistered:mr,expression:zr}},Dt=function(t,r,a){var n=r.name,i=a.form$,u=a.el$,l=a.component$||a.el$,s=a.theme,o=a.Templates,f=a.View,d=h(()=>new Lo({component:n.value,component$:l,theme:s.value,config:i.value.$vueform.config,templates:o.value,view:f.value,merge:[i.value.options,u.value]})),c=h(()=>{var v;return B({},(v=d.value)===null||v===void 0?void 0:v.classes)});return{classes:c,classesInstance:d}},gc={name:"Vueform",emits:["input","update:modelValue","change","reset","clear","submit","success","error","response","language","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],slots:["default","empty"],setup:(e,t)=>{t.emits=["input","update:modelValue","change","reset","clear","submit","success","error","response","language","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],t.name=R("Vueform");var{tabs$:r,steps$:a,elements$:n,options:i,validation:u,conditions:l,messageBag:s,selectedLanguage:o,submitting:f,preparing:d,cancelToken:c,events:v,listeners:p,internalData:m,data:g,requestData:A,dirty:y,invalid:b,debouncing:_,pending:C,validated:T,busy:S,formErrors:D,formMessages:x,isDisabled:F,isLoading:k,shouldValidateOnChange:U,shouldValidateOnStep:Y,hasSteps:H,hasTabs:N,hasErrors:I,hasMessages:j,isMultilingual:M,showErrors:K,showMessages:Z,showLanguages:W,showSteps:ee,showTabs:se,showStepsControls:Me,classes:z,Templates:G,template:X,extendedTheme:re,Size:Ne,View:ge,Views:ke,form$:je,model:oe,intermediaryValue:be,userConfig:Ie,isSync:ce,tree:te,flatTree:J,translations:pe,locale$:le,prepareElements:_e,updateModel:Te,update:nr,load:jr,reset:hr,clear:Ue,clean:ir,clearMessages:It,validate:Wa,resetValidators:fn,convertFormData:kt,resolveExpression:xa,submit:$a,scrollToFirstInvalid:Ur,scrollOnNext:at,send:Yr,cancel:ha,disableValidation:Ha,enableValidation:Oa,enableConditions:zr,disableConditions:Qe,setLanguage:ma,handleSubmit:Mr,el$:w,siblings$:E,initMessageBag:O,initExpressionService:q,fire:ie,on:de,off:Re,messagesRegistered:me,errorsRegistered:We,languagesRegistered:we,tabsRegistered:Ce,stepsRegistered:Xe,expression:_r}=qI(e,t);return{tabs$:r,steps$:a,elements$:n,options:i,validation:u,conditions:l,messageBag:s,selectedLanguage:o,submitting:f,preparing:d,cancelToken:c,events:v,listeners:p,internalData:m,data:g,requestData:A,dirty:y,invalid:b,debouncing:_,pending:C,validated:T,busy:S,formErrors:D,formMessages:x,isDisabled:F,isLoading:k,shouldValidateOnChange:U,shouldValidateOnStep:Y,hasSteps:H,hasTabs:N,hasErrors:I,hasMessages:j,isMultilingual:M,showErrors:K,showMessages:Z,showLanguages:W,showSteps:ee,showTabs:se,showStepsControls:Me,classes:z,Templates:G,template:X,extendedTheme:re,Size:Ne,View:ge,Views:ke,form$:je,model:oe,intermediaryValue:be,userConfig:Ie,isSync:ce,tree:te,flatTree:J,translations:pe,locale$:le,prepareElements:_e,updateModel:Te,update:nr,load:jr,reset:hr,clear:Ue,clean:ir,clearMessages:It,validate:Wa,resetValidators:fn,convertFormData:kt,resolveExpression:xa,submit:$a,scrollToFirstInvalid:Ur,scrollOnNext:at,send:Yr,cancel:ha,disableValidation:Ha,enableValidation:Oa,enableConditions:zr,disableConditions:Qe,setLanguage:ma,handleSubmit:Mr,el$:w,siblings$:E,initMessageBag:O,initExpressionService:q,fire:ie,on:de,off:Re,messagesRegistered:me,errorsRegistered:We,languagesRegistered:we,tabsRegistered:Ce,stepsRegistered:Xe,expression:_r}},props:{schema:{type:Object,required:!1,default:null},name:{type:String,required:!1,default:null,private:!0},tabs:{type:Object,required:!1,default:null},steps:{type:Object,required:!1,default:null},stepsControls:{type:Boolean,required:!1,default:null,"@default":!0},scrollOnNext:{type:Boolean,required:!1,default:null},validateOn:{type:String,required:!1,default:null},scrollToInvalid:{type:Boolean,required:!1,default:null},showRequired:{type:Array,required:!1,default:null},displayErrors:{type:Boolean,required:!1,default:null},displayMessages:{type:Boolean,required:!1,default:null},messages:{type:Object,required:!1,default:null},endpoint:{type:[String,Boolean,Function,Promise],required:!1,default:null},method:{type:String,required:!1,default:null},prepare:{type:Function,required:!1,default:null},formKey:{type:[String,Number],required:!1,default:null},formData:{type:Function,required:!1,default:null},value:{type:Object,required:!1,default:void 0},modelValue:{type:Object,required:!1,default:void 0},sync:{type:Boolean,required:!1,default:!1},default:{type:Object,required:!1,default:null},forceNumbers:{required:!1,type:[Boolean],default:null},formatData:{type:Function,required:!1,default:null},formatLoad:{type:Function,required:!1,default:null},loading:{type:Boolean,required:!1,default:null},disabled:{type:[Boolean,Function,Object,Array],required:!1,default:null},columns:{type:Object,required:!1,default:null},forceLabels:{type:Boolean,required:!1,default:null},floatPlaceholders:{type:Boolean,required:!1,default:null},size:{required:!1,type:[String],default:null},view:{required:!1,type:[String],default:null},views:{required:!1,type:[Object],default:null},addClasses:{required:!1,type:[Object,Function],default:null},addClass:{required:!1,type:[Array,Object,String,Function],default:null},removeClasses:{required:!1,type:[Object,Function],default:null},removeClass:{required:!1,type:[Array,Object,Function],default:null},replaceClasses:{required:!1,type:[Object,Function],default:null},replaceClass:{required:!1,type:[Object,Function],default:null},overrideClasses:{required:!1,type:[Object,Function],default:null},overrideClass:{required:!1,type:[Array,Object,String,Function],default:null},templates:{type:Object,required:!1,default:null},presets:{required:!1,type:[Array],default:null},multilingual:{type:Boolean,required:!1,default:null},languages:{type:Object,required:!1,default:null},language:{type:String,required:!1,default:null},locale:{type:String,required:!1,default:null},providers:{type:[Object],required:!1,default:null},useProviders:{type:[Object],required:!1,default:null},providerOptions:{type:[Object],required:!1,default:null},onChange:{required:!1,type:[Function],default:null,private:!0},onReset:{required:!1,type:[Function],default:null,private:!0},onClear:{required:!1,type:[Function],default:null,private:!0},onSubmit:{required:!1,type:[Function],default:null,private:!0},onResponse:{required:!1,type:[Function],default:null,private:!0},onSuccess:{required:!1,type:[Function],default:null,private:!0},onError:{required:!1,type:[Function],default:null,private:!0},onLanguage:{required:!1,type:[Function],default:null,private:!0},onBeforeMount:{required:!1,type:[Function],default:null,private:!0},onMounted:{required:!1,type:[Function],default:null,private:!0},onBeforeUpdate:{required:!1,type:[Function],default:null,private:!0},onUpdated:{required:!1,type:[Function],default:null,private:!0},onBeforeUnmount:{required:!1,type:[Function],default:null,private:!0},onUnmounted:{required:!1,type:[Function],default:null,private:!0}},render(){return this.template.render.apply(this,arguments)}},NI=Zl,RI=ti;function II(e,t){var r=-1,a=RI(e)?Array(e.length):[];return NI(e,function(n,i,u){a[++r]=t(n,i,u)}),a}var Jm=II,LI=zu,jI=ri,UI=Jm,YI=Oe;function zI(e,t){var r=YI(e)?LI:UI;return r(e,jI(t))}var ci=zI,VI=Vi,WI=Oe,HI=On,GI="[object String]";function KI(e){return typeof e=="string"||!WI(e)&&HI(e)&&VI(e)==GI}var jo=KI,ZI=/\s/;function XI(e){for(var t=e.length;t--&&ZI.test(e.charAt(t)););return t}var JI=XI,QI=JI,eL=/^\s+/;function tL(e){return e&&e.slice(0,QI(e)+1).replace(eL,"")}var Qm=tL,rL=Io;function aL(e,t){for(var r=e.length;r--&&rL(t,e[r],0)>-1;);return r}var nL=aL,iL=Io;function uL(e,t){for(var r=-1,a=e.length;++r<a&&iL(t,e[r],0)>-1;);return r}var lL=uL,sL=Ro,oL=Qm,fL=ym,dL=nL,cL=lL,x0=Cm,vL=gi;function pL(e,t,r){if(e=vL(e),e&&(r||t===void 0))return oL(e);if(!e||!(t=sL(t)))return e;var a=x0(e),n=x0(t),i=cL(a,n),u=dL(a,n)+1;return fL(a,i,u).join("")}var $0=pL;function jt(e,t,r){var a=r.locale$||t.i18n.locale;return a&&e&&typeof e=="object"?e?.[a]||e?.[a.toUpperCase()]||e?.[t.i18n.fallbackLocale]||e?.[t.i18n.fallbackLocale.toUpperCase()]||e?.[Object.keys(e)[0]]||"":e}var Le=class{constructor(e,t){var r;this.rule=e,this.attributes=e.attributes||{},this.conditions=e.conditions||[],this.dependents=e.dependents||[],this.element$=t.element$,this.form$=((r=t.element$)===null||r===void 0?void 0:r.form$)||{},this.config$=t.config$,this.numeric=t.numeric||!1,this.elementMessages=t.element$.messages,this.invalid=!1,this.pending=!1,this.debouncer=null,this.lastValue=null,this.watchers={},this.dependents.forEach(a=>{Se(h(()=>{var n;return(n=this.form$.el$(a))===null||n===void 0?void 0:n.value}),()=>{this.element$.validated&&(this.name==="nullable"?this.element$.validate():this.revalidate())})}),Se(h(()=>t.element$.messages),(a,n)=>{nn(a,n)||(this.elementMessages=t.element$.messages)},{deep:!0}),this.init()}get moment(){return this.form$.$vueform.services.moment}get name(){return this.rule.name}get failing(){return this.invalid}get defaultMessage(){return this.form$.translations.vueform.defaultMessage}get message(){var e,t="";return this.msg?t=this.msg:this.elementMessages[this.name]?t=jt(this.elementMessages[this.name],this.config$.value,this.form$):this.form$.options.messages[this.name]?t=jt(this.form$.options.messages[this.name],this.config$.value,this.form$):this.name!=="_class"&&((e=this.form$.translations.validation)===null||e===void 0?void 0:e[this.name])!==void 0?(t=this.form$.translations.validation[this.name],zt(t)&&(t=t[this.messageType])):t=this.defaultMessage,P(ci(t.match(/:\w+/g),r=>r.replace(":","")),r=>{t=t.replace(":".concat(r),this.messageParams[r])}),P(ci(t.match(/{[^}]+/g),r=>r.replace("{","")),r=>{t=t.replace("{".concat(r,"}"),this.messageParams[r])}),t}get messageType(){return this.isNumeric?"numeric":this.isFile?"file":this.isArray?"array":"string"}get messageParams(){return{attribute:this.attributeName}}get attributeName(){return this.element$.genericName}get type(){return this.isNumeric?"numeric":this.isFile?"file":this.isArray?"array":"string"}get isNumeric(){return rt(this.element$.Validators,{name:"numeric"})||rt(this.element$.Validators,{name:"integer"})||typeof this.element$.value=="number"}get isNullable(){var e=!1;return P(this.element$.Validators,t=>{if(t.name==="nullable"){if(!t.conditions.length){e=!0;return}e=t.conditions(this.form$,this,this.element$)}}),e}get isFile(){return this.element$.isFileType}get isArray(){return this.element$.isArrayType}get isAsync(){return!1}get debounce(){return this.attributes.debounce?this.attributes.debounce:this.element$.debounce?this.element$.debounce:!1}get debouncing(){return this.debouncer!==null}init(){}validate(e){var t=this;return he(function*(){if(e===void 0){var r;e=(r=t.element$)===null||r===void 0?void 0:r.value}if(t.form$.validation){if(t.isNullable&&!t.filled(e)){t.invalid=!1;return}if(t.conditions.length&&!t.conditions(t.form$,t,t.element$)){t.invalid=!1;return}t.debounce&&t.filled(e)?yield t._validateWithDebounce(e):(t.debounce&&t.debouncer&&clearTimeout(t.debouncer),yield t._validate(e))}})()}replaceParams(e){return P(ci(e.match(/:\w+/g),t=>t.replace(":","")),t=>{e=e.replace(":".concat(t),this.messageParams[t])}),P(ci(e.match(/{[^}]+/g),t=>t.replace("{","")),t=>{e=e.replace("{".concat(t,"}"),this.messageParams[t])}),e}reset(){this.invalid=!1}watch(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{this.addWatcher(t)})}addWatcher(e){this.watchers[e]||(this.watchers[e]=Se(h(()=>$r(this.form$.data,e)),()=>{this.revalidate()}))}revalidate(){this.element$.Validators.forEach(e=>{e.rule.name===this.rule.name&&e.validate()})}watchOther(){this.form$.$nextTick(()=>{this.other$&&this.form$.$watch(()=>{var e;return(e=this.other$)===null||e===void 0?void 0:e.value},()=>{this.element$.validated&&this.element$.validate()})})}isOtherNumeric(e){return rt(e.Validators,{name:"numeric"})||rt(e.Validators,{name:"integer"})||typeof e.value=="number"}size(e,t){if(t&&this.isOtherNumeric(t)||!t&&this.isNumeric){if(!isNaN(e)){var r=parseFloat(e);return Number.isInteger(r)?parseInt(e):r}return null}else{if(this.isFile)return e?e.size/1e3:0;if(this.isArray)return e.length;if(e===null)return 0;if(e===void 0)return 0;if(e==="")return 0}return String(e).length}filled(e){return this.element$.useCustomFilled?this.element$.isFilled:e===void 0||e===null&&e!==this.element$.trueValue||e===this.element$.falseValue||this.isNumeric&&$0(e)===""||jo(e)&&$0(e)===""||Oe(e)&&e.length<1?!1:!(e instanceof File&&e.name==="")}_validate(e){var t=this;return he(function*(){t.isAsync?yield t._validateAsync(e):t._validateSync(e)})()}_validateAsync(e){var t=this;return he(function*(){t.lastValue=e,t.pending=!0;var r=yield t.check(e);Tn(t.lastValue,e)&&(t.invalid=!r,t.pending=!1)})()}_validateSync(e){this.invalid=!this.check(e)}_validateWithDebounce(e){var t=this;return he(function*(){return new Promise((r,a)=>{t.debouncer&&(r(),clearTimeout(t.debouncer)),t.debouncer=setTimeout(he(function*(){yield t._validate(e),t.debouncer=null,r()}),t.debounce)})})()}};function hL(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mL=hL,gL=as,yL=gm;function bL(e,t){return t.length<2?e:gL(e,yL(t,0,-1))}var AL=bL,wL=Vu,_L=mL,EL=AL,SL=Wu;function DL(e,t){return t=wL(t,e),e=EL(e,t),e==null||delete e[SL(_L(t))]}var CL=DL,xL=zt;function $L(e){return xL(e)?void 0:e}var OL=$L,TL=Hu;function FL(e){var t=e==null?0:e.length;return t?TL(e,1):[]}var ML=FL,kL=ML,BL=tm,PL=rm;function qL(e){return PL(BL(e,void 0,kL),e+"")}var eg=qL,NL=zu,RL=hc,IL=CL,LL=Vu,jL=Uu,UL=OL,YL=eg,zL=Om,VL=1,WL=2,HL=4,GL=YL(function(e,t){var r={};if(e==null)return r;var a=!1;t=NL(t,function(i){return i=LL(i,e),a||(a=i.length>1),i}),jL(e,zL(e),r),a&&(r=RL(r,VL|WL|HL,UL));for(var n=t.length;n--;)IL(r,t[n]);return r}),md=GL,KL=as,ZL=km,XL=Vu;function JL(e,t,r){for(var a=-1,n=t.length,i={};++a<n;){var u=t[a],l=KL(e,u);r(l,u)&&ZL(i,XL(u,e),l)}return i}var QL=JL,e6=QL,t6=mm;function r6(e,t){return e6(e,t,function(r,a){return t6(e,a)})}var a6=r6,n6=a6,i6=eg,u6=i6(function(e,t){return e==null?{}:n6(e,t)}),l6=u6,s6=lc,o6=Pm,f6=qm,d6=zu,c6=Kl,v6=sc,p6=200;function h6(e,t,r,a){var n=-1,i=o6,u=!0,l=e.length,s=[],o=t.length;if(!l)return s;r&&(t=d6(t,c6(r))),a?(i=f6,u=!1):t.length>=p6&&(i=v6,u=!1,t=new s6(t));e:for(;++n<l;){var f=e[n],d=r==null?f:r(f);if(f=a||f!==0?f:0,u&&d===d){for(var c=o;c--;)if(t[c]===d)continue e;s.push(f)}else i(t,d,a)||s.push(f)}return s}var tg=h6,m6=tg,g6=es,y6=qo,b6=g6(function(e,t){return y6(e)?m6(e,t):[]}),A6=b6;function w6(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function _6(e){return e}function rg(e,t){t=t||{};var r=t.delimiter||".",a=t.maxDepth,n=t.transformKey||_6,i={};function u(l,s,o){o=o||1,Object.keys(l).forEach(function(f){var d=l[f],c=t.safe&&Array.isArray(d),v=Object.prototype.toString.call(d),p=w6(d),m=v==="[object Object]"||v==="[object Array]",g=s?s+r+n(f):n(f);if(!c&&!p&&m&&Object.keys(d).length&&(!t.maxDepth||o<a))return u(d,g,o+1);i[g]=d})}return u(e),i}var E6=tg,S6=Hu,D6=es,O0=qo,C6=D6(function(e,t){return O0(e)?E6(e,S6(t,1,O0,!0)):[]}),yc=C6;function T0(e,t){if(!t.apply&&yc(Object.keys(t),["config","install"]).length>0)return!0;var r=t.apply;Array.isArray(r)||(r=[r]);var a=!1;return P(r,n=>{if(typeof n=="string"&&n===e)return a=!0,!1;if(typeof n=="object"&&n instanceof RegExp&&e.match(n))return a=!0,!1}),a}var x6="1.13.5",$6={version:x6},Ar=function(t){return t===void 0||typeof t!="string"?t:t.match(/^-*\d+$/)?parseInt(t,10):t.match(/^\d+\.\d+$/)?parseFloat(t):t},F0=e=>{var t=()=>e.split(":")[0],r=()=>{var a=e.split(":");if(a.length<=1)return null;var n={},i=a[0];a.shift();var u=a.join(":");return["regex","not_regex"].indexOf(i)!==-1?(n[0]=u,n):(P(u.split(","),(l,s)=>{var o=l.split("=");o.length<=1?n[s]=Ar(l):n[o[0]]=Ar(o[1])}),n)};return{name:t(),attributes:r()}};function tn(e,t){return t.match(/\.([0-9]+)(?![a-zA-Z]+)/g)&&t.match(/\.([0-9]+)(?![a-zA-Z]+)/g).forEach(r=>{e=e.replace(".*",r)}),e}function M0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e.includes("[*]"))return e;var a=t.split("."),n={};return a.forEach((i,u)=>{/^[0-9]+$/.test(i)&&(n[a[u-1]]=i)}),Object.keys(n).forEach(i=>{e=e.replace(new RegExp("(?<![a-zA-Z0-9_-])".concat(i,"\\[\\*\\]"),"g"),r?"".concat(i,"[").concat(n[i],"]"):"".concat(i,".").concat(n[i]))}),e}var O6=Qm,k0=Da,T6=rs,B0=NaN,F6=/^[-+]0x[0-9a-f]+$/i,M6=/^0b[01]+$/i,k6=/^0o[0-7]+$/i,B6=parseInt;function P6(e){if(typeof e=="number")return e;if(T6(e))return B0;if(k0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=k0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=O6(e);var r=M6.test(e);return r||k6.test(e)?B6(e.slice(2),r?2:8):F6.test(e)?B0:+e}var q6=P6,N6=q6,P0=1/0,R6=17976931348623157e292;function I6(e){if(!e)return e===0?e:0;if(e=N6(e),e===P0||e===-P0){var t=e<0?-1:1;return t*R6}return e===e?e:0}var L6=I6,j6=L6;function U6(e){var t=j6(e),r=t%1;return t===t?r?t-r:t:0}var ns=U6,Y6=Io,z6=ti,V6=jo,W6=ns,H6=mi,G6=Math.max;function K6(e,t,r,a){e=z6(e)?e:H6(e),r=r&&!a?W6(r):0;var n=e.length;return r<0&&(r=G6(n+r,0)),V6(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&Y6(e,t,r)>-1}var _f=K6;function Z6(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var ag=Z6,X6=ag,J6=Ro,Q6=ns,e4=gi;function t4(e,t,r){return e=e4(e),r=r==null?0:X6(Q6(r),0,e.length),t=J6(t),e.slice(r,r+t.length)==t}var r4=t4,a4=ag,n4=Ro,i4=ns,u4=gi;function l4(e,t,r){e=u4(e),t=n4(t);var a=e.length;r=r===void 0?a:a4(i4(r),0,a);var n=r;return r-=t.length,r>=0&&e.slice(r,n)==t}var s4=l4;function ng(e,t,r,a,n){if(!t)return!1;var i=n.$vueform.config.strictConditions;e=Array.isArray(e)?e.map(f=>Ar(f)):Ar(e),r=Array.isArray(r)?r.map(f=>Ar(f)):Ar(r);var u=n.$vueform.services.moment;switch(t.toLowerCase()){case">":return Oe(e)?e.every(f=>f>r):e>r;case">=":return Oe(e)?i?e.every(f=>f>=r&&f!==null&&f!==void 0&&f!==""):e.every(f=>f>=r):i?e>=r&&e!==null&&e!==void 0&&e!=="":e>=r;case"<":return Oe(e)?i?e.every(f=>f<r&&f!==null&&f!==void 0&&f!==""):e.every(f=>f<r):i?e<r&&e!==null&&e!==void 0&&e!=="":e<r;case"<=":return Oe(e)?i?e.every(f=>f<=r&&f!==null&&f!==void 0&&f!==""):e.every(f=>f<=r):i?e<=r&&e!==null&&e!==void 0&&e!=="":e<=r;case"between":return e>r[0]&&e<r[1];case"empty":if(Oe(e))return!e.length;if(e&&e instanceof File)return!1;if(e&&e instanceof Blob)return!1;if(e&&typeof e=="object"){var l=Object.values(e);return!l.length||l.every(f=>Array.isArray(f)?!f.length:f&&typeof f=="object"?Object.values(f).every(d=>Array.isArray(d)?!d.length:["",null,void 0].indexOf(d)!==-1):["",null,void 0].indexOf(f)!==-1)}else return["",null,void 0].indexOf(e)!==-1;case"not_empty":if(Oe(e))return!!e.length;if(e&&e instanceof File)return!0;if(e&&e instanceof Blob)return!0;if(e&&typeof e=="object"){var s=Object.values(e);return s.length&&s.some(f=>Array.isArray(f)?f.length:f&&typeof f=="object"?Object.values(f).some(d=>Array.isArray(d)?d.length:["",null,void 0].indexOf(d)===-1):["",null,void 0].indexOf(f)===-1)}else return["",null,void 0].indexOf(e)===-1;case"==":case"in":return Oe(r)?Oe(e)?r.length?e.filter(f=>_f(r,f)).length>0:!e.length:r.indexOf(e)!==-1:Oe(e)?e.indexOf(r)!==-1:e==r;case"!=":case"not_in":return Oe(r)?Oe(e)?r.length?e.filter(f=>_f(r,f)).length==0:!!e.length:r.indexOf(e)===-1:Oe(e)?e.indexOf(r)===-1:e!=r;case"today":return Oe(e)||(e=[e]),e.length&&e.every(f=>u(f,a.valueDateFormat).isSame(u(),"day"));case"before":return Oe(e)||(e=[e]),e.length&&e.every(f=>{var d=u(f,a.valueDateFormat);return d.isValid()&&d.isBefore(u(r==="today"?void 0:r),"day")});case"after":return Oe(e)||(e=[e]),e.length&&e.every(f=>{var d=u(f,a.valueDateFormat);return d.isValid()&&d.isAfter(u(r==="today"?void 0:r),"day")});case"^":return r4(e,r);case"$":return s4(e,r);case"*":return _f(e,r);default:var o=n.$vueform.config.operators||{};if(o[t])return o[t](e,r,a,n)}}var o4=class{constructor(e,t,r){this.form$=t,this.element$=t.el$(e),this.config$=r}get rules(){var e=Object.assign({},this.form$.$vueform.services.validation.rules,this.form$.$vueform.rules);return!e.in&&e.in_&&(e.in=e.in_),e}makeAll(e){var t=this.parseRules(e);return t.length==0?[]:ci(t,r=>this.make(r))}make(e){var t=typeof e=="function"?e:Array.isArray(e)?e[0]:this.rules[e.name];if(!t)throw new Error("Unknown rule: '".concat(e.name,"'"));return new t(e!=null&&e.name?e:{name:"custom_rule_".concat(Math.floor(Math.random()*9e6)+1e6),attributes:Array.isArray(e)&&e[1]?e[1]:[]},{element$:this.element$,config$:this.config$})}parseRules(e){return Oe(e)||(e=e.split("|")),e.map(t=>typeof t=="function"||Array.isArray(t)?t:this.isConditional(t)?this.parseConditional(t):this.parse(t))}parse(e){return F0(e)}isConditional(e){return zt(e)}getExprDeps(e){var t,r=this.form$.expression;return r.vars(r.wrap(e),(t=this.element$)===null||t===void 0?void 0:t.dataPath)}parseConditional(e){var t=mi(e)[0];Array.isArray(t[0])||(t=[t]);var r=B(B({},F0(Br(e)[0])),{},{conditions:(a,n,i)=>t.every(u=>Oe(u)?typeof u[0]=="string"&&u.length===1?this.createConditionFromString(u)(a,n,i):Oe(u[0])?u.some(l=>typeof l[0]=="string"&&l.length===1?this.createConditionFromString(l)(a,n,i):Oe(l)?this.createConditionFromArray(l)(a,n,i):u(a,n,i)):this.createConditionFromArray(u)(a,n,i):u(a,n,i)),dependents:[]});return t.forEach(a=>{Oe(a)&&(typeof a[0]=="string"?r.dependents.push(...this.getExprDeps(a[0])):Oe(a[0])?a.forEach(n=>{typeof n=="string"?r.dependents.push(...this.getExprDeps(n[0])):Oe(n)&&r.dependents.push(tn(n[0],this.element$.path))}):r.dependents.push(tn(a[0],this.element$.path)))}),r}createConditionFromArray(e){var t=tn(e[0],this.element$.path),r=e.length==3||["empty","not_empty","today"].indexOf(e[1])!==-1?e[1]:"==",a=e.length==3?e[2]:["empty","not_empty","today"].indexOf(e[1])===-1?e[1]:!0;return(n,i,u)=>{var l,s=(l=n.el$(t))===null||l===void 0?void 0:l.value,o=a;return ng(s,r,o,this.element$,n)}}createConditionFromString(e){return!/^{/.test(e)&&!/}$/.test(e)&&(e="{".concat(e,"}")),(t,r,a)=>{var n;return t.resolveExpression(e,(n=this.element$)===null||n===void 0?void 0:n.dataPath)!=="false"}}};class ig extends Le{check(t){return["yes","on","1",1,!0,"true"].indexOf(t)!==-1}}class ug extends Le{get isAsync(){return!0}check(t){var r=this;return he(function*(){var a=r.form$.$vueform.config.endpoints.activeUrl,n=typeof a!="function"?a.method:null,i;return typeof a=="function"?i=yield a(t,r.element$,r.form$):i=yield r.form$.$vueform.services.axios.request({url:a.url,method:n,[n.toLowerCase()==="get"?"params":"data"]:{url:t}}),i.data})()}}class is extends Le{get messageParams(){return{attribute:this.attributeName,date:this.date.format(this.format)}}get param(){return this.path?tn(this.attributes[0],this.path):this.attributes[0]}get format(){return["date","dates"].indexOf(this.element$.type)!==-1&&this.element$.valueFormat?this.element$.valueFormat:"YYYY-MM-DD"}get otherFormat(){return this.dateType!="element"?this.format:["date","dates"].indexOf(this.other$.type)!==-1&&this.other$.valueFormat?this.other$.valueFormat:this.format}get path(){var t;return(t=this.element$)===null||t===void 0?void 0:t.path}get otherPath(){return this.dateType!="element"?null:this.param}get other$(){return this.dateType!="element"?{}:this.form$.el$(this.param)}get date(){var t="";switch(this.dateType){case"relative":this.param==="today"&&(t=this.moment().startOf("day")),this.param==="tomorrow"&&(t=this.moment().startOf("day").add(1,"days")),this.param==="yesterday"&&(t=this.moment().startOf("day").subtract(1,"days"));break;case"element":t=this.moment(this.other$.value,this.otherFormat);break;case"absolute":t=this.moment(this.param,this.format);break}return t}get dateType(){return["today","tomorrow","yesterday"].indexOf(this.param)!==-1?"relative":this.form$.el$(this.param)?"element":"absolute"}init(){this.form$.$nextTick(()=>{this.dateType=="element"&&this.watchOther()})}check(t){if(Oe(t)){var r=!0;return P(t,a=>{this.checkDate(a)||(r=!1)}),r}return this.checkDate(t)}checkDate(t){return this.moment(t,this.format).isAfter(this.moment(this.date,this.otherFormat))}}class lg extends is{checkDate(t){return this.moment(t,this.format).isSameOrAfter(this.moment(this.date,this.otherFormat))}}class sg extends Le{check(t){return/^[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/.test(t)}}class og extends Le{check(t){return/^[0-9-_\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/.test(t)}}class fg extends Le{check(t){return/^[0-9\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/.test(t)}}class dg extends Le{check(t){return Oe(t)}}class cg extends is{checkDate(t){return this.moment(t,this.format).isBefore(this.moment(this.date,this.otherFormat))}}class vg extends is{checkDate(t){return this.moment(t,this.format).isSameOrBefore(this.moment(this.date,this.otherFormat))}}class pg extends Le{get messageParams(){return{attribute:this.attributeName,min:this.min,max:this.max}}get min(){return this.attributes[0]}get max(){return this.attributes[1]}check(t){if(typeof t!="number"&&!t)return!0;var r=this.size(t);return r>=this.min&&r<=this.max}}class hg extends Le{check(t){var r=[!0,!1,0,1,"0","1"];return r.indexOf(t)!==-1}}class f4 extends Le{get isAsync(){return!0}check(t){var r=this;return he(function*(){return r.element$.shouldVerify?yield r.element$.Provider.validate(r.element$.Provider.getResponse()):!0})()}}class d4 extends Le{get debounce(){return this.attributes.debounce!==void 0?this.attributes.debounce:this.element$.debounce!==null?this.element$.debounce:1e3}check(t){var r;if(!this.element$.Mask)return this.filled(t);var a=(r=this.element$.Mask.masked.currentMask)===null||r===void 0?void 0:r.isComplete;return a===void 0||this.element$.empty?!0:a}}class mg extends Le{get messageParams(){return{attribute:this.attributeName,other:this.other$.genericName}}get otherPath(){return"".concat(this.element$.path,"_confirmation")}get other$(){return this.form$.el$(tn(this.otherPath,this.element$.path))}init(){this.watchOther()}check(t){return this.filled(this.other$.value)?t==this.other$.value:!0}}var Ef="[ \\t]+",_i="[ \\t]*",Ei="(?:([ap])\\.?m\\.?([\\t ]|$))",An="(2[0-4]|[01]?[0-9])",fl="([01][0-9]|2[0-4])",su="(0?[1-9]|1[0-2])",Ln="([0-5]?[0-9])",bn="([0-5][0-9])",ws="(60|[0-5]?[0-9])",Nn="(60|[0-5][0-9])",q0="(?:\\.([0-9]+))",c4="sunday|monday|tuesday|wednesday|thursday|friday|saturday",v4="sun|mon|tue|wed|thu|fri|sat",gg=c4+"|"+v4+"|weekdays?",p4="first|second|third|fourth|fifth|sixth|seventh|eighth?|ninth|tenth|eleventh|twelfth",N0="next|last|previous|this",R0="(?:second|sec|minute|min|hour|day|fortnight|forthnight|month|year)s?|weeks|"+gg,dl="([0-9]{1,4})",h4="([0-9]{2})",Vr="([0-9]{4})",m4="([+-]?[0-9]{4})",ui="(1[0-2]|0?[0-9])",Si="(0[0-9]|1[0-2])",Ba="(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)",Rn="(0[0-9]|[1-2][0-9]|3[01])",yg="january|february|march|april|may|june|july|august|september|october|november|december",yl="jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec",g4="i[vx]|vi{0,3}|xi{0,2}|i{1,3}",vu="("+yg+"|"+yl+"|"+g4+")",Sf="((?:GMT)?([+-])"+An+":?"+Ln+"?)",y4="\\(?([a-zA-Z]{1,6})\\)?",b4="(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])",A4="(0[1-9]|[1-4][0-9]|5[0-3])",cl=vu+"[ .\\t-]*"+Ba+"[,.stndrh\\t ]*";function Di(e,t){switch(t=t&&t.toLowerCase(),t){case"a":e+=e===12?-12:0;break;case"p":e+=e!==12?12:0;break}return e}function Ci(e){var t=+e;return e.length<4&&t<100&&(t+=t<70?2e3:1900),t}function ia(e){return{jan:0,january:0,i:0,feb:1,february:1,ii:1,mar:2,march:2,iii:2,apr:3,april:3,iv:3,may:4,v:4,jun:5,june:5,vi:5,jul:6,july:6,vii:6,aug:7,august:7,viii:7,sep:8,sept:8,september:8,ix:8,oct:9,october:9,x:9,nov:10,november:10,xi:10,dec:11,december:11,xii:11}[e.toLowerCase()]}function Df(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r={mon:1,monday:1,tue:2,tuesday:2,wed:3,wednesday:3,thu:4,thursday:4,fri:5,friday:5,sat:6,saturday:6,sun:0,sunday:0};return r[e.toLowerCase()]||t}function w4(e){var t={last:-1,previous:-1,this:0,first:1,next:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eight:8,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12},r={this:1},a=e.toLowerCase();return{amount:t[a],behavior:r[a]||0}}function Cf(e,t){var r=/(?:GMT)?([+-])(\d+)(:?)(\d{0,2})/i;if(e=e&&e.match(r),!e)return t;var a=e[1]==="-"?-1:1,n=+e[2],i=+e[4];return!e[4]&&!e[3]&&(i=Math.floor(n%100),n=Math.floor(n/100)),a*(n*60+i)*60}var _4={acdt:37800,acst:34200,addt:-7200,adt:-10800,aedt:39600,aest:36e3,ahdt:-32400,ahst:-36e3,akdt:-28800,akst:-32400,amt:-13840,apt:-10800,ast:-14400,awdt:32400,awst:28800,awt:-10800,bdst:7200,bdt:-36e3,bmt:-14309,bst:3600,cast:34200,cat:7200,cddt:-14400,cdt:-18e3,cemt:10800,cest:7200,cet:3600,cmt:-15408,cpt:-18e3,cst:-21600,cwt:-18e3,chst:36e3,dmt:-1521,eat:10800,eddt:-10800,edt:-14400,eest:10800,eet:7200,emt:-26248,ept:-14400,est:-18e3,ewt:-14400,ffmt:-14660,fmt:-4056,gdt:39600,gmt:0,gst:36e3,hdt:-34200,hkst:32400,hkt:28800,hmt:-19776,hpt:-34200,hst:-36e3,hwt:-34200,iddt:14400,idt:10800,imt:25025,ist:7200,jdt:36e3,jmt:8440,jst:32400,kdt:36e3,kmt:5736,kst:30600,lst:9394,mddt:-18e3,mdst:16279,mdt:-21600,mest:7200,met:3600,mmt:9017,mpt:-21600,msd:14400,msk:10800,mst:-25200,mwt:-21600,nddt:-5400,ndt:-9052,npt:-9e3,nst:-12600,nwt:-9e3,nzdt:46800,nzmt:41400,nzst:43200,pddt:-21600,pdt:-25200,pkst:21600,pkt:18e3,plmt:25590,pmt:-13236,ppmt:-17340,ppt:-25200,pst:-28800,pwt:-25200,qmt:-18840,rmt:5794,sast:7200,sdmt:-16800,sjmt:-20173,smt:-13884,sst:-39600,tbmt:10751,tmt:12344,uct:0,utc:0,wast:7200,wat:3600,wemt:7200,west:3600,wet:0,wib:25200,wita:28800,wit:32400,wmt:5040,yddt:-25200,ydt:-28800,ypt:-28800,yst:-32400,ywt:-28800,a:3600,b:7200,c:10800,d:14400,e:18e3,f:21600,g:25200,h:28800,i:32400,k:36e3,l:39600,m:43200,n:-3600,o:-7200,p:-10800,q:-14400,r:-18e3,s:-21600,t:-25200,u:-28800,v:-32400,w:-36e3,x:-39600,y:-43200,z:0},Fe={yesterday:{regex:/^yesterday/i,name:"yesterday",callback:function(){return this.rd-=1,this.resetTime()}},now:{regex:/^now/i,name:"now"},noon:{regex:/^noon/i,name:"noon",callback:function(){return this.resetTime()&&this.time(12,0,0,0)}},midnightOrToday:{regex:/^(midnight|today)/i,name:"midnight | today",callback:function(){return this.resetTime()}},tomorrow:{regex:/^tomorrow/i,name:"tomorrow",callback:function(){return this.rd+=1,this.resetTime()}},timestamp:{regex:/^@(-?\d+)/i,name:"timestamp",callback:function(t,r){return this.rs+=+r,this.y=1970,this.m=0,this.d=1,this.dates=0,this.resetTime()&&this.zone(0)}},firstOrLastDay:{regex:/^(first|last) day of/i,name:"firstdayof | lastdayof",callback:function(t,r){r.toLowerCase()==="first"?this.firstOrLastDayOfMonth=1:this.firstOrLastDayOfMonth=-1}},backOrFrontOf:{regex:RegExp("^(back|front) of "+An+_i+Ei+"?","i"),name:"backof | frontof",callback:function(t,r,a,n){var i=r.toLowerCase()==="back",u=+a,l=15;return i||(u-=1,l=45),u=Di(u,n),this.resetTime()&&this.time(u,l,0,0)}},mssqltime:{regex:RegExp("^"+su+":"+bn+":"+Nn+"[:.]([0-9]+)"+Ei,"i"),name:"mssqltime",callback:function(t,r,a,n,i,u){return this.time(Di(+r,u),+a,+n,+i.substr(0,3))}},oracledate:{regex:/^(\d{2})-([A-Z]{3})-(\d{2})$/i,name:"d-M-y",callback:function(t,r,a,n){var i={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[a.toUpperCase()];return this.ymd(2e3+parseInt(n,10),i,parseInt(r,10))}},timeLong12:{regex:RegExp("^"+su+"[:.]"+Ln+"[:.]"+Nn+_i+Ei,"i"),name:"timelong12",callback:function(t,r,a,n,i){return this.time(Di(+r,i),+a,+n,0)}},timeShort12:{regex:RegExp("^"+su+"[:.]"+bn+_i+Ei,"i"),name:"timeshort12",callback:function(t,r,a,n){return this.time(Di(+r,n),+a,0,0)}},timeTiny12:{regex:RegExp("^"+su+_i+Ei,"i"),name:"timetiny12",callback:function(t,r,a){return this.time(Di(+r,a),0,0,0)}},soap:{regex:RegExp("^"+Vr+"-"+Si+"-"+Rn+"T"+fl+":"+bn+":"+Nn+q0+Sf+"?","i"),name:"soap",callback:function(t,r,a,n,i,u,l,s,o){return this.ymd(+r,a-1,+n)&&this.time(+i,+u,+l,+s.substr(0,3))&&this.zone(Cf(o))}},wddx:{regex:RegExp("^"+Vr+"-"+ui+"-"+Ba+"T"+An+":"+Ln+":"+ws),name:"wddx",callback:function(t,r,a,n,i,u,l){return this.ymd(+r,a-1,+n)&&this.time(+i,+u,+l,0)}},exif:{regex:RegExp("^"+Vr+":"+Si+":"+Rn+" "+fl+":"+bn+":"+Nn,"i"),name:"exif",callback:function(t,r,a,n,i,u,l){return this.ymd(+r,a-1,+n)&&this.time(+i,+u,+l,0)}},xmlRpc:{regex:RegExp("^"+Vr+Si+Rn+"T"+An+":"+bn+":"+Nn),name:"xmlrpc",callback:function(t,r,a,n,i,u,l){return this.ymd(+r,a-1,+n)&&this.time(+i,+u,+l,0)}},xmlRpcNoColon:{regex:RegExp("^"+Vr+Si+Rn+"[Tt]"+An+bn+Nn),name:"xmlrpcnocolon",callback:function(t,r,a,n,i,u,l){return this.ymd(+r,a-1,+n)&&this.time(+i,+u,+l,0)}},clf:{regex:RegExp("^"+Ba+"/("+yl+")/"+Vr+":"+fl+":"+bn+":"+Nn+Ef+Sf,"i"),name:"clf",callback:function(t,r,a,n,i,u,l,s){return this.ymd(+n,ia(a),+r)&&this.time(+i,+u,+l,0)&&this.zone(Cf(s))}},iso8601long:{regex:RegExp("^t?"+An+"[:.]"+Ln+"[:.]"+ws+q0,"i"),name:"iso8601long",callback:function(t,r,a,n,i){return this.time(+r,+a,+n,+i.substr(0,3))}},dateTextual:{regex:RegExp("^"+vu+"[ .\\t-]*"+Ba+"[,.stndrh\\t ]+"+dl,"i"),name:"datetextual",callback:function(t,r,a,n){return this.ymd(Ci(n),ia(r),+a)}},pointedDate4:{regex:RegExp("^"+Ba+"[.\\t-]"+ui+"[.-]"+Vr),name:"pointeddate4",callback:function(t,r,a,n){return this.ymd(+n,a-1,+r)}},pointedDate2:{regex:RegExp("^"+Ba+"[.\\t]"+ui+"\\."+h4),name:"pointeddate2",callback:function(t,r,a,n){return this.ymd(Ci(n),a-1,+r)}},timeLong24:{regex:RegExp("^t?"+An+"[:.]"+Ln+"[:.]"+ws),name:"timelong24",callback:function(t,r,a,n){return this.time(+r,+a,+n,0)}},dateNoColon:{regex:RegExp("^"+Vr+Si+Rn),name:"datenocolon",callback:function(t,r,a,n){return this.ymd(+r,a-1,+n)}},pgydotd:{regex:RegExp("^"+Vr+"\\.?"+b4),name:"pgydotd",callback:function(t,r,a){return this.ymd(+r,0,+a)}},timeShort24:{regex:RegExp("^t?"+An+"[:.]"+Ln,"i"),name:"timeshort24",callback:function(t,r,a){return this.time(+r,+a,0,0)}},iso8601noColon:{regex:RegExp("^t?"+fl+bn+Nn,"i"),name:"iso8601nocolon",callback:function(t,r,a,n){return this.time(+r,+a,+n,0)}},iso8601dateSlash:{regex:RegExp("^"+Vr+"/"+Si+"/"+Rn+"/"),name:"iso8601dateslash",callback:function(t,r,a,n){return this.ymd(+r,a-1,+n)}},dateSlash:{regex:RegExp("^"+Vr+"/"+ui+"/"+Ba),name:"dateslash",callback:function(t,r,a,n){return this.ymd(+r,a-1,+n)}},american:{regex:RegExp("^"+ui+"/"+Ba+"/"+dl),name:"american",callback:function(t,r,a,n){return this.ymd(Ci(n),r-1,+a)}},americanShort:{regex:RegExp("^"+ui+"/"+Ba),name:"americanshort",callback:function(t,r,a){return this.ymd(this.y,r-1,+a)}},gnuDateShortOrIso8601date2:{regex:RegExp("^"+dl+"-"+ui+"-"+Ba),name:"gnudateshort | iso8601date2",callback:function(t,r,a,n){return this.ymd(Ci(r),a-1,+n)}},iso8601date4:{regex:RegExp("^"+m4+"-"+Si+"-"+Rn),name:"iso8601date4",callback:function(t,r,a,n){return this.ymd(+r,a-1,+n)}},gnuNoColon:{regex:RegExp("^t?"+fl+bn,"i"),name:"gnunocolon",callback:function(t,r,a){switch(this.times){case 0:return this.time(+r,+a,0,this.f);case 1:return this.y=r*100+ +a,this.times++,!0;default:return!1}}},gnuDateShorter:{regex:RegExp("^"+Vr+"-"+ui),name:"gnudateshorter",callback:function(t,r,a){return this.ymd(+r,a-1,1)}},pgTextReverse:{regex:RegExp("^(\\d{3,4}|[4-9]\\d|3[2-9])-("+yl+")-"+Rn,"i"),name:"pgtextreverse",callback:function(t,r,a,n){return this.ymd(Ci(r),ia(a),+n)}},dateFull:{regex:RegExp("^"+Ba+"[ \\t.-]*"+vu+"[ \\t.-]*"+dl,"i"),name:"datefull",callback:function(t,r,a,n){return this.ymd(Ci(n),ia(a),+r)}},dateNoDay:{regex:RegExp("^"+vu+"[ .\\t-]*"+Vr,"i"),name:"datenoday",callback:function(t,r,a){return this.ymd(+a,ia(r),1)}},dateNoDayRev:{regex:RegExp("^"+Vr+"[ .\\t-]*"+vu,"i"),name:"datenodayrev",callback:function(t,r,a){return this.ymd(+r,ia(a),1)}},pgTextShort:{regex:RegExp("^("+yl+")-"+Rn+"-"+dl,"i"),name:"pgtextshort",callback:function(t,r,a,n){return this.ymd(Ci(n),ia(r),+a)}},dateNoYear:{regex:RegExp("^"+cl,"i"),name:"datenoyear",callback:function(t,r,a){return this.ymd(this.y,ia(r),+a)}},dateNoYearRev:{regex:RegExp("^"+Ba+"[ .\\t-]*"+vu,"i"),name:"datenoyearrev",callback:function(t,r,a){return this.ymd(this.y,ia(a),+r)}},isoWeekDay:{regex:RegExp("^"+Vr+"-?W"+A4+"(?:-?([0-7]))?"),name:"isoweekday | isoweek",callback:function(t,r,a,n){if(n=n?+n:1,!this.ymd(+r,0,1))return!1;var i=new Date(this.y,this.m,this.d).getDay();i=0-(i>4?i-7:i),this.rd+=i+(a-1)*7+n}},relativeText:{regex:RegExp("^("+p4+"|"+N0+")"+Ef+"("+R0+")","i"),name:"relativetext",callback:function(t,r,a){var n=w4(r),i=n.amount;switch(a.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=i;break;case"min":case"mins":case"minute":case"minutes":this.ri+=i;break;case"hour":case"hours":this.rh+=i;break;case"day":case"days":this.rd+=i;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=i*14;break;case"week":case"weeks":this.rd+=i*7;break;case"month":case"months":this.rm+=i;break;case"year":case"years":this.ry+=i;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=Df(a,7),this.weekdayBehavior=1,this.rd+=(i>0?i-1:i)*7;break}}},relative:{regex:RegExp("^([+-]*)[ \\t]*(\\d+)"+_i+"("+R0+"|week)","i"),name:"relative",callback:function(t,r,a,n){var i=r.replace(/[^-]/g,"").length,u=+a*Math.pow(-1,i);switch(n.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=u;break;case"min":case"mins":case"minute":case"minutes":this.ri+=u;break;case"hour":case"hours":this.rh+=u;break;case"day":case"days":this.rd+=u;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=u*14;break;case"week":case"weeks":this.rd+=u*7;break;case"month":case"months":this.rm+=u;break;case"year":case"years":this.ry+=u;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=Df(n,7),this.weekdayBehavior=1,this.rd+=(u>0?u-1:u)*7;break}}},dayText:{regex:RegExp("^("+gg+")","i"),name:"daytext",callback:function(t,r){this.resetTime(),this.weekday=Df(r,0),this.weekdayBehavior!==2&&(this.weekdayBehavior=1)}},relativeTextWeek:{regex:RegExp("^("+N0+")"+Ef+"week","i"),name:"relativetextweek",callback:function(t,r){switch(this.weekdayBehavior=2,r.toLowerCase()){case"this":this.rd+=0;break;case"next":this.rd+=7;break;case"last":case"previous":this.rd-=7;break}isNaN(this.weekday)&&(this.weekday=1)}},monthFullOrMonthAbbr:{regex:RegExp("^("+yg+"|"+yl+")","i"),name:"monthfull | monthabbr",callback:function(t,r){return this.ymd(this.y,ia(r),this.d)}},tzCorrection:{regex:RegExp("^"+Sf,"i"),name:"tzcorrection",callback:function(t){return this.zone(Cf(t))}},tzAbbr:{regex:RegExp("^"+y4),name:"tzabbr",callback:function(t,r){var a=_4[r.toLowerCase()];return isNaN(a)?!1:this.zone(a)}},ago:{regex:/^ago/i,name:"ago",callback:function(){this.ry=-this.ry,this.rm=-this.rm,this.rd=-this.rd,this.rh=-this.rh,this.ri=-this.ri,this.rs=-this.rs,this.rf=-this.rf}},year4:{regex:RegExp("^"+Vr),name:"year4",callback:function(t,r){return this.y=+r,!0}},whitespace:{regex:/^[ .,\t]+/,name:"whitespace"},dateShortWithTimeLong:{regex:RegExp("^"+cl+"t?"+An+"[:.]"+Ln+"[:.]"+ws,"i"),name:"dateshortwithtimelong",callback:function(t,r,a,n,i,u){return this.ymd(this.y,ia(r),+a)&&this.time(+n,+i,+u,0)}},dateShortWithTimeLong12:{regex:RegExp("^"+cl+su+"[:.]"+Ln+"[:.]"+Nn+_i+Ei,"i"),name:"dateshortwithtimelong12",callback:function(t,r,a,n,i,u,l){return this.ymd(this.y,ia(r),+a)&&this.time(Di(+n,l),+i,+u,0)}},dateShortWithTimeShort:{regex:RegExp("^"+cl+"t?"+An+"[:.]"+Ln,"i"),name:"dateshortwithtimeshort",callback:function(t,r,a,n,i){return this.ymd(this.y,ia(r),+a)&&this.time(+n,+i,0,0)}},dateShortWithTimeShort12:{regex:RegExp("^"+cl+su+"[:.]"+bn+_i+Ei,"i"),name:"dateshortwithtimeshort12",callback:function(t,r,a,n,i,u){return this.ymd(this.y,ia(r),+a)&&this.time(Di(+n,u),+i,0,0)}}},E4={y:NaN,m:NaN,d:NaN,h:NaN,i:NaN,s:NaN,f:NaN,ry:0,rm:0,rd:0,rh:0,ri:0,rs:0,rf:0,weekday:NaN,weekdayBehavior:0,firstOrLastDayOfMonth:0,z:NaN,dates:0,times:0,zones:0,ymd:function(t,r,a){return this.dates>0?!1:(this.dates++,this.y=t,this.m=r,this.d=a,!0)},time:function(t,r,a,n){return this.times>0?!1:(this.times++,this.h=t,this.i=r,this.s=a,this.f=n,!0)},resetTime:function(){return this.h=0,this.i=0,this.s=0,this.f=0,this.times=0,!0},zone:function(t){return this.zones<=1?(this.zones++,this.z=t,!0):!1},toDate:function(t){switch(this.dates&&!this.times&&(this.h=this.i=this.s=this.f=0),isNaN(this.y)&&(this.y=t.getFullYear()),isNaN(this.m)&&(this.m=t.getMonth()),isNaN(this.d)&&(this.d=t.getDate()),isNaN(this.h)&&(this.h=t.getHours()),isNaN(this.i)&&(this.i=t.getMinutes()),isNaN(this.s)&&(this.s=t.getSeconds()),isNaN(this.f)&&(this.f=t.getMilliseconds()),this.firstOrLastDayOfMonth){case 1:this.d=1;break;case-1:this.d=0,this.m+=1;break}if(!isNaN(this.weekday)){var r=new Date(t.getTime());r.setFullYear(this.y,this.m,this.d),r.setHours(this.h,this.i,this.s,this.f);var a=r.getDay();if(this.weekdayBehavior===2)a===0&&this.weekday!==0&&(this.weekday=-6),this.weekday===0&&a!==0&&(this.weekday=7),this.d-=a,this.d+=this.weekday;else{var n=this.weekday-a;(this.rd<0&&n<0||this.rd>=0&&n<=-this.weekdayBehavior)&&(n+=7),this.weekday>=0?this.d+=n:this.d-=7-(Math.abs(this.weekday)-a),this.weekday=NaN}}this.y+=this.ry,this.m+=this.rm,this.d+=this.rd,this.h+=this.rh,this.i+=this.ri,this.s+=this.rs,this.f+=this.rf,this.ry=this.rm=this.rd=0,this.rh=this.ri=this.rs=this.rf=0;var i=new Date(t.getTime());switch(i.setFullYear(this.y,this.m,this.d),i.setHours(this.h,this.i,this.s,this.f),this.firstOrLastDayOfMonth){case 1:i.setDate(1);break;case-1:i.setMonth(i.getMonth()+1,0);break}return!isNaN(this.z)&&i.getTimezoneOffset()!==this.z&&(i.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),i.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds()-this.z,i.getMilliseconds())),i}},S4=function(t,r){r==null&&(r=Math.floor(Date.now()/1e3));for(var a=[Fe.yesterday,Fe.now,Fe.noon,Fe.midnightOrToday,Fe.tomorrow,Fe.timestamp,Fe.firstOrLastDay,Fe.backOrFrontOf,Fe.timeTiny12,Fe.timeShort12,Fe.timeLong12,Fe.mssqltime,Fe.oracledate,Fe.timeShort24,Fe.timeLong24,Fe.iso8601long,Fe.gnuNoColon,Fe.iso8601noColon,Fe.americanShort,Fe.american,Fe.iso8601date4,Fe.iso8601dateSlash,Fe.dateSlash,Fe.gnuDateShortOrIso8601date2,Fe.gnuDateShorter,Fe.dateFull,Fe.pointedDate4,Fe.pointedDate2,Fe.dateNoDay,Fe.dateNoDayRev,Fe.dateTextual,Fe.dateNoYear,Fe.dateNoYearRev,Fe.dateNoColon,Fe.xmlRpc,Fe.xmlRpcNoColon,Fe.soap,Fe.wddx,Fe.exif,Fe.pgydotd,Fe.isoWeekDay,Fe.pgTextShort,Fe.pgTextReverse,Fe.clf,Fe.year4,Fe.ago,Fe.dayText,Fe.relativeTextWeek,Fe.relativeText,Fe.monthFullOrMonthAbbr,Fe.tzCorrection,Fe.tzAbbr,Fe.dateShortWithTimeShort12,Fe.dateShortWithTimeLong12,Fe.dateShortWithTimeShort,Fe.dateShortWithTimeLong,Fe.relative,Fe.whitespace],n=Object.create(E4);t.length;){for(var i=null,u=null,l=0,s=a.length;l<s;l++){var o=a[l],f=t.match(o.regex);f&&(!i||f[0].length>i[0].length)&&(i=f,u=o)}if(!u||u.callback&&u.callback.apply(n,i)===!1)return!1;t=t.substr(i[0].length),u=null,i=null}return Math.floor(n.toDate(new Date(r*1e3))/1e3)};class bg extends Le{check(t){return!!S4(t)}}class Ag extends Le{get messageParams(){return{attribute:this.attributeName,date:this.date}}get date(){return this.attributes[0]}check(t){return t===this.date}}class wg extends Le{get messageParams(){return{attribute:this.attributeName,format:this.format}}get format(){return this.attributes[0]}check(t){return t&&this.moment(t,this.format).format(this.format)===t}}class _g extends Le{get otherPath(){return this.attributes[0]}get other$(){return this.form$.el$(tn(this.otherPath,this.element$.path))}get messageParams(){return{attribute:this.attributeName,other:this.other$.genericName}}init(){this.watchOther()}check(t){return!this.filled(t)&&!this.filled(this.other$.value)?!0:t!=this.other$.value}}class Eg extends Le{get messageParams(){return{attribute:this.attributeName,digits:this.digits}}get digits(){return this.attributes[0]}check(t){return/^\d+$/.test(t)&&t.toString().length==this.digits}}class Sg extends Le{get messageParams(){return{attribute:this.attributeName,min:this.min,max:this.max}}get min(){return this.attributes[0]}get max(){return this.attributes[1]}check(t){var r=t.toString().length;return/^\d+$/.test(t)&&r>=this.min&&r<=this.max}}class Dg extends Le{get isAsync(){return!0}readImage(t){return he(function*(){var r=new FileReader;return new Promise((a,n)=>{r.onerror=()=>{temporaryFileReader.abort(),n(new DOMException("File cannot be parsed."))},r.onloadend=i=>{a(i.target.result)},r.readAsDataURL(t)})})()}loadImage(t){var r=this;return he(function*(){var a=yield r.readImage(t),n=new Image;return new Promise((i,u)=>{n.onerror=()=>{u(new DOMException("Image could not be loaded."))},n.onload=l=>{i(l.target)},n.src=a})})()}hasAttribute(t){return Object.keys(this.attributes).map(r=>r.toLowerCase()).indexOf(t)!==-1}check(t){var r=this;return he(function*(){if(r.isFile&&!t)return!0;if(!r.isFile||!(t instanceof File))return!1;var a=yield r.loadImage(t);if(r.hasAttribute("min_width")&&a.width<r.attributes.min_width||r.hasAttribute("max_width")&&a.width>r.attributes.max_width||r.hasAttribute("min_height")&&a.height<r.attributes.min_height||r.hasAttribute("max_height")&&a.height>r.attributes.max_height||r.hasAttribute("width")&&a.width!=r.attributes.width||r.hasAttribute("height")&&a.height!=r.attributes.height)return!1;if(r.hasAttribute("ratio")){var n=r.attributes.ratio,i=1/(Math.min(a.width,a.height)+1),u=/\//.test(n)?n.split("/")[0]:n,l=/\//.test(n)?n.split("/")[1]:1;if(Math.abs(u/l-a.width/a.height)>i)return!1}return!0})()}}function D4(e,t){return(e+"").replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+t+"-]","g"),"\\$&")}function C4(e,t,r,a,n){return n(e,function(i,u,l){r=a?(a=!1,i):t(r,i,u,l)}),r}var x4=C4,$4=Rm,O4=Zl,T4=ri,F4=x4,M4=Oe;function k4(e,t,r){var a=M4(e)?$4:F4,n=arguments.length<3;return a(e,T4(t),r,n,O4)}var B4=k4,Cg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Da(t)?B4(t,(a,n,i)=>_n(a,Cg(n,[...r,i])),{}):{[r.join(".")]:t}};class xg extends Le{check(t){var r=this.element$.path,a=r.replace(/\d+(?!\d+)/,"*"),n=r.match(/^[\w-]+/)[0],i={[n]:this.form$.data[n]},u=D4(a,"#").replace("\\*","[^.]+"),l={};return P(Cg(i),(s,o)=>{o!=r&&o.match("^"+u+"$")!==null&&(l[o]=s)}),mi(l).indexOf(t)===-1}}class $g extends Le{check(t){var r=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return r.test(String(t).toLowerCase())}}class Og extends Le{get isAsync(){return!0}get requestParams(){var t={};return P(this.attributes,(r,a)=>{var n=a;if(isNaN(a)||(n=r),n!="debounce"){var i=this.form$.el$(n);t[Br(t).length]=i&&a!=0?i.value:n}}),t}check(t){var r=this;return he(function*(){var a=r.element$.name,n=r.form$.$vueform.config.endpoints.exists,i=typeof n!="function"?n.method:null,u;return typeof n=="function"?u=yield n(t,a,r.requestParams,r.element$,r.form$):(u=yield r.form$.$vueform.services.axios.request({url:n.url,method:i,[i.toLowerCase()==="get"?"params":"data"]:{params:r.requestParams,[a]:t,vueformFieldName:a,value:t,name:a}}),u=u.data),u})()}}class Tg extends Le{check(t){return(!t||t instanceof File)&&this.isFile}}class Fg extends Le{check(t){return this.filled(t)}}class us extends Le{get messageParams(){var t=this.other$.value!=null?this.size(this.other$.value,this.other$):0;return(isNaN(t)||t<0)&&(t=0),{attribute:this.attributeName,value:t}}get otherPath(){return this.attributes[0]}get other$(){return this.form$.el$(tn(this.otherPath,this.element$.path))}init(){this.watchOther()}check(t){var r=this.other$.value;return this.compare(t,r)}compare(t,r){var a=this.size(r,this.other$);return a==0||this.size(t)>a}}class Mg extends us{compare(t,r){var a=this.size(r,this.other$);return a==0||this.size(t)>=a}}class kg extends Le{check(t){if(this.isFile&&!t)return!0;if(!this.isFile||!(t instanceof File)||!t.name)return!1;var r=t.name.split(".").pop();return["jpg","jpeg","png","gif","bmp","svg","webp"].indexOf(r)!==-1}}class Bg extends Le{check(t){return mi(this.attributes).indexOf(Ar(String(t).trim()))!==-1}}class Pg extends Le{get messageParams(){return{attribute:this.attributeName,other:this.other$.genericName}}get other$(){return this.form$.el$(tn(this.otherPath,this.element$.path))}get otherPath(){var t=this.attributes[0].match(/.*(?=\.\*)/);if(t===null)throw new Error("in_array rule's other attribute should end with .*");return t[0]}init(){this.watchOther()}check(t){var r=this.other$.value;return r?r.indexOf(t)!==-1:!1}}class qg extends Le{check(t){var r=Ar(String(t).trim());return r===parseInt(r,10)}}var Ng=function(t){var r=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[1-2][0-9]|3[0-2]))?$/;return r.test(t)};class Rg extends Le{check(t){return Ng(t)}}var Ig=function(t){var r=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*(\/(\d|\d\d|1[0-1]\d|12[0-8]))?$/;return r.test(t)};class Lg extends Le{check(t){return Ig(t)}}class jg extends Le{check(t){return Ng(t)||Ig(t)}}function P4(e){try{JSON.parse(e)}catch{return!1}return!0}class Ug extends Le{check(t){return P4(t)}}class Yg extends us{compare(t,r){var a=this.size(t),n=this.size(r,this.other$);return n==0&&a==0||this.size(t)<n}}class zg extends us{compare(t,r){var a=this.size(t),n=this.size(r,this.other$);return n==0&&a==0||this.size(t)<=n}}class Vg extends Le{get messageParams(){return{attribute:this.attributeName,max:this.max}}get max(){return this.attributes[0]}check(t){return typeof t!="number"&&!t?!0:this.size(t)<=this.max}}class Wg extends Le{get messageParams(){return{attribute:this.attributeName,values:this.accepted.join(", ")}}get accepted(){return Object.values(this.attributes).map(t=>t.toLowerCase())}check(t){if(this.isFile&&!t)return!0;if(!this.isFile||!(t instanceof File)||!t.name)return!1;var r=t.name.split(".").pop();return this.accepted.indexOf(r.toLowerCase())!==-1}}class Hg extends Le{get messageParams(){return{attribute:this.attributeName,values:this.accepted.join(", ")}}get accepted(){return Object.values(this.attributes).map(t=>t.toLowerCase())}check(t){return this.isFile&&!t?!0:!this.isFile||!(t instanceof File)||!t.type?!1:this.accepted.indexOf(t.type.toLowerCase())!==-1}}class Gg extends Le{get messageParams(){return{attribute:this.attributeName,min:this.min}}get min(){return this.attributes[0]}check(t){return typeof t!="number"&&!t?!0:this.size(t)>=this.min}}class Kg extends Le{check(t){return mi(this.attributes).indexOf(t)===-1}}class Zg extends Le{check(t){var r=new RegExp(this.attributes[0].replace(/^\/|\/[^\/]*$/g,""));return!r.test(t)}}class Xg extends Le{check(t){return!0}}class Jg extends Le{check(t){return!isNaN(parseFloat(t))&&isFinite(t)&&!/\s/.test(String(t))&&!String(t).match(/^0x[0-9a-f]+$/i)}}class Qg extends Le{check(t){var r,a=new RegExp(this.attributes[0].replace(/^\/|\/[^\/]*$/g,""),(r=this.attributes[1])!==null&&r!==void 0?r:"");return a.test(t)}}class ey extends Le{check(t){return this.filled(t)}}class ty extends Le{get messageParams(){return{attribute:this.attributeName,other:this.other$.genericName}}get otherPath(){return this.attributes[0]}get other$(){return this.form$.el$(tn(this.otherPath,this.element$.path))}init(){this.watchOther()}check(t){return!this.filled(t)&&!this.filled(this.other$.value)?!0:t==this.other$.value}}class ry extends Le{get messageParams(){return{attribute:this.attributeName,size:this.size_}}get size_(){return this.attributes[0]}check(t){return typeof t!="number"&&!t?!0:this.size(t)==this.size_}}class ay extends Le{check(t){return jo(t)}}class ny extends Le{check(t){try{return Intl.DateTimeFormat(void 0,{timeZone:t}),!0}catch{return!1}}}class iy extends Le{get isAsync(){return!0}get requestParams(){var t={};return P(this.attributes,(r,a)=>{var n=a;if(isNaN(a)||(n=r),n!="debounce"){var i=this.form$.el$(n);t[Br(t).length]=i&&a!=0?i.value:n}}),t}check(t){var r=this;return he(function*(){var a=r.element$.name,n=r.form$.$vueform.config.endpoints.unique,i=typeof n!="function"?n.method:null,u;return typeof n=="function"?u=yield n(t,a,r.requestParams,r.element$,r.form$):(u=yield r.form$.$vueform.services.axios.request({url:n.url,method:i,[i.toLowerCase()==="get"?"params":"data"]:{params:r.requestParams,name:a,value:t}}),u=u.data),u})()}}class uy extends Le{check(t){var r=new RegExp("^(?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");return r.test(t)}}class ly extends Le{check(t){var r=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i;return r.test(t)}}var q4={accepted:ig,active_url:ug,after:is,after_or_equal:lg,alpha:sg,alpha_dash:og,alpha_num:fg,array:dg,before:cg,before_or_equal:vg,between:pg,boolean:hg,confirmed:mg,date:bg,date_equals:Ag,date_format:wg,different:_g,digits:Eg,digits_between:Sg,dimensions:Dg,distinct:xg,email:$g,exists:Og,file:Tg,filled:Fg,gt:us,gte:Mg,image:kg,in:Bg,in_array:Pg,integer:qg,ip:jg,ipv4:Rg,ipv6:Lg,json:Ug,lt:Yg,lte:zg,max:Vg,mimes:Wg,mimetypes:Hg,min:Gg,not_in:Kg,not_regex:Zg,nullable:Xg,numeric:Jg,regex:Qg,required:ey,same:ty,size:ry,string:ay,timezone:ny,unique:iy,url:uy,uuid:ly},N4=Object.freeze({__proto__:null,accepted:ig,active_url:ug,after:is,after_or_equal:lg,alpha:sg,alpha_dash:og,alpha_num:fg,array:dg,before:cg,before_or_equal:vg,between:pg,boolean:hg,captcha:f4,completed:d4,confirmed:mg,date:bg,date_equals:Ag,date_format:wg,different:_g,digits:Eg,digits_between:Sg,dimensions:Dg,distinct:xg,email:$g,exists:Og,file:Tg,filled:Fg,gt:us,gte:Mg,image:kg,in_:Bg,in_array:Pg,integer:qg,ip:jg,ipv4:Rg,ipv6:Lg,json:Ug,lt:Yg,lte:zg,max:Vg,mimes:Wg,mimetypes:Hg,min:Gg,not_in:Kg,not_regex:Zg,nullable:Xg,numeric:Jg,regex:Qg,required:ey,same:ty,size:ry,string:ay,timezone:ny,unique:iy,url:uy,uuid:ly,default:q4}),R4={factory:o4,rules:{}},I4=No,L4=Hu,j4=ac,U4=Oe;function Y4(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return I4(U4(r)?j4(r):[r],L4(t,1))}var ro=Y4;function z4(e){return e&&e.length?e[0]:void 0}var Cu=z4;class V4{constructor(t){this.baseErrors=t,this.prepends={errors:[],messages:[]},this.appends={errors:[],messages:[]}}get errors(){return ro(this.prepends.errors,this.baseErrors,this.appends.errors)}get messages(){return ro(this.prepends.messages,this.appends.messages)}get error(){return Cu(this.errors)}get message(){return Cu(this.messages)}prepend(t,r){r===void 0&&(r="error"),this.prepends[r=="error"?"errors":"messages"].unshift(t)}append(t,r){r===void 0&&(r="error"),this.appends[r=="error"?"errors":"messages"].push(t)}remove(t,r){r===void 0&&(r="any"),["any","error"].indexOf(r)!==-1&&(P(this.prepends.errors,(a,n)=>{a==t&&this.rm("prepends","errors",n)}),P(this.appends.errors,(a,n)=>{a==t&&this.rm("appends","errors",n)})),["any","message"].indexOf(r)!==-1&&(P(this.prepends.messages,(a,n)=>{a==t&&this.rm("prepends","messages",n)}),P(this.appends.messages,(a,n)=>{a==t&&this.rm("appends","messages",n)}))}rm(t,r,a){this[t][r].splice(a,1)}clear(t){t===void 0&&(t="all"),t=="all"?(this.prepends={errors:[],messages:[]},this.appends={errors:[],messages:[]}):(this.prepends[t]=[],this.appends[t]=[])}clearPrepended(t){t===void 0&&(t="all"),t=="all"?this.prepends={errors:[],messages:[]}:this.prepends[t]=[]}clearAppended(t){t===void 0&&(t="all"),t=="all"?this.appends={errors:[],messages:[]}:this.appends[t]=[]}}var Dl=new Map;function W4(e){var t=Dl.get(e);t&&t.destroy()}function H4(e){var t=Dl.get(e);t&&t.update()}var bl=null;typeof window>"u"?((bl=function(e){return e}).destroy=function(e){return e},bl.update=function(e){return e}):((bl=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(r){return(function(a){if(a&&a.nodeName&&a.nodeName==="TEXTAREA"&&!Dl.has(a)){var n,i=null,u=window.getComputedStyle(a),l=(n=a.value,function(){o({testForHeightReduction:n===""||!a.value.startsWith(n),restoreTextAlign:null}),n=a.value}),s=(function(d){a.removeEventListener("autosize:destroy",s),a.removeEventListener("autosize:update",f),a.removeEventListener("input",l),window.removeEventListener("resize",f),Object.keys(d).forEach(function(c){return a.style[c]=d[c]}),Dl.delete(a)}).bind(a,{height:a.style.height,resize:a.style.resize,textAlign:a.style.textAlign,overflowY:a.style.overflowY,overflowX:a.style.overflowX,wordWrap:a.style.wordWrap});a.addEventListener("autosize:destroy",s),a.addEventListener("autosize:update",f),a.addEventListener("input",l),window.addEventListener("resize",f),a.style.overflowX="hidden",a.style.wordWrap="break-word",Dl.set(a,{destroy:s,update:f}),f()}function o(d){var c,v,p=d.restoreTextAlign,m=p===void 0?null:p,g=d.testForHeightReduction,A=g===void 0||g,y=u.overflowY;if(a.scrollHeight!==0&&(u.resize==="vertical"?a.style.resize="none":u.resize==="both"&&(a.style.resize="horizontal"),A&&(c=(function(_){for(var C=[];_&&_.parentNode&&_.parentNode instanceof Element;)_.parentNode.scrollTop&&C.push([_.parentNode,_.parentNode.scrollTop]),_=_.parentNode;return function(){return C.forEach(function(T){var S=T[0],D=T[1];S.style.scrollBehavior="auto",S.scrollTop=D,S.style.scrollBehavior=null})}})(a),a.style.height=""),v=u.boxSizing==="content-box"?a.scrollHeight-(parseFloat(u.paddingTop)+parseFloat(u.paddingBottom)):a.scrollHeight+parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth),u.maxHeight!=="none"&&v>parseFloat(u.maxHeight)?(u.overflowY==="hidden"&&(a.style.overflow="scroll"),v=parseFloat(u.maxHeight)):u.overflowY!=="hidden"&&(a.style.overflow="hidden"),a.style.height=v+"px",m&&(a.style.textAlign=m),c&&c(),i!==v&&(a.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=v),y!==u.overflow&&!m)){var b=u.textAlign;u.overflow==="hidden"&&(a.style.textAlign=b==="start"?"end":"start"),o({restoreTextAlign:b,testForHeightReduction:!0})}}function f(){o({testForHeightReduction:!0,restoreTextAlign:null})}})(r)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],W4),e},bl.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],H4),e});var G4=bl;class K4{constructor(){this.autocomplete=null,this.autocompleteListener=null,this.options={}}init(t,r,a){window.google===void 0||window.google.maps===void 0||window.google.maps.places===void 0||window.google.maps.places.Autocomplete,this.options=a,this.autocomplete=new window.google.maps.places.Autocomplete(t,a),this.autocompleteListener=this.autocomplete.addListener("place_changed",()=>{var n=this.autocomplete.getPlace();r(this.formatValue(n),n)})}destroy(){window.google.maps.event.removeListener(this.autocompleteListener),window.google.maps.event.clearInstanceListeners(this.autocomplete);var t=document.querySelector(".pac-container");t&&t.remove()}formatValue(t){if(!zt(t))return t;var r=t.address_components,a=this.addressComponent(r,"street"),n=this.addressComponent(r,"street_number"),i=null;return a!==null&&(i=a),n!==null&&(i+=(a!==null?" ":"")+n),{country:this.addressComponent(r,"country"),country_code:this.addressComponent(r,"country_code"),state:this.addressComponent(r,"state"),state_code:this.addressComponent(r,"state_code"),city:this.addressComponent(r,"city"),zip:this.addressComponent(r,"zip"),address:i,formatted_address:t.formatted_address||null,lat:t.geometry.location.lat()||null,lng:t.geometry.location.lng()||null}}addressComponent(t,r){var a={country:{field:"country",type:"long_name"},country_code:{field:"country",type:"short_name"},state:{field:"administrative_area_level_1",type:"long_name"},state_code:{field:"administrative_area_level_1",type:"short_name"},city:{field:"locality",type:"long_name"},zip:{field:"postal_code",type:"long_name"},street:{field:"route",type:"long_name"},street_number:{field:"street_number",type:"long_name"}},n=null;return P(t,i=>{if(i.types.indexOf(a[r].field)!==-1){if(["state","state_code"].indexOf(r)!==-1&&this.addressComponent(t,"country_code")!="US")return;n=i[a[r].type]||null}}),n}}class Z4{constructor(){this.places=null,this.options={}}init(t,r,a){if(window.places===void 0)throw new Error("Algolia Places API missing. Please include script in your project from https://community.algolia.com/places/documentation.html#cdn-script or install via npm and set to `window.places`.");this.options=a,this.places=window.places(Object.assign({},{container:t},a)),this.places.on("change",n=>{r(this.formatValue(n.suggestion),n.suggestion)})}destroy(){this.places.destroy()}formatValue(t){return zt(t)?{country:t.country,country_code:t.countryCode?t.countryCode.toUpperCase():null,state:t.countryCode=="us"?t.administrative:null,state_code:t.countryCode=="us"?this.stateCode(t.administrative.toLowerCase()):null,city:t.city,zip:t.postcode,address:t.name,formatted_address:t.value,lat:t.latlng.lat,lng:t.latlng.lng}:t}stateCode(t){var r={AL:"alabama",AK:"alaska",AZ:"arizona",AR:"arkansas",CA:"california",CO:"colorado",CT:"connecticut",DE:"delaware",DC:"district of columbia",FL:"florida",GA:"georgia",HI:"hawaii",ID:"idaho",IL:"illinois",IN:"indiana",IA:"iowa",KS:"kansas",KY:"kentucky",LA:"louisiana",ME:"maine",MD:"maryland",MA:"massachusetts",MI:"michigan",MN:"minnesota",MS:"mississippi",MO:"missouri",MT:"montana",NE:"nebraska",NV:"nevada",NH:"new hampshire",NJ:"new Jersey",NM:"new Mexico",NY:"new york",NC:"north carolina",ND:"north dakota",OH:"ohio",OK:"oklahoma",OR:"oregon",PA:"pennsylvania",RI:"rhode Island",SC:"south carolina",SD:"south dakota",TN:"tennessee",TX:"texas",UT:"utah",VT:"vermont",VA:"virginia",WA:"washington",WV:"west virginia",WI:"wisconsin",WY:"wyoming"};return mi(r).indexOf(t)===-1?null:Br(r)[mi(r).indexOf(t)]}}var X4={google:K4,algolia:Z4},J4=(e,t,r,a)=>{var n=()=>e(r,a),i=o=>{var{conditionPath:f,operator:d,expected:c}=l(o),v=r.el$(f),p=!1;return v&&t&&P(v.conditions,m=>{Array.isArray(m)&&m[0]==t&&(p=!0)}),!v||!p&&!v.available?!1:s(v.value,c,d)},u=o=>(!/^{/.test(o)&&!/}$/.test(o)&&(o="{".concat(o,"}")),r.resolveExpression(o,a?.dataPath)==="true"),l=o=>({conditionPath:t?tn(o[0],t):o[0],operator:o.length==3||["empty","not_empty","today"].indexOf(o[1])!==-1?o[1]:"==",expected:o.length==3?o[2]:["empty","not_empty","today"].indexOf(o[1])===-1?o[1]:!0}),s=(o,f,d)=>ng(o,d,f,a,r);if(typeof e=="string")return u(e);if(typeof e=="function")return n();if(Oe(e)&&Oe(e[0]))return e.reduce((o,f)=>o||(Oe(f[0])?f.reduce((d,c)=>d&&i(c),!0):i(f)),!1);if(Oe(e))return i(e);throw new Error("Condition must be a function or an array")},Q4={check:J4};class e9{constructor(t){this.locales=t.locales,this.locale=t.locale,this.fallbackLocale=t.fallbackLocale}$t(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=$r(this.locales[this.locale],t)||t;return a===t&&(a=$r(this.locales[this.fallbackLocale],t)||t),P(r,(n,i)=>{a=a.replace(":"+i,n)}),P(r,(n,i)=>{a=a.replace("{"+i+"}",n)}),a}}class t9{constructor(t,r,a,n){ta(this,"defaultBreakpoint","default"),this.presets=n,this.configPresetColumns=this.serialize(this.columnsFromPresets(t.configPresetColumns)||{}),this.configColumns=this.serialize(t.configColumns||{}),this.formPresetColumns=this.serialize(this.columnsFromPresets(t.formPresetColumns)||{}),this.formColumns=this.serialize(t.formColumns||{}),this.presetColumns=this.serialize(this.columnsFromPresets(t.elementPresetColumns)||{}),this.columns=this.serialize(t.elementColumns||{}),this.hasLabel=r,this.getClass=a,this.cols=this.getCols()}get classes(){return{container:this.getClasses("container"),label:this.getClasses("label"),innerContainer:this.getClasses("innerContainer"),wrapper:this.getClasses("wrapper")}}serialize(t){if(["number","string"].indexOf(typeof t)!==-1)return{[this.defaultBreakpoint]:{container:t}};if(typeof t=="object"&&["container","label","wrapper"].indexOf(Object.keys(t)[0])!==-1){var r={};return P(t,(n,i)=>{["number","string"].indexOf(typeof n)!==-1?(r[this.defaultBreakpoint]===void 0&&(r[this.defaultBreakpoint]={}),r[this.defaultBreakpoint][i]=n):P(n,(u,l)=>{r[l]===void 0&&(r[l]={}),r[l][i]=u})}),r}else{var a={};return P(t,(n,i)=>{["number","string"].indexOf(typeof n)!==-1?(a[i]===void 0&&(a[i]={}),a[i].container=n):a[i]=n}),a}}columnsFromPresets(t){var r;return P(t,a=>{var n=this.presets[a];!n||!n.columns||(r=n.columns)}),r}getNullClass(){return[this.getClass(this.defaultBreakpoint,0)]}getClasses(t){var r=[];return Object.keys(this.cols).forEach(a=>{var n;t==="innerContainer"?(n=this.cols[a].label,n=n>=12||!this.hasLabel?12:12-n):(n=this.cols[a][t],t==="label"&&!this.hasLabel&&(n=0)),n!==void 0&&!isNaN(n)&&r.push(this.getClass(a,n))}),r}getCols(){return _n({},{[this.defaultBreakpoint]:{container:12,label:12,wrapper:12}},this.configPresetColumns||{},this.configColumns||{},this.formPresetColumns||{},this.formColumns||{},this.presetColumns||{},this.columns||{})}}/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:sy,setPrototypeOf:I0,isFrozen:r9,getPrototypeOf:a9,getOwnPropertyDescriptor:n9}=Object;let{freeze:ra,seal:La,create:gd}=Object,{apply:yd,construct:bd}=typeof Reflect<"u"&&Reflect;ra||(ra=function(t){return t});La||(La=function(t){return t});yd||(yd=function(t,r){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i];return t.apply(r,n)});bd||(bd=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return new t(...a)});const _s=aa(Array.prototype.forEach),i9=aa(Array.prototype.lastIndexOf),L0=aa(Array.prototype.pop),vl=aa(Array.prototype.push),u9=aa(Array.prototype.splice),Rs=aa(String.prototype.toLowerCase),xf=aa(String.prototype.toString),$f=aa(String.prototype.match),pl=aa(String.prototype.replace),l9=aa(String.prototype.indexOf),s9=aa(String.prototype.trim),Za=aa(Object.prototype.hasOwnProperty),Jr=aa(RegExp.prototype.test),hl=o9(TypeError);function aa(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return yd(e,t,a)}}function o9(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return bd(e,r)}}function it(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rs;I0&&I0(e,null);let a=t.length;for(;a--;){let n=t[a];if(typeof n=="string"){const i=r(n);i!==n&&(r9(t)||(t[a]=i),n=i)}e[n]=!0}return e}function f9(e){for(let t=0;t<e.length;t++)Za(e,t)||(e[t]=null);return e}function jn(e){const t=gd(null);for(const[r,a]of sy(e))Za(e,r)&&(Array.isArray(a)?t[r]=f9(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=jn(a):t[r]=a);return t}function ml(e,t){for(;e!==null;){const a=n9(e,t);if(a){if(a.get)return aa(a.get);if(typeof a.value=="function")return aa(a.value)}e=a9(e)}function r(){return null}return r}const j0=ra(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Of=ra(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tf=ra(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),d9=ra(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ff=ra(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),c9=ra(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U0=ra(["#text"]),Y0=ra(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Mf=ra(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z0=ra(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Es=ra(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),v9=La(/\{\{[\w\W]*|[\w\W]*\}\}/gm),p9=La(/<%[\w\W]*|[\w\W]*%>/gm),h9=La(/\$\{[\w\W]*/gm),m9=La(/^data-[\-\w.\u00B7-\uFFFF]+$/),g9=La(/^aria-[\-\w]+$/),oy=La(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),y9=La(/^(?:\w+script|data):/i),b9=La(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fy=La(/^html$/i),A9=La(/^[a-z][.\w]*(-[.\w]+)+$/i);var V0=Object.freeze({__proto__:null,ARIA_ATTR:g9,ATTR_WHITESPACE:b9,CUSTOM_ELEMENT:A9,DATA_ATTR:m9,DOCTYPE_NAME:fy,ERB_EXPR:p9,IS_ALLOWED_URI:oy,IS_SCRIPT_OR_DATA:y9,MUSTACHE_EXPR:v9,TMPLIT_EXPR:h9});const gl={element:1,text:3,progressingInstruction:7,comment:8,document:9},w9=function(){return typeof window>"u"?null:window},_9=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(a=r.getAttribute(n));const i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}},W0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function dy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w9();const t=xe=>dy(xe);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==gl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const a=r,n=a.currentScript,{DocumentFragment:i,HTMLTemplateElement:u,Node:l,Element:s,NodeFilter:o,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:c,trustedTypes:v}=e,p=s.prototype,m=ml(p,"cloneNode"),g=ml(p,"remove"),A=ml(p,"nextSibling"),y=ml(p,"childNodes"),b=ml(p,"parentNode");if(typeof u=="function"){const xe=r.createElement("template");xe.content&&xe.content.ownerDocument&&(r=xe.content.ownerDocument)}let _,C="";const{implementation:T,createNodeIterator:S,createDocumentFragment:D,getElementsByTagName:x}=r,{importNode:F}=a;let k=W0();t.isSupported=typeof sy=="function"&&typeof b=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:Y,TMPLIT_EXPR:H,DATA_ATTR:N,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:K}=V0;let{IS_ALLOWED_URI:Z}=V0,W=null;const ee=it({},[...j0,...Of,...Tf,...Ff,...U0]);let se=null;const Me=it({},[...Y0,...Mf,...z0,...Es]);let z=Object.seal(gd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,X=null;const re=Object.seal(gd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ne=!0,ge=!0,ke=!1,je=!0,oe=!1,be=!0,Ie=!1,ce=!1,te=!1,J=!1,pe=!1,le=!1,_e=!0,Te=!1;const nr="user-content-";let jr=!0,hr=!1,Ue={},ir=null;const It=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Wa=null;const fn=it({},["audio","video","img","source","image","track"]);let kt=null;const xa=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$a="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let Yr=at,ha=!1,Ha=null;const Oa=it({},[$a,Ur,at],xf);let zr=it({},["mi","mo","mn","ms","mtext"]),Qe=it({},["annotation-xml"]);const ma=it({},["title","style","font","a","script"]);let Mr=null;const w=["application/xhtml+xml","text/html"],E="text/html";let O=null,q=null;const ie=r.createElement("form"),de=function($){return $ instanceof RegExp||$ instanceof Function},Re=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(q&&q===$)){if((!$||typeof $!="object")&&($={}),$=jn($),Mr=w.indexOf($.PARSER_MEDIA_TYPE)===-1?E:$.PARSER_MEDIA_TYPE,O=Mr==="application/xhtml+xml"?xf:Rs,W=Za($,"ALLOWED_TAGS")?it({},$.ALLOWED_TAGS,O):ee,se=Za($,"ALLOWED_ATTR")?it({},$.ALLOWED_ATTR,O):Me,Ha=Za($,"ALLOWED_NAMESPACES")?it({},$.ALLOWED_NAMESPACES,xf):Oa,kt=Za($,"ADD_URI_SAFE_ATTR")?it(jn(xa),$.ADD_URI_SAFE_ATTR,O):xa,Wa=Za($,"ADD_DATA_URI_TAGS")?it(jn(fn),$.ADD_DATA_URI_TAGS,O):fn,ir=Za($,"FORBID_CONTENTS")?it({},$.FORBID_CONTENTS,O):It,G=Za($,"FORBID_TAGS")?it({},$.FORBID_TAGS,O):jn({}),X=Za($,"FORBID_ATTR")?it({},$.FORBID_ATTR,O):jn({}),Ue=Za($,"USE_PROFILES")?$.USE_PROFILES:!1,Ne=$.ALLOW_ARIA_ATTR!==!1,ge=$.ALLOW_DATA_ATTR!==!1,ke=$.ALLOW_UNKNOWN_PROTOCOLS||!1,je=$.ALLOW_SELF_CLOSE_IN_ATTR!==!1,oe=$.SAFE_FOR_TEMPLATES||!1,be=$.SAFE_FOR_XML!==!1,Ie=$.WHOLE_DOCUMENT||!1,J=$.RETURN_DOM||!1,pe=$.RETURN_DOM_FRAGMENT||!1,le=$.RETURN_TRUSTED_TYPE||!1,te=$.FORCE_BODY||!1,_e=$.SANITIZE_DOM!==!1,Te=$.SANITIZE_NAMED_PROPS||!1,jr=$.KEEP_CONTENT!==!1,hr=$.IN_PLACE||!1,Z=$.ALLOWED_URI_REGEXP||oy,Yr=$.NAMESPACE||at,zr=$.MATHML_TEXT_INTEGRATION_POINTS||zr,Qe=$.HTML_INTEGRATION_POINTS||Qe,z=$.CUSTOM_ELEMENT_HANDLING||{},$.CUSTOM_ELEMENT_HANDLING&&de($.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=$.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$.CUSTOM_ELEMENT_HANDLING&&de($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=$.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$.CUSTOM_ELEMENT_HANDLING&&typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=$.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),oe&&(ge=!1),pe&&(J=!0),Ue&&(W=it({},U0),se=[],Ue.html===!0&&(it(W,j0),it(se,Y0)),Ue.svg===!0&&(it(W,Of),it(se,Mf),it(se,Es)),Ue.svgFilters===!0&&(it(W,Tf),it(se,Mf),it(se,Es)),Ue.mathMl===!0&&(it(W,Ff),it(se,z0),it(se,Es))),$.ADD_TAGS&&(typeof $.ADD_TAGS=="function"?re.tagCheck=$.ADD_TAGS:(W===ee&&(W=jn(W)),it(W,$.ADD_TAGS,O))),$.ADD_ATTR&&(typeof $.ADD_ATTR=="function"?re.attributeCheck=$.ADD_ATTR:(se===Me&&(se=jn(se)),it(se,$.ADD_ATTR,O))),$.ADD_URI_SAFE_ATTR&&it(kt,$.ADD_URI_SAFE_ATTR,O),$.FORBID_CONTENTS&&(ir===It&&(ir=jn(ir)),it(ir,$.FORBID_CONTENTS,O)),jr&&(W["#text"]=!0),Ie&&it(W,["html","head","body"]),W.table&&(it(W,["tbody"]),delete G.tbody),$.TRUSTED_TYPES_POLICY){if(typeof $.TRUSTED_TYPES_POLICY.createHTML!="function")throw hl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw hl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=$.TRUSTED_TYPES_POLICY,C=_.createHTML("")}else _===void 0&&(_=_9(v,n)),_!==null&&typeof C=="string"&&(C=_.createHTML(""));ra&&ra($),q=$}},me=it({},[...Of,...Tf,...d9]),We=it({},[...Ff,...c9]),we=function($){let ae=b($);(!ae||!ae.tagName)&&(ae={namespaceURI:Yr,tagName:"template"});const Ee=Rs($.tagName),ft=Rs(ae.tagName);return Ha[$.namespaceURI]?$.namespaceURI===Ur?ae.namespaceURI===at?Ee==="svg":ae.namespaceURI===$a?Ee==="svg"&&(ft==="annotation-xml"||zr[ft]):!!me[Ee]:$.namespaceURI===$a?ae.namespaceURI===at?Ee==="math":ae.namespaceURI===Ur?Ee==="math"&&Qe[ft]:!!We[Ee]:$.namespaceURI===at?ae.namespaceURI===Ur&&!Qe[ft]||ae.namespaceURI===$a&&!zr[ft]?!1:!We[Ee]&&(ma[Ee]||!me[Ee]):!!(Mr==="application/xhtml+xml"&&Ha[$.namespaceURI]):!1},Ce=function($){vl(t.removed,{element:$});try{b($).removeChild($)}catch{g($)}},Xe=function($,ae){try{vl(t.removed,{attribute:ae.getAttributeNode($),from:ae})}catch{vl(t.removed,{attribute:null,from:ae})}if(ae.removeAttribute($),$==="is")if(J||pe)try{Ce(ae)}catch{}else try{ae.setAttribute($,"")}catch{}},_r=function($){let ae=null,Ee=null;if(te)$="<remove></remove>"+$;else{const Ht=$f($,/^[\r\n\t ]+/);Ee=Ht&&Ht[0]}Mr==="application/xhtml+xml"&&Yr===at&&($='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$+"</body></html>");const ft=_?_.createHTML($):$;if(Yr===at)try{ae=new c().parseFromString(ft,Mr)}catch{}if(!ae||!ae.documentElement){ae=T.createDocument(Yr,"template",null);try{ae.documentElement.innerHTML=ha?C:ft}catch{}}const cr=ae.body||ae.documentElement;return $&&Ee&&cr.insertBefore(r.createTextNode(Ee),cr.childNodes[0]||null),Yr===at?x.call(ae,Ie?"html":"body")[0]:Ie?ae.documentElement:cr},mr=function($){return S.call($.ownerDocument||$,$,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},mt=function($){return $ instanceof d&&(typeof $.nodeName!="string"||typeof $.textContent!="string"||typeof $.removeChild!="function"||!($.attributes instanceof f)||typeof $.removeAttribute!="function"||typeof $.setAttribute!="function"||typeof $.namespaceURI!="string"||typeof $.insertBefore!="function"||typeof $.hasChildNodes!="function")},Ge=function($){return typeof l=="function"&&$ instanceof l};function qr(xe,$,ae){_s(xe,Ee=>{Ee.call(t,$,ae,q)})}const dn=function($){let ae=null;if(qr(k.beforeSanitizeElements,$,null),mt($))return Ce($),!0;const Ee=O($.nodeName);if(qr(k.uponSanitizeElement,$,{tagName:Ee,allowedTags:W}),be&&$.hasChildNodes()&&!Ge($.firstElementChild)&&Jr(/<[/\w!]/g,$.innerHTML)&&Jr(/<[/\w!]/g,$.textContent)||$.nodeType===gl.progressingInstruction||be&&$.nodeType===gl.comment&&Jr(/<[/\w]/g,$.data))return Ce($),!0;if(!(re.tagCheck instanceof Function&&re.tagCheck(Ee))&&(!W[Ee]||G[Ee])){if(!G[Ee]&&$e(Ee)&&(z.tagNameCheck instanceof RegExp&&Jr(z.tagNameCheck,Ee)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Ee)))return!1;if(jr&&!ir[Ee]){const ft=b($)||$.parentNode,cr=y($)||$.childNodes;if(cr&&ft){const Ht=cr.length;for(let ur=Ht-1;ur>=0;--ur){const Nr=m(cr[ur],!0);Nr.__removalCount=($.__removalCount||0)+1,ft.insertBefore(Nr,A($))}}}return Ce($),!0}return $ instanceof s&&!we($)||(Ee==="noscript"||Ee==="noembed"||Ee==="noframes")&&Jr(/<\/no(script|embed|frames)/i,$.innerHTML)?(Ce($),!0):(oe&&$.nodeType===gl.text&&(ae=$.textContent,_s([U,Y,H],ft=>{ae=pl(ae,ft," ")}),$.textContent!==ae&&(vl(t.removed,{element:$.cloneNode()}),$.textContent=ae)),qr(k.afterSanitizeElements,$,null),!1)},Ta=function($,ae,Ee){if(_e&&(ae==="id"||ae==="name")&&(Ee in r||Ee in ie))return!1;if(!(ge&&!X[ae]&&Jr(N,ae))){if(!(Ne&&Jr(I,ae))){if(!(re.attributeCheck instanceof Function&&re.attributeCheck(ae,$))){if(!se[ae]||X[ae]){if(!($e($)&&(z.tagNameCheck instanceof RegExp&&Jr(z.tagNameCheck,$)||z.tagNameCheck instanceof Function&&z.tagNameCheck($))&&(z.attributeNameCheck instanceof RegExp&&Jr(z.attributeNameCheck,ae)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(ae,$))||ae==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Jr(z.tagNameCheck,Ee)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Ee))))return!1}else if(!kt[ae]){if(!Jr(Z,pl(Ee,M,""))){if(!((ae==="src"||ae==="xlink:href"||ae==="href")&&$!=="script"&&l9(Ee,"data:")===0&&Wa[$])){if(!(ke&&!Jr(j,pl(Ee,M,"")))){if(Ee)return!1}}}}}}}return!0},$e=function($){return $!=="annotation-xml"&&$f($,K)},cn=function($){qr(k.beforeSanitizeAttributes,$,null);const{attributes:ae}=$;if(!ae||mt($))return;const Ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:se,forceKeepAttr:void 0};let ft=ae.length;for(;ft--;){const cr=ae[ft],{name:Ht,namespaceURI:ur,value:Nr}=cr,Fa=O(Ht),Fn=Nr;let vr=Ht==="value"?Fn:s9(Fn);if(Ee.attrName=Fa,Ee.attrValue=vr,Ee.keepAttr=!0,Ee.forceKeepAttr=void 0,qr(k.uponSanitizeAttribute,$,Ee),vr=Ee.attrValue,Te&&(Fa==="id"||Fa==="name")&&(Xe(Ht,$),vr=nr+vr),be&&Jr(/((--!?|])>)|<\/(style|title|textarea)/i,vr)){Xe(Ht,$);continue}if(Fa==="attributename"&&$f(vr,"href")){Xe(Ht,$);continue}if(Ee.forceKeepAttr)continue;if(!Ee.keepAttr){Xe(Ht,$);continue}if(!je&&Jr(/\/>/i,vr)){Xe(Ht,$);continue}oe&&_s([U,Y,H],kn=>{vr=pl(vr,kn," ")});const Mn=O($.nodeName);if(!Ta(Mn,Fa,vr)){Xe(Ht,$);continue}if(_&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ur)switch(v.getAttributeType(Mn,Fa)){case"TrustedHTML":{vr=_.createHTML(vr);break}case"TrustedScriptURL":{vr=_.createScriptURL(vr);break}}if(vr!==Fn)try{ur?$.setAttributeNS(ur,Ht,vr):$.setAttribute(Ht,vr),mt($)?Ce($):L0(t.removed)}catch{Xe(Ht,$)}}qr(k.afterSanitizeAttributes,$,null)},Xr=function xe($){let ae=null;const Ee=mr($);for(qr(k.beforeSanitizeShadowDOM,$,null);ae=Ee.nextNode();)qr(k.uponSanitizeShadowNode,ae,null),dn(ae),cn(ae),ae.content instanceof i&&xe(ae.content);qr(k.afterSanitizeShadowDOM,$,null)};return t.sanitize=function(xe){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=null,Ee=null,ft=null,cr=null;if(ha=!xe,ha&&(xe="<!-->"),typeof xe!="string"&&!Ge(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw hl("dirty is not a string, aborting")}else throw hl("toString is not a function");if(!t.isSupported)return xe;if(ce||Re($),t.removed=[],typeof xe=="string"&&(hr=!1),hr){if(xe.nodeName){const Nr=O(xe.nodeName);if(!W[Nr]||G[Nr])throw hl("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof l)ae=_r("<!---->"),Ee=ae.ownerDocument.importNode(xe,!0),Ee.nodeType===gl.element&&Ee.nodeName==="BODY"||Ee.nodeName==="HTML"?ae=Ee:ae.appendChild(Ee);else{if(!J&&!oe&&!Ie&&xe.indexOf("<")===-1)return _&&le?_.createHTML(xe):xe;if(ae=_r(xe),!ae)return J?null:le?C:""}ae&&te&&Ce(ae.firstChild);const Ht=mr(hr?xe:ae);for(;ft=Ht.nextNode();)dn(ft),cn(ft),ft.content instanceof i&&Xr(ft.content);if(hr)return xe;if(J){if(pe)for(cr=D.call(ae.ownerDocument);ae.firstChild;)cr.appendChild(ae.firstChild);else cr=ae;return(se.shadowroot||se.shadowrootmode)&&(cr=F.call(a,cr,!0)),cr}let ur=Ie?ae.outerHTML:ae.innerHTML;return Ie&&W["!doctype"]&&ae.ownerDocument&&ae.ownerDocument.doctype&&ae.ownerDocument.doctype.name&&Jr(fy,ae.ownerDocument.doctype.name)&&(ur="<!DOCTYPE "+ae.ownerDocument.doctype.name+`>
|
|
20
|
+
`+ur),oe&&_s([U,Y,H],Nr=>{ur=pl(ur,Nr," ")}),_&&le?_.createHTML(ur):ur},t.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Re(xe),ce=!0},t.clearConfig=function(){q=null,ce=!1},t.isValidAttribute=function(xe,$,ae){q||Re({});const Ee=O(xe),ft=O($);return Ta(Ee,ft,ae)},t.addHook=function(xe,$){typeof $=="function"&&vl(k[xe],$)},t.removeHook=function(xe,$){if($!==void 0){const ae=i9(k[xe],$);return ae===-1?void 0:u9(k[xe],ae,1)[0]}return L0(k[xe])},t.removeHooks=function(xe){k[xe]=[]},t.removeAllHooks=function(){k=W0()},t}var H0=dy();function G0(e,t,r){return a=>{if(!r||typeof a!="string")return a;var n=typeof t=="function"?t(H0):H0;return n.sanitize(a,e)}}var Na="INUMBER",Gu="IOP1",Ku="IOP2",Zu="IOP3",Zn="IVAR",Yi="IVARNAME",xu="IFUNCALL",Uo="IFUNDEF",va="IEXPR",bc="IEXPREVAL",Hi="IMEMBER",Yo="IENDSTATEMENT",$u="IARRAY";function pt(e,t){this.type=e,this.value=t??0}pt.prototype.toString=function(){switch(this.type){case Na:case Gu:case Ku:case Zu:case Zn:case Yi:case Yo:return this.value;case xu:return"CALL "+this.value;case Uo:return"DEF "+this.value;case $u:return"ARRAY "+this.value;case Hi:return"."+this.value;default:return"Invalid Instruction"}};function zo(e){return new pt(Gu,e)}function ni(e){return new pt(Ku,e)}function cy(e){return new pt(Zu,e)}function Ad(e,t,r,a,n){for(var i=[],u=[],l,s,o,f,d=0;d<e.length;d++){var c=e[d],v=c.type;if(v===Na||v===Yi)Array.isArray(c.value)?i.push.apply(i,Ad(c.value.map(function(p){return new pt(Na,p)}).concat(new pt($u,c.value.length)),t,r,a,n)):i.push(c);else if(v===Zn&&n.hasOwnProperty(c.value))c=new pt(Na,n[c.value]),i.push(c);else if(v===Ku&&i.length>1)s=i.pop(),l=i.pop(),f=r[c.value],c=new pt(Na,f(l.value,s.value)),i.push(c);else if(v===Zu&&i.length>2)o=i.pop(),s=i.pop(),l=i.pop(),c.value==="?"?i.push(l.value?s.value:o.value):(f=a[c.value],c=new pt(Na,f(l.value,s.value,o.value)),i.push(c));else if(v===Gu&&i.length>0)l=i.pop(),f=t[c.value],c=new pt(Na,f(l.value)),i.push(c);else if(v===va){for(;i.length>0;)u.push(i.shift());u.push(new pt(va,Ad(c.value,t,r,a,n)))}else if(v===Hi&&i.length>0)l=i.pop(),i.push(new pt(Na,l.value[c.value]));else{for(;i.length>0;)u.push(i.shift());u.push(c)}}for(;i.length>0;)u.push(i.shift());return u}function vy(e,t,r){for(var a=[],n=0;n<e.length;n++){var i=e[n],u=i.type;if(u===Zn&&i.value===t)for(var l=0;l<r.tokens.length;l++){var s=r.tokens[l],o;s.type===Gu?o=zo(s.value):s.type===Ku?o=ni(s.value):s.type===Zu?o=cy(s.value):o=new pt(s.type,s.value),a.push(o)}else u===va?a.push(new pt(va,vy(i.value,t,r))):a.push(i)}return a}function Mi(e,t,r){var a=[],n,i,u,l,s,o;if(Ac(e))return In(e,r);for(var f=e.length,d=0;d<f;d++){var c=e[d],v=c.type;if(v===Na||v===Yi)a.push(c.value);else if(v===Ku)i=a.pop(),n=a.pop(),c.value==="and"?a.push(n?!!Mi(i,t,r):!1):c.value==="or"?a.push(n?!0:!!Mi(i,t,r)):c.value==="="?(l=t.binaryOps[c.value],a.push(l(n,Mi(i,t,r),r))):(l=t.binaryOps[c.value],a.push(l(In(n,r),In(i,r))));else if(v===Zu)u=a.pop(),i=a.pop(),n=a.pop(),c.value==="?"?a.push(Mi(n?i:u,t,r)):(l=t.ternaryOps[c.value],a.push(l(In(n,r),In(i,r),In(u,r))));else if(v===Zn)if(c.value in t.functions)a.push(t.functions[c.value]);else if(c.value in t.unaryOps&&t.parser.isOperatorEnabled(c.value))a.push(t.unaryOps[c.value]);else{var p=r[c.value];if(p!==void 0)a.push(p);else throw new Error("undefined variable: "+c.value)}else if(v===Gu)n=a.pop(),l=t.unaryOps[c.value],a.push(l(In(n,r)));else if(v===xu){for(o=c.value,s=[];o-- >0;)s.unshift(In(a.pop(),r));if(l=a.pop(),l.apply&&l.call)a.push(l.apply(void 0,s));else throw new Error(l+" is not a function")}else if(v===Uo)a.push((function(){for(var m=a.pop(),g=[],A=c.value;A-- >0;)g.unshift(a.pop());var y=a.pop(),b=function(){for(var _=Object.assign({},r),C=0,T=g.length;C<T;C++)_[g[C]]=arguments[C];return Mi(m,t,_)};return Object.defineProperty(b,"name",{value:y,writable:!1}),r[y]=b,b})());else if(v===va)a.push(E9(c,t));else if(v===bc)a.push(c);else if(v===Hi)n=a.pop(),a.push(n[c.value]);else if(v===Yo)a.pop();else if(v===$u){for(o=c.value,s=[];o-- >0;)s.unshift(a.pop());a.push(s)}else throw new Error("invalid Expression")}if(a.length>1)throw new Error("invalid Expression (parity)");return a[0]===0?0:In(a[0],r)}function E9(e,t,r){return Ac(e)?e:{type:bc,value:function(a){return Mi(e.value,t,a)}}}function Ac(e){return e&&e.type===bc}function In(e,t){return Ac(e)?e.value(t):e}function wc(e,t){for(var r=[],a,n,i,u,l,s,o=0;o<e.length;o++){var f=e[o],d=f.type;if(d===Na)typeof f.value=="number"&&f.value<0?r.push("("+f.value+")"):Array.isArray(f.value)?r.push("["+f.value.map(K0).join(", ")+"]"):r.push(K0(f.value));else if(d===Ku)n=r.pop(),a=r.pop(),u=f.value,t?u==="^"?r.push("Math.pow("+a+", "+n+")"):u==="and"?r.push("(!!"+a+" && !!"+n+")"):u==="or"?r.push("(!!"+a+" || !!"+n+")"):u==="||"?r.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+a+"),("+n+")))"):u==="=="?r.push("("+a+" === "+n+")"):u==="!="?r.push("("+a+" !== "+n+")"):u==="["?r.push(a+"[("+n+") | 0]"):r.push("("+a+" "+u+" "+n+")"):u==="["?r.push(a+"["+n+"]"):r.push("("+a+" "+u+" "+n+")");else if(d===Zu)if(i=r.pop(),n=r.pop(),a=r.pop(),u=f.value,u==="?")r.push("("+a+" ? "+n+" : "+i+")");else throw new Error("invalid Expression");else if(d===Zn||d===Yi)r.push(f.value);else if(d===Gu)a=r.pop(),u=f.value,u==="-"||u==="+"?r.push("("+u+a+")"):t?u==="not"?r.push("(!"+a+")"):u==="!"?r.push("fac("+a+")"):r.push(u+"("+a+")"):u==="!"?r.push("("+a+"!)"):r.push("("+u+" "+a+")");else if(d===xu){for(s=f.value,l=[];s-- >0;)l.unshift(r.pop());u=r.pop(),r.push(u+"("+l.join(", ")+")")}else if(d===Uo){for(n=r.pop(),s=f.value,l=[];s-- >0;)l.unshift(r.pop());a=r.pop(),t?r.push("("+a+" = function("+l.join(", ")+") { return "+n+" })"):r.push("("+a+"("+l.join(", ")+") = "+n+")")}else if(d===Hi)a=r.pop(),r.push(a+"."+f.value);else if(d===$u){for(s=f.value,l=[];s-- >0;)l.unshift(r.pop());r.push("["+l.join(", ")+"]")}else if(d===va)r.push("("+wc(f.value,t)+")");else if(d!==Yo)throw new Error("invalid Expression")}return r.length>1&&(t?r=[r.join(",")]:r=[r.join(";")]),String(r[0])}function K0(e){return typeof e=="string"?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function mu(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}function _c(e,t,r){r=r||{};for(var a=!!r.withMembers,n=null,i=0;i<e.length;i++){var u=e[i];u.type===Zn||u.type===Yi?!a&&!mu(t,u.value)?t.push(u.value):(n!==null&&(mu(t,n)||t.push(n)),n=u.value):u.type===Hi&&a&&n!==null?n+="."+u.value:u.type===va?_c(u.value,t,r):n!==null&&(mu(t,n)||t.push(n),n=null)}n!==null&&!mu(t,n)&&t.push(n)}function Ia(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}Ia.prototype.simplify=function(e){return e=e||{},new Ia(Ad(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)};Ia.prototype.substitute=function(e,t){return t instanceof Ia||(t=this.parser.parse(String(t))),new Ia(vy(this.tokens,e,t),this.parser)};Ia.prototype.evaluate=function(e){return e=e||{},Mi(this.tokens,this,e)};Ia.prototype.toString=function(){return wc(this.tokens,!1)};Ia.prototype.symbols=function(e){e=e||{};var t=[];return _c(this.tokens,t,e),t};Ia.prototype.variables=function(e){e=e||{};var t=[];_c(this.tokens,t,e);var r=this.functions;return t.filter(function(a){return!(a in r)})};Ia.prototype.toJSFunction=function(e,t){var r=this,a=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+wc(this.simplify(t).tokens,!0)+"; }");return function(){return a.apply(r,arguments)}};var Nl="TEOF",Kt="TOP",Vo="TNUMBER",py="TSTRING",Xn="TPAREN",Ou="TBRACKET",Wo="TCOMMA",Ec="TNAME",Sc="TSEMICOLON";function hy(e,t,r){this.type=e,this.value=t,this.index=r}hy.prototype.toString=function(){return this.type+": "+this.value};function yr(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}yr.prototype.newToken=function(e,t,r){return new hy(e,t,r??this.pos)};yr.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current};yr.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent};yr.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(Nl,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')};yr.prototype.isString=function(){var e=!1,t=this.pos,r=this.expression.charAt(t);if(r==="'"||r==='"')for(var a=this.expression.indexOf(r,t+1);a>=0&&this.pos<this.expression.length;){if(this.pos=a+1,this.expression.charAt(a-1)!=="\\"){var n=this.expression.substring(t+1,a);this.current=this.newToken(py,this.unescape(n),t),e=!0;break}a=this.expression.indexOf(r,a+1)}return e};yr.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return e==="("||e===")"?(this.current=this.newToken(Xn,e),this.pos++,!0):!1};yr.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return(e==="["||e==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(Ou,e),this.pos++,!0):!1};yr.prototype.isComma=function(){var e=this.expression.charAt(this.pos);return e===","?(this.current=this.newToken(Wo,","),this.pos++,!0):!1};yr.prototype.isSemicolon=function(){var e=this.expression.charAt(this.pos);return e===";"?(this.current=this.newToken(Sc,";"),this.pos++,!0):!1};yr.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||r!=="_"&&r!=="."&&(r<"0"||r>"9")))break}if(t>e){var a=this.expression.substring(e,t);if(a in this.consts)return this.current=this.newToken(Vo,this.consts[a]),this.pos+=a.length,!0}return!1};yr.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||r!=="_"&&(r<"0"||r>"9")))break}if(t>e){var a=this.expression.substring(e,t);if(this.isOperatorEnabled(a)&&(a in this.binaryOps||a in this.unaryOps||a in this.ternaryOps))return this.current=this.newToken(Kt,a),this.pos+=a.length,!0}return!1};yr.prototype.isName=function(){for(var e=this.pos,t=e,r=!1;t<this.expression.length;t++){var a=this.expression.charAt(t);if(a.toUpperCase()===a.toLowerCase()){if(t===this.pos&&(a==="$"||a==="_")){a==="_"&&(r=!0);continue}else if(t===this.pos||!r||a!=="_"&&(a<"0"||a>"9"))break}else r=!0}if(r){var n=this.expression.substring(e,t);return this.current=this.newToken(Ec,n),this.pos+=n.length,!0}return!1};yr.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);(t===" "||t===" "||t===`
|
|
21
|
+
`||t==="\r")&&(e=!0,this.pos++,!(this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var S9=/^[0-9a-f]{4}$/i;yr.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var r=e.substring(0,t);t>=0;){var a=e.charAt(++t);switch(a){case"'":r+="'";break;case'"':r+='"';break;case"\\":r+="\\";break;case"/":r+="/";break;case"b":r+="\b";break;case"f":r+="\f";break;case"n":r+=`
|
|
22
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;case"u":var n=e.substring(t+1,t+5);S9.test(n)||this.parseError("Illegal escape sequence: \\u"+n),r+=String.fromCharCode(parseInt(n,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+a+'"')}++t;var i=e.indexOf("\\",t);r+=e.substring(t,i<0?e.length:i),t=i}return r};yr.prototype.isComment=function(){var e=this.expression.charAt(this.pos);return e==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1};yr.prototype.isRadixInteger=function(){var e=this.pos;if(e>=this.expression.length-2||this.expression.charAt(e)!=="0")return!1;++e;var t,r;if(this.expression.charAt(e)==="x")t=16,r=/^[0-9a-f]$/i,++e;else if(this.expression.charAt(e)==="b")t=2,r=/^[01]$/i,++e;else return!1;for(var a=!1,n=e;e<this.expression.length;){var i=this.expression.charAt(e);if(r.test(i))e++,a=!0;else break}return a&&(this.current=this.newToken(Vo,parseInt(this.expression.substring(n,e),t)),this.pos=e),a};yr.prototype.isNumber=function(){for(var e=!1,t=this.pos,r=t,a=t,n=!1,i=!1,u;t<this.expression.length&&(u=this.expression.charAt(t),u>="0"&&u<="9"||!n&&u===".");)u==="."?n=!0:i=!0,t++,e=i;if(e&&(a=t),u==="e"||u==="E"){t++;for(var l=!0,s=!1;t<this.expression.length;){if(u=this.expression.charAt(t),l&&(u==="+"||u==="-"))l=!1;else if(u>="0"&&u<="9")s=!0,l=!1;else break;t++}s||(t=a)}return e?(this.current=this.newToken(Vo,parseFloat(this.expression.substring(r,t))),this.pos=t):this.pos=a,e};yr.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if(t==="+"||t==="-"||t==="*"||t==="/"||t==="%"||t==="^"||t==="?"||t===":"||t===".")this.current=this.newToken(Kt,t);else if(t==="∙"||t==="•")this.current=this.newToken(Kt,"*");else if(t===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Kt,">="),this.pos++):this.current=this.newToken(Kt,">");else if(t==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Kt,"<="),this.pos++):this.current=this.newToken(Kt,"<");else if(t==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(Kt,"||"),this.pos++;else return!1;else if(t==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Kt,"=="),this.pos++):this.current=this.newToken(Kt,t);else if(t==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Kt,"!="),this.pos++):this.current=this.newToken(Kt,t);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=e,!1)};yr.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)};yr.prototype.getCoordinates=function(){var e=0,t,r=-1;do e++,t=this.pos-r,r=this.expression.indexOf(`
|
|
23
|
+
`,r+1);while(r>=0&&r<this.pos);return{line:e,column:t}};yr.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)};function rr(e,t,r){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=r.allowMemberAccess!==!1}rr.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()};rr.prototype.tokenMatches=function(e,t){return typeof t>"u"?!0:Array.isArray(t)?mu(t,e.value):typeof t=="function"?t(e):e.value===t};rr.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()};rr.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken};rr.prototype.accept=function(e,t){return this.nextToken.type===e&&this.tokenMatches(this.nextToken,t)?(this.next(),!0):!1};rr.prototype.expect=function(e,t){if(!this.accept(e,t)){var r=this.tokens.getCoordinates();throw new Error("parse error ["+r.line+":"+r.column+"]: Expected "+(t||e))}};rr.prototype.parseAtom=function(e){var t=this.tokens.unaryOps;function r(n){return n.value in t}if(this.accept(Ec)||this.accept(Kt,r))e.push(new pt(Zn,this.current.value));else if(this.accept(Vo))e.push(new pt(Na,this.current.value));else if(this.accept(py))e.push(new pt(Na,this.current.value));else if(this.accept(Xn,"("))this.parseExpression(e),this.expect(Xn,")");else if(this.accept(Ou,"["))if(this.accept(Ou,"]"))e.push(new pt($u,0));else{var a=this.parseArrayList(e);e.push(new pt($u,a))}else throw new Error("unexpected "+this.nextToken)};rr.prototype.parseExpression=function(e){var t=[];this.parseUntilEndStatement(e,t)||(this.parseVariableAssignmentExpression(t),!this.parseUntilEndStatement(e,t)&&this.pushExpression(e,t))};rr.prototype.pushExpression=function(e,t){for(var r=0,a=t.length;r<a;r++)e.push(t[r])};rr.prototype.parseUntilEndStatement=function(e,t){return this.accept(Sc)?(this.nextToken&&this.nextToken.type!==Nl&&!(this.nextToken.type===Xn&&this.nextToken.value===")")&&t.push(new pt(Yo)),this.nextToken.type!==Nl&&this.parseExpression(t),e.push(new pt(va,t)),!0):!1};rr.prototype.parseArrayList=function(e){for(var t=0;!this.accept(Ou,"]");)for(this.parseExpression(e),++t;this.accept(Wo);)this.parseExpression(e),++t;return t};rr.prototype.parseVariableAssignmentExpression=function(e){for(this.parseConditionalExpression(e);this.accept(Kt,"=");){var t=e.pop(),r=[],a=e.length-1;if(t.type===xu){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var n=0,i=t.value+1;n<i;n++){var u=a-n;e[u].type===Zn&&(e[u]=new pt(Yi,e[u].value))}this.parseVariableAssignmentExpression(r),e.push(new pt(va,r)),e.push(new pt(Uo,t.value));continue}if(t.type!==Zn&&t.type!==Hi)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(r),e.push(new pt(Yi,t.value)),e.push(new pt(va,r)),e.push(ni("="))}};rr.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(Kt,"?");){var t=[],r=[];this.parseConditionalExpression(t),this.expect(Kt,":"),this.parseConditionalExpression(r),e.push(new pt(va,t)),e.push(new pt(va,r)),e.push(cy("?"))}};rr.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(Kt,"or");){var t=[];this.parseAndExpression(t),e.push(new pt(va,t)),e.push(ni("or"))}};rr.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(Kt,"and");){var t=[];this.parseComparison(t),e.push(new pt(va,t)),e.push(ni("and"))}};var D9=["==","!=","<","<=",">=",">","in"];rr.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(Kt,D9);){var t=this.current;this.parseAddSub(e),e.push(ni(t.value))}};var C9=["+","-","||"];rr.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(Kt,C9);){var t=this.current;this.parseTerm(e),e.push(ni(t.value))}};var x9=["*","/","%"];rr.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(Kt,x9);){var t=this.current;this.parseFactor(e),e.push(ni(t.value))}};rr.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;function r(n){return n.value in t}if(this.save(),this.accept(Kt,r)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===Xn&&this.nextToken.value==="("){this.restore(),this.parseExponential(e);return}else if(this.nextToken.type===Sc||this.nextToken.type===Wo||this.nextToken.type===Nl||this.nextToken.type===Xn&&this.nextToken.value===")"){this.restore(),this.parseAtom(e);return}}var a=this.current;this.parseFactor(e),e.push(zo(a.value))}else this.parseExponential(e)};rr.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(Kt,"^");)this.parseFactor(e),e.push(ni("^"))};rr.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(Kt,"!");)e.push(zo("!"))};rr.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;function r(i){return i.value in t}if(this.accept(Kt,r)){var a=this.current;this.parseAtom(e),e.push(zo(a.value))}else for(this.parseMemberExpression(e);this.accept(Xn,"(");)if(this.accept(Xn,")"))e.push(new pt(xu,0));else{var n=this.parseArgumentList(e);e.push(new pt(xu,n))}};rr.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(Xn,")");)for(this.parseExpression(e),++t;this.accept(Wo);)this.parseExpression(e),++t;return t};rr.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(Kt,".")||this.accept(Ou,"[");){var t=this.current;if(t.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(Ec),e.push(new pt(Hi,this.current.value))}else if(t.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect(Ou,"]"),e.push(ni("["))}else throw new Error("unexpected symbol: "+t.value)}};function $9(e,t){return Number(e)+Number(t)}function O9(e,t){return e-t}function T9(e,t){return e*t}function F9(e,t){return e/t}function M9(e,t){return e%t}function k9(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function B9(e,t){return e===t}function P9(e,t){return e!==t}function q9(e,t){return e>t}function N9(e,t){return e<t}function R9(e,t){return e>=t}function I9(e,t){return e<=t}function L9(e,t){return!!(e&&t)}function j9(e,t){return!!(e||t)}function U9(e,t){return mu(t,e)}function Y9(e){return(Math.exp(e)-Math.exp(-e))/2}function z9(e){return(Math.exp(e)+Math.exp(-e))/2}function V9(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function W9(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function H9(e){return Math.log(e+Math.sqrt(e*e-1))}function G9(e){return Math.log((1+e)/(1-e))/2}function Z0(e){return Math.log(e)*Math.LOG10E}function K9(e){return-e}function Z9(e){return!e}function X9(e){return e<0?Math.ceil(e):Math.floor(e)}function J9(e){return Math.random()*(e||1)}function X0(e){return Dc(e+1)}function Q9(e){return isFinite(e)&&e===Math.round(e)}var e8=4.7421875,kf=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function Dc(e){var t,r;if(Q9(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var a=e-2,n=e-1;a>1;)n*=a,a--;return n===0&&(n=1),n}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*Dc(1-e));if(e>=171.35)return 1/0;if(e>85){var i=e*e,u=i*e,l=u*e,s=l*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*i)-139/(51840*u)-571/(2488320*l)+163879/(209018880*s)+5246819/(75246796800*s*e))}--e,r=kf[0];for(var o=1;o<kf.length;++o)r+=kf[o]/(e+o);return t=e+e8+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}function t8(e){return Array.isArray(e)?e.length:String(e).length}function J0(){for(var e=0,t=0,r=0;r<arguments.length;r++){var a=Math.abs(arguments[r]),n;t<a?(n=t/a,e=e*n*n+1,t=a):a>0?(n=a/t,e+=n*n):e+=a}return t===1/0?1/0:t*Math.sqrt(e)}function Q0(e,t,r){return e?t:r}function r8(e,t){return typeof t>"u"||+t==0?Math.round(e):(e=+e,t=-+t,isNaN(e)||!(typeof t=="number"&&t%1===0)?NaN:(e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]+t:t))))}function a8(e,t,r){return r&&(r[e]=t),t}function n8(e,t){return e[t|0]}function i8(e){return arguments.length===1&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function u8(e){return arguments.length===1&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function l8(e,t){if(typeof e!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map(function(r,a){return e(r,a)})}function s8(e,t,r){if(typeof e!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(r))throw new Error("Second argument to fold is not an array");return r.reduce(function(a,n,i){return e(a,n,i)},t)}function o8(e,t){if(typeof e!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter(function(r,a){return e(r,a)})}function f8(e,t){if(!(Array.isArray(t)||typeof t=="string"))throw new Error("Second argument to indexOf is not a string or array");return t.indexOf(e)}function d8(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function c8(e){return(e>0)-(e<0)||+e}var ep=1/3;function v8(e){return e<0?-Math.pow(-e,ep):Math.pow(e,ep)}function p8(e){return Math.exp(e)-1}function h8(e){return Math.log(1+e)}function m8(e){return Math.log(e)/Math.LN2}function Gi(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||Y9,cosh:Math.cosh||z9,tanh:Math.tanh||V9,asinh:Math.asinh||W9,acosh:Math.acosh||H9,atanh:Math.atanh||G9,sqrt:Math.sqrt,cbrt:Math.cbrt||v8,log:Math.log,log2:Math.log2||m8,ln:Math.log,lg:Math.log10||Z0,log10:Math.log10||Z0,expm1:Math.expm1||p8,log1p:Math.log1p||h8,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||X9,"-":K9,"+":Number,exp:Math.exp,not:Z9,length:t8,"!":X0,sign:Math.sign||c8},this.binaryOps={"+":$9,"-":O9,"*":T9,"/":F9,"%":M9,"^":Math.pow,"||":k9,"==":B9,"!=":P9,">":q9,"<":N9,">=":R9,"<=":I9,and:L9,or:j9,in:U9,"=":a8,"[":n8},this.ternaryOps={"?":Q0},this.functions={random:J9,fac:X0,min:u8,max:i8,hypot:Math.hypot||J0,pyt:Math.hypot||J0,pow:Math.pow,atan2:Math.atan2,if:Q0,gamma:Dc,roundTo:r8,map:l8,fold:s8,filter:o8,indexOf:f8,join:d8},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Gi.prototype.parse=function(e){var t=[],r=new rr(this,new yr(this,e),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(t),r.expect(Nl,"EOF"),new Ia(t,this)};Gi.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var my=new Gi;Gi.parse=function(e){return my.parse(e)};Gi.evaluate=function(e,t){return my.parse(e).evaluate(t)};var tp={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function g8(e){return tp.hasOwnProperty(e)?tp[e]:e}Gi.prototype.isOperatorEnabled=function(e){var t=g8(e),r=this.options.operators||{};return!(t in r)||!!r[t]};class y8{constructor(t,r,a){var n=this,{functions:i,consts:u}=t;ta(this,"parser",void 0),ta(this,"regex",/{(.+?)}|\\({.+?})/g),ta(this,"config$",void 0),ta(this,"form$",void 0),ta(this,"moment",void 0),ta(this,"lastParsed",void 0),this.config$=r,this.form$=a,this.moment=this.config$.value.services.moment,this.parser=new Gi({operators:{logical:!0,comparison:!0,in:!0,assignment:!1}}),Object.keys(this.parser.functions).forEach(l=>{delete this.parser.functions[l]}),this.parser.functions.NOT=l=>!l,this.parser.functions.EMPTY=l=>Array.isArray(l)?!l.length:l===""||l===null||l===void 0,this.parser.functions.NOT_EMPTY=l=>Array.isArray(l)?!!l.length:l!==""&&l!==null&&l!==void 0,this.parser.functions.SUM=function(){for(var l=arguments.length,s=new Array(l),o=0;o<l;o++)s[o]=arguments[o];return n.sum(s)},this.parser.functions.AVG=function(){for(var l=arguments.length,s=new Array(l),o=0;o<l;o++)s[o]=arguments[o];var f=n.flatten(s,"").filter(d=>d!=="");return f.length?n.sum(s)/f.length:0},this.parser.functions.MIN=function(){for(var l=arguments.length,s=new Array(l),o=0;o<l;o++)s[o]=arguments[o];var f=n.flatten(s,"").filter(d=>d!=="");return f.length?f.sort((d,c)=>d-c)[0]:0},this.parser.functions.MAX=function(){for(var l=arguments.length,s=new Array(l),o=0;o<l;o++)s[o]=arguments[o];var f=n.flatten(s,"").filter(d=>d!=="");return f.length?f.sort((d,c)=>c-d)[0]:0},this.parser.functions.ROUND=(l,s)=>{var o=Number(l);return isNaN(o)?0:Number(o.toFixed(s))},this.parser.functions.COUNT=function(){for(var l=arguments.length,s=new Array(l),o=0;o<l;o++)s[o]=arguments[o];var f=n.flatten(s,"").filter(d=>d!=="");return f.length},this.parser.functions.AGE=l=>{var s=this.date(l);return s.isValid()?this.moment().diff(s,"years"):""},this.parser.functions.TODAY=()=>this.moment().format("YYYY-MM-DD"),this.parser.functions.NOW=()=>this.moment().toISOString(),this.parser.functions.DATE_ADD=(l,s,o)=>{var f=this.date(l);return f.clone().add(s,o).toISOString()},this.parser.functions.FORMAT_DATE=(l,s)=>this.date(l).format(s),this.parser.functions.DISPLAY_VALUE=(l,s)=>{var o=this.form$.value.el$(s);if(!o)return"";var f=d=>{var c;return jt(((c=o.resolvedOptions)===null||c===void 0||(c=c.find(v=>v.value===d))===null||c===void 0?void 0:c.label)||"",this.config$.value,this.form$.value)};return Array.isArray(l)?l.map(f).join(", "):f(l)},this.parser.functions.AVAILABLE=l=>{var s=this.form$.value.el$(l);return s?s.available:!1},Object.entries(i||{}).forEach(l=>{var[s,o]=l,f;try{f=o()}catch{}this.parser.functions[s]=typeof f=="function"?o(this.form$.value):o}),Object.entries(u||{}).forEach(l=>{var[s,o]=l;this.parser.consts[s]=o}),Object.keys(this.parser.functions).forEach(l=>{this.parser.functions[l].toString=()=>l})}flatten(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.reduce((a,n)=>{var i=Array.isArray(n)?n.reduce((u,l)=>u.concat(isNaN(Number(l))||l===null||l===void 0||l===""?r:Number(l)),[]):[isNaN(Number(n))||n===null||n===void 0||n===""?r:Number(n)];return a.concat(i)},[])}sum(t){return this.flatten(t).reduce((r,a)=>r+(isNaN(parseInt(a))?0:parseInt(a)),0)}date(t){return this.moment(t,[this.moment.ISO_8601,"YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","DD.MM.YYYY","YYYY/MM/DD","DD MMM YYYY","MMM DD, YYYY","YYYY-MM-DD HH:mm:ss","MM/DD/YYYY hh:mm A","DD.MM.YYYY HH:mm","DD/MM/YYYY HH:mm:ss","YYYY/MM/DD HH:mm:ss","ddd, DD MMM YYYY HH:mm:ss Z"],!0)}resolve(t,r,a){return t.replace(this.regex,(n,i,u)=>{if(i!==void 0){var l,s;if(s=this.parse(i,a),!(s instanceof Ia))return"";try{if(this.containsSelf(s,a))throw new Error("Can't contain self data path (`".concat(a,"`)"));l=String(s.evaluate(r))}catch{this.config$.value.config.expressionDebug}return l==="NaN"&&(l="0"),([null,void 0,"null","undefined","[object Object]"].includes(l)||l==="")&&(l=""),l}return u!==void 0?u.replace(/\\}$/,"}"):n})}parse(t,r){var a;t=t.replace(/([a-zA-Z_-][a-zA-Z0-9_-]*)\.([0-9\*])+\b/g,"$1[$2]").replace(/([a-zA-Z_-][a-zA-Z0-9_-]*)\.([0-9\*])\.+\b/g,"$1[$2]."),t=M0(t,r);try{a=this.parser.parse(t)}catch{this.config$.value.config.expressionDebug}return a}parseAll(t,r){return typeof t!="string"?[]:[...t?.matchAll(this.regex)||[]].map(a=>a[1]).filter(a=>!!a).map(a=>({expression:a,parsed:this.parse(a,r)}))}vars(t,r){return typeof t!="string"?[]:[...t?.matchAll(this.regex)||[]].map(a=>a[1]).filter(a=>!!a).reduce((a,n)=>{var i;return n=M0(n.replace(/([a-zA-Z_-][a-zA-Z0-9_-]*)\.([0-9\*])+\b/g,"$1[$2]").replace(/([a-zA-Z_-][a-zA-Z0-9_-]*)\.([0-9\*])\.+\b/g,"$1[$2]."),r),n=n.replace(/\[([0-9\*])+\]/g,"._$1_").replace(/\[([0-9\*])+\]\./g,"._$1_."),[...a,...((i=this.parse(n,r))===null||i===void 0||(i=i.variables({withMembers:!0}))===null||i===void 0?void 0:i.map(u=>u.replace(/\._([0-9]+)_/g,".$1").replace(/\._([0-9]+)_\./g,".$1.")))||[]]},[])}wrap(t){return!/^{/.test(t)&&!/}$/.test(t)&&(t="{".concat(t,"}")),t}unwrap(t){return t.replace(/^\{|\}$/g,"")}containsSelf(t,r){var a;return(a=this.vars(this.wrap(t?.toString()||""),r))===null||a===void 0?void 0:a.includes(r)}}class b8{constructor(t,r,a){}init(){}render(){}reset(){}getResponse(){}validate(t){return he(function*(){})()}}class A8 extends b8{constructor(t,r,a){super(t,r,a),ta(this,"src","https://www.google.com/recaptcha/api.js?onload=recaptcha2LoadCallback&render=explicit"),ta(this,"element",void 0),ta(this,"options",{}),ta(this,"el$",{}),ta(this,"id",void 0),ta(this,"rendered",!1),ta(this,"interval",void 0),this.element=t,this.options=r,this.el$=a,this.init()}init(){this.loadScript()}render(){this.id=window.grecaptcha.render(this.element,B({callback:t=>{this.el$.update(t)},"expired-callback":()=>{this.el$.clear()},"error-callback":()=>{this.el$.clear()}},this.options)),this.rendered=!0}reset(){if(this.rendered)return window.grecaptcha.reset(this.id)}getResponse(){return window.grecaptcha.getResponse(this.id)}validate(t){return he(function*(){return!!t})()}loadScript(){if(this.isCaptchaLoaded()){this.render();return}if(this.isScriptAdded()){this.interval=setInterval(()=>{this.isCaptchaLoaded()&&(this.render(),clearInterval(this.interval))},500);return}window.recaptcha2LoadCallback=()=>{this.render()};var t=document.createElement("script");t.src=this.src,t.async=!0,t.defer=!0,document.head.appendChild(t),t.onload=()=>{},t.onerror=()=>{}}isCaptchaLoaded(){return typeof window<"u"&&window.grecaptcha}isScriptAdded(){for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r++)if(t[r].src.includes("https://www.google.com/recaptcha/api.js"))return!0;return!1}}var w8={env:"development",plugins:[],elements:[],theme:{},templates:{},views:{},size:"md",addClasses:{},removeClasses:{},replaceClasses:{},overrideClasses:{},presets:{},usePresets:[],classHelpers:!1,columns:{},forceLabels:!1,floatPlaceholders:!0,displayErrors:!0,displayMessages:!0,breakpoints:["sm","md","lg","xl","2xl"],languages:{en:"English"},language:"en",locales:{},locale:null,fallbackLocale:"en",orderFrom:1,rules:{},validateOn:"change|step",scrollToInvalid:!0,showRequired:[],scrollOnNext:!0,forceNumbers:!1,operators:{},strictConditions:!1,expression:{functions:{},consts:{}},expressionDebug:!1,endpoints:{submit:{url:"/vueform/process",method:"post"},uploadTempFile:{url:"/vueform/file/upload-temp",method:"post"},removeTempFile:{url:"/vueform/file/remove-temp",method:"post"},removeFile:{url:"/vueform/file/remove",method:"post"},attachment:{url:"/vueform/editor/attachment",method:"post"},activeUrl:{url:"/vueform/validators/active_url",method:"post"},unique:{url:"/vueform/validators/unique",method:"post"},exists:{url:"/vueform/validators/exists",method:"post"}},formData(e){return e.convertFormData(B(B({},e.requestData),e.formKey?{formKey:e.formKey}:{}))},beforeSend:null,axios:{},sanitize:!0,sanitizeOptions:{},sanitizeInit:e=>e,locationProvider:"google",providers:{captcha:{recaptcha2:A8}},useProviders:{captcha:"recaptcha2"},providerOptions:{recaptcha2:{sitekey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}},services:{algolia:{app_id:"",api_key:""}}};function gy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w8,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=class{constructor(){this.options={config:md(e,["theme","templates","locales","rules","plugins"]),templates:e.templates||{},components:e.components||{},theme:e.theme||{},rules:B(B({},r),e.rules||{}),locales:e.locales||{},plugins:e.plugins||[],i18n:null,vueVersion:null,services:B({validation:R4,axios:wr,messageBag:V4,autosize:G4,location:X4,condition:Q4,columns:t9,sanitize:G0,expression:y8},a),version:$6.version}}config(i){var u;P(["theme","templates","locales","rules"],l=>{i[l]!==void 0&&(this.options[l]=Object.assign({},this.options[l],i[l]))}),P(["plugins","components","sanitizeOptions"],l=>{i[l]!==void 0&&(this.options[l]=i[l])}),P(["languages","services","presets","views","operators","expression"],l=>{i[l]!==void 0&&(this.options.config[l]=Object.assign({},this.options.config[l],i[l]))}),P(["addClasses","removeClasses","replaceClasses","overrideClasses"],l=>{i[l]!==void 0&&(this.options.config[l]=typeof i[l]=="function"?i[l]:Object.assign({},this.options.config[l],i[l]))}),P(["endpoints","providers","useProviders","providerOptions"],l=>{i[l]!==void 0&&(this.options.config[l]=_n({},this.options.config[l],i[l]))}),P(["columns","forceLabels","displayErrors","floatPlaceholders","displayErrors","displayMessages","language","locale","fallbackLocale","orderFrom","validateOn","formData","beforeSend","locationProvider","classHelpers","env","usePresets","plugins","size","apiKey","forceNumbers","scrollToInvalid","showRequired","scrollOnNext","strictConditions","sanitize","sanitizeInit","expressionDebug"],l=>{i[l]!==void 0&&(this.options.config[l]=i[l])}),this.options.config.presets=B(B({},this.options.config.presets||{}),((u=i.theme)===null||u===void 0?void 0:u.presets)||{}),i.elements&&(i.elements.forEach(l=>{t[l.name]=md(l,["render","staticRenderFns","components"])}),i.elements.forEach(l=>{this.options.templates[l.name]===void 0&&(this.options.templates[l.name]=l6(l,["render","staticRenderFns","components"]))})),i.axios!==void 0&&(typeof i.axios=="function"?this.options.services.axios=i.axios:this.options.config.axios=i.axios)}registerComponents(i){P(t,(u,l)=>{if(u.register!==!1){var s=B({},u);if(s.setup=(d,c)=>{c=Object.assign({},c,{name:R(l),emits:s.emits});var v=u.setup(d,c);return this.options.plugins.forEach(p=>{typeof p=="function"&&(p=p()),p=Array.isArray(p)?p:[p],p.forEach(m=>{var g=typeof m=="function"?m():m;g.setup&&T0(l,g)&&(v=g.setup(d,c,v))})}),v},s.components===void 0){var o,f;s.components=((o=this.options.templates[l])===null||o===void 0?void 0:o.components)||((f=this.options.theme.templates[l])===null||f===void 0?void 0:f.components)||{}}s.render=function(){return this.template.render.apply(this,arguments)},s.staticRenderFns=function(){return this.template.staticRenderFns},this.options.plugins.forEach(d=>{typeof d=="function"&&(d=d()),d=Array.isArray(d)?d:[d],d.forEach(c=>{var v=typeof c=="function"?c():c;P(A6(Object.keys(v),"setup","apply","config","install"),p=>{if(v[p]&&T0(l,v))if(Array.isArray(v[p])){var m=s[p]||[];s[p]=m.concat(v[p])}else zt(v[p])?s[p]=Object.assign({},s[p]||{},v[p]):s[p]=v[p]})})}),i.component(l,s)}})}initAxios(){var i=this.options.services.axios,u=this.options.config.axios,l=rg(this.options.config.axios);Object.keys(l).forEach(s=>{var o=l[s];["onUnauthenticated"].indexOf(s)===-1&&s.indexOf("csrfRequest.")===-1&&Fi(i.defaults,s,o)}),i.interceptors.response.use(s=>s,s=>s.response?new Promise((o,f)=>{var d=s.response,c=d.config;[401,419].indexOf(s.response.status)!==-1?u.csrfRequest&&!c.CSRF?i.request(B(B({},u.csrfRequest),{},{CSRF:!0})).then(()=>{o(i.request(B(B({},c),{},{CSRF:!0})))}).catch(v=>{f(v)}):u.onUnauthenticated?u.onUnauthenticated(c):f(s):f(s)}):Promise.reject(s))}initI18n(){this.options.i18n=new e9({locales:this.options.locales,locale:this.options.config.locale,fallbackLocale:this.options.config.fallbackLocale})}install(i){var u,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=parseInt(i.version.split(".")[0]),o=parseInt(i.version.split(".")[1]);this.options.vueVersion=s;var f=l.plugins||[];f.forEach(v=>{typeof v=="function"&&(v=v()),v=Array.isArray(v)?v:[v],v.forEach(p=>{var m=typeof p=="function"?p():p;m.config&&m.config(l)})}),l&&this.config(l),this.options.plugins.forEach(v=>{typeof v=="function"&&(v=v()),v=Array.isArray(v)?v:[v],v.forEach(p=>{var m=typeof p=="function"?p():p;m.install&&m.install(i,this.options)})}),typeof e.axios!="function"&&this.initAxios(),this.initI18n(),Object.keys(this.options.components).forEach(v=>{t[v]=this.options.components[v]}),this.registerComponents(i);var d=((u=this.options.theme)===null||u===void 0?void 0:u.templates)||{};Object.keys(d).forEach(v=>{d[v]=pi(d[v])});var c=R(B(B({},this.options),{},{theme:B(B({},this.options.theme),{},{templates:d}),sanitize:G0(this.options.sanitizeOptions||{},this.options.config.sanitizeInit,this.options.config.sanitize)}));switch(s){case 2:i.config.ignoredElements=["trix-editor"],i.config.unwrapInjectedRef=!0,i.prototype.$vueform||(i.prototype.$vueform=new Proxy(c,{get:(v,p,m)=>v.value[p]})),i.__VUEFORM__||(i.__VUEFORM__=!0,i.mixin({methods:{__:(v,p)=>this.options.i18n.$t(v,p)}}));break;case 3:o<3&&(i.config.unwrapInjectedRef=!0),i.component("trix-editor")||i.component("trix-editor",{render(){return li("trix-editor")}}),i.config.globalProperties.$vueform=new Proxy(c,{get:(v,p,m)=>v.value[p]}),i.provide("$vueform",c),i.mixin({methods:{$set(v,p,m){v[p]=m},$delete(v,p){delete v[p]},__:(v,p)=>this.options.i18n.$t(v,p)}});break}}};return new n}var ct=function(t,r,a){var n=ut("form$");return{form$:n}},vt=function(t,r,a){var n=ut("theme");return{theme:n}},yy=function(t,r,a){var n=ut("Size");return{Size:n}},by=function(t,r,a){var{view:n}=Q(t),i=r.name,u=ut("Views")||R({}),l=ut("View",R(void 0)),s=h(()=>n&&n.value?n.value:u.value[i.value]?u.value[i.value]:l.value);return{View:s}},sn=function(t,r,a){var n=r.name,{form$:i}=ct(),{theme:u}=vt(),{Size:l}=yy(),{View:s}=by(t,r),o=h(()=>ja().proxy),f=h(()=>new Lo({component:n.value,component$:o,theme:u.value,config:i.value.$vueform.config,templates:c.value,view:s.value,merge:[i.value.options]})),d=h(()=>f.value.classes),c=h(()=>u.value.templates),v=h(()=>s.value&&c.value["".concat(n.value,"_").concat(s.value)]?c.value["".concat(n.value,"_").concat(s.value)]:c.value[n.value]);return{form$:i,theme:u,Size:l,View:s,classesInstance:f,classes:d,Templates:c,template:v}},Ay={name:"FormErrors",props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}=sn(e,t),f=h(()=>r.value.formErrors.map(d=>r.value.$vueform.sanitize(d)));return{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o,errors:f}}},wy={name:"FormMessages",props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}=sn(e,t),f=h(()=>r.value.formMessages);return{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o,messages:f}}},_y={name:"FormLanguages",props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}=sn(e,t),f=h(()=>r.value.selectedLanguage),d=h(()=>r.value.options.languages),c=p=>{r.value.setLanguage(p)},v=p=>{c(p)};return oa("View",n),{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o,language:f,languages:d,select:c,handleSelect:v}}},Ey={name:"FormLanguage",emits:["select"],props:{language:{type:String,required:!0},code:{type:String,required:!0},view:{required:!1,type:[String],default:void 0}},setup(e,t){var{code:r}=Q(e),{form$:a,Size:n,View:i,classesInstance:u,theme:l,classes:s,Templates:o,template:f}=sn(e,t),d=h(()=>a.value.selectedLanguage),c=h(()=>d.value==r.value),v=()=>{t.emit("select",r.value)};return{form$:a,Size:n,View:i,classesInstance:u,theme:l,selectedLanguage:d,selected:c,classes:s,Templates:o,template:f,select:v}}},_8=ri,E8=ti,S8=Br;function D8(e){return function(t,r,a){var n=Object(t);if(!E8(t)){var i=_8(r);t=S8(t),r=function(l){return i(n[l],l,n)}}var u=e(t,r,a);return u>-1?n[i?t[u]:u]:void 0}}var Sy=D8,C8=mc,x8=ri,$8=ns,O8=Math.max;function T8(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var n=r==null?0:$8(r);return n<0&&(n=O8(a+n,0)),C8(e,x8(t),n)}var F8=T8,M8=Sy,k8=F8,B8=M8(k8),Ja=B8,P8=mc,q8=ri,N8=ns,R8=Math.max,I8=Math.min;function L8(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var n=a-1;return r!==void 0&&(n=N8(r),n=r<0?R8(a+n,0):I8(n,a-1)),P8(e,q8(t),n,!0)}var j8=L8,U8=Sy,Y8=j8,z8=U8(Y8),Is=z8,Dy={name:"FormTabs",emits:["select"],props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var r=ja().proxy,{form$:a,Size:n,View:i,classesInstance:u,theme:l,classes:s,Templates:o,template:f}=sn(e,t),{events:d,listeners:c,on:v,off:p,fire:m}=nt(e,t,{form$:a},{events:t.emits}),g=R([]),A=R(!0),y=h(()=>a.value.elements$),b=h(()=>a.value.options.tabs),_=h(()=>{var j={};return P(g.value,M=>{j[M.name]=M}),j}),C=h(()=>{var j={};return P(_.value,M=>{M.visible&&(j[M.name]=M)}),j}),T=h(()=>{var j=Ja(_.value,{active:!0});return j!==void 0?j:{}}),S=h(()=>Ja(C.value,j=>j.visible)),D=h(()=>Object.values(C.value).pop()),x=h(()=>Ja(C.value,j=>j.index>T.value.index&&j.visible)),F=h(()=>Is(C.value,j=>j.index<T.value.index&&j.visible)),k=j=>{var M=C.value[j];M.select()},U=j=>{var M=T.value;P(y.value,K=>{K.deactivate()}),P(_.value,K=>{K.deactivate()}),m("select",j,M)},Y=j=>Ja(_.value,{name:j}),H=()=>{S.value.select()},N=(j,M)=>{j.tabs$!==void 0?a.value.$set(j,"tabs$",r):M(j.$parent,M)},I=(j,M)=>{j.tabs$!==void 0?a.value.$set(j,"tabs$",null):M(j.$parent,M)};return oa("View",i),Se(y,(j,M)=>{var K=yc(Br(j),Br(M));P(K,Z=>{y.value[Z].deactivate()})},{deep:!1,lazy:!0}),Se(b,he(function*(){yield He(),yield He(),(T.value===void 0||T.value.index===void 0)&&S.value&&S.value.select()}),{deep:!0,lazy:!0}),Se(b,j=>{var M=[];P(j,(K,Z)=>{M.push(g.value[g.value.map(W=>Ar(W.name)).indexOf(Ar(Z))])}),g.value=M},{flush:"post"}),Ii(()=>{N(r.$parent,N)}),Gn(()=>{I(r.$parent,I)}),Vt(()=>{He(()=>{Ja(_.value,{active:!0})||S.value.select()})}),{form$:a,Size:n,View:i,classesInstance:u,theme:l,tabs:b,elements$:y,tabs$Array:g,events:d,listeners:c,exists:A,classes:s,Templates:o,template:f,tabs$:_,visible$:C,current$:T,first$:S,last$:D,next$:x,previous$:F,goTo:k,select:U,tab$:Y,reset:H,on:v,off:p,fire:m}}},Bt=function(t,r,a){var{conditions:n}=Q(t),i=a.form$,u=a.path||R(null),l=a.el$||R(void 0),s=a.parent,o=R(n.value),f=R({}),d=h(()=>i.value.conditions?s&&s.value&&s.value.available!==void 0&&!s.value.available?!1:!o.value||!o.value.length?!0:!rt(o.value,m=>!i.value.$vueform.services.condition.check(m,u.value,i.value,l.value)):!0),c=()=>{o.value=Object.values(f.value).reduce((m,g)=>m.concat(g),n.value)},v=(m,g)=>{f.value[m]=g,c()},p=m=>{delete f.value[m],c()};return{conditionList:o,available:d,additionalConditions:f,updateConditions:c,addConditions:v,removeConditions:p}},Cc=function(t,r,a){var{conditionList:n,available:i,additionalConditions:u,addConditions:l,removeConditions:s}=Bt(t,r,a),{conditions:o}=Q(t),f=a.children$Array,d=()=>{n.value=Object.values(u.value).reduce((c,v)=>c.concat(v),o.value),f.value.forEach(c=>{c.updateConditions()})};return{conditionList:n,available:i,updateConditions:d,addConditions:l,removeConditions:s}},Cy=Cc,xy=Cc,{toString:V8}=Object.prototype;function rp(e){return typeof e=="string"&&e.trim().length>0}function W8(e){return typeof e=="function"}function H8(e){return Array.isArray(e)&&e.length>0}function G8(e){return!!e}function K8(e){return G8(e)&&e.nodeType===1&&V8.call(e).indexOf("Element")>-1}function Tu(e){return zt(e)&&(rp(e.template)||W8(e.render)||rp(e.el)||K8(e.el)||Tu(e.extends)||H8(e.mixins)&&e.mixins.some(t=>Tu(t)))||typeof e=="function"&&e.prototype&&e.prototype.constructor.name==="VueComponent"}var Ho=function(t,r,a){var n=a.labelDefinition,i=a.component$||R(null),u=ut("form$"),l=ut("config$"),s=h(()=>n.value),o=h(()=>typeof s.value=="function"&&(!s.value.prototype||!s.value.prototype.constructor||s.value.prototype.constructor&&s.value.prototype.constructor.name!=="VueComponent")),f=h(()=>Tu(s.value)),d=h(()=>{var c=o.value?s.value(i.value):s.value||null;return f.value||(c=jt(c,l.value,u.value)),u.value.$vueform.sanitize(c)});return{label:d,isLabelComponent:f}},$y={name:"FormTab",emits:["activate","inactivate"],slots:["default"],props:{name:{type:[String,Number],required:!0},label:{type:[String,Object,Function],required:!1,default:null},elements:{type:[Array],required:!1,default:()=>[]},conditions:{type:[Array],required:!1,default:()=>[]},addClass:{required:!1,type:[Array,Object,String],default:null},removeClass:{required:!1,type:[Array,Object],default:null},replaceClass:{required:!1,type:[Object],default:null},overrideClass:{required:!1,type:[Array,Object,String],default:null},view:{required:!1,type:[String],default:void 0},onActivate:{type:[Function],required:!1,default:null,private:!0},onInactivate:{type:[Function],required:!1,default:null,private:!0}},setup(e,t){var{name:r,label:a,elements:n}=Q(e),i=ja().proxy,{form$:u,Size:l,View:s,classesInstance:o,theme:f,classes:d,Templates:c,template:v}=sn(e,t),{available:p,conditionList:m,updateConditions:g}=Bt(e,t,{form$:u}),{isLabelComponent:A,label:y}=Ho(e,t,{component$:u,labelDefinition:a}),{events:b,listeners:_,on:C,off:T,fire:S}=nt(e,t,{form$:u},{events:t.emits}),D=R(!1),x=R(y.value&&typeof y.value=="object"?pi(y.value):y.value),F=h(()=>u.value.elements$),k=h(()=>u.value.tabs$),U=h(()=>{var X;return Object.keys((k==null||(X=k.value)===null||X===void 0?void 0:X.tabs$)||{}).indexOf(r.value)}),Y=h(()=>U.value===0),H=h(()=>k.value.last$.name===r.value),N=h(()=>pc(F.value,(X,re)=>n.value.indexOf(re)!==-1)),I=h(()=>p.value),j=h(()=>rt(N.value,{available:!0,invalid:!0})),M=h(()=>u.value.tabs$.tabs$[r.value]),K=()=>{var X,re;D.value||!((X=k.value)!==null&&X!==void 0&&X.select)||((re=k.value)===null||re===void 0||re.select(M.value),Z())},Z=()=>{D.value||(D.value=!0,P(N.value,X=>{X.activate()}),S("activate"))},W=()=>{D.value&&(D.value=!1,P(N.value,X=>{X.deactivate()}),S("inactivate"))},ee=()=>{m.value.length!=0&&Object.values(N.value).forEach(X=>{X.addConditions("tab",m.value)})},se=()=>{Object.values(N.value).forEach(X=>{X.removeConditions("tab")})},Me=()=>{se(),ee()},z=(X,re)=>{X.tabs$Array?X.tabs$Array.push(i):re(X.$parent,re)},G=(X,re)=>{X.tabs$Array?X.tabs$Array.splice(X.tabs$Array.map(Ne=>Ar(Ne.name)).indexOf(Ar(r.value)),1):re(X.$parent,re)};return Se(N,()=>{D.value&&P(N.value,X=>{X.activate()})},{deep:!1,lazy:!0}),Se(y,()=>{x.value=y.value&&typeof y.value=="object"?pi(y.value):y.value}),Se(m,(X,re)=>{X!=null&&X.length?ee():se()}),Vt(()=>{He(()=>{ee()})}),Ii(()=>{z(i.$parent,z)}),Gn(()=>{se(),G(i.$parent,G)}),{form$:u,Size:l,View:s,classesInstance:o,theme:f,elements$:F,index:U,isFirst:Y,isLast:H,active:D,events:b,listeners:_,children$:N,visible:I,invalid:j,classes:d,Templates:c,template:v,available:p,isLabelComponent:A,tabLabel:x,tab$:M,tabs$:k,conditionList:m,select:K,activate:Z,deactivate:W,on:C,off:T,fire:S,addChildConditions:ee,removeChildConditions:se,resetChildConditions:Me,updateConditions:g}}},Oy={name:"FormSteps",emits:["select","next","previous","finish"],props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var r=ja().proxy,{form$:a,Size:n,View:i,classesInstance:u,theme:l,classes:s,Templates:o,template:f}=sn(e,t),{events:d,listeners:c,on:v,off:p,fire:m}=nt(e,t,{form$:a},{events:t.emits}),g=R([]),A=R(null),y=R(!0),b=h(()=>a.value.options.steps),_=h(()=>a.value.elements$),C=h(()=>rt(k.value,{pending:!0})),T=h(()=>rt(k.value,{debouncing:!0})),S=h(()=>rt(k.value,{invalid:!0})),D=h(()=>!rt(k.value,{done:!1})),x=h(()=>C.value||T.value),F=h(()=>{var ce={};return P(g.value,te=>{ce[te.name]=te}),ce}),k=h(()=>{var ce={};return P(F.value,te=>{te.visible&&(ce[te.name]=te)}),ce}),U=h(()=>Ja(k.value,ce=>ce.visible)),Y=h(()=>Object.values(k.value).pop()),H=h(()=>{var ce=Ja(F.value,{active:!0});return ce!==void 0?ce:{}}),N=h(()=>Ja(k.value,ce=>ce.index>H.value.index&&ce.visible)),I=h(()=>Is(k.value,ce=>ce.index<H.value.index&&ce.visible)),j=h(()=>Ja(k.value,{invalid:!0})),M=h(()=>Ja(k.value,{done:!1})),K=h(()=>Is(k.value,{isDisabled:!1})),Z=h(()=>{var ce=Is(k.value,{visible:!0});return!H.value||!ce?!1:ce.index===H.value.index}),W=h(()=>H.value.index===0),ee=function(te){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=k.value[te];pe.enable(),pe.select(),J&&He(()=>{oe()})},se=()=>{m("next",N.value),N.value.enable(),N.value.select(),a.value.options.scrollOnNext&&a.value.$el.scrollIntoView&&He(()=>{a.value.$el.scrollIntoView({behavior:"smooth"})})},Me=()=>{m("previous",I.value),I.value.select()},z=()=>{P(F.value,ce=>{ce.complete()})},G=ce=>Ja(k.value,{name:ce}),X=()=>{P(F.value,ce=>{ce.uncomplete(),ce.disable()}),U.value.enable(),U.value.select()},re=()=>{P(F.value,ce=>{ce.enable()})},Ne=(function(){var ce=he(function*(){if(yield a.value.submit(),S.value){j.value.select(),He(()=>{a.value.scrollToFirstInvalid()});return}A.value=Se(S,te=>{te&&j.value.select(),A.value()})});return function(){return ce.apply(this,arguments)}})(),ge=ce=>{var te=H.value;P(_.value,J=>{J.deactivate()}),P(F.value,J=>{J.deactivate()}),m("select",ce,te)},ke=ce=>{P(F.value,te=>{te.index<=ce&&te.visible&&te.enable()})},je=()=>{ke(H.value.index)},oe=()=>{!K.value&&!U.value||ke(K.value!==void 0?K.value.index:U.value.index)},be=(ce,te)=>{ce.steps$!==void 0?a.value.$set(ce,"steps$",r):te(ce.$parent,te)},Ie=(ce,te)=>{ce.steps$!==void 0?a.value.$set(ce,"steps$",null):te(ce.$parent,te)};return oa("View",i),Se(_,(ce,te)=>{var J=yc(Br(ce),Br(te));P(J,pe=>{_.value[pe].deactivate()})},{deep:!1,lazy:!0}),Se(b,()=>{He(()=>{K.value,H.value.index===void 0&&U.value&&U.value.select()})},{deep:!0,lazy:!0}),Se(b,ce=>{var te=[];P(ce,(J,pe)=>{te.push(g.value[g.value.map(le=>Ar(le.name)).indexOf(Ar(pe))])}),g.value=te},{flush:"post"}),Ii(()=>{be(r.$parent,be)}),Gn(()=>{Ie(r.$parent,Ie)}),Vt(()=>{He(()=>{(H.value===void 0||H.value.index===void 0)&&(U.value.enable(),U.value.select()),je(),Se(k,()=>{oe()},{flush:"post"})})}),{form$:a,Size:n,View:i,classesInstance:u,theme:l,steps:b,elements$:_,steps$Array:g,events:d,listeners:c,exists:y,classes:s,Templates:o,template:f,steps$:F,pending:C,debouncing:T,invalid:S,done:D,busy:x,visible$:k,first$:U,last$:Y,current$:H,next$:N,previous$:I,firstInvalid$:j,firstNonDone$:M,lastEnabled$:K,isAtLastStep:Z,isAtFirstStep:W,goTo:ee,next:se,previous:Me,complete:z,step$:G,reset:X,enableAllSteps:re,submit:Ne,select:ge,enableUntil:ke,enableUntilCurrent:je,enableUntilLastEnabled:oe,on:v,off:p,fire:m}}},Ty={name:"FormStepsControls",slots:["previous","next","finish"],props:{labels:{type:Boolean,required:!1,default:!0},view:{required:!1,type:[String],default:void 0}},setup(e,t){var{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}=sn(e,t);return oa("View",n),{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}}},Fy={name:"FormStepsControl",slots:["default"],props:{type:{type:[String],required:!0},labels:{type:[Boolean],required:!1,default:!0,private:!0},view:{required:!1,type:[String],default:void 0}},setup(e,t){var{type:r,labels:a}=Q(e),{form$:n,Size:i,View:u,classesInstance:l,theme:s,classes:o,Templates:f,template:d}=sn(e,t),c=h(()=>{if(!a.value)return null;var D=g&&g.value?g.value.labels:null;switch(r.value){case"previous":return D&&D.previous?D.previous:n.value.translations.vueform.steps.previous;case"next":return D&&D.next?D.next:n.value.translations.vueform.steps.next;case"finish":return D&&D.finish?D.finish:D&&D.next?D.next:n.value.translations.vueform.steps.finish}}),{isLabelComponent:v,label:p}=Ho(e,t,{component$:n,labelDefinition:c}),m=h(()=>n.value.steps$),g=h(()=>m.value?m.value.current$:void 0),A=h(()=>{var D=g&&g.value?g.value.buttons:null;switch(r.value){case"previous":return D?D.previous!==!1:!0;case"next":return m.value&&!m.value.isAtLastStep&&(!D||D.next!==!1);case"finish":return m.value&&m.value.isAtLastStep&&(!D||D.finish!==!1)}}),y=h(()=>{switch(r.value){case"previous":return m.value&&m.value.isAtFirstStep;case"next":return g.value!==void 0&&g.value.index!==void 0&&(g.value.invalid&&n.value.shouldValidateOnChange||g.value.busy||n.value.isLoading);case"finish":return m.value.invalid&&n.value.shouldValidateOnChange||m.value.busy||n.value.submitting||n.value.isDisabled||n.value.isLoading}}),b=h(()=>r.value==="previous"?!1:n.value.isLoading||n.value.submitting),_=()=>{m.value.previous()},C=(function(){var D=he(function*(){if(n.value.shouldValidateOnStep&&(yield g.value.validate()),g.value.invalid){n.value.scrollToFirstInvalid();return}g.value.complete(),m.value.next()});return function(){return D.apply(this,arguments)}})(),T=(function(){var D=he(function*(){m.value.fire("finish"),m.value.complete(),m.value.submit()});return function(){return D.apply(this,arguments)}})(),S=D=>{switch(r.value){case"previous":_();break;case"next":C(),(D.key==="Enter"||D.key===" ")&&He(()=>{He(()=>{var x,F=g==null||(x=g.value.children$)===null||x===void 0?void 0:x.find(k=>{var U;return k.name===(g==null||(U=g.value.elements)===null||U===void 0?void 0:U[0])});F&&F.focus()})});break;case"finish":T();break}};return{form$:n,Size:i,View:u,classesInstance:l,theme:s,steps$:m,classes:o,Templates:f,template:d,visible:A,isDisabled:y,isLoading:b,current$:g,label:p,isLabelComponent:v,previous:_,next:C,finish:T,handleClick:S}}},My={name:"FormStep",emits:["activate","inactivate","enable","disable","complete"],slots:["default"],props:{name:{type:[String,Number],required:!0},label:{type:[String,Object,Function],required:!1,default:null},labels:{type:[Object],required:!1,default:()=>({})},buttons:{type:[Object],required:!1,default:()=>({})},elements:{type:[Array],required:!1,default:()=>[]},conditions:{type:[Array],required:!1,default:()=>[]},addClass:{required:!1,type:[Array,Object,String],default:null},removeClass:{required:!1,type:[Array,Object],default:null},replaceClass:{required:!1,type:[Object],default:null},overrideClass:{required:!1,type:[Array,Object,String],default:null},view:{required:!1,type:[String],default:void 0},onActivate:{type:[Function],required:!1,default:null,private:!0},onInactivate:{type:[Function],required:!1,default:null,private:!0},onDisable:{type:[Function],required:!1,default:null,private:!0},onEnable:{type:[Function],required:!1,default:null,private:!0}},setup(e,t){var{name:r,label:a,elements:n}=Q(e),i=ja().proxy,{form$:u,Size:l,View:s,classesInstance:o,theme:f,classes:d,Templates:c,template:v}=sn(e,t),{available:p,conditionList:m,updateConditions:g}=Bt(e,t,{form$:u}),{isLabelComponent:A,label:y}=Ho(e,t,{component$:u,labelDefinition:a}),{events:b,listeners:_,on:C,off:T,fire:S}=nt(e,t,{form$:u},{events:t.emits}),D=R(y.value&&typeof y.value=="object"?pi(y.value):y.value),x=R(!1),F=R(!0),k=R(!1),U=h(()=>u.value.elements$),Y=h(()=>u.value.steps$||{}),H=h(()=>a.value),N=h(()=>{var le;return Object.keys((Y==null||(le=Y.value)===null||le===void 0?void 0:le.steps$)||{}).indexOf(r.value)}),I=h(()=>N.value===0),j=h(()=>Y.value.last$.name===r.value),M=h(()=>pc(U.value,(le,_e)=>n.value.indexOf(_e)!==-1)),K=h(()=>p.value),Z=h(()=>rt(M.value,{available:!0,invalid:!0})),W=h(()=>rt(M.value,{available:!0,pending:!0})),ee=h(()=>rt(M.value,{available:!0,debouncing:!0})),se=h(()=>!rt(M.value,{available:!0,validated:!1})),Me=h(()=>W.value||ee.value),z=h(()=>k.value&&se.value&&!Z.value&&!W.value),G=h(()=>{var le;return(le=u.value.steps$)===null||le===void 0?void 0:le.steps$[r.value]}),X=(function(){var le=he(function*(){se.value&&!Z.value&&u.value.shouldValidateOnChange||(yield Zr(M.value,(function(){var _e=he(function*(Te){(!Te.validated||Te.invalid||!u.value.shouldValidateOnChange)&&Te.available&&!Te.isStatic&&(yield Te.validate())});return function(Te){return _e.apply(this,arguments)}})()))});return function(){return le.apply(this,arguments)}})(),re=()=>{x.value||(x.value=!0,S("activate"))},Ne=()=>{x.value&&(x.value=!1,S("inactivate"))},ge=()=>{F.value&&(F.value=!1,S("enable"))},ke=()=>{F.value||(F.value=!0,S("disable"))},je=()=>{k.value||(k.value=!0,S("complete"))},oe=()=>{k.value=!1},be=()=>{var le,_e;F.value||!((le=Y.value)!==null&&le!==void 0&&le.select)||((_e=Y.value)===null||_e===void 0||_e.select(G.value),P(M.value,Te=>{Te.activate()}),re())},Ie=()=>{m.value.length!=0&&Object.values(M.value).forEach(le=>{le.addConditions("step",m.value)})},ce=()=>{Object.values(M.value).forEach(le=>{le.removeConditions("step")})},te=()=>{ce(),Ie()},J=(le,_e)=>{le.steps$Array?le.steps$Array.push(i):_e(le.$parent,_e)},pe=(le,_e)=>{le.steps$Array?le.steps$Array.splice(le.steps$Array.map(Te=>Ar(Te.name)).indexOf(Ar(r.value)),1):_e(le.$parent,_e)};return Se(K,le=>{le&&N.value<u.value.steps$.current$.index&&ge()}),Se(M,()=>{x.value&&P(M.value,le=>{le.activate()})},{deep:!1,lazy:!0}),Se(y,()=>{D.value=y.value&&typeof y.value=="object"?pi(y.value):y.value}),Se(m,(le,_e)=>{le!=null&&le.length?Ie():ce()}),Vt(()=>{He(()=>{Ie()})}),Ii(()=>{J(i.$parent,J)}),Gn(()=>{ce(),pe(i.$parent,pe)}),{form$:u,Size:l,View:s,classesInstance:o,theme:f,steps$:Y,elements$:U,active:x,isDisabled:F,isFirst:I,isLast:j,completed:k,events:b,listeners:_,children$:M,visible:K,invalid:Z,pending:W,classes:d,Templates:c,template:v,available:p,baseLabel:H,debouncing:ee,validated:se,busy:Me,done:z,step$:G,isLabelComponent:A,stepLabel:D,index:N,conditionList:m,validate:X,activate:re,deactivate:Ne,enable:ge,disable:ke,complete:je,uncomplete:oe,select:be,on:C,off:T,fire:S,addChildConditions:Ie,removeChildConditions:ce,resetChildConditions:te,updateConditions:g}}},Ki=function(t,r,a){var n=i=>"".concat(ai(Ui(i.type)),"Element");return{component:n}},xc={name:"FormElements",slots:["default"],props:{view:{required:!1,type:[String],default:void 0}},setup(e,t){var{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o}=sn(e,t),{component:f}=Ki(),d=h(()=>r.value.options.schema);return{form$:r,Size:a,View:n,classesInstance:i,theme:u,classes:l,Templates:s,template:o,schema:d,component:f}}},Z8=function(t,r,a){var n=ut("el$");return{el$:n}},Pr=function(t,r,a){var n=r.name,{form$:i}=ct(),{el$:u}=Z8(),{theme:l}=vt(),{Size:s}=yy(),{View:o}=by(t,r),f=h(()=>ja().proxy),d=h(()=>new Lo({component:n.value,component$:f,theme:l.value,config:i.value.$vueform.config,templates:v.value,view:o.value,merge:[i.value.options,u.value]})),c=h(()=>d.value.classes),v=h(()=>u.value.Templates),p=h(()=>o.value&&v.value["".concat(n.value,"_").concat(o.value)]?v.value["".concat(n.value,"_").concat(o.value)]:v.value[n.value]);return{el$:u,form$:i,theme:l,Size:s,View:o,classesInstance:d,classes:c,Templates:v,template:p}},ky={name:"ElementLayout",slots:["field","label","info","description","before","between","after"],props:{multiple:{type:[Boolean],required:!1,default:!1},view:{type:[String],required:!1,default:void 0}},setup(e,t){var{form$:r,el$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=h(()=>a.value.visible);return{el$:a,form$:r,Size:n,View:i,classesInstance:u,theme:f,Templates:s,template:o,classes:l,visible:d}}},By={name:"ElementLayoutInline",slots:["field","label","info","description","before","between","after"],setup(e,t){var{form$:r,el$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=h(()=>a.value.visible);return{el$:a,form$:r,Size:n,View:i,classesInstance:u,theme:f,Templates:s,template:o,classes:l,visible:d}}},Py={name:"ElementLoader",setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t);return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o}}},qy={name:"ElementLabelFloating",props:{visible:{type:Boolean,default:!1}},setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=ut("config$"),c=h(()=>{var v,p=jt(r.value.floating||(a.value.options.floatPlaceholders?r.value.placeholder:null),d.value,a.value);return r.value.isRequired&&((v=a.value.options.showRequired)===null||v===void 0?void 0:v.indexOf("floating"))!==-1&&(p+="*"),a.value.$vueform.sanitize(p)});return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,floating:c}}},Ny={name:"ElementLabel",slots:["default","info"],setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),{label:d,isLabelComponent:c}=Ho(e,t,{labelDefinition:h(()=>r.value.label),component$:r}),v=h(()=>r.value.fieldId),p=h(()=>r.value.labelId),m=h(()=>r.value.hasLabel),g=h(()=>{var A,y,b;return!!((A=r.value.slots)!==null&&A!==void 0&&A.label||(y=r.value.$slots)!==null&&y!==void 0&&y.label||a.value.$vueform.vueVersion===2&&(b=r.value.$scopedSlots)!==null&&b!==void 0&&b.label)});return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,label:d,isLabelComponent:c,name:v,id:p,hasLabel:m,isSlot:g}}};function Ss(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}var Ry={name:"ElementInfo",slots:["default"],setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=ut("config$"),c=R(r.value.infoPosition),v=h(()=>a.value.$vueform.sanitize(jt(r.value.info,d.value,a.value))),p=h(()=>r.value.infoId),m=h(()=>{var A,y,b;return!!((A=r.value.slots)!==null&&A!==void 0&&A.info||(y=r.value.$slots)!==null&&y!==void 0&&y.info||a.value.$vueform.vueVersion===2&&(b=r.value.$scopedSlots)!==null&&b!==void 0&&b.info)}),g=(function(){var A=he(function*(y){if(c.value===r.value.infoPosition){yield He();var b=y.target.querySelector("div");b&&(Ss(b)||(c.value="right"),yield He(),Ss(b)||(c.value="top"),yield He(),Ss(b)||(c.value="left"),yield He(),Ss(b)||(c.value="bottom"))}});return function(b){return A.apply(this,arguments)}})();return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,info:v,isSlot:m,position:c,id:p,handleMouseOver:g}}},Iy={name:"ElementDescription",slots:["default"],setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=ut("config$"),c=h(()=>a.value.$vueform.sanitize(jt(r.value.description,d.value,a.value))),v=h(()=>r.value.descriptionId),p=h(()=>{var m,g,A;return!!((m=r.value.slots)!==null&&m!==void 0&&m.description||(g=r.value.$slots)!==null&&g!==void 0&&g.description||a.value.$vueform.vueVersion===2&&(A=r.value.$scopedSlots)!==null&&A!==void 0&&A.description)});return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,description:c,isSlot:p,id:v}}},Ly={name:"ElementError",setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=h(()=>a.value.$vueform.sanitize(r.value.error)),c=h(()=>d.value&&r.value.displayErrors),v=h(()=>r.value.errorId);return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,error:d,showError:c,id:v}}},jy={name:"ElementMessage",setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=h(()=>a.value.$vueform.sanitize(r.value.messageBag?r.value.messageBag.message:null));return{el$:r,form$:a,Size:n,View:i,classesInstance:u,theme:f,classes:l,Templates:s,template:o,message:d}}},Uy={name:"ElementRequired",slots:["default"],setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),d=h(()=>{var v;return r.value.isRequired&&((v=a.value.options.showRequired)===null||v===void 0?void 0:v.indexOf("label"))!==-1}),c=h(()=>{var v,p,m;return!!((v=r.value.slots)!==null&&v!==void 0&&v.required||(p=r.value.$slots)!==null&&p!==void 0&&p.required||a.value.$vueform.vueVersion===2&&(m=r.value.$scopedSlots)!==null&&m!==void 0&&m.required)});return{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f,visible:d,isSlot:c}}},Yy={name:"ElementText",slots:["default"],props:{type:{type:String,required:!0}},setup(e,t){var{type:r}=Q(e),{el$:a,form$:n,Size:i,View:u,classesInstance:l,classes:s,Templates:o,template:f,theme:d}=Pr(e,t),c=ut("config$"),v=h(()=>n.value.$vueform.sanitize(jt(a.value[r.value],c.value,n.value))),p=h(()=>{var m,g,A;return!!((m=a.value.slots)!==null&&m!==void 0&&m[r.value]||(g=a.value.$slots)!==null&&g!==void 0&&g[r.value]||n.value.$vueform.vueVersion===2&&(A=a.value.$scopedSlots)!==null&&A!==void 0&&A[r.value])});return{el$:a,form$:n,Size:i,View:u,classesInstance:l,theme:d,classes:s,Templates:o,template:f,content:v,isSlot:p}}},zy={name:"DragAndDrop",emits:["click","drop"],props:{title:{type:String,required:!0},description:{type:String,required:!0},disabled:{type:Boolean,required:!1,default:!1}},setup(e,t){var{disabled:r}=Q(e),{el$:a,form$:n,Size:i,View:u,classesInstance:l,classes:s,Templates:o,template:f,theme:d}=Pr(e,t),c=R(!1),v=R(null),p=()=>{t.emit("click")};return Vt(()=>{P(["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"],m=>{v.value.addEventListener(m,g=>{g.preventDefault(),g.stopPropagation()})}),v.value.addEventListener("drop",m=>{r.value||(t.emit("drop",m),c.value=!1)}),v.value.addEventListener("dragover",m=>{r.value||c.value!==!0&&(c.value=!0)}),v.value.addEventListener("dragleave",m=>{r.value||(c.value=!1)}),v.value.addEventListener("dragend",m=>{r.value||(c.value=!1)})}),{el$:a,form$:n,Size:i,View:u,classesInstance:l,classes:s,Templates:o,template:f,theme:d,dragging:c,area:v,handleClick:p}}},Vy={name:"ElementAddon",slots:["default"],props:{type:{required:!0,type:String}},setup(e,t){var{type:r}=Q(e),{form$:a,el$:n,Size:i,View:u,classesInstance:l,classes:s,Templates:o,template:f,theme:d}=Pr(e,t),c=ut("config$"),v=h(()=>n.value.addons[r.value]),p=h(()=>{var y=m.value?v.value(n.value):v.value||null;return g.value||(y=jt(y,c.value,a.value)),a.value.$vueform.sanitize(y)}),m=h(()=>typeof v.value=="function"&&(!v.value.prototype||!v.value.prototype.constructor||v.value.prototype.constructor&&v.value.prototype.constructor.name!=="VueComponent")),g=h(()=>Tu(v.value)),A=h(()=>{var y,b,_;return!!((y=n.value.slots)!==null&&y!==void 0&&y["addon-".concat(r.value)]||(b=n.value.$slots)!==null&&b!==void 0&&b["addon-".concat(r.value)]||a.value.$vueform.vueVersion===2&&(_=n.value.$scopedSlots)!==null&&_!==void 0&&_["addon-".concat(r.value)]||n.value.slots["addon-".concat(r.value)])});return{el$:n,form$:a,theme:d,Size:i,View:u,classesInstance:l,Templates:o,template:f,classes:s,addon:p,isAddonComponent:g,isSlot:A}}},Wy={name:"ElementAddonOptions",emits:["select","open","close"],props:{options:{type:[Array],required:!1,default:()=>[]},placeholder:{type:[String,Number,Object],required:!1,default:""},relaxed:{type:[Boolean],required:!1,default:!1},position:{type:[String],required:!1,default:"over"},aria:{type:[Object],required:!1,default:()=>({})}},setup(e,t){var{options:r,position:a}=Q(e),{form$:n,el$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c}=Pr(e,t),{events:v,listeners:p,on:m,off:g,fire:A}=nt(e,t,{form$:n},{events:t.emits}),y=R(!1),b=R(null),_=R(null),C=R(void 0),T=R(void 0),S=R(void 0),D=R(void 0),x=R(""),F=R(null),k=R(null),U=R(!1),Y=R(!1),H=R({}),N=R({}),I=h(()=>x.value?r.value.find(oe=>oe.label.toLowerCase().startsWith(x.value.toString().toLowerCase())):{}),j=h(()=>({left:C.value!==void 0?"".concat(C.value,"px"):void 0,right:T.value!==void 0?"".concat(T.value,"px"):void 0,top:S.value!==void 0?"".concat(S.value,"px"):void 0,bottom:D.value!==void 0?"".concat(D.value,"px"):"auto"})),M=()=>{S.value=void 0,D.value=void 0,Y.value=!1,y.value=!1,document.removeEventListener("click",Ne),document.removeEventListener("keydown",ge),window.removeEventListener("resize",ke),window.removeEventListener("scroll",je),x.value="",t.emit("close")},K=(function(){var oe=he(function*(){y.value=!0,yield He();var be=b.value.getBoundingClientRect();b.value.closest('[dir="rtl"]')?(C.value=void 0,T.value=window.innerWidth-(be.left+be.width)):(T.value=void 0,C.value=be.left),ee(),W(),setTimeout(()=>{document.addEventListener("click",Ne),document.addEventListener("keydown",ge),window.addEventListener("resize",ke),window.addEventListener("scroll",je)},0),t.emit("open")});return function(){return oe.apply(this,arguments)}})(),Z=oe=>{if(Y.value){var be=b.value.getBoundingClientRect(),Ie=oe.getBoundingClientRect(),ce=be.top+be.height/2,te=Ie.top+Ie.height/2,J=ce-te,pe=_.value.scrollTop-J;_.value.scrollTop=pe}else{var le=oe.getBoundingClientRect(),_e=_.value.getBoundingClientRect(),Te=le.top-_e.top;_.value.scrollTop=Te+_.value.scrollTop}},W=(function(){var oe=he(function*(){yield He();var be=document.querySelector('[data-dropdown-for="'.concat(i.value.fieldId,'"] [data-selected="true"]'));be&&Z(be)});return function(){return oe.apply(this,arguments)}})(),ee=()=>{if(_.value.getBoundingClientRect().height>=window.innerHeight-32)Y.value=!0,S.value=16,D.value=16;else{Y.value=!1;var oe=b.value.getBoundingClientRect(),be=oe.top;a.value==="bottom"?be+=oe.height:a.value,S.value=be,_.value.getBoundingClientRect().height>window.innerHeight-b.value.getBoundingClientRect().top-16?D.value=16:D.value=void 0}},se=function(be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;H.value=be,Ie&&A("select",be)},Me=()=>{H.value={},A("select",{})},z=oe=>{U.value||(N.value=oe)},G=oe=>{se(oe),M(),i.value.input.focus()},X=oe=>{K()},re=(function(){var oe=he(function*(be){if(!y.value&&["Enter"," ","ArrowDown","ArrowUp"].indexOf(be.key)!==-1){be.preventDefault(),K(),yield He();var Ie=H.value.index!==void 0?H.value.index:N.value.index||0,ce=document.querySelector('[data-dropdown-for="'.concat(i.value.fieldId,'"] [data-index="').concat(Ie,'"]'));N.value=r.value.find(te=>te.index===Ie),ce.focus()}});return function(Ie){return oe.apply(this,arguments)}})(),Ne=oe=>{var be;(be=_.value)!==null&&be!==void 0&&be.contains(oe.target)||M()},ge=oe=>{var be;if(oe.key==="Escape"){M(),b.value.focus();return}if(["Enter"," "].indexOf(oe.key)!==-1&&((be=N.value)===null||be===void 0?void 0:be.index)!==void 0){oe.preventDefault(),se(N.value),M(),i.value.input.focus();return}if(oe.key==="Tab"){oe.preventDefault(),M(),i.value.input.focus();return}if(oe.key==="ArrowDown"){oe.preventDefault();var Ie=N.value.index===void 0?-1:N.value.index,ce=Ie+1;r.value.length<ce+1&&(ce=0),U.value=!0,N.value=r.value.find(_e=>_e.index===ce);var te=document.querySelector('[data-dropdown-for="'.concat(i.value.fieldId,'"] [data-index="').concat(ce,'"]'));Z(te),te.focus(),setTimeout(()=>{U.value=!1},2);return}if(oe.key==="ArrowUp"){oe.preventDefault();var J=N.value.index||0,pe=J-1;pe<0&&(pe=r.value.length-1),U.value=!0,N.value=r.value.find(_e=>_e.index===pe);var le=document.querySelector('[data-dropdown-for="'.concat(i.value.fieldId,'"] [data-index="').concat(pe,'"]'));Z(le),le.focus(),setTimeout(()=>{U.value=!1},0);return}if(oe.key==="Backspace"&&x.value.length){x.value=x.value.slice(0,-1);return}oe.key.length===1&&!oe.ctrlKey&&!oe.metaKey&&!oe.altKey&&(x.value+=oe.key,U.value=!0,F.value&&clearTimeout(F.value),F.value=setTimeout(()=>{x.value=""},1e3),setTimeout(()=>{U.value=!1},0))},ke=()=>{M()},je=()=>{k.value&&clearTimeout(k.value),k.value=setTimeout(()=>{ee()},50)};return Gn(()=>{M()}),Se(I,oe=>{if(!(!oe||oe.index===void 0)){var be=document.querySelector('[data-dropdown-for="'.concat(i.value.fieldId,'"] [data-index="').concat(oe.index,'"]'));Z(be),N.value=oe,be.focus()}}),{form$:n,el$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c,events:v,listeners:p,on:m,off:g,fire:A,isOpen:y,selector:b,dropdown:_,left:C,right:T,top:S,bottom:D,style:j,search:x,searchTimeout:F,hoverDisabled:U,selected:H,pointed:N,focused:I,close:M,scrollToOption:Z,scrollToSelected:W,selectOption:se,reset:Me,handleOptionPoint:z,handleOptionClick:G,handleSelectorClick:X,handleSelectorKeydown:re,handleClickOutside:Ne,handleKeydown:ge,handleResize:ke}}},Bf=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],_u={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return typeof console<"u"&&void 0},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var r=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Rl={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},sa=function(e,t){return t===void 0&&(t=2),("000"+e).slice(t*-1)},Pa=function(e){return e===!0?1:0};function ap(e,t){var r;return function(){var a=this,n=arguments;clearTimeout(r),r=setTimeout(function(){return e.apply(a,n)},t)}}var Pf=function(e){return e instanceof Array?e:[e]};function Qr(e,t,r){if(r===!0)return e.classList.add(t);e.classList.remove(t)}function St(e,t,r){var a=window.document.createElement(e);return t=t||"",r=r||"",a.className=t,r!==void 0&&(a.textContent=r),a}function Ds(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Hy(e,t){if(t(e))return e;if(e.parentNode)return Hy(e.parentNode,t)}function Cs(e,t){var r=St("div","numInputWrapper"),a=St("input","numInput "+e),n=St("span","arrowUp"),i=St("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?a.type="number":(a.type="text",a.pattern="\\d*"),t!==void 0)for(var u in t)a.setAttribute(u,t[u]);return r.appendChild(a),r.appendChild(n),r.appendChild(i),r}function Aa(e){try{if(typeof e.composedPath=="function"){var t=e.composedPath();return t[0]}return e.target}catch{return e.target}}var qf=function(){},ao=function(e,t,r){return r.months[t?"shorthand":"longhand"][e]},X8={D:qf,F:function(e,t,r){e.setMonth(r.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,r){e.setHours(e.getHours()%12+12*Pa(new RegExp(r.amPM[1],"i").test(t)))},M:function(e,t,r){e.setMonth(r.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(parseFloat(t)*1e3)},W:function(e,t,r){var a=parseInt(t),n=new Date(e.getFullYear(),0,2+(a-1)*7,0,0,0,0);return n.setDate(n.getDate()-n.getDay()+r.firstDayOfWeek),n},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:qf,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:qf,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},ki={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Cl={Z:function(e){return e.toISOString()},D:function(e,t,r){return t.weekdays.shorthand[Cl.w(e,t,r)]},F:function(e,t,r){return ao(Cl.n(e,t,r)-1,!1,t)},G:function(e,t,r){return sa(Cl.h(e,t,r))},H:function(e){return sa(e.getHours())},J:function(e,t){return t.ordinal!==void 0?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Pa(e.getHours()>11)]},M:function(e,t){return ao(e.getMonth(),!0,t)},S:function(e){return sa(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,r){return r.getWeek(e)},Y:function(e){return sa(e.getFullYear(),4)},d:function(e){return sa(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return sa(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return sa(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},Gy=function(e){var t=e.config,r=t===void 0?_u:t,a=e.l10n,n=a===void 0?Rl:a,i=e.isMobile,u=i===void 0?!1:i;return function(l,s,o){var f=o||n;return r.formatDate!==void 0&&!u?r.formatDate(l,s,f):s.split("").map(function(d,c,v){return Cl[d]&&v[c-1]!=="\\"?Cl[d](l,f,r):d!=="\\"?d:""}).join("")}},wd=function(e){var t=e.config,r=t===void 0?_u:t,a=e.l10n,n=a===void 0?Rl:a;return function(i,u,l,s){if(!(i!==0&&!i)){var o=s||n,f,d=i;if(i instanceof Date)f=new Date(i.getTime());else if(typeof i!="string"&&i.toFixed!==void 0)f=new Date(i);else if(typeof i=="string"){var c=u||(r||_u).dateFormat,v=String(i).trim();if(v==="today")f=new Date,l=!0;else if(r&&r.parseDate)f=r.parseDate(i,c);else if(/Z$/.test(v)||/GMT$/.test(v))f=new Date(i);else{for(var p=void 0,m=[],g=0,A=0,y="";g<c.length;g++){var b=c[g],_=b==="\\",C=c[g-1]==="\\"||_;if(ki[b]&&!C){y+=ki[b];var T=new RegExp(y).exec(i);T&&(p=!0)&&m[b!=="Y"?"push":"unshift"]({fn:X8[b],val:T[++A]})}else _||(y+=".")}f=!r||!r.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),m.forEach(function(S){var D=S.fn,x=S.val;return f=D(f,x,o)||f}),f=p?f:void 0}}if(!(f instanceof Date&&!isNaN(f.getTime()))){r.errorHandler(new Error("Invalid date provided: "+d));return}return l===!0&&f.setHours(0,0,0,0),f}}};function wa(e,t,r){return r===void 0&&(r=!0),r!==!1?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var J8=function(e,t,r){return e>Math.min(t,r)&&e<Math.max(t,r)},Nf=function(e,t,r){return e*3600+t*60+r},Q8=function(e){var t=Math.floor(e/3600),r=(e-t*3600)/60;return[t,r,e-t*3600-r*60]},ej={DAY:864e5};function Rf(e){var t=e.defaultHour,r=e.defaultMinute,a=e.defaultSeconds;if(e.minDate!==void 0){var n=e.minDate.getHours(),i=e.minDate.getMinutes(),u=e.minDate.getSeconds();t<n&&(t=n),t===n&&r<i&&(r=i),t===n&&r===i&&a<u&&(a=e.minDate.getSeconds())}if(e.maxDate!==void 0){var l=e.maxDate.getHours(),s=e.maxDate.getMinutes();t=Math.min(t,l),t===l&&(r=Math.min(s,r)),t===l&&r===s&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:r,seconds:a}}typeof Object.assign!="function"&&(Object.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(l){l&&Object.keys(l).forEach(function(s){return e[s]=l[s]})},n=0,i=t;n<i.length;n++){var u=i[n];a(u)}return e});var Hr=function(){return Hr=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Hr.apply(this,arguments)},np=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var a=Array(e),n=0,t=0;t<r;t++)for(var i=arguments[t],u=0,l=i.length;u<l;u++,n++)a[n]=i[u];return a},tj=300;function rj(e,t){var r={config:Hr(Hr({},_u),xr.defaultConfig),l10n:Rl};r.parseDate=wd({config:r.config,l10n:r.l10n}),r._handlers=[],r.pluginElements=[],r.loadedPlugins=[],r._bind=m,r._setHoursFromDate=c,r._positionCalendar=pe,r.changeMonth=W,r.changeYear=X,r.clear=ee,r.close=se,r.onMouseOver=je,r._createElement=St,r.createDay=T,r.destroy=Me,r.isEnabled=re,r.jumpToDate=y,r.updateValue=Qe,r.open=be,r.redraw=Te,r.set=Ue,r.setDate=It,r.toggle=Ur;function a(){r.utils={getDaysInMonth:function(w,E){return w===void 0&&(w=r.currentMonth),E===void 0&&(E=r.currentYear),w===1&&(E%4===0&&E%100!==0||E%400===0)?29:r.l10n.daysInMonth[w]}}}function n(){r.element=r.input=e,r.isOpen=!1,ce(),J(),kt(),fn(),a(),r.isMobile||C(),A(),(r.selectedDates.length||r.config.noCalendar)&&(r.config.enableTime&&c(r.config.noCalendar?r.latestSelectedDateObj:void 0),Qe(!1)),l();var w=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!r.isMobile&&w&&pe(),at("onReady")}function i(){var w;return((w=r.calendarContainer)===null||w===void 0?void 0:w.getRootNode()).activeElement||document.activeElement}function u(w){return w.bind(r)}function l(){var w=r.config;w.weekNumbers===!1&&w.showMonths===1||w.noCalendar!==!0&&window.requestAnimationFrame(function(){if(r.calendarContainer!==void 0&&(r.calendarContainer.style.visibility="hidden",r.calendarContainer.style.display="block"),r.daysContainer!==void 0){var E=(r.days.offsetWidth+1)*w.showMonths;r.daysContainer.style.width=E+"px",r.calendarContainer.style.width=E+(r.weekWrapper!==void 0?r.weekWrapper.offsetWidth:0)+"px",r.calendarContainer.style.removeProperty("visibility"),r.calendarContainer.style.removeProperty("display")}})}function s(w){if(r.selectedDates.length===0){var E=r.config.minDate===void 0||wa(new Date,r.config.minDate)>=0?new Date:new Date(r.config.minDate.getTime()),O=Rf(r.config);E.setHours(O.hours,O.minutes,O.seconds,E.getMilliseconds()),r.selectedDates=[E],r.latestSelectedDateObj=E}w!==void 0&&w.type!=="blur"&&Mr(w);var q=r._input.value;d(),Qe(),r._input.value!==q&&r._debouncedChange()}function o(w,E){return w%12+12*Pa(E===r.l10n.amPM[1])}function f(w){switch(w%24){case 0:case 12:return 12;default:return w%12}}function d(){if(!(r.hourElement===void 0||r.minuteElement===void 0)){var w=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,E=(parseInt(r.minuteElement.value,10)||0)%60,O=r.secondElement!==void 0?(parseInt(r.secondElement.value,10)||0)%60:0;r.amPM!==void 0&&(w=o(w,r.amPM.textContent));var q=r.config.minTime!==void 0||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&wa(r.latestSelectedDateObj,r.config.minDate,!0)===0,ie=r.config.maxTime!==void 0||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&wa(r.latestSelectedDateObj,r.config.maxDate,!0)===0;if(r.config.maxTime!==void 0&&r.config.minTime!==void 0&&r.config.minTime>r.config.maxTime){var de=Nf(r.config.minTime.getHours(),r.config.minTime.getMinutes(),r.config.minTime.getSeconds()),Re=Nf(r.config.maxTime.getHours(),r.config.maxTime.getMinutes(),r.config.maxTime.getSeconds()),me=Nf(w,E,O);if(me>Re&&me<de){var We=Q8(de);w=We[0],E=We[1],O=We[2]}}else{if(ie){var we=r.config.maxTime!==void 0?r.config.maxTime:r.config.maxDate;w=Math.min(w,we.getHours()),w===we.getHours()&&(E=Math.min(E,we.getMinutes())),E===we.getMinutes()&&(O=Math.min(O,we.getSeconds()))}if(q){var Ce=r.config.minTime!==void 0?r.config.minTime:r.config.minDate;w=Math.max(w,Ce.getHours()),w===Ce.getHours()&&E<Ce.getMinutes()&&(E=Ce.getMinutes()),E===Ce.getMinutes()&&(O=Math.max(O,Ce.getSeconds()))}}v(w,E,O)}}function c(w){var E=w||r.latestSelectedDateObj;E&&E instanceof Date&&v(E.getHours(),E.getMinutes(),E.getSeconds())}function v(w,E,O){r.latestSelectedDateObj!==void 0&&r.latestSelectedDateObj.setHours(w%24,E,O||0,0),!(!r.hourElement||!r.minuteElement||r.isMobile)&&(r.hourElement.value=sa(r.config.time_24hr?w:(12+w)%12+12*Pa(w%12===0)),r.minuteElement.value=sa(E),r.amPM!==void 0&&(r.amPM.textContent=r.l10n.amPM[Pa(w>=12)]),r.secondElement!==void 0&&(r.secondElement.value=sa(O)))}function p(w){var E=Aa(w),O=parseInt(E.value)+(w.delta||0);(O/1e3>1||w.key==="Enter"&&!/[^\d]/.test(O.toString()))&&X(O)}function m(w,E,O,q){if(E instanceof Array)return E.forEach(function(ie){return m(w,ie,O,q)});if(w instanceof Array)return w.forEach(function(ie){return m(ie,E,O,q)});w.addEventListener(E,O,q),r._handlers.push({remove:function(){return w.removeEventListener(E,O,q)}})}function g(){at("onChange")}function A(){if(r.config.wrap&&["open","close","toggle","clear"].forEach(function(O){Array.prototype.forEach.call(r.element.querySelectorAll("[data-"+O+"]"),function(q){return m(q,"click",r[O])})}),r.isMobile){$a();return}var w=ap(oe,50);if(r._debouncedChange=ap(g,tj),r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(r.daysContainer,"mouseover",function(O){r.config.mode==="range"&&je(Aa(O))}),m(r._input,"keydown",ke),r.calendarContainer!==void 0&&m(r.calendarContainer,"keydown",ke),!r.config.inline&&!r.config.static&&m(window,"resize",w),window.ontouchstart!==void 0?m(window.document,"touchstart",G):m(window.document,"mousedown",G),m(window.document,"focus",G,{capture:!0}),r.config.clickOpens===!0&&(m(r._input,"focus",r.open),m(r._input,"click",r.open)),r.daysContainer!==void 0&&(m(r.monthNav,"click",ma),m(r.monthNav,["keyup","increment"],p),m(r.daysContainer,"click",jr)),r.timeContainer!==void 0&&r.minuteElement!==void 0&&r.hourElement!==void 0){var E=function(O){return Aa(O).select()};m(r.timeContainer,["increment"],s),m(r.timeContainer,"blur",s,{capture:!0}),m(r.timeContainer,"click",b),m([r.hourElement,r.minuteElement],["focus","click"],E),r.secondElement!==void 0&&m(r.secondElement,"focus",function(){return r.secondElement&&r.secondElement.select()}),r.amPM!==void 0&&m(r.amPM,"click",function(O){s(O)})}r.config.allowInput&&m(r._input,"blur",ge)}function y(w,E){var O=w!==void 0?r.parseDate(w):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate<r.now?r.config.maxDate:r.now),q=r.currentYear,ie=r.currentMonth;try{O!==void 0&&(r.currentYear=O.getFullYear(),r.currentMonth=O.getMonth())}catch(de){de.message="Invalid date supplied: "+O,r.config.errorHandler(de)}E&&r.currentYear!==q&&(at("onYearChange"),Y()),E&&(r.currentYear!==q||r.currentMonth!==ie)&&at("onMonthChange"),r.redraw()}function b(w){var E=Aa(w);~E.className.indexOf("arrow")&&_(w,E.classList.contains("arrowUp")?1:-1)}function _(w,E,O){var q=w&&Aa(w),ie=O||q&&q.parentNode&&q.parentNode.firstChild,de=Yr("increment");de.delta=E,ie&&ie.dispatchEvent(de)}function C(){var w=window.document.createDocumentFragment();if(r.calendarContainer=St("div","flatpickr-calendar"),r.calendarContainer.tabIndex=-1,!r.config.noCalendar){if(w.appendChild(I()),r.innerContainer=St("div","flatpickr-innerContainer"),r.config.weekNumbers){var E=Z(),O=E.weekWrapper,q=E.weekNumbers;r.innerContainer.appendChild(O),r.weekNumbers=q,r.weekWrapper=O}r.rContainer=St("div","flatpickr-rContainer"),r.rContainer.appendChild(M()),r.daysContainer||(r.daysContainer=St("div","flatpickr-days"),r.daysContainer.tabIndex=-1),U(),r.rContainer.appendChild(r.daysContainer),r.innerContainer.appendChild(r.rContainer),w.appendChild(r.innerContainer)}r.config.enableTime&&w.appendChild(j()),Qr(r.calendarContainer,"rangeMode",r.config.mode==="range"),Qr(r.calendarContainer,"animate",r.config.animate===!0),Qr(r.calendarContainer,"multiMonth",r.config.showMonths>1),r.calendarContainer.appendChild(w);var ie=r.config.appendTo!==void 0&&r.config.appendTo.nodeType!==void 0;if((r.config.inline||r.config.static)&&(r.calendarContainer.classList.add(r.config.inline?"inline":"static"),r.config.inline&&(!ie&&r.element.parentNode?r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling):r.config.appendTo!==void 0&&r.config.appendTo.appendChild(r.calendarContainer)),r.config.static)){var de=St("div","flatpickr-wrapper");r.element.parentNode&&r.element.parentNode.insertBefore(de,r.element),de.appendChild(r.element),r.altInput&&de.appendChild(r.altInput),de.appendChild(r.calendarContainer)}!r.config.static&&!r.config.inline&&(r.config.appendTo!==void 0?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}function T(w,E,O,q){var ie=re(E,!0),de=St("span",w,E.getDate().toString());return de.dateObj=E,de.$i=q,de.setAttribute("aria-label",r.formatDate(E,r.config.ariaDateFormat)),w.indexOf("hidden")===-1&&wa(E,r.now)===0&&(r.todayDateElem=de,de.classList.add("today"),de.setAttribute("aria-current","date")),ie?(de.tabIndex=-1,ha(E)&&(de.classList.add("selected"),r.selectedDateElem=de,r.config.mode==="range"&&(Qr(de,"startRange",r.selectedDates[0]&&wa(E,r.selectedDates[0],!0)===0),Qr(de,"endRange",r.selectedDates[1]&&wa(E,r.selectedDates[1],!0)===0),w==="nextMonthDay"&&de.classList.add("inRange")))):de.classList.add("flatpickr-disabled"),r.config.mode==="range"&&Ha(E)&&!ha(E)&&de.classList.add("inRange"),r.weekNumbers&&r.config.showMonths===1&&w!=="prevMonthDay"&&q%7===6&&r.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+r.config.getWeek(E)+"</span>"),at("onDayCreate",de),de}function S(w){w.focus(),r.config.mode==="range"&&je(w)}function D(w){for(var E=w>0?0:r.config.showMonths-1,O=w>0?r.config.showMonths:-1,q=E;q!=O;q+=w)for(var ie=r.daysContainer.children[q],de=w>0?0:ie.children.length-1,Re=w>0?ie.children.length:-1,me=de;me!=Re;me+=w){var We=ie.children[me];if(We.className.indexOf("hidden")===-1&&re(We.dateObj))return We}}function x(w,E){for(var O=w.className.indexOf("Month")===-1?w.dateObj.getMonth():r.currentMonth,q=E>0?r.config.showMonths:-1,ie=E>0?1:-1,de=O-r.currentMonth;de!=q;de+=ie)for(var Re=r.daysContainer.children[de],me=O-r.currentMonth===de?w.$i+E:E<0?Re.children.length-1:0,We=Re.children.length,we=me;we>=0&&we<We&&we!=(E>0?We:-1);we+=ie){var Ce=Re.children[we];if(Ce.className.indexOf("hidden")===-1&&re(Ce.dateObj)&&Math.abs(w.$i-we)>=Math.abs(E))return S(Ce)}r.changeMonth(ie),F(D(ie),0)}function F(w,E){var O=i(),q=Ne(O||document.body),ie=w!==void 0?w:q?O:r.selectedDateElem!==void 0&&Ne(r.selectedDateElem)?r.selectedDateElem:r.todayDateElem!==void 0&&Ne(r.todayDateElem)?r.todayDateElem:D(E>0?1:-1);ie===void 0?r._input.focus():q?x(ie,E):S(ie)}function k(w,E){for(var O=(new Date(w,E,1).getDay()-r.l10n.firstDayOfWeek+7)%7,q=r.utils.getDaysInMonth((E-1+12)%12,w),ie=r.utils.getDaysInMonth(E,w),de=window.document.createDocumentFragment(),Re=r.config.showMonths>1,me=Re?"prevMonthDay hidden":"prevMonthDay",We=Re?"nextMonthDay hidden":"nextMonthDay",we=q+1-O,Ce=0;we<=q;we++,Ce++)de.appendChild(T("flatpickr-day "+me,new Date(w,E-1,we),we,Ce));for(we=1;we<=ie;we++,Ce++)de.appendChild(T("flatpickr-day",new Date(w,E,we),we,Ce));for(var Xe=ie+1;Xe<=42-O&&(r.config.showMonths===1||Ce%7!==0);Xe++,Ce++)de.appendChild(T("flatpickr-day "+We,new Date(w,E+1,Xe%ie),Xe,Ce));var _r=St("div","dayContainer");return _r.appendChild(de),_r}function U(){if(r.daysContainer!==void 0){Ds(r.daysContainer),r.weekNumbers&&Ds(r.weekNumbers);for(var w=document.createDocumentFragment(),E=0;E<r.config.showMonths;E++){var O=new Date(r.currentYear,r.currentMonth,1);O.setMonth(r.currentMonth+E),w.appendChild(k(O.getFullYear(),O.getMonth()))}r.daysContainer.appendChild(w),r.days=r.daysContainer.firstChild,r.config.mode==="range"&&r.selectedDates.length===1&&je()}}function Y(){if(!(r.config.showMonths>1||r.config.monthSelectorType!=="dropdown")){var w=function(q){return r.config.minDate!==void 0&&r.currentYear===r.config.minDate.getFullYear()&&q<r.config.minDate.getMonth()?!1:!(r.config.maxDate!==void 0&&r.currentYear===r.config.maxDate.getFullYear()&&q>r.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1,r.monthsDropdownContainer.innerHTML="";for(var E=0;E<12;E++)if(w(E)){var O=St("option","flatpickr-monthDropdown-month");O.value=new Date(r.currentYear,E).getMonth().toString(),O.textContent=ao(E,r.config.shorthandCurrentMonth,r.l10n),O.tabIndex=-1,r.currentMonth===E&&(O.selected=!0),r.monthsDropdownContainer.appendChild(O)}}}function H(){var w=St("div","flatpickr-month"),E=window.document.createDocumentFragment(),O;r.config.showMonths>1||r.config.monthSelectorType==="static"?O=St("span","cur-month"):(r.monthsDropdownContainer=St("select","flatpickr-monthDropdown-months"),r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel),m(r.monthsDropdownContainer,"change",function(Re){var me=Aa(Re),We=parseInt(me.value,10);r.changeMonth(We-r.currentMonth),at("onMonthChange")}),Y(),O=r.monthsDropdownContainer);var q=Cs("cur-year",{tabindex:"-1"}),ie=q.getElementsByTagName("input")[0];ie.setAttribute("aria-label",r.l10n.yearAriaLabel),r.config.minDate&&ie.setAttribute("min",r.config.minDate.getFullYear().toString()),r.config.maxDate&&(ie.setAttribute("max",r.config.maxDate.getFullYear().toString()),ie.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear());var de=St("div","flatpickr-current-month");return de.appendChild(O),de.appendChild(q),E.appendChild(de),w.appendChild(E),{container:w,yearElement:ie,monthElement:O}}function N(){Ds(r.monthNav),r.monthNav.appendChild(r.prevMonthNav),r.config.showMonths&&(r.yearElements=[],r.monthElements=[]);for(var w=r.config.showMonths;w--;){var E=H();r.yearElements.push(E.yearElement),r.monthElements.push(E.monthElement),r.monthNav.appendChild(E.container)}r.monthNav.appendChild(r.nextMonthNav)}function I(){return r.monthNav=St("div","flatpickr-months"),r.yearElements=[],r.monthElements=[],r.prevMonthNav=St("span","flatpickr-prev-month"),r.prevMonthNav.innerHTML=r.config.prevArrow,r.nextMonthNav=St("span","flatpickr-next-month"),r.nextMonthNav.innerHTML=r.config.nextArrow,N(),Object.defineProperty(r,"_hidePrevMonthArrow",{get:function(){return r.__hidePrevMonthArrow},set:function(w){r.__hidePrevMonthArrow!==w&&(Qr(r.prevMonthNav,"flatpickr-disabled",w),r.__hidePrevMonthArrow=w)}}),Object.defineProperty(r,"_hideNextMonthArrow",{get:function(){return r.__hideNextMonthArrow},set:function(w){r.__hideNextMonthArrow!==w&&(Qr(r.nextMonthNav,"flatpickr-disabled",w),r.__hideNextMonthArrow=w)}}),r.currentYearElement=r.yearElements[0],Oa(),r.monthNav}function j(){r.calendarContainer.classList.add("hasTime"),r.config.noCalendar&&r.calendarContainer.classList.add("noCalendar");var w=Rf(r.config);r.timeContainer=St("div","flatpickr-time"),r.timeContainer.tabIndex=-1;var E=St("span","flatpickr-time-separator",":"),O=Cs("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=O.getElementsByTagName("input")[0];var q=Cs("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});if(r.minuteElement=q.getElementsByTagName("input")[0],r.hourElement.tabIndex=r.minuteElement.tabIndex=-1,r.hourElement.value=sa(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?w.hours:f(w.hours)),r.minuteElement.value=sa(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():w.minutes),r.hourElement.setAttribute("step",r.config.hourIncrement.toString()),r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString()),r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1"),r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12"),r.hourElement.setAttribute("maxlength","2"),r.minuteElement.setAttribute("min","0"),r.minuteElement.setAttribute("max","59"),r.minuteElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(O),r.timeContainer.appendChild(E),r.timeContainer.appendChild(q),r.config.time_24hr&&r.timeContainer.classList.add("time24hr"),r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");var ie=Cs("flatpickr-second");r.secondElement=ie.getElementsByTagName("input")[0],r.secondElement.value=sa(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():w.seconds),r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step")),r.secondElement.setAttribute("min","0"),r.secondElement.setAttribute("max","59"),r.secondElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(St("span","flatpickr-time-separator",":")),r.timeContainer.appendChild(ie)}return r.config.time_24hr||(r.amPM=St("span","flatpickr-am-pm",r.l10n.amPM[Pa((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]),r.amPM.title=r.l10n.toggleTitle,r.amPM.tabIndex=-1,r.timeContainer.appendChild(r.amPM)),r.timeContainer}function M(){r.weekdayContainer?Ds(r.weekdayContainer):r.weekdayContainer=St("div","flatpickr-weekdays");for(var w=r.config.showMonths;w--;){var E=St("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(E)}return K(),r.weekdayContainer}function K(){if(r.weekdayContainer){var w=r.l10n.firstDayOfWeek,E=np(r.l10n.weekdays.shorthand);w>0&&w<E.length&&(E=np(E.splice(w,E.length),E.splice(0,w)));for(var O=r.config.showMonths;O--;)r.weekdayContainer.children[O].innerHTML=`
|
|
24
|
+
<span class='flatpickr-weekday'>
|
|
25
|
+
`+E.join("</span><span class='flatpickr-weekday'>")+`
|
|
26
|
+
</span>
|
|
27
|
+
`}}function Z(){r.calendarContainer.classList.add("hasWeeks");var w=St("div","flatpickr-weekwrapper");w.appendChild(St("span","flatpickr-weekday",r.l10n.weekAbbreviation));var E=St("div","flatpickr-weeks");return w.appendChild(E),{weekWrapper:w,weekNumbers:E}}function W(w,E){E===void 0&&(E=!0);var O=E?w:w-r.currentMonth;O<0&&r._hidePrevMonthArrow===!0||O>0&&r._hideNextMonthArrow===!0||(r.currentMonth+=O,(r.currentMonth<0||r.currentMonth>11)&&(r.currentYear+=r.currentMonth>11?1:-1,r.currentMonth=(r.currentMonth+12)%12,at("onYearChange"),Y()),U(),at("onMonthChange"),Oa())}function ee(w,E){if(w===void 0&&(w=!0),E===void 0&&(E=!0),r.input.value="",r.altInput!==void 0&&(r.altInput.value=""),r.mobileInput!==void 0&&(r.mobileInput.value=""),r.selectedDates=[],r.latestSelectedDateObj=void 0,E===!0&&(r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth()),r.config.enableTime===!0){var O=Rf(r.config),q=O.hours,ie=O.minutes,de=O.seconds;v(q,ie,de)}r.redraw(),w&&at("onChange")}function se(){r.isOpen=!1,r.isMobile||(r.calendarContainer!==void 0&&r.calendarContainer.classList.remove("open"),r._input!==void 0&&r._input.classList.remove("active")),at("onClose")}function Me(){r.config!==void 0&&at("onDestroy");for(var w=r._handlers.length;w--;)r._handlers[w].remove();if(r._handlers=[],r.mobileInput)r.mobileInput.parentNode&&r.mobileInput.parentNode.removeChild(r.mobileInput),r.mobileInput=void 0;else if(r.calendarContainer&&r.calendarContainer.parentNode)if(r.config.static&&r.calendarContainer.parentNode){var E=r.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}else r.calendarContainer.parentNode.removeChild(r.calendarContainer);r.altInput&&(r.input.type="text",r.altInput.parentNode&&r.altInput.parentNode.removeChild(r.altInput),delete r.altInput),r.input&&(r.input.type=r.input._type,r.input.classList.remove("flatpickr-input"),r.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(O){try{delete r[O]}catch{}})}function z(w){return r.calendarContainer.contains(w)}function G(w){if(r.isOpen&&!r.config.inline){var E=Aa(w),O=z(E),q=E===r.input||E===r.altInput||r.element.contains(E)||w.path&&w.path.indexOf&&(~w.path.indexOf(r.input)||~w.path.indexOf(r.altInput)),ie=!q&&!O&&!z(w.relatedTarget),de=!r.config.ignoredFocusElements.some(function(Re){return Re.contains(E)});ie&&de&&(r.config.allowInput&&r.setDate(r._input.value,!1,r.config.altInput?r.config.altFormat:r.config.dateFormat),r.timeContainer!==void 0&&r.minuteElement!==void 0&&r.hourElement!==void 0&&r.input.value!==""&&r.input.value!==void 0&&s(),r.close(),r.config&&r.config.mode==="range"&&r.selectedDates.length===1&&r.clear(!1))}}function X(w){if(!(!w||r.config.minDate&&w<r.config.minDate.getFullYear()||r.config.maxDate&&w>r.config.maxDate.getFullYear())){var E=w,O=r.currentYear!==E;r.currentYear=E||r.currentYear,r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth=Math.min(r.config.maxDate.getMonth(),r.currentMonth):r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()&&(r.currentMonth=Math.max(r.config.minDate.getMonth(),r.currentMonth)),O&&(r.redraw(),at("onYearChange"),Y())}}function re(w,E){var O;E===void 0&&(E=!0);var q=r.parseDate(w,void 0,E);if(r.config.minDate&&q&&wa(q,r.config.minDate,E!==void 0?E:!r.minDateHasTime)<0||r.config.maxDate&&q&&wa(q,r.config.maxDate,E!==void 0?E:!r.maxDateHasTime)>0)return!1;if(!r.config.enable&&r.config.disable.length===0)return!0;if(q===void 0)return!1;for(var ie=!!r.config.enable,de=(O=r.config.enable)!==null&&O!==void 0?O:r.config.disable,Re=0,me=void 0;Re<de.length;Re++){if(me=de[Re],typeof me=="function"&&me(q))return ie;if(me instanceof Date&&q!==void 0&&me.getTime()===q.getTime())return ie;if(typeof me=="string"){var We=r.parseDate(me,void 0,!0);return We&&We.getTime()===q.getTime()?ie:!ie}else if(typeof me=="object"&&q!==void 0&&me.from&&me.to&&q.getTime()>=me.from.getTime()&&q.getTime()<=me.to.getTime())return ie}return!ie}function Ne(w){return r.daysContainer!==void 0?w.className.indexOf("hidden")===-1&&w.className.indexOf("flatpickr-disabled")===-1&&r.daysContainer.contains(w):!1}function ge(w){var E=w.target===r._input,O=r._input.value.trimEnd()!==zr();E&&O&&!(w.relatedTarget&&z(w.relatedTarget))&&r.setDate(r._input.value,!0,w.target===r.altInput?r.config.altFormat:r.config.dateFormat)}function ke(w){var E=Aa(w),O=r.config.wrap?e.contains(E):E===r._input,q=r.config.allowInput,ie=r.isOpen&&(!q||!O),de=r.config.inline&&O&&!q;if(w.keyCode===13&&O){if(q)return r.setDate(r._input.value,!0,E===r.altInput?r.config.altFormat:r.config.dateFormat),r.close(),E.blur();r.open()}else if(z(E)||ie||de){var Re=!!r.timeContainer&&r.timeContainer.contains(E);switch(w.keyCode){case 13:Re?(w.preventDefault(),s(),nr()):jr(w);break;case 27:w.preventDefault(),nr();break;case 8:case 46:O&&!r.config.allowInput&&(w.preventDefault(),r.clear());break;case 37:case 39:if(!Re&&!O){w.preventDefault();var me=i();if(r.daysContainer!==void 0&&(q===!1||me&&Ne(me))){var We=w.keyCode===39?1:-1;w.ctrlKey?(w.stopPropagation(),W(We),F(D(1),0)):F(void 0,We)}}else r.hourElement&&r.hourElement.focus();break;case 38:case 40:w.preventDefault();var we=w.keyCode===40?1:-1;r.daysContainer&&E.$i!==void 0||E===r.input||E===r.altInput?w.ctrlKey?(w.stopPropagation(),X(r.currentYear-we),F(D(1),0)):Re||F(void 0,we*7):E===r.currentYearElement?X(r.currentYear-we):r.config.enableTime&&(!Re&&r.hourElement&&r.hourElement.focus(),s(w),r._debouncedChange());break;case 9:if(Re){var Ce=[r.hourElement,r.minuteElement,r.secondElement,r.amPM].concat(r.pluginElements).filter(function(mr){return mr}),Xe=Ce.indexOf(E);if(Xe!==-1){var _r=Ce[Xe+(w.shiftKey?-1:1)];w.preventDefault(),(_r||r._input).focus()}}else!r.config.noCalendar&&r.daysContainer&&r.daysContainer.contains(E)&&w.shiftKey&&(w.preventDefault(),r._input.focus());break}}if(r.amPM!==void 0&&E===r.amPM)switch(w.key){case r.l10n.amPM[0].charAt(0):case r.l10n.amPM[0].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[0],d(),Qe();break;case r.l10n.amPM[1].charAt(0):case r.l10n.amPM[1].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[1],d(),Qe();break}(O||z(E))&&at("onKeyDown",w)}function je(w,E){if(E===void 0&&(E="flatpickr-day"),!(r.selectedDates.length!==1||w&&(!w.classList.contains(E)||w.classList.contains("flatpickr-disabled")))){for(var O=w?w.dateObj.getTime():r.days.firstElementChild.dateObj.getTime(),q=r.parseDate(r.selectedDates[0],void 0,!0).getTime(),ie=Math.min(O,r.selectedDates[0].getTime()),de=Math.max(O,r.selectedDates[0].getTime()),Re=!1,me=0,We=0,we=ie;we<de;we+=ej.DAY)re(new Date(we),!0)||(Re=Re||we>ie&&we<de,we<q&&(!me||we>me)?me=we:we>q&&(!We||we<We)&&(We=we));var Ce=Array.from(r.rContainer.querySelectorAll("*:nth-child(-n+"+r.config.showMonths+") > ."+E));Ce.forEach(function(Xe){var _r=Xe.dateObj,mr=_r.getTime(),mt=me>0&&mr<me||We>0&&mr>We;if(mt){Xe.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ge){Xe.classList.remove(Ge)});return}else if(Re&&!mt)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ge){Xe.classList.remove(Ge)}),w!==void 0&&(w.classList.add(O<=r.selectedDates[0].getTime()?"startRange":"endRange"),q<O&&mr===q?Xe.classList.add("startRange"):q>O&&mr===q&&Xe.classList.add("endRange"),mr>=me&&(We===0||mr<=We)&&J8(mr,q,O)&&Xe.classList.add("inRange"))})}}function oe(){r.isOpen&&!r.config.static&&!r.config.inline&&pe()}function be(w,E){if(E===void 0&&(E=r._positionElement),r.isMobile===!0){if(w){w.preventDefault();var O=Aa(w);O&&O.blur()}r.mobileInput!==void 0&&(r.mobileInput.focus(),r.mobileInput.click()),at("onOpen");return}else if(r._input.disabled||r.config.inline)return;var q=r.isOpen;r.isOpen=!0,q||(r.calendarContainer.classList.add("open"),r._input.classList.add("active"),at("onOpen"),pe(E)),r.config.enableTime===!0&&r.config.noCalendar===!0&&r.config.allowInput===!1&&(w===void 0||!r.timeContainer.contains(w.relatedTarget))&&setTimeout(function(){return r.hourElement.select()},50)}function Ie(w){return function(E){var O=r.config["_"+w+"Date"]=r.parseDate(E,r.config.dateFormat),q=r.config["_"+(w==="min"?"max":"min")+"Date"];O!==void 0&&(r[w==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),r.selectedDates&&(r.selectedDates=r.selectedDates.filter(function(ie){return re(ie)}),!r.selectedDates.length&&w==="min"&&c(O),Qe()),r.daysContainer&&(Te(),O!==void 0?r.currentYearElement[w]=O.getFullYear().toString():r.currentYearElement.removeAttribute(w),r.currentYearElement.disabled=!!q&&O!==void 0&&q.getFullYear()===O.getFullYear())}}function ce(){var w=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=Hr(Hr({},JSON.parse(JSON.stringify(e.dataset||{}))),t),O={};r.config.parseDate=E.parseDate,r.config.formatDate=E.formatDate,Object.defineProperty(r.config,"enable",{get:function(){return r.config._enable},set:function(Ce){r.config._enable=Wa(Ce)}}),Object.defineProperty(r.config,"disable",{get:function(){return r.config._disable},set:function(Ce){r.config._disable=Wa(Ce)}});var q=E.mode==="time";if(!E.dateFormat&&(E.enableTime||q)){var ie=xr.defaultConfig.dateFormat||_u.dateFormat;O.dateFormat=E.noCalendar||q?"H:i"+(E.enableSeconds?":S":""):ie+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||q)&&!E.altFormat){var de=xr.defaultConfig.altFormat||_u.altFormat;O.altFormat=E.noCalendar||q?"h:i"+(E.enableSeconds?":S K":" K"):de+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(r.config,"minDate",{get:function(){return r.config._minDate},set:Ie("min")}),Object.defineProperty(r.config,"maxDate",{get:function(){return r.config._maxDate},set:Ie("max")});var Re=function(Ce){return function(Xe){r.config[Ce==="min"?"_minTime":"_maxTime"]=r.parseDate(Xe,"H:i:S")}};Object.defineProperty(r.config,"minTime",{get:function(){return r.config._minTime},set:Re("min")}),Object.defineProperty(r.config,"maxTime",{get:function(){return r.config._maxTime},set:Re("max")}),E.mode==="time"&&(r.config.noCalendar=!0,r.config.enableTime=!0),Object.assign(r.config,O,E);for(var me=0;me<w.length;me++)r.config[w[me]]=r.config[w[me]]===!0||r.config[w[me]]==="true";Bf.filter(function(Ce){return r.config[Ce]!==void 0}).forEach(function(Ce){r.config[Ce]=Pf(r.config[Ce]||[]).map(u)}),r.isMobile=!r.config.disableMobile&&!r.config.inline&&r.config.mode==="single"&&!r.config.disable.length&&!r.config.enable&&!r.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var me=0;me<r.config.plugins.length;me++){var We=r.config.plugins[me](r)||{};for(var we in We)Bf.indexOf(we)>-1?r.config[we]=Pf(We[we]).map(u).concat(r.config[we]):typeof E[we]>"u"&&(r.config[we]=We[we])}E.altInputClass||(r.config.altInputClass=te().className+" "+r.config.altInputClass),at("onParseConfig")}function te(){return r.config.wrap?e.querySelector("[data-input]"):e}function J(){typeof r.config.locale!="object"&&typeof xr.l10ns[r.config.locale]>"u"&&r.config.errorHandler(new Error("flatpickr: invalid locale "+r.config.locale)),r.l10n=Hr(Hr({},xr.l10ns.default),typeof r.config.locale=="object"?r.config.locale:r.config.locale!=="default"?xr.l10ns[r.config.locale]:void 0),ki.D="("+r.l10n.weekdays.shorthand.join("|")+")",ki.l="("+r.l10n.weekdays.longhand.join("|")+")",ki.M="("+r.l10n.months.shorthand.join("|")+")",ki.F="("+r.l10n.months.longhand.join("|")+")",ki.K="("+r.l10n.amPM[0]+"|"+r.l10n.amPM[1]+"|"+r.l10n.amPM[0].toLowerCase()+"|"+r.l10n.amPM[1].toLowerCase()+")";var w=Hr(Hr({},t),JSON.parse(JSON.stringify(e.dataset||{})));w.time_24hr===void 0&&xr.defaultConfig.time_24hr===void 0&&(r.config.time_24hr=r.l10n.time_24hr),r.formatDate=Gy(r),r.parseDate=wd({config:r.config,l10n:r.l10n})}function pe(w){if(typeof r.config.position=="function")return void r.config.position(r,w);if(r.calendarContainer!==void 0){at("onPreCalendarPosition");var E=w||r._positionElement,O=Array.prototype.reduce.call(r.calendarContainer.children,(function(ae,Ee){return ae+Ee.offsetHeight}),0),q=r.calendarContainer.offsetWidth,ie=r.config.position.split(" "),de=ie[0],Re=ie.length>1?ie[1]:null,me=E.getBoundingClientRect(),We=window.innerHeight-me.bottom,we=de==="above"||de!=="below"&&We<O&&me.top>O,Ce=window.pageYOffset+me.top+(we?-O-2:E.offsetHeight+2);if(Qr(r.calendarContainer,"arrowTop",!we),Qr(r.calendarContainer,"arrowBottom",we),!r.config.inline){var Xe=window.pageXOffset+me.left,_r=!1,mr=!1;Re==="center"?(Xe-=(q-me.width)/2,_r=!0):Re==="right"&&(Xe-=q-me.width,mr=!0),Qr(r.calendarContainer,"arrowLeft",!_r&&!mr),Qr(r.calendarContainer,"arrowCenter",_r),Qr(r.calendarContainer,"arrowRight",mr);var mt=window.document.body.offsetWidth-(window.pageXOffset+me.right),Ge=Xe+q>window.document.body.offsetWidth,qr=mt+q>window.document.body.offsetWidth;if(Qr(r.calendarContainer,"rightMost",Ge),!r.config.static)if(r.calendarContainer.style.top=Ce+"px",!Ge)r.calendarContainer.style.left=Xe+"px",r.calendarContainer.style.right="auto";else if(!qr)r.calendarContainer.style.left="auto",r.calendarContainer.style.right=mt+"px";else{var dn=le();if(dn===void 0)return;var Ta=window.document.body.offsetWidth,$e=Math.max(0,Ta/2-q/2),cn=".flatpickr-calendar.centerMost:before",Xr=".flatpickr-calendar.centerMost:after",xe=dn.cssRules.length,$="{left:"+me.left+"px;right:auto;}";Qr(r.calendarContainer,"rightMost",!1),Qr(r.calendarContainer,"centerMost",!0),dn.insertRule(cn+","+Xr+$,xe),r.calendarContainer.style.left=$e+"px",r.calendarContainer.style.right="auto"}}}}function le(){for(var w=null,E=0;E<document.styleSheets.length;E++){var O=document.styleSheets[E];if(O.cssRules){try{O.cssRules}catch{continue}w=O;break}}return w??_e()}function _e(){var w=document.createElement("style");return document.head.appendChild(w),w.sheet}function Te(){r.config.noCalendar||r.isMobile||(Y(),Oa(),U())}function nr(){r._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(r.close,0):r.close()}function jr(w){w.preventDefault(),w.stopPropagation();var E=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},O=Hy(Aa(w),E);if(O!==void 0){var q=O,ie=r.latestSelectedDateObj=new Date(q.dateObj.getTime()),de=(ie.getMonth()<r.currentMonth||ie.getMonth()>r.currentMonth+r.config.showMonths-1)&&r.config.mode!=="range";if(r.selectedDateElem=q,r.config.mode==="single")r.selectedDates=[ie];else if(r.config.mode==="multiple"){var Re=ha(ie);Re?r.selectedDates.splice(parseInt(Re),1):r.selectedDates.push(ie)}else r.config.mode==="range"&&(r.selectedDates.length===2&&r.clear(!1,!1),r.latestSelectedDateObj=ie,r.selectedDates.push(ie),wa(ie,r.selectedDates[0],!0)!==0&&r.selectedDates.sort(function(Ce,Xe){return Ce.getTime()-Xe.getTime()}));if(d(),de){var me=r.currentYear!==ie.getFullYear();r.currentYear=ie.getFullYear(),r.currentMonth=ie.getMonth(),me&&(at("onYearChange"),Y()),at("onMonthChange")}if(Oa(),U(),Qe(),!de&&r.config.mode!=="range"&&r.config.showMonths===1?S(q):r.selectedDateElem!==void 0&&r.hourElement===void 0&&r.selectedDateElem&&r.selectedDateElem.focus(),r.hourElement!==void 0&&r.hourElement!==void 0&&r.hourElement.focus(),r.config.closeOnSelect){var We=r.config.mode==="single"&&!r.config.enableTime,we=r.config.mode==="range"&&r.selectedDates.length===2&&!r.config.enableTime;(We||we)&&nr()}g()}}var hr={locale:[J,K],showMonths:[N,l,M],minDate:[y],maxDate:[y],positionElement:[xa],clickOpens:[function(){r.config.clickOpens===!0?(m(r._input,"focus",r.open),m(r._input,"click",r.open)):(r._input.removeEventListener("focus",r.open),r._input.removeEventListener("click",r.open))}]};function Ue(w,E){if(w!==null&&typeof w=="object"){Object.assign(r.config,w);for(var O in w)hr[O]!==void 0&&hr[O].forEach(function(q){return q()})}else r.config[w]=E,hr[w]!==void 0?hr[w].forEach(function(q){return q()}):Bf.indexOf(w)>-1&&(r.config[w]=Pf(E));r.redraw(),Qe(!0)}function ir(w,E){var O=[];if(w instanceof Array)O=w.map(function(q){return r.parseDate(q,E)});else if(w instanceof Date||typeof w=="number")O=[r.parseDate(w,E)];else if(typeof w=="string")switch(r.config.mode){case"single":case"time":O=[r.parseDate(w,E)];break;case"multiple":O=w.split(r.config.conjunction).map(function(q){return r.parseDate(q,E)});break;case"range":O=w.split(r.l10n.rangeSeparator).map(function(q){return r.parseDate(q,E)});break}else r.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(w)));r.selectedDates=r.config.allowInvalidPreload?O:O.filter(function(q){return q instanceof Date&&re(q,!1)}),r.config.mode==="range"&&r.selectedDates.sort(function(q,ie){return q.getTime()-ie.getTime()})}function It(w,E,O){if(E===void 0&&(E=!1),O===void 0&&(O=r.config.dateFormat),w!==0&&!w||w instanceof Array&&w.length===0)return r.clear(E);ir(w,O),r.latestSelectedDateObj=r.selectedDates[r.selectedDates.length-1],r.redraw(),y(void 0,E),c(),r.selectedDates.length===0&&r.clear(!1),Qe(E),E&&at("onChange")}function Wa(w){return w.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?r.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:r.parseDate(E.from,void 0),to:r.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function fn(){r.selectedDates=[],r.now=r.parseDate(r.config.now)||new Date;var w=r.config.defaultDate||((r.input.nodeName==="INPUT"||r.input.nodeName==="TEXTAREA")&&r.input.placeholder&&r.input.value===r.input.placeholder?null:r.input.value);w&&ir(w,r.config.dateFormat),r._initialDate=r.selectedDates.length>0?r.selectedDates[0]:r.config.minDate&&r.config.minDate.getTime()>r.now.getTime()?r.config.minDate:r.config.maxDate&&r.config.maxDate.getTime()<r.now.getTime()?r.config.maxDate:r.now,r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth(),r.selectedDates.length>0&&(r.latestSelectedDateObj=r.selectedDates[0]),r.config.minTime!==void 0&&(r.config.minTime=r.parseDate(r.config.minTime,"H:i")),r.config.maxTime!==void 0&&(r.config.maxTime=r.parseDate(r.config.maxTime,"H:i")),r.minDateHasTime=!!r.config.minDate&&(r.config.minDate.getHours()>0||r.config.minDate.getMinutes()>0||r.config.minDate.getSeconds()>0),r.maxDateHasTime=!!r.config.maxDate&&(r.config.maxDate.getHours()>0||r.config.maxDate.getMinutes()>0||r.config.maxDate.getSeconds()>0)}function kt(){if(r.input=te(),!r.input){r.config.errorHandler(new Error("Invalid input element specified"));return}r.input._type=r.input.type,r.input.type="text",r.input.classList.add("flatpickr-input"),r._input=r.input,r.config.altInput&&(r.altInput=St(r.input.nodeName,r.config.altInputClass),r._input=r.altInput,r.altInput.placeholder=r.input.placeholder,r.altInput.disabled=r.input.disabled,r.altInput.required=r.input.required,r.altInput.tabIndex=r.input.tabIndex,r.altInput.type="text",r.input.setAttribute("type","hidden"),!r.config.static&&r.input.parentNode&&r.input.parentNode.insertBefore(r.altInput,r.input.nextSibling)),r.config.allowInput||r._input.setAttribute("readonly","readonly"),xa()}function xa(){r._positionElement=r.config.positionElement||r._input}function $a(){var w=r.config.enableTime?r.config.noCalendar?"time":"datetime-local":"date";r.mobileInput=St("input",r.input.className+" flatpickr-mobile"),r.mobileInput.tabIndex=1,r.mobileInput.type=w,r.mobileInput.disabled=r.input.disabled,r.mobileInput.required=r.input.required,r.mobileInput.placeholder=r.input.placeholder,r.mobileFormatStr=w==="datetime-local"?"Y-m-d\\TH:i:S":w==="date"?"Y-m-d":"H:i:S",r.selectedDates.length>0&&(r.mobileInput.defaultValue=r.mobileInput.value=r.formatDate(r.selectedDates[0],r.mobileFormatStr)),r.config.minDate&&(r.mobileInput.min=r.formatDate(r.config.minDate,"Y-m-d")),r.config.maxDate&&(r.mobileInput.max=r.formatDate(r.config.maxDate,"Y-m-d")),r.input.getAttribute("step")&&(r.mobileInput.step=String(r.input.getAttribute("step"))),r.input.type="hidden",r.altInput!==void 0&&(r.altInput.type="hidden");try{r.input.parentNode&&r.input.parentNode.insertBefore(r.mobileInput,r.input.nextSibling)}catch{}m(r.mobileInput,"change",function(E){r.setDate(Aa(E).value,!1,r.mobileFormatStr),at("onChange"),at("onClose")})}function Ur(w){if(r.isOpen===!0)return r.close();r.open(w)}function at(w,E){if(r.config!==void 0){var O=r.config[w];if(O!==void 0&&O.length>0)for(var q=0;O[q]&&q<O.length;q++)O[q](r.selectedDates,r.input.value,r,E);w==="onChange"&&(r.input.dispatchEvent(Yr("change")),r.input.dispatchEvent(Yr("input")))}}function Yr(w){var E=document.createEvent("Event");return E.initEvent(w,!0,!0),E}function ha(w){for(var E=0;E<r.selectedDates.length;E++){var O=r.selectedDates[E];if(O instanceof Date&&wa(O,w)===0)return""+E}return!1}function Ha(w){return r.config.mode!=="range"||r.selectedDates.length<2?!1:wa(w,r.selectedDates[0])>=0&&wa(w,r.selectedDates[1])<=0}function Oa(){r.config.noCalendar||r.isMobile||!r.monthNav||(r.yearElements.forEach(function(w,E){var O=new Date(r.currentYear,r.currentMonth,1);O.setMonth(r.currentMonth+E),r.config.showMonths>1||r.config.monthSelectorType==="static"?r.monthElements[E].textContent=ao(O.getMonth(),r.config.shorthandCurrentMonth,r.l10n)+" ":r.monthsDropdownContainer.value=O.getMonth().toString(),w.value=O.getFullYear().toString()}),r._hidePrevMonthArrow=r.config.minDate!==void 0&&(r.currentYear===r.config.minDate.getFullYear()?r.currentMonth<=r.config.minDate.getMonth():r.currentYear<r.config.minDate.getFullYear()),r._hideNextMonthArrow=r.config.maxDate!==void 0&&(r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth+1>r.config.maxDate.getMonth():r.currentYear>r.config.maxDate.getFullYear()))}function zr(w){var E=w||(r.config.altInput?r.config.altFormat:r.config.dateFormat);return r.selectedDates.map(function(O){return r.formatDate(O,E)}).filter(function(O,q,ie){return r.config.mode!=="range"||r.config.enableTime||ie.indexOf(O)===q}).join(r.config.mode!=="range"?r.config.conjunction:r.l10n.rangeSeparator)}function Qe(w){w===void 0&&(w=!0),r.mobileInput!==void 0&&r.mobileFormatStr&&(r.mobileInput.value=r.latestSelectedDateObj!==void 0?r.formatDate(r.latestSelectedDateObj,r.mobileFormatStr):""),r.input.value=zr(r.config.dateFormat),r.altInput!==void 0&&(r.altInput.value=zr(r.config.altFormat)),w!==!1&&at("onValueUpdate")}function ma(w){var E=Aa(w),O=r.prevMonthNav.contains(E),q=r.nextMonthNav.contains(E);O||q?W(O?-1:1):r.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?r.changeYear(r.currentYear+1):E.classList.contains("arrowDown")&&r.changeYear(r.currentYear-1)}function Mr(w){w.preventDefault();var E=w.type==="keydown",O=Aa(w),q=O;r.amPM!==void 0&&O===r.amPM&&(r.amPM.textContent=r.l10n.amPM[Pa(r.amPM.textContent===r.l10n.amPM[0])]);var ie=parseFloat(q.getAttribute("min")),de=parseFloat(q.getAttribute("max")),Re=parseFloat(q.getAttribute("step")),me=parseInt(q.value,10),We=w.delta||(E?w.which===38?1:-1:0),we=me+Re*We;if(typeof q.value<"u"&&q.value.length===2){var Ce=q===r.hourElement,Xe=q===r.minuteElement;we<ie?(we=de+we+Pa(!Ce)+(Pa(Ce)&&Pa(!r.amPM)),Xe&&_(void 0,-1,r.hourElement)):we>de&&(we=q===r.hourElement?we-de-Pa(!r.amPM):ie,Xe&&_(void 0,1,r.hourElement)),r.amPM&&Ce&&(Re===1?we+me===23:Math.abs(we-me)>Re)&&(r.amPM.textContent=r.l10n.amPM[Pa(r.amPM.textContent===r.l10n.amPM[0])]),q.value=sa(we)}}return n(),r}function Eu(e,t){for(var r=Array.prototype.slice.call(e).filter(function(u){return u instanceof HTMLElement}),a=[],n=0;n<r.length;n++){var i=r[n];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=rj(i,t||{}),a.push(i._flatpickr)}catch{}}return a.length===1?a[0]:a}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return Eu(this,e)},HTMLElement.prototype.flatpickr=function(e){return Eu([this],e)});var xr=function(e,t){return typeof e=="string"?Eu(window.document.querySelectorAll(e),t):e instanceof Node?Eu([e],t):Eu(e,t)};xr.defaultConfig={};xr.l10ns={en:Hr({},Rl),default:Hr({},Rl)};xr.localize=function(e){xr.l10ns.default=Hr(Hr({},xr.l10ns.default),e)};xr.setDefaults=function(e){xr.defaultConfig=Hr(Hr({},xr.defaultConfig),e)};xr.parseDate=wd({});xr.formatDate=Gy({});xr.compareDates=wa;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(e){return Eu(this,e)});Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e=="string"?parseInt(e,10):e))};typeof window<"u"&&(window.flatpickr=xr);var Ky={name:"DatepickerWrapper",emits:["change"],props:{value:{required:!0},options:{type:[Object],required:!0},id:{type:[Number,String],required:!0},placeholder:{type:[Number,String],required:!1},attrs:{required:!1,type:[Object],default:()=>({})},autocomplete:{required:!1,type:[String,Number],default:null}},setup(e,t){var{id:r,options:a,value:n}=Q(e),{el$:i,form$:u,Size:l,View:s,classesInstance:o,classes:f,Templates:d,template:c,theme:v}=Pr(e,t),p=u.value.$vueform.services.moment,m=ja().proxy,g=R(null),A=R(null),y=h(()=>i.value.available),b=h(()=>{var x,F;return((x=m.$vueform.i18n.locales[u.value.locale$])===null||x===void 0||(x=x.vueform)===null||x===void 0?void 0:x.datepicker)||((F=m.$vueform.i18n.locales[m.$vueform.i18n.fallbackLocale])===null||F===void 0||(F=F.vueform)===null||F===void 0?void 0:F.datepicker)||{}}),_=h(()=>a.value.mode||"single"),C=h(()=>{var x={};return P(a.value,(F,k)=>{F!=null&&(x[k]=F)}),x.static=!0,x}),T=x=>{t.emit("change",_.value=="single"?x[0]||null:x)},S=()=>{g.value.input.parentElement.id="datepicker-"+r.value},D=(function(){var x=he(function*(){A.value||(yield He()),g.value=xr(A.value,Object.assign({},C.value,{onChange:F=>{T(F)},onClose:F=>{F=_.value=="range"&&F.length<2?[]:F,T(F)},parseDate:(F,k)=>p(F,k,!0).toDate(),formatDate:(F,k)=>p(F).format(k),ariaDateFormat:"MMMM D, YYYY",disableMobile:!0,locale:b.value})),g.value.calendarContainer&&f.value.calendarContainer.forEach(F=>{g.value.calendarContainer.classList.add(F)}),S(),n.value!==null&&g.value.setDate(n.value,!1)});return function(){return x.apply(this,arguments)}})();return Se(n,(x,F)=>{var k;(k=g.value)===null||k===void 0||k.setDate(x,!1)}),Se(r,(x,F)=>{S()},{immediate:!1}),Se(a,(x,F)=>{nn(x,F)||D()},{deep:!0}),Se([b,y],(x,F)=>{D()},{deep:!0}),Vt(()=>{D()}),{el$:i,form$:u,Size:l,View:s,classesInstance:o,theme:v,classes:f,Templates:d,template:c,datepicker$:g,input:A,config:C,mode:_,locale:b,update:T,init:D}}},Zy={name:"EditorWrapper",emits:["input","alert","error","blur"],props:{value:{required:!1,default:null},placeholder:{required:!1,type:[String,Number],default:null},name:{required:!1,type:[String,Number],default:null},id:{required:!1,type:[String,Number],default:null},accept:{required:!1,type:Array,default:()=>[]},acceptMimes:{required:!1,type:Array,default:()=>[]},endpoint:{required:!1,type:[String,Function,Promise],default:null},method:{required:!1,type:String,default:"post"},disabled:{required:!1,type:Boolean,default:!1},hideTools:{required:!1,type:[Array],default:()=>[]},attrs:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var{value:r,disabled:a,acceptMimes:n,accept:i,endpoint:u,method:l,attrs:s,placeholder:o,id:f}=Q(e),{el$:d,form$:c,Size:v,View:p,classesInstance:m,classes:g,Templates:A,template:y,theme:b}=Pr(e,t),_=R(null),C=h(()=>_.value.$el||_.value),T=h(()=>u.value?typeof u.value=="function"?u.value:c.value.$vueform.config.endpoints[u.value]||u.value:typeof c.value.$vueform.config.endpoints.attachment=="function"?c.value.$vueform.config.endpoints.attachment:c.value.$vueform.config.endpoints.attachment.url),S=h(()=>typeof T.value=="function"?null:u.value&&c.value.$vueform.config.endpoints[u.value]?c.value.$vueform.config.endpoints[u.value]:l.value||c.value.$vueform.config.endpoints.attachment.method),D=h(()=>B(B({},s.value),{},{placeholder:o.value,disabled:a.value,contentEditable:!a.value,id:f.value,input:"editor-input-".concat(f.value)})),x=N=>{typeof N=="number"&&(N=String(N)),N==null&&(N=""),C.value.editor?C.value.editor.loadHTML(N):setTimeout(()=>{var I;(I=C.value.editor)===null||I===void 0||I.loadHTML(N)},0)},F=(N,I)=>{C.value[N]=I},k=()=>{C.value.value==r.value||!C.value.value&&!r.value||t.emit("input",{target:{value:C.value.value}})},U=N=>{if(a.value){N.preventDefault();return}if(!N.file){N.preventDefault();return}n.value&&n.value.length&&n.value.indexOf(N.file.type)===-1&&(N.preventDefault(),t.emit("alert",c.value.__(c.value.translations.vueform.editor.acceptedMimesError,{mimes:n.value.join(", ")})));var I=N.file.name.split(".").pop();i.value&&i.value.length&&i.value.indexOf(I)===-1&&(N.preventDefault(),t.emit("alert",c.value.__(c.value.translations.vueform.editor.acceptedExtensionsError,{extensions:i.value.join(", ")})))},Y=(function(){var N=he(function*(I){if(I.attachment.file){var j=new FormData;j.append("Content-Type",I.attachment.file.type),j.append("file",I.attachment.file);var M;try{typeof T.value=="function"?M=yield T.value(I.attachment,d.value):(M=yield d.value.$vueform.services.axios.request({url:T.value,method:S.value,[S.value.toLowerCase()==="get"?"params":"data"]:j,onUploadProgress:K=>{I.attachment.setUploadProgress(Math.round(K.loaded*100/K.total))}}),M=M.data),I.attachment.setAttributes({url:M.url,href:M.href})}catch(K){t.emit("error",K)}}});return function(j){return N.apply(this,arguments)}})(),H=()=>{t.emit("blur")};return Se(a,N=>{C.value.contentEditable=!N}),{el$:d,form$:c,Size:v,View:p,classesInstance:m,resolvedEndpoint:T,options:D,theme:b,classes:g,Templates:A,template:y,trix$:_,editor$:C,update:x,setOption:F,handleChange:k,handleFileAccept:U,handleAttachmentAdd:Y,handleBlur:H}}},Ct=function(t,r,a){var{label:n}=Q(t),i=a.form$,u=a.el$,l=ut("config$"),s=h(()=>{var c,v;return!!(i.value.options.forceLabels||n.value||u.value.slots.label||(c=u.value.$slots)!==null&&c!==void 0&&c.label||i.value.$vueform.vueVersion===2&&(v=u.value.$scopedSlots)!==null&&v!==void 0&&v.label)}),o=h(()=>typeof n.value=="function"&&(!n.value.prototype||!n.value.prototype.constructor||n.value.prototype.constructor&&n.value.prototype.constructor.name!=="VueComponent")),f=h(()=>Tu(n.value)),d=h(()=>{var c=o.value?n.value(u.value):n.value||null;return f.value||(c=jt(c,l.value,i.value)),i.value.$vueform.sanitize(c)});return{hasLabel:s,Label:d}},xt=function(t,r,a){var{columns:n,presets:i}=Q(t),u=a.form$,l=a.theme,s=a.hasLabel,o=R(Ze(n.value)),f=h(()=>{var p=u.value.$vueform.config;return new u.value.$vueform.services.columns({configPresetColumns:p.usePresets,configColumns:p.columns,formPresetColumns:u.value.options.presets,formColumns:u.value.options.columns,elementPresetColumns:i.value,elementColumns:o.value},s.value,l.value.columns,p.presets)}),d=h(()=>f.value.classes),c=h(()=>f.value.cols),v=p=>{o.value=Ze(p)};return Se(n,p=>{o.value=Ze(p)},{immediate:!1,deep:!0}),{computedCols:c,columnsClassesService:f,columnsClasses:d,updateColumns:v}},$t=function(t,r,a){var{size:n,view:i,views:u,presets:l}=Q(t),s=r.name,o=a.available,f=a.active,d=a.form$,c=a.parent,v=R(!1),p=h(()=>o.value&&!v.value&&f.value),m=h(()=>{var _;return n.value?_=n.value:P(l.value,C=>{var T=d.value.$vueform.config.presets[C];!T||!T.size||(_=T.size)}),_||(c.value?_=c.value.Size:_=d.value.Size),_}),g=h(()=>i.value?i.value:A.value[s.value]),A=h(()=>{var _=d.value.Views;return P(l.value,C=>{var T=d.value.$vueform.config.presets[C];!T||!T.views||(_=Object.assign({},_,T.views))}),_=Object.assign({},_,u.value),_}),y=()=>{v.value=!0},b=()=>{v.value=!1};return oa("Size",m),oa("View",g),oa("Views",A),{hidden:v,visible:p,Size:m,View:g,Views:A,hide:y,show:b}},aj=function(t,r,a){var{hidden:n,visible:i,Size:u,View:l,Views:s,hide:o,show:f}=$t(t,r,a),{shouldVerify:d}=a,c=h(()=>i.value&&d.value);return{hidden:n,visible:c,Size:u,View:l,Views:s,hide:o,show:f}},bt=function(t,r,a){var{templates:n,presets:i}=Q(t),u=r.name,l=a.theme,s=a.View,o=a.form$,f=h(()=>{var c={};return P(i?i.value:[],v=>{var p=o.value.$vueform.config.presets[v];!p||!p.templates||(c=Object.assign({},c,p.templates))}),B(B(B({},l.value.templates),c),n?n.value:{})}),d=h(()=>s&&s.value&&f.value["".concat(u.value,"_").concat(s.value)]?f.value["".concat(u.value,"_").concat(s.value)]:f.value[u.value]);return{Templates:f,template:d}},Ot=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Q(t);var i=a.el$,u=["label","info","required","description","before","between","after"],l=["checkbox","radio","option","single-label","multiple-label","tag","no-results","no-options","after-list","before-list","placeholder","group-label","caret","clear","spinner","option","default","addon-before","addon-after"],s=h(()=>{var f={};return u.filter(d=>n.slots.indexOf(d)!==-1).forEach(d=>{var c=i.value.slots[d]||i.value.slots[Ui(d)];typeof c=="object"&&(c.props&&(Array.isArray(c.props)&&c.props.indexOf("el$")===-1||!Array.isArray(c.props)&&Object.keys(c.props).indexOf("el$")===-1)?Array.isArray(c.props)?c.props.push("el$"):c.props.el$={type:Object,required:!0}:c.props||(c.props=["el$"])),f[d]=c}),f}),o=h(()=>{var f={};return l.filter(d=>n.slots.indexOf(d)!==-1).forEach(d=>{var c=i.value.slots[d]||i.value.slots[Ui(d)];typeof c=="object"&&(c.props&&(Array.isArray(c.props)&&c.props.indexOf("el$")===-1||!Array.isArray(c.props)&&Object.keys(c.props).indexOf("el$")===-1)?Array.isArray(c.props)?c.props.push("el$"):c.props.el$={type:Object,required:!0}:c.props||(c.props=["el$"])),f[d]=c}),f});return{elementSlots:s,fieldSlots:o}},nj=function(t,r,a){var{buttonLabel:n,buttonType:i,href:u,target:l,loading:s,onClick:o,resets:f,submits:d}=Q(t),c=a.form$,v=a.isDisabled,p=a.fieldId,m=a.fire,g=a.el$,A=ut("config$"),y=h(()=>typeof s.value=="function"?s.value(c.value,g.value):d.value&&(c.value.submitting||c.value.preparing||c.value.isLoading)?!0:s.value),b=h(()=>Tu(n.value)),_=h(()=>{var S={id:p.value};switch(i.value){case"anchor":S.href=u.value,S.target=l.value;break;case"button":S.disabled=v.value;break}return y.value&&(S.tabindex=void 0),S}),C=h(()=>jt(c.value.$vueform.sanitize(typeof n.value=="function"?n.value(g.value):n.value),A.value,c.value)),T=S=>{if(i.value==="anchor"&&!u.value&&S.preventDefault(),v.value||y.value){S.preventDefault();return}f.value&&c.value.reset(),d.value&&c.value.submit(),m("click",c.value,g.value,S)};return{isButtonLabelComponent:b,button:_,resolvedButtonLabel:C,isLoading:y,handleClick:T}},Tt=function(t,r,a){var{layout:n,inline:i}=Q(t),u=h(()=>i.value||!n.value?"ElementLayoutInline":n.value);return{elementLayout:u}},At=function(t,r,a){var{id:n,name:i}=Q(t),u=a.parent,l=h(()=>{var s,o;return n.value||((s=u.value)!==null&&s!==void 0&&s.fieldId?"".concat((o=u.value)===null||o===void 0?void 0:o.fieldId,".").concat(i.value):i.value)});return{fieldId:l}},Ft=function(t,r,a){var{container:n}=a,i=()=>{var u,l,s=((u=n.value)===null||u===void 0?void 0:u.$el)||n.value;s==null||(l=s.querySelector("a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,[tabindex],[contentEditable=true],trix-editor"))===null||l===void 0||l.focus()};return{focus:i}},ij=function(t,r,a){var{input:n}=a,i=()=>{n.value.editor$.focus()};return{focus:i}},ht=function(t,r,a){var n=ja(),i=h(()=>n.proxy);return oa("el$",i),{el$:i}},uj=hc,lj=4;function sj(e){return uj(e,lj)}var en=sj,ar=function(t,r,a){var{disabled:n}=Q(t),{el$:i,form$:u,path:l}=a,s=R(null),o=h(()=>s.value===!0?!0:s.value===!1?!1:typeof n.value=="function"?n.value(i.value,u.value):Array.isArray(n.value)?n.value.every(c=>u.value.$vueform.services.condition.check(c,l.value,u.value,i.value)):typeof n.value=="object"&&n.value&&n.value.value!==void 0?n.value.value:n.value),f=()=>{s.value=!0},d=()=>{s.value=!1};return{localDisabled:s,isDisabled:o,disable:f,enable:d}},Xy=function(t,r,a){var{disables:n}=Q(t),{localDisabled:i,isDisabled:u}=ar(t,r,a),l=R([]),s=c=>{Oe(c)||(c=[c]);var v=en(l.value);P(c,p=>{p=String(p),v.indexOf(p)===-1&&v.push(p)}),l.value=v},o=c=>{Oe(c)||(c=[c]);var v=en(l.value);P(c,p=>{p=String(p);var m=v.indexOf(p);m!==-1&&v.splice(m,1)}),l.value=v},f=()=>{i.value=!0},d=()=>{i.value=!1,l.value=[]};return l.value=ci(n.value||[],c=>String(c)),{disabledItems:l,isDisabled:u,disableAll:f,enableAll:d,disable:s,enable:o}},oj=function(t,r,a){var{disabled:n,submits:i}=Q(t),u=a.form$,l=a.el$,s=h(()=>typeof n.value=="function"?n.value(l.value,u.value):i.value&&(u.value.invalid&&u.value.shouldValidateOnChange||u.value.busy||u.value.isDisabled)?!0:n.value);return{isDisabled:s}},fj=Xy,Zt=function(t,r,a){var n=a.fieldId,i=a.invalid,u=a.isDisabled,l=a.busy,s=h(()=>"".concat(n.value,"__label")),o=h(()=>"".concat(n.value,"__description")),f=h(()=>"".concat(n.value,"__info")),d=h(()=>"".concat(n.value,"__error")),c=h(()=>({"aria-labelledby":s.value,"aria-describedby":"".concat(o.value," ").concat(f.value),"aria-invalid":i.value,"aria-errormessage":d.value,"aria-disabled":u?.value,"aria-busy":l.value}));return{descriptionId:o,labelId:s,infoId:f,errorId:d,aria:c}},$c=function(t,r,a){var{text:n}=Q(t),{descriptionId:i,labelId:u,infoId:l,errorId:s}=Zt(t,r,a),o=a.invalid,f=a.isDisabled,d=a.busy,c=h(()=>{var v={"aria-label":n.value,"aria-describedby":"".concat(u.value," ").concat(i.value," ").concat(l.value),"aria-invalid":o.value,"aria-errormessage":s.value,"aria-disabled":f.value,"aria-busy":d.value};return v["aria-label"]||(v["aria-labelledby"]=u.value),v});return{descriptionId:i,labelId:u,infoId:l,errorId:s,aria:c}},Oc=function(t,r,a){var{descriptionId:n,labelId:i,infoId:u,errorId:l}=Zt(t,r,a),s=a.invalid,o=a.isDisabled,f=a.busy,d=h(()=>({"aria-describedby":"".concat(n.value," ").concat(u.value),"aria-invalid":s.value,"aria-errormessage":l.value,"aria-disabled":o.value,"aria-busy":f.value}));return{descriptionId:n,labelId:i,infoId:u,errorId:l,aria:d}},dj=function(t,r,a){var{descriptionId:n,labelId:i,infoId:u,errorId:l}=Zt(t,r,a),s=a.isDisabled,o=h(()=>({"aria-labelledby":i.value,"aria-describedby":"".concat(n.value," ").concat(u.value),"aria-disabled":s.value}));return{descriptionId:n,labelId:i,infoId:u,errorId:l,aria:o}},cj=function(t,r,a){var{descriptionId:n,labelId:i,infoId:u,errorId:l}=Zt(t,r,a),s=h(()=>({"aria-labelledby":i.value,"aria-describedby":"".concat(n.value," ").concat(u.value)}));return{descriptionId:n,labelId:i,infoId:u,errorId:l,aria:s}},vj=function(t,r,a){Q(t);var{descriptionId:n,labelId:i,infoId:u,errorId:l,aria:s}=Zt(t,r,a),o=a.form$,f=h(()=>({"aria-label":o.value.translations.vueform.elements.phone.ariaLabel}));return{descriptionId:n,labelId:i,infoId:u,errorId:l,aria:s,optionsAria:f}},pj=Oc,hj=$c,mj=$c,gj=Oc,yj=xm,bj=yj("toLowerCase"),ip=bj,Aj=function(t,r,a){var{name:n}=Q(t),i=ja(),u=a.form$,l=(o,f)=>{o.cells$&&u.value.$set(o.cells$,n.value,i.proxy),o.children$Array?o.children$Array.push(i.proxy):o.elements$?u.value.$set(o.elements$,n.value,i.proxy):f(o.$parent,f)},s=(o,f)=>{o.cells$&&u.value.$delete(o.cells$,n.value),o.children$Array?o.children$Array.splice(o.children$Array.map(d=>Ar(d.name)).indexOf(Ar(n.value)),1):o.elements$?u.value.$delete(o.elements$,n.value):f(o.$parent,f)};return{assignToParent:l,removeFromParent:s}},Wt=function(t,r,a){var n=["onBeforeCreate","onCreated"],i={onBeforeMount:Ii,onMounted:Vt,onBeforeUpdate:yp,onUpdated:bp,onBeforeUnmount:Gn,onUnmounted:Ap},u=ja(),l=a.form$,s=a.el$,o=a.fire,{assignToParent:f,removeFromParent:d}=Aj(t,r,{form$:l}),c=R(null),v=R(!1),p=R(!0),m=h(()=>!1),g=h(()=>!1),A=h(()=>!1),y=h(()=>!1),b=h(()=>!1),_=h(()=>!1),C=h(()=>!1),T=h(()=>!1),S=h(()=>!1),D=h(()=>p.value),x=()=>{p.value=!0},F=()=>{p.value=!1};return Ii(()=>{f(u.proxy.$parent,f)}),Vt(()=>{v.value=!0}),Gn(()=>{d(u.proxy.$parent,d)}),Object.values(n).forEach(k=>{o(ip(k.replace("on","")),s.value)}),Object.keys(i).forEach(k=>{i[k](()=>{o(ip(k.replace("on","")),s.value)})}),{isStatic:m,isFileType:g,isArrayType:y,isImageType:A,isObjectType:b,isGroupType:_,isListType:C,isMatrixType:T,isGridType:S,isActive:D,active:p,mounted:v,container:c,activate:x,deactivate:F}},Jy=function(t,r,a){var{isStatic:n,isFileType:i,isImageType:u,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isActive:d,active:c,mounted:v,container:p,activate:m,deactivate:g}=Wt(t,r,a),A=h(()=>!0),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:A,isImageType:u,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:y,isActive:d,active:c,mounted:v,container:p,activate:m,deactivate:g}},Go=function(t,r,a){var{isStatic:n,isFileType:i,isImageType:u,isObjectType:l,isGroupType:s,isListType:o,isMatrixType:f,isGridType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:y,isImageType:u,isObjectType:l,isGroupType:s,isMatrixType:f,isGridType:d,isListType:o,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},wj=function(t,r,a){var{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:y,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},_j=function(t,r,a){var{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isGroupType:y,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},Ej=function(t,r,a){var{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isGroupType:o,isListType:f,isGridType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isGroupType:o,isMatrixType:y,isGridType:d,isListType:f,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},Sj=function(t,r,a){var{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isGroupType:o,isListType:f,isMatrixType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:n,isFileType:i,isArrayType:u,isImageType:l,isObjectType:s,isGroupType:o,isMatrixType:d,isGridType:y,isListType:f,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},Dj=function(t,r,a){var{view:n}=Q(t),{isStatic:i,isArrayType:u,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0),b=h(()=>["gallery","image"].indexOf(n.value)!==-1);return{isStatic:i,isFileType:y,isArrayType:u,isImageType:b,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},Qy=function(t,r,a){var{isArrayType:n,isFileType:i,isImageType:u,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}=Wt(t,r,a),y=h(()=>!0);return{isStatic:y,isFileType:i,isArrayType:n,isImageType:u,isObjectType:l,isGroupType:s,isMatrixType:o,isGridType:f,isListType:d,isActive:c,active:v,mounted:p,container:m,activate:g,deactivate:A}},Cj=Go,xj=Go,$j=Go,Pt=function(t,r,a){var{name:n}=Q(t),i=ja(),{form$:u}=a,l=h(()=>{var d=(c,v)=>c&&(u.value.$vueform.vueVersion===3&&c.$options.name&&c.$options.name.match(/^[a-zA-Z\-]*Element$/)||u.value.$vueform.vueVersion===2&&c.hasOwnProperty("el$")&&typeof c.el$!="function")?c.el$:c.$parent?v(c.$parent,v):null;return d(u.value.$vueform.vueVersion===3?i.parent.proxy:i.proxy.$parent,d)}),s=h(()=>l.value&&l.value.path?l.value.path+"."+n.value:n.value),o=h(()=>l.value&&l.value.dataPath?l.value.dataPath+"."+n.value:n.value),f=h(()=>!1);return{parent:l,path:s,dataPath:o,flat:f}},eb=function(t,r,a){var{path:n,parent:i}=Pt(t,r,a),u=h(()=>i.value&&i.value.dataPath?i.value.dataPath:null),l=h(()=>!0);return{path:n,dataPath:u,flat:l,parent:i}},tb=function(t,r,a){var{path:n,parent:i,flat:u}=Pt(t,r,a);return{path:n,flat:u,parent:i}};function Ko(e,t,r){var a=r.deps||{};return r=B(B({},r),{},{events:t.emits,slots:t.slots}),t.features.forEach(n=>{P(n(e,t,a,r),(i,u)=>{a[u]=i})}),a}var Xt=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ko(t,r,a);return Vt(()=>{n.initWatcher&&n.initWatcher(),n.initMessageBag&&n.initMessageBag(),n.initValidation&&n.initValidation()}),B({},n)},rb=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ko(t,r,a);return B({},n)},Tc=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ko(t,r,a);return Vt(()=>{n.initWatcher(),n.initState(),n.initMessageBag(),n.initValidation()}),B({},n)},Oj=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{displayKey:n}=Q(t),i=Ko(t,r,a);return Vt(()=>{i.value.value[n.value]&&(i.input.value.value=i.value.value[n.value])}),Vt(()=>{i.initWatcher(),i.initMessageBag(),i.initValidation()}),B({},i)},wt={props:{name:{required:!0,type:[String,Number]},conditions:{required:!1,type:[Array],default:()=>[]},onBeforeCreate:{required:!1,type:[Function],default:null,private:!0},onCreated:{required:!1,type:[Function],default:null,private:!0},onBeforeMount:{required:!1,type:[Function],default:null,private:!0},onMounted:{required:!1,type:[Function],default:null,private:!0},onBeforeUpdate:{required:!1,type:[Function],default:null,private:!0},onUpdated:{required:!1,type:[Function],default:null,private:!0},onBeforeUnmount:{required:!1,type:[Function],default:null,private:!0},onUnmounted:{required:!1,type:[Function],default:null,private:!0}}},Mt={props:{inline:{required:!1,type:[Boolean],default:!1},layout:{required:!1,type:[String,Object,Boolean],default:"ElementLayout",private:!0},addClass:{required:!1,type:[Array,Object,String,Function],default:null},removeClass:{required:!1,type:[Array,Object,Function],default:null},replaceClass:{required:!1,type:[Object,Function],default:null},overrideClass:{required:!1,type:[Array,Object,String,Function],default:null},addClasses:{required:!1,type:[Object,Function],default:()=>({})},replaceClasses:{required:!1,type:[Object,Function],default:()=>({})},removeClasses:{required:!1,type:[Object,Function],default:()=>({})},overrideClasses:{required:!1,type:[Object,Function],default:()=>({})},presets:{required:!1,type:[Array],default:()=>[]},view:{required:!1,type:[String],default:void 0},views:{required:!1,type:[Object],default:()=>({})},size:{required:!1,type:[String],default:void 0},columns:{required:!1,type:[Object,String,Number],default:null},templates:{required:!1,type:[Object],default:()=>({})},description:{required:!1,type:[String,Object],localized:!0,default:null},info:{required:!1,type:[String,Object],localized:!0,default:null},infoPosition:{required:!1,type:[String],default:"right"},label:{required:!1,type:[String,Object,Function],localized:!0,default:null},before:{required:!1,type:[Object,String,Number],localized:!0,default:null},between:{required:!1,type:[Object,String,Number],localized:!0,default:null},after:{required:!1,type:[Object,String,Number],localized:!0,default:null},slots:{required:!1,type:[Object],default:()=>({})}}},ab={name:"ButtonElement",mixins:[wt,Mt],emits:["click","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"button",private:!0},buttonLabel:{required:!1,type:[String,Object,Function],default:null},buttonType:{required:!1,type:[String],default:"button"},buttonClass:{required:!1,type:[String,Array,Object],default:null},id:{required:!1,type:[String],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},loading:{required:!1,type:[Function,Boolean],default:!1},href:{required:!1,type:[String],default:""},target:{required:!1,type:[String],default:null},onClick:{required:!1,type:[Function],default:null,private:!0},resets:{required:!1,type:[Boolean],default:!1},submits:{required:!1,type:[Boolean],default:!1},secondary:{required:!1,type:[Boolean],default:!1},danger:{required:!1,type:[Boolean],default:!1},full:{required:!1,type:[Boolean],default:!1},align:{required:!1,type:[String],default:void 0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,tb,nt,Qy,oj,Bt,Ct,$t,bt,At,nj,Dt,xt,Ot,dj,Ft],r.slots=["label","info","description","before","between","after","default"],B({},rb(e,r))}},Or=function(t,r,a){var n=R(null);return{input:n}},Fc=function(t,r,a){var n=R(null);return{input:n}},Tj=Fc,Fj=Fc;function Ri(e,t,r){!(t instanceof Date)&&r(t,e).format(e)}var Zo=e=>{var t=e.split("_");return t[t.length-2]},Xo=e=>{var t=e.split("_");return t[t.length-1]},Il=e=>{var{parent:t,name:r,form$:a,dataPath:n,internalValue:i,defaultValue:u}=e,l;if(t.value&&t.value.isMatrixType){var s=t.value.resolvedRows[Zo(r.value)],o=t.value.resolvedColumns[Xo(r.value)],f=a.value.isSync?$r(a.value.model,"".concat(t.value.dataPath,".").concat(s.value)):t.value.value[s.value];switch(t.value.dataType){case"assoc":l=f===o.value?!0:null;break;case"array":l=Array.isArray(f)&&f.includes(o.value);break;default:l=f?.[o.value]}}else a.value.isSync?l=$r(a.value.model,n.value):t.value&&(t.value.isObjectType||t.value.isGroupType||t.value.isGridType||t.value.isListType)?l=t.value.value[r.value]:l=i?.value;return l!==void 0?l:u?.value instanceof File?u?.value:Ze(u?.value)},Jo=(e,t)=>{var{parent:r,name:a,form$:n,dataPath:i,internalValue:u}=t;if(r.value&&r.value.isMatrixType){var l=r.value.resolvedRows[Zo(a.value)],s=r.value.resolvedColumns[Xo(a.value)],o=n.value.isSync?$r(n.value.model,r.value.dataPath):r.value.value,f=o[l.value],d;switch(r.value.dataType){case"assoc":var c;e?c=s.value:(f===s.value||f&&typeof f!=typeof s.value)&&(c=null),d=B({},o),c!==void 0&&(d[l.value]=c);break;case"array":var v=[];r.value.resolvedColumns.forEach((g,A)=>{(Array.isArray(f)&&f.includes(g.value)&&g.value!==s.value||g.value===s.value&&e)&&v.push(g.value)}),d=B(B({},o),{},{[l.value]:v});break;default:var p={};r.value.resolvedRows.forEach((g,A)=>{p[g.value]=B({},Object.keys(o[g.value]||{}).filter(y=>r.value.resolvedColumns.map(b=>String(b.value)).includes(y)).reduce((y,b)=>B(B({},y),{},{[b]:o[g.value][b]}),{})),g.value===l.value&&r.value.resolvedColumns.forEach((y,b)=>{p[l.value][y.value]=y.value===s.value?e:p[l.value][y.value]})}),d=p}n.value.isSync?n.value.updateModel(r.value.dataPath,d):r.value.value=d}else if(n.value.isSync)n.value.updateModel(i.value,e);else if(r.value&&r.value.isListType){var m=r.value.value.map((g,A)=>A==a.value?e:g);r.value.update(m)}else r.value&&(r.value.isObjectType||r.value.isGroupType||r.value.isGridType)?r.value.value=Object.assign({},r.value.value,{[a.value]:e}):u.value=e},dr=function(t,r,a){var n,i,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{name:l,type:s}=Q(t),{parent:o,defaultValue:f,dataPath:d,form$:c}=a,v=R(Il({parent:o,name:l,form$:c,dataPath:d})),p=R(f.value instanceof File?f.value:Ze(f.value)),m=h({get:((n=u.value)===null||n===void 0?void 0:n.get)||function(){return Il({parent:o,name:l,form$:c,dataPath:d,internalValue:p,defaultValue:f})},set:((i=u.value)===null||i===void 0?void 0:i.set)||function(y){return Jo(y,{parent:o,name:l,form$:c,dataPath:d,internalValue:p})}}),g=h({get(){return m.value},set(y){m.value=y}}),A=h(()=>nn(m.value,f.value));return(u.init===void 0||u.init!==!1)&&v.value===void 0&&(m.value=f.value instanceof File?f.value:Ze(f.value)),Se(s,()=>{m.value=f.value instanceof File?f.value:Ze(f.value)}),{initialValue:v,internalValue:p,value:m,model:g,isDefault:A}},nb=function(t,r,a){var n,i,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{name:l,expression:s}=Q(t),{initialValue:o,internalValue:f,isDefault:d}=dr(t,r,a),c,v,p,{parent:m,defaultValue:g,dataPath:A,form$:y,shouldForceNumbers:b,stringToNumber:_,on:C}=a,T=ut("$vueform"),S=ut("config$"),D=R({}),x=R(),F=h({get:((n=u.value)===null||n===void 0?void 0:n.get)||function(){return Il({parent:m,name:l,form$:y,dataPath:A,internalValue:f,defaultValue:g})},set:((i=u.value)===null||i===void 0?void 0:i.set)||function(j){return b()&&(j=_(j)),Jo(j,{parent:m,name:l,form$:y,dataPath:A,internalValue:f})}}),k=h({get(){return F.value},set(j){F.value=j}}),U=h(()=>s.value?y.value.expression.vars(x.value,A.value):[]),Y=()=>{x.value&&(F.value=y.value.resolveExpression(x.value,A.value))},H=()=>{x.value=jt(s.value,S.value,y.value)},N=()=>{C("reset",Y),C("clear",Y),p=Se([()=>T.value.i18n.locale,()=>y.value.locale],()=>{H()}),v=Se(()=>y.value.requestData,()=>{var j=rg(y.value.requestData);for(var M of U.value)D.value[M]=j[M]},{deep:!0,immediate:!0}),c=Se(D,()=>{x.value&&Y()},{deep:!0})},I=()=>{v&&v(),c&&c(),p&&p()};return s.value&&Vt(()=>{H(),Y(),N()}),Se(s,(j,M)=>{j?(H(),Y(),M||N()):(F.value=g.value,I())},{immediate:!1,deep:!0}),{initialValue:o,internalValue:f,value:F,model:k,isDefault:d}},Mj=function(t,r,a){var{name:n,type:i}=Q(t),{parent:u,defaultValue:l,dataPath:s,form$:o,hasDynamicRows:f}=a,d=R(void 0);o.value.isSync?d.value=$r(o.value.model,s.value):u.value&&(u.value.isObjectType||u.value.isGroupType||u.value.isGridType||u.value.isListType)&&(d.value=u.value.value[n.value]);var c=R(Ze(l.value)),v=h({get:function(){var A;return o.value.isSync?A=$r(o.value.model,s.value):u.value&&(u.value.isObjectType||u.value.isGroupType||u.value.isGridType||u.value.isListType)?A=u.value.value[n.value]:A=c.value,A=A!==void 0?A:Ze(l.value),f.value&&(A=Object.values(A)),A},set:function(A){o.value.isSync?o.value.updateModel(s.value,A):u.value&&u.value.isListType?u.value.update(u.value.value.map((y,b)=>b==n.value?A:y)):u.value&&(u.value.isObjectType||u.value.isGroupType||u.value.isGridType)?u.value.value=Object.assign({},u.value.value,{[n.value]:A}):c.value=A}}),p=h({get(){return v.value},set(g){v.value=g}}),m=h(()=>nn(v.value,l.value));return d.value===void 0?v.value=l.value:v.value=B(B({},l.value),v.value),Se(i,()=>{v.value=Ze(l.value)}),{initialValue:d,internalValue:c,value:v,model:p,isDefault:m}},kj=function(t,r,a){var{initialValue:n,internalValue:i,value:u,model:l,isDefault:s}=dr(t,r,a,{init:!1});return{initialValue:n,internalValue:i,value:u,model:l,isDefault:s}},Bj=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{initialValue:i,internalValue:u,value:l,isDefault:s}=dr(t,r,a,{init:!1}),o=a.defaultValue;return(n.init===void 0||n.init!==!1)&&(i.value===void 0?l.value=o.value:l.value=Object.assign({},o.value,l.value)),{internalValue:u,value:l,isDefault:s}},ib=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=a.parent,u=a.dataPath,l=a.defaultValue,s=a.children$Array,o=a.form$,f=R(Ze(l.value)),d=h(n.value||{get(){var v;o.value.isSync?v=u.value?$r(o.value.model,u.value)||{}:o.value.model:i.value&&(i.value.isObjectType||i.value.isGroupType||i.value.isGridType)?v=i.value.value:v=f.value;var p=s.value.reduce((g,A)=>{if(!A||A.isStatic)return g;var y=[];if(!A.flat)y.push(A.name);else{var b=_=>{_.forEach(C=>{!C.isStatic&&C.flat?b(C.children$Array):C.isStatic||y.push(C.name)})};b(A.children$Array)}return g.concat(y)},[]),m={};return p.forEach(g=>{v[g]!==void 0&&(m[g]=v[g])}),v=m,v!==void 0?v:Ze(l.value)},set(v){o.value.isSync?o.value.updateModel(u.value,v):i.value&&(i.value.isObjectType||i.value.isGroupType||i.value.isGridType)?i.value.value=Object.assign({},i.value.value,v):f.value=v}}),c=h(()=>nn(d.value,l.value));return{value:d,isDefault:c}},Mc=function(t,r,a){var{value:n,isDefault:i}=dr(t,r,a),u=a.language,l=h({get(){return n.value[u.value]},set(s){n.value=Object.assign({},n.value,{[u.value]:s})}});return{value:n,model:l,isDefault:i}},Pj=function(t,r,a){var{name:n}=Q(t),i=a.parent,u=a.valueDateFormat,l=a.defaultValue,s=a.dataPath,o=a.form$,f=o.value.$vueform.services.moment,d=R(Ze(l.value)),{value:c,initialValue:v,isDefault:p}=dr(t,r,a,{value:{get(){return Il({parent:i,name:n,form$:o,dataPath:s,internalValue:d,defaultValue:l})},set(g){return!Sl(g)&&!(g instanceof Date)&&u.value!==!1&&Ri(u.value,g,f),g=g&&g instanceof Date&&u.value!==!1?f(g).format(u.value):g,Jo(g,{parent:i,name:n,form$:o,dataPath:s,internalValue:d})}}}),m=h(()=>c.value instanceof Date||!c.value?c.value:f(c.value,u.value).toDate());return{value:c,model:m,initialValue:v,internalValue:d,isDefault:p}},qj=function(t,r,a){var{name:n}=Q(t),i=a.parent,u=a.valueDateFormat,l=a.defaultValue,s=a.dataPath,o=a.form$,f=o.value.$vueform.services.moment,d=R(Ze(l.value)),{value:c,initialValue:v,isDefault:p}=dr(t,r,a,{value:{get(){return Il({parent:i,name:n,form$:o,dataPath:s,internalValue:d,defaultValue:l})},set(g){return Array.isArray(g)||(g=[g]),g=g.map(A=>(!Sl(A)&&!(A instanceof Date)&&u.value!==!1&&Ri(u.value,A,f),A&&A instanceof Date&&u.value!==!1?f(A).format(u.value):A)),Jo(g,{parent:i,name:n,form$:o,dataPath:s,internalValue:d})}}}),m=h(()=>c.value.map(g=>g instanceof Date||!g?g:f(g,u.value).toDate()));return{value:c,model:m,initialValue:v,internalValue:d,isDefault:p}},Nj=nb,za=function(t,r,a){var n=h(()=>null);return{nullValue:n}},Xu=function(t,r,a){var n=h(()=>[]);return{nullValue:n}},ub=function(t,r,a){var{falseValue:n}=Q(t),i=h(()=>n.value);return{nullValue:i}},Rj=function(t,r,a){var{min:n,default:i}=Q(t),u=h(()=>i.value!==void 0&&Oe(i.value)?i.value.map(l=>n.value):n.value);return{nullValue:u}},Qo=function(t,r,a){var n=h(()=>({}));return{nullValue:n}},Ij=function(t,r,a){var n=h(()=>({country:null,country_code:null,state:null,state_code:null,city:null,zip:null,address:null,formatted_address:null,lat:null,lng:null}));return{nullValue:n}},kc=function(t,r,a){var n=a.languages,i=h(()=>{var u={};return P(n.value,l=>{u[l]=null}),u});return{nullValue:i}},Lj=function(t,r,a){var n=h(()=>r.nullValue!==void 0?r.nullValue:null);return{nullValue:n}},Jt=function(t,r,a){var{name:n,floating:i,placeholder:u,label:l,fieldName:s}=Q(t),o=a.form$,f=a.Label,d=ut("config$"),c=h(()=>{var v;return s&&s.value?v=jt(s.value,d.value,o.value):l&&l.value?v=f.value:i&&i.value?v=jt(i.value,d.value,o.value):u&&u.value&&o.value.options.floatPlaceholders?v=jt(u.value,d.value,o.value):v=ai(n.value).replace(/_|-/g," "),o.value.$vueform.sanitize(v)});return{genericName:c}},jj=function(t,r,a){var{name:n,embed:i,label:u,fieldName:l}=Q(t),s=a.form$,o=a.Label,f=a.filename||R(null),d=ut("config$"),c=h(()=>{var v;return i.value&&f.value?v=f.value:l&&l.value?v=jt(l.value,d.value,s.value):u.value?v=o.value:v=/^\d+$/.test(n.value)?s.value.translations.vueform.elements.file.defaultName:ai(n.value).replace(/_|-/g," "),s.value.$vueform.sanitize(v)});return{genericName:c}},Ca=function(t,r,a){var n=a.value,i=a.nullValue,u=h(()=>nn(n.value,i.value)||[void 0,null,""].indexOf(n.value)!==-1);return{empty:u}},Bc=function(t,r,a){var n=a.value,i=a.nullValue,u=a.language,l=h(()=>n.value[u.value]==i.value[u.value]||n.value[u.value]==="");return{empty:l}},ef=function(t,r,a){var n=a.value,i=a.nullValue,u=h(()=>nn(n.value,i.value)||[void 0,null,""].indexOf(n.value)!==-1||n.value.length==0);return{empty:u}},Zi=function(t,r,a){var{loading:n}=Q(t),i=a.pending,u=h(()=>i.value||n.value);return{isLoading:u}},Va=function(t,r,a){var{floating:n,placeholder:i}=Q(t),u=a.form$,l=h(()=>!!(n.value||i.value&&u.value.options.floatPlaceholders)&&n.value!==!1);return{hasFloating:l}},Tr=function(t,r,a){var n=a.form$,i=a.el$,u=a.fire,l=a.dirt,s=a.validate,o=a.value,f=()=>{Se(o,(d,c)=>{Tn(d,c)||(u("change",d,c,i.value),l&&l(),s&&n.value.shouldValidateOnChange&&s())},{immediate:!1,deep:!0})};return{initWatcher:f}},Pc=function(t,r,a){var n=a.form$,i=a.el$,u=a.fire,l=a.dirt,s=a.value,o=a.language,f=a.validateLanguage,d=()=>{Se(s,(c,v)=>{Tn(c,v)||(u("change",c,v,i.value),l&&l(),n.value.shouldValidateOnChange&&f(o.value))},{immediate:!1,deep:!0})};return{initWatcher:d}},lb=function(t,r,a){var n=a.form$,i=a.el$,u=a.fire,l=a.dirt,s=a.validateValidators,o=a.value,f=()=>{Se(o,(d,c)=>{Tn(d,c)||(u("change",d,c,i.value),l&&l(),s&&n.value.shouldValidateOnChange&&s())},{immediate:!1,deep:!0})};return{initWatcher:f}},qc=function(t,r,a){var{form$:n,fire:i,value:u,el$:l,dirt:s,validateValidators:o}=a,f=()=>{Se(u,(d,c)=>{Tn(d,c)||(i("change",d,c,l.value),s&&s(),o&&n.value.shouldValidateOnChange&&o())},{immediate:!1,deep:!0})};return{initWatcher:f}},Uj=function(t,r,a){var{displayKey:n}=Q(t),i=a.form$,u=a.el$,l=a.fire,s=a.dirt,o=a.validate,f=a.value,d=a.input,c=()=>{Se(f,(v,p)=>{Tn(v,p)||(l("change",v,p,u.value),s(),d.value.value=d.value&&f.value&&f.value[n.value]!==void 0?f.value[n.value]:"",o&&i.value.shouldValidateOnChange&&o())},{immediate:!1,deep:!0})};return{initWatcher:c}},Yj=lb,sb=qc,zj=function(t,r,a){var{provider:n,options:i,readonly:u}=Q(t),{form$:l,input:s,model:o,nullValue:f,messageBag:d,validate:c,el$:v,invalid:p,isDisabled:m,resetValidators:g,resetting:A,initValidation:y}=a,b=R(null),_=h(()=>!m.value&&!u.value),C=h(()=>n.value||l.value.options.useProviders.captcha),T=h(()=>B(B({},l.value.options.providerOptions[C.value]),i.value)),S=()=>{o.value=f.value,b.value=new l.value.options.providers.captcha[C.value](s.value,T.value,v.value)},D=()=>{g(),b.value.reset(),o.value=f.value,b.value=null};return Vt(()=>{_.value&&S()}),Se(_,(function(){var x=he(function*(F,k){F?F&&(yield He(),S(),y()):D()});return function(F,k){return x.apply(this,arguments)}})()),{Provider:b,captchaOptions:T,shouldVerify:_,initCaptcha:S,destroyCaptcha:D}},Ir=function(t,r,a){var{rules:n}=Q(t),i=ut("config$"),u=a.form$,l=a.path,s=a.el$,o=R({dirty:!1,validated:!0}),f=R([]),d=R({}),c=x1({}),v=R(!1),p=h(()=>n.value),m=h(()=>o.value.dirty),g=h(()=>o.value.validated),A=h(()=>rt(f.value,{invalid:!0})),y=h(()=>rt(f.value,{pending:!0})),b=h(()=>y.value),_=h(()=>{var Z=[];return P(f.value,W=>{W.failing&&Z.push(W.message)}),Z}),C=h(()=>d.value.errors),T=h(()=>d.value.error||null),S=h(()=>T.value!==null),D=h(()=>p.value&&p.value.length>0&&o.value.validated&&!A.value||(!p.value||!p.value.length)&&m.value),x=h(()=>f.value.some(Z=>{var W;if(Z.name==="required")return(W=Z.conditions)!==null&&W!==void 0&&W.length?Z.conditions(u.value,Z,s.value):!0})),F=h(()=>!1),k=h(()=>!0),U=(function(){var Z=he(function*(){if(!p.value){v.value=!1;return}if(u.value.validation===!1){v.value=!1;return}if(v.value){v.value=!1;return}yield Zr(f.value,(function(){var W=he(function*(ee){yield ee.validate()});return function(ee){return W.apply(this,arguments)}})()),o.value.validated=!0});return function(){return Z.apply(this,arguments)}})(),Y=()=>{P(f.value,Z=>{Z.reset()}),o.value.validated=!p.value},H=()=>{o.value.dirty=!0},N=()=>{o.value.dirty=!1},I=()=>{d.value&&d.value.clear()},j=()=>{d.value=new u.value.$vueform.services.messageBag(_)},M=()=>{if(!p.value){f.value=[];return}o.value.validated=!1,c.value=new u.value.$vueform.services.validation.factory(l.value,u.value,i.value),f.value=[],P(c.value.makeAll(p.value),Z=>{f.value.push(Z)})},K=()=>{M()};return{state:o,Validators:f,messageBag:d,resetting:v,dirty:m,validated:g,invalid:A,pending:y,busy:b,errors:C,error:T,validationRules:p,isDanger:S,isSuccess:D,isRequired:x,useCustomFilled:F,isFilled:k,validate:U,dirt:H,clean:N,clearMessages:I,resetValidators:Y,initMessageBag:j,initValidation:M,reinitValidation:K}},Xi=function(t,r,a){var{state:n,Validators:i,messageBag:u,resetting:l,dirty:s,validated:o,invalid:f,pending:d,errors:c,error:v,validationRules:p,isDanger:m,isSuccess:g,isRequired:A,useCustomFilled:y,isFilled:b,validate:_,dirt:C,clean:T,clearMessages:S,resetValidators:D,initMessageBag:x,initValidation:F,reinitValidation:k}=Ir(t,r,a),U=h(()=>rt(i.value,{debouncing:!0})),Y=h(()=>d.value||U.value);return{state:n,Validators:i,messageBag:u,resetting:l,dirty:s,validated:o,invalid:f,pending:d,debouncing:U,busy:Y,errors:c,error:v,validationRules:p,isDanger:m,isSuccess:g,isRequired:A,useCustomFilled:y,isFilled:b,validate:_,dirt:C,clean:T,clearMessages:S,resetValidators:D,initMessageBag:x,initValidation:F,reinitValidation:k}},ls=function(t,r,a){var{state:n,Validators:i,messageBag:u,validationRules:l,dirt:s,initValidation:o,resetting:f,isRequired:d,useCustomFilled:c,isFilled:v}=Ir(t,r,a),p=a.form$,m=a.children$,g=h(()=>rt(m.value,{available:!0,dirty:!0})||n.value.dirty),A=h(()=>!rt(m.value,{available:!0,validated:!1})&&n.value.validated),y=h(()=>rt(m.value,{available:!0,invalid:!0})||rt(i.value,{invalid:!0})),b=h(()=>rt(m.value,{available:!0,pending:!0})||rt(i.value,{pending:!0})),_=h(()=>rt(m.value,{available:!0,debouncing:!0})||rt(i.value,{debouncing:!0})),C=h(()=>rt(m.value,{available:!0,busy:!0})||b.value||_.value),T=h(()=>{var K=[];return P(i.value,Z=>{Z.failing&&K.push(Z.message)}),K}),S=h(()=>{var K=[];return P(m.value,Z=>{!Z.available||Z.isStatic||P(Z.errors,W=>{K.push(W)})}),K}),D=h(()=>T.value.concat(S.value)),x=h(()=>u.value.errors),F=h(()=>Cu(T.value)),k=(function(){var K=he(function*(){if(f.value){f.value=!1;return}yield U(),yield Y()});return function(){return K.apply(this,arguments)}})(),U=(function(){var K=he(function*(){if(f.value){f.value=!1;return}p.value.validation!==!1&&(yield Zr(i.value,(function(){var Z=he(function*(W){yield W.validate()});return function(W){return Z.apply(this,arguments)}})()),n.value.validated=!0)});return function(){return K.apply(this,arguments)}})(),Y=(function(){var K=he(function*(){p.value.validation!==!1&&(yield Zr(m.value,(function(){var Z=he(function*(W){W.isStatic||(yield W.validate())});return function(W){return Z.apply(this,arguments)}})()))});return function(){return K.apply(this,arguments)}})(),H=()=>{P(m.value,K=>{K.isStatic||K.clean()}),n.value.dirty=!1},N=()=>{u.value&&u.value.clear(),P(m.value,K=>{K.isStatic||K.clearMessages()})},I=()=>{P(m.value,K=>{K.isStatic||K.resetValidators()}),P(i.value,K=>{K.reset()}),n.value.validated=!l.value},j=()=>{u.value=new p.value.$vueform.services.messageBag(D)},M=()=>{o(),P(m.value,K=>{K.isStatic||K.reinitValidation()})};return{state:n,Validators:i,messageBag:u,resetting:f,dirty:g,validated:A,invalid:y,pending:b,debouncing:_,busy:C,isRequired:d,useCustomFilled:c,isFilled:v,validatorErrors:T,childrenErrors:S,errors:x,error:F,validationRules:l,validate:k,validateValidators:U,validateChildren:Y,dirt:s,clean:H,clearMessages:N,resetValidators:I,initMessageBag:j,initValidation:o,reinitValidation:M}},Vj=function(t,r,a){var{state:n,Validators:i,messageBag:u,resetting:l,dirty:s,validated:o,invalid:f,pending:d,debouncing:c,busy:v,isRequired:p,useCustomFilled:m,isFilled:g,validatorErrors:A,childrenErrors:y,errors:b,validationRules:_,validate:C,validateValidators:T,validateChildren:S,dirt:D,clean:x,clearMessages:F,resetValidators:k,initMessageBag:U,initValidation:Y,reinitValidation:H}=ls(t,r,a),{form$:N,children$:I,isTableView:j}=a,M=h(()=>j.value?Cu(u.value.errors):Cu(A.value));return{state:n,Validators:i,messageBag:u,resetting:l,dirty:s,validated:o,invalid:f,pending:d,debouncing:c,busy:v,isRequired:p,useCustomFilled:m,isFilled:g,validatorErrors:A,childrenErrors:y,errors:b,error:M,validationRules:_,validate:C,validateValidators:T,validateChildren:S,dirt:D,clean:x,clearMessages:F,resetValidators:k,initMessageBag:U,initValidation:Y,reinitValidation:H}},Nc=function(t,r,a){var{rules:n}=Q(t),i=ut("config$"),u=a.form$,l=a.el$,s=a.path,o=a.languages,f=a.language,d=a.value,{messageBag:c,clearMessages:v,resetting:p,useCustomFilled:m,isFilled:g}=Xi(t,r,a),A=R({dirty:{},validated:{}}),y=R({}),b=h(()=>{var z={};return n.value&&P(o.value,G=>{z[G]=zt(n.value)?n.value[G]||null:n.value}),z}),_=h(()=>rt(A.value.dirty,z=>z===!0)),C=h(()=>!rt(A.value.validated,z=>z===!1)),T=h(()=>{var z=!1;return P(y.value,G=>{rt(G,{invalid:!0})&&(z=!0)}),z}),S=h(()=>{var z=!1;return P(y.value,G=>{rt(G,{pending:!0})&&(z=!0)}),z}),D=h(()=>{var z=!1;return P(y.value,G=>{rt(G,{debouncing:!0})&&(z=!0)}),z}),x=h(()=>S.value||D.value),F=h(()=>{var z=[];return P(y.value,(G,X)=>{P(G,re=>{re.failing&&z.push(re.message+" ("+X+")")})}),z}),k=h(()=>c.value.errors),U=h(()=>{var z=null;P(y.value[f.value],X=>{if(z!==null)return!1;X.failing&&(z=X.message)});var G=c.value.prepends?c.value.prepends.errors:[];return z!==null&&(G=ro(G,[z])),G=ro(G,c.value.appends?c.value.appends.errors:[]),Cu(G)}),Y=h(()=>U.value!==null&&U.value!==void 0),H=h(()=>b.value[f.value]&&b.value[f.value].length>0&&A.value.validated[f.value]&&!rt(y.value[f.value],{invalid:!0})||(!b.value[f.value]||!b.value[f.value].length)&&A.value.dirty[f.value]),N=h(()=>{var z;return(z=y.value)===null||z===void 0||(z=z[f.value])===null||z===void 0?void 0:z.some(G=>{var X;if(G.name==="required")return(X=G.conditions)!==null&&X!==void 0&&X.length?G.conditions(u.value,G,l.value):!0})}),I=(function(){var z=he(function*(){if(p.value){p.value=!1;return}yield Zr(o.value,(function(){var G=he(function*(X){yield j(X)});return function(X){return G.apply(this,arguments)}})())});return function(){return z.apply(this,arguments)}})(),j=(function(){var z=he(function*(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.value;u.value.validation!==!1&&y.value[G]&&(yield Zr(y.value[G],(function(){var X=he(function*(re){yield re.validate(d.value[G])});return function(re){return X.apply(this,arguments)}})()),A.value.validated[G]=!0)});return function(){return z.apply(this,arguments)}})(),M=()=>{P(o.value,z=>{P(y.value[z],G=>{G.reset()}),P(b.value,(G,X)=>{A.value.validated[X]=!(G.length>0)})})},K=()=>{A.value.dirty[f.value]=!0},Z=()=>{A.value.dirty[f.value]=!1},W=()=>{var z={},G={};P(o.value,X=>{z[X]=!1}),P(o.value,X=>{G[X]=!0}),A.value={dirty:z,validated:G}},ee=()=>{c.value=new u.value.$vueform.services.messageBag(F)},se=()=>{if(b.value){P(b.value,(G,X)=>{A.value.validated[X]=!(G!==null&&G.length>0)});var z=new u.value.$vueform.services.validation.factory(s.value,u.value,i.value);y.value={},P(b.value,(G,X)=>{G!==null&&(y.value[X]||(y.value=Object.assign({},y.value,{[X]:[]})),P(z.makeAll(G),re=>{y.value[X].push(re)}))})}},Me=()=>{se()};return{state:A,Validators:y,messageBag:c,resetting:p,dirty:_,validated:C,invalid:T,pending:S,debouncing:D,busy:x,errors:k,error:U,validationRules:b,isDanger:Y,isSuccess:H,isRequired:N,useCustomFilled:m,isFilled:g,validate:I,validateLanguage:j,dirt:K,clean:Z,clearMessages:v,resetValidators:M,initState:W,initMessageBag:ee,initValidation:se,reinitValidation:Me}},Wj=function(t,r,a){var n=a.value,{state:i,Validators:u,messageBag:l,resetting:s,dirty:o,validated:f,invalid:d,pending:c,busy:v,isRequired:p,useCustomFilled:m,isFilled:g,errors:A,error:y,validationRules:b,dirt:_,clean:C,clearMessages:T,resetValidators:S,initMessageBag:D,initValidation:x,reinitValidation:F}=Ir(t,r,a),k=(function(){var U=he(function*(){if(b.value){if(s.value){s.value=!1;return}Oe(n.value)?yield Zr(n.value,(function(){var Y=he(function*(H){if(yield Zr(u.value,(function(){var N=he(function*(I){yield I.validate(H)});return function(I){return N.apply(this,arguments)}})()),d.value)return!1});return function(H){return Y.apply(this,arguments)}})()):yield Zr(u.value,(function(){var Y=he(function*(H){yield H.validate(n.value)});return function(H){return Y.apply(this,arguments)}})()),i.value.validated=!0}});return function(){return U.apply(this,arguments)}})();return{state:i,Validators:u,messageBag:l,resetting:s,dirty:o,validated:f,invalid:d,pending:c,busy:v,isRequired:p,useCustomFilled:m,isFilled:g,errors:A,error:y,validationRules:b,validate:k,dirt:_,clean:C,clearMessages:T,resetValidators:S,initMessageBag:D,initValidation:x,reinitValidation:F}},Hj=function(t,r,a){var n=a.form$,i=a.value,u=a.uploading,l=a.removing,{state:s,Validators:o,messageBag:f,resetting:d,dirty:c,validated:v,invalid:p,pending:m,isRequired:g,useCustomFilled:A,isFilled:y,errors:b,error:_,validationRules:C,dirt:T,clean:S,clearMessages:D,resetValidators:x,initMessageBag:F,initValidation:k,reinitValidation:U}=Ir(t,r,a),Y=h(()=>m.value||u.value||l.value),H=(function(){var N=he(function*(){if(C.value&&n.value.validation!==!1){if(d.value){d.value=!1;return}var I=["min","max","between","size","mimetypes","mimes","dimensions","file","image","gt","gte","lt","lte"];yield Zr(o.value,(function(){var j=he(function*(M){!(i.value instanceof File)&&i.value&&I.indexOf(M.name)!==-1||(yield M.validate())});return function(M){return j.apply(this,arguments)}})()),s.value.validated=!0}});return function(){return N.apply(this,arguments)}})();return{state:s,Validators:o,messageBag:f,resetting:d,dirty:c,validated:v,invalid:p,pending:m,busy:Y,isRequired:g,useCustomFilled:A,isFilled:y,errors:b,error:_,validationRules:C,validate:H,dirt:T,clean:S,clearMessages:D,resetValidators:x,initMessageBag:F,initValidation:k,reinitValidation:U}},Gj=function(t,r,a){var{displayKey:n}=Q(t),i=a.form$,u=a.value,{state:l,Validators:s,messageBag:o,resetting:f,dirty:d,validated:c,invalid:v,pending:p,debouncing:m,busy:g,isRequired:A,useCustomFilled:y,isFilled:b,errors:_,error:C,validationRules:T,isSuccess:S,isDanger:D,dirt:x,clean:F,clearMessages:k,resetValidators:U,initMessageBag:Y,initValidation:H,reinitValidation:N}=Xi(t,r,a),I=(function(){var j=he(function*(){if(T.value&&i.value.validation!==!1){if(f.value){f.value=!1;return}yield Zr(s.value,(function(){var M=he(function*(K){yield K.validate(u.value[n.value])});return function(K){return M.apply(this,arguments)}})()),l.value.validated=!0}});return function(){return j.apply(this,arguments)}})();return{state:l,Validators:s,messageBag:o,resetting:f,dirty:d,validated:c,invalid:v,pending:p,debouncing:m,busy:g,isRequired:A,useCustomFilled:y,isFilled:b,errors:_,error:C,validationRules:T,isSuccess:S,isDanger:D,validate:I,dirt:x,clean:F,clearMessages:k,resetValidators:U,initMessageBag:Y,initValidation:H,reinitValidation:N}},Kj=function(t,r,a){var{value:n,dataType:i}=a,{state:u,Validators:l,messageBag:s,resetting:o,dirty:f,validated:d,invalid:c,pending:v,debouncing:p,busy:m,isRequired:g,validatorErrors:A,childrenErrors:y,errors:b,validationRules:_,validate:C,validateValidators:T,validateChildren:S,dirt:D,clean:x,clearMessages:F,resetValidators:k,initMessageBag:U,initValidation:Y,reinitValidation:H}=ob(t,r,a),N=h(()=>{var M;return(M=b.value)===null||M===void 0?void 0:M[0]}),I=h(()=>!0),j=h(()=>{switch(i.value){case"assoc":return Object.values(n.value).every(M=>M!==null);case"array":return Object.values(n.value).every(M=>M.length);case"object":return Object.values(n.value).every(M=>Object.values(M).every(K=>Array.isArray(K)?K.length:K instanceof File?K.name!=="":typeof K=="string"?K.trim()!=="":K!=null))}});return{state:u,Validators:l,messageBag:s,resetting:o,dirty:f,validated:d,invalid:c,pending:v,debouncing:p,busy:m,isRequired:g,useCustomFilled:I,isFilled:j,validatorErrors:A,childrenErrors:y,errors:b,error:N,validationRules:_,validate:C,validateValidators:T,validateChildren:S,dirt:D,clean:x,clearMessages:F,resetValidators:k,initMessageBag:U,initValidation:Y,reinitValidation:H}},Zj=ls,ob=ls,Lr=function(t,r,a){var{default:n,name:i}=Q(t),{nullValue:u,form$:l,parent:s}=a,o=h(()=>{var f;if(s&&s.value&&s.value.isMatrixType){var d=s.value.resolvedRows[Zo(i.value)],c=s.value.resolvedColumns[Xo(i.value)],v=s.value.defaultValue[d.value];switch(s.value.dataType){case"assoc":f=v===c.value?!0:null;break;case"array":f=Array.isArray(v)&&v.includes(c.value);break;default:f=v?.[c.value];break}}else if(s&&s.value){var p;f=(p=s.value.defaultValue)===null||p===void 0?void 0:p[i.value]}else l.value.options.default[i.value]!==void 0&&(f=l.value.options.default[i.value]);return f!==void 0?f instanceof File?new File([f],f.name,f):Ze(f):n.value!==void 0?n.value instanceof File?new File([n.value],n.value.name,n.value):Ze(n.value):Ze(u.value)});return{defaultValue:o}},Ju=function(t,r,a){var{default:n,name:i}=Q(t),u=a.nullValue,l=a.form$,s=a.parent,o=ut("config$"),f=h(()=>{var d;if(s&&s.value&&s.value.isMatrixType){var c=s.value.resolvedRows[Zo(i.value)],v=s.value.resolvedColumns[Xo(i.value)],p=s.value.defaultValue[c.value];switch(s.value.dataType){case"assoc":d=p===v.value?!0:null;break;case"array":d=Array.isArray(p)&&p.includes(v.value);break;default:d=p?.[v.value];break}}else s&&s.value?d=s.value.defaultValue[i.value]:l.value.options.default[i.value]!==void 0&&(d=l.value.options.default[i.value]);return d!==void 0?d instanceof File?new File([d],d.name,d):zt(d)?jt(Ze(d),o.value,l.value):Ze(d):n.value!==void 0?n.value instanceof File?new File([n.value],n.value.name,n.value):zt(n.value)?jt(Ze(n.value),o.value,l.value):Ze(n.value):Ze(u.value)});return{defaultValue:f}},Xj=function(t,r,a){var{default:n,name:i}=Q(t),u=a.nullValue,l=a.form$,s=a.parent,o=h(()=>{var f;return s&&s.value?f=s.value.defaultValue[i.value]:l.value.options.default[i.value]&&(f=l.value.options.default[i.value]),f!==void 0?Ze(_n({},n.value||u.value,f)):Object.keys(n.value).length>0?Ze(n.value):Ze(u.value)});return{defaultValue:o}},Jj=function(t,r,a){var{name:n,default:i}=Q(t),{nullValue:u,form$:l,parent:s,hasDynamicRows:o,computedRows:f,resolvedRows:d,resolvedColumns:c,rowsCount:v,dataType:p,el$:m}=a,g=h(()=>{var A;s&&s.value?A=s.value.defaultValue[n.value]:l.value.options.default[n.value]&&(A=l.value.options.default[n.value]);var y=A||Ze(i.value);return Object.keys(y).length||d.value.forEach((b,_)=>{c.value.forEach((C,T)=>{var S;switch(p.value){case"assoc":y[b.value]=y[b.value]===C.value?C.value:null;break;case"array":y[b.value]=[...y[b.value]||[],...y[b.value]&&y[b.value].indexOf(C.value)!==-1?[C.value]:[]];break;default:y[b.value]=B(B({},y[b.value]||{}),{},{[C.value]:((S=y[b.value])===null||S===void 0?void 0:S[C.value])||void 0})}})}),y});return{defaultValue:g}},fb=function(t,r,a){var{default:n}=Q(t),i=a.form$,u=a.parent,l=h(()=>{var s={};return u&&u.value?s=u.value.defaultValue:i.value.options.default&&(s=i.value.options.default),Ze(_n({},n.value,s))});return{defaultValue:l}},Rc=function(t,r,a){var{default:n,name:i}=Q(t),u=a.nullValue,l=a.form$,s=a.parent,o=h(()=>{var f;if(s&&s.value?f=s.value.defaultValue[i.value]:l.value.options.default[i.value]&&(f=l.value.options.default[i.value]),f!==void 0)return Ze(Object.assign({},en(u.value),f));if(n.value===void 0)return en(u.value);var d=en(n.value);if(!zt(d)){var c={};P(u.value,(v,p)=>{c[p]=d}),d=c}return Object.assign({},en(u.value),d)});return{defaultValue:o}},Qj=Ju,on=function(t,r,a){var{readonly:n}=Q(t),{el$:i,form$:u,path:l}=a,s=h(()=>typeof n.value=="function"?n.value(i.value,u.value):Array.isArray(n.value)?n.value.every(o=>u.value.$vueform.services.condition.check(o,l.value,u.value,i.value)):typeof n.value=="object"&&n.value&&n.value.value!==void 0?n.value.value:n.value);return{isReadonly:s}};function e5(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var t5=e5,up=rs;function r5(e,t){if(e!==t){var r=e!==void 0,a=e===null,n=e===e,i=up(e),u=t!==void 0,l=t===null,s=t===t,o=up(t);if(!l&&!o&&!i&&e>t||i&&u&&s&&!l&&!o||a&&u&&s||!r&&s||!n)return 1;if(!a&&!i&&!o&&e<t||o&&r&&n&&!a&&!i||l&&r&&n||!u&&n||!s)return-1}return 0}var a5=r5,n5=a5;function i5(e,t,r){for(var a=-1,n=e.criteria,i=t.criteria,u=n.length,l=r.length;++a<u;){var s=n5(n[a],i[a]);if(s){if(a>=l)return s;var o=r[a];return s*(o=="desc"?-1:1)}}return e.index-t.index}var u5=i5,If=zu,l5=as,s5=ri,o5=Jm,f5=t5,d5=Kl,c5=u5,v5=Xl,p5=Oe;function h5(e,t,r){t.length?t=If(t,function(i){return p5(i)?function(u){return l5(u,i.length===1?i[0]:i)}:i}):t=[v5];var a=-1;t=If(t,d5(s5));var n=o5(e,function(i,u,l){var s=If(t,function(o){return o(i)});return{criteria:s,index:++a,value:i}});return f5(n,function(i,u){return c5(i,u,r)})}var m5=h5,g5=Hu,y5=m5,b5=es,lp=uc,A5=b5(function(e,t){if(e==null)return[];var r=t.length;return r>1&&lp(e,t[0],t[1])?t=[]:r>2&&lp(t[0],t[1],t[2])&&(t=[t[0]]),y5(e,g5(t,1),[])}),sp=A5,Fr=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{submit:i,formatData:u,formatLoad:l,name:s}=Q(t),o=a.form$,f=a.available,d=a.value,c=a.resetValidators,v=a.defaultValue,p=a.nullValue,m=a.resetting,g=a.isDefault,A=a.fire,y=a.el$,b=k=>{if(n.setValue)return n.setValue(k);d.value=k},_=h(()=>({[s.value]:d.value})),C=h(()=>!f.value||!i.value?{}:u.value?u.value(s.value,d.value,o.value):{[s.value]:d.value}),T=function(U){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;b(Y&&l.value?l.value(U,o.value):U)},S=k=>{b(k)},D=()=>{b(Ze(p.value)),A("clear",y.value)},x=()=>{g.value||(m.value=!0),b(Ze(v.value)),c(),A("reset",y.value)},F=(function(){var k=he(function*(){});return function(){return k.apply(this,arguments)}})();return{data:_,requestData:C,load:T,update:S,clear:D,reset:x,prepare:F}},db=function(t,r,a){var{submit:n,formatData:i,name:u}=Q(t),{load:l,update:s,clear:o,reset:f,prepare:d}=Fr(t,r,a),{form$:c,available:v,value:p,shouldForceNumbers:m,stringToNumber:g}=a,A=h(()=>{var b=p.value;return m()&&(b=g(p.value)),{[u.value]:b}}),y=h(()=>{if(!v.value||!n.value)return{};var b=p.value;return m()&&(b=g(p.value)),i.value?i.value(u.value,b,c.value):{[u.value]:b}});return{data:A,requestData:y,load:l,update:s,clear:o,reset:f,prepare:d}},w5=function(t,r,a){var{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}=Fr(t,r,a),{autosize:d,fire:c,el$:v}=a,p=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u(b,_),He(()=>{d()})},m=y=>{l(y),He(()=>{d()})},g=()=>{s(),He(()=>{d()}),c("clear",v.value)},A=()=>{o(),He(()=>{d()}),c("reset",v.value)};return{data:n,requestData:i,load:p,update:m,clear:g,reset:A,prepare:f}},Ic=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{resolveOnLoad:i,items:u}=Q(t),{data:l,requestData:s,load:o,update:f,clear:d,prepare:c}=Fr(t,r,a),v=a.value,p=a.resetValidators,m=a.defaultValue,g=a.updateItems,A=a.resetting,y=a.isDefault,b=a.fire,_=a.el$,C=S=>{if(n.setValue)return n.setValue(S);v.value=S},T=()=>{y.value||(A.value=!0),C(Ze(m.value)),p(),typeof u.value=="string"&&i.value!==!1&&g(),b("reset",_.value)};return{data:l,requestData:s,load:o,update:f,clear:d,reset:T,prepare:c}},_5=function(t,r,a){var{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}=Fr(t,r,a),{Provider:d,fire:c,el$:v}=a,p=()=>{s(),d.value&&(d.value.reset(),c("clear",v.value))},m=()=>{o(),d.value&&(d.value.reset(),c("reset",v.value))};return{data:n,requestData:i,load:u,update:l,clear:p,reset:m,prepare:f}},Lc=function(t,r,a){var{name:n,formatLoad:i,formatData:u,submit:l}=Q(t),s=a.form$,o=a.available,f=a.children$,d=a.children$Array,c=a.resetting,v=a.isDefault,p=a.fire,m=a.el$,g=h(()=>{var S={};return P(f.value,D=>{D.isStatic||(S=Object.assign({},S,D.data))}),{[n.value]:S}}),A=h(()=>{if(!o.value||!l.value)return{};var S={};return P(f.value,D=>{D.isStatic||(S=Object.assign({},S,D.requestData))}),u.value?u.value(n.value,S,s.value):{[n.value]:S}}),y=function(D){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=x&&i.value?i.value(D,s.value):D;P(f.value,k=>{if(!k.isStatic){if(!k.flat&&F[k.name]===void 0){k.clear();return}k.load(k.flat?F:F[k.name],x)}})},b=S=>{P(f.value,D=>{D.isStatic||S[D.name]===void 0&&!D.flat||D.update(D.flat?S:S[D.name])})},_=()=>{P(f.value,S=>{S.isStatic||S.clear()}),p("clear",m.value)},C=()=>{v.value||(c.value=!0),P(f.value,S=>{S.isStatic||S.reset()}),p("reset",m.value)},T=(function(){var S=he(function*(){yield Zr(d.value,(function(){var D=he(function*(x){x.prepare&&(yield x.prepare())});return function(x){return D.apply(this,arguments)}})())});return function(){return S.apply(this,arguments)}})();return{data:g,requestData:A,load:y,update:b,clear:_,reset:C,prepare:T}},cb=function(t,r,a){var{name:n,formatData:i,submit:u}=Q(t),{load:l,update:s,clear:o,reset:f,prepare:d}=Lc(t,r,a),c=a.form$,v=a.children$,p=a.available;a.value;var m=h(()=>{var A={};return P(v.value,y=>{y.isStatic||(A=Object.assign({},A,y.data))}),A}),g=h(()=>{if(!p.value||!u.value)return{};var A={};return P(v.value,y=>{y.isStatic||(A=Object.assign({},A,y.requestData))}),i.value?i.value(n.value,A,c.value):A});return{data:m,requestData:g,load:l,update:s,clear:o,reset:f,prepare:d}},vb=function(t,r,a,n){var{name:i,storeOrder:u,formatLoad:l,formatData:s,order:o,submit:f,initial:d,default:c}=Q(t),{update:v,clear:p,data:m}=Fr(t,r,a),g=a.el$,A=a.form$,y=a.children$,b=a.children$Array,_=a.available,C=a.isDisabled,T=a.value,S=a.orderByName,D=a.refreshOrderStore,x=a.dataPath,F=a.parent,k=a.nullValue,U=a.defaultValue,Y=a.fire,H=a.resetValidators,N=a.resetting,I=a.isDefault,j=R($r(A.value.model,x.value)),M=h(()=>F&&F.value?F.value.defaultValue[i.value]:A.value.options.default[i.value]),K=h(()=>{if(!_.value||!f.value)return{};var ge=[];return P(y.value,ke=>{var je=ke.requestData[ke.name];je!==void 0&&ge.push(je)}),s.value?s.value(i.value,ge,A.value):{[i.value]:ge}}),Z=h(()=>Object.keys(T.value||{}).length),W=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=u.value?Object.assign({},ke||{},{[u.value]:ke?ke[u.value]:void 0}):ke;T.value=D(T.value.concat([oe]));var be=T.value.length-1;return Y("add",be,oe,T.value,g.value),je&&He(()=>{b.value[b.value.length-1].focus()}),be},ee=ge=>{T.value=T.value.filter((ke,je)=>je!==ge),D(T.value),Y("remove",ge,T.value,g.value)},se=(function(){var ge=he(function*(ke){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=G(je&&l.value?l.value(ke,A.value):ke);p(),yield He();for(var be=0;be<oe.length;be++)W();yield He(),P(y.value,(Ie,ce)=>{Ie.load(oe[ce],je)})});return function(je){return ge.apply(this,arguments)}})(),Me=()=>{if(I.value||(N.value=!0),T.value=Ze(U.value),H(),!T.value.length&&d.value>0){for(var ge=0;ge<d.value;ge++)W();b.value.forEach(ke=>{ke.reset()})}He(()=>{D(T.value)}),Y("reset",g.value)},z=(function(){var ge=he(function*(){yield Zr(b.value,(function(){var ke=he(function*(je){je.prepare&&(yield je.prepare())});return function(je){return ke.apply(this,arguments)}})())});return function(){return ge.apply(this,arguments)}})(),G=ge=>{if(!o.value&&!S.value||!ge)return ge;var ke=o.value&&typeof o.value=="string"&&o.value.toUpperCase()=="DESC";return S.value?ge=ke?sp(ge,S.value).reverse():sp(ge,S.value):o.value&&(ge=ke?ge.sort().reverse():ge.sort()),ge},X=()=>{C.value||W(void 0,!0)},re=ge=>{C.value||ee(ge)};if(j.value===void 0&&M.value===void 0&&c.value===void 0)if(d.value>0)for(var Ne=0;Ne<d.value;Ne++)W();else T.value=k.value;else j.value===void 0&&(T.value=U.value);return{requestData:K,data:m,length:Z,add:W,remove:ee,load:se,update:v,clear:p,reset:Me,handleAdd:X,handleRemove:re,prepare:z}},E5=function(t,r,a){var{formatLoad:n}=Q(t),{data:i,requestData:u,update:l,clear:s,reset:o,prepare:f}=Fr(t,r,a),d=a.form$,c=a.value,v=a.loadDateFormat,p=d.value.$vueform.services.moment,m=function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=y&&n.value?n.value(A,d.value):A;Ri(v.value,b,p),c.value=b instanceof Date||!b?b:p(b,v.value).toDate()};return{data:i,requestData:u,load:m,update:l,clear:s,reset:o,prepare:f}},S5=function(t,r,a){var{formatLoad:n}=Q(t),{data:i,requestData:u,update:l,clear:s,reset:o,prepare:f}=Fr(t,r,a),d=a.form$,c=a.value,v=a.loadDateFormat,p=d.value.$vueform.services.moment,m=function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=y&&n.value?n.value(A,d.value):A;c.value=ci(b,_=>(Ri(v.value,_,p),_ instanceof Date?_:p(_,v.value).toDate()))};return{data:i,requestData:u,load:m,update:l,clear:s,reset:o,prepare:f}},jc=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{formatLoad:i}=Q(t),{data:u,requestData:l,clear:s,reset:o,prepare:f}=Fr(t,r,a,n),d=a.form$,c=a.value,v=a.language,p=a.nullValue,m=y=>{if(n.setValue)return n.setValue(y);c.value=y},g=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=_&&i.value?i.value(b,d.value):b;if(!zt(C))throw new Error("Multilingual element requires an object to load");m(Object.assign({},en(p.value),C))},A=y=>{var b=y;zt(b)||(b={[v.value]:y}),m(Object.assign({},c.value,b))};return{data:u,requestData:l,load:g,update:A,clear:s,reset:o,prepare:f}},D5=function(t,r,a){var{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}=Fr(t,r,a,{setValue:v=>{c.value=v,He(()=>{var p;(p=d.value)===null||p===void 0||p.update(v)})}}),d=a.input,c=a.value;return{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}},C5=function(t,r,a){var{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}=jc(t,r,a,{setValue:m=>{v.value=m,He(()=>{d.value.update(m[p.value])})}}),d=a.input,c=a.model,v=a.value,p=a.language;return Se(p,()=>{d.value.update(c.value)}),{data:n,requestData:i,load:u,update:l,clear:s,reset:o,prepare:f}},Ls=function(t,r,a){var{load:n,update:i,clear:u,reset:l,prepare:s}=Fr(t,r,a),{submit:o,formatData:f,name:d}=Q(t),c=a.form$,v=a.available,p=a.value,m=h(()=>{var A,y=p.value;return typeof y=="object"&&(A=y)!==null&&A!==void 0&&A.__file__&&(y=y instanceof File?y:B({},y),delete y.__file__),{[d.value]:y}}),g=h(()=>{var A;if(!v.value||!o.value)return{};var y=p.value;return typeof y=="object"&&(A=y)!==null&&A!==void 0&&A.__file__&&(y=y instanceof File?y:B({},y),delete y.__file__),f.value?f.value(d.value,y,c.value):{[d.value]:y}});return{data:m,requestData:g,load:n,update:i,clear:u,reset:l,prepare:s}},x5=function(t,r,a){var{length:n,add:i,remove:u,load:l,update:s,clear:o,reset:f,handleAdd:d,handleRemove:c,prepare:v}=vb(t,r,a),{submit:p,formatData:m,name:g}=Q(t),A=a.form$,y=a.available,b=a.value,_=a.children$,C=h(()=>{var S=b.value;return S=S.map(D=>{if(typeof D=="object"&&D!==null&&D!==void 0&&D.__file__){var x=D instanceof File?D:B({},D);return delete x.__file__,x}return D}),{[g.value]:S}}),T=h(()=>{if(!y.value||!p.value)return{};var S=[];return P(_.value,D=>{var x=D.requestData[D.name];if(x!==void 0){var F;if(typeof x=="object"&&(F=x)!==null&&F!==void 0&&F.__file__){var k=Ls instanceof File?Ls:B({},Ls);delete k.__file__,x=k}S.push(x)}}),m.value?m.value(g.value,S,A.value):{[g.value]:S}});return{requestData:T,data:C,length:n,add:i,remove:u,load:l,update:s,clear:o,reset:f,handleAdd:d,handleRemove:c,prepare:v}},$5=function(t,r,a){var{data:n,requestData:i,load:u,update:l,clear:s,reset:o}=Fr(t,r,a),{mode:f,clearSignature:d,typingToImage:c,drawingToImage:v,uploaded:p,setDefaultMode:m,setDefaultFont:g,setDefaultColor:A,available:y,fire:b,el$:_}=a,C=()=>{s(),d(),b("clear",_.value)},T=()=>{d(),m(!0),g(!0),A(),o(),b("reset",_.value)},S=(function(){var D=he(function*(){p.value||!y.value||(f.value==="type"&&(yield c()),f.value==="draw"&&(yield v()))});return function(){return D.apply(this,arguments)}})();return{data:n,requestData:i,load:u,update:l,clear:C,reset:T,prepare:S}},O5=function(t,r,a){var{name:n,rows:i,formatLoad:u}=Q(t),{clear:l,reset:s,prepare:o}=Lc(t,r,a),{el$:f,form$:d,children$:c,resolvedRows:v,resolvedColumns:p,dataType:m,defaultValue:g,value:A,computedRows:y,rowsCount:b,hasDynamicRows:_,fire:C,grid:T,resolveComponentName:S}=a,D=h(()=>({[n.value]:M()})),x=h(()=>({[n.value]:M(!0)})),F=function(W){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=ee&&u.value?u.value(W,d.value):W;K(se,"load")},k=Z=>{K(Z,"update")},U=()=>{l(),_.value&&(b.value=i.value),C("clear",f.value)},Y=()=>{s(),_.value&&(b.value=i.value),T.value&&(T.value.scrollTop=0,T.value.scrollLeft=0),C("reset",f.value)},H=()=>{var Z=B({},A.value);b.value++,He(()=>{C("add",b.value-1,A.value,Z,f.value)})},N=Z=>{var W=B({},A.value),ee=B({},A.value);delete ee[Z],A.value=Object.values(ee).reduce((se,Me,z)=>B(B({},se),{},{[z]:Me}),{}),b.value--,C("remove",Z,A.value,W,f.value)},I=()=>{H()},j=Z=>{N(Z)},M=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ee={};return v.value.forEach((se,Me)=>{if(!(!se.available&&W)){var z=m.value==="object"?{}:m.value==="array"?[]:null;p.value.forEach((G,X)=>{var re;if(!(!G.available&&W)){var Ne=(re=c.value[S(Me,X)])===null||re===void 0?void 0:re.value;switch(m.value){case"array":Ne&&(z=[...z||[],G.value]);break;case"assoc":Ne&&(z=G.value);break;default:z=B(B({},z||{}),{},{[G.value]:Ne})}}}),ee[se.value]=z}}),_.value&&(ee=Object.values(ee)),ee},K=(function(){var Z=he(function*(W,ee){_.value&&(b.value=Object.keys(W).length,yield He()),f.value.resolvedRows.forEach((se,Me)=>{f.value.resolvedColumns.forEach((z,G)=>{var X=W[se.value]||{},re=c.value[S(Me,G)];switch(m.value){case"assoc":re[ee](z.value===X);break;case"array":re[ee](X.indexOf(z.value)!==-1);break;default:re[ee](X[z.value]);break}})})});return function(ee,se){return Z.apply(this,arguments)}})();return Se(y,(Z,W)=>{var ee=typeof W=="number"?W:Object.keys(W).length,se=typeof Z=="number"?Z:Object.keys(Z).length,Me=ee>se?"decrease":"increase",z=Me==="increase"?se-ee:ee-se,G=se-1,X=ee-1,re=B({},A.value);if(Me==="increase")switch(m.value){case"assoc":case"array":for(var Ne=0;Ne<z;Ne++)re[G+Ne]=Ze(g.value[G+Ne]);break}else for(var ge=0;ge<z;ge++)re[X-ge]!==void 0&&delete re[X-ge];A.value=re},{flush:"post"}),{data:D,requestData:x,load:F,update:k,clear:U,reset:Y,prepare:o,handleAdd:I,handleRemove:j,add:H,remove:N}},T5=Ic,F5=Ic,M5=db,qt={props:{onChange:{required:!1,type:[Function],default:null,private:!0}}},Nt={props:{formatData:{required:!1,type:[Function],default:null},formatLoad:{required:!1,type:[Function],default:null},submit:{required:!1,type:[Boolean],default:!0}}},Rt={props:{rules:{required:!1,type:[Array,String,Object],default:null},messages:{required:!1,type:[Object],default:()=>({})},fieldName:{required:!1,type:[String,Object],"@default":"name|label"},displayErrors:{required:!1,type:[Boolean],default:!0}}},pb={name:"CaptchaElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"captcha",private:!0},id:{required:!1,type:[String],default:null},default:{required:!1,type:[String],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},rules:{required:!1,type:[Array,String,Object],default:["captcha"]},size:{required:!1,type:[String],default:void 0,private:!0},fieldName:{required:!1,type:[String],"@default":"name|label",private:!0},provider:{required:!1,type:[String],default:null,"@default":"config.useProviders.captcha"},options:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,Va,nt,Wt,ar,on,Lr,Bt,Ir,Zi,dr,zj,Ca,_5,Ct,Jt,aj,bt,Dt,xt,Ot,Tr,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},Uc=function(t,r,a){var{text:n}=Q(t),i=ut("config$"),u=ut("form$"),l=h(()=>u.value.$vueform.sanitize(jt(n.value,i.value,u.value)||""));return{Text:l}},k5=function(t,r,a){var{trueValue:n,falseValue:i}=Q(t),u=a.update,l=()=>{u(n.value)},s=()=>{u(i.value)};return{check:l,uncheck:s}},B5=function(t,r,a){var{trueValue:n,falseValue:i}=Q(t),u=a.update,l=()=>{u(n.value)},s=()=>{u(i.value)};return{check:l,uncheck:s}},hb={name:"CheckboxElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"checkbox",private:!0},default:{required:!1,type:[String,Boolean,Number],default:void 0},id:{required:!1,type:[String],default:null},text:{required:!1,type:[String,Object],localized:!0,default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},trueValue:{required:!1,type:[Boolean,String,Number],default:!0},falseValue:{required:!1,type:[Boolean,String,Number],default:!1},align:{required:!1,type:[String],default:void 0},standalone:{required:!1,type:[Boolean],default:!1}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,ub,At,nt,Wt,ar,Lr,Bt,Ir,dr,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,B5,$c,Tr,Ft,Uc],r.slots=["default","label","info","required","description","before","between","after"],B({},Xt(e,r))}},P5=function(t,r,a){var n=a.value,i=a.resolvedOptions,u=d=>{n.value.indexOf(String(d))===-1&&n.value.indexOf(Number(d))===-1?l(d):s(d)},l=d=>{Oe(d)||(d=[d]);var c=en(n.value);P(d,v=>{c.indexOf(String(v))===-1&&c.indexOf(Number(v))===-1&&c.push(v)}),n.value=c},s=d=>{Oe(d)||(d=[d]);var c=en(n.value);P(d,v=>{var p=c.indexOf(String(v));p===-1&&(p=c.indexOf(Number(v))),p!==-1&&c.splice(p,1)}),n.value=c},o=()=>{l(i.value.map(d=>d.value))},f=()=>{s(i.value.map(d=>d.value))};return{toggle:u,check:l,uncheck:s,checkAll:o,uncheckAll:f}},mb=function(t,r,a){var{items:n,valueProp:i,labelProp:u,dataKey:l,searchParam:s,clearOnRefetch:o,object:f}=Q(t),d=a.isNative,c=a.disable,v=a.enable,p=a.input,m=a.value,g=a.nullValue,A=a.path,y=a.el$,b=a.form$,_=ut("config$"),C=R(null),T=R([]),S=h(()=>{if(!d.value)return C.value;var N=[];return P(C.value,(I,j)=>{if([null,void 0].indexOf(I)===-1){var M={};Array.isArray(C.value)&&typeof I=="object"?(I[i.value],M={value:I[i.value],label:I[u.value]},I.disabled!==void 0&&(M.disabled=I.disabled)):Array.isArray(C.value)?M={value:I,label:I}:M={value:j,label:I},N.push(M)}}),N.map(I=>B(B({},I),{},{label:b.value.$vueform.sanitize(jt(I.label,_.value,b.value))}))}),D=(function(){var N=he(function*(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!d.value){var j;typeof n.value=="string"&&(C.value=F()),yield(j=p.value)===null||j===void 0?void 0:j.resolveOptions();return}I&&c(),typeof n.value=="string"?yield x():typeof n.value=="function"?yield k():C.value=n.value,I&&v()});return function(){return N.apply(this,arguments)}})(),x=(function(){var N=he(function*(){try{var I,j=yield H(n.value,D),M=((I=yield b.value.$vueform.services.axios.get(j))===null||I===void 0?void 0:I.data)||[];l&&l.value&&Object.keys(M).length&&(M=$r(M,l.value)||[]),C.value=M}catch{C.value=[]}finally{var K;Y(((K=S.value)===null||K===void 0?void 0:K.map(Z=>Z.value))||[])}});return function(){return N.apply(this,arguments)}})(),F=()=>(function(){var N=he(function*(I){var j=yield H(n.value,D),M;try{var K;M=((K=yield b.value.$vueform.services.axios.get("".concat(j).concat(j.match(/\?/)?"&":"?").concat(s.value,"=").concat(I||"")))===null||K===void 0?void 0:K.data)||[],l&&l.value&&Object.keys(M).length&&(M=$r(M,l.value)||[])}catch{}finally{setTimeout(()=>{var Z;Y(((Z=p.value)===null||Z===void 0||(Z=Z.eo)===null||Z===void 0?void 0:Z.map(W=>W[i.value]))||[])},0)}return M});return function(I){return N.apply(this,arguments)}})(),k=(function(){var N=he(function*(){try{C.value=(yield n.value(y.value))||[]}catch{C.value=[]}});return function(){return N.apply(this,arguments)}})(),U=(function(){var N=he(function*(I,j){typeof n.value=="function"&&d.value?yield k():(!nn(I,j)||I===void 0&&j===void 0)&&(typeof n.value=="string"&&d.value?yield x():typeof n.value=="string"&&!d.value?C.value=F():C.value=n.value)});return function(j,M){return N.apply(this,arguments)}})(),Y=N=>{if(o.value){m.value=Ze(g.value);return}!Array.isArray(g.value)&&m.value&&N.indexOf(f!=null&&f.value?m.value[i.value]:m.value)===-1?m.value=Ze(g.value):Array.isArray(g.value)&&m.value.length&&(m.value=m.value.filter(I=>N.indexOf(I)!==-1))},H=(function(){var N=he(function*(I,j){var M=/{([^}]+)}/g,K=I;if(I.match(M)){yield He(),T.value.forEach(ee=>ee());for(var Z,W=function*(){var se,Me=((se=Z[1].match(/\|'([^']+)/))===null||se===void 0?void 0:se[1])||"",z=tn(Z[1].match(/^([^|]+)/)[1],A.value),G=b.value.el$(z),X=typeof G?.value<"u"&&G.value!==null&&typeof G.value=="object"?JSON.stringify(G.value):typeof G?.value<"u"&&G.value!==null?G.value:Me;K=K.replace(Z[0],encodeURIComponent(X)),T.value.push(Se(h(()=>G?.value),(re,Ne)=>{Tn(re,Ne)||j()}))};(Z=M.exec(I))!==null;)yield*W()}return K});return function(j,M){return N.apply(this,arguments)}})();return{resolveOptions:U,resolvedOptions:S,updateItems:D,watchers:T,cleanupValue:Y,resolveUrlAndSetWatchers:H}},Yc=function(t,r,a){var{items:n}=Q(t),{resolveOptions:i,resolvedOptions:u,updateItems:l,watchers:s,cleanupValue:o,resolveUrlAndSetWatchers:f}=mb(t,r,a);return i(),Se(n,i),{resolveOptions:i,resolvedOptions:u,updateItems:l,watchers:s,cleanupValue:o,resolveUrlAndSetWatchers:f}},gb=function(t,r,a){var{items:n}=Q(t),{watchers:i,cleanupValue:u,resolveUrlAndSetWatchers:l}=mb(t,r,a),s=a.disableAll,o=a.enableAll,f=a.el$,d=a.form$,c=ut("config$"),v=R(null),p=h(()=>{var b=[];return P(v.value,(_,C)=>{[null,void 0].indexOf(_)===-1&&(Array.isArray(v.value)&&typeof _=="object"?(_.value,b.push(_)):Array.isArray(v.value)?b.push({value:_,label:_}):typeof _=="object"?b.push(B(B({},_),{},{value:C})):b.push({label:_,value:C}))}),b.map(_=>{var C=B(B({},_),{},{label:d.value.$vueform.sanitize(jt(_.label,c.value,d.value))});return _.description&&(C.description=d.value.$vueform.sanitize(jt(_.description,c.value,d.value))),C})}),m=(function(){var b=he(function*(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;_&&s(),typeof n.value=="string"?yield g():yield A(),_&&o()});return function(){return b.apply(this,arguments)}})(),g=(function(){var b=he(function*(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;try{var C,T=yield l(n.value,m);if(v.value=((C=yield d.value.$vueform.services.axios.get(T))===null||C===void 0?void 0:C.data)||[],_===!0){var S;u(((S=p.value)===null||S===void 0?void 0:S.map(D=>D.value))||[])}}catch{v.value=[]}});return function(){return b.apply(this,arguments)}})(),A=(function(){var b=he(function*(){try{v.value=(yield n.value(f.value))||[]}catch{v.value=[]}});return function(){return b.apply(this,arguments)}})(),y=(function(){var b=he(function*(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;typeof n.value=="function"?yield A():typeof n.value=="string"?yield g(_):v.value=n.value});return function(){return b.apply(this,arguments)}})();return y(!1),Se(n,y),{resolveOptions:y,resolvedOptions:p,updateItems:m,watchers:i,cleanupValue:u,resolveUrlAndSetWatchers:l}},q5=gb,N5=Yc,R5=Yc,yb={name:"CheckboxgroupElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"checkboxgroup",private:!0},default:{required:!1,type:[Array],default:()=>[]},id:{required:!1,type:[String],default:null},items:{required:!1,type:[Object,Array,Function,String],localized:!0,default:()=>({})},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},disables:{required:!1,type:[Array],default:()=>[]},clearOnRefetch:{type:[Boolean],required:!1,default:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Pt,Xu,At,nt,Go,Xy,Lr,dr,gb,Bt,Ir,P5,Fr,Ct,Jt,xt,$t,bt,Dt,Ot,Oc,Tr,Ft],r.slots=["checkbox","label","info","required","description","before","between","after"],B({},Xt(e,r))}},Ji=function(t,r,a){var{addons:n,slots:i}=Q(t),u=a.el$,l=a.form$,s=h(()=>{var f,d;return!!(n.value.before||(f=u.value.$slots)!==null&&f!==void 0&&f["addon-before"]||l.value.$vueform.vueVersion===2&&(d=u.value.$scopedSlots)!==null&&d!==void 0&&d["addon-before"]||i.value["addon-before"])}),o=h(()=>{var f,d;return!!(n.value.after||(f=u.value.$slots)!==null&&f!==void 0&&f["addon-after"]||l.value.$vueform.vueVersion===2&&(d=u.value.$scopedSlots)!==null&&d!==void 0&&d["addon-after"]||i.value["addon-after"])});return{hasAddonBefore:s,hasAddonAfter:o}},I5=function(t,r,a){var{displayFormat:n,valueFormat:i,loadFormat:u,date:l,time:s,seconds:o,hour24:f}=Q(t),d=a.form$,c=h(()=>{var y;return l.value&&s.value&&o.value&&f.value?y="datetimeSeconds24":l.value&&s.value&&o.value&&!f.value?y="datetimeSeconds12":l.value&&s.value&&!o.value&&f.value?y="datetime24":l.value&&s.value&&!o.value&&!f.value?y="datetime12":!l.value&&s.value&&o.value&&f.value?y="timeSeconds24":!l.value&&s.value&&o.value&&!f.value?y="timeSeconds12":!l.value&&s.value&&!o.value&&f.value?y="time24":!l.value&&s.value&&!o.value&&!f.value?y="time12":y="date",y}),v=h(()=>d.value.translations.vueform.dateFormats[c.value]),p=h(()=>{var y={datetimeSeconds24:"YYYY-MM-DD HH:mm:ss",datetimeSeconds12:"YYYY-MM-DD hh:mm:ss a",datetime24:"YYYY-MM-DD HH:mm",datetime12:"YYYY-MM-DD hh:mm a",timeSeconds24:"HH:mm:ss",timeSeconds12:"hh:mm:ss a",time24:"HH:mm",time12:"hh:mm a",date:"YYYY-MM-DD"};return y[c.value]}),m=h(()=>n.value!==null?n.value:v.value),g=h(()=>i.value!==null||i.value===!1?i.value:p.value),A=h(()=>u.value!==null?u.value:p.value);return{displayDateFormat:m,valueDateFormat:g,loadDateFormat:A}},L5=function(t,r,a){var{displayFormat:n,valueFormat:i,loadFormat:u}=Q(t),l=a.form$,s=h(()=>l.value.translations.vueform.dateFormats.date),o=h(()=>n.value!==null?n.value:s.value),f=h(()=>i.value!==null||i.value===!1?i.value:s.value),d=h(()=>u.value!==null?u.value:s.value);return{displayDateFormat:o,valueDateFormat:f,loadDateFormat:d}},tf=function(t,r,a){var n=a.value,i=u=>{n.value=u};return{handleChange:i}},pa=function(t,r,a){var{placeholder:n}=Q(t),{el$:i}=a,u=ut("config$"),l=ut("form$"),s=h(()=>{var o,f=jt(n.value,u.value,l.value);return i.value.isRequired&&((o=l.value.options.showRequired)===null||o===void 0?void 0:o.indexOf("placeholder"))!==-1&&(f+="*"),f});return{Placeholder:s}},bb=function(t,r,a){var{disables:n,min:i,max:u,extendOptions:l,readonly:s,hour24:o,seconds:f,date:d,time:c}=Q(t),v=a.isDisabled,p=a.displayDateFormat,m=a.valueDateFormat,g=a.form$,A=g.value.$vueform.services.moment,y=h(()=>n.value===void 0?[]:ci(n.value,x=>(Ri(m.value,x,A),x instanceof Date?x:A(x,m.value,!0).toDate()))),b=h(()=>i.value?(Ri(m.value,i.value,A),i.value instanceof Date?i.value:A(i.value,m.value,!0).toDate()):null),_=h(()=>u.value?(Ri(m.value,u.value,A),u.value instanceof Date?u.value:A(u.value,m.value,!0).toDate()):null),C=h(()=>({dateFormat:p.value,minDate:b.value,maxDate:_.value,disable:y.value,clickOpens:!v.value&&!s.value,time_24hr:o.value,enableTime:c.value,enableSeconds:f.value,noCalendar:!d.value})),T=h(()=>Object.assign({},C.value,l.value||{})),S=h(()=>!0),D=h(()=>!1);return{minDate:b,maxDate:_,disabledDates:y,fieldOptions:T,hasDate:S,hasTime:D}},j5=function(t,r,a){var{mode:n,extendOptions:i,readonly:u}=Q(t),{minDate:l,maxDate:s,disabledDates:o}=bb(t,r,a),f=a.isDisabled,d=a.displayDateFormat,c=h(()=>({mode:n.value,dateFormat:d.value,minDate:l.value,maxDate:s.value,disable:o.value,clickOpens:!f.value&&!u.value})),v=h(()=>Object.assign({},c.value,i.value||{})),p=h(()=>!0),m=h(()=>!1);return{minDate:l,maxDate:s,disabledDates:o,fieldOptions:v,hasDate:p,hasTime:m}},U5=function(t,r,a){var{native:n,extendOptions:i,labelProp:u,trackBy:l,valueProp:s,search:o,limit:f,noOptionsText:d,noResultsText:c,caret:v,object:p,delay:m,minChars:g,resolveOnLoad:A,filterResults:y,clearOnSearch:b,canDeselect:_,canClear:C,openDirection:T,strict:S,closeOnSelect:D,closeOnDeselect:x,autocomplete:F,groups:k,groupLabel:U,groupOptions:Y,groupHideEmpty:H,inputType:N,create:I,appendNewOption:j,addOptionOn:M,appendTo:K,appendToBody:Z,allowAbsent:W}=Q(t),ee=a.form$,se=a.isLoading,Me=ut("config$"),z=h(()=>n.value&&!o.value),G=h(()=>({mode:"single",searchable:o.value||I.value,noOptionsText:ee.value.$vueform.sanitize(d.value||ee.value.translations.vueform.multiselect.noOptions),noResultsText:ee.value.$vueform.sanitize(c.value||ee.value.translations.vueform.multiselect.noResults),locale:Object.keys(Me.value.i18n.locales).length>1?Me.value.i18n.locale:null,fallbackLocale:Me.value.i18n.fallbackLocale,label:u.value,trackBy:l.value,valueProp:s.value,limit:f.value,caret:v.value,loading:se.value,object:p.value,delay:m.value,minChars:g.value,resolveOnLoad:A.value,filterResults:y.value,clearOnSearch:b.value,canDeselect:_.value,canClear:C.value,openDirection:T.value,strict:S.value,closeOnSelect:D.value,closeOnDeselect:x.value,autocomplete:F.value,groups:k.value,groupLabel:U.value,groupOptions:Y.value,groupHideEmpty:H.value,inputType:N.value,createOption:I.value,appendNewOption:j.value,addOptionOn:M.value,appendTo:K.value,appendToBody:Z.value,allowAbsent:W.value})),X=h(()=>Object.assign({},G.value,i.value||{}));return{fieldOptions:X,isNative:z}},Y5=function(t,r,a){var{native:n,extendOptions:i,labelProp:u,trackBy:l,valueProp:s,search:o,limit:f,noOptionsText:d,noResultsText:c,caret:v,object:p,delay:m,minChars:g,resolveOnLoad:A,filterResults:y,clearOnSearch:b,clearOnSelect:_,canClear:C,max:T,openDirection:S,strict:D,closeOnSelect:x,closeOnDeselect:F,autocomplete:k,groups:U,groupLabel:Y,groupOptions:H,groupHideEmpty:N,groupSelect:I,inputType:j,hideSelected:M,multipleLabel:K,multipleLabelMultiple:Z,multipleLabelSingle:W,create:ee,appendNewOption:se,addOptionOn:Me,appendTo:z,appendToBody:G,allowAbsent:X}=Q(t),re=a.form$,Ne=a.isLoading,ge=ut("config$"),ke=h(()=>n.value&&!o.value),je=h(()=>({mode:"multiple",searchable:o.value||ee.value,noOptionsText:re.value.$vueform.sanitize(d.value||re.value.translations.vueform.multiselect.noOptions),noResultsText:re.value.$vueform.sanitize(c.value||re.value.translations.vueform.multiselect.noResults),multipleLabel:typeof K.value=="function"?(be,Ie)=>re.value.$vueform.sanitize(K.value(be,Ie)):(be,Ie)=>re.value.$vueform.sanitize(be&&be.length>1?Z.value?Z.value.replace(":x:",be.length):re.value.__(re.value.translations.vueform.multiselect.multipleLabelMore,{options:be.length}):W.value||re.value.translations.vueform.multiselect.multipleLabelOne),locale:Object.keys(ge.value.i18n.locales).length>1?ge.value.i18n.locale:null,fallbackLocale:ge.value.i18n.fallbackLocale,label:u.value,trackBy:l.value,valueProp:s.value,limit:f.value,caret:v.value,loading:Ne.value,object:p.value,delay:m.value,minChars:g.value,resolveOnLoad:A.value,filterResults:y.value,clearOnSearch:b.value,clearOnSelect:_.value,canClear:C.value,max:T.value,openDirection:S.value,strict:D.value,closeOnSelect:x.value,closeOnDeselect:F.value,autocomplete:k.value,groups:U.value,groupLabel:Y.value,groupOptions:H.value,groupHideEmpty:N.value,groupSelect:I.value,inputType:j.value,hideSelected:M.value,createOption:ee.value,appendNewOption:se.value,addOptionOn:Me.value,appendTo:z.value,appendToBody:G.value,allowAbsent:X.value})),oe=h(()=>Object.assign({},je.value,i.value||{}));return{fieldOptions:oe,isNative:ke}},z5=function(t,r,a){var{extendOptions:n,labelProp:i,trackBy:u,valueProp:l,search:s,limit:o,noOptionsText:f,noResultsText:d,caret:c,object:v,delay:p,minChars:m,resolveOnLoad:g,filterResults:A,clearOnSearch:y,clearOnSelect:b,canClear:_,max:C,showOptions:T,openDirection:S,strict:D,closeOnSelect:x,closeOnDeselect:F,autocomplete:k,groups:U,groupLabel:Y,groupOptions:H,groupHideEmpty:N,groupSelect:I,inputType:j,hideSelected:M,create:K,appendNewOption:Z,addOptionOn:W,breakTags:ee,appendTo:se,appendToBody:Me,allowAbsent:z}=Q(t),G=a.form$,X=a.isLoading,re=ut("config$"),Ne=R(!1),ge=h(()=>!1),ke=h(()=>({mode:"tags",searchable:s.value||K.value,noOptionsText:G.value.$vueform.sanitize(f.value||G.value.translations.vueform.multiselect.noOptions),noResultsText:G.value.$vueform.sanitize(d.value||G.value.translations.vueform.multiselect.noResults),locale:Object.keys(re.value.i18n.locales).length>1?re.value.i18n.locale:null,fallbackLocale:re.value.i18n.fallbackLocale,label:i.value,trackBy:u.value,valueProp:l.value,limit:o.value,caret:c.value,loading:X.value,object:v.value,delay:p.value,minChars:m.value,resolveOnLoad:g.value,filterResults:A.value,clearOnSearch:y.value,clearOnSelect:b.value,canClear:_.value,max:C.value,showOptions:T.value,openDirection:S.value,strict:D.value,closeOnSelect:x.value,closeOnDeselect:F.value,autocomplete:k.value,groups:U.value,groupLabel:Y.value,groupOptions:H.value,groupHideEmpty:N.value,groupSelect:I.value,inputType:j.value,hideSelected:M.value,createOption:K.value,appendNewOption:Z.value,addOptionOn:W.value,breakTags:ee.value,appendTo:se.value,appendToBody:Me.value,allowAbsent:z.value})),je=h(()=>Object.assign({},ke.value,n.value||{}));return{native:Ne,fieldOptions:je,isNative:ge}},V5=function(t,r,a){var{min:n,max:i,step:u,tooltips:l,merge:s,format:o,orientation:f,direction:d,extendOptions:c,showTooltip:v,tooltipPosition:p,lazy:m}=Q(t),g=a.isDisabled,A=a.form$,y=h(()=>{var _=o.value?B({},o.value||{}):null;if(_){var C=["prefix","suffix","thousand"];C.forEach(T=>{_[T]&&(_[T]=A.value.$vueform.sanitize(_[T]))})}return{min:n.value,max:i.value,step:u.value,tooltips:l.value,merge:s.value,format:_,orientation:f.value,direction:d.value,disabled:g.value,showTooltip:v.value,tooltipPosition:p.value,lazy:m.value}}),b=h(()=>Object.assign({},y.value,c.value||{}));return{fieldOptions:b}},W5=function(t,r,a){var{labels:n,extendOptions:i,trueValue:u,falseValue:l}=Q(t),s=a.isDisabled,o=a.form$,f=ut("config$"),d=h(()=>({disabled:s.value,offLabel:n.value&&jt(n.value.off,f.value,o.value)||"",onLabel:n.value&&jt(n.value.on,f.value,o.value)||"",trueValue:u.value,falseValue:l.value})),c=h(()=>Object.assign({},d.value,i.value||{}));return{fieldOptions:c}},yi=function(t,r,a){var n=a.input,i=R(!1);return Vt(()=>{n&&n.value&&n.value.addEventListener&&(n.value.addEventListener("focus",()=>{i.value=!0}),n.value.addEventListener("blur",()=>{i.value=!1}))}),{focused:i}},Ab=function(t,r,a){var n=a.input,i=R(!1);return Vt(()=>{n.value.input.addEventListener("focus",()=>{i.value=!0}),n.value.input.addEventListener("blur",()=>{i.value=!1})}),{focused:i}},zc=function(t,r,a){var n=a.input,i=a.isNative,u=R(!1);return Vt(()=>{i.value?(n.value.addEventListener("focus",()=>{u.value=!0}),n.value.addEventListener("blur",()=>{u.value=!1})):Se(h(()=>{var l;return(l=n.value)===null||l===void 0?void 0:l.isActive}),l=>{u.value=l})}),{focused:u}},H5=Ab,G5=zc,K5=zc,wb={name:"DateElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"date",private:!0},default:{required:!1,type:[String,Date],default:null},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},displayFormat:{required:!1,type:[String],default:null,"@default":"locale.vueform.dateFormats.*"},valueFormat:{required:!1,type:[String,Boolean],default:null,"@default":"locale.vueform.dateFormats.*"},loadFormat:{required:!1,type:[String],default:null,"@default":"locale.vueform.dateFormats.*"},date:{required:!1,type:[Boolean],default:!0},time:{required:!1,type:[Boolean],default:!1},seconds:{required:!1,type:[Boolean],default:!1},hour24:{required:!1,type:[Boolean],default:!0},min:{required:!1,type:[String,Date],default:null},max:{required:!1,type:[String,Date],default:null},disables:{required:!1,type:[Array],default:()=>[]},extendOptions:{required:!1,type:[Object],default:()=>({})},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},autocomplete:{required:!1,type:[String,Number],default:null}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,Va,nt,Wt,ar,on,Ji,I5,bb,Lr,Bt,Ir,Pj,Ca,E5,Ct,Jt,$t,bt,Dt,xt,Ot,tf,Ab,Zt,Tr,Ft,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Xt(e,r))}},_b={name:"DatesElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"dates",private:!0},default:{required:!1,type:[Array],default:()=>[]},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},displayFormat:{required:!1,type:[String],default:null},valueFormat:{required:!1,type:[String,Boolean],default:null},loadFormat:{required:!1,type:[String,Boolean],default:null},mode:{required:!1,type:[String],default:"multiple"},min:{required:!1,type:[String,Date],default:null},max:{required:!1,type:[String,Date],default:null},disables:{required:!1,type:[Array],default:()=>[]},extendOptions:{required:!1,type:[Object],default:()=>({})},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},autocomplete:{required:!1,type:[String,Number],default:null}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,Xu,At,Va,nt,Cj,ar,on,Ji,L5,j5,Lr,qj,Bt,Ir,Ca,S5,Ct,Jt,$t,bt,Dt,xt,Ot,tf,H5,Zt,Tr,Ft,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Xt(e,r))}},Z5=function(t,r,a){var{embed:n,auto:i,methods:u,urls:l,uploadTempEndpoint:s,removeTempEndpoint:o,removeEndpoint:f,url:d,previewUrl:c,params:v,softRemove:p,view:m}=Q(t),g=a.form$,A=a.value,y=a.isDisabled,b=a.validate,_=a.invalid,C=a.path,T=a.axios,S=a.request,D=a.uploading,x=a.input,F=a.update,k=a.fire;a.isImageType;var U=a.removing,Y=a.handleError,H=a.el$,N=R(!1),I=R(0),j=R(!1),M=h(()=>{var J=g.value.$vueform.config.endpoints,pe={uploadTempFile:s.value,removeTempFile:o.value,removeFile:f.value},le={};return Object.keys(pe).forEach(_e=>{var Te=J[_e];Te===!1&&(Te=nr=>nr),l.value[_e]&&(Te={url:l.value[_e],method:"POST"}),u.value[_e]&&typeof Te=="object"&&(Te.method=u.value[_e]),typeof pe[_e]=="string"&&(J[pe[_e]]!==void 0?Te=J[pe[_e]]:Te.url=pe[_e]),pe[_e]===!1&&(Te=nr=>nr),typeof pe[_e]=="function"&&(Te=pe[_e]),typeof pe[_e]=="object"&&(Te={url:pe[_e].url||pe[_e].endpoint||J[_e].url,method:pe[_e].method||J[_e].method}),le[_e]=Te}),le}),K=h(()=>{if(d.value===void 0)return"/";if(d.value===!1)return"";var J=d.value;return J.match(/\/$/)||(J+="/"),!J.match(/^(http|file)/)&&!J.match(/^\//)&&(J="/"+J),J}),Z=h(()=>{if(c.value===void 0)return K.value;var J=c.value;return J.match(/\/$/)||(J+="/"),!J.match(/^http/)&&!J.match(/^\//)&&(J="/"+J),J}),W=h(()=>A.value===null?0:A.value instanceof File?1:Da(A.value)&&A.value.tmp!==void 0?2:jo(A.value)?3:-1),ee=h(()=>{switch(W.value){case 1:return A.value.name;case 2:return A.value.originalName;case 3:return A.value;default:return null}}),se=h(()=>{if(G.value)return K.value+ee.value}),Me=h(()=>{if(G.value)return Z.value+ee.value}),z=h(()=>{var J;return m.value==="file"?null:G.value?Me.value:A.value instanceof File?URL.createObjectURL(A.value):((J=A.value)===null||J===void 0?void 0:J.__file__)instanceof File?URL.createObjectURL(A.value.__file__):null}),G=h(()=>W.value===3),X=h(()=>W.value>0&&!D.value&&!y.value&&!j.value&&!U.value),re=h(()=>W.value===1&&!i.value&&!D.value&&!y.value),Ne=h(()=>!n.value&&W.value==0),ge=(function(){var J=he(function*(){if(W.value!==1)throw new Error("No file is selected");if(yield b(),!_.value){S.value=T.value.CancelToken.source();try{var pe=eo(Object.assign({},v.value,{file:A.value,formKey:g.value.options.formKey,path:C.value}));N.value=!1;var le;if(typeof M.value.uploadTempFile=="function")le=yield M.value.uploadTempFile(A.value,H.value);else{var _e=M.value.uploadTempFile.method.toLowerCase();le=yield T.value.request({url:M.value.uploadTempFile.url,method:_e,[_e==="get"?"params":"data"]:pe,onUploadProgress:Te=>{I.value=Math.round(Te.loaded*100/Te.total)},cancelToken:S.value.token}),le=le.data}le&&typeof le=="object"&&(le.__file__=A.value),F(le)}catch(Te){throw I.value=0,T.value.isCancel(Te)||(N.value=!0,Y(Te)),new Error(Te)}finally{S.value=null}}});return function(){return J.apply(this,arguments)}})(),ke=(function(){var J=he(function*(){U.value=!0,N.value=!1;try{if(W.value===3&&!p.value){if(!confirm(g.value.translations.vueform.elements.file.removeConfirm))return!1;if(typeof M.value.removeFile=="function")yield M.value.removeFile(A.value,H.value);else{var pe=M.value.removeFile.method.toLowerCase();yield T.value.request({method:pe,url:M.value.removeFile.url,[pe==="get"?"params":"data"]:Object.assign({},v.value,{file:A.value,formKey:g.value.options.formKey,path:C.value})})}}else if(W.value===2&&!p.value)if(typeof M.value.removeTempFile=="function")yield M.value.removeTempFile(A.value,H.value);else{var le=M.value.removeTempFile.method.toLowerCase();yield T.value.request({method:le,url:M.value.removeTempFile.url,[le==="get"?"params":"data"]:Object.assign({},v.value,{file:A.value.tmp,formKey:g.value.options.formKey,path:C.value})})}}catch(_e){Y(_e);return}finally{U.value=!1}F(null),I.value=0,k("remove")});return function(){return J.apply(this,arguments)}})(),je=(function(){var J=he(function*(){if(W.value===1){j.value=!0;try{yield ge()}finally{j.value=!1}}});return function(){return J.apply(this,arguments)}})(),oe=(function(){var J=he(function*(pe){var le=pe.target.files[0];x.value.value="",F(le||null),i.value&&(yield ge()),g.value.shouldValidateOnChange&&b()});return function(le){return J.apply(this,arguments)}})(),be=()=>{y.value||x.value.click()},Ie=()=>{ge()},ce=()=>{ke()},te=()=>{S.value!==null&&S.value.cancel()};return A.value instanceof File&&i.value&&He(()=>{ge()}),{hasUploadError:N,progress:I,preparing:j,endpoints:M,fileUrl:K,stage:W,filename:ee,link:se,preview:z,uploaded:G,canRemove:X,canUploadTemp:re,canSelect:Ne,uploadTemp:ge,remove:ke,prepare:je,handleChange:oe,handleClick:be,handleUploadTemp:Ie,handleRemove:ce,handleAbort:te}},X5=function(t,r,a){var n=a.form$,i=R(null),u=R(null),l=h(()=>i.value!==null);return Vt(()=>{u.value=n.value.$vueform.services.axios}),{request:i,axios:u,uploading:l}};function Eb(e,t){return t?(Oe(t)||(t=t.split(","),P(t,(r,a)=>{t[a]=r.trim()})),rt(t,r=>{var a=r.match(/^([^\/]+)\/\*$/);return a?!!new RegExp("^".concat(a[1],"/")).exec(e.type):r==e.type?!0:r==".".concat(e.name.split(".").pop())})):!0}var Sb=function(t,r,a){var{accept:n,auto:i}=Q(t),u=a.update,l=a.isDisabled,s=a.uploadTemp,o=h(()=>{var d=document.createElement("div");return("draggable"in d||"ondragstart"in d&&"ondrop"in d)&&"FormData"in window&&"FileReader"in window}),f=d=>{if(!l.value){var c=d.dataTransfer.files[0];Eb(c,n.value)&&(u(c||null),i.value&&s(),c.value=null)}};return{canDrop:o,handleDrop:f}},J5=function(t,r,a){var{accept:n}=Q(t),{canDrop:i}=Sb(t,r,a),u=a.add,l=a.isDisabled,s=a.isObject,o=a.storeFileName,f=d=>{!d.dataTransfer||!d.dataTransfer.files||d.dataTransfer.files.length==0||l.value||P(d.dataTransfer.files,c=>{Eb(c,n.value)&&u(s.value?{[o.value]:c}:c)})};return{canDrop:i,handleDrop:f}},Q5=function(t,r,a){var n=R(!1);return{removing:n}},Vc=function(t,r,a){var n=a.fire;a.listeners;var i=u=>{n("error",u)};return{handleError:i}},Db={name:"FileElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","remove","error","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"file",private:!0},default:{required:!1,type:[String,Object],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},onRemove:{required:!1,type:[Function],default:null,private:!0},onError:{required:!1,type:[Function],default:null,private:!0},view:{type:[String],required:!1,default:"file"},drop:{required:!1,type:[Boolean],default:!1},accept:{required:!1,type:[String,Array],default:null},clickable:{required:!1,type:[Boolean],default:!0},url:{required:!1,type:[String,Boolean],default:"/"},previewUrl:{required:!1,type:[String],default:void 0},auto:{required:!1,type:[Boolean],default:!0},urls:{required:!1,type:[Object],default:()=>({})},methods:{required:!1,type:[Object],default:()=>({})},uploadTempEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.uploadTempFile"},removeTempEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.removeTempFile"},removeEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.removeFile"},params:{required:!1,type:[Object],default:()=>({})},softRemove:{required:!1,type:[Boolean],default:!1},embed:{type:[Boolean],required:!1,default:!1,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,Q5,At,nt,Dj,ar,X5,Lr,Bt,dr,Hj,Ca,Ls,Vc,Z5,Sb,Ct,jj,$t,bt,Dt,xt,Ot,gj,Tr,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},Qi=function(t,r,a){var n=a.model,i=u=>{n.value=u.target.value};return{handleInput:i}},e7=function(t,r,a){var{model:n,input:i,el$:u}=a,l=s=>{if(u.value.maskPluginInstalled){n.value=s.target.value;return}var o=s.target.value.startsWith("+"),f=s.target.value.substr(o?1:0),d=f.match(/\d+/g)||[];(d.length||o)&&(f="+"),f+=d.join(""),i.value.value=f,n.value=f};return{handleInput:l}},gu={register:!1,name:"GenericElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"",private:!0},id:{required:!1,type:[String],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},default:{required:!1,type:[String,Number,Object],default:void 0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,Lj,At,nt,Wt,ar,Ju,Bt,Xi,dr,Ca,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,Qi,yi,Zt,Tr,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},t7=(e,t)=>{var r=[];e.forEach((a,n)=>{r[n]=r[n]||[];var i=0;a.forEach((u,l)=>{for(;r[n][i];)i++;var s=null,o=1,f=1;Array.isArray(u)&&(s=u[0]===void 0?null:u[0],o=u[1]||1,f=u[2]||1);var d=n,c=i,v=n+f-1,p=i+o-1;t({cell:u,field:s,rowspan:f,colspan:o,rowIndex:n,colIndex:l,paddedColIndex:i,rowStart:d,colStart:c,rowEnd:v,colEnd:p});for(var m=n;m<=v;m++){r[m]=r[m]||[];for(var g=i;g<=p;g++)r[m][g]=!0}i+=o})})},r7=function(t,r,a){var{grid:n,align:i,valign:u,presets:l,cols:s,rows:o,name:f,widths:d,minWidth:c,maxWidth:v}=Q(t),{el$:p,form$:m,path:g}=a;ut("config$");var A=h(()=>{y.value;var S=[];return t7(y.value,D=>{var{field:x,colspan:F,rowspan:k,colIndex:U,rowIndex:Y,rowStart:H,colStart:N,rowEnd:I,colEnd:j}=D;S.push(B(B({},x),{},{col:U,row:Y,colStart:N,rowStart:H,colEnd:j,rowEnd:I,style:F>1||k>1?{"grid-area":"".concat(H+1," / ").concat(N+1," / ").concat(I+2," / ").concat(j+2)}:{}}))}),S}),y=h(()=>{var S=[],D=n.value||[];return(!D||!D.length)&&(D=[...Array(D.value)].map(x=>[...Array(s.value)].map(F=>null))),D=D.map(x=>x.map(F=>Array.isArray(F)?F:[F])),D.forEach((x,F)=>{var k=[];x.forEach((U,Y)=>{var[H,N,I,j,M,K]=U,Z={content:m.value.$vueform.sanitize(H),colspan:N||1,rowspan:I||1,align:j||i.value,valign:M||u.value,attrs:K||{},row:F,col:Y,slot:"cell_".concat(F,"_").concat(Y)};H&&typeof H=="object"&&(Z=B(B({},Z),{},{component:"".concat(ai(Ui(H.type)),"Element"),name:H.name||T(F,Y),schema:B(B({},H),{},{presets:l.value})})),k.push([Z,Z.colspan,Z.rowspan,Z.align])}),S.push(k)}),S}),b=h(()=>{for(var S=[],D=0;D<parseInt(s.value);D++){var x=d.value[D];S.push(typeof x=="number"||/\d$/.test(x)?"".concat(x,"px"):x||"1fr")}return{"grid-template-columns":S.join(" "),"grid-template-rows":"repeat(".concat(o.value,", auto)"),"min-width":typeof c.value=="number"?"".concat(c.value,"px"):c.value,"max-width":typeof v.value=="number"?v.value>0?"".concat(v.value,"px"):void 0:v.value}}),_=h(()=>{if(d.value.length<s.value)return!1;var S=["cm","mm","in","px","pt","pc","em","ex","ch","rem","vw","vh","vmin","vmax"];return d.value.slice(0,s.value).every(D=>typeof D=="number"||D&&S.some(x=>D.endsWith(x))||/\d$/.test(D))}),C=h(()=>l.value.includes("grid-table")),T=(S,D)=>"".concat(f.value,"_").concat(S,"_").concat(D);return{cells:A,fitWidth:_,isTableView:C,gridStyle:b,resolvedRows:y,resolveComponentName:T}},Wc=function(t,r,a){var n=R([]),i=h(()=>{var u={};return n.value.forEach(l=>{u[l.name]=l}),u});return{children$Array:n,children$:i}},Hc=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n.schemaName||"schema",{[i]:u}=Q(t),{children$Array:l,children$:s}=Wc(),o=h(()=>u.value);return u&&Se(u,f=>{var d=[];P(f,(c,v)=>{var p=l.value[l.value.map(m=>Ar(m.name)).indexOf(Ar(v))];p&&d.push(p)}),l.value=d},{flush:"post",deep:!0}),{children:o,children$Array:l,children$:s}},Cb=Hc,xb={name:"GridElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"group",private:!0},default:{required:!1,type:[Object],default:()=>({})},id:{required:!1,type:[String],default:null},cols:{required:!1,type:[Number],default:1},rows:{required:!1,type:[Number],default:1},grid:{required:!1,type:[Array],default:()=>[]},align:{required:!1,type:[String],default:"left"},valign:{required:!1,type:[String],default:"baseline"},widths:{required:!1,type:[Array],default:()=>[]},minWidth:{required:!1,type:[String,Number],default:0},maxWidth:{required:!1,type:[String,Number],default:-1},scrollable:{required:!1,type:[Boolean],default:!1},colHeader:{required:!1,type:[Boolean],default:!1},rowHeader:{required:!1,type:[Boolean],default:!1}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,eb,At,Qo,nt,Sj,Cb,fb,Ct,r7,Vj,ib,Ki,xy,$t,bt,Dt,xt,Ot,cb,Zt,sb,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},$b={name:"GroupElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"group",private:!0},default:{required:!1,type:[Object],default:()=>({})},id:{required:!1,type:[String],default:null},schema:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,eb,At,Qo,nt,_j,Cb,fb,Ct,Zj,ib,Ki,xy,$t,bt,Dt,xt,Ot,cb,Zt,sb,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},Ob=function(t,r,a){var{forceNumbers:n}=Q(t),{form$:i}=a,u=ut("config$"),l=()=>n.value||u.value.config.forceNumbers&&i.value.options.forceNumbers!==!1&&n.value!==!1||i.value.options.forceNumbers&&n.value!==!1,s=o=>{var f=o;return typeof o=="string"&&(/^[-]?\d+([\.,]\d+)?$/.test(o)?f=parseFloat(o.replace(",",".")):/^[-]?\d+$/.test(o)&&(f=parseInt(o,10))),f};return{shouldForceNumbers:l,stringToNumber:s}},Tb={name:"HiddenElement",mixins:[wt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"hidden",private:!0},default:{required:!1,type:[String,Number,Object],default:null},id:{required:!1,type:[String],default:null},meta:{required:!1,type:[Boolean],default:!1},forceNumbers:{required:!1,type:[Boolean],default:null},expression:{required:!1,type:[String,Object],default:void 0,localized:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Or,Pt,za,Jt,At,bt,nt,Wt,Qj,Bt,Ir,Ob,Nj,Ca,M5,Tr,Ft],B({},Xt(e,r))}};/**!
|
|
28
|
+
* Sortable 1.15.6
|
|
29
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
30
|
+
* @author owenm <owen23355@gmail.com>
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/function op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?op(Object(r),!0).forEach(function(a){a7(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function js(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?js=function(t){return typeof t}:js=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function a7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jn(){return Jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Jn.apply(this,arguments)}function n7(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,i;for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function i7(e,t){if(e==null)return{};var r=n7(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var u7="1.15.6";function Hn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ii=Hn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ss=Hn(/Edge/i),fp=Hn(/firefox/i),xl=Hn(/safari/i)&&!Hn(/chrome/i)&&!Hn(/android/i),Gc=Hn(/iP(ad|od|hone)/i),Fb=Hn(/chrome/i)&&Hn(/android/i),Mb={capture:!1,passive:!1};function ot(e,t,r){e.addEventListener(t,r,!ii&&Mb)}function lt(e,t,r){e.removeEventListener(t,r,!ii&&Mb)}function no(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function kb(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Xa(e,t,r,a){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&no(e,t):no(e,t))||a&&e===r)return e;if(e===r)break}while(e=kb(e))}return null}var dp=/\s+/g;function _a(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(dp," ").replace(" "+t+" "," ");e.className=(a+(r?" "+t:"")).replace(dp," ")}}function ze(e,t,r){var a=e&&e.style;if(a){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=r+(typeof r=="string"?"":"px")}}function Su(e,t){var r="";if(typeof e=="string")r=e;else do{var a=ze(e,"transform");a&&a!=="none"&&(r=a+" "+r)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(r)}function Bb(e,t,r){if(e){var a=e.getElementsByTagName(t),n=0,i=a.length;if(r)for(;n<i;n++)r(a[n],n);return a}return[]}function En(){var e=document.scrollingElement;return e||document.documentElement}function Cr(e,t,r,a,n){if(!(!e.getBoundingClientRect&&e!==window)){var i,u,l,s,o,f,d;if(e!==window&&e.parentNode&&e!==En()?(i=e.getBoundingClientRect(),u=i.top,l=i.left,s=i.bottom,o=i.right,f=i.height,d=i.width):(u=0,l=0,s=window.innerHeight,o=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(t||r)&&e!==window&&(n=n||e.parentNode,!ii))do if(n&&n.getBoundingClientRect&&(ze(n,"transform")!=="none"||r&&ze(n,"position")!=="static")){var c=n.getBoundingClientRect();u-=c.top+parseInt(ze(n,"border-top-width")),l-=c.left+parseInt(ze(n,"border-left-width")),s=u+i.height,o=l+i.width;break}while(n=n.parentNode);if(a&&e!==window){var v=Su(n||e),p=v&&v.a,m=v&&v.d;v&&(u/=m,l/=p,d/=p,f/=m,s=u+f,o=l+d)}return{top:u,left:l,bottom:s,right:o,width:d,height:f}}}function cp(e,t,r){for(var a=vi(e,!0),n=Cr(e)[t];a;){var i=Cr(a)[r],u=void 0;if(u=n>=i,!u)return a;if(a===En())break;a=vi(a,!1)}return!1}function Fu(e,t,r,a){for(var n=0,i=0,u=e.children;i<u.length;){if(u[i].style.display!=="none"&&u[i]!==Ve.ghost&&(a||u[i]!==Ve.dragged)&&Xa(u[i],r.draggable,e,!1)){if(n===t)return u[i];n++}i++}return null}function Kc(e,t){for(var r=e.lastElementChild;r&&(r===Ve.ghost||ze(r,"display")==="none"||t&&!no(r,t));)r=r.previousElementSibling;return r||null}function qa(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Ve.clone&&(!t||no(e,t))&&r++;return r}function vp(e){var t=0,r=0,a=En();if(e)do{var n=Su(e),i=n.a,u=n.d;t+=e.scrollLeft*i,r+=e.scrollTop*u}while(e!==a&&(e=e.parentNode));return[t,r]}function l7(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[r][a])return Number(r)}return-1}function vi(e,t){if(!e||!e.getBoundingClientRect)return En();var r=e,a=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var n=ze(r);if(r.clientWidth<r.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return En();if(a||t)return r;a=!0}}while(r=r.parentNode);return En()}function s7(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Lf(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var $l;function Pb(e,t){return function(){if(!$l){var r=arguments,a=this;r.length===1?e.call(a,r[0]):e.apply(a,r),$l=setTimeout(function(){$l=void 0},t)}}}function o7(){clearTimeout($l),$l=void 0}function qb(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function Nb(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function Rb(e,t,r){var a={};return Array.from(e.children).forEach(function(n){var i,u,l,s;if(!(!Xa(n,t.draggable,e,!1)||n.animated||n===r)){var o=Cr(n);a.left=Math.min((i=a.left)!==null&&i!==void 0?i:1/0,o.left),a.top=Math.min((u=a.top)!==null&&u!==void 0?u:1/0,o.top),a.right=Math.max((l=a.right)!==null&&l!==void 0?l:-1/0,o.right),a.bottom=Math.max((s=a.bottom)!==null&&s!==void 0?s:-1/0,o.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var fa="Sortable"+new Date().getTime();function f7(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(n){if(!(ze(n,"display")==="none"||n===Ve.ghost)){e.push({target:n,rect:Cr(n)});var i=Dn({},e[e.length-1].rect);if(n.thisAnimationDuration){var u=Su(n,!0);u&&(i.top-=u.f,i.left-=u.e)}n.fromRect=i}})}},addAnimationState:function(a){e.push(a)},removeAnimationState:function(a){e.splice(l7(e,{target:a}),1)},animateAll:function(a){var n=this;if(!this.options.animation){clearTimeout(t),typeof a=="function"&&a();return}var i=!1,u=0;e.forEach(function(l){var s=0,o=l.target,f=o.fromRect,d=Cr(o),c=o.prevFromRect,v=o.prevToRect,p=l.rect,m=Su(o,!0);m&&(d.top-=m.f,d.left-=m.e),o.toRect=d,o.thisAnimationDuration&&Lf(c,d)&&!Lf(f,d)&&(p.top-d.top)/(p.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=c7(p,c,v,n.options)),Lf(d,f)||(o.prevFromRect=f,o.prevToRect=d,s||(s=n.options.animation),n.animate(o,p,d,s)),s&&(i=!0,u=Math.max(u,s),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout(function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null},s),o.thisAnimationDuration=s)}),clearTimeout(t),i?t=setTimeout(function(){typeof a=="function"&&a()},u):typeof a=="function"&&a(),e=[]},animate:function(a,n,i,u){if(u){ze(a,"transition",""),ze(a,"transform","");var l=Su(this.el),s=l&&l.a,o=l&&l.d,f=(n.left-i.left)/(s||1),d=(n.top-i.top)/(o||1);a.animatingX=!!f,a.animatingY=!!d,ze(a,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=d7(a),ze(a,"transition","transform "+u+"ms"+(this.options.easing?" "+this.options.easing:"")),ze(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){ze(a,"transition",""),ze(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},u)}}}}function d7(e){return e.offsetWidth}function c7(e,t,r,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*a.animation}var ou=[],jf={initializeByDefault:!0},os={mount:function(t){for(var r in jf)jf.hasOwnProperty(r)&&!(r in t)&&(t[r]=jf[r]);ou.forEach(function(a){if(a.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ou.push(t)},pluginEvent:function(t,r,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=t+"Global";ou.forEach(function(u){r[u.pluginName]&&(r[u.pluginName][i]&&r[u.pluginName][i](Dn({sortable:r},a)),r.options[u.pluginName]&&r[u.pluginName][t]&&r[u.pluginName][t](Dn({sortable:r},a)))})},initializePlugins:function(t,r,a,n){ou.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var o=new l(t,r,t.options);o.sortable=t,o.options=t.options,t[s]=o,Jn(a,o.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var u=this.modifyOption(t,i,t.options[i]);typeof u<"u"&&(t.options[i]=u)}},getEventProperties:function(t,r){var a={};return ou.forEach(function(n){typeof n.eventProperties=="function"&&Jn(a,n.eventProperties.call(r[n.pluginName],t))}),a},modifyOption:function(t,r,a){var n;return ou.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[r]=="function"&&(n=i.optionListeners[r].call(t[i.pluginName],a))}),n}};function v7(e){var t=e.sortable,r=e.rootEl,a=e.name,n=e.targetEl,i=e.cloneEl,u=e.toEl,l=e.fromEl,s=e.oldIndex,o=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,c=e.originalEvent,v=e.putSortable,p=e.extraEventProperties;if(t=t||r&&r[fa],!!t){var m,g=t.options,A="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!ii&&!ss?m=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(a,!0,!0)),m.to=u||r,m.from=l||r,m.item=n||r,m.clone=i,m.oldIndex=s,m.newIndex=o,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=c,m.pullMode=v?v.lastPutMode:void 0;var y=Dn(Dn({},p),os.getEventProperties(a,t));for(var b in y)m[b]=y[b];r&&r.dispatchEvent(m),g[A]&&g[A].call(t,m)}}var p7=["evt"],ua=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.evt,i=i7(a,p7);os.pluginEvent.bind(Ve)(t,r,Dn({dragEl:ve,parentEl:gr,ghostEl:Ke,rootEl:or,nextEl:Ti,lastDownEl:Us,cloneEl:pr,cloneHidden:oi,dragStarted:Al,putSortable:Rr,activeSortable:Ve.active,originalEvent:n,oldIndex:yu,oldDraggableIndex:Ol,newIndex:Ea,newDraggableIndex:si,hideGhostForTarget:Ub,unhideGhostForTarget:Yb,cloneNowHidden:function(){oi=!0},cloneNowShown:function(){oi=!1},dispatchSortableEvent:function(l){ea({sortable:r,name:l,originalEvent:n})}},i))};function ea(e){v7(Dn({putSortable:Rr,cloneEl:pr,targetEl:ve,rootEl:or,oldIndex:yu,oldDraggableIndex:Ol,newIndex:Ea,newDraggableIndex:si},e))}var ve,gr,Ke,or,Ti,Us,pr,oi,yu,Ea,Ol,si,xs,Rr,pu=!1,io=!1,uo=[],xi,Ka,Uf,Yf,pp,hp,Al,fu,Tl,Fl=!1,$s=!1,Ys,Wr,zf=[],_d=!1,lo=[],rf=typeof document<"u",Os=Gc,mp=ss||ii?"cssFloat":"float",h7=rf&&!Fb&&!Gc&&"draggable"in document.createElement("div"),Ib=(function(){if(rf){if(ii)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),Lb=function(t,r){var a=ze(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=Fu(t,0,r),u=Fu(t,1,r),l=i&&ze(i),s=u&&ze(u),o=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Cr(i).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Cr(u).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return u&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||o>=n&&a[mp]==="none"||u&&a[mp]==="none"&&o+f>n)?"vertical":"horizontal"},m7=function(t,r,a){var n=a?t.left:t.top,i=a?t.right:t.bottom,u=a?t.width:t.height,l=a?r.left:r.top,s=a?r.right:r.bottom,o=a?r.width:r.height;return n===l||i===s||n+u/2===l+o/2},g7=function(t,r){var a;return uo.some(function(n){var i=n[fa].options.emptyInsertThreshold;if(!(!i||Kc(n))){var u=Cr(n),l=t>=u.left-i&&t<=u.right+i,s=r>=u.top-i&&r<=u.bottom+i;if(l&&s)return a=n}}),a},jb=function(t){function r(i,u){return function(l,s,o,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(u||d))return!0;if(i==null||i===!1)return!1;if(u&&i==="clone")return i;if(typeof i=="function")return r(i(l,s,o,f),u)(l,s,o,f);var c=(u?l:s).options.group.name;return i===!0||typeof i=="string"&&i===c||i.join&&i.indexOf(c)>-1}}var a={},n=t.group;(!n||js(n)!="object")&&(n={name:n}),a.name=n.name,a.checkPull=r(n.pull,!0),a.checkPut=r(n.put),a.revertClone=n.revertClone,t.group=a},Ub=function(){!Ib&&Ke&&ze(Ke,"display","none")},Yb=function(){!Ib&&Ke&&ze(Ke,"display","")};rf&&!Fb&&document.addEventListener("click",function(e){if(io)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),io=!1,!1},!0);var $i=function(t){if(ve){t=t.touches?t.touches[0]:t;var r=g7(t.clientX,t.clientY);if(r){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=r,a.preventDefault=void 0,a.stopPropagation=void 0,r[fa]._onDragOver(a)}}},y7=function(t){ve&&ve.parentNode[fa]._isOutsideThisEl(t.target)};function Ve(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Jn({},t),e[fa]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lb(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(u,l){u.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ve.supportPointer!==!1&&"PointerEvent"in window&&(!xl||Gc),emptyInsertThreshold:5};os.initializePlugins(this,e,r);for(var a in r)!(a in t)&&(t[a]=r[a]);jb(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:h7,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ot(e,"pointerdown",this._onTapStart):(ot(e,"mousedown",this._onTapStart),ot(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ot(e,"dragover",this),ot(e,"dragenter",this)),uo.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Jn(this,f7())}Ve.prototype={constructor:Ve,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(fu=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,ve):this.options.direction},_onTapStart:function(t){if(t.cancelable){var r=this,a=this.el,n=this.options,i=n.preventOnFilter,u=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,o=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,f=n.filter;if(C7(a),!ve&&!(/mousedown|pointerdown/.test(u)&&t.button!==0||n.disabled)&&!o.isContentEditable&&!(!this.nativeDraggable&&xl&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Xa(s,n.draggable,a,!1),!(s&&s.animated)&&Us!==s)){if(yu=qa(s),Ol=qa(s,n.draggable),typeof f=="function"){if(f.call(this,t,s,this)){ea({sortable:r,rootEl:o,name:"filter",targetEl:s,toEl:a,fromEl:a}),ua("filter",r,{evt:t}),i&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Xa(o,d.trim(),a,!1),d)return ea({sortable:r,rootEl:d,name:"filter",targetEl:s,fromEl:a,toEl:a}),ua("filter",r,{evt:t}),!0}),f)){i&&t.preventDefault();return}n.handle&&!Xa(o,n.handle,a,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,r,a){var n=this,i=n.el,u=n.options,l=i.ownerDocument,s;if(a&&!ve&&a.parentNode===i){var o=Cr(a);if(or=i,ve=a,gr=ve.parentNode,Ti=ve.nextSibling,Us=a,xs=u.group,Ve.dragged=ve,xi={target:ve,clientX:(r||t).clientX,clientY:(r||t).clientY},pp=xi.clientX-o.left,hp=xi.clientY-o.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,ve.style["will-change"]="all",s=function(){if(ua("delayEnded",n,{evt:t}),Ve.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!fp&&n.nativeDraggable&&(ve.draggable=!0),n._triggerDragStart(t,r),ea({sortable:n,name:"choose",originalEvent:t}),_a(ve,u.chosenClass,!0)},u.ignore.split(",").forEach(function(f){Bb(ve,f.trim(),Vf)}),ot(l,"dragover",$i),ot(l,"mousemove",$i),ot(l,"touchmove",$i),u.supportPointer?(ot(l,"pointerup",n._onDrop),!this.nativeDraggable&&ot(l,"pointercancel",n._onDrop)):(ot(l,"mouseup",n._onDrop),ot(l,"touchend",n._onDrop),ot(l,"touchcancel",n._onDrop)),fp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ve.draggable=!0),ua("delayStart",this,{evt:t}),u.delay&&(!u.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(ss||ii))){if(Ve.eventCanceled){this._onDrop();return}u.supportPointer?(ot(l,"pointerup",n._disableDelayedDrag),ot(l,"pointercancel",n._disableDelayedDrag)):(ot(l,"mouseup",n._disableDelayedDrag),ot(l,"touchend",n._disableDelayedDrag),ot(l,"touchcancel",n._disableDelayedDrag)),ot(l,"mousemove",n._delayedDragTouchMoveHandler),ot(l,"touchmove",n._delayedDragTouchMoveHandler),u.supportPointer&&ot(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,u.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ve&&Vf(ve),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;lt(t,"mouseup",this._disableDelayedDrag),lt(t,"touchend",this._disableDelayedDrag),lt(t,"touchcancel",this._disableDelayedDrag),lt(t,"pointerup",this._disableDelayedDrag),lt(t,"pointercancel",this._disableDelayedDrag),lt(t,"mousemove",this._delayedDragTouchMoveHandler),lt(t,"touchmove",this._delayedDragTouchMoveHandler),lt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?ot(document,"pointermove",this._onTouchMove):r?ot(document,"touchmove",this._onTouchMove):ot(document,"mousemove",this._onTouchMove):(ot(ve,"dragend",this),ot(or,"dragstart",this._onDragStart));try{document.selection?zs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(pu=!1,or&&ve){ua("dragStarted",this,{evt:r}),this.nativeDraggable&&ot(document,"dragover",y7);var a=this.options;!t&&_a(ve,a.dragClass,!1),_a(ve,a.ghostClass,!0),Ve.active=this,t&&this._appendGhost(),ea({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Ka){this._lastX=Ka.clientX,this._lastY=Ka.clientY,Ub();for(var t=document.elementFromPoint(Ka.clientX,Ka.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ka.clientX,Ka.clientY),t!==r);)r=t;if(ve.parentNode[fa]._isOutsideThisEl(t),r)do{if(r[fa]){var a=void 0;if(a=r[fa]._onDragOver({clientX:Ka.clientX,clientY:Ka.clientY,target:t,rootEl:r}),a&&!this.options.dragoverBubble)break}t=r}while(r=kb(r));Yb()}},_onTouchMove:function(t){if(xi){var r=this.options,a=r.fallbackTolerance,n=r.fallbackOffset,i=t.touches?t.touches[0]:t,u=Ke&&Su(Ke,!0),l=Ke&&u&&u.a,s=Ke&&u&&u.d,o=Os&&Wr&&vp(Wr),f=(i.clientX-xi.clientX+n.x)/(l||1)+(o?o[0]-zf[0]:0)/(l||1),d=(i.clientY-xi.clientY+n.y)/(s||1)+(o?o[1]-zf[1]:0)/(s||1);if(!Ve.active&&!pu){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(Ke){u?(u.e+=f-(Uf||0),u.f+=d-(Yf||0)):u={a:1,b:0,c:0,d:1,e:f,f:d};var c="matrix(".concat(u.a,",").concat(u.b,",").concat(u.c,",").concat(u.d,",").concat(u.e,",").concat(u.f,")");ze(Ke,"webkitTransform",c),ze(Ke,"mozTransform",c),ze(Ke,"msTransform",c),ze(Ke,"transform",c),Uf=f,Yf=d,Ka=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ke){var t=this.options.fallbackOnBody?document.body:or,r=Cr(ve,!0,Os,!0,t),a=this.options;if(Os){for(Wr=t;ze(Wr,"position")==="static"&&ze(Wr,"transform")==="none"&&Wr!==document;)Wr=Wr.parentNode;Wr!==document.body&&Wr!==document.documentElement?(Wr===document&&(Wr=En()),r.top+=Wr.scrollTop,r.left+=Wr.scrollLeft):Wr=En(),zf=vp(Wr)}Ke=ve.cloneNode(!0),_a(Ke,a.ghostClass,!1),_a(Ke,a.fallbackClass,!0),_a(Ke,a.dragClass,!0),ze(Ke,"transition",""),ze(Ke,"transform",""),ze(Ke,"box-sizing","border-box"),ze(Ke,"margin",0),ze(Ke,"top",r.top),ze(Ke,"left",r.left),ze(Ke,"width",r.width),ze(Ke,"height",r.height),ze(Ke,"opacity","0.8"),ze(Ke,"position",Os?"absolute":"fixed"),ze(Ke,"zIndex","100000"),ze(Ke,"pointerEvents","none"),Ve.ghost=Ke,t.appendChild(Ke),ze(Ke,"transform-origin",pp/parseInt(Ke.style.width)*100+"% "+hp/parseInt(Ke.style.height)*100+"%")}},_onDragStart:function(t,r){var a=this,n=t.dataTransfer,i=a.options;if(ua("dragStart",this,{evt:t}),Ve.eventCanceled){this._onDrop();return}ua("setupClone",this),Ve.eventCanceled||(pr=Nb(ve),pr.removeAttribute("id"),pr.draggable=!1,pr.style["will-change"]="",this._hideClone(),_a(pr,this.options.chosenClass,!1),Ve.clone=pr),a.cloneId=zs(function(){ua("clone",a),!Ve.eventCanceled&&(a.options.removeCloneOnHide||or.insertBefore(pr,ve),a._hideClone(),ea({sortable:a,name:"clone"}))}),!r&&_a(ve,i.dragClass,!0),r?(io=!0,a._loopId=setInterval(a._emulateDragOver,50)):(lt(document,"mouseup",a._onDrop),lt(document,"touchend",a._onDrop),lt(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,ve)),ot(document,"drop",a),ze(ve,"transform","translateZ(0)")),pu=!0,a._dragStartId=zs(a._dragStarted.bind(a,r,t)),ot(document,"selectstart",a),Al=!0,window.getSelection().removeAllRanges(),xl&&ze(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,a=t.target,n,i,u,l=this.options,s=l.group,o=Ve.active,f=xs===s,d=l.sort,c=Rr||o,v,p=this,m=!1;if(_d)return;function g(M,K){ua(M,p,Dn({evt:t,isOwner:f,axis:v?"vertical":"horizontal",revert:u,dragRect:n,targetRect:i,canSort:d,fromSortable:c,target:a,completed:y,onMove:function(W,ee){return Ts(or,r,ve,n,W,Cr(W),t,ee)},changed:b},K))}function A(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==c&&c.captureAnimationState()}function y(M){return g("dragOverCompleted",{insertion:M}),M&&(f?o._hideClone():o._showClone(p),p!==c&&(_a(ve,Rr?Rr.options.ghostClass:o.options.ghostClass,!1),_a(ve,l.ghostClass,!0)),Rr!==p&&p!==Ve.active?Rr=p:p===Ve.active&&Rr&&(Rr=null),c===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==c&&(c.animateAll(),c._ignoreWhileAnimating=null)),(a===ve&&!ve.animated||a===r&&!a.animated)&&(fu=null),!l.dragoverBubble&&!t.rootEl&&a!==document&&(ve.parentNode[fa]._isOutsideThisEl(t.target),!M&&$i(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function b(){Ea=qa(ve),si=qa(ve,l.draggable),ea({sortable:p,name:"change",toEl:r,newIndex:Ea,newDraggableIndex:si,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),a=Xa(a,l.draggable,r,!0),g("dragOver"),Ve.eventCanceled)return m;if(ve.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return y(!1);if(io=!1,o&&!l.disabled&&(f?d||(u=gr!==or):Rr===this||(this.lastPutMode=xs.checkPull(this,o,ve,t))&&s.checkPut(this,o,ve,t))){if(v=this._getDirection(t,a)==="vertical",n=Cr(ve),g("dragOverValid"),Ve.eventCanceled)return m;if(u)return gr=or,A(),this._hideClone(),g("revert"),Ve.eventCanceled||(Ti?or.insertBefore(ve,Ti):or.appendChild(ve)),y(!0);var _=Kc(r,l.draggable);if(!_||_7(t,v,this)&&!_.animated){if(_===ve)return y(!1);if(_&&r===t.target&&(a=_),a&&(i=Cr(a)),Ts(or,r,ve,n,a,i,t,!!a)!==!1)return A(),_&&_.nextSibling?r.insertBefore(ve,_.nextSibling):r.appendChild(ve),gr=r,b(),y(!0)}else if(_&&w7(t,v,this)){var C=Fu(r,0,l,!0);if(C===ve)return y(!1);if(a=C,i=Cr(a),Ts(or,r,ve,n,a,i,t,!1)!==!1)return A(),r.insertBefore(ve,C),gr=r,b(),y(!0)}else if(a.parentNode===r){i=Cr(a);var T=0,S,D=ve.parentNode!==r,x=!m7(ve.animated&&ve.toRect||n,a.animated&&a.toRect||i,v),F=v?"top":"left",k=cp(a,"top","top")||cp(ve,"top","top"),U=k?k.scrollTop:void 0;fu!==a&&(S=i[F],Fl=!1,$s=!x&&l.invertSwap||D),T=E7(t,a,i,v,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,$s,fu===a);var Y;if(T!==0){var H=qa(ve);do H-=T,Y=gr.children[H];while(Y&&(ze(Y,"display")==="none"||Y===Ke))}if(T===0||Y===a)return y(!1);fu=a,Tl=T;var N=a.nextElementSibling,I=!1;I=T===1;var j=Ts(or,r,ve,n,a,i,t,I);if(j!==!1)return(j===1||j===-1)&&(I=j===1),_d=!0,setTimeout(A7,30),A(),I&&!N?r.appendChild(ve):a.parentNode.insertBefore(ve,I?N:a),k&&qb(k,0,U-k.scrollTop),gr=ve.parentNode,S!==void 0&&!$s&&(Ys=Math.abs(S-Cr(a)[F])),b(),y(!0)}if(r.contains(ve))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){lt(document,"mousemove",this._onTouchMove),lt(document,"touchmove",this._onTouchMove),lt(document,"pointermove",this._onTouchMove),lt(document,"dragover",$i),lt(document,"mousemove",$i),lt(document,"touchmove",$i)},_offUpEvents:function(){var t=this.el.ownerDocument;lt(t,"mouseup",this._onDrop),lt(t,"touchend",this._onDrop),lt(t,"pointerup",this._onDrop),lt(t,"pointercancel",this._onDrop),lt(t,"touchcancel",this._onDrop),lt(document,"selectstart",this)},_onDrop:function(t){var r=this.el,a=this.options;if(Ea=qa(ve),si=qa(ve,a.draggable),ua("drop",this,{evt:t}),gr=ve&&ve.parentNode,Ea=qa(ve),si=qa(ve,a.draggable),Ve.eventCanceled){this._nulling();return}pu=!1,$s=!1,Fl=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ed(this.cloneId),Ed(this._dragStartId),this.nativeDraggable&&(lt(document,"drop",this),lt(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),xl&&ze(document.body,"user-select",""),ze(ve,"transform",""),t&&(Al&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),Ke&&Ke.parentNode&&Ke.parentNode.removeChild(Ke),(or===gr||Rr&&Rr.lastPutMode!=="clone")&&pr&&pr.parentNode&&pr.parentNode.removeChild(pr),ve&&(this.nativeDraggable&<(ve,"dragend",this),Vf(ve),ve.style["will-change"]="",Al&&!pu&&_a(ve,Rr?Rr.options.ghostClass:this.options.ghostClass,!1),_a(ve,this.options.chosenClass,!1),ea({sortable:this,name:"unchoose",toEl:gr,newIndex:null,newDraggableIndex:null,originalEvent:t}),or!==gr?(Ea>=0&&(ea({rootEl:gr,name:"add",toEl:gr,fromEl:or,originalEvent:t}),ea({sortable:this,name:"remove",toEl:gr,originalEvent:t}),ea({rootEl:gr,name:"sort",toEl:gr,fromEl:or,originalEvent:t}),ea({sortable:this,name:"sort",toEl:gr,originalEvent:t})),Rr&&Rr.save()):Ea!==yu&&Ea>=0&&(ea({sortable:this,name:"update",toEl:gr,originalEvent:t}),ea({sortable:this,name:"sort",toEl:gr,originalEvent:t})),Ve.active&&((Ea==null||Ea===-1)&&(Ea=yu,si=Ol),ea({sortable:this,name:"end",toEl:gr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ua("nulling",this),or=ve=gr=Ke=Ti=pr=Us=oi=xi=Ka=Al=Ea=si=yu=Ol=fu=Tl=Rr=xs=Ve.dragged=Ve.ghost=Ve.clone=Ve.active=null,lo.forEach(function(t){t.checked=!0}),lo.length=Uf=Yf=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ve&&(this._onDragOver(t),b7(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],r,a=this.el.children,n=0,i=a.length,u=this.options;n<i;n++)r=a[n],Xa(r,u.draggable,this.el,!1)&&t.push(r.getAttribute(u.dataIdAttr)||D7(r));return t},sort:function(t,r){var a={},n=this.el;this.toArray().forEach(function(i,u){var l=n.children[u];Xa(l,this.options.draggable,n,!1)&&(a[i]=l)},this),r&&this.captureAnimationState(),t.forEach(function(i){a[i]&&(n.removeChild(a[i]),n.appendChild(a[i]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return Xa(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var a=this.options;if(r===void 0)return a[t];var n=os.modifyOption(this,t,r);typeof n<"u"?a[t]=n:a[t]=r,t==="group"&&jb(a)},destroy:function(){ua("destroy",this);var t=this.el;t[fa]=null,lt(t,"mousedown",this._onTapStart),lt(t,"touchstart",this._onTapStart),lt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(lt(t,"dragover",this),lt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),uo.splice(uo.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!oi){if(ua("hideClone",this),Ve.eventCanceled)return;ze(pr,"display","none"),this.options.removeCloneOnHide&&pr.parentNode&&pr.parentNode.removeChild(pr),oi=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(oi){if(ua("showClone",this),Ve.eventCanceled)return;ve.parentNode==or&&!this.options.group.revertClone?or.insertBefore(pr,ve):Ti?or.insertBefore(pr,Ti):or.appendChild(pr),this.options.group.revertClone&&this.animate(ve,pr),ze(pr,"display",""),oi=!1}}};function b7(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ts(e,t,r,a,n,i,u,l){var s,o=e[fa],f=o.options.onMove,d;return window.CustomEvent&&!ii&&!ss?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=r,s.draggedRect=a,s.related=n||t,s.relatedRect=i||Cr(t),s.willInsertAfter=l,s.originalEvent=u,e.dispatchEvent(s),f&&(d=f.call(o,s,u)),d}function Vf(e){e.draggable=!1}function A7(){_d=!1}function w7(e,t,r){var a=Cr(Fu(r.el,0,r.options,!0)),n=Rb(r.el,r.options,Ke),i=10;return t?e.clientX<n.left-i||e.clientY<a.top&&e.clientX<a.right:e.clientY<n.top-i||e.clientY<a.bottom&&e.clientX<a.left}function _7(e,t,r){var a=Cr(Kc(r.el,r.options.draggable)),n=Rb(r.el,r.options,Ke),i=10;return t?e.clientX>n.right+i||e.clientY>a.bottom&&e.clientX>a.left:e.clientY>n.bottom+i||e.clientX>a.right&&e.clientY>a.top}function E7(e,t,r,a,n,i,u,l){var s=a?e.clientY:e.clientX,o=a?r.height:r.width,f=a?r.top:r.left,d=a?r.bottom:r.right,c=!1;if(!u){if(l&&Ys<o*n){if(!Fl&&(Tl===1?s>f+o*i/2:s<d-o*i/2)&&(Fl=!0),Fl)c=!0;else if(Tl===1?s<f+Ys:s>d-Ys)return-Tl}else if(s>f+o*(1-n)/2&&s<d-o*(1-n)/2)return S7(t)}return c=c||u,c&&(s<f+o*i/2||s>d-o*i/2)?s>f+o/2?1:-1:0}function S7(e){return qa(ve)<qa(e)?1:-1}function D7(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,a=0;r--;)a+=t.charCodeAt(r);return a.toString(36)}function C7(e){lo.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var a=t[r];a.checked&&lo.push(a)}}function zs(e){return setTimeout(e,0)}function Ed(e){return clearTimeout(e)}rf&&ot(document,"touchmove",function(e){(Ve.active||pu)&&e.cancelable&&e.preventDefault()});Ve.utils={on:ot,off:lt,css:ze,find:Bb,is:function(t,r){return!!Xa(t,r,t,!1)},extend:s7,throttle:Pb,closest:Xa,toggleClass:_a,clone:Nb,index:qa,nextTick:zs,cancelNextTick:Ed,detectDirection:Lb,getChild:Fu,expando:fa};Ve.get=function(e){return e[fa]};Ve.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Ve.utils=Dn(Dn({},Ve.utils),a.utils)),os.mount(a)})};Ve.create=function(e,t){return new Ve(e,t)};Ve.version=u7;var Dr=[],wl,Sd,Dd=!1,Wf,Hf,so,_l;function x7(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var a=r.originalEvent;this.sortable.nativeDraggable?ot(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ot(document,"pointermove",this._handleFallbackAutoScroll):a.touches?ot(document,"touchmove",this._handleFallbackAutoScroll):ot(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var a=r.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):(lt(document,"pointermove",this._handleFallbackAutoScroll),lt(document,"touchmove",this._handleFallbackAutoScroll),lt(document,"mousemove",this._handleFallbackAutoScroll)),gp(),Vs(),o7()},nulling:function(){so=Sd=wl=Dd=_l=Wf=Hf=null,Dr.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,a){var n=this,i=(r.touches?r.touches[0]:r).clientX,u=(r.touches?r.touches[0]:r).clientY,l=document.elementFromPoint(i,u);if(so=r,a||this.options.forceAutoScrollFallback||ss||ii||xl){Gf(r,this.options,l,a);var s=vi(l,!0);Dd&&(!_l||i!==Wf||u!==Hf)&&(_l&&gp(),_l=setInterval(function(){var o=vi(document.elementFromPoint(i,u),!0);o!==s&&(s=o,Vs()),Gf(r,n.options,o,a)},10),Wf=i,Hf=u)}else{if(!this.options.bubbleScroll||vi(l,!0)===En()){Vs();return}Gf(r,this.options,vi(l,!1),!1)}}},Jn(e,{pluginName:"scroll",initializeByDefault:!0})}function Vs(){Dr.forEach(function(e){clearInterval(e.pid)}),Dr=[]}function gp(){clearInterval(_l)}var Gf=Pb(function(e,t,r,a){if(t.scroll){var n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,u=t.scrollSensitivity,l=t.scrollSpeed,s=En(),o=!1,f;Sd!==r&&(Sd=r,Vs(),wl=t.scroll,f=t.scrollFn,wl===!0&&(wl=vi(r,!0)));var d=0,c=wl;do{var v=c,p=Cr(v),m=p.top,g=p.bottom,A=p.left,y=p.right,b=p.width,_=p.height,C=void 0,T=void 0,S=v.scrollWidth,D=v.scrollHeight,x=ze(v),F=v.scrollLeft,k=v.scrollTop;v===s?(C=b<S&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),T=_<D&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(C=b<S&&(x.overflowX==="auto"||x.overflowX==="scroll"),T=_<D&&(x.overflowY==="auto"||x.overflowY==="scroll"));var U=C&&(Math.abs(y-n)<=u&&F+b<S)-(Math.abs(A-n)<=u&&!!F),Y=T&&(Math.abs(g-i)<=u&&k+_<D)-(Math.abs(m-i)<=u&&!!k);if(!Dr[d])for(var H=0;H<=d;H++)Dr[H]||(Dr[H]={});(Dr[d].vx!=U||Dr[d].vy!=Y||Dr[d].el!==v)&&(Dr[d].el=v,Dr[d].vx=U,Dr[d].vy=Y,clearInterval(Dr[d].pid),(U!=0||Y!=0)&&(o=!0,Dr[d].pid=setInterval((function(){a&&this.layer===0&&Ve.active._onTouchMove(so);var N=Dr[this.layer].vy?Dr[this.layer].vy*l:0,I=Dr[this.layer].vx?Dr[this.layer].vx*l:0;typeof f=="function"&&f.call(Ve.dragged.parentNode[fa],I,N,e,so,Dr[this.layer].el)!=="continue"||qb(Dr[this.layer].el,I,N)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&c!==s&&(c=vi(c,!1)));Dd=o}},30),zb=function(t){var r=t.originalEvent,a=t.putSortable,n=t.dragEl,i=t.activeSortable,u=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(r){var o=a||i;l();var f=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,d=document.elementFromPoint(f.clientX,f.clientY);s(),o&&!o.el.contains(d)&&(u("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function Zc(){}Zc.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=Fu(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(r,n):this.sortable.el.appendChild(r),this.sortable.animateAll(),a&&a.animateAll()},drop:zb};Jn(Zc,{pluginName:"revertOnSpill"});function Xc(){}Xc.prototype={onSpill:function(t){var r=t.dragEl,a=t.putSortable,n=a||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop:zb};Jn(Xc,{pluginName:"removeOnSpill"});Ve.mount(new x7);Ve.mount(Xc,Zc);var Vb=function(t,r,a,n){var{sort:i}=Q(t),u=a.el$,l=a.isDisabled,s=a.fire,o=a.refreshOrderStore,f=a.value,d=a.sorting,c=a.length,v=a.path,p=a.children$Array,m=R(null),g=R(null),A=h(()=>i.value&&!l.value&&c.value&&f.value[0]!==void 0),y=()=>{g.value=new Ve(m.value,{handle:"[data-handle]",onStart:()=>{d.value=!0},onEnd:_})},b=()=>{var C;(C=g.value)===null||C===void 0||C.destroy(),g.value=null},_=C=>{var{oldIndex:T,newIndex:S,item:D}=C;if(d.value=!1,!(T===S||l.value)){m.value.children[S].remove(),m.value.insertBefore(D,m.value.children[T]);var x=Ze(f.value);x.splice(S,0,x.splice(T,1)[0]),f.value=x,o(f.value),s("sort",f.value,T,S,p.value[S],u.value)}};return Se(A,(C,T)=>{C===!0&&T===!1?y():C===!1&&T===!0&&b()},{immediate:!1,flush:"post"}),Vt(()=>{A.value&&y()}),Se(c,C=>{var T;A.value&&(b(),y(),(T=g.value)===null||T===void 0||T.sort(Array.from(Array(C).keys()).reduce((S,D,x)=>(S.push("".concat(v.value,"-").concat(x)),S),[])))},{flush:"post"}),{list:m,sortable:g,isSortable:A,handleSort:_,initSortable:y,destroySortable:b}},Wb=function(t,r,a){var n=R(!1);return{sorting:n}},Hb=function(t,r,a,n){var{storeOrder:i,orderBy:u,order:l}=Q(t),s=a.form$,o=a.value,f=R(s.value.$vueform.config.orderFrom),d=v=>(i.value&&P(v,(p,m)=>{p[i.value]=l.value&&l.value.toUpperCase()==="DESC"?v.length-m-(f.value==0?1:0):parseInt(m)+f.value}),v),c=h(()=>u.value||i.value);return Se(i,(v,p)=>{v?d(o.value):P(o.value,(m,g)=>{m[p]=null})},{immediate:!1}),{refreshOrderStore:d,orderByName:c}},$7=function(t,r,a,n){var{storeOrder:i,orderBy:u}=Q(t),{refreshOrderStore:l}=Hb(t,r,a),s=h(()=>u.value||i.value);return{refreshOrderStore:l,orderByName:s}},O7=function(t,r,a){var{object:n,element:i}=Q(t),u=h(()=>l.value?Object.assign({},n.value,{type:"object"}):i.value||{}),l=h(()=>!!n.value);return{prototype:u,isObject:l}},T7=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{auto:i,object:u,file:l,fields:s,storeFile:o,storeOrder:f,view:d,clickable:c,url:v,previewUrl:p,uploadTempEndpoint:m,removeTempEndpoint:g,removeEndpoint:A,params:y,softRemove:b}=Q(t),_=a.isDisabled,C=h(()=>n.type||"file"),T=h(()=>o.value?o.value:u.value||Br(s.value).length||f.value?"file":null),S=h(()=>!!u.value||!!f.value||!!Br(s.value).length),D=h(()=>{var x={type:C.value,auto:i.value,view:d.value,layout:d.value==="gallery"?"ElementLayoutInline":"ElementLayout",disabled:_.value,clickable:c.value,url:v.value,previewUrl:p.value,uploadTempEndpoint:m.value,removeTempEndpoint:g.value,removeEndpoint:A.value,params:y.value,softRemove:b.value};return S.value?{type:"object",schema:Object.assign({},{[T.value]:Object.assign({},x,{embed:!0},l.value)},f.value?{[f.value]:{type:"hidden",meta:!0}}:{},s.value)}:Object.assign({},x,l.value)});return{storeFileName:T,isObject:S,prototype:D}},F7=function(t,r,a){var{controls:n,sort:i,min:u,max:l,addText:s}=Q(t),{isDisabled:o,value:f,form$:d}=a,c=h(()=>!o.value&&(n.value.add||n.value.add===void 0)&&(l.value===-1||l.value>f.value.length)),v=h(()=>!o.value&&(n.value.remove||n.value.remove===void 0)&&(u.value===-1||u.value<f.value.length)),p=h(()=>!o.value&&(n.value.sort||n.value.sort===void 0)&&i.value),m=h(()=>d.value.$vueform.sanitize(s.value||d.value.translations.vueform.elements.list.add));return{hasAdd:c,hasRemove:v,hasSort:p,addLabel:m}},M7=function(t,r,a){var{controls:n,sort:i}=Q(t),u=a.isDisabled,l=a.hasUploading,s=h(()=>n.value.add||n.value.add===void 0),o=h(()=>!u.value&&(n.value.remove||n.value.remove===void 0)&&!l.value),f=h(()=>!u.value&&(n.value.sort||n.value.sort===void 0)&&i.value&&!l.value);return{hasAdd:s,hasRemove:o,hasSort:f}},Gb={name:"ListElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","add","remove","sort","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"list",private:!0},default:{required:!1,type:[Array],default:void 0},id:{required:!1,type:[String],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},onAdd:{required:!1,type:[Function],default:null,private:!0},onRemove:{required:!1,type:[Function],default:null,private:!0},onSort:{required:!1,type:[Function],default:null,private:!0},element:{required:!1,type:[Object],default:null},object:{required:!1,type:[Object],default:null},initial:{required:!1,type:[Number],default:1},min:{required:!1,type:[Number],default:-1},max:{required:!1,type:[Number],default:-1},addText:{required:!1,type:[String],default:null,"@default":"locale.elements.list.add"},sort:{required:!1,type:[Boolean],default:!1},controls:{required:!1,type:[Object],default:()=>({add:!0,remove:!0,sort:!0})},storeOrder:{required:!1,type:[String],default:null},order:{required:!1,type:[String],default:null},orderBy:{required:!1,type:[String],default:null}},setup(e,t){var r=B({},t);return r.features=[ht,ht,ct,vt,Tt,Pt,At,Xu,O7,Wc,Wb,Hb,nt,Jy,ar,Lr,Ct,Jt,Ki,Cc,ls,kj,F7,ef,xt,$t,bt,Dt,Ot,vb,Vb,Zt,lb,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},k7=function(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{provider:i,extendOptions:u}=Q(t),l=a.form$,s=a.value,o=a.clear,f=a.input,d=()=>n.input?n.input.value:f.value,c=R(null),v=R({}),p=h(()=>i.value||l.value.$vueform.config.locationProvider),m=h(()=>{var _={google:{fields:["geometry","formatted_address","address_components"]},algolia:{type:"address",appId:l.value.$vueform.config.services.algolia.app_id,apiKey:l.value.$vueform.config.services.algolia.api_key,templates:n.templates||{}}};return _[p.value]}),g=h(()=>Object.assign({},m.value,u.value||{})),A=(_,C)=>{if(n.handleAddressChange){n.handleAddressChange(_,C);return}v.value=C,s.value=_},y=()=>{d().value.length?d().value=s.value.formatted_address:o()},b=()=>{c.value&&c.value.destroy(),c.value=new l.value.$vueform.services.location[p.value],c.value.init(d(),A,g.value)};return Se([p,g],()=>{b()},{deep:!0,immediate:!1}),Vt(()=>{b()}),{locationService:c,location:v,defaultOptions:m,providerOptions:g,handleAddressChange:A,handleLocationBlur:y,initLocationService:b}},Kb={name:"LocationElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"location",private:!0},default:{required:!1,type:[Object],default:()=>({country:null,country_code:null,state:null,state_code:null,city:null,zip:null,address:null,formatted_address:null,lat:null,lng:null})},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},attrs:{required:!1,type:[Object],default:()=>({})},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},provider:{required:!1,type:[String],default:"google"},displayKey:{required:!1,type:[String],default:"formatted_address"},extendOptions:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,Ij,At,Va,nt,Wt,ar,on,Ji,Lr,dr,Gj,Bt,Ca,Fr,k7,Ct,Jt,$t,bt,Dt,xt,Ot,yi,Zt,Uj,Ft,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Oj(e,r))}},B7=function(t,r,a){var{rows:n,cols:i,inputType:u,minWidth:l,addText:s,hideRows:o,items:f,maxWidth:d,rowWrap:c,templateColumns:v,hideCols:p,colWrap:m,gap:g,canRemove:A,canAdd:y,min:b,max:_,presets:C,name:T}=Q(t),{el$:S,form$:D,path:x,hasDynamicRows:F,resolvedRows:k,resolvedColumns:U,rowsCount:Y,value:H,genericName:N,isDisabled:I,isReadonly:j,defaultValue:M}=a;ut("config$");var K=R(null),Z=h(()=>F.value&&y.value&&(_.value===-1||_.value>Object.keys(H.value).length)),W=h(()=>F.value&&A.value&&(b.value===-1||b.value<Object.keys(H.value).length)),ee=h(()=>D.value.$vueform.sanitize(s.value||D.value.translations.vueform.elements.list.add)),se=h(()=>F.value?!1:!o.value),Me=h(()=>!p.value),z=h(()=>{var te=v.value;if(typeof v.value=="function"&&(te=v.value(S.value)),!te){te=[],se.value&&te.push("minmax(min-content, auto)");var J=re(l.value,"min-content"),pe=re(d.value,"1fr");S.value.resolvedColumns.filter(le=>le.available.value).forEach((le,_e)=>{var Te=re(le.minWidth,J),nr=re(le.maxWidth,pe);te.push("minmax(".concat(Te,", ").concat(nr,")"))}),W.value&&te.push("minmax(max-content, max-content)"),te=te.join(" ")}return{"grid-template-columns":te,gap:g.value!==0?typeof g.value=="number"?"".concat(g.value,"px"):g.value:void 0}}),G=h(()=>{var te=[];return k.value.forEach((J,pe)=>{var le=[];U.value.forEach((_e,Te)=>{le.push(ke(J,_e,pe,Te))}),te.push(le)}),te}),X=h(()=>U.value.map((te,J)=>ke({},te,0,J)).reduce((te,J)=>[...te,J.type],[])),re=(te,J)=>typeof te=="number"?"".concat(te,"px"):te!==void 0?te:J,Ne=te=>{var J=te.inputType||u.value,pe=typeof J=="string"?J:J.type;return"".concat(ai(Ui(pe)),"Element")},ge=(te,J)=>"".concat(x.value.replace(/\./g,"__"),"_").concat(te,"_").concat(J),ke=(te,J,pe,le)=>{var _e,Te,nr,jr,hr=oe(J),Ue={fieldName:"".concat(N.value," / ").concat(F.value?"#".concat(te.label+1):te.label," / ").concat(J.label),displayErrors:!1,disabled:I.value,readonly:j.value,presets:C.value};switch((te.conditions||J.conditions)&&(Ue.conditions=ce(te,J)),hr){case"radio":Ue.radioValue=!0,Ue.radioName=Ue.name,Ue.standalone=!0;break;case"checkbox":case"toggle":Ue.standalone=!0;break;case"textarea":Ue.rows=1;break;case"select":case"checkboxgroup":case"radiogroup":Ue.items=f.value;break;case"tags":case"multiselect":Ue.items=f.value,Ue.closeOnSelect=!1,Ue.appendToBody=!0,Ue.search=!0;break;default:Ue=B(B({},Ue),Ie(J));var ir=(J==null||(_e=J.inputType)===null||_e===void 0?void 0:_e.presets)||((Te=u.value)===null||Te===void 0?void 0:Te.presets)||[];ir.length&&Ue.presets.push(...ir),Ue.items&&!((nr=Ue.items)!==null&&nr!==void 0&&nr.length)&&(Ue.items=f.value),["radio","checkbox","toggle"].includes(Ue.type)&&(Ue.standalone=!0),["select","multiselect","tags"].includes(Ue.type)&&(Ue.appendToBody=!0),["multiselect","tags"].includes(Ue.type)&&(Ue.closeOnSelect=!1)}return f.value.length&&!Ue.items&&(Ue.items=f.value),(jr=J.items)!==null&&jr!==void 0&&jr.length&&!Ue.items&&(Ue.items=J.items),Ue.name=ge(pe,le),Ue},je=te=>{var J;if(te){var pe=((J=U.value)===null||J===void 0?void 0:J[te-1])||{},le=pe?.minWidth||l.value||0,_e=pe?.maxWidth||d.value||0,Te={};return le&&(Te.minWidth="".concat(le,"px")),_e&&(Te.maxWidth="".concat(_e,"px")),Te}},oe=te=>te.inputType||u.value,be=te=>{var J;if(te.inputType){var pe;return((pe=te.inputType)===null||pe===void 0?void 0:pe.type)||te.inputType}return((J=u.value)===null||J===void 0?void 0:J.type)||u.value},Ie=te=>{var J=oe(te);return typeof J=="object"?J:{}},ce=(te,J)=>[...te.conditions||[],...J.conditions||[]];return Se([u,X],(te,J)=>{nn(te[0],J[0])&&nn(te[1],J[1])||(H.value=Ze(M.value))},{flush:"pre"}),{grid:K,resolveComponentType:Ne,resolveComponentProps:ke,resolveComponentName:ge,getColStyle:je,resolveColInputType:oe,resolveColConditions:ce,addLabel:ee,gridStyle:z,rowsVisible:se,colsVisible:Me,resolveColType:be,allowAdd:Z,allowRemove:W,cells:G,inputTypes:X}},P7=function(t,r,a){var{rows:n,cols:i,inputType:u}=Q(t),{form$:l,el$:s,path:o}=a,f=ut("config$"),d=R({}),c=R(typeof n.value=="number"?n.value:null),v=h(()=>{var y,b=((y=u.value)===null||y===void 0?void 0:y.type)||u.value,_=["radio"],C=["checkbox","toggle"];return g.value.every(T=>{var S;return _.includes(((S=T.inputType)===null||S===void 0?void 0:S.type)||T.inputType||b)})?"assoc":g.value.every(T=>{var S;return C.includes(((S=T.inputType)===null||S===void 0?void 0:S.type)||T.inputType||b)})?"array":"object"}),p=h(()=>typeof n.value=="number"?c.value===null?1:c.value:n.value),m=h(()=>{var y=p.value;return typeof y=="number"&&(y=[...Array(y)].map((b,_)=>({value:_,label:_}))),y&&typeof y=="object"&&!Array.isArray(y)&&(y=Object.keys(y).map(b=>({value:[b],label:y[b]}))),y.map(b=>typeof b=="string"||typeof b=="number"?{value:b,label:b}:b).map(b=>B(B({},b),{},{label:l.value.$vueform.sanitize(jt(b.label,f.value,l.value))})).map(b=>B(B({},b),{},{available:h(()=>!b.conditions||!b.conditions.some(_=>!l.value.$vueform.services.condition.check(_,o.value,l.value,s.value)))}))}),g=h(()=>{var y=i.value;return i.value&&typeof i.value=="object"&&!Array.isArray(i.value)&&(y=Object.keys(i.value).map(b=>({value:[b],label:i.value[b]}))),y.map(b=>typeof b=="string"||typeof b=="number"?{value:b,label:b}:b).map(b=>B(B({},b),{},{label:l.value.$vueform.sanitize(jt(b.label,f.value,l.value))})).map(b=>B(B({},b),{},{available:h(()=>!b.conditions||!b.conditions.some(_=>!l.value.$vueform.services.condition.check(_,o.value,l.value,s.value)))}))}),A=h(()=>typeof n.value=="number");return Se(n,(y,b)=>{typeof y!="number"?c.value=null:c.value=y},{flush:"pre"}),{hasDynamicRows:A,computedRows:p,resolvedRows:m,resolvedColumns:g,rowsCount:c,dataType:v,cells$:d}},Zb={name:"MatrixElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","add","remove","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"object",private:!0},default:{required:!1,type:[Object],default:()=>({})},id:{required:!1,type:[String],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},inputType:{required:!1,type:[String,Object],default:"radio"},items:{required:!1,type:[Array,Object,String,Function],default:()=>[]},cols:{required:!1,type:[Array,Object],default:()=>[]},colWrap:{required:!1,type:[Boolean],default:!0},hideCols:{required:!1,type:[Boolean],default:!1},stickyCols:{required:!1,type:[Boolean],default:!1},rows:{required:!1,type:[Array,Object,Number],default:1},rowWrap:{required:!1,type:[Boolean],default:!0},hideRows:{required:!1,type:[Boolean],default:!1},stickyRows:{required:!1,type:[Boolean],default:!1},min:{required:!1,type:[Number,String],default:-1},max:{required:!1,type:[Number,String],default:-1},canAdd:{required:!1,type:[Boolean],default:!0},canRemove:{required:!1,type:[Boolean],default:!0},addText:{required:!1,type:[String],default:null,"@default":"locale.elements.list.add"},minWidth:{required:!1,type:[Number,String],default:"min-content"},maxWidth:{required:!1,type:[Number,String],default:"1fr"},gap:{required:!1,type:[String,Number],default:16},padding:{required:!1,type:[Boolean],default:!1},scrollable:{required:!1,type:[Boolean],default:!0},templateColumns:{required:!1,type:[String,Function],default:null}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Pt,At,nt,Ej,P7,Qo,Jj,Mj,Ct,Jt,ar,on,B7,Hc,Ki,Cy,Kj,$t,bt,Dt,xt,Ot,O5,Zt,qc,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},q7=function(t,r,a){var n=a.isDisabled,i=a.add,u=a.input,l=a.isObject,s=a.storeFileName,o=a.children$,f=h(()=>rt(o.value,{available:!0,preparing:!0})),d=h(()=>rt(o.value,{uploading:!0})),c=p=>{!p.target||!p.target.files||p.target.files.length==0||n.value||(P(p.target.files,m=>{i(l.value?{[s.value]:m}:m)}),u.value.value="")},v=()=>{n.value||u.value.click()};return{preparing:f,hasUploading:d,handleChange:c,handleClick:v}},Xb={name:"MultifileElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","add","remove","sort","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"multifile",private:!0},default:{required:!1,type:[Array],default:()=>[]},initial:{required:!1,type:[Number],default:0,private:!0},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},onAdd:{required:!1,type:[Function],default:null,private:!0},onRemove:{required:!1,type:[Function],default:null,private:!0},onSort:{required:!1,type:[Function],default:null,private:!0},view:{type:[String],required:!1,default:"file"},drop:{required:!1,type:[Boolean],default:!1},sort:{required:!1,type:[Boolean],default:!1},controls:{required:!1,type:[Object],default:()=>({add:!0,remove:!0,sort:!0})},object:{required:!1,type:[Boolean],default:null},storeFile:{required:!1,type:[String],default:"file"},fields:{required:!1,type:[Object],default:()=>({})},storeOrder:{required:!1,type:[String],default:null},order:{required:!1,type:[String],default:null},orderBy:{required:!1,type:[String],default:null},file:{required:!1,type:[Object],default:()=>({})},accept:{required:!1,type:[String,Array],default:null},clickable:{required:!1,type:[Boolean],default:!0},url:{required:!1,type:[String,Boolean],default:"/"},previewUrl:{required:!1,type:[String],default:void 0},auto:{required:!1,type:[Boolean],default:!0},uploadTempEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.uploadTempFile"},removeTempEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.removeTempFile"},removeEndpoint:{required:!1,type:[Object,String,Function,Boolean,Promise],default:void 0,"@default":"config.endpoints.removeFile"},params:{required:!1,type:[Object],default:()=>({})},softRemove:{required:!1,type:[Boolean],default:!1}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Pt,ar,Xu,Wc,Or,Wb,T7,At,nt,Jy,Lr,Ct,Jt,ls,dr,ef,Ki,Bt,xt,$t,bt,Ot,$7,x5,q7,M7,J5,Dt,Vb,Zt,Yj,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},Jc=function(t,r,a){var n=a.fire,i=a.el$,u=p=>{n("select",p,i.value)},l=p=>{n("deselect",p,i.value)},s=p=>{n("search-change",p,i.value)},o=()=>{n("open",i.value)},f=()=>{n("close",i.value)},d=()=>{n("clear",i.value)},c=p=>{n("paste",p,i.value)},v=p=>{};return{handleSelect:u,handleDeselect:l,handleSearchChange:s,handleOpen:o,handleClose:f,handleClear:d,handlePaste:c,handleTag:v}};function N7(e,t){t.sort();for(var r=t.length-1;r>=0;r--)e.splice(t[r],1);return e}var Jb=function(t,r,a){var n=a.value,i=s=>n.value.indexOf(s)!==-1,u=s=>{Oe(s)||(s=[s]);var o=en(n.value);P(s,f=>{i(Ar(f))||o.push(f)}),n.value=o},l=s=>{Oe(s)||(s=[s]);var o=en(n.value),f=[];P(s,d=>{var c=n.value.indexOf(d);c===-1||f.indexOf(c)!==-1||f.push(c)}),n.value=N7(o,f)};return{select:u,deselect:l}},Qb={name:"MultiselectElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","select","deselect","search-change","open","close","clear","paste","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"multiselect",private:!0},default:{required:!1,type:[Array],default:()=>[]},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null,native:!1},attrs:{required:!1,type:[Object],default:()=>({})},onSelect:{required:!1,type:[Function],default:null,private:!0},onDeselect:{required:!1,type:[Function],default:null,private:!0},onSearchChange:{required:!1,type:[Function],default:null,private:!0},onOpen:{required:!1,type:[Function],default:null,private:!0},onClose:{required:!1,type:[Function],default:null,private:!0},onClear:{required:!1,type:[Function],default:null,private:!0},onPaste:{required:!1,type:[Function],default:null,private:!0},native:{required:!1,type:[Boolean],default:!0},items:{required:!1,type:[Object,Array,Function,String],localized:!0,default:()=>({})},labelProp:{type:[String],required:!1,default:"label",native:!1},valueProp:{type:[String],required:!1,default:"value",native:!1},dataKey:{type:[String],required:!1,default:void 0},searchParam:{type:[String],required:!1,default:"query"},search:{required:!1,type:[Boolean],default:!1,native:!1},trackBy:{type:[String,Array],required:!1,default:"label",native:!1},strict:{type:[Boolean],required:!1,default:!0,native:!1},multipleLabel:{type:[Function],required:!1,native:!1},multipleLabelSingle:{type:[String],required:!1,native:!1,"@default":"locale.vueform.multiselect.multipleLabelOne"},multipleLabelMultiple:{type:[String],required:!1,native:!1,"@default":"locale.vueform.multiselect.multipleLabelMore"},create:{required:!1,type:[Boolean],default:!1,native:!1},appendNewOption:{type:[Boolean],required:!1,default:!0,native:!1},addOptionOn:{type:[Array],required:!1,default:()=>["enter"],native:!1},allowAbsent:{type:[Boolean],required:!1,default:!1,native:!1},object:{type:[Boolean],required:!1,default:!1,native:!1},limit:{type:[Number],required:!1,default:-1,native:!1},max:{type:[Number],required:!1,default:-1,native:!1},groups:{type:[Boolean],required:!1,default:!1,native:!1},groupLabel:{type:[String],required:!1,default:"label",native:!1},groupOptions:{type:[String],required:!1,default:"items",native:!1},groupHideEmpty:{type:[Boolean],required:!1,default:!1,native:!1},groupSelect:{type:[Boolean],required:!1,default:!0,native:!1},openDirection:{type:[String],required:!1,default:"bottom",native:!1},appendToBody:{type:[Boolean],required:!1,default:!1,native:!1},appendTo:{type:[String],required:!1,default:void 0,native:!1},canClear:{type:[Boolean],required:!1,default:!0,native:!1},clearOnSelect:{type:[Boolean],required:!1,default:!1,native:!1},closeOnSelect:{type:[Boolean],required:!1,default:!0,native:!1},closeOnDeselect:{type:[Boolean],required:!1,default:!1,native:!1},clearOnRefetch:{type:[Boolean],required:!1,default:!0},delay:{type:[Number],required:!1,default:-1,native:!1},minChars:{type:[Number],required:!1,default:0,native:!1},resolveOnLoad:{type:[Boolean],required:!1,default:!0,native:!1},filterResults:{type:[Boolean],required:!1,default:!0,native:!1},clearOnSearch:{type:[Boolean],required:!1,default:!1,native:!1},hideSelected:{type:[Boolean],required:!1,default:!0,native:!1},caret:{type:[Boolean],required:!1,default:!0,native:!1},loading:{type:[Boolean],required:!1,default:!1,native:!1},noOptionsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noOptions",localized:!0,native:!1},noResultsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noResults",localized:!0,native:!1},autocomplete:{type:[String],required:!1,native:!1},inputType:{type:[String],required:!1,default:"text",native:!1},extendOptions:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Tj,Pt,Xu,At,Va,nt,xj,ar,Lr,Ir,Zi,Y5,dr,N5,Bt,ef,T5,Ct,Jt,$t,bt,Dt,xt,Ot,Jc,Jb,G5,Zt,Tr,Ft,pa],r.slots=["option","multiple-label","placeholder","group-label","before-list","after-list","no-results","no-options","caret","spinner","clear","label","info","required","description","before","between","after"],B({},Xt(e,r))}},e1={name:"ObjectElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","remove","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"object",private:!0},default:{required:!1,type:[Object],default:()=>({})},id:{required:!1,type:[String],default:null},schema:{required:!1,type:[Object],default:()=>({})},embed:{required:!1,type:[Boolean],default:!1},onRemove:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Pt,At,Qo,nt,wj,Xj,Bj,Ct,Hc,Ki,Cy,ob,$t,bt,Dt,xt,Ot,Lc,Zt,qc,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},eu=function(t,r,a){var n=a.fire,i=a.el$,u=()=>{n("blur",i.value)},l=()=>{n("focus",i.value)};return{handleBlur:u,handleFocus:l}};const ye="{+}0 (000) 000-0000";var R7=[{c:"AF",n:"+93",p:0,m:[["93","{+}00 00 000 0000"]]},{c:"AL",n:"+355",p:1,m:[["3554","{+}000 0 000 0000"],["355","{+}000 00 000 0000"]]},{c:"DZ",n:"+213",p:2,m:[["2131","{+}000 0 000 0000"],["2132","{+}000 0 000 0000"],["2133","{+}000 0 000 0000"],["2134","{+}000 0 000 0000"],["213","{+}000 00 000 0000"]]},{c:"AS",n:"+1",p:3,m:[["1684",ye]]},{c:"AD",n:"+376",p:4,m:[["376","{+}000 000 000"]]},{c:"AO",n:"+244",p:5,m:[["2449","{+}000 000 000 0000"],["244","{+}000 000 000 000"]]},{c:"AI",n:"+1",p:6,m:[["1264",ye]]},{c:"AG",n:"+1",p:7,m:[["1268",ye]]},{c:"AR",n:"+54",p:8,m:[["549","{+}00 0 000 000 0000"],["54","{+}00 000 000 0000"]]},{c:"AM",n:"+374",p:9,m:[["37493","{+}000 00 000 000"],["37494","{+}000 00 000 000"],["37498","{+}000 00 000 000"],["37477","{+}000 00 000 000"],["37491","{+}000 00 000 000"],["37496","{+}000 00 000 000"],["37499","{+}000 00 000 000"],["37455","{+}000 00 000 000"],["37495","{+}000 00 000 000"],["37441","{+}000 00 000 000"],["374","{+}000 000 000 000"]]},{c:"AW",n:"+297",p:10,m:[["297","{+}000 000 0000"]]},{c:"AC",n:"+247",p:11,m:[["247","{+}000 0000"]]},{c:"AU",n:"+61",p:12,m:[["61","{+}00 0 0000 0000"],["614","{+}00 000 000 000"]]},{c:"AT",n:"+43",p:13,m:[["43","{+}00 0000000[0000]"]]},{c:"AZ",n:"+994",p:14,m:[["9944","{+}000 00 000 000"],["9945","{+}000 00 000 000"],["9946","{+}000 00 000 000"],["9947","{+}000 00 000 000"],["994","{+}000 00 000 0000"]]},{c:"BS",n:"+1",p:15,m:[["1242",ye]]},{c:"BH",n:"+973",p:16,m:[["973","{+}000 0000 0000"]]},{c:"BD",n:"+880",p:17,m:[["8801","{+}000 00 0000 0000"],["880","{+}000 00 0000 0000[00]"]]},{c:"BB",n:"+1",p:18,m:[["1246",ye]]},{c:"BY",n:"+375",p:19,m:[["375","{+}000 000000000[0]"]]},{c:"BE",n:"+32",p:20,m:[["324","{+}00 000 00 00 00"],["32","{+}00 0 000 00 00"]]},{c:"BZ",n:"+501",p:21,m:[["501","{+}000 000-0000"]]},{c:"BJ",n:"+229",p:22,m:[["229","{+}000 00 00 00 00"]]},{c:"BM",n:"+1",p:23,m:[["1441",ye]]},{c:"BT",n:"+975",p:24,m:[["97517","{+}000 00 000000"],["975","{+}000 0 00000[0]"]]},{c:"BO",n:"+591",p:25,m:[["5916","{+}000 000 000 0000"],["5917","{+}000 000 000 0000"],["591","{+}000 0 000 0000[0]"]]},{c:"BA",n:"+387",p:26,m:[["3876","{+}000 00 000 000"],["387","{+}000 00 000 000[0]"]]},{c:"BW",n:"+267",p:27,m:[["2677","{+}000 00 000 0000"],["267","{+}000 000 000000"]]},{c:"BR",n:"+55",p:28,m:[["55","{+}00 00 0000 0000[0]"]]},{c:"IO",n:"+246",p:29,m:[["246","{+}000 0000"]]},{c:"VG",n:"+1",p:30,m:[["1284",ye]]},{c:"BN",n:"+673",p:31,m:[["673","{+}000 000 0000"]]},{c:"BG",n:"+359",p:32,m:[["3598","{+}000 00 000 0000"],["3599","{+}000 00 000 0000"],["359","{+}000 0000000[000]"]]},{c:"BF",n:"+226",p:33,m:[["226","{+}000 00 00 00 00"]]},{c:"BI",n:"+257",p:34,m:[["257","{+}000 00 00 00 00"]]},{c:"KH",n:"+855",p:35,m:[["855","{+}000 000000000"]]},{c:"CM",n:"+237",p:36,m:[["237","{+}000 0000 0000"]]},{c:"CA",n:"+1",p:37,m:[["1204",ye],["1226",ye],["1236",ye],["1249",ye],["1250",ye],["1263",ye],["1289",ye],["1306",ye],["1343",ye],["1354",ye],["1365",ye],["1367",ye],["1368",ye],["1403",ye],["1416",ye],["1418",ye],["1431",ye],["1437",ye],["1438",ye],["1450",ye],["1468",ye],["1474",ye],["1506",ye],["1514",ye],["1519",ye],["1548",ye],["1579",ye],["1581",ye],["1584",ye],["1587",ye],["1604",ye],["1613",ye],["1639",ye],["1647",ye],["1672",ye],["1683",ye],["1705",ye],["1709",ye],["1742",ye],["1753",ye],["1778",ye],["1780",ye],["1782",ye],["1807",ye],["1819",ye],["1825",ye],["1867",ye],["1873",ye],["1902",ye],["1905",ye]]},{c:"CV",n:"+238",p:38,m:[["238","{+}000 0000 000"]]},{c:"BQ",n:"+599",p:39,m:[["599","{+}000 000 0000"]]},{c:"KY",n:"+1",p:40,m:[["1345",ye]]},{c:"CF",n:"+236",p:41,m:[["236","{+}000 00 00 00 00"]]},{c:"TD",n:"+235",p:42,m:[["235","{+}000 00 00 00 00"]]},{c:"CL",n:"+56",p:43,m:[["562","{+}00 0 0000 0000"],["569","{+}00 0 0000 0000"],["56","{+}00 00 0000 000[0]"]]},{c:"CN",n:"+86",p:44,m:[["8613","{+}00 000 0000 0000"],["8615","{+}00 000 0000 0000"],["8618","{+}00 000 0000 0000"],["86","{+}00 00 0000 0000"]]},{c:"CO",n:"+57",p:45,m:[["573","{+}00 000 000 0000"],["57","{+}00 0 000 0000"]]},{c:"KM",n:"+269",p:46,m:[["269","{+}000 000 0000"]]},{c:"CG",n:"+242",p:47,m:[["242","{+}000 00 000 000[0]"]]},{c:"CD",n:"+243",p:48,m:[["243","{+}000 00 000 000[0]"]]},{c:"CK",n:"+682",p:49,m:[["682","{+}000 00 000"]]},{c:"CR",n:"+506",p:50,m:[["506","{+}000 0000 0000"]]},{c:"CI",n:"+225",p:51,m:[["225","{+}000 00 00 00 00"]]},{c:"HR",n:"+385",p:52,m:[["385","{+}000 00 000 0000"]]},{c:"CU",n:"+53",p:53,m:[["535","{+}00 0 000 0000"],["53","{+}00 000000[0000]"]]},{c:"CW",n:"+599",p:54,m:[["5999","{+}000 0 000 0000"]]},{c:"CY",n:"+357",p:55,m:[["357","{+}000 00 000 000"]]},{c:"CZ",n:"+420",p:56,m:[["4206","{+}000 000 000 000"],["4207","{+}000 000 000 000"],["420","{+}000 00 000 0000"]]},{c:"DK",n:"+45",p:57,m:[["45","{+}00 00 00 00 00"]]},{c:"DJ",n:"+253",p:58,m:[["253","{+}000 00 00 00 00"]]},{c:"DM",n:"+1",p:59,m:[["1767",ye]]},{c:"DO",n:"+1",p:60,m:[["1809",ye],["1829",ye],["1849",ye]]},{c:"EC",n:"+593",p:61,m:[["593","{+}000 00 0000 000"]]},{c:"EG",n:"+20",p:62,m:[["2010","{+}00 000 0000 000"],["2011","{+}00 000 0000 000"],["2012","{+}00 000 0000 000"],["2014","{+}00 000 0000 000"],["2016","{+}00 000 0000 000"],["202","{+}00 0 0000 0000"],["203","{+}00 0 0000 0000"],["20","{+}00 000 0000 000"]]},{c:"SV",n:"+503",p:63,m:[["503","{+}000 0000 0000"]]},{c:"GQ",n:"+240",p:64,m:[["240","{+}000 00 000 0000"]]},{c:"ER",n:"+291",p:65,m:[["291","{+}000 0 000 000"]]},{c:"EE",n:"+372",p:66,m:[["372","{+}000 0000 000[0]"]]},{c:"SZ",n:"+268",p:67,m:[["268","{+}000 00 00 0000"]]},{c:"ET",n:"+251",p:68,m:[["2519","{+}000 000 000 000"],["251","{+}000 00 000 0000"]]},{c:"FK",n:"+500",p:69,m:[["500","{+}000 00000"]]},{c:"FO",n:"+298",p:70,m:[["298","{+}000 000 000"]]},{c:"FJ",n:"+679",p:71,m:[["679","{+}000 000 0000"]]},{c:"FI",n:"+358",p:72,m:[["358","{+}000 0000[0000000]"]]},{c:"FR",n:"+33",p:73,m:[["33","{+}00 000 000 000"]]},{c:"GF",n:"+594",p:74,m:[["594","{+}000 000 00 00 00"]]},{c:"PF",n:"+689",p:75,m:[["689","{+}000 00 00 00 00"]]},{c:"GA",n:"+241",p:76,m:[["24106","{+}000 000 00 00 00"],["24107","{+}000 000 00 00 00"],["241","{+}000 00 00 00 00"]]},{c:"GM",n:"+220",p:77,m:[["220","{+}000 000 0000"]]},{c:"GE",n:"+995",p:78,m:[["99532","{+}000 00 000 0000"],["995","{+}000 000 000 000[0]"]]},{c:"DE",n:"+49",p:79,m:[["4930","{+}00 00 0000 0000"],["4989","{+}00 00 0000 0000"],["49","{+}00 000 0000 000[0]"]]},{c:"GH",n:"+233",p:80,m:[["233","{+}000 00 000 0000"]]},{c:"GI",n:"+350",p:81,m:[["350","{+}000 0000 0000"]]},{c:"GR",n:"+30",p:82,m:[["3069","{+}00 000 0000 000"],["30","{+}00 000 0000 000[0]"]]},{c:"GL",n:"+299",p:83,m:[["299","{+}000 00 00 00"]]},{c:"GD",n:"+1",p:84,m:[["1473",ye]]},{c:"GP",n:"+590",p:85,m:[["590","{+}000 000 0000"]]},{c:"GU",n:"+1",p:86,m:[["1671",ye]]},{c:"GT",n:"+502",p:87,m:[["502","{+}000 000 00000"]]},{c:"GN",n:"+224",p:88,m:[["224","{+}000 0000 000[0]"]]},{c:"GW",n:"+245",p:89,m:[["245","{+}000 000 0000"]]},{c:"GY",n:"+592",p:90,m:[["592","{+}000 000 0000"]]},{c:"HT",n:"+509",p:91,m:[["509","{+}000 00 00 0000"]]},{c:"HN",n:"+504",p:92,m:[["504","{+}000 0000 0000"]]},{c:"HK",n:"+852",p:93,m:[["852","{+}000 0000 0000"]]},{c:"HU",n:"+36",p:94,m:[["361","{+}00 0 000 0000"],["3620","{+}00 00 000 0000"],["3630","{+}00 00 000 0000"],["3670","{+}00 00 000 0000"],["36","{+}00 00 000 000[0]"]]},{c:"IS",n:"+354",p:95,m:[["354","{+}000 000 0000"]]},{c:"IN",n:"+91",p:96,m:[["916","{+}00 000 000 0000"],["917","{+}00 000 000 0000"],["918","{+}00 000 000 0000"],["919","{+}00 000 000 0000"],["91","{+}00 00 0000 0000"]]},{c:"ID",n:"+62",p:97,m:[["62361","{+}00 000 000 000"],["6221","{+}00 00 0000 0000"],["628","{+}00 000 0000 0000"],["62","{+}00 00000[000000]"]]},{c:"IR",n:"+98",p:98,m:[["98921","{+}00 00 000 0000"],["98951","{+}00 00 000 0000"],["989","{+}00 000 000 0000"],["98","{+}00 00000000[00]"]]},{c:"IQ",n:"+964",p:99,m:[["9641","{+}000 0 000 0000[0]"],["9647","{+}000 000 000 0000"],["964","{+}000 000000[0000]"]]},{c:"IE",n:"+353",p:100,m:[["3531","{+}000 0 000 0000"],["353","{+}000 00 000 0000"]]},{c:"IL",n:"+972",p:101,m:[["9725","{+}000 00 000 0000"],["9727","{+}000 00 000 0000"],["972","{+}000 0 000 0000"]]},{c:"IT",n:"+39",p:102,m:[["393","{+}00 000 000 0000"],["39","{+}00 00 0000 0000"]]},{c:"JM",n:"+1",p:103,m:[["1876",ye]]},{c:"JP",n:"+81",p:104,m:[["8170","{+}00 00 0000 0000"],["8180","{+}00 00 0000 0000"],["8190","{+}00 00 0000 0000"],["81","{+}00 0 0000 0000"]]},{c:"JO",n:"+962",p:105,m:[["9627","{+}000 000 000 000"],["962","{+}000 0 000 0000"]]},{c:"KZ",n:"+7",p:106,m:[["77","{+}0 000 000 0000"]]},{c:"KE",n:"+254",p:107,m:[["2541","{+}000 000 000 000"],["2547","{+}000 000 000 000"],["254","{+}000 00 000 0000"]]},{c:"KI",n:"+686",p:108,m:[["686","{+}000 00 000"]]},{c:"XK",n:"+383",p:109,m:[["383","{+}000 00 000 000"]]},{c:"KW",n:"+965",p:110,m:[["9655","{+}000 000 00000"],["9656","{+}000 000 00000"],["9659","{+}000 000 00000"],["965","{+}000 0000 0000"]]},{c:"KG",n:"+996",p:111,m:[["996","{+}000 000 000 000"]]},{c:"LA",n:"+856",p:112,m:[["85620","{+}000 00 0000 0000"],["85630","{+}000 00 0000 0000"],["856","{+}000 00 000 000"]]},{c:"LV",n:"+371",p:113,m:[["3715","{+}000 0 00 00000"],["3716","{+}000 0 00 00000"],["3717","{+}000 0 00 00000"],["371","{+}000 000 00 000"]]},{c:"LB",n:"+961",p:114,m:[["96170","{+}000 00 000 000"],["96171","{+}000 00 000 000"],["96180","{+}000 00 000 000"],["96181","{+}000 00 000 000"],["96190","{+}000 00 000 000"],["96191","{+}000 00 000 000"],["961","{+}000 0 000 000[0]"]]},{c:"LS",n:"+266",p:115,m:[["266","{+}000 000 000 000"]]},{c:"LR",n:"+231",p:116,m:[["231","{+}000 000000[0000]"]]},{c:"LY",n:"+218",p:117,m:[["218","{+}000 00 000 0000"]]},{c:"LI",n:"+423",p:118,m:[["42323","{+}000 00 00000"],["42375","{+}000 00 00000"],["423","{+}000 000 0000"]]},{c:"LT",n:"+370",p:119,m:[["370","{+}000 000 000 000"]]},{c:"LU",n:"+352",p:120,m:[["352","{+}000 000 000 000"]]},{c:"MO",n:"+853",p:121,m:[["8536","{+}000 000 0000[0]"],["853","{+}000 0000 000[0]"]]},{c:"MG",n:"+261",p:122,m:[["261","{+}000 00 00 00000"]]},{c:"MW",n:"+265",p:123,m:[["265","{+}000 000 000 000"]]},{c:"MY",n:"+60",p:124,m:[["60","{+}00 0000000[000]"]]},{c:"MV",n:"+960",p:125,m:[["960","{+}000 000 0000"]]},{c:"ML",n:"+223",p:126,m:[["223","{+}000 00 00 0000"]]},{c:"MT",n:"+356",p:127,m:[["356","{+}000 0000 000[0]"]]},{c:"MH",n:"+692",p:128,m:[["692","{+}000 000 0000"]]},{c:"MQ",n:"+596",p:129,m:[["596","{+}000 000 000 000"]]},{c:"MR",n:"+222",p:130,m:[["222","{+}000 00 000 000"]]},{c:"MU",n:"+230",p:131,m:[["230","{+}000 000 0000"]]},{c:"MX",n:"+52",p:132,m:[["52","{+}00 000 000 0000"]]},{c:"FM",n:"+691",p:133,m:[["691","{+}000 000 0000"]]},{c:"MD",n:"+373",p:134,m:[["373","{+}000 000 00 000"]]},{c:"MC",n:"+377",p:135,m:[["377","{+}000 00 00 00 00"]]},{c:"MN",n:"+976",p:136,m:[["976","{+}000 00 00 0000"]]},{c:"ME",n:"+382",p:137,m:[["382","{+}000 00 000 000"]]},{c:"MS",n:"+1",p:138,m:[["1664",ye]]},{c:"MA",n:"+212",p:139,m:[["212","{+}000 00 000 0000[0]"]]},{c:"MZ",n:"+258",p:140,m:[["258","{+}000 00 000 000"]]},{c:"MM",n:"+95",p:141,m:[["95","{+}00 0000000[0000]"]]},{c:"NA",n:"+264",p:142,m:[["264","{+}000 000000[000000]"]]},{c:"NR",n:"+674",p:143,m:[["674","{+}000 000000[000000]"]]},{c:"NP",n:"+977",p:144,m:[["977","{+}000 000000[000000]"]]},{c:"NL",n:"+31",p:145,m:[["31","{+}00 00 000 0000"]]},{c:"NC",n:"+687",p:146,m:[["687","{+}000 000000[000000]"]]},{c:"NZ",n:"+64",p:147,m:[["642","{+}00 000 000 000"],["64","{+}00 0 000 0000"]]},{c:"NI",n:"+505",p:148,m:[["505","{+}000 000000[000000]"]]},{c:"NE",n:"+227",p:149,m:[["227","{+}000 00000000[000]"]]},{c:"NG",n:"+234",p:150,m:[["234","{+}000 000000[000000]"]]},{c:"NU",n:"+683",p:151,m:[["683","{+}000 000000[000000]"]]},{c:"NF",n:"+672",p:152,m:[["672","{+}000 000000[000000]"]]},{c:"KP",n:"+850",p:153,m:[["850","{+}000 000000[0000000]"]]},{c:"MK",n:"+389",p:154,m:[["389","{+}000 00 000 000"]]},{c:"MP",n:"+1",p:155,m:[["1670",ye]]},{c:"NO",n:"+47",p:156,m:[["47","{+}00 00 00 00 00"]]},{c:"OM",n:"+968",p:157,m:[["968","{+}000 0000 0000"]]},{c:"PK",n:"+92",p:158,m:[["923","{+}00 000 0000 000"],["92","{+}00 00 0000 0000"]]},{c:"PW",n:"+680",p:159,m:[["680","{+}000 000000[000000]"]]},{c:"PS",n:"+970",p:160,m:[["970","{+}000 000000[000000]"]]},{c:"PA",n:"+507",p:161,m:[["507","{+}000 000 0000"]]},{c:"PG",n:"+675",p:162,m:[["675","{+}000 00 000 000"]]},{c:"PY",n:"+595",p:163,m:[["595","{+}000 00 000 0000"]]},{c:"PE",n:"+51",p:164,m:[["51","{+}00 00 000 000"]]},{c:"PH",n:"+63",p:165,m:[["639","{+}00 000 000 0000"],["63","{+}00 00 000 0000"]]},{c:"PL",n:"+48",p:166,m:[["485","{+}00 000 000 000"],["48","{+}00 00 000 0000"]]},{c:"PT",n:"+351",p:167,m:[["351","{+}000 000 000 000"]]},{c:"PR",n:"+1",p:168,m:[["1787",ye],["1939",ye]]},{c:"QA",n:"+974",p:169,m:[["974","{+}000 0000 0000"]]},{c:"RE",n:"+262",p:170,m:[["262","{+}000 00000 0000"]]},{c:"RO",n:"+40",p:171,m:[["407","{+}00 000 000 000"],["40","{+}00 00 000 0000"]]},{c:"RU",n:"+7",p:172,m:[["7","{+}0 000 000 00 00"]]},{c:"RW",n:"+250",p:173,m:[["250","{+}000 00 000 000"]]},{c:"WS",n:"+685",p:174,m:[["685","{+}000 00 0000"]]},{c:"SM",n:"+378",p:175,m:[["378","{+}000 0000 000000"]]},{c:"ST",n:"+239",p:176,m:[["239","{+}000 00 00 00"]]},{c:"SA",n:"+966",p:177,m:[["96657","{+}000 000 00 0000"],["966","{+}000 00 000 0000"]]},{c:"SN",n:"+221",p:178,m:[["221","{+}000 00 000 0000"]]},{c:"RS",n:"+381",p:179,m:[["3816","{+}000 000 000 000"],["3817","{+}000 000 000 000"],["381","{+}000 00 000 0000"]]},{c:"SC",n:"+248",p:180,m:[["248","{+}000 000 0000"]]},{c:"SL",n:"+232",p:181,m:[["232","{+}000 00 000 000"]]},{c:"SG",n:"+65",p:182,m:[["65","{+}00 0000 0000"]]},{c:"SX",n:"+1",p:183,m:[["1721",ye]]},{c:"SK",n:"+421",p:184,m:[["4219","{+}000 000 000 0000"],["421","{+}000 00000000[00]"]]},{c:"SI",n:"+386",p:185,m:[["3863","{+}000 00 000 000"],["386","{+}000 0000000[00]"]]},{c:"SB",n:"+677",p:186,m:[["677","{+}000 00000"]]},{c:"SO",n:"+252",p:187,m:[["252","{+}000 0 000 000"]]},{c:"ZA",n:"+27",p:188,m:[["276","{+}00 000 000 000"],["277","{+}00 000 000 000"],["278","{+}00 000 000 000"],["27","{+}00 00 000 0000"]]},{c:"KR",n:"+82",p:189,m:[["82","{+}00 00000000[00]"]]},{c:"SS",n:"+211",p:190,m:[["211","{+}000 0000000[00]"]]},{c:"ES",n:"+34",p:191,m:[["346","{+}00 000 000 000"],["347","{+}00 000 000 000"],["34","{+}00 00 000 000"]]},{c:"LK",n:"+94",p:192,m:[["947","{+}00 000 000 0000"],["948","{+}00 000 000 0000"],["949","{+}00 000 000 0000"],["94","{+}00 00 000 0000"]]},{c:"BL",n:"+590",p:193,m:[["590","{+}000 000 0000"]]},{c:"SH",n:"+290",p:194,m:[["290","{+}000 0000"]]},{c:"KN",n:"+1",p:195,m:[["1869",ye]]},{c:"LC",n:"+1",p:196,m:[["1758",ye]]},{c:"MF",n:"+590",p:197,m:[["590","{+}000 000 0000"]]},{c:"PM",n:"+508",p:198,m:[["508","{+}000 00 00 00"]]},{c:"VC",n:"+1",p:199,m:[["1784",ye]]},{c:"SD",n:"+249",p:200,m:[["249","{+}000 00 000 0000"]]},{c:"SR",n:"+597",p:201,m:[["597","{+}000 000 000"]]},{c:"SE",n:"+46",p:202,m:[["4613","{+}00 00 00 00 00"],["4618","{+}00 00 00 00 00"],["467","{+}00 00 000 00 00"],["468","{+}00 00 000 00 00"],["46","{+}00 0000000[0000]"]]},{c:"CH",n:"+41",p:203,m:[["417","{+}00 000 000 000"],["41","{+}00 00 000 0000"]]},{c:"SY",n:"+963",p:204,m:[["9639","{+}000 000 000 000"],["963","{+}000 00 000 0000"]]},{c:"TW",n:"+886",p:205,m:[["8869","{+}000 000 000 000"],["886","{+}000 0 0000 0000"]]},{c:"TJ",n:"+992",p:206,m:[["992","{+}000 00 000 0000"]]},{c:"TZ",n:"+255",p:207,m:[["255","{+}000 00 000 0000"]]},{c:"TH",n:"+66",p:208,m:[["6653","{+}00 00 000 000"],["6676","{+}00 00 000 000"],["662","{+}00 0 000 0000"],["666","{+}00 000 000 000"],["668","{+}00 000 000 000"],["669","{+}00 000 000 000"],["66","{+}00 00 000 000"]]},{c:"TL",n:"+670",p:209,m:[["670","{+}000 000 0000"]]},{c:"TG",n:"+228",p:210,m:[["228","{+}000 00 000 000"]]},{c:"TK",n:"+690",p:211,m:[["690","{+}000 0000"]]},{c:"TO",n:"+676",p:212,m:[["676","{+}000 00 000"]]},{c:"TT",n:"+1",p:213,m:[["1868",ye]]},{c:"TN",n:"+216",p:214,m:[["216","{+}000 00 000 000"]]},{c:"TR",n:"+90",p:215,m:[["90","{+}00 000 000 0000"]]},{c:"TM",n:"+993",p:216,m:[["993","{+}000 0 000 000"]]},{c:"TC",n:"+1",p:217,m:[["1649",ye]]},{c:"TV",n:"+688",p:218,m:[["688","{+}000 00 000"]]},{c:"VI",n:"+1",p:219,m:[["1340",ye]]},{c:"UG",n:"+256",p:220,m:[["2567","{+}000 000 000 000"],["256","{+}000 00 000 000[0]"]]},{c:"UA",n:"+380",p:221,m:[["380","{+}000 00 000 0000"]]},{c:"AE",n:"+971",p:222,m:[["9715","{+}000 00 000 0000"],["971","{+}000 0 000 0000"]]},{c:"GB",n:"+44",p:223,m:[["4420","{+}00 00 0000 0000"],["447","{+}00 0000 000 000"],["44","{+}00 000 000 0000"]]},{c:"US",n:"+1",p:224,m:[["1",ye]]},{c:"UY",n:"+598",p:225,m:[["598","{+}000 0 000 00 00"]]},{c:"UZ",n:"+998",p:226,m:[["998","{+}000 00 000 0000"]]},{c:"VU",n:"+678",p:227,m:[["678","{+}000 00 0000"]]},{c:"VA",n:"+39",p:228,m:[["3906698","{+}00 00 000 00000"],["379","{+}000 00 0000 0000"]]},{c:"VE",n:"+58",p:229,m:[["58","{+}00 000 000 0000"]]},{c:"VN",n:"+84",p:230,m:[["843","{+}00 000 000 000"],["845","{+}00 000 000 000"],["847","{+}00 000 000 000"],["849","{+}00 000 000 000"],["84","{+}00 00 0000 0000"]]},{c:"WF",n:"+681",p:231,m:[["681","{+}000 00 0000"]]},{c:"YE",n:"+967",p:232,m:[["9677","{+}000 000 000 000"],["967","{+}000 0 000 000"]]},{c:"ZM",n:"+260",p:233,m:[["2609","{+}000 000 000 000"],["260","{+}000 00 000 0000"]]},{c:"ZW",n:"+263",p:234,m:[["263","{+}000 00 000 00[00]"]]}],I7=function(t,r,a){var{include:n,exclude:i,mask:u}=Q(t),{focus:l,value:s,input:o,form$:f,el$:d,classes:c}=a,v=R(null),p=R(pi({props:["option","el$"],render(){return li("div",{class:c.value.placeholder,style:{backgroundPosition:"0 -".concat(this.option.p*20+20,"px")}})}})),m=h(()=>R7.filter(D=>!n.value.length&&!i.value.length?!0:n.value.length?n.value.map(x=>x.toUpperCase()).indexOf(D.c)!==-1:i.value.map(x=>x.toUpperCase()).indexOf(D.c)===-1).map(D=>B(B({},D),{},{value:D.c,label:f.value.translations.vueform.countries[D.c],display:pi({props:["option","index","selected","pointed","el$"],render(){return li("div",{class:c.value.option(this.selected||this.pointed)},[li("div",{class:c.value.optionWrapper},[li("div",{class:c.value.flag,style:{backgroundPosition:"0 -".concat(this.option.p*20+20,"px")}}),li("div",{class:c.value.country},[this.option.label,li("span",{class:c.value.number},[this.option.n])])])])}}),valueDisplay:pi({props:["option","el$"],render(){return li("div",{class:c.value.flag,style:{backgroundPosition:"0 -".concat(this.option.p*20+20,"px")}})}})})).sort((D,x)=>D.label.localeCompare(x.label)).map((D,x)=>B(B({},D),{},{index:x}))),g=h(()=>{if(y.value){var D={},x=[];m.value.forEach(k=>k.m.forEach(U=>{D[U[1]]===void 0&&(D[U[1]]=[]);var Y=U[0].toString().length;D[U[1]][Y]===void 0&&(D[U[1]][Y]=[]),D[U[1]][Y].push(parseInt(U[0])),x.indexOf(Y)===-1&&x.push(Y)})),x.sort().reverse();var F=[];return x.forEach(k=>{Object.keys(D).forEach(U=>{D[U][k]&&F.push({mask:U,startsWith:D[U][k],placeholder:!0})})}),F.push({mask:"{+}0000000[0000000]",startsWith:""}),{mask:F}}}),A=h(()=>m.value.reduce((D,x)=>x.m.reduce((F,k)=>B(B({},F),{},{[k[0]]:x.c}),B({},D)),{})),y=h(()=>!!u),b=h(()=>y.value?"text":"tel"),_=function(){var x,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!s.value){Object.keys(v.value.selected).length&&v.value.reset();return}if(!(s.value&&!s.value.toString().startsWith("+")||s.value===((x=v.value.selected)===null||x===void 0?void 0:x.n))){var k=s.value.replace("+",""),U=[7,5,4,3,2,1].filter(N=>k.length>=N),Y;if(U.forEach(N=>{Y||(Y=A.value[k.slice(0,N)]||void 0)}),!Y){Object.keys(v.value.selected).length&&v.value.reset();return}Y==="MF"&&(Y="GP");var H=m.value.find(N=>N.c===Y);v.value.selected.index!==H.index&&v.value.selectOption(H,F)}},C=D=>{if(document.activeElement===o.value){r.emit("select",D,d.value);return}if(D.n===void 0)d.value.clear();else if(y.value){var x=s.value?D.m.map(F=>"+".concat(F[0])).find(F=>s.value.startsWith(F)):!1;x||d.value.update(D.m.length===1?"+".concat(D.m[0][0]):D.n),document.activeElement.closest("[data-dropdown-for]")&&(l(),o.value.setSelectionRange(o.value.value.length,o.value.value.length))}else d.value.update(D.n);r.emit("select",D,d.value)},T=()=>{r.emit("open",d)},S=()=>{r.emit("close",d)};return Vt(()=>{_()}),Se(s,D=>{_(!1)}),{options$:v,addonOptions:m,handleOptionSelect:C,addonPlaceholder:p,maskPluginInstalled:y,inputType:b,mask:g,handleOpen:T,handleClose:S}},af=function(t,r,a){var{fire:n,el$:i}=a,u=o=>{n("keydown",o,i.value)},l=o=>{n("keyup",o,i.value)},s=o=>{n("keypress",o,i.value)};return{handleKeydown:u,handleKeyup:l,handleKeypress:s}},L7=function(t,r,a){var{fire:n,model:i,input:u,el$:l}=a,s=o=>{l.value.maskPluginInstalled||["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight"].indexOf(o.key)!==-1||o.ctrlKey||o.metaKey||/[0-9]/.test(o.key)&&(!i.value||i.value.length<16)||o.key==="+"&&(!i.value||u.value.selectionStart===0)&&(!i.value||i.value.length<16)||o.preventDefault()};return{handleKeydown:s}},t1={name:"PhoneElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","select","open","close","blur","focus","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"text",private:!0},default:{required:!1,type:[String,Number,Object],localized:!0,default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},include:{required:!1,type:[Array],default:()=>[]},exclude:{required:!1,type:[Array],default:()=>[]},unmask:{require:!1,type:[Boolean],default:!1},allowIncomplete:{require:!1,type:[Boolean],default:!1},attrs:{required:!1,type:[Object],default:()=>({})},autocomplete:{required:!1,type:[String,Number],default:null},loading:{type:[Boolean],required:!1,default:!1},onBlur:{required:!1,type:[Function],default:null,private:!0},onSelect:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,Va,nt,Wt,ar,on,Ju,Bt,Xi,Zi,dr,Ca,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,e7,yi,eu,vj,Tr,Ft,L7,pa,I7],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},j7=function(t,r,a){var{radioName:n,radioValue:i}=Q(t),u=a.update,l=a.nullValue,s=a.fieldId,o=a.path,f=a.form$,d=R([]),c=h(()=>n.value||o.value),v=()=>{u(i.value)},p=()=>{u(l.value)},m=(g,A)=>{A&&f.value.$el.querySelectorAll('input[name="'.concat(A,'"')).forEach((y,b)=>{d.value[b]&&y.removeEventListener("change",d.value[b])}),f.value.$el.querySelectorAll('input[name="'.concat(g,'"')).forEach(y=>{var b=()=>{y.id!=s.value&&u(l.value)};d.value.push(b),y.addEventListener("change",b)})};return Vt(()=>{m(c.value)}),Se(c,m),{inputName:c,check:v,uncheck:p}},r1={name:"RadioElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"radio",private:!0},default:{required:!1,type:[String,Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},radioName:{required:!1,type:[String],default:null},radioValue:{required:!1,type:[Boolean,String,Number],default:1},text:{required:!1,type:[String,Object],localized:!0,default:null},align:{required:!1,type:[String],default:void 0},standalone:{required:!1,type:[Boolean],default:!1}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,At,nt,Wt,ar,za,Lr,Bt,Ir,dr,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,j7,hj,Tr,Ft,Uc],r.slots=["default","label","info","required","description","before","between","after"],B({},Xt(e,r))}},a1={name:"RadiogroupElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"radiogroup",private:!0},default:{required:!1,type:[String,Number,Boolean],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},items:{required:!1,type:[Object,Array,Function,String],localized:!0,default:()=>({})},disables:{required:!1,type:[Array],default:()=>[]},clearOnRefetch:{type:[Boolean],required:!1,default:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Pt,za,At,nt,Wt,fj,Lr,dr,q5,Bt,Ir,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,pj,Tr,Ft],r.slots=["radio","label","info","required","description","before","between","after"],B({},Xt(e,r))}},n1={name:"SelectElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","select","deselect","search-change","open","close","clear","paste","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"select",private:!0},default:{required:!1,type:[String,Number,Object],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},attrs:{required:!1,type:[Object],default:()=>({})},onSelect:{required:!1,type:[Function],default:null,private:!0},onDeselect:{required:!1,type:[Function],default:null,private:!0},onSearchChange:{required:!1,type:[Function],default:null,private:!0},onOpen:{required:!1,type:[Function],default:null,private:!0},onClose:{required:!1,type:[Function],default:null,private:!0},onClear:{required:!1,type:[Function],default:null,private:!0},onPaste:{required:!1,type:[Function],default:null,private:!0},native:{required:!1,type:[Boolean],default:!0},items:{required:!1,type:[Object,Array,Function,String],localized:!0,default:()=>({})},labelProp:{type:[String],required:!1,default:"label"},valueProp:{type:[String],required:!1,default:"value"},dataKey:{type:[String],required:!1,default:void 0},searchParam:{type:[String],required:!1,default:"query"},search:{required:!1,type:[Boolean],default:!1,native:!1},trackBy:{type:[String,Array],required:!1,default:void 0,native:!1},strict:{type:[Boolean],required:!1,default:!0,native:!1},create:{required:!1,type:[Boolean],default:!1,native:!1},appendNewOption:{type:[Boolean],required:!1,default:!0,native:!1},addOptionOn:{type:[Array],required:!1,default:()=>["enter"],native:!1},allowAbsent:{type:[Boolean],required:!1,default:!1,native:!1},object:{type:[Boolean],required:!1,default:!1,native:!1},limit:{type:[Number],required:!1,default:-1,native:!1},groups:{type:[Boolean],required:!1,default:!1,native:!1},groupLabel:{type:[String],required:!1,default:"label",native:!1},groupOptions:{type:[String],required:!1,default:"items",native:!1},groupHideEmpty:{type:[Boolean],required:!1,default:!1,native:!1},openDirection:{type:[String],required:!1,default:"bottom",native:!1},appendToBody:{type:[Boolean],required:!1,default:!1,native:!1},appendTo:{type:[String],required:!1,default:void 0,native:!1},canDeselect:{type:[Boolean],required:!1,default:!0,native:!1},canClear:{type:[Boolean],required:!1,default:!0,native:!1},closeOnSelect:{type:[Boolean],required:!1,default:!0,native:!1},closeOnDeselect:{type:[Boolean],required:!1,default:!1,native:!1},clearOnRefetch:{type:[Boolean],required:!1,default:!1},delay:{type:[Number],required:!1,default:-1,native:!1},minChars:{type:[Number],required:!1,default:0,native:!1},resolveOnLoad:{type:[Boolean],required:!1,default:!0,native:!1},filterResults:{type:[Boolean],required:!1,default:!0,native:!1},clearOnSearch:{type:[Boolean],required:!1,default:!1,native:!1},caret:{type:[Boolean],required:!1,default:!0,native:!1},truncate:{type:[Boolean],required:!1,default:!0,native:!1},loading:{type:[Boolean],required:!1,default:!1,native:!1},noOptionsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noOptions",localized:!0,native:!1},noResultsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noResults",localized:!0,native:!1},autocomplete:{type:[String],required:!1,native:!1},inputType:{type:[String],required:!1,default:"text",native:!1},extendOptions:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Fc,Pt,za,At,Va,nt,Wt,ar,Lr,Ir,Zi,U5,dr,Yc,Bt,Ca,Ic,Ct,Jt,$t,bt,Dt,xt,Ot,Jc,zc,Zt,Tr,Ft,pa],r.slots=["option","single-label","placeholder","group-label","before-list","after-list","no-results","no-options","caret","spinner","clear","label","info","required","description","before","between","after"],B({},Xt(e,r))}};/*!
|
|
33
|
+
* Signature Pad v5.1.1 | https://github.com/szimek/signature_pad
|
|
34
|
+
* (c) 2025 Szymon Nowak | Released under the MIT license
|
|
35
|
+
*/var oo=class{x;y;pressure;time;constructor(e,t,r,a){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=r||0,this.time=a||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}},U7=class i1{constructor(t,r,a,n,i,u){this.startPoint=t,this.control2=r,this.control1=a,this.endPoint=n,this.startWidth=i,this.endWidth=u}static fromPoints(t,r){const a=this.calculateControlPoints(t[0],t[1],t[2]).c2,n=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new i1(t[1],a,n,t[2],r.start,r.end)}static calculateControlPoints(t,r,a){const n=t.x-r.x,i=t.y-r.y,u=r.x-a.x,l=r.y-a.y,s={x:(t.x+r.x)/2,y:(t.y+r.y)/2},o={x:(r.x+a.x)/2,y:(r.y+a.y)/2},f=Math.sqrt(n*n+i*i),d=Math.sqrt(u*u+l*l),c=s.x-o.x,v=s.y-o.y,p=f+d==0?0:d/(f+d),m={x:o.x+c*p,y:o.y+v*p},g=r.x-m.x,A=r.y-m.y;return{c1:new oo(s.x+g,s.y+A),c2:new oo(o.x+g,o.y+A)}}length(){let r=0,a,n;for(let i=0;i<=10;i+=1){const u=i/10,l=this.point(u,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(u,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){const o=l-a,f=s-n;r+=Math.sqrt(o*o+f*f)}a=l,n=s}return r}point(t,r,a,n,i){return r*(1-t)*(1-t)*(1-t)+3*a*(1-t)*(1-t)*t+3*n*(1-t)*t*t+i*t*t*t}},Y7=class{_et;constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,r){this._et.addEventListener(e,t,r)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,r){this._et.removeEventListener(e,t,r)}};function z7(e,t=250){let r=0,a=null,n,i,u;const l=()=>{r=Date.now(),a=null,n=e.apply(i,u),a||(i=null,u=[])};return function(...o){const f=Date.now(),d=t-(f-r);return i=this,u=o,d<=0||d>t?(a&&(clearTimeout(a),a=null),r=f,n=e.apply(i,u),a||(i=null,u=[])):a||(a=window.setTimeout(l,d)),n}}var V7=class Cd extends Y7{constructor(t,r={}){super(),this.canvas=t,this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle=r.throttle??16,this.minDistance=r.minDistance??5,this.dotSize=r.dotSize||0,this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=r.compositeOperation||"source-over",this.canvasContextOptions=r.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?z7(Cd.prototype._strokeUpdate,this.throttle):Cd.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}dotSize;minWidth;maxWidth;penColor;minDistance;velocityFilterWeight;compositeOperation;backgroundColor;throttle;canvasContextOptions;_ctx;_drawingStroke=!1;_isEmpty=!0;_dataUrl;_dataUrlOptions;_lastPoints=[];_data=[];_lastVelocity=0;_lastWidth=0;_strokeMoveUpdate;_strokePointerId;clear(){const{_ctx:t,canvas:r}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,r.width,r.height),t.fillRect(0,0,r.width,r.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const t=this._data,r=this._dataUrl,a=this._dataUrlOptions;this.clear(),r&&this.fromDataURL(r,a),this.fromData(t,{clear:!1})}fromDataURL(t,r={}){return new Promise((a,n)=>{const i=new Image,u=r.ratio||window.devicePixelRatio||1,l=r.width||this.canvas.width/u,s=r.height||this.canvas.height/u,o=r.xOffset||0,f=r.yOffset||0;this._reset(this._getPointGroupOptions()),i.onload=()=>{this._ctx.drawImage(i,o,f,l,s),a()},i.onerror=d=>{n(d)},i.crossOrigin="anonymous",i.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions={...r}})}toDataURL(t="image/png",r){switch(t){case"image/svg+xml":return typeof r!="object"&&(r=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(r))}`;default:return typeof r!="number"&&(r=void 0),this.canvas.toDataURL(t,r)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const t=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:r=!0}={}){r&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,r){return r?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const r=t.changedTouches[0];return{event:t,type:t.type,x:r.clientX,y:r.clientY,pressure:r.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,r=!1){return typeof this._strokePointerId>"u"?r:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:a}=this._getListenerFunctions();switch(t.event.type){case"mousedown":a("mousemove",this._handleMouseMove,{passive:!1}),a("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":a("touchmove",this._handleTouchMove,{passive:!1}),a("touchend",this._handleTouchEnd,{passive:!1});break;case"pointerdown":a("pointermove",this._handlePointerMove,{passive:!1}),a("pointerup",this._handlePointerUp,{passive:!1});break}this._drawingStroke=!0;const n=this._getPointGroupOptions(),i={...n,points:[]};this._data.push(i),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const r=this._createPoint(t.x,t.y,t.pressure),a=this._data[this._data.length-1],n=a.points,i=n.length>0&&n[n.length-1],u=i?r.distanceTo(i)<=this.minDistance:!1,l=this._getPointGroupOptions(a);if(!i||!(i&&u)){const s=this._addPoint(r,l);i?s&&this._drawCurve(s,l):this._drawDot(r,l),n.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,r=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(r&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,r,a){const n=this.canvas.getBoundingClientRect();return new oo(t-n.left,r-n.top,a,new Date().getTime())}_addPoint(t,r){const{_lastPoints:a}=this;if(a.push(t),a.length>2){a.length===3&&a.unshift(a[0]);const n=this._calculateCurveWidths(a[1],a[2],r),i=U7.fromPoints(a,n);return a.shift(),i}return null}_calculateCurveWidths(t,r,a){const n=a.velocityFilterWeight*r.velocityFrom(t)+(1-a.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n,a),u={end:i,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=i,u}_strokeWidth(t,r){return Math.max(r.maxWidth/(t+1),r.minWidth)}_drawCurveSegment(t,r,a){const n=this._ctx;n.moveTo(t,r),n.arc(t,r,a,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,r){const a=this._ctx,n=t.endWidth-t.startWidth,i=Math.ceil(t.length())*2;a.beginPath(),a.fillStyle=r.penColor;for(let u=0;u<i;u+=1){const l=u/i,s=l*l,o=s*l,f=1-l,d=f*f,c=d*f;let v=c*t.startPoint.x;v+=3*d*l*t.control1.x,v+=3*f*s*t.control2.x,v+=o*t.endPoint.x;let p=c*t.startPoint.y;p+=3*d*l*t.control1.y,p+=3*f*s*t.control2.y,p+=o*t.endPoint.y;const m=Math.min(t.startWidth+o*n,r.maxWidth);this._drawCurveSegment(v,p,m)}a.closePath(),a.fill()}_drawDot(t,r){const a=this._ctx,n=r.dotSize>0?r.dotSize:(r.minWidth+r.maxWidth)/2;a.beginPath(),this._drawCurveSegment(t.x,t.y,n),a.closePath(),a.fillStyle=r.penColor,a.fill()}_fromData(t,r,a){for(const n of t){const{points:i}=n,u=this._getPointGroupOptions(n);if(i.length>1)for(let l=0;l<i.length;l+=1){const s=i[l],o=new oo(s.x,s.y,s.pressure,s.time);l===0&&this._reset(u);const f=this._addPoint(o,u);f&&r(f,u)}else this._reset(u),a(i[0],u)}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:r=!1}={}){const a=this._data,n=Math.max(window.devicePixelRatio||1,1),i=0,u=0,l=this.canvas.width/n,s=this.canvas.height/n,o=document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("viewBox",`${i} ${u} ${l} ${s}`),o.setAttribute("width",l.toString()),o.setAttribute("height",s.toString()),t&&this.backgroundColor){const f=document.createElement("rect");f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill",this.backgroundColor),o.appendChild(f)}if(r&&this._dataUrl){const f=this._dataUrlOptions?.ratio||window.devicePixelRatio||1,d=this._dataUrlOptions?.width||this.canvas.width/f,c=this._dataUrlOptions?.height||this.canvas.height/f,v=this._dataUrlOptions?.xOffset||0,p=this._dataUrlOptions?.yOffset||0,m=document.createElement("image");m.setAttribute("x",v.toString()),m.setAttribute("y",p.toString()),m.setAttribute("width",d.toString()),m.setAttribute("height",c.toString()),m.setAttribute("preserveAspectRatio","none"),m.setAttribute("href",this._dataUrl),o.appendChild(m)}return this._fromData(a,(f,{penColor:d})=>{const c=document.createElement("path");if(!isNaN(f.control1.x)&&!isNaN(f.control1.y)&&!isNaN(f.control2.x)&&!isNaN(f.control2.y)){const v=`M ${f.startPoint.x.toFixed(3)},${f.startPoint.y.toFixed(3)} C ${f.control1.x.toFixed(3)},${f.control1.y.toFixed(3)} ${f.control2.x.toFixed(3)},${f.control2.y.toFixed(3)} ${f.endPoint.x.toFixed(3)},${f.endPoint.y.toFixed(3)}`;c.setAttribute("d",v),c.setAttribute("stroke-width",(f.endWidth*2.25).toFixed(3)),c.setAttribute("stroke",d),c.setAttribute("fill","none"),c.setAttribute("stroke-linecap","round"),o.appendChild(c)}},(f,{penColor:d,dotSize:c,minWidth:v,maxWidth:p})=>{const m=document.createElement("circle"),g=c>0?c:(v+p)/2;m.setAttribute("r",g.toString()),m.setAttribute("cx",f.x.toString()),m.setAttribute("cy",f.y.toString()),m.setAttribute("fill",d),o.appendChild(m)}),o.outerHTML}};function u1(e,t,r){var a;return function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];a?clearTimeout(a):typeof r=="function"&&r(),a=setTimeout(()=>{a=null,e.apply(this,i)},t)}}function W7(e,t,r){var{fonts:a,colors:n,modes:i,accept:u,maxWidth:l,height:s,readonly:o,maxFontSize:f,minFontSize:d,canClear:c,line:v,placeholder:p,autoload:m,maxSize:g,canUndo:A,columns:y,uploadWidth:b,uploadHeight:_,canDrop:C}=Q(e),{el$:T,form$:S,input:D,isDisabled:x,value:F,Placeholder:k,available:U,path:Y}=r,H=R(null),N=R(null),I=R(null),j=R(null),M=R(null),K=R(null),Z=R(null),W=R(null),ee=R(null),se=R(null),Me=R(null),z=R(f.value),G=R(null),X=R(null),re=R(null),Ne=R(null),ge=R(!1),ke=R(!1),je=R(!1),oe=R(!1),be=R(!1),Ie=R([]),ce=R(0),te=R(0),J=R(0),pe=R(!1),le=R(0),_e=h(()=>a.value.map(ne=>ne.split("@")[0].replace("!",""))),Te=h(()=>a.value.map(ne=>ne.split("@")[1]||400)),nr=h(()=>typeof F.value=="string"),jr=h(()=>Ne.value&&!ge.value),hr=h(()=>{var ne=document.createElement("div");return("draggable"in ne||"ondragstart"in ne&&"ondrop"in ne)&&"FormData"in window&&"FileReader"in window&&C.value}),Ue=h(()=>i.value.filter(ne=>["type","draw","upload"].indexOf(ne)!==-1).map((ne,Be)=>({label:S.value.translations.vueform.elements.signature[ne],value:ne,index:Be}))),ir=h(()=>_e.value.map((ne,Be)=>{var Ye;return{label:'<div><span style="font-family: '.concat(ne,"; font-weight: ").concat(Te.value[Be],'" aria-hidden="true">').concat(((Ye=X.value)===null||Ye===void 0?void 0:Ye.trim())||S.value.translations.vueform.elements.signature.fontPlaceholder,'</span><span style="position: absolute; left: -9999px; opacity: 0;">').concat(ne,"</span></div>"),value:Be,index:Be}})),It=h(()=>u.value.reduce((ne,Be)=>{switch(Be){case"jpg":case"jpeg":ne.push("image/jpeg");break;case"png":ne.push("image/png");break;case"svg":ne.push("image/svg+xml");break}return ne},[]).join(", ")),Wa=h(()=>ee.value!=="upload"&&v.value),fn=h(()=>!nr.value&&ee.value==="type"),kt=h(()=>(!X.value&&ee.value==="type"||!oe.value&&ee.value==="draw")&&p.value!==!1),xa=h(()=>ee.value==="upload"),$a=h(()=>ee.value==="upload"&&!ge.value),Ur=h(()=>ee.value==="upload"&&ge.value),at=h(()=>ee.value==="draw"),Yr=h(()=>ee.value==="draw"&&(Ie.value.length||oe.value)&&!be.value&&A.value),ha=h(()=>(ee.value==="upload"&&ge.value||ee.value==="type"||ee.value==="draw")&&!be.value&&n.value.length>1&&!pe.value),Ha=h(()=>!be.value&&i.value.length>1),Oa=h(()=>ee.value==="type"&&ir.value.length>1),zr=h(()=>(ee.value==="type"&&X.value||ee.value==="upload"&&ge.value||ee.value==="draw"&&oe.value||nr.value)&&!x.value&&!o.value&&!be.value&&c.value),Qe=h(()=>x.value||o.value?void 0:0),ma=h(()=>S.value.$vueform.sanitize(k.value||S.value.translations.vueform.elements.signature.placeholder)),Mr=h(()=>"Drop an image here or"),w=h(()=>"Select image"),E=h(()=>S.value.translations.vueform.elements.signature.imgAlt),O=h(()=>S.value.translations.vueform.elements.signature.imgTitle),q=h(()=>S.value.translations.vueform.elements.signature.font),ie=h(()=>S.value.translations.vueform.elements.signature.undo),de=h(()=>S.value.translations.vueform.elements.signature.redo),Re=h(()=>({"aria-label":S.value.translations.vueform.elements.signature.modeSelectorAriaLabel})),me=h(()=>({"aria-label":S.value.translations.vueform.elements.signature.fontSelectorAriaLabel})),We=h(()=>S.value.translations.vueform.elements.signature.wrapperAriaLabel),we=h(()=>S.value.translations.vueform.elements.signature.inputAriaLabel),Ce=h(()=>S.value.translations.vueform.elements.signature.padAriaLabel),Xe=h(()=>S.value.translations.vueform.elements.signature.clearAriaLabel),_r=h(()=>S.value.translations.vueform.elements.signature.colorAriaLabel),mr=h(()=>te.value*2),mt=h(()=>s.value*2),Ge=h(()=>({width:"".concat(te.value,"px"),height:"".concat(s.value,"px")})),qr=h(()=>{var ne={height:"".concat(s.value,"px")};return l.value!=="auto"&&(ne.maxWidth="".concat(l.value,"px")),ne}),dn=h(()=>({fontFamily:se.value,fontWeight:Me.value,fontSize:"".concat(z.value,"px"),lineHeight:"".concat(z.value,"px"),color:G.value,"-webkit-font-smoothing":"auto"})),Ta=h(()=>({transform:"translateY(calc(".concat(z.value/2.2,"px))")})),$e=()=>{re.value||!M.value||i.value.indexOf("draw")===-1&&i.value.length||!U.value||(te.value||Mn(),He(()=>{re.value=new V7(M.value);var ne=M.value.getContext("2d");ne.setTransform(1,0,0,1,0,0),ne.scale(2,2),ur(),re.value.addEventListener("beginStroke",Be=>{if(x.value||o.value){Be.preventDefault();return}pe.value=!0,oe.value=!0,be.value=!0,Ie.value=[]}),re.value.addEventListener("endStroke",()=>{be.value=!1,ce.value++,bi(Xr,500)})}))},cn=()=>{Mn(),He(()=>{var ne=M.value.getContext("2d");ne.setTransform(1,0,0,1,0,0),ne.scale(2,2),cr()})},Xr=()=>new Promise((ne,Be)=>{for(var Ye=M.value,et=Ye.getContext("2d"),Yt=et.getImageData(0,0,Ye.width,Ye.height),Er=Yt.data,lr=Ye.width,Lt=Ye.height,vn=0,pn=0,ga=0;ga<Ye.height;ga++)for(var Sr=0;Sr<Ye.width;Sr++){var nu=(ga*Ye.width+Sr)*4;Er[nu+3]>0&&(Sr<lr&&(lr=Sr),ga<Lt&&(Lt=ga),Sr>vn&&(vn=Sr),ga>pn&&(pn=ga))}if(lr>vn||Lt>pn){ne();return}var hn=vn-lr+1,mn=pn-Lt+1,Ma=document.createElement("canvas"),iu=Ma.getContext("2d");Ma.width=hn,Ma.height=mn,iu.putImageData(Yt,-lr,-Lt);var Ga=document.createElement("canvas"),Ai=Ga.getContext("2d"),ya=b.value,na=_.value;Ga.width=ya,Ga.height=na;var gn=hn,ka=mn;(gn>ya||ka>na)&&(gn/ka>ya/na?(gn=ya,ka=Math.floor(ya/hn*mn)):(ka=na,gn=Math.floor(na/mn*hn)));var nl=Math.floor((ya-gn)/2),of=Math.floor((na-ka)/2);Ai.drawImage(Ma,0,0,hn,mn,nl,of,gn,ka),Ga.toBlob(function(ff){F.value=ff,ne(),Ga.remove()},"image/png")}),xe=()=>new Promise((ne,Be)=>{if(!X.value){ne();return}var Ye=document.createElement("canvas"),et=Ye.getContext("2d"),Yt=b.value,Er=_.value;Ye.width=Yt,Ye.height=Er,He(()=>{et.clearRect(0,0,Yt,Er);var lr=Er/2;et.font="".concat(Me.value," ").concat(lr,"px ").concat(se.value);for(var Lt=et.measureText(X.value).width;Lt>Yt-10&&lr>10;)lr-=1,et.font="".concat(Me.value," ").concat(lr,"px ").concat(se.value),Lt=et.measureText(X.value).width;et.fillStyle=G.value,et.textAlign="center",et.textBaseline="middle",et.fillText(X.value,Yt/2,Er/2),Ye.toBlob(function(vn){F.value=vn,Ye.remove(),ne()},"image/png")})}),$=()=>{if(Ne.value){var ne=Ne.value,Be=new FileReader;ke.value=!0,Be.onload=function(Ye){var et=new Image;et.onload=function(){var Yt=document.createElement("canvas"),Er=Yt.getContext("2d");Yt.width=et.width,Yt.height=et.height,Er.drawImage(et,0,0);for(var lr=Er.getImageData(0,0,Yt.width,Yt.height),Lt=lr.data,vn=G.value,pn=Fa(vn),ga=220,Sr=0;Sr<Lt.length;Sr+=4){var nu=Lt[Sr],hn=Lt[Sr+1],mn=Lt[Sr+2];nu>ga&&hn>ga&&mn>ga?Lt[Sr+3]=0:(Lt[Sr]=pn.r,Lt[Sr+1]=pn.g,Lt[Sr+2]=pn.b)}Er.putImageData(lr,0,0);var Ma=j.value,iu=Ma.getContext("2d");iu.clearRect(0,0,Ma.width,Ma.height);var Ga=b.value,Ai=_.value,ya=Ga,na=ya/(et.width/et.height);na>Ai&&(na=Ai,ya=na*(et.width/et.height));var gn=(Ga-ya)/2,ka=(Ai-na)/2;iu.drawImage(Yt,0,0,et.width,et.height,gn,ka,ya,na),Ma.toBlob(function(nl){F.value=nl,ge.value=!0,ke.value=!1,Yt.remove()},"image/png")},et.src=Ye.target.result},Be.readAsDataURL(ne)}},ae=()=>{if(re.value){var ne=re.value.toData();ne.length&&(Ie.value.push(ne.pop()),re.value.fromData(ne),ne.length||(oe.value=!1),ce.value=ne.length,bi(Xr,500))}},Ee=()=>{if(!(!re.value||!Ie.value.length)){var ne=re.value.toData()||[];ne.push(Ie.value.pop()),re.value.fromData(ne),oe.value=!0,ur(),ce.value=ne.length,bi(Xr,500)}},ft=()=>{X.value=null,Ne.value=null,ge.value=!1,F.value=null,cr()},cr=()=>{var ne;(ne=re.value)===null||ne===void 0||ne.clear(),oe.value=!1,Ie.value=[]},Ht=()=>{a.value.forEach(ne=>{var Be=ne.split("@"),Ye=Be[0].substr(0,1)==="!";if(!Ye){var et=Be[0].replace("!","").replace(/\s/g,"+"),Yt=Be[1]||400,Er="font-".concat(et);if(!document.getElementById(Er)){var lr=document.createElement("link");lr.id=Er,lr.rel="stylesheet",lr.href="https://fonts.googleapis.com/css2?family=".concat(et,":wght@").concat(Yt,"&display=swap"),document.head.appendChild(lr)}}})},ur=()=>{var{r:ne,g:Be,b:Ye}=Fa(G.value);re.value.penColor="rgb(".concat(ne,", ").concat(Be,", ").concat(Ye,")"),oe.value&&re.value.fromData(re.value.toData().map(et=>(et.penColor=re.value.penColor,et)))},Nr=()=>{if(!X.value){z.value=f.value;return}for(var ne=navigator.userAgent.toLowerCase(),Be=ne.indexOf("safari")!=-1&&ne.indexOf("chrome")==-1&&ne.indexOf("android")==-1,Ye=I.value,et=window.getComputedStyle(Ye),Yt=parseFloat(et.textIndent),Er=parseFloat(et.paddingRight),lr=Math.ceil(Ye.getBoundingClientRect().width)-Yt,Lt=z.value;Ye.scrollWidth+(Be?Er:0)-Yt>lr&&Lt>d.value;)Lt--,Ye.style.fontSize=Lt+"px";for(;Ye.scrollWidth+(Be?Er:0)-Yt<=lr&&Lt<f.value;){if(Ye.style.fontSize=Lt+1+"px",Ye.scrollWidth+(Be?Er:0)-Yt>lr){Ye.style.fontSize=Lt+"px";break}Lt++}z.value=Lt},Fa=ne=>{ne=ne.replace(/^#/,"");var Be=parseInt(ne,16),Ye=Be>>16&255,et=Be>>8&255,Yt=Be&255;return{r:Ye,g:et,b:Yt}},Fn=ne=>{var Be=u.value.indexOf("jpg")!==-1&&u.value.indexOf("jpeg")===-1?u.value.concat(["jpeg"]):u.value,Ye=ne&&Be.indexOf(ne?.name.split(".").pop())!==-1;return Ye?!0:(alert(S.value.__(S.value.translations.vueform.elements.signature.unsupportedFormat,{extensions:u.value.join(", ")})),!1)},vr=ne=>g.value===-1?!0:ne.size/1024>g.value?(alert(S.value.__(S.value.translations.vueform.elements.signature.maxSizeError,{max:g.value})),!1):!0,Mn=()=>{te.value=D.value.getBoundingClientRect().width},kn=()=>{J.value=D.value.getBoundingClientRect().width},tu=function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ee.value=i.value[0]||"draw",Be&&(H.value.selected=Ue.value[0]||{label:S.value.translations.vueform.elements.signature.draw,value:"draw",index:0})},fs=function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;se.value=_e.value[0]||"cursive",Me.value=Te.value[0]||400,Be&&(N.value.selected={},N.value.pointed={})},Qu=()=>{G.value=n.value[0]||"#000000"},el=ne=>{se.value=_e.value[ne.index],Me.value=Te.value[ne.index]},ds=ne=>{Fn(ne)&&vr(ne)?(Ne.value=ne,$(Ne.value)):(Ne.value=null,ge.value=!1)},bi=function(Be){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;le.value&&clearTimeout(le.value),le.value=setTimeout(he(function*(){try{yield Be.call()}catch{F.value=null}}),Ye)},nf=ne=>{x.value||o.value||(X.value=ne.target.value)},cs=ne=>{x.value||o.value||(ee.value=ne.value,He(()=>{ee.value==="draw"?M.value.focus():ee.value==="type"?I.value.focus():ee.value==="upload"&&W.value.focus()}))},vs=ne=>{x.value||o.value||(G.value=ne)},ru=ne=>{N.value.selected={},!(x.value||o.value)&&el(ne)},uf=()=>{x.value||o.value||(nr.value||(ee.value==="draw"?M.value.focus():ee.value==="type"?I.value.focus():ee.value==="upload"&&W.value.focus()),ft(),pe.value=!1)},tl=()=>{x.value||o.value||(ae(),pe.value=!1)},lf=()=>{x.value||o.value||(Ee(),pe.value=!1)},sf=()=>{x.value||o.value||K.value.click()},rl=ne=>{if(!(x.value||o.value)){var Be=ne.target.files[0];ds(Be),K.value.value=""}},ps=ne=>{if(!(x.value||o.value||!hr.value)){var Be=ne.dataTransfer.files[0];ds(Be)}},au=()=>{pe.value=!1},Bn=()=>{J.value!==D.value.getBoundingClientRect().width&&(cn(),Nr())},al=u1(Bn,200,()=>{kn()});return tu(),fs(),Qu(),Vt(()=>{m.value&&Ht(),Mn(),H.value&&(H.value.selected=Ue.value[0]||{label:S.value.translations.vueform.elements.signature.draw,value:"draw",index:0});var ne=["drag","dragstart","dragenter","dragleave","dragend"];ne.forEach(Be=>{D.value.addEventListener(Be,Ye=>{Ye.preventDefault(),Ye.stopPropagation(),["dragleave","dragend"].indexOf(Be)!==-1&&(x.value||!hr.value||(je.value=!1))})}),D.value.addEventListener("dragover",Be=>{Be.preventDefault(),Be.stopPropagation(),!(x.value||!hr.value)&&je.value!==!0&&(je.value=!0)}),D.value.addEventListener("drop",Be=>{Be.preventDefault(),Be.stopPropagation(),!(x.value||!hr.value)&&(ps(Be),je.value=!1)}),He(()=>{$e(),window.addEventListener("resize",al)}),Se(f,()=>{Nr()},{flush:"post"}),Se(i,(Be,Ye)=>{Tn(Be,Ye)||($e(),tu(!0))}),Se(U,()=>{S.value.steps$&&!S.value.steps$.current$.elements.includes(Y.value.split(".")[0])?S.value.steps$.on("select",Be=>{!Be.elements.includes(Y.value.split(".")[0])||te.value||He(()=>{$e()})}):He(()=>{$e()})},{flush:"post"}),Se(G,()=>{re.value&&ur(),ee.value==="upload"&&ge.value&&!ke.value&&$()}),Se(y,()=>{kn(),He(()=>{Bn(),ee.value==="upload"&&ge.value&&!ke.value&&$()})}),Se(ee,()=>{ft()}),Se([s,l],()=>{cn(),Nr()},{flush:"post"}),Se([X,se],()=>{He(()=>{Nr()})},{flush:"post"}),Se(X,()=>{bi(xe,1e3)},{flush:"post"}),Se(a,()=>{m.value&&Ht()})}),Gn(()=>{window.removeEventListener("resize",al)}),{mode$:H,font$:N,input$:I,preview$:j,pad$:M,file$:K,upload$:Z,uploadButton$:W,mode:ee,fontFamily:se,fontWeight:Me,color:G,text:X,fontSize:z,pad:re,image:Ne,created:ge,creating:ke,dragging:je,drawn:oe,drawing:be,redos:Ie,undosLeft:ce,width:te,lastWidth:J,fontFamilies:_e,fontWeights:Te,uploaded:nr,processing:jr,droppable:hr,resolvedModes:Ue,resolvedFonts:ir,fileAccept:It,showLine:Wa,showInput:fn,showPlaceholder:kt,showUploadContainer:xa,showUpload:$a,showPreview:Ur,showPad:at,showUndos:Yr,showColors:ha,showModes:Ha,showFonts:Oa,showClear:zr,tabindex:Qe,placeholderText:ma,dndText:Mr,uploadButtonText:w,imgAltText:E,imgTitleText:O,fontText:q,undoText:ie,redoText:de,modeSelectorAria:Re,fontSelectorAria:me,wrapperAriaLabel:We,inputAriaLabel:we,padAriaLabel:Ce,colorAriaLabel:_r,clearAriaLabel:Xe,padWidth:mr,padHeight:mt,padStyle:Ge,wrapperStyle:qr,inputStyle:dn,lineStyle:Ta,initPad:$e,resizePad:cn,drawingToImage:Xr,typingToImage:xe,uploadToImage:$,undo:ae,redo:Ee,clearSignature:ft,clearDrawnSignature:cr,loadFonts:Ht,setDrawColor:ur,adjustFontSize:Nr,hexToRgb:Fa,checkFileExt:Fn,checkFileSize:vr,setWidth:Mn,setLastWidth:kn,setDefaultMode:tu,setDefaultFont:fs,setDefaultColor:Qu,setFont:el,handleInput:nf,handleModeSelect:cs,handleColorSelect:vs,handleFontSelect:ru,handleClear:uf,handleUndo:tl,handleRedo:lf,handleSelectClick:sf,handleFileSelect:rl,handleDrop:ps,handleMouseLeave:au,handleResize:Bn,handleResizeDebounce:al}}var l1={name:"SignatureElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"text",private:!0},id:{required:!1,type:[String],default:null},default:{required:!1,type:[String,Number,Object],localized:!0,default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},modes:{required:!1,type:[Array],default:()=>["draw","type","upload"]},fonts:{required:!1,type:[Array],default:()=>["Caveat@400","Sacramento@400","Dancing Script@400"]},autoload:{required:!1,type:[Boolean],default:!0},minFontSize:{required:!1,type:[Number],default:10},maxFontSize:{required:!1,type:[Number],default:60},colors:{required:!1,type:[Array],default:()=>["#000000","#2558b2","#f22f30"]},invertColors:{required:!1,type:[Array],default:()=>["#000000"]},maxWidth:{required:!1,type:[Number,String],default:"auto"},height:{required:!1,type:[Number],default:160},uploadWidth:{required:!1,type:[Number],default:480},uploadHeight:{required:!1,type:[Number],default:160},maxSize:{required:!1,type:[Number],default:2048},accept:{required:!1,type:[Array],default:()=>["jpg","png","svg"]},placeholder:{required:!1,type:[String,Object,Boolean],localized:!0,default:null},line:{required:!1,type:[Boolean],default:!0},canClear:{required:!1,type:[Boolean],default:!0},canUndo:{required:!1,type:[Boolean],default:!0},canDrop:{required:!1,type:[Boolean],default:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,nt,Wt,ar,on,Lr,Bt,Ir,dr,Ca,pa,W7,$5,Ct,Jt,$t,bt,Dt,xt,Ot,yi,Zt,Tr,Ft],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Xt(e,r))}},H7=function(t,r,a){var{lazy:n}=Q(t),i=a.value,u=l=>{n.value||(i.value=l)};return{handleUpdate:u}},s1={name:"SliderElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"slider",private:!0},default:{required:!1,type:[Number,Array],default:0},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},min:{required:!1,type:[Number],default:0},max:{required:!1,type:[Number],default:100},step:{required:!1,type:[Number],default:1},tooltips:{required:!1,type:[Boolean],default:!0},showTooltip:{required:!1,type:[String],default:"always"},tooltipPosition:{required:!1,type:[String],default:null},merge:{required:!1,type:[Number],default:-1},format:{required:!1,type:[Object,Function],default:null},orientation:{required:!1,type:[String],default:"horizontal"},direction:{required:!1,type:[String],default:"ltr"},lazy:{required:!1,type:[Boolean],default:!0,private:!0},extendOptions:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,Rj,At,nt,Wt,ar,Lr,V5,dr,Wj,Bt,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,tf,H7,Zt,Tr,Ft],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},G7=function(t,r,a){var{content:n,expressions:i}=Q(t),{fieldSlots:u,el$:l,form$:s,parent:o}=a,f=ut("config$"),d=h(()=>typeof c.value=="string"),c=h(()=>{var g,A,y=typeof n.value=="function"?n.value(l.value):n.value;if(n.value&&typeof n.value=="object"&&!((g=n.value)!==null&&g!==void 0&&g.render)&&!((A=n.value)!==null&&A!==void 0&&A.template)&&(y=Object.keys(y).reduce((_,C)=>B(B({},_),{},{[C]:typeof y[C]=="function"?y[C](l.value):y[C]}),{}),y=jt(y,f.value,s.value)),i.value&&typeof y=="string"&&y.includes("{")){var b;y=s.value.resolveExpression(y,(b=o.value)===null||b===void 0?void 0:b.dataPath)}return s.value.$vueform.sanitize(y)}),v=h(()=>{var g,A;return!((g=c.value)!==null&&g!==void 0&&g.render)&&!((A=c.value)!==null&&A!==void 0&&A.template)?c.value:m(c.value)}),p=h(()=>{var g,A;return!((g=u.value.default)!==null&&g!==void 0&&g.render)&&!((A=u.value.default)!==null&&A!==void 0&&A.template)?u.value.default:m(u.value.default)}),m=g=>(g=B({},g),g.props?Array.isArray(g.props)&&g.props.indexOf("el$")===-1?g.props.push("el$"):!Array.isArray(g.props)&&!g.props.el$&&(g.props.el$={type:Object,required:!1,default:()=>({})}):g.props=["el$"],g);return{isHtml:d,componentContent:v,slotContent:p,resolvedContent:c}},o1={name:"StaticElement",mixins:[wt,Mt],emits:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"static",private:!0},id:{required:!1,type:[String],default:null},content:{required:!1,type:[String,Object,Function],default:""},expressions:{required:!1,type:[Boolean],default:!1},wrap:{required:!1,type:[Boolean],default:!0},tag:{required:!1,type:[String],default:void 0},allowHtml:{required:!1,type:[Boolean],default:!0},href:{required:!1,type:[String],default:void 0},target:{required:!1,type:[String],default:void 0},src:{required:!1,type:[String],default:void 0},alt:{required:!1,type:[String],default:void 0},title:{required:!1,type:[String],default:void 0},width:{required:!1,type:[String],default:void 0},height:{required:!1,type:[String],default:void 0},attrs:{required:!1,type:[Object],default:()=>({})},align:{required:!1,type:[String],default:void 0},top:{required:!1,type:[String,Number],default:0},bottom:{required:!1,type:[String,Number],default:0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,tb,nt,Qy,Bt,Ct,$t,bt,Dt,xt,Ot,At,cj,Ft,G7],r.slots=["default","label","info","description","before","between","after"],B({},rb(e,r))}},K7=function(t,r,a){var n=a.fire,i=a.el$,u=l=>{n("tag",l,i.value)};return{handleTag:u}},f1={name:"TagsElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","select","deselect","search-change","open","close","tag","clear","paste","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"tags",private:!0},default:{required:!1,type:[Array],default:()=>[]},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},attrs:{required:!1,type:[Object],default:()=>({})},onSelect:{required:!1,type:[Function],default:null,private:!0},onDeselect:{required:!1,type:[Function],default:null,private:!0},onSearchChange:{required:!1,type:[Function],default:null,private:!0},onOpen:{required:!1,type:[Function],default:null,private:!0},onClose:{required:!1,type:[Function],default:null,private:!0},onTag:{required:!1,type:[Function],default:null,private:!0},onClear:{required:!1,type:[Function],default:null,private:!0},onPaste:{required:!1,type:[Function],default:null,private:!0},items:{required:!1,type:[Object,Array,Function,String],localized:!0,default:()=>({})},labelProp:{type:[String],required:!1,default:"label"},valueProp:{type:[String],required:!1,default:"value"},dataKey:{type:[String],required:!1,default:void 0},searchParam:{type:[String],required:!1,default:"query"},search:{required:!1,type:[Boolean],default:!1},trackBy:{type:[String,Array],required:!1,default:"label"},strict:{type:[Boolean],required:!1,default:!0},breakTags:{type:[Boolean],required:!1,default:!1},create:{required:!1,type:[Boolean],default:!1},appendNewOption:{type:[Boolean],required:!1,default:!0},addOptionOn:{type:[Array],required:!1,default:()=>["enter"]},allowAbsent:{type:[Boolean],required:!1,default:!1,native:!1},object:{type:[Boolean],required:!1,default:!1},limit:{type:[Number],required:!1,default:-1},max:{type:[Number],required:!1,default:-1},groups:{type:[Boolean],required:!1,default:!1},groupLabel:{type:[String],required:!1,default:"label"},groupOptions:{type:[String],required:!1,default:"items"},groupHideEmpty:{type:[Boolean],required:!1,default:!1},groupSelect:{type:[Boolean],required:!1,default:!0},openDirection:{type:[String],required:!1,default:"bottom"},appendToBody:{type:[Boolean],required:!1,default:!1,native:!1},appendTo:{type:[String],required:!1,default:void 0,native:!1},canClear:{type:[Boolean],required:!1,default:!0},clearOnSelect:{type:[Boolean],required:!1,default:!0},closeOnSelect:{type:[Boolean],required:!1,default:!0},closeOnDeselect:{type:[Boolean],required:!1,default:!1},clearOnRefetch:{type:[Boolean],required:!1,default:!1},delay:{type:[Number],required:!1,default:-1},minChars:{type:[Number],required:!1,default:0},resolveOnLoad:{type:[Boolean],required:!1,default:!0},filterResults:{type:[Boolean],required:!1,default:!0},clearOnSearch:{type:[Boolean],required:!1,default:!1},hideSelected:{type:[Boolean],required:!1,default:!0},showOptions:{type:[Boolean],required:!1,default:!0},caret:{type:[Boolean],required:!1,default:!0},loading:{type:[Boolean],required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noOptions",localized:!0},noResultsText:{type:[String,Object],required:!1,default:void 0,"@default":"locale.multiselect.noResults",localized:!0},autocomplete:{type:[String],required:!1},inputType:{type:[String],required:!1,default:"text"},extendOptions:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Fj,Pt,Xu,At,Va,nt,$j,ar,Lr,Ir,Zi,z5,dr,R5,Bt,ef,F5,Ct,Jt,$t,bt,Dt,xt,Ot,Jc,K7,Jb,K5,Zt,Tr,Ft,pa],r.slots=["tag","option","placeholder","group-label","before-list","after-list","no-results","no-options","caret","spinner","clear","label","info","required","description","before","between","after"],B({},Xt(e,r))}},d1=function(t,r,a){var{autogrow:n}=Q(t),i=u1(()=>{o()},500),u=a.form$,l=a.input,s=a.value,o=()=>{n.value&&u.value.$vueform.services.autosize.update(l.value)};return Se(n,f=>{f?u.value.$vueform.services.autosize(l.value):u.value.$vueform.services.autosize.destroy(l.value)}),Se(s,()=>{i()}),Vt(()=>{n.value&&He(()=>{u.value.$vueform.services.autosize(l.value)})}),{autosize:o}},Z7=function(t,r,a){var{autosize:n}=d1(t,r,a),i=a.form$;return Vt(()=>{i.value.on("language",()=>{n()})}),{autosize:n}},c1={name:"TextareaElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","focus","keydown","keyup","keypress","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"textarea",private:!0},default:{required:!1,type:[String,Number,Object],localized:!0,default:null},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},autogrow:{required:!1,type:[Boolean],default:!0},rows:{required:!1,type:[Number],default:3},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},attrs:{required:!1,type:[Object],default:()=>({})},onBlur:{required:!1,type:[Function],default:null,private:!0},onKeydown:{required:!1,type:[Function],default:null,private:!0},onKeyup:{required:!1,type:[Function],default:null,private:!0},onKeypress:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,Va,nt,Wt,ar,on,Ji,Ju,Bt,Xi,dr,Ca,d1,w5,Ct,Jt,$t,bt,Dt,xt,Ot,Qi,yi,eu,Zt,Tr,Ft,af,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Xt(e,r))}},v1={name:"TextElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","focus","keydown","keyup","keypress","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"text",private:!0},default:{required:!1,type:[String,Number,Object],localized:!0,default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},inputType:{required:!1,type:[String],default:"text"},forceNumbers:{required:!1,type:[Boolean],default:null},expression:{required:!1,type:[String,Object],default:void 0,localized:!0},attrs:{required:!1,type:[Object],default:()=>({})},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},autocomplete:{required:!1,type:[String,Number],default:null},loading:{type:[Boolean],required:!1,default:!1},onBlur:{required:!1,type:[Function],default:null,private:!0},onKeydown:{required:!1,type:[Function],default:null,private:!0},onKeyup:{required:!1,type:[Function],default:null,private:!0},onKeypress:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,nt,Wt,ar,on,Ji,Ju,Bt,Xi,Zi,Ob,nb,Ca,db,Ct,Jt,$t,bt,Dt,xt,Ot,Qi,yi,eu,Zt,Tr,Ft,af,Va,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Xt(e,r))}},p1={name:"ToggleElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"toggle",private:!0},default:{required:!1,type:[String,Number,Boolean],default:void 0},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},text:{required:!1,type:[String,Object],localized:!0,default:null},labels:{required:!1,type:[Object],localized:!0,default:()=>({})},trueValue:{required:!1,type:[Boolean,String,Number],default:!0},falseValue:{required:!1,type:[Boolean,String,Number],default:!1},extendOptions:{required:!1,type:[Object],default:()=>({})},align:{required:!1,type:[String],default:void 0},standalone:{required:!1,type:[Boolean],default:!1}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,ub,At,nt,Wt,ar,W5,Lr,Bt,Ir,dr,Fr,Ct,Jt,$t,bt,Dt,xt,Ot,tf,k5,mj,Tr,Ft,Uc],r.slots=["default","label","info","required","description","before","between","after"],B({},Xt(e,r))}},h1=function(t,r,a){var{endpoint:n,method:i}=Q(t),u=a.form$,l=a.input,s=R(!1),o=h(()=>n.value||u.value.$vueform.config.endpoints.attachment.url),f=h(()=>i.value||u.value.$vueform.config.endpoints.attachment.method);return Vt(()=>{l.value.editor$.addEventListener("focus",()=>{s.value=!0}),l.value.editor$.addEventListener("blur",()=>{s.value=!1})}),{editorEndpoint:o,editorMethod:f,focused:s}},m1=function(t,r,a){var n=a.fire,i=a.listeners,u=l=>{n("alert",l),i.value.alert||alert(l)};return{handleAlert:u}},g1={name:"EditorElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","alert","error","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"editor",private:!0},default:{required:!1,type:[String,Number,Object],localized:!0,default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},onError:{required:!1,type:[Function],default:null,private:!0},onAlert:{required:!1,type:[Function],default:null,private:!0},accept:{required:!1,type:[Array],default:()=>[]},acceptMimes:{required:!1,type:[Array],default:()=>[]},endpoint:{required:!1,type:[String,Function,Promise],default:null,"@default":"config.endpoints.attachment.url"},method:{required:!1,type:[String],default:null,"@default":"config.endpoints.attachment.method"},hideTools:{required:!1,type:[Array],default:()=>[]},onBlur:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,za,At,nt,Wt,ar,Ju,Bt,Xi,dr,Ca,D5,Ct,Jt,$t,bt,h1,Dt,xt,Ot,Qi,m1,Vc,eu,Zt,Tr,ij,pa],r.slots=["label","info","required","description","before","between","after"],B({},Xt(e,r))}},Qc=function(t,r,a){var n=a.form$,i=h(()=>n.value.selectedLanguage),u=h(()=>Br(n.value.options.languages));return{language:i,languages:u}},y1={name:"TTextareaElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","focus","keydown","keyup","keypress","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"t-textarea",private:!0},default:{required:!1,type:[Object,String,Number],localized:!0,default:null},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},autogrow:{required:!1,type:[Boolean],default:!0},rows:{required:!1,type:[Number],default:3},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},attrs:{required:!1,type:[Object],default:()=>({})},onBlur:{required:!1,type:[Function],default:null,private:!0},onKeydown:{required:!1,type:[Function],default:null,private:!0},onKeyup:{required:!1,type:[Function],default:null,private:!0},onKeypress:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,At,Va,nt,Wt,ar,on,Ji,Qc,kc,Rc,Mc,Bt,Nc,Bc,jc,Ct,Jt,$t,bt,Dt,xt,Ot,Qi,Z7,yi,eu,Zt,Pc,Ft,af,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Tc(e,r))}},b1={name:"TTextElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","focus","keydown","keyup","keypress","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"t-text",private:!0},default:{required:!1,type:[Object,String,Number],localized:!0,default:void 0},addons:{required:!1,type:[Object],localized:!0,default:()=>({})},autocomplete:{required:!1,type:[String,Number],default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},floating:{required:!1,type:[String,Boolean,Object],localized:!0,default:null},id:{required:!1,type:[String],default:null},inputType:{required:!1,type:[String],default:"text"},attrs:{required:!1,type:[Object],default:()=>({})},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},readonly:{required:!1,type:[Boolean,Function,Array,Object],default:!1},loading:{type:[Boolean],required:!1,default:!1},onBlur:{required:!1,type:[Function],default:null,private:!0},onKeydown:{required:!1,type:[Function],default:null,private:!0},onKeyup:{required:!1,type:[Function],default:null,private:!0},onKeypress:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,At,Va,nt,Wt,ar,on,Ji,Qc,kc,Rc,Mc,Bt,Nc,Zi,Bc,jc,Ct,Jt,$t,bt,Dt,xt,Ot,Qi,yi,eu,Zt,Pc,Ft,af,pa],r.slots=["label","info","required","description","before","between","after","addon-before","addon-after"],B({},Tc(e,r))}},A1={name:"TEditorElement",mixins:[wt,Mt,qt,Nt,Rt],emits:["reset","clear","change","blur","alert","error","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],props:{type:{required:!1,type:[String],default:"t-editor",private:!0},default:{required:!1,type:[Object,String,Number],localized:!0,default:null},debounce:{required:!1,type:[Number],default:null},disabled:{required:!1,type:[Boolean,Function,Array,Object],default:!1},id:{required:!1,type:[String],default:null},placeholder:{required:!1,type:[String,Object],localized:!0,default:null},onError:{required:!1,type:[Function],default:null,private:!0},onAlert:{required:!1,type:[Function],default:null,private:!0},accept:{required:!1,type:[Array],default:null},acceptMimes:{required:!1,type:[Array],default:null},endpoint:{required:!1,type:[String,Function,Promise],default:null,"@default":"config.endpoints.attachment.url"},method:{required:!1,type:[String],default:null,"@default":"config.endpoints.attachment.method"},hideTools:{required:!1,type:[Array],default:()=>[]},onBlur:{required:!1,type:[Function],default:null,private:!0}},setup(e,t){var r=B({},t);return r.features=[ht,ct,vt,Tt,Or,Pt,At,nt,Wt,ar,Qc,kc,Rc,Mc,Bt,Nc,Bc,C5,Ct,Jt,$t,bt,h1,Dt,xt,Ot,Qi,m1,Vc,eu,Zt,Pc,Ft,pa],r.slots=["label","info","required","description","before","between","after"],B({},Tc(e,r))}},w1={name:"CheckboxgroupCheckbox",props:{item:{type:[Object,String,Number],required:!0},value:{type:[String,Number,Boolean],required:!0},items:{type:[Object,Array],required:!0},index:{type:[Number],required:!0},attrs:{required:!1,type:[Object],default:()=>({})},standalone:{required:!1,type:[Boolean],default:!1}},setup(e,t){var{value:r,item:a}=Q(e),{el$:n,form$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c}=Pr(e,t),v=h(()=>{var y;return n.value.disabledItems.map(b=>String(b)).indexOf(String(r.value))!==-1||n.value.isDisabled||!!((y=a.value)!==null&&y!==void 0&&y.disabled)}),p=h(()=>{var y,b;return((y=n.value.value)===null||y===void 0?void 0:y.indexOf(String(r.value)))!==-1||((b=n.value.value)===null||b===void 0?void 0:b.indexOf(Number(r.value)))!==-1}),m=h(()=>"".concat(n.value.fieldId,"-").concat(r.value)),g=h(()=>"".concat(n.value.path,"-").concat(r.value)),A=y=>{if(["ArrowRight","ArrowDown"].indexOf(y.key)!==-1){y.preventDefault();var b=y.target.nextElementSibling;b?.getAttribute("role")==="checkbox"&&b.focus()}else if(["ArrowLeft","ArrowUp"].indexOf(y.key)!==-1){y.preventDefault();var _=y.target.previousElementSibling;_?.getAttribute("role")==="checkbox"&&_.focus()}};return{el$:n,form$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c,isDisabled:v,id:m,name:g,checked:p,handleKeydown:A}}},X7=function(t,r,a){var n=a.el$,i=a.form$,u=h(()=>n.value.stage>0),l=h(()=>n.value.link&&n.value.clickable),s=h(()=>n.value.hasUploadError),o=h(()=>n.value.link),f=h(()=>{var T=n.value.filename&&typeof n.value.filename=="string"?n.value.filename.split("\\").pop().split("/").pop():n.value.filename;return T&&(T=T.split("?")[0]),T}),d=h(()=>n.value.clickable),c=h(()=>n.value.stage>1),v=h(()=>n.value.uploading),p=h(()=>n.value.progress),m=h(()=>(n.value.canRemove||n.value.uploading)&&!n.value.isDisabled),g=h(()=>n.value.canUploadTemp),A=h(()=>i.value.translations.vueform.elements.file.upload),y=h(()=>n.value.embed?void 0:n.value.labelId),b=()=>{n.value.uploadTemp()},_=()=>{v.value?n.value.handleAbort():n.value.handleRemove()},C=(function(){var T=he(function*(S){switch(S.key){case"Backspace":case"Delete":if(_(),!n.value.canSelect)return;yield He(),document.querySelector("#".concat(n.value.fieldId)).focus();break;case"Enter":if(n.value.auto)return;b();break}});return function(D){return T.apply(this,arguments)}})();return{visible:u,hasLink:l,hasError:s,link:o,filename:f,clickable:d,uploaded:c,uploading:v,progress:p,canRemove:m,canUploadTemp:g,uploadText:A,ariaLabelledby:y,upload:b,remove:_,handleKeyup:C}},_1={name:"FilePreview",props:{attrs:{required:!1,type:[Object],default:()=>({})}},setup(e,t){var{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f}=Pr(e,t),{visible:d,hasLink:c,hasError:v,link:p,filename:m,clickable:g,uploaded:A,uploading:y,progress:b,canRemove:_,canUploadTemp:C,uploadText:T,ariaLabelledby:S,upload:D,remove:x,handleKeyup:F}=X7(e,t,{el$:r,form$:a}),k=h(()=>r.value.preview),U=h(()=>{var H=r.value.embed&&r.value.View!=="gallery"?void 0:m.value;return v.value&&(H?H+=", error":H="error"),H}),Y=h(()=>r.value.embed&&r.value.View!=="gallery"||A.value||r.value.auto?void 0:T.value);return{el$:r,form$:a,Size:n,View:i,classesInstance:u,classes:l,Templates:s,template:o,theme:f,visible:d,hasLink:c,hasError:v,link:p,filename:m,clickable:g,uploaded:A,uploading:y,progress:b,canRemove:_,canUploadTemp:C,uploadText:T,preview:k,ariaLabelledby:S,ariaPlaceholder:U,ariaRoledescription:Y,upload:D,remove:x,handleKeyup:F}}},E1={name:"RadiogroupRadio",props:{item:{type:[Object,String,Number],required:!0},value:{type:[String,Number,Boolean],required:!0},items:{type:[Object,Array],required:!0},index:{type:[Number],required:!0},attrs:{required:!1,type:[Object],default:()=>({})},standalone:{required:!1,type:[Boolean],default:!1}},setup(e,t){var{value:r,item:a}=Q(e),{el$:n,form$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c}=Pr(e,t),v=h(()=>{var y;return n.value.disabledItems.map(b=>String(b)).indexOf(String(r.value))!==-1||n.value.isDisabled||!!((y=a.value)!==null&&y!==void 0&&y.disabled)}),p=h(()=>n.value.value===String(r.value)||n.value.value===Number(r.value)),m=h(()=>"".concat(n.value.fieldId,"-").concat(r.value)),g=h(()=>n.value.path),A=y=>{if(["ArrowRight","ArrowDown"].indexOf(y.key)!==-1){y.preventDefault();var b=y.target.nextElementSibling;b?.getAttribute("role")==="radio"&&b.focus()}else if(["ArrowLeft","ArrowUp"].indexOf(y.key)!==-1){y.preventDefault();var _=y.target.previousElementSibling;_?.getAttribute("role")==="radio"&&_.focus()}};return{el$:n,form$:i,Size:u,View:l,classesInstance:s,classes:o,Templates:f,template:d,theme:c,isDisabled:v,id:m,name:g,checked:p,handleKeydown:A}}},J7={Vueform:gc,FormErrors:Ay,FormMessages:wy,FormLanguages:_y,FormLanguage:Ey,FormTabs:Dy,FormTab:$y,FormSteps:Oy,FormStepsControls:Ty,FormStepsControl:Fy,FormStep:My,FormElements:xc,ElementLayout:ky,ElementLayoutInline:By,ElementLoader:Py,ElementLabelFloating:qy,ElementLabel:Ny,ElementInfo:Ry,ElementDescription:Iy,ElementError:Ly,ElementMessage:jy,ElementRequired:Uy,ElementText:Yy,DragAndDrop:zy,ElementAddon:Vy,ElementAddonOptions:Wy,DatepickerWrapper:Ky,EditorWrapper:Zy,ButtonElement:ab,CaptchaElement:pb,CheckboxElement:hb,CheckboxgroupElement:yb,DateElement:wb,DatesElement:_b,FileElement:Db,GenericElement:gu,GridElement:xb,GroupElement:$b,HiddenElement:Tb,ListElement:Gb,LocationElement:Kb,MatrixElement:Zb,MultifileElement:Xb,MultiselectElement:Qb,ObjectElement:e1,PhoneElement:t1,RadioElement:r1,RadiogroupElement:a1,SelectElement:n1,SignatureElement:l1,SliderElement:s1,StaticElement:o1,TagsElement:f1,TextareaElement:c1,TextElement:v1,ToggleElement:p1,EditorElement:g1,TTextareaElement:y1,TTextElement:b1,TEditorElement:A1,CheckboxgroupCheckbox:w1,FilePreview:_1,RadiogroupRadio:E1},Q7=Object.freeze({__proto__:null,default:J7,Vueform:gc,FormErrors:Ay,FormMessages:wy,FormLanguages:_y,FormLanguage:Ey,FormTabs:Dy,FormTab:$y,FormSteps:Oy,FormStepsControls:Ty,FormStepsControl:Fy,FormStep:My,FormElements:xc,ElementLayout:ky,ElementLayoutInline:By,ElementLoader:Py,ElementLabelFloating:qy,ElementLabel:Ny,ElementInfo:Ry,ElementDescription:Iy,ElementError:Ly,ElementMessage:jy,ElementRequired:Uy,ElementText:Yy,DragAndDrop:zy,ElementAddon:Vy,ElementAddonOptions:Wy,DatepickerWrapper:Ky,EditorWrapper:Zy,ButtonElement:ab,CaptchaElement:pb,CheckboxElement:hb,CheckboxgroupElement:yb,DateElement:wb,DatesElement:_b,FileElement:Db,GenericElement:gu,GridElement:xb,GroupElement:$b,HiddenElement:Tb,ListElement:Gb,LocationElement:Kb,MatrixElement:Zb,MultifileElement:Xb,MultiselectElement:Qb,ObjectElement:e1,PhoneElement:t1,RadioElement:r1,RadiogroupElement:a1,SelectElement:n1,SignatureElement:l1,SliderElement:s1,StaticElement:o1,TagsElement:f1,TextareaElement:c1,TextElement:v1,ToggleElement:p1,EditorElement:g1,TTextareaElement:y1,TTextElement:b1,TEditorElement:A1,CheckboxgroupCheckbox:w1,FilePreview:_1,RadiogroupRadio:E1});function S1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e.name)throw Error("The `name` attribute must be defined to create a new element");e=B(B({},e),t);var r=e.name,a="".concat(ai(Ui(r))),n=[].concat(gu.emits).concat(e.emits||[]);return B({name:a,components:e.components||{},mixins:[].concat(gu.mixins).concat(e.mixins||[]),emits:n,props:B(B(B({},gu.props),e.props||{}),{},{type:{required:!1,type:[String],default:r,private:!0}}),setup(i,u){var l=B(B({},u),{},{emits:n,name:R(a),nullValue:e.nullValue!==void 0?e.nullValue:null}),s=gu.setup(i,l);l.element=s;var o=e.setup?e.setup(i,l):{};return B(B({},s),o)}},md(e,["setup","mixins","emits","props"]))}function bU(e){return e}var AU=S1,wU=S1;gy(void 0,{Vueform:gc,FormElements:xc},{},{moment:Ae});var _U=gy(void 0,B({},Q7),B({},N4),{moment:Ae});export{ab as ButtonElement,pb as CaptchaElement,hb as CheckboxElement,w1 as CheckboxgroupCheckbox,yb as CheckboxgroupElement,wb as DateElement,Ky as DatepickerWrapper,_b as DatesElement,zy as DragAndDrop,g1 as EditorElement,Zy as EditorWrapper,Vy as ElementAddon,Wy as ElementAddonOptions,Iy as ElementDescription,Ly as ElementError,Ry as ElementInfo,Ny as ElementLabel,qy as ElementLabelFloating,ky as ElementLayout,By as ElementLayoutInline,Py as ElementLoader,jy as ElementMessage,Uy as ElementRequired,Yy as ElementText,Db as FileElement,_1 as FilePreview,xc as FormElements,Ay as FormErrors,Ey as FormLanguage,_y as FormLanguages,wy as FormMessages,My as FormStep,Oy as FormSteps,Fy as FormStepsControl,Ty as FormStepsControls,$y as FormTab,Dy as FormTabs,gu as GenericElement,xb as GridElement,$b as GroupElement,Tb as HiddenElement,Gb as ListElement,Kb as LocationElement,Zb as MatrixElement,Xb as MultifileElement,Qb as MultiselectElement,e1 as ObjectElement,t1 as PhoneElement,r1 as RadioElement,a1 as RadiogroupElement,E1 as RadiogroupRadio,n1 as SelectElement,l1 as SignatureElement,s1 as SliderElement,o1 as StaticElement,A1 as TEditorElement,b1 as TTextElement,y1 as TTextareaElement,f1 as TagsElement,v1 as TextElement,c1 as TextareaElement,p1 as ToggleElement,Le as Validator,gc as Vueform,AU as VueformElement,ig as accepted,ug as active_url,is as after,lg as after_or_equal,sg as alpha,og as alpha_dash,fg as alpha_num,dg as array,cg as before,vg as before_or_equal,pg as between,hg as boolean,f4 as captcha,d4 as completed,mg as confirmed,bg as date,Ag as date_equals,wg as date_format,_U as default,bU as defineConfig,wU as defineElement,_g as different,Eg as digits,Sg as digits_between,Dg as dimensions,xg as distinct,S1 as element,$g as email,Og as exists,Tg as file,Fg as filled,us as gt,Mg as gte,kg as image,Bg as in_,Pg as in_array,gy as installer,qg as integer,jg as ip,Rg as ipv4,Lg as ipv6,Ug as json,Yg as lt,zg as lte,Vg as max,Wg as mimes,Hg as mimetypes,Gg as min,Kg as not_in,Zg as not_regex,Xg as nullable,Jg as numeric,Qg as regex,ey as required,ty as same,ry as size,ay as string,ny as timezone,iy as unique,uy as url,Dt as useClasses,qI as useVueform,ly as uuid,_U as vueform};
|